@wordpress/components 21.3.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -1
- package/build/angle-picker-control/index.js +1 -1
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.js +28 -2
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/border-box-control/border-box-control/component.js +63 -15
- package/build/border-box-control/border-box-control/component.js.map +1 -1
- package/build/border-box-control/border-box-control/hook.js +7 -3
- package/build/border-box-control/border-box-control/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-linked-button/hook.js +3 -3
- package/build/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js +3 -3
- package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/hook.js +8 -11
- package/build/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
- package/build/border-box-control/border-box-control-visualizer/hook.js +3 -7
- package/build/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build/border-box-control/styles.js +34 -34
- package/build/border-box-control/styles.js.map +1 -1
- package/build/border-control/border-control/component.js +5 -4
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control/hook.js +12 -5
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/border-control/border-control-dropdown/hook.js +5 -5
- package/build/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build/border-control/styles.js +19 -34
- package/build/border-control/styles.js.map +1 -1
- package/build/box-control/index.js +6 -2
- package/build/box-control/index.js.map +1 -1
- package/build/circular-option-picker/index.js +14 -14
- package/build/circular-option-picker/index.js.map +1 -1
- package/build/color-palette/index.js +83 -30
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/styles.js +3 -3
- package/build/color-palette/styles.js.map +1 -1
- package/build/color-palette/types.js +6 -0
- package/build/color-palette/types.js.map +1 -0
- package/build/color-picker/input-with-slider.js +1 -1
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/index.js +1 -3
- package/build/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build/custom-select-control/index.js +8 -4
- package/build/custom-select-control/index.js.map +1 -1
- package/build/date-time/date-time/index.js +2 -0
- package/build/date-time/date-time/index.js.map +1 -1
- package/build/date-time/time/index.js +4 -4
- package/build/date-time/time/index.js.map +1 -1
- package/build/disabled/index.js +8 -1
- package/build/disabled/index.js.map +1 -1
- package/build/external-link/index.js +13 -2
- package/build/external-link/index.js.map +1 -1
- package/build/focusable-iframe/index.js +0 -1
- package/build/focusable-iframe/index.js.map +1 -1
- package/build/font-size-picker/index.js +61 -48
- package/build/font-size-picker/index.js.map +1 -1
- package/build/font-size-picker/utils.js +0 -21
- package/build/font-size-picker/utils.js.map +1 -1
- package/build/form-file-upload/index.js.map +1 -1
- package/build/higher-order/with-filters/index.js +1 -7
- package/build/higher-order/with-filters/index.js.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/input-control/index.js +2 -0
- package/build/input-control/index.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/styles/input-control-styles.js +21 -21
- package/build/input-control/styles/input-control-styles.js.map +1 -1
- package/build/isolated-event-container/index.js +5 -9
- package/build/isolated-event-container/index.js.map +1 -1
- package/build/item-group/styles.js +10 -10
- package/build/item-group/styles.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +20 -14
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/number-control/index.js +82 -22
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/styles/number-control-styles.js +36 -6
- package/build/number-control/styles/number-control-styles.js.map +1 -1
- package/build/popover/index.js +15 -29
- package/build/popover/index.js.map +1 -1
- package/build/radio-group/index.js +7 -1
- package/build/radio-group/index.js.map +1 -1
- package/build/{radio → radio-group/radio}/index.js +7 -1
- package/build/radio-group/radio/index.js.map +1 -0
- package/build/{radio-context → radio-group/radio-context}/index.js +0 -0
- package/build/radio-group/radio-context/index.js.map +1 -0
- package/build/slot-fill/bubbles-virtually/fill.js +9 -5
- package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +13 -8
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/use-slot.js +15 -9
- package/build/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build/slot-fill/fill.js +12 -4
- package/build/slot-fill/fill.js.map +1 -1
- package/build/slot-fill/use-slot.js +3 -1
- package/build/slot-fill/use-slot.js.map +1 -1
- package/build/snackbar/index.js +1 -1
- package/build/snackbar/index.js.map +1 -1
- package/build/tab-panel/index.js +2 -6
- package/build/tab-panel/index.js.map +1 -1
- package/build/text-control/index.js +0 -2
- package/build/text-control/index.js.map +1 -1
- package/build/toggle-control/index.js +15 -3
- package/build/toggle-control/index.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/as-button-group.js +90 -0
- package/build/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -0
- package/build/toggle-group-control/toggle-group-control/as-radio-group.js +90 -0
- package/build/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -0
- package/build/toggle-group-control/toggle-group-control/component.js +21 -50
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/styles.js +8 -8
- package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/component.js +39 -17
- package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js +23 -23
- package/build/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build/toolbar-dropdown-menu/index.js +1 -1
- package/build/toolbar-dropdown-menu/index.js.map +1 -1
- package/build/ui/context/context-system-provider.js +9 -22
- package/build/ui/context/context-system-provider.js.map +1 -1
- package/build/unit-control/index.js +7 -9
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/styles/unit-control-styles.js +15 -25
- package/build/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build/utils/config-values.js +0 -1
- package/build/utils/config-values.js.map +1 -1
- package/build/utils/hooks/use-update-effect.js +5 -1
- package/build/utils/hooks/use-update-effect.js.map +1 -1
- package/build-module/angle-picker-control/index.js +1 -1
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +29 -3
- package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
- package/build-module/border-box-control/border-box-control/component.js +61 -13
- package/build-module/border-box-control/border-box-control/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control/hook.js +7 -3
- package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-linked-button/hook.js +3 -3
- package/build-module/border-box-control/border-box-control-linked-button/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js +3 -3
- package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/hook.js +9 -10
- package/build-module/border-box-control/border-box-control-split-controls/hook.js.map +1 -1
- package/build-module/border-box-control/border-box-control-visualizer/hook.js +4 -6
- package/build-module/border-box-control/border-box-control-visualizer/hook.js.map +1 -1
- package/build-module/border-box-control/styles.js +26 -28
- package/build-module/border-box-control/styles.js.map +1 -1
- package/build-module/border-control/border-control/component.js +5 -4
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/border-control/border-control/hook.js +12 -5
- package/build-module/border-control/border-control/hook.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/hook.js +5 -5
- package/build-module/border-control/border-control-dropdown/hook.js.map +1 -1
- package/build-module/border-control/styles.js +20 -36
- package/build-module/border-control/styles.js.map +1 -1
- package/build-module/box-control/index.js +6 -2
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/circular-option-picker/index.js +14 -14
- package/build-module/circular-option-picker/index.js.map +1 -1
- package/build-module/color-palette/index.js +81 -28
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/styles.js +3 -3
- package/build-module/color-palette/styles.js.map +1 -1
- package/build-module/color-palette/types.js +2 -0
- package/build-module/color-palette/types.js.map +1 -0
- package/build-module/color-picker/input-with-slider.js +1 -1
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/index.js +1 -2
- package/build-module/custom-gradient-picker/gradient-bar/index.js.map +1 -1
- package/build-module/custom-select-control/index.js +8 -4
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/date-time/date-time/index.js +2 -0
- package/build-module/date-time/date-time/index.js.map +1 -1
- package/build-module/date-time/time/index.js +4 -4
- package/build-module/date-time/time/index.js.map +1 -1
- package/build-module/disabled/index.js +8 -1
- package/build-module/disabled/index.js.map +1 -1
- package/build-module/external-link/index.js +13 -2
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/focusable-iframe/index.js +0 -1
- package/build-module/focusable-iframe/index.js.map +1 -1
- package/build-module/font-size-picker/index.js +65 -50
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/font-size-picker/utils.js +0 -19
- package/build-module/font-size-picker/utils.js.map +1 -1
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/higher-order/with-filters/index.js +1 -6
- package/build-module/higher-order/with-filters/index.js.map +1 -1
- package/build-module/index.js +2 -2
- package/build-module/index.js.map +1 -1
- package/build-module/input-control/index.js +2 -0
- package/build-module/input-control/index.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/styles/input-control-styles.js +21 -21
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/isolated-event-container/index.js +7 -9
- package/build-module/isolated-event-container/index.js.map +1 -1
- package/build-module/item-group/styles.js +10 -10
- package/build-module/item-group/styles.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +20 -4
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/number-control/index.js +81 -26
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/styles/number-control-styles.js +30 -4
- package/build-module/number-control/styles/number-control-styles.js.map +1 -1
- package/build-module/popover/index.js +15 -29
- package/build-module/popover/index.js.map +1 -1
- package/build-module/radio-group/index.js +6 -1
- package/build-module/radio-group/index.js.map +1 -1
- package/build-module/{radio → radio-group/radio}/index.js +6 -1
- package/build-module/radio-group/radio/index.js.map +1 -0
- package/build-module/{radio-context → radio-group/radio-context}/index.js +0 -0
- package/build-module/radio-group/radio-context/index.js.map +1 -0
- package/build-module/slot-fill/bubbles-virtually/fill.js +9 -5
- package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +13 -8
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/use-slot.js +15 -9
- package/build-module/slot-fill/bubbles-virtually/use-slot.js.map +1 -1
- package/build-module/slot-fill/fill.js +12 -4
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/slot-fill/use-slot.js +3 -1
- package/build-module/slot-fill/use-slot.js.map +1 -1
- package/build-module/snackbar/index.js +1 -1
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/tab-panel/index.js +2 -6
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/text-control/index.js +0 -2
- package/build-module/text-control/index.js.map +1 -1
- package/build-module/toggle-control/index.js +15 -3
- package/build-module/toggle-control/index.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js +76 -0
- package/build-module/toggle-group-control/toggle-group-control/as-button-group.js.map +1 -0
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js +75 -0
- package/build-module/toggle-group-control/toggle-group-control/as-radio-group.js.map +1 -0
- package/build-module/toggle-group-control/toggle-group-control/component.js +19 -49
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/styles.js +7 -6
- package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +39 -17
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js +21 -18
- package/build-module/toggle-group-control/toggle-group-control-option-base/styles.js.map +1 -1
- package/build-module/toolbar-dropdown-menu/index.js +1 -1
- package/build-module/toolbar-dropdown-menu/index.js.map +1 -1
- package/build-module/ui/context/context-system-provider.js +6 -20
- package/build-module/ui/context/context-system-provider.js.map +1 -1
- package/build-module/unit-control/index.js +8 -10
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/styles/unit-control-styles.js +8 -24
- package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build-module/utils/config-values.js +0 -1
- package/build-module/utils/config-values.js.map +1 -1
- package/build-module/utils/hooks/use-update-effect.js +5 -1
- package/build-module/utils/hooks/use-update-effect.js.map +1 -1
- package/build-style/style-rtl.css +21 -41
- package/build-style/style.css +19 -39
- package/build-types/base-field/hook.d.ts +11 -11
- package/build-types/border-box-control/border-box-control/component.d.ts +53 -4
- package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts +13 -12
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +12 -12
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +12 -12
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +12 -12
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
- package/build-types/border-box-control/stories/index.d.ts +17 -0
- package/build-types/border-box-control/stories/index.d.ts.map +1 -0
- package/build-types/border-box-control/styles.d.ts +7 -6
- package/build-types/border-box-control/styles.d.ts.map +1 -1
- package/build-types/border-box-control/types.d.ts +12 -16
- package/build-types/border-box-control/types.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +1 -1
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts +13 -13
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +11 -11
- package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-style-picker/hook.d.ts +11 -11
- package/build-types/border-control/stories/index.d.ts +6 -6
- package/build-types/border-control/stories/index.d.ts.map +1 -1
- package/build-types/border-control/styles.d.ts +3 -3
- package/build-types/border-control/styles.d.ts.map +1 -1
- package/build-types/border-control/types.d.ts +7 -9
- package/build-types/border-control/types.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +12 -12
- package/build-types/card/card-body/hook.d.ts +12 -12
- package/build-types/card/card-divider/hook.d.ts +13 -13
- package/build-types/card/card-footer/hook.d.ts +12 -12
- package/build-types/card/card-header/hook.d.ts +12 -12
- package/build-types/card/card-media/hook.d.ts +12 -12
- package/build-types/card/stories/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/index.d.ts +4 -24
- package/build-types/circular-option-picker/index.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts +33 -18
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.d.ts +21 -0
- package/build-types/color-palette/stories/index.d.ts.map +1 -0
- package/build-types/color-palette/styles.d.ts +3 -2
- package/build-types/color-palette/styles.d.ts.map +1 -1
- package/build-types/color-palette/test/index.d.ts +2 -0
- package/build-types/color-palette/test/index.d.ts.map +1 -0
- package/build-types/color-palette/types.d.ts +86 -0
- package/build-types/color-palette/types.d.ts.map +1 -0
- package/build-types/color-picker/styles.d.ts +5 -4
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts +4 -4
- package/build-types/custom-select-control/index.d.ts +1 -12
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/styles.d.ts +3 -1
- package/build-types/custom-select-control/styles.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +3 -3
- package/build-types/date-time/date-time/index.d.ts +2 -0
- package/build-types/date-time/date-time/index.d.ts.map +1 -1
- package/build-types/date-time/date-time/styles.d.ts +3 -3
- package/build-types/date-time/stories/date-time.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +8 -4
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/disabled/index.d.ts +8 -1
- package/build-types/disabled/index.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +12 -12
- package/build-types/external-link/index.d.ts.map +1 -1
- package/build-types/external-link/styles/external-link-styles.d.ts +1 -1
- package/build-types/external-link/test/index.d.ts +2 -0
- package/build-types/external-link/test/index.d.ts.map +1 -0
- package/build-types/flex/flex/hook.d.ts +12 -12
- package/build-types/flex/flex-block/hook.d.ts +12 -12
- package/build-types/flex/flex-item/hook.d.ts +12 -12
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -2
- package/build-types/focal-point-picker/styles/focal-point-style.d.ts +3 -3
- package/build-types/focusable-iframe/index.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/font-size-picker/types.d.ts +1 -1
- package/build-types/font-size-picker/utils.d.ts +0 -8
- package/build-types/font-size-picker/utils.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-file-upload/types.d.ts +5 -4
- package/build-types/form-file-upload/types.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +12 -12
- package/build-types/h-stack/component.d.ts +1 -1
- package/build-types/h-stack/hook.d.ts +12 -12
- package/build-types/heading/hook.d.ts +12 -12
- package/build-types/input-control/index.d.ts +1 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-base.d.ts +5 -2
- package/build-types/input-control/input-base.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +3 -8
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/input-control/utils.d.ts +1 -1
- package/build-types/isolated-event-container/index.d.ts +3 -2
- package/build-types/isolated-event-container/index.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +13 -13
- package/build-types/item-group/item-group/hook.d.ts +13 -13
- package/build-types/navigator/navigator-back-button/hook.d.ts +13 -13
- package/build-types/navigator/navigator-button/hook.d.ts +13 -13
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +2 -4
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/styles/number-control-styles.d.ts +5 -0
- package/build-types/number-control/styles/number-control-styles.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +12 -0
- package/build-types/number-control/types.d.ts.map +1 -1
- package/build-types/popover/index.d.ts +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/stories/e2e/index.d.ts +1 -1
- package/build-types/popover/stories/index.d.ts +2 -0
- package/build-types/popover/stories/index.d.ts.map +1 -1
- package/build-types/popover/types.d.ts +18 -14
- package/build-types/popover/types.d.ts.map +1 -1
- package/build-types/radio-group/index.d.ts +10 -0
- package/build-types/radio-group/index.d.ts.map +1 -0
- package/build-types/radio-group/radio/index.d.ts +7 -0
- package/build-types/radio-group/radio/index.d.ts.map +1 -0
- package/build-types/{radio-context → radio-group/radio-context}/index.d.ts +0 -0
- package/build-types/radio-group/radio-context/index.d.ts.map +1 -0
- package/build-types/range-control/index.d.ts +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +2 -1
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/label.d.ts +1 -1
- package/build-types/scrollable/hook.d.ts +12 -12
- package/build-types/search-control/index.d.ts +2 -2
- package/build-types/search-control/stories/index.d.ts +4 -4
- package/build-types/select-control/stories/index.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/use-slot.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +12 -12
- package/build-types/spinner/index.d.ts +1 -1
- package/build-types/surface/hook.d.ts +12 -12
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/text/hook.d.ts +12 -12
- package/build-types/text-control/index.d.ts +2 -4
- package/build-types/text-control/index.d.ts.map +1 -1
- package/build-types/text-control/stories/index.d.ts.map +1 -1
- package/build-types/toggle-control/index.d.ts.map +1 -1
- package/build-types/toggle-control/types.d.ts +2 -1
- package/build-types/toggle-control/types.d.ts.map +1 -1
- package/build-types/toggle-group-control/stories/index.d.ts +2 -2
- package/build-types/toggle-group-control/stories/index.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts +6 -0
- package/build-types/toggle-group-control/toggle-group-control/as-button-group.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts +6 -0
- package/build-types/toggle-group-control/toggle-group-control/as-radio-group.d.ts.map +1 -0
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +2 -2
- package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts +4 -7
- package/build-types/toggle-group-control/toggle-group-control-option-base/styles.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control-option-icon/component.d.ts +1 -1
- package/build-types/toggle-group-control/types.d.ts +19 -14
- package/build-types/toggle-group-control/types.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +12 -12
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +12 -12
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +12 -12
- package/build-types/truncate/hook.d.ts +12 -12
- package/build-types/ui/context/context-system-provider.d.ts.map +1 -1
- package/build-types/ui/control-group/hook.d.ts +12 -12
- package/build-types/ui/control-label/component.d.ts +1 -1
- package/build-types/ui/control-label/hook.d.ts +12 -12
- package/build-types/ui/form-group/form-group.d.ts +4 -4
- package/build-types/ui/form-group/use-form-group.d.ts +28 -28
- package/build-types/unit-control/index.d.ts +2 -2
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -5
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +3 -3
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +0 -1
- package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
- package/build-types/utils/types.d.ts +0 -14
- package/build-types/utils/types.d.ts.map +1 -1
- package/build-types/v-stack/component.d.ts +2 -2
- package/build-types/v-stack/hook.d.ts +12 -12
- package/build-types/v-stack/stories/index.d.ts +2 -2
- package/package.json +17 -17
- package/src/angle-picker-control/index.js +1 -1
- package/src/angle-picker-control/stories/index.js +3 -0
- package/src/autocomplete/autocompleter-ui.js +29 -2
- package/src/autocomplete/test/index.js +89 -0
- package/src/border-box-control/border-box-control/README.md +8 -0
- package/src/border-box-control/border-box-control/component.tsx +64 -13
- package/src/border-box-control/border-box-control/hook.ts +7 -2
- package/src/border-box-control/border-box-control-linked-button/hook.ts +3 -6
- package/src/border-box-control/border-box-control-split-controls/component.tsx +3 -6
- package/src/border-box-control/border-box-control-split-controls/hook.ts +11 -14
- package/src/border-box-control/border-box-control-visualizer/hook.ts +4 -7
- package/src/border-box-control/stories/index.tsx +90 -0
- package/src/border-box-control/styles.ts +28 -22
- package/src/border-box-control/test/index.js +287 -122
- package/src/border-box-control/types.ts +12 -16
- package/src/border-control/border-control/README.md +8 -0
- package/src/border-control/border-control/component.tsx +4 -3
- package/src/border-control/border-control/hook.ts +10 -6
- package/src/border-control/border-control-dropdown/hook.ts +5 -7
- package/src/border-control/stories/index.tsx +12 -14
- package/src/border-control/styles.ts +20 -23
- package/src/border-control/test/index.js +139 -96
- package/src/border-control/types.ts +7 -9
- package/src/box-control/README.md +14 -0
- package/src/box-control/index.js +4 -0
- package/src/box-control/stories/index.js +8 -27
- package/src/button/README.md +2 -15
- package/src/button/stories/index.js +109 -178
- package/src/button/style.scss +17 -54
- package/src/card/stories/index.tsx +27 -31
- package/src/card/test/__snapshots__/index.tsx.snap +36 -35
- package/src/card/test/index.tsx +2 -6
- package/src/circular-option-picker/index.js +14 -20
- package/src/color-palette/README.md +51 -49
- package/src/color-palette/{index.js → index.tsx} +132 -51
- package/src/color-palette/stories/{index.js → index.tsx} +38 -27
- package/src/color-palette/style.scss +2 -2
- package/src/color-palette/{styles.js → styles.ts} +0 -0
- package/src/color-palette/test/__snapshots__/{index.js.snap → index.tsx.snap} +0 -0
- package/src/color-palette/test/{index.js → index.tsx} +1 -1
- package/src/color-palette/types.ts +93 -0
- package/src/color-picker/input-with-slider.tsx +1 -1
- package/src/custom-gradient-picker/gradient-bar/index.js +1 -3
- package/src/custom-select-control/README.md +14 -0
- package/src/custom-select-control/index.js +22 -15
- package/src/date-time/date-time/index.tsx +2 -0
- package/src/date-time/stories/date-time.tsx +4 -0
- package/src/date-time/time/index.tsx +4 -4
- package/src/dimension-control/test/__snapshots__/index.test.js.snap +4 -0
- package/src/disabled/README.md +2 -0
- package/src/disabled/index.tsx +8 -1
- package/src/disabled/test/index.tsx +0 -5
- package/src/external-link/index.tsx +14 -6
- package/src/external-link/test/index.tsx +106 -0
- package/src/focusable-iframe/index.js +0 -1
- package/src/font-size-picker/README.md +3 -3
- package/src/font-size-picker/index.tsx +152 -142
- package/src/font-size-picker/test/index.tsx +447 -174
- package/src/font-size-picker/test/utils.ts +1 -45
- package/src/font-size-picker/types.ts +1 -1
- package/src/font-size-picker/utils.ts +0 -22
- package/src/form-file-upload/README.md +1 -3
- package/src/form-file-upload/index.tsx +1 -0
- package/src/form-file-upload/types.ts +5 -4
- package/src/form-toggle/test/__snapshots__/index.tsx.snap +15 -13
- package/src/form-toggle/test/index.tsx +1 -1
- package/src/h-stack/test/__snapshots__/index.tsx.snap +36 -30
- package/src/h-stack/test/index.tsx +3 -3
- package/src/higher-order/with-filters/index.js +4 -9
- package/src/index.js +2 -1
- package/src/input-control/index.tsx +2 -0
- package/src/input-control/input-base.tsx +3 -3
- package/src/input-control/styles/input-control-styles.tsx +1 -0
- package/src/input-control/types.ts +4 -11
- package/src/isolated-event-container/index.tsx +32 -0
- package/src/item-group/styles.ts +1 -1
- package/src/item-group/test/__snapshots__/index.js.snap +90 -85
- package/src/item-group/test/index.js +7 -17
- package/src/navigator/navigator-screen/component.tsx +20 -3
- package/src/number-control/README.md +9 -4
- package/src/number-control/index.tsx +100 -33
- package/src/number-control/styles/number-control-styles.js +26 -1
- package/src/number-control/test/index.js +50 -0
- package/src/number-control/types.ts +12 -0
- package/src/popover/README.md +12 -7
- package/src/popover/index.tsx +20 -30
- package/src/popover/stories/index.tsx +29 -1
- package/src/popover/style.scss +9 -0
- package/src/popover/types.ts +18 -15
- package/src/radio-group/README.md +4 -0
- package/src/radio-group/index.js +6 -1
- package/src/{radio → radio-group/radio}/index.js +6 -1
- package/src/{radio-context → radio-group/radio-context}/index.js +0 -0
- package/src/radio-group/stories/index.js +11 -2
- package/src/sandbox/test/index.js +2 -2
- package/src/select-control/stories/index.tsx +9 -4
- package/src/slot-fill/bubbles-virtually/fill.js +5 -5
- package/src/slot-fill/bubbles-virtually/slot.js +10 -8
- package/src/slot-fill/bubbles-virtually/use-slot.js +15 -9
- package/src/slot-fill/fill.js +12 -2
- package/src/slot-fill/use-slot.js +3 -0
- package/src/snackbar/index.js +1 -1
- package/src/surface/test/__snapshots__/index.tsx.snap +58 -46
- package/src/surface/test/index.tsx +6 -16
- package/src/tab-panel/index.tsx +2 -3
- package/src/tab-panel/test/index.tsx +78 -1
- package/src/text/test/__snapshots__/index.tsx.snap +19 -15
- package/src/text/test/index.tsx +2 -2
- package/src/text-control/index.tsx +0 -2
- package/src/text-control/stories/index.tsx +5 -6
- package/src/toggle-control/README.md +6 -4
- package/src/toggle-control/index.tsx +13 -2
- package/src/toggle-control/types.ts +2 -4
- package/src/toggle-group-control/stories/index.tsx +4 -4
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +219 -160
- package/src/toggle-group-control/test/index.tsx +129 -2
- package/src/toggle-group-control/toggle-group-control/as-button-group.tsx +103 -0
- package/src/toggle-group-control/toggle-group-control/as-radio-group.tsx +99 -0
- package/src/toggle-group-control/toggle-group-control/component.tsx +29 -74
- package/src/toggle-group-control/toggle-group-control/styles.ts +12 -10
- package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +49 -25
- package/src/toggle-group-control/toggle-group-control-option-base/styles.ts +39 -19
- package/src/toggle-group-control/types.ts +75 -63
- package/src/toolbar-dropdown-menu/index.js +1 -1
- package/src/tools-panel/stories/index.js +0 -1
- package/src/tools-panel/stories/tools-panel-with-item-group-slot.js +0 -1
- package/src/tree-grid/test/__snapshots__/cell.js.snap +20 -18
- package/src/tree-grid/test/__snapshots__/roving-tab-index.js.snap +3 -1
- package/src/tree-grid/test/__snapshots__/row.js.snap +33 -29
- package/src/tree-grid/test/cell.js +1 -1
- package/src/tree-grid/test/roving-tab-index.js +1 -1
- package/src/tree-grid/test/row.js +2 -2
- package/src/ui/context/context-system-provider.js +5 -18
- package/src/ui/context/test/__snapshots__/context-system-provider.js.snap +23 -17
- package/src/ui/context/test/context-system-provider.js +3 -3
- package/src/ui/control-group/test/__snapshots__/index.js.snap +18 -16
- package/src/ui/control-group/test/index.js +1 -1
- package/src/ui/control-label/test/__snapshots__/index.js.snap +27 -21
- package/src/ui/control-label/test/index.js +3 -3
- package/src/ui/form-group/test/__snapshots__/index.js.snap +34 -30
- package/src/ui/form-group/test/index.js +2 -2
- package/src/ui/shortcut/test/__snapshots__/index.js.snap +1 -1
- package/src/ui/shortcut/test/index.js +1 -1
- package/src/ui/spinner/test/__snapshots__/index.js.snap +75 -73
- package/src/ui/spinner/test/index.js +3 -7
- package/src/unit-control/index.tsx +29 -30
- package/src/unit-control/styles/unit-control-styles.ts +6 -12
- package/src/unit-control/test/utils.ts +43 -0
- package/src/unit-control/types.ts +5 -6
- package/src/utils/config-values.js +0 -1
- package/src/utils/hooks/use-update-effect.js +5 -1
- package/src/utils/types.ts +0 -15
- package/src/v-stack/test/__snapshots__/index.tsx.snap +36 -30
- package/src/v-stack/test/index.tsx +3 -3
- package/src/view/test/__snapshots__/index.js.snap +34 -24
- package/src/view/test/index.js +5 -5
- package/tsconfig.json +0 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/radio/index.js.map +0 -1
- package/build/radio-context/index.js.map +0 -1
- package/build-module/radio/index.js.map +0 -1
- package/build-module/radio-context/index.js.map +0 -1
- package/build-types/radio-context/index.d.ts.map +0 -1
- package/src/border-box-control/stories/index.js +0 -106
- package/src/form-file-upload/stories/index.js +0 -51
- package/src/isolated-event-container/index.js +0 -28
- package/src/radio/stories/index.js +0 -20
|
@@ -8,15 +8,16 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
8
8
|
className: string;
|
|
9
9
|
justify: import("csstype").Property.JustifyContent | undefined;
|
|
10
10
|
children: import("react").ReactNode;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
title?: string | undefined;
|
|
14
|
-
hidden?: boolean | undefined;
|
|
11
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
12
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
15
13
|
color?: string | undefined;
|
|
16
14
|
translate?: "no" | "yes" | undefined;
|
|
15
|
+
hidden?: boolean | undefined;
|
|
16
|
+
style?: import("react").CSSProperties | undefined;
|
|
17
17
|
key?: import("react").Key | null | undefined;
|
|
18
|
+
slot?: string | undefined;
|
|
19
|
+
title?: string | undefined;
|
|
18
20
|
defaultChecked?: boolean | undefined;
|
|
19
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
20
21
|
suppressContentEditableWarning?: boolean | undefined;
|
|
21
22
|
suppressHydrationWarning?: boolean | undefined;
|
|
22
23
|
accessKey?: string | undefined;
|
|
@@ -50,27 +51,27 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
50
51
|
results?: number | undefined;
|
|
51
52
|
security?: string | undefined;
|
|
52
53
|
unselectable?: "on" | "off" | undefined;
|
|
53
|
-
inputMode?: "
|
|
54
|
+
inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
54
55
|
is?: string | undefined;
|
|
55
56
|
'aria-activedescendant'?: string | undefined;
|
|
56
57
|
'aria-atomic'?: (boolean | "false" | "true") | undefined;
|
|
57
|
-
'aria-autocomplete'?: "
|
|
58
|
+
'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined;
|
|
58
59
|
'aria-busy'?: (boolean | "false" | "true") | undefined;
|
|
59
60
|
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
60
61
|
'aria-colcount'?: number | undefined;
|
|
61
62
|
'aria-colindex'?: number | undefined;
|
|
62
63
|
'aria-colspan'?: number | undefined;
|
|
63
64
|
'aria-controls'?: string | undefined;
|
|
64
|
-
'aria-current'?: boolean | "
|
|
65
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
65
66
|
'aria-describedby'?: string | undefined;
|
|
66
67
|
'aria-details'?: string | undefined;
|
|
67
68
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
68
|
-
'aria-dropeffect'?: "
|
|
69
|
+
'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
69
70
|
'aria-errormessage'?: string | undefined;
|
|
70
71
|
'aria-expanded'?: (boolean | "false" | "true") | undefined;
|
|
71
72
|
'aria-flowto'?: string | undefined;
|
|
72
73
|
'aria-grabbed'?: (boolean | "false" | "true") | undefined;
|
|
73
|
-
'aria-haspopup'?: boolean | "
|
|
74
|
+
'aria-haspopup'?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
74
75
|
'aria-hidden'?: (boolean | "false" | "true") | undefined;
|
|
75
76
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
76
77
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -87,7 +88,7 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
87
88
|
'aria-posinset'?: number | undefined;
|
|
88
89
|
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
89
90
|
'aria-readonly'?: (boolean | "false" | "true") | undefined;
|
|
90
|
-
'aria-relevant'?: "
|
|
91
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
91
92
|
'aria-required'?: (boolean | "false" | "true") | undefined;
|
|
92
93
|
'aria-roledescription'?: string | undefined;
|
|
93
94
|
'aria-rowcount'?: number | undefined;
|
|
@@ -119,7 +120,6 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
119
120
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
120
121
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
121
122
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
122
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
123
123
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
124
124
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
125
125
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -7,15 +7,16 @@ import type { HeaderProps } from '../types';
|
|
|
7
7
|
export declare function useCardHeader(props: WordPressComponentProps<HeaderProps, 'div'>): {
|
|
8
8
|
className: string;
|
|
9
9
|
children: import("react").ReactNode;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
10
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
11
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14
12
|
color?: string | undefined;
|
|
15
13
|
translate?: "no" | "yes" | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
|
+
style?: import("react").CSSProperties | undefined;
|
|
16
16
|
key?: import("react").Key | null | undefined;
|
|
17
|
+
slot?: string | undefined;
|
|
18
|
+
title?: string | undefined;
|
|
17
19
|
defaultChecked?: boolean | undefined;
|
|
18
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
19
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
20
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
21
22
|
accessKey?: string | undefined;
|
|
@@ -49,27 +50,27 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
49
50
|
results?: number | undefined;
|
|
50
51
|
security?: string | undefined;
|
|
51
52
|
unselectable?: "on" | "off" | undefined;
|
|
52
|
-
inputMode?: "
|
|
53
|
+
inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
53
54
|
is?: string | undefined;
|
|
54
55
|
'aria-activedescendant'?: string | undefined;
|
|
55
56
|
'aria-atomic'?: (boolean | "false" | "true") | undefined;
|
|
56
|
-
'aria-autocomplete'?: "
|
|
57
|
+
'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined;
|
|
57
58
|
'aria-busy'?: (boolean | "false" | "true") | undefined;
|
|
58
59
|
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
59
60
|
'aria-colcount'?: number | undefined;
|
|
60
61
|
'aria-colindex'?: number | undefined;
|
|
61
62
|
'aria-colspan'?: number | undefined;
|
|
62
63
|
'aria-controls'?: string | undefined;
|
|
63
|
-
'aria-current'?: boolean | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
64
65
|
'aria-describedby'?: string | undefined;
|
|
65
66
|
'aria-details'?: string | undefined;
|
|
66
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
67
|
-
'aria-dropeffect'?: "
|
|
68
|
+
'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
68
69
|
'aria-errormessage'?: string | undefined;
|
|
69
70
|
'aria-expanded'?: (boolean | "false" | "true") | undefined;
|
|
70
71
|
'aria-flowto'?: string | undefined;
|
|
71
72
|
'aria-grabbed'?: (boolean | "false" | "true") | undefined;
|
|
72
|
-
'aria-haspopup'?: boolean | "
|
|
73
|
+
'aria-haspopup'?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
73
74
|
'aria-hidden'?: (boolean | "false" | "true") | undefined;
|
|
74
75
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
75
76
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -86,7 +87,7 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
86
87
|
'aria-posinset'?: number | undefined;
|
|
87
88
|
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
88
89
|
'aria-readonly'?: (boolean | "false" | "true") | undefined;
|
|
89
|
-
'aria-relevant'?: "
|
|
90
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
90
91
|
'aria-required'?: (boolean | "false" | "true") | undefined;
|
|
91
92
|
'aria-roledescription'?: string | undefined;
|
|
92
93
|
'aria-rowcount'?: number | undefined;
|
|
@@ -118,7 +119,6 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
118
119
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
119
120
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
120
121
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
121
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
122
122
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
123
123
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
124
124
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -7,15 +7,16 @@ import type { MediaProps } from '../types';
|
|
|
7
7
|
export declare function useCardMedia(props: WordPressComponentProps<MediaProps, 'div'>): {
|
|
8
8
|
className: string;
|
|
9
9
|
children: import("react").ReactNode;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
hidden?: boolean | undefined;
|
|
10
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
11
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14
12
|
color?: string | undefined;
|
|
15
13
|
translate?: "no" | "yes" | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
15
|
+
style?: import("react").CSSProperties | undefined;
|
|
16
16
|
key?: import("react").Key | null | undefined;
|
|
17
|
+
slot?: string | undefined;
|
|
18
|
+
title?: string | undefined;
|
|
17
19
|
defaultChecked?: boolean | undefined;
|
|
18
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
19
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
20
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
21
22
|
accessKey?: string | undefined;
|
|
@@ -49,27 +50,27 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
49
50
|
results?: number | undefined;
|
|
50
51
|
security?: string | undefined;
|
|
51
52
|
unselectable?: "on" | "off" | undefined;
|
|
52
|
-
inputMode?: "
|
|
53
|
+
inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
53
54
|
is?: string | undefined;
|
|
54
55
|
'aria-activedescendant'?: string | undefined;
|
|
55
56
|
'aria-atomic'?: (boolean | "false" | "true") | undefined;
|
|
56
|
-
'aria-autocomplete'?: "
|
|
57
|
+
'aria-autocomplete'?: "both" | "none" | "inline" | "list" | undefined;
|
|
57
58
|
'aria-busy'?: (boolean | "false" | "true") | undefined;
|
|
58
59
|
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
59
60
|
'aria-colcount'?: number | undefined;
|
|
60
61
|
'aria-colindex'?: number | undefined;
|
|
61
62
|
'aria-colspan'?: number | undefined;
|
|
62
63
|
'aria-controls'?: string | undefined;
|
|
63
|
-
'aria-current'?: boolean | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
64
65
|
'aria-describedby'?: string | undefined;
|
|
65
66
|
'aria-details'?: string | undefined;
|
|
66
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
67
|
-
'aria-dropeffect'?: "
|
|
68
|
+
'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup" | undefined;
|
|
68
69
|
'aria-errormessage'?: string | undefined;
|
|
69
70
|
'aria-expanded'?: (boolean | "false" | "true") | undefined;
|
|
70
71
|
'aria-flowto'?: string | undefined;
|
|
71
72
|
'aria-grabbed'?: (boolean | "false" | "true") | undefined;
|
|
72
|
-
'aria-haspopup'?: boolean | "
|
|
73
|
+
'aria-haspopup'?: boolean | "grid" | "listbox" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
73
74
|
'aria-hidden'?: (boolean | "false" | "true") | undefined;
|
|
74
75
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
75
76
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -86,7 +87,7 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
86
87
|
'aria-posinset'?: number | undefined;
|
|
87
88
|
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
88
89
|
'aria-readonly'?: (boolean | "false" | "true") | undefined;
|
|
89
|
-
'aria-relevant'?: "
|
|
90
|
+
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
90
91
|
'aria-required'?: (boolean | "false" | "true") | undefined;
|
|
91
92
|
'aria-roledescription'?: string | undefined;
|
|
92
93
|
'aria-rowcount'?: number | undefined;
|
|
@@ -118,7 +119,6 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
118
119
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
119
120
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
120
121
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
121
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
122
122
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
123
123
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
124
124
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/card/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EACN,IAAI,EAMJ,MAAM,IAAI,CAAC;AAKZ,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,IAAI,CAkBrC,CAAC;AAEF,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/card/stories/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtE;;GAEG;AACH,OAAO,EACN,IAAI,EAMJ,MAAM,IAAI,CAAC;AAKZ,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,IAAI,CAkBrC,CAAC;AAEF,eAAe,IAAI,CAAC;AA8BpB,eAAO,MAAM,OAAO,EAAE,cAAc,CAAE,OAAO,IAAI,CAAwB,CAAC"}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
|
-
declare function CircularOptionPicker(
|
|
2
|
-
actions: any;
|
|
3
|
-
className: any;
|
|
4
|
-
options: any;
|
|
5
|
-
children: any;
|
|
6
|
-
}): JSX.Element;
|
|
1
|
+
declare function CircularOptionPicker(props: any): JSX.Element;
|
|
7
2
|
declare namespace CircularOptionPicker {
|
|
8
3
|
export { Option };
|
|
9
4
|
export { ButtonAction };
|
|
10
5
|
export { DropdownLinkAction };
|
|
11
6
|
}
|
|
12
7
|
export default CircularOptionPicker;
|
|
13
|
-
declare function Option(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
isSelected: any;
|
|
17
|
-
selectedIconProps: any;
|
|
18
|
-
tooltipText: any;
|
|
19
|
-
}): JSX.Element;
|
|
20
|
-
declare function ButtonAction({ className, children, ...additionalProps }: {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
className: any;
|
|
23
|
-
children: any;
|
|
24
|
-
}): JSX.Element;
|
|
25
|
-
declare function DropdownLinkAction({ buttonProps, className, dropdownProps, linkText, }: {
|
|
26
|
-
buttonProps: any;
|
|
27
|
-
className: any;
|
|
28
|
-
dropdownProps: any;
|
|
29
|
-
linkText: any;
|
|
30
|
-
}): JSX.Element;
|
|
8
|
+
declare function Option(props: any): JSX.Element;
|
|
9
|
+
declare function ButtonAction(props: any): JSX.Element;
|
|
10
|
+
declare function DropdownLinkAction(props: any): JSX.Element;
|
|
31
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/circular-option-picker/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/circular-option-picker/index.js"],"names":[],"mappings":"AA+FA,+DAoBC;;;;;;;AAjGD,iDAmCC;AA0BD,uDAcC;AAtCD,6DAsBC"}
|
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColorPaletteProps, CustomColorPickerDropdownProps } from './types';
|
|
3
|
+
export declare function CustomColorPickerDropdown({ isRenderedInSidebar, popoverProps: receivedPopoverProps, ...props }: CustomColorPickerDropdownProps): JSX.Element;
|
|
4
|
+
export declare const extractColorNameFromCurrentValue: (currentValue?: ColorPaletteProps['value'], colors?: ColorPaletteProps['colors'], showMultiplePalettes?: ColorPaletteProps['__experimentalHasMultipleOrigins']) => string;
|
|
5
|
+
export declare const showTransparentBackground: (currentValue?: string | undefined) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Allows the user to pick a color from a list of pre-defined color entries.
|
|
8
|
+
*
|
|
9
|
+
* ```jsx
|
|
10
|
+
* import { ColorPalette } from '@wordpress/components';
|
|
11
|
+
* import { useState } from '@wordpress/element';
|
|
12
|
+
*
|
|
13
|
+
* const MyColorPalette = () => {
|
|
14
|
+
* const [ color, setColor ] = useState ( '#f00' )
|
|
15
|
+
* const colors = [
|
|
16
|
+
* { name: 'red', color: '#f00' },
|
|
17
|
+
* { name: 'white', color: '#fff' },
|
|
18
|
+
* { name: 'blue', color: '#00f' },
|
|
19
|
+
* ];
|
|
20
|
+
* return (
|
|
21
|
+
* <ColorPalette
|
|
22
|
+
* colors={ colors }
|
|
23
|
+
* value={ color }
|
|
24
|
+
* onChange={ ( color ) => setColor( color ) }
|
|
25
|
+
* />
|
|
26
|
+
* );
|
|
27
|
+
* } );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const ColorPalette: import("react").ForwardRefExoticComponent<ColorPaletteProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as" | keyof ColorPaletteProps> & {
|
|
31
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
32
|
+
} & import("react").RefAttributes<any>>;
|
|
33
|
+
export default ColorPalette;
|
|
19
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color-palette/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color-palette/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAEX,iBAAiB,EACjB,8BAA8B,EAI9B,MAAM,SAAS,CAAC;AAqGjB,wBAAgB,yBAAyB,CAAE,EAC1C,mBAAmB,EACnB,YAAY,EAAE,oBAAoB,EAClC,GAAG,KAAK,EACR,EAAE,8BAA8B,eA4BhC;AAED,eAAO,MAAM,gCAAgC,kBAC7B,iBAAiB,CAAE,OAAO,CAAE,WACnC,iBAAiB,CAAE,QAAQ,CAAE,yBACf,iBAAiB,CAAE,kCAAkC,CAAE,WA8B7E,CAAC;AAEF,eAAO,MAAM,yBAAyB,gDAKrC,CAAC;AAwJF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,YAAY;;uCAAwC,CAAC;AAElE,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
/**
|
|
4
|
+
* Internal dependencies
|
|
5
|
+
*/
|
|
6
|
+
import ColorPalette from '..';
|
|
7
|
+
declare const meta: ComponentMeta<typeof ColorPalette>;
|
|
8
|
+
export default meta;
|
|
9
|
+
export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<import("../types").ColorPaletteProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as" | keyof import("../types").ColorPaletteProps> & {
|
|
10
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
11
|
+
} & import("react").RefAttributes<any>>>;
|
|
12
|
+
/**
|
|
13
|
+
* When setting the `__experimentalHasMultipleOrigins` prop to `true`,
|
|
14
|
+
* the `colors` prop is expected to be an array of color palettes, rather
|
|
15
|
+
* than an array of color objects.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MultipleOrigins: ComponentStory<import("react").ForwardRefExoticComponent<import("../types").ColorPaletteProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as" | keyof import("../types").ColorPaletteProps> & {
|
|
18
|
+
as?: keyof JSX.IntrinsicElements | undefined;
|
|
19
|
+
} & import("react").RefAttributes<any>>>;
|
|
20
|
+
export declare const CSSVariables: ComponentStory<typeof ColorPalette>;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-palette/stories/index.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOtE;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAK9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAE,OAAO,YAAY,CAmB7C,CAAC;AACF,eAAe,IAAI,CAAC;AA2BpB,eAAO,MAAM,OAAO;;wCAAsB,CAAC;AAS3C;;;;GAIG;AACH,eAAO,MAAM,eAAe;;wCAAsB,CAAC;AAuBnD,eAAO,MAAM,YAAY,EAAE,cAAc,CAAE,OAAO,YAAY,CAc7D,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ColorHeading: import("@emotion/styled").StyledComponent<Omit<import("../text/types").Props, "size"> & {
|
|
2
3
|
level?: import("../heading/types").HeadingSize | undefined;
|
|
3
|
-
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, "children" | "
|
|
4
|
+
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, "children" | "color" | "display" | "letterSpacing" | "lineHeight" | "ellipsis" | "weight" | "as" | keyof import("react").RefAttributes<any> | "variant" | "isBlock" | "align" | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "highlightWords" | "level"> & {
|
|
4
5
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
5
6
|
} & {
|
|
6
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-palette/styles.
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-palette/styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,YAAY;;;;;;UAQxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/color-palette/test/index.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
5
|
+
declare type OnColorChange = (newColor?: string) => void;
|
|
6
|
+
export declare type ColorObject = {
|
|
7
|
+
name: string;
|
|
8
|
+
color: NonNullable<CSSProperties['color']>;
|
|
9
|
+
};
|
|
10
|
+
export declare type PaletteObject = {
|
|
11
|
+
name: string;
|
|
12
|
+
colors: ColorObject[];
|
|
13
|
+
};
|
|
14
|
+
declare type PaletteProps = {
|
|
15
|
+
className?: string;
|
|
16
|
+
clearColor: () => void;
|
|
17
|
+
onChange: OnColorChange;
|
|
18
|
+
value?: string;
|
|
19
|
+
actions?: ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export declare type SinglePaletteProps = PaletteProps & {
|
|
22
|
+
colors: ColorObject[];
|
|
23
|
+
};
|
|
24
|
+
export declare type MultiplePalettesProps = PaletteProps & {
|
|
25
|
+
colors: PaletteObject[];
|
|
26
|
+
};
|
|
27
|
+
export declare type CustomColorPickerDropdownProps = {
|
|
28
|
+
isRenderedInSidebar: boolean;
|
|
29
|
+
renderContent: () => ReactNode;
|
|
30
|
+
popoverProps?: string[];
|
|
31
|
+
renderToggle: (props: {
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
onToggle: MouseEventHandler<HTMLButtonElement>;
|
|
34
|
+
}) => ReactNode;
|
|
35
|
+
};
|
|
36
|
+
export declare type ColorPaletteProps = {
|
|
37
|
+
/**
|
|
38
|
+
* Whether the palette should have a clearing button.
|
|
39
|
+
*
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
clearable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Array with the colors to be shown. When displaying multiple color palettes
|
|
45
|
+
* to choose from, the format of the array changes from an array of colors
|
|
46
|
+
* objects, to an array of color palettes.
|
|
47
|
+
*
|
|
48
|
+
* @default []
|
|
49
|
+
*/
|
|
50
|
+
colors?: (PaletteObject | ColorObject)[];
|
|
51
|
+
/**
|
|
52
|
+
* Whether to allow the user to pick a custom color on top of the predefined
|
|
53
|
+
* choices (defined via the `colors` prop).
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
disableCustomColors?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the color picker should display the alpha channel
|
|
60
|
+
* both in the bottom inputs as well as in the color picker itself.
|
|
61
|
+
*/
|
|
62
|
+
enableAlpha?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Callback called when a color is selected.
|
|
65
|
+
*/
|
|
66
|
+
onChange: OnColorChange;
|
|
67
|
+
/**
|
|
68
|
+
* Currently active value.
|
|
69
|
+
*/
|
|
70
|
+
value?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the colors prop is an array of color palettes,
|
|
73
|
+
* rather than an array of color objects.
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
__experimentalHasMultipleOrigins?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this is rendered in the sidebar.
|
|
80
|
+
*
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
__experimentalIsRenderedInSidebar?: boolean;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/color-palette/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzE,aAAK,aAAa,GAAG,CAAE,QAAQ,CAAC,EAAE,MAAM,KAAM,IAAI,CAAC;AAEnD,oBAAY,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,CAAE,aAAa,CAAE,OAAO,CAAE,CAAE,CAAC;CAC/C,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF,aAAK,YAAY,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,oBAAY,kBAAkB,GAAG,YAAY,GAAG;IAC/C,MAAM,EAAE,WAAW,EAAE,CAAC;CACtB,CAAC;AAEF,oBAAY,qBAAqB,GAAG,YAAY,GAAG;IAClD,MAAM,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAGF,oBAAY,8BAA8B,GAAG;IAC5C,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,CAAE,KAAK,EAAE;QACtB,MAAM,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,iBAAiB,CAAE,iBAAiB,CAAE,CAAC;KACjD,KAAM,SAAS,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,CAAE,aAAa,GAAG,WAAW,CAAE,EAAE,CAAC;IAC3C;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C;;;;OAIG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC5C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const NumberControlWrapper: import("@emotion/styled").StyledComponent<Omit<import("../input-control/types").InputControlProps, "type" | "value" | "step" | "max" | "min" | "required" | "isDragEnabled"> & {
|
|
3
3
|
hideHTMLArrows?: boolean | undefined;
|
|
4
|
+
spinControls?: "none" | "custom" | "native" | undefined;
|
|
4
5
|
isDragEnabled?: boolean | undefined;
|
|
5
6
|
isShiftStepEnabled?: boolean | undefined;
|
|
6
7
|
max?: number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const NumberControlWrapper: import("@emotion/styled").StyledCompo
|
|
|
10
11
|
step?: string | number | undefined;
|
|
11
12
|
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
12
13
|
value?: string | number | undefined;
|
|
13
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "children" | "
|
|
14
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "children" | "defaultValue" | "onChange" | "value" | "name" | "color" | "height" | "translate" | "width" | "hidden" | "size" | "style" | "multiple" | "disabled" | "key" | "form" | "label" | "slot" | "title" | "pattern" | "as" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "onMouseLeave" | "onMouseMove" | "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" | "list" | "hideLabelFromVision" | "step" | "max" | "min" | "crossOrigin" | "suffix" | "__next36pxDefaultSize" | "__unstableInputWidth" | "labelPosition" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "readOnly" | "required" | "src" | "dragDirection" | "dragThreshold" | "isDragEnabled" | "isPressEnterToChange" | "onValidate" | "__unstableStateReducer" | "hideHTMLArrows" | "spinControls" | "isShiftStepEnabled" | "shiftStep"> & import("react").RefAttributes<any> & {
|
|
14
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
16
|
}, {}, {}>;
|
|
16
17
|
export declare const SelectControl: import("@emotion/styled").StyledComponent<import("../select-control/types").SelectControlProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "key" | keyof import("react").SelectHTMLAttributes<HTMLSelectElement>>, "as" | keyof import("../select-control/types").SelectControlProps> & import("react").RefAttributes<HTMLSelectElement> & {
|
|
@@ -47,7 +48,7 @@ export declare const RangeControl: import("@emotion/styled").StyledComponent<Pic
|
|
|
47
48
|
trackColor?: import("csstype").Property.Color | undefined;
|
|
48
49
|
type?: "stepper" | undefined;
|
|
49
50
|
withInputField?: boolean | undefined;
|
|
50
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "children" | "
|
|
51
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "children" | "onChange" | "color" | "help" | "icon" | "disabled" | "label" | "as" | "onFocus" | "onBlur" | "onMouseLeave" | "onMouseMove" | "__nextHasNoMarginBottom" | "hideLabelFromVision" | "step" | "isShiftStepEnabled" | "shiftStep" | "showTooltip" | "marks" | "railColor" | "trackColor" | keyof import("../range-control/types").NumericProps | "renderTooltipContent" | "afterIcon" | "allowReset" | "beforeIcon" | "currentInput" | "initialPosition" | "resetFallbackValue" | "separatorType" | "withInputField"> & import("react").RefAttributes<HTMLInputElement> & {
|
|
51
52
|
theme?: import("@emotion/react").Theme | undefined;
|
|
52
53
|
}, {}, {}>;
|
|
53
54
|
export declare const AuxiliaryColorArtefactWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -55,9 +56,9 @@ export declare const AuxiliaryColorArtefactWrapper: import("@emotion/styled").St
|
|
|
55
56
|
as?: import("react").ElementType<any> | undefined;
|
|
56
57
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
57
58
|
export declare const AuxiliaryColorArtefactHStackHeader: import("@emotion/styled").StyledComponent<Omit<import("../flex/types").FlexProps, "gap" | "align"> & {
|
|
58
|
-
alignment?: "top" | "bottom" | "left" | "right" | "center" | (string & {}) | "-moz-initial" | "inherit" | "
|
|
59
|
+
alignment?: "top" | "bottom" | "left" | "right" | "center" | "initial" | (string & {}) | "-moz-initial" | "inherit" | "revert" | "unset" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "edge" | undefined;
|
|
59
60
|
spacing?: import("csstype").Property.Width<string | number> | undefined;
|
|
60
|
-
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "
|
|
61
|
+
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "direction" | "wrap" | "expanded" | "justify" | "as" | keyof import("react").RefAttributes<any> | "spacing" | "isReversed" | "alignment"> & {
|
|
61
62
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
62
63
|
} & {
|
|
63
64
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":";AAuBA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/color-picker/styles.ts"],"names":[],"mappings":";AAuBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;UAIhC,CAAC;AAEF,eAAO,MAAM,aAAa;;UAMzB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOxB,CAAC;AASF,eAAO,MAAM,6BAA6B;;;yGAKzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;UAG9C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;UAK7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;yGAiD3B,CAAC;AAEF,eAAO,MAAM,UAAU;;UAStB,CAAC"}
|
|
@@ -8,12 +8,12 @@ declare const _default: import("../ui/context").WordPressComponent<import("react
|
|
|
8
8
|
} & {
|
|
9
9
|
onCancel: (event: DialogInputEvent) => void;
|
|
10
10
|
isOpen: boolean;
|
|
11
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof {
|
|
11
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | "isOpen" | keyof {
|
|
12
12
|
children: import("react").ReactNode;
|
|
13
13
|
onConfirm: (event: DialogInputEvent) => void;
|
|
14
14
|
confirmButtonText?: string | undefined;
|
|
15
15
|
cancelButtonText?: string | undefined;
|
|
16
|
-
} | "onCancel"
|
|
16
|
+
} | "onCancel"> & import("react").RefAttributes<any>, boolean> | import("../ui/context").WordPressComponent<import("react").ElementType<any>, {
|
|
17
17
|
children: import("react").ReactNode;
|
|
18
18
|
onConfirm: (event: DialogInputEvent) => void;
|
|
19
19
|
confirmButtonText?: string | undefined;
|
|
@@ -21,11 +21,11 @@ declare const _default: import("../ui/context").WordPressComponent<import("react
|
|
|
21
21
|
} & {
|
|
22
22
|
onCancel?: ((event: DialogInputEvent) => void) | undefined;
|
|
23
23
|
isOpen?: undefined;
|
|
24
|
-
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | keyof {
|
|
24
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "as" | "isOpen" | keyof {
|
|
25
25
|
children: import("react").ReactNode;
|
|
26
26
|
onConfirm: (event: DialogInputEvent) => void;
|
|
27
27
|
confirmButtonText?: string | undefined;
|
|
28
28
|
cancelButtonText?: string | undefined;
|
|
29
|
-
} | "onCancel"
|
|
29
|
+
} | "onCancel"> & import("react").RefAttributes<any>, boolean>;
|
|
30
30
|
export default _default;
|
|
31
31
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
export default function CustomSelectControl(
|
|
2
|
-
__next36pxDefaultSize?: boolean | undefined;
|
|
3
|
-
__nextUnconstrainedWidth?: boolean | undefined;
|
|
4
|
-
className: any;
|
|
5
|
-
hideLabelFromVision: any;
|
|
6
|
-
label: any;
|
|
7
|
-
describedBy: any;
|
|
8
|
-
options: any;
|
|
9
|
-
onChange: any;
|
|
10
|
-
size?: string | undefined;
|
|
11
|
-
value: any;
|
|
12
|
-
}): JSX.Element;
|
|
1
|
+
export default function CustomSelectControl(props: any): JSX.Element;
|
|
13
2
|
//# sourceMappingURL=index.d.ts.map
|