@wordpress/components 25.16.0 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.stylelintrc.js +23 -0
- package/CHANGELOG.md +47 -0
- package/build/alignment-matrix-control/icon.js +1 -2
- package/build/alignment-matrix-control/icon.js.map +1 -1
- package/build/alignment-matrix-control/index.js +1 -2
- 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 +3 -6
- package/build/alignment-matrix-control/utils.js.map +1 -1
- package/build/angle-picker-control/angle-circle.js +1 -2
- package/build/angle-picker-control/angle-circle.js.map +1 -1
- package/build/angle-picker-control/index.js +3 -15
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/angle-picker-control/styles/angle-picker-control-styles.js +9 -27
- 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/autocomplete/autocompleter-ui.native.js +1 -2
- package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build/autocomplete/background-view.android.js +1 -2
- package/build/autocomplete/background-view.android.js.map +1 -1
- package/build/autocomplete/background-view.ios.js +1 -2
- package/build/autocomplete/background-view.ios.js.map +1 -1
- package/build/base-control/index.js +2 -4
- package/build/base-control/index.js.map +1 -1
- package/build/base-control/styles/base-control-styles.js +5 -10
- package/build/base-control/styles/base-control-styles.js.map +1 -1
- package/build/border-box-control/border-box-control/component.js +2 -4
- package/build/border-box-control/border-box-control/component.js.map +1 -1
- package/build/border-box-control/border-box-control/hook.js +2 -2
- 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 +1 -2
- 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 +2 -2
- 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 +1 -2
- 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 +2 -2
- 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 +1 -2
- 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 +2 -2
- 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-control/border-control/component.js +2 -4
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control/hook.js +2 -2
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/border-control/border-control-dropdown/component.js +1 -2
- package/build/border-control/border-control-dropdown/component.js.map +1 -1
- package/build/border-control/border-control-dropdown/hook.js +2 -2
- package/build/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build/border-control/border-control-style-picker/component.js +1 -2
- package/build/border-control/border-control-style-picker/component.js.map +1 -1
- package/build/border-control/styles.js +7 -14
- package/build/border-control/styles.js.map +1 -1
- package/build/box-control/index.js +1 -2
- package/build/box-control/index.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 +6 -12
- package/build/box-control/styles/box-control-styles.js.map +1 -1
- package/build/box-control/utils.js +4 -8
- package/build/box-control/utils.js.map +1 -1
- package/build/button/deprecated.js +1 -2
- package/build/button/deprecated.js.map +1 -1
- package/build/button/index.js +2 -4
- package/build/button/index.js.map +1 -1
- package/build/button/index.native.js +1 -3
- package/build/button/index.native.js.map +1 -1
- package/build/button-group/index.js +2 -4
- package/build/button-group/index.js.map +1 -1
- package/build/card/card/component.js +4 -6
- package/build/card/card/component.js.map +1 -1
- package/build/card/card/hook.js +2 -2
- package/build/card/card/hook.js.map +1 -1
- package/build/card/card-body/component.js +2 -4
- package/build/card/card-body/component.js.map +1 -1
- package/build/card/card-body/hook.js +2 -2
- package/build/card/card-body/hook.js.map +1 -1
- package/build/card/card-divider/component.js +2 -4
- package/build/card/card-divider/component.js.map +1 -1
- package/build/card/card-divider/hook.js +2 -2
- package/build/card/card-divider/hook.js.map +1 -1
- package/build/card/card-footer/component.js +2 -4
- package/build/card/card-footer/component.js.map +1 -1
- package/build/card/card-footer/hook.js +2 -2
- package/build/card/card-footer/hook.js.map +1 -1
- package/build/card/card-header/component.js +2 -4
- package/build/card/card-header/component.js.map +1 -1
- package/build/card/card-header/hook.js +2 -2
- package/build/card/card-header/hook.js.map +1 -1
- package/build/card/card-media/component.js +2 -4
- package/build/card/card-media/component.js.map +1 -1
- package/build/card/card-media/hook.js +2 -2
- 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 +1 -2
- package/build/checkbox-control/index.js.map +1 -1
- package/build/checkbox-control/types.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-context.js +1 -2
- package/build/circular-option-picker/circular-option-picker-context.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker.js +1 -2
- package/build/circular-option-picker/circular-option-picker.js.map +1 -1
- package/build/circular-option-picker/index.js +1 -2
- package/build/circular-option-picker/index.js.map +1 -1
- package/build/color-control/index.native.js +1 -2
- package/build/color-control/index.native.js.map +1 -1
- package/build/color-indicator/index.js +2 -4
- package/build/color-indicator/index.js.map +1 -1
- package/build/color-indicator/index.native.js +1 -2
- package/build/color-indicator/index.native.js.map +1 -1
- package/build/color-palette/index.js +2 -4
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/index.native.js +1 -2
- 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-picker/component.js +2 -4
- package/build/color-picker/component.js.map +1 -1
- package/build/color-picker/hsv-color-picker.native.js +1 -2
- package/build/color-picker/hsv-color-picker.native.js.map +1 -1
- package/build/color-picker/hue-picker.native.js +2 -2
- package/build/color-picker/hue-picker.native.js.map +1 -1
- package/build/color-picker/saturation-picker.native.js +2 -2
- package/build/color-picker/saturation-picker.native.js.map +1 -1
- package/build/color-picker/styles.js +8 -16
- package/build/color-picker/styles.js.map +1 -1
- package/build/combobox-control/index.js +2 -3
- package/build/combobox-control/index.js.map +1 -1
- package/build/combobox-control/styles.js +1 -2
- 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 +10 -36
- package/build/composite/v2.js.map +1 -1
- package/build/confirm-dialog/component.js +6 -6
- 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/context/constants.js +3 -6
- package/build/context/constants.js.map +1 -1
- package/build/context/context-system-provider.js +2 -4
- package/build/context/context-system-provider.js.map +1 -1
- package/build/context/get-styled-class-name-from-key.js +1 -2
- package/build/context/get-styled-class-name-from-key.js.map +1 -1
- package/build/context/wordpress-component.js.map +1 -1
- 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 +1 -2
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/index.js +2 -17
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/index.native.js +1 -2
- 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 +1 -1
- 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 +6 -5
- package/build/custom-select-control-v2/index.js.map +1 -1
- package/build/custom-select-control-v2/styles.js +6 -10
- package/build/custom-select-control-v2/styles.js.map +1 -1
- package/build/dashicon/index.js +1 -2
- package/build/dashicon/index.js.map +1 -1
- package/build/dashicon/index.native.js +3 -4
- 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 +1 -2
- package/build/date-time/date/index.js.map +1 -1
- package/build/date-time/date/styles.js +6 -12
- package/build/date-time/date/styles.js.map +1 -1
- package/build/date-time/date-time/index.js +2 -4
- 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 +1 -2
- package/build/date-time/time/index.js.map +1 -1
- package/build/date-time/time/styles.js +10 -20
- package/build/date-time/time/styles.js.map +1 -1
- package/build/date-time/time/timezone.js +2 -3
- package/build/date-time/time/timezone.js.map +1 -1
- package/build/dimension-control/index.js +3 -4
- 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/disabled/index.js +1 -2
- package/build/disabled/index.js.map +1 -1
- package/build/disabled/index.native.js +1 -2
- 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 +4 -6
- package/build/disclosure/index.js.map +1 -1
- package/build/divider/component.js +4 -6
- package/build/divider/component.js.map +1 -1
- package/build/divider/styles.js +1 -2
- package/build/divider/styles.js.map +1 -1
- package/build/draggable/index.js +1 -2
- package/build/draggable/index.js.map +1 -1
- package/build/draggable/index.native.js +3 -4
- package/build/draggable/index.native.js.map +1 -1
- package/build/drop-zone/index.js +1 -2
- package/build/drop-zone/index.js.map +1 -1
- package/build/dropdown/dropdown-content-wrapper.js +2 -4
- package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
- package/build/dropdown/index.js +2 -4
- package/build/dropdown/index.js.map +1 -1
- package/build/dropdown/index.native.js +1 -2
- package/build/dropdown/index.native.js.map +1 -1
- package/build/dropdown/styles.js +1 -2
- package/build/dropdown/styles.js.map +1 -1
- package/build/dropdown-menu/index.js +2 -4
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/dropdown-menu/index.native.js +1 -2
- package/build/dropdown-menu/index.native.js.map +1 -1
- package/build/dropdown-menu-v2/index.js +11 -20
- package/build/dropdown-menu-v2/index.js.map +1 -1
- package/build/dropdown-menu-v2/styles.js +29 -42
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/duotone-picker/color-list-picker/index.js +1 -2
- package/build/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +1 -2
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/duotone-picker/duotone-swatch.js +1 -2
- package/build/duotone-picker/duotone-swatch.js.map +1 -1
- package/build/elevation/component.js +2 -4
- package/build/elevation/component.js.map +1 -1
- package/build/elevation/hook.js +2 -2
- 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 +3 -5
- package/build/external-link/index.js.map +1 -1
- package/build/external-link/index.native.js +1 -2
- 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 +2 -4
- package/build/flex/flex/component.js.map +1 -1
- package/build/flex/flex/hook.js +2 -2
- package/build/flex/flex/hook.js.map +1 -1
- package/build/flex/flex-block/component.js +2 -4
- package/build/flex/flex-block/component.js.map +1 -1
- package/build/flex/flex-item/component.js +2 -4
- package/build/flex/flex-item/component.js.map +1 -1
- package/build/flex/flex-item/hook.js +2 -2
- 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/focal-point-picker/index.js +3 -4
- package/build/focal-point-picker/index.js.map +1 -1
- package/build/focal-point-picker/index.native.js +1 -3
- package/build/focal-point-picker/index.native.js.map +1 -1
- package/build/focal-point-picker/styles/focal-point-picker-style.js +37 -54
- 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 +1 -2
- package/build/focal-point-picker/tooltip/index.native.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/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 +1 -2
- package/build/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build/font-size-picker/font-size-picker-toggle-group.js +2 -4
- package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build/font-size-picker/index.js +6 -22
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +3 -4
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/font-size-picker/styles.js +17 -29
- package/build/font-size-picker/styles.js.map +1 -1
- package/build/font-size-picker/types.js.map +1 -1
- package/build/footer-message-control/index.native.js +1 -2
- package/build/footer-message-control/index.native.js.map +1 -1
- package/build/form-file-upload/index.js +1 -2
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-toggle/index.js +1 -2
- package/build/form-toggle/index.js.map +1 -1
- package/build/form-token-field/index.js +2 -7
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/styles.js +1 -2
- package/build/form-token-field/styles.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +1 -2
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/form-token-field/token-input.js +2 -4
- package/build/form-token-field/token-input.js.map +1 -1
- package/build/gradient-picker/index.js +19 -43
- package/build/gradient-picker/index.js.map +1 -1
- package/build/gradient-picker/types.js.map +1 -1
- package/build/grid/component.js +2 -4
- package/build/grid/component.js.map +1 -1
- package/build/guide/index.js +1 -2
- package/build/guide/index.js.map +1 -1
- package/build/h-stack/component.js +2 -4
- package/build/h-stack/component.js.map +1 -1
- package/build/heading/component.js +2 -4
- package/build/heading/component.js.map +1 -1
- package/build/higher-order/navigate-regions/index.js +1 -2
- package/build/higher-order/navigate-regions/index.js.map +1 -1
- package/build/higher-order/with-constrained-tabbing/index.js +1 -2
- package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.js +1 -2
- package/build/higher-order/with-focus-outside/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.native.js +1 -2
- package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
- package/build/higher-order/with-focus-return/index.js +1 -2
- package/build/higher-order/with-focus-return/index.js.map +1 -1
- package/build/higher-order/with-notices/index.js +1 -2
- package/build/higher-order/with-notices/index.js.map +1 -1
- package/build/higher-order/with-spoken-messages/index.js +1 -2
- 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 +2 -2
- package/build/index.js.map +1 -1
- package/build/index.native.js +2 -2
- package/build/index.native.js.map +1 -1
- package/build/input-control/backdrop.js +3 -2
- package/build/input-control/backdrop.js.map +1 -1
- package/build/input-control/index.js +3 -5
- package/build/input-control/index.js.map +1 -1
- package/build/input-control/input-base.js +4 -3
- package/build/input-control/input-base.js.map +1 -1
- package/build/input-control/input-field.js +1 -2
- package/build/input-control/input-field.js.map +1 -1
- package/build/input-control/input-prefix-wrapper.js +2 -4
- package/build/input-control/input-prefix-wrapper.js.map +1 -1
- package/build/input-control/input-suffix-wrapper.js +2 -4
- package/build/input-control/input-suffix-wrapper.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 +32 -37
- 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 +1 -2
- 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 +2 -4
- package/build/item-group/item/component.js.map +1 -1
- package/build/item-group/item/hook.js +2 -2
- package/build/item-group/item/hook.js.map +1 -1
- package/build/item-group/item-group/component.js +2 -4
- package/build/item-group/item-group/component.js.map +1 -1
- package/build/item-group/item-group/hook.js +2 -2
- 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 +1 -2
- 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/menu-group/index.js +1 -2
- package/build/menu-group/index.js.map +1 -1
- package/build/menu-item/index.js +2 -4
- package/build/menu-item/index.js.map +1 -1
- package/build/menu-items-choice/index.js +1 -2
- package/build/menu-items-choice/index.js.map +1 -1
- package/build/mobile/audio-player/index.native.js +1 -2
- package/build/mobile/audio-player/index.native.js.map +1 -1
- package/build/mobile/badge/index.native.js +1 -2
- 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 +3 -4
- 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 +1 -2
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
- package/build/mobile/bottom-sheet/button.native.js +1 -2
- package/build/mobile/bottom-sheet/button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cell.native.js +1 -2
- package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/chevron-back.native.js +1 -2
- package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
- package/build/mobile/bottom-sheet/footer-message-cell.native.js +1 -2
- 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 +1 -2
- package/build/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js.map +1 -1
- package/build/mobile/bottom-sheet/index.native.js +1 -2
- package/build/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -2
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -2
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -2
- 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 +1 -2
- 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 +1 -2
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js +1 -2
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/index.native.js +1 -2
- package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-cell.native.js +1 -2
- package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-text-input.native.js +1 -2
- package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
- package/build/mobile/bottom-sheet/ripple.native.js +1 -2
- package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js +1 -2
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -2
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -2
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js +1 -2
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet-select-control/index.native.js +1 -2
- package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet-text-control/index.native.js +1 -2
- package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
- package/build/mobile/color-settings/gradient-picker-screen.native.js +1 -2
- package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
- package/build/mobile/color-settings/index.native.js +1 -2
- package/build/mobile/color-settings/index.native.js.map +1 -1
- package/build/mobile/color-settings/palette.screen.native.js +1 -2
- package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build/mobile/color-settings/picker-screen.native.js +1 -2
- 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 +1 -2
- package/build/mobile/cycle-select-control/index.native.js.map +1 -1
- package/build/mobile/dashicons/index.native.js +3 -6
- package/build/mobile/dashicons/index.native.js.map +1 -1
- package/build/mobile/focal-point-settings-panel/index.native.js +1 -2
- package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/index.native.js +1 -2
- package/build/mobile/global-styles-context/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/utils.native.js +1 -2
- package/build/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build/mobile/gradient/index.native.js +1 -2
- package/build/mobile/gradient/index.native.js.map +1 -1
- package/build/mobile/gridicons/index.native.js +8 -16
- package/build/mobile/gridicons/index.native.js.map +1 -1
- package/build/mobile/html-text-input/index.native.js +1 -2
- package/build/mobile/html-text-input/index.native.js.map +1 -1
- package/build/mobile/image/constants.js +1 -2
- package/build/mobile/image/constants.js.map +1 -1
- package/build/mobile/image/icon-customize.native.js +1 -2
- package/build/mobile/image/icon-customize.native.js.map +1 -1
- package/build/mobile/image/icon-retry.native.js +1 -2
- package/build/mobile/image/icon-retry.native.js.map +1 -1
- package/build/mobile/image/image-editing-button.native.js +1 -2
- package/build/mobile/image/image-editing-button.native.js.map +1 -1
- package/build/mobile/image/index.native.js +81 -7
- 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 +1 -2
- package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js +1 -2
- package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.ios.js +1 -2
- package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build/mobile/link-picker/link-picker-screen.native.js +1 -2
- package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +1 -2
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/mobile/link-settings/link-rel.native.js +1 -2
- package/build/mobile/link-settings/link-rel.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-navigation.native.js +1 -2
- package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-screen.native.js +1 -2
- package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
- package/build/mobile/media-edit/index.native.js +3 -6
- package/build/mobile/media-edit/index.native.js.map +1 -1
- package/build/mobile/picker/index.ios.js +1 -2
- package/build/mobile/picker/index.ios.js.map +1 -1
- package/build/mobile/segmented-control/index.native.js +1 -2
- package/build/mobile/segmented-control/index.native.js.map +1 -1
- package/build/mobile/utils/alignments.native.js +3 -6
- package/build/mobile/utils/alignments.native.js.map +1 -1
- package/build/mobile/utils/get-px-from-css-unit.native.js +1 -2
- package/build/mobile/utils/get-px-from-css-unit.native.js.map +1 -1
- package/build/modal/index.js +4 -6
- package/build/modal/index.js.map +1 -1
- package/build/navigable-container/container.js +1 -2
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigable-container/menu.js +2 -4
- package/build/navigable-container/menu.js.map +1 -1
- package/build/navigable-container/tabbable.js +2 -4
- package/build/navigable-container/tabbable.js.map +1 -1
- package/build/navigation/back-button/index.js +2 -4
- 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 +1 -2
- package/build/navigation/group/index.js.map +1 -1
- package/build/navigation/index.js +1 -2
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/index.js +1 -2
- 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 +1 -2
- package/build/navigation/menu/index.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +5 -8
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/navigation/styles/navigation-styles.js +34 -47
- package/build/navigation/styles/navigation-styles.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 +2 -4
- package/build/navigator/navigator-back-button/component.js.map +1 -1
- package/build/navigator/navigator-button/component.js +2 -4
- package/build/navigator/navigator-button/component.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +4 -6
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +4 -6
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/navigator-to-parent-button/component.js +2 -4
- package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
- package/build/navigator/styles.js +1 -2
- package/build/navigator/styles.js.map +1 -1
- package/build/navigator/use-navigator.js +1 -2
- package/build/navigator/use-navigator.js.map +1 -1
- package/build/notice/index.js +1 -2
- package/build/notice/index.js.map +1 -1
- package/build/notice/index.native.js +1 -2
- package/build/notice/index.native.js.map +1 -1
- package/build/notice/list.js +1 -2
- package/build/notice/list.js.map +1 -1
- package/build/notice/list.native.js +1 -2
- package/build/notice/list.native.js.map +1 -1
- package/build/number-control/index.js +5 -7
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/styles/number-control-styles.js +3 -6
- package/build/number-control/styles/number-control-styles.js.map +1 -1
- package/build/palette-edit/index.js +11 -17
- package/build/palette-edit/index.js.map +1 -1
- package/build/palette-edit/styles.js +50 -51
- package/build/palette-edit/styles.js.map +1 -1
- package/build/panel/actions.native.js +1 -2
- package/build/panel/actions.native.js.map +1 -1
- package/build/panel/body.js +2 -4
- package/build/panel/body.js.map +1 -1
- package/build/panel/body.native.js +1 -2
- package/build/panel/body.native.js.map +1 -1
- package/build/panel/bottom-separator-cover.native.js +1 -2
- package/build/panel/bottom-separator-cover.native.js.map +1 -1
- package/build/panel/header.js +1 -2
- package/build/panel/header.js.map +1 -1
- package/build/panel/index.js +2 -4
- package/build/panel/index.js.map +1 -1
- package/build/panel/row.js +2 -4
- package/build/panel/row.js.map +1 -1
- package/build/placeholder/index.js +1 -2
- package/build/placeholder/index.js.map +1 -1
- package/build/popover/index.js +5 -6
- package/build/popover/index.js.map +1 -1
- package/build/popover/types.js.map +1 -1
- package/build/private-apis.js +1 -2
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +1 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/progress-bar/index.js +4 -6
- package/build/progress-bar/index.js.map +1 -1
- package/build/progress-bar/styles.js +4 -8
- package/build/progress-bar/styles.js.map +1 -1
- package/build/query-controls/index.js +5 -6
- package/build/query-controls/index.js.map +1 -1
- package/build/query-controls/index.native.js +4 -5
- package/build/query-controls/index.native.js.map +1 -1
- package/build/radio-control/index.js +1 -2
- package/build/radio-control/index.js.map +1 -1
- package/build/radio-control/index.native.js +1 -2
- package/build/radio-control/index.native.js.map +1 -1
- package/build/radio-group/context.js +1 -2
- package/build/radio-group/context.js.map +1 -1
- package/build/radio-group/index.js +4 -6
- package/build/radio-group/index.js.map +1 -1
- package/build/radio-group/radio.js +4 -6
- package/build/radio-group/radio.js.map +1 -1
- package/build/range-control/index.js +2 -4
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/index.native.js +1 -2
- package/build/range-control/index.native.js.map +1 -1
- package/build/range-control/input-range.js +1 -2
- package/build/range-control/input-range.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +15 -30
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/resizable-box/index.js +2 -4
- package/build/resizable-box/index.js.map +1 -1
- package/build/resizable-box/index.native.js +1 -2
- package/build/resizable-box/index.native.js.map +1 -1
- package/build/resizable-box/resize-tooltip/index.js +1 -2
- package/build/resizable-box/resize-tooltip/index.js.map +1 -1
- package/build/resizable-box/resize-tooltip/label.js +1 -2
- 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 +1 -2
- package/build/responsive-wrapper/index.js.map +1 -1
- package/build/sandbox/index.js +1 -2
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +1 -2
- package/build/sandbox/index.native.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 +2 -4
- package/build/scrollable/component.js.map +1 -1
- package/build/scrollable/hook.js +2 -2
- 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 +68 -60
- package/build/search-control/index.js.map +1 -1
- package/build/search-control/index.native.js +1 -2
- 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 +1 -2
- package/build/select-control/chevron-down.js.map +1 -1
- package/build/select-control/index.js +3 -5
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/index.native.js +2 -4
- package/build/select-control/index.native.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +4 -8
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/shortcut/index.js +1 -2
- package/build/shortcut/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js +1 -2
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +1 -2
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/context.js +2 -4
- package/build/slot-fill/context.js.map +1 -1
- package/build/slot-fill/index.js +1 -2
- package/build/slot-fill/index.js.map +1 -1
- package/build/slot-fill/provider.js +1 -2
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +1 -2
- package/build/slot-fill/slot.js.map +1 -1
- package/build/slot-fill/use-slot.js +1 -2
- package/build/slot-fill/use-slot.js.map +1 -1
- package/build/snackbar/index.js +19 -9
- package/build/snackbar/index.js.map +1 -1
- package/build/snackbar/list.js +1 -2
- package/build/snackbar/list.js.map +1 -1
- package/build/spacer/component.js +2 -4
- package/build/spacer/component.js.map +1 -1
- package/build/spinner/index.js +2 -4
- package/build/spinner/index.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 +3 -4
- package/build/style-provider/index.js.map +1 -1
- package/build/surface/component.js +2 -4
- package/build/surface/component.js.map +1 -1
- package/build/surface/hook.js +2 -2
- 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 +4 -6
- package/build/tab-panel/index.js.map +1 -1
- package/build/tabs/context.js +1 -2
- package/build/tabs/context.js.map +1 -1
- package/build/tabs/index.js +23 -20
- package/build/tabs/index.js.map +1 -1
- package/build/tabs/styles.js +5 -8
- package/build/tabs/styles.js.map +1 -1
- package/build/tabs/tab.js +1 -2
- package/build/tabs/tab.js.map +1 -1
- package/build/tabs/tablist.js +25 -4
- package/build/tabs/tablist.js.map +1 -1
- package/build/tabs/tabpanel.js +1 -2
- package/build/tabs/tabpanel.js.map +1 -1
- package/build/text/component.js +2 -4
- package/build/text/component.js.map +1 -1
- package/build/text/hook.js +2 -2
- package/build/text/hook.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 +7 -14
- package/build/text/styles.js.map +1 -1
- package/build/text-control/index.js +2 -4
- package/build/text-control/index.js.map +1 -1
- package/build/text-control/index.native.js +1 -2
- package/build/text-control/index.native.js.map +1 -1
- package/build/text-highlight/index.js +1 -2
- package/build/text-highlight/index.js.map +1 -1
- package/build/textarea-control/index.js +2 -4
- package/build/textarea-control/index.js.map +1 -1
- package/build/textarea-control/index.native.js +1 -2
- 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 +1 -2
- package/build/theme/index.js.map +1 -1
- package/build/theme/styles.js +1 -2
- package/build/theme/styles.js.map +1 -1
- package/build/tip/index.js +1 -2
- package/build/tip/index.js.map +1 -1
- package/build/toggle-control/index.js +1 -2
- package/build/toggle-control/index.js.map +1 -1
- package/build/toggle-control/index.native.js +1 -2
- 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 +1 -2
- 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 +3 -4
- 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 +7 -8
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/styles.js +2 -4
- package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option/component.js +2 -4
- 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 +3 -4
- 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 +4 -8
- 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 +2 -4
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build/toolbar/toolbar/index.js +2 -4
- package/build/toolbar/toolbar/index.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.js +4 -6
- package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.native.js +1 -2
- package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
- package/build/toolbar/toolbar-button/index.js +2 -4
- package/build/toolbar/toolbar-button/index.js.map +1 -1
- package/build/toolbar/toolbar-button/toolbar-button-container.js +1 -2
- package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
- package/build/toolbar/toolbar-context/index.js +1 -2
- package/build/toolbar/toolbar-context/index.js.map +1 -1
- package/build/toolbar/toolbar-dropdown-menu/index.js +1 -2
- package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
- package/build/toolbar/toolbar-group/index.js +1 -2
- package/build/toolbar/toolbar-group/index.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +1 -2
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +1 -2
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.js +1 -2
- package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js +1 -2
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
- package/build/toolbar/toolbar-item/index.js +3 -4
- 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 +8 -16
- package/build/tools-panel/styles.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +2 -4
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +2 -2
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +1 -2
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tools-panel/tools-panel-header/hook.js +2 -2
- package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-item/component.js +2 -4
- package/build/tools-panel/tools-panel-item/component.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +2 -2
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build/tooltip/index.js +5 -8
- package/build/tooltip/index.js.map +1 -1
- package/build/tooltip/index.native.js +1 -2
- package/build/tooltip/index.native.js.map +1 -1
- package/build/tree-grid/cell.js +2 -4
- package/build/tree-grid/cell.js.map +1 -1
- package/build/tree-grid/index.js +2 -4
- package/build/tree-grid/index.js.map +1 -1
- package/build/tree-grid/item.js +2 -4
- 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 +2 -4
- package/build/tree-grid/roving-tab-index-item.js.map +1 -1
- package/build/tree-grid/row.js +2 -4
- package/build/tree-grid/row.js.map +1 -1
- package/build/tree-select/index.js +2 -3
- package/build/tree-select/index.js.map +1 -1
- package/build/truncate/component.js +2 -4
- package/build/truncate/component.js.map +1 -1
- package/build/truncate/hook.js +2 -2
- 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/utils.js +3 -6
- package/build/truncate/utils.js.map +1 -1
- package/build/unit-control/index.js +3 -5
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/index.native.js +1 -2
- package/build/unit-control/index.native.js.map +1 -1
- package/build/unit-control/styles/unit-control-styles.js +3 -6
- package/build/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build/unit-control/unit-select-control.js +1 -2
- package/build/unit-control/unit-select-control.js.map +1 -1
- package/build/unit-control/utils.js +3 -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/config-values.js +1 -2
- package/build/utils/config-values.js.map +1 -1
- package/build/utils/font-size.js +3 -6
- package/build/utils/font-size.js.map +1 -1
- package/build/utils/font-values.js +1 -2
- package/build/utils/font-values.js.map +1 -1
- 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/use-deprecated-props.js +1 -15
- package/build/utils/use-deprecated-props.js.map +1 -1
- package/build/utils/use-responsive-value.js +2 -3
- package/build/utils/use-responsive-value.js.map +1 -1
- package/build/v-stack/component.js +2 -4
- package/build/v-stack/component.js.map +1 -1
- package/build/view/component.js +2 -4
- package/build/view/component.js.map +1 -1
- package/build/visually-hidden/component.js +2 -4
- 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 +2 -4
- 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/angle-picker-control/index.js +3 -13
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +5 -17
- 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/button/index.native.js +0 -1
- package/build-module/button/index.native.js.map +1 -1
- package/build-module/checkbox-control/types.js.map +1 -1
- package/build-module/combobox-control/index.js +1 -2
- package/build-module/combobox-control/index.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 +6 -15
- 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 +3 -13
- package/build-module/composite/v2.js.map +1 -1
- package/build-module/confirm-dialog/component.js +2 -0
- package/build-module/confirm-dialog/component.js.map +1 -1
- package/build-module/context/wordpress-component.js.map +1 -1
- package/build-module/custom-gradient-picker/index.js +2 -15
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/custom-gradient-picker/types.js.map +1 -1
- package/build-module/custom-select-control/index.js +1 -1
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control-v2/index.js +3 -1
- package/build-module/custom-select-control-v2/index.js.map +1 -1
- package/build-module/date-time/time/timezone.js +1 -1
- package/build-module/date-time/time/timezone.js.map +1 -1
- package/build-module/dropdown-menu-v2/styles.js +14 -14
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/external-link/index.js +1 -1
- package/build-module/focal-point-picker/index.js +2 -2
- package/build-module/focal-point-picker/index.js.map +1 -1
- package/build-module/focal-point-picker/index.native.js +0 -1
- package/build-module/focal-point-picker/index.native.js.map +1 -1
- package/build-module/focal-point-picker/styles/focal-point-picker-style.js +29 -37
- 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/font-size-picker/font-size-picker-toggle-group.js +1 -2
- package/build-module/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build-module/font-size-picker/index.js +3 -17
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/styles.js +14 -20
- 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/form-token-field/index.js +1 -6
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +0 -1
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/gradient-picker/index.js +18 -41
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/gradient-picker/types.js.map +1 -1
- package/build-module/input-control/backdrop.js +2 -0
- package/build-module/input-control/backdrop.js.map +1 -1
- package/build-module/input-control/index.js +1 -1
- package/build-module/input-control/index.js.map +1 -1
- package/build-module/input-control/input-base.js +6 -4
- package/build-module/input-control/input-base.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +25 -23
- 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 +0 -1
- package/build-module/isolated-event-container/index.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/mobile/image/index.native.js +83 -8
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/navigation/menu/menu-title-search.js +4 -6
- package/build-module/navigation/menu/menu-title-search.js.map +1 -1
- package/build-module/navigation/styles/navigation-styles.js +23 -24
- package/build-module/navigation/styles/navigation-styles.js.map +1 -1
- package/build-module/number-control/index.js +1 -1
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/palette-edit/index.js +10 -15
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/palette-edit/styles.js +43 -33
- package/build-module/palette-edit/styles.js.map +1 -1
- package/build-module/popover/index.js +2 -0
- package/build-module/popover/index.js.map +1 -1
- package/build-module/popover/types.js.map +1 -1
- package/build-module/query-controls/index.js +5 -5
- package/build-module/query-controls/index.js.map +1 -1
- package/build-module/query-controls/index.native.js +4 -4
- package/build-module/query-controls/index.native.js.map +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/search-control/index.js +67 -57
- package/build-module/search-control/index.js.map +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/index.js +1 -1
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/snackbar/index.js +18 -6
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/tabs/index.js +21 -17
- package/build-module/tabs/index.js.map +1 -1
- package/build-module/tabs/tablist.js +22 -0
- package/build-module/tabs/tablist.js.map +1 -1
- package/build-module/tree-select/index.js +1 -1
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/unit-control/index.js +1 -1
- package/build-module/unit-control/index.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/hooks/use-update-effect.js +1 -1
- package/build-module/utils/hooks/use-update-effect.js.map +1 -1
- package/build-module/utils/use-deprecated-props.js +1 -13
- package/build-module/utils/use-deprecated-props.js.map +1 -1
- package/build-module/utils/use-responsive-value.js +2 -3
- package/build-module/utils/use-responsive-value.js.map +1 -1
- package/build-style/style-rtl.css +22 -109
- package/build-style/style.css +22 -109
- 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/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts +2 -2
- 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/checkbox-control/types.d.ts +2 -3
- package/build-types/checkbox-control/types.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +1 -1
- package/build-types/combobox-control/index.d.ts.map +1 -1
- 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 -14
- 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.map +1 -0
- package/build-types/composite/v2.d.ts +1 -11
- package/build-types/composite/v2.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.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/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.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/test/index.d.ts +2 -0
- package/build-types/custom-select-control-v2/test/index.d.ts.map +1 -0
- package/build-types/date-time/date/styles.d.ts +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
- 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/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 +0 -6
- package/build-types/font-size-picker/styles.d.ts.map +1 -1
- package/build-types/font-size-picker/types.d.ts +3 -1
- package/build-types/font-size-picker/types.d.ts.map +1 -1
- package/build-types/form-token-field/index.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.map +1 -1
- package/build-types/gradient-picker/types.d.ts +2 -0
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +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.map +1 -1
- package/build-types/input-control/input-base.d.ts +1 -3
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +1 -0
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +7 -1
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/item-group/styles.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +5 -12
- package/build-types/navigation/styles/navigation-styles.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/styles.d.ts +15 -21
- package/build-types/palette-edit/styles.d.ts.map +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/types.d.ts +9 -0
- package/build-types/popover/types.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/index.d.ts +4 -9
- package/build-types/search-control/index.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +2 -18
- 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 +34 -18
- package/build-types/search-control/types.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts.map +1 -1
- package/build-types/tabs/index.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/tablist.d.ts.map +1 -1
- package/build-types/theme/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/unit-control/index.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/hooks/use-update-effect.d.ts +1 -1
- package/build-types/utils/use-deprecated-props.d.ts +1 -5
- package/build-types/utils/use-deprecated-props.d.ts.map +1 -1
- package/package.json +19 -20
- package/src/angle-picker-control/README.md +0 -8
- package/src/angle-picker-control/index.tsx +4 -23
- package/src/angle-picker-control/stories/index.story.tsx +0 -3
- package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +0 -18
- package/src/angle-picker-control/types.ts +2 -0
- package/src/button/stories/e2e/index.story.tsx +6 -0
- package/src/button/style.scss +17 -5
- package/src/card/test/__snapshots__/index.tsx.snap +3 -3
- package/src/checkbox-control/README.md +1 -2
- package/src/checkbox-control/stories/index.story.tsx +44 -0
- package/src/checkbox-control/test/index.tsx +2 -2
- package/src/checkbox-control/types.ts +2 -3
- package/src/combobox-control/index.tsx +1 -4
- package/src/composite/current/index.ts +22 -0
- package/src/composite/current/stories/index.story.tsx +86 -0
- package/src/composite/current/stories/utils.tsx +61 -0
- package/src/composite/index.ts +6 -21
- 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 +3 -21
- package/src/confirm-dialog/component.tsx +2 -0
- package/src/context/wordpress-component.ts +1 -1
- 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/index.js +1 -5
- package/src/custom-select-control-v2/index.tsx +2 -0
- package/src/custom-select-control-v2/stories/index.story.tsx +1 -0
- package/src/custom-select-control-v2/test/index.tsx +219 -0
- package/src/date-time/time/timezone.tsx +1 -1
- package/src/dimension-control/test/__snapshots__/index.test.js.snap +16 -16
- package/src/divider/README.md +1 -1
- package/src/dropdown-menu-v2/stories/index.story.tsx +1 -0
- package/src/dropdown-menu-v2/styles.ts +1 -1
- package/src/focal-point-picker/index.tsx +2 -2
- package/src/focal-point-picker/styles/focal-point-picker-style.ts +26 -10
- package/src/focal-point-picker/styles/focal-point-style.ts +21 -7
- package/src/font-size-picker/README.md +0 -8
- package/src/font-size-picker/font-size-picker-toggle-group.tsx +2 -9
- package/src/font-size-picker/index.tsx +3 -21
- package/src/font-size-picker/stories/index.story.tsx +0 -1
- package/src/font-size-picker/styles.ts +0 -7
- package/src/font-size-picker/test/index.tsx +16 -99
- package/src/font-size-picker/types.ts +3 -1
- package/src/form-token-field/index.tsx +1 -4
- package/src/gradient-picker/README.md +0 -8
- package/src/gradient-picker/index.tsx +32 -56
- package/src/gradient-picker/stories/index.story.tsx +0 -1
- package/src/gradient-picker/types.ts +2 -0
- package/src/guide/style.scss +1 -1
- package/src/input-control/backdrop.tsx +6 -1
- package/src/input-control/index.tsx +1 -5
- package/src/input-control/input-base.tsx +14 -7
- package/src/input-control/styles/input-control-styles.tsx +6 -3
- package/src/input-control/types.ts +10 -1
- package/src/item-group/styles.ts +1 -4
- package/src/mobile/image/index.native.js +117 -12
- package/src/mobile/image/style.native.scss +6 -0
- package/src/modal/style.scss +1 -1
- package/src/navigation/menu/menu-title-search.tsx +6 -6
- package/src/navigation/styles/navigation-styles.tsx +5 -27
- package/src/number-control/index.tsx +1 -5
- package/src/palette-edit/index.tsx +18 -16
- package/src/palette-edit/stories/index.story.tsx +1 -0
- package/src/palette-edit/{styles.js → styles.ts} +56 -13
- package/src/palette-edit/test/index.tsx +2 -2
- package/src/placeholder/style.scss +6 -5
- package/src/popover/index.tsx +2 -0
- package/src/popover/style.scss +1 -0
- package/src/popover/test/index.tsx +250 -0
- package/src/popover/types.ts +9 -0
- package/src/progress-bar/stories/index.story.tsx +1 -0
- package/src/query-controls/index.native.js +4 -4
- package/src/query-controls/index.tsx +5 -5
- package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +3 -3
- package/src/search-control/README.md +23 -3
- package/src/search-control/index.tsx +88 -70
- 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 +37 -22
- package/src/select-control/index.tsx +1 -5
- package/src/snackbar/index.tsx +19 -6
- package/src/style.scss +0 -1
- package/src/tabs/index.tsx +31 -27
- package/src/tabs/stories/index.story.tsx +1 -0
- package/src/tabs/tablist.tsx +19 -0
- package/src/tabs/test/index.tsx +105 -49
- package/src/theme/stories/index.story.tsx +1 -0
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +8 -8
- package/src/toolbar/toolbar-button/README.md +2 -2
- package/src/toolbar/toolbar-dropdown-menu/README.md +2 -2
- package/src/toolbar/toolbar-item/README.md +2 -2
- package/src/tree-select/index.tsx +1 -5
- package/src/unit-control/index.tsx +1 -5
- package/src/utils/colors-values.js +45 -23
- package/src/utils/hooks/use-update-effect.js +1 -1
- package/src/utils/use-deprecated-props.ts +1 -18
- package/tsconfig.tsbuildinfo +1 -1
- package/build-types/composite/test/index.d.ts.map +0 -1
- package/src/composite/test/index.tsx +0 -576
- package/src/search-control/style.scss +0 -71
- /package/build-types/composite/{test → legacy/test}/index.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composite/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { render, screen } from '@testing-library/react';
|
|
5
|
-
import userEvent from '@testing-library/user-event';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import {
|
|
11
|
-
Composite as ReakitComposite,
|
|
12
|
-
CompositeGroup as ReakitCompositeGroup,
|
|
13
|
-
CompositeItem as ReakitCompositeItem,
|
|
14
|
-
useCompositeState as ReakitUseCompositeState,
|
|
15
|
-
} from '..';
|
|
16
|
-
|
|
17
|
-
const COMPOSITE_SUITES = {
|
|
18
|
-
reakit: {
|
|
19
|
-
Composite: ReakitComposite,
|
|
20
|
-
CompositeGroup: ReakitCompositeGroup,
|
|
21
|
-
CompositeItem: ReakitCompositeItem,
|
|
22
|
-
useCompositeState: ReakitUseCompositeState,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type InitialState = Parameters< typeof ReakitUseCompositeState >[ 0 ];
|
|
27
|
-
|
|
28
|
-
// It was decided not to test the full API, instead opting
|
|
29
|
-
// to cover basic usage, with a view to adding broader support
|
|
30
|
-
// for the original API should the need arise. As such we are
|
|
31
|
-
// only testing here for standard usage.
|
|
32
|
-
// See https://github.com/WordPress/gutenberg/pull/56645
|
|
33
|
-
|
|
34
|
-
describe.each( Object.entries( COMPOSITE_SUITES ) )(
|
|
35
|
-
'Validate %s implementation',
|
|
36
|
-
( _, { Composite, CompositeGroup, CompositeItem, useCompositeState } ) => {
|
|
37
|
-
function useSpreadProps( initialState?: InitialState ) {
|
|
38
|
-
return useCompositeState( initialState );
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function useStateProps( initialState?: InitialState ) {
|
|
42
|
-
return {
|
|
43
|
-
state: useCompositeState( initialState ),
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function OneDimensionalTest( { ...props } ) {
|
|
48
|
-
return (
|
|
49
|
-
<Composite
|
|
50
|
-
{ ...props }
|
|
51
|
-
aria-label={ expect.getState().currentTestName }
|
|
52
|
-
>
|
|
53
|
-
<CompositeItem { ...props }>Item 1</CompositeItem>
|
|
54
|
-
<CompositeItem { ...props }>Item 2</CompositeItem>
|
|
55
|
-
<CompositeItem { ...props }>Item 3</CompositeItem>
|
|
56
|
-
</Composite>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getOneDimensionalItems() {
|
|
61
|
-
return {
|
|
62
|
-
item1: screen.getByText( 'Item 1' ),
|
|
63
|
-
item2: screen.getByText( 'Item 2' ),
|
|
64
|
-
item3: screen.getByText( 'Item 3' ),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function TwoDimensionalTest( { ...props } ) {
|
|
69
|
-
return (
|
|
70
|
-
<Composite
|
|
71
|
-
{ ...props }
|
|
72
|
-
aria-label={ expect.getState().currentTestName }
|
|
73
|
-
>
|
|
74
|
-
<CompositeGroup role="row" { ...props }>
|
|
75
|
-
<CompositeItem { ...props }>Item A1</CompositeItem>
|
|
76
|
-
<CompositeItem { ...props }>Item A2</CompositeItem>
|
|
77
|
-
<CompositeItem { ...props }>Item A3</CompositeItem>
|
|
78
|
-
</CompositeGroup>
|
|
79
|
-
<CompositeGroup role="row" { ...props }>
|
|
80
|
-
<CompositeItem { ...props }>Item B1</CompositeItem>
|
|
81
|
-
<CompositeItem { ...props }>Item B2</CompositeItem>
|
|
82
|
-
<CompositeItem { ...props }>Item B3</CompositeItem>
|
|
83
|
-
</CompositeGroup>
|
|
84
|
-
<CompositeGroup role="row" { ...props }>
|
|
85
|
-
<CompositeItem { ...props }>Item C1</CompositeItem>
|
|
86
|
-
<CompositeItem { ...props }>Item C2</CompositeItem>
|
|
87
|
-
<CompositeItem { ...props }>Item C3</CompositeItem>
|
|
88
|
-
</CompositeGroup>
|
|
89
|
-
</Composite>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function getTwoDimensionalItems() {
|
|
94
|
-
return {
|
|
95
|
-
itemA1: screen.getByText( 'Item A1' ),
|
|
96
|
-
itemA2: screen.getByText( 'Item A2' ),
|
|
97
|
-
itemA3: screen.getByText( 'Item A3' ),
|
|
98
|
-
itemB1: screen.getByText( 'Item B1' ),
|
|
99
|
-
itemB2: screen.getByText( 'Item B2' ),
|
|
100
|
-
itemB3: screen.getByText( 'Item B3' ),
|
|
101
|
-
itemC1: screen.getByText( 'Item C1' ),
|
|
102
|
-
itemC2: screen.getByText( 'Item C2' ),
|
|
103
|
-
itemC3: screen.getByText( 'Item C3' ),
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function ShiftTest( { ...props } ) {
|
|
108
|
-
return (
|
|
109
|
-
<Composite
|
|
110
|
-
{ ...props }
|
|
111
|
-
aria-label={ expect.getState().currentTestName }
|
|
112
|
-
>
|
|
113
|
-
<CompositeGroup role="row" { ...props }>
|
|
114
|
-
<CompositeItem { ...props }>Item A1</CompositeItem>
|
|
115
|
-
</CompositeGroup>
|
|
116
|
-
<CompositeGroup role="row" { ...props }>
|
|
117
|
-
<CompositeItem { ...props }>Item B1</CompositeItem>
|
|
118
|
-
<CompositeItem { ...props }>Item B2</CompositeItem>
|
|
119
|
-
</CompositeGroup>
|
|
120
|
-
<CompositeGroup role="row" { ...props }>
|
|
121
|
-
<CompositeItem { ...props }>Item C1</CompositeItem>
|
|
122
|
-
<CompositeItem { ...props } disabled>
|
|
123
|
-
Item C2
|
|
124
|
-
</CompositeItem>
|
|
125
|
-
</CompositeGroup>
|
|
126
|
-
</Composite>
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function getShiftTestItems() {
|
|
131
|
-
return {
|
|
132
|
-
itemA1: screen.getByText( 'Item A1' ),
|
|
133
|
-
itemB1: screen.getByText( 'Item B1' ),
|
|
134
|
-
itemB2: screen.getByText( 'Item B2' ),
|
|
135
|
-
itemC1: screen.getByText( 'Item C1' ),
|
|
136
|
-
itemC2: screen.getByText( 'Item C2' ),
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
describe.each( [
|
|
141
|
-
[ 'With spread state', useSpreadProps ],
|
|
142
|
-
[ 'With `state` prop', useStateProps ],
|
|
143
|
-
] )( '%s', ( __, useProps ) => {
|
|
144
|
-
function useOneDimensionalTest( initialState?: InitialState ) {
|
|
145
|
-
const Test = () => (
|
|
146
|
-
<OneDimensionalTest { ...useProps( initialState ) } />
|
|
147
|
-
);
|
|
148
|
-
render( <Test /> );
|
|
149
|
-
return getOneDimensionalItems();
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
test( 'Renders as a single tab stop', async () => {
|
|
153
|
-
const user = userEvent.setup();
|
|
154
|
-
const Test = () => (
|
|
155
|
-
<>
|
|
156
|
-
<button>Before</button>
|
|
157
|
-
<OneDimensionalTest { ...useProps() } />
|
|
158
|
-
<button>After</button>
|
|
159
|
-
</>
|
|
160
|
-
);
|
|
161
|
-
render( <Test /> );
|
|
162
|
-
|
|
163
|
-
await user.tab();
|
|
164
|
-
expect( screen.getByText( 'Before' ) ).toHaveFocus();
|
|
165
|
-
await user.tab();
|
|
166
|
-
expect( screen.getByText( 'Item 1' ) ).toHaveFocus();
|
|
167
|
-
await user.tab();
|
|
168
|
-
expect( screen.getByText( 'After' ) ).toHaveFocus();
|
|
169
|
-
await user.tab( { shift: true } );
|
|
170
|
-
expect( screen.getByText( 'Item 1' ) ).toHaveFocus();
|
|
171
|
-
} );
|
|
172
|
-
|
|
173
|
-
test( 'Excludes disabled items', async () => {
|
|
174
|
-
const user = userEvent.setup();
|
|
175
|
-
const Test = () => {
|
|
176
|
-
const props = useProps();
|
|
177
|
-
return (
|
|
178
|
-
<Composite
|
|
179
|
-
{ ...props }
|
|
180
|
-
aria-label={ expect.getState().currentTestName }
|
|
181
|
-
>
|
|
182
|
-
<CompositeItem { ...props }>Item 1</CompositeItem>
|
|
183
|
-
<CompositeItem { ...props } disabled>
|
|
184
|
-
Item 2
|
|
185
|
-
</CompositeItem>
|
|
186
|
-
<CompositeItem { ...props }>Item 3</CompositeItem>
|
|
187
|
-
</Composite>
|
|
188
|
-
);
|
|
189
|
-
};
|
|
190
|
-
render( <Test /> );
|
|
191
|
-
|
|
192
|
-
const { item1, item2, item3 } = getOneDimensionalItems();
|
|
193
|
-
|
|
194
|
-
expect( item2 ).toBeDisabled();
|
|
195
|
-
|
|
196
|
-
await user.tab();
|
|
197
|
-
expect( item1 ).toHaveFocus();
|
|
198
|
-
await user.keyboard( '[ArrowDown]' );
|
|
199
|
-
expect( item2 ).not.toHaveFocus();
|
|
200
|
-
expect( item3 ).toHaveFocus();
|
|
201
|
-
} );
|
|
202
|
-
|
|
203
|
-
test( 'Includes focusable disabled items', async () => {
|
|
204
|
-
const user = userEvent.setup();
|
|
205
|
-
const Test = () => {
|
|
206
|
-
const props = useProps();
|
|
207
|
-
return (
|
|
208
|
-
<Composite
|
|
209
|
-
{ ...props }
|
|
210
|
-
aria-label={ expect.getState().currentTestName }
|
|
211
|
-
>
|
|
212
|
-
<CompositeItem { ...props }>Item 1</CompositeItem>
|
|
213
|
-
<CompositeItem { ...props } disabled focusable>
|
|
214
|
-
Item 2
|
|
215
|
-
</CompositeItem>
|
|
216
|
-
<CompositeItem { ...props }>Item 3</CompositeItem>
|
|
217
|
-
</Composite>
|
|
218
|
-
);
|
|
219
|
-
};
|
|
220
|
-
render( <Test /> );
|
|
221
|
-
const { item1, item2, item3 } = getOneDimensionalItems();
|
|
222
|
-
|
|
223
|
-
expect( item2 ).toBeEnabled();
|
|
224
|
-
expect( item2 ).toHaveAttribute( 'aria-disabled', 'true' );
|
|
225
|
-
|
|
226
|
-
await user.tab();
|
|
227
|
-
expect( item1 ).toHaveFocus();
|
|
228
|
-
await user.keyboard( '[ArrowDown]' );
|
|
229
|
-
expect( item2 ).toHaveFocus();
|
|
230
|
-
expect( item3 ).not.toHaveFocus();
|
|
231
|
-
} );
|
|
232
|
-
|
|
233
|
-
test( 'Supports `baseId`', async () => {
|
|
234
|
-
const { item1, item2, item3 } = useOneDimensionalTest( {
|
|
235
|
-
baseId: 'test-id',
|
|
236
|
-
} );
|
|
237
|
-
|
|
238
|
-
expect( item1.id ).toMatch( 'test-id-1' );
|
|
239
|
-
expect( item2.id ).toMatch( 'test-id-2' );
|
|
240
|
-
expect( item3.id ).toMatch( 'test-id-3' );
|
|
241
|
-
} );
|
|
242
|
-
|
|
243
|
-
test( 'Supports `currentId`', async () => {
|
|
244
|
-
const user = userEvent.setup();
|
|
245
|
-
const { item2 } = useOneDimensionalTest( {
|
|
246
|
-
baseId: 'test-id',
|
|
247
|
-
currentId: 'test-id-2',
|
|
248
|
-
} );
|
|
249
|
-
|
|
250
|
-
await user.tab();
|
|
251
|
-
expect( item2 ).toHaveFocus();
|
|
252
|
-
} );
|
|
253
|
-
} );
|
|
254
|
-
|
|
255
|
-
describe.each( [
|
|
256
|
-
[
|
|
257
|
-
'When LTR',
|
|
258
|
-
false,
|
|
259
|
-
{ previous: 'ArrowLeft', next: 'ArrowRight' },
|
|
260
|
-
],
|
|
261
|
-
[ 'When RTL', true, { previous: 'ArrowRight', next: 'ArrowLeft' } ],
|
|
262
|
-
] )( '%s', ( _when, rtl, { previous, next } ) => {
|
|
263
|
-
function useOneDimensionalTest( initialState?: InitialState ) {
|
|
264
|
-
const Test = () => (
|
|
265
|
-
<OneDimensionalTest { ...useStateProps( initialState ) } />
|
|
266
|
-
);
|
|
267
|
-
render( <Test /> );
|
|
268
|
-
return getOneDimensionalItems();
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
function useTwoDimensionalTest( initialState?: InitialState ) {
|
|
272
|
-
const Test = () => (
|
|
273
|
-
<TwoDimensionalTest { ...useStateProps( initialState ) } />
|
|
274
|
-
);
|
|
275
|
-
render( <Test /> );
|
|
276
|
-
return getTwoDimensionalItems();
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
function useShiftTest( shift: boolean ) {
|
|
280
|
-
const Test = () => (
|
|
281
|
-
<ShiftTest { ...useStateProps( { rtl, shift } ) } />
|
|
282
|
-
);
|
|
283
|
-
render( <Test /> );
|
|
284
|
-
return getShiftTestItems();
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
describe( 'In one dimension', () => {
|
|
288
|
-
test( 'All directions work with no orientation', async () => {
|
|
289
|
-
const user = userEvent.setup();
|
|
290
|
-
const { item1, item2, item3 } = useOneDimensionalTest( {
|
|
291
|
-
rtl,
|
|
292
|
-
} );
|
|
293
|
-
|
|
294
|
-
await user.tab();
|
|
295
|
-
expect( item1 ).toHaveFocus();
|
|
296
|
-
await user.keyboard( '[ArrowDown]' );
|
|
297
|
-
expect( item2 ).toHaveFocus();
|
|
298
|
-
await user.keyboard( '[ArrowDown]' );
|
|
299
|
-
expect( item3 ).toHaveFocus();
|
|
300
|
-
await user.keyboard( '[ArrowDown]' );
|
|
301
|
-
expect( item3 ).toHaveFocus();
|
|
302
|
-
await user.keyboard( '[ArrowUp]' );
|
|
303
|
-
expect( item2 ).toHaveFocus();
|
|
304
|
-
await user.keyboard( '[ArrowUp]' );
|
|
305
|
-
expect( item1 ).toHaveFocus();
|
|
306
|
-
await user.keyboard( '[ArrowUp]' );
|
|
307
|
-
expect( item1 ).toHaveFocus();
|
|
308
|
-
await user.keyboard( `[${ next }]` );
|
|
309
|
-
expect( item2 ).toHaveFocus();
|
|
310
|
-
await user.keyboard( `[${ next }]` );
|
|
311
|
-
expect( item3 ).toHaveFocus();
|
|
312
|
-
await user.keyboard( `[${ previous }]` );
|
|
313
|
-
expect( item2 ).toHaveFocus();
|
|
314
|
-
await user.keyboard( `[${ previous }]` );
|
|
315
|
-
expect( item1 ).toHaveFocus();
|
|
316
|
-
await user.keyboard( '[End]' );
|
|
317
|
-
expect( item3 ).toHaveFocus();
|
|
318
|
-
await user.keyboard( '[Home]' );
|
|
319
|
-
expect( item1 ).toHaveFocus();
|
|
320
|
-
await user.keyboard( '[PageDown]' );
|
|
321
|
-
expect( item3 ).toHaveFocus();
|
|
322
|
-
await user.keyboard( '[PageUp]' );
|
|
323
|
-
expect( item1 ).toHaveFocus();
|
|
324
|
-
} );
|
|
325
|
-
|
|
326
|
-
test( 'Only left/right work with horizontal orientation', async () => {
|
|
327
|
-
const user = userEvent.setup();
|
|
328
|
-
const { item1, item2, item3 } = useOneDimensionalTest( {
|
|
329
|
-
rtl,
|
|
330
|
-
orientation: 'horizontal',
|
|
331
|
-
} );
|
|
332
|
-
|
|
333
|
-
await user.tab();
|
|
334
|
-
expect( item1 ).toHaveFocus();
|
|
335
|
-
await user.keyboard( '[ArrowDown]' );
|
|
336
|
-
expect( item1 ).toHaveFocus();
|
|
337
|
-
await user.keyboard( `[${ next }]` );
|
|
338
|
-
expect( item2 ).toHaveFocus();
|
|
339
|
-
await user.keyboard( `[${ next }]` );
|
|
340
|
-
expect( item3 ).toHaveFocus();
|
|
341
|
-
await user.keyboard( '[ArrowUp]' );
|
|
342
|
-
expect( item3 ).toHaveFocus();
|
|
343
|
-
await user.keyboard( `[${ previous }]` );
|
|
344
|
-
expect( item2 ).toHaveFocus();
|
|
345
|
-
await user.keyboard( `[${ previous }]` );
|
|
346
|
-
expect( item1 ).toHaveFocus();
|
|
347
|
-
await user.keyboard( '[End]' );
|
|
348
|
-
expect( item3 ).toHaveFocus();
|
|
349
|
-
await user.keyboard( '[Home]' );
|
|
350
|
-
expect( item1 ).toHaveFocus();
|
|
351
|
-
await user.keyboard( '[PageDown]' );
|
|
352
|
-
expect( item3 ).toHaveFocus();
|
|
353
|
-
await user.keyboard( '[PageUp]' );
|
|
354
|
-
expect( item1 ).toHaveFocus();
|
|
355
|
-
} );
|
|
356
|
-
|
|
357
|
-
test( 'Only up/down work with vertical orientation', async () => {
|
|
358
|
-
const user = userEvent.setup();
|
|
359
|
-
const { item1, item2, item3 } = useOneDimensionalTest( {
|
|
360
|
-
rtl,
|
|
361
|
-
orientation: 'vertical',
|
|
362
|
-
} );
|
|
363
|
-
|
|
364
|
-
await user.tab();
|
|
365
|
-
expect( item1 ).toHaveFocus();
|
|
366
|
-
await user.keyboard( `[${ next }]` );
|
|
367
|
-
expect( item1 ).toHaveFocus();
|
|
368
|
-
await user.keyboard( '[ArrowDown]' );
|
|
369
|
-
expect( item2 ).toHaveFocus();
|
|
370
|
-
await user.keyboard( '[ArrowDown]' );
|
|
371
|
-
expect( item3 ).toHaveFocus();
|
|
372
|
-
await user.keyboard( `[${ previous }]` );
|
|
373
|
-
expect( item3 ).toHaveFocus();
|
|
374
|
-
await user.keyboard( '[ArrowUp]' );
|
|
375
|
-
expect( item2 ).toHaveFocus();
|
|
376
|
-
await user.keyboard( '[ArrowUp]' );
|
|
377
|
-
expect( item1 ).toHaveFocus();
|
|
378
|
-
await user.keyboard( '[End]' );
|
|
379
|
-
expect( item3 ).toHaveFocus();
|
|
380
|
-
await user.keyboard( '[Home]' );
|
|
381
|
-
expect( item1 ).toHaveFocus();
|
|
382
|
-
await user.keyboard( '[PageDown]' );
|
|
383
|
-
expect( item3 ).toHaveFocus();
|
|
384
|
-
await user.keyboard( '[PageUp]' );
|
|
385
|
-
expect( item1 ).toHaveFocus();
|
|
386
|
-
} );
|
|
387
|
-
|
|
388
|
-
test( 'Focus wraps with loop enabled', async () => {
|
|
389
|
-
const user = userEvent.setup();
|
|
390
|
-
const { item1, item2, item3 } = useOneDimensionalTest( {
|
|
391
|
-
rtl,
|
|
392
|
-
loop: true,
|
|
393
|
-
} );
|
|
394
|
-
|
|
395
|
-
await user.tab();
|
|
396
|
-
expect( item1 ).toHaveFocus();
|
|
397
|
-
await user.keyboard( '[ArrowDown]' );
|
|
398
|
-
expect( item2 ).toHaveFocus();
|
|
399
|
-
await user.keyboard( '[ArrowDown]' );
|
|
400
|
-
expect( item3 ).toHaveFocus();
|
|
401
|
-
await user.keyboard( '[ArrowDown]' );
|
|
402
|
-
expect( item1 ).toHaveFocus();
|
|
403
|
-
await user.keyboard( '[ArrowUp]' );
|
|
404
|
-
expect( item3 ).toHaveFocus();
|
|
405
|
-
await user.keyboard( `[${ next }]` );
|
|
406
|
-
expect( item1 ).toHaveFocus();
|
|
407
|
-
await user.keyboard( `[${ previous }]` );
|
|
408
|
-
expect( item3 ).toHaveFocus();
|
|
409
|
-
} );
|
|
410
|
-
} );
|
|
411
|
-
|
|
412
|
-
describe( 'In two dimensions', () => {
|
|
413
|
-
test( 'All directions work as standard', async () => {
|
|
414
|
-
const user = userEvent.setup();
|
|
415
|
-
const {
|
|
416
|
-
itemA1,
|
|
417
|
-
itemA2,
|
|
418
|
-
itemA3,
|
|
419
|
-
itemB1,
|
|
420
|
-
itemB2,
|
|
421
|
-
itemC1,
|
|
422
|
-
itemC3,
|
|
423
|
-
} = useTwoDimensionalTest( { rtl } );
|
|
424
|
-
|
|
425
|
-
await user.tab();
|
|
426
|
-
expect( itemA1 ).toHaveFocus();
|
|
427
|
-
await user.keyboard( '[ArrowUp]' );
|
|
428
|
-
expect( itemA1 ).toHaveFocus();
|
|
429
|
-
await user.keyboard( `[${ previous }]` );
|
|
430
|
-
expect( itemA1 ).toHaveFocus();
|
|
431
|
-
await user.keyboard( '[ArrowDown]' );
|
|
432
|
-
expect( itemB1 ).toHaveFocus();
|
|
433
|
-
await user.keyboard( `[${ next }]` );
|
|
434
|
-
expect( itemB2 ).toHaveFocus();
|
|
435
|
-
await user.keyboard( '[ArrowUp]' );
|
|
436
|
-
expect( itemA2 ).toHaveFocus();
|
|
437
|
-
await user.keyboard( `[${ previous }]` );
|
|
438
|
-
expect( itemA1 ).toHaveFocus();
|
|
439
|
-
await user.keyboard( '[End]' );
|
|
440
|
-
expect( itemA3 ).toHaveFocus();
|
|
441
|
-
await user.keyboard( '[PageDown]' );
|
|
442
|
-
expect( itemC3 ).toHaveFocus();
|
|
443
|
-
await user.keyboard( `[${ next }]` );
|
|
444
|
-
expect( itemC3 ).toHaveFocus();
|
|
445
|
-
await user.keyboard( '[ArrowDown]' );
|
|
446
|
-
expect( itemC3 ).toHaveFocus();
|
|
447
|
-
await user.keyboard( '[Home]' );
|
|
448
|
-
expect( itemC1 ).toHaveFocus();
|
|
449
|
-
await user.keyboard( '[PageUp]' );
|
|
450
|
-
expect( itemA1 ).toHaveFocus();
|
|
451
|
-
await user.keyboard( '{Control>}[End]{/Control}' );
|
|
452
|
-
expect( itemC3 ).toHaveFocus();
|
|
453
|
-
await user.keyboard( '{Control>}[Home]{/Control}' );
|
|
454
|
-
expect( itemA1 ).toHaveFocus();
|
|
455
|
-
} );
|
|
456
|
-
|
|
457
|
-
test( 'Focus wraps around rows/columns with loop enabled', async () => {
|
|
458
|
-
const user = userEvent.setup();
|
|
459
|
-
const { itemA1, itemA2, itemA3, itemB1, itemC1, itemC3 } =
|
|
460
|
-
useTwoDimensionalTest( { rtl, loop: true } );
|
|
461
|
-
|
|
462
|
-
await user.tab();
|
|
463
|
-
expect( itemA1 ).toHaveFocus();
|
|
464
|
-
await user.keyboard( `[${ next }]` );
|
|
465
|
-
expect( itemA2 ).toHaveFocus();
|
|
466
|
-
await user.keyboard( `[${ next }]` );
|
|
467
|
-
expect( itemA3 ).toHaveFocus();
|
|
468
|
-
await user.keyboard( `[${ next }]` );
|
|
469
|
-
expect( itemA1 ).toHaveFocus();
|
|
470
|
-
await user.keyboard( '[ArrowDown]' );
|
|
471
|
-
expect( itemB1 ).toHaveFocus();
|
|
472
|
-
await user.keyboard( '[ArrowDown]' );
|
|
473
|
-
expect( itemC1 ).toHaveFocus();
|
|
474
|
-
await user.keyboard( '[ArrowDown]' );
|
|
475
|
-
expect( itemA1 ).toHaveFocus();
|
|
476
|
-
await user.keyboard( `[${ previous }]` );
|
|
477
|
-
expect( itemA3 ).toHaveFocus();
|
|
478
|
-
await user.keyboard( '[ArrowUp]' );
|
|
479
|
-
expect( itemC3 ).toHaveFocus();
|
|
480
|
-
} );
|
|
481
|
-
|
|
482
|
-
test( 'Focus moves between rows/columns with wrap enabled', async () => {
|
|
483
|
-
const user = userEvent.setup();
|
|
484
|
-
const { itemA1, itemA2, itemA3, itemB1, itemC1, itemC3 } =
|
|
485
|
-
useTwoDimensionalTest( { rtl, wrap: true } );
|
|
486
|
-
|
|
487
|
-
await user.tab();
|
|
488
|
-
expect( itemA1 ).toHaveFocus();
|
|
489
|
-
await user.keyboard( `[${ next }]` );
|
|
490
|
-
expect( itemA2 ).toHaveFocus();
|
|
491
|
-
await user.keyboard( `[${ next }]` );
|
|
492
|
-
expect( itemA3 ).toHaveFocus();
|
|
493
|
-
await user.keyboard( `[${ next }]` );
|
|
494
|
-
expect( itemB1 ).toHaveFocus();
|
|
495
|
-
await user.keyboard( '[ArrowDown]' );
|
|
496
|
-
expect( itemC1 ).toHaveFocus();
|
|
497
|
-
await user.keyboard( '[ArrowDown]' );
|
|
498
|
-
expect( itemA2 ).toHaveFocus();
|
|
499
|
-
await user.keyboard( `[${ previous }]` );
|
|
500
|
-
expect( itemA1 ).toHaveFocus();
|
|
501
|
-
await user.keyboard( `[${ previous }]` );
|
|
502
|
-
expect( itemA1 ).toHaveFocus();
|
|
503
|
-
await user.keyboard( '[ArrowUp]' );
|
|
504
|
-
expect( itemA1 ).toHaveFocus();
|
|
505
|
-
await user.keyboard( '{Control>}[End]{/Control}' );
|
|
506
|
-
expect( itemC3 ).toHaveFocus();
|
|
507
|
-
await user.keyboard( `[${ next }]` );
|
|
508
|
-
expect( itemC3 ).toHaveFocus();
|
|
509
|
-
await user.keyboard( '[ArrowDown]' );
|
|
510
|
-
expect( itemC3 ).toHaveFocus();
|
|
511
|
-
} );
|
|
512
|
-
|
|
513
|
-
test( 'Focus wraps around start/end with loop and wrap enabled', async () => {
|
|
514
|
-
const user = userEvent.setup();
|
|
515
|
-
const { itemA1, itemC3 } = useTwoDimensionalTest( {
|
|
516
|
-
rtl,
|
|
517
|
-
loop: true,
|
|
518
|
-
wrap: true,
|
|
519
|
-
} );
|
|
520
|
-
|
|
521
|
-
await user.tab();
|
|
522
|
-
expect( itemA1 ).toHaveFocus();
|
|
523
|
-
await user.keyboard( `[${ previous }]` );
|
|
524
|
-
expect( itemC3 ).toHaveFocus();
|
|
525
|
-
await user.keyboard( '[ArrowDown]' );
|
|
526
|
-
expect( itemA1 ).toHaveFocus();
|
|
527
|
-
await user.keyboard( '[ArrowUp]' );
|
|
528
|
-
expect( itemC3 ).toHaveFocus();
|
|
529
|
-
await user.keyboard( `[${ next }]` );
|
|
530
|
-
expect( itemA1 ).toHaveFocus();
|
|
531
|
-
} );
|
|
532
|
-
|
|
533
|
-
test( 'Focus shifts if vertical neighbour unavailable when shift enabled', async () => {
|
|
534
|
-
const user = userEvent.setup();
|
|
535
|
-
const { itemA1, itemB1, itemB2, itemC1 } =
|
|
536
|
-
useShiftTest( true );
|
|
537
|
-
|
|
538
|
-
await user.tab();
|
|
539
|
-
expect( itemA1 ).toHaveFocus();
|
|
540
|
-
await user.keyboard( '[ArrowDown]' );
|
|
541
|
-
expect( itemB1 ).toHaveFocus();
|
|
542
|
-
await user.keyboard( `[${ next }]` );
|
|
543
|
-
expect( itemB2 ).toHaveFocus();
|
|
544
|
-
await user.keyboard( '[ArrowUp]' );
|
|
545
|
-
// A2 doesn't exist
|
|
546
|
-
expect( itemA1 ).toHaveFocus();
|
|
547
|
-
await user.keyboard( '[ArrowDown]' );
|
|
548
|
-
expect( itemB1 ).toHaveFocus();
|
|
549
|
-
await user.keyboard( `[${ next }]` );
|
|
550
|
-
expect( itemB2 ).toHaveFocus();
|
|
551
|
-
await user.keyboard( '[ArrowDown]' );
|
|
552
|
-
// C2 is disabled
|
|
553
|
-
expect( itemC1 ).toHaveFocus();
|
|
554
|
-
} );
|
|
555
|
-
|
|
556
|
-
test( 'Focus does not shift if vertical neighbour unavailable when shift not enabled', async () => {
|
|
557
|
-
const user = userEvent.setup();
|
|
558
|
-
const { itemA1, itemB1, itemB2 } = useShiftTest( false );
|
|
559
|
-
|
|
560
|
-
await user.tab();
|
|
561
|
-
expect( itemA1 ).toHaveFocus();
|
|
562
|
-
await user.keyboard( '[ArrowDown]' );
|
|
563
|
-
expect( itemB1 ).toHaveFocus();
|
|
564
|
-
await user.keyboard( `[${ next }]` );
|
|
565
|
-
expect( itemB2 ).toHaveFocus();
|
|
566
|
-
await user.keyboard( '[ArrowUp]' );
|
|
567
|
-
// A2 doesn't exist
|
|
568
|
-
expect( itemB2 ).toHaveFocus();
|
|
569
|
-
await user.keyboard( '[ArrowDown]' );
|
|
570
|
-
// C2 is disabled
|
|
571
|
-
expect( itemB2 ).toHaveFocus();
|
|
572
|
-
} );
|
|
573
|
-
} );
|
|
574
|
-
} );
|
|
575
|
-
}
|
|
576
|
-
);
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
.components-search-control {
|
|
2
|
-
position: relative;
|
|
3
|
-
|
|
4
|
-
input[type="search"].components-search-control__input {
|
|
5
|
-
@include input-control;
|
|
6
|
-
display: block;
|
|
7
|
-
padding: 0 $grid-unit-60 0 $grid-unit-20;
|
|
8
|
-
background: $gray-100;
|
|
9
|
-
border: none;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: $grid-unit-60;
|
|
12
|
-
|
|
13
|
-
// Unset inherited values.
|
|
14
|
-
margin-left: 0;
|
|
15
|
-
margin-right: 0;
|
|
16
|
-
|
|
17
|
-
/* Fonts smaller than 16px causes mobile safari to zoom. */
|
|
18
|
-
font-size: $mobile-text-min-font-size;
|
|
19
|
-
@include break-small {
|
|
20
|
-
font-size: $default-font-size;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&:focus {
|
|
24
|
-
background: $white;
|
|
25
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) $components-color-accent;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&::placeholder {
|
|
29
|
-
color: $gray-700;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&::-webkit-search-decoration,
|
|
33
|
-
&::-webkit-search-cancel-button,
|
|
34
|
-
&::-webkit-search-results-button,
|
|
35
|
-
&::-webkit-search-results-decoration {
|
|
36
|
-
-webkit-appearance: none;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.is-next-40px-default-size input[type="search"].components-search-control__input {
|
|
41
|
-
height: $grid-unit-50;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.is-size-compact input[type="search"].components-search-control__input {
|
|
45
|
-
height: $grid-unit-40;
|
|
46
|
-
padding-left: $grid-unit-10;
|
|
47
|
-
padding-right: $grid-unit-40;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.components-search-control__icon {
|
|
53
|
-
position: absolute;
|
|
54
|
-
right: ( $grid-unit-60 - $icon-size ) * 0.5;
|
|
55
|
-
top: 50%;
|
|
56
|
-
transform: translateY(-50%);
|
|
57
|
-
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
|
|
62
|
-
width: $icon-size;
|
|
63
|
-
|
|
64
|
-
.is-size-compact & {
|
|
65
|
-
right: $grid-unit-05;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.components-search-control__input-wrapper {
|
|
70
|
-
position: relative;
|
|
71
|
-
}
|
|
File without changes
|