{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "groundworx/carousel",
  "version": "2.0.0",
  "title": "Carousel",
  "category": "design",
  "description": "Display content in a carousel, with blocks added to each slide.",
  "allowedBlocks": [
    "groundworx/slide"
  ],
  "textdomain": "groundworx-carousel",
  "keywords": [
    "slides",
    "carousel"
  ],
  "supports": {
    "__experimentalOnEnter": true,
    "__experimentalOnMerge": true,
    "__experimentalSettings": true,
    "align": [
      "full",
      "wide"
    ],
    "html": false,
    "interactivity": true,
    "inserter": true,
    "className": true,
    "groundworx": {
      "breakpoints": [
        "large-phone",
        "tablet",
        "laptop",
        "desktop",
        "large-desktop"
      ]
    },
    "color": {
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "spacing": {
      "margin": [
        "top",
        "bottom"
      ],
      "padding": true,
      "blockGap": true,
      "selector": ".gwx-carousel__container",
      "__experimentalSkipSerialization": [
        "blockGap"
      ],
      "__experimentalDefaultControls": {
        "padding": true,
        "blockGap": true
      }
    },
    "shadow": true,
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    },
    "layout": {
      "default": {
        "type": "default"
      },
      "allowJustification": true,
      "allowOrientation": true,
      "allowSwitching": false,
      "allowEditing": true,
      "allowSizingOnChildren": false,
      "allowVerticalAlignment": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontWeight": true,
      "__experimentalFontStyle": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true,
      "__experimentalLetterSpacing": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "attributes": {
    "isPreview": {
      "type": "boolean",
      "default": false
    },
    "template": {
      "type": "string",
      "default": "default"
    },
    "progressColor": {
      "type": "string"
    },
    "customProgressColor": {
      "type": "string"
    },
    "progressBackgroundColor": {
      "type": "string"
    },
    "customProgressBackgroundColor": {
      "type": "string"
    },
    "paginationColor": {
      "type": "string"
    },
    "customPaginationColor": {
      "type": "string"
    },
    "paginationBackgroundColor": {
      "type": "string"
    },
    "customPaginationBackgroundColor": {
      "type": "string"
    },
    "paginationBorderColor": {
      "type": "string"
    },
    "customPaginationBorderColor": {
      "type": "string"
    },
    "paginationInactiveColor": {
      "type": "string"
    },
    "customInactivePaginationColor": {
      "type": "string"
    },
    "customPaginationInactiveColor": {
      "type": "string"
    },
    "paginationInactiveBackgroundColor": {
      "type": "string"
    },
    "customPaginationInactiveBackgroundColor": {
      "type": "string"
    },
    "paginationInactiveBorderColor": {
      "type": "string"
    },
    "customPaginationInactiveBorderColor": {
      "type": "string"
    },
    "arrowsColor": {
      "type": "string"
    },
    "customArrowsColor": {
      "type": "string"
    },
    "arrowsBackgroundColor": {
      "type": "string"
    },
    "customArrowsBackgroundColor": {
      "type": "string"
    },
    "arrowsBorderColor": {
      "type": "string"
    },
    "customArrowsBorderColor": {
      "type": "string"
    },
    "counterColor": {
      "type": "string"
    },
    "customCounterColor": {
      "type": "string"
    },
    "paginationStyle": {
      "type": "string",
      "default": "circleOutline"
    },
    "arrowStyle": {
      "type": "string",
      "default": "chevron"
    },
    "breakpoints": {
      "type": "object",
      "default": {
        "tablet": {
          "layout": {
            "type": "grid",
            "minimumColumnWidth": null,
            "columnCount": 3
          }
        },
        "laptop": {
          "layout": {
            "type": "grid",
            "minimumColumnWidth": "300px"
          }
        },
        "desktop": {
          "layout": {
            "type": "grid",
            "minimumColumnWidth": "300px"
          }
        }
      }
    },
    "carouselOptions": {
      "type": "object",
      "default": {
        "type": "slide",
        "align": "start",
        "perPage": 1,
        "autoplay": false,
        "pagination": false,
        "arrows": true,
        "progressBar": false,
        "counter": false,
        "containScroll": "trimSnaps"
      }
    },
    "splideOptions": {
      "type": "object"
    }
  },
  "selectors": {
    "root": ".wp-block-groundworx-carousel",
    "color": {
      "text": ".wp-block-groundworx-carousel, .wp-block-groundworx-carousel > .gwx-carousel__wrapper > .gwx-carousel__pagination > .gwx-carousel__pagination-item:is(.gwx-carousel__pagination-item--number):not(.is-active), .wp-block-groundworx-carousel > .gwx-carousel__wrapper > .gwx-carousel__pagination > .gwx-carousel__pagination-item:not(.gwx-carousel__pagination-item--number), .wp-block-groundworx-carousel > .gwx-carousel__wrapper > .gwx-carousel__arrows > .gwx-carousel__counter"
    }
  },
  "render": "file:./render.php",
  "editorStyle": "groundworx-carousel-editor",
  "style": "groundworx-carousel-style",
  "viewScriptModule": [
    "groundworx-carousel-view"
  ]
}