@wordpress/components 28.14.1-next.cd6172eb0.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 +16 -9
- 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/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/autocomplete/index.js +1 -0
- package/build/autocomplete/index.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-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 +13 -13
- 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/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 +3 -2
- package/build/custom-select-control/index.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/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/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/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/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/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/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/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/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 +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 +1 -0
- package/build/select-control/index.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/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/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 +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/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-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/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 +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/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/autocomplete/index.js +1 -0
- package/build-module/autocomplete/index.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-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 +15 -15
- 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/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 +3 -2
- package/build-module/custom-select-control/index.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/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/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/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/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/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/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/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/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 +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 +1 -0
- package/build-module/select-control/index.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/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/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 +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/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-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/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 +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 +3 -3
- package/build-style/style.css +3 -3
- 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/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.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 +816 -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/types.d.ts +9 -1
- 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/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/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-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.map +1 -1
- package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/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.map +1 -1
- package/build-types/font-size-picker/styles.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/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/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/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/mark.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +2 -2
- package/build-types/range-control/styles/range-control-styles.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/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/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/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/styles/unit-control-styles.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 +19 -19
- package/src/alignment-matrix-control/stories/index.story.tsx +2 -2
- 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/stories/index.story.tsx +1 -1
- package/src/border-control/stories/index.story.tsx +1 -1
- package/src/box-control/index.tsx +24 -14
- package/src/box-control/input-control.tsx +197 -0
- package/src/box-control/stories/index.story.tsx +1 -1
- package/src/box-control/types.ts +9 -1
- 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/stories/index.story.tsx +2 -2
- package/src/color-palette/stories/index.story.tsx +3 -3
- package/src/color-picker/stories/index.story.tsx +2 -2
- package/src/combobox-control/stories/index.story.tsx +1 -1
- package/src/composite/stories/index.story.tsx +3 -3
- package/src/confirm-dialog/stories/index.story.tsx +1 -1
- package/src/custom-select-control/index.tsx +2 -2
- package/src/custom-select-control/stories/index.story.tsx +2 -2
- 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/dropdown/stories/index.story.tsx +7 -7
- package/src/dropdown-menu/index.tsx +3 -1
- package/src/dropdown-menu/stories/index.story.tsx +3 -3
- 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/stories/index.story.tsx +1 -1
- package/src/form-file-upload/stories/index.story.tsx +3 -3
- package/src/form-token-field/stories/index.story.tsx +2 -2
- package/src/gradient-picker/stories/index.story.tsx +1 -1
- package/src/grid/stories/index.story.tsx +1 -1
- package/src/h-stack/stories/index.story.tsx +2 -2
- 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/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/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/stories/index.story.tsx +1 -1
- 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/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/stories/index.story.tsx +1 -1
- 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/stories/index.story.tsx +2 -2
- 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/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/tools-panel/stories/index.story.tsx +3 -3
- package/src/tools-panel/test/index.tsx +0 -17
- 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/stories/index.story.tsx +4 -4
- 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 -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-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-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/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/button/README.md
CHANGED
|
@@ -1,304 +1,193 @@
|
|
|
1
1
|
# Button
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-button--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Usage
|
|
10
|
-
|
|
11
|
-
Buttons tell users what actions they can take and give them a way to interact with the interface. You’ll find them throughout a UI, particularly in places like:
|
|
12
|
-
|
|
13
|
-
- Modals
|
|
14
|
-
- Forms
|
|
15
|
-
- Toolbars
|
|
16
|
-
|
|
17
|
-
### Best practices
|
|
18
|
-
|
|
19
|
-
Buttons should:
|
|
20
|
-
|
|
21
|
-
- **Be clearly and accurately labeled.**
|
|
22
|
-
- **Clearly communicate that clicking or tapping will trigger an action.**
|
|
23
|
-
- **Use established colors appropriately.** For example, only use red buttons for actions that are difficult or impossible to undo.
|
|
24
|
-
- **Prioritize the most important actions.** This helps users focus. Too many calls to action on one screen can be confusing, making users unsure what to do next.
|
|
25
|
-
- **Have consistent locations in the interface.**
|
|
26
|
-
|
|
27
|
-
### Content guidelines
|
|
28
|
-
|
|
29
|
-
Buttons should be clear and predictable—users should be able to anticipate what will happen when they click a button. Never deceive a user by mislabeling a button.
|
|
30
|
-
|
|
31
|
-
Buttons text should lead with a strong verb that encourages action, and add a noun that clarifies what will actually change. The only exceptions are common actions like Save, Close, Cancel, or OK. Otherwise, use the {verb}+{noun} format to ensure that your button gives the user enough information.
|
|
32
|
-
|
|
33
|
-
Button text should also be quickly scannable — avoid unnecessary words and articles like the, an, or a.
|
|
34
|
-
|
|
35
|
-
### Types
|
|
36
|
-
|
|
37
|
-
#### Link button
|
|
38
|
-
|
|
39
|
-
Link buttons have low emphasis. They don’t stand out much on the page, so they’re used for less-important actions. What’s less important can vary based on context, but it’s usually a supplementary action to the main action we want someone to take. Link buttons are also useful when you don’t want to distract from the content.
|
|
40
|
-
|
|
41
|
-

