@wordpress/components 32.2.1-next.v.0 → 32.2.1-next.v.202602091733.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/AGENTS.md +17 -0
- package/CHANGELOG.md +6 -1
- package/build/base-control/index.cjs.map +1 -1
- package/build/base-control/styles/base-control-styles.cjs +1 -2
- package/build/base-control/styles/base-control-styles.cjs.map +2 -2
- package/build/border-box-control/styles.cjs +2 -4
- package/build/border-box-control/styles.cjs.map +2 -2
- package/build/border-control/styles.cjs +1 -2
- package/build/border-control/styles.cjs.map +2 -2
- package/build/box-control/styles/box-control-icon-styles.cjs +8 -16
- package/build/box-control/styles/box-control-icon-styles.cjs.map +2 -2
- package/build/box-control/styles/box-control-styles.cjs +5 -10
- package/build/box-control/styles/box-control-styles.cjs.map +2 -2
- package/build/card/get-padding-by-size.cjs +1 -2
- package/build/card/get-padding-by-size.cjs.map +2 -2
- package/build/card/styles.cjs +8 -16
- package/build/card/styles.cjs.map +2 -2
- package/build/confirm-dialog/styles.cjs +1 -2
- package/build/confirm-dialog/styles.cjs.map +2 -2
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs +2 -4
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.cjs.map +2 -2
- package/build/custom-select-control-v2/styles.cjs +1 -2
- package/build/custom-select-control-v2/styles.cjs.map +2 -2
- package/build/date-time/date/styles.cjs +2 -4
- package/build/date-time/date/styles.cjs.map +2 -2
- package/build/date-time/date-time/styles.cjs +1 -2
- package/build/date-time/date-time/styles.cjs.map +2 -2
- package/build/date-time/time/styles.cjs +3 -6
- package/build/date-time/time/styles.cjs.map +2 -2
- package/build/date-time/utils.cjs +1 -1
- package/build/date-time/utils.cjs.map +2 -2
- package/build/disabled/context.cjs +30 -0
- package/build/disabled/context.cjs.map +7 -0
- package/build/disabled/index.cjs +13 -5
- package/build/disabled/index.cjs.map +3 -3
- package/build/disabled/styles/disabled-styles.cjs +1 -2
- package/build/disabled/styles/disabled-styles.cjs.map +2 -2
- package/build/divider/styles.cjs +1 -2
- package/build/divider/styles.cjs.map +2 -2
- package/build/elevation/styles.cjs +1 -2
- package/build/elevation/styles.cjs.map +2 -2
- package/build/flex/styles.cjs +5 -10
- package/build/flex/styles.cjs.map +2 -2
- package/build/focal-point-picker/styles/focal-point-picker-style.cjs +6 -12
- package/build/focal-point-picker/styles/focal-point-picker-style.cjs.map +2 -2
- package/build/font-size-picker/styles.cjs +2 -4
- package/build/font-size-picker/styles.cjs.map +2 -2
- package/build/input-control/styles/input-control-styles.cjs +4 -8
- package/build/input-control/styles/input-control-styles.cjs.map +2 -2
- package/build/item-group/styles.cjs +2 -4
- package/build/item-group/styles.cjs.map +2 -2
- package/build/menu/styles.cjs +1 -2
- package/build/menu/styles.cjs.map +2 -2
- package/build/modal/context.cjs +33 -0
- package/build/modal/context.cjs.map +7 -0
- package/build/modal/index.cjs +3 -4
- package/build/modal/index.cjs.map +2 -2
- package/build/navigation/styles/navigation-styles.cjs +3 -6
- package/build/navigation/styles/navigation-styles.cjs.map +2 -2
- package/build/navigator/styles.cjs +2 -4
- package/build/navigator/styles.cjs.map +2 -2
- package/build/number-control/styles/number-control-styles.cjs +1 -2
- package/build/number-control/styles/number-control-styles.cjs.map +2 -2
- package/build/palette-edit/styles.cjs +1 -2
- package/build/palette-edit/styles.cjs.map +2 -2
- package/build/popover/context.cjs +33 -0
- package/build/popover/context.cjs.map +7 -0
- package/build/popover/index.cjs +3 -4
- package/build/popover/index.cjs.map +3 -3
- package/build/progress-bar/styles.cjs +2 -4
- package/build/progress-bar/styles.cjs.map +2 -2
- package/build/range-control/styles/range-control-styles.cjs +3 -6
- package/build/range-control/styles/range-control-styles.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +2 -4
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +2 -2
- package/build/scrollable/styles.cjs +6 -12
- package/build/scrollable/styles.cjs.map +2 -2
- package/build/search-control/styles.cjs +2 -4
- package/build/search-control/styles.cjs.map +2 -2
- package/build/select-control/styles/select-control-styles.cjs +2 -4
- package/build/select-control/styles/select-control-styles.cjs.map +2 -2
- package/build/slot-fill/index.cjs +3 -2
- package/build/slot-fill/index.cjs.map +2 -2
- package/build/spinner/styles.cjs +1 -2
- package/build/spinner/styles.cjs.map +2 -2
- package/build/tabs/styles.cjs +1 -2
- package/build/tabs/styles.cjs.map +2 -2
- package/build/text/hook.cjs +1 -2
- package/build/text/hook.cjs.map +2 -2
- package/build/text/styles.cjs +2 -4
- package/build/text/styles.cjs.map +2 -2
- package/build/theme/styles.cjs +1 -2
- package/build/theme/styles.cjs.map +2 -2
- package/build/toggle-control/index.cjs +2 -0
- package/build/toggle-control/index.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control/styles.cjs +4 -8
- package/build/toggle-group-control/toggle-group-control/styles.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs +2 -4
- package/build/toggle-group-control/toggle-group-control-option-base/styles.cjs.map +2 -2
- package/build/tools-panel/styles.cjs +4 -8
- package/build/tools-panel/styles.cjs.map +2 -2
- package/build/tooltip/context.cjs +35 -0
- package/build/tooltip/context.cjs.map +7 -0
- package/build/tooltip/index.cjs +3 -7
- package/build/tooltip/index.cjs.map +2 -2
- package/build/truncate/styles.cjs +1 -2
- package/build/truncate/styles.cjs.map +2 -2
- package/build/utils/box-sizing.cjs +1 -2
- package/build/utils/box-sizing.cjs.map +2 -2
- package/build/utils/hooks/use-cx.cjs.map +2 -2
- package/build/z-stack/styles.cjs +1 -2
- package/build/z-stack/styles.cjs.map +2 -2
- package/build-module/base-control/index.mjs.map +1 -1
- package/build-module/base-control/styles/base-control-styles.mjs +1 -2
- package/build-module/base-control/styles/base-control-styles.mjs.map +2 -2
- package/build-module/border-box-control/styles.mjs +2 -4
- package/build-module/border-box-control/styles.mjs.map +2 -2
- package/build-module/border-control/styles.mjs +1 -2
- package/build-module/border-control/styles.mjs.map +2 -2
- package/build-module/box-control/styles/box-control-icon-styles.mjs +8 -16
- package/build-module/box-control/styles/box-control-icon-styles.mjs.map +2 -2
- package/build-module/box-control/styles/box-control-styles.mjs +5 -10
- package/build-module/box-control/styles/box-control-styles.mjs.map +2 -2
- package/build-module/card/get-padding-by-size.mjs +1 -2
- package/build-module/card/get-padding-by-size.mjs.map +2 -2
- package/build-module/card/styles.mjs +8 -16
- package/build-module/card/styles.mjs.map +2 -2
- package/build-module/confirm-dialog/styles.mjs +1 -2
- package/build-module/confirm-dialog/styles.mjs.map +2 -2
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs +2 -4
- package/build-module/custom-gradient-picker/styles/custom-gradient-picker-styles.mjs.map +2 -2
- package/build-module/custom-select-control-v2/styles.mjs +1 -2
- package/build-module/custom-select-control-v2/styles.mjs.map +2 -2
- package/build-module/date-time/date/styles.mjs +2 -4
- package/build-module/date-time/date/styles.mjs.map +2 -2
- package/build-module/date-time/date-time/styles.mjs +1 -2
- package/build-module/date-time/date-time/styles.mjs.map +2 -2
- package/build-module/date-time/time/styles.mjs +3 -6
- package/build-module/date-time/time/styles.mjs.map +2 -2
- package/build-module/date-time/utils.mjs +1 -1
- package/build-module/date-time/utils.mjs.map +2 -2
- package/build-module/disabled/context.mjs +9 -0
- package/build-module/disabled/context.mjs.map +7 -0
- package/build-module/disabled/index.mjs +1 -3
- package/build-module/disabled/index.mjs.map +2 -2
- package/build-module/disabled/styles/disabled-styles.mjs +1 -2
- package/build-module/disabled/styles/disabled-styles.mjs.map +2 -2
- package/build-module/divider/styles.mjs +1 -2
- package/build-module/divider/styles.mjs.map +2 -2
- package/build-module/elevation/styles.mjs +1 -2
- package/build-module/elevation/styles.mjs.map +2 -2
- package/build-module/flex/styles.mjs +5 -10
- package/build-module/flex/styles.mjs.map +2 -2
- package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs +6 -12
- package/build-module/focal-point-picker/styles/focal-point-picker-style.mjs.map +2 -2
- package/build-module/font-size-picker/styles.mjs +2 -4
- package/build-module/font-size-picker/styles.mjs.map +2 -2
- package/build-module/input-control/styles/input-control-styles.mjs +4 -8
- package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
- package/build-module/item-group/styles.mjs +2 -4
- package/build-module/item-group/styles.mjs.map +2 -2
- package/build-module/menu/styles.mjs +1 -2
- package/build-module/menu/styles.mjs.map +2 -2
- package/build-module/modal/context.mjs +8 -0
- package/build-module/modal/context.mjs.map +7 -0
- package/build-module/modal/index.mjs +2 -3
- package/build-module/modal/index.mjs.map +2 -2
- package/build-module/navigation/styles/navigation-styles.mjs +3 -6
- package/build-module/navigation/styles/navigation-styles.mjs.map +2 -2
- package/build-module/navigator/styles.mjs +2 -4
- package/build-module/navigator/styles.mjs.map +2 -2
- package/build-module/number-control/styles/number-control-styles.mjs +1 -2
- package/build-module/number-control/styles/number-control-styles.mjs.map +2 -2
- package/build-module/palette-edit/styles.mjs +1 -2
- package/build-module/palette-edit/styles.mjs.map +2 -2
- package/build-module/popover/context.mjs +8 -0
- package/build-module/popover/context.mjs.map +7 -0
- package/build-module/popover/index.mjs +2 -3
- package/build-module/popover/index.mjs.map +2 -2
- package/build-module/progress-bar/styles.mjs +2 -4
- package/build-module/progress-bar/styles.mjs.map +2 -2
- package/build-module/range-control/styles/range-control-styles.mjs +3 -6
- package/build-module/range-control/styles/range-control-styles.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +2 -4
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +2 -2
- package/build-module/scrollable/styles.mjs +6 -12
- package/build-module/scrollable/styles.mjs.map +2 -2
- package/build-module/search-control/styles.mjs +2 -4
- package/build-module/search-control/styles.mjs.map +2 -2
- package/build-module/select-control/styles/select-control-styles.mjs +2 -4
- package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
- package/build-module/slot-fill/index.mjs +3 -2
- package/build-module/slot-fill/index.mjs.map +2 -2
- package/build-module/spinner/styles.mjs +1 -2
- package/build-module/spinner/styles.mjs.map +2 -2
- package/build-module/tabs/styles.mjs +1 -2
- package/build-module/tabs/styles.mjs.map +2 -2
- package/build-module/text/hook.mjs +1 -2
- package/build-module/text/hook.mjs.map +2 -2
- package/build-module/text/styles.mjs +2 -4
- package/build-module/text/styles.mjs.map +2 -2
- package/build-module/theme/styles.mjs +1 -2
- package/build-module/theme/styles.mjs.map +2 -2
- package/build-module/toggle-control/index.mjs +2 -0
- package/build-module/toggle-control/index.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control/styles.mjs +4 -8
- package/build-module/toggle-group-control/toggle-group-control/styles.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs +2 -4
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.mjs.map +2 -2
- package/build-module/tools-panel/styles.mjs +4 -8
- package/build-module/tools-panel/styles.mjs.map +2 -2
- package/build-module/tooltip/context.mjs +10 -0
- package/build-module/tooltip/context.mjs.map +7 -0
- package/build-module/tooltip/index.mjs +2 -6
- package/build-module/tooltip/index.mjs.map +2 -2
- package/build-module/truncate/styles.mjs +1 -2
- package/build-module/truncate/styles.mjs.map +2 -2
- package/build-module/utils/box-sizing.mjs +1 -2
- package/build-module/utils/box-sizing.mjs.map +2 -2
- package/build-module/utils/hooks/use-cx.mjs.map +2 -2
- package/build-module/z-stack/styles.mjs +1 -2
- package/build-module/z-stack/styles.mjs.map +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.map +1 -1
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/badge/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/index.d.ts +1 -1
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts.map +1 -1
- package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/stories/index.story.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/date-time/stories/date-time.story.d.ts.map +1 -1
- package/build-types/date-time/stories/date.story.d.ts.map +1 -1
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/disabled/context.d.ts +3 -0
- package/build-types/disabled/context.d.ts.map +1 -0
- package/build-types/disabled/index.d.ts.map +1 -1
- package/build-types/disabled/stories/index.story.d.ts.map +1 -1
- package/build-types/divider/stories/index.story.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
- package/build-types/elevation/stories/index.story.d.ts.map +1 -1
- package/build-types/external-link/stories/index.story.d.ts.map +1 -1
- package/build-types/flex/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +1 -1
- 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.map +1 -1
- package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/stories/index.story.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/item-group/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
- package/build-types/modal/context.d.ts +4 -0
- package/build-types/modal/context.d.ts.map +1 -0
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- 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.map +1 -1
- package/build-types/navigator/stories/index.story.d.ts.map +1 -1
- package/build-types/navigator/styles.d.ts +24 -4
- package/build-types/navigator/styles.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/context.d.ts +2 -0
- package/build-types/popover/context.d.ts.map +1 -0
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/stories/index.story.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +1 -7
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/spacer/stories/index.story.d.ts.map +1 -1
- package/build-types/spinner/stories/index.story.d.ts.map +1 -1
- package/build-types/surface/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts.map +1 -1
- package/build-types/text-control/stories/index.story.d.ts.map +1 -1
- package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
- package/build-types/theme/stories/index.story.d.ts.map +1 -1
- package/build-types/tip/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-group-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tooltip/context.d.ts +3 -0
- package/build-types/tooltip/context.d.ts.map +1 -0
- package/build-types/tooltip/index.d.ts +0 -3
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/utils/hooks/use-cx.d.ts +1 -1
- package/build-types/utils/hooks/use-cx.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/view/stories/index.story.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
- package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/alignment-matrix-control/stories/index.story.tsx +4 -0
- package/src/angle-picker-control/stories/index.story.tsx +4 -0
- package/src/animate/stories/index.story.tsx +5 -0
- package/src/badge/stories/index.story.tsx +7 -0
- package/src/base-control/README.md +1 -1
- package/src/base-control/index.tsx +1 -1
- package/src/base-control/stories/index.story.tsx +5 -0
- package/src/border-box-control/stories/index.story.tsx +4 -0
- package/src/border-control/stories/index.story.tsx +4 -0
- package/src/box-control/stories/index.story.tsx +5 -0
- package/src/button/stories/index.story.tsx +5 -0
- package/src/card/stories/index.story.tsx +5 -0
- package/src/card/test/__snapshots__/index.tsx.snap +35 -35
- package/src/checkbox-control/stories/index.story.tsx +5 -0
- package/src/circular-option-picker/stories/index.story.tsx +5 -0
- package/src/color-indicator/stories/index.story.tsx +4 -0
- package/src/color-palette/stories/index.story.tsx +4 -0
- package/src/color-picker/stories/index.story.tsx +4 -0
- package/src/combobox-control/stories/index.story.tsx +5 -0
- package/src/composite/stories/index.story.tsx +4 -0
- package/src/confirm-dialog/stories/index.story.tsx +4 -0
- package/src/context/test/__snapshots__/context-system-provider.js.snap +3 -3
- package/src/custom-gradient-picker/stories/index.story.tsx +5 -0
- package/src/custom-select-control/stories/index.story.tsx +5 -0
- package/src/custom-select-control-v2/stories/index.story.tsx +5 -0
- package/src/date-time/stories/date-time.story.tsx +5 -0
- package/src/date-time/stories/date.story.tsx +5 -0
- package/src/date-time/stories/time.story.tsx +5 -0
- package/src/date-time/time/test/index.tsx +42 -0
- package/src/date-time/utils.ts +1 -1
- package/src/disabled/context.ts +6 -0
- package/src/disabled/index.tsx +1 -11
- package/src/disabled/stories/index.story.tsx +4 -0
- package/src/divider/stories/index.story.tsx +5 -0
- package/src/draggable/stories/index.story.tsx +5 -0
- package/src/drop-zone/stories/index.story.tsx +4 -0
- package/src/dropdown/stories/index.story.tsx +4 -0
- package/src/dropdown-menu/stories/index.story.tsx +5 -0
- package/src/duotone-picker/stories/duotone-picker.story.tsx +4 -0
- package/src/duotone-picker/stories/duotone-swatch.story.tsx +4 -0
- package/src/elevation/stories/index.story.tsx +5 -0
- package/src/external-link/stories/index.story.tsx +4 -0
- package/src/flex/stories/index.story.tsx +5 -0
- package/src/flex/test/__snapshots__/index.tsx.snap +4 -4
- package/src/focal-point-picker/stories/index.story.tsx +4 -0
- package/src/font-size-picker/stories/index.story.tsx +4 -0
- package/src/form-file-upload/stories/index.story.tsx +4 -0
- package/src/form-toggle/stories/index.story.tsx +5 -0
- package/src/form-token-field/stories/index.story.tsx +5 -0
- package/src/gradient-picker/stories/index.story.tsx +4 -0
- package/src/grid/stories/index.story.tsx +5 -0
- package/src/guide/stories/index.story.tsx +6 -0
- package/src/h-stack/stories/index.story.tsx +5 -0
- package/src/heading/stories/index.story.tsx +5 -0
- package/src/icon/stories/index.story.tsx +5 -0
- package/src/input-control/stories/index.story.tsx +5 -0
- package/src/item-group/stories/index.story.tsx +4 -0
- package/src/item-group/test/__snapshots__/index.js.snap +16 -16
- package/src/keyboard-shortcuts/stories/index.story.tsx +4 -0
- package/src/menu/stories/index.story.tsx +5 -0
- package/src/menu-group/stories/index.story.tsx +5 -0
- package/src/menu-item/stories/index.story.tsx +5 -0
- package/src/menu-items-choice/stories/index.story.tsx +5 -0
- package/src/modal/context.ts +9 -0
- package/src/modal/index.tsx +1 -19
- package/src/modal/stories/index.story.tsx +5 -0
- package/src/navigable-container/stories/navigable-menu.story.tsx +4 -0
- package/src/navigable-container/stories/tabbable-container.story.tsx +5 -0
- package/src/navigator/stories/index.story.tsx +4 -0
- package/src/notice/stories/index.story.tsx +5 -0
- package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
- package/src/number-control/stories/index.story.tsx +5 -0
- package/src/palette-edit/stories/index.story.tsx +4 -0
- package/src/panel/stories/index.story.tsx +4 -0
- package/src/placeholder/stories/index.story.tsx +4 -0
- package/src/popover/context.ts +4 -0
- package/src/popover/index.tsx +1 -14
- package/src/popover/stories/index.story.tsx +4 -0
- package/src/progress-bar/stories/index.story.tsx +4 -0
- package/src/query-controls/stories/index.story.tsx +4 -0
- package/src/radio-control/stories/index.story.tsx +5 -0
- package/src/range-control/stories/index.story.tsx +5 -0
- package/src/resizable-box/stories/index.story.tsx +4 -0
- package/src/responsive-wrapper/stories/index.story.tsx +5 -0
- package/src/sandbox/stories/index.story.tsx +4 -0
- package/src/scroll-lock/stories/index.story.tsx +4 -0
- package/src/scrollable/stories/index.story.tsx +5 -0
- package/src/search-control/stories/index.story.tsx +5 -0
- package/src/select-control/stories/index.story.tsx +5 -0
- package/src/shortcut/stories/index.story.tsx +4 -0
- package/src/slot-fill/index.tsx +12 -3
- package/src/slot-fill/stories/index.story.tsx +4 -0
- package/src/slot-fill/test/__snapshots__/slot.js.snap +4 -4
- package/src/slot-fill/test/index.js +38 -0
- package/src/snackbar/stories/index.story.tsx +4 -0
- package/src/spacer/stories/index.story.tsx +5 -0
- package/src/spinner/stories/index.story.tsx +4 -0
- package/src/surface/stories/index.story.tsx +5 -0
- package/src/surface/test/__snapshots__/index.tsx.snap +10 -10
- package/src/tab-panel/stories/index.story.tsx +5 -0
- package/src/tabs/stories/index.story.tsx +5 -0
- package/src/text/stories/index.story.tsx +5 -0
- package/src/text-control/stories/index.story.tsx +5 -0
- package/src/text-highlight/stories/index.story.tsx +4 -0
- package/src/textarea-control/stories/index.story.tsx +5 -0
- package/src/theme/stories/index.story.tsx +5 -0
- package/src/tip/stories/index.story.tsx +4 -0
- package/src/toggle-control/index.tsx +2 -0
- package/src/toggle-control/stories/index.story.tsx +5 -0
- package/src/toggle-group-control/stories/index.story.tsx +5 -0
- package/src/toolbar/stories/index.story.tsx +4 -0
- package/src/tools-panel/stories/index.story.tsx +4 -0
- package/src/tooltip/context.ts +8 -0
- package/src/tooltip/index.tsx +2 -22
- package/src/tooltip/stories/index.story.tsx +4 -0
- package/src/tree-grid/stories/index.story.tsx +4 -0
- package/src/tree-select/stories/index.story.tsx +4 -0
- package/src/truncate/stories/index.story.tsx +4 -0
- package/src/unit-control/stories/index.story.tsx +4 -0
- package/src/utils/hooks/use-cx.ts +1 -2
- package/src/v-stack/stories/index.story.tsx +5 -0
- package/src/view/stories/index.story.tsx +5 -0
- package/src/view/test/__snapshots__/index.js.snap +5 -5
- package/src/visually-hidden/stories/index.story.tsx +4 -0
- package/src/visually-hidden/test/__snapshots__/index.tsx.snap +1 -1
- package/src/z-stack/stories/index.story.tsx +5 -0
|
@@ -26,6 +26,11 @@ const meta: Meta< typeof FormToggle > = {
|
|
|
26
26
|
expanded: true,
|
|
27
27
|
},
|
|
28
28
|
docs: { canvas: { sourceState: 'shown' } },
|
|
29
|
+
componentStatus: {
|
|
30
|
+
status: 'stable',
|
|
31
|
+
whereUsed: 'global',
|
|
32
|
+
notes: 'For standard toggles with labels, use `ToggleControl` instead.',
|
|
33
|
+
},
|
|
29
34
|
},
|
|
30
35
|
};
|
|
31
36
|
export default meta;
|
|
@@ -30,6 +30,11 @@ const meta: Meta< typeof FormTokenField > = {
|
|
|
30
30
|
expanded: true,
|
|
31
31
|
},
|
|
32
32
|
docs: { canvas: { sourceState: 'shown' } },
|
|
33
|
+
componentStatus: {
|
|
34
|
+
status: 'stable',
|
|
35
|
+
whereUsed: 'global',
|
|
36
|
+
notes: 'Will be superseded by `SearchableChipSelect` in `@wordpress/ui`, but continue using for now.',
|
|
37
|
+
},
|
|
33
38
|
},
|
|
34
39
|
};
|
|
35
40
|
export default meta;
|
|
@@ -36,6 +36,11 @@ const meta: Meta< typeof Grid > = {
|
|
|
36
36
|
expanded: true,
|
|
37
37
|
},
|
|
38
38
|
docs: { canvas: { sourceState: 'shown' } },
|
|
39
|
+
componentStatus: {
|
|
40
|
+
status: 'not-recommended',
|
|
41
|
+
whereUsed: 'global',
|
|
42
|
+
notes: 'Planned for deprecation. Write your own CSS instead.',
|
|
43
|
+
},
|
|
39
44
|
},
|
|
40
45
|
};
|
|
41
46
|
export default meta;
|
|
@@ -24,6 +24,12 @@ const meta: Meta< typeof Guide > = {
|
|
|
24
24
|
previousButtonText: { control: 'text' },
|
|
25
25
|
onFinish: { action: 'onFinish' },
|
|
26
26
|
},
|
|
27
|
+
parameters: {
|
|
28
|
+
componentStatus: {
|
|
29
|
+
status: 'stable',
|
|
30
|
+
whereUsed: 'editor',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
27
33
|
};
|
|
28
34
|
export default meta;
|
|
29
35
|
|
|
@@ -74,6 +74,11 @@ const meta: Meta< typeof HStack > = {
|
|
|
74
74
|
parameters: {
|
|
75
75
|
controls: { expanded: true },
|
|
76
76
|
docs: { canvas: { sourceState: 'shown' } },
|
|
77
|
+
componentStatus: {
|
|
78
|
+
status: 'stable',
|
|
79
|
+
whereUsed: 'global',
|
|
80
|
+
notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
|
|
81
|
+
},
|
|
77
82
|
},
|
|
78
83
|
};
|
|
79
84
|
export default meta;
|
|
@@ -29,6 +29,11 @@ const meta: Meta< typeof Heading > = {
|
|
|
29
29
|
parameters: {
|
|
30
30
|
controls: { expanded: true },
|
|
31
31
|
docs: { canvas: { sourceState: 'shown' } },
|
|
32
|
+
componentStatus: {
|
|
33
|
+
status: 'not-recommended',
|
|
34
|
+
whereUsed: 'global',
|
|
35
|
+
notes: 'Values are not aligned with the current design system. Use [typography tokens](?path=/docs/tokens-typography--page) from `@wordpress/base-styles` instead.',
|
|
36
|
+
},
|
|
32
37
|
},
|
|
33
38
|
};
|
|
34
39
|
export default meta;
|
|
@@ -21,6 +21,11 @@ const meta: Meta< typeof Icon > = {
|
|
|
21
21
|
parameters: {
|
|
22
22
|
controls: { expanded: true },
|
|
23
23
|
docs: { canvas: { sourceState: 'shown' } },
|
|
24
|
+
componentStatus: {
|
|
25
|
+
status: 'stable',
|
|
26
|
+
whereUsed: 'global',
|
|
27
|
+
notes: 'Prefer this component over the `Icon` component from `@wordpress/icons`.',
|
|
28
|
+
},
|
|
24
29
|
},
|
|
25
30
|
};
|
|
26
31
|
export default meta;
|
|
@@ -40,6 +40,11 @@ const meta: Meta< typeof InputControl > = {
|
|
|
40
40
|
parameters: {
|
|
41
41
|
controls: { expanded: true },
|
|
42
42
|
docs: { canvas: { sourceState: 'shown' } },
|
|
43
|
+
componentStatus: {
|
|
44
|
+
status: 'stable',
|
|
45
|
+
whereUsed: 'global',
|
|
46
|
+
notes: 'Will be superseded by `InputControl` in `@wordpress/ui`, but continue using for now.',
|
|
47
|
+
},
|
|
43
48
|
},
|
|
44
49
|
};
|
|
45
50
|
export default meta;
|
|
@@ -11,8 +11,8 @@ Snapshot Diff:
|
|
|
11
11
|
role="listitem"
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
|
-
- class="components-item css-
|
|
15
|
-
+ class="components-item css-
|
|
14
|
+
- class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
|
|
15
|
+
+ class="components-item css-avymxl-PolymorphicDiv-large-item-spacedAround e19lxcc00"
|
|
16
16
|
data-wp-c16t="true"
|
|
17
17
|
data-wp-component="Item"
|
|
18
18
|
>
|
|
@@ -24,8 +24,8 @@ Snapshot Diff:
|
|
|
24
24
|
role="listitem"
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
- class="components-item css-
|
|
28
|
-
+ class="components-item css-
|
|
27
|
+
- class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
|
|
28
|
+
+ class="components-item css-avymxl-PolymorphicDiv-large-item-spacedAround e19lxcc00"
|
|
29
29
|
data-wp-c16t="true"
|
|
30
30
|
data-wp-component="Item"
|
|
31
31
|
>
|
|
@@ -44,8 +44,8 @@ Snapshot Diff:
|
|
|
44
44
|
role="listitem"
|
|
45
45
|
>
|
|
46
46
|
<div
|
|
47
|
-
- class="components-item css-
|
|
48
|
-
+ class="components-item css-
|
|
47
|
+
- class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
|
|
48
|
+
+ class="components-item css-y16wpf-PolymorphicDiv-large-item e19lxcc00"
|
|
49
49
|
data-wp-c16t="true"
|
|
50
50
|
data-wp-component="Item"
|
|
51
51
|
>
|
|
@@ -114,8 +114,8 @@ Snapshot Diff:
|
|
|
114
114
|
@@ -1,18 +1,18 @@
|
|
115
115
|
<div>
|
|
116
116
|
<div
|
|
117
|
-
- class="components-item-group css-
|
|
118
|
-
+ class="components-item-group css-
|
|
117
|
+
- class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
|
|
118
|
+
+ class="components-item-group css-12ds22-PolymorphicDiv-separated-rounded e19lxcc00"
|
|
119
119
|
data-wp-c16t="true"
|
|
120
120
|
data-wp-component="ItemGroup"
|
|
121
121
|
role="list"
|
|
@@ -125,8 +125,8 @@ Snapshot Diff:
|
|
|
125
125
|
role="listitem"
|
|
126
126
|
>
|
|
127
127
|
<div
|
|
128
|
-
- class="components-item css-
|
|
129
|
-
+ class="components-item css-
|
|
128
|
+
- class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
|
|
129
|
+
+ class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
|
|
130
130
|
data-wp-c16t="true"
|
|
131
131
|
data-wp-component="Item"
|
|
132
132
|
>
|
|
@@ -142,8 +142,8 @@ Snapshot Diff:
|
|
|
142
142
|
@@ -1,18 +1,18 @@
|
|
143
143
|
<div>
|
|
144
144
|
<div
|
|
145
|
-
- class="components-item-group css-
|
|
146
|
-
+ class="components-item-group css-
|
|
145
|
+
- class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
|
|
146
|
+
+ class="components-item-group css-z3k5b4-PolymorphicDiv-bordered-rounded e19lxcc00"
|
|
147
147
|
data-wp-c16t="true"
|
|
148
148
|
data-wp-component="ItemGroup"
|
|
149
149
|
role="list"
|
|
@@ -153,8 +153,8 @@ Snapshot Diff:
|
|
|
153
153
|
role="listitem"
|
|
154
154
|
>
|
|
155
155
|
<div
|
|
156
|
-
- class="components-item css-
|
|
157
|
-
+ class="components-item css-
|
|
156
|
+
- class="components-item css-14dwj71-PolymorphicDiv-medium-item-spacedAround e19lxcc00"
|
|
157
|
+
+ class="components-item css-5pzc6i-PolymorphicDiv-medium-item e19lxcc00"
|
|
158
158
|
data-wp-c16t="true"
|
|
159
159
|
data-wp-component="Item"
|
|
160
160
|
>
|
|
@@ -170,8 +170,8 @@ Snapshot Diff:
|
|
|
170
170
|
@@ -1,8 +1,8 @@
|
|
171
171
|
<div>
|
|
172
172
|
<div
|
|
173
|
-
- class="components-item-group css-
|
|
174
|
-
+ class="components-item-group css-
|
|
173
|
+
- class="components-item-group css-7sdlfv-PolymorphicDiv-rounded e19lxcc00"
|
|
174
|
+
+ class="components-item-group css-1ragr82-PolymorphicDiv e19lxcc00"
|
|
175
175
|
data-wp-c16t="true"
|
|
176
176
|
data-wp-component="ItemGroup"
|
|
177
177
|
role="list"
|
|
@@ -55,6 +55,11 @@ const meta: Meta< typeof Menu > = {
|
|
|
55
55
|
canvas: { sourceState: 'shown' },
|
|
56
56
|
source: { excludeDecorators: true },
|
|
57
57
|
},
|
|
58
|
+
componentStatus: {
|
|
59
|
+
status: 'stable',
|
|
60
|
+
whereUsed: 'global',
|
|
61
|
+
notes: 'When building for the Gutenberg repo, use this component instead of `DropdownMenu`. Otherwise, continue using `DropdownMenu` for now.',
|
|
62
|
+
},
|
|
58
63
|
},
|
|
59
64
|
};
|
|
60
65
|
export default meta;
|
|
@@ -25,6 +25,11 @@ const meta: Meta< typeof MenuGroup > = {
|
|
|
25
25
|
parameters: {
|
|
26
26
|
controls: { expanded: true },
|
|
27
27
|
docs: { canvas: { sourceState: 'shown' } },
|
|
28
|
+
componentStatus: {
|
|
29
|
+
status: 'stable',
|
|
30
|
+
whereUsed: 'global',
|
|
31
|
+
notes: 'Subcomponent of `DropdownMenu`.',
|
|
32
|
+
},
|
|
28
33
|
},
|
|
29
34
|
};
|
|
30
35
|
export default meta;
|
|
@@ -36,6 +36,11 @@ const meta: Meta< typeof MenuItem > = {
|
|
|
36
36
|
expanded: true,
|
|
37
37
|
},
|
|
38
38
|
docs: { canvas: { sourceState: 'shown' } },
|
|
39
|
+
componentStatus: {
|
|
40
|
+
status: 'stable',
|
|
41
|
+
whereUsed: 'global',
|
|
42
|
+
notes: 'Subcomponent of `DropdownMenu`.',
|
|
43
|
+
},
|
|
39
44
|
},
|
|
40
45
|
};
|
|
41
46
|
export default meta;
|
|
@@ -28,6 +28,11 @@ const meta: Meta< typeof MenuItemsChoice > = {
|
|
|
28
28
|
expanded: true,
|
|
29
29
|
},
|
|
30
30
|
docs: { canvas: { sourceState: 'shown' } },
|
|
31
|
+
componentStatus: {
|
|
32
|
+
status: 'stable',
|
|
33
|
+
whereUsed: 'global',
|
|
34
|
+
notes: 'Subcomponent of `DropdownMenu`.',
|
|
35
|
+
},
|
|
31
36
|
},
|
|
32
37
|
};
|
|
33
38
|
export default meta;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createContext } from '@wordpress/element';
|
|
2
|
+
import type { ModalProps } from './types';
|
|
3
|
+
|
|
4
|
+
// Used to track and dismiss the prior modal when another opens unless nested.
|
|
5
|
+
export type Dismissers = Set<
|
|
6
|
+
React.RefObject< ModalProps[ 'onRequestClose' ] | undefined >
|
|
7
|
+
>;
|
|
8
|
+
export const ModalContext = createContext< Dismissers >( new Set() );
|
|
9
|
+
ModalContext.displayName = 'ModalContext';
|
package/src/modal/index.tsx
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
import clsx from 'clsx';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* WordPress dependencies
|
|
8
|
-
*/
|
|
9
2
|
import {
|
|
10
3
|
createPortal,
|
|
11
4
|
useCallback,
|
|
@@ -14,7 +7,6 @@ import {
|
|
|
14
7
|
useState,
|
|
15
8
|
forwardRef,
|
|
16
9
|
useLayoutEffect,
|
|
17
|
-
createContext,
|
|
18
10
|
useContext,
|
|
19
11
|
} from '@wordpress/element';
|
|
20
12
|
import {
|
|
@@ -27,10 +19,6 @@ import {
|
|
|
27
19
|
import { __ } from '@wordpress/i18n';
|
|
28
20
|
import { close } from '@wordpress/icons';
|
|
29
21
|
import { getScrollContainer } from '@wordpress/dom';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Internal dependencies
|
|
33
|
-
*/
|
|
34
22
|
import * as ariaHelper from './aria-helper';
|
|
35
23
|
import Button from '../button';
|
|
36
24
|
import StyleProvider from '../style-provider';
|
|
@@ -38,13 +26,7 @@ import type { ModalProps } from './types';
|
|
|
38
26
|
import { withIgnoreIMEEvents } from '../utils/with-ignore-ime-events';
|
|
39
27
|
import { Spacer } from '../spacer';
|
|
40
28
|
import { useModalExitAnimation } from './use-modal-exit-animation';
|
|
41
|
-
|
|
42
|
-
// Used to track and dismiss the prior modal when another opens unless nested.
|
|
43
|
-
type Dismissers = Set<
|
|
44
|
-
React.RefObject< ModalProps[ 'onRequestClose' ] | undefined >
|
|
45
|
-
>;
|
|
46
|
-
const ModalContext = createContext< Dismissers >( new Set() );
|
|
47
|
-
ModalContext.displayName = 'ModalContext';
|
|
29
|
+
import { ModalContext, type Dismissers } from './context';
|
|
48
30
|
|
|
49
31
|
// Used to track body class names applied while modals are open.
|
|
50
32
|
const bodyOpenClasses = new Map< string, number >();
|
|
@@ -44,6 +44,11 @@ const meta: Meta< typeof Modal > = {
|
|
|
44
44
|
},
|
|
45
45
|
parameters: {
|
|
46
46
|
controls: { expanded: true },
|
|
47
|
+
componentStatus: {
|
|
48
|
+
status: 'stable',
|
|
49
|
+
whereUsed: 'global',
|
|
50
|
+
notes: 'Will be superseded by `Dialog` in `@wordpress/ui`, but continue using for now.',
|
|
51
|
+
},
|
|
47
52
|
},
|
|
48
53
|
};
|
|
49
54
|
export default meta;
|
|
@@ -25,6 +25,11 @@ const meta: Meta< typeof TabbableContainer > = {
|
|
|
25
25
|
expanded: true,
|
|
26
26
|
},
|
|
27
27
|
docs: { canvas: { sourceState: 'shown' } },
|
|
28
|
+
componentStatus: {
|
|
29
|
+
status: 'not-recommended',
|
|
30
|
+
whereUsed: 'global',
|
|
31
|
+
notes: 'Planned for deprecation.',
|
|
32
|
+
},
|
|
28
33
|
},
|
|
29
34
|
};
|
|
30
35
|
export default meta;
|
|
@@ -29,6 +29,11 @@ const meta: Meta< typeof Notice > = {
|
|
|
29
29
|
parameters: {
|
|
30
30
|
controls: { expanded: true },
|
|
31
31
|
docs: { canvas: { sourceState: 'shown' } },
|
|
32
|
+
componentStatus: {
|
|
33
|
+
status: 'stable',
|
|
34
|
+
whereUsed: 'global',
|
|
35
|
+
notes: 'Will be superseded by `Notice` in `@wordpress/ui`, but continue using for now.',
|
|
36
|
+
},
|
|
32
37
|
},
|
|
33
38
|
};
|
|
34
39
|
export default meta;
|
|
@@ -6,7 +6,7 @@ exports[`Notice should match snapshot 1`] = `
|
|
|
6
6
|
class="components-notice is-success is-dismissible"
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
|
-
class="components-visually-hidden
|
|
9
|
+
class="components-visually-hidden css-1ragr82-PolymorphicDiv emotion-0"
|
|
10
10
|
data-wp-c16t="true"
|
|
11
11
|
data-wp-component="VisuallyHidden"
|
|
12
12
|
style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal;"
|
|
@@ -29,6 +29,11 @@ const meta: Meta< typeof NumberControl > = {
|
|
|
29
29
|
parameters: {
|
|
30
30
|
controls: { expanded: true },
|
|
31
31
|
docs: { canvas: { sourceState: 'shown' } },
|
|
32
|
+
componentStatus: {
|
|
33
|
+
status: 'stable',
|
|
34
|
+
whereUsed: 'global',
|
|
35
|
+
notes: 'Will be superseded by `InputControl` with `type="number"` in `@wordpress/ui`, but continue using for now.',
|
|
36
|
+
},
|
|
32
37
|
},
|
|
33
38
|
};
|
|
34
39
|
|
package/src/popover/index.tsx
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
import type { ForwardedRef, SyntheticEvent, RefCallback } from 'react';
|
|
5
2
|
import clsx from 'clsx';
|
|
6
3
|
import {
|
|
@@ -15,15 +12,10 @@ import {
|
|
|
15
12
|
} from '@floating-ui/react-dom';
|
|
16
13
|
import type { HTMLMotionProps, MotionProps } from 'framer-motion';
|
|
17
14
|
import { motion } from 'framer-motion';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* WordPress dependencies
|
|
21
|
-
*/
|
|
22
15
|
import {
|
|
23
16
|
useRef,
|
|
24
17
|
useLayoutEffect,
|
|
25
18
|
forwardRef,
|
|
26
|
-
createContext,
|
|
27
19
|
useContext,
|
|
28
20
|
useMemo,
|
|
29
21
|
useState,
|
|
@@ -40,10 +32,6 @@ import { close } from '@wordpress/icons';
|
|
|
40
32
|
import deprecated from '@wordpress/deprecated';
|
|
41
33
|
import { Path, SVG } from '@wordpress/primitives';
|
|
42
34
|
import { __ } from '@wordpress/i18n';
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Internal dependencies
|
|
46
|
-
*/
|
|
47
35
|
import Button from '../button';
|
|
48
36
|
import ScrollLock from '../scroll-lock';
|
|
49
37
|
import { Slot, Fill, useSlot } from '../slot-fill';
|
|
@@ -101,8 +89,7 @@ const ArrowTriangle = () => (
|
|
|
101
89
|
</SVG>
|
|
102
90
|
);
|
|
103
91
|
|
|
104
|
-
|
|
105
|
-
slotNameContext.displayName = '__unstableSlotNameContext';
|
|
92
|
+
import { slotNameContext } from './context';
|
|
106
93
|
|
|
107
94
|
const fallbackContainerClassname = 'components-popover__fallback-container';
|
|
108
95
|
const getPopoverFallbackContainer = () => {
|
|
@@ -36,6 +36,11 @@ const meta: Meta< typeof RadioControl > = {
|
|
|
36
36
|
expanded: true,
|
|
37
37
|
},
|
|
38
38
|
docs: { canvas: { sourceState: 'shown' } },
|
|
39
|
+
componentStatus: {
|
|
40
|
+
status: 'stable',
|
|
41
|
+
whereUsed: 'global',
|
|
42
|
+
notes: 'Will be superseded by `RadioGroupControl` in `@wordpress/ui`, but continue using for now.',
|
|
43
|
+
},
|
|
39
44
|
},
|
|
40
45
|
};
|
|
41
46
|
export default meta;
|
|
@@ -57,6 +57,11 @@ const meta: Meta< typeof RangeControl > = {
|
|
|
57
57
|
parameters: {
|
|
58
58
|
controls: { expanded: true },
|
|
59
59
|
docs: { canvas: { sourceState: 'shown' } },
|
|
60
|
+
componentStatus: {
|
|
61
|
+
status: 'stable',
|
|
62
|
+
whereUsed: 'global',
|
|
63
|
+
notes: 'Will be superseded by `SliderControl` in `@wordpress/ui`, but continue using for now.',
|
|
64
|
+
},
|
|
60
65
|
},
|
|
61
66
|
};
|
|
62
67
|
export default meta;
|
|
@@ -18,6 +18,11 @@ const meta: Meta< typeof ResponsiveWrapper > = {
|
|
|
18
18
|
parameters: {
|
|
19
19
|
controls: { expanded: true },
|
|
20
20
|
docs: { canvas: { sourceState: 'shown' } },
|
|
21
|
+
componentStatus: {
|
|
22
|
+
status: 'not-recommended',
|
|
23
|
+
whereUsed: 'global',
|
|
24
|
+
notes: 'Planned for deprecation.',
|
|
25
|
+
},
|
|
21
26
|
},
|
|
22
27
|
};
|
|
23
28
|
export default meta;
|
|
@@ -22,6 +22,10 @@ const meta: Meta< typeof ScrollLock > = {
|
|
|
22
22
|
parameters: {
|
|
23
23
|
controls: { hideNoControlsWarning: true },
|
|
24
24
|
docs: { canvas: { sourceState: 'shown' } },
|
|
25
|
+
componentStatus: {
|
|
26
|
+
status: 'stable',
|
|
27
|
+
whereUsed: 'global',
|
|
28
|
+
},
|
|
25
29
|
},
|
|
26
30
|
};
|
|
27
31
|
export default meta;
|
|
@@ -31,6 +31,11 @@ const meta: Meta< typeof Scrollable > = {
|
|
|
31
31
|
expanded: true,
|
|
32
32
|
},
|
|
33
33
|
docs: { canvas: { sourceState: 'shown' } },
|
|
34
|
+
componentStatus: {
|
|
35
|
+
status: 'not-recommended',
|
|
36
|
+
whereUsed: 'global',
|
|
37
|
+
notes: 'Planned for deprecation.',
|
|
38
|
+
},
|
|
34
39
|
},
|
|
35
40
|
};
|
|
36
41
|
export default meta;
|