@wordpress/components 25.6.1 → 26.0.1-next.5a1d1283.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 +1 -1
- package/README.md +3 -8
- 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/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 +3 -1
- 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/spinner/index.js +0 -1
- package/build/spinner/index.js.map +1 -1
- package/build/theme/index.js +0 -1
- package/build/theme/index.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/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/view/component.js +1 -2
- package/build/view/component.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/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 +3 -1
- 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/spinner/index.js +0 -1
- package/build-module/spinner/index.js.map +1 -1
- package/build-module/theme/index.js +0 -1
- package/build-module/theme/index.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/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/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-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-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/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 -2
- 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/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/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 +7 -3
- package/src/angle-picker-control/stories/index.story.tsx +3 -3
- package/src/animate/stories/index.story.tsx +12 -10
- package/src/base-control/stories/index.story.tsx +5 -9
- package/src/border-box-control/stories/index.story.tsx +5 -9
- package/src/border-control/stories/index.story.tsx +8 -14
- package/src/button/stories/e2e/index.story.tsx +3 -3
- package/src/button/stories/index.story.tsx +10 -10
- package/src/button-group/stories/index.story.tsx +4 -6
- package/src/card/stories/index.story.tsx +5 -5
- package/src/checkbox-control/stories/index.story.tsx +7 -6
- package/src/circular-option-picker/stories/index.story.tsx +16 -4
- package/src/color-indicator/stories/index.story.tsx +4 -6
- package/src/color-palette/stories/index.story.tsx +12 -21
- 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 +3 -3
- package/src/color-picker/style.native.scss +23 -0
- package/src/combobox-control/stories/index.story.tsx +3 -3
- package/src/custom-gradient-picker/stories/index.story.tsx +3 -3
- package/src/date-time/stories/date-time.story.tsx +8 -10
- package/src/date-time/stories/date.story.tsx +8 -9
- package/src/date-time/stories/time.story.tsx +4 -4
- package/src/dimension-control/stories/index.story.tsx +3 -3
- package/src/disabled/stories/index.story.tsx +4 -4
- package/src/divider/stories/index.story.tsx +6 -6
- package/src/draggable/stories/index.story.tsx +5 -7
- package/src/drop-zone/stories/index.story.tsx +3 -3
- package/src/dropdown/stories/index.story.tsx +8 -6
- package/src/dropdown-menu/stories/index.story.tsx +3 -3
- package/src/dropdown-menu-v2/stories/index.story.tsx +24 -10
- package/src/duotone-picker/stories/duotone-picker.story.tsx +3 -6
- package/src/duotone-picker/stories/duotone-swatch.story.tsx +3 -3
- package/src/elevation/stories/index.story.tsx +7 -7
- package/src/external-link/stories/index.story.tsx +4 -6
- package/src/flex/stories/index.story.tsx +6 -6
- package/src/focal-point-picker/stories/index.story.tsx +3 -3
- package/src/font-size-picker/stories/e2e/index.story.tsx +3 -3
- package/src/font-size-picker/stories/index.story.tsx +10 -10
- package/src/form-file-upload/stories/index.story.tsx +3 -3
- package/src/form-toggle/stories/index.story.tsx +4 -7
- package/src/form-token-field/stories/index.story.tsx +10 -11
- package/src/gradient-picker/stories/index.story.tsx +3 -3
- package/src/grid/stories/index.story.tsx +4 -4
- 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 +4 -4
- package/src/heading/stories/index.story.tsx +3 -3
- package/src/icon/stories/index.story.tsx +5 -5
- package/src/input-control/stories/index.story.tsx +5 -3
- 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 +11 -12
- package/src/keyboard-shortcuts/stories/index.story.tsx +3 -3
- package/src/menu-group/stories/index.story.tsx +5 -5
- 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 +4 -6
- 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 +3 -3
- package/src/navigable-container/stories/tabbable-container.story.tsx +3 -3
- package/src/navigation/index.tsx +0 -1
- package/src/navigation/stories/index.story.tsx +16 -2
- 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 +9 -10
- package/src/notice/stories/index.story.tsx +6 -6
- package/src/number-control/stories/index.story.tsx +3 -3
- package/src/palette-edit/stories/index.story.tsx +3 -3
- package/src/palette-edit/styles.js +0 -1
- package/src/panel/stories/index.story.tsx +9 -11
- package/src/placeholder/stories/index.story.tsx +4 -6
- 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 +4 -6
- package/src/progress-bar/styles.ts +4 -1
- package/src/query-controls/stories/index.story.tsx +5 -6
- package/src/radio-control/stories/index.story.tsx +4 -6
- package/src/radio-group/stories/index.story.js +1 -0
- package/src/range-control/stories/index.story.tsx +12 -18
- package/src/resizable-box/stories/index.story.tsx +3 -3
- package/src/responsive-wrapper/stories/index.story.tsx +4 -5
- package/src/sandbox/stories/index.story.tsx +3 -5
- package/src/scroll-lock/stories/index.story.tsx +3 -3
- package/src/scrollable/stories/index.story.tsx +4 -4
- package/src/search-control/index.native.js +39 -27
- package/src/search-control/stories/index.story.tsx +3 -3
- package/src/select-control/stories/index.story.tsx +3 -3
- 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 +2 -0
- package/src/slot-fill/test/__snapshots__/slot.js.snap +12 -4
- package/src/snackbar/stories/index.story.tsx +10 -13
- package/src/snackbar/stories/list.story.tsx +3 -3
- package/src/spacer/stories/index.story.tsx +4 -4
- package/src/spinner/index.tsx +0 -1
- package/src/spinner/stories/index.story.tsx +5 -5
- package/src/surface/stories/index.story.tsx +4 -4
- package/src/tab-panel/stories/index.story.tsx +5 -13
- package/src/tab-panel/test/index.tsx +9 -25
- package/src/text-control/stories/index.story.tsx +7 -6
- package/src/text-highlight/stories/index.story.tsx +4 -6
- package/src/textarea-control/stories/index.story.tsx +4 -6
- package/src/theme/index.tsx +0 -1
- package/src/theme/stories/index.story.tsx +5 -5
- package/src/tip/stories/index.story.tsx +4 -4
- package/src/toggle-control/stories/index.story.tsx +3 -3
- package/src/toggle-group-control/stories/index.story.tsx +17 -11
- package/src/toolbar/stories/index.story.tsx +13 -3
- package/src/tools-panel/stories/index.story.tsx +17 -12
- package/src/tools-panel/tools-panel/component.tsx +0 -1
- package/src/tools-panel/tools-panel-header/component.tsx +3 -0
- 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 +3 -3
- package/src/truncate/stories/index.story.tsx +5 -7
- package/src/unit-control/index.tsx +0 -1
- package/src/unit-control/stories/index.story.tsx +10 -9
- package/src/utils/hooks/use-cx.ts +2 -1
- package/src/v-stack/stories/e2e/index.story.tsx +4 -4
- package/src/v-stack/stories/index.story.tsx +3 -3
- package/src/view/component.tsx +0 -1
- package/src/view/stories/index.story.tsx +4 -4
- package/src/visually-hidden/stories/index.story.tsx +7 -7
- package/src/z-stack/stories/index.story.tsx +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/build/popover/limit-shift.js +0 -129
- package/build/popover/limit-shift.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-types/popover/limit-shift.d.ts +0 -87
- package/build-types/popover/limit-shift.d.ts.map +0 -1
- package/src/popover/limit-shift.ts +0 -205
|
@@ -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
|
* Internal dependencies
|
|
7
7
|
*/
|
|
8
8
|
import { VisuallyHidden } from '..';
|
|
9
|
-
declare const meta:
|
|
9
|
+
declare const meta: Meta<typeof VisuallyHidden>;
|
|
10
10
|
export default meta;
|
|
11
|
-
export declare const Default:
|
|
12
|
-
export declare const WithForwardedProps:
|
|
13
|
-
export declare const WithAdditionalClassNames:
|
|
11
|
+
export declare const Default: StoryFn<typeof VisuallyHidden>;
|
|
12
|
+
export declare const WithForwardedProps: StoryFn<typeof VisuallyHidden>;
|
|
13
|
+
export declare const WithAdditionalClassNames: StoryFn<typeof VisuallyHidden>;
|
|
14
14
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CAatC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,cAAc,CAanD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAE,OAAO,cAAc,CAW9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAE,OAAO,cAAc,CAWpE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { ZStack } from '..';
|
|
3
|
-
declare const meta:
|
|
3
|
+
declare const meta: Meta<typeof ZStack>;
|
|
4
4
|
export default meta;
|
|
5
|
-
export declare const Default:
|
|
5
|
+
export declare const Default: StoryFn<typeof ZStack>;
|
|
6
6
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/z-stack/stories/index.story.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/z-stack/stories/index.story.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOtD,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAa9B,CAAC;AACF,eAAe,IAAI,CAAC;AAsCpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,MAAM,CAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.0.1-next.5a1d1283.0",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -38,26 +38,26 @@
|
|
|
38
38
|
"@emotion/serialize": "^1.0.2",
|
|
39
39
|
"@emotion/styled": "^11.6.0",
|
|
40
40
|
"@emotion/utils": "^1.0.0",
|
|
41
|
-
"@floating-ui/react-dom": "
|
|
41
|
+
"@floating-ui/react-dom": "^2.0.1",
|
|
42
42
|
"@radix-ui/react-dropdown-menu": "2.0.4",
|
|
43
43
|
"@use-gesture/react": "^10.2.24",
|
|
44
|
-
"@wordpress/a11y": "^3.
|
|
45
|
-
"@wordpress/compose": "^6.
|
|
46
|
-
"@wordpress/date": "^4.
|
|
47
|
-
"@wordpress/deprecated": "^3.
|
|
48
|
-
"@wordpress/dom": "^3.
|
|
49
|
-
"@wordpress/element": "^5.
|
|
50
|
-
"@wordpress/escape-html": "^2.
|
|
51
|
-
"@wordpress/hooks": "^3.
|
|
52
|
-
"@wordpress/html-entities": "^3.
|
|
53
|
-
"@wordpress/i18n": "^4.
|
|
54
|
-
"@wordpress/icons": "^9.
|
|
55
|
-
"@wordpress/is-shallow-equal": "^4.
|
|
56
|
-
"@wordpress/keycodes": "^3.
|
|
57
|
-
"@wordpress/primitives": "^3.
|
|
58
|
-
"@wordpress/private-apis": "^0.
|
|
59
|
-
"@wordpress/rich-text": "^6.
|
|
60
|
-
"@wordpress/warning": "^2.
|
|
44
|
+
"@wordpress/a11y": "^3.41.1-next.5a1d1283.0",
|
|
45
|
+
"@wordpress/compose": "^6.18.1-next.5a1d1283.0",
|
|
46
|
+
"@wordpress/date": "^4.41.1-next.5a1d1283.0",
|
|
47
|
+
"@wordpress/deprecated": "^3.41.1-next.5a1d1283.0",
|
|
48
|
+
"@wordpress/dom": "^3.41.1-next.5a1d1283.0",
|
|
49
|
+
"@wordpress/element": "^5.18.1-next.5a1d1283.0",
|
|
50
|
+
"@wordpress/escape-html": "^2.41.1-next.5a1d1283.0",
|
|
51
|
+
"@wordpress/hooks": "^3.41.1-next.5a1d1283.0",
|
|
52
|
+
"@wordpress/html-entities": "^3.41.1-next.5a1d1283.0",
|
|
53
|
+
"@wordpress/i18n": "^4.41.1-next.5a1d1283.0",
|
|
54
|
+
"@wordpress/icons": "^9.32.1-next.5a1d1283.0",
|
|
55
|
+
"@wordpress/is-shallow-equal": "^4.41.1-next.5a1d1283.0",
|
|
56
|
+
"@wordpress/keycodes": "^3.41.1-next.5a1d1283.0",
|
|
57
|
+
"@wordpress/primitives": "^3.39.1-next.5a1d1283.0",
|
|
58
|
+
"@wordpress/private-apis": "^0.23.1-next.5a1d1283.0",
|
|
59
|
+
"@wordpress/rich-text": "^6.18.1-next.5a1d1283.0",
|
|
60
|
+
"@wordpress/warning": "^2.41.1-next.5a1d1283.0",
|
|
61
61
|
"change-case": "^4.1.2",
|
|
62
62
|
"classnames": "^2.3.1",
|
|
63
63
|
"colord": "^2.7.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "fa0b66987dab5a15f38663e06036d09bccffaa4b"
|
|
91
91
|
}
|
|
@@ -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
|
|
@@ -16,9 +16,13 @@ import AlignmentMatrixControl from '..';
|
|
|
16
16
|
import { HStack } from '../../h-stack';
|
|
17
17
|
import type { AlignmentMatrixControlProps } from '../types';
|
|
18
18
|
|
|
19
|
-
const meta:
|
|
19
|
+
const meta: Meta< typeof AlignmentMatrixControl > = {
|
|
20
20
|
title: 'Components (Experimental)/AlignmentMatrixControl',
|
|
21
21
|
component: AlignmentMatrixControl,
|
|
22
|
+
subcomponents: {
|
|
23
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
24
|
+
'AlignmentMatrixControl.Icon': AlignmentMatrixControl.Icon,
|
|
25
|
+
},
|
|
22
26
|
argTypes: {
|
|
23
27
|
onChange: { action: 'onChange', control: { type: null } },
|
|
24
28
|
value: { control: { type: null } },
|
|
@@ -30,7 +34,7 @@ const meta: ComponentMeta< typeof AlignmentMatrixControl > = {
|
|
|
30
34
|
};
|
|
31
35
|
export default meta;
|
|
32
36
|
|
|
33
|
-
const Template:
|
|
37
|
+
const Template: StoryFn< typeof AlignmentMatrixControl > = ( {
|
|
34
38
|
defaultValue,
|
|
35
39
|
onChange,
|
|
36
40
|
...props
|
|
@@ -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 { AnglePickerControl } from '..';
|
|
15
15
|
|
|
16
|
-
const meta:
|
|
16
|
+
const meta: Meta< typeof AnglePickerControl > = {
|
|
17
17
|
title: 'Components/AnglePickerControl',
|
|
18
18
|
component: AnglePickerControl,
|
|
19
19
|
argTypes: {
|
|
@@ -31,7 +31,7 @@ const meta: ComponentMeta< typeof AnglePickerControl > = {
|
|
|
31
31
|
|
|
32
32
|
export default meta;
|
|
33
33
|
|
|
34
|
-
const AnglePickerWithState:
|
|
34
|
+
const AnglePickerWithState: StoryFn< typeof AnglePickerControl > = ( {
|
|
35
35
|
onChange,
|
|
36
36
|
...args
|
|
37
37
|
} ) => {
|
|
@@ -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
|
|
@@ -9,7 +9,7 @@ import type { ComponentMeta, Story } from '@storybook/react';
|
|
|
9
9
|
import { Animate } from '..';
|
|
10
10
|
import Notice from '../../notice';
|
|
11
11
|
|
|
12
|
-
const meta:
|
|
12
|
+
const meta: Meta< typeof Animate > = {
|
|
13
13
|
title: 'Components/Animate',
|
|
14
14
|
component: Animate,
|
|
15
15
|
parameters: {
|
|
@@ -19,9 +19,11 @@ const meta: ComponentMeta< typeof Animate > = {
|
|
|
19
19
|
};
|
|
20
20
|
export default meta;
|
|
21
21
|
|
|
22
|
-
const Template:
|
|
22
|
+
const Template: StoryFn< typeof Animate > = ( props ) => (
|
|
23
|
+
<Animate { ...props } />
|
|
24
|
+
);
|
|
23
25
|
|
|
24
|
-
export const Default
|
|
26
|
+
export const Default = Template.bind( {} );
|
|
25
27
|
Default.args = {
|
|
26
28
|
children: ( { className } ) => (
|
|
27
29
|
<Notice className={ className } status="success">
|
|
@@ -30,7 +32,7 @@ Default.args = {
|
|
|
30
32
|
),
|
|
31
33
|
};
|
|
32
34
|
|
|
33
|
-
export const AppearTopLeft
|
|
35
|
+
export const AppearTopLeft = Template.bind( {} );
|
|
34
36
|
AppearTopLeft.args = {
|
|
35
37
|
type: 'appear',
|
|
36
38
|
options: { origin: 'top left' },
|
|
@@ -40,7 +42,7 @@ AppearTopLeft.args = {
|
|
|
40
42
|
</Notice>
|
|
41
43
|
),
|
|
42
44
|
};
|
|
43
|
-
export const AppearTopRight
|
|
45
|
+
export const AppearTopRight = Template.bind( {} );
|
|
44
46
|
AppearTopRight.args = {
|
|
45
47
|
type: 'appear',
|
|
46
48
|
options: { origin: 'top right' },
|
|
@@ -50,7 +52,7 @@ AppearTopRight.args = {
|
|
|
50
52
|
</Notice>
|
|
51
53
|
),
|
|
52
54
|
};
|
|
53
|
-
export const AppearBottomLeft
|
|
55
|
+
export const AppearBottomLeft = Template.bind( {} );
|
|
54
56
|
AppearBottomLeft.args = {
|
|
55
57
|
type: 'appear',
|
|
56
58
|
options: { origin: 'bottom left' },
|
|
@@ -60,7 +62,7 @@ AppearBottomLeft.args = {
|
|
|
60
62
|
</Notice>
|
|
61
63
|
),
|
|
62
64
|
};
|
|
63
|
-
export const AppearBottomRight
|
|
65
|
+
export const AppearBottomRight = Template.bind( {} );
|
|
64
66
|
AppearBottomRight.args = {
|
|
65
67
|
type: 'appear',
|
|
66
68
|
options: { origin: 'bottom right' },
|
|
@@ -71,7 +73,7 @@ AppearBottomRight.args = {
|
|
|
71
73
|
),
|
|
72
74
|
};
|
|
73
75
|
|
|
74
|
-
export const Loading
|
|
76
|
+
export const Loading = Template.bind( {} );
|
|
75
77
|
Loading.args = {
|
|
76
78
|
type: 'loading',
|
|
77
79
|
children: ( { className } ) => (
|
|
@@ -81,7 +83,7 @@ Loading.args = {
|
|
|
81
83
|
),
|
|
82
84
|
};
|
|
83
85
|
|
|
84
|
-
export const SlideIn
|
|
86
|
+
export const SlideIn = Template.bind( {} );
|
|
85
87
|
SlideIn.args = {
|
|
86
88
|
type: 'slide-in',
|
|
87
89
|
options: { origin: 'left' },
|
|
@@ -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
|
|
@@ -9,7 +9,7 @@ import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
|
9
9
|
import BaseControl, { useBaseControlProps } from '..';
|
|
10
10
|
import Button from '../../button';
|
|
11
11
|
|
|
12
|
-
const meta:
|
|
12
|
+
const meta: Meta< typeof BaseControl > = {
|
|
13
13
|
title: 'Components/BaseControl',
|
|
14
14
|
component: BaseControl,
|
|
15
15
|
argTypes: {
|
|
@@ -24,9 +24,7 @@ const meta: ComponentMeta< typeof BaseControl > = {
|
|
|
24
24
|
};
|
|
25
25
|
export default meta;
|
|
26
26
|
|
|
27
|
-
const BaseControlWithTextarea:
|
|
28
|
-
props
|
|
29
|
-
) => {
|
|
27
|
+
const BaseControlWithTextarea: StoryFn< typeof BaseControl > = ( props ) => {
|
|
30
28
|
const { baseControlProps, controlProps } = useBaseControlProps( props );
|
|
31
29
|
|
|
32
30
|
return (
|
|
@@ -36,7 +34,7 @@ const BaseControlWithTextarea: ComponentStory< typeof BaseControl > = (
|
|
|
36
34
|
);
|
|
37
35
|
};
|
|
38
36
|
|
|
39
|
-
export const Default:
|
|
37
|
+
export const Default: StoryFn< typeof BaseControl > =
|
|
40
38
|
BaseControlWithTextarea.bind( {} );
|
|
41
39
|
Default.args = {
|
|
42
40
|
__nextHasNoMarginBottom: true,
|
|
@@ -56,9 +54,7 @@ WithHelpText.args = {
|
|
|
56
54
|
* e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would
|
|
57
55
|
* otherwise use if the `label` prop was passed.
|
|
58
56
|
*/
|
|
59
|
-
export const WithVisualLabel:
|
|
60
|
-
props
|
|
61
|
-
) => {
|
|
57
|
+
export const WithVisualLabel: StoryFn< typeof BaseControl > = ( props ) => {
|
|
62
58
|
// @ts-expect-error - Unclear how to fix, see also https://github.com/WordPress/gutenberg/pull/39468#discussion_r827150516
|
|
63
59
|
BaseControl.VisualLabel.displayName = 'BaseControl.VisualLabel';
|
|
64
60
|
|
|
@@ -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
|
/**
|
|
@@ -13,11 +13,9 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
15
|
import Button from '../../button';
|
|
16
|
-
import Popover from '../../popover';
|
|
17
16
|
import { BorderBoxControl } from '../';
|
|
18
|
-
import { Provider as SlotFillProvider } from '../../slot-fill';
|
|
19
17
|
|
|
20
|
-
const meta:
|
|
18
|
+
const meta: Meta< typeof BorderBoxControl > = {
|
|
21
19
|
title: 'Components (Experimental)/BorderBoxControl',
|
|
22
20
|
component: BorderBoxControl,
|
|
23
21
|
argTypes: {
|
|
@@ -41,7 +39,7 @@ const colors = [
|
|
|
41
39
|
{ name: 'Yellow 40', color: '#bd8600' },
|
|
42
40
|
];
|
|
43
41
|
|
|
44
|
-
const Template:
|
|
42
|
+
const Template: StoryFn< typeof BorderBoxControl > = ( props ) => {
|
|
45
43
|
const { onChange, ...otherProps } = props;
|
|
46
44
|
const [ borders, setBorders ] = useState< ( typeof props )[ 'value' ] >();
|
|
47
45
|
|
|
@@ -53,7 +51,7 @@ const Template: ComponentStory< typeof BorderBoxControl > = ( props ) => {
|
|
|
53
51
|
};
|
|
54
52
|
|
|
55
53
|
return (
|
|
56
|
-
|
|
54
|
+
<>
|
|
57
55
|
<BorderBoxControl
|
|
58
56
|
{ ...otherProps }
|
|
59
57
|
onChange={ onChangeMerged }
|
|
@@ -78,9 +76,7 @@ const Template: ComponentStory< typeof BorderBoxControl > = ( props ) => {
|
|
|
78
76
|
>
|
|
79
77
|
Reset
|
|
80
78
|
</Button>
|
|
81
|
-
|
|
82
|
-
<Popover.Slot />
|
|
83
|
-
</SlotFillProvider>
|
|
79
|
+
</>
|
|
84
80
|
);
|
|
85
81
|
};
|
|
86
82
|
export const Default = Template.bind( {} );
|
|
@@ -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
|
/**
|
|
@@ -13,11 +13,9 @@ import { useState } from '@wordpress/element';
|
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
15
|
import { BorderControl } from '..';
|
|
16
|
-
import { Provider as SlotFillProvider } from '../../slot-fill';
|
|
17
|
-
import Popover from '../../popover';
|
|
18
16
|
import type { Border } from '../types';
|
|
19
17
|
|
|
20
|
-
const meta:
|
|
18
|
+
const meta: Meta< typeof BorderControl > = {
|
|
21
19
|
title: 'Components (Experimental)/BorderControl',
|
|
22
20
|
component: BorderControl,
|
|
23
21
|
argTypes: {
|
|
@@ -70,7 +68,7 @@ const multipleOriginColors = [
|
|
|
70
68
|
},
|
|
71
69
|
];
|
|
72
70
|
|
|
73
|
-
const Template:
|
|
71
|
+
const Template: StoryFn< typeof BorderControl > = ( {
|
|
74
72
|
onChange,
|
|
75
73
|
...props
|
|
76
74
|
} ) => {
|
|
@@ -83,15 +81,11 @@ const Template: ComponentStory< typeof BorderControl > = ( {
|
|
|
83
81
|
};
|
|
84
82
|
|
|
85
83
|
return (
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/>
|
|
92
|
-
{ /* @ts-expect-error Ignore until Popover.Slot is converted to TS */ }
|
|
93
|
-
<Popover.Slot />
|
|
94
|
-
</SlotFillProvider>
|
|
84
|
+
<BorderControl
|
|
85
|
+
onChange={ onChangeMerged }
|
|
86
|
+
value={ border }
|
|
87
|
+
{ ...props }
|
|
88
|
+
/>
|
|
95
89
|
);
|
|
96
90
|
};
|
|
97
91
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { StoryFn, Meta } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -20,7 +20,7 @@ const meta: Meta< typeof Button > = {
|
|
|
20
20
|
};
|
|
21
21
|
export default meta;
|
|
22
22
|
|
|
23
|
-
export const VariantStates:
|
|
23
|
+
export const VariantStates: StoryFn< typeof Button > = (
|
|
24
24
|
props: ButtonAsButtonProps
|
|
25
25
|
) => {
|
|
26
26
|
const variants: ( typeof props.variant )[] = [
|
|
@@ -57,7 +57,7 @@ Icon.args = {
|
|
|
57
57
|
icon: wordpress,
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
export const Dashicons:
|
|
60
|
+
export const Dashicons: StoryFn< typeof Button > = ( props ) => {
|
|
61
61
|
return (
|
|
62
62
|
<div style={ { display: 'flex', gap: 8 } }>
|
|
63
63
|
<Button { ...props } />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { Meta,
|
|
4
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
5
5
|
import type { ReactNode } from 'react';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -44,52 +44,52 @@ const meta: Meta< typeof Button > = {
|
|
|
44
44
|
};
|
|
45
45
|
export default meta;
|
|
46
46
|
|
|
47
|
-
const Template:
|
|
47
|
+
const Template: StoryFn< typeof Button > = ( props ) => {
|
|
48
48
|
return <Button { ...props }></Button>;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
export const Default
|
|
51
|
+
export const Default = Template.bind( {} );
|
|
52
52
|
Default.args = {
|
|
53
53
|
children: 'Code is poetry',
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export const Primary
|
|
56
|
+
export const Primary = Template.bind( {} );
|
|
57
57
|
Primary.args = {
|
|
58
58
|
...Default.args,
|
|
59
59
|
variant: 'primary',
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
export const Secondary
|
|
62
|
+
export const Secondary = Template.bind( {} );
|
|
63
63
|
Secondary.args = {
|
|
64
64
|
...Default.args,
|
|
65
65
|
variant: 'secondary',
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const Tertiary
|
|
68
|
+
export const Tertiary = Template.bind( {} );
|
|
69
69
|
Tertiary.args = {
|
|
70
70
|
...Default.args,
|
|
71
71
|
variant: 'tertiary',
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
export const Link
|
|
74
|
+
export const Link = Template.bind( {} );
|
|
75
75
|
Link.args = {
|
|
76
76
|
...Default.args,
|
|
77
77
|
variant: 'link',
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
export const IsDestructive
|
|
80
|
+
export const IsDestructive = Template.bind( {} );
|
|
81
81
|
IsDestructive.args = {
|
|
82
82
|
...Default.args,
|
|
83
83
|
isDestructive: true,
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
export const Icon
|
|
86
|
+
export const Icon = Template.bind( {} );
|
|
87
87
|
Icon.args = {
|
|
88
88
|
label: 'Code is poetry',
|
|
89
89
|
icon: 'wordpress',
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
export const GroupedIcons
|
|
92
|
+
export const GroupedIcons = () => {
|
|
93
93
|
const GroupContainer = ( { children }: { children: ReactNode } ) => (
|
|
94
94
|
<div style={ { display: 'inline-flex' } }>{ children }</div>
|
|
95
95
|
);
|
|
@@ -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
|
|
@@ -9,7 +9,7 @@ import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
|
9
9
|
import ButtonGroup from '..';
|
|
10
10
|
import Button from '../../button';
|
|
11
11
|
|
|
12
|
-
const meta:
|
|
12
|
+
const meta: Meta< typeof ButtonGroup > = {
|
|
13
13
|
title: 'Components/ButtonGroup',
|
|
14
14
|
component: ButtonGroup,
|
|
15
15
|
argTypes: {
|
|
@@ -22,7 +22,7 @@ const meta: ComponentMeta< typeof ButtonGroup > = {
|
|
|
22
22
|
};
|
|
23
23
|
export default meta;
|
|
24
24
|
|
|
25
|
-
const Template:
|
|
25
|
+
const Template: StoryFn< typeof ButtonGroup > = ( args ) => {
|
|
26
26
|
const style = { margin: '0 4px' };
|
|
27
27
|
return (
|
|
28
28
|
<ButtonGroup { ...args }>
|
|
@@ -36,6 +36,4 @@ const Template: ComponentStory< typeof ButtonGroup > = ( args ) => {
|
|
|
36
36
|
);
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
export const Default:
|
|
40
|
-
{}
|
|
41
|
-
);
|
|
39
|
+
export const Default: StoryFn< typeof ButtonGroup > = Template.bind( {} );
|
|
@@ -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
|
|
@@ -18,8 +18,10 @@ import { Text } from '../../text';
|
|
|
18
18
|
import { Heading } from '../../heading';
|
|
19
19
|
import Button from '../../button';
|
|
20
20
|
|
|
21
|
-
const meta:
|
|
21
|
+
const meta: Meta< typeof Card > = {
|
|
22
22
|
component: Card,
|
|
23
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
24
|
+
subcomponents: { CardHeader, CardBody, CardDivider, CardMedia, CardFooter },
|
|
23
25
|
title: 'Components/Card',
|
|
24
26
|
argTypes: {
|
|
25
27
|
as: {
|
|
@@ -39,9 +41,7 @@ const meta: ComponentMeta< typeof Card > = {
|
|
|
39
41
|
|
|
40
42
|
export default meta;
|
|
41
43
|
|
|
42
|
-
const Template:
|
|
43
|
-
<Card { ...args } />
|
|
44
|
-
);
|
|
44
|
+
const Template: StoryFn< typeof Card > = ( args ) => <Card { ...args } />;
|
|
45
45
|
|
|
46
46
|
export const Default = Template.bind( {} );
|
|
47
47
|
Default.args = {
|
|
@@ -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
|
|
@@ -14,7 +14,7 @@ import { useState } from '@wordpress/element';
|
|
|
14
14
|
import CheckboxControl from '..';
|
|
15
15
|
import { VStack } from '../../v-stack';
|
|
16
16
|
|
|
17
|
-
const meta:
|
|
17
|
+
const meta: Meta< typeof CheckboxControl > = {
|
|
18
18
|
component: CheckboxControl,
|
|
19
19
|
title: 'Components/CheckboxControl',
|
|
20
20
|
argTypes: {
|
|
@@ -36,7 +36,7 @@ const meta: ComponentMeta< typeof CheckboxControl > = {
|
|
|
36
36
|
};
|
|
37
37
|
export default meta;
|
|
38
38
|
|
|
39
|
-
const DefaultTemplate:
|
|
39
|
+
const DefaultTemplate: StoryFn< typeof CheckboxControl > = ( {
|
|
40
40
|
onChange,
|
|
41
41
|
...args
|
|
42
42
|
} ) => {
|
|
@@ -54,14 +54,15 @@ const DefaultTemplate: ComponentStory< typeof CheckboxControl > = ( {
|
|
|
54
54
|
);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
export const Default:
|
|
58
|
-
|
|
57
|
+
export const Default: StoryFn< typeof CheckboxControl > = DefaultTemplate.bind(
|
|
58
|
+
{}
|
|
59
|
+
);
|
|
59
60
|
Default.args = {
|
|
60
61
|
label: 'Is author',
|
|
61
62
|
help: 'Is the user an author or not?',
|
|
62
63
|
};
|
|
63
64
|
|
|
64
|
-
export const Indeterminate:
|
|
65
|
+
export const Indeterminate: StoryFn< typeof CheckboxControl > = ( {
|
|
65
66
|
onChange,
|
|
66
67
|
...args
|
|
67
68
|
} ) => {
|
|
@@ -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
|
* WordPress dependencies
|
|
7
7
|
*/
|
|
@@ -9,16 +9,28 @@ import { useState, createContext, useContext } from '@wordpress/element';
|
|
|
9
9
|
/**
|
|
10
10
|
* Internal dependencies
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
ButtonAction,
|
|
14
|
+
default as CircularOptionPicker,
|
|
15
|
+
DropdownLinkAction,
|
|
16
|
+
} from '..';
|
|
13
17
|
|
|
14
18
|
const CircularOptionPickerStoryContext = createContext< {
|
|
15
19
|
currentColor?: string;
|
|
16
20
|
setCurrentColor?: ( v: string | undefined ) => void;
|
|
17
21
|
} >( {} );
|
|
18
22
|
|
|
19
|
-
const meta:
|
|
23
|
+
const meta: Meta< typeof CircularOptionPicker > = {
|
|
20
24
|
title: 'Components/CircularOptionPicker',
|
|
21
25
|
component: CircularOptionPicker,
|
|
26
|
+
subcomponents: {
|
|
27
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
28
|
+
'CircularOptionPicker.Option': Option,
|
|
29
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
30
|
+
'CircularOptionPicker.ButtonAction': ButtonAction,
|
|
31
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
32
|
+
'CircularOptionPicker.DropdownLinkAction': DropdownLinkAction,
|
|
33
|
+
},
|
|
22
34
|
argTypes: {
|
|
23
35
|
actions: { control: { type: null } },
|
|
24
36
|
options: { control: { type: null } },
|
|
@@ -95,7 +107,7 @@ const DefaultActions = () => {
|
|
|
95
107
|
);
|
|
96
108
|
};
|
|
97
109
|
|
|
98
|
-
const Template:
|
|
110
|
+
const Template: StoryFn< typeof CircularOptionPicker > = ( props ) => (
|
|
99
111
|
<CircularOptionPicker { ...props } />
|
|
100
112
|
);
|
|
101
113
|
|