@wordpress/components 25.6.0 → 25.7.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 +21 -1
- package/CONTRIBUTING.md +2 -2
- package/README.md +3 -8
- package/build/color-palette/utils.js +2 -9
- package/build/color-palette/utils.js.map +1 -1
- package/build/color-picker/hsv-color-picker.native.js +92 -0
- package/build/color-picker/hsv-color-picker.native.js.map +1 -0
- package/build/color-picker/hue-picker.native.js +195 -0
- package/build/color-picker/hue-picker.native.js.map +1 -0
- package/build/color-picker/index.native.js +3 -2
- package/build/color-picker/index.native.js.map +1 -1
- package/build/color-picker/saturation-picker.native.js +178 -0
- package/build/color-picker/saturation-picker.native.js.map +1 -0
- package/build/item-group/item/component.js +0 -1
- package/build/item-group/item/component.js.map +1 -1
- package/build/item-group/item-group/component.js +0 -1
- package/build/item-group/item-group/component.js.map +1 -1
- package/build/menu-item/index.js +6 -4
- package/build/menu-item/index.js.map +1 -1
- package/build/menu-item/types.js.map +1 -1
- package/build/mobile/link-settings/link-settings-navigation.native.js +1 -1
- package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
- package/build/navigation/index.js +0 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +1 -2
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/palette-edit/styles.js +10 -10
- package/build/palette-edit/styles.js.map +1 -1
- package/build/popover/index.js +38 -75
- package/build/popover/index.js.map +1 -1
- package/build/popover/overlay-middlewares.js.map +1 -1
- package/build/popover/types.js.map +1 -1
- package/build/popover/utils.js +5 -50
- package/build/popover/utils.js.map +1 -1
- package/build/progress-bar/styles.js +6 -5
- package/build/progress-bar/styles.js.map +1 -1
- package/build/sandbox/index.js +1 -1
- package/build/sandbox/index.js.map +1 -1
- package/build/search-control/index.native.js +27 -24
- package/build/search-control/index.native.js.map +1 -1
- package/build/shortcut/index.js +13 -0
- package/build/shortcut/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js +4 -2
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +14 -8
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/index.js +5 -0
- package/build/slot-fill/index.js.map +1 -1
- package/build/snackbar/index.js +1 -1
- package/build/snackbar/index.js.map +1 -1
- package/build/spinner/index.js +0 -1
- package/build/spinner/index.js.map +1 -1
- package/build/theme/color-algorithms.js +2 -2
- package/build/theme/color-algorithms.js.map +1 -1
- package/build/theme/index.js +0 -1
- package/build/theme/index.js.map +1 -1
- package/build/toolbar/toolbar-item/index.js +1 -1
- package/build/toolbar/toolbar-item/index.js.map +1 -1
- package/build/toolbar/toolbar-item/index.native.js +1 -1
- package/build/toolbar/toolbar-item/index.native.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +0 -1
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +5 -1
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tree-select/index.js +0 -1
- package/build/tree-select/index.js.map +1 -1
- package/build/ui/context/constants.js +2 -6
- package/build/ui/context/constants.js.map +1 -1
- package/build/ui/context/context-connect.js +1 -1
- package/build/ui/context/context-connect.js.map +1 -1
- package/build/ui/context/context-system-provider.js +1 -1
- package/build/ui/context/context-system-provider.js.map +1 -1
- package/build/ui/context/use-context-system.js +1 -1
- package/build/ui/context/use-context-system.js.map +1 -1
- package/build/unit-control/index.js +0 -1
- package/build/unit-control/index.js.map +1 -1
- package/build/utils/hooks/use-cx.js +2 -1
- package/build/utils/hooks/use-cx.js.map +1 -1
- package/build/utils/math.js +0 -12
- package/build/utils/math.js.map +1 -1
- package/build/utils/values.js +3 -66
- package/build/utils/values.js.map +1 -1
- package/build/view/component.js +1 -2
- package/build/view/component.js.map +1 -1
- package/build-module/color-palette/utils.js +0 -6
- package/build-module/color-palette/utils.js.map +1 -1
- package/build-module/color-picker/hsv-color-picker.native.js +84 -0
- package/build-module/color-picker/hsv-color-picker.native.js.map +1 -0
- package/build-module/color-picker/hue-picker.native.js +185 -0
- package/build-module/color-picker/hue-picker.native.js.map +1 -0
- package/build-module/color-picker/index.native.js +2 -1
- package/build-module/color-picker/index.native.js.map +1 -1
- package/build-module/color-picker/saturation-picker.native.js +168 -0
- package/build-module/color-picker/saturation-picker.native.js.map +1 -0
- package/build-module/item-group/item/component.js +0 -1
- package/build-module/item-group/item/component.js.map +1 -1
- package/build-module/item-group/item-group/component.js +0 -1
- package/build-module/item-group/item-group/component.js.map +1 -1
- package/build-module/menu-item/index.js +4 -2
- package/build-module/menu-item/index.js.map +1 -1
- package/build-module/menu-item/types.js.map +1 -1
- package/build-module/mobile/link-settings/link-settings-navigation.native.js +1 -1
- package/build-module/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
- package/build-module/navigation/index.js +0 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +1 -2
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/palette-edit/styles.js +10 -10
- package/build-module/palette-edit/styles.js.map +1 -1
- package/build-module/popover/index.js +42 -79
- package/build-module/popover/index.js.map +1 -1
- package/build-module/popover/overlay-middlewares.js.map +1 -1
- package/build-module/popover/types.js.map +1 -1
- package/build-module/popover/utils.js +4 -47
- package/build-module/popover/utils.js.map +1 -1
- package/build-module/progress-bar/styles.js +6 -5
- package/build-module/progress-bar/styles.js.map +1 -1
- package/build-module/sandbox/index.js +1 -1
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/search-control/index.native.js +28 -25
- package/build-module/search-control/index.native.js.map +1 -1
- package/build-module/shortcut/index.js +13 -0
- package/build-module/shortcut/index.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +4 -2
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +14 -8
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/index.js +6 -1
- package/build-module/slot-fill/index.js.map +1 -1
- package/build-module/snackbar/index.js +1 -1
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/spinner/index.js +0 -1
- package/build-module/spinner/index.js.map +1 -1
- package/build-module/theme/color-algorithms.js +2 -2
- package/build-module/theme/color-algorithms.js.map +1 -1
- package/build-module/theme/index.js +0 -1
- package/build-module/theme/index.js.map +1 -1
- package/build-module/toolbar/toolbar-item/index.js +1 -1
- package/build-module/toolbar/toolbar-item/index.js.map +1 -1
- package/build-module/toolbar/toolbar-item/index.native.js +1 -1
- package/build-module/toolbar/toolbar-item/index.native.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +0 -1
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +5 -1
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tree-select/index.js +0 -1
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/ui/context/constants.js +0 -2
- package/build-module/ui/context/constants.js.map +1 -1
- package/build-module/ui/context/context-connect.js +1 -1
- package/build-module/ui/context/context-connect.js.map +1 -1
- package/build-module/ui/context/context-system-provider.js +1 -1
- package/build-module/ui/context/context-system-provider.js.map +1 -1
- package/build-module/ui/context/use-context-system.js +1 -1
- package/build-module/ui/context/use-context-system.js.map +1 -1
- package/build-module/unit-control/index.js +0 -1
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/utils/hooks/use-cx.js +2 -1
- package/build-module/utils/hooks/use-cx.js.map +1 -1
- package/build-module/utils/math.js +0 -11
- package/build-module/utils/math.js.map +1 -1
- package/build-module/utils/values.js +0 -60
- package/build-module/utils/values.js.map +1 -1
- package/build-module/view/component.js +1 -2
- package/build-module/view/component.js.map +1 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +2 -2
- 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 +2 -2
- package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
- package/build-types/animate/stories/index.story.d.ts +9 -9
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts +4 -4
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts +2 -2
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/stories/index.story.d.ts +2 -2
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts +3 -3
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +10 -9
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/button-group/stories/index.story.d.ts +3 -3
- package/build-types/button-group/stories/index.story.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts +2 -2
- package/build-types/card/stories/index.story.d.ts.map +1 -1
- package/build-types/checkbox-control/stories/index.story.d.ts +4 -4
- package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +2 -2
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-indicator/stories/index.story.d.ts +3 -3
- package/build-types/color-indicator/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-palette/styles.d.ts +1 -1
- package/build-types/color-palette/utils.d.ts +0 -1
- package/build-types/color-palette/utils.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts +2 -2
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +2 -2
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts +2 -2
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +1 -1
- package/build-types/date-time/stories/date-time.story.d.ts +5 -5
- package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
- package/build-types/date-time/stories/date.story.d.ts +5 -5
- package/build-types/date-time/stories/date.story.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts +3 -3
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/dimension-control/stories/index.story.d.ts.map +1 -1
- package/build-types/disabled/stories/index.story.d.ts +4 -4
- package/build-types/disabled/stories/index.story.d.ts.map +1 -1
- package/build-types/divider/stories/index.story.d.ts +5 -5
- package/build-types/divider/stories/index.story.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts +4 -4
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts +2 -2
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts +6 -5
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts +2 -2
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +2 -2
- 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 +2 -2
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
- package/build-types/elevation/stories/index.story.d.ts +5 -5
- package/build-types/elevation/stories/index.story.d.ts.map +1 -1
- package/build-types/external-link/stories/index.story.d.ts +3 -3
- package/build-types/external-link/stories/index.story.d.ts.map +1 -1
- package/build-types/flex/stories/index.story.d.ts +4 -4
- package/build-types/flex/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +2 -2
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts +2 -2
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/index.story.d.ts +8 -8
- package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts +2 -2
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/form-toggle/stories/index.story.d.ts +3 -3
- package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts +7 -7
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +2 -2
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/stories/index.story.d.ts +3 -3
- package/build-types/grid/stories/index.story.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts +2 -2
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/h-stack/stories/e2e/index.story.d.ts +3 -3
- package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/h-stack/stories/index.story.d.ts +3 -3
- package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/stories/index.story.d.ts +3 -3
- package/build-types/heading/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/stories/index.story.d.ts +2 -2
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/item-group/item/component.d.ts +0 -1
- package/build-types/item-group/item/component.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +1 -1
- package/build-types/item-group/item-group/component.d.ts +0 -1
- package/build-types/item-group/item-group/component.d.ts.map +1 -1
- package/build-types/item-group/stories/index.story.d.ts +6 -6
- package/build-types/item-group/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts +2 -2
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts +3 -3
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/index.d.ts +5 -58
- package/build-types/menu-item/index.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +74 -0
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -0
- package/build-types/menu-item/types.d.ts +3 -2
- package/build-types/menu-item/types.d.ts.map +1 -1
- package/build-types/menu-items-choice/stories/index.story.d.ts +3 -3
- package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts +4 -4
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts +3 -3
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts +3 -3
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
- package/build-types/navigation/index.d.ts +0 -1
- package/build-types/navigation/index.d.ts.map +1 -1
- package/build-types/navigation/stories/index.story.d.ts +2 -2
- package/build-types/navigation/stories/index.story.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/controlled-state.d.ts +2 -2
- package/build-types/navigation/stories/utils/controlled-state.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/default.d.ts +2 -2
- package/build-types/navigation/stories/utils/default.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/group.d.ts +2 -2
- package/build-types/navigation/stories/utils/group.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts +2 -2
- package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/more-examples.d.ts +2 -2
- package/build-types/navigation/stories/utils/more-examples.d.ts.map +1 -1
- package/build-types/navigation/stories/utils/search.d.ts +2 -2
- package/build-types/navigation/stories/utils/search.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts +0 -1
- package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
- package/build-types/navigator/stories/index.story.d.ts +5 -5
- package/build-types/navigator/stories/index.story.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts +3 -3
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +2 -2
- package/build-types/number-control/stories/index.story.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/palette-edit/styles.d.ts +1 -1
- package/build-types/palette-edit/styles.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts +6 -6
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/placeholder/stories/index.story.d.ts +3 -3
- package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/overlay-middlewares.d.ts +2 -2
- package/build-types/popover/overlay-middlewares.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts +7 -7
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/types.d.ts +6 -0
- package/build-types/popover/types.d.ts.map +1 -1
- package/build-types/popover/utils.d.ts +1 -21
- package/build-types/popover/utils.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts +3 -3
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/styles.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts +4 -4
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-control/stories/index.story.d.ts +3 -3
- package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/stories/index.story.d.ts +9 -9
- package/build-types/range-control/stories/index.story.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts +2 -2
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts +3 -3
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts +2 -2
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/scroll-lock/stories/index.story.d.ts +3 -3
- package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/stories/index.story.d.ts +3 -3
- package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +2 -16
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts +2 -2
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/shortcut/index.d.ts +13 -0
- package/build-types/shortcut/index.d.ts.map +1 -1
- package/build-types/shortcut/stories/index.story.d.ts +13 -0
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -0
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +1 -0
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts +1 -6
- package/build-types/slot-fill/index.d.ts +1 -1
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/snackbar/stories/index.story.d.ts +7 -7
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/stories/list.story.d.ts +3 -3
- package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
- package/build-types/spacer/stories/index.story.d.ts +3 -3
- package/build-types/spacer/stories/index.story.d.ts.map +1 -1
- package/build-types/spinner/index.d.ts +0 -1
- package/build-types/spinner/index.d.ts.map +1 -1
- package/build-types/spinner/stories/index.story.d.ts +4 -4
- package/build-types/spinner/stories/index.story.d.ts.map +1 -1
- package/build-types/surface/stories/index.story.d.ts +3 -3
- package/build-types/surface/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts +2 -2
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/text-control/stories/index.story.d.ts +4 -4
- package/build-types/text-control/stories/index.story.d.ts.map +1 -1
- package/build-types/text-highlight/stories/index.story.d.ts +3 -3
- package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/stories/index.story.d.ts +3 -3
- package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
- package/build-types/theme/index.d.ts +0 -1
- package/build-types/theme/index.d.ts.map +1 -1
- package/build-types/theme/stories/index.story.d.ts +4 -4
- package/build-types/theme/stories/index.story.d.ts.map +1 -1
- package/build-types/tip/stories/index.story.d.ts +3 -3
- package/build-types/tip/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +2 -2
- package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-group-control/stories/index.story.d.ts +6 -6
- package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts +2 -2
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts +8 -8
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts +0 -1
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts +2 -2
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts +0 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts +2 -2
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/stories/index.story.d.ts +4 -4
- package/build-types/truncate/stories/index.story.d.ts.map +1 -1
- package/build-types/ui/context/constants.d.ts +0 -2
- package/build-types/ui/context/constants.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +0 -1
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts +7 -7
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/utils/hooks/use-cx.d.ts +2 -1
- package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
- package/build-types/utils/math.d.ts +0 -8
- package/build-types/utils/math.d.ts.map +1 -1
- package/build-types/utils/values.d.ts +0 -13
- package/build-types/utils/values.d.ts.map +1 -1
- package/build-types/v-stack/stories/e2e/index.story.d.ts +3 -3
- package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +2 -2
- package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/view/component.d.ts +0 -1
- package/build-types/view/component.d.ts.map +1 -1
- package/build-types/view/stories/index.story.d.ts +3 -3
- package/build-types/view/stories/index.story.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts +5 -5
- package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
- package/build-types/z-stack/stories/index.story.d.ts +3 -3
- package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/alignment-matrix-control/stories/index.story.tsx +8 -4
- package/src/alignment-matrix-control/test/index.tsx +6 -2
- package/src/angle-picker-control/stories/index.story.tsx +4 -4
- package/src/animate/stories/index.story.tsx +13 -11
- package/src/base-control/stories/index.story.tsx +6 -10
- package/src/border-box-control/stories/index.story.tsx +6 -10
- package/src/border-control/stories/index.story.tsx +9 -15
- package/src/button/stories/e2e/index.story.tsx +3 -3
- package/src/button/stories/index.story.tsx +11 -11
- package/src/button-group/stories/index.story.tsx +5 -7
- package/src/card/stories/index.story.tsx +6 -6
- package/src/checkbox-control/stories/index.story.tsx +8 -7
- package/src/circular-option-picker/stories/index.story.tsx +20 -5
- package/src/color-indicator/stories/index.story.tsx +5 -7
- package/src/color-palette/stories/index.story.tsx +13 -22
- package/src/color-palette/test/index.tsx +15 -9
- package/src/color-palette/test/utils.ts +0 -15
- package/src/color-palette/utils.ts +0 -7
- package/src/color-picker/hsv-color-picker.native.js +88 -0
- package/src/color-picker/hue-picker.native.js +194 -0
- package/src/color-picker/index.native.js +2 -1
- package/src/color-picker/saturation-picker.native.js +163 -0
- package/src/color-picker/stories/index.story.tsx +4 -4
- package/src/color-picker/style.native.scss +23 -0
- package/src/combobox-control/stories/index.story.tsx +4 -4
- package/src/confirm-dialog/stories/index.story.js +1 -1
- package/src/custom-gradient-picker/stories/index.story.tsx +4 -4
- package/src/date-time/stories/date-time.story.tsx +9 -11
- package/src/date-time/stories/date.story.tsx +9 -10
- package/src/date-time/stories/time.story.tsx +5 -5
- package/src/dimension-control/stories/index.story.tsx +4 -4
- package/src/disabled/stories/index.story.tsx +5 -5
- package/src/divider/stories/index.story.tsx +7 -7
- package/src/draggable/stories/index.story.tsx +5 -7
- package/src/drop-zone/stories/index.story.tsx +4 -4
- package/src/dropdown/stories/index.story.tsx +8 -6
- package/src/dropdown-menu/stories/index.story.tsx +4 -4
- package/src/dropdown-menu-v2/stories/index.story.tsx +28 -11
- package/src/duotone-picker/stories/duotone-picker.story.tsx +4 -7
- package/src/duotone-picker/stories/duotone-swatch.story.tsx +4 -4
- package/src/elevation/stories/index.story.tsx +8 -8
- package/src/external-link/stories/index.story.tsx +5 -7
- package/src/flex/stories/index.story.tsx +7 -7
- package/src/focal-point-picker/stories/index.story.tsx +4 -4
- package/src/font-size-picker/stories/e2e/index.story.tsx +3 -3
- package/src/font-size-picker/stories/index.story.tsx +11 -11
- package/src/form-file-upload/stories/index.story.tsx +4 -4
- package/src/form-toggle/stories/index.story.tsx +5 -8
- package/src/form-token-field/stories/index.story.tsx +11 -12
- package/src/gradient-picker/stories/index.story.tsx +4 -4
- package/src/grid/stories/index.story.tsx +5 -5
- package/src/guide/stories/index.story.tsx +3 -3
- package/src/h-stack/stories/e2e/index.story.tsx +4 -4
- package/src/h-stack/stories/index.story.tsx +5 -5
- package/src/heading/stories/index.story.tsx +4 -4
- package/src/icon/stories/index.story.tsx +6 -6
- package/src/input-control/stories/index.story.tsx +6 -4
- package/src/item-group/item/component.tsx +0 -1
- package/src/item-group/item-group/component.tsx +0 -1
- package/src/item-group/stories/index.story.tsx +12 -13
- package/src/keyboard-shortcuts/stories/index.story.tsx +4 -4
- package/src/menu-group/stories/index.story.tsx +6 -6
- package/src/menu-item/README.md +1 -1
- package/src/menu-item/index.tsx +5 -2
- package/src/menu-item/stories/index.story.tsx +80 -0
- package/src/menu-item/types.ts +3 -2
- package/src/menu-items-choice/stories/index.story.tsx +5 -7
- package/src/mobile/link-settings/link-settings-navigation.native.js +1 -1
- package/src/modal/stories/index.story.tsx +5 -10
- package/src/navigable-container/stories/navigable-menu.story.tsx +4 -4
- package/src/navigable-container/stories/tabbable-container.story.tsx +4 -4
- package/src/navigation/index.tsx +0 -1
- package/src/navigation/stories/index.story.tsx +17 -3
- package/src/navigation/stories/utils/controlled-state.tsx +2 -2
- package/src/navigation/stories/utils/default.tsx +2 -2
- package/src/navigation/stories/utils/group.tsx +2 -2
- package/src/navigation/stories/utils/hide-if-empty.tsx +2 -2
- package/src/navigation/stories/utils/more-examples.tsx +2 -2
- package/src/navigation/stories/utils/search.tsx +2 -2
- package/src/navigator/navigator-provider/component.tsx +0 -1
- package/src/navigator/stories/index.story.tsx +10 -11
- package/src/notice/stories/index.story.tsx +7 -7
- package/src/number-control/stories/index.story.tsx +4 -4
- package/src/palette-edit/stories/index.story.tsx +4 -4
- package/src/palette-edit/styles.js +0 -1
- package/src/panel/stories/index.story.tsx +10 -12
- package/src/placeholder/stories/index.story.tsx +5 -7
- package/src/popover/README.md +2 -2
- package/src/popover/index.tsx +69 -103
- package/src/popover/overlay-middlewares.tsx +2 -2
- package/src/popover/stories/index.story.tsx +8 -10
- package/src/popover/test/index.tsx +15 -1
- package/src/popover/types.ts +6 -0
- package/src/popover/utils.ts +5 -56
- package/src/progress-bar/stories/index.story.tsx +5 -7
- package/src/progress-bar/styles.ts +4 -1
- package/src/query-controls/stories/index.story.tsx +6 -7
- package/src/radio-control/stories/index.story.tsx +5 -7
- package/src/radio-group/stories/index.story.js +1 -0
- package/src/range-control/stories/index.story.tsx +13 -19
- package/src/resizable-box/stories/index.story.tsx +4 -4
- package/src/responsive-wrapper/stories/index.story.tsx +5 -6
- package/src/sandbox/index.tsx +4 -1
- package/src/sandbox/stories/index.story.tsx +4 -6
- package/src/scroll-lock/stories/index.story.tsx +4 -4
- package/src/scrollable/stories/index.story.tsx +5 -5
- package/src/search-control/index.native.js +39 -27
- package/src/search-control/stories/index.story.tsx +4 -4
- package/src/select-control/stories/index.story.tsx +4 -4
- package/src/shortcut/index.tsx +13 -0
- package/src/shortcut/stories/index.story.tsx +33 -0
- package/src/slot-fill/README.md +5 -5
- package/src/slot-fill/bubbles-virtually/slot-fill-context.js +3 -0
- package/src/slot-fill/bubbles-virtually/slot.js +17 -5
- package/src/slot-fill/index.js +6 -1
- package/src/slot-fill/stories/index.story.js +3 -1
- package/src/slot-fill/test/__snapshots__/slot.js.snap +12 -4
- package/src/snackbar/stories/index.story.tsx +11 -14
- package/src/snackbar/stories/list.story.tsx +4 -4
- package/src/spacer/stories/index.story.tsx +5 -5
- package/src/spinner/index.tsx +0 -1
- package/src/spinner/stories/index.story.tsx +6 -6
- package/src/surface/stories/index.story.tsx +5 -5
- package/src/tab-panel/stories/index.story.tsx +6 -14
- package/src/tab-panel/test/index.tsx +9 -25
- package/src/text/test/index.tsx +1 -1
- package/src/text-control/stories/index.story.tsx +8 -7
- package/src/text-highlight/stories/index.story.tsx +5 -7
- package/src/textarea-control/stories/index.story.tsx +5 -7
- package/src/theme/index.tsx +0 -1
- package/src/theme/stories/index.story.tsx +7 -7
- package/src/tip/stories/index.story.tsx +5 -5
- package/src/toggle-control/stories/index.story.tsx +4 -4
- package/src/toggle-group-control/stories/index.story.tsx +18 -12
- package/src/toolbar/stories/index.story.tsx +14 -4
- package/src/tools-panel/stories/index.story.tsx +18 -13
- package/src/tools-panel/tools-panel/component.tsx +0 -1
- package/src/tools-panel/tools-panel-header/component.tsx +3 -0
- package/src/tooltip/stories/index.story.js +1 -1
- package/src/tree-grid/stories/index.story.tsx +5 -3
- package/src/tree-select/index.tsx +0 -1
- package/src/tree-select/stories/index.story.tsx +4 -4
- package/src/truncate/stories/index.story.tsx +6 -8
- package/src/ui/context/constants.js +0 -2
- package/src/unit-control/index.tsx +0 -1
- package/src/unit-control/stories/index.story.tsx +11 -10
- package/src/utils/hooks/use-cx.ts +2 -1
- package/src/utils/math.js +0 -11
- package/src/utils/values.js +0 -81
- package/src/v-stack/stories/e2e/index.story.tsx +4 -4
- package/src/v-stack/stories/index.story.tsx +4 -4
- package/src/view/component.tsx +0 -1
- package/src/view/stories/index.story.tsx +5 -5
- package/src/visually-hidden/stories/index.story.tsx +8 -8
- package/src/z-stack/stories/index.story.tsx +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/build/popover/limit-shift.js +0 -129
- package/build/popover/limit-shift.js.map +0 -1
- package/build/ui/utils/get-high-dpi.js +0 -16
- package/build/ui/utils/get-high-dpi.js.map +0 -1
- package/build/utils/browsers.js +0 -32
- package/build/utils/browsers.js.map +0 -1
- package/build/utils/events.js +0 -43
- package/build/utils/events.js.map +0 -1
- package/build-module/popover/limit-shift.js +0 -122
- package/build-module/popover/limit-shift.js.map +0 -1
- package/build-module/ui/utils/get-high-dpi.js +0 -11
- package/build-module/ui/utils/get-high-dpi.js.map +0 -1
- package/build-module/utils/browsers.js +0 -25
- package/build-module/utils/browsers.js.map +0 -1
- package/build-module/utils/events.js +0 -37
- package/build-module/utils/events.js.map +0 -1
- package/build-types/alignment-matrix-control/stories/index.d.ts +0 -14
- package/build-types/alignment-matrix-control/stories/index.d.ts.map +0 -1
- package/build-types/angle-picker-control/stories/index.d.ts +0 -15
- package/build-types/angle-picker-control/stories/index.d.ts.map +0 -1
- package/build-types/animate/stories/index.d.ts +0 -18
- package/build-types/animate/stories/index.d.ts.map +0 -1
- package/build-types/base-control/stories/index.d.ts +0 -25
- package/build-types/base-control/stories/index.d.ts.map +0 -1
- package/build-types/border-box-control/stories/index.d.ts +0 -17
- package/build-types/border-box-control/stories/index.d.ts.map +0 -1
- package/build-types/border-control/stories/index.d.ts +0 -119
- package/build-types/border-control/stories/index.d.ts.map +0 -1
- package/build-types/button/stories/e2e/index.d.ts +0 -15
- package/build-types/button/stories/e2e/index.d.ts.map +0 -1
- package/build-types/button/stories/index.d.ts +0 -20
- package/build-types/button/stories/index.d.ts.map +0 -1
- package/build-types/button-group/stories/index.d.ts +0 -12
- package/build-types/button-group/stories/index.d.ts.map +0 -1
- package/build-types/card/stories/index.d.ts +0 -32
- package/build-types/card/stories/index.d.ts.map +0 -1
- package/build-types/checkbox-control/stories/index.d.ts +0 -13
- package/build-types/checkbox-control/stories/index.d.ts.map +0 -1
- package/build-types/circular-option-picker/stories/index.d.ts +0 -14
- package/build-types/circular-option-picker/stories/index.d.ts.map +0 -1
- package/build-types/color-indicator/stories/index.d.ts +0 -12
- package/build-types/color-indicator/stories/index.d.ts.map +0 -1
- package/build-types/color-palette/stories/index.d.ts +0 -46
- package/build-types/color-palette/stories/index.d.ts.map +0 -1
- package/build-types/color-picker/stories/index.d.ts +0 -19
- package/build-types/color-picker/stories/index.d.ts.map +0 -1
- package/build-types/combobox-control/stories/index.d.ts +0 -18
- package/build-types/combobox-control/stories/index.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/stories/index.d.ts +0 -12
- package/build-types/custom-gradient-picker/stories/index.d.ts.map +0 -1
- package/build-types/date-time/stories/date-time.d.ts +0 -14
- package/build-types/date-time/stories/date-time.d.ts.map +0 -1
- package/build-types/date-time/stories/date.d.ts +0 -14
- package/build-types/date-time/stories/date.d.ts.map +0 -1
- package/build-types/date-time/stories/time.d.ts +0 -12
- package/build-types/date-time/stories/time.d.ts.map +0 -1
- package/build-types/dimension-control/stories/index.d.ts +0 -12
- package/build-types/dimension-control/stories/index.d.ts.map +0 -1
- package/build-types/disabled/stories/index.d.ts +0 -13
- package/build-types/disabled/stories/index.d.ts.map +0 -1
- package/build-types/divider/stories/index.d.ts +0 -11
- package/build-types/divider/stories/index.d.ts.map +0 -1
- package/build-types/draggable/stories/index.d.ts +0 -20
- package/build-types/draggable/stories/index.d.ts.map +0 -1
- package/build-types/drop-zone/stories/index.d.ts +0 -12
- package/build-types/drop-zone/stories/index.d.ts.map +0 -1
- package/build-types/dropdown/stories/index.d.ts +0 -23
- package/build-types/dropdown/stories/index.d.ts.map +0 -1
- package/build-types/dropdown-menu/stories/index.d.ts +0 -14
- package/build-types/dropdown-menu/stories/index.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/stories/index.d.ts +0 -11
- package/build-types/dropdown-menu-v2/stories/index.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-picker.d.ts +0 -12
- package/build-types/duotone-picker/stories/duotone-picker.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts +0 -14
- package/build-types/duotone-picker/stories/duotone-swatch.d.ts.map +0 -1
- package/build-types/elevation/stories/index.d.ts +0 -22
- package/build-types/elevation/stories/index.d.ts.map +0 -1
- package/build-types/external-link/stories/index.d.ts +0 -12
- package/build-types/external-link/stories/index.d.ts.map +0 -1
- package/build-types/flex/stories/index.d.ts +0 -13
- package/build-types/flex/stories/index.d.ts.map +0 -1
- package/build-types/focal-point-picker/stories/index.d.ts +0 -15
- package/build-types/focal-point-picker/stories/index.d.ts.map +0 -1
- package/build-types/font-size-picker/stories/e2e/index.d.ts +0 -16
- package/build-types/font-size-picker/stories/e2e/index.d.ts.map +0 -1
- package/build-types/font-size-picker/stories/index.d.ts +0 -31
- package/build-types/font-size-picker/stories/index.d.ts.map +0 -1
- package/build-types/form-file-upload/stories/index.d.ts +0 -23
- package/build-types/form-file-upload/stories/index.d.ts.map +0 -1
- package/build-types/form-toggle/stories/index.d.ts +0 -12
- package/build-types/form-toggle/stories/index.d.ts.map +0 -1
- package/build-types/form-token-field/stories/index.d.ts +0 -26
- package/build-types/form-token-field/stories/index.d.ts.map +0 -1
- package/build-types/gradient-picker/stories/index.d.ts +0 -14
- package/build-types/gradient-picker/stories/index.d.ts.map +0 -1
- package/build-types/grid/stories/index.d.ts +0 -9
- package/build-types/grid/stories/index.d.ts.map +0 -1
- package/build-types/guide/stories/index.d.ts +0 -9
- package/build-types/guide/stories/index.d.ts.map +0 -1
- package/build-types/h-stack/stories/e2e/index.d.ts +0 -9
- package/build-types/h-stack/stories/e2e/index.d.ts.map +0 -1
- package/build-types/h-stack/stories/index.d.ts +0 -9
- package/build-types/h-stack/stories/index.d.ts.map +0 -1
- package/build-types/heading/stories/index.d.ts +0 -12
- package/build-types/heading/stories/index.d.ts.map +0 -1
- package/build-types/icon/stories/index.d.ts +0 -22
- package/build-types/icon/stories/index.d.ts.map +0 -1
- package/build-types/input-control/stories/index.d.ts +0 -28
- package/build-types/input-control/stories/index.d.ts.map +0 -1
- package/build-types/item-group/stories/index.d.ts +0 -15
- package/build-types/item-group/stories/index.d.ts.map +0 -1
- package/build-types/keyboard-shortcuts/stories/index.d.ts +0 -12
- package/build-types/keyboard-shortcuts/stories/index.d.ts.map +0 -1
- package/build-types/menu-group/stories/index.d.ts +0 -17
- package/build-types/menu-group/stories/index.d.ts.map +0 -1
- package/build-types/menu-items-choice/stories/index.d.ts +0 -12
- package/build-types/menu-items-choice/stories/index.d.ts.map +0 -1
- package/build-types/modal/stories/index.d.ts +0 -10
- package/build-types/modal/stories/index.d.ts.map +0 -1
- package/build-types/navigable-container/stories/navigable-menu.d.ts +0 -12
- package/build-types/navigable-container/stories/navigable-menu.d.ts.map +0 -1
- package/build-types/navigable-container/stories/tabbable-container.d.ts +0 -12
- package/build-types/navigable-container/stories/tabbable-container.d.ts.map +0 -1
- package/build-types/navigation/stories/index.d.ts +0 -18
- package/build-types/navigation/stories/index.d.ts.map +0 -1
- package/build-types/navigator/stories/index.d.ts +0 -11
- package/build-types/navigator/stories/index.d.ts.map +0 -1
- package/build-types/notice/stories/index.d.ts +0 -17
- package/build-types/notice/stories/index.d.ts.map +0 -1
- package/build-types/number-control/stories/index.d.ts +0 -25
- package/build-types/number-control/stories/index.d.ts.map +0 -1
- package/build-types/palette-edit/stories/index.d.ts +0 -13
- package/build-types/palette-edit/stories/index.d.ts.map +0 -1
- package/build-types/panel/stories/index.d.ts +0 -19
- package/build-types/panel/stories/index.d.ts.map +0 -1
- package/build-types/placeholder/stories/index.d.ts +0 -12
- package/build-types/placeholder/stories/index.d.ts.map +0 -1
- package/build-types/popover/limit-shift.d.ts +0 -87
- package/build-types/popover/limit-shift.d.ts.map +0 -1
- package/build-types/popover/stories/e2e/index.d.ts +0 -8
- package/build-types/popover/stories/e2e/index.d.ts.map +0 -1
- package/build-types/popover/stories/index.d.ts +0 -13
- package/build-types/popover/stories/index.d.ts.map +0 -1
- package/build-types/progress-bar/stories/index.d.ts +0 -12
- package/build-types/progress-bar/stories/index.d.ts.map +0 -1
- package/build-types/query-controls/stories/index.d.ts +0 -13
- package/build-types/query-controls/stories/index.d.ts.map +0 -1
- package/build-types/radio-control/stories/index.d.ts +0 -12
- package/build-types/radio-control/stories/index.d.ts.map +0 -1
- package/build-types/range-control/stories/index.d.ts +0 -48
- package/build-types/range-control/stories/index.d.ts.map +0 -1
- package/build-types/resizable-box/stories/index.d.ts +0 -61
- package/build-types/resizable-box/stories/index.d.ts.map +0 -1
- package/build-types/responsive-wrapper/stories/index.d.ts +0 -22
- package/build-types/responsive-wrapper/stories/index.d.ts.map +0 -1
- package/build-types/sandbox/stories/index.d.ts +0 -12
- package/build-types/sandbox/stories/index.d.ts.map +0 -1
- package/build-types/scroll-lock/stories/index.d.ts +0 -9
- package/build-types/scroll-lock/stories/index.d.ts.map +0 -1
- package/build-types/scrollable/stories/index.d.ts +0 -9
- package/build-types/scrollable/stories/index.d.ts.map +0 -1
- package/build-types/search-control/stories/index.d.ts +0 -47
- package/build-types/search-control/stories/index.d.ts.map +0 -1
- package/build-types/select-control/stories/index.d.ts +0 -19
- package/build-types/select-control/stories/index.d.ts.map +0 -1
- package/build-types/snackbar/stories/index.d.ts +0 -16
- package/build-types/snackbar/stories/index.d.ts.map +0 -1
- package/build-types/snackbar/stories/list.d.ts +0 -12
- package/build-types/snackbar/stories/list.d.ts.map +0 -1
- package/build-types/spacer/stories/index.d.ts +0 -12
- package/build-types/spacer/stories/index.d.ts.map +0 -1
- package/build-types/spinner/stories/index.d.ts +0 -13
- package/build-types/spinner/stories/index.d.ts.map +0 -1
- package/build-types/surface/stories/index.d.ts +0 -12
- package/build-types/surface/stories/index.d.ts.map +0 -1
- package/build-types/tab-panel/stories/index.d.ts +0 -16
- package/build-types/tab-panel/stories/index.d.ts.map +0 -1
- package/build-types/text-control/stories/index.d.ts +0 -13
- package/build-types/text-control/stories/index.d.ts.map +0 -1
- package/build-types/text-highlight/stories/index.d.ts +0 -12
- package/build-types/text-highlight/stories/index.d.ts.map +0 -1
- package/build-types/textarea-control/stories/index.d.ts +0 -12
- package/build-types/textarea-control/stories/index.d.ts.map +0 -1
- package/build-types/theme/stories/index.d.ts +0 -17
- package/build-types/theme/stories/index.d.ts.map +0 -1
- package/build-types/tip/stories/index.d.ts +0 -12
- package/build-types/tip/stories/index.d.ts.map +0 -1
- package/build-types/toggle-control/stories/index.d.ts +0 -13
- package/build-types/toggle-control/stories/index.d.ts.map +0 -1
- package/build-types/toggle-group-control/stories/index.d.ts +0 -27
- package/build-types/toggle-group-control/stories/index.d.ts.map +0 -1
- package/build-types/toolbar/stories/index.d.ts +0 -14
- package/build-types/toolbar/stories/index.d.ts.map +0 -1
- package/build-types/tools-panel/stories/index.d.ts +0 -17
- package/build-types/tools-panel/stories/index.d.ts.map +0 -1
- package/build-types/tree-grid/stories/index.d.ts +0 -13
- package/build-types/tree-grid/stories/index.d.ts.map +0 -1
- package/build-types/tree-select/stories/index.d.ts +0 -12
- package/build-types/tree-select/stories/index.d.ts.map +0 -1
- package/build-types/truncate/stories/index.d.ts +0 -13
- package/build-types/truncate/stories/index.d.ts.map +0 -1
- package/build-types/ui/control-group/component.d.ts +0 -27
- package/build-types/ui/control-group/component.d.ts.map +0 -1
- package/build-types/ui/control-group/context.d.ts +0 -4
- package/build-types/ui/control-group/context.d.ts.map +0 -1
- package/build-types/ui/control-group/hook.d.ts +0 -266
- package/build-types/ui/control-group/hook.d.ts.map +0 -1
- package/build-types/ui/control-group/index.d.ts +0 -4
- package/build-types/ui/control-group/index.d.ts.map +0 -1
- package/build-types/ui/control-group/styles.d.ts +0 -8
- package/build-types/ui/control-group/styles.d.ts.map +0 -1
- package/build-types/ui/control-group/types.d.ts +0 -27
- package/build-types/ui/control-group/types.d.ts.map +0 -1
- package/build-types/ui/control-label/component.d.ts +0 -23
- package/build-types/ui/control-label/component.d.ts.map +0 -1
- package/build-types/ui/control-label/hook.d.ts +0 -265
- package/build-types/ui/control-label/hook.d.ts.map +0 -1
- package/build-types/ui/control-label/index.d.ts +0 -3
- package/build-types/ui/control-label/index.d.ts.map +0 -1
- package/build-types/ui/control-label/styles.d.ts +0 -7
- package/build-types/ui/control-label/styles.d.ts.map +0 -1
- package/build-types/ui/control-label/types.d.ts +0 -9
- package/build-types/ui/control-label/types.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group-content.d.ts +0 -7
- package/build-types/ui/form-group/form-group-content.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group-context.d.ts +0 -11
- package/build-types/ui/form-group/form-group-context.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group-help.d.ts +0 -18
- package/build-types/ui/form-group/form-group-help.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group-label.d.ts +0 -8
- package/build-types/ui/form-group/form-group-label.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group-styles.d.ts +0 -2
- package/build-types/ui/form-group/form-group-styles.d.ts.map +0 -1
- package/build-types/ui/form-group/form-group.d.ts +0 -53
- package/build-types/ui/form-group/form-group.d.ts.map +0 -1
- package/build-types/ui/form-group/index.d.ts +0 -4
- package/build-types/ui/form-group/index.d.ts.map +0 -1
- package/build-types/ui/form-group/types.d.ts +0 -30
- package/build-types/ui/form-group/types.d.ts.map +0 -1
- package/build-types/ui/form-group/use-form-group.d.ts +0 -593
- package/build-types/ui/form-group/use-form-group.d.ts.map +0 -1
- package/build-types/ui/index.d.ts +0 -6
- package/build-types/ui/index.d.ts.map +0 -1
- package/build-types/ui/spinner/component.d.ts +0 -13
- package/build-types/ui/spinner/component.d.ts.map +0 -1
- package/build-types/ui/spinner/index.d.ts +0 -2
- package/build-types/ui/spinner/index.d.ts.map +0 -1
- package/build-types/ui/spinner/styles.d.ts +0 -13
- package/build-types/ui/spinner/styles.d.ts.map +0 -1
- package/build-types/ui/spinner/utils.d.ts +0 -3
- package/build-types/ui/spinner/utils.d.ts.map +0 -1
- package/build-types/ui/utils/get-high-dpi.d.ts +0 -3
- package/build-types/ui/utils/get-high-dpi.d.ts.map +0 -1
- package/build-types/unit-control/stories/index.d.ts +0 -33
- package/build-types/unit-control/stories/index.d.ts.map +0 -1
- package/build-types/utils/browsers.d.ts +0 -11
- package/build-types/utils/browsers.d.ts.map +0 -1
- package/build-types/utils/events.d.ts +0 -11
- package/build-types/utils/events.d.ts.map +0 -1
- package/build-types/v-stack/stories/e2e/index.d.ts +0 -9
- package/build-types/v-stack/stories/e2e/index.d.ts.map +0 -1
- package/build-types/v-stack/stories/index.d.ts +0 -13
- package/build-types/v-stack/stories/index.d.ts.map +0 -1
- package/build-types/view/stories/index.d.ts +0 -12
- package/build-types/view/stories/index.d.ts.map +0 -1
- package/build-types/visually-hidden/stories/index.d.ts +0 -14
- package/build-types/visually-hidden/stories/index.d.ts.map +0 -1
- package/build-types/z-stack/stories/index.d.ts +0 -6
- package/build-types/z-stack/stories/index.d.ts.map +0 -1
- package/src/popover/limit-shift.ts +0 -205
- package/src/ui/utils/get-high-dpi.ts +0 -20
- package/src/utils/browsers.js +0 -36
- package/src/utils/events.ts +0 -50
- package/src/utils/test/events.js +0 -63
- package/src/utils/test/values.js +0 -101
|
@@ -13,8 +13,6 @@ import { wordpress, category, media } from '@wordpress/icons';
|
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
15
|
import TabPanel from '..';
|
|
16
|
-
import Popover from '../../popover';
|
|
17
|
-
import { Provider as SlotFillProvider } from '../../slot-fill';
|
|
18
16
|
|
|
19
17
|
const TABS = [
|
|
20
18
|
{
|
|
@@ -107,17 +105,10 @@ describe.each( [
|
|
|
107
105
|
];
|
|
108
106
|
|
|
109
107
|
render(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<Component
|
|
115
|
-
tabs={ TABS_WITH_ICON }
|
|
116
|
-
children={ panelRenderFunction }
|
|
117
|
-
/>
|
|
118
|
-
{ /* @ts-expect-error The 'Slot' component hasn't been typed yet. */ }
|
|
119
|
-
<Popover.Slot />
|
|
120
|
-
</SlotFillProvider>
|
|
108
|
+
<Component
|
|
109
|
+
tabs={ TABS_WITH_ICON }
|
|
110
|
+
children={ panelRenderFunction }
|
|
111
|
+
/>
|
|
121
112
|
);
|
|
122
113
|
|
|
123
114
|
const allTabs = screen.getAllByRole( 'tab' );
|
|
@@ -152,18 +143,11 @@ describe.each( [
|
|
|
152
143
|
];
|
|
153
144
|
|
|
154
145
|
render(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
tabs={ TABS_WITH_ICON }
|
|
161
|
-
children={ panelRenderFunction }
|
|
162
|
-
onSelect={ mockOnSelect }
|
|
163
|
-
/>
|
|
164
|
-
{ /* @ts-expect-error The 'Slot' component hasn't been typed yet. */ }
|
|
165
|
-
<Popover.Slot />
|
|
166
|
-
</SlotFillProvider>
|
|
146
|
+
<Component
|
|
147
|
+
tabs={ TABS_WITH_ICON }
|
|
148
|
+
children={ panelRenderFunction }
|
|
149
|
+
onSelect={ mockOnSelect }
|
|
150
|
+
/>
|
|
167
151
|
);
|
|
168
152
|
|
|
169
153
|
expect( await getSelectedTab() ).not.toHaveTextContent( 'Alpha' );
|
package/src/text/test/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
*/
|
|
14
14
|
import TextControl from '..';
|
|
15
15
|
|
|
16
|
-
const meta:
|
|
16
|
+
const meta: Meta< typeof TextControl > = {
|
|
17
17
|
component: TextControl,
|
|
18
18
|
title: 'Components/TextControl',
|
|
19
19
|
argTypes: {
|
|
@@ -26,12 +26,12 @@ const meta: ComponentMeta< typeof TextControl > = {
|
|
|
26
26
|
controls: {
|
|
27
27
|
expanded: true,
|
|
28
28
|
},
|
|
29
|
-
docs: {
|
|
29
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
export default meta;
|
|
33
33
|
|
|
34
|
-
const DefaultTemplate:
|
|
34
|
+
const DefaultTemplate: StoryFn< typeof TextControl > = ( {
|
|
35
35
|
onChange,
|
|
36
36
|
...args
|
|
37
37
|
} ) => {
|
|
@@ -49,11 +49,12 @@ const DefaultTemplate: ComponentStory< typeof TextControl > = ( {
|
|
|
49
49
|
);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export const Default:
|
|
53
|
-
|
|
52
|
+
export const Default: StoryFn< typeof TextControl > = DefaultTemplate.bind(
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
54
55
|
Default.args = {};
|
|
55
56
|
|
|
56
|
-
export const WithLabelAndHelpText:
|
|
57
|
+
export const WithLabelAndHelpText: StoryFn< typeof TextControl > =
|
|
57
58
|
DefaultTemplate.bind( {} );
|
|
58
59
|
WithLabelAndHelpText.args = {
|
|
59
60
|
...Default.args,
|
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import TextHighlight from '..';
|
|
10
10
|
|
|
11
|
-
const meta:
|
|
11
|
+
const meta: Meta< typeof TextHighlight > = {
|
|
12
12
|
component: TextHighlight,
|
|
13
13
|
title: 'Components/TextHighlight',
|
|
14
14
|
parameters: {
|
|
15
15
|
controls: {
|
|
16
16
|
expanded: true,
|
|
17
17
|
},
|
|
18
|
-
docs: {
|
|
18
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
export default meta;
|
|
22
22
|
|
|
23
|
-
const Template:
|
|
23
|
+
const Template: StoryFn< typeof TextHighlight > = ( args ) => {
|
|
24
24
|
return <TextHighlight { ...args } />;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const Default:
|
|
28
|
-
{}
|
|
29
|
-
);
|
|
27
|
+
export const Default: StoryFn< typeof TextHighlight > = Template.bind( {} );
|
|
30
28
|
Default.args = {
|
|
31
29
|
text: 'We call the new editor Gutenberg. The entire editing experience has been rebuilt for media rich pages and posts.',
|
|
32
30
|
highlight: 'Gutenberg',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
*/
|
|
14
14
|
import TextareaControl from '..';
|
|
15
15
|
|
|
16
|
-
const meta:
|
|
16
|
+
const meta: Meta< typeof TextareaControl > = {
|
|
17
17
|
component: TextareaControl,
|
|
18
18
|
title: 'Components/TextareaControl',
|
|
19
19
|
argTypes: {
|
|
@@ -26,12 +26,12 @@ const meta: ComponentMeta< typeof TextareaControl > = {
|
|
|
26
26
|
controls: {
|
|
27
27
|
expanded: true,
|
|
28
28
|
},
|
|
29
|
-
docs: {
|
|
29
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
export default meta;
|
|
33
33
|
|
|
34
|
-
const Template:
|
|
34
|
+
const Template: StoryFn< typeof TextareaControl > = ( {
|
|
35
35
|
onChange,
|
|
36
36
|
...args
|
|
37
37
|
} ) => {
|
|
@@ -49,9 +49,7 @@ const Template: ComponentStory< typeof TextareaControl > = ( {
|
|
|
49
49
|
);
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export const Default:
|
|
53
|
-
{}
|
|
54
|
-
);
|
|
52
|
+
export const Default: StoryFn< typeof TextareaControl > = Template.bind( {} );
|
|
55
53
|
Default.args = {
|
|
56
54
|
label: 'Text',
|
|
57
55
|
help: 'Enter some text',
|
package/src/theme/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -11,7 +11,7 @@ import Button from '../../button';
|
|
|
11
11
|
import { generateThemeVariables, checkContrasts } from '../color-algorithms';
|
|
12
12
|
import { HStack } from '../../h-stack';
|
|
13
13
|
|
|
14
|
-
const meta:
|
|
14
|
+
const meta: Meta< typeof Theme > = {
|
|
15
15
|
component: Theme,
|
|
16
16
|
title: 'Components (Experimental)/Theme',
|
|
17
17
|
argTypes: {
|
|
@@ -20,12 +20,12 @@ const meta: ComponentMeta< typeof Theme > = {
|
|
|
20
20
|
},
|
|
21
21
|
parameters: {
|
|
22
22
|
controls: { expanded: true },
|
|
23
|
-
docs: {
|
|
23
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
export default meta;
|
|
27
27
|
|
|
28
|
-
const Template:
|
|
28
|
+
const Template: StoryFn< typeof Theme > = ( args ) => (
|
|
29
29
|
<Theme { ...args }>
|
|
30
30
|
<Button variant="primary">Hello</Button>
|
|
31
31
|
</Theme>
|
|
@@ -34,7 +34,7 @@ const Template: ComponentStory< typeof Theme > = ( args ) => (
|
|
|
34
34
|
export const Default = Template.bind( {} );
|
|
35
35
|
Default.args = {};
|
|
36
36
|
|
|
37
|
-
export const Nested:
|
|
37
|
+
export const Nested: StoryFn< typeof Theme > = ( args ) => (
|
|
38
38
|
<Theme accent="tomato">
|
|
39
39
|
<Button variant="primary">Outer theme (hardcoded)</Button>
|
|
40
40
|
|
|
@@ -52,7 +52,7 @@ Nested.args = {
|
|
|
52
52
|
/**
|
|
53
53
|
* The rest of the required colors are generated based on the given accent and background colors.
|
|
54
54
|
*/
|
|
55
|
-
export const ColorScheme:
|
|
55
|
+
export const ColorScheme: StoryFn< typeof Theme > = ( {
|
|
56
56
|
accent,
|
|
57
57
|
background,
|
|
58
58
|
} ) => {
|
|
@@ -110,5 +110,5 @@ ColorScheme.argTypes = {
|
|
|
110
110
|
children: { table: { disable: true } },
|
|
111
111
|
};
|
|
112
112
|
ColorScheme.parameters = {
|
|
113
|
-
docs: {
|
|
113
|
+
docs: { canvas: { sourceState: 'hidden' } },
|
|
114
114
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
9
|
import Tip from '..';
|
|
10
10
|
|
|
11
|
-
const meta:
|
|
11
|
+
const meta: Meta< typeof Tip > = {
|
|
12
12
|
component: Tip,
|
|
13
13
|
title: 'Components/Tip',
|
|
14
14
|
argTypes: {
|
|
@@ -18,16 +18,16 @@ const meta: ComponentMeta< typeof Tip > = {
|
|
|
18
18
|
controls: {
|
|
19
19
|
expanded: true,
|
|
20
20
|
},
|
|
21
|
-
docs: {
|
|
21
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
export default meta;
|
|
25
25
|
|
|
26
|
-
const Template:
|
|
26
|
+
const Template: StoryFn< typeof Tip > = ( args ) => {
|
|
27
27
|
return <Tip { ...args } />;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const Default:
|
|
30
|
+
export const Default: StoryFn< typeof Tip > = Template.bind( {} );
|
|
31
31
|
Default.args = {
|
|
32
32
|
children: 'An example tip',
|
|
33
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
*/
|
|
14
14
|
import ToggleControl from '..';
|
|
15
15
|
|
|
16
|
-
const meta:
|
|
16
|
+
const meta: Meta< typeof ToggleControl > = {
|
|
17
17
|
title: 'Components/ToggleControl',
|
|
18
18
|
component: ToggleControl,
|
|
19
19
|
argTypes: {
|
|
@@ -24,12 +24,12 @@ const meta: ComponentMeta< typeof ToggleControl > = {
|
|
|
24
24
|
},
|
|
25
25
|
parameters: {
|
|
26
26
|
controls: { expanded: true },
|
|
27
|
-
docs: {
|
|
27
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
export default meta;
|
|
31
31
|
|
|
32
|
-
const Template:
|
|
32
|
+
const Template: StoryFn< typeof ToggleControl > = ( {
|
|
33
33
|
onChange,
|
|
34
34
|
...props
|
|
35
35
|
} ) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -23,8 +23,10 @@ import type {
|
|
|
23
23
|
ToggleGroupControlProps,
|
|
24
24
|
} from '../types';
|
|
25
25
|
|
|
26
|
-
const meta:
|
|
26
|
+
const meta: Meta< typeof ToggleGroupControl > = {
|
|
27
27
|
component: ToggleGroupControl,
|
|
28
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
29
|
+
subcomponents: { ToggleGroupControlOption, ToggleGroupControlOptionIcon },
|
|
28
30
|
title: 'Components (Experimental)/ToggleGroupControl',
|
|
29
31
|
argTypes: {
|
|
30
32
|
help: { control: { type: 'text' } },
|
|
@@ -33,12 +35,12 @@ const meta: ComponentMeta< typeof ToggleGroupControl > = {
|
|
|
33
35
|
},
|
|
34
36
|
parameters: {
|
|
35
37
|
controls: { expanded: true },
|
|
36
|
-
docs: {
|
|
38
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
37
39
|
},
|
|
38
40
|
};
|
|
39
41
|
export default meta;
|
|
40
42
|
|
|
41
|
-
const Template:
|
|
43
|
+
const Template: StoryFn< typeof ToggleGroupControl > = ( {
|
|
42
44
|
onChange,
|
|
43
45
|
...props
|
|
44
46
|
} ) => {
|
|
@@ -72,8 +74,9 @@ const mapPropsToOptionIconComponent = ( {
|
|
|
72
74
|
<ToggleGroupControlOptionIcon value={ value } key={ value } { ...props } />
|
|
73
75
|
);
|
|
74
76
|
|
|
75
|
-
export const Default:
|
|
76
|
-
|
|
77
|
+
export const Default: StoryFn< typeof ToggleGroupControl > = Template.bind(
|
|
78
|
+
{}
|
|
79
|
+
);
|
|
77
80
|
Default.args = {
|
|
78
81
|
children: [
|
|
79
82
|
{ value: 'left', label: 'Left' },
|
|
@@ -90,8 +93,9 @@ Default.args = {
|
|
|
90
93
|
* The `aria-label` will be used in the tooltip if provided. Otherwise, the
|
|
91
94
|
* `label` will be used.
|
|
92
95
|
*/
|
|
93
|
-
export const WithTooltip:
|
|
94
|
-
|
|
96
|
+
export const WithTooltip: StoryFn< typeof ToggleGroupControl > = Template.bind(
|
|
97
|
+
{}
|
|
98
|
+
);
|
|
95
99
|
WithTooltip.args = {
|
|
96
100
|
...Default.args,
|
|
97
101
|
children: [
|
|
@@ -114,8 +118,9 @@ WithTooltip.args = {
|
|
|
114
118
|
* The `ToggleGroupControlOptionIcon` component can be used for icon options. A `label` is required
|
|
115
119
|
* on each option for accessibility, which will be shown in a tooltip.
|
|
116
120
|
*/
|
|
117
|
-
export const WithIcons:
|
|
118
|
-
|
|
121
|
+
export const WithIcons: StoryFn< typeof ToggleGroupControl > = Template.bind(
|
|
122
|
+
{}
|
|
123
|
+
);
|
|
119
124
|
WithIcons.args = {
|
|
120
125
|
...Default.args,
|
|
121
126
|
children: [
|
|
@@ -128,8 +133,9 @@ WithIcons.args = {
|
|
|
128
133
|
/**
|
|
129
134
|
* When the `isDeselectable` prop is true, the option can be deselected by clicking on it again.
|
|
130
135
|
*/
|
|
131
|
-
export const Deselectable:
|
|
132
|
-
|
|
136
|
+
export const Deselectable: StoryFn< typeof ToggleGroupControl > = Template.bind(
|
|
137
|
+
{}
|
|
138
|
+
);
|
|
133
139
|
Deselectable.args = {
|
|
134
140
|
...WithIcons.args,
|
|
135
141
|
isDeselectable: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -37,15 +37,25 @@ import {
|
|
|
37
37
|
} from '..';
|
|
38
38
|
import DropdownMenu from '../../dropdown-menu';
|
|
39
39
|
|
|
40
|
-
const meta:
|
|
40
|
+
const meta: Meta< typeof Toolbar > = {
|
|
41
41
|
title: 'Components/Toolbar',
|
|
42
42
|
component: Toolbar,
|
|
43
|
+
subcomponents: {
|
|
44
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
45
|
+
ToolbarButton,
|
|
46
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
47
|
+
ToolbarGroup,
|
|
48
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
49
|
+
ToolbarItem,
|
|
50
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
51
|
+
ToolbarDropdownMenu,
|
|
52
|
+
},
|
|
43
53
|
argTypes: {
|
|
44
54
|
children: { control: { type: null } },
|
|
45
55
|
},
|
|
46
56
|
parameters: {
|
|
47
57
|
controls: { expanded: true },
|
|
48
|
-
docs: {
|
|
58
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
49
59
|
},
|
|
50
60
|
};
|
|
51
61
|
|
|
@@ -59,7 +69,7 @@ function InlineImageIcon() {
|
|
|
59
69
|
);
|
|
60
70
|
}
|
|
61
71
|
|
|
62
|
-
const Template:
|
|
72
|
+
const Template: StoryFn< typeof Toolbar > = ( props ) => (
|
|
63
73
|
<div style={ { height: 280 } }>
|
|
64
74
|
<Toolbar { ...props } />
|
|
65
75
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -25,9 +25,11 @@ import Panel from '../../panel';
|
|
|
25
25
|
import UnitControl from '../../unit-control';
|
|
26
26
|
import { createSlotFill, Provider as SlotFillProvider } from '../../slot-fill';
|
|
27
27
|
|
|
28
|
-
const meta:
|
|
28
|
+
const meta: Meta< typeof ToolsPanel > = {
|
|
29
29
|
title: 'Components (Experimental)/ToolsPanel',
|
|
30
30
|
component: ToolsPanel,
|
|
31
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
32
|
+
subcomponents: { ToolsPanelItem },
|
|
31
33
|
argTypes: {
|
|
32
34
|
as: { control: { type: null } },
|
|
33
35
|
children: { control: { type: null } },
|
|
@@ -39,12 +41,12 @@ const meta: ComponentMeta< typeof ToolsPanel > = {
|
|
|
39
41
|
controls: {
|
|
40
42
|
expanded: true,
|
|
41
43
|
},
|
|
42
|
-
docs: {
|
|
44
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
43
45
|
},
|
|
44
46
|
};
|
|
45
47
|
export default meta;
|
|
46
48
|
|
|
47
|
-
export const Default:
|
|
49
|
+
export const Default: StoryFn< typeof ToolsPanel > = ( {
|
|
48
50
|
resetAll: resetAllProp,
|
|
49
51
|
...props
|
|
50
52
|
} ) => {
|
|
@@ -136,7 +138,7 @@ Default.args = {
|
|
|
136
138
|
label: 'Tools Panel (default example)',
|
|
137
139
|
};
|
|
138
140
|
|
|
139
|
-
export const WithNonToolsPanelItems:
|
|
141
|
+
export const WithNonToolsPanelItems: StoryFn< typeof ToolsPanel > = ( {
|
|
140
142
|
resetAll: resetAllProp,
|
|
141
143
|
...props
|
|
142
144
|
} ) => {
|
|
@@ -191,9 +193,10 @@ WithNonToolsPanelItems.args = {
|
|
|
191
193
|
label: 'ToolsPanel (with non-menu items)',
|
|
192
194
|
};
|
|
193
195
|
|
|
194
|
-
export const WithOptionalItemsPlusIcon:
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
export const WithOptionalItemsPlusIcon: StoryFn< typeof ToolsPanel > = ( {
|
|
197
|
+
resetAll: resetAllProp,
|
|
198
|
+
...props
|
|
199
|
+
} ) => {
|
|
197
200
|
const [
|
|
198
201
|
isFirstToolsPanelItemShownByDefault,
|
|
199
202
|
setIsFirstToolsPanelItemShownByDefault,
|
|
@@ -294,7 +297,7 @@ WithOptionalItemsPlusIcon.args = {
|
|
|
294
297
|
|
|
295
298
|
const { Fill: ToolsPanelItems, Slot } = createSlotFill( 'ToolsPanelSlot' );
|
|
296
299
|
|
|
297
|
-
export const WithSlotFillItems:
|
|
300
|
+
export const WithSlotFillItems: StoryFn< typeof ToolsPanel > = ( {
|
|
298
301
|
resetAll: resetAllProp,
|
|
299
302
|
panelId,
|
|
300
303
|
...props
|
|
@@ -392,9 +395,11 @@ WithSlotFillItems.args = {
|
|
|
392
395
|
panelId: 'unique-tools-panel-id',
|
|
393
396
|
};
|
|
394
397
|
|
|
395
|
-
export const WithConditionalDefaultControl:
|
|
396
|
-
|
|
397
|
-
|
|
398
|
+
export const WithConditionalDefaultControl: StoryFn< typeof ToolsPanel > = ( {
|
|
399
|
+
resetAll: resetAllProp,
|
|
400
|
+
panelId,
|
|
401
|
+
...props
|
|
402
|
+
} ) => {
|
|
398
403
|
const [ attributes, setAttributes ] = useState< {
|
|
399
404
|
height?: string;
|
|
400
405
|
scale?: React.ReactText;
|
|
@@ -488,7 +493,7 @@ WithConditionalDefaultControl.args = {
|
|
|
488
493
|
panelId: 'unique-tools-panel-id',
|
|
489
494
|
};
|
|
490
495
|
|
|
491
|
-
export const WithConditionallyRenderedControl:
|
|
496
|
+
export const WithConditionallyRenderedControl: StoryFn<
|
|
492
497
|
typeof ToolsPanel
|
|
493
498
|
> = ( { resetAll: resetAllProp, panelId, ...props } ) => {
|
|
494
499
|
const [ attributes, setAttributes ] = useState< {
|
|
@@ -214,6 +214,9 @@ const ToolsPanelHeader = (
|
|
|
214
214
|
<MenuGroup>
|
|
215
215
|
<MenuItem
|
|
216
216
|
aria-disabled={ ! canResetAll }
|
|
217
|
+
// @ts-expect-error - TODO: If this "tertiary" style is something we really want to allow on MenuItem,
|
|
218
|
+
// we should rename it and explicitly allow it as an official API. All the other Button variants
|
|
219
|
+
// don't make sense in a MenuItem context, and should be disallowed.
|
|
217
220
|
variant={ 'tertiary' }
|
|
218
221
|
onClick={ () => {
|
|
219
222
|
if ( canResetAll ) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -15,9 +15,11 @@ import TreeGrid, { TreeGridRow, TreeGridCell } from '..';
|
|
|
15
15
|
import { Button } from '../../button';
|
|
16
16
|
import InputControl from '../../input-control';
|
|
17
17
|
|
|
18
|
-
const meta:
|
|
18
|
+
const meta: Meta< typeof TreeGrid > = {
|
|
19
19
|
title: 'Components (Experimental)/TreeGrid',
|
|
20
20
|
component: TreeGrid,
|
|
21
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
22
|
+
subcomponents: { TreeGridRow, TreeGridCell },
|
|
21
23
|
argTypes: {
|
|
22
24
|
children: { control: { type: null } },
|
|
23
25
|
},
|
|
@@ -133,7 +135,7 @@ const Rows = ( {
|
|
|
133
135
|
);
|
|
134
136
|
};
|
|
135
137
|
|
|
136
|
-
const Template:
|
|
138
|
+
const Template: StoryFn< typeof TreeGrid > = ( args ) => (
|
|
137
139
|
<TreeGrid { ...args } />
|
|
138
140
|
);
|
|
139
141
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
import type { ComponentProps } from 'react';
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -13,7 +13,7 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
*/
|
|
14
14
|
import TreeSelect from '../';
|
|
15
15
|
|
|
16
|
-
const meta:
|
|
16
|
+
const meta: Meta< typeof TreeSelect > = {
|
|
17
17
|
title: 'Components/TreeSelect',
|
|
18
18
|
component: TreeSelect,
|
|
19
19
|
argTypes: {
|
|
@@ -27,13 +27,13 @@ const meta: ComponentMeta< typeof TreeSelect > = {
|
|
|
27
27
|
controls: {
|
|
28
28
|
expanded: true,
|
|
29
29
|
},
|
|
30
|
-
docs: {
|
|
30
|
+
docs: { canvas: { sourceState: 'shown' } },
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export default meta;
|
|
35
35
|
|
|
36
|
-
const TreeSelectWithState:
|
|
36
|
+
const TreeSelectWithState: StoryFn< typeof TreeSelect > = ( props ) => {
|
|
37
37
|
const [ selection, setSelection ] =
|
|
38
38
|
useState< ComponentProps< typeof TreeSelect >[ 'selectedId' ] >();
|
|
39
39
|
|