@wordpress/components 33.0.1-next.v.202604201441.0 → 33.1.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 +35 -1
- 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/form-token-field/index.cjs +22 -6
- package/build/form-token-field/index.cjs.map +3 -3
- package/build/form-token-field/token-input.cjs +1 -1
- package/build/form-token-field/token-input.cjs.map +2 -2
- package/build/menu/popover.cjs +7 -3
- package/build/menu/popover.cjs.map +2 -2
- package/build/menu/styles.cjs +39 -16
- package/build/menu/styles.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/breakpoint.cjs.map +1 -1
- 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/utils/font.cjs.map +1 -1
- package/build/visually-hidden/component.cjs +1 -0
- package/build/visually-hidden/component.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/form-token-field/index.mjs +22 -6
- package/build-module/form-token-field/index.mjs.map +2 -2
- package/build-module/form-token-field/token-input.mjs +1 -1
- package/build-module/form-token-field/token-input.mjs.map +2 -2
- package/build-module/menu/popover.mjs +7 -3
- package/build-module/menu/popover.mjs.map +2 -2
- package/build-module/menu/styles.mjs +37 -16
- package/build-module/menu/styles.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/breakpoint.mjs.map +1 -1
- 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-module/utils/font.mjs.map +1 -1
- package/build-module/visually-hidden/component.mjs +1 -0
- package/build-module/visually-hidden/component.mjs.map +2 -2
- package/build-style/style-rtl.css +90 -34
- package/build-style/style.css +90 -34
- 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 +0 -6
- 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/form-token-field/types.d.ts +16 -2
- package/build-types/form-token-field/types.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/popover.d.ts.map +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 +23 -8
- package/build-types/menu/styles.d.ts.map +1 -1
- 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.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 +9 -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 +6 -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 +0 -6
- 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/button-group/style.scss +1 -2
- package/src/card/stories/index.story.tsx +2 -9
- package/src/checkbox-control/stories/index.story.tsx +1 -1
- package/src/circular-option-picker/style.scss +8 -6
- 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/stories/index.story.tsx +2 -2
- package/src/external-link/style.scss +34 -2
- 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-toggle/style.scss +3 -2
- package/src/form-token-field/README.md +2 -1
- package/src/form-token-field/index.tsx +39 -9
- package/src/form-token-field/stories/index.story.tsx +2 -1
- package/src/form-token-field/test/index.tsx +70 -10
- package/src/form-token-field/token-input.tsx +1 -6
- package/src/form-token-field/types.ts +16 -2
- 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/popover.tsx +15 -8
- package/src/menu/stories/index.story.tsx +1 -1
- package/src/menu/styles.ts +25 -15
- package/src/menu/test/index.tsx +28 -37
- 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/notice/test/__snapshots__/index.tsx.snap +1 -0
- 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/resizable-box/style.scss +4 -5
- 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/toolbar/toolbar-group/index.tsx +2 -2
- package/src/tools-panel/stories/index.story.tsx +1 -1
- package/src/tooltip/stories/index.story.tsx +1 -1
- package/src/tooltip/test/index.tsx +3 -2
- 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/breakpoint.js +1 -1
- package/src/utils/config-values.js +3 -0
- package/src/utils/dropdown-motion.ts +6 -2
- package/src/utils/font.js +1 -1
- package/src/visually-hidden/component.tsx +1 -0
- package/src/visually-hidden/stories/index.story.tsx +2 -9
- package/build-types/visually-hidden/test/index.d.ts.map +0 -1
- package/src/visually-hidden/test/__snapshots__/index.tsx.snap +0 -12
- package/src/visually-hidden/test/index.tsx +0 -17
- /package/build-types/{visually-hidden → style-provider}/test/index.d.ts +0 -0
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
KeyboardEvent,
|
|
7
|
+
MouseEvent,
|
|
8
|
+
TouchEvent,
|
|
9
|
+
FocusEvent,
|
|
10
|
+
ReactNode,
|
|
11
|
+
} from 'react';
|
|
6
12
|
|
|
7
13
|
/**
|
|
8
14
|
* WordPress dependencies
|
|
@@ -12,6 +18,7 @@ import { __, _n, sprintf } from '@wordpress/i18n';
|
|
|
12
18
|
import { useDebounce, useInstanceId, usePrevious } from '@wordpress/compose';
|
|
13
19
|
import { speak } from '@wordpress/a11y';
|
|
14
20
|
import { isShallowEqual } from '@wordpress/is-shallow-equal';
|
|
21
|
+
import deprecated from '@wordpress/deprecated';
|
|
15
22
|
|
|
16
23
|
/**
|
|
17
24
|
* Internal dependencies
|
|
@@ -70,10 +77,11 @@ export function FormTokenField( props: FormTokenFieldProps ) {
|
|
|
70
77
|
__experimentalRenderItem,
|
|
71
78
|
__experimentalExpandOnFocus = false,
|
|
72
79
|
__experimentalValidateInput = () => true,
|
|
73
|
-
__experimentalShowHowTo
|
|
80
|
+
__experimentalShowHowTo,
|
|
74
81
|
__next40pxDefaultSize = false,
|
|
75
82
|
__experimentalAutoSelectFirstMatch = false,
|
|
76
83
|
tokenizeOnBlur = false,
|
|
84
|
+
help,
|
|
77
85
|
} = useDeprecated36pxDefaultSizeProp< FormTokenFieldProps >( props );
|
|
78
86
|
|
|
79
87
|
maybeWarnDeprecated36pxSize( {
|
|
@@ -82,6 +90,27 @@ export function FormTokenField( props: FormTokenFieldProps ) {
|
|
|
82
90
|
__next40pxDefaultSize,
|
|
83
91
|
} );
|
|
84
92
|
|
|
93
|
+
const defaultHelp = tokenizeOnSpace
|
|
94
|
+
? __( 'Separate with commas, spaces, or the Enter key.' )
|
|
95
|
+
: __( 'Separate with commas or the Enter key.' );
|
|
96
|
+
|
|
97
|
+
let computedHelp: ReactNode = help !== undefined ? help : defaultHelp;
|
|
98
|
+
|
|
99
|
+
if ( typeof __experimentalShowHowTo === 'boolean' ) {
|
|
100
|
+
deprecated(
|
|
101
|
+
'`__experimentalShowHowTo` prop in wp.components.FormTokenField',
|
|
102
|
+
{
|
|
103
|
+
since: '7.1',
|
|
104
|
+
alternative: '`help` prop',
|
|
105
|
+
hint: 'The `help` prop now defaults to the previous how-to text. Pass an empty string to hide it.',
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
if ( __experimentalShowHowTo === false && help === undefined ) {
|
|
110
|
+
computedHelp = '';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
85
114
|
const instanceId = useInstanceId( FormTokenField );
|
|
86
115
|
|
|
87
116
|
// We reset to these initial values again in the onBlur
|
|
@@ -655,6 +684,10 @@ export function FormTokenField( props: FormTokenFieldProps ) {
|
|
|
655
684
|
}
|
|
656
685
|
|
|
657
686
|
function renderInput() {
|
|
687
|
+
const describedById = computedHelp
|
|
688
|
+
? `components-form-token-input-${ instanceId }__help`
|
|
689
|
+
: undefined;
|
|
690
|
+
|
|
658
691
|
const inputProps = {
|
|
659
692
|
instanceId,
|
|
660
693
|
autoCapitalize,
|
|
@@ -665,6 +698,7 @@ export function FormTokenField( props: FormTokenFieldProps ) {
|
|
|
665
698
|
onBlur,
|
|
666
699
|
isExpanded,
|
|
667
700
|
selectedSuggestionIndex,
|
|
701
|
+
'aria-describedby': describedById,
|
|
668
702
|
};
|
|
669
703
|
|
|
670
704
|
return (
|
|
@@ -749,16 +783,12 @@ export function FormTokenField( props: FormTokenFieldProps ) {
|
|
|
749
783
|
/>
|
|
750
784
|
) }
|
|
751
785
|
</div>
|
|
752
|
-
{
|
|
786
|
+
{ computedHelp && (
|
|
753
787
|
<StyledHelp
|
|
754
|
-
id={ `components-form-token-
|
|
788
|
+
id={ `components-form-token-input-${ instanceId }__help` }
|
|
755
789
|
className="components-form-token-field__help"
|
|
756
790
|
>
|
|
757
|
-
{
|
|
758
|
-
? __(
|
|
759
|
-
'Separate with commas, spaces, or the Enter key.'
|
|
760
|
-
)
|
|
761
|
-
: __( 'Separate with commas or the Enter key.' ) }
|
|
791
|
+
{ computedHelp }
|
|
762
792
|
</StyledHelp>
|
|
763
793
|
) }
|
|
764
794
|
</div>
|
|
@@ -25,6 +25,7 @@ const meta: Meta< typeof FormTokenField > = {
|
|
|
25
25
|
__experimentalValidateInput: {
|
|
26
26
|
control: false,
|
|
27
27
|
},
|
|
28
|
+
help: { control: 'text' },
|
|
28
29
|
},
|
|
29
30
|
parameters: {
|
|
30
31
|
controls: {
|
|
@@ -32,7 +33,7 @@ const meta: Meta< typeof FormTokenField > = {
|
|
|
32
33
|
},
|
|
33
34
|
docs: { canvas: { sourceState: 'shown' } },
|
|
34
35
|
componentStatus: {
|
|
35
|
-
status: '
|
|
36
|
+
status: 'recommended',
|
|
36
37
|
whereUsed: 'global',
|
|
37
38
|
notes: 'Will be superseded by `SearchableChipSelect` in `@wordpress/ui`, but continue using for now.',
|
|
38
39
|
},
|
|
@@ -17,6 +17,7 @@ import type { ComponentProps } from 'react';
|
|
|
17
17
|
* WordPress dependencies
|
|
18
18
|
*/
|
|
19
19
|
import { useState } from '@wordpress/element';
|
|
20
|
+
import { logged } from '@wordpress/deprecated';
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
23
|
* Internal dependencies
|
|
@@ -122,6 +123,14 @@ function unescapeAndFormatSpaces( str: string ) {
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
describe( 'FormTokenField', () => {
|
|
126
|
+
afterEach( () => {
|
|
127
|
+
// `@wordpress/deprecated` caches each warning message after the first
|
|
128
|
+
// log; reset it so multiple tests can assert the same deprecation.
|
|
129
|
+
for ( const key in logged ) {
|
|
130
|
+
delete logged[ key ];
|
|
131
|
+
}
|
|
132
|
+
} );
|
|
133
|
+
|
|
125
134
|
describe( 'basic usage', () => {
|
|
126
135
|
it( "should add tokens with the input's value when pressing the enter key", async () => {
|
|
127
136
|
const user = userEvent.setup();
|
|
@@ -582,18 +591,17 @@ describe( 'FormTokenField', () => {
|
|
|
582
591
|
);
|
|
583
592
|
} );
|
|
584
593
|
|
|
585
|
-
it( 'should show
|
|
594
|
+
it( 'should show the default how-to text via the `help` prop by default', () => {
|
|
586
595
|
const instructionsTokenizeSpace =
|
|
587
596
|
'Separate with commas, spaces, or the Enter key.';
|
|
588
597
|
const instructionsDefault =
|
|
589
598
|
'Separate with commas or the Enter key.';
|
|
590
599
|
|
|
591
|
-
// The __experimentalShowHowTo prop is `true` by default
|
|
592
600
|
const { rerender } = render( <FormTokenFieldWithState /> );
|
|
593
601
|
|
|
594
602
|
expect( screen.getByText( instructionsDefault ) ).toBeVisible();
|
|
595
603
|
|
|
596
|
-
// The
|
|
604
|
+
// The default how-to text is used to aria-describedby the input.
|
|
597
605
|
expect(
|
|
598
606
|
screen.getByRole( 'combobox' )
|
|
599
607
|
).toHaveAccessibleDescription( instructionsDefault );
|
|
@@ -604,27 +612,79 @@ describe( 'FormTokenField', () => {
|
|
|
604
612
|
screen.getByText( instructionsTokenizeSpace )
|
|
605
613
|
).toBeVisible();
|
|
606
614
|
|
|
607
|
-
// The "show how to" text is used to aria-describedby the input
|
|
608
615
|
expect(
|
|
609
616
|
screen.getByRole( 'combobox' )
|
|
610
617
|
).toHaveAccessibleDescription( instructionsTokenizeSpace );
|
|
618
|
+
} );
|
|
611
619
|
|
|
612
|
-
|
|
620
|
+
it( 'should allow hiding the help text by passing an empty string', () => {
|
|
621
|
+
render( <FormTokenFieldWithState help="" /> );
|
|
622
|
+
|
|
623
|
+
expect(
|
|
624
|
+
screen.queryByText( 'Separate with commas or the Enter key.' )
|
|
625
|
+
).not.toBeInTheDocument();
|
|
626
|
+
expect(
|
|
627
|
+
screen.getByRole( 'combobox' )
|
|
628
|
+
).not.toHaveAccessibleDescription();
|
|
629
|
+
} );
|
|
630
|
+
|
|
631
|
+
it( 'should associate the `help` text with the input accessibly', () => {
|
|
632
|
+
render( <FormTokenFieldWithState help="Help text" /> );
|
|
633
|
+
expect(
|
|
634
|
+
screen.getByRole( 'combobox' )
|
|
635
|
+
).toHaveAccessibleDescription( 'Help text' );
|
|
636
|
+
// The default how-to text should no longer be rendered.
|
|
637
|
+
expect(
|
|
638
|
+
screen.queryByText( 'Separate with commas or the Enter key.' )
|
|
639
|
+
).not.toBeInTheDocument();
|
|
640
|
+
} );
|
|
641
|
+
|
|
642
|
+
it( 'should warn and hide the default text when `__experimentalShowHowTo` is `false`', () => {
|
|
643
|
+
render(
|
|
644
|
+
<FormTokenFieldWithState __experimentalShowHowTo={ false } />
|
|
645
|
+
);
|
|
646
|
+
|
|
647
|
+
expect( console ).toHaveWarnedWith(
|
|
648
|
+
'`__experimentalShowHowTo` prop in wp.components.FormTokenField is deprecated since version 7.1. Please use `help` prop instead. Note: The `help` prop now defaults to the previous how-to text. Pass an empty string to hide it.'
|
|
649
|
+
);
|
|
650
|
+
|
|
651
|
+
expect(
|
|
652
|
+
screen.queryByText( 'Separate with commas or the Enter key.' )
|
|
653
|
+
).not.toBeInTheDocument();
|
|
654
|
+
expect(
|
|
655
|
+
screen.getByRole( 'combobox' )
|
|
656
|
+
).not.toHaveAccessibleDescription();
|
|
657
|
+
} );
|
|
658
|
+
|
|
659
|
+
it( 'should warn and prefer `help` over `__experimentalShowHowTo` when both are provided', () => {
|
|
660
|
+
const { rerender } = render(
|
|
613
661
|
<FormTokenFieldWithState
|
|
614
|
-
tokenizeOnSpace
|
|
615
662
|
__experimentalShowHowTo={ false }
|
|
663
|
+
help="Help text"
|
|
616
664
|
/>
|
|
617
665
|
);
|
|
618
666
|
|
|
667
|
+
expect( console ).toHaveWarned();
|
|
619
668
|
expect(
|
|
620
|
-
screen.
|
|
621
|
-
).
|
|
669
|
+
screen.getByRole( 'combobox' )
|
|
670
|
+
).toHaveAccessibleDescription( 'Help text' );
|
|
622
671
|
expect(
|
|
623
|
-
screen.queryByText(
|
|
672
|
+
screen.queryByText( 'Separate with commas or the Enter key.' )
|
|
624
673
|
).not.toBeInTheDocument();
|
|
674
|
+
|
|
675
|
+
rerender(
|
|
676
|
+
<FormTokenFieldWithState
|
|
677
|
+
__experimentalShowHowTo
|
|
678
|
+
help="Help text"
|
|
679
|
+
/>
|
|
680
|
+
);
|
|
681
|
+
|
|
625
682
|
expect(
|
|
626
683
|
screen.getByRole( 'combobox' )
|
|
627
|
-
).
|
|
684
|
+
).toHaveAccessibleDescription( 'Help text' );
|
|
685
|
+
expect(
|
|
686
|
+
screen.queryByText( 'Separate with commas or the Enter key.' )
|
|
687
|
+
).not.toBeInTheDocument();
|
|
628
688
|
} );
|
|
629
689
|
|
|
630
690
|
it( "should use the value of the `placeholder` prop as the input's placeholder only when there are no tokens", async () => {
|
|
@@ -87,12 +87,7 @@ export function UnForwardedTokenInput(
|
|
|
87
87
|
? `components-form-token-suggestions-${ instanceId }-${ selectedSuggestionIndex }`
|
|
88
88
|
: undefined
|
|
89
89
|
}
|
|
90
|
-
aria-describedby={
|
|
91
|
-
`components-form-token-suggestions-howto-${ instanceId }`,
|
|
92
|
-
ariaDescribedBy,
|
|
93
|
-
]
|
|
94
|
-
.filter( Boolean )
|
|
95
|
-
.join( ' ' ) }
|
|
90
|
+
aria-describedby={ ariaDescribedBy }
|
|
96
91
|
/>
|
|
97
92
|
);
|
|
98
93
|
}
|
|
@@ -147,9 +147,12 @@ export interface FormTokenFieldProps
|
|
|
147
147
|
*/
|
|
148
148
|
__experimentalValidateInput?: ( token: string ) => boolean;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Use the `help` prop instead. The `help` prop now defaults to the previous
|
|
151
|
+
* how-to text; if you were passing `__experimentalShowHowTo={ false }` to
|
|
152
|
+
* hide it, pass an empty string to `help` instead.
|
|
151
153
|
*
|
|
152
|
-
* @
|
|
154
|
+
* @deprecated Use the `help` prop instead.
|
|
155
|
+
* @ignore
|
|
153
156
|
*/
|
|
154
157
|
__experimentalShowHowTo?: boolean;
|
|
155
158
|
/**
|
|
@@ -193,6 +196,17 @@ export interface FormTokenFieldProps
|
|
|
193
196
|
* @default false
|
|
194
197
|
*/
|
|
195
198
|
tokenizeOnBlur?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Additional description for the control.
|
|
201
|
+
*
|
|
202
|
+
* Only use for meaningful description or instructions for the control. An
|
|
203
|
+
* element containing the description will be programmatically associated to
|
|
204
|
+
* the `FormTokenField` via `aria-describedby`.
|
|
205
|
+
*
|
|
206
|
+
* Defaults to a how-to message (e.g. _Separate with commas or the Enter key._);
|
|
207
|
+
* pass an empty string to hide it.
|
|
208
|
+
*/
|
|
209
|
+
help?: ReactNode;
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
/**
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
* WordPress dependencies
|
|
15
15
|
*/
|
|
16
16
|
import {
|
|
17
|
+
createRef,
|
|
17
18
|
forwardRef,
|
|
18
19
|
useEffect,
|
|
19
20
|
useImperativeHandle,
|
|
20
|
-
useRef,
|
|
21
21
|
} from '@wordpress/element';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -91,15 +91,17 @@ describe( 'withNotices return type', () => {
|
|
|
91
91
|
} );
|
|
92
92
|
|
|
93
93
|
describe( 'withNotices operations', () => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
function setup( props: any = {} ) {
|
|
95
|
+
const handle = createRef< any >();
|
|
96
|
+
const utils = render(
|
|
97
|
+
<TestNoticeOperations { ...props } ref={ handle } />
|
|
98
|
+
);
|
|
99
|
+
return { ...utils, handle };
|
|
100
|
+
}
|
|
99
101
|
|
|
100
102
|
it( 'should create notices with createNotice', () => {
|
|
101
103
|
const message = 'Aló!';
|
|
102
|
-
const { container } =
|
|
104
|
+
const { container, handle } = setup();
|
|
103
105
|
const { getByText } = within( container );
|
|
104
106
|
act( () => {
|
|
105
107
|
handle.current.createNotice( { content: message } );
|
|
@@ -109,7 +111,7 @@ describe( 'withNotices operations', () => {
|
|
|
109
111
|
|
|
110
112
|
it( 'should create notices of error status with createErrorNotice', () => {
|
|
111
113
|
const message = 'can’t touch this';
|
|
112
|
-
const { container } =
|
|
114
|
+
const { container, handle } = setup();
|
|
113
115
|
const { getByText } = within( container );
|
|
114
116
|
act( () => {
|
|
115
117
|
handle.current.createErrorNotice( message );
|
|
@@ -120,7 +122,7 @@ describe( 'withNotices operations', () => {
|
|
|
120
122
|
|
|
121
123
|
it( 'should remove a notice with removeNotice', async () => {
|
|
122
124
|
const notice = { id: 'so real', content: 'so why can’t I touch it?' };
|
|
123
|
-
const { container } =
|
|
125
|
+
const { container, handle } = setup();
|
|
124
126
|
const { getByText } = within( container );
|
|
125
127
|
act( () => {
|
|
126
128
|
handle.current.createNotice( notice );
|
|
@@ -137,7 +139,7 @@ describe( 'withNotices operations', () => {
|
|
|
137
139
|
it( 'should remove all notices with removeAllNotices', async () => {
|
|
138
140
|
const messages = [ 'Aló!', 'hu dis?', 'Otis' ];
|
|
139
141
|
const notices = noticesFrom( messages );
|
|
140
|
-
const { container } =
|
|
142
|
+
const { container, handle } = setup( { notifications: notices } );
|
|
141
143
|
const { getByText } = within( container );
|
|
142
144
|
expect(
|
|
143
145
|
await waitForElementToBeRemoved( () => {
|
|
@@ -23,7 +23,7 @@ const meta: Meta< typeof Icon > = {
|
|
|
23
23
|
controls: { expanded: true },
|
|
24
24
|
docs: { canvas: { sourceState: 'shown' } },
|
|
25
25
|
componentStatus: {
|
|
26
|
-
status: '
|
|
26
|
+
status: 'recommended',
|
|
27
27
|
whereUsed: 'global',
|
|
28
28
|
notes: 'Prefer this component over the `Icon` component from `@wordpress/icons`.',
|
|
29
29
|
},
|
|
@@ -41,7 +41,7 @@ const meta: Meta< typeof InputControl > = {
|
|
|
41
41
|
controls: { expanded: true },
|
|
42
42
|
docs: { canvas: { sourceState: 'shown' } },
|
|
43
43
|
componentStatus: {
|
|
44
|
-
status: '
|
|
44
|
+
status: 'recommended',
|
|
45
45
|
whereUsed: 'global',
|
|
46
46
|
notes: 'Will be superseded by `InputControl` in `@wordpress/ui`, but continue using for now.',
|
|
47
47
|
},
|
package/src/menu/popover.tsx
CHANGED
|
@@ -24,10 +24,7 @@ import { Context } from './context';
|
|
|
24
24
|
export const Popover = forwardRef<
|
|
25
25
|
HTMLDivElement,
|
|
26
26
|
WordPressComponentProps< PopoverProps, 'div', false >
|
|
27
|
-
>( function Popover(
|
|
28
|
-
{ gutter, children, shift, modal = true, ...otherProps },
|
|
29
|
-
ref
|
|
30
|
-
) {
|
|
27
|
+
>( function Popover( { gutter, shift, modal = true, ...otherProps }, ref ) {
|
|
31
28
|
const menuContext = useContext( Context );
|
|
32
29
|
|
|
33
30
|
// Extract the side from the applied placement — useful for animations.
|
|
@@ -70,6 +67,18 @@ export const Popover = forwardRef<
|
|
|
70
67
|
);
|
|
71
68
|
}
|
|
72
69
|
|
|
70
|
+
const renderMenu = useCallback(
|
|
71
|
+
( htmlProps: React.ComponentPropsWithRef< 'div' > ) => (
|
|
72
|
+
<Styled.MenuMotionRoot>
|
|
73
|
+
<Styled.MenuSurface
|
|
74
|
+
{ ...htmlProps }
|
|
75
|
+
variant={ menuContext.variant }
|
|
76
|
+
/>
|
|
77
|
+
</Styled.MenuMotionRoot>
|
|
78
|
+
),
|
|
79
|
+
[ menuContext.variant ]
|
|
80
|
+
);
|
|
81
|
+
|
|
73
82
|
return (
|
|
74
83
|
<Styled.Menu
|
|
75
84
|
{ ...otherProps }
|
|
@@ -88,9 +97,7 @@ export const Popover = forwardRef<
|
|
|
88
97
|
wrapperProps={ wrapperProps }
|
|
89
98
|
hideOnEscape={ hideOnEscape }
|
|
90
99
|
unmountOnHide
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
{ children }
|
|
94
|
-
</Styled.Menu>
|
|
100
|
+
render={ renderMenu }
|
|
101
|
+
/>
|
|
95
102
|
);
|
|
96
103
|
} );
|
|
@@ -56,7 +56,7 @@ const meta: Meta< typeof Menu > = {
|
|
|
56
56
|
source: { excludeDecorators: true },
|
|
57
57
|
},
|
|
58
58
|
componentStatus: {
|
|
59
|
-
status: '
|
|
59
|
+
status: 'recommended',
|
|
60
60
|
whereUsed: 'global',
|
|
61
61
|
notes: 'When building for the Gutenberg repo, use this component instead of `DropdownMenu`. Otherwise, continue using `DropdownMenu` for now.',
|
|
62
62
|
},
|
package/src/menu/styles.ts
CHANGED
|
@@ -32,12 +32,17 @@ const TOOLBAR_VARIANT_BOX_SHADOW = `0 0 0 ${ CONFIG.borderWidth } ${ TOOLBAR_VAR
|
|
|
32
32
|
|
|
33
33
|
const GRID_TEMPLATE_COLS = 'minmax( 0, max-content ) 1fr';
|
|
34
34
|
|
|
35
|
-
export const Menu = styled( Ariakit.Menu )
|
|
35
|
+
export const Menu = styled( Ariakit.Menu )`
|
|
36
36
|
position: relative;
|
|
37
37
|
/* Same as popover component */
|
|
38
38
|
/* TODO: is there a way to read the sass variable? */
|
|
39
39
|
z-index: 1000000;
|
|
40
40
|
|
|
41
|
+
/* Only visible in Windows High Contrast mode */
|
|
42
|
+
outline: 2px solid transparent !important;
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
export const MenuSurface = styled.div< Pick< ContextProps, 'variant' > >`
|
|
41
46
|
display: grid;
|
|
42
47
|
grid-template-columns: ${ GRID_TEMPLATE_COLS };
|
|
43
48
|
grid-template-rows: auto;
|
|
@@ -59,11 +64,16 @@ export const Menu = styled( Ariakit.Menu )< Pick< ContextProps, 'variant' > >`
|
|
|
59
64
|
? TOOLBAR_VARIANT_BOX_SHADOW
|
|
60
65
|
: DEFAULT_BOX_SHADOW };
|
|
61
66
|
` }
|
|
67
|
+
`;
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Outer wrapper for menu motion. `Menu.Popover` uses Ariakit’s `render` prop so
|
|
71
|
+
* this element wraps the inner surface that receives all merged menu props
|
|
72
|
+
* (ref, role, `data-*`, children). Transitions mirror the pre-refactor `Menu`
|
|
73
|
+
* styles from `trunk`, driven by `data-enter` / `data-side` on the inner
|
|
74
|
+
* surface via `:has(> …)`.
|
|
75
|
+
*/
|
|
76
|
+
export const MenuMotionRoot = styled.div`
|
|
67
77
|
@media not ( prefers-reduced-motion ) {
|
|
68
78
|
transition-property: transform, opacity;
|
|
69
79
|
transition-duration: ${ DROPDOWN_MOTION_CSS.SLIDE_DURATION },
|
|
@@ -72,40 +82,40 @@ export const Menu = styled( Ariakit.Menu )< Pick< ContextProps, 'variant' > >`
|
|
|
72
82
|
${ DROPDOWN_MOTION_CSS.FADE_EASING };
|
|
73
83
|
will-change: transform, opacity;
|
|
74
84
|
|
|
75
|
-
&:not( [data-submenu] ) {
|
|
85
|
+
&:not( :has( > ${ MenuSurface }[data-submenu] ) ) {
|
|
76
86
|
/* Regardless of the side, fade in and out. */
|
|
77
87
|
opacity: 0;
|
|
78
|
-
|
|
88
|
+
&:has( > ${ MenuSurface }[data-enter] ) {
|
|
79
89
|
opacity: 1;
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
/* Slide in the direction the menu is opening. */
|
|
83
|
-
|
|
93
|
+
&:has( > ${ MenuSurface }[data-side='bottom'] ) {
|
|
84
94
|
transform: translateY(
|
|
85
95
|
-${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
|
|
86
96
|
);
|
|
87
97
|
}
|
|
88
|
-
|
|
98
|
+
&:has( > ${ MenuSurface }[data-side='top'] ) {
|
|
89
99
|
transform: translateY(
|
|
90
100
|
${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
|
|
91
101
|
);
|
|
92
102
|
}
|
|
93
|
-
|
|
103
|
+
&:has( > ${ MenuSurface }[data-side='left'] ) {
|
|
94
104
|
transform: translateX(
|
|
95
105
|
${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
|
|
96
106
|
);
|
|
97
107
|
}
|
|
98
|
-
|
|
108
|
+
&:has( > ${ MenuSurface }[data-side='right'] ) {
|
|
99
109
|
transform: translateX(
|
|
100
110
|
-${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
|
|
101
111
|
);
|
|
102
112
|
}
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
&:has( > ${ MenuSurface }[data-enter][data-side='bottom'] ),
|
|
114
|
+
&:has( > ${ MenuSurface }[data-enter][data-side='top'] ) {
|
|
105
115
|
transform: translateY( 0 );
|
|
106
116
|
}
|
|
107
|
-
|
|
108
|
-
|
|
117
|
+
&:has( > ${ MenuSurface }[data-enter][data-side='left'] ),
|
|
118
|
+
&:has( > ${ MenuSurface }[data-enter][data-side='right'] ) {
|
|
109
119
|
transform: translateX( 0 );
|
|
110
120
|
}
|
|
111
121
|
}
|