@wordpress/components 29.0.1-next.a9f418477.0 → 29.1.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 +50 -10
- package/LICENSE.md +1 -1
- 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/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/autocomplete/index.js +1 -0
- package/build/autocomplete/index.js.map +1 -1
- package/build/badge/index.js +64 -0
- package/build/badge/index.js.map +1 -0
- package/build/badge/types.js +6 -0
- package/build/badge/types.js.map +1 -0
- 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-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 +18 -14
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/input-control.js +222 -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 +101 -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/button-group/index.js +10 -0
- package/build/button-group/index.js.map +1 -1
- package/build/button-group/types.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/index.native.js +1 -0
- package/build/color-palette/index.native.js.map +1 -1
- package/build/color-palette/utils.js +1 -0
- package/build/color-palette/utils.js.map +1 -1
- package/build/combobox-control/index.js +1 -0
- package/build/combobox-control/index.js.map +1 -1
- package/build/composite/legacy/index.js +1 -0
- package/build/composite/legacy/index.js.map +1 -1
- package/build/context/context-connect.js +1 -0
- package/build/context/context-connect.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +1 -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 +1 -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/utils.js +1 -0
- package/build/custom-gradient-picker/utils.js.map +1 -1
- package/build/custom-select-control/index.js +2 -3
- package/build/custom-select-control/index.js.map +1 -1
- package/build/custom-select-control-v2/custom-select.js +2 -3
- package/build/custom-select-control-v2/custom-select.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 +2 -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 +2 -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/dropdown-menu/index.js +1 -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 +1 -0
- 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/external-link/index.js +1 -0
- package/build/external-link/index.js.map +1 -1
- package/build/font-size-picker/font-size-picker-select.js +1 -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 +1 -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/styles.js +9 -9
- package/build/font-size-picker/styles.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-token-field/index.js +1 -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 +1 -0
- package/build/gradient-picker/index.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/heading/hook.js +1 -1
- package/build/heading/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/input-control/index.js +9 -0
- package/build/input-control/index.js.map +1 -1
- package/build/input-control/types.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 +2 -0
- package/build/menu/checkbox-item.js.map +1 -1
- package/build/menu/index.js +25 -94
- package/build/menu/index.js.map +1 -1
- package/build/menu/item.js +10 -1
- package/build/menu/item.js.map +1 -1
- package/build/menu/popover.js +89 -0
- package/build/menu/popover.js.map +1 -0
- package/build/menu/radio-item.js +2 -0
- package/build/menu/radio-item.js.map +1 -1
- package/build/menu/styles.js +16 -16
- package/build/menu/styles.js.map +1 -1
- package/build/menu/submenu-trigger-item.js +58 -0
- package/build/menu/submenu-trigger-item.js.map +1 -0
- package/build/menu/trigger-button.js +45 -0
- package/build/menu/trigger-button.js.map +1 -0
- package/build/menu/types.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/navigable-container/container.js +1 -0
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigation/back-button/index.js +1 -0
- package/build/navigation/back-button/index.js.map +1 -1
- package/build/navigation/group/index.js +1 -0
- package/build/navigation/group/index.js.map +1 -1
- package/build/navigation/index.js +6 -0
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/index.js +1 -0
- package/build/navigation/item/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 +1 -0
- package/build/number-control/index.js.map +1 -1
- package/build/palette-edit/index.js +2 -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/private-apis.js +3 -1
- package/build/private-apis.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/radio-group/index.js +6 -0
- package/build/radio-group/index.js.map +1 -1
- package/build/radio-group/radio.js +2 -3
- package/build/radio-group/radio.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 +28 -28
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/resizable-box/index.js +1 -0
- 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 +10 -0
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/types.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +1 -0
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/context.js +4 -3
- package/build/slot-fill/context.js.map +1 -1
- package/build/slot-fill/fill.js +10 -15
- package/build/slot-fill/fill.js.map +1 -1
- package/build/slot-fill/provider.js +42 -55
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +32 -23
- 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/tab-panel/index.js +3 -3
- package/build/tab-panel/index.js.map +1 -1
- package/build/tabs/index.js +22 -4
- package/build/tabs/index.js.map +1 -1
- package/build/tabs/types.js.map +1 -1
- package/build/text/hook.js +6 -6
- package/build/text/hook.js.map +1 -1
- package/build/text/styles.js +7 -7
- package/build/text/styles.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/as-radio-group.js +2 -3
- package/build/toggle-group-control/toggle-group-control/as-radio-group.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-group/index.js +1 -0
- package/build/toolbar/toolbar-group/index.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/tooltip/index.js +2 -3
- package/build/tooltip/index.js.map +1 -1
- package/build/tree-grid/index.js +1 -0
- package/build/tree-grid/index.js.map +1 -1
- package/build/tree-select/index.js +11 -2
- package/build/tree-select/index.js.map +1 -1
- package/build/tree-select/types.js.map +1 -1
- package/build/unit-control/index.js +1 -0
- 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/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/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/autocomplete/index.js +1 -0
- package/build-module/autocomplete/index.js.map +1 -1
- package/build-module/badge/index.js +57 -0
- package/build-module/badge/index.js.map +1 -0
- package/build-module/badge/types.js +2 -0
- package/build-module/badge/types.js.map +1 -0
- 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-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 +20 -16
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/input-control.js +214 -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 +95 -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/button-group/index.js +10 -0
- package/build-module/button-group/index.js.map +1 -1
- package/build-module/button-group/types.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/index.native.js +1 -0
- package/build-module/color-palette/index.native.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/combobox-control/index.js +1 -0
- package/build-module/combobox-control/index.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/context/context-connect.js +1 -0
- package/build-module/context/context-connect.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +1 -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 +1 -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/utils.js +1 -0
- package/build-module/custom-gradient-picker/utils.js.map +1 -1
- package/build-module/custom-select-control/index.js +2 -3
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control-v2/custom-select.js +1 -2
- package/build-module/custom-select-control-v2/custom-select.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 +2 -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 +2 -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/dropdown-menu/index.js +1 -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 +1 -0
- 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/external-link/index.js +1 -0
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/font-size-picker/font-size-picker-select.js +1 -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 +1 -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/styles.js +9 -9
- package/build-module/font-size-picker/styles.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-token-field/index.js +1 -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 +1 -0
- package/build-module/gradient-picker/index.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/heading/hook.js +1 -1
- package/build-module/heading/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/input-control/index.js +9 -0
- package/build-module/input-control/index.js.map +1 -1
- package/build-module/input-control/types.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 +2 -0
- package/build-module/menu/checkbox-item.js.map +1 -1
- package/build-module/menu/index.js +28 -97
- package/build-module/menu/index.js.map +1 -1
- package/build-module/menu/item.js +10 -1
- package/build-module/menu/item.js.map +1 -1
- package/build-module/menu/popover.js +81 -0
- package/build-module/menu/popover.js.map +1 -0
- package/build-module/menu/radio-item.js +2 -0
- package/build-module/menu/radio-item.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/submenu-trigger-item.js +50 -0
- package/build-module/menu/submenu-trigger-item.js.map +1 -0
- package/build-module/menu/trigger-button.js +37 -0
- package/build-module/menu/trigger-button.js.map +1 -0
- package/build-module/menu/types.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/navigable-container/container.js +1 -0
- package/build-module/navigable-container/container.js.map +1 -1
- package/build-module/navigation/back-button/index.js +1 -0
- package/build-module/navigation/back-button/index.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/index.js +6 -0
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/item/index.js +1 -0
- package/build-module/navigation/item/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 +1 -0
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/palette-edit/index.js +2 -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/private-apis.js +3 -1
- package/build-module/private-apis.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/radio-group/index.js +6 -0
- package/build-module/radio-group/index.js.map +1 -1
- package/build-module/radio-group/radio.js +1 -2
- package/build-module/radio-group/radio.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 +28 -28
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/resizable-box/index.js +1 -0
- 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 +10 -0
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/types.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +1 -0
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/context.js +5 -3
- package/build-module/slot-fill/context.js.map +1 -1
- package/build-module/slot-fill/fill.js +10 -15
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/slot-fill/provider.js +42 -55
- package/build-module/slot-fill/provider.js.map +1 -1
- package/build-module/slot-fill/slot.js +33 -24
- 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/tab-panel/index.js +2 -2
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/tabs/index.js +22 -4
- package/build-module/tabs/index.js.map +1 -1
- package/build-module/tabs/types.js.map +1 -1
- package/build-module/text/hook.js +6 -6
- package/build-module/text/hook.js.map +1 -1
- package/build-module/text/styles.js +7 -7
- package/build-module/text/styles.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/as-radio-group.js +1 -2
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.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-group/index.js +1 -0
- package/build-module/toolbar/toolbar-group/index.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/tooltip/index.js +1 -2
- package/build-module/tooltip/index.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-select/index.js +11 -2
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/tree-select/types.js.map +1 -1
- package/build-module/unit-control/index.js +1 -0
- 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/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 +60 -13
- package/build-style/style.css +60 -13
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
- package/build-types/animate/stories/index.story.d.ts +7 -7
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/badge/index.d.ts +8 -0
- package/build-types/badge/index.d.ts.map +1 -0
- package/build-types/badge/stories/index.story.d.ts +17 -0
- package/build-types/badge/stories/index.story.d.ts.map +1 -0
- package/build-types/badge/test/index.d.ts +2 -0
- package/build-types/badge/test/index.d.ts.map +1 -0
- package/build-types/badge/types.d.ts +13 -0
- package/build-types/badge/types.d.ts.map +1 -0
- package/build-types/base-control/stories/index.story.d.ts +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts +1 -1
- package/build-types/border-control/stories/index.story.d.ts +5 -5
- package/build-types/box-control/index.d.ts +1 -1
- 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 +356 -11
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +2 -2
- package/build-types/box-control/types.d.ts +26 -1
- package/build-types/box-control/types.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +49 -15
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +25 -7
- 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/button-group/index.d.ts +3 -1
- package/build-types/button-group/index.d.ts.map +1 -1
- package/build-types/button-group/stories/index.story.d.ts +6 -0
- package/build-types/button-group/stories/index.story.d.ts.map +1 -1
- package/build-types/button-group/types.d.ts +7 -0
- package/build-types/button-group/types.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +3 -3
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +2 -2
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +4 -4
- package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts +3 -3
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +3 -3
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/date-time/date/index.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts +1 -1
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +4 -4
- package/build-types/dimension-control/index.d.ts.map +1 -1
- package/build-types/dimension-control/stories/index.story.d.ts +1 -1
- package/build-types/disabled/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +3 -3
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts +1 -1
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/icon/stories/index.story.d.ts +4 -4
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/input-control/index.d.ts +1 -0
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/stories/index.story.d.ts +7 -7
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +11 -2
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/checkbox-item.d.ts.map +1 -1
- package/build-types/menu/index.d.ts +10 -1
- package/build-types/menu/index.d.ts.map +1 -1
- package/build-types/menu/item.d.ts.map +1 -1
- package/build-types/menu/popover.d.ts +3 -0
- package/build-types/menu/popover.d.ts.map +1 -0
- package/build-types/menu/radio-item.d.ts.map +1 -1
- package/build-types/menu/stories/index.story.d.ts +9 -9
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/submenu-trigger-item.d.ts +3 -0
- package/build-types/menu/submenu-trigger-item.d.ts.map +1 -0
- package/build-types/menu/trigger-button.d.ts +3 -0
- package/build-types/menu/trigger-button.d.ts.map +1 -0
- package/build-types/menu/types.d.ts +208 -57
- package/build-types/menu/types.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts +1 -1
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +4 -4
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/navigation/back-button/index.d.ts.map +1 -1
- package/build-types/navigation/index.d.ts.map +1 -1
- package/build-types/navigation/item/index.d.ts.map +1 -1
- package/build-types/navigation/stories/index.story.d.ts +6 -6
- package/build-types/navigation/stories/index.story.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts +4 -4
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +1 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +2 -2
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts +2 -2
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts +1 -1
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-group/index.d.ts.map +1 -1
- package/build-types/radio-group/radio.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts +2 -2
- package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +1 -1
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts +1 -0
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts +5 -5
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +1 -1
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/shortcut/stories/index.story.d.ts +1 -1
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/context.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/slot-fill/types.d.ts +13 -11
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts +4 -4
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/index.d.ts +21 -4
- package/build-types/tabs/index.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts +10 -10
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/types.d.ts +13 -13
- package/build-types/tabs/types.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts +3 -3
- package/build-types/theme/stories/index.story.d.ts +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts +3 -3
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts +1 -1
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts +3 -2
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts +1 -1
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/types.d.ts +5 -1
- package/build-types/tree-select/types.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +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/v-stack/stories/index.story.d.ts +1 -1
- package/package.json +19 -19
- package/src/alignment-matrix-control/README.md +16 -15
- package/src/angle-picker-control/README.md +10 -9
- package/src/badge/README.md +24 -0
- package/src/badge/docs-manifest.json +5 -0
- package/src/badge/index.tsx +67 -0
- package/src/badge/stories/index.story.tsx +54 -0
- package/src/badge/styles.scss +49 -0
- package/src/badge/test/index.tsx +45 -0
- package/src/badge/types.ts +12 -0
- package/src/base-control/README.md +22 -21
- package/src/box-control/README.md +41 -24
- package/src/box-control/index.tsx +28 -14
- package/src/box-control/input-control.tsx +299 -0
- package/src/box-control/stories/index.story.tsx +12 -0
- package/src/box-control/types.ts +27 -1
- package/src/box-control/utils.ts +122 -60
- package/src/button/README.md +110 -220
- 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/style.scss +9 -10
- package/src/button/test/index.tsx +9 -2
- package/src/button/types.ts +6 -4
- package/src/button-group/README.md +4 -0
- package/src/button-group/index.tsx +11 -1
- package/src/button-group/stories/index.story.tsx +8 -1
- package/src/button-group/types.ts +7 -0
- package/src/custom-select-control/index.tsx +1 -1
- package/src/custom-select-control-v2/custom-select.tsx +1 -2
- package/src/custom-select-control-v2/stories/index.story.tsx +4 -0
- package/src/date-time/date/index.tsx +1 -0
- package/src/dimension-control/index.tsx +1 -0
- package/src/dimension-control/test/__snapshots__/index.test.js.snap +4 -4
- package/src/disabled/stories/index.story.tsx +1 -0
- package/src/drop-zone/stories/index.story.tsx +7 -1
- package/src/font-size-picker/styles.ts +1 -0
- package/src/form-file-upload/README.md +22 -21
- package/src/gradient-picker/README.md +36 -35
- package/src/heading/hook.ts +1 -1
- package/src/heading/test/__snapshots__/index.tsx.snap +4 -4
- package/src/icon/README.md +9 -8
- package/src/input-control/README.md +1 -0
- package/src/input-control/index.tsx +10 -0
- package/src/input-control/stories/index.story.tsx +6 -1
- package/src/input-control/test/index.js +9 -3
- package/src/input-control/types.ts +11 -2
- package/src/menu/checkbox-item.tsx +2 -1
- package/src/menu/index.tsx +61 -165
- package/src/menu/item.tsx +17 -2
- package/src/menu/popover.tsx +103 -0
- package/src/menu/radio-item.tsx +2 -1
- package/src/menu/stories/index.story.tsx +533 -381
- package/src/menu/styles.ts +1 -1
- package/src/menu/submenu-trigger-item.tsx +61 -0
- package/src/menu/test/index.tsx +266 -182
- package/src/menu/trigger-button.tsx +46 -0
- package/src/menu/types.ts +210 -63
- package/src/modal/stories/index.story.tsx +4 -1
- package/src/navigation/back-button/index.tsx +1 -0
- package/src/navigation/index.tsx +7 -0
- package/src/navigation/item/index.tsx +2 -0
- package/src/navigation/styles/navigation-styles.tsx +3 -2
- package/src/navigation/test/index.tsx +4 -0
- package/src/navigator/test/index.tsx +4 -0
- package/src/number-control/index.tsx +1 -0
- package/src/palette-edit/index.tsx +1 -0
- package/src/panel/stories/index.story.tsx +3 -3
- package/src/private-apis.ts +2 -0
- package/src/radio-group/index.tsx +12 -1
- package/src/radio-group/radio.tsx +1 -2
- package/src/range-control/styles/range-control-styles.ts +8 -4
- package/src/select-control/README.md +3 -0
- package/src/select-control/index.tsx +10 -0
- package/src/select-control/stories/index.story.tsx +2 -0
- package/src/select-control/test/select-control.tsx +7 -1
- package/src/select-control/types.ts +1 -0
- package/src/slot-fill/context.ts +5 -3
- package/src/slot-fill/fill.ts +10 -15
- package/src/slot-fill/provider.tsx +63 -64
- package/src/slot-fill/slot.tsx +40 -27
- package/src/slot-fill/types.ts +23 -11
- package/src/style.scss +1 -0
- package/src/tab-panel/index.tsx +1 -2
- package/src/tab-panel/stories/index.story.tsx +4 -0
- package/src/tabs/README.md +151 -187
- package/src/tabs/docs-manifest.json +22 -0
- package/src/tabs/index.tsx +21 -4
- package/src/tabs/stories/best-practices.mdx +99 -0
- package/src/tabs/stories/index.story.tsx +5 -0
- package/src/tabs/types.ts +13 -14
- package/src/text/hook.ts +2 -2
- package/src/text/styles.ts +1 -1
- package/src/text/test/__snapshots__/index.tsx.snap +3 -3
- package/src/text/test/index.tsx +1 -1
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +24 -24
- package/src/toggle-group-control/test/index.tsx +7 -1
- package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +1 -2
- 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/tooltip/index.tsx +1 -2
- package/src/tree-grid/stories/index.story.tsx +2 -0
- package/src/tree-select/README.md +144 -28
- package/src/tree-select/docs-manifest.json +5 -0
- package/src/tree-select/index.tsx +11 -2
- package/src/tree-select/stories/index.story.tsx +1 -0
- package/src/tree-select/types.ts +8 -1
- package/src/utils/colors-values.js +3 -0
- package/src/utils/config-values.js +0 -1
- package/tsconfig.json +0 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/build/box-control/all-input-control.js +0 -91
- package/build/box-control/all-input-control.js.map +0 -1
- package/build/box-control/axial-input-controls.js +0 -125
- package/build/box-control/axial-input-controls.js.map +0 -1
- package/build/box-control/input-controls.js +0 -133
- package/build/box-control/input-controls.js.map +0 -1
- package/build/slot-fill/use-slot.js +0 -32
- package/build/slot-fill/use-slot.js.map +0 -1
- package/build-module/box-control/all-input-control.js +0 -84
- package/build-module/box-control/all-input-control.js.map +0 -1
- package/build-module/box-control/axial-input-controls.js +0 -116
- package/build-module/box-control/axial-input-controls.js.map +0 -1
- package/build-module/box-control/input-controls.js +0 -124
- package/build-module/box-control/input-controls.js.map +0 -1
- package/build-module/slot-fill/use-slot.js +0 -24
- package/build-module/slot-fill/use-slot.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/slot-fill/use-slot.d.ts +0 -10
- package/build-types/slot-fill/use-slot.d.ts.map +0 -1
- package/src/box-control/all-input-control.tsx +0 -110
- package/src/box-control/axial-input-controls.tsx +0 -165
- package/src/box-control/input-controls.tsx +0 -167
- package/src/slot-fill/use-slot.ts +0 -27
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import * as Ariakit from '@ariakit/react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* WordPress dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { forwardRef, useContext } from '@wordpress/element';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Internal dependencies
|
|
13
|
+
*/
|
|
14
|
+
import type { WordPressComponentProps } from '../context';
|
|
15
|
+
import type { MenuTriggerButtonProps } from './types';
|
|
16
|
+
import { MenuContext } from './context';
|
|
17
|
+
|
|
18
|
+
export const MenuTriggerButton = forwardRef<
|
|
19
|
+
HTMLDivElement,
|
|
20
|
+
WordPressComponentProps< MenuTriggerButtonProps, 'button', false >
|
|
21
|
+
>( function MenuTriggerButton( { children, disabled = false, ...props }, ref ) {
|
|
22
|
+
const menuContext = useContext( MenuContext );
|
|
23
|
+
|
|
24
|
+
if ( ! menuContext?.store ) {
|
|
25
|
+
throw new Error(
|
|
26
|
+
'Menu.TriggerButton can only be rendered inside a Menu component'
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if ( menuContext.store.parent ) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
'Menu.TriggerButton should not be rendered inside a nested Menu component. Use Menu.SubmenuTriggerItem instead.'
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Ariakit.MenuButton
|
|
38
|
+
ref={ ref }
|
|
39
|
+
{ ...props }
|
|
40
|
+
disabled={ disabled }
|
|
41
|
+
store={ menuContext.store }
|
|
42
|
+
>
|
|
43
|
+
{ children }
|
|
44
|
+
</Ariakit.MenuButton>
|
|
45
|
+
);
|
|
46
|
+
} );
|
package/src/menu/types.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import type * as Ariakit from '@ariakit/react';
|
|
5
|
-
import type { Placement } from '@floating-ui/react-dom';
|
|
6
5
|
|
|
7
6
|
export interface MenuContext {
|
|
8
7
|
/**
|
|
@@ -17,170 +16,318 @@ export interface MenuContext {
|
|
|
17
16
|
|
|
18
17
|
export interface MenuProps {
|
|
19
18
|
/**
|
|
20
|
-
* The
|
|
19
|
+
* The elements, which should include one instance of the `Menu.TriggerButton`
|
|
20
|
+
* component and one instance of the `Menu.Popover` component.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
children?: Ariakit.MenuProviderProps[ 'children' ];
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Whether the menu popover and its contents should be visible by default.
|
|
25
|
+
*
|
|
26
|
+
* Note: this prop will be overridden by the `open` prop if it is
|
|
27
|
+
* provided (meaning the component will be used in "controlled" mode).
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
25
30
|
*/
|
|
26
|
-
|
|
31
|
+
defaultOpen?: Ariakit.MenuProviderProps[ 'defaultOpen' ];
|
|
27
32
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
33
|
+
* Whether the menu popover and its contents should be visible.
|
|
34
|
+
* Should be used in conjunction with `onOpenChange` in order to control
|
|
35
|
+
* the open state of the menu popover.
|
|
30
36
|
*
|
|
31
|
-
*
|
|
37
|
+
* Note: this prop will set the component in "controlled" mode, and it will
|
|
38
|
+
* override the `defaultOpen` prop.
|
|
32
39
|
*/
|
|
33
|
-
|
|
40
|
+
open?: Ariakit.MenuProviderProps[ 'open' ];
|
|
34
41
|
/**
|
|
35
|
-
*
|
|
36
|
-
* with `onOpenChange`.
|
|
42
|
+
* A callback that gets called when the `open` state changes.
|
|
37
43
|
*/
|
|
38
|
-
|
|
44
|
+
onOpenChange?: Ariakit.MenuProviderProps[ 'setOpen' ];
|
|
39
45
|
/**
|
|
40
|
-
*
|
|
46
|
+
* The placement of the menu popover.
|
|
47
|
+
*
|
|
48
|
+
* @default 'bottom-start' for root-level menus, 'right-start' for submenus
|
|
41
49
|
*/
|
|
42
|
-
|
|
50
|
+
placement?: Ariakit.MenuProviderProps[ 'placement' ];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface MenuPopoverProps {
|
|
54
|
+
/**
|
|
55
|
+
* The contents of the menu popover, which should include instances of the
|
|
56
|
+
* `Menu.Item`, `Menu.CheckboxItem`, `Menu.RadioItem`, `Menu.Group`, and
|
|
57
|
+
* `Menu.Separator` components.
|
|
58
|
+
*/
|
|
59
|
+
children?: Ariakit.MenuProps[ 'children' ];
|
|
43
60
|
/**
|
|
44
61
|
* The modality of the menu popover. When set to true, interaction with
|
|
45
62
|
* outside elements will be disabled and only menu content will be visible to
|
|
46
63
|
* screen readers.
|
|
47
64
|
*
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
*
|
|
65
|
+
* Determines whether the menu popover is modal. Modal dialogs have distinct
|
|
66
|
+
* states and behaviors:
|
|
67
|
+
* - The `portal` and `preventBodyScroll` props are set to `true`. They can
|
|
68
|
+
* still be manually set to `false`.
|
|
69
|
+
* - When the dialog is open, element tree outside it will be inert.
|
|
53
70
|
*
|
|
54
|
-
* @default
|
|
71
|
+
* @default true
|
|
55
72
|
*/
|
|
56
|
-
|
|
73
|
+
modal?: Ariakit.MenuProps[ 'modal' ];
|
|
57
74
|
/**
|
|
58
75
|
* The distance between the popover and the anchor element.
|
|
59
76
|
*
|
|
60
77
|
* @default 8 for root-level menus, 16 for nested menus
|
|
61
78
|
*/
|
|
62
|
-
gutter?:
|
|
79
|
+
gutter?: Ariakit.MenuProps[ 'gutter' ];
|
|
63
80
|
/**
|
|
64
81
|
* The skidding of the popover along the anchor element. Can be set to
|
|
65
82
|
* negative values to make the popover shift to the opposite side.
|
|
66
83
|
*
|
|
67
84
|
* @default 0 for root-level menus, -8 for nested menus
|
|
68
85
|
*/
|
|
69
|
-
shift?:
|
|
86
|
+
shift?: Ariakit.MenuProps[ 'shift' ];
|
|
70
87
|
/**
|
|
71
|
-
* Determines
|
|
72
|
-
*
|
|
88
|
+
* Determines if the menu popover will hide when the user presses the
|
|
89
|
+
* Escape key.
|
|
90
|
+
*
|
|
91
|
+
* This prop can be either a boolean or a function that accepts an event as an
|
|
92
|
+
* argument and returns a boolean. The event object represents the keydown
|
|
93
|
+
* event that initiated the hide action, which could be either a native
|
|
94
|
+
* keyboard event or a React synthetic event.
|
|
73
95
|
*
|
|
74
96
|
* @default `( event ) => { event.preventDefault(); return true; }`
|
|
75
97
|
*/
|
|
76
|
-
hideOnEscape?:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
98
|
+
hideOnEscape?: Ariakit.MenuProps[ 'hideOnEscape' ];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface MenuTriggerButtonProps {
|
|
102
|
+
/**
|
|
103
|
+
* The contents of the menu trigger button.
|
|
104
|
+
*/
|
|
105
|
+
children?: Ariakit.MenuButtonProps[ 'children' ];
|
|
106
|
+
/**
|
|
107
|
+
* Allows the component to be rendered as a different HTML element or React
|
|
108
|
+
* component. The value can be a React element or a function that takes in the
|
|
109
|
+
* original component props and gives back a React element with the props
|
|
110
|
+
* merged.
|
|
111
|
+
*/
|
|
112
|
+
render?: Ariakit.MenuButtonProps[ 'render' ];
|
|
113
|
+
/**
|
|
114
|
+
* Determines if the element is disabled. This sets the `aria-disabled`
|
|
115
|
+
* attribute accordingly, enabling support for all elements, including those
|
|
116
|
+
* that don't support the native `disabled` attribute.
|
|
117
|
+
*
|
|
118
|
+
* This feature can be combined with the `accessibleWhenDisabled` prop to
|
|
119
|
+
* make disabled elements still accessible via keyboard.
|
|
120
|
+
*
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
disabled?: Ariakit.MenuButtonProps[ 'disabled' ];
|
|
124
|
+
/**
|
|
125
|
+
* Indicates whether the element should be focusable even when it is
|
|
126
|
+
* `disabled`.
|
|
127
|
+
*
|
|
128
|
+
* This is important when discoverability is a concern. For example:
|
|
129
|
+
*
|
|
130
|
+
* > A toolbar in an editor contains a set of special smart paste functions
|
|
131
|
+
* that are disabled when the clipboard is empty or when the function is not
|
|
132
|
+
* applicable to the current content of the clipboard. It could be helpful to
|
|
133
|
+
* keep the disabled buttons focusable if the ability to discover their
|
|
134
|
+
* functionality is primarily via their presence on the toolbar.
|
|
135
|
+
*
|
|
136
|
+
* Learn more on [Focusability of disabled
|
|
137
|
+
* controls](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols).
|
|
138
|
+
*/
|
|
139
|
+
accessibleWhenDisabled?: Ariakit.MenuButtonProps[ 'accessibleWhenDisabled' ];
|
|
81
140
|
}
|
|
82
141
|
|
|
83
142
|
export interface MenuGroupProps {
|
|
84
143
|
/**
|
|
85
|
-
* The contents of the menu group
|
|
86
|
-
* or more
|
|
144
|
+
* The contents of the menu group, which should include one instance of the
|
|
145
|
+
* `Menu.GroupLabel` component and one or more instances of `Menu.Item`,
|
|
146
|
+
* `Menu.CheckboxItem`, and `Menu.RadioItem`.
|
|
87
147
|
*/
|
|
88
|
-
children:
|
|
148
|
+
children: Ariakit.MenuGroupProps[ 'children' ];
|
|
89
149
|
}
|
|
90
150
|
|
|
91
151
|
export interface MenuGroupLabelProps {
|
|
92
152
|
/**
|
|
93
|
-
* The contents of the menu group label
|
|
153
|
+
* The contents of the menu group label, which should provide an accessible
|
|
154
|
+
* label for the menu group.
|
|
94
155
|
*/
|
|
95
|
-
children:
|
|
156
|
+
children: Ariakit.MenuGroupLabelProps[ 'children' ];
|
|
96
157
|
}
|
|
97
158
|
|
|
98
159
|
export interface MenuItemProps {
|
|
99
160
|
/**
|
|
100
|
-
* The contents of the menu item
|
|
161
|
+
* The contents of the menu item, which could include one instance of the
|
|
162
|
+
* `Menu.ItemLabel` component and/or one instance of the `Menu.ItemHelpText`
|
|
163
|
+
* component.
|
|
101
164
|
*/
|
|
102
|
-
children:
|
|
165
|
+
children: Ariakit.MenuItemProps[ 'children' ];
|
|
103
166
|
/**
|
|
104
|
-
* The contents of the menu item's prefix.
|
|
167
|
+
* The contents of the menu item's prefix, such as an icon.
|
|
105
168
|
*/
|
|
106
169
|
prefix?: React.ReactNode;
|
|
107
170
|
/**
|
|
108
|
-
* The contents of the menu item's suffix.
|
|
171
|
+
* The contents of the menu item's suffix, such as a keyboard shortcut.
|
|
109
172
|
*/
|
|
110
173
|
suffix?: React.ReactNode;
|
|
111
174
|
/**
|
|
112
|
-
*
|
|
175
|
+
* Determines if the menu should hide when this item is clicked.
|
|
176
|
+
*
|
|
177
|
+
* **Note**: This behavior isn't triggered if this menu item is rendered as a
|
|
178
|
+
* link and modifier keys are used to either open the link in a new tab or
|
|
179
|
+
* download it.
|
|
113
180
|
*
|
|
114
181
|
* @default true
|
|
115
182
|
*/
|
|
116
|
-
hideOnClick?:
|
|
183
|
+
hideOnClick?: Ariakit.MenuItemProps[ 'hideOnClick' ];
|
|
117
184
|
/**
|
|
118
|
-
* Determines if the element is disabled.
|
|
185
|
+
* Determines if the element is disabled. This sets the `aria-disabled`
|
|
186
|
+
* attribute accordingly, enabling support for all elements, including those
|
|
187
|
+
* that don't support the native `disabled` attribute.
|
|
188
|
+
*
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
disabled?: Ariakit.MenuItemProps[ 'disabled' ];
|
|
192
|
+
/**
|
|
193
|
+
* Allows the component to be rendered as a different HTML element or React
|
|
194
|
+
* component. The value can be a React element or a function that takes in the
|
|
195
|
+
* original component props and gives back a React element with the props
|
|
196
|
+
* merged.
|
|
197
|
+
*/
|
|
198
|
+
render?: Ariakit.MenuItemProps[ 'render' ];
|
|
199
|
+
/**
|
|
200
|
+
* The ariakit menu store. This prop is only meant for internal use.
|
|
201
|
+
* @ignore
|
|
119
202
|
*/
|
|
120
|
-
|
|
203
|
+
store?: Ariakit.MenuItemProps[ 'store' ];
|
|
121
204
|
}
|
|
122
205
|
|
|
123
|
-
export interface MenuCheckboxItemProps
|
|
124
|
-
extends Omit< MenuItemProps, 'prefix' | 'hideOnClick' > {
|
|
206
|
+
export interface MenuCheckboxItemProps {
|
|
125
207
|
/**
|
|
126
|
-
*
|
|
208
|
+
* The contents of the menu item, which could include one instance of the
|
|
209
|
+
* `Menu.ItemLabel` component and/or one instance of the `Menu.ItemHelpText`
|
|
210
|
+
* component.
|
|
211
|
+
*/
|
|
212
|
+
children: Ariakit.MenuItemCheckboxProps[ 'children' ];
|
|
213
|
+
/**
|
|
214
|
+
* The contents of the menu item's suffix, such as a keyboard shortcut.
|
|
215
|
+
*/
|
|
216
|
+
suffix?: React.ReactNode;
|
|
217
|
+
/**
|
|
218
|
+
* Determines if the menu should hide when this item is clicked.
|
|
219
|
+
*
|
|
220
|
+
* **Note**: This behavior isn't triggered if this menu item is rendered as a
|
|
221
|
+
* link and modifier keys are used to either open the link in a new tab or
|
|
222
|
+
* download it.
|
|
223
|
+
*
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
hideOnClick?: Ariakit.MenuItemCheckboxProps[ 'hideOnClick' ];
|
|
227
|
+
/**
|
|
228
|
+
* Determines if the element is disabled. This sets the `aria-disabled`
|
|
229
|
+
* attribute accordingly, enabling support for all elements, including those
|
|
230
|
+
* that don't support the native `disabled` attribute.
|
|
127
231
|
*
|
|
128
232
|
* @default false
|
|
129
233
|
*/
|
|
130
|
-
|
|
234
|
+
disabled?: Ariakit.MenuItemCheckboxProps[ 'disabled' ];
|
|
235
|
+
/**
|
|
236
|
+
* Allows the component to be rendered as a different HTML element or React
|
|
237
|
+
* component. The value can be a React element or a function that takes in the
|
|
238
|
+
* original component props and gives back a React element with the props
|
|
239
|
+
* merged.
|
|
240
|
+
*/
|
|
241
|
+
render?: Ariakit.MenuItemCheckboxProps[ 'render' ];
|
|
131
242
|
/**
|
|
132
243
|
* The checkbox menu item's name.
|
|
133
244
|
*/
|
|
134
|
-
name:
|
|
245
|
+
name: Ariakit.MenuItemCheckboxProps[ 'name' ];
|
|
135
246
|
/**
|
|
136
247
|
* The checkbox item's value, useful when using multiple checkbox menu items
|
|
137
248
|
* associated to the same `name`.
|
|
138
249
|
*/
|
|
139
|
-
value?:
|
|
250
|
+
value?: Ariakit.MenuItemCheckboxProps[ 'value' ];
|
|
140
251
|
/**
|
|
141
252
|
* The controlled checked state of the checkbox menu item.
|
|
253
|
+
*
|
|
254
|
+
* Note: this prop will override the `defaultChecked` prop.
|
|
142
255
|
*/
|
|
143
|
-
checked?:
|
|
256
|
+
checked?: Ariakit.MenuItemCheckboxProps[ 'checked' ];
|
|
144
257
|
/**
|
|
145
258
|
* The checked state of the checkbox menu item when it is initially rendered.
|
|
146
259
|
* Use when not wanting to control its checked state.
|
|
260
|
+
*
|
|
261
|
+
* Note: this prop will be overriden by the `checked` prop, if it is defined.
|
|
147
262
|
*/
|
|
148
|
-
defaultChecked?:
|
|
263
|
+
defaultChecked?: Ariakit.MenuItemCheckboxProps[ 'defaultChecked' ];
|
|
149
264
|
/**
|
|
150
|
-
*
|
|
265
|
+
* A function that is called when the checkbox's checked state changes.
|
|
151
266
|
*/
|
|
152
|
-
onChange?:
|
|
267
|
+
onChange?: Ariakit.MenuItemCheckboxProps[ 'onChange' ];
|
|
153
268
|
}
|
|
154
269
|
|
|
155
|
-
export interface MenuRadioItemProps
|
|
156
|
-
|
|
270
|
+
export interface MenuRadioItemProps {
|
|
271
|
+
/**
|
|
272
|
+
* The contents of the menu item, which could include one instance of the
|
|
273
|
+
* `Menu.ItemLabel` component and/or one instance of the `Menu.ItemHelpText`
|
|
274
|
+
* component.
|
|
275
|
+
*/
|
|
276
|
+
children: Ariakit.MenuItemRadioProps[ 'children' ];
|
|
277
|
+
/**
|
|
278
|
+
* The contents of the menu item's suffix, such as a keyboard shortcut.
|
|
279
|
+
*/
|
|
280
|
+
suffix?: React.ReactNode;
|
|
281
|
+
/**
|
|
282
|
+
* Determines if the menu should hide when this item is clicked.
|
|
283
|
+
*
|
|
284
|
+
* **Note**: This behavior isn't triggered if this menu item is rendered as a
|
|
285
|
+
* link and modifier keys are used to either open the link in a new tab or
|
|
286
|
+
* download it.
|
|
287
|
+
*
|
|
288
|
+
* @default false
|
|
289
|
+
*/
|
|
290
|
+
hideOnClick?: Ariakit.MenuItemRadioProps[ 'hideOnClick' ];
|
|
157
291
|
/**
|
|
158
|
-
*
|
|
292
|
+
* Determines if the element is disabled. This sets the `aria-disabled`
|
|
293
|
+
* attribute accordingly, enabling support for all elements, including those
|
|
294
|
+
* that don't support the native `disabled` attribute.
|
|
159
295
|
*
|
|
160
296
|
* @default false
|
|
161
297
|
*/
|
|
162
|
-
|
|
298
|
+
disabled?: Ariakit.MenuItemRadioProps[ 'disabled' ];
|
|
299
|
+
/**
|
|
300
|
+
* Allows the component to be rendered as a different HTML element or React
|
|
301
|
+
* component. The value can be a React element or a function that takes in the
|
|
302
|
+
* original component props and gives back a React element with the props
|
|
303
|
+
* merged.
|
|
304
|
+
*/
|
|
305
|
+
render?: Ariakit.MenuItemRadioProps[ 'render' ];
|
|
163
306
|
/**
|
|
164
307
|
* The radio item's name.
|
|
165
308
|
*/
|
|
166
|
-
name:
|
|
309
|
+
name: Ariakit.MenuItemRadioProps[ 'name' ];
|
|
167
310
|
/**
|
|
168
311
|
* The radio item's value.
|
|
169
312
|
*/
|
|
170
|
-
value:
|
|
313
|
+
value: Ariakit.MenuItemRadioProps[ 'value' ];
|
|
171
314
|
/**
|
|
172
315
|
* The controlled checked state of the radio menu item.
|
|
316
|
+
*
|
|
317
|
+
* Note: this prop will override the `defaultChecked` prop.
|
|
173
318
|
*/
|
|
174
|
-
checked?:
|
|
319
|
+
checked?: Ariakit.MenuItemRadioProps[ 'checked' ];
|
|
175
320
|
/**
|
|
176
321
|
* The checked state of the radio menu item when it is initially rendered.
|
|
177
322
|
* Use when not wanting to control its checked state.
|
|
323
|
+
*
|
|
324
|
+
* Note: this prop will be overriden by the `checked` prop, if it is defined.
|
|
178
325
|
*/
|
|
179
|
-
defaultChecked?:
|
|
326
|
+
defaultChecked?: Ariakit.MenuItemRadioProps[ 'defaultChecked' ];
|
|
180
327
|
/**
|
|
181
|
-
*
|
|
328
|
+
* A function that is called when the checkbox's checked state changes.
|
|
182
329
|
*/
|
|
183
|
-
onChange?:
|
|
330
|
+
onChange?: Ariakit.MenuItemRadioProps[ 'onChange' ];
|
|
184
331
|
}
|
|
185
332
|
|
|
186
333
|
export interface MenuSeparatorProps {}
|
|
@@ -75,7 +75,10 @@ const Template: StoryFn< typeof Modal > = ( { onRequestClose, ...args } ) => {
|
|
|
75
75
|
anim id est laborum.
|
|
76
76
|
</p>
|
|
77
77
|
|
|
78
|
-
<InputControl
|
|
78
|
+
<InputControl
|
|
79
|
+
__next40pxDefaultSize
|
|
80
|
+
style={ { marginBottom: '20px' } }
|
|
81
|
+
/>
|
|
79
82
|
|
|
80
83
|
<Button variant="secondary" onClick={ closeModal }>
|
|
81
84
|
Close Modal
|
package/src/navigation/index.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
+
import deprecated from '@wordpress/deprecated';
|
|
9
10
|
import { useEffect, useRef, useState } from '@wordpress/element';
|
|
10
11
|
import { isRTL } from '@wordpress/i18n';
|
|
11
12
|
|
|
@@ -79,6 +80,12 @@ export function Navigation( {
|
|
|
79
80
|
const navigationTree = useCreateNavigationTree();
|
|
80
81
|
const defaultSlideOrigin = isRTL() ? 'right' : 'left';
|
|
81
82
|
|
|
83
|
+
deprecated( 'wp.components.Navigation (and all subcomponents)', {
|
|
84
|
+
since: '6.8',
|
|
85
|
+
version: '7.1',
|
|
86
|
+
alternative: 'wp.components.Navigator',
|
|
87
|
+
} );
|
|
88
|
+
|
|
82
89
|
const setActiveMenu: NavigationContextType[ 'setActiveMenu' ] = (
|
|
83
90
|
menuId,
|
|
84
91
|
slideInOrigin = defaultSlideOrigin
|
|
@@ -79,6 +79,8 @@ export function NavigationItem( props: NavigationItemProps ) {
|
|
|
79
79
|
? restProps
|
|
80
80
|
: {
|
|
81
81
|
as: Button,
|
|
82
|
+
__next40pxDefaultSize:
|
|
83
|
+
'as' in restProps ? restProps.as === undefined : true,
|
|
82
84
|
href,
|
|
83
85
|
onClick: onItemClick,
|
|
84
86
|
'aria-current': isActive ? 'page' : undefined,
|
|
@@ -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
|
}
|
|
@@ -176,6 +176,10 @@ describe( 'Navigation', () => {
|
|
|
176
176
|
|
|
177
177
|
const menuItems = screen.getAllByRole( 'listitem' );
|
|
178
178
|
|
|
179
|
+
expect( console ).toHaveWarnedWith(
|
|
180
|
+
'wp.components.Navigation (and all subcomponents) is deprecated since version 6.8 and will be removed in version 7.1. Please use wp.components.Navigator instead.'
|
|
181
|
+
);
|
|
182
|
+
|
|
179
183
|
expect( menuItems ).toHaveLength( 4 );
|
|
180
184
|
expect( menuItems[ 0 ] ).toHaveTextContent( 'Item 1' );
|
|
181
185
|
expect( menuItems[ 1 ] ).toHaveTextContent( 'Item 2' );
|
|
@@ -75,6 +75,7 @@ function CustomNavigatorButton( {
|
|
|
75
75
|
} ) {
|
|
76
76
|
return (
|
|
77
77
|
<Navigator.Button
|
|
78
|
+
__next40pxDefaultSize
|
|
78
79
|
onClick={ () => {
|
|
79
80
|
// Used to spy on the values passed to `navigator.goTo`.
|
|
80
81
|
onClick?.( { type: 'goTo', path } );
|
|
@@ -95,6 +96,7 @@ function CustomNavigatorGoToBackButton( {
|
|
|
95
96
|
const { goTo } = useNavigator();
|
|
96
97
|
return (
|
|
97
98
|
<Button
|
|
99
|
+
__next40pxDefaultSize
|
|
98
100
|
onClick={ () => {
|
|
99
101
|
goTo( path, { isBack: true } );
|
|
100
102
|
// Used to spy on the values passed to `navigator.goTo`.
|
|
@@ -115,6 +117,7 @@ function CustomNavigatorGoToSkipFocusButton( {
|
|
|
115
117
|
const { goTo } = useNavigator();
|
|
116
118
|
return (
|
|
117
119
|
<Button
|
|
120
|
+
__next40pxDefaultSize
|
|
118
121
|
onClick={ () => {
|
|
119
122
|
goTo( path, { skipFocus: true } );
|
|
120
123
|
// Used to spy on the values passed to `navigator.goTo`.
|
|
@@ -136,6 +139,7 @@ function CustomNavigatorBackButton( {
|
|
|
136
139
|
} ) {
|
|
137
140
|
return (
|
|
138
141
|
<Navigator.BackButton
|
|
142
|
+
__next40pxDefaultSize
|
|
139
143
|
onClick={ () => {
|
|
140
144
|
// Used to spy on the values passed to `navigator.goBack`.
|
|
141
145
|
onClick?.( { type: 'goBack' } );
|
|
@@ -74,12 +74,12 @@ _PanelRow.args = {
|
|
|
74
74
|
children: (
|
|
75
75
|
<PanelBody title="My Profile">
|
|
76
76
|
<PanelRow>
|
|
77
|
-
<InputControl label="First name" />
|
|
78
|
-
<InputControl label="Last name" />
|
|
77
|
+
<InputControl label="First name" __next40pxDefaultSize />
|
|
78
|
+
<InputControl label="Last name" __next40pxDefaultSize />
|
|
79
79
|
</PanelRow>
|
|
80
80
|
<PanelRow>
|
|
81
81
|
<div style={ { flex: 1 } }>
|
|
82
|
-
<InputControl label="Email" />
|
|
82
|
+
<InputControl label="Email" __next40pxDefaultSize />
|
|
83
83
|
</div>
|
|
84
84
|
</PanelRow>
|
|
85
85
|
</PanelBody>
|
package/src/private-apis.ts
CHANGED
|
@@ -8,6 +8,7 @@ import Theme from './theme';
|
|
|
8
8
|
import { Tabs } from './tabs';
|
|
9
9
|
import { kebabCase } from './utils/strings';
|
|
10
10
|
import { lock } from './lock-unlock';
|
|
11
|
+
import Badge from './badge';
|
|
11
12
|
|
|
12
13
|
export const privateApis = {};
|
|
13
14
|
lock( privateApis, {
|
|
@@ -17,4 +18,5 @@ lock( privateApis, {
|
|
|
17
18
|
Theme,
|
|
18
19
|
Menu,
|
|
19
20
|
kebabCase,
|
|
21
|
+
Badge,
|
|
20
22
|
} );
|
|
@@ -6,6 +6,7 @@ import * as Ariakit from '@ariakit/react';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
+
import deprecated from '@wordpress/deprecated';
|
|
9
10
|
import { useMemo, forwardRef } from '@wordpress/element';
|
|
10
11
|
import { isRTL } from '@wordpress/i18n';
|
|
11
12
|
|
|
@@ -46,11 +47,21 @@ function UnforwardedRadioGroup(
|
|
|
46
47
|
[ radioStore, disabled ]
|
|
47
48
|
);
|
|
48
49
|
|
|
50
|
+
deprecated( 'wp.components.__experimentalRadioGroup', {
|
|
51
|
+
alternative:
|
|
52
|
+
'wp.components.RadioControl or wp.components.__experimentalToggleGroupControl',
|
|
53
|
+
since: '6.8',
|
|
54
|
+
} );
|
|
55
|
+
|
|
49
56
|
return (
|
|
50
57
|
<RadioGroupContext.Provider value={ contextValue }>
|
|
51
58
|
<Ariakit.RadioGroup
|
|
52
59
|
store={ radioStore }
|
|
53
|
-
render={
|
|
60
|
+
render={
|
|
61
|
+
<ButtonGroup __shouldNotWarnDeprecated>
|
|
62
|
+
{ children }
|
|
63
|
+
</ButtonGroup>
|
|
64
|
+
}
|
|
54
65
|
aria-label={ label }
|
|
55
66
|
ref={ ref }
|
|
56
67
|
{ ...props }
|
|
@@ -7,7 +7,6 @@ import { forwardRef, useContext } from '@wordpress/element';
|
|
|
7
7
|
* External dependencies
|
|
8
8
|
*/
|
|
9
9
|
import * as Ariakit from '@ariakit/react';
|
|
10
|
-
import { useStoreState } from '@ariakit/react';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Internal dependencies
|
|
@@ -28,7 +27,7 @@ function UnforwardedRadio(
|
|
|
28
27
|
) {
|
|
29
28
|
const { store, disabled } = useContext( RadioGroupContext );
|
|
30
29
|
|
|
31
|
-
const selectedValue = useStoreState( store, 'value' );
|
|
30
|
+
const selectedValue = Ariakit.useStoreState( store, 'value' );
|
|
32
31
|
const isChecked = selectedValue !== undefined && selectedValue === value;
|
|
33
32
|
|
|
34
33
|
maybeWarnDeprecated36pxSize( {
|
|
@@ -130,8 +130,10 @@ export const Track = styled.span`
|
|
|
130
130
|
margin-top: ${ ( rangeHeightValue - railHeight ) / 2 }px;
|
|
131
131
|
top: 0;
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
.is-marked & {
|
|
134
|
+
@media not ( prefers-reduced-motion ) {
|
|
135
|
+
transition: width ease 0.1s;
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
${ trackBackgroundColor };
|
|
@@ -203,8 +205,10 @@ export const ThumbWrapper = styled.span`
|
|
|
203
205
|
border-radius: ${ CONFIG.radiusRound };
|
|
204
206
|
z-index: 3;
|
|
205
207
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
.is-marked & {
|
|
209
|
+
@media not ( prefers-reduced-motion ) {
|
|
210
|
+
transition: left ease 0.1s;
|
|
211
|
+
}
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
${ thumbColor };
|