@wordpress/components 26.0.1-next.5a1d1283.0 → 26.0.1
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/.stylelintrc.js +23 -0
- package/CHANGELOG.md +359 -3
- package/CONTRIBUTING.md +60 -118
- package/LICENSE.md +1 -1
- package/README.md +2 -7
- package/build/alignment-matrix-control/cell.js +11 -8
- package/build/alignment-matrix-control/cell.js.map +1 -1
- package/build/alignment-matrix-control/icon.js +5 -6
- package/build/alignment-matrix-control/icon.js.map +1 -1
- package/build/alignment-matrix-control/index.js +30 -46
- package/build/alignment-matrix-control/index.js.map +1 -1
- package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js +4 -8
- package/build/alignment-matrix-control/styles/alignment-matrix-control-icon-styles.js.map +1 -1
- package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js +4 -8
- package/build/alignment-matrix-control/styles/alignment-matrix-control-styles.js.map +1 -1
- package/build/alignment-matrix-control/utils.js +32 -15
- package/build/alignment-matrix-control/utils.js.map +1 -1
- package/build/angle-picker-control/angle-circle.js +5 -5
- package/build/angle-picker-control/angle-circle.js.map +1 -1
- package/build/angle-picker-control/index.js +9 -21
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/angle-picker-control/styles/angle-picker-control-styles.js +10 -28
- package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build/angle-picker-control/types.js.map +1 -1
- package/build/animate/index.js +1 -2
- package/build/animate/index.js.map +1 -1
- package/build/animation/index.js +6 -0
- package/build/animation/index.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.js +6 -5
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.native.js +10 -10
- package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build/autocomplete/background-view.android.js +3 -4
- package/build/autocomplete/background-view.android.js.map +1 -1
- package/build/autocomplete/background-view.ios.js +3 -4
- package/build/autocomplete/background-view.ios.js.map +1 -1
- package/build/autocomplete/index.js +108 -55
- package/build/autocomplete/index.js.map +1 -1
- package/build/autocomplete/types.js.map +1 -1
- package/build/base-control/index.js +24 -22
- package/build/base-control/index.js.map +1 -1
- package/build/base-control/index.native.js +3 -3
- package/build/base-control/index.native.js.map +1 -1
- package/build/base-control/styles/base-control-styles.js +14 -19
- package/build/base-control/styles/base-control-styles.js.map +1 -1
- package/build/border-box-control/border-box-control/component.js +13 -14
- package/build/border-box-control/border-box-control/component.js.map +1 -1
- package/build/border-box-control/border-box-control/hook.js +6 -4
- package/build/border-box-control/border-box-control/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-linked-button/component.js +7 -8
- package/build/border-box-control/border-box-control-linked-button/component.js.map +1 -1
- package/build/border-box-control/border-box-control-linked-button/hook.js +3 -3
- package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js +10 -10
- package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/hook.js +3 -3
- package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-visualizer/component.js +4 -5
- package/build/border-box-control/border-box-control-visualizer/component.js.map +1 -1
- package/build/border-box-control/border-box-control-visualizer/hook.js +3 -3
- package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build/border-box-control/styles.js +3 -6
- package/build/border-box-control/styles.js.map +1 -1
- package/build/border-box-control/types.js.map +1 -1
- package/build/border-control/border-control/component.js +17 -15
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control/hook.js +21 -18
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/border-control/border-control-dropdown/component.js +20 -18
- package/build/border-control/border-control-dropdown/component.js.map +1 -1
- package/build/border-control/border-control-dropdown/hook.js +6 -5
- package/build/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build/border-control/border-control-style-picker/component.js +23 -52
- package/build/border-control/border-control-style-picker/component.js.map +1 -1
- package/build/border-control/styles.js +17 -36
- package/build/border-control/styles.js.map +1 -1
- package/build/border-control/types.js.map +1 -1
- package/build/box-control/all-input-control.js +36 -30
- package/build/box-control/all-input-control.js.map +1 -1
- package/build/box-control/axial-input-controls.js +41 -55
- package/build/box-control/axial-input-controls.js.map +1 -1
- package/build/box-control/icon.js +6 -6
- package/build/box-control/icon.js.map +1 -1
- package/build/box-control/index.js +24 -27
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/input-controls.js +46 -38
- package/build/box-control/input-controls.js.map +1 -1
- package/build/box-control/linked-button.js +4 -4
- package/build/box-control/linked-button.js.map +1 -1
- package/build/box-control/styles/box-control-icon-styles.js +6 -12
- package/build/box-control/styles/box-control-icon-styles.js.map +1 -1
- package/build/box-control/styles/box-control-styles.js +44 -112
- package/build/box-control/styles/box-control-styles.js.map +1 -1
- package/build/box-control/types.js.map +1 -1
- package/build/box-control/utils.js +125 -14
- package/build/box-control/utils.js.map +1 -1
- package/build/button/deprecated.js +4 -4
- package/build/button/deprecated.js.map +1 -1
- package/build/button/index.js +41 -24
- package/build/button/index.js.map +1 -1
- package/build/button/index.native.js +10 -11
- package/build/button/index.native.js.map +1 -1
- package/build/button/types.js.map +1 -1
- package/build/button-group/index.js +5 -6
- package/build/button-group/index.js.map +1 -1
- package/build/card/card/component.js +14 -15
- package/build/card/card/component.js.map +1 -1
- package/build/card/card/hook.js +3 -3
- package/build/card/card/hook.js.map +1 -1
- package/build/card/card-body/component.js +6 -8
- package/build/card/card-body/component.js.map +1 -1
- package/build/card/card-body/hook.js +3 -3
- package/build/card/card-body/hook.js.map +1 -1
- package/build/card/card-divider/component.js +5 -7
- package/build/card/card-divider/component.js.map +1 -1
- package/build/card/card-divider/hook.js +3 -3
- package/build/card/card-divider/hook.js.map +1 -1
- package/build/card/card-footer/component.js +5 -7
- package/build/card/card-footer/component.js.map +1 -1
- package/build/card/card-footer/hook.js +3 -3
- package/build/card/card-footer/hook.js.map +1 -1
- package/build/card/card-header/component.js +5 -7
- package/build/card/card-header/component.js.map +1 -1
- package/build/card/card-header/hook.js +3 -3
- package/build/card/card-header/hook.js.map +1 -1
- package/build/card/card-media/component.js +5 -7
- package/build/card/card-media/component.js.map +1 -1
- package/build/card/card-media/hook.js +3 -3
- package/build/card/card-media/hook.js.map +1 -1
- package/build/card/context.js +1 -2
- package/build/card/context.js.map +1 -1
- package/build/card/index.js +2 -2
- package/build/card/index.js.map +1 -1
- package/build/card/styles.js +14 -28
- package/build/card/styles.js.map +1 -1
- package/build/checkbox-control/index.js +9 -9
- package/build/checkbox-control/index.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-actions.js +53 -0
- package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -0
- package/build/circular-option-picker/circular-option-picker-context.js +13 -0
- package/build/circular-option-picker/circular-option-picker-context.js.map +1 -0
- package/build/circular-option-picker/circular-option-picker-option-group.js +26 -0
- package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -0
- package/build/circular-option-picker/circular-option-picker-option.js +98 -0
- package/build/circular-option-picker/circular-option-picker-option.js.map +1 -0
- package/build/circular-option-picker/circular-option-picker.js +151 -0
- package/build/circular-option-picker/circular-option-picker.js.map +1 -0
- package/build/circular-option-picker/index.js +29 -138
- package/build/circular-option-picker/index.js.map +1 -1
- package/build/circular-option-picker/types.js.map +1 -1
- package/build/clipboard-button/index.js +3 -2
- package/build/clipboard-button/index.js.map +1 -1
- package/build/color-control/index.native.js +3 -4
- package/build/color-control/index.native.js.map +1 -1
- package/build/color-indicator/index.js +5 -6
- package/build/color-indicator/index.js.map +1 -1
- package/build/color-indicator/index.native.js +15 -16
- package/build/color-indicator/index.native.js.map +1 -1
- package/build/color-palette/index.js +83 -40
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/index.native.js +26 -22
- package/build/color-palette/index.native.js.map +1 -1
- package/build/color-palette/styles.js +1 -2
- package/build/color-palette/styles.js.map +1 -1
- package/build/color-palette/types.js.map +1 -1
- package/build/color-picker/color-copy-button.js +10 -10
- package/build/color-picker/color-copy-button.js.map +1 -1
- package/build/color-picker/color-input.js +4 -4
- package/build/color-picker/color-input.js.map +1 -1
- package/build/color-picker/component.js +24 -15
- package/build/color-picker/component.js.map +1 -1
- package/build/color-picker/hex-input.js +4 -4
- package/build/color-picker/hex-input.js.map +1 -1
- package/build/color-picker/hsl-input.js +60 -38
- package/build/color-picker/hsl-input.js.map +1 -1
- package/build/color-picker/hsv-color-picker.native.js +6 -6
- package/build/color-picker/hsv-color-picker.native.js.map +1 -1
- package/build/color-picker/hue-picker.native.js +8 -7
- package/build/color-picker/hue-picker.native.js.map +1 -1
- package/build/color-picker/index.native.js +12 -11
- package/build/color-picker/index.native.js.map +1 -1
- package/build/color-picker/input-with-slider.js +6 -6
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/color-picker/legacy-adapter.js +2 -2
- package/build/color-picker/legacy-adapter.js.map +1 -1
- package/build/color-picker/picker.js +80 -3
- package/build/color-picker/picker.js.map +1 -1
- package/build/color-picker/rgb-input.js +5 -5
- package/build/color-picker/rgb-input.js.map +1 -1
- package/build/color-picker/saturation-picker.native.js +9 -8
- package/build/color-picker/saturation-picker.native.js.map +1 -1
- package/build/color-picker/styles.js +17 -25
- package/build/color-picker/styles.js.map +1 -1
- package/build/color-picker/types.js.map +1 -1
- package/build/combobox-control/index.js +11 -14
- package/build/combobox-control/index.js.map +1 -1
- package/build/combobox-control/styles.js +4 -5
- package/build/combobox-control/styles.js.map +1 -1
- package/build/composite/current/index.js +43 -0
- package/build/composite/current/index.js.map +1 -0
- package/build/composite/index.js +10 -24
- package/build/composite/index.js.map +1 -1
- package/build/composite/legacy/index.js +127 -0
- package/build/composite/legacy/index.js.map +1 -0
- package/build/composite/v2.js +17 -0
- package/build/composite/v2.js.map +1 -0
- package/build/confirm-dialog/component.js +85 -18
- package/build/confirm-dialog/component.js.map +1 -1
- package/build/confirm-dialog/styles.js +1 -2
- package/build/confirm-dialog/styles.js.map +1 -1
- package/build/confirm-dialog/types.js.map +1 -1
- package/build/context/constants.js +15 -0
- package/build/context/constants.js.map +1 -0
- package/build/{ui/context → context}/context-connect.js +1 -1
- package/build/context/context-connect.js.map +1 -0
- package/build/{ui/context → context}/context-system-provider.js +6 -7
- package/build/context/context-system-provider.js.map +1 -0
- package/build/{ui/context → context}/get-styled-class-name-from-key.js +1 -2
- package/build/context/get-styled-class-name-from-key.js.map +1 -0
- package/build/context/index.js.map +1 -0
- package/build/{ui/context → context}/use-context-system.js +1 -1
- package/build/context/use-context-system.js.map +1 -0
- package/build/context/utils.js.map +1 -0
- package/build/context/wordpress-component.js.map +1 -0
- package/build/custom-gradient-picker/constants.js +5 -10
- package/build/custom-gradient-picker/constants.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/constants.js +7 -14
- package/build/custom-gradient-picker/gradient-bar/constants.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +26 -17
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/index.js +7 -6
- package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build/custom-gradient-picker/index.js +10 -25
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/index.native.js +7 -7
- package/build/custom-gradient-picker/index.native.js.map +1 -1
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js +2 -4
- package/build/custom-gradient-picker/styles/custom-gradient-picker-styles.js.map +1 -1
- package/build/custom-gradient-picker/types.js.map +1 -1
- package/build/custom-select-control/index.js +20 -18
- package/build/custom-select-control/index.js.map +1 -1
- package/build/custom-select-control/styles.js +1 -2
- package/build/custom-select-control/styles.js.map +1 -1
- package/build/custom-select-control-v2/index.js +90 -0
- package/build/custom-select-control-v2/index.js.map +1 -0
- package/build/custom-select-control-v2/styles.js +81 -0
- package/build/custom-select-control-v2/styles.js.map +1 -0
- package/build/custom-select-control-v2/types.js.map +1 -0
- package/build/dashicon/index.js +3 -4
- package/build/dashicon/index.js.map +1 -1
- package/build/dashicon/index.native.js +5 -6
- package/build/dashicon/index.native.js.map +1 -1
- package/build/date-time/constants.js +1 -2
- package/build/date-time/constants.js.map +1 -1
- package/build/date-time/date/index.js +11 -11
- package/build/date-time/date/index.js.map +1 -1
- package/build/date-time/date/styles.js +15 -21
- package/build/date-time/date/styles.js.map +1 -1
- package/build/date-time/date-time/index.js +6 -7
- package/build/date-time/date-time/index.js.map +1 -1
- package/build/date-time/date-time/styles.js +1 -2
- package/build/date-time/date-time/styles.js.map +1 -1
- package/build/date-time/index.js +1 -2
- package/build/date-time/index.js.map +1 -1
- package/build/date-time/time/index.js +32 -23
- package/build/date-time/time/index.js.map +1 -1
- package/build/date-time/time/styles.js +35 -54
- package/build/date-time/time/styles.js.map +1 -1
- package/build/date-time/time/timezone.js +16 -8
- package/build/date-time/time/timezone.js.map +1 -1
- package/build/dimension-control/index.js +8 -7
- package/build/dimension-control/index.js.map +1 -1
- package/build/dimension-control/sizes.js +1 -2
- package/build/dimension-control/sizes.js.map +1 -1
- package/build/dimension-control/types.js.map +1 -1
- package/build/disabled/index.js +4 -4
- package/build/disabled/index.js.map +1 -1
- package/build/disabled/index.native.js +3 -4
- package/build/disabled/index.native.js.map +1 -1
- package/build/disabled/styles/disabled-styles.js +1 -2
- package/build/disabled/styles/disabled-styles.js.map +1 -1
- package/build/disclosure/index.js +35 -7
- package/build/disclosure/index.js.map +1 -1
- package/build/disclosure/types.js.map +1 -0
- package/build/divider/component.js +9 -9
- package/build/divider/component.js.map +1 -1
- package/build/divider/styles.js +7 -8
- package/build/divider/styles.js.map +1 -1
- package/build/divider/types.js.map +1 -1
- package/build/draggable/index.js +5 -5
- package/build/draggable/index.js.map +1 -1
- package/build/draggable/index.native.js +9 -9
- package/build/draggable/index.native.js.map +1 -1
- package/build/drop-zone/index.js +9 -9
- package/build/drop-zone/index.js.map +1 -1
- package/build/dropdown/dropdown-content-wrapper.js +5 -7
- package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
- package/build/dropdown/index.js +18 -31
- package/build/dropdown/index.js.map +1 -1
- package/build/dropdown/index.native.js +3 -3
- package/build/dropdown/index.native.js.map +1 -1
- package/build/dropdown/styles.js +4 -5
- package/build/dropdown/styles.js.map +1 -1
- package/build/dropdown/types.js.map +1 -1
- package/build/dropdown-menu/index.js +15 -11
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/dropdown-menu/index.native.js +7 -8
- package/build/dropdown-menu/index.native.js.map +1 -1
- package/build/dropdown-menu/types.js.map +1 -1
- package/build/dropdown-menu-v2/index.js +204 -166
- package/build/dropdown-menu-v2/index.js.map +1 -1
- package/build/dropdown-menu-v2/styles.js +76 -80
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/dropdown-menu-v2/types.js.map +1 -1
- package/build/duotone-picker/color-list-picker/index.js +26 -11
- package/build/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build/duotone-picker/custom-duotone-bar.js +2 -2
- package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +53 -16
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/duotone-picker/duotone-swatch.js +4 -5
- package/build/duotone-picker/duotone-swatch.js.map +1 -1
- package/build/duotone-picker/types.js.map +1 -1
- package/build/elevation/component.js +5 -7
- package/build/elevation/component.js.map +1 -1
- package/build/elevation/hook.js +7 -7
- package/build/elevation/hook.js.map +1 -1
- package/build/elevation/styles.js +1 -2
- package/build/elevation/styles.js.map +1 -1
- package/build/external-link/index.js +8 -9
- package/build/external-link/index.js.map +1 -1
- package/build/external-link/index.native.js +4 -5
- package/build/external-link/index.native.js.map +1 -1
- package/build/external-link/styles/external-link-styles.js +1 -2
- package/build/external-link/styles/external-link-styles.js.map +1 -1
- package/build/flex/context.js +1 -2
- package/build/flex/context.js.map +1 -1
- package/build/flex/flex/component.js +6 -8
- package/build/flex/flex/component.js.map +1 -1
- package/build/flex/flex/hook.js +6 -6
- package/build/flex/flex/hook.js.map +1 -1
- package/build/flex/flex-block/component.js +5 -7
- package/build/flex/flex-block/component.js.map +1 -1
- package/build/flex/flex-block/hook.js +1 -1
- package/build/flex/flex-block/hook.js.map +1 -1
- package/build/flex/flex-item/component.js +5 -7
- package/build/flex/flex-item/component.js.map +1 -1
- package/build/flex/flex-item/hook.js +4 -4
- package/build/flex/flex-item/hook.js.map +1 -1
- package/build/flex/index.js +2 -2
- package/build/flex/index.js.map +1 -1
- package/build/flex/styles.js +5 -10
- package/build/flex/styles.js.map +1 -1
- package/build/flex/types.js.map +1 -1
- package/build/focal-point-picker/controls.js +10 -6
- package/build/focal-point-picker/controls.js.map +1 -1
- package/build/focal-point-picker/focal-point.js +2 -2
- package/build/focal-point-picker/focal-point.js.map +1 -1
- package/build/focal-point-picker/focal-point.native.js +4 -4
- package/build/focal-point-picker/focal-point.native.js.map +1 -1
- package/build/focal-point-picker/grid.js +6 -6
- package/build/focal-point-picker/grid.js.map +1 -1
- package/build/focal-point-picker/index.js +14 -12
- package/build/focal-point-picker/index.js.map +1 -1
- package/build/focal-point-picker/index.native.js +14 -15
- package/build/focal-point-picker/index.native.js.map +1 -1
- package/build/focal-point-picker/media.js +4 -4
- package/build/focal-point-picker/media.js.map +1 -1
- package/build/focal-point-picker/styles/focal-point-picker-style.js +41 -58
- package/build/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
- package/build/focal-point-picker/styles/focal-point-style.js +12 -4
- package/build/focal-point-picker/styles/focal-point-style.js.map +1 -1
- package/build/focal-point-picker/tooltip/index.native.js +9 -9
- package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build/focal-point-picker/types.js.map +1 -1
- package/build/focal-point-picker/utils.js +1 -2
- package/build/focal-point-picker/utils.js.map +1 -1
- package/build/focusable-iframe/index.js +2 -6
- package/build/focusable-iframe/index.js.map +1 -1
- package/build/focusable-iframe/types.js +6 -0
- package/build/focusable-iframe/types.js.map +1 -0
- package/build/font-size-picker/constants.js +2 -4
- package/build/font-size-picker/constants.js.map +1 -1
- package/build/font-size-picker/font-size-picker-select.js +5 -4
- package/build/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build/font-size-picker/font-size-picker-toggle-group.js +7 -7
- package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build/font-size-picker/index.js +32 -40
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +21 -18
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/font-size-picker/styles.js +18 -30
- package/build/font-size-picker/styles.js.map +1 -1
- package/build/font-size-picker/types.js.map +1 -1
- package/build/font-size-picker/utils.js +1 -1
- package/build/font-size-picker/utils.js.map +1 -1
- package/build/footer-message-control/index.native.js +3 -3
- package/build/footer-message-control/index.native.js.map +1 -1
- package/build/form-file-upload/index.js +5 -5
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-toggle/index.js +6 -7
- package/build/form-toggle/index.js.map +1 -1
- package/build/form-token-field/index.js +31 -22
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/styles.js +4 -5
- package/build/form-token-field/styles.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +7 -7
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/form-token-field/token-input.js +5 -6
- package/build/form-token-field/token-input.js.map +1 -1
- package/build/form-token-field/token.js +7 -6
- package/build/form-token-field/token.js.map +1 -1
- package/build/form-token-field/types.js.map +1 -1
- package/build/gradient-picker/index.js +85 -65
- package/build/gradient-picker/index.js.map +1 -1
- package/build/gradient-picker/types.js.map +1 -1
- package/build/grid/component.js +5 -7
- package/build/grid/component.js.map +1 -1
- package/build/grid/hook.js +3 -3
- package/build/grid/hook.js.map +1 -1
- package/build/grid/types.js.map +1 -1
- package/build/guide/icons.js +3 -3
- package/build/guide/icons.js.map +1 -1
- package/build/guide/index.js +11 -11
- package/build/guide/index.js.map +1 -1
- package/build/guide/page-control.js +5 -5
- package/build/guide/page-control.js.map +1 -1
- package/build/guide/page.js +2 -1
- package/build/guide/page.js.map +1 -1
- package/build/h-stack/component.js +5 -7
- package/build/h-stack/component.js.map +1 -1
- package/build/h-stack/hook.js +4 -4
- package/build/h-stack/hook.js.map +1 -1
- package/build/heading/component.js +5 -7
- package/build/heading/component.js.map +1 -1
- package/build/heading/hook.js +8 -5
- package/build/heading/hook.js.map +1 -1
- package/build/heading/types.js.map +1 -1
- package/build/higher-order/navigate-regions/index.js +4 -4
- package/build/higher-order/navigate-regions/index.js.map +1 -1
- package/build/higher-order/with-constrained-tabbing/index.js +4 -5
- package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
- package/build/higher-order/with-fallback-styles/index.js +4 -3
- package/build/higher-order/with-fallback-styles/index.js.map +1 -1
- package/build/higher-order/with-filters/index.js +2 -1
- package/build/higher-order/with-filters/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.js +5 -6
- package/build/higher-order/with-focus-outside/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.native.js +5 -5
- package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
- package/build/higher-order/with-focus-return/index.js +4 -4
- package/build/higher-order/with-focus-return/index.js.map +1 -1
- package/build/higher-order/with-notices/index.js +6 -6
- package/build/higher-order/with-notices/index.js.map +1 -1
- package/build/higher-order/with-spoken-messages/index.js +5 -6
- package/build/higher-order/with-spoken-messages/index.js.map +1 -1
- package/build/icon/index.js +1 -2
- package/build/icon/index.js.map +1 -1
- package/build/index.js +8 -2
- package/build/index.js.map +1 -1
- package/build/index.native.js +29 -21
- package/build/index.native.js.map +1 -1
- package/build/input-control/backdrop.js +5 -3
- package/build/input-control/backdrop.js.map +1 -1
- package/build/input-control/index.js +36 -35
- package/build/input-control/index.js.map +1 -1
- package/build/input-control/input-base.js +33 -29
- package/build/input-control/input-base.js.map +1 -1
- package/build/input-control/input-field.js +5 -5
- package/build/input-control/input-field.js.map +1 -1
- package/build/input-control/input-prefix-wrapper.js +5 -7
- package/build/input-control/input-prefix-wrapper.js.map +1 -1
- package/build/input-control/input-suffix-wrapper.js +5 -7
- package/build/input-control/input-suffix-wrapper.js.map +1 -1
- package/build/input-control/label.js +3 -3
- package/build/input-control/label.js.map +1 -1
- package/build/input-control/reducer/actions.js +11 -22
- package/build/input-control/reducer/actions.js.map +1 -1
- package/build/input-control/reducer/reducer.js +2 -2
- package/build/input-control/reducer/reducer.js.map +1 -1
- package/build/input-control/reducer/state.js +1 -2
- package/build/input-control/reducer/state.js.map +1 -1
- package/build/input-control/styles/input-control-styles.js +58 -60
- package/build/input-control/styles/input-control-styles.js.map +1 -1
- package/build/input-control/types.js.map +1 -1
- package/build/isolated-event-container/index.js +3 -3
- package/build/isolated-event-container/index.js.map +1 -1
- package/build/item-group/context.js +1 -2
- package/build/item-group/context.js.map +1 -1
- package/build/item-group/item/component.js +6 -8
- package/build/item-group/item/component.js.map +1 -1
- package/build/item-group/item/hook.js +3 -3
- package/build/item-group/item/hook.js.map +1 -1
- package/build/item-group/item-group/component.js +6 -8
- package/build/item-group/item-group/component.js.map +1 -1
- package/build/item-group/item-group/hook.js +3 -3
- package/build/item-group/item-group/hook.js.map +1 -1
- package/build/item-group/styles.js +13 -20
- package/build/item-group/styles.js.map +1 -1
- package/build/keyboard-shortcuts/index.js +5 -5
- package/build/keyboard-shortcuts/index.js.map +1 -1
- package/build/keyboard-shortcuts/index.native.js +1 -2
- package/build/keyboard-shortcuts/index.native.js.map +1 -1
- package/build/lock-unlock.js +18 -0
- package/build/lock-unlock.js.map +1 -0
- package/build/menu-group/index.js +6 -6
- package/build/menu-group/index.js.map +1 -1
- package/build/menu-item/index.js +11 -12
- package/build/menu-item/index.js.map +1 -1
- package/build/menu-items-choice/index.js +4 -5
- package/build/menu-items-choice/index.js.map +1 -1
- package/build/mobile/audio-player/index.native.js +24 -25
- package/build/mobile/audio-player/index.native.js.map +1 -1
- package/build/mobile/badge/index.native.js +4 -5
- package/build/mobile/badge/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-context.native.js +1 -2
- package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js +1 -2
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/bottom-sheet-navigation-context.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +11 -11
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +8 -8
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
- package/build/mobile/bottom-sheet/button.native.js +5 -6
- package/build/mobile/bottom-sheet/button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cell.native.js +23 -23
- package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/chevron-back.native.js +4 -5
- package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
- package/build/mobile/bottom-sheet/color-cell.native.js +4 -4
- package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
- package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/footer-message-cell.native.js +3 -4
- package/build/mobile/bottom-sheet/footer-message-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +3 -4
- package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
- package/build/mobile/bottom-sheet/index.native.js +25 -16
- package/build/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +4 -4
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +6 -7
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
- package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +4 -5
- package/build/mobile/bottom-sheet/nav-bar/action-button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js +6 -7
- package/build/mobile/bottom-sheet/nav-bar/apply-button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +10 -11
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js +3 -4
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/index.native.js +3 -4
- package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/picker-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/radio-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-cell.native.js +10 -10
- package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-text-input.native.js +7 -7
- package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
- package/build/mobile/bottom-sheet/ripple.native.js +5 -6
- package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js +9 -9
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +8 -9
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +8 -9
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js +4 -4
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/switch-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet-select-control/index.native.js +10 -10
- package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet-text-control/index.native.js +11 -11
- package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
- package/build/mobile/color-settings/gradient-picker-screen.native.js +4 -5
- package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
- package/build/mobile/color-settings/index.native.js +8 -8
- package/build/mobile/color-settings/index.native.js.map +1 -1
- package/build/mobile/color-settings/palette.screen.native.js +28 -24
- package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build/mobile/color-settings/picker-screen.native.js +4 -4
- package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
- package/build/mobile/color-settings/utils.native.js +1 -2
- package/build/mobile/color-settings/utils.native.js.map +1 -1
- package/build/mobile/cycle-select-control/index.native.js +3 -3
- package/build/mobile/cycle-select-control/index.native.js.map +1 -1
- package/build/mobile/dashicons/index.native.js +6 -9
- package/build/mobile/dashicons/index.native.js.map +1 -1
- package/build/mobile/focal-point-settings-panel/index.native.js +8 -8
- package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/index.native.js +3 -3
- package/build/mobile/global-styles-context/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/utils.native.js +84 -18
- package/build/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build/mobile/gradient/index.native.js +9 -9
- package/build/mobile/gradient/index.native.js.map +1 -1
- package/build/mobile/gridicons/index.native.js +11 -19
- package/build/mobile/gridicons/index.native.js.map +1 -1
- package/build/mobile/html-text-input/index.native.js +8 -8
- package/build/mobile/html-text-input/index.native.js.map +1 -1
- package/build/mobile/image/constants.js +11 -0
- package/build/mobile/image/constants.js.map +1 -0
- package/build/mobile/image/icon-customize.native.js +3 -4
- package/build/mobile/image/icon-customize.native.js.map +1 -1
- package/build/mobile/image/icon-retry.native.js +4 -5
- package/build/mobile/image/icon-retry.native.js.map +1 -1
- package/build/mobile/image/image-editing-button.native.js +7 -8
- package/build/mobile/image/image-editing-button.native.js.map +1 -1
- package/build/mobile/image/index.native.js +116 -33
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/mobile/keyboard-avoiding-view/index.android.js +2 -4
- package/build/mobile/keyboard-avoiding-view/index.android.js.map +1 -1
- package/build/mobile/keyboard-avoiding-view/index.ios.js +5 -5
- package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js +43 -12
- package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.ios.js +49 -73
- package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +39 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
- package/build/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -29
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js +93 -0
- package/build/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
- package/build/mobile/link-picker/index.native.js +11 -10
- package/build/mobile/link-picker/index.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-results.native.js +7 -6
- package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-screen.native.js +4 -4
- package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +12 -12
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/mobile/link-settings/link-rel.native.js +3 -4
- package/build/mobile/link-settings/link-rel.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-navigation.native.js +9 -9
- package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-screen.native.js +4 -4
- package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
- package/build/mobile/media-edit/index.native.js +5 -7
- package/build/mobile/media-edit/index.native.js.map +1 -1
- package/build/mobile/picker/index.android.js +8 -7
- package/build/mobile/picker/index.android.js.map +1 -1
- package/build/mobile/picker/index.ios.js +4 -4
- package/build/mobile/picker/index.ios.js.map +1 -1
- package/build/mobile/segmented-control/index.native.js +13 -13
- package/build/mobile/segmented-control/index.native.js.map +1 -1
- package/build/mobile/utils/alignments.native.js +4 -7
- package/build/mobile/utils/alignments.native.js.map +1 -1
- package/build/mobile/utils/get-px-from-css-unit.native.js +301 -0
- package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
- package/build/modal/aria-helper.js +17 -28
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +93 -44
- package/build/modal/index.js.map +1 -1
- package/build/modal/types.js.map +1 -1
- package/build/navigable-container/container.js +4 -4
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigable-container/menu.js +4 -5
- package/build/navigable-container/menu.js.map +1 -1
- package/build/navigable-container/tabbable.js +4 -5
- package/build/navigable-container/tabbable.js.map +1 -1
- package/build/navigable-container/types.js.map +1 -1
- package/build/navigation/back-button/index.js +6 -7
- package/build/navigation/back-button/index.js.map +1 -1
- package/build/navigation/constants.js +2 -4
- package/build/navigation/constants.js.map +1 -1
- package/build/navigation/context.js +1 -2
- package/build/navigation/context.js.map +1 -1
- package/build/navigation/group/context.js +1 -2
- package/build/navigation/group/context.js.map +1 -1
- package/build/navigation/group/index.js +8 -8
- package/build/navigation/group/index.js.map +1 -1
- package/build/navigation/index.js +6 -6
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/base-content.js +3 -3
- package/build/navigation/item/base-content.js.map +1 -1
- package/build/navigation/item/base.js +3 -2
- package/build/navigation/item/base.js.map +1 -1
- package/build/navigation/item/index.js +7 -8
- package/build/navigation/item/index.js.map +1 -1
- package/build/navigation/menu/context.js +1 -2
- package/build/navigation/menu/context.js.map +1 -1
- package/build/navigation/menu/index.js +10 -10
- package/build/navigation/menu/index.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +6 -8
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/navigation/menu/menu-title.js +9 -8
- package/build/navigation/menu/menu-title.js.map +1 -1
- package/build/navigation/menu/search-no-results-found.js +2 -2
- package/build/navigation/menu/search-no-results-found.js.map +1 -1
- package/build/navigation/styles/navigation-styles.js +35 -48
- package/build/navigation/styles/navigation-styles.js.map +1 -1
- package/build/navigation/use-navigation-tree-nodes.js.map +1 -1
- package/build/navigator/context.js +1 -2
- package/build/navigator/context.js.map +1 -1
- package/build/navigator/navigator-back-button/component.js +5 -7
- package/build/navigator/navigator-back-button/component.js.map +1 -1
- package/build/navigator/navigator-back-button/hook.js +1 -1
- package/build/navigator/navigator-back-button/hook.js.map +1 -1
- package/build/navigator/navigator-button/component.js +5 -7
- package/build/navigator/navigator-button/component.js.map +1 -1
- package/build/navigator/navigator-button/hook.js +1 -1
- package/build/navigator/navigator-button/hook.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +19 -22
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +28 -69
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/navigator-to-parent-button/component.js +5 -7
- package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
- package/build/navigator/styles.js +51 -0
- package/build/navigator/styles.js.map +1 -0
- package/build/navigator/use-navigator.js +1 -2
- package/build/navigator/use-navigator.js.map +1 -1
- package/build/notice/index.js +27 -15
- package/build/notice/index.js.map +1 -1
- package/build/notice/index.native.js +8 -8
- package/build/notice/index.native.js.map +1 -1
- package/build/notice/list.js +4 -5
- package/build/notice/list.js.map +1 -1
- package/build/notice/list.native.js +5 -5
- package/build/notice/list.native.js.map +1 -1
- package/build/number-control/index.js +40 -44
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/styles/number-control-styles.js +8 -11
- package/build/number-control/styles/number-control-styles.js.map +1 -1
- package/build/number-control/types.js.map +1 -1
- package/build/palette-edit/index.js +55 -75
- package/build/palette-edit/index.js.map +1 -1
- package/build/palette-edit/styles.js +51 -52
- package/build/palette-edit/styles.js.map +1 -1
- package/build/panel/actions.native.js +6 -6
- package/build/panel/actions.native.js.map +1 -1
- package/build/panel/body.js +11 -12
- package/build/panel/body.js.map +1 -1
- package/build/panel/body.native.js +5 -6
- package/build/panel/body.native.js.map +1 -1
- package/build/panel/bottom-separator-cover.native.js +3 -4
- package/build/panel/bottom-separator-cover.native.js.map +1 -1
- package/build/panel/header.js +4 -5
- package/build/panel/header.js.map +1 -1
- package/build/panel/index.js +6 -7
- package/build/panel/index.js.map +1 -1
- package/build/panel/row.js +5 -6
- package/build/panel/row.js.map +1 -1
- package/build/panel/types.js.map +1 -1
- package/build/placeholder/index.js +19 -13
- package/build/placeholder/index.js.map +1 -1
- package/build/popover/index.js +89 -106
- package/build/popover/index.js.map +1 -1
- package/build/popover/types.js.map +1 -1
- package/build/popover/utils.js +9 -41
- package/build/popover/utils.js.map +1 -1
- package/build/private-apis.js +20 -19
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +20 -0
- package/build/private-apis.native.js.map +1 -0
- package/build/progress-bar/index.js +9 -10
- package/build/progress-bar/index.js.map +1 -1
- package/build/progress-bar/styles.js +9 -13
- package/build/progress-bar/styles.js.map +1 -1
- package/build/query-controls/author-select.js +5 -3
- package/build/query-controls/author-select.js.map +1 -1
- package/build/query-controls/category-select.js +6 -3
- package/build/query-controls/category-select.js.map +1 -1
- package/build/query-controls/index.js +18 -14
- package/build/query-controls/index.js.map +1 -1
- package/build/query-controls/index.native.js +9 -9
- package/build/query-controls/index.native.js.map +1 -1
- package/build/query-controls/types.js.map +1 -1
- package/build/radio-control/index.js +8 -8
- package/build/radio-control/index.js.map +1 -1
- package/build/radio-control/index.native.js +4 -5
- package/build/radio-control/index.native.js.map +1 -1
- package/build/radio-group/context.js +21 -0
- package/build/radio-group/context.js.map +1 -0
- package/build/radio-group/index.js +27 -24
- package/build/radio-group/index.js.map +1 -1
- package/build/radio-group/radio.js +56 -0
- package/build/radio-group/radio.js.map +1 -0
- package/build/radio-group/types.js +6 -0
- package/build/radio-group/types.js.map +1 -0
- package/build/range-control/index.js +19 -20
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/index.native.js +4 -4
- package/build/range-control/index.native.js.map +1 -1
- package/build/range-control/input-range.js +3 -3
- package/build/range-control/input-range.js.map +1 -1
- package/build/range-control/mark.js +3 -3
- package/build/range-control/mark.js.map +1 -1
- package/build/range-control/rail.js +5 -5
- package/build/range-control/rail.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +45 -60
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/range-control/tooltip.js +3 -2
- package/build/range-control/tooltip.js.map +1 -1
- package/build/resizable-box/index.js +5 -6
- package/build/resizable-box/index.js.map +1 -1
- package/build/resizable-box/index.native.js +3 -4
- package/build/resizable-box/index.native.js.map +1 -1
- package/build/resizable-box/resize-tooltip/index.js +5 -5
- package/build/resizable-box/resize-tooltip/index.js.map +1 -1
- package/build/resizable-box/resize-tooltip/label.js +5 -5
- package/build/resizable-box/resize-tooltip/label.js.map +1 -1
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +9 -12
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
- package/build/resizable-box/resize-tooltip/utils.js +1 -2
- package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
- package/build/responsive-wrapper/index.js +5 -5
- package/build/responsive-wrapper/index.js.map +1 -1
- package/build/sandbox/index.js +14 -12
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +12 -12
- package/build/sandbox/index.native.js.map +1 -1
- package/build/sandbox/types.js.map +1 -1
- package/build/scroll-lock/index.js +1 -2
- package/build/scroll-lock/index.js.map +1 -1
- package/build/scrollable/component.js +5 -7
- package/build/scrollable/component.js.map +1 -1
- package/build/scrollable/hook.js +3 -3
- package/build/scrollable/hook.js.map +1 -1
- package/build/scrollable/styles.js +7 -14
- package/build/scrollable/styles.js.map +1 -1
- package/build/search-control/index.js +71 -53
- package/build/search-control/index.js.map +1 -1
- package/build/search-control/index.native.js +15 -15
- package/build/search-control/index.native.js.map +1 -1
- package/build/search-control/styles.js +37 -0
- package/build/search-control/styles.js.map +1 -0
- package/build/search-control/types.js.map +1 -1
- package/build/select-control/chevron-down.js +3 -4
- package/build/select-control/chevron-down.js.map +1 -1
- package/build/select-control/index.js +14 -14
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/index.native.js +4 -5
- package/build/select-control/index.native.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +26 -40
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/select-control/types.js.map +1 -1
- package/build/shortcut/index.js +3 -4
- package/build/shortcut/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/fill.js +9 -10
- package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js +4 -5
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +18 -18
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +9 -5
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/use-slot-fills.js +1 -2
- package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/use-slot.js +0 -1
- package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build/slot-fill/context.js +7 -9
- package/build/slot-fill/context.js.map +1 -1
- package/build/slot-fill/fill.js +0 -2
- package/build/slot-fill/fill.js.map +1 -1
- package/build/slot-fill/index.js +27 -22
- package/build/slot-fill/index.js.map +1 -1
- package/build/slot-fill/index.native.js +4 -4
- package/build/slot-fill/index.native.js.map +1 -1
- package/build/slot-fill/provider.js +52 -58
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +18 -12
- package/build/slot-fill/slot.js.map +1 -1
- package/build/slot-fill/types.js +6 -0
- package/build/slot-fill/types.js.map +1 -0
- package/build/slot-fill/use-slot.js +3 -5
- package/build/slot-fill/use-slot.js.map +1 -1
- package/build/snackbar/index.js +26 -15
- package/build/snackbar/index.js.map +1 -1
- package/build/snackbar/list.js +8 -8
- package/build/snackbar/list.js.map +1 -1
- package/build/snackbar/types.js.map +1 -1
- package/build/spacer/component.js +5 -7
- package/build/spacer/component.js.map +1 -1
- package/build/spacer/hook.js +4 -4
- package/build/spacer/hook.js.map +1 -1
- package/build/spacer/types.js.map +1 -1
- package/build/spinner/index.js +7 -8
- package/build/spinner/index.js.map +1 -1
- package/build/spinner/index.native.js +2 -2
- package/build/spinner/index.native.js.map +1 -1
- package/build/spinner/styles.js +3 -6
- package/build/spinner/styles.js.map +1 -1
- package/build/style-provider/index.js +6 -7
- package/build/style-provider/index.js.map +1 -1
- package/build/surface/component.js +5 -7
- package/build/surface/component.js.map +1 -1
- package/build/surface/hook.js +3 -3
- package/build/surface/hook.js.map +1 -1
- package/build/surface/styles.js +5 -10
- package/build/surface/styles.js.map +1 -1
- package/build/tab-panel/index.js +12 -12
- package/build/tab-panel/index.js.map +1 -1
- package/build/tabs/context.js +15 -0
- package/build/tabs/context.js.map +1 -0
- package/build/tabs/index.js +169 -0
- package/build/tabs/index.js.map +1 -0
- package/build/tabs/styles.js +42 -0
- package/build/tabs/styles.js.map +1 -0
- package/build/tabs/tab.js +43 -0
- package/build/tabs/tab.js.map +1 -0
- package/build/tabs/tablist.js +66 -0
- package/build/tabs/tablist.js.map +1 -0
- package/build/tabs/tabpanel.js +47 -0
- package/build/tabs/tabpanel.js.map +1 -0
- package/build/tabs/types.js +6 -0
- package/build/tabs/types.js.map +1 -0
- package/build/text/component.js +9 -10
- package/build/text/component.js.map +1 -1
- package/build/text/get-line-height.js +1 -1
- package/build/text/get-line-height.js.map +1 -1
- package/build/text/hook.js +19 -28
- package/build/text/hook.js.map +1 -1
- package/build/text/index.js.map +1 -1
- package/build/text/index.native.js +1 -2
- package/build/text/index.native.js.map +1 -1
- package/build/text/styles/emotion-css.native.js +1 -2
- package/build/text/styles/emotion-css.native.js.map +1 -1
- package/build/text/styles/font-family.native.js +1 -2
- package/build/text/styles/font-family.native.js.map +1 -1
- package/build/text/styles.js +9 -16
- package/build/text/styles.js.map +1 -1
- package/build/text/types.js.map +1 -1
- package/build/text/utils.js +17 -33
- package/build/text/utils.js.map +1 -1
- package/build/text-control/index.js +11 -8
- package/build/text-control/index.js.map +1 -1
- package/build/text-control/index.native.js +3 -3
- package/build/text-control/index.native.js.map +1 -1
- package/build/text-control/types.js.map +1 -1
- package/build/text-highlight/index.js +4 -4
- package/build/text-highlight/index.js.map +1 -1
- package/build/textarea-control/index.js +33 -35
- package/build/textarea-control/index.js.map +1 -1
- package/build/textarea-control/index.native.js +4 -5
- package/build/textarea-control/index.native.js.map +1 -1
- package/build/textarea-control/styles/textarea-control-styles.js +1 -2
- package/build/textarea-control/styles/textarea-control-styles.js.map +1 -1
- package/build/theme/index.js +3 -3
- package/build/theme/index.js.map +1 -1
- package/build/theme/styles.js +12 -8
- package/build/theme/styles.js.map +1 -1
- package/build/tip/index.js +5 -6
- package/build/tip/index.js.map +1 -1
- package/build/toggle-control/index.js +10 -11
- package/build/toggle-control/index.js.map +1 -1
- package/build/toggle-control/index.native.js +3 -3
- package/build/toggle-control/index.native.js.map +1 -1
- package/build/toggle-group-control/context.js +1 -2
- package/build/toggle-group-control/context.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/as-button-group.js +35 -50
- package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/as-radio-group.js +47 -46
- package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +25 -18
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/styles.js +32 -23
- package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/utils.js +50 -0
- package/build/toggle-group-control/toggle-group-control/utils.js.map +1 -0
- package/build/toggle-group-control/toggle-group-control-option/component.js +4 -5
- package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/component.js +48 -28
- package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js +13 -15
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js +5 -6
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build/toggle-group-control/types.js.map +1 -1
- package/build/toolbar/toolbar/index.js +32 -20
- package/build/toolbar/toolbar/index.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.js +10 -8
- package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.native.js +3 -4
- package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
- package/build/toolbar/toolbar/types.js.map +1 -1
- package/build/toolbar/toolbar-button/index.js +8 -9
- package/build/toolbar/toolbar-button/index.js.map +1 -1
- package/build/toolbar/toolbar-button/toolbar-button-container.js +3 -4
- package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
- package/build/toolbar/toolbar-button/toolbar-button-container.native.js +2 -2
- package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
- package/build/toolbar/toolbar-context/index.js +2 -2
- package/build/toolbar/toolbar-context/index.js.map +1 -1
- package/build/toolbar/toolbar-dropdown-menu/index.js +6 -8
- package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
- package/build/toolbar/toolbar-group/index.js +22 -18
- package/build/toolbar/toolbar-group/index.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +4 -6
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +4 -5
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.js +6 -5
- package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js +3 -4
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
- package/build/toolbar/toolbar-group/types.js +6 -0
- package/build/toolbar/toolbar-group/types.js.map +1 -0
- package/build/toolbar/toolbar-item/index.js +9 -6
- package/build/toolbar/toolbar-item/index.js.map +1 -1
- package/build/toolbar/toolbar-item/index.native.js +1 -2
- package/build/toolbar/toolbar-item/index.native.js.map +1 -1
- package/build/tools-panel/context.js +1 -2
- package/build/tools-panel/context.js.map +1 -1
- package/build/tools-panel/styles.js +19 -27
- package/build/tools-panel/styles.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +10 -10
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +3 -3
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +20 -20
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tools-panel/tools-panel-header/hook.js +3 -3
- package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-item/component.js +6 -8
- package/build/tools-panel/tools-panel-item/component.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +21 -17
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build/tools-panel/types.js.map +1 -1
- package/build/tooltip/index.js +82 -231
- package/build/tooltip/index.js.map +1 -1
- package/build/tooltip/index.native.js +11 -11
- package/build/tooltip/index.native.js.map +1 -1
- package/build/tooltip/types.js +6 -0
- package/build/tooltip/types.js.map +1 -0
- package/build/tree-grid/cell.js +5 -6
- package/build/tree-grid/cell.js.map +1 -1
- package/build/tree-grid/index.js +7 -8
- package/build/tree-grid/index.js.map +1 -1
- package/build/tree-grid/item.js +4 -5
- package/build/tree-grid/item.js.map +1 -1
- package/build/tree-grid/roving-tab-index-context.js +1 -2
- package/build/tree-grid/roving-tab-index-context.js.map +1 -1
- package/build/tree-grid/roving-tab-index-item.js +4 -5
- package/build/tree-grid/roving-tab-index-item.js.map +1 -1
- package/build/tree-grid/roving-tab-index.js +2 -1
- package/build/tree-grid/roving-tab-index.js.map +1 -1
- package/build/tree-grid/row.js +4 -5
- package/build/tree-grid/row.js.map +1 -1
- package/build/tree-select/index.js +14 -12
- package/build/tree-select/index.js.map +1 -1
- package/build/truncate/component.js +5 -7
- package/build/truncate/component.js.map +1 -1
- package/build/truncate/hook.js +13 -7
- package/build/truncate/hook.js.map +1 -1
- package/build/truncate/styles.js +1 -2
- package/build/truncate/styles.js.map +1 -1
- package/build/truncate/types.js.map +1 -1
- package/build/truncate/utils.js +3 -6
- package/build/truncate/utils.js.map +1 -1
- package/build/unit-control/index.js +9 -9
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/index.native.js +10 -10
- package/build/unit-control/index.native.js.map +1 -1
- package/build/unit-control/styles/unit-control-styles.js +14 -17
- package/build/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build/unit-control/types.js.map +1 -1
- package/build/unit-control/unit-select-control.js +6 -6
- package/build/unit-control/unit-select-control.js.map +1 -1
- package/build/unit-control/utils.js +111 -6
- package/build/unit-control/utils.js.map +1 -1
- package/build/utils/base-label.js +1 -2
- package/build/utils/base-label.js.map +1 -1
- package/build/utils/box-sizing.js +1 -2
- package/build/utils/box-sizing.js.map +1 -1
- package/build/utils/breakpoint-values.js +1 -2
- package/build/utils/breakpoint-values.js.map +1 -1
- package/build/utils/colors-values.js +44 -24
- package/build/utils/colors-values.js.map +1 -1
- package/build/utils/colors.js +82 -0
- package/build/utils/colors.js.map +1 -1
- package/build/utils/config-values.js +2 -3
- package/build/utils/config-values.js.map +1 -1
- package/build/{ui/utils → utils}/font-size.js +4 -7
- package/build/utils/font-size.js.map +1 -0
- package/build/utils/font-values.js +1 -2
- package/build/utils/font-values.js.map +1 -1
- package/build/utils/get-valid-children.js.map +1 -0
- package/build/utils/hooks/use-controlled-state.js +1 -2
- package/build/utils/hooks/use-controlled-state.js.map +1 -1
- package/build/utils/hooks/use-update-effect.js +2 -3
- package/build/utils/hooks/use-update-effect.js.map +1 -1
- package/build/utils/input/base.js +2 -4
- package/build/utils/input/base.js.map +1 -1
- package/build/utils/input/input-control.js +1 -2
- package/build/utils/input/input-control.js.map +1 -1
- package/build/utils/space.js.map +1 -0
- package/build/utils/strings.js +34 -3
- package/build/utils/strings.js.map +1 -1
- package/build/utils/types.js.map +1 -1
- package/build/utils/unit-values.js +1 -1
- package/build/utils/unit-values.js.map +1 -1
- package/build/utils/use-deprecated-props.js +1 -14
- package/build/utils/use-deprecated-props.js.map +1 -1
- package/build/{ui/utils → utils}/use-responsive-value.js +2 -3
- package/build/utils/use-responsive-value.js.map +1 -0
- package/build/v-stack/component.js +5 -7
- package/build/v-stack/component.js.map +1 -1
- package/build/v-stack/hook.js +1 -1
- package/build/v-stack/hook.js.map +1 -1
- package/build/view/component.js +3 -5
- package/build/view/component.js.map +1 -1
- package/build/visually-hidden/component.js +5 -7
- package/build/visually-hidden/component.js.map +1 -1
- package/build/visually-hidden/styles.js +1 -2
- package/build/visually-hidden/styles.js.map +1 -1
- package/build/z-stack/component.js +7 -8
- package/build/z-stack/component.js.map +1 -1
- package/build/z-stack/styles.js +2 -4
- package/build/z-stack/styles.js.map +1 -1
- package/build-module/alignment-matrix-control/cell.js +8 -5
- package/build-module/alignment-matrix-control/cell.js.map +1 -1
- package/build-module/alignment-matrix-control/icon.js +1 -1
- package/build-module/alignment-matrix-control/icon.js.map +1 -1
- package/build-module/alignment-matrix-control/index.js +28 -44
- package/build-module/alignment-matrix-control/index.js.map +1 -1
- package/build-module/alignment-matrix-control/utils.js +29 -8
- package/build-module/alignment-matrix-control/utils.js.map +1 -1
- package/build-module/angle-picker-control/angle-circle.js +1 -1
- package/build-module/angle-picker-control/angle-circle.js.map +1 -1
- package/build-module/angle-picker-control/index.js +4 -15
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +6 -18
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build-module/angle-picker-control/types.js.map +1 -1
- package/build-module/animation/index.js +1 -1
- package/build-module/animation/index.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +1 -1
- package/build-module/autocomplete/autocompleter-ui.native.js +1 -1
- package/build-module/autocomplete/background-view.android.js +1 -1
- package/build-module/autocomplete/background-view.ios.js +1 -1
- package/build-module/autocomplete/index.js +105 -53
- package/build-module/autocomplete/index.js.map +1 -1
- package/build-module/autocomplete/types.js.map +1 -1
- package/build-module/base-control/index.js +17 -13
- package/build-module/base-control/index.js.map +1 -1
- package/build-module/base-control/index.native.js +1 -1
- package/build-module/base-control/styles/base-control-styles.js +9 -9
- package/build-module/base-control/styles/base-control-styles.js.map +1 -1
- package/build-module/border-box-control/border-box-control/component.js +2 -2
- package/build-module/border-box-control/border-box-control/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control/hook.js +4 -2
- package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/component.js +3 -3
- package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js +2 -2
- package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
- package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build-module/border-box-control/types.js.map +1 -1
- package/build-module/border-control/border-control/component.js +7 -3
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/border-control/border-control/hook.js +19 -16
- package/build-module/border-control/border-control/hook.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/component.js +9 -6
- package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/hook.js +4 -3
- package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build-module/border-control/border-control-style-picker/component.js +23 -50
- package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
- package/build-module/border-control/styles.js +16 -26
- package/build-module/border-control/styles.js.map +1 -1
- package/build-module/border-control/types.js.map +1 -1
- package/build-module/box-control/all-input-control.js +39 -29
- package/build-module/box-control/all-input-control.js.map +1 -1
- package/build-module/box-control/axial-input-controls.js +42 -57
- package/build-module/box-control/axial-input-controls.js.map +1 -1
- package/build-module/box-control/icon.js +1 -1
- package/build-module/box-control/icon.js.map +1 -1
- package/build-module/box-control/index.js +23 -26
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/input-controls.js +47 -40
- package/build-module/box-control/input-controls.js.map +1 -1
- package/build-module/box-control/linked-button.js +2 -2
- package/build-module/box-control/linked-button.js.map +1 -1
- package/build-module/box-control/styles/box-control-styles.js +45 -105
- package/build-module/box-control/styles/box-control-styles.js.map +1 -1
- package/build-module/box-control/types.js.map +1 -1
- package/build-module/box-control/utils.js +121 -7
- package/build-module/box-control/utils.js.map +1 -1
- package/build-module/button/deprecated.js +1 -1
- package/build-module/button/index.js +33 -15
- package/build-module/button/index.js.map +1 -1
- package/build-module/button/index.native.js +1 -2
- package/build-module/button/index.native.js.map +1 -1
- package/build-module/button/types.js.map +1 -1
- package/build-module/button-group/index.js +1 -1
- package/build-module/button-group/index.js.map +1 -1
- package/build-module/card/card/component.js +3 -3
- package/build-module/card/card/component.js.map +1 -1
- package/build-module/card/card/hook.js +1 -1
- package/build-module/card/card/hook.js.map +1 -1
- package/build-module/card/card-body/component.js +2 -2
- package/build-module/card/card-body/component.js.map +1 -1
- package/build-module/card/card-body/hook.js +1 -1
- package/build-module/card/card-body/hook.js.map +1 -1
- package/build-module/card/card-divider/component.js +2 -2
- package/build-module/card/card-divider/component.js.map +1 -1
- package/build-module/card/card-divider/hook.js +1 -1
- package/build-module/card/card-divider/hook.js.map +1 -1
- package/build-module/card/card-footer/component.js +2 -2
- package/build-module/card/card-footer/component.js.map +1 -1
- package/build-module/card/card-footer/hook.js +1 -1
- package/build-module/card/card-footer/hook.js.map +1 -1
- package/build-module/card/card-header/component.js +2 -2
- package/build-module/card/card-header/component.js.map +1 -1
- package/build-module/card/card-header/hook.js +1 -1
- package/build-module/card/card-header/hook.js.map +1 -1
- package/build-module/card/card-media/component.js +2 -2
- package/build-module/card/card-media/component.js.map +1 -1
- package/build-module/card/card-media/hook.js +1 -1
- package/build-module/card/card-media/hook.js.map +1 -1
- package/build-module/checkbox-control/index.js +2 -2
- package/build-module/checkbox-control/index.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-actions.js +44 -0
- package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -0
- package/build-module/circular-option-picker/circular-option-picker-context.js +11 -0
- package/build-module/circular-option-picker/circular-option-picker-context.js.map +1 -0
- package/build-module/circular-option-picker/circular-option-picker-option-group.js +23 -0
- package/build-module/circular-option-picker/circular-option-picker-option-group.js.map +1 -0
- package/build-module/circular-option-picker/circular-option-picker-option.js +89 -0
- package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -0
- package/build-module/circular-option-picker/circular-option-picker.js +144 -0
- package/build-module/circular-option-picker/circular-option-picker.js.map +1 -0
- package/build-module/circular-option-picker/index.js +4 -132
- package/build-module/circular-option-picker/index.js.map +1 -1
- package/build-module/circular-option-picker/types.js.map +1 -1
- package/build-module/clipboard-button/index.js +1 -1
- package/build-module/clipboard-button/index.js.map +1 -1
- package/build-module/color-control/index.native.js +1 -1
- package/build-module/color-indicator/index.js +1 -1
- package/build-module/color-indicator/index.js.map +1 -1
- package/build-module/color-indicator/index.native.js +1 -1
- package/build-module/color-palette/index.js +66 -22
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/index.native.js +12 -8
- package/build-module/color-palette/index.native.js.map +1 -1
- package/build-module/color-palette/types.js.map +1 -1
- package/build-module/color-picker/color-copy-button.js +6 -8
- package/build-module/color-picker/color-copy-button.js.map +1 -1
- package/build-module/color-picker/color-input.js +1 -1
- package/build-module/color-picker/component.js +15 -5
- package/build-module/color-picker/component.js.map +1 -1
- package/build-module/color-picker/hex-input.js +2 -2
- package/build-module/color-picker/hex-input.js.map +1 -1
- package/build-module/color-picker/hsl-input.js +56 -34
- package/build-module/color-picker/hsl-input.js.map +1 -1
- package/build-module/color-picker/hsv-color-picker.native.js +1 -1
- package/build-module/color-picker/hue-picker.native.js +1 -1
- package/build-module/color-picker/index.native.js +1 -1
- package/build-module/color-picker/input-with-slider.js +2 -2
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/color-picker/legacy-adapter.js +1 -1
- package/build-module/color-picker/picker.js +79 -3
- package/build-module/color-picker/picker.js.map +1 -1
- package/build-module/color-picker/rgb-input.js +1 -1
- package/build-module/color-picker/saturation-picker.native.js +1 -1
- package/build-module/color-picker/styles.js +9 -9
- package/build-module/color-picker/styles.js.map +1 -1
- package/build-module/color-picker/types.js.map +1 -1
- package/build-module/combobox-control/index.js +2 -6
- package/build-module/combobox-control/index.js.map +1 -1
- package/build-module/combobox-control/styles.js +3 -3
- package/build-module/combobox-control/styles.js.map +1 -1
- package/build-module/composite/current/index.js +15 -0
- package/build-module/composite/current/index.js.map +1 -0
- package/build-module/composite/index.js +7 -14
- package/build-module/composite/index.js.map +1 -1
- package/build-module/composite/legacy/index.js +117 -0
- package/build-module/composite/legacy/index.js.map +1 -0
- package/build-module/composite/v2.js +5 -0
- package/build-module/composite/v2.js.map +1 -0
- package/build-module/confirm-dialog/component.js +76 -9
- package/build-module/confirm-dialog/component.js.map +1 -1
- package/build-module/confirm-dialog/types.js.map +1 -1
- package/build-module/context/constants.js.map +1 -0
- package/build-module/{ui/context → context}/context-connect.js +1 -1
- package/build-module/context/context-connect.js.map +1 -0
- package/build-module/{ui/context → context}/context-system-provider.js +2 -2
- package/build-module/context/context-system-provider.js.map +1 -0
- package/build-module/context/get-styled-class-name-from-key.js.map +1 -0
- package/build-module/context/index.js.map +1 -0
- package/build-module/{ui/context → context}/use-context-system.js +1 -1
- package/build-module/context/use-context-system.js.map +1 -0
- package/build-module/context/utils.js.map +1 -0
- package/build-module/context/wordpress-component.js.map +1 -0
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +14 -5
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/index.js +1 -1
- package/build-module/custom-gradient-picker/index.js +3 -16
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/custom-gradient-picker/index.native.js +1 -1
- package/build-module/custom-gradient-picker/types.js.map +1 -1
- package/build-module/custom-select-control/index.js +7 -6
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control-v2/index.js +78 -0
- package/build-module/custom-select-control-v2/index.js.map +1 -0
- package/build-module/custom-select-control-v2/styles.js +71 -0
- package/build-module/custom-select-control-v2/styles.js.map +1 -0
- package/build-module/custom-select-control-v2/types.js.map +1 -0
- package/build-module/dashicon/index.js +1 -1
- package/build-module/dashicon/index.js.map +1 -1
- package/build-module/dashicon/index.native.js +1 -1
- package/build-module/date-time/date/index.js +1 -1
- package/build-module/date-time/date/styles.js +9 -9
- package/build-module/date-time/date/styles.js.map +1 -1
- package/build-module/date-time/date-time/index.js +1 -1
- package/build-module/date-time/time/index.js +17 -8
- package/build-module/date-time/time/index.js.map +1 -1
- package/build-module/date-time/time/styles.js +26 -34
- package/build-module/date-time/time/styles.js.map +1 -1
- package/build-module/date-time/time/timezone.js +14 -5
- package/build-module/date-time/time/timezone.js.map +1 -1
- package/build-module/dimension-control/index.js +3 -1
- package/build-module/dimension-control/index.js.map +1 -1
- package/build-module/dimension-control/types.js.map +1 -1
- package/build-module/disabled/index.js +1 -1
- package/build-module/disabled/index.js.map +1 -1
- package/build-module/disabled/index.native.js +1 -1
- package/build-module/disclosure/index.js +33 -8
- package/build-module/disclosure/index.js.map +1 -1
- package/build-module/disclosure/types.js.map +1 -0
- package/build-module/divider/component.js +5 -5
- package/build-module/divider/component.js.map +1 -1
- package/build-module/divider/styles.js +6 -6
- package/build-module/divider/styles.js.map +1 -1
- package/build-module/divider/types.js.map +1 -1
- package/build-module/draggable/index.js +1 -1
- package/build-module/draggable/index.native.js +1 -1
- package/build-module/drop-zone/index.js +1 -1
- package/build-module/drop-zone/index.js.map +1 -1
- package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
- package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
- package/build-module/dropdown/index.js +14 -26
- package/build-module/dropdown/index.js.map +1 -1
- package/build-module/dropdown/index.native.js +1 -1
- package/build-module/dropdown/styles.js +3 -3
- package/build-module/dropdown/styles.js.map +1 -1
- package/build-module/dropdown/types.js.map +1 -1
- package/build-module/dropdown-menu/index.js +9 -3
- package/build-module/dropdown-menu/index.js.map +1 -1
- package/build-module/dropdown-menu/index.native.js +1 -1
- package/build-module/dropdown-menu/types.js.map +1 -1
- package/build-module/dropdown-menu-v2/index.js +202 -155
- package/build-module/dropdown-menu-v2/index.js.map +1 -1
- package/build-module/dropdown-menu-v2/styles.js +69 -62
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/dropdown-menu-v2/types.js.map +1 -1
- package/build-module/duotone-picker/color-list-picker/index.js +19 -4
- package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build-module/duotone-picker/custom-duotone-bar.js +1 -1
- package/build-module/duotone-picker/duotone-picker.js +43 -6
- package/build-module/duotone-picker/duotone-picker.js.map +1 -1
- package/build-module/duotone-picker/duotone-swatch.js +1 -1
- package/build-module/duotone-picker/types.js.map +1 -1
- package/build-module/elevation/component.js +2 -2
- package/build-module/elevation/component.js.map +1 -1
- package/build-module/elevation/hook.js +5 -5
- package/build-module/elevation/hook.js.map +1 -1
- package/build-module/external-link/index.js +2 -2
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/external-link/index.native.js +1 -1
- package/build-module/flex/flex/component.js +2 -2
- package/build-module/flex/flex/component.js.map +1 -1
- package/build-module/flex/flex/hook.js +4 -4
- package/build-module/flex/flex/hook.js.map +1 -1
- package/build-module/flex/flex-block/component.js +2 -2
- package/build-module/flex/flex-block/component.js.map +1 -1
- package/build-module/flex/flex-block/hook.js +1 -1
- package/build-module/flex/flex-block/hook.js.map +1 -1
- package/build-module/flex/flex-item/component.js +2 -2
- package/build-module/flex/flex-item/component.js.map +1 -1
- package/build-module/flex/flex-item/hook.js +2 -2
- package/build-module/flex/flex-item/hook.js.map +1 -1
- package/build-module/flex/types.js.map +1 -1
- package/build-module/focal-point-picker/controls.js +6 -2
- package/build-module/focal-point-picker/controls.js.map +1 -1
- package/build-module/focal-point-picker/focal-point.js +1 -1
- package/build-module/focal-point-picker/focal-point.js.map +1 -1
- package/build-module/focal-point-picker/focal-point.native.js +1 -1
- package/build-module/focal-point-picker/grid.js +1 -1
- package/build-module/focal-point-picker/grid.js.map +1 -1
- package/build-module/focal-point-picker/index.js +5 -3
- package/build-module/focal-point-picker/index.js.map +1 -1
- package/build-module/focal-point-picker/index.native.js +1 -2
- package/build-module/focal-point-picker/index.native.js.map +1 -1
- package/build-module/focal-point-picker/media.js +1 -1
- package/build-module/focal-point-picker/styles/focal-point-picker-style.js +33 -41
- package/build-module/focal-point-picker/styles/focal-point-picker-style.js.map +1 -1
- package/build-module/focal-point-picker/styles/focal-point-style.js +10 -2
- package/build-module/focal-point-picker/styles/focal-point-style.js.map +1 -1
- package/build-module/focal-point-picker/tooltip/index.native.js +1 -1
- package/build-module/focal-point-picker/types.js.map +1 -1
- package/build-module/focusable-iframe/index.js +3 -4
- package/build-module/focusable-iframe/index.js.map +1 -1
- package/build-module/focusable-iframe/types.js +2 -0
- package/build-module/focusable-iframe/types.js.map +1 -0
- package/build-module/font-size-picker/font-size-picker-select.js +3 -1
- package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build-module/font-size-picker/font-size-picker-toggle-group.js +4 -3
- package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build-module/font-size-picker/index.js +14 -21
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/index.native.js +6 -3
- package/build-module/font-size-picker/index.native.js.map +1 -1
- package/build-module/font-size-picker/styles.js +15 -21
- package/build-module/font-size-picker/styles.js.map +1 -1
- package/build-module/font-size-picker/types.js.map +1 -1
- package/build-module/font-size-picker/utils.js +1 -1
- package/build-module/font-size-picker/utils.js.map +1 -1
- package/build-module/footer-message-control/index.native.js +1 -1
- package/build-module/form-file-upload/index.js +1 -1
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/form-toggle/index.js +1 -1
- package/build-module/form-toggle/index.js.map +1 -1
- package/build-module/form-token-field/index.js +19 -11
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/styles.js +3 -3
- package/build-module/form-token-field/styles.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +1 -2
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/form-token-field/token-input.js +1 -1
- package/build-module/form-token-field/token-input.js.map +1 -1
- package/build-module/form-token-field/token.js +2 -1
- package/build-module/form-token-field/token.js.map +1 -1
- package/build-module/form-token-field/types.js.map +1 -1
- package/build-module/gradient-picker/index.js +78 -58
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/gradient-picker/types.js.map +1 -1
- package/build-module/grid/component.js +2 -2
- package/build-module/grid/component.js.map +1 -1
- package/build-module/grid/hook.js +3 -3
- package/build-module/grid/hook.js.map +1 -1
- package/build-module/grid/types.js.map +1 -1
- package/build-module/guide/icons.js +1 -1
- package/build-module/guide/index.js +1 -1
- package/build-module/guide/page-control.js +1 -1
- package/build-module/guide/page.js +1 -1
- package/build-module/guide/page.js.map +1 -1
- package/build-module/h-stack/component.js +2 -2
- package/build-module/h-stack/component.js.map +1 -1
- package/build-module/h-stack/hook.js +3 -3
- package/build-module/h-stack/hook.js.map +1 -1
- package/build-module/heading/component.js +2 -2
- package/build-module/heading/component.js.map +1 -1
- package/build-module/heading/hook.js +8 -5
- package/build-module/heading/hook.js.map +1 -1
- package/build-module/heading/types.js.map +1 -1
- package/build-module/higher-order/navigate-regions/index.js +1 -1
- package/build-module/higher-order/navigate-regions/index.js.map +1 -1
- package/build-module/higher-order/with-constrained-tabbing/index.js +1 -1
- package/build-module/higher-order/with-fallback-styles/index.js +1 -1
- package/build-module/higher-order/with-filters/index.js +1 -1
- package/build-module/higher-order/with-focus-outside/index.js +2 -4
- package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
- package/build-module/higher-order/with-focus-outside/index.native.js +1 -1
- package/build-module/higher-order/with-focus-return/index.js +1 -1
- package/build-module/higher-order/with-focus-return/index.js.map +1 -1
- package/build-module/higher-order/with-notices/index.js +1 -1
- package/build-module/higher-order/with-spoken-messages/index.js +4 -4
- package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
- package/build-module/index.js +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +7 -4
- package/build-module/index.native.js.map +1 -1
- package/build-module/input-control/backdrop.js +3 -1
- package/build-module/input-control/backdrop.js.map +1 -1
- package/build-module/input-control/index.js +30 -28
- package/build-module/input-control/index.js.map +1 -1
- package/build-module/input-control/input-base.js +26 -22
- package/build-module/input-control/input-base.js.map +1 -1
- package/build-module/input-control/input-field.js +1 -1
- package/build-module/input-control/input-field.js.map +1 -1
- package/build-module/input-control/input-prefix-wrapper.js +2 -2
- package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
- package/build-module/input-control/input-suffix-wrapper.js +2 -2
- package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
- package/build-module/input-control/label.js +1 -1
- package/build-module/input-control/label.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +43 -39
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/input-control/types.js.map +1 -1
- package/build-module/isolated-event-container/index.js +1 -2
- package/build-module/isolated-event-container/index.js.map +1 -1
- package/build-module/item-group/item/component.js +2 -2
- package/build-module/item-group/item/component.js.map +1 -1
- package/build-module/item-group/item/hook.js +1 -1
- package/build-module/item-group/item/hook.js.map +1 -1
- package/build-module/item-group/item-group/component.js +2 -2
- package/build-module/item-group/item-group/component.js.map +1 -1
- package/build-module/item-group/item-group/hook.js +1 -1
- package/build-module/item-group/item-group/hook.js.map +1 -1
- package/build-module/item-group/styles.js +10 -10
- package/build-module/item-group/styles.js.map +1 -1
- package/build-module/keyboard-shortcuts/index.js +1 -1
- package/build-module/lock-unlock.js +9 -0
- package/build-module/lock-unlock.js.map +1 -0
- package/build-module/menu-group/index.js +1 -1
- package/build-module/menu-item/index.js +1 -1
- package/build-module/menu-item/index.js.map +1 -1
- package/build-module/menu-items-choice/index.js +1 -1
- package/build-module/mobile/audio-player/index.native.js +10 -11
- package/build-module/mobile/audio-player/index.native.js.map +1 -1
- package/build-module/mobile/badge/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
- package/build-module/mobile/bottom-sheet/button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/chevron-back.native.js +1 -1
- package/build-module/mobile/bottom-sheet/color-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +1 -1
- package/build-module/mobile/bottom-sheet/index.native.js +11 -2
- package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/picker-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/radio-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/range-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/range-text-input.native.js +1 -1
- package/build-module/mobile/bottom-sheet/ripple.native.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
- package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/switch-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet-select-control/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet-text-control/index.native.js +1 -1
- package/build-module/mobile/color-settings/gradient-picker-screen.native.js +1 -1
- package/build-module/mobile/color-settings/index.native.js +1 -1
- package/build-module/mobile/color-settings/palette.screen.native.js +9 -5
- package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build-module/mobile/color-settings/picker-screen.native.js +1 -1
- package/build-module/mobile/cycle-select-control/index.native.js +1 -1
- package/build-module/mobile/dashicons/index.native.js +1 -1
- package/build-module/mobile/focal-point-settings-panel/index.native.js +1 -1
- package/build-module/mobile/global-styles-context/index.native.js +1 -1
- package/build-module/mobile/global-styles-context/index.native.js.map +1 -1
- package/build-module/mobile/global-styles-context/utils.native.js +80 -16
- package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build-module/mobile/gradient/index.native.js +1 -1
- package/build-module/mobile/gridicons/index.native.js +1 -1
- package/build-module/mobile/html-text-input/index.native.js +2 -2
- package/build-module/mobile/html-text-input/index.native.js.map +1 -1
- package/build-module/mobile/image/constants.js +5 -0
- package/build-module/mobile/image/constants.js.map +1 -0
- package/build-module/mobile/image/icon-customize.native.js +1 -1
- package/build-module/mobile/image/icon-retry.native.js +1 -1
- package/build-module/mobile/image/image-editing-button.native.js +1 -1
- package/build-module/mobile/image/index.native.js +107 -23
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/mobile/keyboard-avoiding-view/index.ios.js +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js +41 -7
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +48 -70
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +33 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js.map +1 -0
- package/build-module/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +21 -27
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-section.native.js.map +1 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js +86 -0
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll.native.js.map +1 -0
- package/build-module/mobile/link-picker/index.native.js +1 -1
- package/build-module/mobile/link-picker/link-picker-results.native.js +1 -1
- package/build-module/mobile/link-picker/link-picker-screen.native.js +1 -1
- package/build-module/mobile/link-settings/index.native.js +1 -1
- package/build-module/mobile/link-settings/link-rel.native.js +1 -1
- package/build-module/mobile/link-settings/link-settings-navigation.native.js +1 -1
- package/build-module/mobile/link-settings/link-settings-screen.native.js +1 -1
- package/build-module/mobile/media-edit/index.native.js +1 -1
- package/build-module/mobile/picker/index.android.js +1 -1
- package/build-module/mobile/picker/index.ios.js +1 -1
- package/build-module/mobile/segmented-control/index.native.js +1 -1
- package/build-module/mobile/utils/alignments.native.js +1 -1
- package/build-module/mobile/utils/alignments.native.js.map +1 -1
- package/build-module/mobile/utils/get-px-from-css-unit.native.js +294 -0
- package/build-module/mobile/utils/get-px-from-css-unit.native.js.map +1 -0
- package/build-module/modal/aria-helper.js +15 -26
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +80 -30
- package/build-module/modal/index.js.map +1 -1
- package/build-module/modal/types.js.map +1 -1
- package/build-module/navigable-container/container.js +1 -1
- package/build-module/navigable-container/menu.js +1 -1
- package/build-module/navigable-container/tabbable.js +1 -1
- package/build-module/navigable-container/types.js.map +1 -1
- package/build-module/navigation/back-button/index.js +1 -1
- package/build-module/navigation/group/index.js +1 -1
- package/build-module/navigation/index.js +1 -1
- package/build-module/navigation/item/base-content.js +1 -1
- package/build-module/navigation/item/base.js +1 -1
- package/build-module/navigation/item/index.js +1 -1
- package/build-module/navigation/menu/index.js +1 -1
- package/build-module/navigation/menu/menu-title-search.js +5 -7
- package/build-module/navigation/menu/menu-title-search.js.map +1 -1
- package/build-module/navigation/menu/menu-title.js +2 -2
- package/build-module/navigation/menu/menu-title.js.map +1 -1
- package/build-module/navigation/menu/search-no-results-found.js +1 -1
- package/build-module/navigation/styles/navigation-styles.js +24 -25
- package/build-module/navigation/styles/navigation-styles.js.map +1 -1
- package/build-module/navigation/use-navigation-tree-nodes.js.map +1 -1
- package/build-module/navigator/navigator-back-button/component.js +2 -2
- package/build-module/navigator/navigator-back-button/component.js.map +1 -1
- package/build-module/navigator/navigator-back-button/hook.js +1 -1
- package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
- package/build-module/navigator/navigator-button/component.js +2 -2
- package/build-module/navigator/navigator-button/component.js.map +1 -1
- package/build-module/navigator/navigator-button/hook.js +1 -1
- package/build-module/navigator/navigator-button/hook.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +5 -18
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +18 -72
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
- package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
- package/build-module/navigator/styles.js +47 -0
- package/build-module/navigator/styles.js.map +1 -0
- package/build-module/notice/index.js +20 -8
- package/build-module/notice/index.js.map +1 -1
- package/build-module/notice/index.native.js +1 -1
- package/build-module/notice/list.js +1 -1
- package/build-module/notice/list.js.map +1 -1
- package/build-module/notice/list.native.js +1 -1
- package/build-module/number-control/index.js +30 -33
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/styles/number-control-styles.js +5 -5
- package/build-module/number-control/styles/number-control-styles.js.map +1 -1
- package/build-module/number-control/types.js.map +1 -1
- package/build-module/palette-edit/index.js +29 -49
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/palette-edit/styles.js +44 -34
- package/build-module/palette-edit/styles.js.map +1 -1
- package/build-module/panel/actions.native.js +1 -1
- package/build-module/panel/body.js +1 -1
- package/build-module/panel/body.js.map +1 -1
- package/build-module/panel/body.native.js +1 -1
- package/build-module/panel/bottom-separator-cover.native.js +1 -1
- package/build-module/panel/header.js +1 -1
- package/build-module/panel/index.js +1 -1
- package/build-module/panel/row.js +1 -1
- package/build-module/panel/types.js.map +1 -1
- package/build-module/placeholder/index.js +12 -5
- package/build-module/placeholder/index.js.map +1 -1
- package/build-module/popover/index.js +78 -93
- package/build-module/popover/index.js.map +1 -1
- package/build-module/popover/types.js.map +1 -1
- package/build-module/popover/utils.js +8 -39
- package/build-module/popover/utils.js.map +1 -1
- package/build-module/private-apis.js +18 -14
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +14 -0
- package/build-module/private-apis.native.js.map +1 -0
- package/build-module/progress-bar/index.js +1 -1
- package/build-module/progress-bar/index.js.map +1 -1
- package/build-module/progress-bar/styles.js +5 -5
- package/build-module/progress-bar/styles.js.map +1 -1
- package/build-module/query-controls/author-select.js +4 -2
- package/build-module/query-controls/author-select.js.map +1 -1
- package/build-module/query-controls/category-select.js +4 -2
- package/build-module/query-controls/category-select.js.map +1 -1
- package/build-module/query-controls/index.js +12 -7
- package/build-module/query-controls/index.js.map +1 -1
- package/build-module/query-controls/index.native.js +5 -5
- package/build-module/query-controls/index.native.js.map +1 -1
- package/build-module/query-controls/types.js.map +1 -1
- package/build-module/radio-control/index.js +2 -1
- package/build-module/radio-control/index.js.map +1 -1
- package/build-module/radio-control/index.native.js +1 -1
- package/build-module/radio-group/context.js +14 -0
- package/build-module/radio-group/context.js.map +1 -0
- package/build-module/radio-group/index.js +25 -24
- package/build-module/radio-group/index.js.map +1 -1
- package/build-module/radio-group/radio.js +46 -0
- package/build-module/radio-group/radio.js.map +1 -0
- package/build-module/radio-group/types.js +2 -0
- package/build-module/radio-group/types.js.map +1 -0
- package/build-module/range-control/index.js +3 -3
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/range-control/index.native.js +1 -1
- package/build-module/range-control/input-range.js +1 -1
- package/build-module/range-control/input-range.js.map +1 -1
- package/build-module/range-control/mark.js +1 -1
- package/build-module/range-control/mark.js.map +1 -1
- package/build-module/range-control/rail.js +1 -1
- package/build-module/range-control/rail.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +30 -30
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/range-control/tooltip.js +1 -1
- package/build-module/range-control/tooltip.js.map +1 -1
- package/build-module/resizable-box/index.js +1 -1
- package/build-module/resizable-box/index.native.js +1 -1
- package/build-module/resizable-box/resize-tooltip/index.js +1 -1
- package/build-module/resizable-box/resize-tooltip/label.js +1 -1
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js +4 -4
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.js.map +1 -1
- package/build-module/responsive-wrapper/index.js +1 -1
- package/build-module/sandbox/index.js +5 -3
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/sandbox/index.native.js +2 -2
- package/build-module/sandbox/index.native.js.map +1 -1
- package/build-module/sandbox/types.js.map +1 -1
- package/build-module/scrollable/component.js +2 -2
- package/build-module/scrollable/component.js.map +1 -1
- package/build-module/scrollable/hook.js +1 -1
- package/build-module/scrollable/hook.js.map +1 -1
- package/build-module/search-control/index.js +69 -50
- package/build-module/search-control/index.js.map +1 -1
- package/build-module/search-control/index.native.js +1 -1
- package/build-module/search-control/styles.js +29 -0
- package/build-module/search-control/styles.js.map +1 -0
- package/build-module/search-control/types.js.map +1 -1
- package/build-module/select-control/chevron-down.js +1 -1
- package/build-module/select-control/index.js +6 -5
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/index.native.js +1 -1
- package/build-module/select-control/styles/select-control-styles.js +22 -32
- package/build-module/select-control/styles/select-control-styles.js.map +1 -1
- package/build-module/select-control/types.js.map +1 -1
- package/build-module/shortcut/index.js +1 -1
- package/build-module/slot-fill/bubbles-virtually/fill.js +8 -10
- package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +7 -3
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +17 -18
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +7 -3
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +1 -2
- package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot.js +0 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build-module/slot-fill/context.js +10 -6
- package/build-module/slot-fill/context.js.map +1 -1
- package/build-module/slot-fill/fill.js +0 -2
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/slot-fill/index.js +18 -15
- package/build-module/slot-fill/index.js.map +1 -1
- package/build-module/slot-fill/index.native.js +1 -1
- package/build-module/slot-fill/provider.js +53 -59
- package/build-module/slot-fill/provider.js.map +1 -1
- package/build-module/slot-fill/slot.js +14 -9
- package/build-module/slot-fill/slot.js.map +1 -1
- package/build-module/slot-fill/types.js +2 -0
- package/build-module/slot-fill/types.js.map +1 -0
- package/build-module/slot-fill/use-slot.js +2 -4
- package/build-module/slot-fill/use-slot.js.map +1 -1
- package/build-module/snackbar/index.js +19 -7
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/snackbar/list.js +1 -1
- package/build-module/snackbar/list.js.map +1 -1
- package/build-module/snackbar/types.js.map +1 -1
- package/build-module/spacer/component.js +2 -2
- package/build-module/spacer/component.js.map +1 -1
- package/build-module/spacer/hook.js +4 -4
- package/build-module/spacer/hook.js.map +1 -1
- package/build-module/spacer/types.js.map +1 -1
- package/build-module/spinner/index.js +1 -1
- package/build-module/spinner/index.js.map +1 -1
- package/build-module/spinner/index.native.js +1 -1
- package/build-module/style-provider/index.js +1 -1
- package/build-module/surface/component.js +2 -2
- package/build-module/surface/component.js.map +1 -1
- package/build-module/surface/hook.js +1 -1
- package/build-module/surface/hook.js.map +1 -1
- package/build-module/tab-panel/index.js +2 -1
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/tabs/context.js +12 -0
- package/build-module/tabs/context.js.map +1 -0
- package/build-module/tabs/index.js +165 -0
- package/build-module/tabs/index.js.map +1 -0
- package/build-module/tabs/styles.js +42 -0
- package/build-module/tabs/styles.js.map +1 -0
- package/build-module/tabs/tab.js +41 -0
- package/build-module/tabs/tab.js.map +1 -0
- package/build-module/tabs/tablist.js +61 -0
- package/build-module/tabs/tablist.js.map +1 -0
- package/build-module/tabs/tabpanel.js +45 -0
- package/build-module/tabs/tabpanel.js.map +1 -0
- package/build-module/tabs/types.js +2 -0
- package/build-module/tabs/types.js.map +1 -0
- package/build-module/text/component.js +8 -8
- package/build-module/text/component.js.map +1 -1
- package/build-module/text/get-line-height.js +1 -1
- package/build-module/text/get-line-height.js.map +1 -1
- package/build-module/text/hook.js +14 -22
- package/build-module/text/hook.js.map +1 -1
- package/build-module/text/index.js.map +1 -1
- package/build-module/text/styles.js +7 -7
- package/build-module/text/styles.js.map +1 -1
- package/build-module/text/types.js.map +1 -1
- package/build-module/text/utils.js +17 -10
- package/build-module/text/utils.js.map +1 -1
- package/build-module/text-control/index.js +7 -2
- package/build-module/text-control/index.js.map +1 -1
- package/build-module/text-control/index.native.js +1 -1
- package/build-module/text-control/types.js.map +1 -1
- package/build-module/text-highlight/index.js +1 -1
- package/build-module/textarea-control/index.js +29 -29
- package/build-module/textarea-control/index.js.map +1 -1
- package/build-module/textarea-control/index.native.js +1 -1
- package/build-module/theme/index.js +1 -1
- package/build-module/theme/index.js.map +1 -1
- package/build-module/theme/styles.js +11 -2
- package/build-module/theme/styles.js.map +1 -1
- package/build-module/tip/index.js +1 -1
- package/build-module/toggle-control/index.js +3 -3
- package/build-module/toggle-control/index.js.map +1 -1
- package/build-module/toggle-control/index.native.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +33 -48
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +44 -45
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js +17 -11
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/styles.js +29 -17
- package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/utils.js +48 -0
- package/build-module/toggle-group-control/toggle-group-control/utils.js.map +1 -0
- package/build-module/toggle-group-control/toggle-group-control-option/component.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +39 -19
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +9 -8
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build-module/toggle-group-control/types.js.map +1 -1
- package/build-module/toolbar/toolbar/index.js +27 -14
- package/build-module/toolbar/toolbar/index.js.map +1 -1
- package/build-module/toolbar/toolbar/toolbar-container.js +5 -4
- package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
- package/build-module/toolbar/toolbar/toolbar-container.native.js +1 -1
- package/build-module/toolbar/toolbar/types.js.map +1 -1
- package/build-module/toolbar/toolbar-button/index.js +1 -1
- package/build-module/toolbar/toolbar-button/index.js.map +1 -1
- package/build-module/toolbar/toolbar-button/toolbar-button-container.js +1 -1
- package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +1 -1
- package/build-module/toolbar/toolbar-context/index.js +1 -0
- package/build-module/toolbar/toolbar-context/index.js.map +1 -1
- package/build-module/toolbar/toolbar-dropdown-menu/index.js +6 -4
- package/build-module/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
- package/build-module/toolbar/toolbar-group/index.js +16 -13
- package/build-module/toolbar/toolbar-group/index.js.map +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +1 -3
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-container.js +4 -2
- package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +1 -1
- package/build-module/toolbar/toolbar-group/types.js +2 -0
- package/build-module/toolbar/toolbar-group/types.js.map +1 -0
- package/build-module/toolbar/toolbar-item/index.js +5 -4
- package/build-module/toolbar/toolbar-item/index.js.map +1 -1
- package/build-module/tools-panel/styles.js +14 -14
- package/build-module/tools-panel/styles.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +5 -3
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel/hook.js +1 -1
- package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +11 -10
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/hook.js +1 -1
- package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/component.js +2 -2
- package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js +20 -16
- package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-module/tools-panel/types.js.map +1 -1
- package/build-module/tooltip/index.js +79 -225
- package/build-module/tooltip/index.js.map +1 -1
- package/build-module/tooltip/index.native.js +1 -1
- package/build-module/tooltip/types.js +2 -0
- package/build-module/tooltip/types.js.map +1 -0
- package/build-module/tree-grid/cell.js +1 -1
- package/build-module/tree-grid/cell.js.map +1 -1
- package/build-module/tree-grid/index.js +1 -1
- package/build-module/tree-grid/index.js.map +1 -1
- package/build-module/tree-grid/item.js +1 -1
- package/build-module/tree-grid/roving-tab-index-item.js +1 -1
- package/build-module/tree-grid/roving-tab-index.js +1 -1
- package/build-module/tree-grid/row.js +1 -1
- package/build-module/tree-grid/row.js.map +1 -1
- package/build-module/tree-select/index.js +12 -10
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/truncate/component.js +2 -2
- package/build-module/truncate/component.js.map +1 -1
- package/build-module/truncate/hook.js +11 -5
- package/build-module/truncate/hook.js.map +1 -1
- package/build-module/truncate/types.js.map +1 -1
- package/build-module/unit-control/index.js +4 -3
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/index.native.js +1 -1
- package/build-module/unit-control/styles/unit-control-styles.js +11 -11
- package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build-module/unit-control/types.js.map +1 -1
- package/build-module/unit-control/unit-select-control.js +1 -1
- package/build-module/unit-control/unit-select-control.js.map +1 -1
- package/build-module/unit-control/utils.js +108 -0
- package/build-module/unit-control/utils.js.map +1 -1
- package/build-module/utils/colors-values.js +42 -19
- package/build-module/utils/colors-values.js.map +1 -1
- package/build-module/utils/colors.js +81 -0
- package/build-module/utils/colors.js.map +1 -1
- package/build-module/utils/config-values.js +1 -1
- package/build-module/utils/config-values.js.map +1 -1
- package/build-module/{ui/utils → utils}/font-size.js +1 -1
- package/build-module/utils/font-size.js.map +1 -0
- package/build-module/utils/get-valid-children.js.map +1 -0
- package/build-module/utils/hooks/use-update-effect.js +1 -1
- package/build-module/utils/hooks/use-update-effect.js.map +1 -1
- package/build-module/utils/space.js.map +1 -0
- package/build-module/utils/strings.js +32 -2
- package/build-module/utils/strings.js.map +1 -1
- package/build-module/utils/types.js.map +1 -1
- package/build-module/utils/unit-values.js +1 -1
- package/build-module/utils/unit-values.js.map +1 -1
- package/build-module/utils/use-deprecated-props.js +1 -12
- package/build-module/utils/use-deprecated-props.js.map +1 -1
- package/build-module/{ui/utils → utils}/use-responsive-value.js +2 -3
- package/build-module/utils/use-responsive-value.js.map +1 -0
- package/build-module/v-stack/component.js +2 -2
- package/build-module/v-stack/component.js.map +1 -1
- package/build-module/v-stack/hook.js +1 -1
- package/build-module/v-stack/hook.js.map +1 -1
- package/build-module/view/component.js +1 -1
- package/build-module/view/component.js.map +1 -1
- package/build-module/visually-hidden/component.js +2 -2
- package/build-module/visually-hidden/component.js.map +1 -1
- package/build-module/z-stack/component.js +3 -3
- package/build-module/z-stack/component.js.map +1 -1
- package/build-style/style-rtl.css +166 -183
- package/build-style/style.css +166 -183
- package/build-types/alignment-matrix-control/cell.d.ts +2 -2
- package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/icon.d.ts +1 -1
- package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/index.d.ts +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.map +1 -1
- package/build-types/alignment-matrix-control/utils.d.ts +9 -9
- package/build-types/alignment-matrix-control/utils.d.ts.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
- package/build-types/angle-picker-control/index.d.ts +0 -1
- package/build-types/angle-picker-control/index.d.ts.map +1 -1
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts +0 -6
- package/build-types/angle-picker-control/styles/angle-picker-control-styles.d.ts.map +1 -1
- package/build-types/angle-picker-control/types.d.ts +2 -0
- package/build-types/angle-picker-control/types.d.ts.map +1 -1
- package/build-types/animation/index.d.ts +1 -1
- package/build-types/animation/index.d.ts.map +1 -1
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/autocomplete/types.d.ts +5 -3
- package/build-types/autocomplete/types.d.ts.map +1 -1
- package/build-types/base-control/hooks.d.ts +1 -1
- package/build-types/base-control/index.d.ts +4 -28
- package/build-types/base-control/index.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts +4 -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 +3 -2
- 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 +47 -47
- 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 +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +52 -52
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +2 -2
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +47 -47
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +47 -47
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts +3 -2
- package/build-types/border-box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-box-control/types.d.ts +6 -0
- package/build-types/border-box-control/types.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +2 -1
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +48 -46
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts +2 -1
- 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 +48 -46
- 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 +3 -4
- 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 +12 -6
- package/build-types/border-control/stories/index.story.d.ts.map +1 -1
- package/build-types/border-control/styles.d.ts +1 -3
- package/build-types/border-control/styles.d.ts.map +1 -1
- package/build-types/border-control/types.d.ts +12 -1
- package/build-types/border-control/types.d.ts.map +1 -1
- package/build-types/box-control/all-input-control.d.ts +1 -1
- package/build-types/box-control/all-input-control.d.ts.map +1 -1
- package/build-types/box-control/axial-input-controls.d.ts +1 -1
- package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
- package/build-types/box-control/icon.d.ts +1 -1
- package/build-types/box-control/icon.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/input-controls.d.ts +1 -1
- package/build-types/box-control/input-controls.d.ts.map +1 -1
- package/build-types/box-control/stories/index.story.d.ts +1950 -0
- package/build-types/box-control/stories/index.story.d.ts.map +1 -0
- package/build-types/box-control/styles/box-control-styles.d.ts +49 -23
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/box-control/types.d.ts +12 -12
- package/build-types/box-control/types.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +2 -1
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/deprecated.d.ts +16 -22
- 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/types.d.ts +8 -8
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/card/card/component.d.ts +1 -1
- package/build-types/card/card/hook.d.ts +47 -47
- package/build-types/card/card/hook.d.ts.map +1 -1
- package/build-types/card/card-body/component.d.ts +1 -1
- package/build-types/card/card-body/hook.d.ts +47 -47
- package/build-types/card/card-body/hook.d.ts.map +1 -1
- package/build-types/card/card-divider/component.d.ts +4 -4
- package/build-types/card/card-divider/hook.d.ts +211 -211
- package/build-types/card/card-divider/hook.d.ts.map +1 -1
- package/build-types/card/card-footer/component.d.ts +1 -1
- package/build-types/card/card-footer/hook.d.ts +47 -47
- package/build-types/card/card-footer/hook.d.ts.map +1 -1
- package/build-types/card/card-header/component.d.ts +1 -1
- package/build-types/card/card-header/hook.d.ts +47 -47
- package/build-types/card/card-header/hook.d.ts.map +1 -1
- package/build-types/card/card-media/component.d.ts +1 -1
- package/build-types/card/card-media/component.d.ts.map +1 -1
- package/build-types/card/card-media/hook.d.ts +47 -47
- package/build-types/card/card-media/hook.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts +2 -2
- package/build-types/checkbox-control/index.d.ts +1 -1
- package/build-types/checkbox-control/index.d.ts.map +1 -1
- package/build-types/checkbox-control/stories/index.story.d.ts +11 -0
- 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 +7 -0
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -0
- package/build-types/circular-option-picker/circular-option-picker-context.d.ts +7 -0
- package/build-types/circular-option-picker/circular-option-picker-context.d.ts.map +1 -0
- package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts +7 -0
- package/build-types/circular-option-picker/circular-option-picker-option-group.d.ts.map +1 -0
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts +4 -0
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -0
- package/build-types/circular-option-picker/circular-option-picker.d.ts +11 -0
- package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -0
- package/build-types/circular-option-picker/index.d.ts +5 -56
- package/build-types/circular-option-picker/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +3 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/circular-option-picker/test/index.d.ts +2 -0
- package/build-types/circular-option-picker/test/index.d.ts.map +1 -0
- package/build-types/circular-option-picker/types.d.ts +52 -2
- package/build-types/circular-option-picker/types.d.ts.map +1 -1
- package/build-types/clipboard-button/index.d.ts +1 -1
- package/build-types/clipboard-button/index.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts +3 -19
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +3 -36
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +5 -2
- package/build-types/color-palette/styles.d.ts.map +1 -1
- package/build-types/color-palette/types.d.ts +31 -1
- package/build-types/color-palette/types.d.ts.map +1 -1
- package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +2 -2
- package/build-types/color-picker/component.d.ts.map +1 -1
- package/build-types/color-picker/hsl-input.d.ts.map +1 -1
- package/build-types/color-picker/picker.d.ts +1 -1
- package/build-types/color-picker/picker.d.ts.map +1 -1
- package/build-types/color-picker/stories/index.story.d.ts +2 -2
- package/build-types/color-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +7 -7
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/color-picker/types.d.ts +4 -1
- package/build-types/color-picker/types.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 +2 -2
- package/build-types/composite/current/index.d.ts +12 -0
- package/build-types/composite/current/index.d.ts.map +1 -0
- package/build-types/composite/current/stories/index.story.d.ts +13 -0
- package/build-types/composite/current/stories/index.story.d.ts.map +1 -0
- package/build-types/composite/current/stories/utils.d.ts +15 -0
- package/build-types/composite/current/stories/utils.d.ts.map +1 -0
- package/build-types/composite/index.d.ts +1 -1
- package/build-types/composite/index.d.ts.map +1 -1
- package/build-types/composite/legacy/index.d.ts +84 -0
- package/build-types/composite/legacy/index.d.ts.map +1 -0
- package/build-types/composite/legacy/stories/index.story.d.ts +12 -0
- package/build-types/composite/legacy/stories/index.story.d.ts.map +1 -0
- package/build-types/composite/legacy/stories/utils.d.ts +15 -0
- package/build-types/composite/legacy/stories/utils.d.ts.map +1 -0
- package/build-types/composite/legacy/test/index.d.ts +2 -0
- package/build-types/composite/legacy/test/index.d.ts.map +1 -0
- package/build-types/composite/v2.d.ts +2 -0
- package/build-types/composite/v2.d.ts.map +1 -0
- package/build-types/confirm-dialog/component.d.ts +70 -29
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts +11 -0
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -0
- package/build-types/confirm-dialog/test/index.d.ts +2 -0
- package/build-types/confirm-dialog/test/index.d.ts.map +1 -0
- package/build-types/confirm-dialog/types.d.ts +32 -10
- package/build-types/confirm-dialog/types.d.ts.map +1 -1
- package/build-types/context/constants.d.ts.map +1 -0
- package/build-types/context/context-connect.d.ts.map +1 -0
- package/build-types/context/context-system-provider.d.ts.map +1 -0
- package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -0
- package/build-types/context/index.d.ts.map +1 -0
- package/build-types/context/test/context-connect.d.ts.map +1 -0
- package/build-types/context/test/wordpress-component.d.ts.map +1 -0
- package/build-types/context/use-context-system.d.ts.map +1 -0
- package/build-types/context/utils.d.ts.map +1 -0
- package/build-types/{ui/context → context}/wordpress-component.d.ts +3 -3
- package/build-types/context/wordpress-component.d.ts.map +1 -0
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +1 -3
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/styles/custom-gradient-picker-styles.d.ts +2 -2
- package/build-types/custom-gradient-picker/types.d.ts +2 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/styles.d.ts +2 -2
- package/build-types/custom-select-control-v2/index.d.ts +7 -0
- package/build-types/custom-select-control-v2/index.d.ts.map +1 -0
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +20 -0
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -0
- package/build-types/custom-select-control-v2/styles.d.ts +47 -0
- package/build-types/custom-select-control-v2/styles.d.ts.map +1 -0
- package/build-types/custom-select-control-v2/test/index.d.ts +2 -0
- package/build-types/custom-select-control-v2/test/index.d.ts.map +1 -0
- package/build-types/custom-select-control-v2/types.d.ts +57 -0
- package/build-types/custom-select-control-v2/types.d.ts.map +1 -0
- package/build-types/dashicon/index.d.ts +1 -1
- package/build-types/dashicon/index.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +7 -4
- package/build-types/date-time/date/styles.d.ts.map +1 -1
- package/build-types/date-time/date-time/styles.d.ts +2 -2
- package/build-types/date-time/time/index.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +12 -15
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/date-time/time/timezone.d.ts.map +1 -1
- package/build-types/dimension-control/index.d.ts.map +1 -1
- package/build-types/dimension-control/types.d.ts +6 -0
- package/build-types/dimension-control/types.d.ts.map +1 -1
- package/build-types/disabled/index.d.ts +1 -1
- package/build-types/disabled/index.d.ts.map +1 -1
- package/build-types/disclosure/index.d.ts +7 -1
- package/build-types/disclosure/index.d.ts.map +1 -1
- package/build-types/disclosure/types.d.ts +12 -0
- package/build-types/disclosure/types.d.ts.map +1 -0
- package/build-types/divider/component.d.ts +8 -4
- 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 +4 -4
- package/build-types/divider/types.d.ts +3 -3
- package/build-types/divider/types.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts +1 -1
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
- package/build-types/dropdown/index.d.ts +1 -1
- package/build-types/dropdown/index.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts +3 -3
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/types.d.ts +12 -4
- package/build-types/dropdown/types.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/types.d.ts +23 -6
- package/build-types/dropdown-menu/types.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/index.d.ts +18 -15
- package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts +7 -2
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/styles.d.ts +77 -23
- package/build-types/dropdown-menu-v2/styles.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/types.d.ts +89 -173
- package/build-types/dropdown-menu-v2/types.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/duotone-picker/types.d.ts +31 -1
- package/build-types/duotone-picker/types.d.ts.map +1 -1
- package/build-types/elevation/component.d.ts +1 -1
- package/build-types/elevation/component.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +47 -47
- package/build-types/elevation/hook.d.ts.map +1 -1
- package/build-types/external-link/index.d.ts +1 -1
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/external-link/styles/external-link-styles.d.ts +1 -1
- package/build-types/flex/flex/component.d.ts +1 -1
- package/build-types/flex/flex/component.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +47 -47
- package/build-types/flex/flex/hook.d.ts.map +1 -1
- package/build-types/flex/flex-block/component.d.ts +1 -1
- package/build-types/flex/flex-block/component.d.ts.map +1 -1
- package/build-types/flex/flex-block/hook.d.ts +47 -47
- package/build-types/flex/flex-block/hook.d.ts.map +1 -1
- package/build-types/flex/flex-item/component.d.ts +1 -1
- package/build-types/flex/flex-item/component.d.ts.map +1 -1
- package/build-types/flex/flex-item/hook.d.ts +47 -47
- package/build-types/flex/flex-item/hook.d.ts.map +1 -1
- package/build-types/flex/types.d.ts +2 -2
- package/build-types/flex/types.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/focal-point.d.ts +1 -1
- package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
- package/build-types/focal-point-picker/grid.d.ts +1 -1
- package/build-types/focal-point-picker/grid.d.ts.map +1 -1
- package/build-types/focal-point-picker/index.d.ts +2 -2
- package/build-types/focal-point-picker/index.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +12 -8
- 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 +2 -2
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-style.d.ts.map +1 -1
- package/build-types/focal-point-picker/types.d.ts +7 -0
- package/build-types/focal-point-picker/types.d.ts.map +1 -1
- package/build-types/focusable-iframe/index.d.ts +4 -5
- package/build-types/focusable-iframe/index.d.ts.map +1 -1
- package/build-types/focusable-iframe/types.d.ts +8 -0
- package/build-types/focusable-iframe/types.d.ts.map +1 -0
- 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/index.story.d.ts.map +1 -1
- package/build-types/font-size-picker/styles.d.ts +2 -8
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/font-size-picker/types.d.ts +10 -1
- package/build-types/font-size-picker/types.d.ts.map +1 -1
- package/build-types/font-size-picker/utils.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts +1 -1
- package/build-types/form-file-upload/index.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-token-field/index.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.map +1 -1
- package/build-types/form-token-field/types.d.ts +7 -1
- package/build-types/form-token-field/types.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts +1 -4
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +3 -36
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/types.d.ts +33 -1
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/grid/component.d.ts +1 -1
- package/build-types/grid/component.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +47 -47
- package/build-types/grid/hook.d.ts.map +1 -1
- package/build-types/grid/types.d.ts +1 -1
- package/build-types/grid/types.d.ts.map +1 -1
- package/build-types/guide/page.d.ts +1 -1
- package/build-types/guide/page.d.ts.map +1 -1
- package/build-types/h-stack/component.d.ts +2 -2
- package/build-types/h-stack/hook.d.ts +47 -47
- package/build-types/h-stack/hook.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +4 -1
- package/build-types/heading/component.d.ts.map +1 -1
- package/build-types/heading/hook.d.ts +46 -46
- package/build-types/heading/hook.d.ts.map +1 -1
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/heading/types.d.ts +20 -1
- package/build-types/heading/types.d.ts.map +1 -1
- package/build-types/higher-order/navigate-regions/index.d.ts.map +1 -1
- package/build-types/higher-order/with-focus-outside/index.d.ts +1 -0
- package/build-types/higher-order/with-focus-outside/index.d.ts.map +1 -1
- package/build-types/higher-order/with-focus-outside/test/index.d.ts +2 -0
- package/build-types/higher-order/with-focus-outside/test/index.d.ts.map +1 -0
- package/build-types/higher-order/with-focus-return/index.d.ts +1 -1
- package/build-types/higher-order/with-spoken-messages/index.d.ts +3 -3
- package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -1
- package/build-types/index.d.ts.map +1 -1
- package/build-types/input-control/backdrop.d.ts +2 -1
- package/build-types/input-control/backdrop.d.ts.map +1 -1
- package/build-types/input-control/index.d.ts +1 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-base.d.ts +3 -5
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/input-prefix-wrapper.d.ts +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 +1 -1
- package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/label.d.ts +1 -1
- package/build-types/input-control/label.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +15 -3
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +18 -5
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/isolated-event-container/test/index.d.ts +2 -0
- package/build-types/isolated-event-container/test/index.d.ts.map +1 -0
- package/build-types/item-group/item/component.d.ts +1 -1
- package/build-types/item-group/item/component.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +47 -47
- package/build-types/item-group/item/hook.d.ts.map +1 -1
- package/build-types/item-group/item-group/component.d.ts +1 -1
- package/build-types/item-group/item-group/component.d.ts.map +1 -1
- package/build-types/item-group/item-group/hook.d.ts +47 -47
- package/build-types/item-group/item-group/hook.d.ts.map +1 -1
- package/build-types/item-group/styles.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/menu-item/index.d.ts +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +4 -4
- package/build-types/mobile/image/constants.d.ts +5 -0
- package/build-types/mobile/image/constants.d.ts.map +1 -0
- package/build-types/modal/aria-helper.d.ts +6 -7
- package/build-types/modal/aria-helper.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts +1 -0
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/modal/types.d.ts +10 -1
- package/build-types/modal/types.d.ts.map +1 -1
- package/build-types/navigable-container/menu.d.ts +1 -1
- package/build-types/navigable-container/types.d.ts +1 -1
- package/build-types/navigable-container/types.d.ts.map +1 -1
- package/build-types/navigation/back-button/index.d.ts +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +9 -11
- package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/component.d.ts +3 -4
- package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +54 -55
- package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/component.d.ts +3 -4
- package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +54 -55
- package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/component.d.ts +1 -7
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts +3 -4
- package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
- package/build-types/navigator/styles.d.ts +9 -0
- package/build-types/navigator/styles.d.ts.map +1 -0
- 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/number-control/index.d.ts +3 -3
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +3 -3
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +1 -1
- package/build-types/palette-edit/index.d.ts +2 -2
- 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 +20 -23
- package/build-types/palette-edit/styles.d.ts.map +1 -1
- package/build-types/panel/types.d.ts +1 -1
- package/build-types/panel/types.d.ts.map +1 -1
- package/build-types/placeholder/index.d.ts +1 -1
- package/build-types/placeholder/index.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +2 -2
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/overlay-middlewares.d.ts +1 -1
- package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
- package/build-types/popover/types.d.ts +9 -4
- package/build-types/popover/types.d.ts.map +1 -1
- package/build-types/popover/utils.d.ts +2 -6
- package/build-types/popover/utils.d.ts.map +1 -1
- package/build-types/private-apis.d.ts +0 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/styles.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/category-select.d.ts +1 -1
- package/build-types/query-controls/category-select.d.ts.map +1 -1
- package/build-types/query-controls/index.d.ts +1 -1
- package/build-types/query-controls/index.d.ts.map +1 -1
- package/build-types/query-controls/types.d.ts +9 -0
- package/build-types/query-controls/types.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/radio-group/context.d.ts +10 -0
- package/build-types/radio-group/context.d.ts.map +1 -0
- package/build-types/radio-group/index.d.ts +7 -9
- package/build-types/radio-group/index.d.ts.map +1 -1
- package/build-types/radio-group/radio.d.ts +8 -0
- package/build-types/radio-group/radio.d.ts.map +1 -0
- package/build-types/radio-group/stories/index.story.d.ts +14 -0
- package/build-types/radio-group/stories/index.story.d.ts.map +1 -0
- package/build-types/radio-group/types.d.ts +40 -0
- package/build-types/radio-group/types.d.ts.map +1 -0
- package/build-types/range-control/index.d.ts +2 -14
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/mark.d.ts +1 -1
- package/build-types/range-control/mark.d.ts.map +1 -1
- package/build-types/range-control/rail.d.ts +1 -1
- package/build-types/range-control/rail.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +3 -3
- package/build-types/range-control/tooltip.d.ts +1 -1
- package/build-types/range-control/tooltip.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/label.d.ts +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts +2 -2
- package/build-types/sandbox/index.d.ts +1 -1
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/types.d.ts +6 -0
- package/build-types/sandbox/types.d.ts.map +1 -1
- package/build-types/scrollable/component.d.ts +1 -1
- package/build-types/scrollable/component.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +47 -47
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/search-control/index.d.ts +4 -7
- package/build-types/search-control/index.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +2 -14
- package/build-types/search-control/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/styles.d.ts +10 -0
- package/build-types/search-control/styles.d.ts.map +1 -0
- package/build-types/search-control/test/index.d.ts +2 -0
- package/build-types/search-control/test/index.d.ts.map +1 -0
- package/build-types/search-control/types.d.ts +38 -10
- package/build-types/search-control/types.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 +2 -2
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +1 -1
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts +3 -4
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +6 -10
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +3 -3
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts +8 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +2 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +9 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
- package/build-types/slot-fill/context.d.ts +6 -9
- package/build-types/slot-fill/context.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts +2 -4
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +20 -16
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts +4 -26
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts +3 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts +15 -0
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -0
- package/build-types/slot-fill/types.d.ts +118 -0
- package/build-types/slot-fill/types.d.ts.map +1 -0
- package/build-types/slot-fill/use-slot.d.ts +6 -4
- package/build-types/slot-fill/use-slot.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts +2 -2
- 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 +0 -3
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/types.d.ts +1 -1
- package/build-types/snackbar/types.d.ts.map +1 -1
- package/build-types/spacer/component.d.ts +1 -1
- package/build-types/spacer/component.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +47 -47
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/spacer/types.d.ts +1 -1
- package/build-types/spacer/types.d.ts.map +1 -1
- package/build-types/spinner/index.d.ts +2 -2
- package/build-types/spinner/index.d.ts.map +1 -1
- package/build-types/surface/component.d.ts +1 -1
- package/build-types/surface/component.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +47 -47
- package/build-types/surface/hook.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tabs/context.d.ts +8 -0
- package/build-types/tabs/context.d.ts.map +1 -0
- package/build-types/tabs/index.d.ts +14 -0
- package/build-types/tabs/index.d.ts.map +1 -0
- package/build-types/tabs/stories/index.story.d.ts +20 -0
- package/build-types/tabs/stories/index.story.d.ts.map +1 -0
- package/build-types/tabs/styles.d.ts +27 -0
- package/build-types/tabs/styles.d.ts.map +1 -0
- package/build-types/tabs/tab.d.ts +11 -0
- package/build-types/tabs/tab.d.ts.map +1 -0
- package/build-types/tabs/tablist.d.ts +7 -0
- package/build-types/tabs/tablist.d.ts.map +1 -0
- package/build-types/tabs/tabpanel.d.ts +11 -0
- package/build-types/tabs/tabpanel.d.ts.map +1 -0
- package/build-types/tabs/test/index.d.ts +2 -0
- package/build-types/{ui/tooltip → tabs/test}/index.d.ts.map +1 -1
- package/build-types/tabs/types.d.ts +115 -0
- package/build-types/tabs/types.d.ts.map +1 -0
- package/build-types/text/component.d.ts +4 -2
- package/build-types/text/component.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +214 -208
- package/build-types/text/hook.d.ts.map +1 -1
- package/build-types/text/index.d.ts +2 -2
- package/build-types/text/index.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts +21 -0
- package/build-types/text/stories/index.story.d.ts.map +1 -0
- package/build-types/text/styles.d.ts +7 -7
- package/build-types/text/styles.d.ts.map +1 -1
- package/build-types/text/types.d.ts +18 -4
- package/build-types/text/types.d.ts.map +1 -1
- package/build-types/text/utils.d.ts +56 -61
- package/build-types/text/utils.d.ts.map +1 -1
- package/build-types/text-control/index.d.ts +4 -3
- package/build-types/text-control/index.d.ts.map +1 -1
- package/build-types/text-control/types.d.ts +6 -0
- package/build-types/text-control/types.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts +5 -3
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/build-types/theme/index.d.ts +1 -1
- package/build-types/theme/index.d.ts.map +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/toggle-control/index.d.ts +1 -1
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +2 -4
- package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +2 -4
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +4 -3
- 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 +1 -5
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/utils.d.ts +18 -0
- package/build-types/toggle-group-control/toggle-group-control/utils.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +5 -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 -0
- 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/types.d.ts +19 -24
- package/build-types/toggle-group-control/types.d.ts.map +1 -1
- package/build-types/toolbar/stories/index.story.d.ts +5 -0
- 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/types.d.ts +10 -0
- package/build-types/toolbar/toolbar/types.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts +16 -22
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-context/index.d.ts +2 -2
- package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts +3 -1
- package/build-types/toolbar/toolbar-dropdown-menu/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/index.d.ts +10 -14
- package/build-types/toolbar/toolbar-group/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-collapsed.d.ts +3 -5
- 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 +7 -5
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/types.d.ts +77 -0
- package/build-types/toolbar/toolbar-group/types.d.ts.map +1 -0
- package/build-types/toolbar/toolbar-item/index.d.ts +3 -1
- package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts +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 +48 -47
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts +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 +48 -47
- package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/component.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +47 -47
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/tools-panel/types.d.ts +11 -0
- package/build-types/tools-panel/types.d.ts.map +1 -1
- package/build-types/tooltip/index.d.ts +8 -5
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts +22 -0
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -0
- package/build-types/tooltip/test/index.d.ts +2 -0
- package/build-types/{ui/utils → tooltip/test}/index.d.ts.map +1 -1
- package/build-types/tooltip/test/utils/index.d.ts +11 -0
- package/build-types/tooltip/test/utils/index.d.ts.map +1 -0
- package/build-types/tooltip/types.d.ts +64 -0
- package/build-types/tooltip/types.d.ts.map +1 -0
- package/build-types/tree-grid/cell.d.ts +1 -1
- package/build-types/tree-grid/cell.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/truncate/component.d.ts +1 -1
- package/build-types/truncate/component.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +48 -48
- package/build-types/truncate/hook.d.ts.map +1 -1
- package/build-types/truncate/types.d.ts +4 -0
- package/build-types/truncate/types.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/styles/unit-control-styles.d.ts +3 -3
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +8 -4
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/unit-control/unit-select-control.d.ts +2 -6
- 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/colors-values.d.ts +28 -1
- package/build-types/utils/colors-values.d.ts.map +1 -1
- package/build-types/utils/colors.d.ts +16 -0
- package/build-types/utils/colors.d.ts.map +1 -1
- package/build-types/utils/font-size.d.ts.map +1 -0
- package/build-types/utils/get-valid-children.d.ts.map +1 -0
- package/build-types/utils/hooks/use-update-effect.d.ts +1 -1
- package/build-types/utils/space.d.ts.map +1 -0
- package/build-types/utils/strings.d.ts +14 -2
- package/build-types/utils/strings.d.ts.map +1 -1
- package/build-types/utils/types.d.ts +1 -13
- package/build-types/utils/types.d.ts.map +1 -1
- package/build-types/utils/use-deprecated-props.d.ts +1 -3
- package/build-types/utils/use-deprecated-props.d.ts.map +1 -1
- package/build-types/utils/use-responsive-value.d.ts.map +1 -0
- package/build-types/v-stack/component.d.ts +2 -2
- package/build-types/v-stack/hook.d.ts +47 -47
- package/build-types/v-stack/hook.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +2 -2
- package/build-types/view/component.d.ts +1 -1
- package/build-types/view/component.d.ts.map +1 -1
- package/build-types/visually-hidden/component.d.ts +1 -1
- package/build-types/visually-hidden/component.d.ts.map +1 -1
- package/build-types/z-stack/component.d.ts +1 -1
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/alignment-matrix-control/README.md +1 -1
- package/src/alignment-matrix-control/cell.tsx +7 -3
- package/src/alignment-matrix-control/icon.tsx +1 -1
- package/src/alignment-matrix-control/index.tsx +32 -55
- package/src/alignment-matrix-control/stories/index.story.tsx +3 -7
- package/src/alignment-matrix-control/test/index.tsx +112 -19
- package/src/alignment-matrix-control/utils.tsx +33 -9
- package/src/angle-picker-control/README.md +1 -9
- package/src/angle-picker-control/angle-circle.tsx +1 -1
- package/src/angle-picker-control/index.tsx +5 -25
- package/src/angle-picker-control/stories/index.story.tsx +0 -3
- package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +1 -19
- package/src/angle-picker-control/types.ts +2 -0
- package/src/animation/index.tsx +1 -0
- package/src/autocomplete/index.tsx +136 -77
- package/src/autocomplete/types.ts +6 -2
- package/src/base-control/index.tsx +22 -17
- package/src/base-control/styles/base-control-styles.ts +1 -1
- package/src/border-box-control/border-box-control/README.md +1 -1
- package/src/border-box-control/border-box-control/component.tsx +2 -3
- package/src/border-box-control/border-box-control/hook.ts +7 -3
- package/src/border-box-control/border-box-control-linked-button/component.tsx +3 -3
- package/src/border-box-control/border-box-control-linked-button/hook.ts +2 -2
- package/src/border-box-control/border-box-control-split-controls/component.tsx +2 -2
- package/src/border-box-control/border-box-control-split-controls/hook.ts +2 -2
- package/src/border-box-control/border-box-control-visualizer/component.tsx +2 -2
- package/src/border-box-control/border-box-control-visualizer/hook.ts +2 -2
- package/src/border-box-control/types.ts +6 -0
- package/src/border-control/border-control/README.md +2 -2
- package/src/border-control/border-control/component.tsx +6 -2
- package/src/border-control/border-control/hook.ts +24 -18
- package/src/border-control/border-control-dropdown/component.tsx +8 -5
- package/src/border-control/border-control-dropdown/hook.ts +5 -4
- package/src/border-control/border-control-style-picker/component.tsx +32 -67
- package/src/border-control/styles.ts +6 -28
- package/src/border-control/test/index.js +79 -69
- package/src/border-control/types.ts +15 -1
- package/src/box-control/README.md +1 -1
- package/src/box-control/all-input-control.tsx +57 -34
- package/src/box-control/axial-input-controls.tsx +79 -69
- package/src/box-control/icon.tsx +1 -1
- package/src/box-control/index.tsx +47 -54
- package/src/box-control/input-controls.tsx +114 -83
- package/src/box-control/linked-button.tsx +1 -1
- package/src/box-control/stories/index.story.tsx +82 -0
- package/src/box-control/styles/box-control-styles.ts +21 -61
- package/src/box-control/test/index.tsx +126 -18
- package/src/box-control/types.ts +10 -21
- package/src/box-control/utils.ts +43 -8
- package/src/button/README.md +35 -13
- package/src/button/index.tsx +53 -34
- package/src/button/stories/e2e/index.story.tsx +6 -0
- package/src/button/stories/index.story.tsx +11 -0
- package/src/button/style.scss +23 -3
- package/src/button/test/index.tsx +208 -6
- package/src/button/types.ts +8 -8
- package/src/button-group/README.md +0 -6
- package/src/button-group/index.tsx +1 -1
- package/src/card/card/README.md +2 -2
- package/src/card/card/component.tsx +2 -2
- package/src/card/card/hook.ts +2 -2
- package/src/card/card-body/component.tsx +2 -2
- package/src/card/card-body/hook.ts +2 -2
- package/src/card/card-divider/component.tsx +2 -2
- package/src/card/card-divider/hook.ts +2 -2
- package/src/card/card-footer/component.tsx +2 -2
- package/src/card/card-footer/hook.ts +2 -2
- package/src/card/card-header/component.tsx +2 -2
- package/src/card/card-header/hook.ts +2 -2
- package/src/card/card-media/component.tsx +2 -2
- package/src/card/card-media/hook.ts +2 -2
- package/src/card/test/__snapshots__/index.tsx.snap +3 -3
- package/src/checkbox-control/README.md +3 -11
- package/src/checkbox-control/index.tsx +9 -7
- package/src/checkbox-control/stories/index.story.tsx +44 -0
- package/src/checkbox-control/test/__snapshots__/index.tsx.snap +3 -8
- package/src/checkbox-control/test/index.tsx +7 -0
- package/src/circular-option-picker/README.md +15 -1
- package/src/circular-option-picker/circular-option-picker-actions.tsx +60 -0
- package/src/circular-option-picker/circular-option-picker-context.tsx +12 -0
- package/src/circular-option-picker/circular-option-picker-option-group.tsx +34 -0
- package/src/circular-option-picker/circular-option-picker-option.tsx +123 -0
- package/src/circular-option-picker/circular-option-picker.tsx +185 -0
- package/src/circular-option-picker/index.tsx +7 -174
- package/src/circular-option-picker/stories/index.story.tsx +34 -9
- package/src/circular-option-picker/style.scss +13 -8
- package/src/circular-option-picker/test/index.tsx +127 -0
- package/src/circular-option-picker/types.ts +66 -2
- package/src/clipboard-button/README.md +1 -1
- package/src/clipboard-button/index.tsx +1 -1
- package/src/color-indicator/index.tsx +1 -1
- package/src/color-palette/README.md +15 -1
- package/src/color-palette/index.native.js +18 -7
- package/src/color-palette/index.tsx +76 -30
- package/src/color-palette/stories/index.story.tsx +16 -2
- package/src/color-palette/test/index.tsx +32 -30
- package/src/color-palette/types.ts +34 -1
- package/src/color-picker/README.md +1 -1
- package/src/color-picker/color-copy-button.tsx +6 -10
- package/src/color-picker/component.tsx +26 -4
- package/src/color-picker/hex-input.tsx +1 -1
- package/src/color-picker/hsl-input.tsx +56 -30
- package/src/color-picker/input-with-slider.tsx +1 -1
- package/src/color-picker/picker.tsx +96 -2
- package/src/color-picker/styles.ts +1 -2
- package/src/color-picker/test/index.tsx +190 -16
- package/src/color-picker/types.ts +4 -1
- package/src/combobox-control/README.md +2 -10
- package/src/combobox-control/index.tsx +8 -9
- package/src/combobox-control/styles.ts +1 -1
- package/src/combobox-control/test/index.tsx +6 -7
- package/src/composite/{index.js → current/index.ts} +9 -6
- package/src/composite/current/stories/index.story.tsx +86 -0
- package/src/composite/current/stories/utils.tsx +61 -0
- package/src/composite/index.ts +7 -0
- package/src/composite/legacy/index.tsx +191 -0
- package/src/composite/legacy/stories/index.story.tsx +205 -0
- package/src/composite/legacy/stories/utils.tsx +67 -0
- package/src/composite/legacy/test/index.tsx +579 -0
- package/src/composite/v2.ts +4 -0
- package/src/confirm-dialog/README.md +2 -2
- package/src/confirm-dialog/component.tsx +83 -15
- package/src/confirm-dialog/stories/{index.story.js → index.story.tsx} +41 -40
- package/src/confirm-dialog/test/{index.js → index.tsx} +11 -19
- package/src/confirm-dialog/types.ts +32 -12
- package/src/{ui/context → context}/context-connect.ts +4 -4
- package/src/{ui/context → context}/context-system-provider.js +1 -1
- package/src/{ui/context → context}/use-context-system.js +1 -1
- package/src/{ui/context → context}/wordpress-component.ts +15 -10
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +34 -27
- package/src/custom-gradient-picker/gradient-bar/test/utils.ts +5 -5
- package/src/custom-gradient-picker/index.tsx +1 -22
- package/src/custom-gradient-picker/stories/index.story.tsx +0 -3
- package/src/custom-gradient-picker/style.scss +0 -7
- package/src/custom-gradient-picker/types.ts +2 -0
- package/src/custom-select-control/README.md +1 -10
- package/src/custom-select-control/index.js +7 -6
- package/src/custom-select-control/stories/index.story.js +1 -1
- package/src/custom-select-control/style.scss +1 -1
- package/src/custom-select-control/test/index.js +367 -35
- package/src/custom-select-control-v2/README.md +73 -0
- package/src/custom-select-control-v2/index.tsx +105 -0
- package/src/custom-select-control-v2/stories/index.story.tsx +150 -0
- package/src/custom-select-control-v2/styles.ts +76 -0
- package/src/custom-select-control-v2/test/index.tsx +219 -0
- package/src/custom-select-control-v2/types.ts +63 -0
- package/src/dashicon/index.tsx +1 -1
- package/src/date-time/README.md +1 -1
- package/src/date-time/date/styles.ts +4 -4
- package/src/date-time/time/index.tsx +17 -7
- package/src/date-time/time/styles.ts +1 -11
- package/src/date-time/time/timezone.tsx +17 -5
- package/src/dimension-control/README.md +1 -1
- package/src/dimension-control/index.tsx +2 -0
- package/src/dimension-control/test/__snapshots__/index.test.js.snap +26 -26
- package/src/dimension-control/types.ts +6 -0
- package/src/disabled/README.md +1 -1
- package/src/disabled/index.tsx +1 -1
- package/src/disclosure/index.tsx +44 -0
- package/src/disclosure/types.tsx +10 -0
- package/src/divider/README.md +1 -1
- package/src/divider/component.tsx +5 -5
- package/src/divider/stories/index.story.tsx +8 -0
- package/src/divider/styles.ts +1 -1
- package/src/divider/types.ts +3 -3
- package/src/drop-zone/README.md +1 -1
- package/src/drop-zone/index.tsx +1 -1
- package/src/dropdown/README.md +13 -3
- package/src/dropdown/dropdown-content-wrapper.tsx +2 -2
- package/src/dropdown/index.tsx +17 -35
- package/src/dropdown/stories/index.story.tsx +10 -7
- package/src/dropdown/styles.ts +1 -1
- package/src/dropdown/types.ts +12 -4
- package/src/dropdown-menu/README.md +18 -5
- package/src/dropdown-menu/index.tsx +9 -2
- package/src/dropdown-menu/stories/index.story.tsx +5 -0
- package/src/dropdown-menu/style.scss +4 -0
- package/src/dropdown-menu/types.ts +24 -7
- package/src/dropdown-menu-v2/README.md +75 -136
- package/src/dropdown-menu-v2/index.tsx +321 -231
- package/src/dropdown-menu-v2/stories/index.story.tsx +524 -127
- package/src/dropdown-menu-v2/styles.ts +227 -152
- package/src/dropdown-menu-v2/test/index.tsx +480 -188
- package/src/dropdown-menu-v2/types.ts +98 -184
- package/src/duotone-picker/README.md +15 -1
- package/src/duotone-picker/color-list-picker/index.tsx +28 -12
- package/src/duotone-picker/duotone-picker.tsx +45 -4
- package/src/duotone-picker/types.ts +34 -1
- package/src/elevation/component.tsx +2 -2
- package/src/elevation/hook.ts +2 -2
- package/src/external-link/index.tsx +1 -1
- package/src/external-link/test/index.tsx +4 -6
- package/src/flex/flex/component.tsx +2 -2
- package/src/flex/flex/hook.ts +4 -4
- package/src/flex/flex-block/component.tsx +2 -2
- package/src/flex/flex-block/hook.ts +2 -2
- package/src/flex/flex-item/component.tsx +2 -2
- package/src/flex/flex-item/hook.ts +2 -2
- package/src/flex/types.ts +2 -2
- package/src/focal-point-picker/README.md +1 -1
- package/src/focal-point-picker/controls.tsx +4 -0
- package/src/focal-point-picker/focal-point.tsx +1 -1
- package/src/focal-point-picker/grid.tsx +1 -1
- package/src/focal-point-picker/index.tsx +5 -3
- package/src/focal-point-picker/styles/focal-point-picker-style.ts +27 -11
- package/src/focal-point-picker/styles/focal-point-style.ts +21 -7
- package/src/focal-point-picker/types.ts +7 -0
- package/src/focusable-iframe/README.md +2 -2
- package/src/focusable-iframe/{index.js → index.tsx} +7 -4
- package/src/focusable-iframe/types.ts +9 -0
- package/src/font-size-picker/README.md +1 -9
- package/src/font-size-picker/font-size-picker-select.tsx +2 -0
- package/src/font-size-picker/font-size-picker-toggle-group.tsx +3 -2
- package/src/font-size-picker/index.native.js +8 -2
- package/src/font-size-picker/index.tsx +17 -25
- package/src/font-size-picker/stories/index.story.tsx +0 -1
- package/src/font-size-picker/styles.ts +1 -8
- package/src/font-size-picker/test/index.tsx +16 -99
- package/src/font-size-picker/types.ts +10 -1
- package/src/font-size-picker/utils.ts +2 -1
- package/src/form-file-upload/README.md +2 -2
- package/src/form-file-upload/index.tsx +1 -1
- package/src/form-toggle/README.md +1 -7
- package/src/form-toggle/index.tsx +1 -1
- package/src/form-toggle/style.scss +40 -8
- package/src/form-token-field/README.md +2 -1
- package/src/form-token-field/index.tsx +21 -8
- package/src/form-token-field/style.scss +6 -8
- package/src/form-token-field/styles.ts +1 -1
- package/src/form-token-field/test/index.tsx +133 -1
- package/src/form-token-field/token-input.tsx +2 -4
- package/src/form-token-field/token.tsx +1 -0
- package/src/form-token-field/types.ts +8 -1
- package/src/gradient-picker/README.md +15 -9
- package/src/gradient-picker/index.tsx +93 -68
- package/src/gradient-picker/stories/index.story.tsx +0 -1
- package/src/gradient-picker/types.ts +36 -1
- package/src/grid/component.tsx +2 -2
- package/src/grid/hook.ts +3 -3
- package/src/grid/types.ts +1 -1
- package/src/guide/page.tsx +1 -1
- package/src/guide/style.scss +1 -1
- package/src/h-stack/component.tsx +2 -2
- package/src/h-stack/hook.tsx +3 -3
- package/src/heading/README.md +6 -1
- package/src/heading/component.tsx +2 -2
- package/src/heading/hook.ts +9 -6
- package/src/heading/stories/index.story.tsx +2 -4
- package/src/heading/types.ts +23 -1
- package/src/higher-order/navigate-regions/index.tsx +5 -6
- package/src/higher-order/with-constrained-tabbing/README.md +1 -1
- package/src/higher-order/with-filters/test/index.tsx +36 -43
- package/src/higher-order/with-focus-outside/{index.js → index.tsx} +8 -5
- package/src/higher-order/with-focus-outside/test/{index.js → index.tsx} +13 -11
- package/src/higher-order/with-focus-return/README.md +1 -1
- package/src/higher-order/with-focus-return/index.tsx +1 -1
- package/src/higher-order/with-notices/test/index.tsx +1 -1
- package/src/higher-order/with-spoken-messages/index.tsx +10 -11
- package/src/icon/README.md +2 -2
- package/src/index.native.js +7 -3
- package/src/index.ts +5 -1
- package/src/input-control/backdrop.tsx +6 -1
- package/src/input-control/index.tsx +14 -11
- package/src/input-control/input-base.tsx +27 -13
- package/src/input-control/input-field.tsx +1 -1
- package/src/input-control/input-prefix-wrapper.tsx +2 -2
- package/src/input-control/input-suffix-wrapper.tsx +2 -2
- package/src/input-control/label.tsx +1 -1
- package/src/input-control/styles/input-control-styles.tsx +25 -20
- package/src/input-control/test/index.js +5 -7
- package/src/input-control/types.ts +22 -5
- package/src/isolated-event-container/test/{index.js → index.tsx} +1 -1
- package/src/item-group/item/component.tsx +2 -2
- package/src/item-group/item/hook.ts +2 -2
- package/src/item-group/item-group/component.tsx +2 -2
- package/src/item-group/item-group/hook.ts +2 -2
- package/src/item-group/styles.ts +1 -4
- package/src/keyboard-shortcuts/README.md +1 -1
- package/src/lock-unlock.js +10 -0
- package/src/menu-group/README.md +0 -8
- package/src/menu-item/README.md +3 -3
- package/src/menu-item/index.tsx +1 -1
- package/src/menu-items-choice/README.md +1 -8
- package/src/mobile/audio-player/index.native.js +9 -13
- package/src/mobile/bottom-sheet/index.native.js +16 -1
- package/src/mobile/bottom-sheet/sub-sheet/README.md +1 -1
- package/src/mobile/color-settings/palette.screen.native.js +7 -5
- package/src/mobile/global-styles-context/index.native.js +7 -8
- package/src/mobile/global-styles-context/test/fixtures/theme.native.js +0 -20
- package/src/mobile/global-styles-context/test/utils.native.js +22 -0
- package/src/mobile/global-styles-context/utils.native.js +95 -23
- package/src/mobile/html-text-input/index.native.js +4 -1
- package/src/mobile/html-text-input/style.scss +4 -0
- package/src/mobile/html-text-input/test/__snapshots__/index.native.js.snap +3 -1
- package/src/mobile/image/constants.js +1 -0
- package/src/mobile/image/index.native.js +172 -30
- package/src/mobile/image/style.native.scss +41 -9
- package/src/mobile/keyboard-aware-flat-list/index.android.js +50 -5
- package/src/mobile/keyboard-aware-flat-list/index.ios.js +66 -92
- package/src/mobile/keyboard-aware-flat-list/test/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +27 -25
- package/src/mobile/keyboard-aware-flat-list/test/use-scroll.native.js +71 -0
- package/src/mobile/keyboard-aware-flat-list/use-scroll-to-element.native.js +41 -0
- package/src/mobile/keyboard-aware-flat-list/{use-scroll-to-text-input.native.js → use-scroll-to-section.native.js} +22 -27
- package/src/mobile/keyboard-aware-flat-list/use-scroll.native.js +100 -0
- package/src/mobile/link-settings/style.native.scss +0 -17
- package/src/mobile/utils/alignments.native.js +1 -0
- package/src/mobile/utils/get-px-from-css-unit.native.js +329 -0
- package/src/mobile/utils/test/get-px-from-css-unit.native.js +172 -0
- package/src/modal/README.md +16 -8
- package/src/modal/aria-helper.ts +17 -25
- package/src/modal/index.tsx +103 -32
- package/src/modal/stories/index.story.tsx +9 -6
- package/src/modal/style.scss +21 -1
- package/src/modal/test/index.tsx +349 -1
- package/src/modal/types.ts +12 -1
- package/src/navigable-container/README.md +1 -1
- package/src/navigable-container/types.ts +1 -1
- package/src/navigation/menu/menu-title-search.tsx +6 -6
- package/src/navigation/menu/menu-title.tsx +1 -1
- package/src/navigation/styles/navigation-styles.tsx +6 -28
- package/src/navigation/use-navigation-tree-nodes.tsx +1 -1
- package/src/navigator/navigator-back-button/component.tsx +2 -2
- package/src/navigator/navigator-back-button/hook.ts +2 -2
- package/src/navigator/navigator-button/component.tsx +2 -2
- package/src/navigator/navigator-button/hook.ts +2 -2
- package/src/navigator/navigator-provider/component.tsx +5 -6
- package/src/navigator/navigator-screen/component.tsx +17 -95
- package/src/navigator/navigator-to-parent-button/component.tsx +2 -2
- package/src/navigator/styles.ts +71 -0
- package/src/navigator/test/index.tsx +0 -64
- package/src/notice/README.md +0 -6
- package/src/notice/index.tsx +18 -6
- package/src/notice/list.tsx +1 -1
- package/src/notice/style.scss +0 -2
- package/src/notice/test/__snapshots__/index.tsx.snap +9 -1
- package/src/number-control/README.md +2 -2
- package/src/number-control/index.tsx +15 -17
- package/src/number-control/styles/number-control-styles.ts +1 -1
- package/src/number-control/types.ts +1 -1
- package/src/palette-edit/index.tsx +36 -59
- package/src/palette-edit/stories/index.story.tsx +1 -0
- package/src/palette-edit/style.scss +2 -2
- package/src/palette-edit/{styles.js → styles.ts} +59 -15
- package/src/palette-edit/test/index.tsx +326 -10
- package/src/panel/README.md +0 -6
- package/src/panel/body.tsx +1 -1
- package/src/panel/types.ts +1 -1
- package/src/placeholder/README.md +1 -1
- package/src/placeholder/index.tsx +17 -9
- package/src/placeholder/style.scss +8 -21
- package/src/placeholder/test/index.tsx +35 -16
- package/src/popover/README.md +6 -7
- package/src/popover/index.tsx +150 -166
- package/src/popover/style.scss +10 -0
- package/src/popover/test/index.tsx +253 -3
- package/src/popover/test/utils/index.tsx +1 -1
- package/src/popover/types.ts +9 -5
- package/src/popover/utils.ts +19 -67
- package/src/private-apis.native.js +13 -0
- package/src/private-apis.ts +26 -19
- package/src/progress-bar/index.tsx +1 -1
- package/src/progress-bar/stories/index.story.tsx +1 -0
- package/src/progress-bar/styles.ts +19 -4
- package/src/query-controls/README.md +1 -1
- package/src/query-controls/author-select.tsx +2 -0
- package/src/query-controls/category-select.tsx +2 -0
- package/src/query-controls/index.native.js +4 -4
- package/src/query-controls/index.tsx +11 -6
- package/src/query-controls/types.ts +9 -0
- package/src/radio-control/README.md +2 -8
- package/src/radio-control/index.tsx +5 -2
- package/src/radio-control/style.scss +29 -2
- package/src/radio-group/README.md +2 -8
- package/src/radio-group/context.tsx +18 -0
- package/src/radio-group/index.tsx +65 -0
- package/src/radio-group/radio.tsx +55 -0
- package/src/radio-group/stories/index.story.tsx +90 -0
- package/src/radio-group/types.ts +39 -0
- package/src/range-control/README.md +5 -13
- package/src/range-control/index.tsx +3 -3
- package/src/range-control/input-range.tsx +1 -1
- package/src/range-control/mark.tsx +1 -1
- package/src/range-control/rail.tsx +1 -1
- package/src/range-control/styles/range-control-styles.ts +2 -2
- package/src/range-control/tooltip.tsx +1 -1
- package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +3 -3
- package/src/sandbox/README.md +7 -1
- package/src/sandbox/index.native.js +1 -1
- package/src/sandbox/index.tsx +5 -1
- package/src/sandbox/types.ts +6 -0
- package/src/scroll-lock/README.md +1 -1
- package/src/scrollable/component.tsx +2 -2
- package/src/scrollable/hook.ts +2 -2
- package/src/search-control/README.md +33 -10
- package/src/search-control/index.tsx +90 -63
- package/src/search-control/stories/index.story.tsx +1 -1
- package/src/search-control/styles.ts +42 -0
- package/src/search-control/test/index.tsx +107 -0
- package/src/search-control/types.ts +41 -14
- package/src/select-control/README.md +2 -8
- package/src/select-control/index.tsx +6 -5
- package/src/select-control/styles/select-control-styles.ts +18 -36
- package/src/select-control/test/select-control.tsx +2 -4
- package/src/select-control/types.ts +1 -0
- package/src/slot-fill/README.md +1 -1
- package/src/slot-fill/bubbles-virtually/{fill.js → fill.tsx} +6 -7
- package/src/slot-fill/bubbles-virtually/{slot-fill-context.js → slot-fill-context.ts} +8 -3
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +115 -0
- package/src/slot-fill/bubbles-virtually/{slot.js → slot.tsx} +16 -3
- package/src/slot-fill/bubbles-virtually/{use-slot-fills.js → use-slot-fills.ts} +3 -3
- package/src/slot-fill/bubbles-virtually/{use-slot.js → use-slot.ts} +15 -6
- package/src/slot-fill/context.ts +21 -0
- package/src/slot-fill/{fill.js → fill.ts} +2 -3
- package/src/slot-fill/{index.js → index.tsx} +41 -14
- package/src/slot-fill/provider.tsx +129 -0
- package/src/slot-fill/{slot.js → slot.tsx} +29 -15
- package/src/slot-fill/stories/index.story.tsx +140 -0
- package/src/slot-fill/types.ts +172 -0
- package/src/slot-fill/{use-slot.js → use-slot.ts} +4 -4
- package/src/snackbar/README.md +0 -6
- package/src/snackbar/index.tsx +20 -7
- package/src/snackbar/list.tsx +1 -1
- package/src/snackbar/stories/index.story.tsx +7 -5
- package/src/snackbar/style.scss +4 -3
- package/src/snackbar/types.ts +2 -1
- package/src/spacer/README.md +0 -2
- package/src/spacer/component.tsx +2 -2
- package/src/spacer/hook.ts +3 -3
- package/src/spacer/types.ts +1 -1
- package/src/spinner/README.md +2 -0
- package/src/spinner/index.tsx +1 -1
- package/src/spinner/stories/index.story.tsx +1 -1
- package/src/style.scss +0 -1
- package/src/surface/component.tsx +2 -2
- package/src/surface/hook.ts +2 -2
- package/src/tab-panel/README.md +0 -5
- package/src/tab-panel/index.tsx +2 -1
- package/src/tab-panel/test/index.tsx +39 -51
- package/src/tabs/README.md +212 -0
- package/src/tabs/context.ts +13 -0
- package/src/tabs/index.tsx +202 -0
- package/src/tabs/stories/index.story.tsx +369 -0
- package/src/tabs/styles.ts +125 -0
- package/src/tabs/tab.tsx +39 -0
- package/src/tabs/tablist.tsx +60 -0
- package/src/tabs/tabpanel.tsx +48 -0
- package/src/tabs/test/index.tsx +1395 -0
- package/src/tabs/types.ts +122 -0
- package/src/text/README.md +7 -3
- package/src/text/{component.js → component.tsx} +11 -7
- package/src/text/get-line-height.ts +1 -1
- package/src/text/{hook.js → hook.ts} +16 -19
- package/src/text/stories/index.story.tsx +80 -0
- package/src/text/{styles.js → styles.ts} +2 -1
- package/src/text/test/index.tsx +1 -1
- package/src/text/types.ts +18 -9
- package/src/text/{utils.js → utils.ts} +40 -14
- package/src/text-control/README.md +1 -7
- package/src/text-control/index.tsx +6 -2
- package/src/text-control/style.scss +5 -0
- package/src/text-control/types.ts +6 -0
- package/src/textarea-control/README.md +2 -8
- package/src/textarea-control/index.tsx +32 -32
- package/src/theme/README.md +5 -5
- package/src/theme/index.tsx +1 -1
- package/src/theme/stories/index.story.tsx +1 -0
- package/src/theme/styles.ts +3 -1
- package/src/toggle-control/README.md +4 -4
- package/src/toggle-control/index.tsx +2 -2
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +591 -71
- package/src/toggle-group-control/test/index.tsx +244 -87
- package/src/toggle-group-control/toggle-group-control/README.md +0 -1
- package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +39 -57
- package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +55 -51
- package/src/toggle-group-control/toggle-group-control/component.tsx +23 -10
- package/src/toggle-group-control/toggle-group-control/styles.ts +12 -26
- package/src/toggle-group-control/toggle-group-control/utils.ts +50 -0
- package/src/toggle-group-control/toggle-group-control-option/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +75 -24
- package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +20 -5
- package/src/toggle-group-control/toggle-group-control-option-icon/README.md +2 -2
- package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -1
- package/src/toggle-group-control/types.ts +20 -32
- package/src/toolbar/stories/index.story.tsx +18 -5
- package/src/toolbar/test/index.tsx +8 -0
- package/src/toolbar/test/toolbar-group.tsx +13 -7
- package/src/toolbar/toolbar/README.md +9 -6
- package/src/toolbar/toolbar/index.tsx +32 -15
- package/src/toolbar/toolbar/style.scss +9 -0
- package/src/toolbar/toolbar/toolbar-container.tsx +5 -4
- package/src/toolbar/toolbar/types.ts +10 -0
- package/src/toolbar/toolbar-button/README.md +2 -2
- package/src/toolbar/toolbar-button/index.tsx +1 -1
- package/src/toolbar/toolbar-button/style.scss +0 -5
- package/src/toolbar/toolbar-context/index.ts +5 -2
- package/src/toolbar/toolbar-dropdown-menu/README.md +2 -2
- package/src/toolbar/toolbar-dropdown-menu/{index.js → index.tsx} +11 -4
- package/src/toolbar/toolbar-group/README.md +2 -2
- package/src/toolbar/toolbar-group/{index.js → index.tsx} +19 -14
- package/src/toolbar/toolbar-group/{toolbar-group-collapsed.js → toolbar-group-collapsed.tsx} +10 -4
- package/src/toolbar/toolbar-group/toolbar-group-container.tsx +16 -0
- package/src/toolbar/toolbar-group/types.ts +92 -0
- package/src/toolbar/toolbar-item/README.md +2 -2
- package/src/toolbar/toolbar-item/index.tsx +6 -3
- package/src/tools-panel/styles.ts +1 -1
- package/src/tools-panel/test/index.tsx +12 -20
- package/src/tools-panel/tools-panel/README.md +10 -0
- package/src/tools-panel/tools-panel/component.tsx +4 -2
- package/src/tools-panel/tools-panel/hook.ts +2 -2
- package/src/tools-panel/tools-panel-header/README.md +7 -0
- package/src/tools-panel/tools-panel-header/component.tsx +22 -15
- package/src/tools-panel/tools-panel-header/hook.ts +2 -2
- package/src/tools-panel/tools-panel-item/component.tsx +2 -2
- package/src/tools-panel/tools-panel-item/hook.ts +27 -31
- package/src/tools-panel/types.ts +11 -0
- package/src/tooltip/README.md +35 -28
- package/src/tooltip/index.tsx +143 -0
- package/src/tooltip/stories/index.story.tsx +76 -0
- package/src/tooltip/style.scss +2 -27
- package/src/tooltip/test/index.tsx +504 -0
- package/src/tooltip/test/utils/index.tsx +20 -0
- package/src/tooltip/types.ts +65 -0
- package/src/tree-grid/README.md +0 -4
- package/src/tree-grid/cell.tsx +1 -1
- package/src/tree-grid/index.tsx +1 -1
- package/src/tree-grid/row.tsx +1 -1
- package/src/tree-select/README.md +1 -1
- package/src/tree-select/index.tsx +12 -9
- package/src/truncate/README.md +8 -0
- package/src/truncate/component.tsx +2 -2
- package/src/truncate/hook.ts +19 -12
- package/src/truncate/test/index.tsx +54 -27
- package/src/truncate/types.ts +4 -0
- package/src/unit-control/README.md +2 -2
- package/src/unit-control/index.tsx +18 -7
- package/src/unit-control/styles/unit-control-styles.ts +10 -8
- package/src/unit-control/test/utils.ts +1 -1
- package/src/unit-control/types.ts +8 -4
- package/src/unit-control/unit-select-control.tsx +1 -1
- package/src/unit-control/utils.ts +124 -0
- package/src/utils/colors-values.js +45 -23
- package/src/utils/colors.js +91 -0
- package/src/utils/config-values.js +1 -1
- package/src/{ui/utils → utils}/font-size.ts +1 -1
- package/src/utils/hooks/use-update-effect.js +1 -1
- package/src/utils/strings.ts +30 -2
- package/src/utils/test/colors.js +39 -1
- package/src/utils/test/strings.js +96 -1
- package/src/utils/types.ts +1 -36
- package/src/utils/unit-values.ts +1 -1
- package/src/utils/use-deprecated-props.ts +2 -17
- package/src/v-stack/component.tsx +2 -2
- package/src/v-stack/hook.ts +2 -2
- package/src/view/component.tsx +1 -1
- package/src/visually-hidden/component.tsx +2 -2
- package/src/z-stack/component.tsx +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/build/border-control/border-control-style-picker/hook.js +0 -41
- package/build/border-control/border-control-style-picker/hook.js.map +0 -1
- package/build/box-control/styles/box-control-visualizer-styles.js +0 -93
- package/build/box-control/styles/box-control-visualizer-styles.js.map +0 -1
- package/build/box-control/unit-control.js +0 -76
- package/build/box-control/unit-control.js.map +0 -1
- package/build/mobile/inserter-button/index.native.js +0 -97
- package/build/mobile/inserter-button/index.native.js.map +0 -1
- package/build/mobile/inserter-button/sparkles.js +0 -23
- package/build/mobile/inserter-button/sparkles.js.map +0 -1
- package/build/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
- package/build/mobile/link-settings/image-link-destinations-screen.native.js +0 -119
- package/build/mobile/link-settings/image-link-destinations-screen.native.js.map +0 -1
- package/build/radio-group/radio/index.js +0 -48
- package/build/radio-group/radio/index.js.map +0 -1
- package/build/radio-group/radio-context/index.js +0 -18
- package/build/radio-group/radio-context/index.js.map +0 -1
- package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -78
- package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
- package/build/ui/context/constants.js +0 -18
- package/build/ui/context/constants.js.map +0 -1
- package/build/ui/context/context-connect.js.map +0 -1
- package/build/ui/context/context-system-provider.js.map +0 -1
- package/build/ui/context/get-styled-class-name-from-key.js.map +0 -1
- package/build/ui/context/index.js.map +0 -1
- package/build/ui/context/use-context-system.js.map +0 -1
- package/build/ui/context/utils.js.map +0 -1
- package/build/ui/context/wordpress-component.js.map +0 -1
- package/build/ui/shortcut/component.js +0 -47
- package/build/ui/shortcut/component.js.map +0 -1
- package/build/ui/shortcut/index.js +0 -14
- package/build/ui/shortcut/index.js.map +0 -1
- package/build/ui/tooltip/component.js +0 -97
- package/build/ui/tooltip/component.js.map +0 -1
- package/build/ui/tooltip/content.js +0 -55
- package/build/ui/tooltip/content.js.map +0 -1
- package/build/ui/tooltip/context.js +0 -19
- package/build/ui/tooltip/context.js.map +0 -1
- package/build/ui/tooltip/index.js +0 -29
- package/build/ui/tooltip/index.js.map +0 -1
- package/build/ui/tooltip/styles.js +0 -44
- package/build/ui/tooltip/styles.js.map +0 -1
- package/build/ui/tooltip/types.js.map +0 -1
- package/build/ui/utils/colors.js +0 -96
- package/build/ui/utils/colors.js.map +0 -1
- package/build/ui/utils/font-size.js.map +0 -1
- package/build/ui/utils/get-valid-children.js.map +0 -1
- package/build/ui/utils/index.js +0 -13
- package/build/ui/utils/index.js.map +0 -1
- package/build/ui/utils/space.js.map +0 -1
- package/build/ui/utils/types.js.map +0 -1
- package/build/ui/utils/use-responsive-value.js.map +0 -1
- package/build/utils/z-index.js +0 -11
- package/build/utils/z-index.js.map +0 -1
- package/build-module/border-control/border-control-style-picker/hook.js +0 -32
- package/build-module/border-control/border-control-style-picker/hook.js.map +0 -1
- package/build-module/box-control/styles/box-control-visualizer-styles.js +0 -86
- package/build-module/box-control/styles/box-control-visualizer-styles.js.map +0 -1
- package/build-module/box-control/unit-control.js +0 -68
- package/build-module/box-control/unit-control.js.map +0 -1
- package/build-module/mobile/inserter-button/index.native.js +0 -89
- package/build-module/mobile/inserter-button/index.native.js.map +0 -1
- package/build-module/mobile/inserter-button/sparkles.js +0 -15
- package/build-module/mobile/inserter-button/sparkles.js.map +0 -1
- package/build-module/mobile/keyboard-aware-flat-list/use-scroll-to-text-input.native.js.map +0 -1
- package/build-module/mobile/link-settings/image-link-destinations-screen.native.js +0 -110
- package/build-module/mobile/link-settings/image-link-destinations-screen.native.js.map +0 -1
- package/build-module/radio-group/radio/index.js +0 -40
- package/build-module/radio-group/radio/index.js.map +0 -1
- package/build-module/radio-group/radio-context/index.js +0 -10
- package/build-module/radio-group/radio-context/index.js.map +0 -1
- package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -76
- package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
- package/build-module/ui/context/constants.js.map +0 -1
- package/build-module/ui/context/context-connect.js.map +0 -1
- package/build-module/ui/context/context-system-provider.js.map +0 -1
- package/build-module/ui/context/get-styled-class-name-from-key.js.map +0 -1
- package/build-module/ui/context/index.js.map +0 -1
- package/build-module/ui/context/use-context-system.js.map +0 -1
- package/build-module/ui/context/utils.js.map +0 -1
- package/build-module/ui/context/wordpress-component.js.map +0 -1
- package/build-module/ui/shortcut/component.js +0 -40
- package/build-module/ui/shortcut/component.js.map +0 -1
- package/build-module/ui/shortcut/index.js +0 -2
- package/build-module/ui/shortcut/index.js.map +0 -1
- package/build-module/ui/tooltip/component.js +0 -90
- package/build-module/ui/tooltip/component.js.map +0 -1
- package/build-module/ui/tooltip/content.js +0 -45
- package/build-module/ui/tooltip/content.js.map +0 -1
- package/build-module/ui/tooltip/context.js +0 -11
- package/build-module/ui/tooltip/context.js.map +0 -1
- package/build-module/ui/tooltip/index.js +0 -3
- package/build-module/ui/tooltip/index.js.map +0 -1
- package/build-module/ui/tooltip/styles.js +0 -37
- package/build-module/ui/tooltip/styles.js.map +0 -1
- package/build-module/ui/tooltip/types.js.map +0 -1
- package/build-module/ui/utils/colors.js +0 -88
- package/build-module/ui/utils/colors.js.map +0 -1
- package/build-module/ui/utils/font-size.js.map +0 -1
- package/build-module/ui/utils/get-valid-children.js.map +0 -1
- package/build-module/ui/utils/index.js +0 -2
- package/build-module/ui/utils/index.js.map +0 -1
- package/build-module/ui/utils/space.js.map +0 -1
- package/build-module/ui/utils/types.js.map +0 -1
- package/build-module/ui/utils/use-responsive-value.js.map +0 -1
- package/build-module/utils/z-index.js +0 -3
- package/build-module/utils/z-index.js.map +0 -1
- package/build-types/border-control/border-control-style-picker/hook.d.ts +0 -267
- package/build-types/border-control/border-control-style-picker/hook.d.ts.map +0 -1
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts +0 -46
- package/build-types/box-control/styles/box-control-visualizer-styles.d.ts.map +0 -1
- package/build-types/box-control/unit-control.d.ts +0 -4
- package/build-types/box-control/unit-control.d.ts.map +0 -1
- package/build-types/mobile/inserter-button/sparkles.d.ts +0 -3
- package/build-types/mobile/inserter-button/sparkles.d.ts.map +0 -1
- package/build-types/radio-group/radio/index.d.ts +0 -7
- package/build-types/radio-group/radio/index.d.ts.map +0 -1
- package/build-types/radio-group/radio-context/index.d.ts +0 -6
- package/build-types/radio-group/radio-context/index.d.ts.map +0 -1
- package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts +0 -9
- package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts.map +0 -1
- package/build-types/ui/context/constants.d.ts.map +0 -1
- package/build-types/ui/context/context-connect.d.ts.map +0 -1
- package/build-types/ui/context/context-system-provider.d.ts.map +0 -1
- package/build-types/ui/context/get-styled-class-name-from-key.d.ts.map +0 -1
- package/build-types/ui/context/index.d.ts.map +0 -1
- package/build-types/ui/context/test/context-connect.d.ts.map +0 -1
- package/build-types/ui/context/test/wordpress-component.d.ts.map +0 -1
- package/build-types/ui/context/use-context-system.d.ts.map +0 -1
- package/build-types/ui/context/utils.d.ts.map +0 -1
- package/build-types/ui/context/wordpress-component.d.ts.map +0 -1
- package/build-types/ui/shortcut/component.d.ts +0 -12
- package/build-types/ui/shortcut/component.d.ts.map +0 -1
- package/build-types/ui/shortcut/index.d.ts +0 -3
- package/build-types/ui/shortcut/index.d.ts.map +0 -1
- package/build-types/ui/tooltip/component.d.ts +0 -29
- package/build-types/ui/tooltip/component.d.ts.map +0 -1
- package/build-types/ui/tooltip/content.d.ts +0 -9
- package/build-types/ui/tooltip/content.d.ts.map +0 -1
- package/build-types/ui/tooltip/context.d.ts +0 -10
- package/build-types/ui/tooltip/context.d.ts.map +0 -1
- package/build-types/ui/tooltip/index.d.ts +0 -3
- package/build-types/ui/tooltip/styles.d.ts +0 -12
- package/build-types/ui/tooltip/styles.d.ts.map +0 -1
- package/build-types/ui/tooltip/types.d.ts +0 -62
- package/build-types/ui/tooltip/types.d.ts.map +0 -1
- package/build-types/ui/utils/colors.d.ts +0 -17
- package/build-types/ui/utils/colors.d.ts.map +0 -1
- package/build-types/ui/utils/font-size.d.ts.map +0 -1
- package/build-types/ui/utils/get-valid-children.d.ts.map +0 -1
- package/build-types/ui/utils/index.d.ts +0 -2
- package/build-types/ui/utils/space.d.ts.map +0 -1
- package/build-types/ui/utils/types.d.ts +0 -14
- package/build-types/ui/utils/types.d.ts.map +0 -1
- package/build-types/ui/utils/use-responsive-value.d.ts.map +0 -1
- package/build-types/utils/z-index.d.ts +0 -3
- package/build-types/utils/z-index.d.ts.map +0 -1
- package/src/border-control/border-control-style-picker/hook.ts +0 -35
- package/src/box-control/stories/index.story.js +0 -75
- package/src/box-control/styles/box-control-visualizer-styles.ts +0 -75
- package/src/box-control/unit-control.tsx +0 -74
- package/src/color-palette/test/__snapshots__/index.tsx.snap +0 -288
- package/src/disclosure/index.js +0 -11
- package/src/mobile/inserter-button/README.md +0 -62
- package/src/mobile/inserter-button/index.native.js +0 -116
- package/src/mobile/inserter-button/sparkles.js +0 -15
- package/src/mobile/inserter-button/style.native.scss +0 -72
- package/src/mobile/link-settings/image-link-destinations-screen.native.js +0 -152
- package/src/radio-group/index.js +0 -51
- package/src/radio-group/radio/index.js +0 -40
- package/src/radio-group/radio-context/index.js +0 -11
- package/src/radio-group/stories/index.story.js +0 -83
- package/src/search-control/style.scss +0 -58
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.js +0 -95
- package/src/slot-fill/context.js +0 -17
- package/src/slot-fill/provider.js +0 -119
- package/src/slot-fill/stories/index.story.js +0 -89
- package/src/text/stories/index.story.js +0 -53
- package/src/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.tsx +0 -84
- package/src/toolbar/toolbar-group/toolbar-group-container.js +0 -8
- package/src/tooltip/index.js +0 -293
- package/src/tooltip/stories/index.story.js +0 -85
- package/src/tooltip/test/index.js +0 -323
- package/src/ui/README.md +0 -5
- package/src/ui/shortcut/component.tsx +0 -62
- package/src/ui/shortcut/index.ts +0 -2
- package/src/ui/shortcut/test/__snapshots__/index.js.snap +0 -13
- package/src/ui/shortcut/test/index.js +0 -36
- package/src/ui/tooltip/README.md +0 -21
- package/src/ui/tooltip/component.js +0 -102
- package/src/ui/tooltip/content.js +0 -45
- package/src/ui/tooltip/context.js +0 -10
- package/src/ui/tooltip/index.js +0 -2
- package/src/ui/tooltip/stories/index.story.js +0 -26
- package/src/ui/tooltip/styles.js +0 -45
- package/src/ui/tooltip/test/__snapshots__/index.js.snap +0 -41
- package/src/ui/tooltip/test/index.js +0 -80
- package/src/ui/tooltip/types.ts +0 -67
- package/src/ui/utils/colors.js +0 -98
- package/src/ui/utils/index.js +0 -1
- package/src/ui/utils/test/colors.js +0 -42
- package/src/ui/utils/types.ts +0 -36
- package/src/utils/z-index.js +0 -2
- /package/build/{ui/context → context}/index.js +0 -0
- /package/build/{ui/context → context}/utils.js +0 -0
- /package/build/{ui/context → context}/wordpress-component.js +0 -0
- /package/build/{ui/tooltip → custom-select-control-v2}/types.js +0 -0
- /package/build/{ui/utils → disclosure}/types.js +0 -0
- /package/build/{ui/utils → utils}/get-valid-children.js +0 -0
- /package/build/{ui/utils → utils}/space.js +0 -0
- /package/build-module/{ui/context → context}/constants.js +0 -0
- /package/build-module/{ui/context → context}/get-styled-class-name-from-key.js +0 -0
- /package/build-module/{ui/context → context}/index.js +0 -0
- /package/build-module/{ui/context → context}/utils.js +0 -0
- /package/build-module/{ui/context → context}/wordpress-component.js +0 -0
- /package/build-module/{ui/tooltip → custom-select-control-v2}/types.js +0 -0
- /package/build-module/{ui/utils → disclosure}/types.js +0 -0
- /package/build-module/{ui/utils → utils}/get-valid-children.js +0 -0
- /package/build-module/{ui/utils → utils}/space.js +0 -0
- /package/build-types/{ui/context → context}/constants.d.ts +0 -0
- /package/build-types/{ui/context → context}/context-connect.d.ts +0 -0
- /package/build-types/{ui/context → context}/context-system-provider.d.ts +0 -0
- /package/build-types/{ui/context → context}/get-styled-class-name-from-key.d.ts +0 -0
- /package/build-types/{ui/context → context}/index.d.ts +0 -0
- /package/build-types/{ui/context → context}/test/context-connect.d.ts +0 -0
- /package/build-types/{ui/context → context}/test/wordpress-component.d.ts +0 -0
- /package/build-types/{ui/context → context}/use-context-system.d.ts +0 -0
- /package/build-types/{ui/context → context}/utils.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/font-size.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/get-valid-children.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/space.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/use-responsive-value.d.ts +0 -0
- /package/src/{ui/context → context}/constants.js +0 -0
- /package/src/{ui/context → context}/get-styled-class-name-from-key.ts +0 -0
- /package/src/{ui/context → context}/index.ts +0 -0
- /package/src/{ui/context → context}/stories/ComponentsProvider.stories.js +0 -0
- /package/src/{ui/context → context}/test/__snapshots__/context-system-provider.js.snap +0 -0
- /package/src/{ui/context → context}/test/context-connect.tsx +0 -0
- /package/src/{ui/context → context}/test/context-system-provider.js +0 -0
- /package/src/{ui/context → context}/test/wordpress-component.tsx +0 -0
- /package/src/{ui/context → context}/utils.js +0 -0
- /package/src/text/{index.js → index.ts} +0 -0
- /package/src/{ui/utils → utils}/get-valid-children.ts +0 -0
- /package/src/{ui/utils → utils}/space.ts +0 -0
- /package/src/{ui/utils → utils}/test/space.js +0 -0
- /package/src/{ui/utils → utils}/use-responsive-value.ts +0 -0
|
@@ -1,254 +1,108 @@
|
|
|
1
|
-
import { createElement } from "
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
|
|
1
|
+
import { createElement } from "react";
|
|
4
2
|
/**
|
|
5
3
|
* External dependencies
|
|
6
4
|
*/
|
|
7
|
-
|
|
5
|
+
// eslint-disable-next-line no-restricted-imports
|
|
6
|
+
import * as Ariakit from '@ariakit/react';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* WordPress dependencies
|
|
11
10
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { useInstanceId } from '@wordpress/compose';
|
|
12
|
+
import { Children, useContext, createContext, forwardRef } from '@wordpress/element';
|
|
13
|
+
import deprecated from '@wordpress/deprecated';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Internal dependencies
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
import Shortcut from '../shortcut';
|
|
20
|
+
import { positionToPlacement } from '../popover/utils';
|
|
21
|
+
const TooltipInternalContext = createContext({
|
|
22
|
+
isNestedInTooltip: false
|
|
23
|
+
});
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
|
-
* Time over
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
26
|
+
* Time over anchor to wait before showing tooltip
|
|
25
27
|
*/
|
|
26
28
|
export const TOOLTIP_DELAY = 700;
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
const getDisabledElement = ({
|
|
31
|
-
eventHandlers,
|
|
32
|
-
child,
|
|
33
|
-
childrenWithPopover,
|
|
34
|
-
mergedRefs
|
|
35
|
-
}) => {
|
|
36
|
-
return cloneElement(createElement("span", {
|
|
37
|
-
className: "disabled-element-wrapper"
|
|
38
|
-
}, cloneElement(eventCatcher, eventHandlers), cloneElement(child, {
|
|
39
|
-
children: childrenWithPopover,
|
|
40
|
-
ref: mergedRefs
|
|
41
|
-
})), {
|
|
42
|
-
...eventHandlers
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
const getRegularElement = ({
|
|
46
|
-
child,
|
|
47
|
-
eventHandlers,
|
|
48
|
-
childrenWithPopover,
|
|
49
|
-
mergedRefs
|
|
50
|
-
}) => {
|
|
51
|
-
return cloneElement(child, {
|
|
52
|
-
...eventHandlers,
|
|
53
|
-
children: childrenWithPopover,
|
|
54
|
-
ref: mergedRefs
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
const addPopoverToGrandchildren = ({
|
|
58
|
-
anchor,
|
|
59
|
-
grandchildren,
|
|
60
|
-
isOver,
|
|
61
|
-
offset,
|
|
62
|
-
position,
|
|
63
|
-
shortcut,
|
|
64
|
-
text,
|
|
65
|
-
className,
|
|
66
|
-
...props
|
|
67
|
-
}) => concatChildren(grandchildren, isOver && createElement(Popover, {
|
|
68
|
-
focusOnMount: false,
|
|
69
|
-
position: position,
|
|
70
|
-
className: classNames('components-tooltip', className),
|
|
71
|
-
"aria-hidden": "true",
|
|
72
|
-
animate: false,
|
|
73
|
-
offset: offset,
|
|
74
|
-
anchor: anchor,
|
|
75
|
-
shift: true,
|
|
76
|
-
...props
|
|
77
|
-
}, text, createElement(Shortcut, {
|
|
78
|
-
className: "components-tooltip__shortcut",
|
|
79
|
-
shortcut: shortcut
|
|
80
|
-
})));
|
|
81
|
-
const emitToChild = (children, eventName, event) => {
|
|
82
|
-
if (Children.count(children) !== 1) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const child = Children.only(children);
|
|
86
|
-
|
|
87
|
-
// If the underlying element is disabled, do not emit the event.
|
|
88
|
-
if (child.props.disabled) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (typeof child.props[eventName] === 'function') {
|
|
92
|
-
child.props[eventName](event);
|
|
93
|
-
}
|
|
29
|
+
const CONTEXT_VALUE = {
|
|
30
|
+
isNestedInTooltip: true
|
|
94
31
|
};
|
|
95
|
-
function
|
|
32
|
+
function UnforwardedTooltip(props, ref) {
|
|
96
33
|
const {
|
|
97
34
|
children,
|
|
98
|
-
position = 'bottom middle',
|
|
99
|
-
text,
|
|
100
|
-
shortcut,
|
|
101
35
|
delay = TOOLTIP_DELAY,
|
|
102
|
-
|
|
36
|
+
hideOnClick = true,
|
|
37
|
+
placement,
|
|
38
|
+
position,
|
|
39
|
+
shortcut,
|
|
40
|
+
text,
|
|
41
|
+
...restProps
|
|
103
42
|
} = props;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const delayedSetIsOver = useDebounce(setIsOver, delay);
|
|
113
|
-
// Using internal state (instead of a ref) for the popover anchor to make sure
|
|
114
|
-
// that the component re-renders when the anchor updates.
|
|
115
|
-
const [popoverAnchor, setPopoverAnchor] = useState(null);
|
|
116
|
-
|
|
117
|
-
// Create a reference to the Tooltip's child, to be passed to the Popover
|
|
118
|
-
// so that the Tooltip can be correctly positioned. Also, merge with the
|
|
119
|
-
// existing ref for the first child, so that its ref is preserved.
|
|
120
|
-
const existingChildRef = Children.toArray(children)[0]?.ref;
|
|
121
|
-
const mergedChildRefs = useMergeRefs([setPopoverAnchor, existingChildRef]);
|
|
122
|
-
const createMouseDown = event => {
|
|
123
|
-
// In firefox, the mouse down event is also fired when the select
|
|
124
|
-
// list is chosen.
|
|
125
|
-
// Cancel further processing because re-rendering of child components
|
|
126
|
-
// causes onChange to be triggered with the old value.
|
|
127
|
-
// See https://github.com/WordPress/gutenberg/pull/42483
|
|
128
|
-
if (event.target.tagName === 'OPTION') {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Preserve original child callback behavior.
|
|
133
|
-
emitToChild(children, 'onMouseDown', event);
|
|
134
|
-
|
|
135
|
-
// On mouse down, the next `mouseup` should revert the value of the
|
|
136
|
-
// instance property and remove its own event handler. The bind is
|
|
137
|
-
// made on the document since the `mouseup` might not occur within
|
|
138
|
-
// the bounds of the element.
|
|
139
|
-
document.addEventListener('mouseup', cancelIsMouseDown);
|
|
140
|
-
setIsMouseDown(true);
|
|
141
|
-
};
|
|
142
|
-
const createMouseUp = event => {
|
|
143
|
-
// In firefox, the mouse up event is also fired when the select
|
|
144
|
-
// list is chosen.
|
|
145
|
-
// Cancel further processing because re-rendering of child components
|
|
146
|
-
// causes onChange to be triggered with the old value.
|
|
147
|
-
// See https://github.com/WordPress/gutenberg/pull/42483
|
|
148
|
-
if (event.target.tagName === 'OPTION') {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
emitToChild(children, 'onMouseUp', event);
|
|
152
|
-
document.removeEventListener('mouseup', cancelIsMouseDown);
|
|
153
|
-
setIsMouseDown(false);
|
|
154
|
-
};
|
|
155
|
-
const createMouseEvent = type => {
|
|
156
|
-
if (type === 'mouseUp') return createMouseUp;
|
|
157
|
-
if (type === 'mouseDown') return createMouseDown;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Prebound `isInMouseDown` handler, created as a constant reference to
|
|
162
|
-
* assure ability to remove in component unmount.
|
|
163
|
-
*
|
|
164
|
-
* @type {Function}
|
|
165
|
-
*/
|
|
166
|
-
const cancelIsMouseDown = createMouseEvent('mouseUp');
|
|
167
|
-
const createToggleIsOver = (eventName, isDelayed) => {
|
|
168
|
-
return event => {
|
|
169
|
-
// Preserve original child callback behavior.
|
|
170
|
-
emitToChild(children, eventName, event);
|
|
171
|
-
|
|
172
|
-
// Mouse events behave unreliably in React for disabled elements,
|
|
173
|
-
// firing on mouseenter but not mouseleave. Further, the default
|
|
174
|
-
// behavior for disabled elements in some browsers is to ignore
|
|
175
|
-
// mouse events. Don't bother trying to handle them.
|
|
176
|
-
//
|
|
177
|
-
// See: https://github.com/facebook/react/issues/4251
|
|
178
|
-
if (event.currentTarget.disabled) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// A focus event will occur as a result of a mouse click, but it
|
|
183
|
-
// should be disambiguated between interacting with the button and
|
|
184
|
-
// using an explicit focus shift as a cue to display the tooltip.
|
|
185
|
-
if ('focus' === event.type && isMouseDown) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// Needed in case unsetting is over while delayed set pending, i.e.
|
|
190
|
-
// quickly blur/mouseleave before delayedSetIsOver is called.
|
|
191
|
-
delayedSetIsOver.cancel();
|
|
192
|
-
const _isOver = ['focus', 'mouseenter'].includes(event.type);
|
|
193
|
-
if (_isOver === isOver) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
if (isDelayed) {
|
|
197
|
-
delayedSetIsOver(_isOver);
|
|
198
|
-
} else {
|
|
199
|
-
setIsOver(_isOver);
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
const clearOnUnmount = () => {
|
|
204
|
-
delayedSetIsOver.cancel();
|
|
205
|
-
document.removeEventListener('mouseup', cancelIsMouseDown);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
// Ignore reason: updating the deps array here could cause unexpected changes in behavior.
|
|
209
|
-
// Deferring until a more detailed investigation/refactor can be performed.
|
|
210
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
211
|
-
useEffect(() => clearOnUnmount, []);
|
|
212
|
-
if (Children.count(children) !== 1) {
|
|
43
|
+
const {
|
|
44
|
+
isNestedInTooltip
|
|
45
|
+
} = useContext(TooltipInternalContext);
|
|
46
|
+
const baseId = useInstanceId(Tooltip, 'tooltip');
|
|
47
|
+
const describedById = text || shortcut ? baseId : undefined;
|
|
48
|
+
const isOnlyChild = Children.count(children) === 1;
|
|
49
|
+
// console error if more than one child element is added
|
|
50
|
+
if (!isOnlyChild) {
|
|
213
51
|
if ('development' === process.env.NODE_ENV) {
|
|
214
52
|
// eslint-disable-next-line no-console
|
|
215
|
-
console.error('Tooltip should be called with only a single child element.');
|
|
53
|
+
console.error('wp-components.Tooltip should be called with only a single child element.');
|
|
216
54
|
}
|
|
217
|
-
return children;
|
|
218
55
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
grandchildren,
|
|
243
|
-
...popoverData,
|
|
244
|
-
...popoverProps
|
|
245
|
-
});
|
|
246
|
-
return getElementWithPopover({
|
|
247
|
-
child,
|
|
248
|
-
eventHandlers,
|
|
249
|
-
childrenWithPopover,
|
|
250
|
-
mergedRefs: mergedChildRefs
|
|
56
|
+
|
|
57
|
+
// Compute tooltip's placement:
|
|
58
|
+
// - give priority to `placement` prop, if defined
|
|
59
|
+
// - otherwise, compute it from the legacy `position` prop (if defined)
|
|
60
|
+
// - finally, fallback to the default placement: 'bottom'
|
|
61
|
+
let computedPlacement;
|
|
62
|
+
if (placement !== undefined) {
|
|
63
|
+
computedPlacement = placement;
|
|
64
|
+
} else if (position !== undefined) {
|
|
65
|
+
computedPlacement = positionToPlacement(position);
|
|
66
|
+
deprecated('`position` prop in wp.components.tooltip', {
|
|
67
|
+
since: '6.4',
|
|
68
|
+
alternative: '`placement` prop'
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
computedPlacement = computedPlacement || 'bottom';
|
|
72
|
+
|
|
73
|
+
// Removing the `Ariakit` namespace from the hook name allows ESLint to
|
|
74
|
+
// properly identify the hook, and apply the correct linting rules.
|
|
75
|
+
const useAriakitTooltipStore = Ariakit.useTooltipStore;
|
|
76
|
+
const tooltipStore = useAriakitTooltipStore({
|
|
77
|
+
placement: computedPlacement,
|
|
78
|
+
showTimeout: delay
|
|
251
79
|
});
|
|
80
|
+
if (isNestedInTooltip) {
|
|
81
|
+
return isOnlyChild ? createElement(Ariakit.Role, {
|
|
82
|
+
...restProps,
|
|
83
|
+
render: children
|
|
84
|
+
}) : children;
|
|
85
|
+
}
|
|
86
|
+
return createElement(TooltipInternalContext.Provider, {
|
|
87
|
+
value: CONTEXT_VALUE
|
|
88
|
+
}, createElement(Ariakit.TooltipAnchor, {
|
|
89
|
+
onClick: hideOnClick ? tooltipStore.hide : undefined,
|
|
90
|
+
store: tooltipStore,
|
|
91
|
+
render: isOnlyChild ? children : undefined,
|
|
92
|
+
ref: ref
|
|
93
|
+
}, isOnlyChild ? undefined : children), isOnlyChild && (text || shortcut) && createElement(Ariakit.Tooltip, {
|
|
94
|
+
...restProps,
|
|
95
|
+
className: "components-tooltip",
|
|
96
|
+
unmountOnHide: true,
|
|
97
|
+
gutter: 4,
|
|
98
|
+
id: describedById,
|
|
99
|
+
overflowPadding: 0.5,
|
|
100
|
+
store: tooltipStore
|
|
101
|
+
}, text, shortcut && createElement(Shortcut, {
|
|
102
|
+
className: text ? 'components-tooltip__shortcut' : '',
|
|
103
|
+
shortcut: shortcut
|
|
104
|
+
})));
|
|
252
105
|
}
|
|
106
|
+
export const Tooltip = forwardRef(UnforwardedTooltip);
|
|
253
107
|
export default Tooltip;
|
|
254
108
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["classNames","Children","cloneElement","concatChildren","useEffect","useState","useDebounce","useMergeRefs","Popover","Shortcut","TOOLTIP_DELAY","eventCatcher","createElement","className","getDisabledElement","eventHandlers","child","childrenWithPopover","mergedRefs","children","ref","getRegularElement","addPopoverToGrandchildren","anchor","grandchildren","isOver","offset","position","shortcut","text","props","focusOnMount","animate","shift","emitToChild","eventName","event","count","only","disabled","Tooltip","delay","popoverProps","isMouseDown","setIsMouseDown","setIsOver","delayedSetIsOver","popoverAnchor","setPopoverAnchor","existingChildRef","toArray","mergedChildRefs","createMouseDown","target","tagName","document","addEventListener","cancelIsMouseDown","createMouseUp","removeEventListener","createMouseEvent","type","createToggleIsOver","isDelayed","currentTarget","cancel","_isOver","includes","clearOnUnmount","process","env","NODE_ENV","console","error","onMouseEnter","onMouseLeave","onClick","onFocus","onBlur","onMouseDown","getElementWithPopover","popoverData"],"sources":["@wordpress/components/src/tooltip/index.js"],"sourcesContent":["// @ts-nocheck\n\n/**\n * External dependencies\n */\nimport classNames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tChildren,\n\tcloneElement,\n\tconcatChildren,\n\tuseEffect,\n\tuseState,\n} from '@wordpress/element';\nimport { useDebounce, useMergeRefs } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport Popover from '../popover';\nimport Shortcut from '../shortcut';\n\n/**\n * Time over children to wait before showing tooltip\n *\n * @type {number}\n */\nexport const TOOLTIP_DELAY = 700;\n\nconst eventCatcher = <div className=\"event-catcher\" />;\n\nconst getDisabledElement = ( {\n\teventHandlers,\n\tchild,\n\tchildrenWithPopover,\n\tmergedRefs,\n} ) => {\n\treturn cloneElement(\n\t\t<span className=\"disabled-element-wrapper\">\n\t\t\t{ cloneElement( eventCatcher, eventHandlers ) }\n\t\t\t{ cloneElement( child, {\n\t\t\t\tchildren: childrenWithPopover,\n\t\t\t\tref: mergedRefs,\n\t\t\t} ) }\n\t\t</span>,\n\t\t{ ...eventHandlers }\n\t);\n};\n\nconst getRegularElement = ( {\n\tchild,\n\teventHandlers,\n\tchildrenWithPopover,\n\tmergedRefs,\n} ) => {\n\treturn cloneElement( child, {\n\t\t...eventHandlers,\n\t\tchildren: childrenWithPopover,\n\t\tref: mergedRefs,\n\t} );\n};\n\nconst addPopoverToGrandchildren = ( {\n\tanchor,\n\tgrandchildren,\n\tisOver,\n\toffset,\n\tposition,\n\tshortcut,\n\ttext,\n\tclassName,\n\t...props\n} ) =>\n\tconcatChildren(\n\t\tgrandchildren,\n\t\tisOver && (\n\t\t\t<Popover\n\t\t\t\tfocusOnMount={ false }\n\t\t\t\tposition={ position }\n\t\t\t\tclassName={ classNames( 'components-tooltip', className ) }\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tanimate={ false }\n\t\t\t\toffset={ offset }\n\t\t\t\tanchor={ anchor }\n\t\t\t\tshift\n\t\t\t\t{ ...props }\n\t\t\t>\n\t\t\t\t{ text }\n\t\t\t\t<Shortcut\n\t\t\t\t\tclassName=\"components-tooltip__shortcut\"\n\t\t\t\t\tshortcut={ shortcut }\n\t\t\t\t/>\n\t\t\t</Popover>\n\t\t)\n\t);\n\nconst emitToChild = ( children, eventName, event ) => {\n\tif ( Children.count( children ) !== 1 ) {\n\t\treturn;\n\t}\n\n\tconst child = Children.only( children );\n\n\t// If the underlying element is disabled, do not emit the event.\n\tif ( child.props.disabled ) {\n\t\treturn;\n\t}\n\n\tif ( typeof child.props[ eventName ] === 'function' ) {\n\t\tchild.props[ eventName ]( event );\n\t}\n};\n\nfunction Tooltip( props ) {\n\tconst {\n\t\tchildren,\n\t\tposition = 'bottom middle',\n\t\ttext,\n\t\tshortcut,\n\t\tdelay = TOOLTIP_DELAY,\n\t\t...popoverProps\n\t} = props;\n\t/**\n\t * Whether a mouse is currently pressed, used in determining whether\n\t * to handle a focus event as displaying the tooltip immediately.\n\t *\n\t * @type {boolean}\n\t */\n\tconst [ isMouseDown, setIsMouseDown ] = useState( false );\n\tconst [ isOver, setIsOver ] = useState( false );\n\tconst delayedSetIsOver = useDebounce( setIsOver, delay );\n\t// Using internal state (instead of a ref) for the popover anchor to make sure\n\t// that the component re-renders when the anchor updates.\n\tconst [ popoverAnchor, setPopoverAnchor ] = useState( null );\n\n\t// Create a reference to the Tooltip's child, to be passed to the Popover\n\t// so that the Tooltip can be correctly positioned. Also, merge with the\n\t// existing ref for the first child, so that its ref is preserved.\n\tconst existingChildRef = Children.toArray( children )[ 0 ]?.ref;\n\tconst mergedChildRefs = useMergeRefs( [\n\t\tsetPopoverAnchor,\n\t\texistingChildRef,\n\t] );\n\n\tconst createMouseDown = ( event ) => {\n\t\t// In firefox, the mouse down event is also fired when the select\n\t\t// list is chosen.\n\t\t// Cancel further processing because re-rendering of child components\n\t\t// causes onChange to be triggered with the old value.\n\t\t// See https://github.com/WordPress/gutenberg/pull/42483\n\t\tif ( event.target.tagName === 'OPTION' ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Preserve original child callback behavior.\n\t\temitToChild( children, 'onMouseDown', event );\n\n\t\t// On mouse down, the next `mouseup` should revert the value of the\n\t\t// instance property and remove its own event handler. The bind is\n\t\t// made on the document since the `mouseup` might not occur within\n\t\t// the bounds of the element.\n\t\tdocument.addEventListener( 'mouseup', cancelIsMouseDown );\n\t\tsetIsMouseDown( true );\n\t};\n\n\tconst createMouseUp = ( event ) => {\n\t\t// In firefox, the mouse up event is also fired when the select\n\t\t// list is chosen.\n\t\t// Cancel further processing because re-rendering of child components\n\t\t// causes onChange to be triggered with the old value.\n\t\t// See https://github.com/WordPress/gutenberg/pull/42483\n\t\tif ( event.target.tagName === 'OPTION' ) {\n\t\t\treturn;\n\t\t}\n\n\t\temitToChild( children, 'onMouseUp', event );\n\t\tdocument.removeEventListener( 'mouseup', cancelIsMouseDown );\n\t\tsetIsMouseDown( false );\n\t};\n\n\tconst createMouseEvent = ( type ) => {\n\t\tif ( type === 'mouseUp' ) return createMouseUp;\n\t\tif ( type === 'mouseDown' ) return createMouseDown;\n\t};\n\n\t/**\n\t * Prebound `isInMouseDown` handler, created as a constant reference to\n\t * assure ability to remove in component unmount.\n\t *\n\t * @type {Function}\n\t */\n\tconst cancelIsMouseDown = createMouseEvent( 'mouseUp' );\n\n\tconst createToggleIsOver = ( eventName, isDelayed ) => {\n\t\treturn ( event ) => {\n\t\t\t// Preserve original child callback behavior.\n\t\t\temitToChild( children, eventName, event );\n\n\t\t\t// Mouse events behave unreliably in React for disabled elements,\n\t\t\t// firing on mouseenter but not mouseleave. Further, the default\n\t\t\t// behavior for disabled elements in some browsers is to ignore\n\t\t\t// mouse events. Don't bother trying to handle them.\n\t\t\t//\n\t\t\t// See: https://github.com/facebook/react/issues/4251\n\t\t\tif ( event.currentTarget.disabled ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// A focus event will occur as a result of a mouse click, but it\n\t\t\t// should be disambiguated between interacting with the button and\n\t\t\t// using an explicit focus shift as a cue to display the tooltip.\n\t\t\tif ( 'focus' === event.type && isMouseDown ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Needed in case unsetting is over while delayed set pending, i.e.\n\t\t\t// quickly blur/mouseleave before delayedSetIsOver is called.\n\t\t\tdelayedSetIsOver.cancel();\n\n\t\t\tconst _isOver = [ 'focus', 'mouseenter' ].includes( event.type );\n\t\t\tif ( _isOver === isOver ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( isDelayed ) {\n\t\t\t\tdelayedSetIsOver( _isOver );\n\t\t\t} else {\n\t\t\t\tsetIsOver( _isOver );\n\t\t\t}\n\t\t};\n\t};\n\tconst clearOnUnmount = () => {\n\t\tdelayedSetIsOver.cancel();\n\t\tdocument.removeEventListener( 'mouseup', cancelIsMouseDown );\n\t};\n\n\t// Ignore reason: updating the deps array here could cause unexpected changes in behavior.\n\t// Deferring until a more detailed investigation/refactor can be performed.\n\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\tuseEffect( () => clearOnUnmount, [] );\n\n\tif ( Children.count( children ) !== 1 ) {\n\t\tif ( 'development' === process.env.NODE_ENV ) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.error(\n\t\t\t\t'Tooltip should be called with only a single child element.'\n\t\t\t);\n\t\t}\n\n\t\treturn children;\n\t}\n\n\tconst eventHandlers = {\n\t\tonMouseEnter: createToggleIsOver( 'onMouseEnter', true ),\n\t\tonMouseLeave: createToggleIsOver( 'onMouseLeave' ),\n\t\tonClick: createToggleIsOver( 'onClick' ),\n\t\tonFocus: createToggleIsOver( 'onFocus' ),\n\t\tonBlur: createToggleIsOver( 'onBlur' ),\n\t\tonMouseDown: createMouseEvent( 'mouseDown' ),\n\t};\n\n\tconst child = Children.only( children );\n\tconst { children: grandchildren, disabled } = child.props;\n\tconst getElementWithPopover = disabled\n\t\t? getDisabledElement\n\t\t: getRegularElement;\n\n\tconst popoverData = {\n\t\tanchor: popoverAnchor,\n\t\tisOver,\n\t\toffset: 4,\n\t\tposition,\n\t\tshortcut,\n\t\ttext,\n\t};\n\tconst childrenWithPopover = addPopoverToGrandchildren( {\n\t\tgrandchildren,\n\t\t...popoverData,\n\t\t...popoverProps,\n\t} );\n\n\treturn getElementWithPopover( {\n\t\tchild,\n\t\teventHandlers,\n\t\tchildrenWithPopover,\n\t\tmergedRefs: mergedChildRefs,\n\t} );\n}\n\nexport default Tooltip;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"names":["Ariakit","useInstanceId","Children","useContext","createContext","forwardRef","deprecated","Shortcut","positionToPlacement","TooltipInternalContext","isNestedInTooltip","TOOLTIP_DELAY","CONTEXT_VALUE","UnforwardedTooltip","props","ref","children","delay","hideOnClick","placement","position","shortcut","text","restProps","baseId","Tooltip","describedById","undefined","isOnlyChild","count","process","env","NODE_ENV","console","error","computedPlacement","since","alternative","useAriakitTooltipStore","useTooltipStore","tooltipStore","showTimeout","createElement","Role","render","Provider","value","TooltipAnchor","onClick","hide","store","className","unmountOnHide","gutter","id","overflowPadding"],"sources":["@wordpress/components/src/tooltip/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\n// eslint-disable-next-line no-restricted-imports\nimport * as Ariakit from '@ariakit/react';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId } from '@wordpress/compose';\nimport {\n\tChildren,\n\tuseContext,\n\tcreateContext,\n\tforwardRef,\n} from '@wordpress/element';\nimport deprecated from '@wordpress/deprecated';\n\n/**\n * Internal dependencies\n */\nimport type {\n\tTooltipProps,\n\tTooltipInternalContext as TooltipInternalContextType,\n} from './types';\nimport Shortcut from '../shortcut';\nimport { positionToPlacement } from '../popover/utils';\n\nconst TooltipInternalContext = createContext< TooltipInternalContextType >( {\n\tisNestedInTooltip: false,\n} );\n\n/**\n * Time over anchor to wait before showing tooltip\n */\nexport const TOOLTIP_DELAY = 700;\n\nconst CONTEXT_VALUE = {\n\tisNestedInTooltip: true,\n};\n\nfunction UnforwardedTooltip(\n\tprops: TooltipProps,\n\tref: React.ForwardedRef< any >\n) {\n\tconst {\n\t\tchildren,\n\t\tdelay = TOOLTIP_DELAY,\n\t\thideOnClick = true,\n\t\tplacement,\n\t\tposition,\n\t\tshortcut,\n\t\ttext,\n\n\t\t...restProps\n\t} = props;\n\n\tconst { isNestedInTooltip } = useContext( TooltipInternalContext );\n\n\tconst baseId = useInstanceId( Tooltip, 'tooltip' );\n\tconst describedById = text || shortcut ? baseId : undefined;\n\n\tconst isOnlyChild = Children.count( children ) === 1;\n\t// console error if more than one child element is added\n\tif ( ! isOnlyChild ) {\n\t\tif ( 'development' === process.env.NODE_ENV ) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.error(\n\t\t\t\t'wp-components.Tooltip should be called with only a single child element.'\n\t\t\t);\n\t\t}\n\t}\n\n\t// Compute tooltip's placement:\n\t// - give priority to `placement` prop, if defined\n\t// - otherwise, compute it from the legacy `position` prop (if defined)\n\t// - finally, fallback to the default placement: 'bottom'\n\tlet computedPlacement;\n\tif ( placement !== undefined ) {\n\t\tcomputedPlacement = placement;\n\t} else if ( position !== undefined ) {\n\t\tcomputedPlacement = positionToPlacement( position );\n\t\tdeprecated( '`position` prop in wp.components.tooltip', {\n\t\t\tsince: '6.4',\n\t\t\talternative: '`placement` prop',\n\t\t} );\n\t}\n\tcomputedPlacement = computedPlacement || 'bottom';\n\n\t// Removing the `Ariakit` namespace from the hook name allows ESLint to\n\t// properly identify the hook, and apply the correct linting rules.\n\tconst useAriakitTooltipStore = Ariakit.useTooltipStore;\n\tconst tooltipStore = useAriakitTooltipStore( {\n\t\tplacement: computedPlacement,\n\t\tshowTimeout: delay,\n\t} );\n\n\tif ( isNestedInTooltip ) {\n\t\treturn isOnlyChild ? (\n\t\t\t<Ariakit.Role { ...restProps } render={ children } />\n\t\t) : (\n\t\t\tchildren\n\t\t);\n\t}\n\n\treturn (\n\t\t<TooltipInternalContext.Provider value={ CONTEXT_VALUE }>\n\t\t\t<Ariakit.TooltipAnchor\n\t\t\t\tonClick={ hideOnClick ? tooltipStore.hide : undefined }\n\t\t\t\tstore={ tooltipStore }\n\t\t\t\trender={ isOnlyChild ? children : undefined }\n\t\t\t\tref={ ref }\n\t\t\t>\n\t\t\t\t{ isOnlyChild ? undefined : children }\n\t\t\t</Ariakit.TooltipAnchor>\n\t\t\t{ isOnlyChild && ( text || shortcut ) && (\n\t\t\t\t<Ariakit.Tooltip\n\t\t\t\t\t{ ...restProps }\n\t\t\t\t\tclassName=\"components-tooltip\"\n\t\t\t\t\tunmountOnHide\n\t\t\t\t\tgutter={ 4 }\n\t\t\t\t\tid={ describedById }\n\t\t\t\t\toverflowPadding={ 0.5 }\n\t\t\t\t\tstore={ tooltipStore }\n\t\t\t\t>\n\t\t\t\t\t{ text }\n\t\t\t\t\t{ shortcut && (\n\t\t\t\t\t\t<Shortcut\n\t\t\t\t\t\t\tclassName={\n\t\t\t\t\t\t\t\ttext ? 'components-tooltip__shortcut' : ''\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tshortcut={ shortcut }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</Ariakit.Tooltip>\n\t\t\t) }\n\t\t</TooltipInternalContext.Provider>\n\t);\n}\n\nexport const Tooltip = forwardRef( UnforwardedTooltip );\n\nexport default Tooltip;\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["@wordpress/components/src/tooltip/types.ts"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { Placement } from '@floating-ui/react-dom';\n\n/**\n * Internal dependencies\n */\nimport type { PopoverProps } from '../popover/types';\nimport type { ShortcutProps } from '../shortcut/types';\n\nexport type TooltipProps = {\n\t/**\n\t * The anchor for the tooltip.\n\t *\n\t * **Note**: Accepts only one child element.\n\t */\n\tchildren: React.ReactElement;\n\t/**\n\t * Option to hide the tooltip when the anchor is clicked.\n\t *\n\t * @default true\n\t */\n\thideOnClick?: boolean;\n\t/**\n\t * The amount of time in milliseconds to wait before showing the tooltip.\n\t *\n\t * @default 700\n\t */\n\tdelay?: number;\n\t/**\n\t * Where the tooltip should be positioned relative to its parent.\n\t *\n\t * @default bottom\n\t */\n\tplacement?: Placement;\n\t/**\n\t * _Note: this prop is deprecated. Please use the `placement` prop instead._\n\t *\n\t * Legacy way of specifying the tooltip's position relative to its parent.\n\t *\n\t * Specify y- and x-axis as a space-separated string. Supports `\"top\"`,\n\t * `\"bottom\"` y axis, and `\"left\"`, `\"center\"`, `\"right\"` x axis.\n\t *\n\t * @deprecated\n\t * @default bottom\n\t */\n\tposition?: PopoverProps[ 'position' ];\n\t/**\n\t * An option for adding accessible keyboard shortcuts.\n\t *\n\t * If shortcut is a string, it is expecting the display text. If shortcut is an\n\t * object, it will accept the properties of `display` (string) and `ariaLabel`\n\t * (string).\n\t */\n\tshortcut?: ShortcutProps[ 'shortcut' ];\n\t/**\n\t * The text shown in the tooltip when anchor element is focused or hovered.\n\t */\n\ttext?: string;\n};\n\nexport type TooltipInternalContext = {\n\tisNestedInTooltip: boolean;\n};\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","TreeGridItem","UnforwardedTreeGridCell","children","withoutGridItem","props","ref","createElement","role","Fragment","TreeGridCell"],"sources":["@wordpress/components/src/tree-grid/cell.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport TreeGridItem from './item';\nimport type { WordPressComponentProps } from '../
|
|
1
|
+
{"version":3,"names":["forwardRef","TreeGridItem","UnforwardedTreeGridCell","children","withoutGridItem","props","ref","createElement","role","Fragment","TreeGridCell"],"sources":["@wordpress/components/src/tree-grid/cell.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport TreeGridItem from './item';\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridCellProps } from './types';\n\nfunction UnforwardedTreeGridCell(\n\t{\n\t\tchildren,\n\t\twithoutGridItem = false,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridCellProps, 'td', false >,\n\tref: React.ForwardedRef< any >\n) {\n\treturn (\n\t\t<td { ...props } role=\"gridcell\">\n\t\t\t{ withoutGridItem ? (\n\t\t\t\t<>{ children }</>\n\t\t\t) : (\n\t\t\t\t<TreeGridItem ref={ ref }>{ children }</TreeGridItem>\n\t\t\t) }\n\t\t</td>\n\t);\n}\n\n/**\n * `TreeGridCell` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridCell = forwardRef( UnforwardedTreeGridCell );\n\nexport default TreeGridCell;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;AACA,OAAOC,YAAY,MAAM,QAAQ;AAIjC,SAASC,uBAAuBA,CAC/B;EACCC,QAAQ;EACRC,eAAe,GAAG,KAAK;EACvB,GAAGC;AACuD,CAAC,EAC5DC,GAA8B,EAC7B;EACD,OACCC,aAAA;IAAA,GAASF,KAAK;IAAGG,IAAI,EAAC;EAAU,GAC7BJ,eAAe,GAChBG,aAAA,CAAAE,QAAA,QAAIN,QAAY,CAAC,GAEjBI,aAAA,CAACN,YAAY;IAACK,GAAG,EAAGA;EAAK,GAAGH,QAAwB,CAElD,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMO,YAAY,GAAGV,UAAU,CAAEE,uBAAwB,CAAC;AAEjE,eAAeQ,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["focus","forwardRef","useCallback","UP","DOWN","LEFT","RIGHT","HOME","END","RovingTabIndexContainer","getRowFocusables","rowElement","focusablesInRow","focusable","find","sequential","filter","closest","UnforwardedTreeGrid","children","onExpandRow","onCollapseRow","onFocusRow","applicationAriaLabel","props","ref","onKeyDown","event","keyCode","metaKey","ctrlKey","altKey","hasModifierKeyPressed","includes","stopPropagation","activeElement","document","currentTarget","treeGridElement","contains","activeRow","currentColumnIndex","indexOf","canExpandCollapse","cannotFocusNextColumn","getAttribute","nextIndex","Math","max","min","length","_activeRow$getAttribu","preventDefault","level","parseInt","rows","Array","from","querySelectorAll","parentRow","currentRowIndex","i","ariaLevel","focusableItems","nextRowIndex","focusablesInNextRow","createElement","role","TreeGrid","default","TreeGridRow","TreeGridCell","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport type { TreeGridProps } from './types';\nimport type { WordPressComponentProps } from '../ui/context';\n\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables( rowElement: HTMLElement ) {\n\tconst focusablesInRow = focus.focusable.find( rowElement, {\n\t\tsequential: true,\n\t} );\n\n\treturn focusablesInRow.filter( ( focusable ) => {\n\t\treturn focusable.closest( '[role=\"row\"]' ) === rowElement;\n\t} );\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid(\n\t{\n\t\tchildren,\n\t\tonExpandRow = () => {},\n\t\tonCollapseRow = () => {},\n\t\tonFocusRow = () => {},\n\t\tapplicationAriaLabel,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridProps, 'table', false >,\n\t/** A ref to the underlying DOM table element. */\n\tref: React.ForwardedRef< HTMLTableElement >\n) {\n\tconst onKeyDown = useCallback(\n\t\t( event: React.KeyboardEvent< HTMLTableElement > ) => {\n\t\t\tconst { keyCode, metaKey, ctrlKey, altKey } = event;\n\n\t\t\t// The shift key is intentionally absent from the following list,\n\t\t\t// to enable shift + up/down to select items from the list.\n\t\t\tconst hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n\n\t\t\tif (\n\t\t\t\thasModifierKeyPressed ||\n\t\t\t\t! ( [ UP, DOWN, LEFT, RIGHT, HOME, END ] as number[] ).includes(\n\t\t\t\t\tkeyCode\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The event will be handled, stop propagation.\n\t\t\tevent.stopPropagation();\n\n\t\t\tconst { activeElement } = document;\n\t\t\tconst { currentTarget: treeGridElement } = event;\n\n\t\t\tif (\n\t\t\t\t! activeElement ||\n\t\t\t\t! treeGridElement.contains( activeElement )\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Calculate the columnIndex of the active element.\n\t\t\tconst activeRow =\n\t\t\t\tactiveElement.closest< HTMLElement >( '[role=\"row\"]' );\n\n\t\t\tif ( ! activeRow ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst focusablesInRow = getRowFocusables( activeRow );\n\t\t\tconst currentColumnIndex = focusablesInRow.indexOf(\n\t\t\t\tactiveElement as HTMLElement\n\t\t\t);\n\t\t\tconst canExpandCollapse = 0 === currentColumnIndex;\n\t\t\tconst cannotFocusNextColumn =\n\t\t\t\tcanExpandCollapse &&\n\t\t\t\t( activeRow.getAttribute( 'data-expanded' ) === 'false' ||\n\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'false' ) &&\n\t\t\t\tkeyCode === RIGHT;\n\n\t\t\tif ( ( [ LEFT, RIGHT ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate to the next element.\n\t\t\t\tlet nextIndex;\n\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\tnextIndex = Math.max( 0, currentColumnIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextIndex = Math.min(\n\t\t\t\t\t\tcurrentColumnIndex + 1,\n\t\t\t\t\t\tfocusablesInRow.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is at the left most column.\n\t\t\t\tif ( canExpandCollapse ) {\n\t\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\t\t// Left:\n\t\t\t\t\t\t// If a row is focused, and it is expanded, collapses the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'true' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'true'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonCollapseRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n\t\t\t\t\t\tconst level = Math.max(\n\t\t\t\t\t\t\tparseInt(\n\t\t\t\t\t\t\t\tactiveRow?.getAttribute( 'aria-level' ) ?? '1',\n\t\t\t\t\t\t\t\t10\n\t\t\t\t\t\t\t) - 1,\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst rows = Array.from(\n\t\t\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tlet parentRow = activeRow;\n\t\t\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\t\t\tfor ( let i = currentRowIndex; i >= 0; i-- ) {\n\t\t\t\t\t\t\tconst ariaLevel =\n\t\t\t\t\t\t\t\trows[ i ].getAttribute( 'aria-level' );\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tariaLevel !== null &&\n\t\t\t\t\t\t\t\tparseInt( ariaLevel, 10 ) === level\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tparentRow = rows[ i ];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetRowFocusables( parentRow )?.[ 0 ]?.focus();\n\t\t\t\t\t}\n\t\t\t\t\tif ( keyCode === RIGHT ) {\n\t\t\t\t\t\t// Right:\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, expands the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'false' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) ===\n\t\t\t\t\t\t\t\t'false'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonExpandRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is expanded, focuses the next cell in the row.\n\t\t\t\t\t\tconst focusableItems = getRowFocusables( activeRow );\n\t\t\t\t\t\tif ( focusableItems.length > 0 ) {\n\t\t\t\t\t\t\tfocusableItems[ nextIndex ]?.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start reading text on continued use of left/right arrow\n\t\t\t\t\t// keys.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n\t\t\t\tif ( cannotFocusNextColumn ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfocusablesInRow[ nextIndex ].focus();\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ UP, DOWN ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === UP ) {\n\t\t\t\t\tnextRowIndex = Math.max( 0, currentRowIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = Math.min(\n\t\t\t\t\t\tcurrentRowIndex + 1,\n\t\t\t\t\t\trows.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ HOME, END ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === HOME ) {\n\t\t\t\t\tnextRowIndex = 0;\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = rows.length - 1;\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t[ onExpandRow, onCollapseRow, onFocusRow ]\n\t);\n\n\t/* Disable reason: A treegrid is implemented using a table element. */\n\t/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n\treturn (\n\t\t<RovingTabIndexContainer>\n\t\t\t{\n\t\t\t\t// Prevent browser mode from triggering in NVDA by wrapping List View\n\t\t\t\t// in a role=application wrapper.\n\t\t\t\t// see: https://github.com/WordPress/gutenberg/issues/43729\n\t\t\t }\n\t\t\t<div role=\"application\" aria-label={ applicationAriaLabel }>\n\t\t\t\t<table\n\t\t\t\t\t{ ...props }\n\t\t\t\t\trole=\"treegrid\"\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t\tref={ ref }\n\t\t\t\t>\n\t\t\t\t\t<tbody>{ children }</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t</RovingTabIndexContainer>\n\t);\n\t/* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef( UnforwardedTreeGrid );\n\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"names":["focus","forwardRef","useCallback","UP","DOWN","LEFT","RIGHT","HOME","END","RovingTabIndexContainer","getRowFocusables","rowElement","focusablesInRow","focusable","find","sequential","filter","closest","UnforwardedTreeGrid","children","onExpandRow","onCollapseRow","onFocusRow","applicationAriaLabel","props","ref","onKeyDown","event","keyCode","metaKey","ctrlKey","altKey","hasModifierKeyPressed","includes","stopPropagation","activeElement","document","currentTarget","treeGridElement","contains","activeRow","currentColumnIndex","indexOf","canExpandCollapse","cannotFocusNextColumn","getAttribute","nextIndex","Math","max","min","length","_activeRow$getAttribu","preventDefault","level","parseInt","rows","Array","from","querySelectorAll","parentRow","currentRowIndex","i","ariaLevel","focusableItems","nextRowIndex","focusablesInNextRow","createElement","role","TreeGrid","default","TreeGridRow","TreeGridCell","TreeGridItem"],"sources":["@wordpress/components/src/tree-grid/index.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { forwardRef, useCallback } from '@wordpress/element';\nimport { UP, DOWN, LEFT, RIGHT, HOME, END } from '@wordpress/keycodes';\n\n/**\n * Internal dependencies\n */\nimport RovingTabIndexContainer from './roving-tab-index';\nimport type { TreeGridProps } from './types';\nimport type { WordPressComponentProps } from '../context';\n\n/**\n * Return focusables in a row element, excluding those from other branches\n * nested within the row.\n *\n * @param rowElement The DOM element representing the row.\n *\n * @return The array of focusables in the row.\n */\nfunction getRowFocusables( rowElement: HTMLElement ) {\n\tconst focusablesInRow = focus.focusable.find( rowElement, {\n\t\tsequential: true,\n\t} );\n\n\treturn focusablesInRow.filter( ( focusable ) => {\n\t\treturn focusable.closest( '[role=\"row\"]' ) === rowElement;\n\t} );\n}\n\n/**\n * Renders both a table and tbody element, used to create a tree hierarchy.\n *\n */\nfunction UnforwardedTreeGrid(\n\t{\n\t\tchildren,\n\t\tonExpandRow = () => {},\n\t\tonCollapseRow = () => {},\n\t\tonFocusRow = () => {},\n\t\tapplicationAriaLabel,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridProps, 'table', false >,\n\t/** A ref to the underlying DOM table element. */\n\tref: React.ForwardedRef< HTMLTableElement >\n) {\n\tconst onKeyDown = useCallback(\n\t\t( event: React.KeyboardEvent< HTMLTableElement > ) => {\n\t\t\tconst { keyCode, metaKey, ctrlKey, altKey } = event;\n\n\t\t\t// The shift key is intentionally absent from the following list,\n\t\t\t// to enable shift + up/down to select items from the list.\n\t\t\tconst hasModifierKeyPressed = metaKey || ctrlKey || altKey;\n\n\t\t\tif (\n\t\t\t\thasModifierKeyPressed ||\n\t\t\t\t! ( [ UP, DOWN, LEFT, RIGHT, HOME, END ] as number[] ).includes(\n\t\t\t\t\tkeyCode\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// The event will be handled, stop propagation.\n\t\t\tevent.stopPropagation();\n\n\t\t\tconst { activeElement } = document;\n\t\t\tconst { currentTarget: treeGridElement } = event;\n\n\t\t\tif (\n\t\t\t\t! activeElement ||\n\t\t\t\t! treeGridElement.contains( activeElement )\n\t\t\t) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Calculate the columnIndex of the active element.\n\t\t\tconst activeRow =\n\t\t\t\tactiveElement.closest< HTMLElement >( '[role=\"row\"]' );\n\n\t\t\tif ( ! activeRow ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst focusablesInRow = getRowFocusables( activeRow );\n\t\t\tconst currentColumnIndex = focusablesInRow.indexOf(\n\t\t\t\tactiveElement as HTMLElement\n\t\t\t);\n\t\t\tconst canExpandCollapse = 0 === currentColumnIndex;\n\t\t\tconst cannotFocusNextColumn =\n\t\t\t\tcanExpandCollapse &&\n\t\t\t\t( activeRow.getAttribute( 'data-expanded' ) === 'false' ||\n\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'false' ) &&\n\t\t\t\tkeyCode === RIGHT;\n\n\t\t\tif ( ( [ LEFT, RIGHT ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate to the next element.\n\t\t\t\tlet nextIndex;\n\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\tnextIndex = Math.max( 0, currentColumnIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextIndex = Math.min(\n\t\t\t\t\t\tcurrentColumnIndex + 1,\n\t\t\t\t\t\tfocusablesInRow.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is at the left most column.\n\t\t\t\tif ( canExpandCollapse ) {\n\t\t\t\t\tif ( keyCode === LEFT ) {\n\t\t\t\t\t\t// Left:\n\t\t\t\t\t\t// If a row is focused, and it is expanded, collapses the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'true' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) === 'true'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonCollapseRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, moves to the parent row (if there is one).\n\t\t\t\t\t\tconst level = Math.max(\n\t\t\t\t\t\t\tparseInt(\n\t\t\t\t\t\t\t\tactiveRow?.getAttribute( 'aria-level' ) ?? '1',\n\t\t\t\t\t\t\t\t10\n\t\t\t\t\t\t\t) - 1,\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst rows = Array.from(\n\t\t\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tlet parentRow = activeRow;\n\t\t\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\t\t\tfor ( let i = currentRowIndex; i >= 0; i-- ) {\n\t\t\t\t\t\t\tconst ariaLevel =\n\t\t\t\t\t\t\t\trows[ i ].getAttribute( 'aria-level' );\n\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tariaLevel !== null &&\n\t\t\t\t\t\t\t\tparseInt( ariaLevel, 10 ) === level\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tparentRow = rows[ i ];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgetRowFocusables( parentRow )?.[ 0 ]?.focus();\n\t\t\t\t\t}\n\t\t\t\t\tif ( keyCode === RIGHT ) {\n\t\t\t\t\t\t// Right:\n\t\t\t\t\t\t// If a row is focused, and it is collapsed, expands the current row.\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'data-expanded' ) ===\n\t\t\t\t\t\t\t\t'false' ||\n\t\t\t\t\t\t\tactiveRow.getAttribute( 'aria-expanded' ) ===\n\t\t\t\t\t\t\t\t'false'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tonExpandRow( activeRow );\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If a row is focused, and it is expanded, focuses the next cell in the row.\n\t\t\t\t\t\tconst focusableItems = getRowFocusables( activeRow );\n\t\t\t\t\t\tif ( focusableItems.length > 0 ) {\n\t\t\t\t\t\t\tfocusableItems[ nextIndex ]?.focus();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start reading text on continued use of left/right arrow\n\t\t\t\t\t// keys.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.\n\t\t\t\tif ( cannotFocusNextColumn ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfocusablesInRow[ nextIndex ].focus();\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ UP, DOWN ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === UP ) {\n\t\t\t\t\tnextRowIndex = Math.max( 0, currentRowIndex - 1 );\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = Math.min(\n\t\t\t\t\t\tcurrentRowIndex + 1,\n\t\t\t\t\t\trows.length - 1\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t} else if ( ( [ HOME, END ] as number[] ).includes( keyCode ) ) {\n\t\t\t\t// Calculate the rowIndex of the next row.\n\t\t\t\tconst rows = Array.from(\n\t\t\t\t\ttreeGridElement.querySelectorAll< HTMLElement >(\n\t\t\t\t\t\t'[role=\"row\"]'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\tconst currentRowIndex = rows.indexOf( activeRow );\n\t\t\t\tlet nextRowIndex;\n\n\t\t\t\tif ( keyCode === HOME ) {\n\t\t\t\t\tnextRowIndex = 0;\n\t\t\t\t} else {\n\t\t\t\t\tnextRowIndex = rows.length - 1;\n\t\t\t\t}\n\n\t\t\t\t// Focus is either at the top or bottom edge of the grid. Do nothing.\n\t\t\t\tif ( nextRowIndex === currentRowIndex ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will start navigating horizontally when reaching the vertical\n\t\t\t\t\t// bounds of a table.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Get the focusables in the next row.\n\t\t\t\tconst focusablesInNextRow = getRowFocusables(\n\t\t\t\t\trows[ nextRowIndex ]\n\t\t\t\t);\n\n\t\t\t\t// If for some reason there are no focusables in the next row, do nothing.\n\t\t\t\tif ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {\n\t\t\t\t\t// Prevent key use for anything else. For example, Voiceover\n\t\t\t\t\t// will still focus text when using arrow keys, while this\n\t\t\t\t\t// component should limit navigation to focusables.\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Try to focus the element in the next row that's at a similar column to the activeElement.\n\t\t\t\tconst nextIndex = Math.min(\n\t\t\t\t\tcurrentColumnIndex,\n\t\t\t\t\tfocusablesInNextRow.length - 1\n\t\t\t\t);\n\t\t\t\tfocusablesInNextRow[ nextIndex ].focus();\n\n\t\t\t\t// Let consumers know the row that was originally focused,\n\t\t\t\t// and the row that is now in focus.\n\t\t\t\tonFocusRow( event, activeRow, rows[ nextRowIndex ] );\n\n\t\t\t\t// Prevent key use for anything else. This ensures Voiceover\n\t\t\t\t// doesn't try to handle key navigation.\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\t\t[ onExpandRow, onCollapseRow, onFocusRow ]\n\t);\n\n\t/* Disable reason: A treegrid is implemented using a table element. */\n\t/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\n\treturn (\n\t\t<RovingTabIndexContainer>\n\t\t\t{\n\t\t\t\t// Prevent browser mode from triggering in NVDA by wrapping List View\n\t\t\t\t// in a role=application wrapper.\n\t\t\t\t// see: https://github.com/WordPress/gutenberg/issues/43729\n\t\t\t }\n\t\t\t<div role=\"application\" aria-label={ applicationAriaLabel }>\n\t\t\t\t<table\n\t\t\t\t\t{ ...props }\n\t\t\t\t\trole=\"treegrid\"\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t\tref={ ref }\n\t\t\t\t>\n\t\t\t\t\t<tbody>{ children }</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t</RovingTabIndexContainer>\n\t);\n\t/* eslint-enable jsx-a11y/no-noninteractive-element-to-interactive-role */\n}\n\n/**\n * `TreeGrid` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * A tree grid is a hierarchical 2 dimensional UI component, for example it could be\n * used to implement a file system browser.\n *\n * A tree grid allows the user to navigate using arrow keys.\n * Up/down to navigate vertically across rows, and left/right to navigate horizontally\n * between focusables in a row.\n *\n * The `TreeGrid` renders both a `table` and `tbody` element, and is intended to be used\n * with `TreeGridRow` (`tr`) and `TreeGridCell` (`td`) to build out a grid.\n *\n * ```jsx\n * function TreeMenu() {\n * \treturn (\n * \t\t<TreeGrid>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 1 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 1 } positionInSet={ 2 } setSize={ 2 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t\t<TreeGridRow level={ 2 } positionInSet={ 1 } setSize={ 1 }>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onSelect } { ...props }>Select</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t\t<TreeGridCell>\n * \t\t\t\t\t{ ( props ) => (\n * \t\t\t\t\t\t<Button onClick={ onMove } { ...props }>Move</Button>\n * \t\t\t\t\t) }\n * \t\t\t\t</TreeGridCell>\n * \t\t\t</TreeGridRow>\n * \t\t</TreeGrid>\n * \t);\n * }\n * ```\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGrid = forwardRef( UnforwardedTreeGrid );\n\nexport default TreeGrid;\nexport { default as TreeGridRow } from './row';\nexport { default as TreeGridCell } from './cell';\nexport { default as TreeGridItem } from './item';\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","UnforwardedTreeGridRow","children","level","positionInSet","setSize","isExpanded","props","ref","createElement","role","TreeGridRow"],"sources":["@wordpress/components/src/tree-grid/row.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../
|
|
1
|
+
{"version":3,"names":["forwardRef","UnforwardedTreeGridRow","children","level","positionInSet","setSize","isExpanded","props","ref","createElement","role","TreeGridRow"],"sources":["@wordpress/components/src/tree-grid/row.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { forwardRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport type { TreeGridRowProps } from './types';\n\nfunction UnforwardedTreeGridRow(\n\t{\n\t\tchildren,\n\t\tlevel,\n\t\tpositionInSet,\n\t\tsetSize,\n\t\tisExpanded,\n\t\t...props\n\t}: WordPressComponentProps< TreeGridRowProps, 'tr', false >,\n\tref: React.ForwardedRef< HTMLTableRowElement >\n) {\n\treturn (\n\t\t<tr\n\t\t\t{ ...props }\n\t\t\tref={ ref }\n\t\t\trole=\"row\"\n\t\t\taria-level={ level }\n\t\t\taria-posinset={ positionInSet }\n\t\t\taria-setsize={ setSize }\n\t\t\taria-expanded={ isExpanded }\n\t\t>\n\t\t\t{ children }\n\t\t</tr>\n\t);\n}\n\n/**\n * `TreeGridRow` is used to create a tree hierarchy.\n * It is not a visually styled component, but instead helps with adding\n * keyboard navigation and roving tab index behaviors to tree grid structures.\n *\n * @see {@link https://www.w3.org/TR/wai-aria-practices/examples/treegrid/treegrid-1.html}\n */\nexport const TreeGridRow = forwardRef( UnforwardedTreeGridRow );\n\nexport default TreeGridRow;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,UAAU,QAAQ,oBAAoB;;AAE/C;AACA;AACA;;AAIA,SAASC,sBAAsBA,CAC9B;EACCC,QAAQ;EACRC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,UAAU;EACV,GAAGC;AACsD,CAAC,EAC3DC,GAA8C,EAC7C;EACD,OACCC,aAAA;IAAA,GACMF,KAAK;IACVC,GAAG,EAAGA,GAAK;IACXE,IAAI,EAAC,KAAK;IACV,cAAaP,KAAO;IACpB,iBAAgBC,aAAe;IAC/B,gBAAeC,OAAS;IACxB,iBAAgBC;EAAY,GAE1BJ,QACC,CAAC;AAEP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMS,WAAW,GAAGX,UAAU,CAAEC,sBAAuB,CAAC;AAE/D,eAAeU,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement } from "
|
|
1
|
+
import { createElement } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* WordPress dependencies
|
|
4
4
|
*/
|
|
@@ -9,6 +9,7 @@ import { decodeEntities } from '@wordpress/html-entities';
|
|
|
9
9
|
* Internal dependencies
|
|
10
10
|
*/
|
|
11
11
|
import { SelectControl } from '../select-control';
|
|
12
|
+
import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
|
|
12
13
|
function getSelectOptions(tree, level = 0) {
|
|
13
14
|
return tree.flatMap(treeNode => [{
|
|
14
15
|
value: treeNode.id,
|
|
@@ -64,14 +65,15 @@ function getSelectOptions(tree, level = 0) {
|
|
|
64
65
|
* ```
|
|
65
66
|
*/
|
|
66
67
|
|
|
67
|
-
export function TreeSelect({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
export function TreeSelect(props) {
|
|
69
|
+
const {
|
|
70
|
+
label,
|
|
71
|
+
noOptionLabel,
|
|
72
|
+
onChange,
|
|
73
|
+
selectedId,
|
|
74
|
+
tree = [],
|
|
75
|
+
...restProps
|
|
76
|
+
} = useDeprecated36pxDefaultSizeProp(props);
|
|
75
77
|
const options = useMemo(() => {
|
|
76
78
|
return [noOptionLabel && {
|
|
77
79
|
value: '',
|
|
@@ -83,7 +85,7 @@ export function TreeSelect({
|
|
|
83
85
|
options,
|
|
84
86
|
onChange,
|
|
85
87
|
value: selectedId,
|
|
86
|
-
...
|
|
88
|
+
...restProps
|
|
87
89
|
});
|
|
88
90
|
}
|
|
89
91
|
export default TreeSelect;
|