@wordpress/components 32.1.1-next.v.0 → 32.2.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 +35 -0
- package/CLAUDE.md +1 -0
- package/build/angle-picker-control/angle-circle.cjs +2 -2
- package/build/angle-picker-control/angle-circle.cjs.map +2 -2
- package/build/autocomplete/index.cjs +1 -1
- package/build/autocomplete/index.cjs.map +2 -2
- package/build/avatar/component.cjs +99 -0
- package/build/avatar/component.cjs.map +7 -0
- package/build/avatar/index.cjs +37 -0
- package/build/avatar/index.cjs.map +7 -0
- package/build/avatar/types.cjs +19 -0
- package/build/avatar/types.cjs.map +7 -0
- package/build/avatar-group/component.cjs +60 -0
- package/build/avatar-group/component.cjs.map +7 -0
- package/build/avatar-group/index.cjs +37 -0
- package/build/avatar-group/index.cjs.map +7 -0
- package/build/avatar-group/types.cjs +19 -0
- package/build/avatar-group/types.cjs.map +7 -0
- 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/clipboard-button/index.cjs +1 -1
- package/build/clipboard-button/index.cjs.map +2 -2
- package/build/color-picker/color-copy-button.cjs +1 -1
- package/build/color-picker/color-copy-button.cjs.map +2 -2
- package/build/confirm-dialog/component.cjs +2 -2
- package/build/confirm-dialog/component.cjs.map +2 -2
- package/build/confirm-dialog/styles.cjs +1 -2
- package/build/confirm-dialog/styles.cjs.map +2 -2
- package/build/context/context-system-provider.cjs.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.cjs +2 -2
- package/build/custom-gradient-picker/gradient-bar/control-points.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/index.cjs +1 -1
- package/build/date-time/date/index.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/dropdown/index.cjs +1 -1
- package/build/dropdown/index.cjs.map +2 -2
- package/build/elevation/styles.cjs +1 -2
- package/build/elevation/styles.cjs.map +2 -2
- package/build/external-link/index.cjs +5 -1
- package/build/external-link/index.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/higher-order/with-spoken-messages/index.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 +5 -6
- package/build/modal/index.cjs.map +2 -2
- package/build/modal/use-modal-exit-animation.cjs +2 -2
- package/build/modal/use-modal-exit-animation.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/index.cjs +1 -1
- package/build/number-control/index.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/index.cjs +1 -1
- package/build/palette-edit/index.cjs.map +2 -2
- package/build/palette-edit/styles.cjs +1 -2
- package/build/palette-edit/styles.cjs.map +2 -2
- package/build/panel/body.cjs +1 -1
- package/build/panel/body.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/private-apis.cjs +6 -2
- package/build/private-apis.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/index.cjs +1 -1
- package/build/range-control/index.cjs.map +2 -2
- package/build/range-control/styles/range-control-styles.cjs +30 -43
- 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/resizable-box/resize-tooltip/utils.cjs +1 -1
- package/build/resizable-box/resize-tooltip/utils.cjs.map +2 -2
- package/build/sandbox/index.cjs +1 -1
- package/build/sandbox/index.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 +5 -6
- 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 +7 -9
- package/build/text/styles.cjs.map +2 -2
- package/build/text/utils.cjs.map +1 -1
- package/build/theme/styles.cjs +1 -2
- package/build/theme/styles.cjs.map +2 -2
- package/build/toggle-control/index.cjs +6 -2
- package/build/toggle-control/index.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control/styles.cjs +7 -11
- 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/tree-grid/roving-tab-index-item.cjs +1 -1
- package/build/tree-grid/roving-tab-index-item.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/element-rect.cjs +1 -1
- package/build/utils/element-rect.cjs.map +2 -2
- package/build/utils/hooks/use-cx.cjs.map +2 -2
- package/build/utils/hooks/use-update-effect.cjs.map +1 -1
- package/build/utils/rtl.cjs +2 -2
- package/build/utils/rtl.cjs.map +2 -2
- package/build/utils/use-responsive-value.cjs +1 -7
- package/build/utils/use-responsive-value.cjs.map +2 -2
- package/build/validated-form-controls/components/toggle-control.cjs +1 -5
- package/build/validated-form-controls/components/toggle-control.cjs.map +2 -2
- package/build/z-stack/styles.cjs +1 -2
- package/build/z-stack/styles.cjs.map +2 -2
- package/build-module/angle-picker-control/angle-circle.mjs +2 -2
- package/build-module/angle-picker-control/angle-circle.mjs.map +2 -2
- package/build-module/autocomplete/index.mjs +1 -1
- package/build-module/autocomplete/index.mjs.map +2 -2
- package/build-module/avatar/component.mjs +68 -0
- package/build-module/avatar/component.mjs.map +7 -0
- package/build-module/avatar/index.mjs +6 -0
- package/build-module/avatar/index.mjs.map +7 -0
- package/build-module/avatar/types.mjs +1 -0
- package/build-module/avatar/types.mjs.map +7 -0
- package/build-module/avatar-group/component.mjs +29 -0
- package/build-module/avatar-group/component.mjs.map +7 -0
- package/build-module/avatar-group/index.mjs +6 -0
- package/build-module/avatar-group/index.mjs.map +7 -0
- package/build-module/avatar-group/types.mjs +1 -0
- package/build-module/avatar-group/types.mjs.map +7 -0
- 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/clipboard-button/index.mjs +1 -1
- package/build-module/clipboard-button/index.mjs.map +2 -2
- package/build-module/color-picker/color-copy-button.mjs +1 -1
- package/build-module/color-picker/color-copy-button.mjs.map +2 -2
- package/build-module/confirm-dialog/component.mjs +2 -2
- package/build-module/confirm-dialog/component.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/context/context-system-provider.mjs.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs +2 -2
- package/build-module/custom-gradient-picker/gradient-bar/control-points.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/index.mjs +1 -1
- package/build-module/date-time/date/index.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/dropdown/index.mjs +1 -1
- package/build-module/dropdown/index.mjs.map +2 -2
- package/build-module/elevation/styles.mjs +1 -2
- package/build-module/elevation/styles.mjs.map +2 -2
- package/build-module/external-link/index.mjs +5 -1
- package/build-module/external-link/index.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/higher-order/with-spoken-messages/index.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 +4 -5
- package/build-module/modal/index.mjs.map +2 -2
- package/build-module/modal/use-modal-exit-animation.mjs +2 -2
- package/build-module/modal/use-modal-exit-animation.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/index.mjs +1 -1
- package/build-module/number-control/index.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/index.mjs +1 -1
- package/build-module/palette-edit/index.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/panel/body.mjs +1 -1
- package/build-module/panel/body.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/private-apis.mjs +6 -2
- package/build-module/private-apis.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/index.mjs +1 -1
- package/build-module/range-control/index.mjs.map +2 -2
- package/build-module/range-control/styles/range-control-styles.mjs +30 -43
- 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/resizable-box/resize-tooltip/utils.mjs +1 -1
- package/build-module/resizable-box/resize-tooltip/utils.mjs.map +2 -2
- package/build-module/sandbox/index.mjs +1 -1
- package/build-module/sandbox/index.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 +5 -6
- 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 +7 -9
- package/build-module/text/styles.mjs.map +2 -2
- package/build-module/text/utils.mjs.map +1 -1
- package/build-module/theme/styles.mjs +1 -2
- package/build-module/theme/styles.mjs.map +2 -2
- package/build-module/toggle-control/index.mjs +6 -2
- package/build-module/toggle-control/index.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control/styles.mjs +7 -11
- 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/tree-grid/roving-tab-index-item.mjs +1 -1
- package/build-module/tree-grid/roving-tab-index-item.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/element-rect.mjs +1 -1
- package/build-module/utils/element-rect.mjs.map +2 -2
- package/build-module/utils/hooks/use-cx.mjs.map +2 -2
- package/build-module/utils/hooks/use-update-effect.mjs.map +1 -1
- package/build-module/utils/rtl.mjs +2 -2
- package/build-module/utils/rtl.mjs.map +2 -2
- package/build-module/utils/use-responsive-value.mjs +1 -7
- package/build-module/utils/use-responsive-value.mjs.map +2 -2
- package/build-module/validated-form-controls/components/toggle-control.mjs +2 -6
- package/build-module/validated-form-controls/components/toggle-control.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-style/style-rtl.css +185 -1
- package/build-style/style.css +185 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
- package/build-types/angle-picker-control/index.d.ts +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts.map +1 -1
- package/build-types/animate/index.d.ts +1 -1
- package/build-types/animate/index.d.ts.map +1 -1
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/animate/types.d.ts +1 -1
- package/build-types/animate/types.d.ts.map +1 -1
- package/build-types/autocomplete/index.d.ts +2 -2
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/autocomplete/types.d.ts +1 -1
- package/build-types/autocomplete/types.d.ts.map +1 -1
- package/build-types/avatar/component.d.ts +5 -0
- package/build-types/avatar/component.d.ts.map +1 -0
- package/build-types/avatar/index.d.ts +3 -0
- package/build-types/avatar/index.d.ts.map +1 -0
- package/build-types/avatar/types.d.ts +59 -0
- package/build-types/avatar/types.d.ts.map +1 -0
- package/build-types/avatar-group/component.d.ts +8 -0
- package/build-types/avatar-group/component.d.ts.map +1 -0
- package/build-types/avatar-group/index.d.ts +3 -0
- package/build-types/avatar-group/index.d.ts.map +1 -0
- package/build-types/avatar-group/types.d.ts +14 -0
- package/build-types/avatar-group/types.d.ts.map +1 -0
- package/build-types/badge/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/index.d.ts +3 -3
- package/build-types/base-control/stories/index.story.d.ts +1 -1
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +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/box-control/styles/box-control-styles.d.ts +2 -2
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +1 -1
- package/build-types/card/card-body/hook.d.ts +1 -1
- package/build-types/card/card-footer/hook.d.ts +1 -1
- package/build-types/card/card-header/hook.d.ts +1 -1
- package/build-types/card/card-media/hook.d.ts +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 +6 -5
- 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/color-copy-button.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +2 -2
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/styles.d.ts +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/context/context-connect.d.ts +2 -2
- package/build-types/context/context-connect.d.ts.map +1 -1
- package/build-types/context/context-system-provider.d.ts +2 -2
- package/build-types/context/context-system-provider.d.ts.map +1 -1
- package/build-types/context/wordpress-component.d.ts +3 -3
- package/build-types/context/wordpress-component.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
- package/build-types/custom-gradient-picker/types.d.ts +1 -1
- package/build-types/custom-gradient-picker/types.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/custom-select-control-v2/types.d.ts +4 -4
- package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +2 -2
- package/build-types/date-time/date-time/styles.d.ts +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/draggable/types.d.ts +1 -1
- package/build-types/draggable/types.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/types.d.ts +1 -1
- package/build-types/drop-zone/types.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/dropdown-menu/types.d.ts +1 -1
- package/build-types/dropdown-menu/types.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/hook.d.ts +1 -1
- package/build-types/elevation/stories/index.story.d.ts.map +1 -1
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/external-link/stories/index.story.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +1 -1
- package/build-types/flex/flex-block/hook.d.ts +1 -1
- package/build-types/flex/flex-item/hook.d.ts +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/focal-point-picker/styles/focal-point-picker-style.d.ts +1 -1
- package/build-types/font-size-picker/stories/index.story.d.ts +8 -7
- package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.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.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/form-token-field/styles.d.ts +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +6 -5
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +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/hook.d.ts +1 -1
- package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/hook.d.ts +1 -1
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/higher-order/navigate-regions/index.d.ts +1 -1
- package/build-types/higher-order/with-notices/types.d.ts +1 -1
- package/build-types/higher-order/with-notices/types.d.ts.map +1 -1
- package/build-types/higher-order/with-spoken-messages/index.d.ts +2 -3
- package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
- package/build-types/icon/index.d.ts +2 -2
- package/build-types/icon/index.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/input-control/styles/input-control-styles.d.ts +2 -2
- package/build-types/item-group/item/hook.d.ts +1 -1
- package/build-types/item-group/item-group/hook.d.ts +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/index.d.ts +2 -2
- package/build-types/menu/item-help-text.d.ts +1 -1
- package/build-types/menu/item-label.d.ts +1 -1
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/styles.d.ts +2 -2
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/index.d.ts +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +4 -4
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/types.d.ts +1 -1
- package/build-types/menu-item/types.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/modal/types.d.ts +1 -1
- package/build-types/modal/types.d.ts.map +1 -1
- package/build-types/modal/use-modal-exit-animation.d.ts +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/navigation/styles/navigation-styles.d.ts +2 -2
- package/build-types/navigation/types.d.ts +1 -1
- package/build-types/navigation/types.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +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/palette-edit/styles.d.ts +1 -1
- package/build-types/palette-edit/types.d.ts +1 -1
- package/build-types/palette-edit/types.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/panel/types.d.ts +2 -2
- package/build-types/panel/types.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/private-apis.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/index.d.ts.map +1 -1
- package/build-types/range-control/input-range.d.ts +1 -1
- package/build-types/range-control/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/range-control/types.d.ts +2 -2
- package/build-types/range-control/types.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.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/hook.d.ts +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/search-control/types.d.ts +1 -1
- package/build-types/search-control/types.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts +2 -2
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts +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/slot-fill/types.d.ts +1 -1
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts +1 -1
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +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/hook.d.ts +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/tabs/styles.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +1 -1
- package/build-types/text/stories/index.story.d.ts +3 -3
- package/build-types/text/stories/index.story.d.ts.map +1 -1
- package/build-types/text/styles.d.ts.map +1 -1
- package/build-types/text/utils.d.ts +18 -18
- package/build-types/text/utils.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 +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/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
- package/build-types/toggle-group-control/types.d.ts +1 -1
- package/build-types/toggle-group-control/types.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/tools-panel/tools-panel/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +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-grid/types.d.ts +1 -1
- package/build-types/tree-grid/types.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +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/utils/hooks/use-update-effect.d.ts +3 -3
- package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
- package/build-types/utils/rtl.d.ts +4 -4
- package/build-types/utils/rtl.d.ts.map +1 -1
- package/build-types/utils/use-responsive-value.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +1 -1
- package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/toggle-control.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 +30 -30
- package/src/alignment-matrix-control/stories/index.story.tsx +4 -0
- package/src/alignment-matrix-control/test/index.tsx +1 -1
- package/src/angle-picker-control/angle-circle.tsx +6 -5
- package/src/angle-picker-control/stories/index.story.tsx +4 -0
- package/src/animate/stories/index.story.tsx +5 -0
- package/src/animate/types.ts +1 -1
- package/src/autocomplete/autocompleter-ui.tsx +1 -1
- package/src/autocomplete/index.tsx +3 -2
- package/src/autocomplete/types.ts +1 -1
- package/src/avatar/component.tsx +82 -0
- package/src/avatar/index.ts +2 -0
- package/src/avatar/styles.scss +152 -0
- package/src/avatar/types.ts +59 -0
- package/src/avatar-group/component.tsx +46 -0
- package/src/avatar-group/index.ts +2 -0
- package/src/avatar-group/styles.scss +32 -0
- package/src/avatar-group/types.ts +13 -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/button/style.scss +6 -2
- package/src/calendar/style.scss +4 -2
- 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/clipboard-button/index.tsx +1 -1
- package/src/color-indicator/stories/index.story.tsx +4 -0
- package/src/color-palette/stories/index.story.tsx +60 -48
- package/src/color-picker/color-copy-button.tsx +1 -3
- 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 +5 -1
- package/src/confirm-dialog/component.tsx +2 -2
- package/src/confirm-dialog/stories/index.story.tsx +4 -0
- package/src/context/context-connect.ts +3 -3
- package/src/context/context-system-provider.js +4 -4
- package/src/context/test/__snapshots__/context-system-provider.js.snap +3 -3
- package/src/context/wordpress-component.ts +3 -5
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +3 -2
- package/src/custom-gradient-picker/stories/index.story.tsx +5 -0
- package/src/custom-gradient-picker/types.ts +1 -1
- package/src/custom-select-control/stories/index.story.tsx +5 -0
- package/src/custom-select-control-v2/custom-select.tsx +1 -1
- package/src/custom-select-control-v2/stories/index.story.tsx +8 -3
- package/src/custom-select-control-v2/test/index.tsx +3 -3
- package/src/custom-select-control-v2/types.ts +4 -4
- package/src/date-time/date/index.tsx +1 -1
- 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/index.native.js +17 -17
- package/src/draggable/stories/index.story.tsx +5 -0
- package/src/draggable/types.ts +1 -1
- package/src/drop-zone/stories/index.story.tsx +4 -0
- package/src/drop-zone/types.ts +1 -1
- package/src/dropdown/index.tsx +1 -1
- package/src/dropdown/stories/index.story.tsx +4 -0
- package/src/dropdown-menu/stories/index.story.tsx +5 -0
- package/src/dropdown-menu/types.ts +1 -1
- 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/index.tsx +5 -1
- 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 +137 -125
- 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 +52 -42
- 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/h-stack/test/index.tsx +1 -1
- package/src/heading/hook.ts +2 -2
- package/src/heading/stories/index.story.tsx +5 -0
- package/src/heading/test/__snapshots__/index.tsx.snap +0 -1
- package/src/higher-order/with-notices/test/index.tsx +2 -2
- package/src/higher-order/with-notices/types.ts +1 -1
- package/src/higher-order/with-spoken-messages/index.tsx +2 -4
- package/src/icon/index.tsx +2 -2
- 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/index.tsx +1 -1
- package/src/keyboard-shortcuts/stories/index.story.tsx +4 -0
- package/src/menu/stories/index.story.tsx +6 -1
- package/src/menu-group/stories/index.story.tsx +5 -0
- package/src/menu-item/stories/index.story.tsx +5 -0
- package/src/menu-item/types.ts +1 -1
- package/src/menu-items-choice/stories/index.story.tsx +5 -0
- package/src/modal/context.ts +9 -0
- package/src/modal/index.tsx +5 -22
- package/src/modal/stories/index.story.tsx +5 -0
- package/src/modal/types.ts +1 -1
- package/src/modal/use-modal-exit-animation.ts +2 -2
- package/src/navigable-container/stories/navigable-menu.story.tsx +4 -0
- package/src/navigable-container/stories/tabbable-container.story.tsx +5 -0
- package/src/navigation/README.md +1 -1
- package/src/navigation/types.ts +1 -1
- 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/index.tsx +1 -1
- package/src/number-control/stories/index.story.tsx +5 -0
- package/src/palette-edit/index.tsx +2 -2
- package/src/palette-edit/stories/index.story.tsx +4 -0
- package/src/palette-edit/types.ts +1 -1
- package/src/panel/README.md +1 -1
- package/src/panel/body.tsx +1 -1
- package/src/panel/stories/index.story.tsx +4 -0
- package/src/panel/types.ts +2 -2
- 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 +5 -1
- package/src/private-apis.ts +10 -2
- 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/radio-control/test/index.tsx +5 -4
- package/src/range-control/index.tsx +1 -1
- package/src/range-control/stories/index.story.tsx +5 -0
- package/src/range-control/styles/range-control-styles.ts +33 -24
- package/src/range-control/types.ts +2 -2
- package/src/resizable-box/index.tsx +1 -1
- package/src/resizable-box/resize-tooltip/index.tsx +1 -1
- package/src/resizable-box/resize-tooltip/label.tsx +1 -1
- package/src/resizable-box/resize-tooltip/utils.ts +2 -2
- package/src/resizable-box/stories/index.story.tsx +4 -0
- package/src/responsive-wrapper/stories/index.story.tsx +5 -0
- package/src/sandbox/index.tsx +1 -1
- 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/search-control/types.ts +1 -1
- 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/slot-fill/types.ts +1 -1
- package/src/snackbar/list.tsx +1 -1
- 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/style.scss +2 -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/tabs/styles.ts +1 -0
- package/src/text/stories/index.story.tsx +5 -0
- package/src/text/styles.ts +0 -1
- package/src/text/test/__snapshots__/index.tsx.snap +0 -2
- package/src/text/utils.ts +18 -18
- 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 +4 -0
- package/src/toggle-control/stories/index.story.tsx +5 -0
- package/src/toggle-group-control/stories/index.story.tsx +5 -0
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +4 -4
- package/src/toggle-group-control/toggle-group-control/styles.ts +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +1 -1
- package/src/toggle-group-control/types.ts +1 -1
- 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/roving-tab-index-item.tsx +1 -1
- package/src/tree-grid/stories/index.story.tsx +4 -0
- package/src/tree-grid/types.ts +1 -1
- 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/element-rect.ts +1 -1
- package/src/utils/hooks/use-cx.ts +1 -2
- package/src/utils/hooks/use-update-effect.js +2 -2
- package/src/utils/rtl.js +4 -4
- package/src/utils/use-responsive-value.ts +1 -5
- package/src/v-stack/stories/index.story.tsx +5 -0
- package/src/v-stack/test/index.tsx +1 -1
- package/src/validated-form-controls/components/stories/overview.story.tsx +2 -1
- package/src/validated-form-controls/components/toggle-control.tsx +6 -10
- 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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "@wordpress/base-styles/colors" as *;
|
|
2
|
+
@use "@wordpress/base-styles/variables" as *;
|
|
3
|
+
|
|
4
|
+
.components-avatar-group {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
// Overlap subsequent avatars.
|
|
9
|
+
> .components-avatar + .components-avatar {
|
|
10
|
+
margin-inline-start: -$grid-unit-10;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Stack earlier avatars on top of later ones so the overlap
|
|
14
|
+
// is visually correct, and elevate on hover for badge expansion.
|
|
15
|
+
> .components-avatar {
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
@for $i from 1 through 10 {
|
|
19
|
+
&:nth-child(#{$i}) {
|
|
20
|
+
z-index: #{11 - $i};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.components-avatar-group__overflow {
|
|
27
|
+
margin-inline-start: $grid-unit-05;
|
|
28
|
+
font-size: $font-size-small;
|
|
29
|
+
line-height: $font-line-height-small;
|
|
30
|
+
color: $gray-900;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type AvatarGroupProps = {
|
|
2
|
+
/**
|
|
3
|
+
* Maximum number of avatars to display before showing an
|
|
4
|
+
* overflow indicator.
|
|
5
|
+
*
|
|
6
|
+
* @default 3
|
|
7
|
+
*/
|
|
8
|
+
max?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Avatar elements to display in the group.
|
|
11
|
+
*/
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
};
|
|
@@ -13,6 +13,13 @@ const meta: Meta< typeof Badge > = {
|
|
|
13
13
|
title: 'Components/Containers/Badge',
|
|
14
14
|
id: 'components-badge',
|
|
15
15
|
tags: [ 'status-private' ],
|
|
16
|
+
parameters: {
|
|
17
|
+
componentStatus: {
|
|
18
|
+
status: 'use-with-caution',
|
|
19
|
+
whereUsed: 'global',
|
|
20
|
+
notes: 'Will be superseded by `Badge` in `@wordpress/ui`, but continue using for now.',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
16
23
|
};
|
|
17
24
|
|
|
18
25
|
export default meta;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-basecontrol--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
|
|
6
6
|
|
|
7
|
-
`BaseControl` is a component used to generate labels and help text for components handling user inputs.
|
|
7
|
+
`BaseControl` is a low-level component used to generate labels and help text for components handling user inputs.
|
|
8
8
|
|
|
9
9
|
```jsx
|
|
10
10
|
import { BaseControl, useBaseControlProps } from '@wordpress/components';
|
|
@@ -96,7 +96,7 @@ const UnforwardedVisualLabel = (
|
|
|
96
96
|
export const VisualLabel = forwardRef( UnforwardedVisualLabel );
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* `BaseControl` is a component used to generate labels and help text for components handling user inputs.
|
|
99
|
+
* `BaseControl` is a low-level component used to generate labels and help text for components handling user inputs.
|
|
100
100
|
*
|
|
101
101
|
* ```jsx
|
|
102
102
|
* import { BaseControl, useBaseControlProps } from '@wordpress/components';
|
|
@@ -24,6 +24,11 @@ const meta: Meta< typeof BaseControl > = {
|
|
|
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 `Field` in `@wordpress/ui`, but continue using for now.',
|
|
31
|
+
},
|
|
27
32
|
},
|
|
28
33
|
};
|
|
29
34
|
export default meta;
|
|
@@ -26,6 +26,11 @@ const meta: Meta< typeof BoxControl > = {
|
|
|
26
26
|
parameters: {
|
|
27
27
|
controls: { expanded: true },
|
|
28
28
|
docs: { canvas: { sourceState: 'shown' } },
|
|
29
|
+
componentStatus: {
|
|
30
|
+
status: 'use-with-caution',
|
|
31
|
+
whereUsed: 'editor',
|
|
32
|
+
notes: 'This component is a fallback for themes that do not supply spacing presets. Most of the time `SpacingSizesControl` from `@wordpress/block-editor` is used instead.',
|
|
33
|
+
},
|
|
29
34
|
},
|
|
30
35
|
};
|
|
31
36
|
export default meta;
|
|
@@ -52,6 +52,11 @@ const meta: Meta< typeof Button > = {
|
|
|
52
52
|
parameters: {
|
|
53
53
|
controls: { expanded: true },
|
|
54
54
|
docs: { canvas: { sourceState: 'shown' } },
|
|
55
|
+
componentStatus: {
|
|
56
|
+
status: 'stable',
|
|
57
|
+
whereUsed: 'global',
|
|
58
|
+
notes: 'Will be superseded by `Button` in `@wordpress/ui`, but continue using for now.',
|
|
59
|
+
},
|
|
55
60
|
},
|
|
56
61
|
};
|
|
57
62
|
export default meta;
|
package/src/button/style.scss
CHANGED
|
@@ -46,8 +46,10 @@
|
|
|
46
46
|
// See https://github.com/WordPress/gutenberg/issues/13267 for more context on these selectors.
|
|
47
47
|
&:focus:not(:active) {
|
|
48
48
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) $components-color-accent;
|
|
49
|
+
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
52
|
+
&:focus {
|
|
51
53
|
outline: 3px solid transparent;
|
|
52
54
|
}
|
|
53
55
|
|
|
@@ -378,8 +380,10 @@
|
|
|
378
380
|
|
|
379
381
|
&:focus:not(:active) {
|
|
380
382
|
box-shadow: inset 0 0 0 1px $components-color-background, 0 0 0 var(--wp-admin-border-width-focus) $components-color-accent;
|
|
383
|
+
}
|
|
381
384
|
|
|
382
|
-
|
|
385
|
+
// Windows High Contrast mode will show this outline, but not the box-shadow.
|
|
386
|
+
&:focus {
|
|
383
387
|
outline: 2px solid transparent;
|
|
384
388
|
}
|
|
385
389
|
}
|
package/src/calendar/style.scss
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
/* Root of the component. */
|
|
6
6
|
// Internal variables
|
|
7
|
-
$wp-components-calendar-outline-focus: var(--wp-admin-border-width-focus)
|
|
7
|
+
$wp-components-calendar-outline-focus: var(--wp-admin-border-width-focus)
|
|
8
|
+
solid $components-color-accent;
|
|
8
9
|
$wp-components-calendar-button-height: $grid-unit-40;
|
|
9
10
|
$wp-components-calendar-button-width: $grid-unit-40;
|
|
10
11
|
$wp-components-calendar-nav-height: $grid-unit-40;
|
|
@@ -39,7 +40,8 @@ $wp-components-calendar-preview-border-color: color-mix(in srgb, $components-col
|
|
|
39
40
|
// date follows the same color as the button's text, since the button
|
|
40
41
|
// inherits its text color.
|
|
41
42
|
&:has(.components-calendar__day-button:disabled) {
|
|
42
|
-
|
|
43
|
+
// Use a lighter shade of gray for less visual prominence.
|
|
44
|
+
color: $components-color-gray-400;
|
|
43
45
|
}
|
|
44
46
|
&:has(.components-calendar__day-button:hover:not(:disabled)),
|
|
45
47
|
&:has(.components-calendar__day-button:focus-visible) {
|
|
@@ -36,6 +36,11 @@ const meta: Meta< typeof Card > = {
|
|
|
36
36
|
expanded: true,
|
|
37
37
|
},
|
|
38
38
|
docs: { canvas: { sourceState: 'shown' } },
|
|
39
|
+
componentStatus: {
|
|
40
|
+
status: 'use-with-caution',
|
|
41
|
+
whereUsed: 'global',
|
|
42
|
+
notes: 'Design is in flux, and may differ from the version used in `@wordpress/dataviews`.',
|
|
43
|
+
},
|
|
39
44
|
},
|
|
40
45
|
};
|
|
41
46
|
|
|
@@ -8,8 +8,8 @@ Snapshot Diff:
|
|
|
8
8
|
@@ -1,8 +1,8 @@
|
|
9
9
|
<div>
|
|
10
10
|
<div
|
|
11
|
-
- class="components-card__body components-card-body css-
|
|
12
|
-
+ class="components-scrollable components-card__body components-card-body css-
|
|
11
|
+
- class="components-card__body components-card-body css-1gg1viu-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
12
|
+
+ class="components-scrollable components-card__body components-card-body css-9p6d97-PolymorphicDiv-Scrollable-scrollableScrollbar-scrollY-Body-borderRadius-medium e19lxcc00"
|
|
13
13
|
data-wp-c16t="true"
|
|
14
14
|
data-wp-component="CardBody"
|
|
15
15
|
>
|
|
@@ -25,8 +25,8 @@ Snapshot Diff:
|
|
|
25
25
|
@@ -1,8 +1,8 @@
|
|
26
26
|
<div>
|
|
27
27
|
<div
|
|
28
|
-
- class="components-card__body components-card-body css-
|
|
29
|
-
+ class="components-card__body components-card-body css-
|
|
28
|
+
- class="components-card__body components-card-body css-1gg1viu-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
29
|
+
+ class="components-card__body components-card-body css-p7byxx-PolymorphicDiv-Body-borderRadius-medium-shady e19lxcc00"
|
|
30
30
|
data-wp-c16t="true"
|
|
31
31
|
data-wp-component="CardBody"
|
|
32
32
|
>
|
|
@@ -42,8 +42,8 @@ Snapshot Diff:
|
|
|
42
42
|
@@ -1,8 +1,8 @@
|
|
43
43
|
<div>
|
|
44
44
|
<div
|
|
45
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
46
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
45
|
+
- class="components-flex components-card__footer components-card-footer css-1s5uzde-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
46
|
+
+ class="components-flex components-card__footer components-card-footer css-12kx59h-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium-shady e19lxcc00"
|
|
47
47
|
data-wp-c16t="true"
|
|
48
48
|
data-wp-component="CardFooter"
|
|
49
49
|
>
|
|
@@ -59,8 +59,8 @@ Snapshot Diff:
|
|
|
59
59
|
@@ -1,8 +1,8 @@
|
|
60
60
|
<div>
|
|
61
61
|
<div
|
|
62
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
63
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
62
|
+
- class="components-flex components-card__footer components-card-footer css-1s5uzde-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
63
|
+
+ class="components-flex components-card__footer components-card-footer css-11v2u4y-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
64
64
|
data-wp-c16t="true"
|
|
65
65
|
data-wp-component="CardFooter"
|
|
66
66
|
>
|
|
@@ -76,8 +76,8 @@ Snapshot Diff:
|
|
|
76
76
|
@@ -1,8 +1,8 @@
|
|
77
77
|
<div>
|
|
78
78
|
<div
|
|
79
|
-
- class="components-flex components-card__header components-card-header css-
|
|
80
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
79
|
+
- class="components-flex components-card__header components-card-header css-1hlwlpa-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium e19lxcc00"
|
|
80
|
+
+ class="components-flex components-card__header components-card-header css-lljjlu-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium-shady e19lxcc00"
|
|
81
81
|
data-wp-c16t="true"
|
|
82
82
|
data-wp-component="CardHeader"
|
|
83
83
|
>
|
|
@@ -93,19 +93,19 @@ Snapshot Diff:
|
|
|
93
93
|
@@ -6,18 +6,18 @@
|
|
94
94
|
>
|
|
95
95
|
<div
|
|
96
|
-
class="css-
|
|
96
|
+
class="css-1yddrvs-PolymorphicDiv-Content e19lxcc00"
|
|
97
97
|
>
|
|
98
98
|
<div
|
|
99
|
-
- class="components-flex components-card__header components-card-header css-
|
|
100
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
99
|
+
- class="components-flex components-card__header components-card-header css-1hlwlpa-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium e19lxcc00"
|
|
100
|
+
+ class="components-flex components-card__header components-card-header css-dxbfrz-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large e19lxcc00"
|
|
101
101
|
data-wp-c16t="true"
|
|
102
102
|
data-wp-component="CardHeader"
|
|
103
103
|
>
|
|
104
104
|
Header
|
|
105
105
|
</div>
|
|
106
106
|
<div
|
|
107
|
-
- class="components-card__body components-card-body css-
|
|
108
|
-
+ class="components-card__body components-card-body css-
|
|
107
|
+
- class="components-card__body components-card-body css-1gg1viu-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
108
|
+
+ class="components-card__body components-card-body css-16631vj-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
109
109
|
data-wp-c16t="true"
|
|
110
110
|
data-wp-component="CardBody"
|
|
111
111
|
>
|
|
@@ -138,27 +138,27 @@ Snapshot Diff:
|
|
|
138
138
|
@@ -6,25 +6,25 @@
|
|
139
139
|
>
|
|
140
140
|
<div
|
|
141
|
-
class="css-
|
|
141
|
+
class="css-1yddrvs-PolymorphicDiv-Content e19lxcc00"
|
|
142
142
|
>
|
|
143
143
|
<div
|
|
144
|
-
- class="components-flex components-card__header components-card-header css-
|
|
145
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
144
|
+
- class="components-flex components-card__header components-card-header css-1qrvb07-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
145
|
+
+ class="components-flex components-card__header components-card-header css-nhtehb-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-small e19lxcc00"
|
|
146
146
|
data-wp-c16t="true"
|
|
147
147
|
data-wp-component="CardHeader"
|
|
148
148
|
>
|
|
149
149
|
Header
|
|
150
150
|
</div>
|
|
151
151
|
<div
|
|
152
|
-
- class="components-card__body components-card-body css-
|
|
153
|
-
+ class="components-card__body components-card-body css-
|
|
152
|
+
- class="components-card__body components-card-body css-16631vj-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
153
|
+
+ class="components-card__body components-card-body css-1gg1viu-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
154
154
|
data-wp-c16t="true"
|
|
155
155
|
data-wp-component="CardBody"
|
|
156
156
|
>
|
|
157
157
|
Body
|
|
158
158
|
</div>
|
|
159
159
|
<div
|
|
160
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
161
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
160
|
+
- class="components-flex components-card__footer components-card-footer css-ny5e27-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
161
|
+
+ class="components-flex components-card__footer components-card-footer css-1isabr8-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-xSmallCardPadding e19lxcc00"
|
|
162
162
|
data-wp-c16t="true"
|
|
163
163
|
data-wp-component="CardFooter"
|
|
164
164
|
>
|
|
@@ -174,33 +174,33 @@ Snapshot Diff:
|
|
|
174
174
|
@@ -1,30 +1,30 @@
|
|
175
175
|
<div>
|
|
176
176
|
<div
|
|
177
|
-
- class="components-surface components-card css-
|
|
178
|
-
+ class="components-surface components-card css-
|
|
177
|
+
- class="components-surface components-card css-y9at7f-PolymorphicDiv-Surface-getBorders-primary-Card-boxShadowless-rounded e19lxcc00"
|
|
178
|
+
+ class="components-surface components-card css-1dj5kxo-PolymorphicDiv-Surface-getBorders-primary-Card-rounded e19lxcc00"
|
|
179
179
|
data-wp-c16t="true"
|
|
180
180
|
data-wp-component="Card"
|
|
181
181
|
>
|
|
182
182
|
<div
|
|
183
|
-
class="css-
|
|
183
|
+
class="css-1yddrvs-PolymorphicDiv-Content e19lxcc00"
|
|
184
184
|
>
|
|
185
185
|
<div
|
|
186
|
-
- class="components-flex components-card__header components-card-header css-
|
|
187
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
186
|
+
- class="components-flex components-card__header components-card-header css-1qrvb07-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
187
|
+
+ class="components-flex components-card__header components-card-header css-nhtehb-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-small e19lxcc00"
|
|
188
188
|
data-wp-c16t="true"
|
|
189
189
|
data-wp-component="CardHeader"
|
|
190
190
|
>
|
|
191
191
|
Header
|
|
192
192
|
</div>
|
|
193
193
|
<div
|
|
194
|
-
- class="components-card__body components-card-body css-
|
|
195
|
-
+ class="components-card__body components-card-body css-
|
|
194
|
+
- class="components-card__body components-card-body css-16631vj-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
195
|
+
+ class="components-card__body components-card-body css-be2ezs-PolymorphicDiv-Body-borderRadius-small e19lxcc00"
|
|
196
196
|
data-wp-c16t="true"
|
|
197
197
|
data-wp-component="CardBody"
|
|
198
198
|
>
|
|
199
199
|
Body
|
|
200
200
|
</div>
|
|
201
201
|
<div
|
|
202
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
203
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
202
|
+
- class="components-flex components-card__footer components-card-footer css-ny5e27-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
203
|
+
+ class="components-flex components-card__footer components-card-footer css-wpxcc4-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-small e19lxcc00"
|
|
204
204
|
data-wp-c16t="true"
|
|
205
205
|
data-wp-component="CardFooter"
|
|
206
206
|
>
|
|
@@ -469,15 +469,15 @@ Snapshot Diff:
|
|
|
469
469
|
</div>
|
|
470
470
|
<div
|
|
471
471
|
aria-hidden="true"
|
|
472
|
-
- class="components-elevation css-
|
|
473
|
-
+ class="components-elevation css-
|
|
472
|
+
- class="components-elevation css-1gw374p-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
473
|
+
+ class="components-elevation css-12og79l-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
474
474
|
data-wp-c16t="true"
|
|
475
475
|
data-wp-component="Elevation"
|
|
476
476
|
/>
|
|
477
477
|
<div
|
|
478
478
|
aria-hidden="true"
|
|
479
|
-
- class="components-elevation css-
|
|
480
|
-
+ class="components-elevation css-
|
|
479
|
+
- class="components-elevation css-1570405-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
480
|
+
+ class="components-elevation css-12og79l-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
481
481
|
data-wp-c16t="true"
|
|
482
482
|
data-wp-component="Elevation"
|
|
483
483
|
/>
|
|
@@ -34,6 +34,11 @@ const meta: Meta< typeof CheckboxControl > = {
|
|
|
34
34
|
exclude: [ 'heading' ],
|
|
35
35
|
},
|
|
36
36
|
docs: { canvas: { sourceState: 'shown' } },
|
|
37
|
+
componentStatus: {
|
|
38
|
+
status: 'stable',
|
|
39
|
+
whereUsed: 'global',
|
|
40
|
+
notes: 'Will be superseded by `CheckboxControl` in `@wordpress/ui`, but continue using for now.',
|
|
41
|
+
},
|
|
37
42
|
},
|
|
38
43
|
};
|
|
39
44
|
export default meta;
|
|
@@ -38,6 +38,11 @@ const meta: Meta< typeof CircularOptionPicker > = {
|
|
|
38
38
|
canvas: { sourceState: 'shown' },
|
|
39
39
|
source: { excludeDecorators: true },
|
|
40
40
|
},
|
|
41
|
+
componentStatus: {
|
|
42
|
+
status: 'use-with-caution',
|
|
43
|
+
whereUsed: 'global',
|
|
44
|
+
notes: 'Mostly intended for internal use.',
|
|
45
|
+
},
|
|
41
46
|
},
|
|
42
47
|
decorators: [
|
|
43
48
|
// Share current color state between main component, `actions` and `options`
|
|
@@ -32,7 +32,7 @@ export default function ClipboardButton( {
|
|
|
32
32
|
alternative: 'wp.compose.useCopyToClipboard',
|
|
33
33
|
} );
|
|
34
34
|
|
|
35
|
-
const timeoutIdRef = useRef< NodeJS.Timeout >();
|
|
35
|
+
const timeoutIdRef = useRef< NodeJS.Timeout >( undefined );
|
|
36
36
|
const ref = useCopyToClipboard( text, () => {
|
|
37
37
|
onCopy();
|
|
38
38
|
if ( timeoutIdRef.current ) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { Meta,
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -25,15 +25,21 @@ const meta: Meta< typeof ColorPalette > = {
|
|
|
25
25
|
parameters: {
|
|
26
26
|
controls: { expanded: true },
|
|
27
27
|
docs: { canvas: { sourceState: 'shown' } },
|
|
28
|
+
componentStatus: {
|
|
29
|
+
status: 'stable',
|
|
30
|
+
whereUsed: 'global',
|
|
31
|
+
},
|
|
28
32
|
},
|
|
29
33
|
};
|
|
30
34
|
export default meta;
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
type ColorPaletteStory = StoryObj< typeof ColorPalette >;
|
|
37
|
+
|
|
38
|
+
const Template = ( {
|
|
33
39
|
onChange,
|
|
34
40
|
value,
|
|
35
41
|
...args
|
|
36
|
-
} ) => {
|
|
42
|
+
}: React.ComponentProps< typeof ColorPalette > ) => {
|
|
37
43
|
const [ color, setColor ] = useState< string | undefined >( value );
|
|
38
44
|
|
|
39
45
|
return (
|
|
@@ -48,49 +54,55 @@ const Template: StoryFn< typeof ColorPalette > = ( {
|
|
|
48
54
|
);
|
|
49
55
|
};
|
|
50
56
|
|
|
51
|
-
export const Default =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
export const Default: ColorPaletteStory = {
|
|
58
|
+
render: Template,
|
|
59
|
+
args: {
|
|
60
|
+
colors: [
|
|
61
|
+
{ name: 'Red', color: '#f00' },
|
|
62
|
+
{ name: 'White', color: '#fff' },
|
|
63
|
+
{ name: 'Blue', color: '#00f' },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
58
66
|
};
|
|
59
67
|
|
|
60
|
-
export const InitialValue =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
export const InitialValue: ColorPaletteStory = {
|
|
69
|
+
render: Template,
|
|
70
|
+
args: {
|
|
71
|
+
colors: [
|
|
72
|
+
{ name: 'Red', color: '#f00' },
|
|
73
|
+
{ name: 'White', color: '#fff' },
|
|
74
|
+
{ name: 'Blue', color: '#00f' },
|
|
75
|
+
],
|
|
76
|
+
value: '#00f',
|
|
77
|
+
},
|
|
68
78
|
};
|
|
69
79
|
|
|
70
|
-
export const MultipleOrigins =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
export const MultipleOrigins: ColorPaletteStory = {
|
|
81
|
+
render: Template,
|
|
82
|
+
args: {
|
|
83
|
+
colors: [
|
|
84
|
+
{
|
|
85
|
+
name: 'Primary colors',
|
|
86
|
+
colors: [
|
|
87
|
+
{ name: 'Red', color: '#f00' },
|
|
88
|
+
{ name: 'Yellow', color: '#ff0' },
|
|
89
|
+
{ name: 'Blue', color: '#00f' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Secondary colors',
|
|
94
|
+
colors: [
|
|
95
|
+
{ name: 'Orange', color: '#f60' },
|
|
96
|
+
{ name: 'Green', color: '#0f0' },
|
|
97
|
+
{ name: 'Purple', color: '#60f' },
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
90
102
|
};
|
|
91
103
|
|
|
92
|
-
export const CSSVariables:
|
|
93
|
-
|
|
104
|
+
export const CSSVariables: ColorPaletteStory = {
|
|
105
|
+
render: ( args ) => (
|
|
94
106
|
<div
|
|
95
107
|
style={ {
|
|
96
108
|
'--red': '#f00',
|
|
@@ -100,12 +112,12 @@ export const CSSVariables: StoryFn< typeof ColorPalette > = ( args ) => {
|
|
|
100
112
|
>
|
|
101
113
|
<Template { ...args } />
|
|
102
114
|
</div>
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
),
|
|
116
|
+
args: {
|
|
117
|
+
colors: [
|
|
118
|
+
{ name: 'Red', color: 'var(--red)' },
|
|
119
|
+
{ name: 'Yellow', color: 'var(--yellow)' },
|
|
120
|
+
{ name: 'Blue', color: 'var(--blue)' },
|
|
121
|
+
],
|
|
122
|
+
},
|
|
111
123
|
};
|
|
@@ -17,9 +17,7 @@ import type { ColorCopyButtonProps } from './types';
|
|
|
17
17
|
export const ColorCopyButton = ( props: ColorCopyButtonProps ) => {
|
|
18
18
|
const { color, colorType } = props;
|
|
19
19
|
const [ copiedColor, setCopiedColor ] = useState< string | null >( null );
|
|
20
|
-
const copyTimerRef = useRef<
|
|
21
|
-
ReturnType< typeof setTimeout > | undefined
|
|
22
|
-
>();
|
|
20
|
+
const copyTimerRef = useRef< ReturnType< typeof setTimeout > >( undefined );
|
|
23
21
|
const copyRef = useCopyToClipboard< HTMLDivElement >(
|
|
24
22
|
() => {
|
|
25
23
|
switch ( colorType ) {
|
|
@@ -48,6 +48,11 @@ const meta: Meta< typeof ComboboxControl > = {
|
|
|
48
48
|
parameters: {
|
|
49
49
|
controls: { expanded: true },
|
|
50
50
|
docs: { canvas: { sourceState: 'shown' } },
|
|
51
|
+
componentStatus: {
|
|
52
|
+
status: 'stable',
|
|
53
|
+
whereUsed: 'global',
|
|
54
|
+
notes: 'Will be superseded by `SearchableSelectControl` in `@wordpress/ui`, but continue using for now.',
|
|
55
|
+
},
|
|
51
56
|
},
|
|
52
57
|
};
|
|
53
58
|
export default meta;
|
|
@@ -47,6 +47,10 @@ const meta: Meta< typeof Composite > = {
|
|
|
47
47
|
docs: {
|
|
48
48
|
canvas: { sourceState: 'shown' },
|
|
49
49
|
},
|
|
50
|
+
componentStatus: {
|
|
51
|
+
status: 'stable',
|
|
52
|
+
whereUsed: 'global',
|
|
53
|
+
},
|
|
50
54
|
},
|
|
51
55
|
decorators: [
|
|
52
56
|
( Story ) => {
|
|
@@ -235,7 +239,7 @@ const Fill = ( { children }: { children: React.ReactNode } ) => {
|
|
|
235
239
|
|
|
236
240
|
// Render all context providers forwarded by the Slot via fillProps.
|
|
237
241
|
return forwardedContext.reduce(
|
|
238
|
-
( inner: JSX.Element, [ Provider, props ] ) => (
|
|
242
|
+
( inner: React.JSX.Element, [ Provider, props ] ) => (
|
|
239
243
|
<Provider { ...props }>{ inner }</Provider>
|
|
240
244
|
),
|
|
241
245
|
innerMarkup
|
|
@@ -35,8 +35,8 @@ const UnconnectedConfirmDialog = (
|
|
|
35
35
|
|
|
36
36
|
const cx = useCx();
|
|
37
37
|
const wrapperClassName = cx( styles.wrapper );
|
|
38
|
-
const cancelButtonRef = useRef();
|
|
39
|
-
const confirmButtonRef = useRef();
|
|
38
|
+
const cancelButtonRef = useRef< HTMLButtonElement >( null );
|
|
39
|
+
const confirmButtonRef = useRef< HTMLButtonElement >( null );
|
|
40
40
|
|
|
41
41
|
const [ isOpen, setIsOpen ] = useState< boolean >();
|
|
42
42
|
const [ shouldSelfClose, setShouldSelfClose ] = useState< boolean >();
|