@wordpress/components 23.3.6 → 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-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/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/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WordPressComponentProps } from '../ui/context';
|
|
3
|
+
import type { AngleCircleProps } from './types';
|
|
4
|
+
declare function AngleCircle({ value, onChange, ...props }: WordPressComponentProps<AngleCircleProps, 'div'>): JSX.Element;
|
|
5
|
+
export default AngleCircle;
|
|
6
|
+
//# sourceMappingURL=angle-circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angle-circle.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/angle-circle.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQhD,iBAAS,WAAW,CAAE,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,gBAAgB,EAAE,KAAK,CAAE,eA8EpD;AAmBD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AnglePickerControlProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* `AnglePickerControl` is a React component to render a UI that allows users to
|
|
5
|
+
* pick an angle. Users can choose an angle in a visual UI with the mouse by
|
|
6
|
+
* dragging an angle indicator inside a circle or by directly inserting the
|
|
7
|
+
* desired angle in a text field.
|
|
8
|
+
*
|
|
9
|
+
* ```jsx
|
|
10
|
+
* import { useState } from '@wordpress/element';
|
|
11
|
+
* import { AnglePickerControl } from '@wordpress/components';
|
|
12
|
+
*
|
|
13
|
+
* function Example() {
|
|
14
|
+
* const [ angle, setAngle ] = useState( 0 );
|
|
15
|
+
* return (
|
|
16
|
+
* <AnglePickerControl
|
|
17
|
+
* value={ angle }
|
|
18
|
+
* onChange={ setAngle }
|
|
19
|
+
* __nextHasNoMarginBottom
|
|
20
|
+
* </>
|
|
21
|
+
* );
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const AnglePickerControl: import("react").ForwardRefExoticComponent<AnglePickerControlProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as" | keyof AnglePickerControlProps> & {
|
|
26
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
27
|
+
} & import("react").RefAttributes<any>>;
|
|
28
|
+
export default AnglePickerControl;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/index.tsx"],"names":[],"mappings":";AAuBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA+EvD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB;;uCAA8C,CAAC;AAE9E,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* External dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { AnglePickerControl } from '..';
|
|
10
|
+
declare const meta: ComponentMeta<typeof AnglePickerControl>;
|
|
11
|
+
export default meta;
|
|
12
|
+
export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<import("../types").AnglePickerControlProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as" | keyof import("../types").AnglePickerControlProps> & {
|
|
13
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
14
|
+
} & import("react").RefAttributes<any>>>;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/stories/index.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,kBAAkB,CAcnD,CAAC;AAEF,eAAe,IAAI,CAAC;AAsBpB,eAAO,MAAM,OAAO;;wCAAkC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AnglePickerControlProps } from '../types';
|
|
3
|
+
export declare const Root: import("@emotion/styled").StyledComponent<import("../../flex/types").FlexProps & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../flex/types").FlexProps> & {
|
|
4
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
} & Pick<AnglePickerControlProps, "__nextHasNoMarginBottom">, {}, {}>;
|
|
8
|
+
export declare const CircleRoot: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const CircleIndicatorWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const CircleIndicator: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const UnitText: import("@emotion/styled").StyledComponent<import("../../text/types").Props & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>>, "as" | keyof import("react").RefAttributes<any> | keyof import("../../text/types").Props> & {
|
|
21
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
//# sourceMappingURL=angle-picker-control-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angle-picker-control-styles.d.ts","sourceRoot":"","sources":["../../../src/angle-picker-control/styles/angle-picker-control-styles.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAexD,eAAO,MAAM,IAAI;;;;qEAEhB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAYtB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;yGASlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAW3B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;UAGpB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type AnglePickerControlProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Start opting into the new margin-free styles that will become the default
|
|
4
|
+
* in a future version.
|
|
5
|
+
*
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
__nextHasNoMarginBottom?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Label to use for the angle picker.
|
|
11
|
+
*
|
|
12
|
+
* @default __( 'Angle' )
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* A function that receives the new value of the input.
|
|
17
|
+
*/
|
|
18
|
+
onChange: (value: number) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The current value of the input. The value represents an angle in degrees
|
|
21
|
+
* and should be a value between 0 and 360.
|
|
22
|
+
*/
|
|
23
|
+
value: number | string;
|
|
24
|
+
};
|
|
25
|
+
export type AngleCircleProps = Pick<AnglePickerControlProps, 'value' | 'onChange'>;
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/angle-picker-control/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,uBAAuB,EACvB,OAAO,GAAG,UAAU,CACpB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { Animate } from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof Animate>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof Animate>;
|
|
12
|
+
export declare const AppearTopLeft: ComponentStory<typeof Animate>;
|
|
13
|
+
export declare const AppearTopRight: ComponentStory<typeof Animate>;
|
|
14
|
+
export declare const AppearBottomLeft: ComponentStory<typeof Animate>;
|
|
15
|
+
export declare const AppearBottomRight: ComponentStory<typeof Animate>;
|
|
16
|
+
export declare const Loading: ComponentStory<typeof Animate>;
|
|
17
|
+
export declare const SlideIn: ComponentStory<typeof Animate>;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animate/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAG7B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,OAAO,CAOxC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAS7E,eAAO,MAAM,aAAa,EAAE,cAAc,CAAE,OAAO,OAAO,CAEzD,CAAC;AAUF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAE,OAAO,OAAO,CAE1D,CAAC;AAUF,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAE,OAAO,OAAO,CAE5D,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,OAAO,CAC1C,CAAC;AAWrB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC;AAU7E,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,OAAO,CAAwB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type AppearOptions = {
|
|
3
|
+
type: 'appear';
|
|
4
|
+
origin?: 'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right';
|
|
5
|
+
};
|
|
6
|
+
type SlideInOptions = {
|
|
7
|
+
type: 'slide-in';
|
|
8
|
+
origin?: 'left' | 'right';
|
|
9
|
+
};
|
|
10
|
+
type LoadingOptions = {
|
|
11
|
+
type: 'loading';
|
|
12
|
+
origin?: never;
|
|
13
|
+
};
|
|
14
|
+
type NoAnimationOptions = {
|
|
15
|
+
type?: never;
|
|
16
|
+
origin?: never;
|
|
17
|
+
};
|
|
18
|
+
export type GetAnimateOptions = AppearOptions | SlideInOptions | LoadingOptions | NoAnimationOptions;
|
|
19
|
+
type DistributiveTypeAndOptions<T extends {
|
|
20
|
+
type?: any;
|
|
21
|
+
}> = T extends any ? Pick<T, 'type'> & {
|
|
22
|
+
options?: Omit<T, 'type'>;
|
|
23
|
+
} : never;
|
|
24
|
+
export type AnimateProps = DistributiveTypeAndOptions<GetAnimateOptions> & {
|
|
25
|
+
children: (props: {
|
|
26
|
+
className?: string;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/animate/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EACJ,KAAK,GACL,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,CAAC;CAClB,CAAC;AACF,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AACtE,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC1D,KAAK,kBAAkB,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAC1B,aAAa,GACb,cAAc,GACd,cAAc,GACd,kBAAkB,CAAC;AAItB,KAAK,0BAA0B,CAAE,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,IAAK,CAAC,SAAS,GAAG,GACxE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,GAAG;IAAE,OAAO,CAAC,EAAE,IAAI,CAAE,CAAC,EAAE,MAAM,CAAE,CAAA;CAAE,GACnD,KAAK,CAAC;AAET,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAE,iBAAiB,CAAE,GAAG;IAC5E,QAAQ,EAAE,CAAE,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAAM,GAAG,CAAC,OAAO,CAAC;CAC3D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AutocompleterUIProps, WPCompleter } from './types';
|
|
3
|
+
export declare function getAutoCompleterUI(autocompleter: WPCompleter): ({ filterValue, instanceId, listBoxId, className, selectedIndex, onChangeOptions, onSelect, onReset, reset, contentRef, }: AutocompleterUIProps) => JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=autocompleter-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocompleter-ui.d.ts","sourceRoot":"","sources":["../../src/autocomplete/autocompleter-ui.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEjE,wBAAgB,kBAAkB,CAAE,aAAa,EAAE,WAAW,8HAgB1D,oBAAoB,wBA8FvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-default-use-items.d.ts","sourceRoot":"","sources":["../../src/autocomplete/get-default-use-items.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAqB,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAmC3E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,aAAa,EAAE,WAAW,iBAC/C,MAAM,8BAsE5B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AutocompleteProps, UseAutocompleteProps } from './types';
|
|
3
|
+
export declare function useAutocomplete({ record, onChange, onReplace, completers, contentRef, }: UseAutocompleteProps): {
|
|
4
|
+
listBoxId: string | undefined;
|
|
5
|
+
activeId: string | null;
|
|
6
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
7
|
+
popover: false | JSX.Element | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function useAutocompleteProps(options: UseAutocompleteProps): {
|
|
10
|
+
ref: (instance: HTMLElement | null) => void;
|
|
11
|
+
children?: undefined;
|
|
12
|
+
'aria-autocomplete'?: undefined;
|
|
13
|
+
'aria-owns'?: undefined;
|
|
14
|
+
'aria-activedescendant'?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
ref: (instance: HTMLElement | null) => void;
|
|
17
|
+
children: false | JSX.Element | null;
|
|
18
|
+
'aria-autocomplete': string | undefined;
|
|
19
|
+
'aria-owns': string | undefined;
|
|
20
|
+
'aria-activedescendant': string | null;
|
|
21
|
+
};
|
|
22
|
+
export default function Autocomplete({ children, isSelected, ...options }: AutocompleteProps): JSX.Element;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/autocomplete/index.tsx"],"names":[],"mappings":";AAoCA,OAAO,KAAK,EACX,iBAAiB,EAMjB,oBAAoB,EAEpB,MAAM,SAAS,CAAC;AAIjB,wBAAgB,eAAe,CAAE,EAChC,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,GACV,EAAE,oBAAoB;;;uBAuHS,aAAa;;EA6M5C;AAeD,wBAAgB,oBAAoB,CAAE,OAAO,EAAE,oBAAoB;;;;;;;;;;;;EAsClE;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EACrC,QAAQ,EACR,UAAU,EACV,GAAG,OAAO,EACV,EAAE,iBAAiB,eAQnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/autocomplete/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* WordPress dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { WPElement } from '@wordpress/element';
|
|
6
|
+
import type { RichTextValue } from '@wordpress/rich-text';
|
|
7
|
+
/**
|
|
8
|
+
* Internal dependencies
|
|
9
|
+
*/
|
|
10
|
+
import type { useAutocomplete } from '.';
|
|
11
|
+
export type InsertOption = {
|
|
12
|
+
action: 'insert-at-caret';
|
|
13
|
+
value: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export type ReplaceOption = {
|
|
16
|
+
action: 'replace';
|
|
17
|
+
value: RichTextValue;
|
|
18
|
+
};
|
|
19
|
+
export type OptionCompletion = React.ReactNode | InsertOption | ReplaceOption;
|
|
20
|
+
type OptionLabel = string | WPElement | Array<string | WPElement>;
|
|
21
|
+
export type KeyedOption = {
|
|
22
|
+
key: string;
|
|
23
|
+
value: any;
|
|
24
|
+
label: OptionLabel;
|
|
25
|
+
keywords: Array<string>;
|
|
26
|
+
isDisabled: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type WPCompleter<TCompleterOption = any> = {
|
|
29
|
+
/**
|
|
30
|
+
* The name of the completer. Useful for identifying a specific completer to
|
|
31
|
+
* be overridden via extensibility hooks.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The string prefix that should trigger the completer. For example,
|
|
36
|
+
* Gutenberg's block completer is triggered when the '/' character is
|
|
37
|
+
* entered.
|
|
38
|
+
*/
|
|
39
|
+
triggerPrefix: string;
|
|
40
|
+
/**
|
|
41
|
+
* The raw options for completion. May be an array, a function that returns
|
|
42
|
+
* an array, or a function that returns a promise for an array.
|
|
43
|
+
* Options may be of any type or shape. The completer declares how those
|
|
44
|
+
* options are rendered and what their completions should be when selected.
|
|
45
|
+
*/
|
|
46
|
+
options: ((query: string) => PromiseLike<readonly TCompleterOption[]> | readonly TCompleterOption[]) | readonly TCompleterOption[];
|
|
47
|
+
/**
|
|
48
|
+
* A function that returns the keywords for the specified option.
|
|
49
|
+
*/
|
|
50
|
+
getOptionKeywords?: (option: TCompleterOption) => Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* A function that returns whether or not the specified option is disabled.
|
|
53
|
+
* Disabled options cannot be selected.
|
|
54
|
+
*/
|
|
55
|
+
isOptionDisabled?: (option: TCompleterOption) => boolean;
|
|
56
|
+
/**
|
|
57
|
+
* A function that returns the label for a given option. A label may be a
|
|
58
|
+
* string or a mixed array of strings, elements, and components.
|
|
59
|
+
*/
|
|
60
|
+
getOptionLabel: (option: TCompleterOption) => OptionLabel;
|
|
61
|
+
/**
|
|
62
|
+
* A function that takes a Range before and a Range after the autocomplete
|
|
63
|
+
* trigger and query text and returns a boolean indicating whether the
|
|
64
|
+
* completer should be considered for that context.
|
|
65
|
+
*/
|
|
66
|
+
allowContext?: (before: string, after: string) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* A function that takes an option and returns how the option should
|
|
69
|
+
* be completed. By default, the result is a value to be inserted in the
|
|
70
|
+
* text.
|
|
71
|
+
* However, a completer may explicitly declare how a completion should be
|
|
72
|
+
* treated by returning an object with `action` and `value` properties. The
|
|
73
|
+
* `action` declares what should be done with the `value`.
|
|
74
|
+
*/
|
|
75
|
+
getOptionCompletion?: (option: TCompleterOption, query: string) => OptionCompletion;
|
|
76
|
+
/**
|
|
77
|
+
* A function that returns an array of items to be displayed in the
|
|
78
|
+
* Autocomplete UI. These items have uniform shape and have been filtered by
|
|
79
|
+
* `AutocompleterUIProps.filterValue`.
|
|
80
|
+
*/
|
|
81
|
+
useItems?: (filterValue: string) => readonly [Array<KeyedOption>];
|
|
82
|
+
/**
|
|
83
|
+
* Whether or not changes to the `filterValue` should be debounced.
|
|
84
|
+
*/
|
|
85
|
+
isDebounced?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* A CSS class name to be applied to the completion menu.
|
|
88
|
+
*/
|
|
89
|
+
className?: string;
|
|
90
|
+
};
|
|
91
|
+
type ContentRef = React.RefObject<HTMLElement>;
|
|
92
|
+
export type AutocompleterUIProps = {
|
|
93
|
+
/**
|
|
94
|
+
* The value to filter the options by.
|
|
95
|
+
*/
|
|
96
|
+
filterValue: string;
|
|
97
|
+
/**
|
|
98
|
+
* An id unique to each instance of the component, used in the IDs of the
|
|
99
|
+
* buttons generated for individual options.
|
|
100
|
+
*/
|
|
101
|
+
instanceId: number;
|
|
102
|
+
/**
|
|
103
|
+
* The id of to be applied to the listbox of options.
|
|
104
|
+
*/
|
|
105
|
+
listBoxId: string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The class to apply to the wrapper element.
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The index of the currently selected option.
|
|
112
|
+
*/
|
|
113
|
+
selectedIndex: number;
|
|
114
|
+
/**
|
|
115
|
+
* A function to be called when the filterValue changes.
|
|
116
|
+
*/
|
|
117
|
+
onChangeOptions: (items: Array<KeyedOption>) => void;
|
|
118
|
+
/**
|
|
119
|
+
* A function to be called when an option is selected.
|
|
120
|
+
*/
|
|
121
|
+
onSelect: (option: KeyedOption) => void;
|
|
122
|
+
/**
|
|
123
|
+
* A function to be called when the completer is reset
|
|
124
|
+
* (e.g. when the user hits the escape key).
|
|
125
|
+
*/
|
|
126
|
+
onReset?: () => void;
|
|
127
|
+
/**
|
|
128
|
+
* A function that defines the behavior of the completer when it is reset
|
|
129
|
+
*/
|
|
130
|
+
reset: (event: Event) => void;
|
|
131
|
+
/**
|
|
132
|
+
* The rich text value object the autocompleter is being applied to.
|
|
133
|
+
*/
|
|
134
|
+
value?: RichTextValue;
|
|
135
|
+
/**
|
|
136
|
+
* A ref containing the editable element that will serve as the anchor for
|
|
137
|
+
* `Autocomplete`'s `Popover`.
|
|
138
|
+
*/
|
|
139
|
+
contentRef: ContentRef;
|
|
140
|
+
};
|
|
141
|
+
export type CancelablePromise<T = void> = Promise<T> & {
|
|
142
|
+
canceled?: boolean;
|
|
143
|
+
};
|
|
144
|
+
export type UseAutocompleteProps = {
|
|
145
|
+
/**
|
|
146
|
+
* The rich text value object the autocompleter is being applied to.
|
|
147
|
+
*/
|
|
148
|
+
record: RichTextValue & {
|
|
149
|
+
start: NonNullable<RichTextValue['start']>;
|
|
150
|
+
end: NonNullable<RichTextValue['end']>;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* A function to be called when an option is selected to insert into the
|
|
154
|
+
* existing text.
|
|
155
|
+
*/
|
|
156
|
+
onChange: (value: RichTextValue) => void;
|
|
157
|
+
/**
|
|
158
|
+
* A function to be called when an option is selected to replace the
|
|
159
|
+
* existing text.
|
|
160
|
+
*/
|
|
161
|
+
onReplace: (values: RichTextValue[]) => void;
|
|
162
|
+
/**
|
|
163
|
+
* An array of all of the completers to apply to the current element.
|
|
164
|
+
*/
|
|
165
|
+
completers: Array<WPCompleter>;
|
|
166
|
+
/**
|
|
167
|
+
* A ref containing the editable element that will serve as the anchor for
|
|
168
|
+
* `Autocomplete`'s `Popover`.
|
|
169
|
+
*/
|
|
170
|
+
contentRef: ContentRef;
|
|
171
|
+
};
|
|
172
|
+
export type AutocompleteProps = UseAutocompleteProps & {
|
|
173
|
+
/**
|
|
174
|
+
* A function that returns nodes to be rendered within the Autocomplete.
|
|
175
|
+
*/
|
|
176
|
+
children: (props: Omit<ReturnType<typeof useAutocomplete>, 'popover'>) => React.ReactNode;
|
|
177
|
+
/**
|
|
178
|
+
* Whether or not the Autocomplte componenet is selected, and if its
|
|
179
|
+
* `Popover`
|
|
180
|
+
* should be displayed.
|
|
181
|
+
*/
|
|
182
|
+
isSelected: boolean;
|
|
183
|
+
};
|
|
184
|
+
export {};
|
|
185
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/autocomplete/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/border-box-control/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BoxControlInputControlProps } from './types';
|
|
3
|
+
export default function AllInputControl({ onChange, onFocus, onHoverOn, onHoverOff, values, sides, selectedUnits, setSelectedUnits, ...props }: BoxControlInputControlProps): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=all-input-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-input-control.d.ts","sourceRoot":"","sources":["../../src/box-control/all-input-control.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAY3D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,EACxC,QAAe,EACf,OAAc,EACd,SAAgB,EAChB,UAAiB,EACjB,MAAM,EACN,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACR,EAAE,2BAA2B,eA2D7B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BoxControlInputControlProps } from './types';
|
|
3
|
+
export default function AxialInputControls({ onChange, onFocus, onHoverOn, onHoverOff, values, selectedUnits, setSelectedUnits, sides, ...props }: BoxControlInputControlProps): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=axial-input-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axial-input-controls.d.ts","sourceRoot":"","sources":["../../src/box-control/axial-input-controls.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAK3D,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAC3C,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACR,EAAE,2BAA2B,eAkI7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Internal dependencies
|
|
4
|
+
*/
|
|
5
|
+
import type { WordPressComponentProps } from '../ui/context';
|
|
6
|
+
import type { BoxControlIconProps } from './types';
|
|
7
|
+
export default function BoxControlIcon({ size, side, sides, ...props }: WordPressComponentProps<BoxControlIconProps, 'span'>): JSX.Element;
|
|
8
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/box-control/icon.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAS7D,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,SAAS,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,EACvC,IAAS,EACT,IAAY,EACZ,KAAK,EACL,GAAG,KAAK,EACR,EAAE,uBAAuB,CAAE,mBAAmB,EAAE,MAAM,CAAE,eAiCxD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BoxControlProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* BoxControl components let users set values for Top, Right, Bottom, and Left.
|
|
5
|
+
* This can be used as an input control for values like `padding` or `margin`.
|
|
6
|
+
*
|
|
7
|
+
* ```jsx
|
|
8
|
+
* import { __experimentalBoxControl as BoxControl } from '@wordpress/components';
|
|
9
|
+
* import { useState } from '@wordpress/element';
|
|
10
|
+
*
|
|
11
|
+
* const Example = () => {
|
|
12
|
+
* const [ values, setValues ] = useState( {
|
|
13
|
+
* top: '50px',
|
|
14
|
+
* left: '10%',
|
|
15
|
+
* right: '10%',
|
|
16
|
+
* bottom: '50px',
|
|
17
|
+
* } );
|
|
18
|
+
*
|
|
19
|
+
* return (
|
|
20
|
+
* <BoxControl
|
|
21
|
+
* values={ values }
|
|
22
|
+
* onChange={ ( nextValues ) => setValues( nextValues ) }
|
|
23
|
+
* />
|
|
24
|
+
* );
|
|
25
|
+
* };
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare function BoxControl({ id: idProp, inputProps, onChange, label, values: valuesProp, units, sides, splitOnAxis, allowReset, resetValues, onMouseOver, onMouseOut, }: BoxControlProps): JSX.Element;
|
|
29
|
+
export { applyValueToSides } from './utils';
|
|
30
|
+
export default BoxControl;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":";AA+BA,OAAO,KAAK,EAEX,eAAe,EAEf,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,UAAU,CAAE,EACpB,EAAE,EAAE,MAAM,EACV,UAA8B,EAC9B,QAAe,EACf,KAA2B,EAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,KAAK,EACL,WAAmB,EACnB,UAAiB,EACjB,WAA4B,EAC5B,WAAW,EACX,UAAU,GACV,EAAE,eAAe,eA0HjB;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BoxControlInputControlProps } from './types';
|
|
3
|
+
export default function BoxInputControls({ onChange, onFocus, onHoverOn, onHoverOff, values, selectedUnits, setSelectedUnits, sides, ...props }: BoxControlInputControlProps): JSX.Element;
|
|
4
|
+
//# sourceMappingURL=input-controls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-controls.d.ts","sourceRoot":"","sources":["../../src/box-control/input-controls.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,2BAA2B,EAAmB,MAAM,SAAS,CAAC;AAK5E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,EACzC,QAAe,EACf,OAAc,EACd,SAAgB,EAChB,UAAiB,EACjB,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,KAAK,EACL,GAAG,KAAK,EACR,EAAE,2BAA2B,eA+G7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Internal dependencies
|
|
4
|
+
*/
|
|
5
|
+
import Button from '../button';
|
|
6
|
+
export default function LinkedButton({ isLinked, ...props }: {
|
|
7
|
+
isLinked?: boolean;
|
|
8
|
+
} & React.ComponentProps<typeof Button>): JSX.Element;
|
|
9
|
+
//# sourceMappingURL=linked-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-button.d.ts","sourceRoot":"","sources":["../../src/box-control/linked-button.tsx"],"names":[],"mappings":";AAMA;;GAEG;AACH,OAAO,MAAM,MAAM,WAAW,CAAC;AAG/B,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,EACrC,QAAQ,EACR,GAAG,KAAK,EACR,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,cAAc,CAAE,OAAO,MAAM,CAAE,eAehE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Root: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export declare const Viewbox: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
+
export declare const TopStroke: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
isFocused: boolean;
|
|
15
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const RightStroke: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
isFocused: boolean;
|
|
23
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
export declare const BottomStroke: import("@emotion/styled").StyledComponent<{
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
as?: import("react").ElementType<any> | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
isFocused: boolean;
|
|
31
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
}, {}, {}>;
|
|
34
|
+
export declare const LeftStroke: import("@emotion/styled").StyledComponent<{
|
|
35
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
+
as?: import("react").ElementType<any> | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
isFocused: boolean;
|
|
39
|
+
} & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
//# sourceMappingURL=box-control-icon-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box-control-icon-styles.d.ts","sourceRoot":"","sources":["../../../src/box-control/styles/box-control-icon-styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,IAAI;;;2GAOhB,CAAC;AAEF,eAAO,MAAM,OAAO;;;2GAMnB,CAAC;AA6BF,eAAO,MAAM,SAAS;;;;eA3B4B,OAAO;;;UA6BxD,CAAC;AAEF,eAAO,MAAM,WAAW;;;;eA/B0B,OAAO;;;UAiCxD,CAAC;AAEF,eAAO,MAAM,YAAY;;;;eAnCyB,OAAO;;;UAqCxD,CAAC;AAEF,eAAO,MAAM,UAAU;;;;eAvC2B,OAAO;;;UAyCxD,CAAC"}
|