@wordpress/components 23.3.7 → 23.3.8
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/package.json +19 -19
- package/tsconfig.tsbuildinfo +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts +0 -6
- package/build-types/angle-picker-control/angle-circle.d.ts.map +0 -1
- package/build-types/angle-picker-control/index.d.ts +0 -29
- package/build-types/angle-picker-control/index.d.ts.map +0 -1
- package/build-types/angle-picker-control/stories/index.d.ts +0 -15
- package/build-types/angle-picker-control/stories/index.d.ts.map +0 -1
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +0 -25
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +0 -1
- package/build-types/angle-picker-control/types.d.ts +0 -26
- package/build-types/angle-picker-control/types.d.ts.map +0 -1
- package/build-types/animate/stories/index.d.ts +0 -18
- package/build-types/animate/stories/index.d.ts.map +0 -1
- package/build-types/animate/types.d.ts +0 -30
- package/build-types/animate/types.d.ts.map +0 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts +0 -4
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +0 -1
- package/build-types/autocomplete/get-default-use-items.d.ts +0 -3
- package/build-types/autocomplete/get-default-use-items.d.ts.map +0 -1
- package/build-types/autocomplete/index.d.ts +0 -23
- package/build-types/autocomplete/index.d.ts.map +0 -1
- package/build-types/autocomplete/test/index.d.ts +0 -2
- package/build-types/autocomplete/test/index.d.ts.map +0 -1
- package/build-types/autocomplete/types.d.ts +0 -185
- package/build-types/autocomplete/types.d.ts.map +0 -1
- package/build-types/border-box-control/test/index.d.ts +0 -2
- package/build-types/border-box-control/test/index.d.ts.map +0 -1
- package/build-types/border-box-control/test/utils.d.ts +0 -2
- package/build-types/border-box-control/test/utils.d.ts.map +0 -1
- package/build-types/box-control/all-input-control.d.ts +0 -4
- package/build-types/box-control/all-input-control.d.ts.map +0 -1
- package/build-types/box-control/axial-input-controls.d.ts +0 -4
- package/build-types/box-control/axial-input-controls.d.ts.map +0 -1
- package/build-types/box-control/icon.d.ts +0 -8
- package/build-types/box-control/icon.d.ts.map +0 -1
- package/build-types/box-control/index.d.ts +0 -31
- package/build-types/box-control/index.d.ts.map +0 -1
- package/build-types/box-control/input-controls.d.ts +0 -4
- package/build-types/box-control/input-controls.d.ts.map +0 -1
- package/build-types/box-control/linked-button.d.ts +0 -9
- package/build-types/box-control/linked-button.d.ts.map +0 -1
- package/build-types/box-control/styles/box-control-icon-styles.d.ts +0 -42
- package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +0 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +0 -42
- package/build-types/box-control/styles/box-control-styles.d.ts.map +0 -1
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +0 -46
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +0 -1
- package/build-types/box-control/test/index.d.ts +0 -2
- package/build-types/box-control/test/index.d.ts.map +0 -1
- package/build-types/box-control/types.d.ts +0 -99
- package/build-types/box-control/types.d.ts.map +0 -1
- package/build-types/box-control/unit-control.d.ts +0 -4
- package/build-types/box-control/unit-control.d.ts.map +0 -1
- package/build-types/box-control/utils.d.ts +0 -84
- package/build-types/box-control/utils.d.ts.map +0 -1
- package/build-types/circular-option-picker/stories/index.d.ts +0 -14
- package/build-types/circular-option-picker/stories/index.d.ts.map +0 -1
- package/build-types/circular-option-picker/types.d.ts +0 -49
- package/build-types/circular-option-picker/types.d.ts.map +0 -1
- package/build-types/color-picker/color-display.d.ts +0 -14
- package/build-types/color-picker/color-display.d.ts.map +0 -1
- package/build-types/color-picker/stories/index.d.ts +0 -19
- package/build-types/color-picker/stories/index.d.ts.map +0 -1
- package/build-types/color-picker/test/index.d.ts +0 -2
- package/build-types/color-picker/test/index.d.ts.map +0 -1
- package/build-types/combobox-control/index.d.ts +0 -51
- package/build-types/combobox-control/index.d.ts.map +0 -1
- package/build-types/combobox-control/stories/index.d.ts +0 -18
- package/build-types/combobox-control/stories/index.d.ts.map +0 -1
- package/build-types/combobox-control/styles.d.ts +0 -8
- package/build-types/combobox-control/styles.d.ts.map +0 -1
- package/build-types/combobox-control/test/index.d.ts +0 -2
- package/build-types/combobox-control/test/index.d.ts.map +0 -1
- package/build-types/combobox-control/types.d.ts +0 -69
- package/build-types/combobox-control/types.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/constants.d.ts +0 -25
- package/build-types/custom-gradient-picker/constants.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts +0 -8
- package/build-types/custom-gradient-picker/gradient-bar/constants.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +0 -8
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +0 -4
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +0 -2
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts +0 -90
- package/build-types/custom-gradient-picker/gradient-bar/utils.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/index.d.ts +0 -28
- package/build-types/custom-gradient-picker/index.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/serializer.d.ts +0 -10
- package/build-types/custom-gradient-picker/serializer.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/stories/index.d.ts +0 -12
- package/build-types/custom-gradient-picker/stories/index.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +0 -12
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/test/serializer.d.ts +0 -2
- package/build-types/custom-gradient-picker/test/serializer.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/types.d.ts +0 -118
- package/build-types/custom-gradient-picker/types.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/utils.d.ts +0 -13
- package/build-types/custom-gradient-picker/utils.d.ts.map +0 -1
- package/build-types/date-time/date/test/utils.d.ts +0 -2
- package/build-types/date-time/date/test/utils.d.ts.map +0 -1
- package/build-types/date-time/date/utils.d.ts +0 -15
- package/build-types/date-time/date/utils.d.ts.map +0 -1
- package/build-types/date-time/date.d.ts +0 -24
- package/build-types/date-time/date.d.ts.map +0 -1
- package/build-types/date-time/stories/index.d.ts +0 -14
- package/build-types/date-time/stories/index.d.ts.map +0 -1
- package/build-types/date-time/test/date.d.ts +0 -2
- package/build-types/date-time/test/date.d.ts.map +0 -1
- package/build-types/date-time/test/time.d.ts +0 -2
- package/build-types/date-time/test/time.d.ts.map +0 -1
- package/build-types/date-time/test/utils.d.ts +0 -2
- package/build-types/date-time/test/utils.d.ts.map +0 -1
- package/build-types/date-time/time.d.ts +0 -25
- package/build-types/date-time/time.d.ts.map +0 -1
- package/build-types/date-time/timezone.d.ts +0 -7
- package/build-types/date-time/timezone.d.ts.map +0 -1
- package/build-types/dimension-control/index.d.ts +0 -28
- package/build-types/dimension-control/index.d.ts.map +0 -1
- package/build-types/dimension-control/sizes.d.ts +0 -26
- package/build-types/dimension-control/sizes.d.ts.map +0 -1
- package/build-types/dimension-control/stories/index.d.ts +0 -12
- package/build-types/dimension-control/stories/index.d.ts.map +0 -1
- package/build-types/dimension-control/types.d.ts +0 -47
- package/build-types/dimension-control/types.d.ts.map +0 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts +0 -5
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +0 -1
- package/build-types/duotone-picker/color-list-picker/types.d.ts +0 -42
- package/build-types/duotone-picker/color-list-picker/types.d.ts.map +0 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts +0 -6
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +0 -1
- package/build-types/duotone-picker/duotone-picker.d.ts +0 -38
- package/build-types/duotone-picker/duotone-picker.d.ts.map +0 -1
- package/build-types/duotone-picker/duotone-swatch.d.ts +0 -5
- package/build-types/duotone-picker/duotone-swatch.d.ts.map +0 -1
- package/build-types/duotone-picker/index.d.ts +0 -3
- package/build-types/duotone-picker/index.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-picker.d.ts +0 -12
- package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts +0 -14
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +0 -1
- package/build-types/duotone-picker/types.d.ts +0 -60
- package/build-types/duotone-picker/types.d.ts.map +0 -1
- package/build-types/duotone-picker/utils.d.ts +0 -52
- package/build-types/duotone-picker/utils.d.ts.map +0 -1
- package/build-types/experiments.d.ts +0 -4
- package/build-types/experiments.d.ts.map +0 -1
- package/build-types/flyout/context.d.ts +0 -6
- package/build-types/flyout/context.d.ts.map +0 -1
- package/build-types/flyout/flyout/component.d.ts +0 -21
- package/build-types/flyout/flyout/component.d.ts.map +0 -1
- package/build-types/flyout/flyout/hook.d.ts +0 -270
- package/build-types/flyout/flyout/hook.d.ts.map +0 -1
- package/build-types/flyout/flyout/index.d.ts +0 -3
- package/build-types/flyout/flyout/index.d.ts.map +0 -1
- package/build-types/flyout/flyout-content/component.d.ts +0 -3
- package/build-types/flyout/flyout-content/component.d.ts.map +0 -1
- package/build-types/flyout/flyout-content/index.d.ts +0 -2
- package/build-types/flyout/flyout-content/index.d.ts.map +0 -1
- package/build-types/flyout/index.d.ts +0 -2
- package/build-types/flyout/index.d.ts.map +0 -1
- package/build-types/flyout/styles.d.ts +0 -22
- package/build-types/flyout/styles.d.ts.map +0 -1
- package/build-types/flyout/types.d.ts +0 -80
- package/build-types/flyout/types.d.ts.map +0 -1
- package/build-types/flyout/utils.d.ts +0 -8
- package/build-types/flyout/utils.d.ts.map +0 -1
- package/build-types/form-token-field/test/lib/fixtures.d.ts +0 -26
- package/build-types/form-token-field/test/lib/fixtures.d.ts.map +0 -1
- package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts +0 -21
- package/build-types/form-token-field/test/lib/token-field-wrapper.d.ts.map +0 -1
- package/build-types/gradient-picker/index.d.ts +0 -50
- package/build-types/gradient-picker/index.d.ts.map +0 -1
- package/build-types/gradient-picker/stories/index.d.ts +0 -14
- package/build-types/gradient-picker/stories/index.d.ts.map +0 -1
- package/build-types/gradient-picker/types.d.ts +0 -87
- package/build-types/gradient-picker/types.d.ts.map +0 -1
- package/build-types/guide/icons.d.ts +0 -5
- package/build-types/guide/icons.d.ts.map +0 -1
- package/build-types/guide/index.d.ts +0 -37
- package/build-types/guide/index.d.ts.map +0 -1
- package/build-types/guide/page-control.d.ts +0 -4
- package/build-types/guide/page-control.d.ts.map +0 -1
- package/build-types/guide/page.d.ts +0 -7
- package/build-types/guide/page.d.ts.map +0 -1
- package/build-types/guide/stories/index.d.ts +0 -9
- package/build-types/guide/stories/index.d.ts.map +0 -1
- package/build-types/guide/test/index.d.ts +0 -2
- package/build-types/guide/test/index.d.ts.map +0 -1
- package/build-types/guide/types.d.ts +0 -65
- package/build-types/guide/types.d.ts.map +0 -1
- package/build-types/h-stack/stories/e2e/index.d.ts +0 -9
- package/build-types/h-stack/stories/e2e/index.d.ts.map +0 -1
- package/build-types/higher-order/navigate-regions/index.d.ts +0 -46
- package/build-types/higher-order/navigate-regions/index.d.ts.map +0 -1
- package/build-types/higher-order/with-fallback-styles/index.d.ts +0 -44
- package/build-types/higher-order/with-fallback-styles/index.d.ts.map +0 -1
- package/build-types/higher-order/with-filters/index.d.ts +0 -89
- package/build-types/higher-order/with-filters/index.d.ts.map +0 -1
- package/build-types/higher-order/with-filters/test/index.d.ts +0 -2
- package/build-types/higher-order/with-filters/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-focus-return/index.d.ts +0 -20
- package/build-types/higher-order/with-focus-return/index.d.ts.map +0 -1
- package/build-types/higher-order/with-focus-return/test/index.d.ts +0 -2
- package/build-types/higher-order/with-focus-return/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-notices/index.d.ts +0 -37
- package/build-types/higher-order/with-notices/index.d.ts.map +0 -1
- package/build-types/higher-order/with-notices/test/index.d.ts +0 -2
- package/build-types/higher-order/with-notices/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-notices/types.d.ts +0 -34
- package/build-types/higher-order/with-notices/types.d.ts.map +0 -1
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts +0 -2
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +0 -1
- package/build-types/icon/test/index.d.ts +0 -2
- package/build-types/icon/test/index.d.ts.map +0 -1
- package/build-types/index.d.ts +0 -129
- package/build-types/index.d.ts.map +0 -1
- package/build-types/menu-items-choice/index.d.ts +0 -38
- package/build-types/menu-items-choice/index.d.ts.map +0 -1
- package/build-types/menu-items-choice/stories/index.d.ts +0 -12
- package/build-types/menu-items-choice/stories/index.d.ts.map +0 -1
- package/build-types/menu-items-choice/types.d.ts +0 -53
- package/build-types/menu-items-choice/types.d.ts.map +0 -1
- package/build-types/navigable-container/stories/navigable-menu.d.ts +0 -12
- package/build-types/navigable-container/stories/navigable-menu.d.ts.map +0 -1
- package/build-types/navigable-container/stories/tabbable-container.d.ts +0 -12
- package/build-types/navigable-container/stories/tabbable-container.d.ts.map +0 -1
- package/build-types/navigable-container/test/navigable-menu.d.ts +0 -2
- package/build-types/navigable-container/test/navigable-menu.d.ts.map +0 -1
- package/build-types/navigable-container/test/tababble-container.d.ts +0 -2
- package/build-types/navigable-container/test/tababble-container.d.ts.map +0 -1
- package/build-types/navigable-container/types.d.ts +0 -61
- package/build-types/navigable-container/types.d.ts.map +0 -1
- package/build-types/navigation/back-button/index.d.ts +0 -5
- package/build-types/navigation/back-button/index.d.ts.map +0 -1
- package/build-types/navigation/constants.d.ts +0 -3
- package/build-types/navigation/constants.d.ts.map +0 -1
- package/build-types/navigation/context.d.ts +0 -5
- package/build-types/navigation/context.d.ts.map +0 -1
- package/build-types/navigation/group/context.d.ts +0 -8
- package/build-types/navigation/group/context.d.ts.map +0 -1
- package/build-types/navigation/group/index.d.ts +0 -5
- package/build-types/navigation/group/index.d.ts.map +0 -1
- package/build-types/navigation/index.d.ts +0 -46
- package/build-types/navigation/index.d.ts.map +0 -1
- package/build-types/navigation/item/base-content.d.ts +0 -4
- package/build-types/navigation/item/base-content.d.ts.map +0 -1
- package/build-types/navigation/item/base.d.ts +0 -4
- package/build-types/navigation/item/base.d.ts.map +0 -1
- package/build-types/navigation/item/index.d.ts +0 -5
- package/build-types/navigation/item/index.d.ts.map +0 -1
- package/build-types/navigation/item/use-navigation-tree-item.d.ts +0 -3
- package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +0 -1
- package/build-types/navigation/menu/context.d.ts +0 -8
- package/build-types/navigation/menu/context.d.ts.map +0 -1
- package/build-types/navigation/menu/index.d.ts +0 -5
- package/build-types/navigation/menu/index.d.ts.map +0 -1
- package/build-types/navigation/menu/menu-title-search.d.ts +0 -4
- package/build-types/navigation/menu/menu-title-search.d.ts.map +0 -1
- package/build-types/navigation/menu/menu-title.d.ts +0 -4
- package/build-types/navigation/menu/menu-title.d.ts.map +0 -1
- package/build-types/navigation/menu/search-no-results-found.d.ts +0 -4
- package/build-types/navigation/menu/search-no-results-found.d.ts.map +0 -1
- package/build-types/navigation/menu/use-navigation-tree-menu.d.ts +0 -3
- package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +0 -1
- package/build-types/navigation/stories/index.d.ts +0 -18
- package/build-types/navigation/stories/index.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/controlled-state.d.ts +0 -7
- package/build-types/navigation/stories/utils/controlled-state.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/default.d.ts +0 -10
- package/build-types/navigation/stories/utils/default.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/group.d.ts +0 -10
- package/build-types/navigation/stories/utils/group.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts +0 -10
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/more-examples.d.ts +0 -10
- package/build-types/navigation/stories/utils/more-examples.d.ts.map +0 -1
- package/build-types/navigation/stories/utils/search.d.ts +0 -10
- package/build-types/navigation/stories/utils/search.d.ts.map +0 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +0 -58
- package/build-types/navigation/styles/navigation-styles.d.ts.map +0 -1
- package/build-types/navigation/test/index.d.ts +0 -2
- package/build-types/navigation/test/index.d.ts.map +0 -1
- package/build-types/navigation/types.d.ts +0 -267
- package/build-types/navigation/types.d.ts.map +0 -1
- package/build-types/navigation/use-create-navigation-tree.d.ts +0 -15
- package/build-types/navigation/use-create-navigation-tree.d.ts.map +0 -1
- package/build-types/navigation/use-navigation-tree-nodes.d.ts +0 -11
- package/build-types/navigation/use-navigation-tree-nodes.d.ts.map +0 -1
- package/build-types/navigation/utils.d.ts +0 -3
- package/build-types/navigation/utils.d.ts.map +0 -1
- package/build-types/palette-edit/index.d.ts +0 -37
- package/build-types/palette-edit/index.d.ts.map +0 -1
- package/build-types/palette-edit/stories/index.d.ts +0 -13
- package/build-types/palette-edit/stories/index.d.ts.map +0 -1
- package/build-types/palette-edit/styles.d.ts +0 -57
- package/build-types/palette-edit/styles.d.ts.map +0 -1
- package/build-types/palette-edit/test/index.d.ts +0 -2
- package/build-types/palette-edit/test/index.d.ts.map +0 -1
- package/build-types/palette-edit/types.d.ts +0 -122
- package/build-types/palette-edit/types.d.ts.map +0 -1
- package/build-types/panel/body.d.ts +0 -9
- package/build-types/panel/body.d.ts.map +0 -1
- package/build-types/panel/header.d.ts +0 -13
- package/build-types/panel/header.d.ts.map +0 -1
- package/build-types/panel/index.d.ts +0 -21
- package/build-types/panel/index.d.ts.map +0 -1
- package/build-types/panel/row.d.ts +0 -12
- package/build-types/panel/row.d.ts.map +0 -1
- package/build-types/panel/stories/index.d.ts +0 -19
- package/build-types/panel/stories/index.d.ts.map +0 -1
- package/build-types/panel/test/body.d.ts +0 -2
- package/build-types/panel/test/body.d.ts.map +0 -1
- package/build-types/panel/test/header.d.ts +0 -2
- package/build-types/panel/test/header.d.ts.map +0 -1
- package/build-types/panel/test/index.d.ts +0 -2
- package/build-types/panel/test/index.d.ts.map +0 -1
- package/build-types/panel/test/row.d.ts +0 -2
- package/build-types/panel/test/row.d.ts.map +0 -1
- package/build-types/panel/types.d.ts +0 -108
- package/build-types/panel/types.d.ts.map +0 -1
- package/build-types/popover/overlay-middlewares.d.ts +0 -9
- package/build-types/popover/overlay-middlewares.d.ts.map +0 -1
- package/build-types/radio-context/index.d.ts +0 -6
- package/build-types/radio-context/index.d.ts.map +0 -1
- package/build-types/spinner/styles/spinner-styles.d.ts +0 -5
- package/build-types/spinner/styles/spinner-styles.d.ts.map +0 -1
- package/build-types/swatch/index.d.ts +0 -5
- package/build-types/swatch/index.d.ts.map +0 -1
- package/build-types/swatch/types.d.ts +0 -11
- package/build-types/swatch/types.d.ts.map +0 -1
- package/build-types/toggle-group-control/component.d.ts +0 -4
- package/build-types/toggle-group-control/component.d.ts.map +0 -1
- package/build-types/toggle-group-control/styles.d.ts +0 -25
- package/build-types/toggle-group-control/styles.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts +0 -9
- package/build-types/toggle-group-control/toggle-group-control-backdrop.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-button.d.ts +0 -6
- package/build-types/toggle-group-control/toggle-group-control-button.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-context.d.ts +0 -9
- package/build-types/toggle-group-control/toggle-group-control-context.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts +0 -15
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control-option.d.ts +0 -4
- package/build-types/toggle-group-control/toggle-group-control-option.d.ts.map +0 -1
- package/build-types/toolbar/index.d.ts +0 -7
- package/build-types/toolbar/index.d.ts.map +0 -1
- package/build-types/toolbar/stories/index.d.ts +0 -14
- package/build-types/toolbar/stories/index.d.ts.map +0 -1
- package/build-types/toolbar/test/index.d.ts +0 -2
- package/build-types/toolbar/test/index.d.ts.map +0 -1
- package/build-types/toolbar/test/toolbar-group.d.ts +0 -2
- package/build-types/toolbar/test/toolbar-group.d.ts.map +0 -1
- package/build-types/toolbar/toolbar/index.d.ts +0 -25
- package/build-types/toolbar/toolbar/index.d.ts.map +0 -1
- package/build-types/toolbar/toolbar/toolbar-container.d.ts +0 -5
- package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +0 -1
- package/build-types/toolbar/toolbar/types.d.ts +0 -15
- package/build-types/toolbar/toolbar/types.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-button/index.d.ts +0 -166
- package/build-types/toolbar/toolbar-button/index.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts +0 -8
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-button/types.d.ts +0 -45
- package/build-types/toolbar/toolbar-button/types.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-context/index.d.ts +0 -8
- package/build-types/toolbar/toolbar-context/index.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +0 -3
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-group/index.d.ts +0 -39
- package/build-types/toolbar/toolbar-group/index.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +0 -7
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +0 -7
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +0 -1
- package/build-types/toolbar/toolbar-item/index.d.ts +0 -9
- package/build-types/toolbar/toolbar-item/index.d.ts.map +0 -1
- package/build-types/tools-panel/stories/index.d.ts +0 -17
- package/build-types/tools-panel/stories/index.d.ts.map +0 -1
- package/build-types/tools-panel/test/index.d.ts +0 -2
- package/build-types/tools-panel/test/index.d.ts.map +0 -1
- package/build-types/tree-grid/cell.d.ts +0 -13
- package/build-types/tree-grid/cell.d.ts.map +0 -1
- package/build-types/tree-grid/index.d.ts +0 -70
- package/build-types/tree-grid/index.d.ts.map +0 -1
- package/build-types/tree-grid/item.d.ts +0 -12
- package/build-types/tree-grid/item.d.ts.map +0 -1
- package/build-types/tree-grid/roving-tab-index-context.d.ts +0 -10
- package/build-types/tree-grid/roving-tab-index-context.d.ts.map +0 -1
- package/build-types/tree-grid/roving-tab-index-item.d.ts +0 -5
- package/build-types/tree-grid/roving-tab-index-item.d.ts.map +0 -1
- package/build-types/tree-grid/roving-tab-index.d.ts +0 -10
- package/build-types/tree-grid/roving-tab-index.d.ts.map +0 -1
- package/build-types/tree-grid/row.d.ts +0 -12
- package/build-types/tree-grid/row.d.ts.map +0 -1
- package/build-types/tree-grid/stories/index.d.ts +0 -13
- package/build-types/tree-grid/stories/index.d.ts.map +0 -1
- package/build-types/tree-grid/test/cell.d.ts +0 -2
- package/build-types/tree-grid/test/cell.d.ts.map +0 -1
- package/build-types/tree-grid/test/index.d.ts +0 -2
- package/build-types/tree-grid/test/index.d.ts.map +0 -1
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts +0 -2
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +0 -1
- package/build-types/tree-grid/test/roving-tab-index.d.ts +0 -2
- package/build-types/tree-grid/test/roving-tab-index.d.ts.map +0 -1
- package/build-types/tree-grid/test/row.d.ts +0 -2
- package/build-types/tree-grid/test/row.d.ts.map +0 -1
- package/build-types/tree-grid/types.d.ts +0 -116
- package/build-types/tree-grid/types.d.ts.map +0 -1
- package/build-types/ui/color-picker/color-display.d.ts +0 -13
- package/build-types/ui/color-picker/color-display.d.ts.map +0 -1
- package/build-types/ui/color-picker/color-input.d.ts +0 -13
- package/build-types/ui/color-picker/color-input.d.ts.map +0 -1
- package/build-types/ui/color-picker/component.d.ts +0 -12
- package/build-types/ui/color-picker/component.d.ts.map +0 -1
- package/build-types/ui/color-picker/hex-input.d.ts +0 -12
- package/build-types/ui/color-picker/hex-input.d.ts.map +0 -1
- package/build-types/ui/color-picker/hsl-input.d.ts +0 -12
- package/build-types/ui/color-picker/hsl-input.d.ts.map +0 -1
- package/build-types/ui/color-picker/index.d.ts +0 -2
- package/build-types/ui/color-picker/index.d.ts.map +0 -1
- package/build-types/ui/color-picker/input-with-slider.d.ts +0 -11
- package/build-types/ui/color-picker/input-with-slider.d.ts.map +0 -1
- package/build-types/ui/color-picker/legacy-adapter.d.ts +0 -5
- package/build-types/ui/color-picker/legacy-adapter.d.ts.map +0 -1
- package/build-types/ui/color-picker/picker.d.ts +0 -12
- package/build-types/ui/color-picker/picker.d.ts.map +0 -1
- package/build-types/ui/color-picker/rgb-input.d.ts +0 -12
- package/build-types/ui/color-picker/rgb-input.d.ts.map +0 -1
- package/build-types/ui/color-picker/styles.d.ts +0 -76
- package/build-types/ui/color-picker/styles.d.ts.map +0 -1
- package/build-types/ui/color-picker/types.d.ts +0 -2
- package/build-types/ui/color-picker/types.d.ts.map +0 -1
- package/build-types/ui/color-picker/use-deprecated-props.d.ts +0 -50
- package/build-types/ui/color-picker/use-deprecated-props.d.ts.map +0 -1
- package/build-types/ui/utils/create-component.d.ts +0 -21
- package/build-types/ui/utils/create-component.d.ts.map +0 -1
- package/build-types/utils/hooks/use-combined-ref.d.ts +0 -8
- package/build-types/utils/hooks/use-combined-ref.d.ts.map +0 -1
- package/build-types/utils/hooks/use-jump-step.d.ts +0 -25
- package/build-types/utils/hooks/use-jump-step.d.ts.map +0 -1
- package/build-types/utils/keyboard.d.ts +0 -12
- package/build-types/utils/keyboard.d.ts.map +0 -1
- package/build-types/utils/use-deprecated-props.d.ts +0 -9
- package/build-types/utils/use-deprecated-props.d.ts.map +0 -1
- package/build-types/v-stack/stories/e2e/index.d.ts +0 -9
- package/build-types/v-stack/stories/e2e/index.d.ts.map +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_GRADIENT = "linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)";
|
|
2
|
-
export declare const DEFAULT_LINEAR_GRADIENT_ANGLE = 180;
|
|
3
|
-
export declare const HORIZONTAL_GRADIENT_ORIENTATION: {
|
|
4
|
-
readonly type: "angular";
|
|
5
|
-
readonly value: "90";
|
|
6
|
-
};
|
|
7
|
-
export declare const GRADIENT_OPTIONS: {
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const DIRECTIONAL_ORIENTATION_ANGLE_MAP: {
|
|
12
|
-
top: number;
|
|
13
|
-
'top right': number;
|
|
14
|
-
'right top': number;
|
|
15
|
-
right: number;
|
|
16
|
-
'right bottom': number;
|
|
17
|
-
'bottom right': number;
|
|
18
|
-
bottom: number;
|
|
19
|
-
'bottom left': number;
|
|
20
|
-
'left bottom': number;
|
|
21
|
-
left: number;
|
|
22
|
-
'top left': number;
|
|
23
|
-
'left top': number;
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,6EAC8C,CAAC;AAE5E,eAAO,MAAM,6BAA6B,MAAM,CAAC;AAEjD,eAAO,MAAM,+BAA+B;;;CAGlC,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;GAG5B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;CAa7C,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const GRADIENT_MARKERS_WIDTH = 16;
|
|
2
|
-
export declare const INSERT_POINT_WIDTH = 16;
|
|
3
|
-
export declare const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_POINT = 10;
|
|
4
|
-
export declare const MINIMUM_DISTANCE_BETWEEN_POINTS = 0;
|
|
5
|
-
export declare const MINIMUM_SIGNIFICANT_MOVE = 5;
|
|
6
|
-
export declare const KEYBOARD_CONTROL_POINT_VARIATION = 10;
|
|
7
|
-
export declare const MINIMUM_DISTANCE_BETWEEN_INSERTER_AND_MARKER: number;
|
|
8
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,2CAA2C,KAAK,CAAC;AAC9D,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,gCAAgC,KACD,CAAC;AAC7C,eAAO,MAAM,4CAA4C,QACL,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { ControlPointsProps, InsertPointProps } from '../types';
|
|
3
|
-
declare function ControlPoints({ disableRemove, disableAlpha, gradientPickerDomRef, ignoreMarkerPosition, value: controlPoints, onChange, onStartControlPointChange, onStopControlPointChange, __experimentalIsRenderedInSidebar, }: ControlPointsProps): JSX.Element;
|
|
4
|
-
declare namespace ControlPoints {
|
|
5
|
-
var InsertPoint: ({ value: controlPoints, onChange, onOpenInserter, onCloseInserter, insertPosition, disableAlpha, __experimentalIsRenderedInSidebar, }: InsertPointProps) => JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
export default ControlPoints;
|
|
8
|
-
//# sourceMappingURL=control-points.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"control-points.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/control-points.tsx"],"names":[],"mappings":";AAqCA,OAAO,KAAK,EAGX,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAwElB,iBAAS,aAAa,CAAE,EACvB,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,EAAE,aAAa,EACpB,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,iCAAiC,GACjC,EAAE,kBAAkB,eAyMpB;kBAnNQ,aAAa;;;AA6RtB,eAAe,aAAa,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { CustomGradientBarProps } from '../types';
|
|
3
|
-
export default function CustomGradientBar({ background, hasGradient, value: controlPoints, onChange, disableInserter, disableAlpha, __experimentalIsRenderedInSidebar, }: CustomGradientBarProps): JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/index.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,EACX,sBAAsB,EAItB,MAAM,UAAU,CAAC;AA2DlB,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,EAC1C,UAAU,EACV,WAAW,EACX,KAAK,EAAE,aAAa,EACpB,QAAQ,EACR,eAAuB,EACvB,YAAoB,EACpB,iCAAyC,GACzC,EAAE,sBAAsB,eAoHxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/custom-gradient-picker/gradient-bar/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { ControlPoint } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Clamps a number between 0 and 100.
|
|
4
|
-
*
|
|
5
|
-
* @param value Value to clamp.
|
|
6
|
-
*
|
|
7
|
-
* @return Value clamped between 0 and 100.
|
|
8
|
-
*/
|
|
9
|
-
export declare function clampPercent(value: number): number;
|
|
10
|
-
/**
|
|
11
|
-
* Check if a control point is overlapping with another.
|
|
12
|
-
*
|
|
13
|
-
* @param value Array of control points.
|
|
14
|
-
* @param initialIndex Index of the position to test.
|
|
15
|
-
* @param newPosition New position of the control point.
|
|
16
|
-
* @param minDistance Distance considered to be overlapping.
|
|
17
|
-
*
|
|
18
|
-
* @return True if the point is overlapping.
|
|
19
|
-
*/
|
|
20
|
-
export declare function isOverlapping(value: ControlPoint[], initialIndex: number, newPosition: number, minDistance?: number): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Adds a control point from an array and returns the new array.
|
|
23
|
-
*
|
|
24
|
-
* @param points Array of control points.
|
|
25
|
-
* @param position Position to insert the new point.
|
|
26
|
-
* @param color Color to update the control point at index.
|
|
27
|
-
*
|
|
28
|
-
* @return New array of control points.
|
|
29
|
-
*/
|
|
30
|
-
export declare function addControlPoint(points: ControlPoint[], position: number, color: ControlPoint['color']): ControlPoint[];
|
|
31
|
-
/**
|
|
32
|
-
* Removes a control point from an array and returns the new array.
|
|
33
|
-
*
|
|
34
|
-
* @param points Array of control points.
|
|
35
|
-
* @param index Index to remove.
|
|
36
|
-
*
|
|
37
|
-
* @return New array of control points.
|
|
38
|
-
*/
|
|
39
|
-
export declare function removeControlPoint(points: ControlPoint[], index: number): ControlPoint[];
|
|
40
|
-
/**
|
|
41
|
-
* Updates a control point from an array and returns the new array.
|
|
42
|
-
*
|
|
43
|
-
* @param points Array of control points.
|
|
44
|
-
* @param index Index to update.
|
|
45
|
-
* @param newPoint New control point to replace the index.
|
|
46
|
-
*
|
|
47
|
-
* @return New array of control points.
|
|
48
|
-
*/
|
|
49
|
-
export declare function updateControlPoint(points: ControlPoint[], index: number, newPoint: ControlPoint): ControlPoint[];
|
|
50
|
-
/**
|
|
51
|
-
* Updates the position of a control point from an array and returns the new array.
|
|
52
|
-
*
|
|
53
|
-
* @param points Array of control points.
|
|
54
|
-
* @param index Index to update.
|
|
55
|
-
* @param newPosition Position to move the control point at index.
|
|
56
|
-
*
|
|
57
|
-
* @return New array of control points.
|
|
58
|
-
*/
|
|
59
|
-
export declare function updateControlPointPosition(points: ControlPoint[], index: number, newPosition: ControlPoint['position']): ControlPoint[];
|
|
60
|
-
/**
|
|
61
|
-
* Updates the position of a control point from an array and returns the new array.
|
|
62
|
-
*
|
|
63
|
-
* @param points Array of control points.
|
|
64
|
-
* @param index Index to update.
|
|
65
|
-
* @param newColor Color to update the control point at index.
|
|
66
|
-
*
|
|
67
|
-
* @return New array of control points.
|
|
68
|
-
*/
|
|
69
|
-
export declare function updateControlPointColor(points: ControlPoint[], index: number, newColor: ControlPoint['color']): ControlPoint[];
|
|
70
|
-
/**
|
|
71
|
-
* Updates the position of a control point from an array and returns the new array.
|
|
72
|
-
*
|
|
73
|
-
* @param points Array of control points.
|
|
74
|
-
* @param position Position of the color stop.
|
|
75
|
-
* @param newColor Color to update the control point at index.
|
|
76
|
-
*
|
|
77
|
-
* @return New array of control points.
|
|
78
|
-
*/
|
|
79
|
-
export declare function updateControlPointColorByPosition(points: ControlPoint[], position: ControlPoint['position'], newColor: ControlPoint['color']): ControlPoint[];
|
|
80
|
-
/**
|
|
81
|
-
* Gets the horizontal coordinate when dragging a control point with the mouse.
|
|
82
|
-
*
|
|
83
|
-
* @param mouseXcoordinate Horizontal coordinate of the mouse position.
|
|
84
|
-
* @param containerElement Container for the gradient picker.
|
|
85
|
-
*
|
|
86
|
-
* @return Whole number percentage from the left.
|
|
87
|
-
*/
|
|
88
|
-
export declare function getHorizontalRelativeGradientPosition(mouseXcoordinate: number, containerElement: HTMLDivElement): number;
|
|
89
|
-
export declare function getHorizontalRelativeGradientPosition(mouseXcoordinate: number, containerElement: null): undefined;
|
|
90
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/gradient-bar/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAE,KAAK,EAAE,MAAM,UAE1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,YAAY,EAAE,EACrB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,MAAwC,WAarD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC9B,MAAM,EAAE,YAAY,EAAE,EACtB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,YAAY,CAAE,OAAO,CAAE,kBAS9B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAE,MAAM,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,MAAM,kBAIxE;AACD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,YAAY,kBAKtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,YAAY,CAAE,UAAU,CAAE,kBAUvC;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,YAAY,CAAE,OAAO,CAAE,kBAOjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAChD,MAAM,EAAE,YAAY,EAAE,EACtB,QAAQ,EAAE,YAAY,CAAE,UAAU,CAAE,EACpC,QAAQ,EAAE,YAAY,CAAE,OAAO,CAAE,kBAIjC;AAED;;;;;;;GAOG;AACH,wBAAgB,qCAAqC,CACpD,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,cAAc,GAC9B,MAAM,CAAC;AACV,wBAAgB,qCAAqC,CACpD,gBAAgB,EAAE,MAAM,EACxB,gBAAgB,EAAE,IAAI,GACpB,SAAS,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { CustomGradientPickerProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* CustomGradientPicker is a React component that renders a UI for specifying
|
|
5
|
-
* linear or radial gradients. Radial gradients are displayed in the picker as
|
|
6
|
-
* a slice of the gradient from the center to the outside.
|
|
7
|
-
*
|
|
8
|
-
* ```jsx
|
|
9
|
-
* import { CustomGradientPicker } from '@wordpress/components';
|
|
10
|
-
* import { useState } from '@wordpress/element';
|
|
11
|
-
*
|
|
12
|
-
* const MyCustomGradientPicker = () => {
|
|
13
|
-
* const [ gradient, setGradient ] = useState();
|
|
14
|
-
*
|
|
15
|
-
* return (
|
|
16
|
-
* <CustomGradientPicker
|
|
17
|
-
* value={ gradient }
|
|
18
|
-
* onChange={ setGradient }
|
|
19
|
-
* />
|
|
20
|
-
* );
|
|
21
|
-
* };
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function CustomGradientPicker({
|
|
25
|
-
/** Start opting into the new margin-free styles that will become the default in a future version. */
|
|
26
|
-
__nextHasNoMargin, value, onChange, __experimentalIsRenderedInSidebar, }: CustomGradientPickerProps): JSX.Element;
|
|
27
|
-
export default CustomGradientPicker;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/index.tsx"],"names":[],"mappings":";AAoCA,OAAO,KAAK,EACX,yBAAyB,EAGzB,MAAM,SAAS,CAAC;AAiFjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAE;AACrC,qGAAqG;AACrG,iBAAyB,EACzB,KAAK,EACL,QAAQ,EACR,iCAAyC,GACzC,EAAE,yBAAyB,eA+E3B;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type gradientParser from 'gradient-parser';
|
|
5
|
-
export declare function serializeGradientColor({ type, value, }: gradientParser.ColorStop): string;
|
|
6
|
-
export declare function serializeGradientPosition(position: gradientParser.ColorStop['length']): string;
|
|
7
|
-
export declare function serializeGradientColorStop({ type, value, length, }: gradientParser.ColorStop): string;
|
|
8
|
-
export declare function serializeGradientOrientation(orientation: gradientParser.GradientNode['orientation']): string | undefined;
|
|
9
|
-
export declare function serializeGradient({ type, orientation, colorStops, }: gradientParser.GradientNode): string;
|
|
10
|
-
//# sourceMappingURL=serializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/serializer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAElD,wBAAgB,sBAAsB,CAAE,EACvC,IAAI,EACJ,KAAK,GACL,EAAE,cAAc,CAAC,SAAS,UAQ1B;AAED,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,cAAc,CAAC,SAAS,CAAE,QAAQ,CAAE,UAO9C;AAED,wBAAgB,0BAA0B,CAAE,EAC3C,IAAI,EACJ,KAAK,EACL,MAAM,GACN,EAAE,cAAc,CAAC,SAAS,UAK1B;AAED,wBAAgB,4BAA4B,CAC3C,WAAW,EAAE,cAAc,CAAC,YAAY,CAAE,aAAa,CAAE,sBAUzD;AAED,wBAAgB,iBAAiB,CAAE,EAClC,IAAI,EACJ,WAAW,EACX,UAAU,GACV,EAAE,cAAc,CAAC,YAAY,UAqB7B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import CustomGradientPicker from '../';
|
|
9
|
-
declare const meta: ComponentMeta<typeof CustomGradientPicker>;
|
|
10
|
-
export default meta;
|
|
11
|
-
export declare const Default: ComponentStory<typeof CustomGradientPicker>;
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMtE;;GAEG;AACH,OAAO,oBAAoB,MAAM,KAAK,CAAC;AAEvC,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,oBAAoB,CAQrD,CAAC;AACF,eAAe,IAAI,CAAC;AAkBpB,eAAO,MAAM,OAAO,6CAA2C,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../src/custom-gradient-picker/test/serializer.ts"],"names":[],"mappings":""}
|
|
@@ -1,118 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-gradient-picker/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/date-time/date/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/date.tsx"],"names":[],"mappings":"AAMA,OAAO,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/time.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/date-time/test/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|