@wordpress/components 19.14.0 → 19.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -12
- package/build/autocomplete/get-default-use-items.js +5 -1
- package/build/autocomplete/get-default-use-items.js.map +1 -1
- package/build/autocomplete/index.js +5 -1
- package/build/autocomplete/index.js.map +1 -1
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/box-control/index.js +1 -1
- package/build/box-control/index.js.map +1 -1
- package/build/color-picker/hex-input.js +5 -4
- package/build/color-picker/hex-input.js.map +1 -1
- package/build/color-picker/index.native.js +35 -34
- package/build/color-picker/index.native.js.map +1 -1
- package/build/color-picker/input-with-slider.js +3 -1
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/color-picker/styles.js +31 -43
- package/build/color-picker/styles.js.map +1 -1
- package/build/color-picker/use-deprecated-props.js +22 -31
- package/build/color-picker/use-deprecated-props.js.map +1 -1
- package/build/combobox-control/index.js +14 -6
- package/build/combobox-control/index.js.map +1 -1
- package/build/combobox-control/styles.js +39 -0
- package/build/combobox-control/styles.js.map +1 -0
- package/build/dropdown-menu/index.js +5 -5
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/dropdown-menu/index.native.js +5 -5
- package/build/dropdown-menu/index.native.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 +1 -3
- package/build/external-link/index.js.map +1 -1
- package/build/focal-point-picker/grid.js +2 -7
- package/build/focal-point-picker/grid.js.map +1 -1
- package/build/focal-point-picker/index.native.js +8 -8
- package/build/focal-point-picker/index.native.js.map +1 -1
- package/build/focal-point-picker/tooltip/index.native.js +11 -12
- package/build/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build/form-token-field/index.js +22 -7
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/styles.js +40 -0
- package/build/form-token-field/styles.js.map +1 -0
- package/build/form-token-field/suggestions-list.js +2 -7
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/grid/component.js +7 -8
- package/build/grid/component.js.map +1 -1
- package/build/grid/hook.js +1 -5
- package/build/grid/hook.js.map +1 -1
- package/build/grid/index.js.map +1 -1
- package/build/grid/utils.js +4 -7
- package/build/grid/utils.js.map +1 -1
- package/build/h-stack/component.js +5 -9
- package/build/h-stack/component.js.map +1 -1
- package/build/h-stack/hook.js +8 -10
- package/build/h-stack/hook.js.map +1 -1
- package/build/h-stack/index.js.map +1 -1
- package/build/h-stack/utils.js +7 -18
- package/build/h-stack/utils.js.map +1 -1
- package/build/icon/index.js.map +1 -1
- package/build/menu-item/index.js +1 -3
- package/build/menu-item/index.js.map +1 -1
- package/build/mobile/focal-point-settings-panel/index.native.js +1 -1
- package/build/mobile/focal-point-settings-panel/index.native.js.map +1 -1
- package/build/mobile/image/index.native.js +4 -2
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/modal/index.js +17 -3
- package/build/modal/index.js.map +1 -1
- package/build/navigation/index.js +4 -1
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/base.js +3 -0
- package/build/navigation/item/base.js.map +1 -1
- package/build/popover/index.js +4 -4
- package/build/popover/index.js.map +1 -1
- package/build/range-control/index.js +54 -40
- package/build/range-control/index.js.map +1 -1
- package/build/range-control/input-range.js +5 -7
- package/build/range-control/input-range.js.map +1 -1
- package/build/range-control/mark.js +5 -7
- package/build/range-control/mark.js.map +1 -1
- package/build/range-control/rail.js +10 -16
- package/build/range-control/rail.js.map +1 -1
- package/build/range-control/styles/range-control-styles.js +62 -62
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/range-control/tooltip.js +5 -7
- package/build/range-control/tooltip.js.map +1 -1
- package/build/range-control/types.js +6 -0
- package/build/range-control/types.js.map +1 -0
- package/build/range-control/utils.js +22 -29
- package/build/range-control/utils.js.map +1 -1
- package/build/resizable-box/resize-tooltip/utils.js +2 -7
- package/build/resizable-box/resize-tooltip/utils.js.map +1 -1
- package/build/scrollable/component.js +7 -8
- package/build/scrollable/component.js.map +1 -1
- package/build/scrollable/hook.js +0 -8
- package/build/scrollable/hook.js.map +1 -1
- package/build/scrollable/index.js.map +1 -1
- package/build/scrollable/styles.js +7 -7
- package/build/scrollable/styles.js.map +1 -1
- package/build/shortcut/index.js +2 -8
- package/build/shortcut/index.js.map +1 -1
- package/build/slot-fill/index.native.js +6 -8
- package/build/slot-fill/index.native.js.map +1 -1
- package/build/slot-fill/provider.js +4 -8
- package/build/slot-fill/provider.js.map +1 -1
- package/build/slot-fill/slot.js +4 -8
- package/build/slot-fill/slot.js.map +1 -1
- package/build/spacer/component.js.map +1 -1
- package/build/spacer/hook.js +2 -2
- package/build/spacer/hook.js.map +1 -1
- package/build/spacer/index.js.map +1 -1
- package/build/text-highlight/index.js +22 -5
- package/build/text-highlight/index.js.map +1 -1
- package/build/text-highlight/types.js +6 -0
- package/build/text-highlight/types.js.map +1 -0
- package/build/tip/index.js +5 -11
- package/build/tip/index.js.map +1 -1
- package/build/tip/types.js +6 -0
- package/build/tip/types.js.map +1 -0
- package/build/toolbar-group/index.js +3 -3
- package/build/toolbar-group/index.js.map +1 -1
- package/build/tree-select/index.js +2 -2
- package/build/tree-select/index.js.map +1 -1
- package/build/ui/utils/get-valid-children.js.map +1 -1
- package/build/visually-hidden/component.js +12 -13
- package/build/visually-hidden/component.js.map +1 -1
- package/build/visually-hidden/index.js.map +1 -1
- package/build/visually-hidden/styles.js +3 -1
- package/build/visually-hidden/styles.js.map +1 -1
- package/build/visually-hidden/types.js +6 -0
- package/build/visually-hidden/types.js.map +1 -0
- package/build-module/autocomplete/get-default-use-items.js +3 -2
- package/build-module/autocomplete/get-default-use-items.js.map +1 -1
- package/build-module/autocomplete/index.js +3 -2
- package/build-module/autocomplete/index.js.map +1 -1
- package/build-module/border-control/border-control/hook.js.map +1 -1
- package/build-module/box-control/index.js +1 -1
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/color-picker/hex-input.js +4 -3
- package/build-module/color-picker/hex-input.js.map +1 -1
- package/build-module/color-picker/index.native.js +36 -35
- package/build-module/color-picker/index.native.js.map +1 -1
- package/build-module/color-picker/input-with-slider.js +3 -1
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/color-picker/styles.js +23 -40
- package/build-module/color-picker/styles.js.map +1 -1
- package/build-module/color-picker/use-deprecated-props.js +22 -31
- package/build-module/color-picker/use-deprecated-props.js.map +1 -1
- package/build-module/combobox-control/index.js +14 -7
- package/build-module/combobox-control/index.js.map +1 -1
- package/build-module/combobox-control/styles.js +27 -0
- package/build-module/combobox-control/styles.js.map +1 -0
- package/build-module/dropdown-menu/index.js +5 -4
- package/build-module/dropdown-menu/index.js.map +1 -1
- package/build-module/dropdown-menu/index.native.js +5 -4
- package/build-module/dropdown-menu/index.native.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 -2
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/focal-point-picker/grid.js +2 -6
- package/build-module/focal-point-picker/grid.js.map +1 -1
- package/build-module/focal-point-picker/index.native.js +8 -8
- package/build-module/focal-point-picker/index.native.js.map +1 -1
- package/build-module/focal-point-picker/tooltip/index.native.js +11 -12
- package/build-module/focal-point-picker/tooltip/index.native.js.map +1 -1
- package/build-module/form-token-field/index.js +20 -6
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/styles.js +28 -0
- package/build-module/form-token-field/styles.js.map +1 -0
- package/build-module/form-token-field/suggestions-list.js +2 -7
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/grid/component.js +7 -8
- package/build-module/grid/component.js.map +1 -1
- package/build-module/grid/hook.js +1 -5
- package/build-module/grid/hook.js.map +1 -1
- package/build-module/grid/index.js.map +1 -1
- package/build-module/grid/utils.js +3 -8
- package/build-module/grid/utils.js.map +1 -1
- package/build-module/h-stack/component.js +3 -7
- package/build-module/h-stack/component.js.map +1 -1
- package/build-module/h-stack/hook.js +10 -12
- package/build-module/h-stack/hook.js.map +1 -1
- package/build-module/h-stack/index.js.map +1 -1
- package/build-module/h-stack/utils.js +7 -19
- package/build-module/h-stack/utils.js.map +1 -1
- package/build-module/icon/index.js.map +1 -1
- package/build-module/menu-item/index.js +1 -2
- package/build-module/menu-item/index.js.map +1 -1
- package/build-module/mobile/focal-point-settings-panel/index.native.js +2 -2
- package/build-module/mobile/focal-point-settings-panel/index.native.js.map +1 -1
- package/build-module/mobile/image/index.native.js +3 -2
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/modal/index.js +19 -5
- package/build-module/modal/index.js.map +1 -1
- package/build-module/navigation/index.js +4 -1
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/item/base.js +3 -0
- package/build-module/navigation/item/base.js.map +1 -1
- package/build-module/popover/index.js +4 -4
- package/build-module/popover/index.js.map +1 -1
- package/build-module/range-control/index.js +54 -40
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/range-control/input-range.js +5 -6
- package/build-module/range-control/input-range.js.map +1 -1
- package/build-module/range-control/mark.js +5 -6
- package/build-module/range-control/mark.js.map +1 -1
- package/build-module/range-control/rail.js +10 -15
- package/build-module/range-control/rail.js.map +1 -1
- package/build-module/range-control/styles/range-control-styles.js +62 -64
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/range-control/tooltip.js +5 -6
- package/build-module/range-control/tooltip.js.map +1 -1
- package/build-module/range-control/types.js +2 -0
- package/build-module/range-control/types.js.map +1 -0
- package/build-module/range-control/utils.js +22 -29
- package/build-module/range-control/utils.js.map +1 -1
- package/build-module/resizable-box/resize-tooltip/utils.js +2 -6
- package/build-module/resizable-box/resize-tooltip/utils.js.map +1 -1
- package/build-module/scrollable/component.js +7 -8
- package/build-module/scrollable/component.js.map +1 -1
- package/build-module/scrollable/hook.js +0 -8
- package/build-module/scrollable/hook.js.map +1 -1
- package/build-module/scrollable/index.js.map +1 -1
- package/build-module/scrollable/styles.js +7 -7
- package/build-module/scrollable/styles.js.map +1 -1
- package/build-module/shortcut/index.js +2 -7
- package/build-module/shortcut/index.js.map +1 -1
- package/build-module/slot-fill/index.native.js +6 -7
- package/build-module/slot-fill/index.native.js.map +1 -1
- package/build-module/slot-fill/provider.js +4 -7
- package/build-module/slot-fill/provider.js.map +1 -1
- package/build-module/slot-fill/slot.js +4 -7
- package/build-module/slot-fill/slot.js.map +1 -1
- package/build-module/spacer/component.js.map +1 -1
- package/build-module/spacer/hook.js +2 -2
- package/build-module/spacer/hook.js.map +1 -1
- package/build-module/spacer/index.js.map +1 -1
- package/build-module/text-highlight/index.js +23 -6
- package/build-module/text-highlight/index.js.map +1 -1
- package/build-module/text-highlight/types.js +2 -0
- package/build-module/text-highlight/types.js.map +1 -0
- package/build-module/tip/index.js +6 -10
- package/build-module/tip/index.js.map +1 -1
- package/build-module/tip/types.js +2 -0
- package/build-module/tip/types.js.map +1 -0
- package/build-module/toolbar-group/index.js +3 -2
- package/build-module/toolbar-group/index.js.map +1 -1
- package/build-module/tree-select/index.js +3 -3
- package/build-module/tree-select/index.js.map +1 -1
- package/build-module/ui/utils/get-valid-children.js.map +1 -1
- package/build-module/visually-hidden/component.js +12 -13
- package/build-module/visually-hidden/component.js.map +1 -1
- package/build-module/visually-hidden/index.js.map +1 -1
- package/build-module/visually-hidden/styles.js +3 -1
- package/build-module/visually-hidden/styles.js.map +1 -1
- package/build-module/visually-hidden/types.js +2 -0
- package/build-module/visually-hidden/types.js.map +1 -0
- package/build-style/style-rtl.css +13 -19
- package/build-style/style.css +13 -19
- 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/color-picker/hex-input.d.ts.map +1 -1
- package/build-types/color-picker/input-with-slider.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +30 -31
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/styles.d.ts +14 -0
- package/build-types/form-token-field/styles.d.ts.map +1 -0
- package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
- package/build-types/form-token-field/types.d.ts +7 -0
- package/build-types/form-token-field/types.d.ts.map +1 -1
- package/build-types/grid/component.d.ts +3 -3
- package/build-types/grid/component.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +5 -2
- package/build-types/grid/hook.d.ts.map +1 -1
- package/build-types/grid/index.d.ts +2 -2
- package/build-types/grid/index.d.ts.map +1 -1
- package/build-types/grid/stories/index.d.ts +9 -0
- package/build-types/grid/stories/index.d.ts.map +1 -0
- package/build-types/grid/test/grid.d.ts +2 -0
- package/build-types/grid/test/grid.d.ts.map +1 -0
- package/build-types/grid/types.d.ts +16 -15
- package/build-types/grid/types.d.ts.map +1 -1
- package/build-types/grid/utils.d.ts +50 -69
- package/build-types/grid/utils.d.ts.map +1 -1
- package/build-types/h-stack/component.d.ts +3 -2
- package/build-types/h-stack/component.d.ts.map +1 -1
- package/build-types/h-stack/hook.d.ts +5 -3
- package/build-types/h-stack/hook.d.ts.map +1 -1
- package/build-types/h-stack/index.d.ts +2 -2
- package/build-types/h-stack/index.d.ts.map +1 -1
- package/build-types/h-stack/stories/index.d.ts +9 -0
- package/build-types/h-stack/stories/index.d.ts.map +1 -0
- package/build-types/h-stack/test/index.d.ts +2 -0
- package/build-types/h-stack/test/index.d.ts.map +1 -0
- package/build-types/h-stack/utils.d.ts +8 -4
- package/build-types/h-stack/utils.d.ts.map +1 -1
- package/build-types/icon/index.d.ts +1 -1
- package/build-types/icon/index.d.ts.map +1 -1
- package/build-types/menu-item/index.d.ts.map +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +54 -29
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/input-range.d.ts +7 -10
- package/build-types/range-control/input-range.d.ts.map +1 -1
- package/build-types/range-control/mark.d.ts +4 -7
- package/build-types/range-control/mark.d.ts.map +1 -1
- package/build-types/range-control/rail.d.ts +4 -9
- package/build-types/range-control/rail.d.ts.map +1 -1
- package/build-types/range-control/stories/index.d.ts +48 -0
- package/build-types/range-control/stories/index.d.ts.map +1 -0
- package/build-types/range-control/styles/range-control-styles.d.ts +32 -40
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/range-control/test/index.d.ts +2 -0
- package/build-types/range-control/test/index.d.ts.map +1 -0
- package/build-types/range-control/tooltip.d.ts +4 -11
- package/build-types/range-control/tooltip.d.ts.map +1 -1
- package/build-types/range-control/types.d.ts +302 -0
- package/build-types/range-control/types.d.ts.map +1 -0
- package/build-types/range-control/utils.d.ts +15 -33
- package/build-types/range-control/utils.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/utils.d.ts.map +1 -1
- package/build-types/scrollable/component.d.ts +3 -3
- package/build-types/scrollable/component.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts +5 -2
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/scrollable/index.d.ts +2 -2
- package/build-types/scrollable/index.d.ts.map +1 -1
- package/build-types/scrollable/stories/index.d.ts +9 -0
- package/build-types/scrollable/stories/index.d.ts.map +1 -0
- package/build-types/scrollable/styles.d.ts +7 -7
- package/build-types/scrollable/styles.d.ts.map +1 -1
- package/build-types/scrollable/test/index.d.ts +2 -0
- package/build-types/scrollable/test/index.d.ts.map +1 -0
- package/build-types/scrollable/types.d.ts +9 -6
- package/build-types/scrollable/types.d.ts.map +1 -1
- package/build-types/shortcut/index.d.ts.map +1 -1
- package/build-types/slot-fill/provider.d.ts.map +1 -1
- package/build-types/slot-fill/slot.d.ts.map +1 -1
- package/build-types/spacer/component.d.ts +2 -2
- package/build-types/spacer/component.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +2 -2
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/spacer/index.d.ts +1 -1
- package/build-types/spacer/index.d.ts.map +1 -1
- package/build-types/spacer/test/index.d.ts +2 -0
- package/build-types/spacer/test/index.d.ts.map +1 -0
- package/build-types/spacer/types.d.ts +41 -29
- package/build-types/spacer/types.d.ts.map +1 -1
- package/build-types/text-highlight/index.d.ts +23 -0
- package/build-types/text-highlight/index.d.ts.map +1 -0
- package/build-types/text-highlight/stories/index.d.ts +12 -0
- package/build-types/text-highlight/stories/index.d.ts.map +1 -0
- package/build-types/text-highlight/test/index.d.ts +2 -0
- package/build-types/text-highlight/test/index.d.ts.map +1 -0
- package/build-types/text-highlight/types.d.ts +17 -0
- package/build-types/text-highlight/types.d.ts.map +1 -0
- package/build-types/tip/index.d.ts +5 -14
- package/build-types/tip/index.d.ts.map +1 -1
- package/build-types/tip/stories/index.d.ts +12 -0
- package/build-types/tip/stories/index.d.ts.map +1 -0
- package/build-types/tip/types.d.ts +11 -0
- package/build-types/tip/types.d.ts.map +1 -0
- package/build-types/ui/form-group/form-group.d.ts +1 -1
- package/build-types/ui/form-group/types.d.ts +1 -1
- package/build-types/ui/form-group/types.d.ts.map +1 -1
- package/build-types/ui/form-group/use-form-group.d.ts +3 -3
- package/build-types/ui/utils/get-valid-children.d.ts +2 -2
- package/build-types/ui/utils/get-valid-children.d.ts.map +1 -1
- package/build-types/visually-hidden/component.d.ts +8 -10
- package/build-types/visually-hidden/component.d.ts.map +1 -1
- package/build-types/visually-hidden/index.d.ts +1 -1
- package/build-types/visually-hidden/index.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.d.ts +14 -0
- package/build-types/visually-hidden/stories/index.d.ts.map +1 -0
- package/build-types/visually-hidden/styles.d.ts +5 -2
- package/build-types/visually-hidden/styles.d.ts.map +1 -1
- package/build-types/visually-hidden/test/index.d.ts +2 -0
- package/build-types/visually-hidden/test/index.d.ts.map +1 -0
- package/build-types/visually-hidden/types.d.ts +11 -0
- package/build-types/visually-hidden/types.d.ts.map +1 -0
- package/package.json +17 -17
- package/src/autocomplete/get-default-use-items.js +3 -2
- package/src/autocomplete/index.js +3 -2
- package/src/border-control/border-control/hook.ts +1 -1
- package/src/box-control/index.js +1 -1
- package/src/button/README.md +1 -1
- package/src/color-picker/hex-input.tsx +3 -2
- package/src/color-picker/index.native.js +20 -27
- package/src/color-picker/input-with-slider.tsx +2 -0
- package/src/color-picker/styles.ts +0 -5
- package/src/color-picker/use-deprecated-props.ts +24 -43
- package/src/combobox-control/index.js +15 -7
- package/src/combobox-control/stories/index.js +3 -2
- package/src/combobox-control/style.scss +1 -1
- package/src/combobox-control/styles.ts +27 -0
- package/src/dropdown-menu/index.js +3 -4
- package/src/dropdown-menu/index.native.js +3 -5
- package/src/elevation/hook.js +3 -3
- package/src/external-link/index.tsx +10 -4
- package/src/focal-point-picker/grid.js +2 -5
- package/src/focal-point-picker/index.native.js +8 -8
- package/src/focal-point-picker/tooltip/index.native.js +10 -11
- package/src/form-token-field/index.tsx +45 -24
- package/src/form-token-field/style.scss +2 -7
- package/src/form-token-field/styles.ts +32 -0
- package/src/form-token-field/suggestions-list.tsx +2 -4
- package/src/form-token-field/types.ts +7 -0
- package/src/grid/README.md +33 -19
- package/src/grid/{component.js → component.tsx} +13 -9
- package/src/grid/{hook.js → hook.ts} +5 -5
- package/src/grid/{index.js → index.ts} +0 -0
- package/src/grid/stories/index.tsx +72 -0
- package/src/grid/test/{grid.js → grid.tsx} +4 -4
- package/src/grid/types.ts +16 -17
- package/src/grid/{utils.js → utils.ts} +9 -7
- package/src/guide/style.scss +1 -0
- package/src/h-stack/{component.js → component.tsx} +8 -8
- package/src/h-stack/{hook.js → hook.tsx} +21 -16
- package/src/h-stack/{index.js → index.ts} +0 -0
- package/src/h-stack/stories/index.tsx +92 -0
- package/src/h-stack/test/__snapshots__/{index.js.snap → index.tsx.snap} +0 -0
- package/src/h-stack/test/{index.js → index.tsx} +0 -0
- package/src/h-stack/{utils.js → utils.ts} +14 -14
- package/src/higher-order/navigate-regions/README.md +4 -1
- package/src/icon/index.tsx +1 -1
- package/src/menu-item/index.js +1 -2
- package/src/mobile/focal-point-settings-panel/index.native.js +2 -2
- package/src/mobile/image/index.native.js +3 -2
- package/src/modal/index.js +21 -2
- package/src/modal/stories/index.js +17 -1
- package/src/modal/style.scss +9 -18
- package/src/navigation/index.js +3 -0
- package/src/navigation/item/base.js +2 -1
- package/src/popover/README.md +2 -2
- package/src/popover/index.js +7 -4
- package/src/range-control/README.md +107 -79
- package/src/range-control/{index.js → index.tsx} +78 -48
- package/src/range-control/{input-range.js → input-range.tsx} +11 -7
- package/src/range-control/{mark.js → mark.tsx} +15 -9
- package/src/range-control/{rail.js → rail.tsx} +40 -23
- package/src/range-control/stories/index.tsx +244 -0
- package/src/range-control/styles/{range-control-styles.js → range-control-styles.ts} +28 -24
- package/src/range-control/test/index.tsx +311 -0
- package/src/range-control/{tooltip.js → tooltip.tsx} +19 -14
- package/src/range-control/types.ts +326 -0
- package/src/range-control/utils.ts +132 -0
- package/src/resizable-box/resize-tooltip/utils.ts +2 -3
- package/src/scrollable/README.md +14 -8
- package/src/scrollable/{component.js → component.tsx} +13 -10
- package/src/scrollable/{hook.js → hook.ts} +5 -7
- package/src/scrollable/{index.js → index.ts} +0 -0
- package/src/scrollable/stories/{index.js → index.tsx} +29 -34
- package/src/scrollable/{styles.js → styles.ts} +0 -0
- package/src/scrollable/test/__snapshots__/{index.js.snap → index.tsx.snap} +1 -0
- package/src/scrollable/test/index.tsx +34 -0
- package/src/scrollable/types.ts +10 -5
- package/src/select-control/test/select-control.tsx +22 -15
- package/src/shortcut/index.js +2 -7
- package/src/slot-fill/index.native.js +2 -7
- package/src/slot-fill/provider.js +3 -7
- package/src/slot-fill/slot.js +21 -24
- package/src/spacer/README.md +43 -37
- package/src/spacer/component.tsx +2 -2
- package/src/spacer/hook.ts +4 -2
- package/src/spacer/index.ts +1 -1
- package/src/spacer/test/__snapshots__/{index.js.snap → index.tsx.snap} +1 -0
- package/src/spacer/test/index.tsx +149 -0
- package/src/spacer/types.ts +41 -29
- package/src/tab-panel/README.md +1 -1
- package/src/text-highlight/README.md +6 -6
- package/src/text-highlight/index.tsx +49 -0
- package/src/text-highlight/stories/index.tsx +33 -0
- package/src/text-highlight/test/index.tsx +93 -0
- package/src/text-highlight/types.ts +16 -0
- package/src/tip/index.tsx +22 -0
- package/src/tip/stories/index.tsx +33 -0
- package/src/tip/types.ts +11 -0
- package/src/toolbar-group/index.js +1 -2
- package/src/tree-select/index.tsx +3 -3
- package/src/ui/form-group/types.ts +1 -1
- package/src/ui/utils/get-valid-children.ts +4 -2
- package/src/visually-hidden/{component.js → component.tsx} +23 -15
- package/src/visually-hidden/{index.js → index.ts} +0 -0
- package/src/visually-hidden/stories/index.tsx +66 -0
- package/src/visually-hidden/{styles.js → styles.ts} +6 -2
- package/src/visually-hidden/test/__snapshots__/{index.js.snap → index.tsx.snap} +0 -0
- package/src/visually-hidden/test/index.tsx +17 -0
- package/src/visually-hidden/types.ts +11 -0
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/grid/stories/index.js +0 -49
- package/src/h-stack/stories/index.js +0 -22
- package/src/range-control/stories/index.js +0 -180
- package/src/range-control/test/index.js +0 -320
- package/src/range-control/utils.js +0 -131
- package/src/scrollable/test/index.js +0 -31
- package/src/spacer/test/index.js +0 -146
- package/src/text-highlight/index.js +0 -28
- package/src/text-highlight/stories/index.js +0 -28
- package/src/text-highlight/test/index.js +0 -120
- package/src/tip/index.js +0 -24
- package/src/tip/stories/index.js +0 -26
- package/src/visually-hidden/stories/index.js +0 -42
- package/src/visually-hidden/test/index.js +0 -19
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { InputRangeProps } from './types';
|
|
3
|
+
declare const ForwardedComponent: import("react").ForwardRefExoticComponent<Pick<InputRangeProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>> & {
|
|
4
|
+
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
5
|
+
}, "children" | "as" | keyof InputRangeProps> & {
|
|
6
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
7
|
+
}, "type" | "form" | "slot" | "style" | "title" | "pattern" | "as" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "enterKeyHint" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | keyof InputRangeProps> & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
8
|
export default ForwardedComponent;
|
|
2
|
-
declare const ForwardedComponent: import("react").ForwardRefExoticComponent<Pick<{
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
describedBy: any;
|
|
5
|
-
label: any;
|
|
6
|
-
onHideTooltip?: (() => void) | undefined;
|
|
7
|
-
onMouseLeave?: (() => void) | undefined;
|
|
8
|
-
onMouseMove?: (() => void) | undefined;
|
|
9
|
-
onShowTooltip?: (() => void) | undefined;
|
|
10
|
-
value: any;
|
|
11
|
-
}, string | number> & import("react").RefAttributes<any>>;
|
|
12
9
|
//# sourceMappingURL=input-range.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-range.d.ts","sourceRoot":"","sources":["../../src/range-control/input-range.
|
|
1
|
+
{"version":3,"file":"input-range.d.ts","sourceRoot":"","sources":["../../src/range-control/input-range.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0C/C,QAAA,MAAM,kBAAkB;;;;s5JAA2B,CAAC;AAEpD,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
label: any;
|
|
6
|
-
style?: {} | undefined;
|
|
7
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RangeMarkProps } from './types';
|
|
3
|
+
import type { WordPressComponentProps } from '../ui/context';
|
|
4
|
+
export default function RangeMark(props: WordPressComponentProps<RangeMarkProps, 'span'>): JSX.Element;
|
|
8
5
|
//# sourceMappingURL=mark.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mark.d.ts","sourceRoot":"","sources":["../../src/range-control/mark.
|
|
1
|
+
{"version":3,"file":"mark.d.ts","sourceRoot":"","sources":["../../src/range-control/mark.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,CAAC,OAAO,UAAU,SAAS,CAChC,KAAK,EAAE,uBAAuB,CAAE,cAAc,EAAE,MAAM,CAAE,eAyCxD"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
min?: number | undefined;
|
|
6
|
-
max?: number | undefined;
|
|
7
|
-
step?: number | undefined;
|
|
8
|
-
value?: number | undefined;
|
|
9
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WordPressComponentProps } from '../ui/context';
|
|
3
|
+
import type { RailProps } from './types';
|
|
4
|
+
export default function RangeRail(props: WordPressComponentProps<RailProps, 'span'>): JSX.Element;
|
|
10
5
|
//# sourceMappingURL=rail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rail.d.ts","sourceRoot":"","sources":["../../src/range-control/rail.
|
|
1
|
+
{"version":3,"file":"rail.d.ts","sourceRoot":"","sources":["../../src/range-control/rail.tsx"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAGX,SAAS,EAET,MAAM,SAAS,CAAC;AAEjB,MAAM,CAAC,OAAO,UAAU,SAAS,CAChC,KAAK,EAAE,uBAAuB,CAAE,SAAS,EAAE,MAAM,CAAE,eA2BnD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import RangeControl from '..';
|
|
9
|
+
declare const meta: ComponentMeta<typeof RangeControl>;
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: ComponentStory<typeof RangeControl>;
|
|
12
|
+
/**
|
|
13
|
+
* Setting the `step` prop to `"any"` will allow users to select non-integer
|
|
14
|
+
* values. This also overrides both `withInputField` and `showTooltip` props to
|
|
15
|
+
* `false`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const WithAnyStep: ComponentStory<typeof RangeControl>;
|
|
18
|
+
/**
|
|
19
|
+
* Use `marks` to render a visual representation of `step` ticks. Marks may be
|
|
20
|
+
* automatically generated or custom mark indicators can be provided by an
|
|
21
|
+
* `Array`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const WithIntegerStepAndMarks: ComponentStory<typeof RangeControl>;
|
|
24
|
+
/**
|
|
25
|
+
* Decimal values may be used for `marks` rendered as a visual representation of
|
|
26
|
+
* `step` ticks. Marks may be automatically generated or custom mark indicators
|
|
27
|
+
* can be provided by an `Array`.
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithDecimalStepAndMarks: ComponentStory<typeof RangeControl>;
|
|
30
|
+
/**
|
|
31
|
+
* A negative `min` value can be used to constrain `RangeControl` values. Mark
|
|
32
|
+
* indicators can represent negative values as well. Marks may be automatically
|
|
33
|
+
* generated or custom mark indicators can be provided by an `Array`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const WithNegativeMinimumAndMarks: ComponentStory<typeof RangeControl>;
|
|
36
|
+
/**
|
|
37
|
+
* The entire range of valid values for a `RangeControl` may be negative. Mark
|
|
38
|
+
* indicators can represent negative values as well. Marks may be automatically
|
|
39
|
+
* generated or custom mark indicators can be provided by an `Array`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const WithNegativeRangeAndMarks: ComponentStory<typeof RangeControl>;
|
|
42
|
+
/**
|
|
43
|
+
* When a `RangeControl` has a `step` value of `any` a user may select
|
|
44
|
+
* non-integer values. This may still be used in conjunction with `marks`
|
|
45
|
+
* rendering a visual representation of `step` ticks.
|
|
46
|
+
*/
|
|
47
|
+
export declare const WithAnyStepAndMarks: ComponentStory<typeof RangeControl>;
|
|
48
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/range-control/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQtE;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAI9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,YAAY,CAiC7C,CAAC;AACF,eAAe,IAAI,CAAC;AAoBpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,YAAY,CAExD,CAAC;AASF;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,cAAc,CAAE,OAAO,YAAY,CAoB5D,CAAC;AAwDF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAE,OAAO,YAAY,CACjD,CAAC;AAUzB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAE,OAAO,YAAY,CACjD,CAAC;AAazB;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAAc,CACvD,OAAO,YAAY,CACO,CAAC;AAS5B;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAE,OAAO,YAAY,CACnD,CAAC;AASzB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAE,OAAO,YAAY,CAC7C,CAAC"}
|
|
@@ -1,75 +1,67 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { RangeMarkProps, ThumbProps, TooltipProps, TrackProps, WrapperProps } from '../types';
|
|
3
|
+
export declare const Root: import("@emotion/styled").StyledComponent<{
|
|
2
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
5
|
as?: import("react").ElementType<any> | undefined;
|
|
4
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
6
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
9
|
as?: import("react").ElementType<any> | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
|
|
10
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
-
export const BeforeIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
} & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const BeforeIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
14
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
15
|
-
export const AfterIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
export declare const AfterIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
17
|
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
19
|
-
export const Rail: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
export declare const Rail: import("@emotion/styled").StyledComponent<{
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} & import("../types").NumericProps & {
|
|
23
|
+
disabled?: boolean | undefined;
|
|
24
|
+
marks?: boolean | {
|
|
25
|
+
value: number;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
step?: number | "any" | undefined;
|
|
22
29
|
} & {
|
|
23
|
-
|
|
24
|
-
railColor: any;
|
|
30
|
+
railColor?: import("csstype").Property.Color | undefined;
|
|
25
31
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
26
|
-
export const Track: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
export declare const Track: import("@emotion/styled").StyledComponent<{
|
|
27
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
34
|
as?: import("react").ElementType<any> | undefined;
|
|
29
|
-
} & {
|
|
30
|
-
|
|
31
|
-
trackColor: any;
|
|
32
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
33
|
-
export const MarksWrapper: import("@emotion/styled").StyledComponent<{
|
|
35
|
+
} & TrackProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
36
|
+
export declare const MarksWrapper: import("@emotion/styled").StyledComponent<{
|
|
34
37
|
theme?: import("@emotion/react").Theme | undefined;
|
|
35
38
|
as?: import("react").ElementType<any> | undefined;
|
|
36
39
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
37
|
-
export const Mark: import("@emotion/styled").StyledComponent<{
|
|
40
|
+
export declare const Mark: import("@emotion/styled").StyledComponent<{
|
|
38
41
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
42
|
as?: import("react").ElementType<any> | undefined;
|
|
40
|
-
} & {
|
|
41
|
-
|
|
42
|
-
isFilled: any;
|
|
43
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
44
|
-
export const MarkLabel: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
} & RangeMarkProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
44
|
+
export declare const MarkLabel: import("@emotion/styled").StyledComponent<{
|
|
45
45
|
theme?: import("@emotion/react").Theme | undefined;
|
|
46
46
|
as?: import("react").ElementType<any> | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
|
|
49
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
50
|
-
export const ThumbWrapper: import("@emotion/styled").StyledComponent<{
|
|
47
|
+
} & RangeMarkProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
48
|
+
export declare const ThumbWrapper: import("@emotion/styled").StyledComponent<{
|
|
51
49
|
theme?: import("@emotion/react").Theme | undefined;
|
|
52
50
|
as?: import("react").ElementType<any> | undefined;
|
|
53
|
-
} & {
|
|
54
|
-
|
|
55
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
56
|
-
export const Thumb: import("@emotion/styled").StyledComponent<{
|
|
51
|
+
} & ThumbProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
52
|
+
export declare const Thumb: import("@emotion/styled").StyledComponent<{
|
|
57
53
|
theme?: import("@emotion/react").Theme | undefined;
|
|
58
54
|
as?: import("react").ElementType<any> | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
|
|
61
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
62
|
-
export const InputRange: import("@emotion/styled").StyledComponent<{
|
|
55
|
+
} & ThumbProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
56
|
+
export declare const InputRange: import("@emotion/styled").StyledComponent<{
|
|
63
57
|
theme?: import("@emotion/react").Theme | undefined;
|
|
64
58
|
as?: import("react").ElementType<any> | undefined;
|
|
65
59
|
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
66
|
-
export const Tooltip: import("@emotion/styled").StyledComponent<{
|
|
60
|
+
export declare const Tooltip: import("@emotion/styled").StyledComponent<{
|
|
67
61
|
theme?: import("@emotion/react").Theme | undefined;
|
|
68
62
|
as?: import("react").ElementType<any> | undefined;
|
|
69
|
-
} & {
|
|
70
|
-
|
|
71
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
72
|
-
export const InputNumber: import("@emotion/styled").StyledComponent<Pick<{
|
|
63
|
+
} & TooltipProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
64
|
+
export declare const InputNumber: import("@emotion/styled").StyledComponent<Pick<{
|
|
73
65
|
[x: string]: any;
|
|
74
66
|
__unstableStateReducer: any;
|
|
75
67
|
className: any;
|
|
@@ -88,7 +80,7 @@ export const InputNumber: import("@emotion/styled").StyledComponent<Pick<{
|
|
|
88
80
|
}, string | number> & import("react").RefAttributes<any> & {
|
|
89
81
|
theme?: import("@emotion/react").Theme | undefined;
|
|
90
82
|
}, {}, {}>;
|
|
91
|
-
export const ActionRightWrapper: import("@emotion/styled").StyledComponent<{
|
|
83
|
+
export declare const ActionRightWrapper: import("@emotion/styled").StyledComponent<{
|
|
92
84
|
theme?: import("@emotion/react").Theme | undefined;
|
|
93
85
|
as?: import("react").ElementType<any> | undefined;
|
|
94
86
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-control-styles.d.ts","sourceRoot":"","sources":["../../../src/range-control/styles/range-control-styles.
|
|
1
|
+
{"version":3,"file":"range-control-styles.d.ts","sourceRoot":"","sources":["../../../src/range-control/styles/range-control-styles.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,EACX,cAAc,EAEd,UAAU,EACV,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,MAAM,UAAU,CAAC;AAQlB,eAAO,MAAM,IAAI;;;yGAUhB,CAAC;AAQF,eAAO,MAAM,OAAO;;;wHAWnB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;2GAI7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;2GAI5B,CAAC;AAYF,eAAO,MAAM,IAAI;;;;;;;;;;;;2GAchB,CAAC;AAYF,eAAO,MAAM,KAAK;;;wHAYjB,CAAC;AAEF,eAAO,MAAM,YAAY;;;2GAOxB,CAAC;AAcF,eAAO,MAAM,IAAI;;;4HAShB,CAAC;AAQF,eAAO,MAAM,SAAS;;;4HAWrB,CAAC;AAWF,eAAO,MAAM,YAAY;;;wHAqBxB,CAAC;AAoBF,eAAO,MAAM,KAAK;;;wHAYjB,CAAC;AAEF,eAAO,MAAM,UAAU;;;kHAatB,CAAC;AAsBF,eAAO,MAAM,OAAO;;;0HAwBnB,CAAC;AAIF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;UAYvB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;2GAY9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/range-control/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tooltipPosition: any;
|
|
6
|
-
show?: boolean | undefined;
|
|
7
|
-
style?: {} | undefined;
|
|
8
|
-
value?: number | undefined;
|
|
9
|
-
renderTooltipContent?: ((v: any) => any) | undefined;
|
|
10
|
-
zIndex?: number | undefined;
|
|
11
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TooltipProps } from './types';
|
|
3
|
+
import type { WordPressComponentProps } from '../ui/context';
|
|
4
|
+
export default function SimpleTooltip(props: WordPressComponentProps<TooltipProps, 'span'>): JSX.Element;
|
|
12
5
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/range-control/tooltip.
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/range-control/tooltip.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,MAAM,CAAC,OAAO,UAAU,aAAa,CACpC,KAAK,EAAE,uBAAuB,CAAE,YAAY,EAAE,MAAM,CAAE,eAiCtD"}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { CSSProperties, FocusEventHandler, MouseEventHandler, MutableRefObject } from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* Internal dependencies
|
|
7
|
+
*/
|
|
8
|
+
import type { BaseControlProps } from '../base-control/types';
|
|
9
|
+
import type { IconType } from '../icon';
|
|
10
|
+
export declare type NumericProps = {
|
|
11
|
+
/**
|
|
12
|
+
* The minimum `value` allowed.
|
|
13
|
+
*
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The maximum `value` allowed.
|
|
19
|
+
*
|
|
20
|
+
* @default 100
|
|
21
|
+
*/
|
|
22
|
+
max?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The current value of the range slider.
|
|
25
|
+
*/
|
|
26
|
+
value?: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type RangeMark = {
|
|
29
|
+
value: number;
|
|
30
|
+
label?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare type RangeMarks = boolean | RangeMark[];
|
|
33
|
+
export declare type MarksProps = NumericProps & {
|
|
34
|
+
/**
|
|
35
|
+
* Disables the `input`, preventing new values from being applied.
|
|
36
|
+
*
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Renders a visual representation of `step` ticks. Custom mark indicators
|
|
42
|
+
* can be provided by an `Array`.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
marks?: boolean | {
|
|
47
|
+
value: number;
|
|
48
|
+
label?: string;
|
|
49
|
+
}[];
|
|
50
|
+
/**
|
|
51
|
+
* The minimum amount by which `value` changes. It is also a factor in
|
|
52
|
+
* validation as `value` must be a multiple of `step` (offset by `min`) to
|
|
53
|
+
* be valid. Accepts the special string value `any` that voids the
|
|
54
|
+
* validation constraint and overrides both `withInputField` and
|
|
55
|
+
* `showTooltip` props to `false`.
|
|
56
|
+
*
|
|
57
|
+
* @default 1
|
|
58
|
+
*/
|
|
59
|
+
step?: number | 'any';
|
|
60
|
+
};
|
|
61
|
+
export declare type RangeMarkProps = {
|
|
62
|
+
isFilled?: boolean;
|
|
63
|
+
label?: string;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
key?: string;
|
|
66
|
+
style?: CSSProperties;
|
|
67
|
+
};
|
|
68
|
+
export declare type ControlledRangeValue = number | '' | null;
|
|
69
|
+
export declare type RangeControlProps<IconProps = unknown> = Pick<BaseControlProps, 'hideLabelFromVision' | 'help'> & MarksProps & {
|
|
70
|
+
/**
|
|
71
|
+
* If this property is added, an Icon component will be rendered
|
|
72
|
+
* after the slider with the icon equal to afterIcon.
|
|
73
|
+
*
|
|
74
|
+
* For more information on `IconType` see the Icon component:
|
|
75
|
+
* /packages/components/src/icon/index.tsx
|
|
76
|
+
*/
|
|
77
|
+
afterIcon?: IconType<IconProps>;
|
|
78
|
+
/**
|
|
79
|
+
* If this property is true, a button to reset the the slider is
|
|
80
|
+
* rendered.
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
allowReset?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* If this property is added, an Icon component will be rendered
|
|
87
|
+
* before the slider with the icon equal to beforeIcon.
|
|
88
|
+
*
|
|
89
|
+
* For more information on `IconType` see the Icon component:
|
|
90
|
+
* /packages/components/src/icon/index.tsx
|
|
91
|
+
*/
|
|
92
|
+
beforeIcon?: IconType<IconProps>;
|
|
93
|
+
/**
|
|
94
|
+
* CSS color string for the `RangeControl` wrapper.
|
|
95
|
+
*
|
|
96
|
+
* @default COLORS.ui.theme
|
|
97
|
+
* @see /packages/components/src/utils/colors-values.js
|
|
98
|
+
*/
|
|
99
|
+
color?: CSSProperties['color'];
|
|
100
|
+
/**
|
|
101
|
+
* The current input to use as a fallback if `value` is currently
|
|
102
|
+
* `undefined`.
|
|
103
|
+
*/
|
|
104
|
+
currentInput?: number;
|
|
105
|
+
/**
|
|
106
|
+
* An icon to be shown above the slider next to its container title.
|
|
107
|
+
*/
|
|
108
|
+
icon?: string;
|
|
109
|
+
/**
|
|
110
|
+
* If no value exists this prop contains the slider starting position.
|
|
111
|
+
*/
|
|
112
|
+
initialPosition?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Passed as a prop to the `NumberControl` component and is only
|
|
115
|
+
* applicable if `withInputField` is true. If true, while the number
|
|
116
|
+
* input has focus, pressing `UP` or `DOWN` along with the `SHIFT` key
|
|
117
|
+
* will change the value by the `shiftStep` value.
|
|
118
|
+
*
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
121
|
+
isShiftStepEnabled?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* If this property is added, a label will be generated using label
|
|
124
|
+
* property as the content.
|
|
125
|
+
*/
|
|
126
|
+
label?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Callback for when `RangeControl` input loses focus.
|
|
129
|
+
*
|
|
130
|
+
* @default () => void
|
|
131
|
+
*/
|
|
132
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
133
|
+
/**
|
|
134
|
+
* A function that receives the new value. The value will be less than
|
|
135
|
+
* `max` and more than `min` unless a reset (enabled by `allowReset`)
|
|
136
|
+
* has occurred. In which case the value will be either that of
|
|
137
|
+
* `resetFallbackValue` if it has been specified or otherwise
|
|
138
|
+
* `undefined`.
|
|
139
|
+
*
|
|
140
|
+
* @default () => void
|
|
141
|
+
*/
|
|
142
|
+
onChange?: (value?: number) => void;
|
|
143
|
+
/**
|
|
144
|
+
* Callback for when `RangeControl` input gains focus.
|
|
145
|
+
*
|
|
146
|
+
* @default () => void
|
|
147
|
+
*/
|
|
148
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
149
|
+
/**
|
|
150
|
+
* Callback for when mouse exits the `RangeControl`.
|
|
151
|
+
*
|
|
152
|
+
* @default () => void
|
|
153
|
+
*/
|
|
154
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement>;
|
|
155
|
+
/**
|
|
156
|
+
* Callback for when mouse moves within the `RangeControl`.
|
|
157
|
+
*
|
|
158
|
+
* @default () => void
|
|
159
|
+
*/
|
|
160
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement>;
|
|
161
|
+
/**
|
|
162
|
+
* CSS color string to customize the rail element's background.
|
|
163
|
+
*/
|
|
164
|
+
railColor?: CSSProperties['color'];
|
|
165
|
+
/**
|
|
166
|
+
* A way to customize the rendered UI of the value.
|
|
167
|
+
*
|
|
168
|
+
* @default ( value ) => value
|
|
169
|
+
*/
|
|
170
|
+
renderTooltipContent?: (value?: ControlledRangeValue) => string | number | null | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* The value to revert to if the Reset button is clicked (enabled by
|
|
173
|
+
* `allowReset`)
|
|
174
|
+
*/
|
|
175
|
+
resetFallbackValue?: number;
|
|
176
|
+
/**
|
|
177
|
+
* Define if separator line under/above control row should be disabled
|
|
178
|
+
* or full width. By default it is placed below excluding underline the
|
|
179
|
+
* control icon.
|
|
180
|
+
*/
|
|
181
|
+
separatorType?: 'none' | 'fullWidth' | 'topFullWidth';
|
|
182
|
+
/**
|
|
183
|
+
* Passed as a prop to the `NumberControl` component and is only
|
|
184
|
+
* applicable if `withInputField` and `isShiftStepEnabled` are both true
|
|
185
|
+
* and while the number input has focus. Acts as a multiplier of `step`.
|
|
186
|
+
*
|
|
187
|
+
* @default 10
|
|
188
|
+
*/
|
|
189
|
+
shiftStep?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Forcing the Tooltip UI to show or hide. This is overridden to `false`
|
|
192
|
+
* when `step` is set to the special string value `any`.
|
|
193
|
+
*/
|
|
194
|
+
showTooltip?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* CSS color string to customize the track element's background.
|
|
197
|
+
*/
|
|
198
|
+
trackColor?: CSSProperties['color'];
|
|
199
|
+
/**
|
|
200
|
+
* Define if the value selection should present a stepper control or a
|
|
201
|
+
* slider control in the bottom sheet on mobile. To use the stepper set
|
|
202
|
+
* the type value as `stepper`. Defaults to slider if no option is
|
|
203
|
+
* provided.
|
|
204
|
+
*/
|
|
205
|
+
type?: 'stepper';
|
|
206
|
+
/**
|
|
207
|
+
* Determines if the `input` number field will render next to the
|
|
208
|
+
* RangeControl. This is overridden to `false` when `step` is set to the
|
|
209
|
+
* special string value `any`.
|
|
210
|
+
*
|
|
211
|
+
* @default true
|
|
212
|
+
*/
|
|
213
|
+
withInputField?: boolean;
|
|
214
|
+
};
|
|
215
|
+
export declare type RailProps = MarksProps & {
|
|
216
|
+
railColor?: CSSProperties['color'];
|
|
217
|
+
};
|
|
218
|
+
export declare type InputRangeProps = {
|
|
219
|
+
describedBy?: string;
|
|
220
|
+
label?: string;
|
|
221
|
+
onHideTooltip?: () => void;
|
|
222
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement>;
|
|
223
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement>;
|
|
224
|
+
onShowTooltip?: () => void;
|
|
225
|
+
value?: number | '';
|
|
226
|
+
};
|
|
227
|
+
export declare type WrapperProps = {
|
|
228
|
+
color?: CSSProperties['color'];
|
|
229
|
+
marks?: RangeMarks;
|
|
230
|
+
};
|
|
231
|
+
export declare type ThumbProps = {
|
|
232
|
+
isFocused?: boolean;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
};
|
|
235
|
+
export declare type TooltipProps = {
|
|
236
|
+
show?: boolean;
|
|
237
|
+
position?: string;
|
|
238
|
+
inputRef?: MutableRefObject<HTMLElement | undefined>;
|
|
239
|
+
tooltipPosition?: string;
|
|
240
|
+
value?: ControlledRangeValue;
|
|
241
|
+
renderTooltipContent?: (value?: ControlledRangeValue) => string | number | null | undefined;
|
|
242
|
+
zIndex?: number;
|
|
243
|
+
};
|
|
244
|
+
export declare type TrackProps = {
|
|
245
|
+
disabled: boolean;
|
|
246
|
+
trackColor: CSSProperties['color'];
|
|
247
|
+
};
|
|
248
|
+
export declare type UseControlledRangeValueArgs = {
|
|
249
|
+
/**
|
|
250
|
+
* The initial value.
|
|
251
|
+
*/
|
|
252
|
+
initial?: number;
|
|
253
|
+
/**
|
|
254
|
+
* The maximum value.
|
|
255
|
+
*/
|
|
256
|
+
max: number;
|
|
257
|
+
/**
|
|
258
|
+
* The minimum value.
|
|
259
|
+
*/
|
|
260
|
+
min: number;
|
|
261
|
+
/**
|
|
262
|
+
* The current value.
|
|
263
|
+
*/
|
|
264
|
+
value: number | null;
|
|
265
|
+
};
|
|
266
|
+
export declare type UseDebouncedHoverInteractionArgs = {
|
|
267
|
+
/**
|
|
268
|
+
* A callback function invoked when the element is hidden.
|
|
269
|
+
*
|
|
270
|
+
* @default () => {}
|
|
271
|
+
*/
|
|
272
|
+
onHide?: () => void;
|
|
273
|
+
/**
|
|
274
|
+
* A callback function invoked when the mouse is moved out of the element.
|
|
275
|
+
*
|
|
276
|
+
* @default () => {}
|
|
277
|
+
*/
|
|
278
|
+
onMouseLeave?: MouseEventHandler<HTMLInputElement>;
|
|
279
|
+
/**
|
|
280
|
+
* A callback function invoked when the mouse is moved.
|
|
281
|
+
*
|
|
282
|
+
* @default () => {}
|
|
283
|
+
*/
|
|
284
|
+
onMouseMove?: MouseEventHandler<HTMLInputElement>;
|
|
285
|
+
/**
|
|
286
|
+
* A callback function invoked when the element is shown.
|
|
287
|
+
*
|
|
288
|
+
* @default () => {}
|
|
289
|
+
*/
|
|
290
|
+
onShow?: () => void;
|
|
291
|
+
/**
|
|
292
|
+
* Timeout before the element is shown or hidden.
|
|
293
|
+
*
|
|
294
|
+
* @default 300
|
|
295
|
+
*/
|
|
296
|
+
timeout?: number;
|
|
297
|
+
};
|
|
298
|
+
export declare type UseMarksArgs = NumericProps & {
|
|
299
|
+
marks: RangeMarks;
|
|
300
|
+
step: number;
|
|
301
|
+
};
|
|
302
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/range-control/types.ts"],"names":[],"mappings":"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"}
|