|
|
42
|
-
|
|
43
|
-
#### Default button
|
|
44
|
-
|
|
45
|
-
Default buttons have medium emphasis. The button appearance helps differentiate them from the page background, so they’re useful when you want more emphasis than a link button offers.
|
|
46
|
-
|
|
47
|
-

|
|
48
|
-
|
|
49
|
-
#### Primary button
|
|
50
|
-
|
|
51
|
-
Primary buttons have high emphasis. Their color fill and shadow means they pop off the background.
|
|
52
|
-
|
|
53
|
-
Since a high-emphasis button commands the most attention, a layout should contain a single primary button. This makes it clear that other buttons have less importance and helps users understand when an action requires their attention.
|
|
54
|
-
|
|
55
|
-

|
|
56
|
-
|
|
57
|
-
#### Text label
|
|
58
|
-
|
|
59
|
-
All button types use text labels to describe the action that happens when a user taps a button. If there’s no text label, there needs to be a [label](#label) added and an icon to signify what the button does.
|
|
60
|
-
|
|
61
|
-

|
|
62
|
-
|
|
63
|
-
**Do**
|
|
64
|
-
Use color to distinguish link button labels from other text.
|
|
65
|
-
|
|
66
|
-

|
|
67
|
-
|
|
68
|
-
**Don’t**
|
|
69
|
-
Don’t wrap button text. For maximum legibility, keep text labels on a single line.
|
|
70
|
-
|
|
71
|
-
### Hierarchy
|
|
72
|
-
|
|
73
|
-

|
|
74
|
-
|
|
75
|
-
A layout should contain a single prominently-located button. If multiple buttons are required, a single high-emphasis button can be joined by medium- and low-emphasis buttons mapped to less-important actions. When using multiple buttons, make sure the available state of one button doesn’t look like the disabled state of another.
|
|
76
|
-
|
|
77
|
-

|
|
78
|
-
|
|
79
|
-
A button’s level of emphasis helps determine its appearance, typography, and placement.
|
|
80
|
-
|
|
81
|
-
#### Placement
|
|
82
|
-
|
|
83
|
-
Use button types to express different emphasis levels for all the actions a user can perform.
|
|
84
|
-
|
|
85
|
-

|
|
86
|
-
|
|
87
|
-
This screen layout uses:
|
|
88
|
-
|
|
89
|
-
1. A primary button for high emphasis.
|
|
90
|
-
2. A default button for medium emphasis.
|
|
91
|
-
3. A link button for low emphasis.
|
|
92
|
-
|
|
93
|
-
Placement best practices:
|
|
94
|
-
|
|
95
|
-
- **Do**: When using multiple buttons in a row, show users which action is more important by placing it next to a button with a lower emphasis (e.g. a primary button next to a default button, or a default button next to a link button).
|
|
96
|
-
- **Don’t**: Don’t place two primary buttons next to one another — they compete for focus. Only use one primary button per view.
|
|
97
|
-
- **Don’t**: Don’t place a button below another button if there is space to place them side by side.
|
|
98
|
-
- **Caution**: Avoid using too many buttons on a single page. When designing pages in the app or website, think about the most important actions for users to take. Too many calls to action can cause confusion and make users unsure what to do next — we always want users to feel confident and capable.
|
|
99
|
-
|
|
100
|
-
## Development guidelines
|
|
101
|
-
|
|
102
|
-
### Usage
|
|
103
|
-
|
|
104
|
-
Renders a button with default style.
|
|
7
|
+
Lets users take actions and make choices with a single click or tap.
|
|
105
8
|
|
|
106
9
|
```jsx
|
|
107
10
|
import { Button } from '@wordpress/components';
|
|
108
|
-
|
|
109
|
-
|
|
11
|
+
const Mybutton = () => (
|
|
12
|
+
<Button
|
|
13
|
+
variant="primary"
|
|
14
|
+
onClick={ handleClick }
|
|
15
|
+
>
|
|
16
|
+
Click here
|
|
17
|
+
</Button>
|
|
18
|
+
);
|
|
110
19
|
```
|
|
20
|
+
## Props
|
|
111
21
|
|
|
112
|
-
###
|
|
22
|
+
### `__next40pxDefaultSize`
|
|
113
23
|
|
|
114
|
-
|
|
24
|
+
Start opting into the larger default height that will become the
|
|
25
|
+
default size in a future version.
|
|
115
26
|
|
|
116
|
-
|
|
27
|
+
- Type: `boolean`
|
|
28
|
+
- Required: No
|
|
29
|
+
- Default: `false`
|
|
117
30
|
|
|
118
|
-
|
|
31
|
+
### `accessibleWhenDisabled`
|
|
119
32
|
|
|
120
33
|
Whether to keep the button focusable when disabled.
|
|
121
34
|
|
|
122
|
-
In most cases, it is recommended to set this to `true`. Disabling a control without maintaining focusability
|
|
35
|
+
In most cases, it is recommended to set this to `true`. Disabling a control without maintaining focusability
|
|
36
|
+
can cause accessibility issues, by hiding their presence from screen reader users,
|
|
37
|
+
or by preventing focus from returning to a trigger element.
|
|
123
38
|
|
|
124
|
-
Learn more about the [focusability of disabled controls](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols)
|
|
39
|
+
Learn more about the [focusability of disabled controls](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#focusabilityofdisabledcontrols)
|
|
40
|
+
in the WAI-ARIA Authoring Practices Guide.
|
|
125
41
|
|
|
126
|
-
-
|
|
127
|
-
-
|
|
42
|
+
- Type: `boolean`
|
|
43
|
+
- Required: No
|
|
44
|
+
- Default: `false`
|
|
128
45
|
|
|
129
|
-
|
|
46
|
+
### `children`
|
|
130
47
|
|
|
131
48
|
The button's children.
|
|
132
49
|
|
|
133
|
-
-
|
|
50
|
+
- Type: `ReactNode`
|
|
51
|
+
- Required: No
|
|
134
52
|
|
|
135
|
-
|
|
53
|
+
### `description`
|
|
136
54
|
|
|
137
|
-
|
|
55
|
+
A visually hidden accessible description for the button.
|
|
138
56
|
|
|
139
|
-
-
|
|
57
|
+
- Type: `string`
|
|
58
|
+
- Required: No
|
|
140
59
|
|
|
141
|
-
|
|
60
|
+
### `disabled`
|
|
142
61
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- Required: No
|
|
146
|
-
|
|
147
|
-
#### `disabled`: `boolean`
|
|
148
|
-
|
|
149
|
-
Whether the button is disabled. If `true`, this will force a `button` element to be rendered, even when an `href` is given.
|
|
62
|
+
Whether the button is disabled. If `true`, this will force a `button` element
|
|
63
|
+
to be rendered, even when an `href` is given.
|
|
150
64
|
|
|
151
65
|
In most cases, it is recommended to also set the `accessibleWhenDisabled` prop to `true`.
|
|
152
66
|
|
|
153
|
-
-
|
|
67
|
+
- Type: `boolean`
|
|
68
|
+
- Required: No
|
|
154
69
|
|
|
155
|
-
|
|
70
|
+
### `href`
|
|
156
71
|
|
|
157
72
|
If provided, renders `a` instead of `button`.
|
|
158
73
|
|
|
159
|
-
-
|
|
74
|
+
- Type: `string`
|
|
75
|
+
- Required: Yes
|
|
160
76
|
|
|
161
|
-
|
|
77
|
+
### `icon`
|
|
162
78
|
|
|
163
|
-
If provided, renders an
|
|
79
|
+
If provided, renders an Icon component inside the button.
|
|
164
80
|
|
|
165
|
-
-
|
|
81
|
+
- Type: `IconType`
|
|
82
|
+
- Required: No
|
|
166
83
|
|
|
167
|
-
|
|
84
|
+
### `iconPosition`
|
|
168
85
|
|
|
169
|
-
If provided with `icon`, sets the position of icon relative to the `text`.
|
|
86
|
+
If provided with `icon`, sets the position of icon relative to the `text`.
|
|
170
87
|
|
|
171
|
-
-
|
|
172
|
-
-
|
|
88
|
+
- Type: `"left" | "right"`
|
|
89
|
+
- Required: No
|
|
90
|
+
- Default: `'left'`
|
|
173
91
|
|
|
174
|
-
|
|
92
|
+
### `iconSize`
|
|
175
93
|
|
|
176
|
-
If provided with `icon`, sets the icon size.
|
|
94
|
+
If provided with `icon`, sets the icon size.
|
|
95
|
+
Please refer to the Icon component for more details regarding
|
|
96
|
+
the default value of its `size` prop.
|
|
177
97
|
|
|
178
|
-
-
|
|
98
|
+
- Type: `number`
|
|
99
|
+
- Required: No
|
|
179
100
|
|
|
180
|
-
|
|
101
|
+
### `isBusy`
|
|
181
102
|
|
|
182
103
|
Indicates activity while a action is being performed.
|
|
183
104
|
|
|
184
|
-
-
|
|
105
|
+
- Type: `boolean`
|
|
106
|
+
- Required: No
|
|
185
107
|
|
|
186
|
-
|
|
108
|
+
### `isDestructive`
|
|
187
109
|
|
|
188
110
|
Renders a red text-based button style to indicate destructive behavior.
|
|
189
111
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
#### `isLink`: `boolean`
|
|
112
|
+
- Type: `boolean`
|
|
113
|
+
- Required: No
|
|
193
114
|
|
|
194
|
-
|
|
195
|
-
Use `variant` prop with `link` value instead.
|
|
196
|
-
|
|
197
|
-
- Required: No
|
|
198
|
-
- Default: `false`
|
|
199
|
-
|
|
200
|
-
#### `isPressed`: `boolean`
|
|
115
|
+
### `isPressed`
|
|
201
116
|
|
|
202
117
|
Renders a pressed button style.
|
|
203
118
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
- Required: No
|
|
207
|
-
|
|
208
|
-
#### `isPrimary`: `boolean`
|
|
119
|
+
- Type: `boolean`
|
|
120
|
+
- Required: No
|
|
209
121
|
|
|
210
|
-
|
|
211
|
-
Use `variant` prop with `primary` value instead.
|
|
122
|
+
### `label`
|
|
212
123
|
|
|
213
|
-
-
|
|
214
|
-
|
|
124
|
+
Sets the `aria-label` of the component, if none is provided.
|
|
125
|
+
Sets the Tooltip content if `showTooltip` is provided.
|
|
215
126
|
|
|
216
|
-
|
|
127
|
+
- Type: `string`
|
|
128
|
+
- Required: No
|
|
217
129
|
|
|
218
|
-
|
|
219
|
-
Use `variant` prop with `secondary` value instead.
|
|
130
|
+
### `shortcut`
|
|
220
131
|
|
|
221
|
-
|
|
222
|
-
|
|
132
|
+
If provided with `showTooltip`, appends the Shortcut label to the tooltip content.
|
|
133
|
+
If an object is provided, it should contain `display` and `ariaLabel` keys.
|
|
223
134
|
|
|
224
|
-
|
|
135
|
+
- Type: `string | { display: string; ariaLabel: string; }`
|
|
136
|
+
- Required: No
|
|
225
137
|
|
|
226
|
-
|
|
138
|
+
### `showTooltip`
|
|
227
139
|
|
|
228
|
-
|
|
140
|
+
If provided, renders a Tooltip component for the button.
|
|
229
141
|
|
|
230
|
-
-
|
|
142
|
+
- Type: `boolean`
|
|
143
|
+
- Required: No
|
|
231
144
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
Deprecated: Renders a text-based button style.
|
|
235
|
-
Use `variant` prop with `tertiary` value instead.
|
|
236
|
-
|
|
237
|
-
- Required: No
|
|
238
|
-
- Default: `false`
|
|
239
|
-
|
|
240
|
-
#### `label`: `string`
|
|
241
|
-
|
|
242
|
-
Sets the `aria-label` of the component, if none is provided. Sets the Tooltip content if `showTooltip` is provided.
|
|
243
|
-
|
|
244
|
-
- Required: No
|
|
245
|
-
|
|
246
|
-
#### `shortcut`: `string | { display: string; ariaLabel: string; }`
|
|
247
|
-
|
|
248
|
-
If provided with `showTooltip`, appends the Shortcut label to the tooltip content. If an object is provided, it should contain `display` and `ariaLabel` keys.
|
|
249
|
-
|
|
250
|
-
- Required: No
|
|
251
|
-
|
|
252
|
-
#### `showTooltip`: `boolean`
|
|
253
|
-
|
|
254
|
-
If provided, renders a [Tooltip](/packages/components/src/tooltip/README.md) component for the button.
|
|
255
|
-
|
|
256
|
-
- Required: No
|
|
257
|
-
|
|
258
|
-
#### `size`: `'default'` | `'compact'` | `'small'`
|
|
145
|
+
### `size`
|
|
259
146
|
|
|
260
147
|
The size of the button.
|
|
261
148
|
|
|
262
|
-
-
|
|
263
|
-
-
|
|
264
|
-
-
|
|
149
|
+
- `'default'`: For normal text-label buttons, unless it is a toggle button.
|
|
150
|
+
- `'compact'`: For toggle buttons, icon buttons, and buttons when used in context of either.
|
|
151
|
+
- `'small'`: For icon buttons associated with more advanced or auxiliary features.
|
|
265
152
|
|
|
266
153
|
If the deprecated `isSmall` prop is also defined, this prop will take precedence.
|
|
267
154
|
|
|
268
|
-
-
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
#### `target`: `string`
|
|
155
|
+
- Type: `"small" | "default" | "compact"`
|
|
156
|
+
- Required: No
|
|
157
|
+
- Default: `'default'`
|
|
272
158
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
- Required: No
|
|
276
|
-
|
|
277
|
-
#### `text`: `string`
|
|
159
|
+
### `text`
|
|
278
160
|
|
|
279
161
|
If provided, displays the given text inside the button. If the button contains children elements, the text is displayed before them.
|
|
280
162
|
|
|
281
|
-
-
|
|
163
|
+
- Type: `string`
|
|
164
|
+
- Required: No
|
|
282
165
|
|
|
283
|
-
|
|
166
|
+
### `tooltipPosition`
|
|
284
167
|
|
|
285
|
-
If provided with`showTooltip`, sets the position of the tooltip.
|
|
168
|
+
If provided with `showTooltip`, sets the position of the tooltip.
|
|
169
|
+
Please refer to the Tooltip component for more details regarding the defaults.
|
|
286
170
|
|
|
287
|
-
-
|
|
171
|
+
- Type: `"top" | "middle" | "bottom" | "top center" | "top left" | "top right" | "middle center" | "middle left" | "middle right" | "bottom center" | ...`
|
|
172
|
+
- Required: No
|
|
288
173
|
|
|
289
|
-
|
|
174
|
+
### `target`
|
|
290
175
|
|
|
291
|
-
|
|
176
|
+
If provided with `href`, sets the `target` attribute to the `a`.
|
|
292
177
|
|
|
293
|
-
-
|
|
178
|
+
- Type: `string`
|
|
179
|
+
- Required: No
|
|
294
180
|
|
|
295
|
-
|
|
181
|
+
### `variant`
|
|
296
182
|
|
|
297
|
-
|
|
183
|
+
Specifies the button's style.
|
|
298
184
|
|
|
299
|
-
|
|
300
|
-
- Default: `false`
|
|
185
|
+
The accepted values are:
|
|
301
186
|
|
|
302
|
-
|
|
187
|
+
1. `'primary'` (the primary button styles)
|
|
188
|
+
2. `'secondary'` (the default button styles)
|
|
189
|
+
3. `'tertiary'` (the text-based button styles)
|
|
190
|
+
4. `'link'` (the link button styles)
|
|
303
191
|
|
|
304
|
-
-
|
|
192
|
+
- Type: `"link" | "primary" | "secondary" | "tertiary"`
|
|
193
|
+
- Required: No
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Meta } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
<Meta title="Components/Actions/Button/Best Practices" />
|
|
4
|
+
|
|
5
|
+
# Button
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
Buttons indicate available actions and allow user interaction within the interface. As key elements in the WordPress UI, they appear in toolbars, modals, and forms. Default buttons support most actions, while primary buttons emphasize the main action in a view. Secondary buttons pair as secondary actions next to a primary action.
|
|
9
|
+
|
|
10
|
+
Each layout contains one prominently placed, high-emphasis button. If you need multiple buttons, use one primary button for the main action, secondary for the rest of the actions and tertiary sparingly when an action needs to not stand out at all.
|
|
11
|
+
|
|
12
|
+
### Sizes
|
|
13
|
+
|
|
14
|
+
- `'default'`: For normal text-label buttons, unless it is a toggle button.
|
|
15
|
+
- `'compact'`: For toggle buttons, icon buttons, and buttons when used in context of either.
|
|
16
|
+
- `'small'`: For icon buttons associated with more advanced or auxiliary features.
|
|
17
|
+
|
|
18
|
+
## Best practices
|
|
19
|
+
|
|
20
|
+
- Label buttons to show that a click or tap initiates an action.
|
|
21
|
+
- Use established color conventions; for example, reserve red buttons for irreversible or dangerous actions.
|
|
22
|
+
- Avoid crowding the screen with multiple calls to action, which confuses users.
|
|
23
|
+
- Keep button locations consistent across the interface.
|
|
24
|
+
|
|
25
|
+
## Content guidelines
|
|
26
|
+
|
|
27
|
+
Buttons should be clear and predictable, showing users what will happen when clicked. Make labels reflect actions accurately to avoid confusion.
|
|
28
|
+
|
|
29
|
+
Start button text with a strong action verb and include a noun to specify the change, except for common actions like Save, Close, Cancel, or OK.
|
|
30
|
+
|
|
31
|
+
For other actions, use a `{verb}+{noun}` format for context. Keep button text brief and remove unnecessary words like "the," "an," or "a" for easy scanning.
|
|
@@ -65,30 +65,48 @@ Default.args = {
|
|
|
65
65
|
children: 'Code is poetry',
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Primary buttons stand out with bold color fills, making them distinct
|
|
70
|
+
* from the background. Since they naturally draw attention, each layout should contain
|
|
71
|
+
* only one primary button to guide users toward the most important action.
|
|
72
|
+
*/
|
|
68
73
|
export const Primary = Template.bind( {} );
|
|
69
74
|
Primary.args = {
|
|
70
75
|
...Default.args,
|
|
71
76
|
variant: 'primary',
|
|
72
77
|
};
|
|
73
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Secondary buttons complement primary buttons. Use them for standard actions that may appear alongside a primary action.
|
|
81
|
+
*/
|
|
74
82
|
export const Secondary = Template.bind( {} );
|
|
75
83
|
Secondary.args = {
|
|
76
84
|
...Default.args,
|
|
77
85
|
variant: 'secondary',
|
|
78
86
|
};
|
|
79
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Tertiary buttons have minimal emphasis. Use them sparingly to subtly highlight an action.
|
|
90
|
+
*/
|
|
80
91
|
export const Tertiary = Template.bind( {} );
|
|
81
92
|
Tertiary.args = {
|
|
82
93
|
...Default.args,
|
|
83
94
|
variant: 'tertiary',
|
|
84
95
|
};
|
|
85
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Link buttons have low emphasis and blend into the page, making them suitable for supplementary actions,
|
|
99
|
+
* especially those involving navigation away from the current view.
|
|
100
|
+
*/
|
|
86
101
|
export const Link = Template.bind( {} );
|
|
87
102
|
Link.args = {
|
|
88
103
|
...Default.args,
|
|
89
104
|
variant: 'link',
|
|
90
105
|
};
|
|
91
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Use this variant for irreversible actions. Apply sparingly and only for actions with significant impact.
|
|
109
|
+
*/
|
|
92
110
|
export const IsDestructive = Template.bind( {} );
|
|
93
111
|
IsDestructive.args = {
|
|
94
112
|
...Default.args,
|
package/src/button/types.ts
CHANGED
|
@@ -111,11 +111,13 @@ type BaseButtonProps = {
|
|
|
111
111
|
tooltipPosition?: PopoverProps[ 'position' ];
|
|
112
112
|
/**
|
|
113
113
|
* Specifies the button's style.
|
|
114
|
+
*
|
|
114
115
|
* The accepted values are:
|
|
115
|
-
*
|
|
116
|
-
* '
|
|
117
|
-
* '
|
|
118
|
-
* '
|
|
116
|
+
*
|
|
117
|
+
* 1. `'primary'` (the primary button styles)
|
|
118
|
+
* 2. `'secondary'` (the default button styles)
|
|
119
|
+
* 3. `'tertiary'` (the text-based button styles)
|
|
120
|
+
* 4. `'link'` (the link button styles)
|
|
119
121
|
*/
|
|
120
122
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'link';
|
|
121
123
|
};
|
|
@@ -32,8 +32,8 @@ const meta: Meta< typeof CircularOptionPicker > = {
|
|
|
32
32
|
CircularOptionPicker.DropdownLinkAction,
|
|
33
33
|
},
|
|
34
34
|
argTypes: {
|
|
35
|
-
actions: { control:
|
|
36
|
-
options: { control:
|
|
35
|
+
actions: { control: false },
|
|
36
|
+
options: { control: false },
|
|
37
37
|
children: { control: { type: 'text' } },
|
|
38
38
|
},
|
|
39
39
|
parameters: {
|
|
@@ -18,9 +18,9 @@ const meta: Meta< typeof ColorPalette > = {
|
|
|
18
18
|
id: 'components-colorpalette',
|
|
19
19
|
component: ColorPalette,
|
|
20
20
|
argTypes: {
|
|
21
|
-
as: { control:
|
|
22
|
-
onChange: { action: 'onChange', control:
|
|
23
|
-
value: { control:
|
|
21
|
+
as: { control: false },
|
|
22
|
+
onChange: { action: 'onChange', control: false },
|
|
23
|
+
value: { control: false },
|
|
24
24
|
},
|
|
25
25
|
parameters: {
|
|
26
26
|
controls: { expanded: true },
|
|
@@ -13,8 +13,8 @@ const meta: Meta< typeof ColorPicker > = {
|
|
|
13
13
|
title: 'Components/Selection & Input/Color/ColorPicker',
|
|
14
14
|
id: 'components-colorpicker',
|
|
15
15
|
argTypes: {
|
|
16
|
-
as: { control:
|
|
17
|
-
color: { control:
|
|
16
|
+
as: { control: false },
|
|
17
|
+
color: { control: false },
|
|
18
18
|
},
|
|
19
19
|
parameters: {
|
|
20
20
|
actions: { argTypesRegex: '^on.*' },
|
|
@@ -38,7 +38,7 @@ const meta: Meta< typeof ComboboxControl > = {
|
|
|
38
38
|
id: 'components-comboboxcontrol',
|
|
39
39
|
component: ComboboxControl,
|
|
40
40
|
argTypes: {
|
|
41
|
-
value: { control:
|
|
41
|
+
value: { control: false },
|
|
42
42
|
},
|
|
43
43
|
parameters: {
|
|
44
44
|
actions: { argTypesRegex: '^on.*' },
|
|
@@ -36,9 +36,9 @@ const meta: Meta< typeof Composite > = {
|
|
|
36
36
|
'Composite.Context': Composite.Context,
|
|
37
37
|
},
|
|
38
38
|
argTypes: {
|
|
39
|
-
children: { control:
|
|
40
|
-
render: { control:
|
|
41
|
-
setActiveId: { control:
|
|
39
|
+
children: { control: false },
|
|
40
|
+
render: { control: false },
|
|
41
|
+
setActiveId: { control: false },
|
|
42
42
|
focusLoop: {
|
|
43
43
|
control: 'select',
|
|
44
44
|
options: [ true, false, 'horizontal', 'vertical', 'both' ],
|
|
@@ -154,11 +154,11 @@ function CustomSelectControl< T extends CustomSelectOption >(
|
|
|
154
154
|
const renderSelectedValueHint = () => {
|
|
155
155
|
const selectedOptionHint = options
|
|
156
156
|
?.map( applyOptionDeprecations )
|
|
157
|
-
?.find( ( { name } ) =>
|
|
157
|
+
?.find( ( { name } ) => store.getState().value === name )?.hint;
|
|
158
158
|
|
|
159
159
|
return (
|
|
160
160
|
<Styled.SelectedExperimentalHintWrapper>
|
|
161
|
-
{
|
|
161
|
+
{ store.getState().value }
|
|
162
162
|
{ selectedOptionHint && (
|
|
163
163
|
<Styled.SelectedExperimentalHintItem
|
|
164
164
|
// Keeping the classname for legacy reasons
|
|
@@ -18,8 +18,8 @@ const meta: Meta< typeof CustomSelectControl > = {
|
|
|
18
18
|
component: CustomSelectControl,
|
|
19
19
|
id: 'components-customselectcontrol',
|
|
20
20
|
argTypes: {
|
|
21
|
-
onChange: { control:
|
|
22
|
-
value: { control:
|
|
21
|
+
onChange: { control: false },
|
|
22
|
+
value: { control: false },
|
|
23
23
|
},
|
|
24
24
|
parameters: {
|
|
25
25
|
actions: { argTypesRegex: '^on.*' },
|