@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigation/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAWhC,OAAO,aAAa,CAAC;AAErB,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,UAAU,CAsB3C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,QAAQ,8DAA0B,CAAC;AAChD,eAAO,MAAM,eAAe,8DAAkC,CAAC;AAC/D,eAAO,MAAM,MAAM,8DAAwB,CAAC;AAC5C,eAAO,MAAM,MAAM,8DAAyB,CAAC;AAC7C,eAAO,MAAM,YAAY,8DAA+B,CAAC;AACzD,eAAO,MAAM,WAAW,8DAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controlled-state.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/controlled-state.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAE,OAAO,UAAU,CA+HnE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { Navigation } from '../..';
|
|
9
|
-
export declare const DefaultStory: ComponentStory<typeof Navigation>;
|
|
10
|
-
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/default.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,eAAO,MAAM,YAAY,EAAE,cAAc,CAAE,OAAO,UAAU,CA0E3D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { Navigation } from '../..';
|
|
9
|
-
export declare const GroupStory: ComponentStory<typeof Navigation>;
|
|
10
|
-
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/group.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKnC,eAAO,MAAM,UAAU,EAAE,cAAc,CAAE,OAAO,UAAU,CA0CzD,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { Navigation } from '../..';
|
|
9
|
-
export declare const HideIfEmptyStory: ComponentStory<typeof Navigation>;
|
|
10
|
-
//# sourceMappingURL=hide-if-empty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hide-if-empty.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/hide-if-empty.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAE,OAAO,UAAU,CAyD/D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { Navigation } from '../..';
|
|
9
|
-
export declare const MoreExamplesStory: ComponentStory<typeof Navigation>;
|
|
10
|
-
//# sourceMappingURL=more-examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"more-examples.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/more-examples.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKnC,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAE,OAAO,UAAU,CA6IhE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { Navigation } from '../..';
|
|
9
|
-
export declare const SearchStory: ComponentStory<typeof Navigation>;
|
|
10
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/search.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAkBnC,eAAO,MAAM,WAAW,EAAE,cAAc,CAAE,OAAO,UAAU,CA2D1D,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const NavigationUI: 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<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const MenuUI: 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<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const MenuBackButtonUI: import("@emotion/styled").StyledComponent<(import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
export declare const MenuTitleUI: import("@emotion/styled").StyledComponent<{
|
|
14
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
|
-
export declare const MenuTitleActionsUI: import("@emotion/styled").StyledComponent<{
|
|
18
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
21
|
-
export declare const MenuTitleSearchUI: import("@emotion/styled").StyledComponent<Pick<import("../../base-control/types").BaseControlProps, "help" | "label" | "__nextHasNoMarginBottom"> & {
|
|
22
|
-
hideLabelFromVision?: boolean | undefined;
|
|
23
|
-
onChange: (value: string) => void;
|
|
24
|
-
onClose?: (() => void) | undefined;
|
|
25
|
-
placeholder?: string | undefined;
|
|
26
|
-
value?: string | undefined;
|
|
27
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "help" | "children" | "label" | "as" | "placeholder" | "onClose" | "hideLabelFromVision" | "__nextHasNoMarginBottom"> & import("react").RefAttributes<HTMLInputElement> & {
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
}, {}, {}>;
|
|
30
|
-
export declare const GroupTitleUI: import("@emotion/styled").StyledComponent<Omit<import("../../text/types").Props, "size"> & {
|
|
31
|
-
level?: import("../../heading/types").HeadingSize | undefined;
|
|
32
|
-
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, "color" | "display" | "letterSpacing" | "lineHeight" | "ellipsis" | "weight" | "children" | "as" | keyof import("react").RefAttributes<any> | "isDestructive" | "variant" | "isBlock" | "align" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords" | "level"> & {
|
|
33
|
-
as?: keyof JSX.IntrinsicElements | undefined;
|
|
34
|
-
} & {
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
}, {}, {}>;
|
|
37
|
-
export declare const ItemBaseUI: import("@emotion/styled").StyledComponent<{
|
|
38
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
-
as?: import("react").ElementType<any> | undefined;
|
|
40
|
-
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
41
|
-
export declare const ItemUI: import("@emotion/styled").StyledComponent<{
|
|
42
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
-
as?: import("react").ElementType<any> | undefined;
|
|
44
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
45
|
-
export declare const ItemIconUI: import("@emotion/styled").StyledComponent<{
|
|
46
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
47
|
-
as?: import("react").ElementType<any> | undefined;
|
|
48
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
49
|
-
export declare const ItemBadgeUI: import("@emotion/styled").StyledComponent<{
|
|
50
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
51
|
-
as?: import("react").ElementType<any> | undefined;
|
|
52
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
53
|
-
export declare const ItemTitleUI: 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> & {
|
|
54
|
-
as?: keyof JSX.IntrinsicElements | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
57
|
-
}, {}, {}>;
|
|
58
|
-
//# sourceMappingURL=navigation-styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-styles.d.ts","sourceRoot":"","sources":["../../../src/navigation/styles/navigation-styles.tsx"],"names":[],"mappings":";AAqBA,eAAO,MAAM,YAAY;;;yGAKxB,CAAC;AAEF,eAAO,MAAM,MAAM;;;yGAiBlB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;UAiB5B,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAGvB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;2GAoB9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;UAwB7B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;UAaxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;yGAoCtB,CAAC;AAEF,eAAO,MAAM,MAAM;;;yGAYlB,CAAC;AAEF,eAAO,MAAM,UAAU;;;2GAGtB,CAAC;AAEF,eAAO,MAAM,WAAW;;;2GAkBvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;UAKvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/navigation/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Internal dependencies
|
|
4
|
-
*/
|
|
5
|
-
import type { ButtonProps } from '../button/types';
|
|
6
|
-
type IfDiscriminantDefinedBothRequired<TDiscriminant, TOther> = {
|
|
7
|
-
[K in keyof (TDiscriminant & TOther)]: NonNullable<(TDiscriminant & TOther)[K]>;
|
|
8
|
-
} | ({
|
|
9
|
-
[K in keyof TDiscriminant]?: never;
|
|
10
|
-
} & {
|
|
11
|
-
[K in keyof TOther]?: TOther[K];
|
|
12
|
-
});
|
|
13
|
-
export type NavigationProps = {
|
|
14
|
-
/**
|
|
15
|
-
* The active item slug.
|
|
16
|
-
*/
|
|
17
|
-
activeItem?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The active menu slug.
|
|
20
|
-
*
|
|
21
|
-
* @default 'root'
|
|
22
|
-
*/
|
|
23
|
-
activeMenu?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The children components.
|
|
26
|
-
*/
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Optional classname for the component.
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Callback used to sync the active menu between the external state
|
|
34
|
-
* and the Navigation's internal state.
|
|
35
|
-
*/
|
|
36
|
-
onActivateMenu?: (activeMenuSlug: string) => void;
|
|
37
|
-
};
|
|
38
|
-
type _NavigationMenuSearchProps = IfDiscriminantDefinedBothRequired<{
|
|
39
|
-
/**
|
|
40
|
-
* When the `hasSearch` prop is `true`, this callback handles the search
|
|
41
|
-
* input's `onChange` event, making it controlled from the outside.
|
|
42
|
-
* When using this prop, the `search` prop should be also set.
|
|
43
|
-
*/
|
|
44
|
-
onSearch: (searchString: string) => void;
|
|
45
|
-
}, {
|
|
46
|
-
/**
|
|
47
|
-
* When the `hasSearch` is `true` and the `onSearch` prop is provided, this
|
|
48
|
-
* prop controls the value of the search input.
|
|
49
|
-
* Required when the `onSearch` prop is provided.
|
|
50
|
-
*/
|
|
51
|
-
search: string;
|
|
52
|
-
}>;
|
|
53
|
-
export type NavigationMenuProps = _NavigationMenuSearchProps & {
|
|
54
|
-
/**
|
|
55
|
-
* The back button label used in nested menus.
|
|
56
|
-
* If not provided, the label will be inferred from the parent menu's title.
|
|
57
|
-
* If the parent menu's title is not available then it will default to "Back".
|
|
58
|
-
*
|
|
59
|
-
* @default parentMenuTitle ?? 'Back'
|
|
60
|
-
*/
|
|
61
|
-
backButtonLabel?: string;
|
|
62
|
-
/**
|
|
63
|
-
* A callback to handle clicking on the back button.
|
|
64
|
-
* If this prop is provided then the back button will be shown.
|
|
65
|
-
*/
|
|
66
|
-
onBackButtonClick?: React.MouseEventHandler<HTMLElement>;
|
|
67
|
-
/**
|
|
68
|
-
* The children components.
|
|
69
|
-
*/
|
|
70
|
-
children?: React.ReactNode;
|
|
71
|
-
/**
|
|
72
|
-
* Optional classname for the component.
|
|
73
|
-
*/
|
|
74
|
-
className?: string;
|
|
75
|
-
/**
|
|
76
|
-
* When `true`, enables the search feature on the menu title.
|
|
77
|
-
*/
|
|
78
|
-
hasSearch?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Indicates whether the menu is empty or not. Used together with the
|
|
81
|
-
* `hideIfTargetMenuEmpty` prop of `NavigationItem`.
|
|
82
|
-
*/
|
|
83
|
-
isEmpty?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Indicates whether the search is debouncing or not. In case of `true`, the
|
|
86
|
-
* "No results found." text is omitted. Used to prevent showing the
|
|
87
|
-
* "No results found." text between debounced searches.
|
|
88
|
-
*/
|
|
89
|
-
isSearchDebouncing?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* The unique identifier of the menu.
|
|
92
|
-
* The root menu can omit this prop, and it will default to "root".
|
|
93
|
-
* All other menus need to specify it.
|
|
94
|
-
*
|
|
95
|
-
* @default 'root'
|
|
96
|
-
*/
|
|
97
|
-
menu?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The parent menu slug; used by nested menus to indicate their parent menu.
|
|
100
|
-
*/
|
|
101
|
-
parentMenu?: string;
|
|
102
|
-
/**
|
|
103
|
-
* The menu title. It's also the field used by the menu search function.
|
|
104
|
-
*/
|
|
105
|
-
title?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Use this prop to render additional actions in the menu title.
|
|
108
|
-
*/
|
|
109
|
-
titleAction?: React.ReactNode;
|
|
110
|
-
};
|
|
111
|
-
export type NavigationGroupProps = {
|
|
112
|
-
/**
|
|
113
|
-
* Optional classname for the component.
|
|
114
|
-
*/
|
|
115
|
-
className?: string;
|
|
116
|
-
/**
|
|
117
|
-
* The group title.
|
|
118
|
-
*/
|
|
119
|
-
title?: string;
|
|
120
|
-
/**
|
|
121
|
-
* The children components.
|
|
122
|
-
*/
|
|
123
|
-
children: React.ReactNode;
|
|
124
|
-
};
|
|
125
|
-
type _NavigationItemButtonProps = (ButtonProps & {
|
|
126
|
-
/**
|
|
127
|
-
* If set to `true` the menu item will only act as a text-only item,
|
|
128
|
-
* rather than a `<button />` or `<a />` element.
|
|
129
|
-
*/
|
|
130
|
-
isText?: false;
|
|
131
|
-
}) | {
|
|
132
|
-
/**
|
|
133
|
-
* If set to `true` the menu item will only act as a text-only item,
|
|
134
|
-
* rather than a `<button />` or `<a />` element.
|
|
135
|
-
*/
|
|
136
|
-
isText: true;
|
|
137
|
-
};
|
|
138
|
-
export type NavigationItemBaseProps = {
|
|
139
|
-
/**
|
|
140
|
-
* The item badge content.
|
|
141
|
-
*/
|
|
142
|
-
badge?: string | number;
|
|
143
|
-
/**
|
|
144
|
-
* The children components. When not specified, the item will render the
|
|
145
|
-
* default item UI.
|
|
146
|
-
*/
|
|
147
|
-
children?: React.ReactNode;
|
|
148
|
-
/**
|
|
149
|
-
* Optional classname for the component.
|
|
150
|
-
*/
|
|
151
|
-
className?: string;
|
|
152
|
-
/**
|
|
153
|
-
* If provided, causes the component to render an `<a />` element
|
|
154
|
-
* instead of a `<button />` element.
|
|
155
|
-
*/
|
|
156
|
-
href?: string;
|
|
157
|
-
/**
|
|
158
|
-
* If no `children` are passed, this prop allows to specify a custom icon for
|
|
159
|
-
* the menu item.
|
|
160
|
-
*/
|
|
161
|
-
icon?: JSX.Element;
|
|
162
|
-
/**
|
|
163
|
-
* The unique identifier of the item.
|
|
164
|
-
*/
|
|
165
|
-
item?: string;
|
|
166
|
-
/**
|
|
167
|
-
* The child menu slug. If provided, clicking on the item will navigate
|
|
168
|
-
* to the target menu.
|
|
169
|
-
*/
|
|
170
|
-
navigateToMenu?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Indicates whether this item should be hidden if the menu specified in
|
|
173
|
-
* `navigateToMenu` is marked as empty in the `isEmpty` prop.
|
|
174
|
-
* Used together with the `isEmpty` prop of `NavigationMenu`.
|
|
175
|
-
*/
|
|
176
|
-
hideIfTargetMenuEmpty?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* A callback to handle clicking on a menu item.
|
|
179
|
-
*
|
|
180
|
-
* @default noop
|
|
181
|
-
*/
|
|
182
|
-
onClick?: React.MouseEventHandler;
|
|
183
|
-
/**
|
|
184
|
-
* The item title.
|
|
185
|
-
*/
|
|
186
|
-
title?: string;
|
|
187
|
-
};
|
|
188
|
-
export type NavigationItemProps = _NavigationItemButtonProps & NavigationItemBaseProps;
|
|
189
|
-
export type NavigationItemBaseContentProps = Pick<NavigationItemProps, 'badge' | 'title'>;
|
|
190
|
-
export type NavigationBackButtonProps = {
|
|
191
|
-
/**
|
|
192
|
-
* The text displayed for the button
|
|
193
|
-
*/
|
|
194
|
-
backButtonLabel?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Optional classname for the component.
|
|
197
|
-
*/
|
|
198
|
-
className?: string;
|
|
199
|
-
/**
|
|
200
|
-
* If provided, causes the component to render an `<a />` element
|
|
201
|
-
* instead of a `<button />` element.
|
|
202
|
-
*/
|
|
203
|
-
href?: string;
|
|
204
|
-
/**
|
|
205
|
-
* Callback function called when the button is clicked.
|
|
206
|
-
*/
|
|
207
|
-
onClick?: React.MouseEventHandler;
|
|
208
|
-
/**
|
|
209
|
-
* Id of the parent menu
|
|
210
|
-
*/
|
|
211
|
-
parentMenu?: string;
|
|
212
|
-
};
|
|
213
|
-
export type NavigationMenuTitleSearchProps = Pick<NavigationMenuProps, 'onSearch' | 'search' | 'title'> & {
|
|
214
|
-
debouncedSpeak: (message: string, ariaLive?: 'off' | 'polite' | 'assertive') => void;
|
|
215
|
-
onCloseSearch: () => void;
|
|
216
|
-
};
|
|
217
|
-
export type NavigationMenuTitleProps = Pick<NavigationMenuProps, 'hasSearch' | 'onSearch' | 'search' | 'title' | 'titleAction'>;
|
|
218
|
-
export type NavigationSearchNoResultsFoundProps = Pick<NavigationMenuProps, 'search'>;
|
|
219
|
-
export type Item = Omit<NavigationItemBaseProps, 'children'> & {
|
|
220
|
-
/**
|
|
221
|
-
* The group id
|
|
222
|
-
*/
|
|
223
|
-
group?: string;
|
|
224
|
-
/**
|
|
225
|
-
* The menu id
|
|
226
|
-
*/
|
|
227
|
-
menu?: string;
|
|
228
|
-
/**
|
|
229
|
-
* True is the item is currently visible (ie. the item is part
|
|
230
|
-
* of the active menu, and — if there is a search query — its title
|
|
231
|
-
* matches the search query).
|
|
232
|
-
*/
|
|
233
|
-
_isVisible: boolean;
|
|
234
|
-
};
|
|
235
|
-
export type Menu = Omit<NavigationMenuProps, 'children'> & {
|
|
236
|
-
menu: string;
|
|
237
|
-
};
|
|
238
|
-
export type NavigationGroupContext = {
|
|
239
|
-
/**
|
|
240
|
-
* The unique id of the group
|
|
241
|
-
*/
|
|
242
|
-
group?: string;
|
|
243
|
-
};
|
|
244
|
-
export type NavigationMenuContext = {
|
|
245
|
-
menu?: string;
|
|
246
|
-
search?: string;
|
|
247
|
-
};
|
|
248
|
-
export type NavigationContext = {
|
|
249
|
-
activeItem?: string;
|
|
250
|
-
activeMenu: string;
|
|
251
|
-
setActiveMenu: (parentMenu: string, animationDirection?: 'left' | 'right') => void;
|
|
252
|
-
navigationTree: {
|
|
253
|
-
items: Record<string, Item>;
|
|
254
|
-
getItem: (itemId: string) => Item | undefined;
|
|
255
|
-
addItem: (itemId: string, itemProps: Item) => void;
|
|
256
|
-
removeItem: (itemId: string) => void;
|
|
257
|
-
menus: Record<string, Menu>;
|
|
258
|
-
getMenu: (menuId: string) => Menu | undefined;
|
|
259
|
-
addMenu: (menuId: string, menuProps: Menu) => void;
|
|
260
|
-
removeMenu: (menuId: string) => void;
|
|
261
|
-
childMenu: Record<string, string[]>;
|
|
262
|
-
traverseMenu: (startMenu: string, callback: (menuObject: Menu) => boolean | undefined) => void;
|
|
263
|
-
isMenuEmpty: (menuId: string) => boolean;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
export {};
|
|
267
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/navigation/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Item, Menu } from './types';
|
|
2
|
-
export declare const useCreateNavigationTree: () => {
|
|
3
|
-
items: Record<string, Omit<Item, "children">>;
|
|
4
|
-
getItem: (key: string) => Omit<Item, "children">;
|
|
5
|
-
addItem: (key: string, value: Item) => void;
|
|
6
|
-
removeItem: (key: string) => void;
|
|
7
|
-
menus: Record<string, Omit<Menu, "children">>;
|
|
8
|
-
getMenu: (key: string) => Omit<Menu, "children">;
|
|
9
|
-
addMenu: (key: string, value: Menu) => void;
|
|
10
|
-
removeMenu: (key: string) => void;
|
|
11
|
-
childMenu: Record<string, string[]>;
|
|
12
|
-
traverseMenu: (startMenu: string, callback: (menuObject: Menu) => boolean | undefined) => void;
|
|
13
|
-
isMenuEmpty: (menuToCheck: string) => boolean;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=use-create-navigation-tree.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-create-navigation-tree.d.ts","sourceRoot":"","sources":["../../src/navigation/use-create-navigation-tree.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAqB,IAAI,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;mBAyElB,MAAM,SAAS,IAAI;;;;+BAvBD,MAAM;CA+CzC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function useNavigationTreeNodes<TNode extends {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}>(): {
|
|
6
|
-
nodes: Record<string, Omit<TNode, "children">>;
|
|
7
|
-
getNode: (key: string) => Omit<TNode, "children">;
|
|
8
|
-
addNode: (key: string, value: TNode) => void;
|
|
9
|
-
removeNode: (key: string) => void;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=use-navigation-tree-nodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-navigation-tree-nodes.d.ts","sourceRoot":"","sources":["../../src/navigation/use-navigation-tree-nodes.tsx"],"names":[],"mappings":";AAKA,wBAAgB,sBAAsB,CACrC,KAAK,SAAS;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,CAAE,GAAG,EAAE,MAAM,GAAI,OAAO,CAAA;CAAE;;mBAM/C,MAAM;mBAEN,MAAM,SAAS,KAAK;;EAgB3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/navigation/utils.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,UAAY,MAAM,WACa,CAAC;AAE3D,eAAO,MAAM,gBAAgB,UAAY,MAAM,UAAU,MAAM,YACI,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { PaletteEditProps, PaletteElement } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Returns a temporary name for a palette item in the format "Color + id".
|
|
5
|
-
* To ensure there are no duplicate ids, this function checks all slugs for temporary names.
|
|
6
|
-
* It expects slugs to be in the format: slugPrefix + color- + number.
|
|
7
|
-
* It then sets the id component of the new name based on the incremented id of the highest existing slug id.
|
|
8
|
-
*
|
|
9
|
-
* @param elements An array of color palette items.
|
|
10
|
-
* @param slugPrefix The slug prefix used to match the element slug.
|
|
11
|
-
*
|
|
12
|
-
* @return A unique name for a palette item.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getNameForPosition(elements: PaletteElement[], slugPrefix: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* Allows editing a palette of colors or gradients.
|
|
17
|
-
*
|
|
18
|
-
* ```jsx
|
|
19
|
-
* import { PaletteEdit } from '@wordpress/components';
|
|
20
|
-
* const MyPaletteEdit = () => {
|
|
21
|
-
* const [ controlledColors, setControlledColors ] = useState( colors );
|
|
22
|
-
*
|
|
23
|
-
* return (
|
|
24
|
-
* <PaletteEdit
|
|
25
|
-
* colors={ controlledColors }
|
|
26
|
-
* onChange={ ( newColors?: Color[] ) => {
|
|
27
|
-
* setControlledColors( newColors );
|
|
28
|
-
* } }
|
|
29
|
-
* paletteLabel="Here is a label"
|
|
30
|
-
* />
|
|
31
|
-
* );
|
|
32
|
-
* };
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare function PaletteEdit({ gradients, colors, onChange, paletteLabel, paletteLabelHeadingLevel, emptyMessage, canOnlyChangeValues, canReset, slugPrefix, popoverProps, }: PaletteEditProps): JSX.Element;
|
|
36
|
-
export default PaletteEdit;
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette-edit/index.tsx"],"names":[],"mappings":";AAmDA,OAAO,KAAK,EAOX,gBAAgB,EAChB,cAAc,EACd,MAAM,SAAS,CAAC;AAejB;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,MAAM,UAqBlB;AA8PD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAE,EAC5B,SAAS,EACT,MAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,wBAA4B,EAC5B,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,UAAe,EACf,YAAY,GACZ,EAAE,gBAAgB,eA8OlB;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
-
/**
|
|
6
|
-
* Internal dependencies
|
|
7
|
-
*/
|
|
8
|
-
import PaletteEdit from '..';
|
|
9
|
-
declare const meta: ComponentMeta<typeof PaletteEdit>;
|
|
10
|
-
export default meta;
|
|
11
|
-
export declare const Default: ComponentStory<typeof PaletteEdit>;
|
|
12
|
-
export declare const Gradients: ComponentStory<typeof PaletteEdit>;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/palette-edit/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,WAAW,MAAM,IAAI,CAAC;AAG7B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,WAAW,CAQ5C,CAAC;AACF,eAAe,IAAI,CAAC;AA4BpB,eAAO,MAAM,OAAO,oCAAsB,CAAC;AAc3C,eAAO,MAAM,SAAS,oCAAsB,CAAC"}
|