@wordpress/components 33.0.0 → 33.1.1-next.v.202605131006.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/build/alignment-matrix-control/cell.cjs +79 -5
- package/build/alignment-matrix-control/cell.cjs.map +3 -3
- package/build/alignment-matrix-control/index.cjs +79 -5
- package/build/alignment-matrix-control/index.cjs.map +3 -3
- package/build/angle-picker-control/angle-circle.cjs +79 -5
- package/build/angle-picker-control/angle-circle.cjs.map +3 -3
- package/build/autocomplete/autocompleter-ui.cjs.map +2 -2
- package/build/color-palette/index.cjs +14 -8
- package/build/color-palette/index.cjs.map +2 -2
- package/build/color-palette/utils.cjs +9 -2
- package/build/color-palette/utils.cjs.map +2 -2
- package/build/color-picker/hex-input.cjs +1 -1
- package/build/color-picker/hex-input.cjs.map +2 -2
- package/build/custom-gradient-picker/index.cjs.map +2 -2
- package/build/focal-point-picker/index.cjs.map +2 -2
- package/build/modal/index.cjs +1 -5
- package/build/modal/index.cjs.map +2 -2
- package/build/modal/use-modal-exit-animation.cjs +52 -41
- package/build/modal/use-modal-exit-animation.cjs.map +2 -2
- package/build/palette-edit/index.cjs.map +2 -2
- package/build/slot-fill/fill.cjs +2 -2
- package/build/slot-fill/fill.cjs.map +2 -2
- package/build/style-provider/index.cjs +82 -3
- package/build/style-provider/index.cjs.map +4 -4
- package/build/text/styles.cjs +7 -7
- package/build/text/styles.cjs.map +2 -2
- package/build/utils/config-values.cjs +3 -0
- package/build/utils/config-values.cjs.map +2 -2
- package/build/utils/dropdown-motion.cjs +2 -2
- package/build/utils/dropdown-motion.cjs.map +2 -2
- package/build-module/alignment-matrix-control/cell.mjs +79 -5
- package/build-module/alignment-matrix-control/cell.mjs.map +3 -3
- package/build-module/alignment-matrix-control/index.mjs +79 -5
- package/build-module/alignment-matrix-control/index.mjs.map +3 -3
- package/build-module/angle-picker-control/angle-circle.mjs +79 -5
- package/build-module/angle-picker-control/angle-circle.mjs.map +3 -3
- package/build-module/autocomplete/autocompleter-ui.mjs.map +2 -2
- package/build-module/color-palette/index.mjs +14 -8
- package/build-module/color-palette/index.mjs.map +2 -2
- package/build-module/color-palette/utils.mjs +9 -2
- package/build-module/color-palette/utils.mjs.map +2 -2
- package/build-module/color-picker/hex-input.mjs +1 -1
- package/build-module/color-picker/hex-input.mjs.map +2 -2
- package/build-module/custom-gradient-picker/index.mjs.map +2 -2
- package/build-module/focal-point-picker/index.mjs.map +2 -2
- package/build-module/modal/index.mjs +1 -5
- package/build-module/modal/index.mjs.map +2 -2
- package/build-module/modal/use-modal-exit-animation.mjs +52 -41
- package/build-module/modal/use-modal-exit-animation.mjs.map +2 -2
- package/build-module/palette-edit/index.mjs.map +2 -2
- package/build-module/slot-fill/fill.mjs +2 -2
- package/build-module/slot-fill/fill.mjs.map +2 -2
- package/build-module/style-provider/index.mjs +82 -3
- package/build-module/style-provider/index.mjs.map +4 -4
- package/build-module/text/styles.mjs +7 -7
- package/build-module/text/styles.mjs.map +2 -2
- package/build-module/utils/config-values.mjs +3 -0
- package/build-module/utils/config-values.mjs.map +2 -2
- package/build-module/utils/dropdown-motion.mjs +2 -2
- package/build-module/utils/dropdown-motion.mjs.map +2 -2
- package/build-style/style-rtl.css +64 -32
- package/build-style/style.css +64 -32
- package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -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/index.d.ts.map +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.map +1 -1
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts +1 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
- package/build-types/autocomplete/get-default-use-items.d.ts.map +1 -1
- package/build-types/autocomplete/index.d.ts +3 -3
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/badge/index.d.ts.map +1 -1
- package/build-types/badge/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/hooks.d.ts +4 -4
- package/build-types/base-control/index.d.ts +2 -2
- package/build-types/base-control/index.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/component.d.ts +4 -4
- package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +124 -124
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +117 -117
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +4 -4
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +116 -116
- package/build-types/border-box-control/border-box-control-visualizer/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +106 -106
- package/build-types/border-box-control/stories/index.story.d.ts +5 -5
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/styles.d.ts +3 -3
- package/build-types/border-box-control/styles.d.ts.map +1 -1
- package/build-types/border-box-control/utils.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +5 -5
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +129 -129
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts +3 -3
- package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +122 -122
- package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-style-picker/component.d.ts +1 -1
- package/build-types/border-control/border-control-style-picker/component.d.ts.map +1 -1
- package/build-types/border-control/stories/index.story.d.ts +30 -30
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/styles.d.ts +2 -2
- package/build-types/border-control/styles.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts +1 -1
- package/build-types/box-control/index.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 +15 -15
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +2 -2
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/deprecated.d.ts +34 -34
- package/build-types/button/deprecated.d.ts.map +1 -1
- package/build-types/button/index.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/button-group/index.d.ts.map +1 -1
- package/build-types/button-group/stories/index.story.d.ts.map +1 -1
- package/build-types/calendar/date-calendar/index.d.ts.map +1 -1
- package/build-types/calendar/date-range-calendar/index.d.ts +1 -1
- package/build-types/calendar/date-range-calendar/index.d.ts.map +1 -1
- package/build-types/calendar/stories/date-calendar.story.d.ts.map +1 -1
- package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +1 -1
- package/build-types/calendar/test/__utils__/index.d.ts.map +1 -1
- package/build-types/calendar/utils/constants.d.ts +2 -2
- package/build-types/calendar/utils/constants.d.ts.map +1 -1
- package/build-types/calendar/utils/use-localization-props.d.ts +3 -3
- package/build-types/calendar/utils/use-localization-props.d.ts.map +1 -1
- package/build-types/card/card/component.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +110 -110
- package/build-types/card/card-body/component.d.ts.map +1 -1
- package/build-types/card/card-body/hook.d.ts +107 -107
- package/build-types/card/card-divider/component.d.ts +2 -2
- package/build-types/card/card-divider/component.d.ts.map +1 -1
- package/build-types/card/card-divider/hook.d.ts +108 -108
- package/build-types/card/card-footer/component.d.ts.map +1 -1
- package/build-types/card/card-footer/hook.d.ts +113 -113
- package/build-types/card/card-header/component.d.ts.map +1 -1
- package/build-types/card/card-header/hook.d.ts +113 -113
- package/build-types/card/card-media/component.d.ts.map +1 -1
- package/build-types/card/card-media/hook.d.ts +106 -106
- package/build-types/card/get-padding-by-size.d.ts +1 -1
- package/build-types/card/get-padding-by-size.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts.map +1 -1
- package/build-types/checkbox-control/index.d.ts.map +1 -1
- package/build-types/checkbox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker.d.ts +8 -0
- package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
- package/build-types/circular-option-picker/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-indicator/index.d.ts +1 -1
- package/build-types/color-indicator/index.d.ts.map +1 -1
- package/build-types/color-indicator/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +1 -0
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +5 -5
- package/build-types/color-palette/types.d.ts +16 -2
- package/build-types/color-palette/types.d.ts.map +1 -1
- package/build-types/color-palette/utils.d.ts +1 -1
- package/build-types/color-palette/utils.d.ts.map +1 -1
- package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
- package/build-types/color-picker/color-input.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +1 -1
- package/build-types/color-picker/component.d.ts.map +1 -1
- package/build-types/color-picker/hex-input.d.ts.map +1 -1
- package/build-types/color-picker/hsl-input.d.ts.map +1 -1
- package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
- package/build-types/color-picker/legacy-adapter.d.ts.map +1 -1
- package/build-types/color-picker/picker.d.ts.map +1 -1
- package/build-types/color-picker/rgb-input.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 +20 -20
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/combobox-control/index.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +8 -8
- 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/index.d.ts +25 -25
- package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/legacy/stories/utils.d.ts.map +1 -1
- package/build-types/composite/stories/index.story.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/context/constants.d.ts +3 -3
- package/build-types/context/constants.d.ts.map +1 -1
- package/build-types/context/context-system-provider.d.ts +4 -4
- package/build-types/context/context-system-provider.d.ts.map +1 -1
- package/build-types/context/use-context-system.d.ts +4 -4
- package/build-types/context/use-context-system.d.ts.map +1 -1
- package/build-types/context/utils.d.ts +2 -2
- package/build-types/context/utils.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/constants.d.ts +2 -2
- package/build-types/custom-gradient-picker/constants.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/serializer.d.ts +3 -3
- package/build-types/custom-gradient-picker/serializer.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-select-control/index.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/custom-select.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/item.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +6 -6
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/styles.d.ts +6 -6
- package/build-types/dashicon/index.d.ts.map +1 -1
- package/build-types/date-time/date-picker/index.d.ts +1 -1
- package/build-types/date-time/date-picker/index.d.ts.map +1 -1
- package/build-types/date-time/date-picker/styles.d.ts +9 -9
- package/build-types/date-time/date-picker/use-lilius/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/index.d.ts +1 -1
- package/build-types/date-time/date-time/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/styles.d.ts +4 -4
- package/build-types/date-time/index.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/date-time/time-picker/index.d.ts +1 -1
- package/build-types/date-time/time-picker/index.d.ts.map +1 -1
- package/build-types/date-time/time-picker/styles.d.ts +28 -28
- package/build-types/date-time/time-picker/time-input/index.d.ts +1 -1
- package/build-types/date-time/time-picker/time-input/index.d.ts.map +1 -1
- package/build-types/date-time/time-picker/timezone.d.ts.map +1 -1
- package/build-types/date-time/utils.d.ts.map +1 -1
- package/build-types/disabled/context.d.ts.map +1 -1
- package/build-types/disabled/index.d.ts +2 -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/disclosure/index.d.ts.map +1 -1
- package/build-types/divider/component.d.ts +2 -2
- package/build-types/divider/component.d.ts.map +1 -1
- package/build-types/divider/stories/index.story.d.ts.map +1 -1
- package/build-types/divider/styles.d.ts +2 -2
- package/build-types/draggable/index.d.ts +1 -1
- package/build-types/draggable/index.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/drop-zone/provider.d.ts +1 -1
- package/build-types/drop-zone/provider.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
- package/build-types/dropdown/index.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts +1 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-swatch.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/component.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +105 -105
- 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/context.d.ts +2 -2
- package/build-types/flex/flex/component.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +108 -108
- package/build-types/flex/flex-block/component.d.ts.map +1 -1
- package/build-types/flex/flex-block/hook.d.ts +106 -106
- package/build-types/flex/flex-item/component.d.ts.map +1 -1
- package/build-types/flex/flex-item/hook.d.ts +106 -106
- package/build-types/flex/stories/index.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/controls.d.ts +1 -1
- package/build-types/focal-point-picker/controls.d.ts.map +1 -1
- package/build-types/focal-point-picker/index.d.ts +16 -11
- package/build-types/focal-point-picker/index.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +16 -16
- 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 +254 -254
- package/build-types/focal-point-picker/utils.d.ts.map +1 -1
- package/build-types/font-size-picker/constants.d.ts +2 -2
- package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
- package/build-types/font-size-picker/font-size-picker-toggle-group.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.d.ts +5 -5
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/form-toggle/index.d.ts +1 -1
- package/build-types/form-toggle/index.d.ts.map +1 -1
- package/build-types/form-toggle/stories/index.story.d.ts.map +1 -1
- package/build-types/form-token-field/index.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/form-token-field/suggestions-list.d.ts +1 -1
- package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
- package/build-types/form-token-field/token-input.d.ts +1 -1
- package/build-types/form-token-field/token-input.d.ts.map +1 -1
- package/build-types/form-token-field/token.d.ts +1 -1
- package/build-types/form-token-field/token.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/component.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +106 -106
- package/build-types/grid/stories/index.story.d.ts.map +1 -1
- package/build-types/grid/utils.d.ts.map +1 -1
- package/build-types/guide/index.d.ts +1 -1
- package/build-types/guide/index.d.ts.map +1 -1
- package/build-types/guide/page-control.d.ts +1 -1
- package/build-types/guide/page-control.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/h-stack/component.d.ts +3 -3
- package/build-types/h-stack/component.d.ts.map +1 -1
- package/build-types/h-stack/hook.d.ts +107 -107
- package/build-types/h-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/h-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +4 -4
- package/build-types/heading/component.d.ts.map +1 -1
- package/build-types/heading/hook.d.ts +107 -107
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
- package/build-types/higher-order/with-constrained-tabbing/index.d.ts.map +1 -1
- package/build-types/higher-order/with-fallback-styles/index.d.ts +1 -1
- package/build-types/higher-order/with-fallback-styles/index.d.ts.map +1 -1
- package/build-types/higher-order/with-filters/index.d.ts +2 -2
- package/build-types/higher-order/with-focus-outside/index.d.ts.map +1 -1
- package/build-types/higher-order/with-focus-return/index.d.ts.map +1 -1
- package/build-types/higher-order/with-notices/index.d.ts +3 -3
- package/build-types/higher-order/with-notices/index.d.ts.map +1 -1
- package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
- 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/backdrop.d.ts.map +1 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/input-field.d.ts +1 -1
- package/build-types/input-control/input-field.d.ts.map +1 -1
- package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/reducer/reducer.d.ts +9 -9
- package/build-types/input-control/reducer/reducer.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 +3 -3
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/isolated-event-container/index.d.ts.map +1 -1
- package/build-types/item-group/item/component.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +104 -104
- package/build-types/item-group/item-group/component.d.ts.map +1 -1
- package/build-types/item-group/item-group/hook.d.ts +105 -105
- package/build-types/item-group/stories/index.story.d.ts.map +1 -1
- package/build-types/item-group/styles.d.ts +1 -1
- package/build-types/item-group/styles.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/index.d.ts +1 -1
- package/build-types/keyboard-shortcuts/index.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +1 -2
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/menu/group-label.d.ts +1 -1
- package/build-types/menu/group.d.ts +1 -1
- package/build-types/menu/index.d.ts +5 -5
- package/build-types/menu/index.d.ts.map +1 -1
- 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/separator.d.ts +1 -1
- package/build-types/menu/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/styles.d.ts +7 -7
- package/build-types/menu-group/index.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/index.d.ts +2 -2
- package/build-types/menu-item/index.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +8 -8
- package/build-types/menu-item/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-items-choice/index.d.ts +1 -1
- package/build-types/menu-items-choice/index.d.ts.map +1 -1
- package/build-types/menu-items-choice/stories/index.story.d.ts.map +1 -1
- package/build-types/mobile/image/constants.d.ts +4 -4
- package/build-types/mobile/image/constants.d.ts.map +1 -1
- 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/use-modal-exit-animation.d.ts +0 -3
- package/build-types/modal/use-modal-exit-animation.d.ts.map +1 -1
- package/build-types/navigable-container/container.d.ts +2 -2
- package/build-types/navigable-container/container.d.ts.map +1 -1
- package/build-types/navigable-container/menu.d.ts +1 -1
- package/build-types/navigable-container/menu.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/navigable-container/tabbable.d.ts +2 -2
- package/build-types/navigable-container/tabbable.d.ts.map +1 -1
- package/build-types/navigation/back-button/index.d.ts.map +1 -1
- package/build-types/navigation/group/index.d.ts +1 -1
- package/build-types/navigation/group/index.d.ts.map +1 -1
- package/build-types/navigation/index.d.ts +1 -1
- package/build-types/navigation/index.d.ts.map +1 -1
- package/build-types/navigation/item/index.d.ts.map +1 -1
- package/build-types/navigation/item/use-navigation-tree-item.d.ts.map +1 -1
- package/build-types/navigation/menu/index.d.ts.map +1 -1
- package/build-types/navigation/menu/menu-title-search.d.ts.map +1 -1
- package/build-types/navigation/menu/menu-title.d.ts +1 -1
- package/build-types/navigation/menu/menu-title.d.ts.map +1 -1
- package/build-types/navigation/menu/search-no-results-found.d.ts +1 -1
- package/build-types/navigation/menu/search-no-results-found.d.ts.map +1 -1
- package/build-types/navigation/menu/use-navigation-tree-menu.d.ts.map +1 -1
- package/build-types/navigation/stories/index.story.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +6 -6
- package/build-types/navigation/utils.d.ts.map +1 -1
- package/build-types/navigator/index.d.ts +12 -12
- package/build-types/navigator/legacy.d.ts +18 -18
- package/build-types/navigator/navigator-back-button/component.d.ts +6 -6
- package/build-types/navigator/navigator-back-button/hook.d.ts +136 -136
- package/build-types/navigator/navigator-button/component.d.ts +6 -6
- package/build-types/navigator/navigator-button/hook.d.ts +136 -136
- package/build-types/navigator/navigator-screen/use-screen-animate-presence.d.ts +1 -1
- package/build-types/navigator/navigator-screen/use-screen-animate-presence.d.ts.map +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts +6 -6
- package/build-types/navigator/stories/index.story.d.ts.map +1 -1
- package/build-types/navigator/styles.d.ts.map +1 -1
- package/build-types/notice/index.d.ts +1 -1
- package/build-types/notice/index.d.ts.map +1 -1
- package/build-types/notice/list.d.ts +1 -1
- package/build-types/notice/list.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +7 -7
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +7 -7
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts +1 -1
- package/build-types/palette-edit/index.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 +759 -759
- package/build-types/panel/body.d.ts.map +1 -1
- package/build-types/panel/header.d.ts.map +1 -1
- package/build-types/panel/index.d.ts.map +1 -1
- package/build-types/panel/row.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/placeholder/index.d.ts.map +1 -1
- package/build-types/placeholder/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/overlay-middlewares.d.ts +2 -2
- package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
- package/build-types/popover/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/test/utils/index.d.ts.map +1 -1
- package/build-types/popover/utils.d.ts +3 -3
- package/build-types/popover/utils.d.ts.map +1 -1
- package/build-types/progress-bar/index.d.ts +1 -1
- package/build-types/progress-bar/index.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/author-select.d.ts +1 -1
- package/build-types/query-controls/author-select.d.ts.map +1 -1
- package/build-types/query-controls/index.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/radio-control/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-group/index.d.ts.map +1 -1
- package/build-types/radio-group/radio.d.ts +1 -1
- package/build-types/radio-group/radio.d.ts.map +1 -1
- package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +8 -8
- 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/input-range.d.ts.map +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 +9 -9
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/range-control/utils.d.ts +1 -1
- package/build-types/range-control/utils.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/label.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 +3 -3
- package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts +2 -2
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/responsive-wrapper/index.d.ts +1 -1
- package/build-types/responsive-wrapper/index.d.ts.map +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/scroll-lock/index.d.ts.map +1 -1
- package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
- package/build-types/scrollable/component.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +106 -106
- package/build-types/scrollable/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/index.d.ts +9 -9
- package/build-types/search-control/index.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +9 -9
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/chevron-down.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts +1 -1
- package/build-types/select-control/index.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/index.d.ts.map +1 -1
- 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/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/context.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +2 -2
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts +3 -3
- package/build-types/snackbar/index.d.ts.map +1 -1
- package/build-types/snackbar/list.d.ts +1 -1
- package/build-types/snackbar/list.d.ts.map +1 -1
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
- package/build-types/spacer/component.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +106 -106
- package/build-types/spacer/stories/index.story.d.ts.map +1 -1
- package/build-types/spinner/index.d.ts.map +1 -1
- package/build-types/spinner/stories/index.story.d.ts.map +1 -1
- package/build-types/style-provider/index.d.ts +0 -3
- package/build-types/style-provider/index.d.ts.map +1 -1
- package/build-types/style-provider/test/index.d.ts +2 -0
- package/build-types/style-provider/test/index.d.ts.map +1 -0
- package/build-types/surface/component.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +106 -106
- package/build-types/surface/stories/index.story.d.ts.map +1 -1
- package/build-types/surface/styles.d.ts +1 -1
- package/build-types/surface/styles.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/index.d.ts +1 -1
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/styles.d.ts +3 -3
- package/build-types/tabs/tablist.d.ts +1 -1
- package/build-types/text/component.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +106 -106
- 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/utils.d.ts +1 -1
- package/build-types/text/utils.d.ts.map +1 -1
- package/build-types/text-control/index.d.ts +3 -3
- package/build-types/text-control/index.d.ts.map +1 -1
- package/build-types/text-control/stories/index.story.d.ts.map +1 -1
- package/build-types/text-highlight/index.d.ts +4 -19
- package/build-types/text-highlight/index.d.ts.map +1 -1
- package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts +3 -3
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/build-types/textarea-control/stories/index.story.d.ts.map +1 -1
- package/build-types/theme/color-algorithms.d.ts +1 -1
- package/build-types/theme/color-algorithms.d.ts.map +1 -1
- package/build-types/theme/index.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/theme/styles.d.ts.map +1 -1
- package/build-types/tip/index.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 +2 -2
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +4 -4
- package/build-types/toggle-control/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-group-control/context.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/as-button-group.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +3 -3
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.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/toggle-group-control-option-icon/component.d.ts.map +1 -1
- package/build-types/toolbar/index.d.ts +6 -6
- package/build-types/toolbar/index.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/toolbar-button-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/styles.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +128 -128
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +116 -116
- package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +108 -108
- 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/cell.d.ts.map +1 -1
- package/build-types/tree-grid/index.d.ts.map +1 -1
- package/build-types/tree-grid/item.d.ts.map +1 -1
- package/build-types/tree-grid/roving-tab-index-item.d.ts.map +1 -1
- package/build-types/tree-grid/roving-tab-index.d.ts +1 -1
- package/build-types/tree-grid/roving-tab-index.d.ts.map +1 -1
- package/build-types/tree-grid/row.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/component.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +106 -106
- package/build-types/truncate/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/utils.d.ts +5 -5
- package/build-types/truncate/utils.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +2 -2
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +7 -7
- package/build-types/unit-control/unit-select-control.d.ts +1 -1
- package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
- package/build-types/unit-control/utils.d.ts.map +1 -1
- package/build-types/utils/breakpoint-values.d.ts.map +1 -1
- package/build-types/utils/breakpoint.d.ts +8 -1
- package/build-types/utils/breakpoint.d.ts.map +1 -1
- package/build-types/utils/colors-values.d.ts +1 -1
- package/build-types/utils/colors-values.d.ts.map +1 -1
- package/build-types/utils/colors.d.ts +3 -3
- package/build-types/utils/colors.d.ts.map +1 -1
- package/build-types/utils/deprecated-36px-size.d.ts +1 -1
- package/build-types/utils/deprecated-36px-size.d.ts.map +1 -1
- package/build-types/utils/dropdown-motion.d.ts +3 -3
- package/build-types/utils/dropdown-motion.d.ts.map +1 -1
- package/build-types/utils/font-values.d.ts.map +1 -1
- package/build-types/utils/font.d.ts +5 -2
- package/build-types/utils/font.d.ts.map +1 -1
- package/build-types/utils/get-node-text.d.ts.map +1 -1
- package/build-types/utils/hooks/index.d.ts +4 -4
- package/build-types/utils/hooks/index.d.ts.map +1 -1
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts +1 -1
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts.map +1 -1
- package/build-types/utils/hooks/use-controlled-state.d.ts +2 -8
- package/build-types/utils/hooks/use-controlled-state.d.ts.map +1 -1
- package/build-types/utils/hooks/use-controlled-value.d.ts +1 -1
- package/build-types/utils/hooks/use-controlled-value.d.ts.map +1 -1
- package/build-types/utils/hooks/use-update-effect.d.ts +1 -1
- package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
- package/build-types/utils/index.d.ts +2 -2
- package/build-types/utils/index.d.ts.map +1 -1
- package/build-types/utils/math.d.ts +5 -5
- package/build-types/utils/math.d.ts.map +1 -1
- package/build-types/utils/rtl.d.ts +11 -16
- package/build-types/utils/rtl.d.ts.map +1 -1
- package/build-types/utils/strings.d.ts.map +1 -1
- package/build-types/utils/style-mixins.d.ts +9 -9
- package/build-types/utils/style-mixins.d.ts.map +1 -1
- package/build-types/utils/use-responsive-value.d.ts.map +1 -1
- package/build-types/utils/values.d.ts +19 -5
- package/build-types/utils/values.d.ts.map +1 -1
- package/build-types/utils/with-ignore-ime-events.d.ts.map +1 -1
- package/build-types/v-stack/component.d.ts +3 -3
- package/build-types/v-stack/component.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +107 -107
- package/build-types/v-stack/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +4 -4
- package/build-types/v-stack/stories/index.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/checkbox-control.d.ts +2 -2
- package/build-types/validated-form-controls/components/combobox-control.d.ts +2 -2
- package/build-types/validated-form-controls/components/number-control.d.ts +7 -7
- package/build-types/validated-form-controls/components/radio-control.d.ts +2 -2
- package/build-types/validated-form-controls/components/radio-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts +8 -8
- package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/select-control.d.ts +1 -1
- package/build-types/validated-form-controls/components/stories/checkbox-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/number-control.story.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/stories/radio-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/select-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/text-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/text-control.d.ts +3 -3
- package/build-types/validated-form-controls/components/textarea-control.d.ts +3 -3
- package/build-types/validated-form-controls/components/toggle-control.d.ts +2 -2
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts +3 -3
- package/build-types/validated-form-controls/control-with-error.d.ts +1 -1
- package/build-types/validated-form-controls/validity-indicator.d.ts +1 -1
- package/build-types/validated-form-controls/validity-indicator.d.ts.map +1 -1
- package/build-types/view/component.d.ts +251 -251
- package/build-types/view/component.d.ts.map +1 -1
- package/build-types/view/stories/index.story.d.ts.map +1 -1
- package/build-types/visually-hidden/component.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/build-types/z-stack/stories/index.story.d.ts.map +1 -1
- package/package.json +24 -23
- package/src/alignment-matrix-control/stories/index.story.tsx +1 -1
- package/src/angle-picker-control/stories/index.story.tsx +1 -1
- package/src/autocomplete/autocompleter-ui.tsx +0 -1
- package/src/base-control/stories/index.story.tsx +1 -1
- package/src/border-box-control/stories/index.story.tsx +1 -1
- package/src/border-control/stories/index.story.tsx +1 -1
- package/src/button/stories/index.story.tsx +1 -1
- package/src/button/style.scss +2 -0
- package/src/checkbox-control/stories/index.story.tsx +1 -1
- package/src/color-indicator/stories/index.story.tsx +1 -1
- package/src/color-palette/index.tsx +25 -9
- package/src/color-palette/stories/index.story.tsx +21 -3
- package/src/color-palette/test/index.tsx +152 -1
- package/src/color-palette/test/utils.ts +18 -0
- package/src/color-palette/types.ts +19 -2
- package/src/color-palette/utils.ts +14 -2
- package/src/color-picker/hex-input.tsx +1 -1
- package/src/color-picker/stories/index.story.tsx +1 -1
- package/src/color-picker/test/index.tsx +24 -2
- package/src/combobox-control/stories/index.story.tsx +1 -1
- package/src/composite/legacy/test/index.tsx +13 -13
- package/src/composite/stories/index.story.tsx +1 -1
- package/src/confirm-dialog/stories/index.story.tsx +1 -1
- package/src/custom-gradient-picker/index.tsx +0 -1
- package/src/custom-select-control/stories/index.story.tsx +1 -1
- package/src/disabled/stories/index.story.tsx +1 -1
- package/src/drop-zone/stories/index.story.tsx +1 -1
- package/src/dropdown/stories/index.story.tsx +1 -1
- package/src/duotone-picker/stories/duotone-picker.story.tsx +1 -1
- package/src/duotone-picker/stories/duotone-swatch.story.tsx +1 -1
- package/src/external-link/style.scss +4 -0
- package/src/focal-point-picker/README.md +12 -8
- package/src/focal-point-picker/index.tsx +16 -11
- package/src/focal-point-picker/stories/index.story.tsx +1 -1
- package/src/font-size-picker/stories/index.story.tsx +1 -1
- package/src/form-file-upload/stories/index.story.tsx +1 -1
- package/src/form-toggle/stories/index.story.tsx +1 -1
- package/src/form-token-field/stories/index.story.tsx +1 -1
- package/src/gradient-picker/stories/index.story.tsx +1 -1
- package/src/guide/stories/index.story.tsx +1 -1
- package/src/higher-order/with-notices/test/index.tsx +12 -10
- package/src/icon/stories/index.story.tsx +1 -1
- package/src/input-control/stories/index.story.tsx +1 -1
- package/src/item-group/stories/index.story.tsx +1 -1
- package/src/keyboard-shortcuts/stories/index.story.tsx +1 -1
- package/src/menu/stories/index.story.tsx +1 -1
- package/src/menu/test/index.tsx +4 -3
- package/src/menu-group/stories/index.story.tsx +1 -1
- package/src/menu-item/stories/index.story.tsx +1 -1
- package/src/menu-items-choice/stories/index.story.tsx +1 -1
- package/src/modal/index.tsx +2 -7
- package/src/modal/stories/index.story.tsx +1 -1
- package/src/modal/style.scss +68 -24
- package/src/modal/use-modal-exit-animation.ts +10 -7
- package/src/navigator/stories/index.story.tsx +1 -1
- package/src/notice/stories/index.story.tsx +1 -1
- package/src/number-control/stories/index.story.tsx +1 -1
- package/src/palette-edit/index.tsx +0 -1
- package/src/palette-edit/stories/index.story.tsx +1 -1
- package/src/panel/stories/index.story.tsx +1 -1
- package/src/placeholder/stories/index.story.tsx +1 -1
- package/src/popover/stories/index.story.tsx +1 -1
- package/src/popover/style.scss +0 -4
- package/src/progress-bar/stories/index.story.tsx +1 -1
- package/src/query-controls/stories/index.story.tsx +1 -1
- package/src/radio-control/stories/index.story.tsx +1 -1
- package/src/range-control/stories/index.story.tsx +1 -1
- package/src/resizable-box/stories/index.story.tsx +1 -1
- package/src/sandbox/stories/index.story.tsx +1 -1
- package/src/scroll-lock/stories/index.story.tsx +1 -1
- package/src/search-control/stories/index.story.tsx +1 -1
- package/src/select-control/stories/index.story.tsx +1 -1
- package/src/shortcut/stories/index.story.tsx +1 -1
- package/src/slot-fill/fill.tsx +2 -2
- package/src/slot-fill/stories/index.story.tsx +1 -1
- package/src/snackbar/stories/index.story.tsx +1 -1
- package/src/spinner/stories/index.story.tsx +1 -1
- package/src/style-provider/index.tsx +10 -7
- package/src/style-provider/test/index.tsx +38 -0
- package/src/tab-panel/style.scss +2 -2
- package/src/tabs/stories/index.story.tsx +1 -1
- package/src/text/styles.ts +1 -1
- package/src/text/test/index.tsx +1 -1
- package/src/text-control/stories/index.story.tsx +1 -1
- package/src/text-highlight/stories/index.story.tsx +1 -1
- package/src/textarea-control/stories/index.story.tsx +1 -1
- package/src/toggle-control/stories/index.story.tsx +1 -1
- package/src/toggle-group-control/stories/index.story.tsx +1 -1
- package/src/toolbar/stories/index.story.tsx +1 -1
- package/src/tools-panel/stories/index.story.tsx +1 -1
- package/src/tooltip/stories/index.story.tsx +1 -1
- package/src/tree-grid/stories/index.story.tsx +1 -1
- package/src/tree-select/stories/index.story.tsx +1 -1
- package/src/truncate/stories/index.story.tsx +1 -1
- package/src/unit-control/stories/index.story.tsx +1 -1
- package/src/utils/config-values.js +3 -0
- package/src/utils/dropdown-motion.ts +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/view/component.tsx"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEd,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/view/component.tsx"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEd,CAAC;eAEW,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/view/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAiB5B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/view/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAiB5B,CAAC;eACa,IAAI;AAMnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,IAAI,CAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/component.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoBnD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,gHAG1B,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/component.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAoBnD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,gHAG1B,CAAC;eAEa,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CAmBtC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CAmBtC,CAAC;eACa,IAAI;AAEnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,cAAc,CAanD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAE,OAAO,cAAc,CAW9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAE,OAAO,cAAc,CAWpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/z-stack/component.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkD3C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,wGAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/z-stack/component.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkD3C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,wGAAgD,CAAC;eAErD,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/z-stack/stories/index.story.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAmB9B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/z-stack/stories/index.story.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAmB9B,CAAC;eACa,IAAI;AAsCnB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,MAAM,CAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "33.
|
|
3
|
+
"version": "33.1.1-next.v.202605131006.0+2a3d07cab",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -64,29 +64,30 @@
|
|
|
64
64
|
"@types/highlight-words-core": "1.2.1",
|
|
65
65
|
"@types/react": "^18.3.27",
|
|
66
66
|
"@use-gesture/react": "^10.3.1",
|
|
67
|
-
"@wordpress/a11y": "^4.45.0",
|
|
68
|
-
"@wordpress/base-styles": "^
|
|
69
|
-
"@wordpress/compose": "^7.45.0",
|
|
70
|
-
"@wordpress/date": "^5.45.0",
|
|
71
|
-
"@wordpress/deprecated": "^4.45.0",
|
|
72
|
-
"@wordpress/dom": "^4.45.0",
|
|
73
|
-
"@wordpress/element": "^6.45.0",
|
|
74
|
-
"@wordpress/escape-html": "^3.45.0",
|
|
75
|
-
"@wordpress/hooks": "^4.45.0",
|
|
76
|
-
"@wordpress/html-entities": "^4.45.0",
|
|
77
|
-
"@wordpress/i18n": "^6.18.0",
|
|
78
|
-
"@wordpress/icons": "^13.0.0",
|
|
79
|
-
"@wordpress/is-shallow-equal": "^5.45.0",
|
|
80
|
-
"@wordpress/keycodes": "^4.45.0",
|
|
81
|
-
"@wordpress/primitives": "^4.45.0",
|
|
82
|
-
"@wordpress/private-apis": "^1.45.0",
|
|
83
|
-
"@wordpress/rich-text": "^7.45.0",
|
|
84
|
-
"@wordpress/
|
|
67
|
+
"@wordpress/a11y": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
68
|
+
"@wordpress/base-styles": "^8.0.1-next.v.202605131006.0+2a3d07cab",
|
|
69
|
+
"@wordpress/compose": "^7.45.1-next.v.202605131006.0+2a3d07cab",
|
|
70
|
+
"@wordpress/date": "^5.45.1-next.v.202605131006.0+2a3d07cab",
|
|
71
|
+
"@wordpress/deprecated": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
72
|
+
"@wordpress/dom": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
73
|
+
"@wordpress/element": "^6.45.1-next.v.202605131006.0+2a3d07cab",
|
|
74
|
+
"@wordpress/escape-html": "^3.45.1-next.v.202605131006.0+2a3d07cab",
|
|
75
|
+
"@wordpress/hooks": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
76
|
+
"@wordpress/html-entities": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
77
|
+
"@wordpress/i18n": "^6.18.1-next.v.202605131006.0+2a3d07cab",
|
|
78
|
+
"@wordpress/icons": "^13.0.1-next.v.202605131006.0+2a3d07cab",
|
|
79
|
+
"@wordpress/is-shallow-equal": "^5.45.1-next.v.202605131006.0+2a3d07cab",
|
|
80
|
+
"@wordpress/keycodes": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
81
|
+
"@wordpress/primitives": "^4.45.1-next.v.202605131006.0+2a3d07cab",
|
|
82
|
+
"@wordpress/private-apis": "^1.45.1-next.v.202605131006.0+2a3d07cab",
|
|
83
|
+
"@wordpress/rich-text": "^7.45.1-next.v.202605131006.0+2a3d07cab",
|
|
84
|
+
"@wordpress/style-runtime": "^0.1.2-next.v.202605131006.0+2a3d07cab",
|
|
85
|
+
"@wordpress/warning": "^3.45.1-next.v.202605131006.0+2a3d07cab",
|
|
85
86
|
"change-case": "^4.1.2",
|
|
86
87
|
"clsx": "^2.1.1",
|
|
87
88
|
"colord": "^2.7.0",
|
|
88
89
|
"csstype": "^3.2.3",
|
|
89
|
-
"date-fns": "^
|
|
90
|
+
"date-fns": "^4.1.0",
|
|
90
91
|
"deepmerge": "^4.3.0",
|
|
91
92
|
"fast-deep-equal": "^3.1.3",
|
|
92
93
|
"framer-motion": "^11.15.0",
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
"react-colorful": "^5.6.1",
|
|
100
101
|
"react-day-picker": "^9.7.0",
|
|
101
102
|
"remove-accents": "^0.5.0",
|
|
102
|
-
"uuid": "^
|
|
103
|
+
"uuid": "^14.0.0"
|
|
103
104
|
},
|
|
104
105
|
"devDependencies": {
|
|
105
106
|
"@ariakit/test": "^0.4.13",
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"@storybook/react-vite": "^10.2.8",
|
|
108
109
|
"@testing-library/jest-dom": "^6.9.1",
|
|
109
110
|
"@types/jest": "^29.5.14",
|
|
110
|
-
"@wordpress/jest-console": "^8.45.0",
|
|
111
|
+
"@wordpress/jest-console": "^8.45.1-next.v.202605131006.0+2a3d07cab",
|
|
111
112
|
"snapshot-diff": "^0.10.0",
|
|
112
113
|
"storybook": "^10.2.8",
|
|
113
114
|
"timezone-mock": "^1.3.6"
|
|
@@ -119,5 +120,5 @@
|
|
|
119
120
|
"publishConfig": {
|
|
120
121
|
"access": "public"
|
|
121
122
|
},
|
|
122
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "8804fa29bc78a1d98e5a4d40c3e180ddd907016c"
|
|
123
124
|
}
|
|
@@ -96,7 +96,6 @@ export function AutocompleterUI( {
|
|
|
96
96
|
// ensuring a fresh mount (and stable hook identity) when the completer changes.
|
|
97
97
|
const useItems =
|
|
98
98
|
autocompleter.useItems ?? getDefaultUseItems( autocompleter );
|
|
99
|
-
// eslint-disable-next-line react-compiler/react-compiler
|
|
100
99
|
const [ items ] = useItems( filterValue );
|
|
101
100
|
const popoverAnchor = useAnchor( {
|
|
102
101
|
editableContentElement: contentRef.current,
|
|
@@ -26,7 +26,7 @@ const meta: Meta< typeof BaseControl > = {
|
|
|
26
26
|
controls: { expanded: true },
|
|
27
27
|
docs: { canvas: { sourceState: 'shown' } },
|
|
28
28
|
componentStatus: {
|
|
29
|
-
status: '
|
|
29
|
+
status: 'recommended',
|
|
30
30
|
whereUsed: 'global',
|
|
31
31
|
notes: 'Will be superseded by `Field` in `@wordpress/ui`, but continue using for now.',
|
|
32
32
|
},
|
|
@@ -53,7 +53,7 @@ const meta: Meta< typeof Button > = {
|
|
|
53
53
|
controls: { expanded: true },
|
|
54
54
|
docs: { canvas: { sourceState: 'shown' } },
|
|
55
55
|
componentStatus: {
|
|
56
|
-
status: '
|
|
56
|
+
status: 'recommended',
|
|
57
57
|
whereUsed: 'global',
|
|
58
58
|
notes: 'Will be superseded by `Button` in `@wordpress/ui`, but continue using for now.',
|
|
59
59
|
},
|
package/src/button/style.scss
CHANGED
|
@@ -252,6 +252,8 @@
|
|
|
252
252
|
font-weight: $font-weight-regular;
|
|
253
253
|
color: $components-color-accent;
|
|
254
254
|
text-decoration: underline;
|
|
255
|
+
text-underline-offset: 0.2em;
|
|
256
|
+
text-decoration-thickness: from-font;
|
|
255
257
|
|
|
256
258
|
@media not (prefers-reduced-motion) {
|
|
257
259
|
transition-property: border, background, color;
|
|
@@ -36,7 +36,7 @@ const meta: Meta< typeof CheckboxControl > = {
|
|
|
36
36
|
},
|
|
37
37
|
docs: { canvas: { sourceState: 'shown' } },
|
|
38
38
|
componentStatus: {
|
|
39
|
-
status: '
|
|
39
|
+
status: 'recommended',
|
|
40
40
|
whereUsed: 'global',
|
|
41
41
|
notes: 'Will be superseded by `CheckboxControl` in `@wordpress/ui`, but continue using for now.',
|
|
42
42
|
},
|
|
@@ -50,16 +50,25 @@ function SinglePalette( {
|
|
|
50
50
|
colors,
|
|
51
51
|
onChange,
|
|
52
52
|
value,
|
|
53
|
+
selectedSlug,
|
|
53
54
|
...additionalProps
|
|
54
55
|
}: SinglePaletteProps ) {
|
|
55
56
|
const colorOptions = useMemo( () => {
|
|
56
|
-
return colors.map( ( { color, name }, index ) => {
|
|
57
|
+
return colors.map( ( { color, name, slug }, index ) => {
|
|
57
58
|
const colordColor = colord( color );
|
|
58
|
-
|
|
59
|
+
// When a non-empty selectedSlug is provided, selection is decided
|
|
60
|
+
// strictly by slug — entries without a slug or with a different slug
|
|
61
|
+
// are not selected, even when their color value matches `value`.
|
|
62
|
+
// This correctly handles mixed palettes where some entries have slugs
|
|
63
|
+
// and others don't. Fall back to color value matching otherwise
|
|
64
|
+
// (including when selectedSlug is an empty string).
|
|
65
|
+
const isSelected = selectedSlug
|
|
66
|
+
? slug === selectedSlug
|
|
67
|
+
: value === color;
|
|
59
68
|
|
|
60
69
|
return (
|
|
61
70
|
<CircularOptionPicker.Option
|
|
62
|
-
key={ `${ color }-${ index }` }
|
|
71
|
+
key={ slug ?? `${ color }-${ index }` }
|
|
63
72
|
isSelected={ isSelected }
|
|
64
73
|
selectedIconProps={
|
|
65
74
|
isSelected
|
|
@@ -79,12 +88,14 @@ function SinglePalette( {
|
|
|
79
88
|
}
|
|
80
89
|
style={ { backgroundColor: color, color } }
|
|
81
90
|
onClick={
|
|
82
|
-
isSelected
|
|
91
|
+
isSelected
|
|
92
|
+
? clearColor
|
|
93
|
+
: () => onChange( color, index, slug )
|
|
83
94
|
}
|
|
84
95
|
/>
|
|
85
96
|
);
|
|
86
97
|
} );
|
|
87
|
-
}, [ colors, value, onChange, clearColor ] );
|
|
98
|
+
}, [ colors, value, selectedSlug, onChange, clearColor ] );
|
|
88
99
|
|
|
89
100
|
return (
|
|
90
101
|
<CircularOptionPicker.OptionGroup
|
|
@@ -101,6 +112,7 @@ function MultiplePalettes( {
|
|
|
101
112
|
colors,
|
|
102
113
|
onChange,
|
|
103
114
|
value,
|
|
115
|
+
selectedSlug,
|
|
104
116
|
headingLevel,
|
|
105
117
|
}: MultiplePalettesProps ) {
|
|
106
118
|
const instanceId = useInstanceId( MultiplePalettes, 'color-palette' );
|
|
@@ -121,10 +133,11 @@ function MultiplePalettes( {
|
|
|
121
133
|
<SinglePalette
|
|
122
134
|
clearColor={ clearColor }
|
|
123
135
|
colors={ colorPalette }
|
|
124
|
-
onChange={ ( newColor ) =>
|
|
125
|
-
onChange( newColor, index )
|
|
136
|
+
onChange={ ( newColor, _colorIndex, slug ) =>
|
|
137
|
+
onChange( newColor, index, slug )
|
|
126
138
|
}
|
|
127
139
|
value={ value }
|
|
140
|
+
selectedSlug={ selectedSlug }
|
|
128
141
|
aria-labelledby={ id }
|
|
129
142
|
/>
|
|
130
143
|
</VStack>
|
|
@@ -185,6 +198,7 @@ function UnforwardedColorPalette(
|
|
|
185
198
|
enableAlpha = false,
|
|
186
199
|
onChange,
|
|
187
200
|
value,
|
|
201
|
+
selectedSlug,
|
|
188
202
|
__experimentalIsRenderedInSidebar = false,
|
|
189
203
|
headingLevel = 2,
|
|
190
204
|
'aria-label': ariaLabel,
|
|
@@ -208,9 +222,10 @@ function UnforwardedColorPalette(
|
|
|
208
222
|
extractColorNameFromCurrentValue(
|
|
209
223
|
value,
|
|
210
224
|
colors,
|
|
211
|
-
hasMultipleColorOrigins
|
|
225
|
+
hasMultipleColorOrigins,
|
|
226
|
+
selectedSlug
|
|
212
227
|
),
|
|
213
|
-
[ value, colors, hasMultipleColorOrigins ]
|
|
228
|
+
[ value, colors, hasMultipleColorOrigins, selectedSlug ]
|
|
214
229
|
);
|
|
215
230
|
|
|
216
231
|
const renderCustomColorPicker = () => (
|
|
@@ -241,6 +256,7 @@ function UnforwardedColorPalette(
|
|
|
241
256
|
clearColor,
|
|
242
257
|
onChange,
|
|
243
258
|
value,
|
|
259
|
+
selectedSlug,
|
|
244
260
|
};
|
|
245
261
|
|
|
246
262
|
const actions = !! clearable && (
|
|
@@ -21,13 +21,14 @@ const meta: Meta< typeof ColorPalette > = {
|
|
|
21
21
|
argTypes: {
|
|
22
22
|
as: { control: false },
|
|
23
23
|
onChange: { action: 'onChange', control: false },
|
|
24
|
+
selectedSlug: { control: false },
|
|
24
25
|
value: { control: false },
|
|
25
26
|
},
|
|
26
27
|
parameters: {
|
|
27
28
|
controls: { expanded: true },
|
|
28
29
|
docs: { canvas: { sourceState: 'shown' } },
|
|
29
30
|
componentStatus: {
|
|
30
|
-
status: '
|
|
31
|
+
status: 'recommended',
|
|
31
32
|
whereUsed: 'global',
|
|
32
33
|
},
|
|
33
34
|
},
|
|
@@ -39,17 +40,21 @@ type ColorPaletteStory = StoryObj< typeof ColorPalette >;
|
|
|
39
40
|
const Template = ( {
|
|
40
41
|
onChange,
|
|
41
42
|
value,
|
|
43
|
+
selectedSlug,
|
|
42
44
|
...args
|
|
43
45
|
}: React.ComponentProps< typeof ColorPalette > ) => {
|
|
44
46
|
const [ color, setColor ] = useState< string | undefined >( value );
|
|
47
|
+
const [ slug, setSlug ] = useState< string | undefined >( selectedSlug );
|
|
45
48
|
|
|
46
49
|
return (
|
|
47
50
|
<ColorPalette
|
|
48
51
|
{ ...args }
|
|
49
52
|
value={ color }
|
|
50
|
-
|
|
53
|
+
selectedSlug={ slug }
|
|
54
|
+
onChange={ ( newColor, index, newSlug ) => {
|
|
51
55
|
setColor( newColor );
|
|
52
|
-
|
|
56
|
+
setSlug( newSlug );
|
|
57
|
+
onChange?.( newColor, index, newSlug );
|
|
53
58
|
} }
|
|
54
59
|
/>
|
|
55
60
|
);
|
|
@@ -102,6 +107,19 @@ export const MultipleOrigins: ColorPaletteStory = {
|
|
|
102
107
|
},
|
|
103
108
|
};
|
|
104
109
|
|
|
110
|
+
export const DuplicateColors: ColorPaletteStory = {
|
|
111
|
+
render: Template,
|
|
112
|
+
args: {
|
|
113
|
+
colors: [
|
|
114
|
+
{ name: 'Dark Background', slug: 'dark-background', color: '#000' },
|
|
115
|
+
{ name: 'Dark Text', slug: 'dark-text', color: '#000' },
|
|
116
|
+
{ name: 'Brand', slug: 'brand', color: '#0073aa' },
|
|
117
|
+
],
|
|
118
|
+
value: '#000',
|
|
119
|
+
selectedSlug: 'dark-text',
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
|
|
105
123
|
export const CSSVariables: ColorPaletteStory = {
|
|
106
124
|
render: ( args ) => (
|
|
107
125
|
<div
|
|
@@ -93,7 +93,11 @@ describe( 'ColorPalette', () => {
|
|
|
93
93
|
|
|
94
94
|
// Expect the green color to have been selected
|
|
95
95
|
expect( onChange ).toHaveBeenCalledTimes( 1 );
|
|
96
|
-
expect( onChange ).toHaveBeenCalledWith(
|
|
96
|
+
expect( onChange ).toHaveBeenCalledWith(
|
|
97
|
+
EXAMPLE_COLORS[ 1 ].color,
|
|
98
|
+
1,
|
|
99
|
+
undefined
|
|
100
|
+
);
|
|
97
101
|
} );
|
|
98
102
|
|
|
99
103
|
it( 'should call onClick with undefined, when the clearButton onClick is triggered', async () => {
|
|
@@ -262,4 +266,151 @@ describe( 'ColorPalette', () => {
|
|
|
262
266
|
} )
|
|
263
267
|
).toBeInTheDocument();
|
|
264
268
|
} );
|
|
269
|
+
|
|
270
|
+
describe( 'duplicate colors in palette', () => {
|
|
271
|
+
const DUPLICATE_COLOR_PALETTE = [
|
|
272
|
+
{ name: 'Dark Background', slug: 'dark-background', color: '#000' },
|
|
273
|
+
{ name: 'Dark Text', slug: 'dark-text', color: '#000' },
|
|
274
|
+
];
|
|
275
|
+
|
|
276
|
+
it( 'should render all swatches even when two entries share the same color value', () => {
|
|
277
|
+
render(
|
|
278
|
+
<ColorPalette
|
|
279
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
280
|
+
value={ undefined }
|
|
281
|
+
onChange={ jest.fn() }
|
|
282
|
+
/>
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
expect( screen.getAllByRole( 'option' ) ).toHaveLength( 2 );
|
|
286
|
+
} );
|
|
287
|
+
|
|
288
|
+
it( 'should select by slug when selectedSlug is provided, marking only the matching entry', () => {
|
|
289
|
+
render(
|
|
290
|
+
<ColorPalette
|
|
291
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
292
|
+
value="#000"
|
|
293
|
+
selectedSlug="dark-text"
|
|
294
|
+
onChange={ jest.fn() }
|
|
295
|
+
/>
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
const options = screen.getAllByRole( 'option' );
|
|
299
|
+
// "dark-background" is index 0, "dark-text" is index 1.
|
|
300
|
+
// With selectedSlug="dark-text", only the second swatch should be selected.
|
|
301
|
+
expect( options[ 0 ] ).toHaveAttribute( 'aria-selected', 'false' );
|
|
302
|
+
expect( options[ 1 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
303
|
+
} );
|
|
304
|
+
|
|
305
|
+
it( 'should fall back to color-value selection and mark all matching duplicates when no selectedSlug is provided', () => {
|
|
306
|
+
render(
|
|
307
|
+
<ColorPalette
|
|
308
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
309
|
+
value="#000"
|
|
310
|
+
onChange={ jest.fn() }
|
|
311
|
+
/>
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
const options = screen.getAllByRole( 'option' );
|
|
315
|
+
// Both entries share the same color value, so both appear selected
|
|
316
|
+
// when no slug-specific selection is provided.
|
|
317
|
+
expect( options[ 0 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
318
|
+
expect( options[ 1 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
319
|
+
} );
|
|
320
|
+
|
|
321
|
+
it( 'should treat an empty-string selectedSlug as no slug and fall back to color-value selection', () => {
|
|
322
|
+
render(
|
|
323
|
+
<ColorPalette
|
|
324
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
325
|
+
value="#000"
|
|
326
|
+
selectedSlug=""
|
|
327
|
+
onChange={ jest.fn() }
|
|
328
|
+
/>
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
const options = screen.getAllByRole( 'option' );
|
|
332
|
+
expect( options[ 0 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
333
|
+
expect( options[ 1 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
334
|
+
} );
|
|
335
|
+
|
|
336
|
+
it( 'should display the slug-matched entry name in the custom color button label', () => {
|
|
337
|
+
render(
|
|
338
|
+
<ColorPalette
|
|
339
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
340
|
+
value="#000"
|
|
341
|
+
selectedSlug="dark-text"
|
|
342
|
+
onChange={ jest.fn() }
|
|
343
|
+
/>
|
|
344
|
+
);
|
|
345
|
+
|
|
346
|
+
expect(
|
|
347
|
+
screen.getByRole( 'button', {
|
|
348
|
+
name: 'Custom color picker. The currently selected color is called "Dark Text" and has a value of "#000".',
|
|
349
|
+
} )
|
|
350
|
+
).toBeInTheDocument();
|
|
351
|
+
} );
|
|
352
|
+
|
|
353
|
+
it( 'should pass slug as third argument to onChange when a swatch is clicked', async () => {
|
|
354
|
+
const user = userEvent.setup();
|
|
355
|
+
const onChange = jest.fn();
|
|
356
|
+
|
|
357
|
+
render(
|
|
358
|
+
<ColorPalette
|
|
359
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
360
|
+
value={ undefined }
|
|
361
|
+
onChange={ onChange }
|
|
362
|
+
/>
|
|
363
|
+
);
|
|
364
|
+
|
|
365
|
+
const options = screen.getAllByRole( 'option' );
|
|
366
|
+
await user.click( options[ 1 ] );
|
|
367
|
+
// Second entry: color=#000, index=1, slug='dark-text'
|
|
368
|
+
expect( onChange ).toHaveBeenCalledWith( '#000', 1, 'dark-text' );
|
|
369
|
+
} );
|
|
370
|
+
|
|
371
|
+
it( 'should clear the selection when the selected swatch is clicked', async () => {
|
|
372
|
+
const user = userEvent.setup();
|
|
373
|
+
const onChange = jest.fn();
|
|
374
|
+
|
|
375
|
+
render(
|
|
376
|
+
<ColorPalette
|
|
377
|
+
colors={ DUPLICATE_COLOR_PALETTE }
|
|
378
|
+
value="#000"
|
|
379
|
+
selectedSlug="dark-background"
|
|
380
|
+
onChange={ onChange }
|
|
381
|
+
/>
|
|
382
|
+
);
|
|
383
|
+
|
|
384
|
+
// Click the selected swatch — should call onChange with undefined.
|
|
385
|
+
await user.click(
|
|
386
|
+
screen.getByRole( 'option', { selected: true } )
|
|
387
|
+
);
|
|
388
|
+
expect( onChange ).toHaveBeenCalledWith( undefined );
|
|
389
|
+
} );
|
|
390
|
+
|
|
391
|
+
it( 'should handle mixed palettes with some entries having slugs and others not', () => {
|
|
392
|
+
const MIXED_PALETTE = [
|
|
393
|
+
{ name: 'Brand White', slug: 'brand-white', color: '#fff' },
|
|
394
|
+
{ name: 'Plain White', color: '#fff' },
|
|
395
|
+
{ name: 'Brand Black', slug: 'brand-black', color: '#000' },
|
|
396
|
+
];
|
|
397
|
+
|
|
398
|
+
render(
|
|
399
|
+
<ColorPalette
|
|
400
|
+
colors={ MIXED_PALETTE }
|
|
401
|
+
value="#fff"
|
|
402
|
+
selectedSlug="brand-white"
|
|
403
|
+
onChange={ jest.fn() }
|
|
404
|
+
/>
|
|
405
|
+
);
|
|
406
|
+
|
|
407
|
+
const options = screen.getAllByRole( 'option' );
|
|
408
|
+
// Only the entry with slug="brand-white" should be selected.
|
|
409
|
+
// The unslugged "Plain White" entry should NOT be selected, even though
|
|
410
|
+
// its color matches the value prop.
|
|
411
|
+
expect( options[ 0 ] ).toHaveAttribute( 'aria-selected', 'true' );
|
|
412
|
+
expect( options[ 1 ] ).toHaveAttribute( 'aria-selected', 'false' );
|
|
413
|
+
expect( options[ 2 ] ).toHaveAttribute( 'aria-selected', 'false' );
|
|
414
|
+
} );
|
|
415
|
+
} );
|
|
265
416
|
} );
|
|
@@ -23,6 +23,24 @@ describe( 'ColorPalette: Utils', () => {
|
|
|
23
23
|
] );
|
|
24
24
|
expect( result ).toBe( 'Blue' );
|
|
25
25
|
} );
|
|
26
|
+
|
|
27
|
+
test( 'should prefer selectedSlug over color matching when duplicate colors exist', () => {
|
|
28
|
+
const result = extractColorNameFromCurrentValue(
|
|
29
|
+
'#000',
|
|
30
|
+
[
|
|
31
|
+
{
|
|
32
|
+
name: 'Dark Background',
|
|
33
|
+
slug: 'dark-background',
|
|
34
|
+
color: '#000',
|
|
35
|
+
},
|
|
36
|
+
{ name: 'Dark Text', slug: 'dark-text', color: '#000' },
|
|
37
|
+
],
|
|
38
|
+
false,
|
|
39
|
+
'dark-text'
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
expect( result ).toBe( 'Dark Text' );
|
|
43
|
+
} );
|
|
26
44
|
} );
|
|
27
45
|
|
|
28
46
|
describe( 'normalizeColorValue', () => {
|
|
@@ -12,6 +12,7 @@ import type { HeadingSize } from '../heading/types';
|
|
|
12
12
|
export type ColorObject = {
|
|
13
13
|
name: string;
|
|
14
14
|
color: NonNullable< CSSProperties[ 'color' ] >;
|
|
15
|
+
slug?: string;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export type PaletteObject = {
|
|
@@ -24,9 +25,22 @@ type PaletteProps = {
|
|
|
24
25
|
clearColor: () => void;
|
|
25
26
|
/**
|
|
26
27
|
* Callback called when a color is selected.
|
|
28
|
+
* The third argument is the slug of the selected palette entry, when available.
|
|
27
29
|
*/
|
|
28
|
-
onChange: ( newColor?: string, index?: number ) => void;
|
|
30
|
+
onChange: ( newColor?: string, index?: number, slug?: string ) => void;
|
|
29
31
|
value?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The slug of the currently selected palette entry.
|
|
34
|
+
*
|
|
35
|
+
* When set to a non-empty string, selection is determined by slug rather
|
|
36
|
+
* than by color value — this correctly handles palettes where two entries
|
|
37
|
+
* share the same color. Palette entries without a slug will not appear
|
|
38
|
+
* selected in this mode, even if their color value matches `value`.
|
|
39
|
+
*
|
|
40
|
+
* An empty string is treated the same as `undefined`: selection falls
|
|
41
|
+
* back to matching by color value.
|
|
42
|
+
*/
|
|
43
|
+
selectedSlug?: string;
|
|
30
44
|
actions?: ReactNode;
|
|
31
45
|
headingLevel?: HeadingSize;
|
|
32
46
|
};
|
|
@@ -43,7 +57,10 @@ export type CustomColorPickerDropdownProps = DropdownProps & {
|
|
|
43
57
|
isRenderedInSidebar: boolean;
|
|
44
58
|
};
|
|
45
59
|
|
|
46
|
-
export type ColorPaletteProps = Pick<
|
|
60
|
+
export type ColorPaletteProps = Pick<
|
|
61
|
+
PaletteProps,
|
|
62
|
+
'onChange' | 'selectedSlug'
|
|
63
|
+
> & {
|
|
47
64
|
/**
|
|
48
65
|
* Whether the palette should have a clearing button.
|
|
49
66
|
*
|
|
@@ -32,7 +32,8 @@ const isSimpleCSSColor = ( value: string ): boolean => {
|
|
|
32
32
|
export const extractColorNameFromCurrentValue = (
|
|
33
33
|
currentValue?: ColorPaletteProps[ 'value' ],
|
|
34
34
|
colors: ColorPaletteProps[ 'colors' ] = [],
|
|
35
|
-
showMultiplePalettes: boolean = false
|
|
35
|
+
showMultiplePalettes: boolean = false,
|
|
36
|
+
selectedSlug?: ColorPaletteProps[ 'selectedSlug' ]
|
|
36
37
|
) => {
|
|
37
38
|
if ( ! currentValue ) {
|
|
38
39
|
return '';
|
|
@@ -50,7 +51,18 @@ export const extractColorNameFromCurrentValue = (
|
|
|
50
51
|
? ( colors as PaletteObject[] )
|
|
51
52
|
: [ { colors: colors as ColorObject[] } ];
|
|
52
53
|
for ( const { colors: paletteColors } of colorPalettes ) {
|
|
53
|
-
for ( const {
|
|
54
|
+
for ( const {
|
|
55
|
+
name: colorName,
|
|
56
|
+
color: colorValue,
|
|
57
|
+
slug,
|
|
58
|
+
} of paletteColors ) {
|
|
59
|
+
if ( selectedSlug ) {
|
|
60
|
+
if ( slug === selectedSlug ) {
|
|
61
|
+
return colorName;
|
|
62
|
+
}
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
|
|
54
66
|
const normalizedColorValue = currentValueIsSimpleColor
|
|
55
67
|
? colord( colorValue ).toHex()
|
|
56
68
|
: colorValue;
|
|
@@ -20,7 +20,7 @@ import InputControlPrefixWrapper from '../input-control/input-prefix-wrapper';
|
|
|
20
20
|
|
|
21
21
|
export const HexInput = ( { color, onChange, enableAlpha }: HexInputProps ) => {
|
|
22
22
|
const handleChange = ( nextValue: string | undefined ) => {
|
|
23
|
-
if (
|
|
23
|
+
if ( nextValue === undefined ) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
const hexValue = nextValue.startsWith( '#' )
|