@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
|
@@ -24,6 +24,11 @@ const meta: Meta< typeof SearchControl > = {
|
|
|
24
24
|
parameters: {
|
|
25
25
|
controls: { expanded: true },
|
|
26
26
|
docs: { canvas: { sourceState: 'shown' } },
|
|
27
|
+
componentStatus: {
|
|
28
|
+
status: 'stable',
|
|
29
|
+
whereUsed: 'global',
|
|
30
|
+
notes: 'Will be superseded by `SearchControl` in `@wordpress/ui`, but continue using for now.',
|
|
31
|
+
},
|
|
27
32
|
},
|
|
28
33
|
};
|
|
29
34
|
export default meta;
|
|
@@ -32,6 +32,11 @@ const meta: Meta< typeof SelectControl > = {
|
|
|
32
32
|
parameters: {
|
|
33
33
|
controls: { expanded: true },
|
|
34
34
|
docs: { canvas: { sourceState: 'shown' } },
|
|
35
|
+
componentStatus: {
|
|
36
|
+
status: 'stable',
|
|
37
|
+
whereUsed: 'global',
|
|
38
|
+
notes: 'Will be superseded by `SelectControl` in `@wordpress/ui`, but continue using for now.',
|
|
39
|
+
},
|
|
35
40
|
},
|
|
36
41
|
};
|
|
37
42
|
export default meta;
|
package/src/slot-fill/index.tsx
CHANGED
|
@@ -64,9 +64,18 @@ export function createSlotFill( key: SlotKey ) {
|
|
|
64
64
|
);
|
|
65
65
|
FillComponent.displayName = `${ baseName }Fill`;
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
// Wrap SlotComponent with forwardRef to support ref forwarding
|
|
68
|
+
const SlotComponent = forwardRef(
|
|
69
|
+
(
|
|
70
|
+
props: DistributiveOmit< SlotComponentProps, 'name' >,
|
|
71
|
+
ref: ForwardedRef< any >
|
|
72
|
+
) => <Slot name={ key } ref={ ref } { ...props } />
|
|
73
|
+
) as React.ForwardRefExoticComponent<
|
|
74
|
+
DistributiveOmit< SlotComponentProps, 'name' > &
|
|
75
|
+
React.RefAttributes< any >
|
|
76
|
+
> & {
|
|
77
|
+
__unstableName: SlotKey;
|
|
78
|
+
};
|
|
70
79
|
SlotComponent.displayName = `${ baseName }Slot`;
|
|
71
80
|
/**
|
|
72
81
|
* @deprecated 6.8.0
|
|
@@ -43,14 +43,14 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
|
|
|
43
43
|
data-position="first"
|
|
44
44
|
>
|
|
45
45
|
<div
|
|
46
|
-
class="
|
|
46
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
47
47
|
/>
|
|
48
48
|
</div>
|
|
49
49
|
<div
|
|
50
50
|
data-position="second"
|
|
51
51
|
>
|
|
52
52
|
<div
|
|
53
|
-
class="
|
|
53
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
54
54
|
>
|
|
55
55
|
Content
|
|
56
56
|
</div>
|
|
@@ -67,7 +67,7 @@ exports[`Slot bubblesVirtually true should subsume another slot by the same name
|
|
|
67
67
|
data-position="second"
|
|
68
68
|
>
|
|
69
69
|
<div
|
|
70
|
-
class="
|
|
70
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
71
71
|
>
|
|
72
72
|
Content
|
|
73
73
|
</div>
|
|
@@ -208,7 +208,7 @@ exports[`Slot should warn without a Provider 1`] = `
|
|
|
208
208
|
<div>
|
|
209
209
|
<div>
|
|
210
210
|
<div
|
|
211
|
-
class="
|
|
211
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
212
212
|
/>
|
|
213
213
|
</div>
|
|
214
214
|
</div>
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { render, screen, within } from '@testing-library/react';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* WordPress dependencies
|
|
8
|
+
*/
|
|
9
|
+
import { createRef } from '@wordpress/element';
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* Internal dependencies
|
|
8
13
|
*/
|
|
@@ -82,4 +87,37 @@ describe( 'createSlotFill', () => {
|
|
|
82
87
|
within( pageSidebar ).queryByText( 'Post Section' )
|
|
83
88
|
).not.toBeInTheDocument();
|
|
84
89
|
} );
|
|
90
|
+
|
|
91
|
+
test( 'should forward ref to the slot when using bubblesVirtually', () => {
|
|
92
|
+
const TestSlotFill = createSlotFill( 'TestRefSlot' );
|
|
93
|
+
const ref = createRef();
|
|
94
|
+
|
|
95
|
+
render(
|
|
96
|
+
<SlotFillProvider>
|
|
97
|
+
<TestSlotFill.Fill>
|
|
98
|
+
<p>Content</p>
|
|
99
|
+
</TestSlotFill.Fill>
|
|
100
|
+
<TestSlotFill.Slot bubblesVirtually ref={ ref } />
|
|
101
|
+
</SlotFillProvider>
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
expect( ref.current ).not.toBeNull();
|
|
105
|
+
expect( ref.current.tagName ).toBe( 'DIV' );
|
|
106
|
+
} );
|
|
107
|
+
|
|
108
|
+
test( 'should forward ref without bubblesVirtually (ref stays null for fragment-based slot)', () => {
|
|
109
|
+
const TestSlotFill = createSlotFill( 'TestRefSlotBase' );
|
|
110
|
+
const ref = createRef();
|
|
111
|
+
|
|
112
|
+
render(
|
|
113
|
+
<SlotFillProvider>
|
|
114
|
+
<TestSlotFill.Fill>
|
|
115
|
+
<p>Content</p>
|
|
116
|
+
</TestSlotFill.Fill>
|
|
117
|
+
<TestSlotFill.Slot ref={ ref } />
|
|
118
|
+
</SlotFillProvider>
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
expect( ref.current ).toBeNull();
|
|
122
|
+
} );
|
|
85
123
|
} );
|
|
@@ -45,6 +45,11 @@ const meta: Meta< typeof Spacer > = {
|
|
|
45
45
|
expanded: true,
|
|
46
46
|
},
|
|
47
47
|
docs: { canvas: { sourceState: 'shown' } },
|
|
48
|
+
componentStatus: {
|
|
49
|
+
status: 'not-recommended',
|
|
50
|
+
whereUsed: 'global',
|
|
51
|
+
notes: 'Planned for deprecation.',
|
|
52
|
+
},
|
|
48
53
|
},
|
|
49
54
|
};
|
|
50
55
|
export default meta;
|
|
@@ -22,6 +22,11 @@ const meta: Meta< typeof Surface > = {
|
|
|
22
22
|
expanded: true,
|
|
23
23
|
},
|
|
24
24
|
docs: { canvas: { sourceState: 'shown' } },
|
|
25
|
+
componentStatus: {
|
|
26
|
+
status: 'not-recommended',
|
|
27
|
+
whereUsed: 'global',
|
|
28
|
+
notes: 'Planned for deprecation.',
|
|
29
|
+
},
|
|
25
30
|
},
|
|
26
31
|
};
|
|
27
32
|
export default meta;
|
|
@@ -8,8 +8,8 @@ Snapshot Diff:
|
|
|
8
8
|
@@ -1,8 +1,8 @@
|
|
9
9
|
<div>
|
|
10
10
|
<div
|
|
11
|
-
- class="components-surface css-
|
|
12
|
-
+ class="components-surface css-
|
|
11
|
+
- class="components-surface css-1921uc5-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
12
|
+
+ class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
13
13
|
data-wp-c16t="true"
|
|
14
14
|
data-wp-component="Surface"
|
|
15
15
|
>
|
|
@@ -25,8 +25,8 @@ Snapshot Diff:
|
|
|
25
25
|
@@ -1,8 +1,8 @@
|
|
26
26
|
<div>
|
|
27
27
|
<div
|
|
28
|
-
- class="components-surface css-
|
|
29
|
-
+ class="components-surface css-
|
|
28
|
+
- class="components-surface css-i25gtk-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
29
|
+
+ class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
30
30
|
data-wp-c16t="true"
|
|
31
31
|
data-wp-component="Surface"
|
|
32
32
|
>
|
|
@@ -42,8 +42,8 @@ Snapshot Diff:
|
|
|
42
42
|
@@ -1,8 +1,8 @@
|
|
43
43
|
<div>
|
|
44
44
|
<div
|
|
45
|
-
- class="components-surface css-
|
|
46
|
-
+ class="components-surface css-
|
|
45
|
+
- class="components-surface css-1pd05xm-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
46
|
+
+ class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
47
47
|
data-wp-c16t="true"
|
|
48
48
|
data-wp-component="Surface"
|
|
49
49
|
>
|
|
@@ -59,8 +59,8 @@ Snapshot Diff:
|
|
|
59
59
|
@@ -1,8 +1,8 @@
|
|
60
60
|
<div>
|
|
61
61
|
<div
|
|
62
|
-
- class="components-surface css-
|
|
63
|
-
+ class="components-surface css-
|
|
62
|
+
- class="components-surface css-y3blhg-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
63
|
+
+ class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
64
64
|
data-wp-c16t="true"
|
|
65
65
|
data-wp-component="Surface"
|
|
66
66
|
>
|
|
@@ -94,8 +94,8 @@ Snapshot Diff:
|
|
|
94
94
|
@@ -1,8 +1,8 @@
|
|
95
95
|
<div>
|
|
96
96
|
<div
|
|
97
|
-
- class="components-surface css-
|
|
98
|
-
+ class="components-surface css-
|
|
97
|
+
- class="components-surface css-15um7qp-PolymorphicDiv-Surface-getBorders-secondary e19lxcc00"
|
|
98
|
+
+ class="components-surface css-o6qg0g-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
|
|
99
99
|
data-wp-c16t="true"
|
|
100
100
|
data-wp-component="Surface"
|
|
101
101
|
>
|
|
@@ -21,6 +21,11 @@ const meta: Meta< typeof TabPanel > = {
|
|
|
21
21
|
parameters: {
|
|
22
22
|
controls: { expanded: true },
|
|
23
23
|
docs: { canvas: { sourceState: 'shown' } },
|
|
24
|
+
componentStatus: {
|
|
25
|
+
status: 'use-with-caution',
|
|
26
|
+
whereUsed: 'global',
|
|
27
|
+
notes: 'When building for the Gutenberg repo, use `Tabs` instead. Otherwise, continue using for now.',
|
|
28
|
+
},
|
|
24
29
|
},
|
|
25
30
|
args: {
|
|
26
31
|
onSelect: fn(),
|
|
@@ -34,6 +34,11 @@ const meta: Meta< typeof Tabs > = {
|
|
|
34
34
|
parameters: {
|
|
35
35
|
controls: { expanded: true },
|
|
36
36
|
docs: { canvas: { sourceState: 'shown' } },
|
|
37
|
+
componentStatus: {
|
|
38
|
+
status: 'stable',
|
|
39
|
+
whereUsed: 'global',
|
|
40
|
+
notes: 'When building for the Gutenberg repo, use this component instead of `TabPanel`. Otherwise, continue using `TabPanel`. Both will be superseded by `Tabs` in `@wordpress/ui`, but continue using these for now.',
|
|
41
|
+
},
|
|
37
42
|
},
|
|
38
43
|
args: {
|
|
39
44
|
onActiveTabIdChange: fn(),
|
|
@@ -30,6 +30,11 @@ const meta: Meta< typeof Text > = {
|
|
|
30
30
|
parameters: {
|
|
31
31
|
controls: { expanded: true },
|
|
32
32
|
docs: { canvas: { sourceState: 'shown' } },
|
|
33
|
+
componentStatus: {
|
|
34
|
+
status: 'not-recommended',
|
|
35
|
+
whereUsed: 'global',
|
|
36
|
+
notes: 'Values are not aligned with the current design system. Use [typography tokens](?path=/docs/tokens-typography--page) from `@wordpress/base-styles` instead.',
|
|
37
|
+
},
|
|
33
38
|
},
|
|
34
39
|
};
|
|
35
40
|
export default meta;
|
|
@@ -28,6 +28,11 @@ const meta: Meta< typeof TextControl > = {
|
|
|
28
28
|
expanded: true,
|
|
29
29
|
},
|
|
30
30
|
docs: { canvas: { sourceState: 'shown' } },
|
|
31
|
+
componentStatus: {
|
|
32
|
+
status: 'stable',
|
|
33
|
+
whereUsed: 'global',
|
|
34
|
+
notes: 'Prefer `InputControl` when placing buttons or icons in the prefix/suffix slots.',
|
|
35
|
+
},
|
|
31
36
|
},
|
|
32
37
|
};
|
|
33
38
|
export default meta;
|
|
@@ -28,6 +28,11 @@ const meta: Meta< typeof TextareaControl > = {
|
|
|
28
28
|
expanded: true,
|
|
29
29
|
},
|
|
30
30
|
docs: { canvas: { sourceState: 'shown' } },
|
|
31
|
+
componentStatus: {
|
|
32
|
+
status: 'stable',
|
|
33
|
+
whereUsed: 'global',
|
|
34
|
+
notes: 'Will be superseded by `TextareaControl` in `@wordpress/ui`, but continue using for now.',
|
|
35
|
+
},
|
|
31
36
|
},
|
|
32
37
|
};
|
|
33
38
|
export default meta;
|
|
@@ -23,6 +23,11 @@ const meta: Meta< typeof Theme > = {
|
|
|
23
23
|
parameters: {
|
|
24
24
|
controls: { expanded: true },
|
|
25
25
|
docs: { canvas: { sourceState: 'shown' } },
|
|
26
|
+
componentStatus: {
|
|
27
|
+
status: 'not-recommended',
|
|
28
|
+
whereUsed: 'global',
|
|
29
|
+
notes: 'This is an internal experiment and not meant for external use. Will be superseded by `@wordpress/theme`.',
|
|
30
|
+
},
|
|
26
31
|
},
|
|
27
32
|
};
|
|
28
33
|
export default meta;
|
|
@@ -28,6 +28,8 @@ function UnforwardedToggleControl(
|
|
|
28
28
|
className,
|
|
29
29
|
onChange,
|
|
30
30
|
disabled,
|
|
31
|
+
// Prevent passing to internal component.
|
|
32
|
+
__nextHasNoMarginBottom: _,
|
|
31
33
|
...additionalProps
|
|
32
34
|
}: WordPressComponentProps< ToggleControlProps, 'input', false >,
|
|
33
35
|
ref: ForwardedRef< HTMLInputElement >
|
|
@@ -26,6 +26,11 @@ const meta: Meta< typeof ToggleControl > = {
|
|
|
26
26
|
parameters: {
|
|
27
27
|
controls: { expanded: true },
|
|
28
28
|
docs: { canvas: { sourceState: 'shown' } },
|
|
29
|
+
componentStatus: {
|
|
30
|
+
status: 'stable',
|
|
31
|
+
whereUsed: 'global',
|
|
32
|
+
notes: 'Will be superseded by `ToggleControl` in `@wordpress/ui`, but continue using for now.',
|
|
33
|
+
},
|
|
29
34
|
},
|
|
30
35
|
};
|
|
31
36
|
export default meta;
|
|
@@ -37,6 +37,11 @@ const meta: Meta< typeof ToggleGroupControl > = {
|
|
|
37
37
|
parameters: {
|
|
38
38
|
controls: { expanded: true },
|
|
39
39
|
docs: { canvas: { sourceState: 'shown' } },
|
|
40
|
+
componentStatus: {
|
|
41
|
+
status: 'stable',
|
|
42
|
+
whereUsed: 'global',
|
|
43
|
+
notes: 'Will be superseded by `ToggleGroupControl` in `@wordpress/ui`, but continue using for now.',
|
|
44
|
+
},
|
|
40
45
|
},
|
|
41
46
|
};
|
|
42
47
|
export default meta;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from '@wordpress/element';
|
|
2
|
+
import type { TooltipInternalContext as TooltipInternalContextType } from './types';
|
|
3
|
+
|
|
4
|
+
export const TooltipInternalContext =
|
|
5
|
+
createContext< TooltipInternalContextType >( {
|
|
6
|
+
isNestedInTooltip: false,
|
|
7
|
+
} );
|
|
8
|
+
TooltipInternalContext.displayName = 'TooltipInternalContext';
|
package/src/tooltip/index.tsx
CHANGED
|
@@ -1,36 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
1
|
import * as Ariakit from '@ariakit/react';
|
|
5
2
|
import clsx from 'clsx';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* WordPress dependencies
|
|
9
|
-
*/
|
|
10
3
|
import { useInstanceId } from '@wordpress/compose';
|
|
11
4
|
import {
|
|
12
5
|
Children,
|
|
13
6
|
useContext,
|
|
14
|
-
createContext,
|
|
15
7
|
forwardRef,
|
|
16
8
|
cloneElement,
|
|
17
9
|
} from '@wordpress/element';
|
|
18
10
|
import deprecated from '@wordpress/deprecated';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Internal dependencies
|
|
22
|
-
*/
|
|
23
|
-
import type {
|
|
24
|
-
TooltipProps,
|
|
25
|
-
TooltipInternalContext as TooltipInternalContextType,
|
|
26
|
-
} from './types';
|
|
11
|
+
import type { TooltipProps } from './types';
|
|
27
12
|
import Shortcut from '../shortcut';
|
|
28
13
|
import { positionToPlacement } from '../popover/utils';
|
|
29
|
-
|
|
30
|
-
const TooltipInternalContext = createContext< TooltipInternalContextType >( {
|
|
31
|
-
isNestedInTooltip: false,
|
|
32
|
-
} );
|
|
33
|
-
TooltipInternalContext.displayName = 'TooltipInternalContext';
|
|
14
|
+
import { TooltipInternalContext } from './context';
|
|
34
15
|
|
|
35
16
|
/**
|
|
36
17
|
* Time over anchor to wait before showing tooltip
|
|
@@ -158,6 +139,5 @@ function UnforwardedTooltip(
|
|
|
158
139
|
);
|
|
159
140
|
}
|
|
160
141
|
export const Tooltip = forwardRef( UnforwardedTooltip );
|
|
161
|
-
Tooltip.displayName = 'Tooltip';
|
|
162
142
|
|
|
163
143
|
export default Tooltip;
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
import { __unsafe_useEmotionCache as useEmotionCache } from '@emotion/react';
|
|
5
5
|
import type { SerializedStyles } from '@emotion/serialize';
|
|
6
6
|
import { insertStyles } from '@emotion/utils';
|
|
7
|
-
|
|
8
|
-
import type { ClassNamesArg } from '@emotion/css';
|
|
7
|
+
import type { ClassNamesArg } from '@emotion/css/create-instance';
|
|
9
8
|
// eslint-disable-next-line no-restricted-imports
|
|
10
9
|
import { cx as innerCx } from '@emotion/css';
|
|
11
10
|
|
|
@@ -42,6 +42,11 @@ const meta: Meta< typeof VStack > = {
|
|
|
42
42
|
parameters: {
|
|
43
43
|
controls: { expanded: true },
|
|
44
44
|
docs: { canvas: { sourceState: 'shown' } },
|
|
45
|
+
componentStatus: {
|
|
46
|
+
status: 'stable',
|
|
47
|
+
whereUsed: 'global',
|
|
48
|
+
notes: 'Will be superseded by `Stack` in `@wordpress/ui`, but continue using for now.',
|
|
49
|
+
},
|
|
45
50
|
},
|
|
46
51
|
};
|
|
47
52
|
export default meta;
|
|
@@ -19,6 +19,11 @@ const meta: Meta< typeof View > = {
|
|
|
19
19
|
parameters: {
|
|
20
20
|
controls: { expanded: true },
|
|
21
21
|
docs: { canvas: { sourceState: 'shown' } },
|
|
22
|
+
componentStatus: {
|
|
23
|
+
status: 'not-recommended',
|
|
24
|
+
whereUsed: 'global',
|
|
25
|
+
notes: 'Planned for deprecation.',
|
|
26
|
+
},
|
|
22
27
|
},
|
|
23
28
|
};
|
|
24
29
|
export default meta;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`props should render as another element 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<p
|
|
6
|
-
class="
|
|
6
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
7
7
|
>
|
|
8
8
|
<span />
|
|
9
9
|
</p>
|
|
@@ -13,7 +13,7 @@ exports[`props should render as another element 1`] = `
|
|
|
13
13
|
exports[`props should render correctly 1`] = `
|
|
14
14
|
<div>
|
|
15
15
|
<div
|
|
16
|
-
class="
|
|
16
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
17
17
|
>
|
|
18
18
|
<span />
|
|
19
19
|
</div>
|
|
@@ -23,7 +23,7 @@ exports[`props should render correctly 1`] = `
|
|
|
23
23
|
exports[`props should render with custom styles (Array) 1`] = `
|
|
24
24
|
<div>
|
|
25
25
|
<p
|
|
26
|
-
class="
|
|
26
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
27
27
|
>
|
|
28
28
|
<span />
|
|
29
29
|
</p>
|
|
@@ -33,7 +33,7 @@ exports[`props should render with custom styles (Array) 1`] = `
|
|
|
33
33
|
exports[`props should render with custom styles (object) 1`] = `
|
|
34
34
|
<div>
|
|
35
35
|
<p
|
|
36
|
-
class="
|
|
36
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
37
37
|
>
|
|
38
38
|
<span />
|
|
39
39
|
</p>
|
|
@@ -43,7 +43,7 @@ exports[`props should render with custom styles (object) 1`] = `
|
|
|
43
43
|
exports[`props should render with custom styles (string) 1`] = `
|
|
44
44
|
<div>
|
|
45
45
|
<p
|
|
46
|
-
class="
|
|
46
|
+
class="css-1ragr82-PolymorphicDiv emotion-0"
|
|
47
47
|
>
|
|
48
48
|
<span />
|
|
49
49
|
</p>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`VisuallyHidden should render correctly 1`] = `
|
|
4
4
|
<div
|
|
5
|
-
class="components-visually-hidden
|
|
5
|
+
class="components-visually-hidden css-1ragr82-PolymorphicDiv emotion-0"
|
|
6
6
|
data-wp-c16t="true"
|
|
7
7
|
data-wp-component="VisuallyHidden"
|
|
8
8
|
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;"
|
|
@@ -24,6 +24,11 @@ const meta: Meta< typeof ZStack > = {
|
|
|
24
24
|
expanded: true,
|
|
25
25
|
},
|
|
26
26
|
docs: { canvas: { sourceState: 'shown' } },
|
|
27
|
+
componentStatus: {
|
|
28
|
+
status: 'not-recommended',
|
|
29
|
+
whereUsed: 'global',
|
|
30
|
+
notes: 'Planned for deprecation. Write your own CSS instead.',
|
|
31
|
+
},
|
|
27
32
|
},
|
|
28
33
|
};
|
|
29
34
|
export default meta;
|