@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
package/src/menu/test/index.tsx
CHANGED
|
@@ -18,6 +18,14 @@ const delay = ( delayInMs: number ) => {
|
|
|
18
18
|
return new Promise( ( resolve ) => setTimeout( resolve, delayInMs ) );
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
const waitForFocusedMenu = () =>
|
|
22
|
+
waitFor( () => expect( screen.getByRole( 'menu' ) ).toHaveFocus() );
|
|
23
|
+
|
|
24
|
+
const waitForFocusedMenuItem = ( name: string ) =>
|
|
25
|
+
waitFor( () =>
|
|
26
|
+
expect( screen.getByRole( 'menuitem', { name } ) ).toHaveFocus()
|
|
27
|
+
);
|
|
28
|
+
|
|
21
29
|
// Open dropdown => open menu
|
|
22
30
|
// Submenu trigger item => open submenu
|
|
23
31
|
|
|
@@ -114,7 +122,7 @@ describe( 'Menu', () => {
|
|
|
114
122
|
await click( toggleButton );
|
|
115
123
|
|
|
116
124
|
// Menu open, focus is on the menu wrapper
|
|
117
|
-
|
|
125
|
+
await waitForFocusedMenu();
|
|
118
126
|
} );
|
|
119
127
|
|
|
120
128
|
it( 'should open and focus the first item when pressing the arrow down key on the trigger', async () => {
|
|
@@ -145,9 +153,7 @@ describe( 'Menu', () => {
|
|
|
145
153
|
|
|
146
154
|
// Menu open, focus is on the first focusable item
|
|
147
155
|
// (disabled items are still focusable and accessible)
|
|
148
|
-
|
|
149
|
-
screen.getByRole( 'menuitem', { name: 'First item' } )
|
|
150
|
-
).toHaveFocus();
|
|
156
|
+
await waitForFocusedMenuItem( 'First item' );
|
|
151
157
|
} );
|
|
152
158
|
|
|
153
159
|
it( 'should open and focus the first item when pressing the space key on the trigger', async () => {
|
|
@@ -155,7 +161,7 @@ describe( 'Menu', () => {
|
|
|
155
161
|
<Menu>
|
|
156
162
|
<Menu.TriggerButton>Open dropdown</Menu.TriggerButton>
|
|
157
163
|
<Menu.Popover>
|
|
158
|
-
<Menu.Item
|
|
164
|
+
<Menu.Item>First item</Menu.Item>
|
|
159
165
|
<Menu.Item>Second item</Menu.Item>
|
|
160
166
|
<Menu.Item>Third item</Menu.Item>
|
|
161
167
|
</Menu.Popover>
|
|
@@ -174,13 +180,12 @@ describe( 'Menu', () => {
|
|
|
174
180
|
// Menu closed
|
|
175
181
|
expect( screen.queryByRole( 'menuitem' ) ).not.toBeInTheDocument();
|
|
176
182
|
|
|
177
|
-
|
|
183
|
+
// Keyboard-triggered clicks have `detail: 0`, which Ariakit uses to
|
|
184
|
+
// choose the initial item focus path instead of the pointer path.
|
|
185
|
+
await press.Space( toggleButton, { detail: 0 } );
|
|
178
186
|
|
|
179
187
|
// Menu open, focus is on the first focusable item
|
|
180
|
-
|
|
181
|
-
expect(
|
|
182
|
-
screen.getByRole( 'menuitem', { name: 'First item' } )
|
|
183
|
-
).toHaveFocus();
|
|
188
|
+
await waitForFocusedMenuItem( 'First item' );
|
|
184
189
|
} );
|
|
185
190
|
|
|
186
191
|
it( 'should close when pressing the escape key', async () => {
|
|
@@ -201,7 +206,7 @@ describe( 'Menu', () => {
|
|
|
201
206
|
|
|
202
207
|
// Focuses menu on mouse click, focuses first item on keyboard press
|
|
203
208
|
// Can be changed with a custom useEffect
|
|
204
|
-
|
|
209
|
+
await waitForFocusedMenu();
|
|
205
210
|
|
|
206
211
|
// Pressing esc will close the menu and move focus to the toggle
|
|
207
212
|
await press.Escape();
|
|
@@ -349,9 +354,7 @@ describe( 'Menu', () => {
|
|
|
349
354
|
);
|
|
350
355
|
|
|
351
356
|
// The menu is focused automatically when `defaultOpen` is set.
|
|
352
|
-
await
|
|
353
|
-
expect( screen.getByRole( 'menu' ) ).toHaveFocus()
|
|
354
|
-
);
|
|
357
|
+
await waitForFocusedMenu();
|
|
355
358
|
|
|
356
359
|
// Arrow up/down selects menu items
|
|
357
360
|
// The selection wraps around from last to first and viceversa
|
|
@@ -391,18 +394,13 @@ describe( 'Menu', () => {
|
|
|
391
394
|
).toHaveFocus();
|
|
392
395
|
|
|
393
396
|
// Arrow right/left can be used to enter/leave submenus
|
|
397
|
+
// (focus crosses menu contexts, so wait for it to settle)
|
|
394
398
|
await press.ArrowRight();
|
|
395
|
-
|
|
396
|
-
screen.getByRole( 'menuitem', {
|
|
397
|
-
name: 'Submenu item 1',
|
|
398
|
-
} )
|
|
399
|
-
).toHaveFocus();
|
|
399
|
+
await waitForFocusedMenuItem( 'Submenu item 1' );
|
|
400
400
|
|
|
401
401
|
await press.ArrowDown();
|
|
402
402
|
expect(
|
|
403
|
-
screen.getByRole( 'menuitem', {
|
|
404
|
-
name: 'Submenu item 2',
|
|
405
|
-
} )
|
|
403
|
+
screen.getByRole( 'menuitem', { name: 'Submenu item 2' } )
|
|
406
404
|
).toHaveFocus();
|
|
407
405
|
|
|
408
406
|
await press.ArrowLeft();
|
|
@@ -414,11 +412,7 @@ describe( 'Menu', () => {
|
|
|
414
412
|
|
|
415
413
|
// Spacebar or enter key can also be used to enter a submenu
|
|
416
414
|
await press.Enter();
|
|
417
|
-
|
|
418
|
-
screen.getByRole( 'menuitem', {
|
|
419
|
-
name: 'Submenu item 1',
|
|
420
|
-
} )
|
|
421
|
-
).toHaveFocus();
|
|
415
|
+
await waitForFocusedMenuItem( 'Submenu item 1' );
|
|
422
416
|
|
|
423
417
|
await press.ArrowLeft();
|
|
424
418
|
expect(
|
|
@@ -428,11 +422,7 @@ describe( 'Menu', () => {
|
|
|
428
422
|
).toHaveFocus();
|
|
429
423
|
|
|
430
424
|
await press.Space();
|
|
431
|
-
|
|
432
|
-
screen.getByRole( 'menuitem', {
|
|
433
|
-
name: 'Submenu item 1',
|
|
434
|
-
} )
|
|
435
|
-
).toHaveFocus();
|
|
425
|
+
await waitForFocusedMenuItem( 'Submenu item 1' );
|
|
436
426
|
|
|
437
427
|
await press.ArrowLeft();
|
|
438
428
|
expect(
|
|
@@ -886,7 +876,7 @@ describe( 'Menu', () => {
|
|
|
886
876
|
);
|
|
887
877
|
|
|
888
878
|
// Menu open, focus is on the menu wrapper
|
|
889
|
-
|
|
879
|
+
await waitForFocusedMenu();
|
|
890
880
|
|
|
891
881
|
expect(
|
|
892
882
|
screen.queryByRole( 'button', {
|
|
@@ -916,18 +906,19 @@ describe( 'Menu', () => {
|
|
|
916
906
|
);
|
|
917
907
|
|
|
918
908
|
// Menu open, focus is on the menu wrapper
|
|
919
|
-
|
|
909
|
+
await waitForFocusedMenu();
|
|
920
910
|
|
|
921
911
|
// Menu is not modal, therefore the outer button is part of the
|
|
922
912
|
// accessibility tree and can be found.
|
|
923
913
|
const outerButton = screen.getByRole( 'button', {
|
|
924
914
|
name: 'Button outside of dropdown',
|
|
925
915
|
} );
|
|
916
|
+
expect( outerButton ).toBeVisible();
|
|
926
917
|
|
|
927
918
|
// The outer button can be focused by pressing tab. Doing so will cause
|
|
928
919
|
// the Menu to close.
|
|
929
920
|
await press.Tab();
|
|
930
|
-
expect( outerButton ).
|
|
921
|
+
expect( outerButton ).toBeVisible();
|
|
931
922
|
expect( screen.queryByRole( 'menu' ) ).not.toBeInTheDocument();
|
|
932
923
|
} );
|
|
933
924
|
} );
|
|
@@ -1068,7 +1059,7 @@ describe( 'Menu', () => {
|
|
|
1068
1059
|
name: 'Open dropdown',
|
|
1069
1060
|
} )
|
|
1070
1061
|
);
|
|
1071
|
-
|
|
1062
|
+
await waitForFocusedMenu();
|
|
1072
1063
|
|
|
1073
1064
|
// Type "tw", it should match and focus the item with content "Two"
|
|
1074
1065
|
await type( 'tw' );
|
|
@@ -1104,7 +1095,7 @@ describe( 'Menu', () => {
|
|
|
1104
1095
|
name: 'Open dropdown',
|
|
1105
1096
|
} )
|
|
1106
1097
|
);
|
|
1107
|
-
|
|
1098
|
+
await waitForFocusedMenu();
|
|
1108
1099
|
|
|
1109
1100
|
// Type a string that doesn't match any items. Focus shouldn't move.
|
|
1110
1101
|
await type( 'abc' );
|
|
@@ -27,7 +27,7 @@ const meta: Meta< typeof MenuGroup > = {
|
|
|
27
27
|
controls: { expanded: true },
|
|
28
28
|
docs: { canvas: { sourceState: 'shown' } },
|
|
29
29
|
componentStatus: {
|
|
30
|
-
status: '
|
|
30
|
+
status: 'recommended',
|
|
31
31
|
whereUsed: 'global',
|
|
32
32
|
notes: 'Subcomponent of `DropdownMenu`.',
|
|
33
33
|
},
|
package/src/modal/index.tsx
CHANGED
|
@@ -121,7 +121,6 @@ function UnforwardedModal(
|
|
|
121
121
|
const onRequestCloseRef =
|
|
122
122
|
useRef< ModalProps[ 'onRequestClose' ] >( undefined );
|
|
123
123
|
useEffect( () => {
|
|
124
|
-
// eslint-disable-next-line react-compiler/react-compiler -- false positive, see https://github.com/facebook/react/issues/29196
|
|
125
124
|
onRequestCloseRef.current = onRequestClose;
|
|
126
125
|
}, [ onRequestClose ] );
|
|
127
126
|
|
|
@@ -169,8 +168,7 @@ function UnforwardedModal(
|
|
|
169
168
|
};
|
|
170
169
|
}, [ bodyOpenClassName ] );
|
|
171
170
|
|
|
172
|
-
const { closeModal, frameRef,
|
|
173
|
-
useModalExitAnimation();
|
|
171
|
+
const { closeModal, frameRef, overlayClassname } = useModalExitAnimation();
|
|
174
172
|
|
|
175
173
|
// Calls the isContentScrollable callback when the Modal children container resizes.
|
|
176
174
|
useLayoutEffect( () => {
|
|
@@ -260,10 +258,7 @@ function UnforwardedModal(
|
|
|
260
258
|
sizeClass,
|
|
261
259
|
className
|
|
262
260
|
) }
|
|
263
|
-
style={
|
|
264
|
-
...frameStyle,
|
|
265
|
-
...style,
|
|
266
|
-
} }
|
|
261
|
+
style={ style }
|
|
267
262
|
ref={ useMergeRefs( [
|
|
268
263
|
frameRef,
|
|
269
264
|
constrainedTabbingRef,
|
|
@@ -46,7 +46,7 @@ const meta: Meta< typeof Modal > = {
|
|
|
46
46
|
parameters: {
|
|
47
47
|
controls: { expanded: true },
|
|
48
48
|
componentStatus: {
|
|
49
|
-
status: '
|
|
49
|
+
status: 'recommended',
|
|
50
50
|
whereUsed: 'global',
|
|
51
51
|
notes: 'Will be superseded by `Dialog` in `@wordpress/ui`, but continue using for now.',
|
|
52
52
|
},
|
package/src/modal/style.scss
CHANGED
|
@@ -16,22 +16,27 @@
|
|
|
16
16
|
z-index: z-index(".components-modal__screen-overlay");
|
|
17
17
|
display: flex;
|
|
18
18
|
// This animates the appearance of the backdrop.
|
|
19
|
-
@include animation__fade-in();
|
|
19
|
+
@include animation__fade-in($speed: var(--wpds-motion-duration-sm), $easing: var(--wpds-motion-easing-subtle));
|
|
20
20
|
|
|
21
21
|
&.is-animating-out {
|
|
22
22
|
// Note: it's important that the fade-out animation doesn't end after the
|
|
23
23
|
// modal frame's disappear animation, because the component will be removed
|
|
24
24
|
// from the DOM when that animation ends.
|
|
25
|
-
@include animation__fade-out($delay:
|
|
25
|
+
@include animation__fade-out($speed: var(--wpds-motion-duration-sm), $delay: var(--wpds-motion-duration-xs), $easing: var(--wpds-motion-easing-subtle));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// The modal window element.
|
|
30
30
|
.components-modal__frame {
|
|
31
31
|
@include reset;
|
|
32
|
-
//
|
|
33
|
-
|
|
32
|
+
// On smaller screens, render as a bottom sheet: edge-to-edge, anchored
|
|
33
|
+
// to the bottom of the viewport. `align-self: flex-end` both anchors
|
|
34
|
+
// the modal to the bottom of the flex overlay and breaks the default
|
|
35
|
+
// `align-items: stretch`, so the modal hugs its content height.
|
|
36
|
+
align-self: flex-end;
|
|
37
|
+
margin: 0;
|
|
34
38
|
width: 100%;
|
|
39
|
+
max-height: calc(100% - #{$grid-unit-50});
|
|
35
40
|
background: $white;
|
|
36
41
|
box-shadow: $elevation-large;
|
|
37
42
|
border-radius: $radius-large $radius-large 0 0;
|
|
@@ -42,7 +47,7 @@
|
|
|
42
47
|
// Animate the modal frame/contents appearing on the page.
|
|
43
48
|
animation-name: components-modal__appear-animation;
|
|
44
49
|
animation-fill-mode: forwards;
|
|
45
|
-
animation-timing-function:
|
|
50
|
+
animation-timing-function: var(--wpds-motion-easing-expressive);
|
|
46
51
|
|
|
47
52
|
// Ensure all headings use the proper editor text color, overriding wp-admin common.css
|
|
48
53
|
h1,
|
|
@@ -52,16 +57,17 @@
|
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
@media not (prefers-reduced-motion) {
|
|
55
|
-
animation-duration: var(--
|
|
60
|
+
animation-duration: var(--wpds-motion-duration-md);
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
.components-modal__screen-overlay.is-animating-out & {
|
|
59
64
|
animation-name: components-modal__disappear-animation;
|
|
60
|
-
animation-timing-function:
|
|
65
|
+
animation-timing-function: var(--wpds-motion-easing-expressive);
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
// Show a centered modal on bigger screens.
|
|
64
69
|
@include break-small() {
|
|
70
|
+
align-self: auto;
|
|
65
71
|
border-radius: $radius-large;
|
|
66
72
|
margin: auto;
|
|
67
73
|
width: auto;
|
|
@@ -69,19 +75,6 @@
|
|
|
69
75
|
max-width: calc(100% - #{$grid-unit-20 * 2});
|
|
70
76
|
max-height: calc(100% - #{$header-height * 2});
|
|
71
77
|
|
|
72
|
-
&.is-full-screen {
|
|
73
|
-
@include break-small() {
|
|
74
|
-
width: calc(100% - #{ $grid-unit-20 * 2 });
|
|
75
|
-
height: calc(100% - #{ $grid-unit-20 * 2 });
|
|
76
|
-
max-height: none;
|
|
77
|
-
}
|
|
78
|
-
@include break-medium() {
|
|
79
|
-
width: calc(100% - #{ $grid-unit-50 * 2 });
|
|
80
|
-
height: calc(100% - #{ $grid-unit-50 * 2 });
|
|
81
|
-
max-width: none;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
78
|
&.has-size-small,
|
|
86
79
|
&.has-size-medium,
|
|
87
80
|
&.has-size-large {
|
|
@@ -105,6 +98,14 @@
|
|
|
105
98
|
}
|
|
106
99
|
|
|
107
100
|
&.is-full-screen {
|
|
101
|
+
// Full-screen modals cover the entire viewport on mobile,
|
|
102
|
+
// overriding the bottom-sheet defaults.
|
|
103
|
+
margin: 0;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
max-height: none;
|
|
107
|
+
border-radius: 0;
|
|
108
|
+
|
|
108
109
|
// When full screen, make sure the children container is full height.
|
|
109
110
|
:where(.components-modal__content) {
|
|
110
111
|
display: flex;
|
|
@@ -116,17 +117,33 @@
|
|
|
116
117
|
flex: 1;
|
|
117
118
|
}
|
|
118
119
|
}
|
|
120
|
+
|
|
121
|
+
@include break-small() {
|
|
122
|
+
// Reset the mobile bottom-sheet overrides so the desktop
|
|
123
|
+
// full-screen modal is centered with rounded corners.
|
|
124
|
+
margin: auto;
|
|
125
|
+
border-radius: $radius-large;
|
|
126
|
+
width: calc(100% - #{ $grid-unit-20 * 2 });
|
|
127
|
+
height: calc(100% - #{ $grid-unit-20 * 2 });
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include break-medium() {
|
|
131
|
+
width: calc(100% - #{ $grid-unit-50 * 2 });
|
|
132
|
+
height: calc(100% - #{ $grid-unit-50 * 2 });
|
|
133
|
+
max-width: none;
|
|
134
|
+
}
|
|
119
135
|
}
|
|
120
136
|
}
|
|
121
137
|
|
|
138
|
+
// On mobile, the modal slides up from the bottom of the viewport.
|
|
122
139
|
@keyframes components-modal__appear-animation {
|
|
123
140
|
from {
|
|
124
141
|
opacity: 0;
|
|
125
|
-
transform:
|
|
142
|
+
transform: translateY(100%);
|
|
126
143
|
}
|
|
127
144
|
to {
|
|
128
145
|
opacity: 1;
|
|
129
|
-
transform:
|
|
146
|
+
transform: translateY(0);
|
|
130
147
|
}
|
|
131
148
|
}
|
|
132
149
|
|
|
@@ -135,11 +152,38 @@
|
|
|
135
152
|
@keyframes components-modal__disappear-animation {
|
|
136
153
|
from {
|
|
137
154
|
opacity: 1;
|
|
138
|
-
transform:
|
|
155
|
+
transform: translateY(0);
|
|
139
156
|
}
|
|
140
157
|
to {
|
|
141
158
|
opacity: 0;
|
|
142
|
-
transform:
|
|
159
|
+
transform: translateY(100%);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// On bigger screens, the modal scales in/out instead of sliding. The keyframe
|
|
164
|
+
// names are intentionally reused so the JS animationend listener
|
|
165
|
+
// (use-modal-exit-animation.ts) keeps working unchanged.
|
|
166
|
+
@include break-small() {
|
|
167
|
+
@keyframes components-modal__appear-animation {
|
|
168
|
+
from {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: scale(0.9);
|
|
171
|
+
}
|
|
172
|
+
to {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
transform: scale(1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@keyframes components-modal__disappear-animation {
|
|
179
|
+
from {
|
|
180
|
+
opacity: 1;
|
|
181
|
+
transform: scale(1);
|
|
182
|
+
}
|
|
183
|
+
to {
|
|
184
|
+
opacity: 0;
|
|
185
|
+
transform: scale(0.9);
|
|
186
|
+
}
|
|
143
187
|
}
|
|
144
188
|
}
|
|
145
189
|
|
|
@@ -10,9 +10,15 @@ import warning from '@wordpress/warning';
|
|
|
10
10
|
*/
|
|
11
11
|
import { CONFIG } from '../utils';
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Milliseconds used as a fallback when racing `animationend` against a timeout.
|
|
15
|
+
*
|
|
16
|
+
* Sourced from `CONFIG.transitionDuration`. This value is implicitly coupled to
|
|
17
|
+
* the modal frame’s CSS `animation-duration` in `style.scss`, which uses
|
|
18
|
+
* `var(--wpds-motion-duration-md)`. If either the token, the SCSS, or
|
|
19
|
+
* `CONFIG.transitionDuration` changes, keep them aligned so exit timing stays correct.
|
|
20
|
+
*/
|
|
21
|
+
const FRAME_ANIMATION_DURATION_MS = Number.parseInt(
|
|
16
22
|
CONFIG.transitionDuration
|
|
17
23
|
);
|
|
18
24
|
|
|
@@ -68,7 +74,7 @@ export function useModalExitAnimation() {
|
|
|
68
74
|
// Allow an extra 20% of the animation duration for the
|
|
69
75
|
// animationend event to fire, in case the animation frame is
|
|
70
76
|
// slightly delayes by some other events in the event loop.
|
|
71
|
-
|
|
77
|
+
FRAME_ANIMATION_DURATION_MS * 1.2
|
|
72
78
|
);
|
|
73
79
|
} );
|
|
74
80
|
|
|
@@ -91,9 +97,6 @@ export function useModalExitAnimation() {
|
|
|
91
97
|
return {
|
|
92
98
|
overlayClassname: isAnimatingOut ? 'is-animating-out' : undefined,
|
|
93
99
|
frameRef,
|
|
94
|
-
frameStyle: {
|
|
95
|
-
'--modal-frame-animation-duration': `${ FRAME_ANIMATION_DURATION }`,
|
|
96
|
-
},
|
|
97
100
|
closeModal,
|
|
98
101
|
};
|
|
99
102
|
}
|
|
@@ -31,7 +31,7 @@ const meta: Meta< typeof Notice > = {
|
|
|
31
31
|
controls: { expanded: true },
|
|
32
32
|
docs: { canvas: { sourceState: 'shown' } },
|
|
33
33
|
componentStatus: {
|
|
34
|
-
status: '
|
|
34
|
+
status: 'recommended',
|
|
35
35
|
whereUsed: 'global',
|
|
36
36
|
notes: 'Will be superseded by `Notice` in `@wordpress/ui`, but continue using for now.',
|
|
37
37
|
},
|
|
@@ -7,6 +7,7 @@ exports[`Notice should match snapshot 1`] = `
|
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
9
|
class="components-visually-hidden css-1ragr82-PolymorphicDiv emotion-0"
|
|
10
|
+
data-visually-hidden=""
|
|
10
11
|
data-wp-c16t="true"
|
|
11
12
|
data-wp-component="VisuallyHidden"
|
|
12
13
|
style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal; word-break: normal;"
|
|
@@ -30,7 +30,7 @@ const meta: Meta< typeof NumberControl > = {
|
|
|
30
30
|
controls: { expanded: true },
|
|
31
31
|
docs: { canvas: { sourceState: 'shown' } },
|
|
32
32
|
componentStatus: {
|
|
33
|
-
status: '
|
|
33
|
+
status: 'recommended',
|
|
34
34
|
whereUsed: 'global',
|
|
35
35
|
notes: 'Will be superseded by `InputControl` with `type="number"` in `@wordpress/ui`, but continue using for now.',
|
|
36
36
|
},
|
|
@@ -299,7 +299,6 @@ function PaletteEditListView< T extends PaletteElement >( {
|
|
|
299
299
|
// When unmounting the component if there are empty elements (the user did not complete the insertion) clean them.
|
|
300
300
|
const elementsReferenceRef = useRef< T[] >( undefined );
|
|
301
301
|
useEffect( () => {
|
|
302
|
-
// eslint-disable-next-line react-compiler/react-compiler -- false positive, see https://github.com/facebook/react/issues/29196
|
|
303
302
|
elementsReferenceRef.current = elements;
|
|
304
303
|
}, [ elements ] );
|
|
305
304
|
|
package/src/popover/style.scss
CHANGED
|
@@ -73,10 +73,6 @@ $shadow-popover-border-top-only-alternate: 0 #{-$border-width} 0 $gray-900;
|
|
|
73
73
|
width: 100%;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.components-popover__close.components-button {
|
|
77
|
-
z-index: z-index(".components-popover__close");
|
|
78
|
-
}
|
|
79
|
-
|
|
80
76
|
.components-popover__arrow {
|
|
81
77
|
position: absolute;
|
|
82
78
|
width: $arrow-triangle-base-size;
|
|
@@ -38,7 +38,7 @@ const meta: Meta< typeof RadioControl > = {
|
|
|
38
38
|
},
|
|
39
39
|
docs: { canvas: { sourceState: 'shown' } },
|
|
40
40
|
componentStatus: {
|
|
41
|
-
status: '
|
|
41
|
+
status: 'recommended',
|
|
42
42
|
whereUsed: 'global',
|
|
43
43
|
notes: 'Will be superseded by `RadioGroupControl` in `@wordpress/ui`, but continue using for now.',
|
|
44
44
|
},
|
|
@@ -59,7 +59,7 @@ const meta: Meta< typeof RangeControl > = {
|
|
|
59
59
|
controls: { expanded: true },
|
|
60
60
|
docs: { canvas: { sourceState: 'shown' } },
|
|
61
61
|
componentStatus: {
|
|
62
|
-
status: '
|
|
62
|
+
status: 'recommended',
|
|
63
63
|
whereUsed: 'global',
|
|
64
64
|
notes: 'Will be superseded by `SliderControl` in `@wordpress/ui`, but continue using for now.',
|
|
65
65
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
@use "@wordpress/base-styles/colors" as *;
|
|
3
3
|
@use "@wordpress/base-styles/variables" as *;
|
|
4
|
-
@use "@wordpress/base-styles/z-index" as *;
|
|
5
4
|
@use "../utils/theme-variables" as *;
|
|
6
5
|
|
|
7
6
|
$resize-handler-size: 15px;
|
|
@@ -15,7 +14,7 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
|
|
|
15
14
|
height: $resize-handler-container-size;
|
|
16
15
|
|
|
17
16
|
// Elevate the resize handle above the focus style.
|
|
18
|
-
z-index:
|
|
17
|
+
z-index: 2;
|
|
19
18
|
|
|
20
19
|
// Show the resize handle if set in props
|
|
21
20
|
.components-resizable-box__container.has-show-handle & {
|
|
@@ -26,7 +25,7 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
|
|
|
26
25
|
position: relative;
|
|
27
26
|
width: 100%;
|
|
28
27
|
height: 100%;
|
|
29
|
-
z-index:
|
|
28
|
+
z-index: 2;
|
|
30
29
|
outline: none;
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -77,11 +76,11 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
|
|
|
77
76
|
|
|
78
77
|
// Show corner handles on top of side handles so they can be used
|
|
79
78
|
.components-resizable-box__side-handle {
|
|
80
|
-
z-index:
|
|
79
|
+
z-index: 2;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
.components-resizable-box__corner-handle {
|
|
84
|
-
z-index:
|
|
83
|
+
z-index: 2;
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
// Make horizontal side-handles full width
|