@wordpress/components 25.8.6 → 25.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/CONTRIBUTING.md +4 -4
- package/README.md +2 -7
- package/build/alignment-matrix-control/cell.js +4 -4
- package/build/alignment-matrix-control/cell.js.map +1 -1
- package/build/alignment-matrix-control/icon.js +4 -4
- package/build/alignment-matrix-control/icon.js.map +1 -1
- package/build/alignment-matrix-control/index.js +5 -4
- package/build/alignment-matrix-control/index.js.map +1 -1
- package/build/angle-picker-control/angle-circle.js +4 -3
- package/build/angle-picker-control/angle-circle.js.map +1 -1
- package/build/angle-picker-control/index.js +7 -6
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/angle-picker-control/styles/angle-picker-control-styles.js +7 -7
- package/build/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.js +6 -5
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.native.js +9 -8
- package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build/autocomplete/background-view.android.js +2 -2
- package/build/autocomplete/background-view.android.js.map +1 -1
- package/build/autocomplete/background-view.ios.js +2 -2
- package/build/autocomplete/background-view.ios.js.map +1 -1
- package/build/autocomplete/index.js +4 -3
- package/build/autocomplete/index.js.map +1 -1
- package/build/autocomplete/types.js.map +1 -1
- package/build/base-control/index.js +8 -8
- package/build/base-control/index.js.map +1 -1
- package/build/base-control/index.native.js +3 -3
- package/build/base-control/index.native.js.map +1 -1
- package/build/base-control/styles/base-control-styles.js +9 -9
- package/build/base-control/styles/base-control-styles.js.map +1 -1
- package/build/border-box-control/border-box-control/component.js +11 -10
- package/build/border-box-control/border-box-control/component.js.map +1 -1
- package/build/border-box-control/border-box-control/hook.js +1 -1
- 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 +5 -5
- 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 +1 -1
- 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 +9 -8
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build/border-control/border-control/component.js +10 -10
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control/hook.js +1 -1
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/border-control/border-control-dropdown/component.js +13 -13
- package/build/border-control/border-control-dropdown/component.js.map +1 -1
- package/build/border-control/border-control-dropdown/hook.js +1 -1
- package/build/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build/border-control/border-control-style-picker/component.js +8 -8
- package/build/border-control/border-control-style-picker/component.js.map +1 -1
- package/build/border-control/border-control-style-picker/hook.js +1 -1
- package/build/border-control/border-control-style-picker/hook.js.map +1 -1
- package/build/border-control/styles.js +17 -17
- package/build/border-control/styles.js.map +1 -1
- package/build/box-control/all-input-control.js +2 -2
- package/build/box-control/all-input-control.js.map +1 -1
- package/build/box-control/axial-input-controls.js +3 -3
- package/build/box-control/axial-input-controls.js.map +1 -1
- package/build/box-control/icon.js +6 -6
- package/build/box-control/icon.js.map +1 -1
- package/build/box-control/index.js +12 -11
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/input-controls.js +4 -4
- package/build/box-control/input-controls.js.map +1 -1
- package/build/box-control/linked-button.js +3 -3
- package/build/box-control/linked-button.js.map +1 -1
- package/build/box-control/unit-control.js +8 -8
- package/build/box-control/unit-control.js.map +1 -1
- package/build/button/deprecated.js +3 -2
- package/build/button/deprecated.js.map +1 -1
- package/build/button/index.js +24 -11
- package/build/button/index.js.map +1 -1
- package/build/button/index.native.js +9 -8
- package/build/button/index.native.js.map +1 -1
- package/build/button/types.js.map +1 -1
- package/build/button-group/index.js +3 -2
- package/build/button-group/index.js.map +1 -1
- package/build/card/card/component.js +10 -9
- package/build/card/card/component.js.map +1 -1
- package/build/card/card/hook.js +1 -1
- package/build/card/card/hook.js.map +1 -1
- package/build/card/card-body/component.js +4 -4
- package/build/card/card-body/component.js.map +1 -1
- package/build/card/card-body/hook.js +1 -1
- package/build/card/card-body/hook.js.map +1 -1
- package/build/card/card-divider/component.js +3 -3
- package/build/card/card-divider/component.js.map +1 -1
- package/build/card/card-divider/hook.js +1 -1
- package/build/card/card-divider/hook.js.map +1 -1
- package/build/card/card-footer/component.js +3 -3
- package/build/card/card-footer/component.js.map +1 -1
- package/build/card/card-footer/hook.js +1 -1
- package/build/card/card-footer/hook.js.map +1 -1
- package/build/card/card-header/component.js +3 -3
- package/build/card/card-header/component.js.map +1 -1
- package/build/card/card-header/hook.js +1 -1
- package/build/card/card-header/hook.js.map +1 -1
- package/build/card/card-media/component.js +3 -3
- package/build/card/card-media/component.js.map +1 -1
- package/build/card/card-media/hook.js +1 -1
- package/build/card/card-media/hook.js.map +1 -1
- package/build/checkbox-control/index.js +8 -7
- package/build/checkbox-control/index.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-actions.js +4 -4
- package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-option-group.js +2 -2
- package/build/circular-option-picker/circular-option-picker-option-group.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-option.js +16 -21
- package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker.js +10 -9
- package/build/circular-option-picker/circular-option-picker.js.map +1 -1
- package/build/circular-option-picker/types.js.map +1 -1
- package/build/clipboard-button/index.js +3 -2
- package/build/clipboard-button/index.js.map +1 -1
- package/build/color-control/index.native.js +2 -2
- package/build/color-control/index.native.js.map +1 -1
- package/build/color-indicator/index.js +3 -2
- package/build/color-indicator/index.js.map +1 -1
- package/build/color-indicator/index.native.js +14 -14
- package/build/color-indicator/index.native.js.map +1 -1
- package/build/color-palette/index.js +22 -21
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/index.native.js +14 -13
- package/build/color-palette/index.native.js.map +1 -1
- package/build/color-picker/color-copy-button.js +9 -9
- package/build/color-picker/color-copy-button.js.map +1 -1
- package/build/color-picker/color-input.js +4 -4
- package/build/color-picker/color-input.js.map +1 -1
- package/build/color-picker/component.js +10 -9
- package/build/color-picker/component.js.map +1 -1
- package/build/color-picker/hex-input.js +4 -4
- package/build/color-picker/hex-input.js.map +1 -1
- package/build/color-picker/hsl-input.js +5 -5
- package/build/color-picker/hsl-input.js.map +1 -1
- package/build/color-picker/hsv-color-picker.native.js +5 -4
- package/build/color-picker/hsv-color-picker.native.js.map +1 -1
- package/build/color-picker/hue-picker.native.js +6 -5
- package/build/color-picker/hue-picker.native.js.map +1 -1
- package/build/color-picker/index.native.js +12 -11
- package/build/color-picker/index.native.js.map +1 -1
- package/build/color-picker/input-with-slider.js +6 -6
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/color-picker/legacy-adapter.js +2 -2
- package/build/color-picker/legacy-adapter.js.map +1 -1
- package/build/color-picker/picker.js +3 -2
- package/build/color-picker/picker.js.map +1 -1
- package/build/color-picker/rgb-input.js +5 -5
- package/build/color-picker/rgb-input.js.map +1 -1
- package/build/color-picker/saturation-picker.native.js +7 -6
- package/build/color-picker/saturation-picker.native.js.map +1 -1
- package/build/color-picker/styles.js +9 -9
- package/build/color-picker/styles.js.map +1 -1
- package/build/color-picker/types.js.map +1 -1
- package/build/combobox-control/index.js +9 -8
- package/build/combobox-control/index.js.map +1 -1
- package/build/combobox-control/styles.js +3 -3
- package/build/combobox-control/styles.js.map +1 -1
- package/build/confirm-dialog/component.js +8 -7
- package/build/confirm-dialog/component.js.map +1 -1
- package/build/context/constants.js.map +1 -0
- package/build/{ui/context → context}/context-connect.js +1 -1
- package/build/context/context-connect.js.map +1 -0
- package/build/{ui/context → context}/context-system-provider.js +4 -3
- package/build/context/context-system-provider.js.map +1 -0
- package/build/context/get-styled-class-name-from-key.js.map +1 -0
- package/build/context/index.js.map +1 -0
- package/build/{ui/context → context}/use-context-system.js +1 -1
- package/build/context/use-context-system.js.map +1 -0
- package/build/context/utils.js.map +1 -0
- package/build/context/wordpress-component.js.map +1 -0
- package/build/custom-gradient-picker/gradient-bar/control-points.js +14 -13
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/index.js +7 -6
- package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build/custom-gradient-picker/index.js +8 -8
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/index.native.js +6 -5
- package/build/custom-gradient-picker/index.native.js.map +1 -1
- package/build/custom-select-control/index.js +20 -18
- package/build/custom-select-control/index.js.map +1 -1
- package/build/dashicon/index.js +2 -2
- package/build/dashicon/index.js.map +1 -1
- package/build/dashicon/index.native.js +2 -2
- package/build/dashicon/index.native.js.map +1 -1
- package/build/date-time/date/index.js +10 -9
- package/build/date-time/date/index.js.map +1 -1
- package/build/date-time/date/styles.js +7 -7
- package/build/date-time/date/styles.js.map +1 -1
- package/build/date-time/date-time/index.js +4 -3
- package/build/date-time/date-time/index.js.map +1 -1
- package/build/date-time/time/index.js +25 -20
- package/build/date-time/time/index.js.map +1 -1
- package/build/date-time/time/styles.js +27 -36
- package/build/date-time/time/styles.js.map +1 -1
- package/build/date-time/time/timezone.js +3 -3
- package/build/date-time/time/timezone.js.map +1 -1
- package/build/dimension-control/index.js +3 -3
- package/build/dimension-control/index.js.map +1 -1
- package/build/disabled/index.js +3 -2
- package/build/disabled/index.js.map +1 -1
- package/build/disabled/index.native.js +2 -2
- package/build/disabled/index.native.js.map +1 -1
- package/build/divider/component.js +3 -3
- package/build/divider/component.js.map +1 -1
- package/build/divider/styles.js +6 -6
- package/build/divider/styles.js.map +1 -1
- package/build/divider/types.js.map +1 -1
- package/build/draggable/index.js +4 -3
- package/build/draggable/index.js.map +1 -1
- package/build/draggable/index.native.js +6 -5
- package/build/draggable/index.native.js.map +1 -1
- package/build/drop-zone/index.js +8 -7
- package/build/drop-zone/index.js.map +1 -1
- package/build/dropdown/dropdown-content-wrapper.js +3 -3
- package/build/dropdown/dropdown-content-wrapper.js.map +1 -1
- package/build/dropdown/index.js +5 -4
- package/build/dropdown/index.js.map +1 -1
- package/build/dropdown/index.native.js +2 -1
- package/build/dropdown/index.native.js.map +1 -1
- package/build/dropdown/styles.js +3 -3
- package/build/dropdown/styles.js.map +1 -1
- package/build/dropdown-menu/index.js +6 -6
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/dropdown-menu/index.native.js +6 -6
- package/build/dropdown-menu/index.native.js.map +1 -1
- package/build/dropdown-menu/types.js.map +1 -1
- package/build/dropdown-menu-v2/index.js +28 -27
- package/build/dropdown-menu-v2/index.js.map +1 -1
- package/build/dropdown-menu-v2/styles.js +17 -17
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/dropdown-menu-v2/types.js.map +1 -1
- package/build/duotone-picker/color-list-picker/index.js +10 -9
- package/build/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build/duotone-picker/custom-duotone-bar.js +2 -2
- package/build/duotone-picker/custom-duotone-bar.js.map +1 -1
- package/build/duotone-picker/duotone-picker.js +16 -11
- package/build/duotone-picker/duotone-picker.js.map +1 -1
- package/build/duotone-picker/duotone-swatch.js +3 -3
- package/build/duotone-picker/duotone-swatch.js.map +1 -1
- package/build/elevation/component.js +3 -3
- package/build/elevation/component.js.map +1 -1
- package/build/elevation/hook.js +5 -5
- package/build/elevation/hook.js.map +1 -1
- package/build/external-link/index.js +5 -4
- package/build/external-link/index.js.map +1 -1
- package/build/external-link/index.native.js +3 -3
- package/build/external-link/index.native.js.map +1 -1
- package/build/flex/flex/component.js +4 -4
- package/build/flex/flex/component.js.map +1 -1
- package/build/flex/flex/hook.js +4 -4
- package/build/flex/flex/hook.js.map +1 -1
- package/build/flex/flex-block/component.js +3 -3
- package/build/flex/flex-block/component.js.map +1 -1
- package/build/flex/flex-block/hook.js +1 -1
- package/build/flex/flex-block/hook.js.map +1 -1
- package/build/flex/flex-item/component.js +3 -3
- 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/types.js.map +1 -1
- package/build/focal-point-picker/controls.js +5 -5
- package/build/focal-point-picker/controls.js.map +1 -1
- package/build/focal-point-picker/focal-point.js +2 -2
- package/build/focal-point-picker/focal-point.js.map +1 -1
- package/build/focal-point-picker/focal-point.native.js +4 -4
- package/build/focal-point-picker/focal-point.native.js.map +1 -1
- package/build/focal-point-picker/grid.js +6 -6
- package/build/focal-point-picker/grid.js.map +1 -1
- package/build/focal-point-picker/index.js +9 -8
- package/build/focal-point-picker/index.js.map +1 -1
- package/build/focal-point-picker/index.native.js +13 -12
- package/build/focal-point-picker/index.native.js.map +1 -1
- package/build/focal-point-picker/media.js +4 -4
- package/build/focal-point-picker/media.js.map +1 -1
- package/build/focal-point-picker/tooltip/index.native.js +8 -7
- package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build/focusable-iframe/index.js +2 -2
- package/build/focusable-iframe/index.js.map +1 -1
- package/build/font-size-picker/font-size-picker-select.js +2 -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 +3 -3
- package/build/font-size-picker/font-size-picker-toggle-group.js.map +1 -1
- package/build/font-size-picker/index.js +18 -17
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +12 -11
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/font-size-picker/styles.js +7 -7
- package/build/font-size-picker/styles.js.map +1 -1
- package/build/footer-message-control/index.native.js +2 -1
- package/build/footer-message-control/index.native.js.map +1 -1
- package/build/form-file-upload/index.js +4 -3
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-toggle/index.js +5 -5
- package/build/form-toggle/index.js.map +1 -1
- package/build/form-token-field/index.js +12 -11
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/styles.js +3 -3
- package/build/form-token-field/styles.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +6 -5
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/form-token-field/token-input.js +3 -2
- package/build/form-token-field/token-input.js.map +1 -1
- package/build/form-token-field/token.js +6 -6
- package/build/form-token-field/token.js.map +1 -1
- package/build/gradient-picker/index.js +16 -15
- package/build/gradient-picker/index.js.map +1 -1
- package/build/grid/component.js +3 -3
- package/build/grid/component.js.map +1 -1
- package/build/grid/hook.js +3 -3
- package/build/grid/hook.js.map +1 -1
- package/build/grid/types.js.map +1 -1
- package/build/guide/icons.js +3 -3
- package/build/guide/icons.js.map +1 -1
- package/build/guide/index.js +10 -9
- package/build/guide/index.js.map +1 -1
- package/build/guide/page-control.js +5 -5
- package/build/guide/page-control.js.map +1 -1
- package/build/guide/page.js +2 -1
- package/build/guide/page.js.map +1 -1
- package/build/h-stack/component.js +3 -3
- package/build/h-stack/component.js.map +1 -1
- package/build/h-stack/hook.js +4 -4
- package/build/h-stack/hook.js.map +1 -1
- package/build/heading/component.js +3 -3
- package/build/heading/component.js.map +1 -1
- package/build/heading/hook.js +2 -2
- package/build/heading/hook.js.map +1 -1
- package/build/higher-order/navigate-regions/index.js +3 -2
- package/build/higher-order/navigate-regions/index.js.map +1 -1
- package/build/higher-order/with-constrained-tabbing/index.js +3 -3
- package/build/higher-order/with-constrained-tabbing/index.js.map +1 -1
- package/build/higher-order/with-fallback-styles/index.js +4 -3
- package/build/higher-order/with-fallback-styles/index.js.map +1 -1
- package/build/higher-order/with-filters/index.js +2 -1
- package/build/higher-order/with-filters/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.js +3 -2
- package/build/higher-order/with-focus-outside/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.native.js +4 -3
- package/build/higher-order/with-focus-outside/index.native.js.map +1 -1
- package/build/higher-order/with-focus-return/index.js +3 -2
- package/build/higher-order/with-focus-return/index.js.map +1 -1
- package/build/higher-order/with-notices/index.js +5 -4
- package/build/higher-order/with-notices/index.js.map +1 -1
- package/build/higher-order/with-spoken-messages/index.js +5 -5
- package/build/higher-order/with-spoken-messages/index.js.map +1 -1
- package/build/input-control/backdrop.js +2 -1
- package/build/input-control/backdrop.js.map +1 -1
- package/build/input-control/index.js +34 -31
- package/build/input-control/index.js.map +1 -1
- package/build/input-control/input-base.js +30 -27
- package/build/input-control/input-base.js.map +1 -1
- package/build/input-control/input-field.js +4 -3
- package/build/input-control/input-field.js.map +1 -1
- package/build/input-control/input-prefix-wrapper.js +3 -3
- package/build/input-control/input-prefix-wrapper.js.map +1 -1
- package/build/input-control/input-suffix-wrapper.js +3 -3
- package/build/input-control/input-suffix-wrapper.js.map +1 -1
- package/build/input-control/label.js +3 -3
- package/build/input-control/label.js.map +1 -1
- package/build/input-control/styles/input-control-styles.js +35 -35
- 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 +2 -1
- package/build/isolated-event-container/index.js.map +1 -1
- package/build/item-group/item/component.js +4 -4
- package/build/item-group/item/component.js.map +1 -1
- package/build/item-group/item/hook.js +1 -1
- package/build/item-group/item/hook.js.map +1 -1
- package/build/item-group/item-group/component.js +4 -4
- package/build/item-group/item-group/component.js.map +1 -1
- package/build/item-group/item-group/hook.js +1 -1
- package/build/item-group/item-group/hook.js.map +1 -1
- package/build/keyboard-shortcuts/index.js +4 -3
- package/build/keyboard-shortcuts/index.js.map +1 -1
- package/build/menu-group/index.js +5 -4
- package/build/menu-group/index.js.map +1 -1
- package/build/menu-item/index.js +9 -8
- package/build/menu-item/index.js.map +1 -1
- package/build/menu-items-choice/index.js +3 -3
- package/build/menu-items-choice/index.js.map +1 -1
- package/build/mobile/audio-player/index.native.js +15 -14
- package/build/mobile/audio-player/index.native.js.map +1 -1
- package/build/mobile/badge/index.native.js +3 -3
- package/build/mobile/badge/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +8 -7
- 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 +7 -6
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
- package/build/mobile/bottom-sheet/button.native.js +4 -4
- package/build/mobile/bottom-sheet/button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cell.native.js +22 -21
- package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/chevron-back.native.js +3 -3
- package/build/mobile/bottom-sheet/chevron-back.native.js.map +1 -1
- package/build/mobile/bottom-sheet/color-cell.native.js +4 -4
- package/build/mobile/bottom-sheet/color-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cycle-picker-cell.native.js +2 -2
- package/build/mobile/bottom-sheet/cycle-picker-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/footer-message-cell.native.js +2 -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 +2 -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 +15 -14
- package/build/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js +3 -2
- package/build/mobile/bottom-sheet/keyboard-avoiding-view.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +5 -5
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/lock-icon/index.native.js +2 -2
- package/build/mobile/bottom-sheet/lock-icon/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/action-button.native.js +3 -3
- 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 +5 -5
- 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 +9 -9
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js +2 -2
- package/build/mobile/bottom-sheet/nav-bar/heading.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/index.native.js +2 -2
- package/build/mobile/bottom-sheet/nav-bar/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/picker-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/picker-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/radio-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/radio-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-cell.native.js +9 -8
- package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-text-input.native.js +6 -5
- package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
- package/build/mobile/bottom-sheet/ripple.native.js +4 -4
- package/build/mobile/bottom-sheet/ripple.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js +8 -7
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js +7 -7
- package/build/mobile/bottom-sheet/stepper-cell/stepper.android.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js +7 -7
- package/build/mobile/bottom-sheet/stepper-cell/stepper.ios.js.map +1 -1
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js +3 -2
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/switch-cell.native.js +3 -3
- package/build/mobile/bottom-sheet/switch-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet-select-control/index.native.js +9 -8
- package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet-text-control/index.native.js +10 -9
- package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
- package/build/mobile/color-settings/gradient-picker-screen.native.js +3 -3
- package/build/mobile/color-settings/gradient-picker-screen.native.js.map +1 -1
- package/build/mobile/color-settings/index.native.js +7 -6
- package/build/mobile/color-settings/index.native.js.map +1 -1
- package/build/mobile/color-settings/palette.screen.native.js +19 -18
- package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build/mobile/color-settings/picker-screen.native.js +3 -2
- package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
- package/build/mobile/cycle-select-control/index.native.js +2 -1
- package/build/mobile/cycle-select-control/index.native.js.map +1 -1
- package/build/mobile/dashicons/index.native.js +4 -4
- package/build/mobile/dashicons/index.native.js.map +1 -1
- package/build/mobile/focal-point-settings-panel/index.native.js +7 -6
- package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
- package/build/mobile/global-styles-context/index.native.js +2 -1
- package/build/mobile/global-styles-context/index.native.js.map +1 -1
- package/build/mobile/gradient/index.native.js +8 -7
- package/build/mobile/gradient/index.native.js.map +1 -1
- package/build/mobile/gridicons/index.native.js +4 -4
- package/build/mobile/gridicons/index.native.js.map +1 -1
- package/build/mobile/html-text-input/index.native.js +7 -6
- package/build/mobile/html-text-input/index.native.js.map +1 -1
- package/build/mobile/image/icon-customize.native.js +3 -3
- package/build/mobile/image/icon-customize.native.js.map +1 -1
- package/build/mobile/image/icon-retry.native.js +4 -4
- package/build/mobile/image/icon-retry.native.js.map +1 -1
- package/build/mobile/image/image-editing-button.native.js +6 -6
- package/build/mobile/image/image-editing-button.native.js.map +1 -1
- package/build/mobile/image/index.native.js +15 -14
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/mobile/inserter-button/index.native.js +9 -8
- package/build/mobile/inserter-button/index.native.js.map +1 -1
- package/build/mobile/inserter-button/sparkles.js +3 -3
- package/build/mobile/inserter-button/sparkles.js.map +1 -1
- package/build/mobile/keyboard-avoiding-view/index.ios.js +4 -3
- package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js +3 -3
- package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.ios.js +5 -4
- package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build/mobile/link-picker/index.native.js +11 -10
- package/build/mobile/link-picker/index.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-results.native.js +7 -6
- package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-screen.native.js +3 -2
- package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
- package/build/mobile/link-settings/image-link-destinations-screen.native.js +8 -8
- package/build/mobile/link-settings/image-link-destinations-screen.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +11 -10
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/mobile/link-settings/link-rel.native.js +3 -3
- package/build/mobile/link-settings/link-rel.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-navigation.native.js +8 -7
- package/build/mobile/link-settings/link-settings-navigation.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-screen.native.js +3 -2
- package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
- package/build/mobile/media-edit/index.native.js +2 -1
- package/build/mobile/media-edit/index.native.js.map +1 -1
- package/build/mobile/picker/index.android.js +8 -7
- package/build/mobile/picker/index.android.js.map +1 -1
- package/build/mobile/picker/index.ios.js +3 -2
- package/build/mobile/picker/index.ios.js.map +1 -1
- package/build/mobile/segmented-control/index.native.js +12 -11
- package/build/mobile/segmented-control/index.native.js.map +1 -1
- package/build/modal/aria-helper.js +17 -28
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +24 -16
- package/build/modal/index.js.map +1 -1
- package/build/modal/types.js.map +1 -1
- package/build/navigable-container/container.js +3 -2
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigable-container/menu.js +2 -1
- package/build/navigable-container/menu.js.map +1 -1
- package/build/navigable-container/tabbable.js +2 -1
- package/build/navigable-container/tabbable.js.map +1 -1
- package/build/navigable-container/types.js.map +1 -1
- package/build/navigation/back-button/index.js +4 -3
- package/build/navigation/back-button/index.js.map +1 -1
- package/build/navigation/group/index.js +7 -6
- package/build/navigation/group/index.js.map +1 -1
- package/build/navigation/index.js +5 -4
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/base-content.js +3 -3
- package/build/navigation/item/base-content.js.map +1 -1
- package/build/navigation/item/base.js +3 -2
- package/build/navigation/item/base.js.map +1 -1
- package/build/navigation/item/index.js +6 -6
- package/build/navigation/item/index.js.map +1 -1
- package/build/navigation/menu/index.js +9 -8
- package/build/navigation/menu/index.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +3 -2
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/navigation/menu/menu-title.js +8 -7
- package/build/navigation/menu/menu-title.js.map +1 -1
- package/build/navigation/menu/search-no-results-found.js +2 -2
- package/build/navigation/menu/search-no-results-found.js.map +1 -1
- package/build/navigation/styles/navigation-styles.js +13 -13
- package/build/navigation/styles/navigation-styles.js.map +1 -1
- package/build/navigator/navigator-back-button/component.js +3 -3
- package/build/navigator/navigator-back-button/component.js.map +1 -1
- package/build/navigator/navigator-back-button/hook.js +1 -1
- package/build/navigator/navigator-back-button/hook.js.map +1 -1
- package/build/navigator/navigator-button/component.js +3 -3
- package/build/navigator/navigator-button/component.js.map +1 -1
- package/build/navigator/navigator-button/hook.js +1 -1
- package/build/navigator/navigator-button/hook.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +6 -5
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +7 -6
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/navigator-to-parent-button/component.js +3 -3
- package/build/navigator/navigator-to-parent-button/component.js.map +1 -1
- package/build/notice/index.js +8 -7
- package/build/notice/index.js.map +1 -1
- package/build/notice/index.native.js +7 -6
- package/build/notice/index.native.js.map +1 -1
- package/build/notice/list.js +3 -3
- package/build/notice/list.js.map +1 -1
- package/build/notice/list.native.js +4 -3
- package/build/notice/list.native.js.map +1 -1
- package/build/number-control/index.js +32 -30
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/styles/number-control-styles.js +5 -5
- package/build/number-control/styles/number-control-styles.js.map +1 -1
- package/build/palette-edit/index.js +28 -27
- package/build/palette-edit/index.js.map +1 -1
- package/build/palette-edit/styles.js +11 -11
- package/build/palette-edit/styles.js.map +1 -1
- package/build/panel/actions.native.js +5 -4
- package/build/panel/actions.native.js.map +1 -1
- package/build/panel/body.js +9 -8
- package/build/panel/body.js.map +1 -1
- package/build/panel/body.native.js +4 -4
- package/build/panel/body.native.js.map +1 -1
- package/build/panel/bottom-separator-cover.native.js +2 -2
- package/build/panel/bottom-separator-cover.native.js.map +1 -1
- package/build/panel/header.js +3 -3
- package/build/panel/header.js.map +1 -1
- package/build/panel/index.js +4 -3
- package/build/panel/index.js.map +1 -1
- package/build/panel/row.js +3 -2
- package/build/panel/row.js.map +1 -1
- package/build/panel/types.js.map +1 -1
- package/build/placeholder/index.js +10 -9
- package/build/placeholder/index.js.map +1 -1
- package/build/popover/index.js +16 -17
- package/build/popover/index.js.map +1 -1
- package/build/private-apis.js +2 -2
- package/build/private-apis.js.map +1 -1
- package/build/progress-bar/index.js +5 -4
- package/build/progress-bar/index.js.map +1 -1
- package/build/query-controls/author-select.js +2 -2
- package/build/query-controls/author-select.js.map +1 -1
- package/build/query-controls/category-select.js +3 -2
- package/build/query-controls/category-select.js.map +1 -1
- package/build/query-controls/index.js +7 -7
- package/build/query-controls/index.js.map +1 -1
- package/build/query-controls/index.native.js +5 -4
- package/build/query-controls/index.native.js.map +1 -1
- package/build/radio-control/index.js +6 -6
- package/build/radio-control/index.js.map +1 -1
- package/build/radio-control/index.native.js +3 -3
- package/build/radio-control/index.native.js.map +1 -1
- package/build/radio-group/index.js +4 -3
- package/build/radio-group/index.js.map +1 -1
- package/build/radio-group/radio/index.js +3 -2
- package/build/radio-group/radio/index.js.map +1 -1
- package/build/range-control/index.js +16 -15
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/index.native.js +3 -2
- package/build/range-control/index.native.js.map +1 -1
- package/build/range-control/input-range.js +2 -1
- package/build/range-control/input-range.js.map +1 -1
- package/build/range-control/mark.js +3 -3
- package/build/range-control/mark.js.map +1 -1
- package/build/range-control/rail.js +5 -5
- package/build/range-control/rail.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +30 -30
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/range-control/tooltip.js +3 -2
- package/build/range-control/tooltip.js.map +1 -1
- package/build/resizable-box/index.js +3 -2
- package/build/resizable-box/index.js.map +1 -1
- package/build/resizable-box/index.native.js +2 -2
- package/build/resizable-box/index.native.js.map +1 -1
- package/build/resizable-box/resize-tooltip/index.js +4 -3
- package/build/resizable-box/resize-tooltip/index.js.map +1 -1
- package/build/resizable-box/resize-tooltip/label.js +4 -3
- package/build/resizable-box/resize-tooltip/label.js.map +1 -1
- package/build/responsive-wrapper/index.js +4 -3
- package/build/responsive-wrapper/index.js.map +1 -1
- package/build/sandbox/index.js +12 -9
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +10 -9
- package/build/sandbox/index.native.js.map +1 -1
- package/build/sandbox/types.js.map +1 -1
- package/build/scrollable/component.js +3 -3
- package/build/scrollable/component.js.map +1 -1
- package/build/scrollable/hook.js +1 -1
- package/build/scrollable/hook.js.map +1 -1
- package/build/search-control/index.js +9 -8
- package/build/search-control/index.js.map +1 -1
- package/build/search-control/index.native.js +14 -13
- package/build/search-control/index.native.js.map +1 -1
- package/build/select-control/chevron-down.js +2 -2
- package/build/select-control/chevron-down.js.map +1 -1
- package/build/select-control/index.js +12 -10
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/index.native.js +2 -1
- package/build/select-control/index.native.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +13 -13
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/select-control/types.js.map +1 -1
- package/build/shortcut/index.js +2 -2
- package/build/shortcut/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/fill.js +9 -10
- package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js +3 -3
- package/build/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +17 -17
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +8 -3
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/use-slot-fills.js +0 -1
- package/build/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/use-slot.js +0 -1
- package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build/slot-fill/context.js +6 -6
- package/build/slot-fill/context.js.map +1 -1
- package/build/slot-fill/fill.js +0 -2
- package/build/slot-fill/fill.js.map +1 -1
- package/build/slot-fill/index.js +26 -21
- package/build/slot-fill/index.js.map +1 -1
- package/build/slot-fill/index.native.js +4 -4
- package/build/slot-fill/index.native.js.map +1 -1
- package/build/slot-fill/provider.js +53 -58
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +17 -10
- package/build/slot-fill/slot.js.map +1 -1
- package/build/slot-fill/types.js.map +1 -0
- package/build/slot-fill/use-slot.js +2 -3
- package/build/slot-fill/use-slot.js.map +1 -1
- package/build/snackbar/index.js +7 -6
- package/build/snackbar/index.js.map +1 -1
- package/build/snackbar/list.js +7 -6
- package/build/snackbar/list.js.map +1 -1
- package/build/spacer/component.js +3 -3
- package/build/spacer/component.js.map +1 -1
- package/build/spacer/hook.js +4 -4
- package/build/spacer/hook.js.map +1 -1
- package/build/spacer/types.js.map +1 -1
- package/build/spinner/index.js +5 -4
- package/build/spinner/index.js.map +1 -1
- package/build/spinner/index.native.js +2 -2
- package/build/spinner/index.native.js.map +1 -1
- package/build/style-provider/index.js +3 -3
- package/build/style-provider/index.js.map +1 -1
- package/build/surface/component.js +3 -3
- package/build/surface/component.js.map +1 -1
- package/build/surface/hook.js +1 -1
- package/build/surface/hook.js.map +1 -1
- package/build/tab-panel/index.js +8 -6
- package/build/tab-panel/index.js.map +1 -1
- package/build/text/component.js +5 -5
- package/build/text/component.js.map +1 -1
- package/build/text/get-line-height.js +1 -1
- package/build/text/get-line-height.js.map +1 -1
- package/build/text/hook.js +15 -15
- package/build/text/hook.js.map +1 -1
- package/build/text/types.js.map +1 -1
- package/build/text-control/index.js +4 -3
- package/build/text-control/index.js.map +1 -1
- package/build/text-control/index.native.js +2 -1
- package/build/text-control/index.native.js.map +1 -1
- package/build/text-highlight/index.js +3 -2
- package/build/text-highlight/index.js.map +1 -1
- package/build/textarea-control/index.js +33 -33
- package/build/textarea-control/index.js.map +1 -1
- package/build/textarea-control/index.native.js +3 -3
- package/build/textarea-control/index.native.js.map +1 -1
- package/build/theme/index.js +2 -1
- package/build/theme/index.js.map +1 -1
- package/build/tip/index.js +4 -4
- package/build/tip/index.js.map +1 -1
- package/build/toggle-control/index.js +9 -9
- package/build/toggle-control/index.js.map +1 -1
- package/build/toggle-control/index.native.js +2 -1
- package/build/toggle-control/index.native.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/as-button-group.js +4 -3
- 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 +9 -6
- 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 +6 -5
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option/component.js +2 -1
- 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 +12 -11
- package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js +3 -2
- package/build/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build/toolbar/toolbar/index.js +6 -5
- package/build/toolbar/toolbar/index.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.js +8 -4
- package/build/toolbar/toolbar/toolbar-container.js.map +1 -1
- package/build/toolbar/toolbar/toolbar-container.native.js +2 -2
- package/build/toolbar/toolbar/toolbar-container.native.js.map +1 -1
- package/build/toolbar/toolbar-button/index.js +6 -5
- package/build/toolbar/toolbar-button/index.js.map +1 -1
- package/build/toolbar/toolbar-button/toolbar-button-container.js +2 -2
- package/build/toolbar/toolbar-button/toolbar-button-container.js.map +1 -1
- package/build/toolbar/toolbar-button/toolbar-button-container.native.js +2 -2
- package/build/toolbar/toolbar-button/toolbar-button-container.native.js.map +1 -1
- package/build/toolbar/toolbar-context/index.js +1 -0
- package/build/toolbar/toolbar-context/index.js.map +1 -1
- package/build/toolbar/toolbar-dropdown-menu/index.js +4 -3
- package/build/toolbar/toolbar-dropdown-menu/index.js.map +1 -1
- package/build/toolbar/toolbar-group/index.js +5 -4
- package/build/toolbar/toolbar-group/index.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js +3 -2
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js +3 -3
- package/build/toolbar/toolbar-group/toolbar-group-collapsed.native.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.js +2 -2
- package/build/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js +2 -2
- package/build/toolbar/toolbar-group/toolbar-group-container.native.js.map +1 -1
- package/build/toolbar/toolbar-item/index.js +8 -4
- package/build/toolbar/toolbar-item/index.js.map +1 -1
- package/build/tools-panel/styles.js +14 -14
- package/build/tools-panel/styles.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +5 -5
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +1 -1
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +14 -14
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tools-panel/tools-panel-header/hook.js +1 -1
- package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-item/component.js +4 -4
- package/build/tools-panel/tools-panel-item/component.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +1 -1
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build/tooltip/index.js +7 -6
- package/build/tooltip/index.js.map +1 -1
- package/build/tooltip/index.native.js +10 -9
- package/build/tooltip/index.native.js.map +1 -1
- package/build/tree-grid/cell.js +3 -2
- package/build/tree-grid/cell.js.map +1 -1
- package/build/tree-grid/index.js +5 -4
- package/build/tree-grid/index.js.map +1 -1
- package/build/tree-grid/item.js +2 -1
- package/build/tree-grid/item.js.map +1 -1
- package/build/tree-grid/roving-tab-index-item.js +2 -1
- package/build/tree-grid/roving-tab-index-item.js.map +1 -1
- package/build/tree-grid/roving-tab-index.js +2 -1
- package/build/tree-grid/roving-tab-index.js.map +1 -1
- package/build/tree-grid/row.js +2 -1
- package/build/tree-grid/row.js.map +1 -1
- package/build/tree-select/index.js +13 -10
- package/build/tree-select/index.js.map +1 -1
- package/build/truncate/component.js +3 -3
- 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/unit-control/index.js +7 -5
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/index.native.js +9 -8
- package/build/unit-control/index.native.js.map +1 -1
- package/build/unit-control/styles/unit-control-styles.js +11 -11
- package/build/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build/unit-control/types.js.map +1 -1
- package/build/unit-control/unit-select-control.js +5 -4
- package/build/unit-control/unit-select-control.js.map +1 -1
- package/build/utils/colors.js +82 -0
- package/build/utils/colors.js.map +1 -1
- package/build/utils/config-values.js +1 -1
- package/build/utils/config-values.js.map +1 -1
- package/build/{ui/utils → utils}/font-size.js +1 -1
- package/build/utils/font-size.js.map +1 -0
- package/build/utils/get-valid-children.js.map +1 -0
- package/build/utils/space.js.map +1 -0
- package/build/utils/types.js.map +1 -1
- package/build/utils/use-deprecated-props.js +3 -2
- package/build/utils/use-deprecated-props.js.map +1 -1
- package/build/utils/use-responsive-value.js.map +1 -0
- package/build/v-stack/component.js +3 -3
- package/build/v-stack/component.js.map +1 -1
- package/build/v-stack/hook.js +1 -1
- package/build/v-stack/hook.js.map +1 -1
- package/build/view/component.js +1 -1
- package/build/view/component.js.map +1 -1
- package/build/visually-hidden/component.js +3 -3
- package/build/visually-hidden/component.js.map +1 -1
- package/build/z-stack/component.js +5 -4
- package/build/z-stack/component.js.map +1 -1
- package/build-module/alignment-matrix-control/cell.js +1 -1
- package/build-module/alignment-matrix-control/cell.js.map +1 -1
- package/build-module/alignment-matrix-control/icon.js +1 -1
- package/build-module/alignment-matrix-control/icon.js.map +1 -1
- package/build-module/alignment-matrix-control/index.js +1 -1
- package/build-module/alignment-matrix-control/index.js.map +1 -1
- package/build-module/angle-picker-control/angle-circle.js +1 -1
- package/build-module/angle-picker-control/angle-circle.js.map +1 -1
- package/build-module/angle-picker-control/index.js +1 -1
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js +7 -7
- package/build-module/angle-picker-control/styles/angle-picker-control-styles.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +1 -1
- package/build-module/autocomplete/autocompleter-ui.native.js +1 -1
- package/build-module/autocomplete/background-view.android.js +1 -1
- package/build-module/autocomplete/background-view.ios.js +1 -1
- package/build-module/autocomplete/index.js +1 -1
- package/build-module/autocomplete/types.js.map +1 -1
- package/build-module/base-control/index.js +1 -1
- package/build-module/base-control/index.js.map +1 -1
- package/build-module/base-control/index.native.js +1 -1
- package/build-module/base-control/styles/base-control-styles.js +9 -9
- package/build-module/base-control/styles/base-control-styles.js.map +1 -1
- package/build-module/border-box-control/border-box-control/component.js +2 -2
- package/build-module/border-box-control/border-box-control/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control/hook.js +1 -1
- package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/component.js +2 -2
- package/build-module/border-box-control/border-box-control-linked-button/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js +2 -2
- package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/component.js +2 -2
- package/build-module/border-box-control/border-box-control-visualizer/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/hook.js +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build-module/border-control/border-control/component.js +2 -2
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/border-control/border-control/hook.js +1 -1
- package/build-module/border-control/border-control/hook.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/component.js +2 -2
- package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/hook.js +1 -1
- package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build-module/border-control/border-control-style-picker/component.js +2 -2
- package/build-module/border-control/border-control-style-picker/component.js.map +1 -1
- package/build-module/border-control/border-control-style-picker/hook.js +1 -1
- package/build-module/border-control/border-control-style-picker/hook.js.map +1 -1
- package/build-module/border-control/styles.js +17 -17
- package/build-module/border-control/styles.js.map +1 -1
- package/build-module/box-control/all-input-control.js +1 -1
- package/build-module/box-control/axial-input-controls.js +1 -1
- package/build-module/box-control/icon.js +1 -1
- package/build-module/box-control/icon.js.map +1 -1
- package/build-module/box-control/index.js +1 -1
- package/build-module/box-control/input-controls.js +1 -1
- package/build-module/box-control/linked-button.js +1 -1
- package/build-module/box-control/unit-control.js +1 -1
- package/build-module/button/deprecated.js +1 -1
- package/build-module/button/index.js +16 -4
- package/build-module/button/index.js.map +1 -1
- package/build-module/button/index.native.js +1 -1
- package/build-module/button/types.js.map +1 -1
- package/build-module/button-group/index.js +1 -1
- package/build-module/button-group/index.js.map +1 -1
- package/build-module/card/card/component.js +3 -3
- package/build-module/card/card/component.js.map +1 -1
- package/build-module/card/card/hook.js +1 -1
- package/build-module/card/card/hook.js.map +1 -1
- package/build-module/card/card-body/component.js +2 -2
- package/build-module/card/card-body/component.js.map +1 -1
- package/build-module/card/card-body/hook.js +1 -1
- package/build-module/card/card-body/hook.js.map +1 -1
- package/build-module/card/card-divider/component.js +2 -2
- package/build-module/card/card-divider/component.js.map +1 -1
- package/build-module/card/card-divider/hook.js +1 -1
- package/build-module/card/card-divider/hook.js.map +1 -1
- package/build-module/card/card-footer/component.js +2 -2
- package/build-module/card/card-footer/component.js.map +1 -1
- package/build-module/card/card-footer/hook.js +1 -1
- package/build-module/card/card-footer/hook.js.map +1 -1
- package/build-module/card/card-header/component.js +2 -2
- package/build-module/card/card-header/component.js.map +1 -1
- package/build-module/card/card-header/hook.js +1 -1
- package/build-module/card/card-header/hook.js.map +1 -1
- package/build-module/card/card-media/component.js +2 -2
- package/build-module/card/card-media/component.js.map +1 -1
- package/build-module/card/card-media/hook.js +1 -1
- package/build-module/card/card-media/hook.js.map +1 -1
- package/build-module/checkbox-control/index.js +1 -1
- package/build-module/checkbox-control/index.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-actions.js +1 -1
- package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-option-group.js +1 -1
- package/build-module/circular-option-picker/circular-option-picker-option.js +8 -14
- package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker.js +1 -1
- package/build-module/circular-option-picker/types.js.map +1 -1
- package/build-module/clipboard-button/index.js +1 -1
- package/build-module/clipboard-button/index.js.map +1 -1
- package/build-module/color-control/index.native.js +1 -1
- package/build-module/color-indicator/index.js +1 -1
- package/build-module/color-indicator/index.js.map +1 -1
- package/build-module/color-indicator/index.native.js +1 -1
- package/build-module/color-palette/index.js +1 -1
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/index.native.js +1 -1
- package/build-module/color-picker/color-copy-button.js +5 -7
- package/build-module/color-picker/color-copy-button.js.map +1 -1
- package/build-module/color-picker/color-input.js +1 -1
- package/build-module/color-picker/component.js +2 -2
- package/build-module/color-picker/component.js.map +1 -1
- package/build-module/color-picker/hex-input.js +2 -2
- package/build-module/color-picker/hex-input.js.map +1 -1
- package/build-module/color-picker/hsl-input.js +1 -1
- package/build-module/color-picker/hsv-color-picker.native.js +1 -1
- package/build-module/color-picker/hue-picker.native.js +1 -1
- package/build-module/color-picker/index.native.js +1 -1
- package/build-module/color-picker/input-with-slider.js +2 -2
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/color-picker/legacy-adapter.js +1 -1
- package/build-module/color-picker/picker.js +1 -1
- package/build-module/color-picker/rgb-input.js +1 -1
- package/build-module/color-picker/saturation-picker.native.js +1 -1
- package/build-module/color-picker/styles.js +9 -9
- package/build-module/color-picker/styles.js.map +1 -1
- package/build-module/color-picker/types.js.map +1 -1
- package/build-module/combobox-control/index.js +1 -1
- package/build-module/combobox-control/styles.js +3 -3
- package/build-module/combobox-control/styles.js.map +1 -1
- package/build-module/confirm-dialog/component.js +2 -2
- package/build-module/confirm-dialog/component.js.map +1 -1
- package/build-module/context/constants.js.map +1 -0
- package/build-module/{ui/context → context}/context-connect.js +1 -1
- package/build-module/context/context-connect.js.map +1 -0
- package/build-module/{ui/context → context}/context-system-provider.js +2 -2
- package/build-module/context/context-system-provider.js.map +1 -0
- package/build-module/context/get-styled-class-name-from-key.js.map +1 -0
- package/build-module/context/index.js.map +1 -0
- package/build-module/{ui/context → context}/use-context-system.js +1 -1
- package/build-module/context/use-context-system.js.map +1 -0
- package/build-module/context/utils.js.map +1 -0
- package/build-module/context/wordpress-component.js.map +1 -0
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/index.js +1 -1
- package/build-module/custom-gradient-picker/index.js +1 -1
- package/build-module/custom-gradient-picker/index.native.js +1 -1
- package/build-module/custom-select-control/index.js +7 -6
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/dashicon/index.js +1 -1
- package/build-module/dashicon/index.js.map +1 -1
- package/build-module/dashicon/index.native.js +1 -1
- package/build-module/date-time/date/index.js +1 -1
- package/build-module/date-time/date/styles.js +7 -7
- package/build-module/date-time/date/styles.js.map +1 -1
- package/build-module/date-time/date-time/index.js +1 -1
- package/build-module/date-time/time/index.js +11 -7
- package/build-module/date-time/time/index.js.map +1 -1
- package/build-module/date-time/time/styles.js +26 -34
- package/build-module/date-time/time/styles.js.map +1 -1
- package/build-module/date-time/time/timezone.js +1 -1
- package/build-module/dimension-control/index.js +1 -1
- package/build-module/disabled/index.js +1 -1
- package/build-module/disabled/index.js.map +1 -1
- package/build-module/disabled/index.native.js +1 -1
- package/build-module/divider/component.js +2 -2
- package/build-module/divider/component.js.map +1 -1
- package/build-module/divider/styles.js +6 -6
- package/build-module/divider/styles.js.map +1 -1
- package/build-module/divider/types.js.map +1 -1
- package/build-module/draggable/index.js +1 -1
- package/build-module/draggable/index.native.js +1 -1
- package/build-module/drop-zone/index.js +1 -1
- package/build-module/drop-zone/index.js.map +1 -1
- package/build-module/dropdown/dropdown-content-wrapper.js +2 -2
- package/build-module/dropdown/dropdown-content-wrapper.js.map +1 -1
- package/build-module/dropdown/index.js +2 -2
- package/build-module/dropdown/index.js.map +1 -1
- package/build-module/dropdown/index.native.js +1 -1
- package/build-module/dropdown/styles.js +3 -3
- package/build-module/dropdown/styles.js.map +1 -1
- package/build-module/dropdown-menu/index.js +2 -2
- package/build-module/dropdown-menu/index.js.map +1 -1
- package/build-module/dropdown-menu/index.native.js +1 -1
- package/build-module/dropdown-menu/types.js.map +1 -1
- package/build-module/dropdown-menu-v2/index.js +2 -2
- package/build-module/dropdown-menu-v2/index.js.map +1 -1
- package/build-module/dropdown-menu-v2/styles.js +17 -17
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/dropdown-menu-v2/types.js.map +1 -1
- package/build-module/duotone-picker/color-list-picker/index.js +1 -1
- package/build-module/duotone-picker/custom-duotone-bar.js +1 -1
- package/build-module/duotone-picker/duotone-picker.js +7 -3
- package/build-module/duotone-picker/duotone-picker.js.map +1 -1
- package/build-module/duotone-picker/duotone-swatch.js +1 -1
- package/build-module/elevation/component.js +2 -2
- package/build-module/elevation/component.js.map +1 -1
- package/build-module/elevation/hook.js +5 -5
- package/build-module/elevation/hook.js.map +1 -1
- package/build-module/external-link/index.js +1 -1
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/external-link/index.native.js +1 -1
- package/build-module/flex/flex/component.js +2 -2
- package/build-module/flex/flex/component.js.map +1 -1
- package/build-module/flex/flex/hook.js +4 -4
- package/build-module/flex/flex/hook.js.map +1 -1
- package/build-module/flex/flex-block/component.js +2 -2
- package/build-module/flex/flex-block/component.js.map +1 -1
- package/build-module/flex/flex-block/hook.js +1 -1
- package/build-module/flex/flex-block/hook.js.map +1 -1
- package/build-module/flex/flex-item/component.js +2 -2
- package/build-module/flex/flex-item/component.js.map +1 -1
- package/build-module/flex/flex-item/hook.js +2 -2
- package/build-module/flex/flex-item/hook.js.map +1 -1
- package/build-module/flex/types.js.map +1 -1
- package/build-module/focal-point-picker/controls.js +1 -1
- package/build-module/focal-point-picker/focal-point.js +1 -1
- package/build-module/focal-point-picker/focal-point.js.map +1 -1
- package/build-module/focal-point-picker/focal-point.native.js +1 -1
- package/build-module/focal-point-picker/grid.js +1 -1
- package/build-module/focal-point-picker/grid.js.map +1 -1
- package/build-module/focal-point-picker/index.js +1 -1
- package/build-module/focal-point-picker/index.js.map +1 -1
- package/build-module/focal-point-picker/index.native.js +1 -1
- package/build-module/focal-point-picker/media.js +1 -1
- package/build-module/focal-point-picker/tooltip/index.native.js +1 -1
- package/build-module/focusable-iframe/index.js +1 -1
- package/build-module/font-size-picker/font-size-picker-select.js +1 -1
- package/build-module/font-size-picker/font-size-picker-toggle-group.js +1 -1
- package/build-module/font-size-picker/index.js +1 -1
- package/build-module/font-size-picker/index.native.js +1 -1
- package/build-module/font-size-picker/styles.js +7 -7
- package/build-module/font-size-picker/styles.js.map +1 -1
- package/build-module/footer-message-control/index.native.js +1 -1
- package/build-module/form-file-upload/index.js +1 -1
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/form-toggle/index.js +1 -1
- package/build-module/form-toggle/index.js.map +1 -1
- package/build-module/form-token-field/index.js +1 -1
- package/build-module/form-token-field/styles.js +3 -3
- package/build-module/form-token-field/styles.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +1 -1
- package/build-module/form-token-field/token-input.js +1 -1
- package/build-module/form-token-field/token-input.js.map +1 -1
- package/build-module/form-token-field/token.js +1 -1
- package/build-module/gradient-picker/index.js +1 -1
- package/build-module/grid/component.js +2 -2
- package/build-module/grid/component.js.map +1 -1
- package/build-module/grid/hook.js +3 -3
- package/build-module/grid/hook.js.map +1 -1
- package/build-module/grid/types.js.map +1 -1
- package/build-module/guide/icons.js +1 -1
- package/build-module/guide/index.js +1 -1
- package/build-module/guide/page-control.js +1 -1
- package/build-module/guide/page.js +1 -1
- package/build-module/guide/page.js.map +1 -1
- package/build-module/h-stack/component.js +2 -2
- package/build-module/h-stack/component.js.map +1 -1
- package/build-module/h-stack/hook.js +3 -3
- package/build-module/h-stack/hook.js.map +1 -1
- package/build-module/heading/component.js +2 -2
- package/build-module/heading/component.js.map +1 -1
- package/build-module/heading/hook.js +2 -2
- package/build-module/heading/hook.js.map +1 -1
- package/build-module/higher-order/navigate-regions/index.js +1 -1
- package/build-module/higher-order/with-constrained-tabbing/index.js +1 -1
- package/build-module/higher-order/with-fallback-styles/index.js +1 -1
- package/build-module/higher-order/with-filters/index.js +1 -1
- package/build-module/higher-order/with-focus-outside/index.js +1 -1
- package/build-module/higher-order/with-focus-outside/index.native.js +1 -1
- package/build-module/higher-order/with-focus-return/index.js +1 -1
- package/build-module/higher-order/with-focus-return/index.js.map +1 -1
- package/build-module/higher-order/with-notices/index.js +1 -1
- package/build-module/higher-order/with-spoken-messages/index.js +4 -4
- package/build-module/higher-order/with-spoken-messages/index.js.map +1 -1
- package/build-module/input-control/backdrop.js +1 -1
- package/build-module/input-control/index.js +30 -28
- package/build-module/input-control/index.js.map +1 -1
- package/build-module/input-control/input-base.js +22 -20
- package/build-module/input-control/input-base.js.map +1 -1
- package/build-module/input-control/input-field.js +1 -1
- package/build-module/input-control/input-field.js.map +1 -1
- package/build-module/input-control/input-prefix-wrapper.js +2 -2
- package/build-module/input-control/input-prefix-wrapper.js.map +1 -1
- package/build-module/input-control/input-suffix-wrapper.js +2 -2
- package/build-module/input-control/input-suffix-wrapper.js.map +1 -1
- package/build-module/input-control/label.js +1 -1
- package/build-module/input-control/label.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +27 -27
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/input-control/types.js.map +1 -1
- package/build-module/isolated-event-container/index.js +1 -1
- package/build-module/item-group/item/component.js +2 -2
- package/build-module/item-group/item/component.js.map +1 -1
- package/build-module/item-group/item/hook.js +1 -1
- package/build-module/item-group/item/hook.js.map +1 -1
- package/build-module/item-group/item-group/component.js +2 -2
- package/build-module/item-group/item-group/component.js.map +1 -1
- package/build-module/item-group/item-group/hook.js +1 -1
- package/build-module/item-group/item-group/hook.js.map +1 -1
- package/build-module/keyboard-shortcuts/index.js +1 -1
- package/build-module/menu-group/index.js +1 -1
- package/build-module/menu-item/index.js +1 -1
- package/build-module/menu-item/index.js.map +1 -1
- package/build-module/menu-items-choice/index.js +1 -1
- package/build-module/mobile/audio-player/index.native.js +1 -1
- package/build-module/mobile/badge/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +1 -1
- package/build-module/mobile/bottom-sheet/button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/chevron-back.native.js +1 -1
- package/build-module/mobile/bottom-sheet/color-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/cycle-picker-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/footer-message-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/footer-message-link/footer-message-link.native.js +1 -1
- package/build-module/mobile/bottom-sheet/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/keyboard-avoiding-view.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/lock-icon/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/action-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/apply-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/heading.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/picker-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/radio-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/range-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/range-text-input.native.js +1 -1
- package/build-module/mobile/bottom-sheet/ripple.native.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/stepper.android.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/stepper.ios.js +1 -1
- package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/switch-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet-select-control/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet-text-control/index.native.js +1 -1
- package/build-module/mobile/color-settings/gradient-picker-screen.native.js +1 -1
- package/build-module/mobile/color-settings/index.native.js +1 -1
- package/build-module/mobile/color-settings/palette.screen.native.js +1 -1
- package/build-module/mobile/color-settings/picker-screen.native.js +1 -1
- package/build-module/mobile/cycle-select-control/index.native.js +1 -1
- package/build-module/mobile/dashicons/index.native.js +1 -1
- package/build-module/mobile/focal-point-settings-panel/index.native.js +1 -1
- package/build-module/mobile/global-styles-context/index.native.js +1 -1
- package/build-module/mobile/gradient/index.native.js +1 -1
- package/build-module/mobile/gridicons/index.native.js +1 -1
- package/build-module/mobile/html-text-input/index.native.js +2 -2
- package/build-module/mobile/html-text-input/index.native.js.map +1 -1
- package/build-module/mobile/image/icon-customize.native.js +1 -1
- package/build-module/mobile/image/icon-retry.native.js +1 -1
- package/build-module/mobile/image/image-editing-button.native.js +1 -1
- package/build-module/mobile/image/index.native.js +1 -1
- package/build-module/mobile/inserter-button/index.native.js +1 -1
- package/build-module/mobile/inserter-button/sparkles.js +1 -1
- package/build-module/mobile/keyboard-avoiding-view/index.ios.js +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +2 -2
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build-module/mobile/link-picker/index.native.js +1 -1
- package/build-module/mobile/link-picker/link-picker-results.native.js +1 -1
- package/build-module/mobile/link-picker/link-picker-screen.native.js +1 -1
- package/build-module/mobile/link-settings/image-link-destinations-screen.native.js +1 -1
- package/build-module/mobile/link-settings/index.native.js +1 -1
- package/build-module/mobile/link-settings/link-rel.native.js +1 -1
- package/build-module/mobile/link-settings/link-settings-navigation.native.js +1 -1
- package/build-module/mobile/link-settings/link-settings-screen.native.js +1 -1
- package/build-module/mobile/media-edit/index.native.js +1 -1
- package/build-module/mobile/picker/index.android.js +1 -1
- package/build-module/mobile/picker/index.ios.js +1 -1
- package/build-module/mobile/segmented-control/index.native.js +1 -1
- package/build-module/modal/aria-helper.js +15 -26
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +13 -6
- package/build-module/modal/index.js.map +1 -1
- package/build-module/modal/types.js.map +1 -1
- package/build-module/navigable-container/container.js +1 -1
- package/build-module/navigable-container/menu.js +1 -1
- package/build-module/navigable-container/tabbable.js +1 -1
- package/build-module/navigable-container/types.js.map +1 -1
- package/build-module/navigation/back-button/index.js +1 -1
- package/build-module/navigation/group/index.js +1 -1
- package/build-module/navigation/index.js +1 -1
- package/build-module/navigation/item/base-content.js +1 -1
- package/build-module/navigation/item/base.js +1 -1
- package/build-module/navigation/item/index.js +1 -1
- package/build-module/navigation/menu/index.js +1 -1
- package/build-module/navigation/menu/menu-title-search.js +1 -1
- package/build-module/navigation/menu/menu-title.js +1 -1
- package/build-module/navigation/menu/search-no-results-found.js +1 -1
- package/build-module/navigation/styles/navigation-styles.js +13 -13
- package/build-module/navigation/styles/navigation-styles.js.map +1 -1
- package/build-module/navigator/navigator-back-button/component.js +2 -2
- package/build-module/navigator/navigator-back-button/component.js.map +1 -1
- package/build-module/navigator/navigator-back-button/hook.js +1 -1
- package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
- package/build-module/navigator/navigator-button/component.js +2 -2
- package/build-module/navigator/navigator-button/component.js.map +1 -1
- package/build-module/navigator/navigator-button/hook.js +1 -1
- package/build-module/navigator/navigator-button/hook.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +3 -3
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +3 -3
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/navigator/navigator-to-parent-button/component.js +2 -2
- package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -1
- package/build-module/notice/index.js +1 -1
- package/build-module/notice/index.native.js +1 -1
- package/build-module/notice/list.js +1 -1
- package/build-module/notice/list.js.map +1 -1
- package/build-module/notice/list.native.js +1 -1
- package/build-module/number-control/index.js +26 -25
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/styles/number-control-styles.js +5 -5
- package/build-module/number-control/styles/number-control-styles.js.map +1 -1
- package/build-module/palette-edit/index.js +1 -1
- package/build-module/palette-edit/styles.js +11 -11
- package/build-module/palette-edit/styles.js.map +1 -1
- package/build-module/panel/actions.native.js +1 -1
- package/build-module/panel/body.js +1 -1
- package/build-module/panel/body.js.map +1 -1
- package/build-module/panel/body.native.js +1 -1
- package/build-module/panel/bottom-separator-cover.native.js +1 -1
- package/build-module/panel/header.js +1 -1
- package/build-module/panel/index.js +1 -1
- package/build-module/panel/row.js +1 -1
- package/build-module/panel/types.js.map +1 -1
- package/build-module/placeholder/index.js +1 -1
- package/build-module/placeholder/index.js.map +1 -1
- package/build-module/popover/index.js +2 -4
- package/build-module/popover/index.js.map +1 -1
- package/build-module/private-apis.js +2 -2
- package/build-module/private-apis.js.map +1 -1
- package/build-module/progress-bar/index.js +1 -1
- package/build-module/progress-bar/index.js.map +1 -1
- package/build-module/query-controls/author-select.js +1 -1
- package/build-module/query-controls/category-select.js +1 -1
- package/build-module/query-controls/index.js +1 -1
- package/build-module/query-controls/index.native.js +1 -1
- package/build-module/radio-control/index.js +1 -1
- package/build-module/radio-control/index.js.map +1 -1
- package/build-module/radio-control/index.native.js +1 -1
- package/build-module/radio-group/index.js +1 -1
- package/build-module/radio-group/radio/index.js +1 -1
- package/build-module/range-control/index.js +2 -2
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/range-control/index.native.js +1 -1
- package/build-module/range-control/input-range.js +1 -1
- package/build-module/range-control/input-range.js.map +1 -1
- package/build-module/range-control/mark.js +1 -1
- package/build-module/range-control/mark.js.map +1 -1
- package/build-module/range-control/rail.js +1 -1
- package/build-module/range-control/rail.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +30 -30
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/range-control/tooltip.js +1 -1
- package/build-module/range-control/tooltip.js.map +1 -1
- package/build-module/resizable-box/index.js +1 -1
- package/build-module/resizable-box/index.native.js +1 -1
- package/build-module/resizable-box/resize-tooltip/index.js +1 -1
- package/build-module/resizable-box/resize-tooltip/label.js +1 -1
- package/build-module/responsive-wrapper/index.js +1 -1
- package/build-module/sandbox/index.js +4 -2
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/sandbox/index.native.js +1 -1
- package/build-module/sandbox/types.js.map +1 -1
- package/build-module/scrollable/component.js +2 -2
- package/build-module/scrollable/component.js.map +1 -1
- package/build-module/scrollable/hook.js +1 -1
- package/build-module/scrollable/hook.js.map +1 -1
- package/build-module/search-control/index.js +1 -1
- package/build-module/search-control/index.js.map +1 -1
- package/build-module/search-control/index.native.js +1 -1
- package/build-module/select-control/chevron-down.js +1 -1
- package/build-module/select-control/index.js +6 -5
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/index.native.js +1 -1
- package/build-module/select-control/styles/select-control-styles.js +13 -13
- package/build-module/select-control/styles/select-control-styles.js.map +1 -1
- package/build-module/select-control/types.js.map +1 -1
- package/build-module/shortcut/index.js +1 -1
- package/build-module/slot-fill/bubbles-virtually/fill.js +8 -10
- package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js +7 -3
- package/build-module/slot-fill/bubbles-virtually/slot-fill-context.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +16 -17
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +7 -3
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js +0 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot-fills.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot.js +0 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build-module/slot-fill/context.js +10 -6
- package/build-module/slot-fill/context.js.map +1 -1
- package/build-module/slot-fill/fill.js +0 -2
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/slot-fill/index.js +17 -15
- package/build-module/slot-fill/index.js.map +1 -1
- package/build-module/slot-fill/index.native.js +1 -1
- package/build-module/slot-fill/provider.js +53 -59
- package/build-module/slot-fill/provider.js.map +1 -1
- package/build-module/slot-fill/slot.js +14 -9
- package/build-module/slot-fill/slot.js.map +1 -1
- package/build-module/slot-fill/types.js.map +1 -0
- package/build-module/slot-fill/use-slot.js +2 -4
- package/build-module/slot-fill/use-slot.js.map +1 -1
- package/build-module/snackbar/index.js +1 -1
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/snackbar/list.js +1 -1
- package/build-module/snackbar/list.js.map +1 -1
- package/build-module/spacer/component.js +2 -2
- package/build-module/spacer/component.js.map +1 -1
- package/build-module/spacer/hook.js +4 -4
- package/build-module/spacer/hook.js.map +1 -1
- package/build-module/spacer/types.js.map +1 -1
- package/build-module/spinner/index.js +1 -1
- package/build-module/spinner/index.js.map +1 -1
- package/build-module/spinner/index.native.js +1 -1
- package/build-module/style-provider/index.js +1 -1
- package/build-module/surface/component.js +2 -2
- package/build-module/surface/component.js.map +1 -1
- package/build-module/surface/hook.js +1 -1
- package/build-module/surface/hook.js.map +1 -1
- package/build-module/tab-panel/index.js +2 -1
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/text/component.js +4 -4
- package/build-module/text/component.js.map +1 -1
- package/build-module/text/get-line-height.js +1 -1
- package/build-module/text/get-line-height.js.map +1 -1
- package/build-module/text/hook.js +8 -8
- package/build-module/text/hook.js.map +1 -1
- package/build-module/text/types.js.map +1 -1
- package/build-module/text-control/index.js +1 -1
- package/build-module/text-control/index.js.map +1 -1
- package/build-module/text-control/index.native.js +1 -1
- package/build-module/text-highlight/index.js +1 -1
- package/build-module/textarea-control/index.js +29 -29
- package/build-module/textarea-control/index.js.map +1 -1
- package/build-module/textarea-control/index.native.js +1 -1
- package/build-module/theme/index.js +1 -1
- package/build-module/theme/index.js.map +1 -1
- package/build-module/tip/index.js +1 -1
- package/build-module/toggle-control/index.js +3 -3
- package/build-module/toggle-control/index.js.map +1 -1
- package/build-module/toggle-control/index.native.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +5 -5
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js +2 -2
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option/component.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +4 -4
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-icon/component.js.map +1 -1
- package/build-module/toolbar/toolbar/index.js +2 -2
- package/build-module/toolbar/toolbar/index.js.map +1 -1
- package/build-module/toolbar/toolbar/toolbar-container.js +5 -4
- package/build-module/toolbar/toolbar/toolbar-container.js.map +1 -1
- package/build-module/toolbar/toolbar/toolbar-container.native.js +1 -1
- package/build-module/toolbar/toolbar-button/index.js +1 -1
- package/build-module/toolbar/toolbar-button/index.js.map +1 -1
- package/build-module/toolbar/toolbar-button/toolbar-button-container.js +1 -1
- package/build-module/toolbar/toolbar-button/toolbar-button-container.native.js +1 -1
- package/build-module/toolbar/toolbar-context/index.js +1 -0
- package/build-module/toolbar/toolbar-context/index.js.map +1 -1
- package/build-module/toolbar/toolbar-dropdown-menu/index.js +1 -1
- package/build-module/toolbar/toolbar-group/index.js +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.js +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-collapsed.native.js +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-container.js +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-container.js.map +1 -1
- package/build-module/toolbar/toolbar-group/toolbar-group-container.native.js +1 -1
- package/build-module/toolbar/toolbar-item/index.js +4 -3
- package/build-module/toolbar/toolbar-item/index.js.map +1 -1
- package/build-module/tools-panel/styles.js +14 -14
- package/build-module/tools-panel/styles.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +2 -2
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel/hook.js +1 -1
- package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +2 -2
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/hook.js +1 -1
- package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/component.js +2 -2
- package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-module/tooltip/index.js +3 -3
- package/build-module/tooltip/index.js.map +1 -1
- package/build-module/tooltip/index.native.js +1 -1
- package/build-module/tree-grid/cell.js +1 -1
- package/build-module/tree-grid/cell.js.map +1 -1
- package/build-module/tree-grid/index.js +1 -1
- package/build-module/tree-grid/index.js.map +1 -1
- package/build-module/tree-grid/item.js +1 -1
- package/build-module/tree-grid/roving-tab-index-item.js +1 -1
- package/build-module/tree-grid/roving-tab-index.js +1 -1
- package/build-module/tree-grid/row.js +1 -1
- package/build-module/tree-grid/row.js.map +1 -1
- package/build-module/tree-select/index.js +12 -10
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/truncate/component.js +2 -2
- package/build-module/truncate/component.js.map +1 -1
- package/build-module/truncate/hook.js +2 -2
- package/build-module/truncate/hook.js.map +1 -1
- package/build-module/unit-control/index.js +4 -3
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/index.native.js +1 -1
- package/build-module/unit-control/styles/unit-control-styles.js +11 -11
- package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build-module/unit-control/types.js.map +1 -1
- package/build-module/unit-control/unit-select-control.js +1 -1
- package/build-module/unit-control/unit-select-control.js.map +1 -1
- package/build-module/utils/colors.js +81 -0
- package/build-module/utils/colors.js.map +1 -1
- package/build-module/utils/config-values.js +1 -1
- package/build-module/utils/config-values.js.map +1 -1
- package/build-module/{ui/utils → utils}/font-size.js +1 -1
- package/build-module/utils/font-size.js.map +1 -0
- package/build-module/utils/get-valid-children.js.map +1 -0
- package/build-module/utils/space.js.map +1 -0
- package/build-module/utils/types.js.map +1 -1
- package/build-module/utils/use-deprecated-props.js +3 -2
- package/build-module/utils/use-deprecated-props.js.map +1 -1
- package/build-module/utils/use-responsive-value.js.map +1 -0
- package/build-module/v-stack/component.js +2 -2
- package/build-module/v-stack/component.js.map +1 -1
- package/build-module/v-stack/hook.js +1 -1
- package/build-module/v-stack/hook.js.map +1 -1
- package/build-module/view/component.js +1 -1
- package/build-module/view/component.js.map +1 -1
- package/build-module/visually-hidden/component.js +2 -2
- package/build-module/visually-hidden/component.js.map +1 -1
- package/build-module/z-stack/component.js +3 -3
- package/build-module/z-stack/component.js.map +1 -1
- package/build-style/style-rtl.css +37 -11
- package/build-style/style.css +37 -11
- package/build-types/alignment-matrix-control/cell.d.ts +1 -1
- package/build-types/alignment-matrix-control/cell.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/icon.d.ts +1 -1
- package/build-types/alignment-matrix-control/icon.d.ts.map +1 -1
- package/build-types/alignment-matrix-control/index.d.ts +1 -1
- package/build-types/alignment-matrix-control/index.d.ts.map +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts +1 -1
- package/build-types/angle-picker-control/angle-circle.d.ts.map +1 -1
- package/build-types/autocomplete/types.d.ts +5 -3
- package/build-types/autocomplete/types.d.ts.map +1 -1
- package/build-types/base-control/index.d.ts +1 -1
- package/build-types/base-control/index.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +1 -1
- package/build-types/border-control/border-control/hook.d.ts +1 -1
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-style-picker/component.d.ts +1 -1
- package/build-types/border-control/border-control-style-picker/hook.d.ts +1 -1
- package/build-types/border-control/border-control-style-picker/hook.d.ts.map +1 -1
- package/build-types/box-control/icon.d.ts +1 -1
- package/build-types/box-control/icon.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +2 -2
- package/build-types/button/index.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/button/types.d.ts +1 -1
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/card/card/component.d.ts +1 -1
- package/build-types/card/card/hook.d.ts +1 -1
- package/build-types/card/card/hook.d.ts.map +1 -1
- package/build-types/card/card-body/component.d.ts +1 -1
- package/build-types/card/card-body/hook.d.ts +1 -1
- package/build-types/card/card-body/hook.d.ts.map +1 -1
- package/build-types/card/card-divider/component.d.ts +4 -4
- package/build-types/card/card-divider/hook.d.ts +4 -4
- package/build-types/card/card-divider/hook.d.ts.map +1 -1
- package/build-types/card/card-footer/component.d.ts +1 -1
- package/build-types/card/card-footer/hook.d.ts +1 -1
- package/build-types/card/card-footer/hook.d.ts.map +1 -1
- package/build-types/card/card-header/component.d.ts +1 -1
- package/build-types/card/card-header/hook.d.ts +1 -1
- package/build-types/card/card-header/hook.d.ts.map +1 -1
- package/build-types/card/card-media/component.d.ts +1 -1
- package/build-types/card/card-media/component.d.ts.map +1 -1
- package/build-types/card/card-media/hook.d.ts +1 -1
- package/build-types/card/card-media/hook.d.ts.map +1 -1
- package/build-types/checkbox-control/index.d.ts +1 -1
- package/build-types/checkbox-control/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
- package/build-types/circular-option-picker/types.d.ts +1 -1
- package/build-types/circular-option-picker/types.d.ts.map +1 -1
- package/build-types/clipboard-button/index.d.ts +1 -1
- package/build-types/clipboard-button/index.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts +1 -1
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +3 -3
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/color-picker/color-copy-button.d.ts.map +1 -1
- package/build-types/color-picker/component.d.ts +1 -1
- package/build-types/color-picker/stories/index.story.d.ts +1 -1
- package/build-types/color-picker/styles.d.ts +3 -3
- package/build-types/color-picker/types.d.ts +1 -1
- package/build-types/color-picker/types.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts +2 -2
- package/build-types/context/constants.d.ts.map +1 -0
- package/build-types/context/context-connect.d.ts.map +1 -0
- package/build-types/context/context-system-provider.d.ts.map +1 -0
- package/build-types/context/get-styled-class-name-from-key.d.ts.map +1 -0
- package/build-types/context/index.d.ts.map +1 -0
- package/build-types/context/test/context-connect.d.ts.map +1 -0
- package/build-types/context/test/wordpress-component.d.ts.map +1 -0
- package/build-types/context/use-context-system.d.ts.map +1 -0
- package/build-types/context/utils.d.ts.map +1 -0
- package/build-types/context/wordpress-component.d.ts.map +1 -0
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/dashicon/index.d.ts +1 -1
- package/build-types/dashicon/index.d.ts.map +1 -1
- package/build-types/date-time/time/index.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +4 -7
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/disabled/index.d.ts +1 -1
- package/build-types/disabled/index.d.ts.map +1 -1
- package/build-types/divider/component.d.ts +4 -4
- package/build-types/divider/styles.d.ts +3 -3
- package/build-types/divider/types.d.ts +1 -1
- package/build-types/divider/types.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts +1 -1
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
- package/build-types/dropdown/index.d.ts +1 -1
- package/build-types/dropdown/index.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts +3 -3
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +2 -2
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu/types.d.ts +1 -1
- package/build-types/dropdown-menu/types.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/index.d.ts +1 -1
- package/build-types/dropdown-menu-v2/index.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts +1 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown-menu-v2/types.d.ts +1 -1
- package/build-types/dropdown-menu-v2/types.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/elevation/component.d.ts +1 -1
- package/build-types/elevation/component.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +1 -1
- package/build-types/elevation/hook.d.ts.map +1 -1
- package/build-types/external-link/index.d.ts +1 -1
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/flex/flex/component.d.ts +1 -1
- package/build-types/flex/flex/component.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +1 -1
- package/build-types/flex/flex/hook.d.ts.map +1 -1
- package/build-types/flex/flex-block/component.d.ts +1 -1
- package/build-types/flex/flex-block/component.d.ts.map +1 -1
- package/build-types/flex/flex-block/hook.d.ts +1 -1
- package/build-types/flex/flex-block/hook.d.ts.map +1 -1
- package/build-types/flex/flex-item/component.d.ts +1 -1
- package/build-types/flex/flex-item/component.d.ts.map +1 -1
- package/build-types/flex/flex-item/hook.d.ts +1 -1
- package/build-types/flex/flex-item/hook.d.ts.map +1 -1
- package/build-types/flex/types.d.ts +2 -2
- package/build-types/flex/types.d.ts.map +1 -1
- package/build-types/focal-point-picker/focal-point.d.ts +1 -1
- package/build-types/focal-point-picker/focal-point.d.ts.map +1 -1
- package/build-types/focal-point-picker/grid.d.ts +1 -1
- package/build-types/focal-point-picker/grid.d.ts.map +1 -1
- package/build-types/focal-point-picker/index.d.ts +1 -1
- package/build-types/focal-point-picker/index.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -2
- package/build-types/form-file-upload/index.d.ts +1 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-toggle/index.d.ts +1 -1
- package/build-types/form-toggle/index.d.ts.map +1 -1
- package/build-types/form-token-field/token-input.d.ts +1 -1
- package/build-types/form-token-field/token-input.d.ts.map +1 -1
- package/build-types/grid/component.d.ts +1 -1
- package/build-types/grid/component.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +1 -1
- package/build-types/grid/hook.d.ts.map +1 -1
- package/build-types/grid/types.d.ts +1 -1
- package/build-types/grid/types.d.ts.map +1 -1
- package/build-types/guide/page.d.ts +1 -1
- package/build-types/guide/page.d.ts.map +1 -1
- package/build-types/h-stack/component.d.ts +1 -1
- package/build-types/h-stack/hook.d.ts +1 -1
- package/build-types/h-stack/hook.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +1 -1
- package/build-types/heading/hook.d.ts +1 -1
- package/build-types/heading/hook.d.ts.map +1 -1
- package/build-types/higher-order/with-focus-return/index.d.ts +1 -1
- package/build-types/higher-order/with-spoken-messages/index.d.ts +3 -3
- package/build-types/higher-order/with-spoken-messages/index.d.ts.map +1 -1
- package/build-types/input-control/index.d.ts +1 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-base.d.ts +2 -2
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/input-prefix-wrapper.d.ts +1 -1
- package/build-types/input-control/input-prefix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/input-suffix-wrapper.d.ts +1 -1
- package/build-types/input-control/input-suffix-wrapper.d.ts.map +1 -1
- package/build-types/input-control/label.d.ts +1 -1
- package/build-types/input-control/label.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +3 -3
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +10 -3
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/item-group/item/component.d.ts +1 -1
- package/build-types/item-group/item/component.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +1 -1
- package/build-types/item-group/item/hook.d.ts.map +1 -1
- package/build-types/item-group/item-group/component.d.ts +1 -1
- package/build-types/item-group/item-group/component.d.ts.map +1 -1
- package/build-types/item-group/item-group/hook.d.ts +1 -1
- package/build-types/item-group/item-group/hook.d.ts.map +1 -1
- package/build-types/modal/aria-helper.d.ts +6 -7
- package/build-types/modal/aria-helper.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts +1 -0
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/modal/types.d.ts +9 -0
- package/build-types/modal/types.d.ts.map +1 -1
- package/build-types/navigable-container/types.d.ts +1 -1
- package/build-types/navigable-container/types.d.ts.map +1 -1
- package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
- package/build-types/navigator/navigator-back-button/component.d.ts +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/component.d.ts +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/component.d.ts +2 -2
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts +1 -1
- package/build-types/notice/list.d.ts +1 -1
- package/build-types/notice/list.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +1 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +1 -1
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/styles.d.ts +1 -1
- package/build-types/panel/types.d.ts +1 -1
- package/build-types/panel/types.d.ts.map +1 -1
- package/build-types/placeholder/index.d.ts +1 -1
- package/build-types/placeholder/index.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/stories/e2e/index.story.d.ts +1 -1
- package/build-types/radio-control/index.d.ts +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +2 -14
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/mark.d.ts +1 -1
- package/build-types/range-control/mark.d.ts.map +1 -1
- package/build-types/range-control/rail.d.ts +1 -1
- package/build-types/range-control/rail.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +1 -1
- package/build-types/range-control/tooltip.d.ts +1 -1
- package/build-types/range-control/tooltip.d.ts.map +1 -1
- package/build-types/sandbox/index.d.ts +1 -1
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/types.d.ts +6 -0
- package/build-types/sandbox/types.d.ts.map +1 -1
- package/build-types/scrollable/component.d.ts +1 -1
- package/build-types/scrollable/component.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +1 -1
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/search-control/index.d.ts +1 -1
- package/build-types/search-control/stories/index.story.d.ts +2 -2
- package/build-types/select-control/index.d.ts +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/stories/index.story.d.ts +2 -2
- package/build-types/select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts +1 -1
- package/build-types/select-control/types.d.ts +1 -1
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts +3 -4
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts +6 -10
- package/build-types/slot-fill/bubbles-virtually/slot-fill-context.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +3 -3
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts +8 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +2 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts +9 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
- package/build-types/slot-fill/context.d.ts +6 -9
- package/build-types/slot-fill/context.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts +2 -4
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/index.d.ts +20 -16
- package/build-types/slot-fill/index.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts +4 -26
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts +3 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts +15 -0
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -0
- package/build-types/slot-fill/types.d.ts +104 -0
- package/build-types/slot-fill/types.d.ts.map +1 -0
- package/build-types/slot-fill/use-slot.d.ts +6 -4
- package/build-types/slot-fill/use-slot.d.ts.map +1 -1
- package/build-types/snackbar/list.d.ts +1 -1
- package/build-types/snackbar/list.d.ts.map +1 -1
- package/build-types/spacer/component.d.ts +1 -1
- package/build-types/spacer/component.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +1 -1
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/spacer/types.d.ts +1 -1
- package/build-types/spacer/types.d.ts.map +1 -1
- package/build-types/spinner/index.d.ts +1 -1
- package/build-types/spinner/index.d.ts.map +1 -1
- package/build-types/surface/component.d.ts +1 -1
- package/build-types/surface/component.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +1 -1
- package/build-types/surface/hook.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/text/component.d.ts +1 -1
- package/build-types/text/component.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +2 -2
- package/build-types/text/hook.d.ts.map +1 -1
- package/build-types/text/types.d.ts +2 -1
- package/build-types/text/types.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts +5 -3
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/build-types/theme/index.d.ts +1 -1
- package/build-types/theme/index.d.ts.map +1 -1
- package/build-types/toggle-control/index.d.ts +1 -1
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/toolbar-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-context/index.d.ts +2 -2
- package/build-types/toolbar/toolbar-context/index.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts +1 -1
- package/build-types/toolbar/toolbar-group/toolbar-group-container.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-item/index.d.ts +3 -1
- package/build-types/toolbar/toolbar-item/index.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/component.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/tooltip/index.d.ts.map +1 -1
- package/build-types/tree-grid/cell.d.ts +1 -1
- package/build-types/tree-grid/cell.d.ts.map +1 -1
- package/build-types/tree-select/index.d.ts +1 -1
- package/build-types/tree-select/index.d.ts.map +1 -1
- package/build-types/truncate/component.d.ts +1 -1
- package/build-types/truncate/component.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +1 -1
- package/build-types/truncate/hook.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +2 -2
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +1 -1
- package/build-types/unit-control/types.d.ts +8 -4
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/unit-control/unit-select-control.d.ts +2 -6
- package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
- package/build-types/utils/colors.d.ts +16 -0
- package/build-types/utils/colors.d.ts.map +1 -1
- package/build-types/utils/font-size.d.ts.map +1 -0
- package/build-types/utils/get-valid-children.d.ts.map +1 -0
- package/build-types/utils/space.d.ts.map +1 -0
- package/build-types/utils/types.d.ts +1 -13
- package/build-types/utils/types.d.ts.map +1 -1
- package/build-types/utils/use-deprecated-props.d.ts +3 -1
- package/build-types/utils/use-deprecated-props.d.ts.map +1 -1
- package/build-types/utils/use-responsive-value.d.ts.map +1 -0
- package/build-types/v-stack/component.d.ts +1 -1
- package/build-types/v-stack/hook.d.ts +1 -1
- package/build-types/v-stack/hook.d.ts.map +1 -1
- package/build-types/view/component.d.ts +1 -1
- package/build-types/view/component.d.ts.map +1 -1
- package/build-types/visually-hidden/component.d.ts +1 -1
- package/build-types/visually-hidden/component.d.ts.map +1 -1
- package/build-types/z-stack/component.d.ts +1 -1
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/package.json +22 -20
- package/src/alignment-matrix-control/README.md +1 -1
- package/src/alignment-matrix-control/cell.tsx +1 -1
- package/src/alignment-matrix-control/icon.tsx +1 -1
- package/src/alignment-matrix-control/index.tsx +1 -1
- package/src/angle-picker-control/README.md +1 -1
- package/src/angle-picker-control/angle-circle.tsx +1 -1
- package/src/angle-picker-control/index.tsx +1 -1
- package/src/angle-picker-control/styles/angle-picker-control-styles.tsx +1 -1
- package/src/autocomplete/types.ts +6 -2
- package/src/base-control/index.tsx +1 -1
- package/src/base-control/styles/base-control-styles.ts +1 -1
- package/src/border-box-control/border-box-control/README.md +1 -1
- package/src/border-box-control/border-box-control/component.tsx +2 -2
- package/src/border-box-control/border-box-control/hook.ts +2 -2
- package/src/border-box-control/border-box-control-linked-button/component.tsx +2 -2
- package/src/border-box-control/border-box-control-linked-button/hook.ts +2 -2
- package/src/border-box-control/border-box-control-split-controls/component.tsx +2 -2
- package/src/border-box-control/border-box-control-split-controls/hook.ts +2 -2
- package/src/border-box-control/border-box-control-visualizer/component.tsx +2 -2
- package/src/border-box-control/border-box-control-visualizer/hook.ts +2 -2
- package/src/border-control/border-control/README.md +1 -1
- package/src/border-control/border-control/component.tsx +2 -2
- package/src/border-control/border-control/hook.ts +2 -2
- package/src/border-control/border-control-dropdown/component.tsx +2 -2
- package/src/border-control/border-control-dropdown/hook.ts +2 -2
- package/src/border-control/border-control-style-picker/component.tsx +2 -2
- package/src/border-control/border-control-style-picker/hook.ts +2 -2
- package/src/border-control/styles.ts +1 -1
- package/src/box-control/README.md +1 -1
- package/src/box-control/icon.tsx +1 -1
- package/src/button/README.md +2 -0
- package/src/button/index.tsx +30 -7
- package/src/button/stories/index.story.tsx +11 -0
- package/src/button/style.scss +3 -2
- package/src/button/test/index.tsx +67 -6
- package/src/button/types.ts +1 -1
- package/src/button-group/index.tsx +1 -1
- package/src/card/card/README.md +1 -1
- package/src/card/card/component.tsx +2 -2
- package/src/card/card/hook.ts +2 -2
- package/src/card/card-body/component.tsx +2 -2
- package/src/card/card-body/hook.ts +2 -2
- package/src/card/card-divider/component.tsx +2 -2
- package/src/card/card-divider/hook.ts +2 -2
- package/src/card/card-footer/component.tsx +2 -2
- package/src/card/card-footer/hook.ts +2 -2
- package/src/card/card-header/component.tsx +2 -2
- package/src/card/card-header/hook.ts +2 -2
- package/src/card/card-media/component.tsx +2 -2
- package/src/card/card-media/hook.ts +2 -2
- package/src/checkbox-control/README.md +2 -2
- package/src/checkbox-control/index.tsx +1 -1
- package/src/circular-option-picker/README.md +1 -1
- package/src/circular-option-picker/circular-option-picker-actions.tsx +1 -1
- package/src/circular-option-picker/circular-option-picker-option.tsx +9 -11
- package/src/circular-option-picker/style.scss +2 -1
- package/src/circular-option-picker/types.ts +1 -1
- package/src/clipboard-button/README.md +1 -1
- package/src/clipboard-button/index.tsx +1 -1
- package/src/color-indicator/index.tsx +1 -1
- package/src/color-palette/README.md +1 -1
- package/src/color-palette/index.tsx +1 -1
- package/src/color-picker/README.md +1 -1
- package/src/color-picker/color-copy-button.tsx +5 -9
- package/src/color-picker/component.tsx +1 -1
- package/src/color-picker/hex-input.tsx +1 -1
- package/src/color-picker/input-with-slider.tsx +1 -1
- package/src/color-picker/styles.ts +1 -1
- package/src/color-picker/types.ts +1 -1
- package/src/combobox-control/README.md +1 -1
- package/src/combobox-control/styles.ts +1 -1
- package/src/combobox-control/test/index.tsx +6 -7
- package/src/confirm-dialog/README.md +1 -1
- package/src/confirm-dialog/component.tsx +2 -2
- package/src/{ui/context → context}/context-connect.ts +1 -1
- package/src/{ui/context → context}/context-system-provider.js +1 -1
- package/src/{ui/context → context}/use-context-system.js +1 -1
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +1 -1
- package/src/custom-select-control/README.md +1 -4
- package/src/custom-select-control/index.js +11 -6
- package/src/custom-select-control/stories/index.story.js +1 -1
- package/src/custom-select-control/style.scss +1 -1
- package/src/dashicon/index.tsx +1 -1
- package/src/date-time/README.md +1 -1
- package/src/date-time/date/styles.ts +1 -1
- package/src/date-time/time/index.tsx +9 -6
- package/src/date-time/time/styles.ts +1 -11
- package/src/dimension-control/README.md +1 -1
- package/src/disabled/README.md +1 -1
- package/src/disabled/index.tsx +1 -1
- package/src/divider/component.tsx +2 -2
- package/src/divider/styles.ts +1 -1
- package/src/divider/types.ts +1 -1
- package/src/drop-zone/README.md +1 -1
- package/src/drop-zone/index.tsx +1 -1
- package/src/dropdown/dropdown-content-wrapper.tsx +2 -2
- package/src/dropdown/index.tsx +1 -1
- package/src/dropdown/styles.ts +1 -1
- package/src/dropdown-menu/index.tsx +1 -1
- package/src/dropdown-menu/types.ts +1 -1
- package/src/dropdown-menu-v2/index.tsx +1 -1
- package/src/dropdown-menu-v2/stories/index.story.tsx +1 -1
- package/src/dropdown-menu-v2/styles.ts +1 -1
- package/src/dropdown-menu-v2/types.ts +1 -1
- package/src/duotone-picker/README.md +1 -1
- package/src/duotone-picker/duotone-picker.tsx +5 -1
- package/src/elevation/component.tsx +2 -2
- package/src/elevation/hook.ts +2 -2
- package/src/external-link/index.tsx +1 -1
- package/src/external-link/test/index.tsx +4 -6
- package/src/flex/flex/component.tsx +2 -2
- package/src/flex/flex/hook.ts +4 -4
- package/src/flex/flex-block/component.tsx +2 -2
- package/src/flex/flex-block/hook.ts +2 -2
- package/src/flex/flex-item/component.tsx +2 -2
- package/src/flex/flex-item/hook.ts +2 -2
- package/src/flex/types.ts +2 -2
- package/src/focal-point-picker/README.md +1 -1
- package/src/focal-point-picker/focal-point.tsx +1 -1
- package/src/focal-point-picker/grid.tsx +1 -1
- package/src/focal-point-picker/index.tsx +1 -1
- package/src/focusable-iframe/README.md +2 -2
- package/src/font-size-picker/README.md +1 -1
- package/src/font-size-picker/styles.ts +1 -1
- package/src/form-file-upload/README.md +2 -2
- package/src/form-file-upload/index.tsx +1 -1
- package/src/form-toggle/README.md +1 -1
- package/src/form-toggle/index.tsx +1 -1
- package/src/form-token-field/README.md +1 -1
- package/src/form-token-field/style.scss +2 -0
- package/src/form-token-field/styles.ts +1 -1
- package/src/form-token-field/token-input.tsx +1 -1
- package/src/gradient-picker/README.md +1 -1
- package/src/grid/component.tsx +2 -2
- package/src/grid/hook.ts +3 -3
- package/src/grid/types.ts +1 -1
- package/src/guide/page.tsx +1 -1
- package/src/h-stack/component.tsx +2 -2
- package/src/h-stack/hook.tsx +3 -3
- package/src/heading/component.tsx +2 -2
- package/src/heading/hook.ts +3 -3
- package/src/higher-order/with-constrained-tabbing/README.md +1 -1
- package/src/higher-order/with-focus-return/README.md +1 -1
- package/src/higher-order/with-focus-return/index.tsx +1 -1
- package/src/higher-order/with-spoken-messages/index.tsx +3 -3
- package/src/icon/README.md +2 -2
- package/src/input-control/index.tsx +18 -11
- package/src/input-control/input-base.tsx +17 -10
- package/src/input-control/input-field.tsx +1 -1
- package/src/input-control/input-prefix-wrapper.tsx +2 -2
- package/src/input-control/input-suffix-wrapper.tsx +2 -2
- package/src/input-control/label.tsx +1 -1
- package/src/input-control/styles/input-control-styles.tsx +7 -7
- package/src/input-control/test/index.js +5 -7
- package/src/input-control/types.ts +11 -3
- package/src/item-group/item/component.tsx +2 -2
- package/src/item-group/item/hook.ts +2 -2
- package/src/item-group/item-group/component.tsx +2 -2
- package/src/item-group/item-group/hook.ts +2 -2
- package/src/keyboard-shortcuts/README.md +1 -1
- package/src/menu-item/README.md +3 -3
- package/src/menu-item/index.tsx +1 -1
- package/src/menu-items-choice/README.md +1 -1
- package/src/mobile/bottom-sheet/sub-sheet/README.md +1 -1
- package/src/mobile/html-text-input/index.native.js +4 -1
- package/src/mobile/html-text-input/style.scss +4 -0
- package/src/mobile/html-text-input/test/__snapshots__/index.native.js.snap +3 -1
- package/src/mobile/keyboard-aware-flat-list/index.ios.js +1 -1
- package/src/modal/README.md +9 -1
- package/src/modal/aria-helper.ts +17 -25
- package/src/modal/index.tsx +15 -6
- package/src/modal/stories/index.story.tsx +7 -5
- package/src/modal/style.scss +20 -0
- package/src/modal/test/index.tsx +1 -2
- package/src/modal/types.ts +9 -0
- package/src/navigable-container/types.ts +1 -1
- package/src/navigation/styles/navigation-styles.tsx +1 -1
- package/src/navigator/navigator-back-button/component.tsx +2 -2
- package/src/navigator/navigator-back-button/hook.ts +2 -2
- package/src/navigator/navigator-button/component.tsx +2 -2
- package/src/navigator/navigator-button/hook.ts +2 -2
- package/src/navigator/navigator-provider/component.tsx +2 -2
- package/src/navigator/navigator-screen/component.tsx +2 -2
- package/src/navigator/navigator-to-parent-button/component.tsx +2 -2
- package/src/notice/list.tsx +1 -1
- package/src/number-control/index.tsx +15 -9
- package/src/number-control/styles/number-control-styles.ts +1 -1
- package/src/palette-edit/styles.js +1 -1
- package/src/panel/body.tsx +1 -1
- package/src/panel/types.ts +1 -1
- package/src/placeholder/README.md +1 -1
- package/src/placeholder/index.tsx +1 -1
- package/src/placeholder/test/index.tsx +1 -1
- package/src/popover/README.md +6 -7
- package/src/popover/index.tsx +1 -2
- package/src/popover/test/utils/index.tsx +1 -1
- package/src/private-apis.ts +2 -2
- package/src/progress-bar/index.tsx +1 -1
- package/src/query-controls/README.md +1 -1
- package/src/radio-control/README.md +2 -2
- package/src/radio-control/index.tsx +1 -1
- package/src/radio-group/README.md +2 -2
- package/src/range-control/README.md +4 -4
- package/src/range-control/index.tsx +2 -2
- package/src/range-control/input-range.tsx +1 -1
- package/src/range-control/mark.tsx +1 -1
- package/src/range-control/rail.tsx +1 -1
- package/src/range-control/styles/range-control-styles.ts +2 -2
- package/src/range-control/tooltip.tsx +1 -1
- package/src/sandbox/README.md +7 -1
- package/src/sandbox/index.tsx +2 -0
- package/src/sandbox/types.ts +6 -0
- package/src/scroll-lock/README.md +1 -1
- package/src/scrollable/component.tsx +2 -2
- package/src/scrollable/hook.ts +2 -2
- package/src/search-control/README.md +2 -2
- package/src/search-control/index.tsx +1 -1
- package/src/search-control/style.scss +6 -0
- package/src/select-control/README.md +2 -2
- package/src/select-control/index.tsx +10 -5
- package/src/select-control/styles/select-control-styles.ts +8 -8
- package/src/select-control/test/select-control.tsx +2 -4
- package/src/select-control/types.ts +1 -0
- package/src/slot-fill/bubbles-virtually/{fill.js → fill.tsx} +6 -7
- package/src/slot-fill/bubbles-virtually/{slot-fill-context.js → slot-fill-context.ts} +8 -3
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +115 -0
- package/src/slot-fill/bubbles-virtually/{slot.js → slot.tsx} +16 -3
- package/src/slot-fill/bubbles-virtually/{use-slot-fills.js → use-slot-fills.ts} +2 -2
- package/src/slot-fill/bubbles-virtually/{use-slot.js → use-slot.ts} +15 -6
- package/src/slot-fill/context.ts +21 -0
- package/src/slot-fill/{fill.js → fill.ts} +2 -3
- package/src/slot-fill/{index.js → index.tsx} +37 -13
- package/src/slot-fill/provider.tsx +129 -0
- package/src/slot-fill/{slot.js → slot.tsx} +29 -15
- package/src/slot-fill/stories/index.story.tsx +140 -0
- package/src/slot-fill/types.ts +155 -0
- package/src/slot-fill/{use-slot.js → use-slot.ts} +4 -4
- package/src/snackbar/index.tsx +1 -1
- package/src/snackbar/list.tsx +1 -1
- package/src/spacer/component.tsx +2 -2
- package/src/spacer/hook.ts +3 -3
- package/src/spacer/types.ts +1 -1
- package/src/spinner/index.tsx +1 -1
- package/src/spinner/stories/index.story.tsx +1 -1
- package/src/surface/component.tsx +2 -2
- package/src/surface/hook.ts +2 -2
- package/src/tab-panel/index.tsx +2 -1
- package/src/text/component.js +3 -3
- package/src/text/get-line-height.ts +1 -1
- package/src/text/hook.js +4 -4
- package/src/text/test/index.tsx +1 -1
- package/src/text/types.ts +2 -1
- package/src/text-control/README.md +1 -1
- package/src/text-control/index.tsx +1 -1
- package/src/textarea-control/README.md +2 -2
- package/src/textarea-control/index.tsx +32 -32
- package/src/theme/index.tsx +1 -1
- package/src/toggle-control/README.md +2 -2
- package/src/toggle-control/index.tsx +2 -2
- package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +1 -1
- package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +6 -6
- package/src/toggle-group-control/toggle-group-control/component.tsx +2 -2
- package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -1
- package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +5 -5
- package/src/toggle-group-control/toggle-group-control-option-icon/README.md +1 -1
- package/src/toggle-group-control/toggle-group-control-option-icon/component.tsx +1 -1
- package/src/toolbar/toolbar/index.tsx +2 -2
- package/src/toolbar/toolbar/toolbar-container.tsx +5 -4
- package/src/toolbar/toolbar-button/index.tsx +1 -1
- package/src/toolbar/toolbar-context/index.ts +5 -2
- package/src/toolbar/toolbar-group/toolbar-group-container.tsx +1 -1
- package/src/toolbar/toolbar-item/index.tsx +3 -2
- package/src/tools-panel/styles.ts +1 -1
- package/src/tools-panel/tools-panel/component.tsx +2 -2
- package/src/tools-panel/tools-panel/hook.ts +2 -2
- package/src/tools-panel/tools-panel-header/component.tsx +2 -2
- package/src/tools-panel/tools-panel-header/hook.ts +2 -2
- package/src/tools-panel/tools-panel-item/component.tsx +2 -2
- package/src/tools-panel/tools-panel-item/hook.ts +2 -2
- package/src/tooltip/index.tsx +2 -2
- package/src/tree-grid/cell.tsx +1 -1
- package/src/tree-grid/index.tsx +1 -1
- package/src/tree-grid/row.tsx +1 -1
- package/src/tree-select/README.md +1 -1
- package/src/tree-select/index.tsx +16 -9
- package/src/truncate/component.tsx +2 -2
- package/src/truncate/hook.ts +2 -2
- package/src/unit-control/README.md +2 -2
- package/src/unit-control/index.tsx +13 -3
- package/src/unit-control/styles/unit-control-styles.ts +7 -7
- package/src/unit-control/types.ts +8 -4
- package/src/unit-control/unit-select-control.tsx +1 -1
- package/src/utils/colors.js +91 -0
- package/src/utils/config-values.js +1 -1
- package/src/{ui/utils → utils}/font-size.ts +1 -1
- package/src/utils/test/colors.js +39 -1
- package/src/utils/types.ts +1 -36
- package/src/utils/use-deprecated-props.ts +4 -2
- package/src/v-stack/component.tsx +2 -2
- package/src/v-stack/hook.ts +2 -2
- package/src/view/component.tsx +1 -1
- package/src/visually-hidden/component.tsx +2 -2
- package/src/z-stack/component.tsx +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/build/ui/context/constants.js.map +0 -1
- package/build/ui/context/context-connect.js.map +0 -1
- package/build/ui/context/context-system-provider.js.map +0 -1
- package/build/ui/context/get-styled-class-name-from-key.js.map +0 -1
- package/build/ui/context/index.js.map +0 -1
- package/build/ui/context/use-context-system.js.map +0 -1
- package/build/ui/context/utils.js.map +0 -1
- package/build/ui/context/wordpress-component.js.map +0 -1
- package/build/ui/shortcut/component.js +0 -47
- package/build/ui/shortcut/component.js.map +0 -1
- package/build/ui/shortcut/index.js +0 -14
- package/build/ui/shortcut/index.js.map +0 -1
- package/build/ui/tooltip/component.js +0 -97
- package/build/ui/tooltip/component.js.map +0 -1
- package/build/ui/tooltip/content.js +0 -55
- package/build/ui/tooltip/content.js.map +0 -1
- package/build/ui/tooltip/context.js +0 -19
- package/build/ui/tooltip/context.js.map +0 -1
- package/build/ui/tooltip/index.js +0 -29
- package/build/ui/tooltip/index.js.map +0 -1
- package/build/ui/tooltip/styles.js +0 -44
- package/build/ui/tooltip/styles.js.map +0 -1
- package/build/ui/tooltip/types.js.map +0 -1
- package/build/ui/utils/colors.js +0 -96
- package/build/ui/utils/colors.js.map +0 -1
- package/build/ui/utils/font-size.js.map +0 -1
- package/build/ui/utils/get-valid-children.js.map +0 -1
- package/build/ui/utils/index.js +0 -13
- package/build/ui/utils/index.js.map +0 -1
- package/build/ui/utils/space.js.map +0 -1
- package/build/ui/utils/types.js +0 -6
- package/build/ui/utils/types.js.map +0 -1
- package/build/ui/utils/use-responsive-value.js.map +0 -1
- package/build/utils/z-index.js +0 -11
- package/build/utils/z-index.js.map +0 -1
- package/build-module/ui/context/constants.js.map +0 -1
- package/build-module/ui/context/context-connect.js.map +0 -1
- package/build-module/ui/context/context-system-provider.js.map +0 -1
- package/build-module/ui/context/get-styled-class-name-from-key.js.map +0 -1
- package/build-module/ui/context/index.js.map +0 -1
- package/build-module/ui/context/use-context-system.js.map +0 -1
- package/build-module/ui/context/utils.js.map +0 -1
- package/build-module/ui/context/wordpress-component.js.map +0 -1
- package/build-module/ui/shortcut/component.js +0 -40
- package/build-module/ui/shortcut/component.js.map +0 -1
- package/build-module/ui/shortcut/index.js +0 -2
- package/build-module/ui/shortcut/index.js.map +0 -1
- package/build-module/ui/tooltip/component.js +0 -90
- package/build-module/ui/tooltip/component.js.map +0 -1
- package/build-module/ui/tooltip/content.js +0 -45
- package/build-module/ui/tooltip/content.js.map +0 -1
- package/build-module/ui/tooltip/context.js +0 -11
- package/build-module/ui/tooltip/context.js.map +0 -1
- package/build-module/ui/tooltip/index.js +0 -3
- package/build-module/ui/tooltip/index.js.map +0 -1
- package/build-module/ui/tooltip/styles.js +0 -37
- package/build-module/ui/tooltip/styles.js.map +0 -1
- package/build-module/ui/tooltip/types.js.map +0 -1
- package/build-module/ui/utils/colors.js +0 -88
- package/build-module/ui/utils/colors.js.map +0 -1
- package/build-module/ui/utils/font-size.js.map +0 -1
- package/build-module/ui/utils/get-valid-children.js.map +0 -1
- package/build-module/ui/utils/index.js +0 -2
- package/build-module/ui/utils/index.js.map +0 -1
- package/build-module/ui/utils/space.js.map +0 -1
- package/build-module/ui/utils/types.js +0 -2
- package/build-module/ui/utils/types.js.map +0 -1
- package/build-module/ui/utils/use-responsive-value.js.map +0 -1
- package/build-module/utils/z-index.js +0 -3
- package/build-module/utils/z-index.js.map +0 -1
- package/build-types/ui/context/constants.d.ts.map +0 -1
- package/build-types/ui/context/context-connect.d.ts.map +0 -1
- package/build-types/ui/context/context-system-provider.d.ts.map +0 -1
- package/build-types/ui/context/get-styled-class-name-from-key.d.ts.map +0 -1
- package/build-types/ui/context/index.d.ts.map +0 -1
- package/build-types/ui/context/test/context-connect.d.ts.map +0 -1
- package/build-types/ui/context/test/wordpress-component.d.ts.map +0 -1
- package/build-types/ui/context/use-context-system.d.ts.map +0 -1
- package/build-types/ui/context/utils.d.ts.map +0 -1
- package/build-types/ui/context/wordpress-component.d.ts.map +0 -1
- package/build-types/ui/shortcut/component.d.ts +0 -12
- package/build-types/ui/shortcut/component.d.ts.map +0 -1
- package/build-types/ui/shortcut/index.d.ts +0 -3
- package/build-types/ui/shortcut/index.d.ts.map +0 -1
- package/build-types/ui/tooltip/component.d.ts +0 -29
- package/build-types/ui/tooltip/component.d.ts.map +0 -1
- package/build-types/ui/tooltip/content.d.ts +0 -9
- package/build-types/ui/tooltip/content.d.ts.map +0 -1
- package/build-types/ui/tooltip/context.d.ts +0 -10
- package/build-types/ui/tooltip/context.d.ts.map +0 -1
- package/build-types/ui/tooltip/index.d.ts +0 -3
- package/build-types/ui/tooltip/index.d.ts.map +0 -1
- package/build-types/ui/tooltip/styles.d.ts +0 -12
- package/build-types/ui/tooltip/styles.d.ts.map +0 -1
- package/build-types/ui/tooltip/types.d.ts +0 -62
- package/build-types/ui/tooltip/types.d.ts.map +0 -1
- package/build-types/ui/utils/colors.d.ts +0 -17
- package/build-types/ui/utils/colors.d.ts.map +0 -1
- package/build-types/ui/utils/font-size.d.ts.map +0 -1
- package/build-types/ui/utils/get-valid-children.d.ts.map +0 -1
- package/build-types/ui/utils/index.d.ts +0 -2
- package/build-types/ui/utils/index.d.ts.map +0 -1
- package/build-types/ui/utils/space.d.ts.map +0 -1
- package/build-types/ui/utils/types.d.ts +0 -14
- package/build-types/ui/utils/types.d.ts.map +0 -1
- package/build-types/ui/utils/use-responsive-value.d.ts.map +0 -1
- package/build-types/utils/z-index.d.ts +0 -3
- package/build-types/utils/z-index.d.ts.map +0 -1
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.js +0 -95
- package/src/slot-fill/context.js +0 -17
- package/src/slot-fill/provider.js +0 -119
- package/src/slot-fill/stories/index.story.js +0 -89
- package/src/ui/README.md +0 -5
- package/src/ui/shortcut/component.tsx +0 -62
- package/src/ui/shortcut/index.ts +0 -2
- package/src/ui/shortcut/test/__snapshots__/index.js.snap +0 -13
- package/src/ui/shortcut/test/index.js +0 -36
- package/src/ui/tooltip/README.md +0 -21
- package/src/ui/tooltip/component.js +0 -102
- package/src/ui/tooltip/content.js +0 -45
- package/src/ui/tooltip/context.js +0 -10
- package/src/ui/tooltip/index.js +0 -2
- package/src/ui/tooltip/stories/index.story.js +0 -26
- package/src/ui/tooltip/styles.js +0 -45
- package/src/ui/tooltip/test/__snapshots__/index.js.snap +0 -41
- package/src/ui/tooltip/test/index.js +0 -80
- package/src/ui/tooltip/types.ts +0 -67
- package/src/ui/utils/colors.js +0 -98
- package/src/ui/utils/index.js +0 -1
- package/src/ui/utils/test/colors.js +0 -42
- package/src/ui/utils/types.ts +0 -36
- package/src/utils/z-index.js +0 -2
- /package/build/{ui/context → context}/constants.js +0 -0
- /package/build/{ui/context → context}/get-styled-class-name-from-key.js +0 -0
- /package/build/{ui/context → context}/index.js +0 -0
- /package/build/{ui/context → context}/utils.js +0 -0
- /package/build/{ui/context → context}/wordpress-component.js +0 -0
- /package/build/{ui/tooltip → slot-fill}/types.js +0 -0
- /package/build/{ui/utils → utils}/get-valid-children.js +0 -0
- /package/build/{ui/utils → utils}/space.js +0 -0
- /package/build/{ui/utils → utils}/use-responsive-value.js +0 -0
- /package/build-module/{ui/context → context}/constants.js +0 -0
- /package/build-module/{ui/context → context}/get-styled-class-name-from-key.js +0 -0
- /package/build-module/{ui/context → context}/index.js +0 -0
- /package/build-module/{ui/context → context}/utils.js +0 -0
- /package/build-module/{ui/context → context}/wordpress-component.js +0 -0
- /package/build-module/{ui/tooltip → slot-fill}/types.js +0 -0
- /package/build-module/{ui/utils → utils}/get-valid-children.js +0 -0
- /package/build-module/{ui/utils → utils}/space.js +0 -0
- /package/build-module/{ui/utils → utils}/use-responsive-value.js +0 -0
- /package/build-types/{ui/context → context}/constants.d.ts +0 -0
- /package/build-types/{ui/context → context}/context-connect.d.ts +0 -0
- /package/build-types/{ui/context → context}/context-system-provider.d.ts +0 -0
- /package/build-types/{ui/context → context}/get-styled-class-name-from-key.d.ts +0 -0
- /package/build-types/{ui/context → context}/index.d.ts +0 -0
- /package/build-types/{ui/context → context}/test/context-connect.d.ts +0 -0
- /package/build-types/{ui/context → context}/test/wordpress-component.d.ts +0 -0
- /package/build-types/{ui/context → context}/use-context-system.d.ts +0 -0
- /package/build-types/{ui/context → context}/utils.d.ts +0 -0
- /package/build-types/{ui/context → context}/wordpress-component.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/font-size.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/get-valid-children.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/space.d.ts +0 -0
- /package/build-types/{ui/utils → utils}/use-responsive-value.d.ts +0 -0
- /package/src/{ui/context → context}/constants.js +0 -0
- /package/src/{ui/context → context}/get-styled-class-name-from-key.ts +0 -0
- /package/src/{ui/context → context}/index.ts +0 -0
- /package/src/{ui/context → context}/stories/ComponentsProvider.stories.js +0 -0
- /package/src/{ui/context → context}/test/__snapshots__/context-system-provider.js.snap +0 -0
- /package/src/{ui/context → context}/test/context-connect.tsx +0 -0
- /package/src/{ui/context → context}/test/context-system-provider.js +0 -0
- /package/src/{ui/context → context}/test/wordpress-component.tsx +0 -0
- /package/src/{ui/context → context}/utils.js +0 -0
- /package/src/{ui/context → context}/wordpress-component.ts +0 -0
- /package/src/{ui/utils → utils}/get-valid-children.ts +0 -0
- /package/src/{ui/utils → utils}/space.ts +0 -0
- /package/src/{ui/utils → utils}/test/space.js +0 -0
- /package/src/{ui/utils → utils}/use-responsive-value.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_element","require","_reactNative","_reactNativeWebview","_compose","_style","_interopRequireDefault","observeAndResizeJS","style","EMPTY_ARRAY","Sandbox","forwardRef","containerStyle","customJS","html","lang","providerUrl","scripts","styles","title","type","url","onWindowEvents","viewportProps","onLoadEnd","testID","ref","colorScheme","usePreferredColorScheme","height","setHeight","useState","contentHtml","setContentHtml","getHtmlDoc","windowSize","Dimensions","get","isLandscape","setIsLandscape","width","wasLandscape","useRef","key","Platform","select","android","ios","addViewportProps","trim","replace","htmlDoc","createElement","name","content","dangerouslySetInnerHTML","__html","map","rules","i","className","src","renderToString","getInjectedJavaScript","useCallback","injectedJS","Object","keys","forEach","eventType","updateContentHtml","forceRerender","newContentHtml","setImmediate","getSizeStyle","contentHeight","Math","ceil","aspectRatio","onChangeDimensions","dimensions","window","onMessage","message","data","nativeEvent","JSON","parse","e","action","console","warn","useEffect","dimensionsChangeSubscription","addEventListener","remove","current","WebView","sandboxStyles","injectedJavaScript","source","baseUrl","originWhitelist","isAndroid","workaroundStyles","webView","scrollEnabled","setBuiltInZoomControls","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","mediaPlaybackRequiresUserAction","StyleSheet","create","opacity","_default","memo","exports","default"],"sources":["@wordpress/components/src/sandbox/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tPlatform,\n\trenderToString,\n\tmemo,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n\tuseCallback,\n} from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport sandboxStyles from './style.scss';\n\nconst observeAndResizeJS = `\n\t(function() {\n\t\tconst { MutationObserver } = window;\n\n\t\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t// The function postMessage is exposed by the react-native-webview library\n\t\t\t// to communicate between React Native and the WebView, in this case,\n\t\t\t// we use it for notifying resize changes.\n\t\t\twindow.ReactNativeWebView.postMessage(\n\t\t\t\tJSON.stringify( {\n\t\t\t\t\taction: 'resize',\n\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t} )\n\t\t\t);\n\t\t}\n\n\t\tconst observer = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif ( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function (\n\t\t\t\t\tstyle\n\t\t\t\t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t/^\\\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] )\n\t\t\t\t\t) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.querySelectorAll( '[style]' ),\n\t\t\tremoveViewportStyles\n\t\t);\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.styleSheets,\n\t\t\tfunction ( stylesheet ) {\n\t\t\t\tArray.prototype.forEach.call(\n\t\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\t\tremoveViewportStyles\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\twindow.addEventListener( 'orientationchange', sendResize, true );\n\t})();\n`;\n\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n\n\t.wp-block-embed__wrapper {\n\t\tposition: relative;\n\t}\n\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\n\t/**\n\t * Add responsiveness to embeds with aspect ratios.\n\t *\n\t * These styles have been copied from the web version (https://github.com/WordPress/gutenberg/blob/7901895ca20cf61e402925e31571d659dab64721/packages/block-library/src/embed/style.scss#L42-L89) and\n\t * adapted for the native version.\n\t */\n\t.wp-has-aspect-ratio.wp-block-embed__wrapper::before {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\tpadding-top: 50%; // Default to 2:1 aspect ratio.\n\t}\n\t.wp-has-aspect-ratio iframe {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.wp-embed-aspect-21-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 42.85%; // 9 / 21 * 100\n\t}\n\t.wp-embed-aspect-18-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 50%; // 9 / 18 * 100\n\t}\n\t.wp-embed-aspect-16-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 56.25%; // 9 / 16 * 100\n\t}\n\t.wp-embed-aspect-4-3.wp-block-embed__wrapper::before {\n\t\tpadding-top: 75%; // 3 / 4 * 100\n\t}\n\t.wp-embed-aspect-1-1.wp-block-embed__wrapper::before {\n\t\tpadding-top: 100%; // 1 / 1 * 100\n\t}\n\t.wp-embed-aspect-9-16.wp-block-embed__wrapper::before {\n\t\tpadding-top: 177.77%; // 16 / 9 * 100\n\t}\n\t.wp-embed-aspect-1-2.wp-block-embed__wrapper::before {\n\t\tpadding-top: 200%; // 2 / 1 * 100\n\t}\n`;\n\nconst EMPTY_ARRAY = [];\n\nconst Sandbox = forwardRef( function Sandbox(\n\t{\n\t\tcontainerStyle,\n\t\tcustomJS,\n\t\thtml = '',\n\t\tlang = 'en',\n\t\tproviderUrl = '',\n\t\tscripts = EMPTY_ARRAY,\n\t\tstyles = EMPTY_ARRAY,\n\t\ttitle = '',\n\t\ttype,\n\t\turl,\n\t\tonWindowEvents = {},\n\t\tviewportProps = '',\n\t\tonLoadEnd = () => {},\n\t\ttestID,\n\t},\n\tref\n) {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst [ height, setHeight ] = useState( 0 );\n\tconst [ contentHtml, setContentHtml ] = useState( getHtmlDoc() );\n\n\tconst windowSize = Dimensions.get( 'window' );\n\tconst [ isLandscape, setIsLandscape ] = useState(\n\t\twindowSize.width >= windowSize.height\n\t);\n\tconst wasLandscape = useRef( isLandscape );\n\t// On Android, we need to recreate the WebView on any of the following actions, otherwise it disappears:\n\t// - Device rotation\n\t// - Light/dark mode changes\n\t// For this purpose, the key prop used in the WebView will be updated with the value of the actions.\n\tconst key = Platform.select( {\n\t\tandroid: `${ url }-${\n\t\t\tisLandscape ? 'landscape' : 'portrait'\n\t\t}-${ colorScheme }`,\n\t\tios: url,\n\t} );\n\n\tfunction getHtmlDoc() {\n\t\t// Put the html snippet into a html document, and update the state to refresh the WebView,\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\n\t\t// Avoid comma issues with props.viewportProps.\n\t\tconst addViewportProps = viewportProps\n\t\t\t.trim()\n\t\t\t.replace( /(^[^,])/, ', $1' );\n\n\t\tconst htmlDoc = (\n\t\t\t<html lang={ lang }>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<meta\n\t\t\t\t\t\tname=\"viewport\"\n\t\t\t\t\t\tcontent={ `width=device-width, initial-scale=1${ addViewportProps }` }\n\t\t\t\t\t></meta>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\t\treturn '<!DOCTYPE html>' + renderToString( htmlDoc );\n\t}\n\n\tconst getInjectedJavaScript = useCallback( () => {\n\t\t// Allow parent to override the resize observers with prop.customJS (legacy support)\n\t\tlet injectedJS = customJS || observeAndResizeJS;\n\n\t\t// Add any event listeners that were passed in.\n\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\tinjectedJS += `\n\t\t\t\twindow.addEventListener( '${ eventType }', function( event ) {\n\t\t\t\t\twindow.ReactNativeWebView.postMessage( JSON.stringify( { type: '${ eventType }', ...event.data } ) );\n\t\t\t\t});`;\n\t\t} );\n\n\t\treturn injectedJS;\n\t}, [ customJS, onWindowEvents ] );\n\n\tfunction updateContentHtml( forceRerender = false ) {\n\t\tconst newContentHtml = getHtmlDoc();\n\n\t\tif ( forceRerender && contentHtml === newContentHtml ) {\n\t\t\t// The re-render is forced by updating the state with empty HTML,\n\t\t\t// waiting for the JS code to be executed with \"setImmediate\" and then\n\t\t\t// setting the content HTML again.\n\t\t\tsetContentHtml( '' );\n\t\t\tsetImmediate( () => setContentHtml( newContentHtml ) );\n\t\t} else {\n\t\t\tsetContentHtml( newContentHtml );\n\t\t}\n\t}\n\n\tfunction getSizeStyle() {\n\t\tconst contentHeight = Math.ceil( height );\n\n\t\treturn contentHeight ? { height: contentHeight } : { aspectRatio: 1 };\n\t}\n\n\tfunction onChangeDimensions( dimensions ) {\n\t\tsetIsLandscape( dimensions.window.width >= dimensions.window.height );\n\t}\n\n\tconst onMessage = useCallback(\n\t\t( message ) => {\n\t\t\tlet data = message?.nativeEvent?.data;\n\n\t\t\ttry {\n\t\t\t\tdata = JSON.parse( data );\n\t\t\t} catch ( e ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// check for resize event\n\t\t\tif ( 'resize' === data?.action ) {\n\t\t\t\tsetHeight( data.height );\n\t\t\t}\n\n\t\t\t// Forward the event to parent event listeners\n\t\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\t\tif ( data?.type === eventType ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tonWindowEvents[ eventType ]( data );\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Error handling event ${ eventType }`,\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t\t[ onWindowEvents ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonChangeDimensions\n\t\t);\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.remove();\n\t\t};\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tupdateContentHtml();\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, title, type, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\t// When device orientation changes we have to recalculate the size,\n\t\t// for this purpose we reset the current size value.\n\t\tif ( wasLandscape.current !== isLandscape ) {\n\t\t\tsetHeight( 0 );\n\t\t}\n\t\twasLandscape.current = isLandscape;\n\t}, [ isLandscape ] );\n\n\treturn (\n\t\t<WebView\n\t\t\tcontainerStyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__container' ],\n\t\t\t\tcontainerStyle,\n\t\t\t] }\n\t\t\tinjectedJavaScript={ getInjectedJavaScript() }\n\t\t\tkey={ key }\n\t\t\tref={ ref }\n\t\t\tsource={ { baseUrl: providerUrl, html: contentHtml } }\n\t\t\t// Wildcard value is required for static HTML\n\t\t\t// Reference: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#source\n\t\t\toriginWhitelist={ [ '*' ] }\n\t\t\tstyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__content' ],\n\t\t\t\tgetSizeStyle(),\n\t\t\t\tPlatform.isAndroid && workaroundStyles.webView,\n\t\t\t] }\n\t\t\tonMessage={ onMessage }\n\t\t\tscrollEnabled={ false }\n\t\t\tsetBuiltInZoomControls={ false }\n\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\tshowsVerticalScrollIndicator={ false }\n\t\t\tmediaPlaybackRequiresUserAction={ false }\n\t\t\tonLoadEnd={ onLoadEnd }\n\t\t\ttestID={ testID }\n\t\t/>\n\t);\n} );\n\nconst workaroundStyles = StyleSheet.create( {\n\twebView: {\n\t\t/**\n\t\t * The slight opacity below is a workaround for an Android crash caused from combining Android\n\t\t * 12's new scroll overflow behavior and webviews.\n\t\t * https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-808869253\n\t\t */\n\t\topacity: 0.99,\n\t},\n} );\n\nexport default memo( Sandbox );\n"],"mappings":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AANA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAeA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AAxBA;AACA;AACA;;AAIA;AACA;AACA;;AAaA;AACA;AACA;;AAGA,MAAMM,kBAAkB,GAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMC,KAAK,GAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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GAAK;IACX0E,MAAM,EAAG;MAAEC,OAAO,EAAErF,WAAW;MAAEF,IAAI,EAAEkB;IAAY;IACnD;IACA;IAAA;IACAsE,eAAe,EAAG,CAAE,GAAG,CAAI;IAC3B9F,KAAK,EAAG,CACP0F,cAAa,CAAE,0BAA0B,CAAE,EAC3CxB,YAAY,CAAC,CAAC,EACd9B,iBAAQ,CAAC2D,SAAS,IAAIC,gBAAgB,CAACC,OAAO,CAC5C;IACHvB,SAAS,EAAGA,SAAW;IACvBwB,aAAa,EAAG,KAAO;IACvBC,sBAAsB,EAAG,KAAO;IAChCC,8BAA8B,EAAG,KAAO;IACxCC,4BAA4B,EAAG,KAAO;IACtCC,+BAA+B,EAAG,KAAO;IACzCtF,SAAS,EAAGA,SAAW;IACvBC,MAAM,EAAGA;EAAQ,CACjB,CAAC;AAEJ,CAAE,CAAC;AAEH,MAAM+E,gBAAgB,GAAGO,uBAAU,CAACC,MAAM,CAAE;EAC3CP,OAAO,EAAE;IACR;AACF;AACA;AACA;AACA;IACEQ,OAAO,EAAE;EACV;AACD,CAAE,CAAC;AAAC,IAAAC,QAAA,GAEW,IAAAC,aAAI,EAAEzG,OAAQ,CAAC;AAAA0G,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeWebview","_element","_compose","_style","_interopRequireDefault","observeAndResizeJS","style","EMPTY_ARRAY","Sandbox","forwardRef","containerStyle","customJS","html","lang","providerUrl","scripts","styles","title","type","url","onWindowEvents","viewportProps","onLoadEnd","testID","ref","colorScheme","usePreferredColorScheme","height","setHeight","useState","contentHtml","setContentHtml","getHtmlDoc","windowSize","Dimensions","get","isLandscape","setIsLandscape","width","wasLandscape","useRef","key","Platform","select","android","ios","addViewportProps","trim","replace","htmlDoc","_react","createElement","name","content","dangerouslySetInnerHTML","__html","map","rules","i","className","src","renderToString","getInjectedJavaScript","useCallback","injectedJS","Object","keys","forEach","eventType","updateContentHtml","forceRerender","newContentHtml","setImmediate","getSizeStyle","contentHeight","Math","ceil","aspectRatio","onChangeDimensions","dimensions","window","onMessage","message","data","nativeEvent","JSON","parse","e","action","console","warn","useEffect","dimensionsChangeSubscription","addEventListener","remove","current","WebView","sandboxStyles","injectedJavaScript","source","baseUrl","originWhitelist","isAndroid","workaroundStyles","webView","scrollEnabled","setBuiltInZoomControls","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","mediaPlaybackRequiresUserAction","StyleSheet","create","opacity","_default","memo","exports","default"],"sources":["@wordpress/components/src/sandbox/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { Dimensions, StyleSheet } from 'react-native';\nimport { WebView } from 'react-native-webview';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tPlatform,\n\trenderToString,\n\tmemo,\n\tuseRef,\n\tuseState,\n\tuseEffect,\n\tforwardRef,\n\tuseCallback,\n} from '@wordpress/element';\nimport { usePreferredColorScheme } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport sandboxStyles from './style.scss';\n\nconst observeAndResizeJS = `\n\t(function() {\n\t\tconst { MutationObserver } = window;\n\n\t\tif ( ! MutationObserver || ! document.body || ! window.parent ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction sendResize() {\n\t\t\tconst clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t// The function postMessage is exposed by the react-native-webview library\n\t\t\t// to communicate between React Native and the WebView, in this case,\n\t\t\t// we use it for notifying resize changes.\n\t\t\twindow.ReactNativeWebView.postMessage(\n\t\t\t\tJSON.stringify( {\n\t\t\t\t\taction: 'resize',\n\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t} )\n\t\t\t);\n\t\t}\n\n\t\tconst observer = new MutationObserver( sendResize );\n\t\tobserver.observe( document.body, {\n\t\t\tattributes: true,\n\t\t\tattributeOldValue: false,\n\t\t\tcharacterData: true,\n\t\t\tcharacterDataOldValue: false,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t} );\n\n\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t// the iframe root and interfere with our mechanism for\n\t\t// determining the unconstrained page bounds.\n\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\tif ( ruleOrNode.style ) {\n\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function (\n\t\t\t\t\tstyle\n\t\t\t\t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t/^\\\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] )\n\t\t\t\t\t) {\n\t\t\t\t\t\truleOrNode.style[ style ] = '';\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.querySelectorAll( '[style]' ),\n\t\t\tremoveViewportStyles\n\t\t);\n\t\tArray.prototype.forEach.call(\n\t\t\tdocument.styleSheets,\n\t\t\tfunction ( stylesheet ) {\n\t\t\t\tArray.prototype.forEach.call(\n\t\t\t\t\tstylesheet.cssRules || stylesheet.rules,\n\t\t\t\t\tremoveViewportStyles\n\t\t\t\t);\n\t\t\t}\n\t\t);\n\n\t\tdocument.body.style.position = 'absolute';\n\t\tdocument.body.style.width = '100%';\n\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\tsendResize();\n\n\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\twindow.addEventListener( 'orientationchange', sendResize, true );\n\t})();\n`;\n\nconst style = `\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div,\n\tbody > div iframe {\n\t\twidth: 100%;\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n\n\t.wp-block-embed__wrapper {\n\t\tposition: relative;\n\t}\n\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\n\t/**\n\t * Add responsiveness to embeds with aspect ratios.\n\t *\n\t * These styles have been copied from the web version (https://github.com/WordPress/gutenberg/blob/7901895ca20cf61e402925e31571d659dab64721/packages/block-library/src/embed/style.scss#L42-L89) and\n\t * adapted for the native version.\n\t */\n\t.wp-has-aspect-ratio.wp-block-embed__wrapper::before {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\tpadding-top: 50%; // Default to 2:1 aspect ratio.\n\t}\n\t.wp-has-aspect-ratio iframe {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.wp-embed-aspect-21-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 42.85%; // 9 / 21 * 100\n\t}\n\t.wp-embed-aspect-18-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 50%; // 9 / 18 * 100\n\t}\n\t.wp-embed-aspect-16-9.wp-block-embed__wrapper::before {\n\t\tpadding-top: 56.25%; // 9 / 16 * 100\n\t}\n\t.wp-embed-aspect-4-3.wp-block-embed__wrapper::before {\n\t\tpadding-top: 75%; // 3 / 4 * 100\n\t}\n\t.wp-embed-aspect-1-1.wp-block-embed__wrapper::before {\n\t\tpadding-top: 100%; // 1 / 1 * 100\n\t}\n\t.wp-embed-aspect-9-16.wp-block-embed__wrapper::before {\n\t\tpadding-top: 177.77%; // 16 / 9 * 100\n\t}\n\t.wp-embed-aspect-1-2.wp-block-embed__wrapper::before {\n\t\tpadding-top: 200%; // 2 / 1 * 100\n\t}\n`;\n\nconst EMPTY_ARRAY = [];\n\nconst Sandbox = forwardRef( function Sandbox(\n\t{\n\t\tcontainerStyle,\n\t\tcustomJS,\n\t\thtml = '',\n\t\tlang = 'en',\n\t\tproviderUrl = '',\n\t\tscripts = EMPTY_ARRAY,\n\t\tstyles = EMPTY_ARRAY,\n\t\ttitle = '',\n\t\ttype,\n\t\turl,\n\t\tonWindowEvents = {},\n\t\tviewportProps = '',\n\t\tonLoadEnd = () => {},\n\t\ttestID,\n\t},\n\tref\n) {\n\tconst colorScheme = usePreferredColorScheme();\n\tconst [ height, setHeight ] = useState( 0 );\n\tconst [ contentHtml, setContentHtml ] = useState( getHtmlDoc() );\n\n\tconst windowSize = Dimensions.get( 'window' );\n\tconst [ isLandscape, setIsLandscape ] = useState(\n\t\twindowSize.width >= windowSize.height\n\t);\n\tconst wasLandscape = useRef( isLandscape );\n\t// On Android, we need to recreate the WebView on any of the following actions, otherwise it disappears:\n\t// - Device rotation\n\t// - Light/dark mode changes\n\t// For this purpose, the key prop used in the WebView will be updated with the value of the actions.\n\tconst key = Platform.select( {\n\t\tandroid: `${ url }-${\n\t\t\tisLandscape ? 'landscape' : 'portrait'\n\t\t}-${ colorScheme }`,\n\t\tios: url,\n\t} );\n\n\tfunction getHtmlDoc() {\n\t\t// Put the html snippet into a html document, and update the state to refresh the WebView,\n\t\t// we can use this in the future to inject custom styles or scripts.\n\t\t// Scripts go into the body rather than the head, to support embedded content such as Instagram\n\t\t// that expect the scripts to be part of the body.\n\n\t\t// Avoid comma issues with props.viewportProps.\n\t\tconst addViewportProps = viewportProps\n\t\t\t.trim()\n\t\t\t.replace( /(^[^,])/, ', $1' );\n\n\t\tconst htmlDoc = (\n\t\t\t<html lang={ lang }>\n\t\t\t\t<head>\n\t\t\t\t\t<title>{ title }</title>\n\t\t\t\t\t<meta\n\t\t\t\t\t\tname=\"viewport\"\n\t\t\t\t\t\tcontent={ `width=device-width, initial-scale=1${ addViewportProps }` }\n\t\t\t\t\t></meta>\n\t\t\t\t\t<style dangerouslySetInnerHTML={ { __html: style } } />\n\t\t\t\t\t{ styles.map( ( rules, i ) => (\n\t\t\t\t\t\t<style\n\t\t\t\t\t\t\tkey={ i }\n\t\t\t\t\t\t\tdangerouslySetInnerHTML={ { __html: rules } }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) ) }\n\t\t\t\t</head>\n\t\t\t\t<body\n\t\t\t\t\tdata-resizable-iframe-connected=\"data-resizable-iframe-connected\"\n\t\t\t\t\tclassName={ type }\n\t\t\t\t>\n\t\t\t\t\t<div dangerouslySetInnerHTML={ { __html: html } } />\n\t\t\t\t\t{ scripts.map( ( src ) => (\n\t\t\t\t\t\t<script key={ src } src={ src } />\n\t\t\t\t\t) ) }\n\t\t\t\t</body>\n\t\t\t</html>\n\t\t);\n\t\treturn '<!DOCTYPE html>' + renderToString( htmlDoc );\n\t}\n\n\tconst getInjectedJavaScript = useCallback( () => {\n\t\t// Allow parent to override the resize observers with prop.customJS (legacy support)\n\t\tlet injectedJS = customJS || observeAndResizeJS;\n\n\t\t// Add any event listeners that were passed in.\n\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\tinjectedJS += `\n\t\t\t\twindow.addEventListener( '${ eventType }', function( event ) {\n\t\t\t\t\twindow.ReactNativeWebView.postMessage( JSON.stringify( { type: '${ eventType }', ...event.data } ) );\n\t\t\t\t});`;\n\t\t} );\n\n\t\treturn injectedJS;\n\t}, [ customJS, onWindowEvents ] );\n\n\tfunction updateContentHtml( forceRerender = false ) {\n\t\tconst newContentHtml = getHtmlDoc();\n\n\t\tif ( forceRerender && contentHtml === newContentHtml ) {\n\t\t\t// The re-render is forced by updating the state with empty HTML,\n\t\t\t// waiting for the JS code to be executed with \"setImmediate\" and then\n\t\t\t// setting the content HTML again.\n\t\t\tsetContentHtml( '' );\n\t\t\tsetImmediate( () => setContentHtml( newContentHtml ) );\n\t\t} else {\n\t\t\tsetContentHtml( newContentHtml );\n\t\t}\n\t}\n\n\tfunction getSizeStyle() {\n\t\tconst contentHeight = Math.ceil( height );\n\n\t\treturn contentHeight ? { height: contentHeight } : { aspectRatio: 1 };\n\t}\n\n\tfunction onChangeDimensions( dimensions ) {\n\t\tsetIsLandscape( dimensions.window.width >= dimensions.window.height );\n\t}\n\n\tconst onMessage = useCallback(\n\t\t( message ) => {\n\t\t\tlet data = message?.nativeEvent?.data;\n\n\t\t\ttry {\n\t\t\t\tdata = JSON.parse( data );\n\t\t\t} catch ( e ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// check for resize event\n\t\t\tif ( 'resize' === data?.action ) {\n\t\t\t\tsetHeight( data.height );\n\t\t\t}\n\n\t\t\t// Forward the event to parent event listeners\n\t\t\tObject.keys( onWindowEvents ).forEach( ( eventType ) => {\n\t\t\t\tif ( data?.type === eventType ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tonWindowEvents[ eventType ]( data );\n\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Error handling event ${ eventType }`,\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t},\n\t\t[ onWindowEvents ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst dimensionsChangeSubscription = Dimensions.addEventListener(\n\t\t\t'change',\n\t\t\tonChangeDimensions\n\t\t);\n\t\treturn () => {\n\t\t\tdimensionsChangeSubscription.remove();\n\t\t};\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tupdateContentHtml();\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ html, title, type, styles, scripts ] );\n\n\tuseEffect( () => {\n\t\t// When device orientation changes we have to recalculate the size,\n\t\t// for this purpose we reset the current size value.\n\t\tif ( wasLandscape.current !== isLandscape ) {\n\t\t\tsetHeight( 0 );\n\t\t}\n\t\twasLandscape.current = isLandscape;\n\t}, [ isLandscape ] );\n\n\treturn (\n\t\t<WebView\n\t\t\tcontainerStyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__container' ],\n\t\t\t\tcontainerStyle,\n\t\t\t] }\n\t\t\tinjectedJavaScript={ getInjectedJavaScript() }\n\t\t\tkey={ key }\n\t\t\tref={ ref }\n\t\t\tsource={ { baseUrl: providerUrl, html: contentHtml } }\n\t\t\t// Wildcard value is required for static HTML\n\t\t\t// Reference: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#source\n\t\t\toriginWhitelist={ [ '*' ] }\n\t\t\tstyle={ [\n\t\t\t\tsandboxStyles[ 'sandbox-webview__content' ],\n\t\t\t\tgetSizeStyle(),\n\t\t\t\tPlatform.isAndroid && workaroundStyles.webView,\n\t\t\t] }\n\t\t\tonMessage={ onMessage }\n\t\t\tscrollEnabled={ false }\n\t\t\tsetBuiltInZoomControls={ false }\n\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\tshowsVerticalScrollIndicator={ false }\n\t\t\tmediaPlaybackRequiresUserAction={ false }\n\t\t\tonLoadEnd={ onLoadEnd }\n\t\t\ttestID={ testID }\n\t\t/>\n\t);\n} );\n\nconst workaroundStyles = StyleSheet.create( {\n\twebView: {\n\t\t/**\n\t\t * The slight opacity below is a workaround for an Android crash caused from combining Android\n\t\t * 12's new scroll overflow behavior and webviews.\n\t\t * https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-808869253\n\t\t */\n\t\topacity: 0.99,\n\t},\n} );\n\nexport default memo( Sandbox );\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AAUA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAC,sBAAA,CAAAL,OAAA;AAxBA;AACA;AACA;;AAIA;AACA;AACA;;AAaA;AACA;AACA;;AAGA,MAAMM,kBAAkB,GAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMC,KAAK,GAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMC,WAAW,GAAG,EAAE;AAEtB,MAAMC,OAAO,GAAG,IAAAC,mBAAU,EAAE,SAASD,OAAOA,CAC3C;EACCE,cAAc;EACdC,QAAQ;EACRC,IAAI,GAAG,EAAE;EACTC,IAAI,GAAG,IAAI;EACXC,WAAW,GAAG,EAAE;EAChBC,OAAO,GAAGR,WAAW;EACrBS,MAAM,GAAGT,WAAW;EACpBU,KAAK,GAAG,EAAE;EACVC,IAAI;EACJC,GAAG;EACHC,cAAc,GAAG,CAAC,CAAC;EACnBC,aAAa,GAAG,EAAE;EAClBC,SAAS,GAAGA,CAAA,KAAM,CAAC,CAAC;EACpBC;AACD,CAAC,EACDC,GAAG,EACF;EACD,MAAMC,WAAW,GAAG,IAAAC,gCAAuB,EAAC,CAAC;EAC7C,MAAM,CAAEC,MAAM,EAAEC,SAAS,CAAE,GAAG,IAAAC,iBAAQ,EAAE,CAAE,CAAC;EAC3C,MAAM,CAAEC,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ACA;IACEQ,OAAO,EAAE;EACV;AACD,CAAE,CAAC;AAAC,IAAAC,QAAA,GAEW,IAAAC,aAAI,EAAE1G,OAAQ,CAAC;AAAA2G,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["@wordpress/components/src/sandbox/types.ts"],"sourcesContent":["export type SandBoxProps = {\n\t/**\n\t * The HTML to render in the body of the iframe document.\n\t *\n\t * @default ''\n\t */\n\thtml?: string;\n\t/**\n\t * The `<title>` of the iframe document.\n\t *\n\t * @default ''\n\t */\n\ttitle?: string;\n\t/**\n\t * The CSS class name to apply to the `<html>` and `<body>` elements of the iframe.\n\t */\n\ttype?: string;\n\t/**\n\t * An array of CSS strings to inject into the `<head>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tstyles?: string[];\n\t/**\n\t * An array of script URLs to inject as `<script>` tags into the bottom of the `<body>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tscripts?: string[];\n\t/**\n\t * The `onFocus` callback for the iframe.\n\t */\n\tonFocus?: React.DOMAttributes< HTMLIFrameElement >[ 'onFocus' ];\n};\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["@wordpress/components/src/sandbox/types.ts"],"sourcesContent":["export type SandBoxProps = {\n\t/**\n\t * The HTML to render in the body of the iframe document.\n\t *\n\t * @default ''\n\t */\n\thtml?: string;\n\t/**\n\t * The `<title>` of the iframe document.\n\t *\n\t * @default ''\n\t */\n\ttitle?: string;\n\t/**\n\t * The CSS class name to apply to the `<html>` and `<body>` elements of the iframe.\n\t */\n\ttype?: string;\n\t/**\n\t * An array of CSS strings to inject into the `<head>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tstyles?: string[];\n\t/**\n\t * An array of script URLs to inject as `<script>` tags into the bottom of the `<body>` of the iframe document.\n\t *\n\t * @default []\n\t */\n\tscripts?: string[];\n\t/**\n\t * The `onFocus` callback for the iframe.\n\t */\n\tonFocus?: React.DOMAttributes< HTMLIFrameElement >[ 'onFocus' ];\n\t/**\n\t * The `tabindex` the iframe should receive.\n\t *\n\t * @default 0\n\t */\n\ttabIndex?: HTMLElement[ 'tabIndex' ];\n};\n"],"mappings":""}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Scrollable = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _context = require("../
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _context = require("../context");
|
|
9
9
|
var _view = require("../view");
|
|
10
10
|
var _hook = require("./hook");
|
|
11
11
|
/**
|
|
@@ -18,7 +18,7 @@ var _hook = require("./hook");
|
|
|
18
18
|
|
|
19
19
|
function UnconnectedScrollable(props, forwardedRef) {
|
|
20
20
|
const scrollableProps = (0, _hook.useScrollable)(props);
|
|
21
|
-
return (0,
|
|
21
|
+
return (0, _react.createElement)(_view.View, {
|
|
22
22
|
...scrollableProps,
|
|
23
23
|
ref: forwardedRef
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_context","require","_view","_hook","UnconnectedScrollable","props","forwardedRef","scrollableProps","useScrollable","
|
|
1
|
+
{"version":3,"names":["_context","require","_view","_hook","UnconnectedScrollable","props","forwardedRef","scrollableProps","useScrollable","_react","createElement","View","ref","Scrollable","contextConnect","exports","_default","default"],"sources":["@wordpress/components/src/scrollable/component.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport type { ForwardedRef } from 'react';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { contextConnect } from '../context';\nimport { View } from '../view';\nimport { useScrollable } from './hook';\nimport type { ScrollableProps } from './types';\n\nfunction UnconnectedScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst scrollableProps = useScrollable( props );\n\n\treturn <View { ...scrollableProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Scrollable` is a layout component that content in a scrollable container.\n *\n * ```jsx\n * import { __experimentalScrollable as Scrollable } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Scrollable style={ { maxHeight: 200 } }>\n * \t\t\t<div style={ { height: 500 } }>...</div>\n * \t\t</Scrollable>\n * \t);\n * }\n * ```\n */\nexport const Scrollable = contextConnect( UnconnectedScrollable, 'Scrollable' );\n\nexport default Scrollable;\n"],"mappings":";;;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,SAASG,qBAAqBA,CAC7BC,KAAwD,EACxDC,YAAiC,EAChC;EACD,MAAMC,eAAe,GAAG,IAAAC,mBAAa,EAAEH,KAAM,CAAC;EAE9C,OAAO,IAAAI,MAAA,CAAAC,aAAA,EAACR,KAAA,CAAAS,IAAI;IAAA,GAAMJ,eAAe;IAAGK,GAAG,EAAGN;EAAc,CAAE,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMO,UAAU,GAAG,IAAAC,uBAAc,EAAEV,qBAAqB,EAAE,YAAa,CAAC;AAACW,OAAA,CAAAF,UAAA,GAAAA,UAAA;AAAA,IAAAG,QAAA,GAEjEH,UAAU;AAAAE,OAAA,CAAAE,OAAA,GAAAD,QAAA"}
|
package/build/scrollable/hook.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useScrollable = useScrollable;
|
|
7
7
|
var _element = require("@wordpress/element");
|
|
8
|
-
var _context = require("../
|
|
8
|
+
var _context = require("../context");
|
|
9
9
|
var styles = _interopRequireWildcard(require("./styles"));
|
|
10
10
|
var _useCx = require("../utils/hooks/use-cx");
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_element","require","_context","styles","_interopRequireWildcard","_useCx","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","useScrollable","props","className","scrollDirection","smoothScroll","otherProps","useContextSystem","cx","useCx","classes","useMemo","Scrollable","scrollableScrollbar","scrollX","scrollY","scrollAuto"],"sources":["@wordpress/components/src/scrollable/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../
|
|
1
|
+
{"version":3,"names":["_element","require","_context","styles","_interopRequireWildcard","_useCx","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","useScrollable","props","className","scrollDirection","smoothScroll","otherProps","useContextSystem","cx","useCx","classes","useMemo","Scrollable","scrollableScrollbar","scrollX","scrollY","scrollAuto"],"sources":["@wordpress/components/src/scrollable/hook.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport type { WordPressComponentProps } from '../context';\nimport { useContextSystem } from '../context';\nimport * as styles from './styles';\nimport { useCx } from '../utils/hooks/use-cx';\nimport type { ScrollableProps } from './types';\n\nexport function useScrollable(\n\tprops: WordPressComponentProps< ScrollableProps, 'div' >\n) {\n\tconst {\n\t\tclassName,\n\t\tscrollDirection = 'y',\n\t\tsmoothScroll = false,\n\t\t...otherProps\n\t} = useContextSystem( props, 'Scrollable' );\n\n\tconst cx = useCx();\n\n\tconst classes = useMemo(\n\t\t() =>\n\t\t\tcx(\n\t\t\t\tstyles.Scrollable,\n\t\t\t\tstyles.scrollableScrollbar,\n\t\t\t\tsmoothScroll && styles.smoothScroll,\n\t\t\t\tscrollDirection === 'x' && styles.scrollX,\n\t\t\t\tscrollDirection === 'y' && styles.scrollY,\n\t\t\t\tscrollDirection === 'auto' && styles.scrollAuto,\n\t\t\t\tclassName\n\t\t\t),\n\t\t[ className, cx, scrollDirection, smoothScroll ]\n\t);\n\n\treturn { ...otherProps, className: classes };\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA8C,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAH,wBAAAO,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,M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ineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.SearchControl = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _react = require("react");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _compose = require("@wordpress/compose");
|
|
11
11
|
var _i18n = require("@wordpress/i18n");
|
|
12
12
|
var _icons = require("@wordpress/icons");
|
|
13
|
+
var _element = require("@wordpress/element");
|
|
13
14
|
var _button = _interopRequireDefault(require("../button"));
|
|
14
15
|
var _baseControl = _interopRequireDefault(require("../base-control"));
|
|
15
16
|
/**
|
|
@@ -44,7 +45,7 @@ function UnforwardedSearchControl({
|
|
|
44
45
|
const id = `components-search-control-${instanceId}`;
|
|
45
46
|
const renderRightButton = () => {
|
|
46
47
|
if (onClose) {
|
|
47
|
-
return (0,
|
|
48
|
+
return (0, _react.createElement)(_button.default, {
|
|
48
49
|
__next40pxDefaultSize: __next40pxDefaultSize,
|
|
49
50
|
icon: _icons.closeSmall,
|
|
50
51
|
label: (0, _i18n.__)('Close search'),
|
|
@@ -53,7 +54,7 @@ function UnforwardedSearchControl({
|
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
if (!!value) {
|
|
56
|
-
return (0,
|
|
57
|
+
return (0, _react.createElement)(_button.default, {
|
|
57
58
|
__next40pxDefaultSize: __next40pxDefaultSize,
|
|
58
59
|
icon: _icons.closeSmall,
|
|
59
60
|
label: (0, _i18n.__)('Reset search'),
|
|
@@ -64,11 +65,11 @@ function UnforwardedSearchControl({
|
|
|
64
65
|
size: size
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
return (0,
|
|
68
|
+
return (0, _react.createElement)(_icons.Icon, {
|
|
68
69
|
icon: _icons.search
|
|
69
70
|
});
|
|
70
71
|
};
|
|
71
|
-
return (0,
|
|
72
|
+
return (0, _react.createElement)(_baseControl.default, {
|
|
72
73
|
__nextHasNoMarginBottom: __nextHasNoMarginBottom,
|
|
73
74
|
label: label,
|
|
74
75
|
id: id,
|
|
@@ -78,9 +79,9 @@ function UnforwardedSearchControl({
|
|
|
78
79
|
'is-next-40px-default-size': __next40pxDefaultSize,
|
|
79
80
|
'is-size-compact': size === 'compact'
|
|
80
81
|
})
|
|
81
|
-
}, (0,
|
|
82
|
+
}, (0, _react.createElement)("div", {
|
|
82
83
|
className: "components-search-control__input-wrapper"
|
|
83
|
-
}, (0,
|
|
84
|
+
}, (0, _react.createElement)("input", {
|
|
84
85
|
...restProps,
|
|
85
86
|
ref: (0, _compose.useMergeRefs)([searchRef, forwardedRef]),
|
|
86
87
|
className: "components-search-control__input",
|
|
@@ -91,7 +92,7 @@ function UnforwardedSearchControl({
|
|
|
91
92
|
onKeyDown: onKeyDown,
|
|
92
93
|
autoComplete: "off",
|
|
93
94
|
value: value || ''
|
|
94
|
-
}), (0,
|
|
95
|
+
}), (0, _react.createElement)("div", {
|
|
95
96
|
className: "components-search-control__icon"
|
|
96
97
|
}, renderRightButton())));
|
|
97
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_classnames","_interopRequireDefault","require","_compose","_i18n","_icons","_element","_button","_baseControl","UnforwardedSearchControl","__nextHasNoMarginBottom","__next40pxDefaultSize","className","onChange","onKeyDown","value","label","placeholder","__","hideLabelFromVision","help","onClose","size","restProps","forwardedRef","searchRef","useRef","instanceId","useInstanceId","SearchControl","id","renderRightButton","_react","createElement","default","icon","closeSmall","onClick","current","focus","Icon","search","classnames","ref","useMergeRefs","type","event","target","autoComplete","forwardRef","exports","_default"],"sources":["@wordpress/components/src/search-control/index.tsx"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { useInstanceId, useMergeRefs } from '@wordpress/compose';\nimport { __ } from '@wordpress/i18n';\nimport { Icon, search, closeSmall } from '@wordpress/icons';\nimport { forwardRef, useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport Button from '../button';\nimport BaseControl from '../base-control';\nimport type { WordPressComponentProps } from '../context/wordpress-component';\nimport type { SearchControlProps } from './types';\nimport type { ForwardedRef } from 'react';\n\nfunction UnforwardedSearchControl(\n\t{\n\t\t__nextHasNoMarginBottom,\n\t\t__next40pxDefaultSize = false,\n\t\tclassName,\n\t\tonChange,\n\t\tonKeyDown,\n\t\tvalue,\n\t\tlabel,\n\t\tplaceholder = __( 'Search' ),\n\t\thideLabelFromVision = true,\n\t\thelp,\n\t\tonClose,\n\t\tsize = 'default',\n\t\t...restProps\n\t}: WordPressComponentProps< SearchControlProps, 'input', false >,\n\tforwardedRef: ForwardedRef< HTMLInputElement >\n) {\n\tconst searchRef = useRef< HTMLInputElement >();\n\tconst instanceId = useInstanceId( SearchControl );\n\tconst id = `components-search-control-${ instanceId }`;\n\n\tconst renderRightButton = () => {\n\t\tif ( onClose ) {\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\t__next40pxDefaultSize={ __next40pxDefaultSize }\n\t\t\t\t\ticon={ closeSmall }\n\t\t\t\t\tlabel={ __( 'Close search' ) }\n\t\t\t\t\tonClick={ onClose }\n\t\t\t\t\tsize={ size }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tif ( !! value ) {\n\t\t\treturn (\n\t\t\t\t<Button\n\t\t\t\t\t__next40pxDefaultSize={ __next40pxDefaultSize }\n\t\t\t\t\ticon={ closeSmall }\n\t\t\t\t\tlabel={ __( 'Reset search' ) }\n\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\tonChange( '' );\n\t\t\t\t\t\tsearchRef.current?.focus();\n\t\t\t\t\t} }\n\t\t\t\t\tsize={ size }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn <Icon icon={ search } />;\n\t};\n\n\treturn (\n\t\t<BaseControl\n\t\t\t__nextHasNoMarginBottom={ __nextHasNoMarginBottom }\n\t\t\tlabel={ label }\n\t\t\tid={ id }\n\t\t\thideLabelFromVision={ hideLabelFromVision }\n\t\t\thelp={ help }\n\t\t\tclassName={ classnames( className, 'components-search-control', {\n\t\t\t\t'is-next-40px-default-size': __next40pxDefaultSize,\n\t\t\t\t'is-size-compact': size === 'compact',\n\t\t\t} ) }\n\t\t>\n\t\t\t<div className=\"components-search-control__input-wrapper\">\n\t\t\t\t<input\n\t\t\t\t\t{ ...restProps }\n\t\t\t\t\tref={ useMergeRefs( [ searchRef, forwardedRef ] ) }\n\t\t\t\t\tclassName=\"components-search-control__input\"\n\t\t\t\t\tid={ id }\n\t\t\t\t\ttype=\"search\"\n\t\t\t\t\tplaceholder={ placeholder }\n\t\t\t\t\tonChange={ ( event ) => onChange( event.target.value ) }\n\t\t\t\t\tonKeyDown={ onKeyDown }\n\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\tvalue={ value || '' }\n\t\t\t\t/>\n\t\t\t\t<div className=\"components-search-control__icon\">\n\t\t\t\t\t{ renderRightButton() }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</BaseControl>\n\t);\n}\n\n/**\n * SearchControl components let users display a search control.\n *\n * ```jsx\n * import { SearchControl } from '@wordpress/components';\n * import { useState } from '@wordpress/element';\n *\n * function MySearchControl( { className, setState } ) {\n * const [ searchInput, setSearchInput ] = useState( '' );\n *\n * return (\n * <SearchControl\n * value={ searchInput }\n * onChange={ setSearchInput }\n * />\n * );\n * }\n * ```\n */\nexport const SearchControl = forwardRef( UnforwardedSearchControl );\n\nexport default SearchControl;\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAKA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAP,sBAAA,CAAAC,OAAA;AAjBA;AACA;AACA;;AA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CAAArB,aAAA,GAAAA,aAAA;AAAA,IAAAsB,QAAA,GAErDtB,aAAa;AAAAqB,OAAA,CAAAhB,OAAA,GAAAiB,QAAA"}
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _react = require("react");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
|
+
var _element = require("@wordpress/element");
|
|
10
11
|
var _i18n = require("@wordpress/i18n");
|
|
11
12
|
var _components = require("@wordpress/components");
|
|
12
13
|
var _icons = require("@wordpress/icons");
|
|
@@ -135,16 +136,16 @@ function SearchControl({
|
|
|
135
136
|
'search-control__right-icon': rightIconStyle
|
|
136
137
|
} = currentStyles;
|
|
137
138
|
function renderLeftButton() {
|
|
138
|
-
const button = !isIOS && isActive ? (0,
|
|
139
|
+
const button = !isIOS && isActive ? (0, _react.createElement)(_components.Button, {
|
|
139
140
|
label: (0, _i18n.__)('Cancel search'),
|
|
140
141
|
icon: _icons.arrowLeft,
|
|
141
142
|
onClick: onCancel,
|
|
142
143
|
style: iconStyle
|
|
143
|
-
}) : (0,
|
|
144
|
+
}) : (0, _react.createElement)(_icons.Icon, {
|
|
144
145
|
icon: _components.Gridicons.search,
|
|
145
146
|
fill: iconStyle?.color
|
|
146
147
|
});
|
|
147
|
-
return (0,
|
|
148
|
+
return (0, _react.createElement)(_reactNative.View, {
|
|
148
149
|
style: [inputButtonStyle, inputButtonLeftStyle]
|
|
149
150
|
}, button);
|
|
150
151
|
}
|
|
@@ -153,17 +154,17 @@ function SearchControl({
|
|
|
153
154
|
|
|
154
155
|
// Add a View element to properly center the input placeholder via flexbox.
|
|
155
156
|
if (isIOS && !isActive) {
|
|
156
|
-
button = (0,
|
|
157
|
+
button = (0, _react.createElement)(_reactNative.View, null);
|
|
157
158
|
}
|
|
158
159
|
if (!!value) {
|
|
159
|
-
button = (0,
|
|
160
|
+
button = (0, _react.createElement)(_components.Button, {
|
|
160
161
|
label: (0, _i18n.__)('Clear search'),
|
|
161
162
|
icon: isIOS ? _icons.cancelCircleFilled : _icons.close,
|
|
162
163
|
onClick: clearInput,
|
|
163
164
|
style: [iconStyle, rightIconStyle]
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
return (0,
|
|
167
|
+
return (0, _react.createElement)(_reactNative.View, {
|
|
167
168
|
style: [inputButtonStyle, inputButtonRightStyle]
|
|
168
169
|
}, button);
|
|
169
170
|
}
|
|
@@ -171,9 +172,9 @@ function SearchControl({
|
|
|
171
172
|
if (!isIOS) {
|
|
172
173
|
return null;
|
|
173
174
|
}
|
|
174
|
-
return (0,
|
|
175
|
+
return (0, _react.createElement)(_reactNative.View, {
|
|
175
176
|
style: cancelButtonStyle
|
|
176
|
-
}, (0,
|
|
177
|
+
}, (0, _react.createElement)(_reactNative.Text, {
|
|
177
178
|
onPress: onCancel,
|
|
178
179
|
style: cancelButtonTextStyle,
|
|
179
180
|
accessible: true,
|
|
@@ -182,15 +183,15 @@ function SearchControl({
|
|
|
182
183
|
accessibilityHint: (0, _i18n.__)('Cancel search')
|
|
183
184
|
}, (0, _i18n.__)('Cancel')));
|
|
184
185
|
}
|
|
185
|
-
return (0,
|
|
186
|
+
return (0, _react.createElement)(_reactNative.TouchableOpacity, {
|
|
186
187
|
style: containerStyle,
|
|
187
188
|
onPress: onPress,
|
|
188
189
|
activeOpacity: 1
|
|
189
|
-
}, (0,
|
|
190
|
+
}, (0, _react.createElement)(_reactNative.View, {
|
|
190
191
|
style: innerContainerStyle
|
|
191
|
-
}, (0,
|
|
192
|
+
}, (0, _react.createElement)(_reactNative.View, {
|
|
192
193
|
style: inputContainerStyle
|
|
193
|
-
}, renderLeftButton(), (0,
|
|
194
|
+
}, renderLeftButton(), (0, _react.createElement)(_reactNative.TextInput, {
|
|
194
195
|
ref: inputRef,
|
|
195
196
|
style: formInputStyle,
|
|
196
197
|
placeholderTextColor: placeholderStyle?.color,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_element","require","_reactNative","_i18n","_components","_icons","_style","_interopRequireDefault","_platformStyle","baseStyles","allStyles","selector","platformStyles","selectModifiedStyles","styles","modifier","modifierMatcher","RegExp","modifierSelectors","Object","keys","filter","match","reduce","modifiedStyles","modifierSelector","blockElementSelector","split","mergeStyles","updateStyles","selectors","forEach","SearchControl","value","onChange","placeholder","__","isActive","setIsActive","useState","currentStyles","setCurrentStyles","isDark","useColorScheme","inputRef","useRef","onCancelTimer","isIOS","Platform","OS","darkStyles","useMemo","activeStyles","activeDarkStyles","useEffect","futureStyles","mergeFutureStyles","shouldUseConditions","shouldUseModified","every","should","updatedStyles","clearInput","useCallback","onPress","current","focus","onFocus","onCancel","clearTimeout","setTimeout","blur","onKeyboardDidHide","keyboardHideSubscription","Keyboard","addListener","remove","containerStyle","innerContainerStyle","inputContainerStyle","formInputStyle","placeholderStyle","inputButtonStyle","inputButtonLeftStyle","inputButtonRightStyle","cancelButtonStyle","cancelButtonTextStyle","iconStyle","rightIconStyle","renderLeftButton","button","createElement","Button","label","icon","arrowLeftIcon","onClick","style","Icon","Gridicons","search","fill","color","View","renderRightButton","cancelCircleFilledIcon","closeIcon","renderCancel","Text","accessible","accessibilityRole","accessibilityLabel","accessibilityHint","TouchableOpacity","activeOpacity","TextInput","ref","placeholderTextColor","onChangeText","_default","exports","default"],"sources":["@wordpress/components/src/search-control/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tTextInput,\n\tText,\n\tView,\n\tTouchableOpacity,\n\tPlatform,\n\tuseColorScheme,\n\tKeyboard,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseState,\n\tuseRef,\n\tuseMemo,\n\tuseEffect,\n\tuseCallback,\n} from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Button, Gridicons } from '@wordpress/components';\nimport {\n\tIcon,\n\tcancelCircleFilled as cancelCircleFilledIcon,\n\tarrowLeft as arrowLeftIcon,\n\tclose as closeIcon,\n} from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport allStyles from './style.scss';\nimport platformStyles from './platform-style.scss';\n\n// Merge platform specific styles with the default styles.\nconst baseStyles = { ...allStyles };\nfor ( const selector in platformStyles ) {\n\tbaseStyles[ selector ] = {\n\t\t...baseStyles[ selector ],\n\t\t...platformStyles[ selector ],\n\t};\n}\n\nfunction selectModifiedStyles( styles, modifier ) {\n\tconst modifierMatcher = new RegExp( `--${ modifier }$` );\n\tconst modifierSelectors = Object.keys( styles ).filter( ( selector ) =>\n\t\tselector.match( modifierMatcher )\n\t);\n\n\treturn modifierSelectors.reduce( ( modifiedStyles, modifierSelector ) => {\n\t\tconst blockElementSelector = modifierSelector.split( '--' )[ 0 ];\n\t\tmodifiedStyles[ blockElementSelector ] = styles[ modifierSelector ];\n\t\treturn modifiedStyles;\n\t}, {} );\n}\n\nfunction mergeStyles( styles, updateStyles, selectors ) {\n\tselectors.forEach( ( selector ) => {\n\t\tstyles[ selector ] = {\n\t\t\t...styles[ selector ],\n\t\t\t...updateStyles[ selector ],\n\t\t};\n\t} );\n\n\treturn styles;\n}\n\nfunction SearchControl( {\n\tvalue,\n\tonChange,\n\tplaceholder = __( 'Search blocks' ),\n} ) {\n\tconst [ isActive, setIsActive ] = useState( false );\n\tconst [ currentStyles, setCurrentStyles ] = useState( baseStyles );\n\n\tconst isDark = useColorScheme() === 'dark';\n\tconst inputRef = useRef();\n\tconst onCancelTimer = useRef();\n\n\tconst isIOS = Platform.OS === 'ios';\n\n\tconst darkStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'dark' );\n\t}, [] );\n\n\tconst activeStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'active' );\n\t}, [] );\n\n\tconst activeDarkStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'active-dark' );\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tlet futureStyles = { ...baseStyles };\n\n\t\tfunction mergeFutureStyles( modifiedStyles, shouldUseConditions ) {\n\t\t\tconst shouldUseModified = shouldUseConditions.every(\n\t\t\t\t( should ) => should\n\t\t\t);\n\n\t\t\tconst updatedStyles = shouldUseModified\n\t\t\t\t? modifiedStyles\n\t\t\t\t: futureStyles;\n\n\t\t\tconst selectors = Object.keys( modifiedStyles );\n\n\t\t\tfutureStyles = mergeStyles(\n\t\t\t\tfutureStyles,\n\t\t\t\tupdatedStyles,\n\t\t\t\tselectors\n\t\t\t);\n\t\t}\n\n\t\tmergeFutureStyles( activeStyles, [ isActive ] );\n\t\tmergeFutureStyles( darkStyles, [ isDark ] );\n\t\tmergeFutureStyles( activeDarkStyles, [ isActive, isDark ] );\n\n\t\tsetCurrentStyles( futureStyles );\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ isActive, isDark ] );\n\n\tconst clearInput = useCallback( () => {\n\t\tonChange( '' );\n\t}, [ onChange ] );\n\n\tconst onPress = useCallback( () => {\n\t\tsetIsActive( true );\n\t\tinputRef.current?.focus();\n\t}, [] );\n\n\tconst onFocus = useCallback( () => {\n\t\tsetIsActive( true );\n\t}, [] );\n\n\tconst onCancel = useCallback( () => {\n\t\tclearTimeout( onCancelTimer.current );\n\t\tonCancelTimer.current = setTimeout( () => {\n\t\t\tinputRef.current?.blur();\n\t\t\tclearInput();\n\t\t\tsetIsActive( false );\n\t\t}, 0 );\n\t}, [ clearInput ] );\n\n\tconst onKeyboardDidHide = useCallback( () => {\n\t\tif ( ! isIOS ) {\n\t\t\tonCancel();\n\t\t}\n\t}, [ isIOS, onCancel ] );\n\n\tuseEffect( () => {\n\t\tconst keyboardHideSubscription = Keyboard.addListener(\n\t\t\t'keyboardDidHide',\n\t\t\tonKeyboardDidHide\n\t\t);\n\t\treturn () => {\n\t\t\tclearTimeout( onCancelTimer.current );\n\t\t\tkeyboardHideSubscription.remove();\n\t\t};\n\t}, [ onKeyboardDidHide ] );\n\n\tconst {\n\t\t'search-control__container': containerStyle,\n\t\t'search-control__inner-container': innerContainerStyle,\n\t\t'search-control__input-container': inputContainerStyle,\n\t\t'search-control__form-input': formInputStyle,\n\t\t'search-control__form-input-placeholder': placeholderStyle,\n\t\t'search-control__input-button': inputButtonStyle,\n\t\t'search-control__input-button-left': inputButtonLeftStyle,\n\t\t'search-control__input-button-right': inputButtonRightStyle,\n\t\t'search-control__cancel-button': cancelButtonStyle,\n\t\t'search-control__cancel-button-text': cancelButtonTextStyle,\n\t\t'search-control__icon': iconStyle,\n\t\t'search-control__right-icon': rightIconStyle,\n\t} = currentStyles;\n\n\tfunction renderLeftButton() {\n\t\tconst button =\n\t\t\t! isIOS && isActive ? (\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Cancel search' ) }\n\t\t\t\t\ticon={ arrowLeftIcon }\n\t\t\t\t\tonClick={ onCancel }\n\t\t\t\t\tstyle={ iconStyle }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<Icon icon={ Gridicons.search } fill={ iconStyle?.color } />\n\t\t\t);\n\n\t\treturn (\n\t\t\t<View style={ [ inputButtonStyle, inputButtonLeftStyle ] }>\n\t\t\t\t{ button }\n\t\t\t</View>\n\t\t);\n\t}\n\n\tfunction renderRightButton() {\n\t\tlet button;\n\n\t\t// Add a View element to properly center the input placeholder via flexbox.\n\t\tif ( isIOS && ! isActive ) {\n\t\t\tbutton = <View />;\n\t\t}\n\n\t\tif ( !! value ) {\n\t\t\tbutton = (\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Clear search' ) }\n\t\t\t\t\ticon={ isIOS ? cancelCircleFilledIcon : closeIcon }\n\t\t\t\t\tonClick={ clearInput }\n\t\t\t\t\tstyle={ [ iconStyle, rightIconStyle ] }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<View style={ [ inputButtonStyle, inputButtonRightStyle ] }>\n\t\t\t\t{ button }\n\t\t\t</View>\n\t\t);\n\t}\n\n\tfunction renderCancel() {\n\t\tif ( ! isIOS ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View style={ cancelButtonStyle }>\n\t\t\t\t<Text\n\t\t\t\t\tonPress={ onCancel }\n\t\t\t\t\tstyle={ cancelButtonTextStyle }\n\t\t\t\t\taccessible={ true }\n\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\taccessibilityLabel={ __( 'Cancel search' ) }\n\t\t\t\t\taccessibilityHint={ __( 'Cancel search' ) }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Cancel' ) }\n\t\t\t\t</Text>\n\t\t\t</View>\n\t\t);\n\t}\n\n\treturn (\n\t\t<TouchableOpacity\n\t\t\tstyle={ containerStyle }\n\t\t\tonPress={ onPress }\n\t\t\tactiveOpacity={ 1 }\n\t\t>\n\t\t\t<View style={ innerContainerStyle }>\n\t\t\t\t<View style={ inputContainerStyle }>\n\t\t\t\t\t{ renderLeftButton() }\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\tref={ inputRef }\n\t\t\t\t\t\tstyle={ formInputStyle }\n\t\t\t\t\t\tplaceholderTextColor={ placeholderStyle?.color }\n\t\t\t\t\t\tonChangeText={ onChange }\n\t\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\t\tvalue={ value }\n\t\t\t\t\t\tplaceholder={ placeholder }\n\t\t\t\t\t/>\n\t\t\t\t\t{ renderRightButton() }\n\t\t\t\t</View>\n\t\t\t\t{ isActive && renderCancel() }\n\t\t\t</View>\n\t\t</TouchableOpacity>\n\t);\n}\n\nexport default SearchControl;\n"],"mappings":";;;;;;;AAgBA,IAAAA,QAAA,GAAAC,OAAA;AAbA,IAAAC,YAAA,GAAAD,OAAA;AAoBA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAUA,IAAAK,MAAA,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B,CAAG;MAC5C4E,iBAAiB,EAAG,IAAA5E,QAAE,EAAE,eAAgB;IAAG,GAEzC,IAAAA,QAAE,EAAE,QAAS,CACV,CACD,CAAC;EAET;EAEA,OACC,IAAApC,QAAA,CAAA2F,aAAA,EAACzF,YAAA,CAAA+G,gBAAgB;IAChBhB,KAAK,EAAGpB,cAAgB;IACxBb,OAAO,EAAGA,OAAS;IACnBkD,aAAa,EAAG;EAAG,GAEnB,IAAAlH,QAAA,CAAA2F,aAAA,EAACzF,YAAA,CAAAqG,IAAI;IAACN,KAAK,EAAGnB;EAAqB,GAClC,IAAA9E,QAAA,CAAA2F,aAAA,EAACzF,YAAA,CAAAqG,IAAI;IAACN,KAAK,EAAGlB;EAAqB,GAChCU,gBAAgB,CAAC,CAAC,EACpB,IAAAzF,QAAA,CAAA2F,aAAA,EAACzF,YAAA,CAAAiH,SAAS;IACTC,GAAG,EAAGxE,QAAU;IAChBqD,KAAK,EAAGjB,cAAgB;IACxBqC,oBAAoB,EAAGpC,gBAAgB,EAAEqB,KAAO;IAChDgB,YAAY,EAAGpF,QAAU;IACzBiC,OAAO,EAAGA,OAAS;IACnBlC,KAAK,EAAGA,KAAO;IACfE,WAAW,EAAGA;EAAa,CAC3B,CAAC,EACAqE,iBAAiB,CAAC,CACf,CAAC,EACLnE,QAAQ,IAAIsE,YAAY,CAAC,CACtB,CACW,CAAC;AAErB;AAAC,IAAAY,QAAA,GAEcvF,aAAa;AAAAwF,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_element","_i18n","_components","_icons","_style","_interopRequireDefault","_platformStyle","baseStyles","allStyles","selector","platformStyles","selectModifiedStyles","styles","modifier","modifierMatcher","RegExp","modifierSelectors","Object","keys","filter","match","reduce","modifiedStyles","modifierSelector","blockElementSelector","split","mergeStyles","updateStyles","selectors","forEach","SearchControl","value","onChange","placeholder","__","isActive","setIsActive","useState","currentStyles","setCurrentStyles","isDark","useColorScheme","inputRef","useRef","onCancelTimer","isIOS","Platform","OS","darkStyles","useMemo","activeStyles","activeDarkStyles","useEffect","futureStyles","mergeFutureStyles","shouldUseConditions","shouldUseModified","every","should","updatedStyles","clearInput","useCallback","onPress","current","focus","onFocus","onCancel","clearTimeout","setTimeout","blur","onKeyboardDidHide","keyboardHideSubscription","Keyboard","addListener","remove","containerStyle","innerContainerStyle","inputContainerStyle","formInputStyle","placeholderStyle","inputButtonStyle","inputButtonLeftStyle","inputButtonRightStyle","cancelButtonStyle","cancelButtonTextStyle","iconStyle","rightIconStyle","renderLeftButton","button","_react","createElement","Button","label","icon","arrowLeftIcon","onClick","style","Icon","Gridicons","search","fill","color","View","renderRightButton","cancelCircleFilledIcon","closeIcon","renderCancel","Text","accessible","accessibilityRole","accessibilityLabel","accessibilityHint","TouchableOpacity","activeOpacity","TextInput","ref","placeholderTextColor","onChangeText","_default","exports","default"],"sources":["@wordpress/components/src/search-control/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tTextInput,\n\tText,\n\tView,\n\tTouchableOpacity,\n\tPlatform,\n\tuseColorScheme,\n\tKeyboard,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tuseState,\n\tuseRef,\n\tuseMemo,\n\tuseEffect,\n\tuseCallback,\n} from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport { Button, Gridicons } from '@wordpress/components';\nimport {\n\tIcon,\n\tcancelCircleFilled as cancelCircleFilledIcon,\n\tarrowLeft as arrowLeftIcon,\n\tclose as closeIcon,\n} from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport allStyles from './style.scss';\nimport platformStyles from './platform-style.scss';\n\n// Merge platform specific styles with the default styles.\nconst baseStyles = { ...allStyles };\nfor ( const selector in platformStyles ) {\n\tbaseStyles[ selector ] = {\n\t\t...baseStyles[ selector ],\n\t\t...platformStyles[ selector ],\n\t};\n}\n\nfunction selectModifiedStyles( styles, modifier ) {\n\tconst modifierMatcher = new RegExp( `--${ modifier }$` );\n\tconst modifierSelectors = Object.keys( styles ).filter( ( selector ) =>\n\t\tselector.match( modifierMatcher )\n\t);\n\n\treturn modifierSelectors.reduce( ( modifiedStyles, modifierSelector ) => {\n\t\tconst blockElementSelector = modifierSelector.split( '--' )[ 0 ];\n\t\tmodifiedStyles[ blockElementSelector ] = styles[ modifierSelector ];\n\t\treturn modifiedStyles;\n\t}, {} );\n}\n\nfunction mergeStyles( styles, updateStyles, selectors ) {\n\tselectors.forEach( ( selector ) => {\n\t\tstyles[ selector ] = {\n\t\t\t...styles[ selector ],\n\t\t\t...updateStyles[ selector ],\n\t\t};\n\t} );\n\n\treturn styles;\n}\n\nfunction SearchControl( {\n\tvalue,\n\tonChange,\n\tplaceholder = __( 'Search blocks' ),\n} ) {\n\tconst [ isActive, setIsActive ] = useState( false );\n\tconst [ currentStyles, setCurrentStyles ] = useState( baseStyles );\n\n\tconst isDark = useColorScheme() === 'dark';\n\tconst inputRef = useRef();\n\tconst onCancelTimer = useRef();\n\n\tconst isIOS = Platform.OS === 'ios';\n\n\tconst darkStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'dark' );\n\t}, [] );\n\n\tconst activeStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'active' );\n\t}, [] );\n\n\tconst activeDarkStyles = useMemo( () => {\n\t\treturn selectModifiedStyles( baseStyles, 'active-dark' );\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tlet futureStyles = { ...baseStyles };\n\n\t\tfunction mergeFutureStyles( modifiedStyles, shouldUseConditions ) {\n\t\t\tconst shouldUseModified = shouldUseConditions.every(\n\t\t\t\t( should ) => should\n\t\t\t);\n\n\t\t\tconst updatedStyles = shouldUseModified\n\t\t\t\t? modifiedStyles\n\t\t\t\t: futureStyles;\n\n\t\t\tconst selectors = Object.keys( modifiedStyles );\n\n\t\t\tfutureStyles = mergeStyles(\n\t\t\t\tfutureStyles,\n\t\t\t\tupdatedStyles,\n\t\t\t\tselectors\n\t\t\t);\n\t\t}\n\n\t\tmergeFutureStyles( activeStyles, [ isActive ] );\n\t\tmergeFutureStyles( darkStyles, [ isDark ] );\n\t\tmergeFutureStyles( activeDarkStyles, [ isActive, isDark ] );\n\n\t\tsetCurrentStyles( futureStyles );\n\t\t// Disable reason: deferring this refactor to the native team.\n\t\t// see https://github.com/WordPress/gutenberg/pull/41166\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [ isActive, isDark ] );\n\n\tconst clearInput = useCallback( () => {\n\t\tonChange( '' );\n\t}, [ onChange ] );\n\n\tconst onPress = useCallback( () => {\n\t\tsetIsActive( true );\n\t\tinputRef.current?.focus();\n\t}, [] );\n\n\tconst onFocus = useCallback( () => {\n\t\tsetIsActive( true );\n\t}, [] );\n\n\tconst onCancel = useCallback( () => {\n\t\tclearTimeout( onCancelTimer.current );\n\t\tonCancelTimer.current = setTimeout( () => {\n\t\t\tinputRef.current?.blur();\n\t\t\tclearInput();\n\t\t\tsetIsActive( false );\n\t\t}, 0 );\n\t}, [ clearInput ] );\n\n\tconst onKeyboardDidHide = useCallback( () => {\n\t\tif ( ! isIOS ) {\n\t\t\tonCancel();\n\t\t}\n\t}, [ isIOS, onCancel ] );\n\n\tuseEffect( () => {\n\t\tconst keyboardHideSubscription = Keyboard.addListener(\n\t\t\t'keyboardDidHide',\n\t\t\tonKeyboardDidHide\n\t\t);\n\t\treturn () => {\n\t\t\tclearTimeout( onCancelTimer.current );\n\t\t\tkeyboardHideSubscription.remove();\n\t\t};\n\t}, [ onKeyboardDidHide ] );\n\n\tconst {\n\t\t'search-control__container': containerStyle,\n\t\t'search-control__inner-container': innerContainerStyle,\n\t\t'search-control__input-container': inputContainerStyle,\n\t\t'search-control__form-input': formInputStyle,\n\t\t'search-control__form-input-placeholder': placeholderStyle,\n\t\t'search-control__input-button': inputButtonStyle,\n\t\t'search-control__input-button-left': inputButtonLeftStyle,\n\t\t'search-control__input-button-right': inputButtonRightStyle,\n\t\t'search-control__cancel-button': cancelButtonStyle,\n\t\t'search-control__cancel-button-text': cancelButtonTextStyle,\n\t\t'search-control__icon': iconStyle,\n\t\t'search-control__right-icon': rightIconStyle,\n\t} = currentStyles;\n\n\tfunction renderLeftButton() {\n\t\tconst button =\n\t\t\t! isIOS && isActive ? (\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Cancel search' ) }\n\t\t\t\t\ticon={ arrowLeftIcon }\n\t\t\t\t\tonClick={ onCancel }\n\t\t\t\t\tstyle={ iconStyle }\n\t\t\t\t/>\n\t\t\t) : (\n\t\t\t\t<Icon icon={ Gridicons.search } fill={ iconStyle?.color } />\n\t\t\t);\n\n\t\treturn (\n\t\t\t<View style={ [ inputButtonStyle, inputButtonLeftStyle ] }>\n\t\t\t\t{ button }\n\t\t\t</View>\n\t\t);\n\t}\n\n\tfunction renderRightButton() {\n\t\tlet button;\n\n\t\t// Add a View element to properly center the input placeholder via flexbox.\n\t\tif ( isIOS && ! isActive ) {\n\t\t\tbutton = <View />;\n\t\t}\n\n\t\tif ( !! value ) {\n\t\t\tbutton = (\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Clear search' ) }\n\t\t\t\t\ticon={ isIOS ? cancelCircleFilledIcon : closeIcon }\n\t\t\t\t\tonClick={ clearInput }\n\t\t\t\t\tstyle={ [ iconStyle, rightIconStyle ] }\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<View style={ [ inputButtonStyle, inputButtonRightStyle ] }>\n\t\t\t\t{ button }\n\t\t\t</View>\n\t\t);\n\t}\n\n\tfunction renderCancel() {\n\t\tif ( ! isIOS ) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View style={ cancelButtonStyle }>\n\t\t\t\t<Text\n\t\t\t\t\tonPress={ onCancel }\n\t\t\t\t\tstyle={ cancelButtonTextStyle }\n\t\t\t\t\taccessible={ true }\n\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\taccessibilityLabel={ __( 'Cancel search' ) }\n\t\t\t\t\taccessibilityHint={ __( 'Cancel search' ) }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Cancel' ) }\n\t\t\t\t</Text>\n\t\t\t</View>\n\t\t);\n\t}\n\n\treturn (\n\t\t<TouchableOpacity\n\t\t\tstyle={ containerStyle }\n\t\t\tonPress={ onPress }\n\t\t\tactiveOpacity={ 1 }\n\t\t>\n\t\t\t<View style={ innerContainerStyle }>\n\t\t\t\t<View style={ inputContainerStyle }>\n\t\t\t\t\t{ renderLeftButton() }\n\t\t\t\t\t<TextInput\n\t\t\t\t\t\tref={ inputRef }\n\t\t\t\t\t\tstyle={ formInputStyle }\n\t\t\t\t\t\tplaceholderTextColor={ placeholderStyle?.color }\n\t\t\t\t\t\tonChangeText={ onChange }\n\t\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\t\tvalue={ value }\n\t\t\t\t\t\tplaceholder={ placeholder }\n\t\t\t\t\t/>\n\t\t\t\t\t{ renderRightButton() }\n\t\t\t\t</View>\n\t\t\t\t{ isActive && renderCancel() }\n\t\t\t</View>\n\t\t</TouchableOpacity>\n\t);\n}\n\nexport default SearchControl;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAaA,IAAAC,QAAA,GAAAD,OAAA;AAOA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAUA,IAAAK,MAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,cAAA,GAAAD,sBAAA,CAAAN,OAAA;AApCA;AACA;AACA;;AAWA;AACA;AACA;;AAiBA;AACA;AACA;;AAIA;AACA,MAAMQ,UAAU,GAAG;EAAE,GAAGC;AAAU,CAAC;AACnC,KAAM,MAAMC,QAAQ,IAAIC,sBAAc,EAAG;EACxCH,UAAU,CAAEE,QAAQ,CAAE,GAAG;IACxB,GAAGF,UAAU,CAAEE,QAAQ,CAAE;IACzB,GAA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,CAAAwG,IAAI;IAACN,KAAK,EAAGpB;EAAqB,GAClC,IAAAa,MAAA,CAAAC,aAAA,EAAC5F,YAAA,CAAAwG,IAAI;IAACN,KAAK,EAAGnB;EAAqB,GAChCU,gBAAgB,CAAC,CAAC,EACpB,IAAAE,MAAA,CAAAC,aAAA,EAAC5F,YAAA,CAAAoH,SAAS;IACTC,GAAG,EAAGzE,QAAU;IAChBsD,KAAK,EAAGlB,cAAgB;IACxBsC,oBAAoB,EAAGrC,gBAAgB,EAAEsB,KAAO;IAChDgB,YAAY,EAAGrF,QAAU;IACzBiC,OAAO,EAAGA,OAAS;IACnBlC,KAAK,EAAGA,KAAO;IACfE,WAAW,EAAGA;EAAa,CAC3B,CAAC,EACAsE,iBAAiB,CAAC,CACf,CAAC,EACLpE,QAAQ,IAAIuE,YAAY,CAAC,CACtB,CACW,CAAC;AAErB;AAAC,IAAAY,QAAA,GAEcxF,aAAa;AAAAyF,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _icons = require("@wordpress/icons");
|
|
9
9
|
var _selectControlStyles = require("./styles/select-control-styles");
|
|
10
10
|
/**
|
|
@@ -16,7 +16,7 @@ var _selectControlStyles = require("./styles/select-control-styles");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
const SelectControlChevronDown = () => {
|
|
19
|
-
return (0,
|
|
19
|
+
return (0, _react.createElement)(_selectControlStyles.InputControlSuffixWrapperWithClickThrough, null, (0, _react.createElement)(_selectControlStyles.DownArrowWrapper, null, (0, _react.createElement)(_icons.Icon, {
|
|
20
20
|
icon: _icons.chevronDown,
|
|
21
21
|
size: _selectControlStyles.chevronIconSize
|
|
22
22
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_icons","require","_selectControlStyles","SelectControlChevronDown","
|
|
1
|
+
{"version":3,"names":["_icons","require","_selectControlStyles","SelectControlChevronDown","_react","createElement","InputControlSuffixWrapperWithClickThrough","DownArrowWrapper","Icon","icon","chevronDown","size","chevronIconSize","_default","exports","default"],"sources":["@wordpress/components/src/select-control/chevron-down.tsx"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { chevronDown, Icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport {\n\tchevronIconSize,\n\tDownArrowWrapper,\n\tInputControlSuffixWrapperWithClickThrough,\n} from './styles/select-control-styles';\n\nconst SelectControlChevronDown = () => {\n\treturn (\n\t\t<InputControlSuffixWrapperWithClickThrough>\n\t\t\t<DownArrowWrapper>\n\t\t\t\t<Icon icon={ chevronDown } size={ chevronIconSize } />\n\t\t\t</DownArrowWrapper>\n\t\t</InputControlSuffixWrapperWithClickThrough>\n\t);\n};\n\nexport default SelectControlChevronDown;\n"],"mappings":";;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,oBAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAOA,MAAME,wBAAwB,GAAGA,CAAA,KAAM;EACtC,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACH,oBAAA,CAAAI,yCAAyC,QACzC,IAAAF,MAAA,CAAAC,aAAA,EAACH,oBAAA,CAAAK,gBAAgB,QAChB,IAAAH,MAAA,CAAAC,aAAA,EAACL,MAAA,CAAAQ,IAAI;IAACC,IAAI,EAAGC,kBAAa;IAACC,IAAI,EAAGC;EAAiB,CAAE,CACpC,CACwB,CAAC;AAE9C,CAAC;AAAC,IAAAC,QAAA,GAEaV,wBAAwB;AAAAW,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
@@ -5,13 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.SelectControl = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _react = require("react");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _compose = require("@wordpress/compose");
|
|
11
|
+
var _element = require("@wordpress/element");
|
|
11
12
|
var _baseControl = _interopRequireDefault(require("../base-control"));
|
|
12
13
|
var _inputBase = _interopRequireDefault(require("../input-control/input-base"));
|
|
13
14
|
var _selectControlStyles = require("./styles/select-control-styles");
|
|
14
15
|
var _chevronDown = _interopRequireDefault(require("./chevron-down"));
|
|
16
|
+
var _useDeprecatedProps = require("../utils/use-deprecated-props");
|
|
15
17
|
/**
|
|
16
18
|
* External dependencies
|
|
17
19
|
*/
|
|
@@ -49,10 +51,10 @@ function UnforwardedSelectControl(props, ref) {
|
|
|
49
51
|
children,
|
|
50
52
|
prefix,
|
|
51
53
|
suffix,
|
|
52
|
-
|
|
54
|
+
__next40pxDefaultSize = false,
|
|
53
55
|
__nextHasNoMarginBottom = false,
|
|
54
56
|
...restProps
|
|
55
|
-
} = props;
|
|
57
|
+
} = (0, _useDeprecatedProps.useDeprecated36pxDefaultSizeProp)(props, 'wp.components.SelectControl', '6.4');
|
|
56
58
|
const [isFocused, setIsFocused] = (0, _element.useState)(false);
|
|
57
59
|
const id = useUniqueId(idProp);
|
|
58
60
|
const helpId = help ? `${id}__help` : undefined;
|
|
@@ -85,11 +87,11 @@ function UnforwardedSelectControl(props, ref) {
|
|
|
85
87
|
});
|
|
86
88
|
};
|
|
87
89
|
const classes = (0, _classnames.default)('components-select-control', className);
|
|
88
|
-
return (0,
|
|
90
|
+
return (0, _react.createElement)(_baseControl.default, {
|
|
89
91
|
help: help,
|
|
90
92
|
id: id,
|
|
91
93
|
__nextHasNoMarginBottom: __nextHasNoMarginBottom
|
|
92
|
-
}, (0,
|
|
94
|
+
}, (0, _react.createElement)(_inputBase.default, {
|
|
93
95
|
className: classes,
|
|
94
96
|
disabled: disabled,
|
|
95
97
|
hideLabelFromVision: hideLabelFromVision,
|
|
@@ -97,13 +99,13 @@ function UnforwardedSelectControl(props, ref) {
|
|
|
97
99
|
isFocused: isFocused,
|
|
98
100
|
label: label,
|
|
99
101
|
size: size,
|
|
100
|
-
suffix: suffix || !multiple && (0,
|
|
102
|
+
suffix: suffix || !multiple && (0, _react.createElement)(_chevronDown.default, null),
|
|
101
103
|
prefix: prefix,
|
|
102
104
|
labelPosition: labelPosition,
|
|
103
|
-
|
|
104
|
-
}, (0,
|
|
105
|
+
__next40pxDefaultSize: __next40pxDefaultSize
|
|
106
|
+
}, (0, _react.createElement)(_selectControlStyles.Select, {
|
|
105
107
|
...restProps,
|
|
106
|
-
|
|
108
|
+
__next40pxDefaultSize: __next40pxDefaultSize,
|
|
107
109
|
"aria-describedby": helpId,
|
|
108
110
|
className: "components-select-control__input",
|
|
109
111
|
disabled: disabled,
|
|
@@ -117,7 +119,7 @@ function UnforwardedSelectControl(props, ref) {
|
|
|
117
119
|
value: valueProp
|
|
118
120
|
}, children || options.map((option, index) => {
|
|
119
121
|
const key = option.id || `${option.label}-${option.value}-${index}`;
|
|
120
|
-
return (0,
|
|
122
|
+
return (0, _react.createElement)("option", {
|
|
121
123
|
key: key,
|
|
122
124
|
value: option.value,
|
|
123
125
|
disabled: option.disabled,
|