@wordpress/components 23.3.5 → 23.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/tooltip/index.js +18 -6
- package/build/tooltip/index.js.map +1 -1
- package/build-module/tooltip/index.js +16 -6
- package/build-module/tooltip/index.js.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts +6 -0
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -0
- package/build-types/angle-picker-control/index.d.ts +29 -0
- package/build-types/angle-picker-control/index.d.ts.map +1 -0
- package/build-types/angle-picker-control/stories/index.d.ts +15 -0
- package/build-types/angle-picker-control/stories/index.d.ts.map +1 -0
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +25 -0
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -0
- package/build-types/angle-picker-control/types.d.ts +26 -0
- package/build-types/angle-picker-control/types.d.ts.map +1 -0
- package/build-types/animate/stories/index.d.ts +18 -0
- package/build-types/animate/stories/index.d.ts.map +1 -0
- package/build-types/animate/types.d.ts +30 -0
- package/build-types/animate/types.d.ts.map +1 -0
- package/build-types/autocomplete/autocompleter-ui.d.ts +4 -0
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -0
- package/build-types/autocomplete/get-default-use-items.d.ts +3 -0
- package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -0
- package/build-types/autocomplete/index.d.ts +23 -0
- package/build-types/autocomplete/index.d.ts.map +1 -0
- package/build-types/autocomplete/test/index.d.ts +2 -0
- package/build-types/autocomplete/test/index.d.ts.map +1 -0
- package/build-types/autocomplete/types.d.ts +185 -0
- package/build-types/autocomplete/types.d.ts.map +1 -0
- package/build-types/border-box-control/test/index.d.ts +2 -0
- package/build-types/border-box-control/test/index.d.ts.map +1 -0
- package/build-types/border-box-control/test/utils.d.ts +2 -0
- package/build-types/border-box-control/test/utils.d.ts.map +1 -0
- package/build-types/box-control/all-input-control.d.ts +4 -0
- package/build-types/box-control/all-input-control.d.ts.map +1 -0
- package/build-types/box-control/axial-input-controls.d.ts +4 -0
- package/build-types/box-control/axial-input-controls.d.ts.map +1 -0
- package/build-types/box-control/icon.d.ts +8 -0
- package/build-types/box-control/icon.d.ts.map +1 -0
- package/build-types/box-control/index.d.ts +31 -0
- package/build-types/box-control/index.d.ts.map +1 -0
- package/build-types/box-control/input-controls.d.ts +4 -0
- package/build-types/box-control/input-controls.d.ts.map +1 -0
- package/build-types/box-control/linked-button.d.ts +9 -0
- package/build-types/box-control/linked-button.d.ts.map +1 -0
- package/build-types/box-control/styles/box-control-icon-styles.d.ts +42 -0
- package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -0
- package/build-types/box-control/styles/box-control-styles.d.ts +42 -0
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -0
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +46 -0
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +1 -0
- package/build-types/box-control/test/index.d.ts +2 -0
- package/build-types/box-control/test/index.d.ts.map +1 -0
- package/build-types/box-control/types.d.ts +99 -0
- package/build-types/box-control/types.d.ts.map +1 -0
- package/build-types/box-control/unit-control.d.ts +4 -0
- package/build-types/box-control/unit-control.d.ts.map +1 -0
- package/build-types/box-control/utils.d.ts +84 -0
- package/build-types/box-control/utils.d.ts.map +1 -0
- package/build-types/circular-option-picker/stories/index.d.ts +14 -0
- package/build-types/circular-option-picker/stories/index.d.ts.map +1 -0
- package/build-types/circular-option-picker/types.d.ts +49 -0
- package/build-types/circular-option-picker/types.d.ts.map +1 -0
- package/build-types/color-picker/color-display.d.ts +14 -0
- package/build-types/color-picker/color-display.d.ts.map +1 -0
- package/build-types/color-picker/stories/index.d.ts +19 -0
- package/build-types/color-picker/stories/index.d.ts.map +1 -0
- package/build-types/color-picker/test/index.d.ts +2 -0
- package/build-types/color-picker/test/index.d.ts.map +1 -0
- package/build-types/combobox-control/index.d.ts +51 -0
- package/build-types/combobox-control/index.d.ts.map +1 -0
- package/build-types/combobox-control/stories/index.d.ts +18 -0
- package/build-types/combobox-control/stories/index.d.ts.map +1 -0
- package/build-types/combobox-control/styles.d.ts +8 -0
- package/build-types/combobox-control/styles.d.ts.map +1 -0
- package/build-types/combobox-control/test/index.d.ts +2 -0
- package/build-types/combobox-control/test/index.d.ts.map +1 -0
- package/build-types/combobox-control/types.d.ts +69 -0
- package/build-types/combobox-control/types.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/constants.d.ts +25 -0
- package/build-types/custom-gradient-picker/constants.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +8 -0
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +8 -0
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +4 -0
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +2 -0
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +90 -0
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/index.d.ts +28 -0
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/serializer.d.ts +10 -0
- package/build-types/custom-gradient-picker/serializer.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/stories/index.d.ts +12 -0
- package/build-types/custom-gradient-picker/stories/index.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +12 -0
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/test/serializer.d.ts +2 -0
- package/build-types/custom-gradient-picker/test/serializer.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/types.d.ts +118 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/utils.d.ts +13 -0
- package/build-types/custom-gradient-picker/utils.d.ts.map +1 -0
- package/build-types/date-time/date/test/utils.d.ts +2 -0
- package/build-types/date-time/date/test/utils.d.ts.map +1 -0
- package/build-types/date-time/date/utils.d.ts +15 -0
- package/build-types/date-time/date/utils.d.ts.map +1 -0
- package/build-types/date-time/date.d.ts +24 -0
- package/build-types/date-time/date.d.ts.map +1 -0
- package/build-types/date-time/stories/index.d.ts +14 -0
- package/build-types/date-time/stories/index.d.ts.map +1 -0
- package/build-types/date-time/test/date.d.ts +2 -0
- package/build-types/date-time/test/date.d.ts.map +1 -0
- package/build-types/date-time/test/time.d.ts +2 -0
- package/build-types/date-time/test/time.d.ts.map +1 -0
- package/build-types/date-time/test/utils.d.ts +2 -0
- package/build-types/date-time/test/utils.d.ts.map +1 -0
- package/build-types/date-time/time.d.ts +25 -0
- package/build-types/date-time/time.d.ts.map +1 -0
- package/build-types/date-time/timezone.d.ts +7 -0
- package/build-types/date-time/timezone.d.ts.map +1 -0
- package/build-types/dimension-control/index.d.ts +28 -0
- package/build-types/dimension-control/index.d.ts.map +1 -0
- package/build-types/dimension-control/sizes.d.ts +26 -0
- package/build-types/dimension-control/sizes.d.ts.map +1 -0
- package/build-types/dimension-control/stories/index.d.ts +12 -0
- package/build-types/dimension-control/stories/index.d.ts.map +1 -0
- package/build-types/dimension-control/types.d.ts +47 -0
- package/build-types/dimension-control/types.d.ts.map +1 -0
- package/build-types/duotone-picker/color-list-picker/index.d.ts +5 -0
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -0
- package/build-types/duotone-picker/color-list-picker/types.d.ts +42 -0
- package/build-types/duotone-picker/color-list-picker/types.d.ts.map +1 -0
- package/build-types/duotone-picker/custom-duotone-bar.d.ts +6 -0
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -0
- package/build-types/duotone-picker/duotone-picker.d.ts +38 -0
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -0
- package/build-types/duotone-picker/duotone-swatch.d.ts +5 -0
- package/build-types/duotone-picker/duotone-swatch.d.ts.map +1 -0
- package/build-types/duotone-picker/index.d.ts +3 -0
- package/build-types/duotone-picker/index.d.ts.map +1 -0
- package/build-types/duotone-picker/stories/duotone-picker.d.ts +12 -0
- package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +1 -0
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts +14 -0
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +1 -0
- package/build-types/duotone-picker/types.d.ts +60 -0
- package/build-types/duotone-picker/types.d.ts.map +1 -0
- package/build-types/duotone-picker/utils.d.ts +52 -0
- package/build-types/duotone-picker/utils.d.ts.map +1 -0
- package/build-types/experiments.d.ts +4 -0
- package/build-types/experiments.d.ts.map +1 -0
- package/build-types/flyout/context.d.ts +6 -0
- package/build-types/flyout/context.d.ts.map +1 -0
- package/build-types/flyout/flyout/component.d.ts +21 -0
- package/build-types/flyout/flyout/component.d.ts.map +1 -0
- package/build-types/flyout/flyout/hook.d.ts +270 -0
- package/build-types/flyout/flyout/hook.d.ts.map +1 -0
- package/build-types/flyout/flyout/index.d.ts +3 -0
- package/build-types/flyout/flyout/index.d.ts.map +1 -0
- package/build-types/flyout/flyout-content/component.d.ts +3 -0
- package/build-types/flyout/flyout-content/component.d.ts.map +1 -0
- package/build-types/flyout/flyout-content/index.d.ts +2 -0
- package/build-types/flyout/flyout-content/index.d.ts.map +1 -0
- package/build-types/flyout/index.d.ts +2 -0
- package/build-types/flyout/index.d.ts.map +1 -0
- package/build-types/flyout/styles.d.ts +22 -0
- package/build-types/flyout/styles.d.ts.map +1 -0
- package/build-types/flyout/types.d.ts +80 -0
- package/build-types/flyout/types.d.ts.map +1 -0
- package/build-types/flyout/utils.d.ts +8 -0
- package/build-types/flyout/utils.d.ts.map +1 -0
- package/build-types/form-token-field/test/lib/fixtures.d.ts +26 -0
- package/build-types/form-token-field/test/lib/fixtures.d.ts.map +1 -0
- package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts +21 -0
- package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts.map +1 -0
- package/build-types/gradient-picker/index.d.ts +50 -0
- package/build-types/gradient-picker/index.d.ts.map +1 -0
- package/build-types/gradient-picker/stories/index.d.ts +14 -0
- package/build-types/gradient-picker/stories/index.d.ts.map +1 -0
- package/build-types/gradient-picker/types.d.ts +87 -0
- package/build-types/gradient-picker/types.d.ts.map +1 -0
- package/build-types/guide/icons.d.ts +5 -0
- package/build-types/guide/icons.d.ts.map +1 -0
- package/build-types/guide/index.d.ts +37 -0
- package/build-types/guide/index.d.ts.map +1 -0
- package/build-types/guide/page-control.d.ts +4 -0
- package/build-types/guide/page-control.d.ts.map +1 -0
- package/build-types/guide/page.d.ts +7 -0
- package/build-types/guide/page.d.ts.map +1 -0
- package/build-types/guide/stories/index.d.ts +9 -0
- package/build-types/guide/stories/index.d.ts.map +1 -0
- package/build-types/guide/test/index.d.ts +2 -0
- package/build-types/guide/test/index.d.ts.map +1 -0
- package/build-types/guide/types.d.ts +65 -0
- package/build-types/guide/types.d.ts.map +1 -0
- package/build-types/h-stack/stories/e2e/index.d.ts +9 -0
- package/build-types/h-stack/stories/e2e/index.d.ts.map +1 -0
- package/build-types/higher-order/navigate-regions/index.d.ts +46 -0
- package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -0
- package/build-types/higher-order/with-fallback-styles/index.d.ts +44 -0
- package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -0
- package/build-types/higher-order/with-filters/index.d.ts +89 -0
- package/build-types/higher-order/with-filters/index.d.ts.map +1 -0
- package/build-types/higher-order/with-filters/test/index.d.ts +2 -0
- package/build-types/higher-order/with-filters/test/index.d.ts.map +1 -0
- package/build-types/higher-order/with-focus-return/index.d.ts +20 -0
- package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -0
- package/build-types/higher-order/with-focus-return/test/index.d.ts +2 -0
- package/build-types/higher-order/with-focus-return/test/index.d.ts.map +1 -0
- package/build-types/higher-order/with-notices/index.d.ts +37 -0
- package/build-types/higher-order/with-notices/index.d.ts.map +1 -0
- package/build-types/higher-order/with-notices/test/index.d.ts +2 -0
- package/build-types/higher-order/with-notices/test/index.d.ts.map +1 -0
- package/build-types/higher-order/with-notices/types.d.ts +34 -0
- package/build-types/higher-order/with-notices/types.d.ts.map +1 -0
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts +2 -0
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +1 -0
- package/build-types/icon/test/index.d.ts +2 -0
- package/build-types/icon/test/index.d.ts.map +1 -0
- package/build-types/index.d.ts +129 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/menu-items-choice/index.d.ts +38 -0
- package/build-types/menu-items-choice/index.d.ts.map +1 -0
- package/build-types/menu-items-choice/stories/index.d.ts +12 -0
- package/build-types/menu-items-choice/stories/index.d.ts.map +1 -0
- package/build-types/menu-items-choice/types.d.ts +53 -0
- package/build-types/menu-items-choice/types.d.ts.map +1 -0
- package/build-types/navigable-container/stories/navigable-menu.d.ts +12 -0
- package/build-types/navigable-container/stories/navigable-menu.d.ts.map +1 -0
- package/build-types/navigable-container/stories/tabbable-container.d.ts +12 -0
- package/build-types/navigable-container/stories/tabbable-container.d.ts.map +1 -0
- package/build-types/navigable-container/test/navigable-menu.d.ts +2 -0
- package/build-types/navigable-container/test/navigable-menu.d.ts.map +1 -0
- package/build-types/navigable-container/test/tababble-container.d.ts +2 -0
- package/build-types/navigable-container/test/tababble-container.d.ts.map +1 -0
- package/build-types/navigable-container/types.d.ts +61 -0
- package/build-types/navigable-container/types.d.ts.map +1 -0
- package/build-types/navigation/back-button/index.d.ts +5 -0
- package/build-types/navigation/back-button/index.d.ts.map +1 -0
- package/build-types/navigation/constants.d.ts +3 -0
- package/build-types/navigation/constants.d.ts.map +1 -0
- package/build-types/navigation/context.d.ts +5 -0
- package/build-types/navigation/context.d.ts.map +1 -0
- package/build-types/navigation/group/context.d.ts +8 -0
- package/build-types/navigation/group/context.d.ts.map +1 -0
- package/build-types/navigation/group/index.d.ts +5 -0
- package/build-types/navigation/group/index.d.ts.map +1 -0
- package/build-types/navigation/index.d.ts +46 -0
- package/build-types/navigation/index.d.ts.map +1 -0
- package/build-types/navigation/item/base-content.d.ts +4 -0
- package/build-types/navigation/item/base-content.d.ts.map +1 -0
- package/build-types/navigation/item/base.d.ts +4 -0
- package/build-types/navigation/item/base.d.ts.map +1 -0
- package/build-types/navigation/item/index.d.ts +5 -0
- package/build-types/navigation/item/index.d.ts.map +1 -0
- package/build-types/navigation/item/use-navigation-tree-item.d.ts +3 -0
- package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +1 -0
- package/build-types/navigation/menu/context.d.ts +8 -0
- package/build-types/navigation/menu/context.d.ts.map +1 -0
- package/build-types/navigation/menu/index.d.ts +5 -0
- package/build-types/navigation/menu/index.d.ts.map +1 -0
- package/build-types/navigation/menu/menu-title-search.d.ts +4 -0
- package/build-types/navigation/menu/menu-title-search.d.ts.map +1 -0
- package/build-types/navigation/menu/menu-title.d.ts +4 -0
- package/build-types/navigation/menu/menu-title.d.ts.map +1 -0
- package/build-types/navigation/menu/search-no-results-found.d.ts +4 -0
- package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -0
- package/build-types/navigation/menu/use-navigation-tree-menu.d.ts +3 -0
- package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +1 -0
- package/build-types/navigation/stories/index.d.ts +18 -0
- package/build-types/navigation/stories/index.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/controlled-state.d.ts +7 -0
- package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/default.d.ts +10 -0
- package/build-types/navigation/stories/utils/default.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/group.d.ts +10 -0
- package/build-types/navigation/stories/utils/group.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts +10 -0
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/more-examples.d.ts +10 -0
- package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -0
- package/build-types/navigation/stories/utils/search.d.ts +10 -0
- package/build-types/navigation/stories/utils/search.d.ts.map +1 -0
- package/build-types/navigation/styles/navigation-styles.d.ts +58 -0
- package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -0
- package/build-types/navigation/test/index.d.ts +2 -0
- package/build-types/navigation/test/index.d.ts.map +1 -0
- package/build-types/navigation/types.d.ts +267 -0
- package/build-types/navigation/types.d.ts.map +1 -0
- package/build-types/navigation/use-create-navigation-tree.d.ts +15 -0
- package/build-types/navigation/use-create-navigation-tree.d.ts.map +1 -0
- package/build-types/navigation/use-navigation-tree-nodes.d.ts +11 -0
- package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +1 -0
- package/build-types/navigation/utils.d.ts +3 -0
- package/build-types/navigation/utils.d.ts.map +1 -0
- package/build-types/palette-edit/index.d.ts +37 -0
- package/build-types/palette-edit/index.d.ts.map +1 -0
- package/build-types/palette-edit/stories/index.d.ts +13 -0
- package/build-types/palette-edit/stories/index.d.ts.map +1 -0
- package/build-types/palette-edit/styles.d.ts +57 -0
- package/build-types/palette-edit/styles.d.ts.map +1 -0
- package/build-types/palette-edit/test/index.d.ts +2 -0
- package/build-types/palette-edit/test/index.d.ts.map +1 -0
- package/build-types/palette-edit/types.d.ts +122 -0
- package/build-types/palette-edit/types.d.ts.map +1 -0
- package/build-types/panel/body.d.ts +9 -0
- package/build-types/panel/body.d.ts.map +1 -0
- package/build-types/panel/header.d.ts +13 -0
- package/build-types/panel/header.d.ts.map +1 -0
- package/build-types/panel/index.d.ts +21 -0
- package/build-types/panel/index.d.ts.map +1 -0
- package/build-types/panel/row.d.ts +12 -0
- package/build-types/panel/row.d.ts.map +1 -0
- package/build-types/panel/stories/index.d.ts +19 -0
- package/build-types/panel/stories/index.d.ts.map +1 -0
- package/build-types/panel/test/body.d.ts +2 -0
- package/build-types/panel/test/body.d.ts.map +1 -0
- package/build-types/panel/test/header.d.ts +2 -0
- package/build-types/panel/test/header.d.ts.map +1 -0
- package/build-types/panel/test/index.d.ts +2 -0
- package/build-types/panel/test/index.d.ts.map +1 -0
- package/build-types/panel/test/row.d.ts +2 -0
- package/build-types/panel/test/row.d.ts.map +1 -0
- package/build-types/panel/types.d.ts +108 -0
- package/build-types/panel/types.d.ts.map +1 -0
- package/build-types/popover/overlay-middlewares.d.ts +9 -0
- package/build-types/popover/overlay-middlewares.d.ts.map +1 -0
- package/build-types/radio-context/index.d.ts +6 -0
- package/build-types/radio-context/index.d.ts.map +1 -0
- package/build-types/spinner/styles/spinner-styles.d.ts +5 -0
- package/build-types/spinner/styles/spinner-styles.d.ts.map +1 -0
- package/build-types/swatch/index.d.ts +5 -0
- package/build-types/swatch/index.d.ts.map +1 -0
- package/build-types/swatch/types.d.ts +11 -0
- package/build-types/swatch/types.d.ts.map +1 -0
- package/build-types/toggle-group-control/component.d.ts +4 -0
- package/build-types/toggle-group-control/component.d.ts.map +1 -0
- package/build-types/toggle-group-control/styles.d.ts +25 -0
- package/build-types/toggle-group-control/styles.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts +9 -0
- package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-button.d.ts +6 -0
- package/build-types/toggle-group-control/toggle-group-control-button.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-context.d.ts +9 -0
- package/build-types/toggle-group-control/toggle-group-control-context.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts +15 -0
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-option.d.ts +4 -0
- package/build-types/toggle-group-control/toggle-group-control-option.d.ts.map +1 -0
- package/build-types/toolbar/index.d.ts +7 -0
- package/build-types/toolbar/index.d.ts.map +1 -0
- package/build-types/toolbar/stories/index.d.ts +14 -0
- package/build-types/toolbar/stories/index.d.ts.map +1 -0
- package/build-types/toolbar/test/index.d.ts +2 -0
- package/build-types/toolbar/test/index.d.ts.map +1 -0
- package/build-types/toolbar/test/toolbar-group.d.ts +2 -0
- package/build-types/toolbar/test/toolbar-group.d.ts.map +1 -0
- package/build-types/toolbar/toolbar/index.d.ts +25 -0
- package/build-types/toolbar/toolbar/index.d.ts.map +1 -0
- package/build-types/toolbar/toolbar/toolbar-container.d.ts +5 -0
- package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -0
- package/build-types/toolbar/toolbar/types.d.ts +15 -0
- package/build-types/toolbar/toolbar/types.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-button/index.d.ts +166 -0
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +8 -0
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-button/types.d.ts +45 -0
- package/build-types/toolbar/toolbar-button/types.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-context/index.d.ts +8 -0
- package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +3 -0
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-group/index.d.ts +39 -0
- package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +7 -0
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +7 -0
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-item/index.d.ts +9 -0
- package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -0
- package/build-types/tools-panel/stories/index.d.ts +17 -0
- package/build-types/tools-panel/stories/index.d.ts.map +1 -0
- package/build-types/tools-panel/test/index.d.ts +2 -0
- package/build-types/tools-panel/test/index.d.ts.map +1 -0
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tree-grid/cell.d.ts +13 -0
- package/build-types/tree-grid/cell.d.ts.map +1 -0
- package/build-types/tree-grid/index.d.ts +70 -0
- package/build-types/tree-grid/index.d.ts.map +1 -0
- package/build-types/tree-grid/item.d.ts +12 -0
- package/build-types/tree-grid/item.d.ts.map +1 -0
- package/build-types/tree-grid/roving-tab-index-context.d.ts +10 -0
- package/build-types/tree-grid/roving-tab-index-context.d.ts.map +1 -0
- package/build-types/tree-grid/roving-tab-index-item.d.ts +5 -0
- package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -0
- package/build-types/tree-grid/roving-tab-index.d.ts +10 -0
- package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -0
- package/build-types/tree-grid/row.d.ts +12 -0
- package/build-types/tree-grid/row.d.ts.map +1 -0
- package/build-types/tree-grid/stories/index.d.ts +13 -0
- package/build-types/tree-grid/stories/index.d.ts.map +1 -0
- package/build-types/tree-grid/test/cell.d.ts +2 -0
- package/build-types/tree-grid/test/cell.d.ts.map +1 -0
- package/build-types/tree-grid/test/index.d.ts +2 -0
- package/build-types/tree-grid/test/index.d.ts.map +1 -0
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts +2 -0
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +1 -0
- package/build-types/tree-grid/test/roving-tab-index.d.ts +2 -0
- package/build-types/tree-grid/test/roving-tab-index.d.ts.map +1 -0
- package/build-types/tree-grid/test/row.d.ts +2 -0
- package/build-types/tree-grid/test/row.d.ts.map +1 -0
- package/build-types/tree-grid/types.d.ts +116 -0
- package/build-types/tree-grid/types.d.ts.map +1 -0
- package/build-types/ui/color-picker/color-display.d.ts +13 -0
- package/build-types/ui/color-picker/color-display.d.ts.map +1 -0
- package/build-types/ui/color-picker/color-input.d.ts +13 -0
- package/build-types/ui/color-picker/color-input.d.ts.map +1 -0
- package/build-types/ui/color-picker/component.d.ts +12 -0
- package/build-types/ui/color-picker/component.d.ts.map +1 -0
- package/build-types/ui/color-picker/hex-input.d.ts +12 -0
- package/build-types/ui/color-picker/hex-input.d.ts.map +1 -0
- package/build-types/ui/color-picker/hsl-input.d.ts +12 -0
- package/build-types/ui/color-picker/hsl-input.d.ts.map +1 -0
- package/build-types/ui/color-picker/index.d.ts +2 -0
- package/build-types/ui/color-picker/index.d.ts.map +1 -0
- package/build-types/ui/color-picker/input-with-slider.d.ts +11 -0
- package/build-types/ui/color-picker/input-with-slider.d.ts.map +1 -0
- package/build-types/ui/color-picker/legacy-adapter.d.ts +5 -0
- package/build-types/ui/color-picker/legacy-adapter.d.ts.map +1 -0
- package/build-types/ui/color-picker/picker.d.ts +12 -0
- package/build-types/ui/color-picker/picker.d.ts.map +1 -0
- package/build-types/ui/color-picker/rgb-input.d.ts +12 -0
- package/build-types/ui/color-picker/rgb-input.d.ts.map +1 -0
- package/build-types/ui/color-picker/styles.d.ts +76 -0
- package/build-types/ui/color-picker/styles.d.ts.map +1 -0
- package/build-types/ui/color-picker/types.d.ts +2 -0
- package/build-types/ui/color-picker/types.d.ts.map +1 -0
- package/build-types/ui/color-picker/use-deprecated-props.d.ts +50 -0
- package/build-types/ui/color-picker/use-deprecated-props.d.ts.map +1 -0
- package/build-types/ui/utils/create-component.d.ts +21 -0
- package/build-types/ui/utils/create-component.d.ts.map +1 -0
- package/build-types/utils/hooks/use-combined-ref.d.ts +8 -0
- package/build-types/utils/hooks/use-combined-ref.d.ts.map +1 -0
- package/build-types/utils/hooks/use-jump-step.d.ts +25 -0
- package/build-types/utils/hooks/use-jump-step.d.ts.map +1 -0
- package/build-types/utils/keyboard.d.ts +12 -0
- package/build-types/utils/keyboard.d.ts.map +1 -0
- package/build-types/utils/use-deprecated-props.d.ts +9 -0
- package/build-types/utils/use-deprecated-props.d.ts.map +1 -0
- package/build-types/v-stack/stories/e2e/index.d.ts +9 -0
- package/build-types/v-stack/stories/e2e/index.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/tooltip/index.js +11 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SelectWrapper: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexBlockProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "display" | "children" | "as" | keyof import("react").RefAttributes<any>> & {
|
|
3
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const AccessoryWrapper: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexBlockProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "display" | "children" | "as" | keyof import("react").RefAttributes<any>> & {
|
|
8
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
//# sourceMappingURL=custom-gradient-picker-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-gradient-picker-styles.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/styles/custom-gradient-picker-styles.tsx"],"names":[],"mappings":";AASA,eAAO,MAAM,aAAa;;;;UAEzB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;UAE5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/test/serializer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* External dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type gradientParser from 'gradient-parser';
|
|
6
|
+
export type CustomGradientPickerProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Start opting in to the new margin-free styles that will become the default
|
|
9
|
+
* in a future version, currently scheduled to be WordPress 6.4. (The prop
|
|
10
|
+
* can be safely removed once this happens.)
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
__nextHasNoMargin?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The current value of the gradient. Pass a css gradient string (See default value for example).
|
|
17
|
+
* Optionally pass in a `null` value to specify no gradient is currently selected.
|
|
18
|
+
*
|
|
19
|
+
* @default 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)'
|
|
20
|
+
*/
|
|
21
|
+
value?: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The function called when a new gradient has been defined. It is passed to
|
|
24
|
+
* the `currentGradient` as an argument.
|
|
25
|
+
*/
|
|
26
|
+
onChange: (currentGradient: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this is rendered in the sidebar.
|
|
29
|
+
*
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
__experimentalIsRenderedInSidebar?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type GradientAnglePickerProps = {
|
|
35
|
+
gradientAST: gradientParser.LinearGradientNode | gradientParser.RepeatingLinearGradientNode;
|
|
36
|
+
hasGradient: boolean;
|
|
37
|
+
onChange: (gradient: string) => void;
|
|
38
|
+
};
|
|
39
|
+
export type GradientTypePickerProps = {
|
|
40
|
+
gradientAST: gradientParser.GradientNode;
|
|
41
|
+
hasGradient: boolean;
|
|
42
|
+
onChange: (gradient: string) => void;
|
|
43
|
+
};
|
|
44
|
+
export type ControlPoint = {
|
|
45
|
+
color: string;
|
|
46
|
+
position: number;
|
|
47
|
+
};
|
|
48
|
+
export type CustomGradientBarProps = {
|
|
49
|
+
background: React.CSSProperties['background'];
|
|
50
|
+
hasGradient: boolean;
|
|
51
|
+
value: ControlPoint[];
|
|
52
|
+
onChange: (newControlPoints: ControlPoint[]) => void;
|
|
53
|
+
disableInserter?: boolean;
|
|
54
|
+
disableAlpha?: boolean;
|
|
55
|
+
__experimentalIsRenderedInSidebar?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type CustomGradientBarIdleState = {
|
|
58
|
+
id: 'IDLE';
|
|
59
|
+
};
|
|
60
|
+
type CustomGradientBarMovingInserterState = {
|
|
61
|
+
id: 'MOVING_INSERTER';
|
|
62
|
+
insertPosition: number;
|
|
63
|
+
};
|
|
64
|
+
type CustomGradientBarInsertingControlPointState = {
|
|
65
|
+
id: 'INSERTING_CONTROL_POINT';
|
|
66
|
+
insertPosition: number;
|
|
67
|
+
};
|
|
68
|
+
type CustomGradientBarMovingControlPointState = {
|
|
69
|
+
id: 'MOVING_CONTROL_POINT';
|
|
70
|
+
};
|
|
71
|
+
export type CustomGradientBarReducerState = CustomGradientBarIdleState | CustomGradientBarMovingInserterState | CustomGradientBarInsertingControlPointState | CustomGradientBarMovingControlPointState;
|
|
72
|
+
export type CustomGradientBarReducerAction = {
|
|
73
|
+
type: 'MOVE_INSERTER';
|
|
74
|
+
insertPosition: number;
|
|
75
|
+
} | {
|
|
76
|
+
type: 'STOP_INSERTER_MOVE';
|
|
77
|
+
} | {
|
|
78
|
+
type: 'OPEN_INSERTER';
|
|
79
|
+
} | {
|
|
80
|
+
type: 'CLOSE_INSERTER';
|
|
81
|
+
} | {
|
|
82
|
+
type: 'START_CONTROL_CHANGE';
|
|
83
|
+
} | {
|
|
84
|
+
type: 'STOP_CONTROL_CHANGE';
|
|
85
|
+
};
|
|
86
|
+
export type ControlPointButtonProps = {
|
|
87
|
+
isOpen: boolean;
|
|
88
|
+
position: ControlPoint['position'];
|
|
89
|
+
color: string;
|
|
90
|
+
};
|
|
91
|
+
export type ControlPointsProps = {
|
|
92
|
+
disableRemove: boolean;
|
|
93
|
+
disableAlpha: boolean;
|
|
94
|
+
gradientPickerDomRef: React.RefObject<HTMLDivElement>;
|
|
95
|
+
ignoreMarkerPosition?: number;
|
|
96
|
+
value: ControlPoint[];
|
|
97
|
+
onChange: (controlPoints: ControlPoint[]) => void;
|
|
98
|
+
onStartControlPointChange: () => void;
|
|
99
|
+
onStopControlPointChange: () => void;
|
|
100
|
+
__experimentalIsRenderedInSidebar: boolean;
|
|
101
|
+
};
|
|
102
|
+
export type ControlPointMoveState = {
|
|
103
|
+
initialPosition: number;
|
|
104
|
+
index: number;
|
|
105
|
+
significantMoveHappened: boolean;
|
|
106
|
+
listenersActivated: boolean;
|
|
107
|
+
};
|
|
108
|
+
export type InsertPointProps = {
|
|
109
|
+
value: ControlPoint[];
|
|
110
|
+
onChange: (controlPoints: ControlPoint[]) => void;
|
|
111
|
+
onOpenInserter: () => void;
|
|
112
|
+
onCloseInserter: () => void;
|
|
113
|
+
insertPosition: number;
|
|
114
|
+
disableAlpha: boolean;
|
|
115
|
+
__experimentalIsRenderedInSidebar: boolean;
|
|
116
|
+
};
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import gradientParser from 'gradient-parser';
|
|
5
|
+
import type { ControlPoint } from './types';
|
|
6
|
+
export declare function getLinearGradientRepresentation(gradientAST: gradientParser.GradientNode): string;
|
|
7
|
+
export declare function getGradientAstWithDefault(value?: string | null): {
|
|
8
|
+
gradientAST: gradientParser.GradientNode;
|
|
9
|
+
hasGradient: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function getGradientAstWithControlPoints(gradientAST: gradientParser.GradientNode, newControlPoints: ControlPoint[]): gradientParser.GradientNode;
|
|
12
|
+
export declare function getStopCssColor(colorStop: gradientParser.ColorStop): string;
|
|
13
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAa7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,wBAAgB,+BAA+B,CAC9C,WAAW,EAAE,cAAc,CAAC,YAAY,UAOxC;AAMD,wBAAgB,yBAAyB,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;;;EA6C/D;AAED,wBAAgB,+BAA+B,CAC9C,WAAW,EAAE,cAAc,CAAC,YAAY,EACxC,gBAAgB,EAAE,YAAY,EAAE,+BAmBhC;AAED,wBAAgB,eAAe,CAAE,SAAS,EAAE,cAAc,CAAC,SAAS,UAcnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/date-time/date/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import moment from 'moment';
|
|
5
|
+
/**
|
|
6
|
+
* Create a Moment object from a date string. With no date supplied, default to
|
|
7
|
+
* a Moment object representing now. If a null value is passed, return a null
|
|
8
|
+
* value.
|
|
9
|
+
*
|
|
10
|
+
* @param [date] Date representing the currently selected
|
|
11
|
+
* date or null to signify no selection.
|
|
12
|
+
* @return Moment object for selected date or null.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getMomentDate: (date?: string | number | Date | null | undefined) => moment.Moment | null;
|
|
15
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/date-time/date/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,4EAKzB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DatePickerProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* DatePicker is a React component that renders a calendar for date selection.
|
|
5
|
+
*
|
|
6
|
+
* ```jsx
|
|
7
|
+
* import { DatePicker } from '@wordpress/components';
|
|
8
|
+
* import { useState } from '@wordpress/element';
|
|
9
|
+
*
|
|
10
|
+
* const MyDatePicker = () => {
|
|
11
|
+
* const [ date, setDate ] = useState( new Date() );
|
|
12
|
+
*
|
|
13
|
+
* return (
|
|
14
|
+
* <DatePicker
|
|
15
|
+
* currentDate={ date }
|
|
16
|
+
* onChange={ ( newDate ) => setDate( newDate ) }
|
|
17
|
+
* />
|
|
18
|
+
* );
|
|
19
|
+
* };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function DatePicker({ currentDate, onChange, events, isInvalidDate, onMonthPreviewed, }: DatePickerProps): JSX.Element;
|
|
23
|
+
export default DatePicker;
|
|
24
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/date-time/date.tsx"],"names":[],"mappings":";AAsBA,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,SAAS,CAAC;AAuDnE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAE,EAC3B,WAAW,EACX,QAAQ,EACR,MAAM,EACN,aAAa,EACb,gBAAgB,GAChB,EAAE,eAAe,eAwGjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import DateTimePicker from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof DateTimePicker>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof DateTimePicker>;
|
|
12
|
+
export declare const WithEvents: ComponentStory<typeof DateTimePicker>;
|
|
13
|
+
export declare const WithInvalidDates: ComponentStory<typeof DateTimePicker>;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/date-time/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,cAAc,MAAM,IAAI,CAAC;AAGhC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,cAAc,CAW/C,CAAC;AACF,eAAe,IAAI,CAAC;AAuBpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,cAAc,CAE1D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,cAAc,CACtC,OAAO,cAAc,CACC,CAAC;AAWxB,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAC5C,OAAO,cAAc,CACC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/date.tsx"],"names":[],"mappings":"AAMA,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/time.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TimePickerProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* TimePicker is a React component that renders a clock for time selection.
|
|
5
|
+
*
|
|
6
|
+
* ```jsx
|
|
7
|
+
* import { TimePicker } from '@wordpress/components';
|
|
8
|
+
* import { useState } from '@wordpress/element';
|
|
9
|
+
*
|
|
10
|
+
* const MyTimePicker = () => {
|
|
11
|
+
* const [ time, setTime ] = useState( new Date() );
|
|
12
|
+
*
|
|
13
|
+
* return (
|
|
14
|
+
* <TimePicker
|
|
15
|
+
* currentTime={ date }
|
|
16
|
+
* onChange={ ( newTime ) => setTime( newTime ) }
|
|
17
|
+
* is12Hour
|
|
18
|
+
* />
|
|
19
|
+
* );
|
|
20
|
+
* };
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function TimePicker({ is12Hour, currentTime, onChange, }: TimePickerProps): JSX.Element;
|
|
24
|
+
export default TimePicker;
|
|
25
|
+
//# sourceMappingURL=time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../src/date-time/time.tsx"],"names":[],"mappings":";AA2BA,OAAO,KAAK,EAAmC,eAAe,EAAE,MAAM,SAAS,CAAC;AAuDhF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAE,EAC3B,QAAQ,EACR,WAAW,EACX,QAAQ,GACR,EAAE,eAAe,eAoNjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone.d.ts","sourceRoot":"","sources":["../../src/date-time/timezone.tsx"],"names":[],"mappings":"AAWA;;;GAGG;AACH,QAAA,MAAM,QAAQ,0BA4Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DimensionControlProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* `DimensionControl` is a component designed to provide a UI to control spacing and/or dimensions.
|
|
5
|
+
*
|
|
6
|
+
* This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
|
|
7
|
+
*
|
|
8
|
+
* ```jsx
|
|
9
|
+
* import { useState } from 'react';
|
|
10
|
+
* import { __experimentalDimensionControl as DimensionControl } from '@wordpress/components';
|
|
11
|
+
*
|
|
12
|
+
* export default function MyCustomDimensionControl() {
|
|
13
|
+
* const [ paddingSize, setPaddingSize ] = useState( '' );
|
|
14
|
+
*
|
|
15
|
+
* return (
|
|
16
|
+
* <DimensionControl
|
|
17
|
+
* label={ 'Padding' }
|
|
18
|
+
* icon={ 'desktop' }
|
|
19
|
+
* onChange={ ( value ) => setPaddingSize( value ) }
|
|
20
|
+
* value={ paddingSize }
|
|
21
|
+
* />
|
|
22
|
+
* );
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function DimensionControl(props: DimensionControlProps): JSX.Element;
|
|
27
|
+
export default DimensionControl;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dimension-control/index.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAQ,MAAM,SAAS,CAAC;AAG3D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,qBAAqB,eAwD7D;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sizes
|
|
3
|
+
*
|
|
4
|
+
* defines the sizes used in dimension controls
|
|
5
|
+
* all hardcoded `size` values are based on the value of
|
|
6
|
+
* the Sass variable `$block-padding` from
|
|
7
|
+
* `packages/block-editor/src/components/dimension-control/sizes.js`.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Internal dependencies
|
|
11
|
+
*/
|
|
12
|
+
import type { Size } from './types';
|
|
13
|
+
/**
|
|
14
|
+
* Finds the correct size object from the provided sizes
|
|
15
|
+
* table by size slug (eg: `medium`)
|
|
16
|
+
*
|
|
17
|
+
* @param sizes containing objects for each size definition.
|
|
18
|
+
* @param slug a string representation of the size (eg: `medium`).
|
|
19
|
+
*/
|
|
20
|
+
export declare const findSizeBySlug: (sizes: Size[], slug: string) => Size | undefined;
|
|
21
|
+
declare const _default: {
|
|
22
|
+
name: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
}[];
|
|
25
|
+
export default _default;
|
|
26
|
+
//# sourceMappingURL=sizes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/dimension-control/sizes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,UAAY,IAAI,EAAE,QAAQ,MAAM,qBACd,CAAC;;;;;AAE9C,wBAqBE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { DimensionControl } from '..';
|
|
9
|
+
declare const _default: ComponentMeta<typeof DimensionControl>;
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: ComponentStory<typeof DimensionControl>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dimension-control/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;;AAQtC,wBAqB8C;AAM9C,eAAO,MAAM,OAAO,yCAAsB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { IconType } from '../icon';
|
|
5
|
+
export type Size = {
|
|
6
|
+
/**
|
|
7
|
+
* Human-readable name of the size.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Short unique identifying name of the size.
|
|
12
|
+
*/
|
|
13
|
+
slug: string;
|
|
14
|
+
};
|
|
15
|
+
export type DimensionControlProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Label for the control.
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* An array of sizes to choose from.
|
|
22
|
+
*
|
|
23
|
+
* @default DEFAULT_SIZES
|
|
24
|
+
*
|
|
25
|
+
* @see packages/components/src/dimension-control/sizes.ts
|
|
26
|
+
*/
|
|
27
|
+
sizes?: Size[];
|
|
28
|
+
/**
|
|
29
|
+
* Optional icon rendered in front on the label.
|
|
30
|
+
*/
|
|
31
|
+
icon?: IconType;
|
|
32
|
+
/**
|
|
33
|
+
* Used to externally control the current value of the control.
|
|
34
|
+
*/
|
|
35
|
+
value?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Function called with the control's internal state changes. The `value` property is equal to a given size slug.
|
|
38
|
+
*/
|
|
39
|
+
onChange?: (value?: string) => void;
|
|
40
|
+
/**
|
|
41
|
+
* CSS class applied to `SelectControl`.
|
|
42
|
+
*
|
|
43
|
+
* @default ''
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dimension-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,IAAI,GAAG;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,KAAK,CAAC,EAAE,MAAM,KAAM,IAAI,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColorListPickerProps } from './types';
|
|
3
|
+
declare function ColorListPicker({ colors, labels, value, disableCustomColors, enableAlpha, onChange, }: ColorListPickerProps): JSX.Element;
|
|
4
|
+
export default ColorListPicker;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/color-list-picker/index.tsx"],"names":[],"mappings":";AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,SAAS,CAAC;AA4CtE,iBAAS,eAAe,CAAE,EACzB,MAAM,EACN,MAAM,EACN,KAAU,EACV,mBAAmB,EACnB,WAAW,EACX,QAAQ,GACR,EAAE,oBAAoB,eAqBtB;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { CSSProperties } from 'react';
|
|
5
|
+
export type ColorListPickerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* A list of predefined colors. Each color is an object with a `name` and a
|
|
8
|
+
* `color` value.
|
|
9
|
+
* The `name` is a string used to identify the color in the UI.
|
|
10
|
+
* The `color` is a valid CSS color string.
|
|
11
|
+
*/
|
|
12
|
+
colors: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
color: NonNullable<CSSProperties['color']>;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* A list of labels for each of the options displayed in the UI.
|
|
18
|
+
*/
|
|
19
|
+
labels: Array<string>;
|
|
20
|
+
/**
|
|
21
|
+
* An array containing the currently selected colors.
|
|
22
|
+
*/
|
|
23
|
+
value?: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Controls whether the custom color picker is displayed.
|
|
26
|
+
*/
|
|
27
|
+
disableCustomColors?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Controls whether the ColorPalette should show an alpha channel control.
|
|
30
|
+
*/
|
|
31
|
+
enableAlpha?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* A function that receives the updated color value.
|
|
34
|
+
*/
|
|
35
|
+
onChange: (newValue: Array<string | undefined>) => void;
|
|
36
|
+
};
|
|
37
|
+
export type ColorOptionProps = Pick<ColorListPickerProps, 'colors' | 'disableCustomColors' | 'enableAlpha'> & {
|
|
38
|
+
label: ColorListPickerProps['labels'][number];
|
|
39
|
+
value: string | undefined;
|
|
40
|
+
onChange: (newValue: string | undefined) => void;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/color-list-picker/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IAClC;;;;;OAKG;IACH,MAAM,EAAE,KAAK,CAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,WAAW,CAAE,aAAa,CAAE,OAAO,CAAE,CAAE,CAAC;KAC/C,CAAE,CAAC;IACJ;;OAEG;IACH,MAAM,EAAE,KAAK,CAAE,MAAM,CAAE,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAE,MAAM,CAAE,CAAC;IACxB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,CAAE,QAAQ,EAAE,KAAK,CAAE,MAAM,GAAG,SAAS,CAAE,KAAM,IAAI,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,oBAAoB,EACpB,QAAQ,GAAG,qBAAqB,GAAG,aAAa,CAChD,GAAG;IACH,KAAK,EAAE,oBAAoB,CAAE,QAAQ,CAAE,CAAE,MAAM,CAAE,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,CAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAM,IAAI,CAAC;CACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-duotone-bar.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/custom-duotone-bar.tsx"],"names":[],"mappings":";AAaA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,KAAK,EACL,QAAQ,GACR,EAAE;IACF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAM,IAAI,CAAC;CACvC,eAiBA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DuotonePickerProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* ```jsx
|
|
5
|
+
* import { DuotonePicker, DuotoneSwatch } from '@wordpress/components';
|
|
6
|
+
* import { useState } from '@wordpress/element';
|
|
7
|
+
*
|
|
8
|
+
* const DUOTONE_PALETTE = [
|
|
9
|
+
* { colors: [ '#8c00b7', '#fcff41' ], name: 'Purple and yellow', slug: 'purple-yellow' },
|
|
10
|
+
* { colors: [ '#000097', '#ff4747' ], name: 'Blue and red', slug: 'blue-red' },
|
|
11
|
+
* ];
|
|
12
|
+
*
|
|
13
|
+
* const COLOR_PALETTE = [
|
|
14
|
+
* { color: '#ff4747', name: 'Red', slug: 'red' },
|
|
15
|
+
* { color: '#fcff41', name: 'Yellow', slug: 'yellow' },
|
|
16
|
+
* { color: '#000097', name: 'Blue', slug: 'blue' },
|
|
17
|
+
* { color: '#8c00b7', name: 'Purple', slug: 'purple' },
|
|
18
|
+
* ];
|
|
19
|
+
*
|
|
20
|
+
* const Example = () => {
|
|
21
|
+
* const [ duotone, setDuotone ] = useState( [ '#000000', '#ffffff' ] );
|
|
22
|
+
* return (
|
|
23
|
+
* <>
|
|
24
|
+
* <DuotonePicker
|
|
25
|
+
* duotonePalette={ DUOTONE_PALETTE }
|
|
26
|
+
* colorPalette={ COLOR_PALETTE }
|
|
27
|
+
* value={ duotone }
|
|
28
|
+
* onChange={ setDuotone }
|
|
29
|
+
* />
|
|
30
|
+
* <DuotoneSwatch values={ duotone } />
|
|
31
|
+
* </>
|
|
32
|
+
* );
|
|
33
|
+
* };
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare function DuotonePicker({ clearable, unsetable, colorPalette, duotonePalette, disableCustomColors, disableCustomDuotone, value, onChange, }: DuotonePickerProps): JSX.Element;
|
|
37
|
+
export default DuotonePicker;
|
|
38
|
+
//# sourceMappingURL=duotone-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-picker.tsx"],"names":[],"mappings":";AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,iBAAS,aAAa,CAAE,EACvB,SAAgB,EAChB,SAAgB,EAChB,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,EACL,QAAQ,GACR,EAAE,kBAAkB,eA2GpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duotone-swatch.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/duotone-swatch.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,iBAAS,aAAa,CAAE,EAAE,MAAM,EAAE,EAAE,kBAAkB,eAQrD;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/duotone-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { DuotonePicker } from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof DuotonePicker>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof DuotonePicker>;
|
|
12
|
+
//# sourceMappingURL=duotone-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duotone-picker.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/stories/duotone-picker.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGnC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,aAAa,CAW9C,CAAC;AACF,eAAe,IAAI,CAAC;AAwCpB,eAAO,MAAM,OAAO,sCAAsB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { DuotoneSwatch } from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof DuotoneSwatch>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof DuotoneSwatch>;
|
|
12
|
+
export declare const SingleColor: ComponentStory<typeof DuotoneSwatch>;
|
|
13
|
+
export declare const Null: ComponentStory<typeof DuotoneSwatch>;
|
|
14
|
+
//# sourceMappingURL=duotone-swatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duotone-swatch.d.ts","sourceRoot":"","sources":["../../../src/duotone-picker/stories/duotone-swatch.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,aAAa,CAO9C,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,sCAAsB,CAAC;AAK3C,eAAO,MAAM,WAAW,sCAAsB,CAAC;AAK/C,eAAO,MAAM,IAAI,sCAAsB,CAAC"}
|