{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "elb/event-date",
  "textdomain": "template-events-calendar",
  "title": "Event Date",
  "icon": "calendar",
  "category": "widgets",
  "keywords": [
    "date",
    "event date",
    "start date",
    "badge"
  ],
  "editorScript": "elb-editor",
  "usesContext": [
    "elb/postId"
  ],
  "attributes": {
    "sourceField": {
      "type": "string",
      "default": "date"
    },
    "format": {
      "type": "string",
      "default": "badge"
    },
    "dateShow": {
      "type": "string",
      "default": "start"
    },
    "customDateFormat": {
      "type": "string",
      "default": ""
    },
    "showTime": {
      "type": "boolean",
      "default": false
    },
    "badgeTextColor": {
      "type": "string",
      "default": ""
    },
    "textColor": {
      "type": "string",
      "default": ""
    },
    "hoverTextColor": {
      "type": "string",
      "default": ""
    },
    "backgroundColor": {
      "type": "string",
      "default": ""
    },
    "hoverBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "textAlign": {
      "type": "string",
      "default": "left"
    },
    "verticalAlign": {
      "type": "string",
      "default": "top"
    },
    "paddingTop": {
      "type": "string",
      "default": ""
    },
    "paddingRight": {
      "type": "string",
      "default": ""
    },
    "paddingBottom": {
      "type": "string",
      "default": ""
    },
    "paddingLeft": {
      "type": "string",
      "default": ""
    },
    "paddingUnit": {
      "type": "string",
      "default": "PX"
    },
    "borderStyle": {
      "type": "string",
      "default": "none"
    },
    "borderRadiusTopLeft": {
      "type": "string",
      "default": ""
    },
    "borderRadiusTopRight": {
      "type": "string",
      "default": ""
    },
    "borderRadiusBottomRight": {
      "type": "string",
      "default": ""
    },
    "borderRadiusBottomLeft": {
      "type": "string",
      "default": ""
    },
    "borderRadiusUnit": {
      "type": "string",
      "default": "px"
    },
    "marginTop": {
      "type": "string",
      "default": "0"
    },
    "marginRight": {
      "type": "string",
      "default": "0"
    },
    "marginBottom": {
      "type": "string",
      "default": "0"
    },
    "marginLeft": {
      "type": "string",
      "default": "0"
    },
    "marginUnit": {
      "type": "string",
      "default": "PX"
    },
    "fontFamily": {
      "type": "string",
      "default": ""
    },
    "fontSize": {
      "type": "string",
      "default": ""
    },
    "fontSizeUnit": {
      "type": "string",
      "default": "px"
    },
    "fontWeight": {
      "type": "string",
      "default": ""
    },
    "lineHeight": {
      "type": "string",
      "default": ""
    },
    "lineHeightUnit": {
      "type": "string",
      "default": "em"
    },
    "letterSpacing": {
      "type": "string",
      "default": ""
    },
    "letterSpacingUnit": {
      "type": "string",
      "default": "px"
    },
    "textTransform": {
      "type": "string",
      "default": ""
    },
    "fontStyle": {
      "type": "string",
      "default": ""
    },
    "textDecoration": {
      "type": "string",
      "default": ""
    },
    "datePreset": {
      "type": "string",
      "default": "classic"
    },
    "iconPosition": {
      "type": "string",
      "default": "none"
    },
    "flexDirection": {
      "type": "string",
      "default": ""
    },
    "justifyContent": {
      "type": "string",
      "default": ""
    },
    "alignItems": {
      "type": "string",
      "default": ""
    },
    "flexWrap": {
      "type": "string",
      "default": ""
    },
    "flexGap": {
      "type": "string",
      "default": ""
    },
    "borderWidth": {
      "type": "string",
      "default": ""
    },
    "borderColor": {
      "type": "string",
      "default": ""
    },
    "showBlockIcon": {
      "type": "boolean",
      "default": false
    },
    "blockIcon": {
      "type": "string",
      "default": ""
    },
    "blockIconSize": {
      "type": "number",
      "default": 18
    },
    "blockIconPos": {
      "type": "string",
      "default": "left"
    },
    "blockIconPlacement": {
      "type": "string",
      "default": "inside"
    },
    "blockIconColor": {
      "type": "string",
      "default": ""
    },
    "borderColorHover": {
      "type": "string",
      "default": ""
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "customClassName": true
  },
  "render": "file:./render.php",
  "description": "Show the event date as a badge, label or text.",
  "ancestor": [
    "elb/loop-builder"
  ]
}
