@wordpress/components 28.13.1-next.082ed6819.0 → 29.0.0
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/CHANGELOG.md +53 -2
- package/CONTRIBUTING.md +16 -16
- package/build/alignment-matrix-control/icon.js +1 -0
- package/build/alignment-matrix-control/icon.js.map +1 -1
- package/build/alignment-matrix-control/index.js +1 -0
- package/build/alignment-matrix-control/index.js.map +1 -1
- package/build/angle-picker-control/index.js +1 -1
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/animation/index.js +0 -6
- package/build/animation/index.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.js +1 -0
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.native.js +1 -0
- package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build/autocomplete/get-default-use-items.js +1 -0
- package/build/autocomplete/get-default-use-items.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build/border-box-control/utils.js +1 -0
- package/build/border-box-control/utils.js.map +1 -1
- package/build/border-control/border-control/component.js +2 -0
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control-dropdown/component.js +1 -0
- package/build/border-control/border-control-dropdown/component.js.map +1 -1
- package/build/border-control/border-control-style-picker/component.js +1 -0
- package/build/border-control/border-control-style-picker/component.js.map +1 -1
- package/build/box-control/index.js +35 -28
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/input-control.js +161 -0
- package/build/box-control/input-control.js.map +1 -0
- package/build/box-control/types.js.map +1 -1
- package/build/box-control/utils.js +51 -48
- package/build/box-control/utils.js.map +1 -1
- package/build/button/index.native.js +1 -0
- package/build/button/index.native.js.map +1 -1
- package/build/button/types.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-actions.js +1 -0
- package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-option.js +1 -0
- package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build/clipboard-button/index.js +5 -3
- package/build/clipboard-button/index.js.map +1 -1
- package/build/color-indicator/index.native.js +1 -0
- package/build/color-indicator/index.native.js.map +1 -1
- package/build/color-palette/index.js +1 -0
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/utils.js +1 -0
- package/build/color-palette/utils.js.map +1 -1
- package/build/color-picker/input-with-slider.js +2 -2
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/combobox-control/index.js +1 -0
- package/build/combobox-control/index.js.map +1 -1
- package/build/composite/item.js +0 -9
- package/build/composite/item.js.map +1 -1
- package/build/composite/legacy/index.js +1 -0
- package/build/composite/legacy/index.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +3 -0
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/index.js +1 -0
- package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/utils.js +1 -0
- package/build/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
- package/build/custom-gradient-picker/index.js +3 -0
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/serializer.js +1 -0
- package/build/custom-gradient-picker/serializer.js.map +1 -1
- package/build/custom-gradient-picker/types.js.map +1 -1
- package/build/custom-gradient-picker/utils.js +1 -0
- package/build/custom-gradient-picker/utils.js.map +1 -1
- package/build/custom-select-control/index.js +11 -2
- package/build/custom-select-control/index.js.map +1 -1
- package/build/custom-select-control/types.js.map +1 -1
- package/build/dashicon/index.js +1 -0
- package/build/dashicon/index.js.map +1 -1
- package/build/date-time/date/index.js +1 -0
- package/build/date-time/date/index.js.map +1 -1
- package/build/date-time/date/use-lilius/index.js +1 -0
- package/build/date-time/date/use-lilius/index.js.map +1 -1
- package/build/date-time/time/index.js +1 -0
- package/build/date-time/time/index.js.map +1 -1
- package/build/dimension-control/index.js +1 -0
- package/build/dimension-control/index.js.map +1 -1
- package/build/dimension-control/sizes.js +1 -0
- package/build/dimension-control/sizes.js.map +1 -1
- package/build/draggable/index.js +1 -0
- package/build/draggable/index.js.map +1 -1
- package/build/draggable/index.native.js +1 -0
- package/build/draggable/index.native.js.map +1 -1
- package/build/drop-zone/index.js +19 -13
- package/build/drop-zone/index.js.map +1 -1
- package/build/drop-zone/types.js.map +1 -1
- package/build/dropdown-menu/index.js +2 -0
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/dropdown-menu/index.native.js +1 -0
- package/build/dropdown-menu/index.native.js.map +1 -1
- package/build/duotone-picker/color-list-picker/index.js +10 -14
- package/build/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +1 -0
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/duotone-picker/utils.js +1 -0
- package/build/duotone-picker/utils.js.map +1 -1
- package/build/font-size-picker/font-size-picker-select.js +2 -0
- package/build/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build/font-size-picker/font-size-picker-toggle-group.js +1 -0
- package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build/font-size-picker/index.js +2 -0
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +1 -0
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/font-size-picker/utils.js +1 -0
- package/build/font-size-picker/utils.js.map +1 -1
- package/build/form-file-upload/index.js +11 -1
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-file-upload/types.js.map +1 -1
- package/build/form-token-field/index.js +6 -0
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +1 -0
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/gradient-picker/index.js +3 -0
- package/build/gradient-picker/index.js.map +1 -1
- package/build/gradient-picker/types.js.map +1 -1
- package/build/guide/index.js +1 -0
- package/build/guide/index.js.map +1 -1
- package/build/guide/page-control.js +1 -0
- package/build/guide/page-control.js.map +1 -1
- package/build/h-stack/hook.js +1 -0
- package/build/h-stack/hook.js.map +1 -1
- package/build/higher-order/navigate-regions/index.js +1 -0
- package/build/higher-order/navigate-regions/index.js.map +1 -1
- package/build/higher-order/with-fallback-styles/index.js +1 -0
- package/build/higher-order/with-fallback-styles/index.js.map +1 -1
- package/build/higher-order/with-filters/index.js +1 -0
- package/build/higher-order/with-filters/index.js.map +1 -1
- package/build/higher-order/with-notices/index.js +1 -0
- package/build/higher-order/with-notices/index.js.map +1 -1
- package/build/icon/index.js +9 -0
- package/build/icon/index.js.map +1 -1
- package/build/index.js +0 -6
- package/build/index.js.map +1 -1
- package/build/keyboard-shortcuts/index.js +1 -0
- package/build/keyboard-shortcuts/index.js.map +1 -1
- package/build/menu/checkbox-item.js +5 -9
- package/build/menu/checkbox-item.js.map +1 -1
- package/build/menu/group-label.js +4 -1
- package/build/menu/group-label.js.map +1 -1
- package/build/menu/group.js +4 -1
- package/build/menu/group.js.map +1 -1
- package/build/menu/item-help-text.js +5 -0
- package/build/menu/item-help-text.js.map +1 -1
- package/build/menu/item-label.js +5 -0
- package/build/menu/item-label.js.map +1 -1
- package/build/menu/item.js +4 -8
- package/build/menu/item.js.map +1 -1
- package/build/menu/radio-item.js +5 -9
- package/build/menu/radio-item.js.map +1 -1
- package/build/menu/separator.js +5 -2
- package/build/menu/separator.js.map +1 -1
- package/build/menu/styles.js +16 -16
- package/build/menu/styles.js.map +1 -1
- package/build/menu-items-choice/index.js +1 -0
- package/build/menu-items-choice/index.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -0
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -0
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
- package/build/mobile/bottom-sheet/picker-cell.native.js +1 -0
- package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet-select-control/index.native.js +1 -0
- package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build/mobile/color-settings/palette.screen.native.js +1 -0
- package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build/mobile/gradient/index.native.js +1 -0
- package/build/mobile/gradient/index.native.js.map +1 -1
- package/build/mobile/media-edit/index.native.js +1 -0
- package/build/mobile/media-edit/index.native.js.map +1 -1
- package/build/mobile/picker/index.android.js +1 -0
- package/build/mobile/picker/index.android.js.map +1 -1
- package/build/mobile/picker/index.ios.js +1 -0
- package/build/mobile/picker/index.ios.js.map +1 -1
- package/build/mobile/segmented-control/index.native.js +1 -0
- package/build/mobile/segmented-control/index.native.js.map +1 -1
- package/build/mobile/utils/get-px-from-css-unit.native.js +1 -0
- package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
- package/build/modal/aria-helper.js +0 -1
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +0 -1
- package/build/modal/index.js.map +1 -1
- package/build/navigable-container/container.js +1 -0
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigation/group/index.js +1 -0
- package/build/navigation/group/index.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +1 -0
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/navigation/menu/search-no-results-found.js +1 -0
- package/build/navigation/menu/search-no-results-found.js.map +1 -1
- package/build/navigation/styles/navigation-styles.js +12 -12
- package/build/navigation/styles/navigation-styles.js.map +1 -1
- package/build/navigator/navigator/component.js +1 -0
- package/build/navigator/navigator/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +1 -0
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/utils/router.js +1 -0
- package/build/navigator/utils/router.js.map +1 -1
- package/build/notice/index.js +1 -0
- package/build/notice/index.js.map +1 -1
- package/build/notice/list.js +1 -0
- package/build/notice/list.js.map +1 -1
- package/build/notice/list.native.js +1 -0
- package/build/notice/list.native.js.map +1 -1
- package/build/number-control/index.js +8 -0
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/types.js.map +1 -1
- package/build/palette-edit/index.js +1 -0
- package/build/palette-edit/index.js.map +1 -1
- package/build/panel/actions.native.js +1 -0
- package/build/panel/actions.native.js.map +1 -1
- package/build/query-controls/index.js +1 -0
- package/build/query-controls/index.js.map +1 -1
- package/build/query-controls/terms.js +1 -0
- package/build/query-controls/terms.js.map +1 -1
- package/build/radio-control/index.js +1 -0
- package/build/radio-control/index.js.map +1 -1
- package/build/radio-control/index.native.js +1 -0
- package/build/radio-control/index.native.js.map +1 -1
- package/build/range-control/index.js +2 -1
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/mark.js +0 -1
- package/build/range-control/mark.js.map +1 -1
- package/build/range-control/rail.js +1 -0
- package/build/range-control/rail.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +33 -45
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/resizable-box/index.js +10 -1
- package/build/resizable-box/index.js.map +1 -1
- package/build/sandbox/index.js +1 -0
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +1 -0
- package/build/sandbox/index.native.js.map +1 -1
- package/build/search-control/index.native.js +1 -0
- package/build/search-control/index.native.js.map +1 -1
- package/build/select-control/index.js +1 -0
- package/build/select-control/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/fill.js +8 -12
- package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -10
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +4 -10
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/provider.js +1 -0
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +1 -0
- package/build/slot-fill/slot.js.map +1 -1
- package/build/slot-fill/types.js.map +1 -1
- package/build/snackbar/index.js +1 -0
- package/build/snackbar/index.js.map +1 -1
- package/build/snackbar/list.js +1 -0
- package/build/snackbar/list.js.map +1 -1
- package/build/style-provider/index.js +0 -1
- package/build/style-provider/index.js.map +1 -1
- package/build/tab-panel/index.js +1 -0
- package/build/tab-panel/index.js.map +1 -1
- package/build/tabs/index.js +1 -0
- package/build/tabs/index.js.map +1 -1
- package/build/tabs/tab.js +0 -17
- package/build/tabs/tab.js.map +1 -1
- package/build/text/utils.js +1 -0
- package/build/text/utils.js.map +1 -1
- package/build/theme/color-algorithms.js +1 -0
- package/build/theme/color-algorithms.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/styles.js +7 -7
- package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js +8 -8
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build/toolbar/toolbar-button/index.js +2 -0
- package/build/toolbar/toolbar-button/index.js.map +1 -1
- package/build/toolbar/toolbar-group/index.js +1 -0
- package/build/toolbar/toolbar-group/index.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +2 -0
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +1 -0
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +1 -0
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tree-grid/cell.js +4 -1
- package/build/tree-grid/cell.js.map +1 -1
- package/build/tree-grid/index.js +1 -0
- package/build/tree-grid/index.js.map +1 -1
- package/build/tree-grid/types.js.map +1 -1
- package/build/tree-select/index.js +1 -0
- package/build/tree-select/index.js.map +1 -1
- package/build/unit-control/index.js +11 -1
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/index.native.js +1 -0
- package/build/unit-control/index.native.js.map +1 -1
- package/build/unit-control/types.js.map +1 -1
- package/build/unit-control/unit-select-control.js +1 -0
- package/build/unit-control/unit-select-control.js.map +1 -1
- package/build/unit-control/utils.js +1 -0
- package/build/unit-control/utils.js.map +1 -1
- package/build/utils/colors-values.js +3 -0
- package/build/utils/colors-values.js.map +1 -1
- package/build/utils/config-values.js +0 -1
- package/build/utils/config-values.js.map +1 -1
- package/build/utils/get-valid-children.js +1 -0
- package/build/utils/get-valid-children.js.map +1 -1
- package/build/utils/hooks/use-animated-offset-rect.js +1 -0
- package/build/utils/hooks/use-animated-offset-rect.js.map +1 -1
- package/build/utils/hooks/use-cx.js +1 -0
- package/build/utils/hooks/use-cx.js.map +1 -1
- package/build/utils/math.js +1 -0
- package/build/utils/math.js.map +1 -1
- package/build/utils/rtl.js +1 -0
- package/build/utils/rtl.js.map +1 -1
- package/build/utils/values.js +1 -0
- package/build/utils/values.js.map +1 -1
- package/build/z-stack/component.js +1 -0
- package/build/z-stack/component.js.map +1 -1
- package/build-module/alignment-matrix-control/icon.js +1 -0
- package/build-module/alignment-matrix-control/icon.js.map +1 -1
- package/build-module/alignment-matrix-control/index.js +1 -0
- package/build-module/alignment-matrix-control/index.js.map +1 -1
- package/build-module/angle-picker-control/index.js +1 -1
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/animation/index.js +1 -1
- package/build-module/animation/index.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +1 -0
- package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.native.js +1 -0
- package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build-module/autocomplete/get-default-use-items.js +1 -0
- package/build-module/autocomplete/get-default-use-items.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build-module/border-box-control/utils.js +1 -0
- package/build-module/border-box-control/utils.js.map +1 -1
- package/build-module/border-control/border-control/component.js +2 -0
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/component.js +1 -0
- package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
- package/build-module/border-control/border-control-style-picker/component.js +1 -0
- package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
- package/build-module/box-control/index.js +37 -30
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/input-control.js +153 -0
- package/build-module/box-control/input-control.js.map +1 -0
- package/build-module/box-control/types.js.map +1 -1
- package/build-module/box-control/utils.js +48 -46
- package/build-module/box-control/utils.js.map +1 -1
- package/build-module/button/index.native.js +1 -0
- package/build-module/button/index.native.js.map +1 -1
- package/build-module/button/types.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-actions.js +1 -0
- package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-option.js +1 -0
- package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build-module/clipboard-button/index.js +5 -3
- package/build-module/clipboard-button/index.js.map +1 -1
- package/build-module/color-indicator/index.native.js +1 -0
- package/build-module/color-indicator/index.native.js.map +1 -1
- package/build-module/color-palette/index.js +1 -0
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/utils.js +1 -0
- package/build-module/color-palette/utils.js.map +1 -1
- package/build-module/color-picker/input-with-slider.js +2 -2
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/combobox-control/index.js +1 -0
- package/build-module/combobox-control/index.js.map +1 -1
- package/build-module/composite/item.js +0 -9
- package/build-module/composite/item.js.map +1 -1
- package/build-module/composite/legacy/index.js +1 -0
- package/build-module/composite/legacy/index.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +3 -0
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/index.js +1 -0
- package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/utils.js +1 -0
- package/build-module/custom-gradient-picker/gradient-bar/utils.js.map +1 -1
- package/build-module/custom-gradient-picker/index.js +3 -0
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/custom-gradient-picker/serializer.js +1 -0
- package/build-module/custom-gradient-picker/serializer.js.map +1 -1
- package/build-module/custom-gradient-picker/types.js.map +1 -1
- package/build-module/custom-gradient-picker/utils.js +1 -0
- package/build-module/custom-gradient-picker/utils.js.map +1 -1
- package/build-module/custom-select-control/index.js +11 -2
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control/types.js.map +1 -1
- package/build-module/dashicon/index.js +1 -0
- package/build-module/dashicon/index.js.map +1 -1
- package/build-module/date-time/date/index.js +1 -0
- package/build-module/date-time/date/index.js.map +1 -1
- package/build-module/date-time/date/use-lilius/index.js +1 -0
- package/build-module/date-time/date/use-lilius/index.js.map +1 -1
- package/build-module/date-time/time/index.js +1 -0
- package/build-module/date-time/time/index.js.map +1 -1
- package/build-module/dimension-control/index.js +1 -0
- package/build-module/dimension-control/index.js.map +1 -1
- package/build-module/dimension-control/sizes.js +1 -0
- package/build-module/dimension-control/sizes.js.map +1 -1
- package/build-module/draggable/index.js +1 -0
- package/build-module/draggable/index.js.map +1 -1
- package/build-module/draggable/index.native.js +1 -0
- package/build-module/draggable/index.native.js.map +1 -1
- package/build-module/drop-zone/index.js +19 -13
- package/build-module/drop-zone/index.js.map +1 -1
- package/build-module/drop-zone/types.js.map +1 -1
- package/build-module/dropdown-menu/index.js +2 -0
- package/build-module/dropdown-menu/index.js.map +1 -1
- package/build-module/dropdown-menu/index.native.js +1 -0
- package/build-module/dropdown-menu/index.native.js.map +1 -1
- package/build-module/duotone-picker/color-list-picker/index.js +11 -15
- package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build-module/duotone-picker/duotone-picker.js +1 -0
- package/build-module/duotone-picker/duotone-picker.js.map +1 -1
- package/build-module/duotone-picker/utils.js +1 -0
- package/build-module/duotone-picker/utils.js.map +1 -1
- package/build-module/font-size-picker/font-size-picker-select.js +2 -0
- package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build-module/font-size-picker/font-size-picker-toggle-group.js +1 -0
- package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build-module/font-size-picker/index.js +2 -0
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/index.native.js +1 -0
- package/build-module/font-size-picker/index.native.js.map +1 -1
- package/build-module/font-size-picker/utils.js +1 -0
- package/build-module/font-size-picker/utils.js.map +1 -1
- package/build-module/form-file-upload/index.js +13 -2
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/form-file-upload/types.js.map +1 -1
- package/build-module/form-token-field/index.js +6 -0
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +1 -0
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/gradient-picker/index.js +3 -0
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/gradient-picker/types.js.map +1 -1
- package/build-module/guide/index.js +1 -0
- package/build-module/guide/index.js.map +1 -1
- package/build-module/guide/page-control.js +1 -0
- package/build-module/guide/page-control.js.map +1 -1
- package/build-module/h-stack/hook.js +1 -0
- package/build-module/h-stack/hook.js.map +1 -1
- package/build-module/higher-order/navigate-regions/index.js +1 -0
- package/build-module/higher-order/navigate-regions/index.js.map +1 -1
- package/build-module/higher-order/with-fallback-styles/index.js +1 -0
- package/build-module/higher-order/with-fallback-styles/index.js.map +1 -1
- package/build-module/higher-order/with-filters/index.js +1 -0
- package/build-module/higher-order/with-filters/index.js.map +1 -1
- package/build-module/higher-order/with-notices/index.js +1 -0
- package/build-module/higher-order/with-notices/index.js.map +1 -1
- package/build-module/icon/index.js +9 -0
- package/build-module/icon/index.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/keyboard-shortcuts/index.js +1 -0
- package/build-module/keyboard-shortcuts/index.js.map +1 -1
- package/build-module/menu/checkbox-item.js +5 -9
- package/build-module/menu/checkbox-item.js.map +1 -1
- package/build-module/menu/group-label.js +4 -1
- package/build-module/menu/group-label.js.map +1 -1
- package/build-module/menu/group.js +4 -1
- package/build-module/menu/group.js.map +1 -1
- package/build-module/menu/item-help-text.js +6 -1
- package/build-module/menu/item-help-text.js.map +1 -1
- package/build-module/menu/item-label.js +6 -1
- package/build-module/menu/item-label.js.map +1 -1
- package/build-module/menu/item.js +4 -8
- package/build-module/menu/item.js.map +1 -1
- package/build-module/menu/radio-item.js +5 -9
- package/build-module/menu/radio-item.js.map +1 -1
- package/build-module/menu/separator.js +5 -2
- package/build-module/menu/separator.js.map +1 -1
- package/build-module/menu/styles.js +16 -16
- package/build-module/menu/styles.js.map +1 -1
- package/build-module/menu-items-choice/index.js +1 -0
- package/build-module/menu-items-choice/index.js.map +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -0
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -0
- package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/picker-cell.native.js +1 -0
- package/build-module/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet-select-control/index.native.js +1 -0
- package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build-module/mobile/color-settings/palette.screen.native.js +1 -0
- package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build-module/mobile/gradient/index.native.js +1 -0
- package/build-module/mobile/gradient/index.native.js.map +1 -1
- package/build-module/mobile/media-edit/index.native.js +1 -0
- package/build-module/mobile/media-edit/index.native.js.map +1 -1
- package/build-module/mobile/picker/index.android.js +1 -0
- package/build-module/mobile/picker/index.android.js.map +1 -1
- package/build-module/mobile/picker/index.ios.js +1 -0
- package/build-module/mobile/picker/index.ios.js.map +1 -1
- package/build-module/mobile/segmented-control/index.native.js +1 -0
- package/build-module/mobile/segmented-control/index.native.js.map +1 -1
- package/build-module/mobile/utils/get-px-from-css-unit.native.js +1 -0
- package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
- package/build-module/modal/aria-helper.js +0 -1
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +0 -1
- package/build-module/modal/index.js.map +1 -1
- package/build-module/navigable-container/container.js +1 -0
- package/build-module/navigable-container/container.js.map +1 -1
- package/build-module/navigation/group/index.js +1 -0
- package/build-module/navigation/group/index.js.map +1 -1
- package/build-module/navigation/menu/menu-title-search.js +1 -0
- package/build-module/navigation/menu/menu-title-search.js.map +1 -1
- package/build-module/navigation/menu/search-no-results-found.js +1 -0
- package/build-module/navigation/menu/search-no-results-found.js.map +1 -1
- package/build-module/navigation/styles/navigation-styles.js +12 -12
- package/build-module/navigation/styles/navigation-styles.js.map +1 -1
- package/build-module/navigator/navigator/component.js +1 -0
- package/build-module/navigator/navigator/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +1 -0
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/navigator/utils/router.js +1 -0
- package/build-module/navigator/utils/router.js.map +1 -1
- package/build-module/notice/index.js +1 -0
- package/build-module/notice/index.js.map +1 -1
- package/build-module/notice/list.js +1 -0
- package/build-module/notice/list.js.map +1 -1
- package/build-module/notice/list.native.js +1 -0
- package/build-module/notice/list.native.js.map +1 -1
- package/build-module/number-control/index.js +8 -0
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/types.js.map +1 -1
- package/build-module/palette-edit/index.js +1 -0
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/panel/actions.native.js +1 -0
- package/build-module/panel/actions.native.js.map +1 -1
- package/build-module/query-controls/index.js +1 -0
- package/build-module/query-controls/index.js.map +1 -1
- package/build-module/query-controls/terms.js +1 -0
- package/build-module/query-controls/terms.js.map +1 -1
- package/build-module/radio-control/index.js +1 -0
- package/build-module/radio-control/index.js.map +1 -1
- package/build-module/radio-control/index.native.js +1 -0
- package/build-module/radio-control/index.native.js.map +1 -1
- package/build-module/range-control/index.js +2 -1
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/range-control/mark.js +0 -1
- package/build-module/range-control/mark.js.map +1 -1
- package/build-module/range-control/rail.js +1 -0
- package/build-module/range-control/rail.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +33 -45
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/resizable-box/index.js +10 -1
- package/build-module/resizable-box/index.js.map +1 -1
- package/build-module/sandbox/index.js +1 -0
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/sandbox/index.native.js +1 -0
- package/build-module/sandbox/index.native.js.map +1 -1
- package/build-module/search-control/index.native.js +1 -0
- package/build-module/search-control/index.native.js.map +1 -1
- package/build-module/select-control/index.js +1 -0
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/fill.js +9 -13
- package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +7 -10
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +4 -10
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/provider.js +1 -0
- package/build-module/slot-fill/provider.js.map +1 -1
- package/build-module/slot-fill/slot.js +1 -0
- package/build-module/slot-fill/slot.js.map +1 -1
- package/build-module/slot-fill/types.js.map +1 -1
- package/build-module/snackbar/index.js +1 -0
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/snackbar/list.js +1 -0
- package/build-module/snackbar/list.js.map +1 -1
- package/build-module/style-provider/index.js +0 -1
- package/build-module/style-provider/index.js.map +1 -1
- package/build-module/tab-panel/index.js +1 -0
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/tabs/index.js +1 -0
- package/build-module/tabs/index.js.map +1 -1
- package/build-module/tabs/tab.js +0 -15
- package/build-module/tabs/tab.js.map +1 -1
- package/build-module/text/utils.js +1 -0
- package/build-module/text/utils.js.map +1 -1
- package/build-module/theme/color-algorithms.js +1 -0
- package/build-module/theme/color-algorithms.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/styles.js +7 -7
- package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +8 -8
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build-module/toolbar/toolbar-button/index.js +2 -0
- package/build-module/toolbar/toolbar-button/index.js.map +1 -1
- package/build-module/toolbar/toolbar-group/index.js +1 -0
- package/build-module/toolbar/toolbar-group/index.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +2 -0
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel/hook.js +1 -0
- package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +1 -0
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tree-grid/cell.js +4 -1
- package/build-module/tree-grid/cell.js.map +1 -1
- package/build-module/tree-grid/index.js +1 -0
- package/build-module/tree-grid/index.js.map +1 -1
- package/build-module/tree-grid/types.js.map +1 -1
- package/build-module/tree-select/index.js +1 -0
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/unit-control/index.js +11 -1
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/index.native.js +1 -0
- package/build-module/unit-control/index.native.js.map +1 -1
- package/build-module/unit-control/types.js.map +1 -1
- package/build-module/unit-control/unit-select-control.js +1 -0
- package/build-module/unit-control/unit-select-control.js.map +1 -1
- package/build-module/unit-control/utils.js +1 -0
- package/build-module/unit-control/utils.js.map +1 -1
- package/build-module/utils/colors-values.js +3 -0
- package/build-module/utils/colors-values.js.map +1 -1
- package/build-module/utils/config-values.js +0 -1
- package/build-module/utils/config-values.js.map +1 -1
- package/build-module/utils/get-valid-children.js +1 -0
- package/build-module/utils/get-valid-children.js.map +1 -1
- package/build-module/utils/hooks/use-animated-offset-rect.js +1 -0
- package/build-module/utils/hooks/use-animated-offset-rect.js.map +1 -1
- package/build-module/utils/hooks/use-cx.js +1 -0
- package/build-module/utils/hooks/use-cx.js.map +1 -1
- package/build-module/utils/math.js +1 -0
- package/build-module/utils/math.js.map +1 -1
- package/build-module/utils/rtl.js +1 -0
- package/build-module/utils/rtl.js.map +1 -1
- package/build-module/utils/values.js +1 -0
- package/build-module/utils/values.js.map +1 -1
- package/build-module/z-stack/component.js +1 -0
- package/build-module/z-stack/component.js.map +1 -1
- package/build-style/style-rtl.css +15 -11
- package/build-style/style.css +15 -11
- package/build-types/alignment-matrix-control/styles.d.ts.map +1 -1
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
- package/build-types/animation/index.d.ts +1 -1
- package/build-types/animation/index.d.ts.map +1 -1
- package/build-types/base-control/hooks.d.ts +4 -4
- package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +83 -83
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +93 -93
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +83 -83
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +83 -83
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +83 -83
- package/build-types/border-control/border-control-dropdown/hook.d.ts +83 -83
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts +14 -13
- package/build-types/box-control/index.d.ts.map +1 -1
- package/build-types/box-control/input-control.d.ts +3 -0
- package/build-types/box-control/input-control.d.ts.map +1 -0
- package/build-types/box-control/stories/index.story.d.ts +852 -816
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-icon-styles.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +3 -2
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/box-control/types.d.ts +25 -3
- package/build-types/box-control/types.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +23 -15
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +18 -0
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/button/types.d.ts +6 -4
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +83 -83
- package/build-types/card/card-body/hook.d.ts +83 -83
- package/build-types/card/card-divider/hook.d.ts +84 -84
- package/build-types/card/card-footer/hook.d.ts +83 -83
- package/build-types/card/card-header/hook.d.ts +83 -83
- package/build-types/card/card-media/hook.d.ts +83 -83
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
- package/build-types/clipboard-button/index.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +3 -2
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/index.d.ts.map +1 -1
- package/build-types/composite/item.d.ts.map +1 -1
- package/build-types/context/constants.d.ts.map +1 -1
- package/build-types/context/get-styled-class-name-from-key.d.ts +1 -9
- package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/types.d.ts +6 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/types.d.ts +7 -0
- package/build-types/custom-select-control/types.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts.map +1 -1
- package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
- package/build-types/date-time/stories/date.story.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +8 -4
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts +1 -1
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/drop-zone/types.d.ts +5 -0
- package/build-types/drop-zone/types.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +83 -83
- package/build-types/flex/flex/hook.d.ts +83 -83
- package/build-types/flex/flex-block/hook.d.ts +83 -83
- package/build-types/flex/flex-item/hook.d.ts +83 -83
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
- package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts +2 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/form-file-upload/types.d.ts +10 -8
- package/build-types/form-file-upload/types.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts +1 -1
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/types.d.ts +6 -0
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +83 -83
- package/build-types/h-stack/hook.d.ts +83 -83
- package/build-types/heading/hook.d.ts +82 -82
- package/build-types/higher-order/with-fallback-styles/index.d.ts +2 -2
- package/build-types/higher-order/with-filters/index.d.ts +4 -4
- package/build-types/icon/index.d.ts +23 -7
- package/build-types/icon/index.d.ts.map +1 -1
- package/build-types/icon/stories/index.story.d.ts +7 -1
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -1
- package/build-types/index.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +83 -83
- package/build-types/item-group/item-group/hook.d.ts +83 -83
- package/build-types/lock-unlock.d.ts +2 -2
- package/build-types/menu/checkbox-item.d.ts.map +1 -1
- package/build-types/menu/group-label.d.ts.map +1 -1
- package/build-types/menu/group.d.ts.map +1 -1
- package/build-types/menu/index.d.ts.map +1 -1
- package/build-types/menu/item-help-text.d.ts.map +1 -1
- package/build-types/menu/item-label.d.ts.map +1 -1
- package/build-types/menu/item.d.ts.map +1 -1
- package/build-types/menu/radio-item.d.ts.map +1 -1
- package/build-types/menu/separator.d.ts.map +1 -1
- package/build-types/menu/styles.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +92 -92
- package/build-types/navigator/navigator-button/hook.d.ts +92 -92
- package/build-types/number-control/index.d.ts +2 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +2 -1
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +7 -0
- package/build-types/number-control/types.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/styles.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +1 -1
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/mark.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +4 -3
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +83 -83
- package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
- package/build-types/slot-fill/types.d.ts +4 -3
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +83 -83
- package/build-types/spinner/styles.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +83 -83
- package/build-types/tabs/tab.d.ts +3 -0
- package/build-types/tabs/tab.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +83 -83
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts +2 -0
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +83 -83
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +83 -83
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +83 -83
- package/build-types/tree-grid/cell.d.ts.map +1 -1
- package/build-types/tree-grid/types.d.ts +1 -1
- package/build-types/tree-grid/types.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +83 -83
- package/build-types/unit-control/index.d.ts +3 -2
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +7 -0
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/utils/colors-values.d.ts +3 -0
- package/build-types/utils/colors-values.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +0 -1
- package/build-types/utils/hooks/use-controlled-state.d.ts +1 -1
- package/build-types/utils/hooks/use-controlled-state.d.ts.map +1 -1
- package/build-types/utils/rtl.d.ts +1 -1
- package/build-types/utils/rtl.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +83 -83
- package/build-types/z-stack/styles.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/alignment-matrix-control/stories/index.story.tsx +2 -2
- package/src/angle-picker-control/index.tsx +1 -1
- package/src/angle-picker-control/stories/index.story.tsx +2 -2
- package/src/animation/index.tsx +0 -1
- package/src/base-control/stories/index.story.tsx +1 -1
- package/src/border-box-control/border-box-control-split-controls/component.tsx +1 -1
- package/src/border-box-control/stories/index.story.tsx +1 -1
- package/src/border-control/border-control/component.tsx +2 -0
- package/src/border-control/stories/index.story.tsx +1 -1
- package/src/box-control/README.md +80 -60
- package/src/box-control/docs-manifest.json +5 -0
- package/src/box-control/index.tsx +47 -29
- package/src/box-control/input-control.tsx +197 -0
- package/src/box-control/stories/index.story.tsx +2 -1
- package/src/box-control/test/index.tsx +33 -26
- package/src/box-control/types.ts +80 -55
- package/src/box-control/utils.ts +62 -60
- package/src/button/README.md +108 -219
- package/src/button/docs-manifest.json +5 -0
- package/src/button/stories/best-practices.mdx +31 -0
- package/src/button/stories/index.story.tsx +18 -0
- package/src/button/types.ts +6 -4
- package/src/button-group/stories/index.story.tsx +1 -1
- package/src/card/stories/index.story.tsx +2 -2
- package/src/checkbox-control/stories/index.story.tsx +1 -1
- package/src/circular-option-picker/circular-option-picker-actions.tsx +1 -0
- package/src/circular-option-picker/circular-option-picker-option.tsx +1 -0
- package/src/circular-option-picker/stories/index.story.tsx +2 -2
- package/src/circular-option-picker/style.scss +2 -2
- package/src/clipboard-button/index.tsx +5 -3
- package/src/color-palette/stories/index.story.tsx +3 -3
- package/src/color-picker/input-with-slider.tsx +1 -1
- package/src/color-picker/stories/index.story.tsx +2 -2
- package/src/combobox-control/stories/index.story.tsx +1 -1
- package/src/composite/item.tsx +1 -19
- package/src/composite/stories/index.story.tsx +3 -3
- package/src/confirm-dialog/stories/index.story.tsx +1 -1
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +2 -0
- package/src/custom-gradient-picker/index.tsx +2 -0
- package/src/custom-gradient-picker/style.scss +1 -1
- package/src/custom-gradient-picker/types.ts +6 -0
- package/src/custom-select-control/README.md +2 -0
- package/src/custom-select-control/index.tsx +11 -2
- package/src/custom-select-control/stories/index.story.tsx +3 -2
- package/src/custom-select-control/test/index.tsx +13 -9
- package/src/custom-select-control/types.ts +7 -0
- package/src/custom-select-control-v2/stories/index.story.tsx +2 -2
- package/src/date-time/stories/date-time.story.tsx +4 -1
- package/src/date-time/stories/date.story.tsx +4 -1
- package/src/date-time/stories/time.story.tsx +4 -1
- package/src/dimension-control/stories/index.story.tsx +1 -1
- package/src/disabled/stories/index.story.tsx +3 -3
- package/src/divider/stories/index.story.tsx +1 -1
- package/src/draggable/stories/index.story.tsx +2 -2
- package/src/drop-zone/index.tsx +21 -24
- package/src/drop-zone/types.ts +5 -0
- package/src/dropdown/stories/index.story.tsx +7 -7
- package/src/dropdown-menu/index.tsx +4 -1
- package/src/dropdown-menu/stories/index.story.tsx +3 -3
- package/src/dropdown-menu/style.scss +1 -1
- package/src/duotone-picker/color-list-picker/index.tsx +8 -8
- package/src/duotone-picker/color-list-picker/style.scss +0 -6
- package/src/duotone-picker/stories/duotone-picker.story.tsx +1 -1
- package/src/flex/stories/index.story.tsx +1 -1
- package/src/font-size-picker/font-size-picker-select.tsx +1 -0
- package/src/font-size-picker/index.tsx +1 -0
- package/src/font-size-picker/stories/index.story.tsx +1 -1
- package/src/form-file-upload/README.md +58 -48
- package/src/form-file-upload/docs-manifest.json +5 -0
- package/src/form-file-upload/index.tsx +12 -1
- package/src/form-file-upload/stories/index.story.tsx +4 -3
- package/src/form-file-upload/test/index.tsx +5 -1
- package/src/form-file-upload/types.ts +10 -8
- package/src/form-token-field/README.md +1 -0
- package/src/form-token-field/index.tsx +7 -0
- package/src/form-token-field/stories/index.story.tsx +4 -2
- package/src/form-token-field/test/index.tsx +5 -1
- package/src/gradient-picker/README.md +8 -0
- package/src/gradient-picker/index.tsx +2 -0
- package/src/gradient-picker/stories/index.story.tsx +1 -1
- package/src/gradient-picker/types.ts +6 -0
- package/src/grid/stories/index.story.tsx +1 -1
- package/src/h-stack/stories/index.story.tsx +2 -2
- package/src/icon/README.md +22 -65
- package/src/icon/docs-manifest.json +5 -0
- package/src/icon/index.tsx +28 -13
- package/src/icon/stories/index.story.tsx +50 -8
- package/src/index.ts +1 -5
- package/src/input-control/stories/index.story.tsx +4 -4
- package/src/item-group/stories/index.story.tsx +2 -2
- package/src/menu/checkbox-item.tsx +9 -7
- package/src/menu/group-label.tsx +8 -1
- package/src/menu/group.tsx +8 -1
- package/src/menu/item-help-text.tsx +10 -1
- package/src/menu/item-label.tsx +10 -1
- package/src/menu/item.tsx +8 -6
- package/src/menu/radio-item.tsx +9 -7
- package/src/menu/separator.tsx +9 -2
- package/src/menu/stories/index.story.tsx +2 -2
- package/src/menu/styles.ts +1 -1
- package/src/menu-group/stories/index.story.tsx +1 -1
- package/src/menu-item/stories/index.story.tsx +1 -1
- package/src/menu-items-choice/stories/index.story.tsx +1 -1
- package/src/menu-items-choice/style.scss +1 -0
- package/src/modal/stories/index.story.tsx +2 -2
- package/src/modal/test/index.tsx +2 -1
- package/src/navigable-container/stories/navigable-menu.story.tsx +1 -1
- package/src/navigable-container/stories/tabbable-container.story.tsx +1 -1
- package/src/navigation/stories/index.story.tsx +4 -4
- package/src/navigation/styles/navigation-styles.tsx +3 -2
- package/src/navigator/stories/index.story.tsx +3 -3
- package/src/number-control/README.md +2 -1
- package/src/number-control/index.tsx +9 -0
- package/src/number-control/stories/index.story.tsx +2 -1
- package/src/number-control/test/index.tsx +5 -1
- package/src/number-control/types.ts +7 -0
- package/src/panel/stories/index.story.tsx +1 -1
- package/src/placeholder/stories/index.story.tsx +3 -3
- package/src/popover/stories/index.story.tsx +11 -9
- package/src/query-controls/stories/index.story.tsx +6 -6
- package/src/radio-control/stories/index.story.tsx +1 -1
- package/src/radio-group/stories/index.story.tsx +3 -3
- package/src/range-control/index.tsx +1 -0
- package/src/range-control/mark.tsx +0 -1
- package/src/range-control/stories/index.story.tsx +7 -7
- package/src/range-control/styles/range-control-styles.ts +18 -19
- package/src/resizable-box/index.tsx +10 -0
- package/src/resizable-box/stories/index.story.tsx +1 -1
- package/src/resizable-box/style.scss +8 -0
- package/src/responsive-wrapper/stories/index.story.tsx +1 -1
- package/src/sandbox/stories/index.story.tsx +1 -1
- package/src/scrollable/stories/index.story.tsx +2 -1
- package/src/search-control/stories/index.story.tsx +1 -1
- package/src/select-control/stories/index.story.tsx +1 -1
- package/src/slot-fill/bubbles-virtually/fill.tsx +7 -11
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -13
- package/src/slot-fill/bubbles-virtually/slot.tsx +4 -7
- package/src/slot-fill/stories/index.story.tsx +2 -2
- package/src/slot-fill/types.ts +4 -3
- package/src/snackbar/stories/index.story.tsx +4 -4
- package/src/snackbar/stories/list.story.tsx +2 -2
- package/src/surface/stories/index.story.tsx +1 -1
- package/src/tabs/tab.tsx +0 -18
- package/src/tabs/test/index.tsx +1492 -947
- package/src/text-control/stories/index.story.tsx +1 -1
- package/src/textarea-control/stories/index.story.tsx +1 -1
- package/src/theme/stories/index.story.tsx +1 -1
- package/src/toggle-control/stories/index.story.tsx +1 -1
- package/src/toggle-group-control/stories/index.story.tsx +1 -1
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +22 -22
- package/src/toggle-group-control/toggle-group-control/styles.ts +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +6 -6
- package/src/toolbar/stories/index.story.tsx +1 -1
- package/src/toolbar/toolbar-button/index.tsx +2 -0
- package/src/tools-panel/stories/index.story.tsx +15 -3
- package/src/tools-panel/test/index.tsx +0 -17
- package/src/tools-panel/tools-panel/README.md +4 -0
- package/src/tools-panel/tools-panel/component.tsx +2 -0
- package/src/tooltip/stories/index.story.tsx +1 -1
- package/src/tree-grid/cell.tsx +5 -1
- package/src/tree-grid/stories/index.story.tsx +1 -1
- package/src/tree-grid/types.ts +1 -1
- package/src/tree-select/stories/index.story.tsx +1 -1
- package/src/unit-control/README.md +3 -3
- package/src/unit-control/index.tsx +11 -1
- package/src/unit-control/stories/index.story.tsx +5 -4
- package/src/unit-control/test/index.tsx +5 -1
- package/src/unit-control/types.ts +7 -0
- package/src/utils/colors-values.js +3 -0
- package/src/utils/config-values.js +0 -1
- package/src/view/stories/index.story.tsx +1 -1
- package/src/visually-hidden/stories/index.story.tsx +1 -1
- package/src/z-stack/stories/index.story.tsx +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/box-control/all-input-control.js +0 -90
- package/build/box-control/all-input-control.js.map +0 -1
- package/build/box-control/axial-input-controls.js +0 -124
- package/build/box-control/axial-input-controls.js.map +0 -1
- package/build/box-control/input-controls.js +0 -132
- package/build/box-control/input-controls.js.map +0 -1
- package/build/menu/use-temporary-focus-visible-fix.js +0 -27
- package/build/menu/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-module/box-control/all-input-control.js +0 -83
- package/build-module/box-control/all-input-control.js.map +0 -1
- package/build-module/box-control/axial-input-controls.js +0 -115
- package/build-module/box-control/axial-input-controls.js.map +0 -1
- package/build-module/box-control/input-controls.js +0 -123
- package/build-module/box-control/input-controls.js.map +0 -1
- package/build-module/menu/use-temporary-focus-visible-fix.js +0 -20
- package/build-module/menu/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-types/box-control/all-input-control.d.ts +0 -3
- package/build-types/box-control/all-input-control.d.ts.map +0 -1
- package/build-types/box-control/axial-input-controls.d.ts +0 -3
- package/build-types/box-control/axial-input-controls.d.ts.map +0 -1
- package/build-types/box-control/input-controls.d.ts +0 -3
- package/build-types/box-control/input-controls.d.ts.map +0 -1
- package/build-types/menu/use-temporary-focus-visible-fix.d.ts +0 -8
- package/build-types/menu/use-temporary-focus-visible-fix.d.ts.map +0 -1
- package/src/box-control/all-input-control.tsx +0 -109
- package/src/box-control/axial-input-controls.tsx +0 -164
- package/src/box-control/input-controls.tsx +0 -166
- package/src/menu/use-temporary-focus-visible-fix.ts +0 -22
|
@@ -47,26 +47,68 @@ FillColor.args = {
|
|
|
47
47
|
...Default.args,
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* When `icon` is a function, it will be passed the `size` prop and any other additional props.
|
|
52
|
+
*/
|
|
50
53
|
export const WithAFunction = Template.bind( {} );
|
|
51
54
|
WithAFunction.args = {
|
|
52
55
|
...Default.args,
|
|
53
|
-
icon: () => (
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
icon: ( { size }: { size?: number } ) => (
|
|
57
|
+
<img
|
|
58
|
+
width={ size }
|
|
59
|
+
height={ size }
|
|
60
|
+
src="https://s.w.org/style/images/about/WordPress-logotype-wmark.png"
|
|
61
|
+
alt="WordPress"
|
|
62
|
+
/>
|
|
57
63
|
),
|
|
58
64
|
};
|
|
65
|
+
WithAFunction.parameters = {
|
|
66
|
+
docs: {
|
|
67
|
+
source: {
|
|
68
|
+
code: `
|
|
69
|
+
<Icon
|
|
70
|
+
icon={ ( { size } ) => (
|
|
71
|
+
<img
|
|
72
|
+
width={ size }
|
|
73
|
+
height={ size }
|
|
74
|
+
src="https://s.w.org/style/images/about/WordPress-logotype-wmark.png"
|
|
75
|
+
alt="WordPress"
|
|
76
|
+
/>
|
|
77
|
+
) }
|
|
78
|
+
/>
|
|
79
|
+
`,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
};
|
|
59
83
|
|
|
60
|
-
const MyIconComponent = () => (
|
|
61
|
-
<SVG>
|
|
84
|
+
const MyIconComponent = ( { size }: { size?: number } ) => (
|
|
85
|
+
<SVG width={ size } height={ size }>
|
|
62
86
|
<Path d="M5 4v3h5.5v12h3V7H19V4z" />
|
|
63
87
|
</SVG>
|
|
64
88
|
);
|
|
65
89
|
|
|
90
|
+
/**
|
|
91
|
+
* When `icon` is a component, it will be passed the `size` prop and any other additional props.
|
|
92
|
+
*/
|
|
66
93
|
export const WithAComponent = Template.bind( {} );
|
|
67
94
|
WithAComponent.args = {
|
|
68
95
|
...Default.args,
|
|
69
|
-
icon: MyIconComponent
|
|
96
|
+
icon: <MyIconComponent />,
|
|
97
|
+
};
|
|
98
|
+
WithAComponent.parameters = {
|
|
99
|
+
docs: {
|
|
100
|
+
source: {
|
|
101
|
+
code: `
|
|
102
|
+
const MyIconComponent = ( { size } ) => (
|
|
103
|
+
<SVG width={ size } height={ size }>
|
|
104
|
+
<Path d="M5 4v3h5.5v12h3V7H19V4z" />
|
|
105
|
+
</SVG>
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
<Icon icon={ <MyIconComponent /> } />
|
|
109
|
+
`,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
70
112
|
};
|
|
71
113
|
|
|
72
114
|
export const WithAnSVG = Template.bind( {} );
|
|
@@ -80,7 +122,7 @@ WithAnSVG.args = {
|
|
|
80
122
|
};
|
|
81
123
|
|
|
82
124
|
/**
|
|
83
|
-
* Although it's preferred to use icons from the `@wordpress/icons` package, Dashicons are still supported,
|
|
125
|
+
* Although it's preferred to use icons from the `@wordpress/icons` package, [Dashicons](https://developer.wordpress.org/resource/dashicons/) are still supported,
|
|
84
126
|
* as long as you are in a context where the Dashicons stylesheet is loaded. To simulate that here,
|
|
85
127
|
* use the Global CSS Injector in the Storybook toolbar at the top and select the "WordPress" preset.
|
|
86
128
|
*/
|
package/src/index.ts
CHANGED
|
@@ -21,11 +21,7 @@ export {
|
|
|
21
21
|
default as Animate,
|
|
22
22
|
getAnimateClassName as __unstableGetAnimateClassName,
|
|
23
23
|
} from './animate';
|
|
24
|
-
export {
|
|
25
|
-
__unstableMotion,
|
|
26
|
-
__unstableAnimatePresence,
|
|
27
|
-
__unstableMotionContext,
|
|
28
|
-
} from './animation';
|
|
24
|
+
export { __unstableMotion, __unstableAnimatePresence } from './animation';
|
|
29
25
|
export { default as AnglePickerControl } from './angle-picker-control';
|
|
30
26
|
export {
|
|
31
27
|
default as Autocomplete,
|
|
@@ -23,10 +23,10 @@ const meta: Meta< typeof InputControl > = {
|
|
|
23
23
|
subcomponents: { InputControlPrefixWrapper, InputControlSuffixWrapper },
|
|
24
24
|
argTypes: {
|
|
25
25
|
__unstableInputWidth: { control: { type: 'text' } },
|
|
26
|
-
__unstableStateReducer: { control:
|
|
27
|
-
onChange: { control:
|
|
28
|
-
prefix: { control:
|
|
29
|
-
suffix: { control:
|
|
26
|
+
__unstableStateReducer: { control: false },
|
|
27
|
+
onChange: { control: false },
|
|
28
|
+
prefix: { control: false },
|
|
29
|
+
suffix: { control: false },
|
|
30
30
|
type: { control: { type: 'text' } },
|
|
31
31
|
value: { control: { disable: true } },
|
|
32
32
|
},
|
|
@@ -17,8 +17,8 @@ const meta: Meta< typeof ItemGroup > = {
|
|
|
17
17
|
subcomponents: { Item },
|
|
18
18
|
title: 'Components (Experimental)/ItemGroup',
|
|
19
19
|
argTypes: {
|
|
20
|
-
as: { control:
|
|
21
|
-
children: { control:
|
|
20
|
+
as: { control: false },
|
|
21
|
+
children: { control: false },
|
|
22
22
|
},
|
|
23
23
|
parameters: {
|
|
24
24
|
controls: { expanded: true },
|
|
@@ -16,30 +16,32 @@ import type { WordPressComponentProps } from '../context';
|
|
|
16
16
|
import { MenuContext } from './context';
|
|
17
17
|
import type { MenuCheckboxItemProps } from './types';
|
|
18
18
|
import * as Styled from './styles';
|
|
19
|
-
import { useTemporaryFocusVisibleFix } from './use-temporary-focus-visible-fix';
|
|
20
19
|
|
|
21
20
|
export const MenuCheckboxItem = forwardRef<
|
|
22
21
|
HTMLDivElement,
|
|
23
22
|
WordPressComponentProps< MenuCheckboxItemProps, 'div', false >
|
|
24
23
|
>( function MenuCheckboxItem(
|
|
25
|
-
{ suffix, children,
|
|
24
|
+
{ suffix, children, hideOnClick = false, ...props },
|
|
26
25
|
ref
|
|
27
26
|
) {
|
|
28
|
-
// TODO: Remove when https://github.com/ariakit/ariakit/issues/4083 is fixed
|
|
29
|
-
const focusVisibleFixProps = useTemporaryFocusVisibleFix( { onBlur } );
|
|
30
27
|
const menuContext = useContext( MenuContext );
|
|
31
28
|
|
|
29
|
+
if ( ! menuContext?.store ) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
'Menu.CheckboxItem can only be rendered inside a Menu component'
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
32
35
|
return (
|
|
33
36
|
<Styled.MenuCheckboxItem
|
|
34
37
|
ref={ ref }
|
|
35
38
|
{ ...props }
|
|
36
|
-
{ ...focusVisibleFixProps }
|
|
37
39
|
accessibleWhenDisabled
|
|
38
40
|
hideOnClick={ hideOnClick }
|
|
39
|
-
store={ menuContext
|
|
41
|
+
store={ menuContext.store }
|
|
40
42
|
>
|
|
41
43
|
<Ariakit.MenuItemCheck
|
|
42
|
-
store={ menuContext
|
|
44
|
+
store={ menuContext.store }
|
|
43
45
|
render={ <Styled.ItemPrefixWrapper /> }
|
|
44
46
|
// Override some ariakit inline styles
|
|
45
47
|
style={ { width: 'auto', height: 'auto' } }
|
package/src/menu/group-label.tsx
CHANGED
|
@@ -17,6 +17,13 @@ export const MenuGroupLabel = forwardRef<
|
|
|
17
17
|
WordPressComponentProps< MenuGroupLabelProps, 'div', false >
|
|
18
18
|
>( function MenuGroup( props, ref ) {
|
|
19
19
|
const menuContext = useContext( MenuContext );
|
|
20
|
+
|
|
21
|
+
if ( ! menuContext?.store ) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
'Menu.GroupLabel can only be rendered inside a Menu component'
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
return (
|
|
21
28
|
<Styled.MenuGroupLabel
|
|
22
29
|
ref={ ref }
|
|
@@ -31,7 +38,7 @@ export const MenuGroupLabel = forwardRef<
|
|
|
31
38
|
/>
|
|
32
39
|
}
|
|
33
40
|
{ ...props }
|
|
34
|
-
store={ menuContext
|
|
41
|
+
store={ menuContext.store }
|
|
35
42
|
/>
|
|
36
43
|
);
|
|
37
44
|
} );
|
package/src/menu/group.tsx
CHANGED
|
@@ -16,11 +16,18 @@ export const MenuGroup = forwardRef<
|
|
|
16
16
|
WordPressComponentProps< MenuGroupProps, 'div', false >
|
|
17
17
|
>( function MenuGroup( props, ref ) {
|
|
18
18
|
const menuContext = useContext( MenuContext );
|
|
19
|
+
|
|
20
|
+
if ( ! menuContext?.store ) {
|
|
21
|
+
throw new Error(
|
|
22
|
+
'Menu.Group can only be rendered inside a Menu component'
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
return (
|
|
20
27
|
<Styled.MenuGroup
|
|
21
28
|
ref={ ref }
|
|
22
29
|
{ ...props }
|
|
23
|
-
store={ menuContext
|
|
30
|
+
store={ menuContext.store }
|
|
24
31
|
/>
|
|
25
32
|
);
|
|
26
33
|
} );
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { forwardRef } from '@wordpress/element';
|
|
4
|
+
import { forwardRef, useContext } from '@wordpress/element';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import type { WordPressComponentProps } from '../context';
|
|
10
|
+
import { MenuContext } from './context';
|
|
10
11
|
import * as Styled from './styles';
|
|
11
12
|
|
|
12
13
|
export const MenuItemHelpText = forwardRef<
|
|
13
14
|
HTMLSpanElement,
|
|
14
15
|
WordPressComponentProps< { children: React.ReactNode }, 'span', true >
|
|
15
16
|
>( function MenuItemHelpText( props, ref ) {
|
|
17
|
+
const menuContext = useContext( MenuContext );
|
|
18
|
+
|
|
19
|
+
if ( ! menuContext?.store ) {
|
|
20
|
+
throw new Error(
|
|
21
|
+
'Menu.ItemHelpText can only be rendered inside a Menu component'
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
return (
|
|
17
26
|
<Styled.MenuItemHelpText numberOfLines={ 2 } ref={ ref } { ...props } />
|
|
18
27
|
);
|
package/src/menu/item-label.tsx
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { forwardRef } from '@wordpress/element';
|
|
4
|
+
import { forwardRef, useContext } from '@wordpress/element';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import type { WordPressComponentProps } from '../context';
|
|
10
|
+
import { MenuContext } from './context';
|
|
10
11
|
import * as Styled from './styles';
|
|
11
12
|
|
|
12
13
|
export const MenuItemLabel = forwardRef<
|
|
13
14
|
HTMLSpanElement,
|
|
14
15
|
WordPressComponentProps< { children: React.ReactNode }, 'span', true >
|
|
15
16
|
>( function MenuItemLabel( props, ref ) {
|
|
17
|
+
const menuContext = useContext( MenuContext );
|
|
18
|
+
|
|
19
|
+
if ( ! menuContext?.store ) {
|
|
20
|
+
throw new Error(
|
|
21
|
+
'Menu.ItemLabel can only be rendered inside a Menu component'
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
return (
|
|
17
26
|
<Styled.MenuItemLabel numberOfLines={ 1 } ref={ ref } { ...props } />
|
|
18
27
|
);
|
package/src/menu/item.tsx
CHANGED
|
@@ -10,27 +10,29 @@ import type { WordPressComponentProps } from '../context';
|
|
|
10
10
|
import type { MenuItemProps } from './types';
|
|
11
11
|
import * as Styled from './styles';
|
|
12
12
|
import { MenuContext } from './context';
|
|
13
|
-
import { useTemporaryFocusVisibleFix } from './use-temporary-focus-visible-fix';
|
|
14
13
|
|
|
15
14
|
export const MenuItem = forwardRef<
|
|
16
15
|
HTMLDivElement,
|
|
17
16
|
WordPressComponentProps< MenuItemProps, 'div', false >
|
|
18
17
|
>( function MenuItem(
|
|
19
|
-
{ prefix, suffix, children,
|
|
18
|
+
{ prefix, suffix, children, hideOnClick = true, ...props },
|
|
20
19
|
ref
|
|
21
20
|
) {
|
|
22
|
-
// TODO: Remove when https://github.com/ariakit/ariakit/issues/4083 is fixed
|
|
23
|
-
const focusVisibleFixProps = useTemporaryFocusVisibleFix( { onBlur } );
|
|
24
21
|
const menuContext = useContext( MenuContext );
|
|
25
22
|
|
|
23
|
+
if ( ! menuContext?.store ) {
|
|
24
|
+
throw new Error(
|
|
25
|
+
'Menu.Item can only be rendered inside a Menu component'
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
26
29
|
return (
|
|
27
30
|
<Styled.MenuItem
|
|
28
31
|
ref={ ref }
|
|
29
32
|
{ ...props }
|
|
30
|
-
{ ...focusVisibleFixProps }
|
|
31
33
|
accessibleWhenDisabled
|
|
32
34
|
hideOnClick={ hideOnClick }
|
|
33
|
-
store={ menuContext
|
|
35
|
+
store={ menuContext.store }
|
|
34
36
|
>
|
|
35
37
|
<Styled.ItemPrefixWrapper>{ prefix }</Styled.ItemPrefixWrapper>
|
|
36
38
|
|
package/src/menu/radio-item.tsx
CHANGED
|
@@ -17,7 +17,6 @@ import { MenuContext } from './context';
|
|
|
17
17
|
import type { MenuRadioItemProps } from './types';
|
|
18
18
|
import * as Styled from './styles';
|
|
19
19
|
import { SVG, Circle } from '@wordpress/primitives';
|
|
20
|
-
import { useTemporaryFocusVisibleFix } from './use-temporary-focus-visible-fix';
|
|
21
20
|
|
|
22
21
|
const radioCheck = (
|
|
23
22
|
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
@@ -29,24 +28,27 @@ export const MenuRadioItem = forwardRef<
|
|
|
29
28
|
HTMLDivElement,
|
|
30
29
|
WordPressComponentProps< MenuRadioItemProps, 'div', false >
|
|
31
30
|
>( function MenuRadioItem(
|
|
32
|
-
{ suffix, children,
|
|
31
|
+
{ suffix, children, hideOnClick = false, ...props },
|
|
33
32
|
ref
|
|
34
33
|
) {
|
|
35
|
-
// TODO: Remove when https://github.com/ariakit/ariakit/issues/4083 is fixed
|
|
36
|
-
const focusVisibleFixProps = useTemporaryFocusVisibleFix( { onBlur } );
|
|
37
34
|
const menuContext = useContext( MenuContext );
|
|
38
35
|
|
|
36
|
+
if ( ! menuContext?.store ) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
'Menu.RadioItem can only be rendered inside a Menu component'
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
39
42
|
return (
|
|
40
43
|
<Styled.MenuRadioItem
|
|
41
44
|
ref={ ref }
|
|
42
45
|
{ ...props }
|
|
43
|
-
{ ...focusVisibleFixProps }
|
|
44
46
|
accessibleWhenDisabled
|
|
45
47
|
hideOnClick={ hideOnClick }
|
|
46
|
-
store={ menuContext
|
|
48
|
+
store={ menuContext.store }
|
|
47
49
|
>
|
|
48
50
|
<Ariakit.MenuItemCheck
|
|
49
|
-
store={ menuContext
|
|
51
|
+
store={ menuContext.store }
|
|
50
52
|
render={ <Styled.ItemPrefixWrapper /> }
|
|
51
53
|
// Override some ariakit inline styles
|
|
52
54
|
style={ { width: 'auto', height: 'auto' } }
|
package/src/menu/separator.tsx
CHANGED
|
@@ -16,12 +16,19 @@ export const MenuSeparator = forwardRef<
|
|
|
16
16
|
WordPressComponentProps< MenuSeparatorProps, 'hr', false >
|
|
17
17
|
>( function MenuSeparator( props, ref ) {
|
|
18
18
|
const menuContext = useContext( MenuContext );
|
|
19
|
+
|
|
20
|
+
if ( ! menuContext?.store ) {
|
|
21
|
+
throw new Error(
|
|
22
|
+
'Menu.Separator can only be rendered inside a Menu component'
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
return (
|
|
20
27
|
<Styled.MenuSeparator
|
|
21
28
|
ref={ ref }
|
|
22
29
|
{ ...props }
|
|
23
|
-
store={ menuContext
|
|
24
|
-
variant={ menuContext
|
|
30
|
+
store={ menuContext.store }
|
|
31
|
+
variant={ menuContext.variant }
|
|
25
32
|
/>
|
|
26
33
|
);
|
|
27
34
|
} );
|
|
@@ -46,8 +46,8 @@ const meta: Meta< typeof Menu > = {
|
|
|
46
46
|
ItemHelpText: Menu.ItemHelpText,
|
|
47
47
|
},
|
|
48
48
|
argTypes: {
|
|
49
|
-
children: { control:
|
|
50
|
-
trigger: { control:
|
|
49
|
+
children: { control: false },
|
|
50
|
+
trigger: { control: false },
|
|
51
51
|
},
|
|
52
52
|
tags: [ 'status-private' ],
|
|
53
53
|
parameters: {
|
package/src/menu/styles.ts
CHANGED
|
@@ -20,7 +20,7 @@ const meta: Meta< typeof MenuItem > = {
|
|
|
20
20
|
title: 'Components/Actions/MenuItem',
|
|
21
21
|
id: 'components-menuitem',
|
|
22
22
|
argTypes: {
|
|
23
|
-
children: { control:
|
|
23
|
+
children: { control: false },
|
|
24
24
|
icon: {
|
|
25
25
|
control: { type: 'select' },
|
|
26
26
|
options: [ 'check', 'link', 'more' ],
|
|
@@ -23,10 +23,10 @@ const meta: Meta< typeof Modal > = {
|
|
|
23
23
|
id: 'components-modal',
|
|
24
24
|
argTypes: {
|
|
25
25
|
children: {
|
|
26
|
-
control:
|
|
26
|
+
control: false,
|
|
27
27
|
},
|
|
28
28
|
onKeyDown: {
|
|
29
|
-
control:
|
|
29
|
+
control: false,
|
|
30
30
|
},
|
|
31
31
|
focusOnMount: {
|
|
32
32
|
options: [ true, false, 'firstElement', 'firstContentElement' ],
|
package/src/modal/test/index.tsx
CHANGED
|
@@ -269,7 +269,8 @@ describe( 'Modal', () => {
|
|
|
269
269
|
} );
|
|
270
270
|
|
|
271
271
|
describe( 'Focus handling', () => {
|
|
272
|
-
|
|
272
|
+
const originalGetClientRects =
|
|
273
|
+
window.HTMLElement.prototype.getClientRects;
|
|
273
274
|
|
|
274
275
|
const FocusMountDemo = ( {
|
|
275
276
|
focusOnMount,
|
|
@@ -13,7 +13,7 @@ const meta: Meta< typeof NavigableMenu > = {
|
|
|
13
13
|
id: 'components-navigablemenu',
|
|
14
14
|
component: NavigableMenu,
|
|
15
15
|
argTypes: {
|
|
16
|
-
children: { control:
|
|
16
|
+
children: { control: false },
|
|
17
17
|
},
|
|
18
18
|
parameters: {
|
|
19
19
|
actions: { argTypesRegex: '^on.*' },
|
|
@@ -13,7 +13,7 @@ const meta: Meta< typeof TabbableContainer > = {
|
|
|
13
13
|
id: 'components-tabbablecontainer',
|
|
14
14
|
component: TabbableContainer,
|
|
15
15
|
argTypes: {
|
|
16
|
-
children: { control:
|
|
16
|
+
children: { control: false },
|
|
17
17
|
},
|
|
18
18
|
parameters: {
|
|
19
19
|
actions: { argTypesRegex: '^on.*' },
|
|
@@ -39,10 +39,10 @@ const meta: Meta< typeof Navigation > = {
|
|
|
39
39
|
NavigationMenu,
|
|
40
40
|
},
|
|
41
41
|
argTypes: {
|
|
42
|
-
activeItem: { control:
|
|
43
|
-
activeMenu: { control:
|
|
44
|
-
children: { control:
|
|
45
|
-
onActivateMenu: { control:
|
|
42
|
+
activeItem: { control: false },
|
|
43
|
+
activeMenu: { control: false },
|
|
44
|
+
children: { control: false },
|
|
45
|
+
onActivateMenu: { control: false },
|
|
46
46
|
},
|
|
47
47
|
parameters: {
|
|
48
48
|
actions: { argTypesRegex: '^on.*' },
|
|
@@ -134,11 +134,12 @@ export const ItemBaseUI = styled.li`
|
|
|
134
134
|
|
|
135
135
|
&.is-active {
|
|
136
136
|
background-color: ${ COLORS.theme.accent };
|
|
137
|
-
color: ${ COLORS.
|
|
137
|
+
color: ${ COLORS.theme.accentInverted };
|
|
138
138
|
|
|
139
139
|
> button,
|
|
140
|
+
.components-button:hover,
|
|
140
141
|
> a {
|
|
141
|
-
color: ${ COLORS.
|
|
142
|
+
color: ${ COLORS.theme.accentInverted };
|
|
142
143
|
opacity: 1;
|
|
143
144
|
}
|
|
144
145
|
}
|
|
@@ -24,9 +24,9 @@ const meta: Meta< typeof Navigator > = {
|
|
|
24
24
|
title: 'Components/Navigation/Navigator',
|
|
25
25
|
id: 'components-navigator',
|
|
26
26
|
argTypes: {
|
|
27
|
-
as: { control:
|
|
28
|
-
children: { control:
|
|
29
|
-
initialPath: { control:
|
|
27
|
+
as: { control: false },
|
|
28
|
+
children: { control: false },
|
|
29
|
+
initialPath: { control: false },
|
|
30
30
|
},
|
|
31
31
|
parameters: {
|
|
32
32
|
controls: { expanded: true },
|
|
@@ -16,6 +16,7 @@ const Example = () => {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<NumberControl
|
|
19
|
+
__next40pxDefaultSize
|
|
19
20
|
isShiftStepEnabled={ true }
|
|
20
21
|
onChange={ setValue }
|
|
21
22
|
shiftStep={ 10 }
|
|
@@ -146,4 +147,4 @@ Start opting into the larger default height that will become the default size in
|
|
|
146
147
|
|
|
147
148
|
- Type: `Boolean`
|
|
148
149
|
- Required: No
|
|
149
|
-
- Default: `false`
|
|
150
|
+
- Default: `false`
|
|
@@ -26,6 +26,7 @@ import { HStack } from '../h-stack';
|
|
|
26
26
|
import { Spacer } from '../spacer';
|
|
27
27
|
import { useCx } from '../utils';
|
|
28
28
|
import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
|
|
29
|
+
import { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';
|
|
29
30
|
|
|
30
31
|
const noop = () => {};
|
|
31
32
|
|
|
@@ -53,9 +54,17 @@ function UnforwardedNumberControl(
|
|
|
53
54
|
size = 'default',
|
|
54
55
|
suffix,
|
|
55
56
|
onChange = noop,
|
|
57
|
+
__shouldNotWarnDeprecated36pxSize,
|
|
56
58
|
...restProps
|
|
57
59
|
} = useDeprecated36pxDefaultSizeProp< NumberControlProps >( props );
|
|
58
60
|
|
|
61
|
+
maybeWarnDeprecated36pxSize( {
|
|
62
|
+
componentName: 'NumberControl',
|
|
63
|
+
size,
|
|
64
|
+
__next40pxDefaultSize: restProps.__next40pxDefaultSize,
|
|
65
|
+
__shouldNotWarnDeprecated36pxSize,
|
|
66
|
+
} );
|
|
67
|
+
|
|
59
68
|
if ( hideHTMLArrows ) {
|
|
60
69
|
deprecated( 'wp.components.NumberControl hideHTMLArrows prop ', {
|
|
61
70
|
alternative: 'spinControls="none"',
|
|
@@ -23,7 +23,7 @@ const meta: Meta< typeof NumberControl > = {
|
|
|
23
23
|
step: { control: { type: 'text' } },
|
|
24
24
|
suffix: { control: { type: 'text' } },
|
|
25
25
|
type: { control: { type: 'text' } },
|
|
26
|
-
value: { control:
|
|
26
|
+
value: { control: false },
|
|
27
27
|
},
|
|
28
28
|
parameters: {
|
|
29
29
|
controls: { expanded: true },
|
|
@@ -62,4 +62,5 @@ const Template: StoryFn< typeof NumberControl > = ( {
|
|
|
62
62
|
export const Default = Template.bind( {} );
|
|
63
63
|
Default.args = {
|
|
64
64
|
label: 'Value',
|
|
65
|
+
__next40pxDefaultSize: true,
|
|
65
66
|
};
|
|
@@ -12,9 +12,13 @@ import { useState } from '@wordpress/element';
|
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
|
-
import
|
|
15
|
+
import _NumberControl from '..';
|
|
16
16
|
import type { NumberControlProps } from '../types';
|
|
17
17
|
|
|
18
|
+
const NumberControl = (
|
|
19
|
+
props: React.ComponentProps< typeof _NumberControl >
|
|
20
|
+
) => <_NumberControl __next40pxDefaultSize { ...props } />;
|
|
21
|
+
|
|
18
22
|
function StatefulNumberControl( props: NumberControlProps ) {
|
|
19
23
|
const [ value, setValue ] = useState( props.value );
|
|
20
24
|
const handleOnChange = ( v: string | undefined ) => setValue( v );
|
|
@@ -91,4 +91,11 @@ export type NumberControlProps = Omit<
|
|
|
91
91
|
* The value of the input.
|
|
92
92
|
*/
|
|
93
93
|
value?: number | string;
|
|
94
|
+
/**
|
|
95
|
+
* Do not throw a warning for the deprecated 36px default size.
|
|
96
|
+
* For internal components of other components that already throw the warning.
|
|
97
|
+
*
|
|
98
|
+
* @ignore
|
|
99
|
+
*/
|
|
100
|
+
__shouldNotWarnDeprecated36pxSize?: boolean;
|
|
94
101
|
};
|
|
@@ -23,7 +23,7 @@ const meta: Meta< typeof Panel > = {
|
|
|
23
23
|
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
24
24
|
subcomponents: { PanelRow, PanelBody },
|
|
25
25
|
argTypes: {
|
|
26
|
-
children: { control:
|
|
26
|
+
children: { control: false },
|
|
27
27
|
},
|
|
28
28
|
parameters: {
|
|
29
29
|
controls: { expanded: true },
|
|
@@ -21,9 +21,9 @@ const meta: Meta< typeof Placeholder > = {
|
|
|
21
21
|
component: Placeholder,
|
|
22
22
|
title: 'Components/Placeholder',
|
|
23
23
|
argTypes: {
|
|
24
|
-
children: { control:
|
|
25
|
-
notices: { control:
|
|
26
|
-
preview: { control:
|
|
24
|
+
children: { control: false },
|
|
25
|
+
notices: { control: false },
|
|
26
|
+
preview: { control: false },
|
|
27
27
|
icon: {
|
|
28
28
|
control: { type: 'select' },
|
|
29
29
|
options: Object.keys( ICONS ),
|