@wordpress/components 19.5.0 → 19.6.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 +23 -5
- package/build/alignment-matrix-control/utils.js +1 -1
- package/build/alignment-matrix-control/utils.js.map +1 -1
- package/build/angle-picker-control/angle-circle.js +1 -1
- package/build/angle-picker-control/angle-circle.js.map +1 -1
- package/build/animation/index.js +0 -6
- package/build/animation/index.js.map +1 -1
- package/build/autocomplete/get-default-use-items.js +3 -3
- package/build/autocomplete/get-default-use-items.js.map +1 -1
- package/build/base-field/hook.js +1 -1
- package/build/base-field/hook.js.map +1 -1
- package/build/box-control/icon.js +1 -1
- package/build/box-control/icon.js.map +1 -1
- package/build/box-control/index.js +4 -4
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/utils.js +12 -8
- package/build/box-control/utils.js.map +1 -1
- package/build/button/index.js +5 -5
- package/build/button/index.js.map +1 -1
- package/build/button/index.native.js +7 -7
- package/build/button/index.native.js.map +1 -1
- package/build/color-picker/color-display.js +1 -1
- package/build/color-picker/color-display.js.map +1 -1
- package/build/color-picker/styles.js +8 -8
- package/build/color-picker/styles.js.map +1 -1
- package/build/combobox-control/index.js +1 -1
- package/build/combobox-control/index.js.map +1 -1
- package/build/confirm-dialog/component.js +4 -2
- package/build/confirm-dialog/component.js.map +1 -1
- package/build/date-time/time.js +7 -4
- package/build/date-time/time.js.map +1 -1
- package/build/divider/component.js +5 -4
- package/build/divider/component.js.map +1 -1
- package/build/draggable/index.js +3 -3
- package/build/draggable/index.js.map +1 -1
- package/build/focal-point-picker/index.native.js +7 -7
- package/build/focal-point-picker/index.native.js.map +1 -1
- package/build/focal-point-picker/tooltip/index.native.js +1 -1
- package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build/font-size-picker/index.js +1 -1
- package/build/font-size-picker/index.js.map +1 -1
- package/build/form-token-field/index.js +6 -6
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +2 -2
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/heading/component.js +6 -5
- package/build/heading/component.js.map +1 -1
- package/build/heading/hook.js +1 -1
- package/build/heading/hook.js.map +1 -1
- package/build/higher-order/with-notices/index.js +1 -1
- package/build/higher-order/with-notices/index.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/index.native.js.map +1 -1
- package/build/input-control/input-base.js +1 -1
- package/build/input-control/input-base.js.map +1 -1
- package/build/input-control/input-field.js +12 -10
- package/build/input-control/input-field.js.map +1 -1
- package/build/input-control/styles/input-control-styles.js +25 -25
- package/build/input-control/styles/input-control-styles.js.map +1 -1
- package/build/isolated-event-container/index.js +1 -1
- package/build/isolated-event-container/index.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-context.native.js +4 -4
- package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
- package/build/mobile/bottom-sheet/cell.native.js +1 -1
- package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/index.native.js +11 -11
- package/build/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-cell.native.js +1 -1
- package/build/mobile/bottom-sheet/link-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
- package/build/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
- package/build/mobile/global-styles-context/utils.native.js +10 -10
- package/build/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build/mobile/gradient/index.native.js +2 -2
- package/build/mobile/gradient/index.native.js.map +1 -1
- package/build/mobile/html-text-input/container.ios.js +3 -3
- package/build/mobile/html-text-input/container.ios.js.map +1 -1
- package/build/mobile/html-text-input/index.native.js +1 -1
- package/build/mobile/html-text-input/index.native.js.map +1 -1
- package/build/mobile/image/index.native.js +1 -1
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build/mobile/keyboard-aware-flat-list/index.ios.js +2 -2
- package/build/mobile/keyboard-aware-flat-list/index.ios.js.map +1 -1
- package/build/mobile/link-picker/index.native.js +3 -3
- package/build/mobile/link-picker/index.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-results.native.js +8 -8
- package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build/mobile/link-settings/image-link-destinations-screen.native.js +2 -2
- package/build/mobile/link-settings/image-link-destinations-screen.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +1 -1
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/modal/aria-helper.js +1 -1
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +2 -2
- package/build/modal/index.js.map +1 -1
- package/build/navigable-container/container.js +2 -2
- package/build/navigable-container/container.js.map +1 -1
- package/build/navigable-container/tabbable.js +1 -1
- package/build/navigable-container/tabbable.js.map +1 -1
- package/build/navigation/item/index.js +1 -1
- package/build/navigation/item/index.js.map +1 -1
- package/build/navigation/menu/index.js +1 -1
- package/build/navigation/menu/index.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +2 -2
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +1 -1
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/number-control/index.js +1 -1
- package/build/number-control/index.js.map +1 -1
- package/build/panel/body.js +2 -2
- package/build/panel/body.js.map +1 -1
- package/build/popover/index.js +3 -3
- package/build/popover/index.js.map +1 -1
- package/build/popover/utils.js +6 -6
- package/build/popover/utils.js.map +1 -1
- package/build/radio-group/index.js +1 -1
- package/build/radio-group/index.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +29 -29
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/sandbox/index.js +5 -5
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +1 -1
- package/build/sandbox/index.native.js.map +1 -1
- package/build/select-control/index.js +1 -1
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +5 -5
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/fill.js +1 -1
- package/build/slot-fill/fill.js.map +1 -1
- package/build/slot-fill/provider.js +1 -1
- package/build/slot-fill/provider.js.map +1 -1
- package/build/snackbar/index.js +1 -1
- package/build/snackbar/index.js.map +1 -1
- package/build/snackbar/list.js +1 -1
- package/build/snackbar/list.js.map +1 -1
- package/build/style-provider/index.js +2 -2
- package/build/style-provider/index.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +2 -2
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option/component.js +1 -4
- package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option/styles.js +12 -19
- package/build/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
- package/build/toolbar/index.js +1 -1
- package/build/toolbar/index.js.map +1 -1
- package/build/tooltip/index.js +3 -3
- package/build/tooltip/index.js.map +1 -1
- package/build/tooltip/index.native.js +7 -7
- package/build/tooltip/index.native.js.map +1 -1
- package/build/tree-grid/index.js +4 -1
- package/build/tree-grid/index.js.map +1 -1
- package/build/truncate/utils.js +1 -1
- package/build/truncate/utils.js.map +1 -1
- package/build/ui/context/context-connect.js +8 -15
- package/build/ui/context/context-connect.js.map +1 -1
- package/build/ui/context/context-system-provider.js +2 -2
- package/build/ui/context/context-system-provider.js.map +1 -1
- package/build/ui/context/index.js.map +1 -1
- package/build/ui/utils/colors.js +2 -2
- package/build/ui/utils/colors.js.map +1 -1
- package/build/ui/utils/space.js +2 -2
- package/build/ui/utils/space.js.map +1 -1
- package/build/unit-control/index.js +38 -29
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/index.native.js +4 -2
- package/build/unit-control/index.native.js.map +1 -1
- package/build/unit-control/unit-select-control.js +1 -1
- package/build/unit-control/unit-select-control.js.map +1 -1
- package/build/unit-control/utils.js +96 -104
- package/build/unit-control/utils.js.map +1 -1
- package/build/utils/breakpoint-values.js +1 -1
- package/build/utils/breakpoint-values.js.map +1 -1
- package/build/utils/colors-values.js +1 -1
- package/build/utils/colors-values.js.map +1 -1
- package/build-module/alignment-matrix-control/utils.js +1 -1
- package/build-module/alignment-matrix-control/utils.js.map +1 -1
- package/build-module/angle-picker-control/angle-circle.js +1 -1
- package/build-module/angle-picker-control/angle-circle.js.map +1 -1
- package/build-module/animation/index.js +1 -1
- package/build-module/animation/index.js.map +1 -1
- package/build-module/autocomplete/get-default-use-items.js +3 -3
- package/build-module/autocomplete/get-default-use-items.js.map +1 -1
- package/build-module/base-field/hook.js +1 -1
- package/build-module/base-field/hook.js.map +1 -1
- package/build-module/box-control/icon.js +1 -1
- package/build-module/box-control/icon.js.map +1 -1
- package/build-module/box-control/index.js +5 -5
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/utils.js +13 -9
- package/build-module/box-control/utils.js.map +1 -1
- package/build-module/button/index.js +5 -5
- package/build-module/button/index.js.map +1 -1
- package/build-module/button/index.native.js +7 -7
- package/build-module/button/index.native.js.map +1 -1
- package/build-module/color-picker/color-display.js +1 -1
- package/build-module/color-picker/color-display.js.map +1 -1
- package/build-module/color-picker/styles.js +8 -8
- package/build-module/color-picker/styles.js.map +1 -1
- package/build-module/combobox-control/index.js +1 -1
- package/build-module/combobox-control/index.js.map +1 -1
- package/build-module/confirm-dialog/component.js +4 -5
- package/build-module/confirm-dialog/component.js.map +1 -1
- package/build-module/date-time/time.js +7 -4
- package/build-module/date-time/time.js.map +1 -1
- package/build-module/divider/component.js +3 -3
- package/build-module/divider/component.js.map +1 -1
- package/build-module/draggable/index.js +3 -3
- package/build-module/draggable/index.js.map +1 -1
- package/build-module/focal-point-picker/index.native.js +7 -7
- package/build-module/focal-point-picker/index.native.js.map +1 -1
- package/build-module/focal-point-picker/tooltip/index.native.js +1 -1
- package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build-module/font-size-picker/index.js +1 -1
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/form-token-field/index.js +6 -6
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +2 -2
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/heading/component.js +4 -4
- package/build-module/heading/component.js.map +1 -1
- package/build-module/heading/hook.js +1 -1
- package/build-module/heading/hook.js.map +1 -1
- package/build-module/higher-order/with-notices/index.js +1 -1
- package/build-module/higher-order/with-notices/index.js.map +1 -1
- package/build-module/index.js +4 -4
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +4 -4
- package/build-module/index.native.js.map +1 -1
- package/build-module/input-control/input-base.js +1 -1
- package/build-module/input-control/input-base.js.map +1 -1
- package/build-module/input-control/input-field.js +13 -10
- package/build-module/input-control/input-field.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +25 -25
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/isolated-event-container/index.js +1 -1
- package/build-module/isolated-event-container/index.js.map +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js +4 -4
- package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js.map +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-container.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/index.native.js +11 -11
- package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/link-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-cell.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
- package/build-module/mobile/bottom-sheet/nav-bar/back-button.native.js.map +1 -1
- package/build-module/mobile/global-styles-context/utils.native.js +10 -10
- package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build-module/mobile/gradient/index.native.js +2 -2
- package/build-module/mobile/gradient/index.native.js.map +1 -1
- package/build-module/mobile/html-text-input/container.ios.js +3 -3
- package/build-module/mobile/html-text-input/container.ios.js.map +1 -1
- package/build-module/mobile/html-text-input/index.native.js +1 -1
- package/build-module/mobile/html-text-input/index.native.js.map +1 -1
- package/build-module/mobile/image/index.native.js +1 -1
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.android.js.map +1 -1
- package/build-module/mobile/keyboard-aware-flat-list/index.ios.js +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 +3 -3
- package/build-module/mobile/link-picker/index.native.js.map +1 -1
- package/build-module/mobile/link-picker/link-picker-results.native.js +8 -8
- package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build-module/mobile/link-settings/image-link-destinations-screen.native.js +2 -2
- package/build-module/mobile/link-settings/image-link-destinations-screen.native.js.map +1 -1
- package/build-module/mobile/link-settings/index.native.js +1 -1
- package/build-module/mobile/link-settings/index.native.js.map +1 -1
- package/build-module/modal/aria-helper.js +1 -1
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +2 -2
- package/build-module/modal/index.js.map +1 -1
- package/build-module/navigable-container/container.js +2 -2
- package/build-module/navigable-container/container.js.map +1 -1
- package/build-module/navigable-container/tabbable.js +1 -1
- package/build-module/navigable-container/tabbable.js.map +1 -1
- package/build-module/navigation/item/index.js +1 -1
- package/build-module/navigation/item/index.js.map +1 -1
- package/build-module/navigation/menu/index.js +1 -1
- package/build-module/navigation/menu/index.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +2 -2
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +1 -1
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/number-control/index.js +1 -1
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/panel/body.js +2 -2
- package/build-module/panel/body.js.map +1 -1
- package/build-module/popover/index.js +3 -3
- package/build-module/popover/index.js.map +1 -1
- package/build-module/popover/utils.js +6 -6
- package/build-module/popover/utils.js.map +1 -1
- package/build-module/radio-group/index.js +1 -1
- package/build-module/radio-group/index.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +29 -29
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/sandbox/index.js +5 -5
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/sandbox/index.native.js +1 -1
- package/build-module/sandbox/index.native.js.map +1 -1
- package/build-module/select-control/index.js +1 -1
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/styles/select-control-styles.js +5 -5
- package/build-module/select-control/styles/select-control-styles.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/fill.js +1 -1
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/slot-fill/provider.js +1 -1
- package/build-module/slot-fill/provider.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/style-provider/index.js +2 -2
- package/build-module/style-provider/index.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 -4
- 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/styles.js +11 -17
- package/build-module/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
- package/build-module/toolbar/index.js +1 -1
- package/build-module/toolbar/index.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 +7 -7
- package/build-module/tooltip/index.native.js.map +1 -1
- package/build-module/tree-grid/index.js +4 -1
- package/build-module/tree-grid/index.js.map +1 -1
- package/build-module/truncate/utils.js +1 -1
- package/build-module/truncate/utils.js.map +1 -1
- package/build-module/ui/context/context-connect.js +9 -16
- package/build-module/ui/context/context-connect.js.map +1 -1
- package/build-module/ui/context/context-system-provider.js +2 -2
- package/build-module/ui/context/context-system-provider.js.map +1 -1
- package/build-module/ui/context/index.js.map +1 -1
- package/build-module/ui/utils/colors.js +2 -2
- package/build-module/ui/utils/colors.js.map +1 -1
- package/build-module/ui/utils/space.js +2 -2
- package/build-module/ui/utils/space.js.map +1 -1
- package/build-module/unit-control/index.js +39 -30
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/index.native.js +5 -3
- package/build-module/unit-control/index.native.js.map +1 -1
- package/build-module/unit-control/unit-select-control.js +1 -1
- package/build-module/unit-control/unit-select-control.js.map +1 -1
- package/build-module/unit-control/utils.js +92 -100
- package/build-module/unit-control/utils.js.map +1 -1
- package/build-module/utils/breakpoint-values.js +1 -1
- package/build-module/utils/breakpoint-values.js.map +1 -1
- package/build-module/utils/colors-values.js +1 -1
- package/build-module/utils/colors-values.js.map +1 -1
- package/build-style/style-rtl.css +8 -0
- package/build-style/style.css +8 -0
- package/build-types/base-field/hook.d.ts +2 -1
- package/build-types/base-field/hook.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +2 -1
- package/build-types/card/card/hook.d.ts.map +1 -1
- package/build-types/card/card-body/hook.d.ts +2 -1
- package/build-types/card/card-body/hook.d.ts.map +1 -1
- package/build-types/card/card-divider/hook.d.ts +2 -2
- package/build-types/card/card-footer/hook.d.ts +2 -1
- package/build-types/card/card-footer/hook.d.ts.map +1 -1
- package/build-types/card/card-header/hook.d.ts +2 -1
- package/build-types/card/card-header/hook.d.ts.map +1 -1
- package/build-types/card/card-media/hook.d.ts +2 -1
- package/build-types/card/card-media/hook.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +2 -2
- package/build-types/confirm-dialog/component.d.ts +8 -0
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/confirm-dialog/types.d.ts +2 -0
- package/build-types/confirm-dialog/types.d.ts.map +1 -1
- package/build-types/divider/component.d.ts +2 -2
- package/build-types/divider/component.d.ts.map +1 -1
- package/build-types/divider/stories/index.d.ts +10 -0
- package/build-types/divider/stories/index.d.ts.map +1 -0
- package/build-types/divider/types.d.ts +1 -1
- package/build-types/divider/types.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +2 -1
- package/build-types/elevation/hook.d.ts.map +1 -1
- package/build-types/flex/flex/hook.d.ts +2 -1
- package/build-types/flex/flex/hook.d.ts.map +1 -1
- package/build-types/flex/flex-block/hook.d.ts +2 -1
- package/build-types/flex/flex-block/hook.d.ts.map +1 -1
- package/build-types/flex/flex-item/hook.d.ts +2 -1
- package/build-types/flex/flex-item/hook.d.ts.map +1 -1
- package/build-types/flyout/flyout/hook.d.ts +2 -1
- package/build-types/flyout/flyout/hook.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +2 -1
- package/build-types/grid/hook.d.ts.map +1 -1
- package/build-types/h-stack/hook.d.ts +3 -2
- package/build-types/h-stack/hook.d.ts.map +1 -1
- package/build-types/heading/component.d.ts +3 -3
- package/build-types/heading/component.d.ts.map +1 -1
- package/build-types/heading/hook.d.ts +2 -1
- package/build-types/heading/hook.d.ts.map +1 -1
- package/build-types/heading/stories/index.d.ts +12 -0
- package/build-types/heading/stories/index.d.ts.map +1 -0
- 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-field.d.ts +1 -1
- package/build-types/input-control/input-field.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +2 -1
- package/build-types/item-group/item/hook.d.ts.map +1 -1
- package/build-types/item-group/item-group/hook.d.ts +2 -1
- package/build-types/item-group/item-group/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +2 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +2 -1
- package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
- package/build-types/number-control/styles/number-control-styles.d.ts +1 -1
- package/build-types/scrollable/hook.d.ts +2 -1
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/select-control/index.d.ts +1 -1
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +2 -1
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/surface/hook.d.ts +2 -1
- package/build-types/surface/hook.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +2 -1
- package/build-types/text/hook.d.ts.map +1 -1
- package/build-types/text/types.d.ts +1 -2
- package/build-types/text/types.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts +0 -4
- package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +2 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +2 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +2 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +2 -1
- package/build-types/truncate/hook.d.ts.map +1 -1
- package/build-types/ui/context/context-connect.d.ts +18 -16
- package/build-types/ui/context/context-connect.d.ts.map +1 -1
- package/build-types/ui/context/index.d.ts +4 -4
- package/build-types/ui/context/index.d.ts.map +1 -1
- package/build-types/ui/context/wordpress-component.d.ts +1 -0
- package/build-types/ui/context/wordpress-component.d.ts.map +1 -1
- package/build-types/ui/control-group/hook.d.ts +2 -1
- package/build-types/ui/control-group/hook.d.ts.map +1 -1
- package/build-types/ui/control-label/hook.d.ts +2 -1
- package/build-types/ui/control-label/hook.d.ts.map +1 -1
- package/build-types/ui/form-group/use-form-group.d.ts +6 -4
- package/build-types/ui/form-group/use-form-group.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +3 -3
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +4 -6
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/unit-control/utils.d.ts +47 -38
- package/build-types/unit-control/utils.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +2 -1
- package/build-types/v-stack/hook.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/alignment-matrix-control/utils.js +1 -1
- package/src/angle-picker-control/angle-circle.js +1 -1
- package/src/animation/index.js +0 -1
- package/src/autocomplete/get-default-use-items.js +3 -3
- package/src/base-field/hook.js +1 -1
- package/src/box-control/icon.js +1 -1
- package/src/box-control/index.js +5 -5
- package/src/box-control/test/index.js +27 -7
- package/src/box-control/utils.js +13 -9
- package/src/button/index.js +5 -5
- package/src/button/index.native.js +7 -7
- package/src/button/style.scss +1 -0
- package/src/color-palette/style.scss +1 -0
- package/src/color-picker/color-display.tsx +1 -1
- package/src/color-picker/styles.ts +1 -1
- package/src/color-picker/test/index.js +1 -1
- package/src/combobox-control/index.js +1 -1
- package/src/combobox-control/style.scss +1 -0
- package/src/confirm-dialog/README.md +56 -45
- package/src/confirm-dialog/component.tsx +4 -2
- package/src/confirm-dialog/stories/index.js +19 -0
- package/src/confirm-dialog/test/index.js +28 -0
- package/src/confirm-dialog/types.ts +2 -0
- package/src/date-time/style.scss +4 -0
- package/src/date-time/time.js +16 -5
- package/src/dimension-control/test/index.test.js +1 -1
- package/src/disabled/test/index.js +1 -1
- package/src/divider/component.tsx +3 -3
- package/src/divider/stories/index.tsx +70 -0
- package/src/divider/types.ts +3 -1
- package/src/draggable/index.js +3 -3
- package/src/draggable/stories/index.js +1 -1
- package/src/flyout/flyout/README.md +1 -1
- package/src/flyout/test/index.js +1 -1
- package/src/focal-point-picker/index.native.js +7 -7
- package/src/focal-point-picker/tooltip/index.native.js +1 -1
- package/src/font-size-picker/README.md +1 -2
- package/src/font-size-picker/index.js +1 -1
- package/src/font-size-picker/stories/index.js +87 -108
- package/src/font-size-picker/test/index.js +0 -2
- package/src/form-token-field/index.js +6 -6
- package/src/form-token-field/style.scss +1 -0
- package/src/form-token-field/suggestions-list.js +2 -2
- package/src/form-token-field/test/index.js +6 -6
- package/src/heading/component.tsx +4 -4
- package/src/heading/hook.ts +1 -1
- package/src/heading/stories/index.tsx +37 -0
- package/src/higher-order/with-filters/test/index.js +1 -1
- package/src/higher-order/with-focus-outside/test/index.js +1 -1
- package/src/higher-order/with-notices/index.js +1 -1
- package/src/higher-order/with-notices/test/index.js +3 -3
- package/src/index.js +4 -4
- package/src/index.native.js +4 -4
- package/src/input-control/input-base.tsx +1 -1
- package/src/input-control/input-field.tsx +12 -9
- package/src/input-control/styles/input-control-styles.tsx +1 -0
- package/src/input-control/test/index.js +4 -4
- package/src/isolated-event-container/index.js +1 -1
- package/src/item-group/test/index.js +0 -1
- package/src/mobile/bottom-sheet/bottom-sheet-context.native.js +4 -4
- package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +1 -1
- package/src/mobile/bottom-sheet/cell.native.js +1 -1
- package/src/mobile/bottom-sheet/index.native.js +11 -11
- package/src/mobile/bottom-sheet/link-cell.native.js +1 -1
- package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +1 -1
- package/src/mobile/bottom-sheet/nav-bar/back-button.native.js +1 -1
- package/src/mobile/global-styles-context/utils.native.js +10 -10
- package/src/mobile/gradient/index.native.js +2 -2
- package/src/mobile/html-text-input/container.ios.js +3 -3
- package/src/mobile/html-text-input/index.native.js +1 -1
- package/src/mobile/html-text-input/test/index.native.js +14 -14
- package/src/mobile/image/index.native.js +1 -1
- package/src/mobile/image/style.native.scss +1 -0
- package/src/mobile/keyboard-aware-flat-list/index.android.js +1 -1
- package/src/mobile/keyboard-aware-flat-list/index.ios.js +2 -2
- package/src/mobile/link-picker/index.native.js +3 -3
- package/src/mobile/link-picker/link-picker-results.native.js +8 -8
- package/src/mobile/link-settings/image-link-destinations-screen.native.js +2 -2
- package/src/mobile/link-settings/index.native.js +1 -2
- package/src/mobile/link-settings/test/edit.native.js +15 -15
- package/src/modal/aria-helper.js +1 -1
- package/src/modal/index.js +2 -2
- package/src/navigable-container/container.js +2 -2
- package/src/navigable-container/tabbable.js +1 -1
- package/src/navigable-container/test/menu.js +5 -5
- package/src/navigable-container/test/tabbable.js +2 -2
- package/src/navigation/item/index.js +1 -1
- package/src/navigation/menu/index.js +1 -1
- package/src/navigation/stories/controlled-state.js +2 -2
- package/src/navigator/navigator-provider/component.tsx +1 -1
- package/src/navigator/navigator-screen/component.tsx +2 -2
- package/src/navigator/test/index.js +18 -19
- package/src/navigator/types.ts +1 -1
- package/src/number-control/index.js +1 -1
- package/src/panel/body.js +2 -2
- package/src/popover/index.js +3 -3
- package/src/popover/utils.js +6 -6
- package/src/radio-group/index.js +1 -1
- package/src/range-control/stories/index.js +1 -1
- package/src/range-control/styles/range-control-styles.js +1 -1
- package/src/range-control/test/index.js +2 -2
- package/src/sandbox/index.js +5 -5
- package/src/sandbox/index.native.js +1 -1
- package/src/select-control/index.tsx +1 -1
- package/src/select-control/styles/select-control-styles.ts +1 -0
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.js +1 -1
- package/src/slot-fill/bubbles-virtually/slot.js +1 -2
- package/src/slot-fill/fill.js +1 -1
- package/src/slot-fill/provider.js +1 -1
- package/src/snackbar/index.js +1 -1
- package/src/snackbar/list.js +1 -1
- package/src/style-provider/index.js +2 -2
- package/src/tab-panel/test/index.js +1 -1
- package/src/text/test/index.js +2 -2
- package/src/text/types.ts +6 -8
- package/src/text-highlight/test/index.js +4 -4
- package/src/toggle-control/test/index.js +3 -3
- package/src/toggle-group-control/test/__snapshots__/index.js.snap +1 -27
- package/src/toggle-group-control/toggle-group-control/component.tsx +2 -2
- package/src/toggle-group-control/toggle-group-control-option/component.tsx +1 -4
- package/src/toggle-group-control/toggle-group-control-option/styles.ts +1 -12
- package/src/toolbar/index.js +1 -1
- package/src/toolbar-group/test/index.js +2 -2
- package/src/tooltip/index.js +3 -3
- package/src/tooltip/index.native.js +7 -7
- package/src/tooltip/test/index.js +2 -2
- package/src/tooltip/test/index.native.js +2 -2
- package/src/tree-grid/README.md +1 -1
- package/src/tree-grid/index.js +4 -0
- package/src/tree-grid/test/__snapshots__/index.js.snap +1 -1
- package/src/tree-grid/test/index.js +128 -52
- package/src/truncate/utils.js +1 -1
- package/src/ui/context/{context-connect.js → context-connect.ts} +27 -16
- package/src/ui/context/context-system-provider.js +2 -2
- package/src/ui/context/{index.js → index.ts} +0 -0
- package/src/ui/context/wordpress-component.ts +1 -0
- package/src/ui/tooltip/test/index.js +4 -4
- package/src/ui/utils/colors.js +2 -2
- package/src/ui/utils/space.ts +2 -2
- package/src/unit-control/README.md +1 -1
- package/src/unit-control/index.native.js +5 -3
- package/src/unit-control/index.tsx +64 -35
- package/src/unit-control/test/index.js +102 -3
- package/src/unit-control/test/utils.js +56 -15
- package/src/unit-control/types.ts +5 -8
- package/src/unit-control/unit-select-control.tsx +1 -1
- package/src/unit-control/utils.ts +128 -125
- package/src/utils/breakpoint-values.js +1 -1
- package/src/utils/colors-values.js +1 -1
- package/src/utils/hooks/test/use-controlled-state.js +1 -1
- package/src/utils/hooks/test/use-controlled-value.js +3 -3
- package/src/utils/hooks/test/use-latest-ref.js +1 -1
- package/src/utils/test/math.js +2 -2
- package/src/utils/test/rtl.js +12 -12
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/divider/stories/index.js +0 -64
- package/src/heading/stories/index.js +0 -24
|
@@ -44,7 +44,7 @@ export const KeyboardAwareFlatList = ( {
|
|
|
44
44
|
this.latestContentOffsetY !== undefined &&
|
|
45
45
|
! shouldPreventAutomaticScroll()
|
|
46
46
|
) {
|
|
47
|
-
// Reset the content position if keyboard is still closed
|
|
47
|
+
// Reset the content position if keyboard is still closed.
|
|
48
48
|
if ( this.scrollViewRef ) {
|
|
49
49
|
this.scrollViewRef.scrollToPosition(
|
|
50
50
|
0,
|
|
@@ -74,7 +74,7 @@ KeyboardAwareFlatList.handleCaretVerticalPositionChange = (
|
|
|
74
74
|
previousCaretY
|
|
75
75
|
) => {
|
|
76
76
|
if ( previousCaretY ) {
|
|
77
|
-
//
|
|
77
|
+
// If this is not the first tap.
|
|
78
78
|
scrollView.refreshScrollForField( targetId );
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -22,7 +22,7 @@ import LinkPickerResults from './link-picker-results';
|
|
|
22
22
|
import NavBar from '../bottom-sheet/nav-bar';
|
|
23
23
|
import styles from './styles.scss';
|
|
24
24
|
|
|
25
|
-
//
|
|
25
|
+
// This creates a search suggestion for adding a url directly.
|
|
26
26
|
export const createDirectEntry = ( value ) => {
|
|
27
27
|
let type = 'URL';
|
|
28
28
|
|
|
@@ -64,8 +64,8 @@ export const LinkPicker = ( {
|
|
|
64
64
|
} );
|
|
65
65
|
const directEntry = createDirectEntry( value );
|
|
66
66
|
|
|
67
|
-
//
|
|
68
|
-
// are replacing empty text, we want to use the generated url
|
|
67
|
+
// The title of a direct entry is displayed as the raw input value, but if we
|
|
68
|
+
// are replacing empty text, we want to use the generated url.
|
|
69
69
|
const pickLink = ( { title, url, isDirectEntry } ) => {
|
|
70
70
|
onLinkPicked( { title: isDirectEntry ? url : title, url } );
|
|
71
71
|
};
|
|
@@ -34,7 +34,7 @@ export default function LinkPickerResults( {
|
|
|
34
34
|
pendingRequest.current = null;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// A stable debounced function to fetch suggestions and append.
|
|
38
38
|
const { fetchMoreSuggestions } = useSelect( ( select ) => {
|
|
39
39
|
const { getSettings } = select( 'core/block-editor' );
|
|
40
40
|
const fetchLinkSuggestions = async ( { search } ) => {
|
|
@@ -49,8 +49,8 @@ export default function LinkPickerResults( {
|
|
|
49
49
|
query: search,
|
|
50
50
|
links: currentSuggestions,
|
|
51
51
|
} ) => {
|
|
52
|
-
//
|
|
53
|
-
// already awaiting a response
|
|
52
|
+
// Return early if we've already detected the end of data or we are
|
|
53
|
+
// already awaiting a response.
|
|
54
54
|
if ( hasAllSuggestions || pendingRequest.current ) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -58,10 +58,10 @@ export default function LinkPickerResults( {
|
|
|
58
58
|
pendingRequest.current = request;
|
|
59
59
|
const suggestions = await request;
|
|
60
60
|
|
|
61
|
-
//
|
|
61
|
+
// Only update links for the most recent request.
|
|
62
62
|
if ( suggestions && request === pendingRequest.current ) {
|
|
63
|
-
//
|
|
64
|
-
// are truncated to determine we've reached the end
|
|
63
|
+
// Since we don't have the response header, we check if the results
|
|
64
|
+
// are truncated to determine we've reached the end.
|
|
65
65
|
if ( suggestions.length < PER_PAGE ) {
|
|
66
66
|
setHasAllSuggestions( true );
|
|
67
67
|
}
|
|
@@ -76,10 +76,10 @@ export default function LinkPickerResults( {
|
|
|
76
76
|
};
|
|
77
77
|
}, [] );
|
|
78
78
|
|
|
79
|
-
//
|
|
79
|
+
// Prevent setting state when unmounted.
|
|
80
80
|
useEffect( () => clearRequest, [] );
|
|
81
81
|
|
|
82
|
-
//
|
|
82
|
+
// Any time the query changes, we reset pagination.
|
|
83
83
|
useEffect( () => {
|
|
84
84
|
clearRequest();
|
|
85
85
|
nextPage.current = 1;
|
|
@@ -86,9 +86,9 @@ function ImageLinkDestinationsScreen( props ) {
|
|
|
86
86
|
navigation.navigate( blockSettingsScreens.settings, {
|
|
87
87
|
// The `inputValue` name is reused from LinkPicker, as it helps avoid
|
|
88
88
|
// bugs from stale values remaining in the React Navigation route
|
|
89
|
-
// parameters
|
|
89
|
+
// parameters.
|
|
90
90
|
inputValue: newUrl,
|
|
91
|
-
// Clear link text value that may be set from LinkPicker
|
|
91
|
+
// Clear link text value that may be set from LinkPicker.
|
|
92
92
|
text: '',
|
|
93
93
|
} );
|
|
94
94
|
};
|
|
@@ -33,7 +33,6 @@ import LinkRelIcon from './link-rel';
|
|
|
33
33
|
import styles from './style.scss';
|
|
34
34
|
|
|
35
35
|
const NEW_TAB_REL = 'noreferrer noopener';
|
|
36
|
-
|
|
37
36
|
function LinkSettings( {
|
|
38
37
|
// Control link settings `BottomSheet` visibility
|
|
39
38
|
isVisible,
|
|
@@ -222,7 +221,7 @@ function LinkSettings( {
|
|
|
222
221
|
if ( ! clipboardText ) {
|
|
223
222
|
return;
|
|
224
223
|
}
|
|
225
|
-
// Check if pasted text is URL
|
|
224
|
+
// Check if pasted text is URL.
|
|
226
225
|
if ( ! isURL( clipboardText ) ) {
|
|
227
226
|
return;
|
|
228
227
|
}
|
|
@@ -70,12 +70,12 @@ describe.each( [
|
|
|
70
70
|
* WHEN the USER selects the SETTINGS BUTTON on the EDIT IMAGE BLOCK or EDIT BUTTON BLOCK;
|
|
71
71
|
*/
|
|
72
72
|
it( 'should display the LINK SETTINGS with an EMPTY LINK TO field.', async () => {
|
|
73
|
-
// Arrange
|
|
73
|
+
// Arrange.
|
|
74
74
|
const url = 'https://tonytahmouchtest.files.wordpress.com';
|
|
75
75
|
const subject = await initializeEditor( { initialHtml } );
|
|
76
76
|
Clipboard.getString.mockReturnValue( url );
|
|
77
77
|
|
|
78
|
-
// Act
|
|
78
|
+
// Act.
|
|
79
79
|
const block = await waitFor( () =>
|
|
80
80
|
subject.getByA11yLabel(
|
|
81
81
|
type === 'core/image' ? /Image Block/ : /Button Block/
|
|
@@ -87,7 +87,7 @@ describe.each( [
|
|
|
87
87
|
await waitFor( () => subject.getByA11yLabel( 'Open Settings' ) )
|
|
88
88
|
);
|
|
89
89
|
|
|
90
|
-
// Assert
|
|
90
|
+
// Assert.
|
|
91
91
|
const linkToField = await waitFor( () =>
|
|
92
92
|
subject.getByA11yLabel(
|
|
93
93
|
`Link to, ${
|
|
@@ -107,12 +107,12 @@ describe.each( [
|
|
|
107
107
|
* WHEN the USER selects the LINK TO cell;
|
|
108
108
|
*/
|
|
109
109
|
it( 'should display the LINK PICKER with NO FROM CLIPBOARD CELL.', async () => {
|
|
110
|
-
// Arrange
|
|
110
|
+
// Arrange.
|
|
111
111
|
const url = 'tonytahmouchtest.files.wordpress.com';
|
|
112
112
|
const subject = await initializeEditor( { initialHtml } );
|
|
113
113
|
Clipboard.getString.mockReturnValue( url );
|
|
114
114
|
|
|
115
|
-
// Act
|
|
115
|
+
// Act.
|
|
116
116
|
const block = await waitFor( () =>
|
|
117
117
|
subject.getByA11yLabel(
|
|
118
118
|
type === 'core/image' ? /Image Block/ : /Button Block/
|
|
@@ -145,7 +145,7 @@ describe.each( [
|
|
|
145
145
|
}
|
|
146
146
|
await waitFor( () => subject.getByA11yLabel( 'Apply' ) );
|
|
147
147
|
|
|
148
|
-
// Assert
|
|
148
|
+
// Assert.
|
|
149
149
|
expect(
|
|
150
150
|
subject.queryByA11yLabel( /Copy URL from the clipboard[,]/ )
|
|
151
151
|
).toBeNull();
|
|
@@ -160,12 +160,12 @@ describe.each( [
|
|
|
160
160
|
* WHEN the USER selects the LINK TO cell;
|
|
161
161
|
*/
|
|
162
162
|
it( 'should display the LINK PICKER with NO FROM CLIPBOARD CELL.', async () => {
|
|
163
|
-
// Arrange
|
|
163
|
+
// Arrange.
|
|
164
164
|
const url = 'https://tonytahmouchtest.files.wordpress.com';
|
|
165
165
|
const subject = await initializeEditor( { initialHtml } );
|
|
166
166
|
Clipboard.getString.mockReturnValue( url );
|
|
167
167
|
|
|
168
|
-
// Act
|
|
168
|
+
// Act.
|
|
169
169
|
const block = await waitFor( () =>
|
|
170
170
|
subject.getByA11yLabel(
|
|
171
171
|
type === 'core/image' ? /Image Block/ : /Button Block/
|
|
@@ -221,7 +221,7 @@ describe.each( [
|
|
|
221
221
|
}
|
|
222
222
|
await waitFor( () => subject.getByA11yLabel( 'Apply' ) );
|
|
223
223
|
|
|
224
|
-
// Assert
|
|
224
|
+
// Assert.
|
|
225
225
|
expect(
|
|
226
226
|
subject.queryByA11yLabel( /Copy URL from the clipboard[,]/ )
|
|
227
227
|
).toBeNull();
|
|
@@ -239,12 +239,12 @@ describe.each( [
|
|
|
239
239
|
'should display the LINK PICKER with the FROM CLIPBOARD CELL populated' +
|
|
240
240
|
' with the URL from the CLIPBOARD.',
|
|
241
241
|
async () => {
|
|
242
|
-
// Arrange
|
|
242
|
+
// Arrange.
|
|
243
243
|
const url = 'https://tonytahmouchtest.files.wordpress.com';
|
|
244
244
|
const subject = await initializeEditor( { initialHtml } );
|
|
245
245
|
Clipboard.getString.mockReturnValue( url );
|
|
246
246
|
|
|
247
|
-
// Act
|
|
247
|
+
// Act.
|
|
248
248
|
const block = await waitFor( () =>
|
|
249
249
|
subject.getByA11yLabel(
|
|
250
250
|
type === 'core/image'
|
|
@@ -283,7 +283,7 @@ describe.each( [
|
|
|
283
283
|
)
|
|
284
284
|
);
|
|
285
285
|
|
|
286
|
-
// Assert
|
|
286
|
+
// Assert.
|
|
287
287
|
const clipboardUrl = await waitFor( () =>
|
|
288
288
|
subject.getByText( url )
|
|
289
289
|
);
|
|
@@ -306,12 +306,12 @@ describe.each( [
|
|
|
306
306
|
'should display the LINK SETTINGS with the URL from the CLIPBOARD' +
|
|
307
307
|
' populated in the LINK TO field.',
|
|
308
308
|
async () => {
|
|
309
|
-
// Arrange
|
|
309
|
+
// Arrange.
|
|
310
310
|
const url = 'https://tonytahmouchtest.files.wordpress.com';
|
|
311
311
|
const subject = await initializeEditor( { initialHtml } );
|
|
312
312
|
Clipboard.getString.mockReturnValue( url );
|
|
313
313
|
|
|
314
|
-
// Act
|
|
314
|
+
// Act.
|
|
315
315
|
const block = await waitFor( () =>
|
|
316
316
|
subject.getByA11yLabel(
|
|
317
317
|
type === 'core/image'
|
|
@@ -352,7 +352,7 @@ describe.each( [
|
|
|
352
352
|
)
|
|
353
353
|
);
|
|
354
354
|
|
|
355
|
-
// Assert
|
|
355
|
+
// Assert.
|
|
356
356
|
const linkToField = await waitFor( () =>
|
|
357
357
|
subject.getByA11yLabel(
|
|
358
358
|
`Link to, ${
|
package/src/modal/aria-helper.js
CHANGED
package/src/modal/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* External dependencies
|
|
@@ -45,7 +45,7 @@ function Modal( props, forwardedRef ) {
|
|
|
45
45
|
shouldCloseOnEsc = true,
|
|
46
46
|
shouldCloseOnClickOutside = true,
|
|
47
47
|
isDismissible = true,
|
|
48
|
-
/*
|
|
48
|
+
/* Accessibility. */
|
|
49
49
|
aria = {
|
|
50
50
|
labelledby: null,
|
|
51
51
|
describedby: null,
|
|
@@ -93,9 +93,9 @@ class NavigableContainer extends Component {
|
|
|
93
93
|
|
|
94
94
|
const offset = eventToOffset( event );
|
|
95
95
|
|
|
96
|
-
// eventToOffset returns undefined if the event is not handled by the component
|
|
96
|
+
// eventToOffset returns undefined if the event is not handled by the component.
|
|
97
97
|
if ( offset !== undefined && stopNavigationEvents ) {
|
|
98
|
-
// Prevents arrow key handlers bound to the document directly interfering
|
|
98
|
+
// Prevents arrow key handlers bound to the document directly interfering.
|
|
99
99
|
event.stopImmediatePropagation();
|
|
100
100
|
|
|
101
101
|
// When navigating a collection of items, prevent scroll containers
|
|
@@ -27,7 +27,7 @@ export function TabbableContainer( { eventToOffset, ...props }, ref ) {
|
|
|
27
27
|
// - +1: move focus forward
|
|
28
28
|
// - -1: move focus backward
|
|
29
29
|
// - 0: don't move focus, but acknowledge event and thus stop it
|
|
30
|
-
// - undefined: do nothing, let the event propagate
|
|
30
|
+
// - undefined: do nothing, let the event propagate.
|
|
31
31
|
if ( eventToOffset ) {
|
|
32
32
|
return eventToOffset( evt );
|
|
33
33
|
}
|
|
@@ -75,7 +75,7 @@ describe( 'NavigableMenu', () => {
|
|
|
75
75
|
|
|
76
76
|
container.querySelector( '#btn1' ).focus();
|
|
77
77
|
|
|
78
|
-
// Navigate options
|
|
78
|
+
// Navigate options.
|
|
79
79
|
function assertKeyDown( keyCode, expectedActiveIndex, expectedStop ) {
|
|
80
80
|
const interaction = fireKeyDown(
|
|
81
81
|
getByRole( 'menu' ),
|
|
@@ -129,7 +129,7 @@ describe( 'NavigableMenu', () => {
|
|
|
129
129
|
|
|
130
130
|
container.querySelector( '#btn1' ).focus();
|
|
131
131
|
|
|
132
|
-
// Navigate options
|
|
132
|
+
// Navigate options.
|
|
133
133
|
function assertKeyDown( keyCode, expectedActiveIndex, expectedStop ) {
|
|
134
134
|
const interaction = fireKeyDown(
|
|
135
135
|
getByRole( 'menu' ),
|
|
@@ -185,7 +185,7 @@ describe( 'NavigableMenu', () => {
|
|
|
185
185
|
|
|
186
186
|
container.querySelector( '#btn1' ).focus();
|
|
187
187
|
|
|
188
|
-
// Navigate options
|
|
188
|
+
// Navigate options.
|
|
189
189
|
function assertKeyDown( keyCode, expectedActiveIndex, expectedStop ) {
|
|
190
190
|
const interaction = fireKeyDown(
|
|
191
191
|
getByRole( 'menu' ),
|
|
@@ -239,7 +239,7 @@ describe( 'NavigableMenu', () => {
|
|
|
239
239
|
|
|
240
240
|
container.querySelector( '#btn1' ).focus();
|
|
241
241
|
|
|
242
|
-
// Navigate options
|
|
242
|
+
// Navigate options.
|
|
243
243
|
function assertKeyDown( keyCode, expectedActiveIndex, expectedStop ) {
|
|
244
244
|
const interaction = fireKeyDown(
|
|
245
245
|
getByRole( 'menu' ),
|
|
@@ -284,7 +284,7 @@ describe( 'NavigableMenu', () => {
|
|
|
284
284
|
|
|
285
285
|
container.querySelector( '#btn1' ).focus();
|
|
286
286
|
|
|
287
|
-
// Navigate options
|
|
287
|
+
// Navigate options.
|
|
288
288
|
function assertKeyDown( keyCode, expectedActiveIndex, expectedStop ) {
|
|
289
289
|
const interaction = fireKeyDown( getByRole( 'menu' ), keyCode );
|
|
290
290
|
expect( currentIndex ).toBe( expectedActiveIndex );
|
|
@@ -75,7 +75,7 @@ describe( 'TabbableContainer', () => {
|
|
|
75
75
|
|
|
76
76
|
container.querySelector( '#section1' ).focus();
|
|
77
77
|
|
|
78
|
-
// Navigate options
|
|
78
|
+
// Navigate options.
|
|
79
79
|
function assertKeyDown(
|
|
80
80
|
keyCode,
|
|
81
81
|
shiftKey,
|
|
@@ -132,7 +132,7 @@ describe( 'TabbableContainer', () => {
|
|
|
132
132
|
|
|
133
133
|
container.querySelector( '#section1' ).focus();
|
|
134
134
|
|
|
135
|
-
// Navigate options
|
|
135
|
+
// Navigate options.
|
|
136
136
|
function assertKeyDown(
|
|
137
137
|
keyCode,
|
|
138
138
|
shiftKey,
|
|
@@ -43,7 +43,7 @@ export default function NavigationItem( props ) {
|
|
|
43
43
|
|
|
44
44
|
// If hideIfTargetMenuEmpty prop is true
|
|
45
45
|
// And the menu we are supposed to navigate to
|
|
46
|
-
// Is marked as empty, then we skip rendering the item
|
|
46
|
+
// Is marked as empty, then we skip rendering the item.
|
|
47
47
|
if (
|
|
48
48
|
hideIfTargetMenuEmpty &&
|
|
49
49
|
navigateToMenu &&
|
|
@@ -45,7 +45,7 @@ export default function NavigationMenu( props ) {
|
|
|
45
45
|
search: uncontrolledSearch,
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
// Keep the children rendered to make sure invisible items are included in the navigation tree
|
|
48
|
+
// Keep the children rendered to make sure invisible items are included in the navigation tree.
|
|
49
49
|
if ( activeMenu !== menu ) {
|
|
50
50
|
return (
|
|
51
51
|
<NavigationMenuContext.Provider value={ context }>
|
|
@@ -15,11 +15,11 @@ export function ControlledStateStory() {
|
|
|
15
15
|
const [ activeItem, setActiveItem ] = useState( 'item-1' );
|
|
16
16
|
const [ activeMenu, setActiveMenu ] = useState( 'root' );
|
|
17
17
|
|
|
18
|
-
// Mock navigation link
|
|
18
|
+
// Mock navigation link.
|
|
19
19
|
const MockLink = ( { href, children } ) => (
|
|
20
20
|
<Button
|
|
21
21
|
href={ href }
|
|
22
|
-
// Since we're not actually navigating pages, simulate it with on onClick
|
|
22
|
+
// Since we're not actually navigating pages, simulate it with on onClick.
|
|
23
23
|
onClick={ ( event ) => {
|
|
24
24
|
event.preventDefault();
|
|
25
25
|
const item = href.replace( 'https://example.com/', '' );
|
|
@@ -85,7 +85,7 @@ function NavigatorProvider(
|
|
|
85
85
|
|
|
86
86
|
const cx = useCx();
|
|
87
87
|
const classes = useMemo(
|
|
88
|
-
// Prevents horizontal overflow while animating screen transitions
|
|
88
|
+
// Prevents horizontal overflow while animating screen transitions.
|
|
89
89
|
() => cx( css( { overflowX: 'hidden' } ), className ),
|
|
90
90
|
[ className, cx ]
|
|
91
91
|
);
|
|
@@ -62,9 +62,9 @@ function NavigatorScreen( props: Props, forwardedRef: ForwardedRef< any > ) {
|
|
|
62
62
|
() =>
|
|
63
63
|
cx(
|
|
64
64
|
css( {
|
|
65
|
-
// Ensures horizontal overflow is visually accessible
|
|
65
|
+
// Ensures horizontal overflow is visually accessible.
|
|
66
66
|
overflowX: 'auto',
|
|
67
|
-
// In case the root has a height, it should not be exceeded
|
|
67
|
+
// In case the root has a height, it should not be exceeded.
|
|
68
68
|
maxHeight: '100%',
|
|
69
69
|
} ),
|
|
70
70
|
className
|
|
@@ -45,7 +45,7 @@ function CustomNavigatorButton( { path, onClick, ...props } ) {
|
|
|
45
45
|
return (
|
|
46
46
|
<NavigatorButton
|
|
47
47
|
onClick={ () => {
|
|
48
|
-
// Used to spy on the values passed to `navigator.goTo
|
|
48
|
+
// Used to spy on the values passed to `navigator.goTo`.
|
|
49
49
|
onClick?.( { type: 'goTo', path } );
|
|
50
50
|
} }
|
|
51
51
|
path={ path }
|
|
@@ -62,7 +62,7 @@ function CustomNavigatorButtonWithFocusRestoration( {
|
|
|
62
62
|
return (
|
|
63
63
|
<NavigatorButton
|
|
64
64
|
onClick={ () => {
|
|
65
|
-
// Used to spy on the values passed to `navigator.goTo
|
|
65
|
+
// Used to spy on the values passed to `navigator.goTo`.
|
|
66
66
|
onClick?.( { type: 'goTo', path } );
|
|
67
67
|
} }
|
|
68
68
|
path={ path }
|
|
@@ -75,7 +75,7 @@ function CustomNavigatorBackButton( { onClick, ...props } ) {
|
|
|
75
75
|
return (
|
|
76
76
|
<NavigatorBackButton
|
|
77
77
|
onClick={ () => {
|
|
78
|
-
// Used to spy on the values passed to `navigator.goBack
|
|
78
|
+
// Used to spy on the values passed to `navigator.goBack`.
|
|
79
79
|
onClick?.( { type: 'goBack' } );
|
|
80
80
|
} }
|
|
81
81
|
{ ...props }
|
|
@@ -137,7 +137,7 @@ const MyNavigation = ( {
|
|
|
137
137
|
</CustomNavigatorBackButton>
|
|
138
138
|
</NavigatorScreen>
|
|
139
139
|
|
|
140
|
-
{ /* A `NavigatorScreen` with `path={ PATHS.NOT_FOUND }` is purposefully not included */ }
|
|
140
|
+
{ /* A `NavigatorScreen` with `path={ PATHS.NOT_FOUND }` is purposefully not included. */ }
|
|
141
141
|
</NavigatorProvider>
|
|
142
142
|
);
|
|
143
143
|
|
|
@@ -262,43 +262,42 @@ describe( 'Navigator', () => {
|
|
|
262
262
|
expect( getHomeScreen() ).toBeInTheDocument();
|
|
263
263
|
expect( getToChildScreenButton() ).toBeInTheDocument();
|
|
264
264
|
|
|
265
|
-
// Navigate to child screen
|
|
265
|
+
// Navigate to child screen.
|
|
266
266
|
fireEvent.click( getToChildScreenButton() );
|
|
267
267
|
|
|
268
268
|
expect( getChildScreen() ).toBeInTheDocument();
|
|
269
269
|
expect( getBackButton() ).toBeInTheDocument();
|
|
270
270
|
|
|
271
|
-
// Navigate back to home screen
|
|
271
|
+
// Navigate back to home screen.
|
|
272
272
|
fireEvent.click( getBackButton() );
|
|
273
|
-
|
|
274
273
|
expect( getHomeScreen() ).toBeInTheDocument();
|
|
275
274
|
expect( getToChildScreenButton() ).toBeInTheDocument();
|
|
276
275
|
|
|
277
|
-
// Navigate again to child screen
|
|
276
|
+
// Navigate again to child screen.
|
|
278
277
|
fireEvent.click( getToChildScreenButton() );
|
|
279
278
|
|
|
280
279
|
expect( getChildScreen() ).toBeInTheDocument();
|
|
281
280
|
expect( getToNestedScreenButton() ).toBeInTheDocument();
|
|
282
281
|
|
|
283
|
-
// Navigate to nested screen
|
|
282
|
+
// Navigate to nested screen.
|
|
284
283
|
fireEvent.click( getToNestedScreenButton() );
|
|
285
284
|
|
|
286
285
|
expect( getNestedScreen() ).toBeInTheDocument();
|
|
287
286
|
expect( getBackButton() ).toBeInTheDocument();
|
|
288
287
|
|
|
289
|
-
// Navigate back to child screen
|
|
288
|
+
// Navigate back to child screen.
|
|
290
289
|
fireEvent.click( getBackButton() );
|
|
291
290
|
|
|
292
291
|
expect( getChildScreen() ).toBeInTheDocument();
|
|
293
292
|
expect( getToNestedScreenButton() ).toBeInTheDocument();
|
|
294
293
|
|
|
295
|
-
// Navigate back to home screen
|
|
294
|
+
// Navigate back to home screen.
|
|
296
295
|
fireEvent.click( getBackButton() );
|
|
297
296
|
|
|
298
297
|
expect( getHomeScreen() ).toBeInTheDocument();
|
|
299
298
|
expect( getToChildScreenButton() ).toBeInTheDocument();
|
|
300
299
|
|
|
301
|
-
// Check the values passed to `navigator.goTo()
|
|
300
|
+
// Check the values passed to `navigator.goTo()`.
|
|
302
301
|
expect( spy ).toHaveBeenCalledTimes( 6 );
|
|
303
302
|
expect( spy ).toHaveBeenNthCalledWith( 1, {
|
|
304
303
|
path: PATHS.CHILD,
|
|
@@ -343,7 +342,7 @@ describe( 'Navigator', () => {
|
|
|
343
342
|
getNestedScreen( { throwIfNotFound: false } )
|
|
344
343
|
).not.toBeInTheDocument();
|
|
345
344
|
|
|
346
|
-
// Check the values passed to `navigator.goTo()
|
|
345
|
+
// Check the values passed to `navigator.goTo()`.
|
|
347
346
|
expect( spy ).toHaveBeenCalledTimes( 1 );
|
|
348
347
|
expect( spy ).toHaveBeenNthCalledWith( 1, {
|
|
349
348
|
path: PATHS.NOT_FOUND,
|
|
@@ -356,23 +355,23 @@ describe( 'Navigator', () => {
|
|
|
356
355
|
|
|
357
356
|
expect( getHomeScreen() ).toBeInTheDocument();
|
|
358
357
|
|
|
359
|
-
// Navigate to child screen
|
|
358
|
+
// Navigate to child screen.
|
|
360
359
|
fireEvent.click( getToChildScreenButton() );
|
|
361
360
|
|
|
362
361
|
expect( getChildScreen() ).toBeInTheDocument();
|
|
363
362
|
|
|
364
|
-
// Navigate to nested screen
|
|
363
|
+
// Navigate to nested screen.
|
|
365
364
|
fireEvent.click( getToNestedScreenButton() );
|
|
366
365
|
|
|
367
366
|
expect( getNestedScreen() ).toBeInTheDocument();
|
|
368
367
|
|
|
369
|
-
// Navigate back to child screen, check that focus was correctly restored
|
|
368
|
+
// Navigate back to child screen, check that focus was correctly restored.
|
|
370
369
|
fireEvent.click( getBackButton() );
|
|
371
370
|
|
|
372
371
|
expect( getChildScreen() ).toBeInTheDocument();
|
|
373
372
|
expect( getToNestedScreenButton() ).toHaveFocus();
|
|
374
373
|
|
|
375
|
-
// Navigate back to home screen, check that focus was correctly restored
|
|
374
|
+
// Navigate back to home screen, check that focus was correctly restored.
|
|
376
375
|
fireEvent.click( getBackButton() );
|
|
377
376
|
|
|
378
377
|
expect( getHomeScreen() ).toBeInTheDocument();
|
|
@@ -392,14 +391,14 @@ describe( 'Navigator', () => {
|
|
|
392
391
|
INVALID_HTML_ATTRIBUTE.escaped
|
|
393
392
|
);
|
|
394
393
|
|
|
395
|
-
// Navigate to screen with an invalid HTML value for its `path
|
|
394
|
+
// Navigate to screen with an invalid HTML value for its `path`.
|
|
396
395
|
fireEvent.click( getToInvalidHTMLPathScreenButton() );
|
|
397
396
|
|
|
398
397
|
expect( getInvalidHTMLPathScreen() ).toBeInTheDocument();
|
|
399
398
|
expect( getBackButton() ).toBeInTheDocument();
|
|
400
399
|
|
|
401
400
|
// Navigate back to home screen, check that the focus restoration selector
|
|
402
|
-
// worked correctly despite the escaping
|
|
401
|
+
// worked correctly despite the escaping.
|
|
403
402
|
fireEvent.click( getBackButton() );
|
|
404
403
|
|
|
405
404
|
expect( getHomeScreen() ).toBeInTheDocument();
|
package/src/navigator/types.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function NumberControl(
|
|
|
43
43
|
const baseStep = isStepAny ? 1 : parseFloat( step );
|
|
44
44
|
const baseValue = roundClamp( 0, min, max, baseStep );
|
|
45
45
|
const constrainValue = ( value, stepOverride ) => {
|
|
46
|
-
// When step is "any" clamp the value, otherwise round and clamp it
|
|
46
|
+
// When step is "any" clamp the value, otherwise round and clamp it.
|
|
47
47
|
return isStepAny
|
|
48
48
|
? Math.min( max, Math.max( min, value ) )
|
|
49
49
|
: roundClamp( value, min, max, stepOverride ?? baseStep );
|
package/src/panel/body.js
CHANGED
|
@@ -48,10 +48,10 @@ export function PanelBody(
|
|
|
48
48
|
onToggle( next );
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// Ref is used so that the effect does not re-run upon scrollAfterOpen changing value
|
|
51
|
+
// Ref is used so that the effect does not re-run upon scrollAfterOpen changing value.
|
|
52
52
|
const scrollAfterOpenRef = useRef();
|
|
53
53
|
scrollAfterOpenRef.current = scrollAfterOpen;
|
|
54
|
-
// Runs after initial render
|
|
54
|
+
// Runs after initial render.
|
|
55
55
|
useUpdateEffect( () => {
|
|
56
56
|
if (
|
|
57
57
|
isOpened &&
|
package/src/popover/index.js
CHANGED
|
@@ -79,7 +79,7 @@ function computeAnchorRect(
|
|
|
79
79
|
|
|
80
80
|
// Duck-type to check if `anchorRef` is an instance of Range
|
|
81
81
|
// `anchorRef instanceof window.Range` checks will break across document boundaries
|
|
82
|
-
// such as in an iframe
|
|
82
|
+
// such as in an iframe.
|
|
83
83
|
if ( typeof anchorRef?.cloneRange === 'function' ) {
|
|
84
84
|
return offsetIframe(
|
|
85
85
|
getRectangleFromRange( anchorRef ),
|
|
@@ -90,7 +90,7 @@ function computeAnchorRect(
|
|
|
90
90
|
|
|
91
91
|
// Duck-type to check if `anchorRef` is an instance of Element
|
|
92
92
|
// `anchorRef instanceof window.Element` checks will break across document boundaries
|
|
93
|
-
// such as in an iframe
|
|
93
|
+
// such as in an iframe.
|
|
94
94
|
if ( typeof anchorRef?.getBoundingClientRect === 'function' ) {
|
|
95
95
|
const rect = offsetIframe(
|
|
96
96
|
anchorRef.getBoundingClientRect(),
|
|
@@ -389,7 +389,7 @@ const Popover = (
|
|
|
389
389
|
typeof contentWidth === 'number' ? contentWidth + 'px' : ''
|
|
390
390
|
);
|
|
391
391
|
|
|
392
|
-
// Compute the animation position
|
|
392
|
+
// Compute the animation position.
|
|
393
393
|
const yAxisMapping = {
|
|
394
394
|
top: 'bottom',
|
|
395
395
|
bottom: 'top',
|
package/src/popover/utils.js
CHANGED
|
@@ -7,7 +7,7 @@ import { isRTL } from '@wordpress/i18n';
|
|
|
7
7
|
/**
|
|
8
8
|
* Module constants
|
|
9
9
|
*/
|
|
10
|
-
const HEIGHT_OFFSET = 10; //
|
|
10
|
+
const HEIGHT_OFFSET = 10; // Used by the arrow and a bit of empty space.
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Utility used to compute the popover position over the xAxis
|
|
@@ -39,7 +39,7 @@ export function computePopoverXAxisPosition(
|
|
|
39
39
|
) {
|
|
40
40
|
const { width } = contentSize;
|
|
41
41
|
|
|
42
|
-
// Correct xAxis for RTL support
|
|
42
|
+
// Correct xAxis for RTL support.
|
|
43
43
|
if ( xAxis === 'left' && isRTL() ) {
|
|
44
44
|
xAxis = 'right';
|
|
45
45
|
} else if ( xAxis === 'right' && isRTL() ) {
|
|
@@ -52,7 +52,7 @@ export function computePopoverXAxisPosition(
|
|
|
52
52
|
corner = 'left';
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
//
|
|
55
|
+
// X axis alignment choices.
|
|
56
56
|
const anchorMidPoint = Math.round( anchorRect.left + anchorRect.width / 2 );
|
|
57
57
|
const centerAlignment = {
|
|
58
58
|
popoverLeft: anchorMidPoint,
|
|
@@ -91,7 +91,7 @@ export function computePopoverXAxisPosition(
|
|
|
91
91
|
: width,
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
// Choosing the x axis
|
|
94
|
+
// Choosing the x axis.
|
|
95
95
|
let chosenXAxis = xAxis;
|
|
96
96
|
let contentWidth = null;
|
|
97
97
|
|
|
@@ -228,7 +228,7 @@ export function computePopoverYAxisPosition(
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
//
|
|
231
|
+
// Y axis alignment choices.
|
|
232
232
|
let anchorMidPoint = anchorRect.top + anchorRect.height / 2;
|
|
233
233
|
|
|
234
234
|
if ( corner === 'bottom' ) {
|
|
@@ -261,7 +261,7 @@ export function computePopoverYAxisPosition(
|
|
|
261
261
|
: height,
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
// Choosing the y axis
|
|
264
|
+
// Choosing the y axis.
|
|
265
265
|
let chosenYAxis = yAxis;
|
|
266
266
|
let contentHeight = null;
|
|
267
267
|
|
package/src/radio-group/index.js
CHANGED