@wordpress/components 39.0.0 → 40.1.1-next.v.202608281122.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 +79 -0
- package/CONTRIBUTING.md +7 -8
- package/build/base-control/styles/base-control-styles.cjs +150 -45
- package/build/base-control/styles/base-control-styles.cjs.map +4 -4
- package/build/border-box-control/border-box-control/hook.cjs +88 -23
- package/build/border-box-control/border-box-control/hook.cjs.map +3 -3
- package/build/border-box-control/border-box-control-linked-button/hook.cjs +87 -8
- package/build/border-box-control/border-box-control-linked-button/hook.cjs.map +4 -4
- package/build/border-box-control/border-box-control-split-controls/hook.cjs +89 -16
- package/build/border-box-control/border-box-control-split-controls/hook.cjs.map +4 -4
- package/build/border-box-control/border-box-control-visualizer/hook.cjs +108 -8
- package/build/border-box-control/border-box-control-visualizer/hook.cjs.map +4 -4
- package/build/border-control/border-control/hook.cjs +89 -14
- package/build/border-control/border-control/hook.cjs.map +4 -4
- package/build/border-control/border-control-dropdown/component.cjs +2 -4
- package/build/border-control/border-control-dropdown/component.cjs.map +2 -2
- package/build/border-control/border-control-dropdown/hook.cjs +103 -27
- package/build/border-control/border-control-dropdown/hook.cjs.map +4 -4
- package/build/box-control/box-input-control.cjs +102 -10
- package/build/box-control/box-input-control.cjs.map +4 -4
- package/build/box-control/index.cjs +95 -5
- package/build/box-control/index.cjs.map +4 -4
- package/build/button/index.cjs +10 -3
- package/build/button/index.cjs.map +2 -2
- package/build/card/card-body/hook.cjs +4 -2
- package/build/card/card-body/hook.cjs.map +2 -2
- package/build/card/styles.cjs +31 -16
- package/build/card/styles.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker-option.cjs +4 -5
- package/build/circular-option-picker/circular-option-picker-option.cjs.map +2 -2
- package/build/circular-option-picker/circular-option-picker.cjs +24 -6
- package/build/circular-option-picker/circular-option-picker.cjs.map +2 -2
- package/build/circular-option-picker/index.cjs +6 -2
- package/build/circular-option-picker/index.cjs.map +2 -2
- package/build/circular-option-picker/utils.cjs +38 -8
- package/build/circular-option-picker/utils.cjs.map +3 -3
- package/build/color-palette/index.cjs +103 -10
- package/build/color-palette/index.cjs.map +3 -3
- package/build/combobox-control/index.cjs +87 -2
- package/build/combobox-control/index.cjs.map +3 -3
- package/build/confirm-dialog/component.cjs +5 -1
- package/build/confirm-dialog/component.cjs.map +2 -2
- package/build/content-editable-control/index.cjs +1 -1
- package/build/content-editable-control/index.cjs.map +2 -2
- package/build/context/context-system-provider.cjs +1 -1
- package/build/context/context-system-provider.cjs.map +3 -3
- package/build/custom-gradient-picker/gradient-bar/control-points.cjs +14 -2
- package/build/custom-gradient-picker/gradient-bar/control-points.cjs.map +2 -2
- package/build/custom-gradient-picker/gradient-bar/index.cjs +2 -0
- package/build/custom-gradient-picker/gradient-bar/index.cjs.map +2 -2
- package/build/dropdown/dropdown-content-wrapper.cjs +102 -3
- package/build/dropdown/dropdown-content-wrapper.cjs.map +4 -4
- package/build/duotone-picker/custom-duotone-bar.cjs +1 -0
- package/build/duotone-picker/custom-duotone-bar.cjs.map +2 -2
- package/build/duotone-picker/duotone-picker.cjs +23 -14
- package/build/duotone-picker/duotone-picker.cjs.map +2 -2
- package/build/focal-point-picker/index.cjs +5 -3
- package/build/focal-point-picker/index.cjs.map +2 -2
- package/build/gradient-picker/index.cjs +105 -11
- package/build/gradient-picker/index.cjs.map +3 -3
- package/build/input-control/input-field.cjs +1 -0
- package/build/input-control/input-field.cjs.map +2 -2
- package/build/input-control/styles/input-control-styles.cjs +22 -22
- package/build/input-control/styles/input-control-styles.cjs.map +2 -2
- package/build/modal/index.cjs +1 -0
- package/build/modal/index.cjs.map +2 -2
- package/build/palette-edit/index.cjs +208 -33
- package/build/palette-edit/index.cjs.map +3 -3
- package/build/private-apis.cjs +1 -6
- package/build/private-apis.cjs.map +2 -2
- package/build/progress-bar/index.cjs +95 -7
- package/build/progress-bar/index.cjs.map +4 -4
- package/build/radio-control/index.cjs +1 -0
- package/build/radio-control/index.cjs.map +2 -2
- package/build/resizable-box/resize-tooltip/index.cjs +91 -4
- package/build/resizable-box/resize-tooltip/index.cjs.map +3 -3
- package/build/resizable-box/resize-tooltip/label.cjs +103 -6
- package/build/resizable-box/resize-tooltip/label.cjs.map +4 -4
- package/build/scrollable/hook.cjs +93 -6
- package/build/scrollable/hook.cjs.map +4 -4
- package/build/snackbar/index.cjs +8 -5
- package/build/snackbar/index.cjs.map +2 -2
- package/build/textarea-control/index.cjs +87 -3
- package/build/textarea-control/index.cjs.map +3 -3
- package/build/toggle-group-control/toggle-group-control/component.cjs +1 -1
- package/build/toggle-group-control/toggle-group-control/component.cjs.map +2 -2
- package/build/toggle-group-control/toggle-group-control-option-base/component.cjs +1 -1
- package/build/toggle-group-control/toggle-group-control-option-base/component.cjs.map +2 -2
- package/build/tools-panel/tools-panel-item/hook.cjs +2 -2
- package/build/tools-panel/tools-panel-item/hook.cjs.map +2 -2
- package/build/utils/config-values.cjs +0 -3
- package/build/utils/config-values.cjs.map +2 -2
- package/build/validated-form-controls/components/content-editable-control.cjs +3 -2
- package/build/validated-form-controls/components/content-editable-control.cjs.map +2 -2
- package/build/validated-form-controls/components/custom-select-control.cjs +3 -2
- package/build/validated-form-controls/components/custom-select-control.cjs.map +2 -2
- package/build/validated-form-controls/components/index.cjs +1 -9
- package/build/validated-form-controls/components/index.cjs.map +2 -2
- package/build/validated-form-controls/components/input-control.cjs +9 -2
- package/build/validated-form-controls/components/input-control.cjs.map +3 -3
- package/build/validated-form-controls/components/range-control.cjs +3 -2
- package/build/validated-form-controls/components/range-control.cjs.map +2 -2
- package/build/validated-form-controls/components/textarea-control.cjs +9 -2
- package/build/validated-form-controls/components/textarea-control.cjs.map +3 -3
- package/build/validated-form-controls/index.cjs +1 -3
- package/build/validated-form-controls/index.cjs.map +2 -2
- package/build/z-stack/component.cjs +105 -7
- package/build/z-stack/component.cjs.map +4 -4
- package/build-module/base-control/styles/base-control-styles.mjs +151 -46
- package/build-module/base-control/styles/base-control-styles.mjs.map +3 -3
- package/build-module/border-box-control/border-box-control/hook.mjs +89 -14
- package/build-module/border-box-control/border-box-control/hook.mjs.map +3 -3
- package/build-module/border-box-control/border-box-control-linked-button/hook.mjs +87 -8
- package/build-module/border-box-control/border-box-control-linked-button/hook.mjs.map +3 -3
- package/build-module/border-box-control/border-box-control-split-controls/hook.mjs +89 -16
- package/build-module/border-box-control/border-box-control-split-controls/hook.mjs.map +3 -3
- package/build-module/border-box-control/border-box-control-visualizer/hook.mjs +108 -8
- package/build-module/border-box-control/border-box-control-visualizer/hook.mjs.map +3 -3
- package/build-module/border-control/border-control/hook.mjs +90 -15
- package/build-module/border-control/border-control/hook.mjs.map +3 -3
- package/build-module/border-control/border-control-dropdown/component.mjs +2 -4
- package/build-module/border-control/border-control-dropdown/component.mjs.map +2 -2
- package/build-module/border-control/border-control-dropdown/hook.mjs +103 -27
- package/build-module/border-control/border-control-dropdown/hook.mjs.map +3 -3
- package/build-module/box-control/box-input-control.mjs +102 -10
- package/build-module/box-control/box-input-control.mjs.map +3 -3
- package/build-module/box-control/index.mjs +95 -5
- package/build-module/box-control/index.mjs.map +3 -3
- package/build-module/button/index.mjs +11 -4
- package/build-module/button/index.mjs.map +2 -2
- package/build-module/card/card-body/hook.mjs +4 -2
- package/build-module/card/card-body/hook.mjs.map +2 -2
- package/build-module/card/styles.mjs +30 -16
- package/build-module/card/styles.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker-option.mjs +4 -5
- package/build-module/circular-option-picker/circular-option-picker-option.mjs.map +2 -2
- package/build-module/circular-option-picker/circular-option-picker.mjs +24 -6
- package/build-module/circular-option-picker/circular-option-picker.mjs.map +2 -2
- package/build-module/circular-option-picker/index.mjs +4 -2
- package/build-module/circular-option-picker/index.mjs.map +2 -2
- package/build-module/circular-option-picker/utils.mjs +25 -7
- package/build-module/circular-option-picker/utils.mjs.map +2 -2
- package/build-module/color-palette/index.mjs +104 -11
- package/build-module/color-palette/index.mjs.map +3 -3
- package/build-module/combobox-control/index.mjs +88 -3
- package/build-module/combobox-control/index.mjs.map +3 -3
- package/build-module/confirm-dialog/component.mjs +5 -1
- package/build-module/confirm-dialog/component.mjs.map +2 -2
- package/build-module/content-editable-control/index.mjs +1 -1
- package/build-module/content-editable-control/index.mjs.map +2 -2
- package/build-module/context/context-system-provider.mjs +1 -1
- package/build-module/context/context-system-provider.mjs.map +3 -3
- package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs +14 -2
- package/build-module/custom-gradient-picker/gradient-bar/control-points.mjs.map +2 -2
- package/build-module/custom-gradient-picker/gradient-bar/index.mjs +2 -0
- package/build-module/custom-gradient-picker/gradient-bar/index.mjs.map +2 -2
- package/build-module/dropdown/dropdown-content-wrapper.mjs +92 -3
- package/build-module/dropdown/dropdown-content-wrapper.mjs.map +3 -3
- package/build-module/duotone-picker/custom-duotone-bar.mjs +1 -0
- package/build-module/duotone-picker/custom-duotone-bar.mjs.map +2 -2
- package/build-module/duotone-picker/duotone-picker.mjs +24 -15
- package/build-module/duotone-picker/duotone-picker.mjs.map +2 -2
- package/build-module/focal-point-picker/index.mjs +5 -3
- package/build-module/focal-point-picker/index.mjs.map +2 -2
- package/build-module/gradient-picker/index.mjs +106 -12
- package/build-module/gradient-picker/index.mjs.map +3 -3
- package/build-module/input-control/input-field.mjs +1 -0
- package/build-module/input-control/input-field.mjs.map +2 -2
- package/build-module/input-control/styles/input-control-styles.mjs +22 -22
- package/build-module/input-control/styles/input-control-styles.mjs.map +2 -2
- package/build-module/modal/index.mjs +1 -0
- package/build-module/modal/index.mjs.map +2 -2
- package/build-module/palette-edit/index.mjs +209 -34
- package/build-module/palette-edit/index.mjs.map +2 -2
- package/build-module/private-apis.mjs +2 -7
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/progress-bar/index.mjs +95 -7
- package/build-module/progress-bar/index.mjs.map +3 -3
- package/build-module/radio-control/index.mjs +1 -0
- package/build-module/radio-control/index.mjs.map +2 -2
- package/build-module/resizable-box/resize-tooltip/index.mjs +91 -4
- package/build-module/resizable-box/resize-tooltip/index.mjs.map +3 -3
- package/build-module/resizable-box/resize-tooltip/label.mjs +93 -6
- package/build-module/resizable-box/resize-tooltip/label.mjs.map +3 -3
- package/build-module/scrollable/hook.mjs +93 -6
- package/build-module/scrollable/hook.mjs.map +4 -4
- package/build-module/snackbar/index.mjs +8 -5
- package/build-module/snackbar/index.mjs.map +2 -2
- package/build-module/textarea-control/index.mjs +87 -3
- package/build-module/textarea-control/index.mjs.map +3 -3
- package/build-module/toggle-group-control/toggle-group-control/component.mjs +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.mjs.map +2 -2
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs +1 -1
- package/build-module/toggle-group-control/toggle-group-control-option-base/component.mjs.map +2 -2
- package/build-module/tools-panel/tools-panel-item/hook.mjs +2 -2
- package/build-module/tools-panel/tools-panel-item/hook.mjs.map +2 -2
- package/build-module/utils/config-values.mjs +0 -3
- package/build-module/utils/config-values.mjs.map +2 -2
- package/build-module/validated-form-controls/components/content-editable-control.mjs +2 -1
- package/build-module/validated-form-controls/components/content-editable-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/custom-select-control.mjs +2 -1
- package/build-module/validated-form-controls/components/custom-select-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/index.mjs +0 -4
- package/build-module/validated-form-controls/components/index.mjs.map +2 -2
- package/build-module/validated-form-controls/components/input-control.mjs +8 -1
- package/build-module/validated-form-controls/components/input-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/range-control.mjs +2 -1
- package/build-module/validated-form-controls/components/range-control.mjs.map +2 -2
- package/build-module/validated-form-controls/components/textarea-control.mjs +8 -1
- package/build-module/validated-form-controls/components/textarea-control.mjs.map +2 -2
- package/build-module/validated-form-controls/index.mjs +0 -1
- package/build-module/validated-form-controls/index.mjs.map +2 -2
- package/build-module/z-stack/component.mjs +95 -7
- package/build-module/z-stack/component.mjs.map +3 -3
- package/build-style/style-rtl.css +79 -134
- package/build-style/style.css +79 -134
- package/build-types/base-control/styles/base-control-styles.d.ts +21 -20
- package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +863 -1
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts.map +1 -1
- package/build-types/border-box-control/types.d.ts +6 -2
- package/build-types/border-box-control/types.d.ts.map +1 -1
- package/build-types/border-control/border-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/component.d.ts.map +1 -1
- package/build-types/border-control/border-control-dropdown/hook.d.ts +4 -2
- package/build-types/border-control/border-control-dropdown/hook.d.ts.map +1 -1
- package/build-types/box-control/box-input-control.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts.map +1 -1
- package/build-types/button/index.d.ts.map +1 -1
- package/build-types/card/styles.d.ts +2 -1
- package/build-types/card/styles.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker.d.ts.map +1 -1
- package/build-types/circular-option-picker/index.d.ts +1 -1
- package/build-types/circular-option-picker/index.d.ts.map +1 -1
- package/build-types/circular-option-picker/types.d.ts +34 -26
- package/build-types/circular-option-picker/types.d.ts.map +1 -1
- package/build-types/circular-option-picker/utils.d.ts +9 -5
- package/build-types/circular-option-picker/utils.d.ts.map +1 -1
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/types.d.ts +23 -3
- package/build-types/color-palette/types.d.ts.map +1 -1
- package/build-types/combobox-control/index.d.ts.map +1 -1
- package/build-types/combobox-control/types.d.ts +4 -2
- package/build-types/combobox-control/types.d.ts.map +1 -1
- package/build-types/confirm-dialog/component.d.ts.map +1 -1
- package/build-types/confirm-dialog/types.d.ts +11 -0
- package/build-types/confirm-dialog/types.d.ts.map +1 -1
- package/build-types/context/context-system-provider.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/types.d.ts +10 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
- package/build-types/dropdown/dropdown-content-wrapper.d.ts.map +1 -1
- package/build-types/duotone-picker/custom-duotone-bar.d.ts.map +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts +1 -1
- package/build-types/duotone-picker/duotone-picker.d.ts.map +1 -1
- package/build-types/duotone-picker/types.d.ts +43 -4
- package/build-types/duotone-picker/types.d.ts.map +1 -1
- package/build-types/focal-point-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/types.d.ts +22 -3
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/input-control/input-field.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts +8 -5
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/palette-edit/types.d.ts +47 -8
- package/build-types/palette-edit/types.d.ts.map +1 -1
- package/build-types/popover/types.d.ts +6 -2
- package/build-types/popover/types.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/progress-bar/index.d.ts.map +1 -1
- package/build-types/radio-control/index.d.ts.map +1 -1
- package/build-types/radio-control/types.d.ts +6 -0
- package/build-types/radio-control/types.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts +4 -5
- package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
- package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
- package/build-types/scrollable/hook.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts.map +1 -1
- package/build-types/textarea-control/index.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +0 -3
- package/build-types/validated-form-controls/components/content-editable-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/custom-select-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/index.d.ts +0 -4
- package/build-types/validated-form-controls/components/index.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/input-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/range-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/components/textarea-control.d.ts.map +1 -1
- package/build-types/validated-form-controls/index.d.ts +0 -1
- package/build-types/validated-form-controls/index.d.ts.map +1 -1
- package/build-types/z-stack/component.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/animate/stories/index.story.tsx +0 -10
- package/src/base-control/stories/index.story.tsx +1 -1
- package/src/base-control/styles/base-control-styles.tsx +115 -0
- package/src/base-control/styles/style.module.scss +39 -0
- package/src/border-box-control/border-box-control/README.md +2 -2
- package/src/border-box-control/border-box-control/hook.ts +5 -16
- package/src/border-box-control/border-box-control-linked-button/hook.ts +6 -10
- package/src/border-box-control/border-box-control-split-controls/hook.ts +11 -20
- package/src/border-box-control/border-box-control-visualizer/hook.ts +37 -11
- package/src/border-box-control/stories/index.story.tsx +1 -1
- package/src/border-box-control/style.module.scss +43 -0
- package/src/border-box-control/types.ts +6 -2
- package/src/border-control/border-control/hook.ts +10 -19
- package/src/border-control/border-control-dropdown/component.tsx +6 -8
- package/src/border-control/border-control-dropdown/hook.ts +23 -32
- package/src/border-control/style.module.scss +93 -0
- package/src/border-control/test/{index.js → index.jsx} +63 -31
- package/src/box-control/box-input-control.tsx +31 -16
- package/src/box-control/index.tsx +15 -12
- package/src/box-control/style.module.scss +28 -0
- package/src/box-control/test/index.tsx +161 -0
- package/src/button/index.tsx +32 -10
- package/src/button/test/index.tsx +51 -0
- package/src/card/card-body/hook.ts +2 -2
- package/src/card/styles.ts +11 -1
- package/src/card/test/__snapshots__/index.tsx.snap +27 -27
- package/src/circular-option-picker/README.md +8 -4
- package/src/circular-option-picker/circular-option-picker-option.tsx +26 -16
- package/src/circular-option-picker/circular-option-picker.tsx +47 -14
- package/src/circular-option-picker/index.tsx +5 -1
- package/src/circular-option-picker/stories/index.story.tsx +3 -3
- package/src/circular-option-picker/test/index.tsx +152 -3
- package/src/circular-option-picker/types.ts +38 -32
- package/src/circular-option-picker/utils.tsx +35 -5
- package/src/clipboard-button/index.tsx +1 -1
- package/src/color-palette/README.md +11 -7
- package/src/color-palette/index.tsx +28 -14
- package/src/color-palette/stories/index.story.tsx +5 -0
- package/src/color-palette/style.module.scss +12 -0
- package/src/color-palette/test/index.tsx +80 -5
- package/src/color-palette/types.ts +23 -3
- package/src/color-picker/stories/index.story.tsx +0 -5
- package/src/combobox-control/README.md +1 -1
- package/src/combobox-control/index.tsx +4 -4
- package/src/combobox-control/style.module.scss +6 -0
- package/src/combobox-control/style.scss +1 -1
- package/src/combobox-control/types.ts +4 -2
- package/src/composite/legacy/stories/index.story.tsx +10 -10
- package/src/composite/stories/index.story.tsx +0 -5
- package/src/confirm-dialog/README.md +16 -0
- package/src/confirm-dialog/component.tsx +7 -1
- package/src/confirm-dialog/test/index.tsx +41 -0
- package/src/confirm-dialog/types.ts +11 -0
- package/src/content-editable-control/style.module.scss +0 -1
- package/src/context/{context-system-provider.js → context-system-provider.jsx} +0 -1
- package/src/context/test/__snapshots__/{context-system-provider.js.snap → context-system-provider.jsx.snap} +3 -3
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +24 -3
- package/src/custom-gradient-picker/gradient-bar/index.tsx +2 -0
- package/src/custom-gradient-picker/test/index.tsx +134 -0
- package/src/custom-gradient-picker/types.ts +10 -0
- package/src/dropdown/dropdown-content-wrapper.tsx +17 -7
- package/src/dropdown/stories/index.story.tsx +0 -5
- package/src/dropdown/style.module.scss +25 -0
- package/src/dropdown/test/index.tsx +51 -0
- package/src/duotone-picker/README.md +21 -6
- package/src/duotone-picker/custom-duotone-bar.tsx +1 -0
- package/src/duotone-picker/duotone-picker.tsx +79 -54
- package/src/duotone-picker/stories/duotone-picker.story.tsx +63 -15
- package/src/duotone-picker/test/custom-duotone-bar.tsx +114 -0
- package/src/duotone-picker/test/index.tsx +346 -0
- package/src/duotone-picker/types.ts +48 -4
- package/src/focal-point-picker/index.tsx +6 -2
- package/src/focal-point-picker/stories/index.story.tsx +15 -0
- package/src/focal-point-picker/test/index.tsx +31 -0
- package/src/form-toggle/stories/index.story.tsx +3 -0
- package/src/form-token-field/style.scss +7 -1
- package/src/gradient-picker/README.md +19 -10
- package/src/gradient-picker/index.tsx +43 -16
- package/src/gradient-picker/stories/index.story.tsx +5 -0
- package/src/gradient-picker/test/index.tsx +84 -0
- package/src/gradient-picker/types.ts +22 -3
- package/src/input-control/input-field.tsx +1 -0
- package/src/input-control/stories/index.story.tsx +3 -3
- package/src/input-control/stories/migration-guide.mdx +201 -0
- package/src/input-control/style.scss +11 -0
- package/src/input-control/styles/input-control-styles.tsx +30 -11
- package/src/input-control/test/{index.js → index.jsx} +10 -0
- package/src/keyboard-shortcuts/stories/index.story.tsx +2 -2
- package/src/menu-group/stories/index.story.tsx +9 -6
- package/src/menu-item/stories/index.story.tsx +6 -3
- package/src/menu-items-choice/stories/index.story.tsx +14 -11
- package/src/modal/index.tsx +1 -0
- package/src/modal/test/index.tsx +19 -0
- package/src/navigator/stories/index.story.tsx +0 -5
- package/src/number-control/stories/index.story.tsx +3 -3
- package/src/palette-edit/index.tsx +364 -70
- package/src/palette-edit/stories/index.story.tsx +59 -18
- package/src/palette-edit/style.scss +3 -1
- package/src/palette-edit/test/index.tsx +375 -1
- package/src/palette-edit/types.ts +50 -8
- package/src/popover/README.md +2 -2
- package/src/popover/stories/index.story.tsx +5 -1
- package/src/popover/stories/utils.tsx +79 -0
- package/src/popover/test/index.tsx +24 -1
- package/src/popover/test/utils/index.js +1 -0
- package/src/popover/test/utils/index.tsx +4 -78
- package/src/popover/types.ts +9 -3
- package/src/private-apis.ts +0 -8
- package/src/progress-bar/index.tsx +10 -6
- package/src/progress-bar/style.module.scss +62 -0
- package/src/progress-bar/test/index.tsx +13 -11
- package/src/radio-control/README.md +3 -1
- package/src/radio-control/index.tsx +1 -0
- package/src/radio-control/stories/index.story.tsx +12 -0
- package/src/radio-control/style.scss +1 -3
- package/src/radio-control/test/index.tsx +59 -0
- package/src/radio-control/types.ts +6 -0
- package/src/range-control/stories/index.story.tsx +30 -0
- package/src/resizable-box/resize-tooltip/index.tsx +16 -7
- package/src/resizable-box/resize-tooltip/label.tsx +18 -12
- package/src/resizable-box/resize-tooltip/style.module.scss +40 -0
- package/src/resizable-box/resize-tooltip/test/index.tsx +44 -0
- package/src/resizable-box/resize-tooltip/test/label.tsx +25 -0
- package/src/resizable-box/stories/index.story.tsx +11 -0
- package/src/sandbox/stories/index.story.tsx +2 -0
- package/src/scrollable/hook.ts +11 -17
- package/src/scrollable/stories/index.story.tsx +1 -0
- package/src/scrollable/style.module.scss +44 -0
- package/src/scrollable/test/index.tsx +120 -6
- package/src/snackbar/index.tsx +10 -6
- package/src/snackbar/stories/index.story.tsx +5 -0
- package/src/snackbar/stories/list.story.tsx +3 -0
- package/src/snackbar/test/index.tsx +28 -2
- package/src/snackbar/test/list.tsx +61 -1
- package/src/spinner/stories/index.story.tsx +2 -2
- package/src/style.scss +1 -0
- package/src/text-control/stories/index.story.tsx +2 -3
- package/src/text-control/style.scss +0 -1
- package/src/textarea-control/index.tsx +6 -3
- package/src/textarea-control/stories/index.story.tsx +2 -3
- package/src/textarea-control/stories/migration-guide.mdx +79 -0
- package/src/textarea-control/style.module.scss +56 -0
- package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +12 -116
- package/src/toggle-group-control/toggle-group-control/style.module.scss +0 -2
- package/src/toggle-group-control/toggle-group-control-option-base/style.module.scss +0 -2
- package/src/tools-panel/test/index.tsx +39 -0
- package/src/tools-panel/tools-panel-item/hook.ts +4 -1
- package/src/utils/config-values.js +0 -3
- package/src/utils/theme-variables.scss +0 -1
- package/src/validated-form-controls/components/content-editable-control.tsx +2 -1
- package/src/validated-form-controls/components/custom-select-control.tsx +2 -1
- package/src/validated-form-controls/components/index.ts +0 -4
- package/src/validated-form-controls/components/input-control.tsx +9 -1
- package/src/validated-form-controls/components/range-control.tsx +2 -1
- package/src/validated-form-controls/components/stories/content-editable-control.story.tsx +6 -0
- package/src/validated-form-controls/components/stories/custom-select-control.story.tsx +6 -0
- package/src/validated-form-controls/components/stories/overview.mdx +4 -47
- package/src/validated-form-controls/components/textarea-control.tsx +9 -1
- package/src/validated-form-controls/index.ts +0 -1
- package/src/validated-form-controls/style.scss +11 -67
- package/src/validated-form-controls/test/input-control.tsx +12 -0
- package/src/validated-form-controls/test/textarea-control.tsx +17 -0
- package/src/z-stack/component.tsx +17 -9
- package/src/z-stack/style.module.scss +26 -0
- package/build/border-box-control/styles.cjs +0 -99
- package/build/border-box-control/styles.cjs.map +0 -7
- package/build/border-control/styles.cjs +0 -117
- package/build/border-control/styles.cjs.map +0 -7
- package/build/box-control/styles/box-control-styles.cjs +0 -131
- package/build/box-control/styles/box-control-styles.cjs.map +0 -7
- package/build/color-palette/styles.cjs +0 -49
- package/build/color-palette/styles.cjs.map +0 -7
- package/build/combobox-control/styles.cjs +0 -49
- package/build/combobox-control/styles.cjs.map +0 -7
- package/build/dropdown/styles.cjs +0 -61
- package/build/dropdown/styles.cjs.map +0 -7
- package/build/progress-bar/styles.cjs +0 -106
- package/build/progress-bar/styles.cjs.map +0 -7
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs +0 -90
- package/build/resizable-box/resize-tooltip/styles/resize-tooltip.styles.cjs.map +0 -7
- package/build/scrollable/styles.cjs +0 -96
- package/build/scrollable/styles.cjs.map +0 -7
- package/build/textarea-control/styles/textarea-control-styles.cjs +0 -54
- package/build/textarea-control/styles/textarea-control-styles.cjs.map +0 -7
- package/build/validated-form-controls/components/combobox-control.cjs +0 -75
- package/build/validated-form-controls/components/combobox-control.cjs.map +0 -7
- package/build/validated-form-controls/components/form-token-field.cjs +0 -69
- package/build/validated-form-controls/components/form-token-field.cjs.map +0 -7
- package/build/validated-form-controls/components/toggle-control.cjs +0 -67
- package/build/validated-form-controls/components/toggle-control.cjs.map +0 -7
- package/build/validated-form-controls/components/toggle-group-control.cjs +0 -71
- package/build/validated-form-controls/components/toggle-group-control.cjs.map +0 -7
- package/build/validated-form-controls/control-with-error.cjs +0 -200
- package/build/validated-form-controls/control-with-error.cjs.map +0 -7
- package/build/validated-form-controls/validity-indicator.cjs +0 -67
- package/build/validated-form-controls/validity-indicator.cjs.map +0 -7
- package/build/z-stack/styles.cjs +0 -80
- package/build/z-stack/styles.cjs.map +0 -7
- package/build-module/border-box-control/styles.mjs +0 -67
- package/build-module/border-box-control/styles.mjs.map +0 -7
- package/build-module/border-control/styles.mjs +0 -80
- package/build-module/border-control/styles.mjs.map +0 -7
- package/build-module/box-control/styles/box-control-styles.mjs +0 -91
- package/build-module/box-control/styles/box-control-styles.mjs.map +0 -7
- package/build-module/color-palette/styles.mjs +0 -14
- package/build-module/color-palette/styles.mjs.map +0 -7
- package/build-module/combobox-control/styles.mjs +0 -14
- package/build-module/combobox-control/styles.mjs.map +0 -7
- package/build-module/dropdown/styles.mjs +0 -26
- package/build-module/dropdown/styles.mjs.map +0 -7
- package/build-module/progress-bar/styles.mjs +0 -68
- package/build-module/progress-bar/styles.mjs.map +0 -7
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs +0 -52
- package/build-module/resizable-box/resize-tooltip/styles/resize-tooltip.styles.mjs.map +0 -7
- package/build-module/scrollable/styles.mjs +0 -65
- package/build-module/scrollable/styles.mjs.map +0 -7
- package/build-module/textarea-control/styles/textarea-control-styles.mjs +0 -19
- package/build-module/textarea-control/styles/textarea-control-styles.mjs.map +0 -7
- package/build-module/validated-form-controls/components/combobox-control.mjs +0 -40
- package/build-module/validated-form-controls/components/combobox-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/form-token-field.mjs +0 -44
- package/build-module/validated-form-controls/components/form-token-field.mjs.map +0 -7
- package/build-module/validated-form-controls/components/toggle-control.mjs +0 -32
- package/build-module/validated-form-controls/components/toggle-control.mjs.map +0 -7
- package/build-module/validated-form-controls/components/toggle-group-control.mjs +0 -46
- package/build-module/validated-form-controls/components/toggle-group-control.mjs.map +0 -7
- package/build-module/validated-form-controls/control-with-error.mjs +0 -175
- package/build-module/validated-form-controls/control-with-error.mjs.map +0 -7
- package/build-module/validated-form-controls/validity-indicator.mjs +0 -32
- package/build-module/validated-form-controls/validity-indicator.mjs.map +0 -7
- package/build-module/z-stack/styles.mjs +0 -44
- package/build-module/z-stack/styles.mjs.map +0 -7
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +0 -8
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +0 -1
- package/build-types/alignment-matrix-control/test/index.d.ts +0 -2
- package/build-types/alignment-matrix-control/test/index.d.ts.map +0 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts +0 -8
- package/build-types/angle-picker-control/stories/index.story.d.ts.map +0 -1
- package/build-types/animate/stories/index.story.d.ts +0 -12
- package/build-types/animate/stories/index.story.d.ts.map +0 -1
- package/build-types/autocomplete/test/get-autocomplete-match.d.ts +0 -2
- package/build-types/autocomplete/test/get-autocomplete-match.d.ts.map +0 -1
- package/build-types/autocomplete/test/index.d.ts +0 -2
- package/build-types/autocomplete/test/index.d.ts.map +0 -1
- package/build-types/badge/stories/e2e/index.story.d.ts +0 -7
- package/build-types/badge/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/badge/stories/index.story.d.ts +0 -11
- package/build-types/badge/stories/index.story.d.ts.map +0 -1
- package/build-types/badge/test/index.d.ts +0 -2
- package/build-types/badge/test/index.d.ts.map +0 -1
- package/build-types/base-control/stories/index.story.d.ts +0 -17
- package/build-types/base-control/stories/index.story.d.ts.map +0 -1
- package/build-types/base-control/test/index.d.ts +0 -2
- package/build-types/base-control/test/index.d.ts.map +0 -1
- package/build-types/border-box-control/stories/index.story.d.ts +0 -14
- package/build-types/border-box-control/stories/index.story.d.ts.map +0 -1
- package/build-types/border-box-control/styles.d.ts +0 -10
- package/build-types/border-box-control/styles.d.ts.map +0 -1
- package/build-types/border-box-control/test/index.d.ts +0 -2
- package/build-types/border-box-control/test/index.d.ts.map +0 -1
- package/build-types/border-box-control/test/utils.d.ts +0 -2
- package/build-types/border-box-control/test/utils.d.ts.map +0 -1
- package/build-types/border-control/stories/index.story.d.ts +0 -109
- package/build-types/border-control/stories/index.story.d.ts.map +0 -1
- package/build-types/border-control/styles.d.ts +0 -17
- package/build-types/border-control/styles.d.ts.map +0 -1
- package/build-types/box-control/stories/index.story.d.ts +0 -12
- package/build-types/box-control/stories/index.story.d.ts.map +0 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +0 -65
- package/build-types/box-control/styles/box-control-styles.d.ts.map +0 -1
- package/build-types/box-control/test/index.d.ts +0 -2
- package/build-types/box-control/test/index.d.ts.map +0 -1
- package/build-types/button/stories/e2e/index.story.d.ts +0 -9
- package/build-types/button/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/button/stories/index.story.d.ts +0 -31
- package/build-types/button/stories/index.story.d.ts.map +0 -1
- package/build-types/button/test/index.d.ts +0 -2
- package/build-types/button/test/index.d.ts.map +0 -1
- package/build-types/button-group/stories/index.story.d.ts +0 -12
- package/build-types/button-group/stories/index.story.d.ts.map +0 -1
- package/build-types/card/stories/index.story.d.ts +0 -20
- package/build-types/card/stories/index.story.d.ts.map +0 -1
- package/build-types/card/test/index.d.ts +0 -2
- package/build-types/card/test/index.d.ts.map +0 -1
- package/build-types/checkbox-control/stories/index.story.d.ts +0 -24
- package/build-types/checkbox-control/stories/index.story.d.ts.map +0 -1
- package/build-types/checkbox-control/test/index.d.ts +0 -2
- package/build-types/checkbox-control/test/index.d.ts.map +0 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +0 -10
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/circular-option-picker/test/index.d.ts +0 -2
- package/build-types/circular-option-picker/test/index.d.ts.map +0 -1
- package/build-types/color-indicator/stories/index.story.d.ts +0 -6
- package/build-types/color-indicator/stories/index.story.d.ts.map +0 -1
- package/build-types/color-indicator/test/index.d.ts +0 -2
- package/build-types/color-indicator/test/index.d.ts.map +0 -1
- package/build-types/color-palette/stories/index.story.d.ts +0 -11
- package/build-types/color-palette/stories/index.story.d.ts.map +0 -1
- package/build-types/color-palette/styles.d.ts +0 -11
- package/build-types/color-palette/styles.d.ts.map +0 -1
- package/build-types/color-palette/test/index.d.ts +0 -2
- package/build-types/color-palette/test/index.d.ts.map +0 -1
- package/build-types/color-palette/test/utils.d.ts +0 -2
- package/build-types/color-palette/test/utils.d.ts.map +0 -1
- package/build-types/color-picker/stories/index.story.d.ts +0 -6
- package/build-types/color-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/color-picker/test/index.d.ts +0 -2
- package/build-types/color-picker/test/index.d.ts.map +0 -1
- package/build-types/combobox-control/stories/index.story.d.ts +0 -93
- package/build-types/combobox-control/stories/index.story.d.ts.map +0 -1
- package/build-types/combobox-control/styles.d.ts +0 -6
- package/build-types/combobox-control/styles.d.ts.map +0 -1
- package/build-types/combobox-control/test/index.d.ts +0 -2
- package/build-types/combobox-control/test/index.d.ts.map +0 -1
- package/build-types/composite/legacy/stories/index.story.d.ts +0 -9
- package/build-types/composite/legacy/stories/index.story.d.ts.map +0 -1
- package/build-types/composite/legacy/stories/utils.d.ts +0 -27
- package/build-types/composite/legacy/stories/utils.d.ts.map +0 -1
- package/build-types/composite/legacy/test/index.d.ts +0 -2
- package/build-types/composite/legacy/test/index.d.ts.map +0 -1
- package/build-types/composite/stories/index.story.d.ts +0 -33
- package/build-types/composite/stories/index.story.d.ts.map +0 -1
- package/build-types/composite/test/index.d.ts +0 -2
- package/build-types/composite/test/index.d.ts.map +0 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts +0 -7
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +0 -1
- package/build-types/confirm-dialog/test/index.d.ts +0 -2
- package/build-types/confirm-dialog/test/index.d.ts.map +0 -1
- package/build-types/content-editable-control/stories/index.story.d.ts +0 -7
- package/build-types/content-editable-control/stories/index.story.d.ts.map +0 -1
- package/build-types/content-editable-control/test/index.d.ts +0 -2
- package/build-types/content-editable-control/test/index.d.ts.map +0 -1
- package/build-types/context/test/context-connect.d.ts +0 -2
- package/build-types/context/test/context-connect.d.ts.map +0 -1
- package/build-types/context/test/wordpress-component.d.ts +0 -2
- package/build-types/context/test/wordpress-component.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts +0 -2
- package/build-types/custom-gradient-picker/gradient-bar/test/utils.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts +0 -6
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/test/index.d.ts +0 -2
- package/build-types/custom-gradient-picker/test/index.d.ts.map +0 -1
- package/build-types/custom-gradient-picker/test/serializer.d.ts +0 -2
- package/build-types/custom-gradient-picker/test/serializer.d.ts.map +0 -1
- package/build-types/custom-select-control/stories/index.story.d.ts +0 -8
- package/build-types/custom-select-control/stories/index.story.d.ts.map +0 -1
- package/build-types/custom-select-control/test/index.d.ts +0 -2
- package/build-types/custom-select-control/test/index.d.ts.map +0 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +0 -38
- package/build-types/custom-select-control-v2/stories/index.story.d.ts.map +0 -1
- package/build-types/custom-select-control-v2/test/index.d.ts +0 -2
- package/build-types/custom-select-control-v2/test/index.d.ts.map +0 -1
- package/build-types/date-time/date-picker/test/index.d.ts +0 -2
- package/build-types/date-time/date-picker/test/index.d.ts.map +0 -1
- package/build-types/date-time/date-picker/test/use-lilius.d.ts +0 -2
- package/build-types/date-time/date-picker/test/use-lilius.d.ts.map +0 -1
- package/build-types/date-time/date-time/test/index.d.ts +0 -2
- package/build-types/date-time/date-time/test/index.d.ts.map +0 -1
- package/build-types/date-time/stories/date-time.story.d.ts +0 -8
- package/build-types/date-time/stories/date-time.story.d.ts.map +0 -1
- package/build-types/date-time/stories/date.story.d.ts +0 -8
- package/build-types/date-time/stories/date.story.d.ts.map +0 -1
- package/build-types/date-time/stories/time.story.d.ts +0 -11
- package/build-types/date-time/stories/time.story.d.ts.map +0 -1
- package/build-types/date-time/stories/utils.d.ts +0 -3
- package/build-types/date-time/stories/utils.d.ts.map +0 -1
- package/build-types/date-time/test/utils.test.d.ts +0 -2
- package/build-types/date-time/test/utils.test.d.ts.map +0 -1
- package/build-types/date-time/time-picker/test/index.d.ts +0 -2
- package/build-types/date-time/time-picker/test/index.d.ts.map +0 -1
- package/build-types/date-time/time-picker/time-input/test/index.d.ts +0 -2
- package/build-types/date-time/time-picker/time-input/test/index.d.ts.map +0 -1
- package/build-types/disabled/stories/index.story.d.ts +0 -7
- package/build-types/disabled/stories/index.story.d.ts.map +0 -1
- package/build-types/disabled/test/index.d.ts +0 -2
- package/build-types/disabled/test/index.d.ts.map +0 -1
- package/build-types/divider/stories/index.story.d.ts +0 -8
- package/build-types/divider/stories/index.story.d.ts.map +0 -1
- package/build-types/divider/test/index.d.ts +0 -2
- package/build-types/divider/test/index.d.ts.map +0 -1
- package/build-types/draggable/stories/index.story.d.ts +0 -13
- package/build-types/draggable/stories/index.story.d.ts.map +0 -1
- package/build-types/drop-zone/stories/index.story.d.ts +0 -6
- package/build-types/drop-zone/stories/index.story.d.ts.map +0 -1
- package/build-types/dropdown/stories/index.story.d.ts +0 -18
- package/build-types/dropdown/stories/index.story.d.ts.map +0 -1
- package/build-types/dropdown/styles.d.ts +0 -6
- package/build-types/dropdown/styles.d.ts.map +0 -1
- package/build-types/dropdown/test/index.d.ts +0 -2
- package/build-types/dropdown/test/index.d.ts.map +0 -1
- package/build-types/dropdown-menu/stories/index.story.d.ts +0 -7
- package/build-types/dropdown-menu/stories/index.story.d.ts.map +0 -1
- package/build-types/dropdown-menu/test/index.d.ts +0 -2
- package/build-types/dropdown-menu/test/index.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +0 -7
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +0 -1
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +0 -8
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +0 -1
- package/build-types/elevation/stories/index.story.d.ts +0 -16
- package/build-types/elevation/stories/index.story.d.ts.map +0 -1
- package/build-types/elevation/test/index.d.ts +0 -2
- package/build-types/elevation/test/index.d.ts.map +0 -1
- package/build-types/external-link/stories/index.story.d.ts +0 -6
- package/build-types/external-link/stories/index.story.d.ts.map +0 -1
- package/build-types/external-link/test/index.d.ts +0 -2
- package/build-types/external-link/test/index.d.ts.map +0 -1
- package/build-types/flex/stories/index.story.d.ts +0 -7
- package/build-types/flex/stories/index.story.d.ts.map +0 -1
- package/build-types/flex/test/index.d.ts +0 -2
- package/build-types/flex/test/index.d.ts.map +0 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +0 -49
- package/build-types/focal-point-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/focal-point-picker/test/index.d.ts +0 -2
- package/build-types/focal-point-picker/test/index.d.ts.map +0 -1
- package/build-types/focal-point-picker/test/media.d.ts +0 -2
- package/build-types/focal-point-picker/test/media.d.ts.map +0 -1
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts +0 -20
- package/build-types/font-size-picker/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/font-size-picker/stories/index.story.d.ts +0 -26
- package/build-types/font-size-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/font-size-picker/test/font-size-picker-select.d.ts +0 -2
- package/build-types/font-size-picker/test/font-size-picker-select.d.ts.map +0 -1
- package/build-types/font-size-picker/test/font-size-picker-toggle-group.d.ts +0 -2
- package/build-types/font-size-picker/test/font-size-picker-toggle-group.d.ts.map +0 -1
- package/build-types/font-size-picker/test/index.d.ts +0 -2
- package/build-types/font-size-picker/test/index.d.ts.map +0 -1
- package/build-types/font-size-picker/test/utils.d.ts +0 -2
- package/build-types/font-size-picker/test/utils.d.ts.map +0 -1
- package/build-types/form-file-upload/stories/index.story.d.ts +0 -17
- package/build-types/form-file-upload/stories/index.story.d.ts.map +0 -1
- package/build-types/form-file-upload/test/index.d.ts +0 -2
- package/build-types/form-file-upload/test/index.d.ts.map +0 -1
- package/build-types/form-toggle/stories/index.story.d.ts +0 -6
- package/build-types/form-toggle/stories/index.story.d.ts.map +0 -1
- package/build-types/form-toggle/test/index.d.ts +0 -2
- package/build-types/form-toggle/test/index.d.ts.map +0 -1
- package/build-types/form-token-field/stories/index.story.d.ts +0 -25
- package/build-types/form-token-field/stories/index.story.d.ts.map +0 -1
- package/build-types/form-token-field/test/index.d.ts +0 -2
- package/build-types/form-token-field/test/index.d.ts.map +0 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +0 -11
- package/build-types/gradient-picker/stories/index.story.d.ts.map +0 -1
- package/build-types/gradient-picker/test/index.d.ts +0 -2
- package/build-types/gradient-picker/test/index.d.ts.map +0 -1
- package/build-types/grid/stories/index.story.d.ts +0 -6
- package/build-types/grid/stories/index.story.d.ts.map +0 -1
- package/build-types/grid/test/grid.d.ts +0 -2
- package/build-types/grid/test/grid.d.ts.map +0 -1
- package/build-types/guide/stories/index.story.d.ts +0 -6
- package/build-types/guide/stories/index.story.d.ts.map +0 -1
- package/build-types/guide/test/index.d.ts +0 -2
- package/build-types/guide/test/index.d.ts.map +0 -1
- package/build-types/h-stack/stories/e2e/index.story.d.ts +0 -6
- package/build-types/h-stack/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/h-stack/stories/index.story.d.ts +0 -6
- package/build-types/h-stack/stories/index.story.d.ts.map +0 -1
- package/build-types/h-stack/test/index.d.ts +0 -2
- package/build-types/h-stack/test/index.d.ts.map +0 -1
- package/build-types/heading/stories/index.story.d.ts +0 -6
- package/build-types/heading/stories/index.story.d.ts.map +0 -1
- package/build-types/heading/test/index.d.ts +0 -2
- package/build-types/heading/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-fallback-styles/test/index.d.ts +0 -2
- package/build-types/higher-order/with-fallback-styles/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-filters/test/index.d.ts +0 -2
- package/build-types/higher-order/with-filters/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-focus-outside/test/index.d.ts +0 -2
- package/build-types/higher-order/with-focus-outside/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-focus-return/test/index.d.ts +0 -2
- package/build-types/higher-order/with-focus-return/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-notices/test/index.d.ts +0 -2
- package/build-types/higher-order/with-notices/test/index.d.ts.map +0 -1
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts +0 -2
- package/build-types/higher-order/with-spoken-messages/test/index.d.ts.map +0 -1
- package/build-types/icon/stories/index.story.d.ts +0 -21
- package/build-types/icon/stories/index.story.d.ts.map +0 -1
- package/build-types/icon/test/index.d.ts +0 -2
- package/build-types/icon/test/index.d.ts.map +0 -1
- package/build-types/input-control/stories/index.story.d.ts +0 -31
- package/build-types/input-control/stories/index.story.d.ts.map +0 -1
- package/build-types/isolated-event-container/test/index.d.ts +0 -2
- package/build-types/isolated-event-container/test/index.d.ts.map +0 -1
- package/build-types/item-group/stories/index.story.d.ts +0 -9
- package/build-types/item-group/stories/index.story.d.ts.map +0 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts +0 -6
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +0 -1
- package/build-types/keyboard-shortcuts/test/index.d.ts +0 -2
- package/build-types/keyboard-shortcuts/test/index.d.ts.map +0 -1
- package/build-types/menu/stories/index.story.d.ts +0 -13
- package/build-types/menu/stories/index.story.d.ts.map +0 -1
- package/build-types/menu/test/index.d.ts +0 -2
- package/build-types/menu/test/index.d.ts.map +0 -1
- package/build-types/menu-group/stories/index.story.d.ts +0 -11
- package/build-types/menu-group/stories/index.story.d.ts.map +0 -1
- package/build-types/menu-group/test/index.d.ts +0 -2
- package/build-types/menu-group/test/index.d.ts.map +0 -1
- package/build-types/menu-item/stories/index.story.d.ts +0 -70
- package/build-types/menu-item/stories/index.story.d.ts.map +0 -1
- package/build-types/menu-items-choice/stories/index.story.d.ts +0 -6
- package/build-types/menu-items-choice/stories/index.story.d.ts.map +0 -1
- package/build-types/modal/stories/index.story.d.ts +0 -11
- package/build-types/modal/stories/index.story.d.ts.map +0 -1
- package/build-types/modal/test/aria-helper.d.ts +0 -2
- package/build-types/modal/test/aria-helper.d.ts.map +0 -1
- package/build-types/modal/test/index.d.ts +0 -2
- package/build-types/modal/test/index.d.ts.map +0 -1
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts +0 -6
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +0 -1
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts +0 -6
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +0 -1
- package/build-types/navigable-container/test/navigable-menu.d.ts +0 -2
- package/build-types/navigable-container/test/navigable-menu.d.ts.map +0 -1
- package/build-types/navigable-container/test/tababble-container.d.ts +0 -2
- package/build-types/navigable-container/test/tababble-container.d.ts.map +0 -1
- package/build-types/navigator/stories/index.story.d.ts +0 -8
- package/build-types/navigator/stories/index.story.d.ts.map +0 -1
- package/build-types/navigator/test/index.d.ts +0 -2
- package/build-types/navigator/test/index.d.ts.map +0 -1
- package/build-types/navigator/test/router.d.ts +0 -2
- package/build-types/navigator/test/router.d.ts.map +0 -1
- package/build-types/notice/stories/index.story.d.ts +0 -15
- package/build-types/notice/stories/index.story.d.ts.map +0 -1
- package/build-types/notice/test/index.d.ts +0 -2
- package/build-types/notice/test/index.d.ts.map +0 -1
- package/build-types/notice/test/list.d.ts +0 -2
- package/build-types/notice/test/list.d.ts.map +0 -1
- package/build-types/number-control/stories/index.story.d.ts +0 -19
- package/build-types/number-control/stories/index.story.d.ts.map +0 -1
- package/build-types/number-control/test/index.d.ts +0 -2
- package/build-types/number-control/test/index.d.ts.map +0 -1
- package/build-types/palette-edit/stories/index.story.d.ts +0 -7
- package/build-types/palette-edit/stories/index.story.d.ts.map +0 -1
- package/build-types/palette-edit/test/index.d.ts +0 -2
- package/build-types/palette-edit/test/index.d.ts.map +0 -1
- package/build-types/panel/stories/index.story.d.ts +0 -13
- package/build-types/panel/stories/index.story.d.ts.map +0 -1
- package/build-types/panel/test/body.d.ts +0 -2
- package/build-types/panel/test/body.d.ts.map +0 -1
- package/build-types/panel/test/header.d.ts +0 -2
- package/build-types/panel/test/header.d.ts.map +0 -1
- package/build-types/panel/test/index.d.ts +0 -2
- package/build-types/panel/test/index.d.ts.map +0 -1
- package/build-types/panel/test/row.d.ts +0 -2
- package/build-types/panel/test/row.d.ts.map +0 -1
- package/build-types/placeholder/stories/index.story.d.ts +0 -6
- package/build-types/placeholder/stories/index.story.d.ts.map +0 -1
- package/build-types/placeholder/test/index.d.ts +0 -2
- package/build-types/placeholder/test/index.d.ts.map +0 -1
- package/build-types/popover/stories/e2e/index.story.d.ts +0 -18
- package/build-types/popover/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/popover/stories/index.story.d.ts +0 -11
- package/build-types/popover/stories/index.story.d.ts.map +0 -1
- package/build-types/popover/test/index.d.ts +0 -2
- package/build-types/popover/test/index.d.ts.map +0 -1
- package/build-types/popover/test/utils/index.d.ts +0 -3
- package/build-types/popover/test/utils/index.d.ts.map +0 -1
- package/build-types/progress-bar/stories/index.story.d.ts +0 -23
- package/build-types/progress-bar/stories/index.story.d.ts.map +0 -1
- package/build-types/progress-bar/styles.d.ts +0 -16
- package/build-types/progress-bar/styles.d.ts.map +0 -1
- package/build-types/progress-bar/test/index.d.ts +0 -2
- package/build-types/progress-bar/test/index.d.ts.map +0 -1
- package/build-types/query-controls/stories/index.story.d.ts +0 -7
- package/build-types/query-controls/stories/index.story.d.ts.map +0 -1
- package/build-types/query-controls/test/terms.d.ts +0 -2
- package/build-types/query-controls/test/terms.d.ts.map +0 -1
- package/build-types/radio-control/stories/index.story.d.ts +0 -7
- package/build-types/radio-control/stories/index.story.d.ts.map +0 -1
- package/build-types/radio-control/test/index.d.ts +0 -2
- package/build-types/radio-control/test/index.d.ts.map +0 -1
- package/build-types/radio-group/stories/index.story.d.ts +0 -8
- package/build-types/radio-group/stories/index.story.d.ts.map +0 -1
- package/build-types/range-control/stories/index.story.d.ts +0 -42
- package/build-types/range-control/stories/index.story.d.ts.map +0 -1
- package/build-types/range-control/test/index.d.ts +0 -2
- package/build-types/range-control/test/index.d.ts.map +0 -1
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts +0 -18
- package/build-types/resizable-box/resize-tooltip/styles/resize-tooltip.styles.d.ts.map +0 -1
- package/build-types/resizable-box/stories/index.story.d.ts +0 -46
- package/build-types/resizable-box/stories/index.story.d.ts.map +0 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts +0 -16
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +0 -1
- package/build-types/sandbox/stories/index.story.d.ts +0 -7
- package/build-types/sandbox/stories/index.story.d.ts.map +0 -1
- package/build-types/sandbox/test/index.d.ts +0 -2
- package/build-types/sandbox/test/index.d.ts.map +0 -1
- package/build-types/scroll-lock/stories/index.story.d.ts +0 -6
- package/build-types/scroll-lock/stories/index.story.d.ts.map +0 -1
- package/build-types/scroll-lock/test/index.d.ts +0 -2
- package/build-types/scroll-lock/test/index.d.ts.map +0 -1
- package/build-types/scrollable/stories/index.story.d.ts +0 -6
- package/build-types/scrollable/stories/index.story.d.ts.map +0 -1
- package/build-types/scrollable/styles.d.ts +0 -8
- package/build-types/scrollable/styles.d.ts.map +0 -1
- package/build-types/scrollable/test/index.d.ts +0 -2
- package/build-types/scrollable/test/index.d.ts.map +0 -1
- package/build-types/search-control/stories/index.story.d.ts +0 -18
- package/build-types/search-control/stories/index.story.d.ts.map +0 -1
- package/build-types/search-control/test/index.d.ts +0 -2
- package/build-types/search-control/test/index.d.ts.map +0 -1
- package/build-types/select-control/stories/index.story.d.ts +0 -28
- package/build-types/select-control/stories/index.story.d.ts.map +0 -1
- package/build-types/select-control/test/select-control.d.ts +0 -2
- package/build-types/select-control/test/select-control.d.ts.map +0 -1
- package/build-types/shortcut/stories/index.story.d.ts +0 -7
- package/build-types/shortcut/stories/index.story.d.ts.map +0 -1
- package/build-types/shortcut/test/index.d.ts +0 -2
- package/build-types/shortcut/test/index.d.ts.map +0 -1
- package/build-types/slot-fill/stories/index.story.d.ts +0 -10
- package/build-types/slot-fill/stories/index.story.d.ts.map +0 -1
- package/build-types/snackbar/stories/index.story.d.ts +0 -10
- package/build-types/snackbar/stories/index.story.d.ts.map +0 -1
- package/build-types/snackbar/stories/list.story.d.ts +0 -6
- package/build-types/snackbar/stories/list.story.d.ts.map +0 -1
- package/build-types/snackbar/test/index.d.ts +0 -2
- package/build-types/snackbar/test/index.d.ts.map +0 -1
- package/build-types/snackbar/test/list.d.ts +0 -2
- package/build-types/snackbar/test/list.d.ts.map +0 -1
- package/build-types/spacer/stories/index.story.d.ts +0 -7
- package/build-types/spacer/stories/index.story.d.ts.map +0 -1
- package/build-types/spacer/test/index.d.ts +0 -2
- package/build-types/spacer/test/index.d.ts.map +0 -1
- package/build-types/spinner/stories/index.story.d.ts +0 -7
- package/build-types/spinner/stories/index.story.d.ts.map +0 -1
- package/build-types/style-provider/test/index.d.ts +0 -2
- package/build-types/style-provider/test/index.d.ts.map +0 -1
- package/build-types/surface/stories/index.story.d.ts +0 -6
- package/build-types/surface/stories/index.story.d.ts.map +0 -1
- package/build-types/surface/test/index.d.ts +0 -2
- package/build-types/surface/test/index.d.ts.map +0 -1
- package/build-types/tab-panel/stories/index.story.d.ts +0 -9
- package/build-types/tab-panel/stories/index.story.d.ts.map +0 -1
- package/build-types/tab-panel/test/index.d.ts +0 -2
- package/build-types/tab-panel/test/index.d.ts.map +0 -1
- package/build-types/tabs/stories/index.story.d.ts +0 -13
- package/build-types/tabs/stories/index.story.d.ts.map +0 -1
- package/build-types/tabs/test/index.d.ts +0 -2
- package/build-types/tabs/test/index.d.ts.map +0 -1
- package/build-types/text/stories/index.story.d.ts +0 -14
- package/build-types/text/stories/index.story.d.ts.map +0 -1
- package/build-types/text/test/index.d.ts +0 -2
- package/build-types/text/test/index.d.ts.map +0 -1
- package/build-types/text-control/stories/index.story.d.ts +0 -7
- package/build-types/text-control/stories/index.story.d.ts.map +0 -1
- package/build-types/text-control/test/text-control.d.ts +0 -2
- package/build-types/text-control/test/text-control.d.ts.map +0 -1
- package/build-types/text-highlight/stories/index.story.d.ts +0 -6
- package/build-types/text-highlight/stories/index.story.d.ts.map +0 -1
- package/build-types/text-highlight/test/index.d.ts +0 -2
- package/build-types/text-highlight/test/index.d.ts.map +0 -1
- package/build-types/textarea-control/stories/index.story.d.ts +0 -6
- package/build-types/textarea-control/stories/index.story.d.ts.map +0 -1
- package/build-types/textarea-control/styles/textarea-control-styles.d.ts +0 -5
- package/build-types/textarea-control/styles/textarea-control-styles.d.ts.map +0 -1
- package/build-types/tip/stories/index.story.d.ts +0 -6
- package/build-types/tip/stories/index.story.d.ts.map +0 -1
- package/build-types/toggle-control/stories/index.story.d.ts +0 -13
- package/build-types/toggle-control/stories/index.story.d.ts.map +0 -1
- package/build-types/toggle-control/test/index.d.ts +0 -2
- package/build-types/toggle-control/test/index.d.ts.map +0 -1
- package/build-types/toggle-group-control/stories/index.story.d.ts +0 -21
- package/build-types/toggle-group-control/stories/index.story.d.ts.map +0 -1
- package/build-types/toggle-group-control/test/index.d.ts +0 -2
- package/build-types/toggle-group-control/test/index.d.ts.map +0 -1
- package/build-types/toolbar/stories/index.story.d.ts +0 -12
- package/build-types/toolbar/stories/index.story.d.ts.map +0 -1
- package/build-types/toolbar/test/index.d.ts +0 -2
- package/build-types/toolbar/test/index.d.ts.map +0 -1
- package/build-types/toolbar/test/toolbar-group.d.ts +0 -2
- package/build-types/toolbar/test/toolbar-group.d.ts.map +0 -1
- package/build-types/tools-panel/stories/index.story.d.ts +0 -11
- package/build-types/tools-panel/stories/index.story.d.ts.map +0 -1
- package/build-types/tools-panel/test/index.d.ts +0 -2
- package/build-types/tools-panel/test/index.d.ts.map +0 -1
- package/build-types/tooltip/stories/index.story.d.ts +0 -15
- package/build-types/tooltip/stories/index.story.d.ts.map +0 -1
- package/build-types/tooltip/test/index.d.ts +0 -2
- package/build-types/tooltip/test/index.d.ts.map +0 -1
- package/build-types/tooltip/test/utils/index.d.ts +0 -7
- package/build-types/tooltip/test/utils/index.d.ts.map +0 -1
- package/build-types/tree-grid/stories/index.story.d.ts +0 -6
- package/build-types/tree-grid/stories/index.story.d.ts.map +0 -1
- package/build-types/tree-grid/test/cell.d.ts +0 -2
- package/build-types/tree-grid/test/cell.d.ts.map +0 -1
- package/build-types/tree-grid/test/index.d.ts +0 -2
- package/build-types/tree-grid/test/index.d.ts.map +0 -1
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts +0 -2
- package/build-types/tree-grid/test/roving-tab-index-item.d.ts.map +0 -1
- package/build-types/tree-grid/test/roving-tab-index.d.ts +0 -2
- package/build-types/tree-grid/test/roving-tab-index.d.ts.map +0 -1
- package/build-types/tree-grid/test/row.d.ts +0 -2
- package/build-types/tree-grid/test/row.d.ts.map +0 -1
- package/build-types/tree-select/stories/index.story.d.ts +0 -6
- package/build-types/tree-select/stories/index.story.d.ts.map +0 -1
- package/build-types/truncate/stories/index.story.d.ts +0 -7
- package/build-types/truncate/stories/index.story.d.ts.map +0 -1
- package/build-types/truncate/test/index.d.ts +0 -2
- package/build-types/truncate/test/index.d.ts.map +0 -1
- package/build-types/unit-control/stories/index.story.d.ts +0 -27
- package/build-types/unit-control/stories/index.story.d.ts.map +0 -1
- package/build-types/unit-control/test/index.d.ts +0 -2
- package/build-types/unit-control/test/index.d.ts.map +0 -1
- package/build-types/unit-control/test/utils.d.ts +0 -2
- package/build-types/unit-control/test/utils.d.ts.map +0 -1
- package/build-types/utils/test/polymorphic-element.d.ts +0 -2
- package/build-types/utils/test/polymorphic-element.d.ts.map +0 -1
- package/build-types/v-stack/stories/e2e/index.story.d.ts +0 -6
- package/build-types/v-stack/stories/e2e/index.story.d.ts.map +0 -1
- package/build-types/v-stack/stories/index.story.d.ts +0 -11
- package/build-types/v-stack/stories/index.story.d.ts.map +0 -1
- package/build-types/v-stack/test/index.d.ts +0 -2
- package/build-types/v-stack/test/index.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/combobox-control.d.ts +0 -20
- package/build-types/validated-form-controls/components/combobox-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/form-token-field.d.ts +0 -3
- package/build-types/validated-form-controls/components/form-token-field.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/combobox-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/content-editable-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/custom-select-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts +0 -9
- package/build-types/validated-form-controls/components/stories/form-token-field.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts +0 -12
- package/build-types/validated-form-controls/components/stories/input-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts +0 -60
- package/build-types/validated-form-controls/components/stories/overview.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/range-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/story-utils.d.ts +0 -3
- package/build-types/validated-form-controls/components/stories/story-utils.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/textarea-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/toggle-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts +0 -6
- package/build-types/validated-form-controls/components/stories/toggle-group-control.story.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/toggle-control.d.ts +0 -7
- package/build-types/validated-form-controls/components/toggle-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts +0 -15
- package/build-types/validated-form-controls/components/toggle-group-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/control-with-error.d.ts +0 -36
- package/build-types/validated-form-controls/control-with-error.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/combobox-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/combobox-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/content-editable-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/content-editable-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/control-with-error.d.ts +0 -2
- package/build-types/validated-form-controls/test/control-with-error.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/custom-select-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/custom-select-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/form-token-field.d.ts +0 -2
- package/build-types/validated-form-controls/test/form-token-field.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/input-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/input-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/range-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/range-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/textarea-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/textarea-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/toggle-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/toggle-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/test/toggle-group-control.d.ts +0 -2
- package/build-types/validated-form-controls/test/toggle-group-control.d.ts.map +0 -1
- package/build-types/validated-form-controls/validity-indicator.d.ts +0 -6
- package/build-types/validated-form-controls/validity-indicator.d.ts.map +0 -1
- package/build-types/view/stories/index.story.d.ts +0 -6
- package/build-types/view/stories/index.story.d.ts.map +0 -1
- package/build-types/visually-hidden/stories/index.story.d.ts +0 -8
- package/build-types/visually-hidden/stories/index.story.d.ts.map +0 -1
- package/build-types/z-stack/stories/index.story.d.ts +0 -6
- package/build-types/z-stack/stories/index.story.d.ts.map +0 -1
- package/build-types/z-stack/styles.d.ts +0 -14
- package/build-types/z-stack/styles.d.ts.map +0 -1
- package/src/base-control/styles/base-control-styles.ts +0 -46
- package/src/border-box-control/styles.ts +0 -71
- package/src/border-control/styles.ts +0 -151
- package/src/box-control/styles/box-control-styles.ts +0 -34
- package/src/color-palette/styles.ts +0 -13
- package/src/combobox-control/styles.ts +0 -9
- package/src/dropdown/styles.ts +0 -33
- package/src/progress-bar/styles.ts +0 -84
- package/src/resizable-box/resize-tooltip/styles/resize-tooltip.styles.ts +0 -47
- package/src/scrollable/styles.ts +0 -57
- package/src/scrollable/test/__snapshots__/index.tsx.snap +0 -66
- package/src/textarea-control/styles/textarea-control-styles.ts +0 -90
- package/src/validated-form-controls/components/combobox-control.tsx +0 -56
- package/src/validated-form-controls/components/form-token-field.tsx +0 -57
- package/src/validated-form-controls/components/stories/combobox-control.story.tsx +0 -56
- package/src/validated-form-controls/components/stories/form-token-field.story.tsx +0 -60
- package/src/validated-form-controls/components/stories/input-control.story.tsx +0 -126
- package/src/validated-form-controls/components/stories/overview.story.tsx +0 -560
- package/src/validated-form-controls/components/stories/textarea-control.story.tsx +0 -50
- package/src/validated-form-controls/components/stories/toggle-control.story.tsx +0 -47
- package/src/validated-form-controls/components/stories/toggle-group-control.story.tsx +0 -58
- package/src/validated-form-controls/components/toggle-control.tsx +0 -40
- package/src/validated-form-controls/components/toggle-group-control.tsx +0 -55
- package/src/validated-form-controls/control-with-error.tsx +0 -321
- package/src/validated-form-controls/test/combobox-control.tsx +0 -61
- package/src/validated-form-controls/test/control-with-error.tsx +0 -577
- package/src/validated-form-controls/test/form-token-field.tsx +0 -52
- package/src/validated-form-controls/test/toggle-control.tsx +0 -49
- package/src/validated-form-controls/test/toggle-group-control.tsx +0 -28
- package/src/validated-form-controls/validity-indicator.tsx +0 -40
- package/src/z-stack/styles.ts +0 -35
- /package/src/context/test/{context-system-provider.js → context-system-provider.jsx} +0 -0
- /package/src/input-control/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/item-group/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/item-group/test/{index.js → index.jsx} +0 -0
- /package/src/menu-item/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/menu-item/test/{index.js → index.jsx} +0 -0
- /package/src/slot-fill/test/__snapshots__/{slot.js.snap → slot.jsx.snap} +0 -0
- /package/src/slot-fill/test/{index.js → index.jsx} +0 -0
- /package/src/slot-fill/test/{slot.js → slot.jsx} +0 -0
- /package/src/utils/hooks/test/{use-controlled-state.js → use-controlled-state.jsx} +0 -0
- /package/src/utils/hooks/test/{use-controlled-value.js → use-controlled-value.jsx} +0 -0
- /package/src/utils/hooks/test/{use-cx.js → use-cx.jsx} +0 -0
- /package/src/utils/test/{get-node-text.js → get-node-text.jsx} +0 -0
- /package/src/view/test/__snapshots__/{index.js.snap → index.jsx.snap} +0 -0
- /package/src/view/test/{index.js → index.jsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,85 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 40.1.0-next.0 (2026-08-28)
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
|
|
9
|
+
- `Popover`: Widen `offset` to also accept an object with separate main and cross axis offsets. The same applies to `BorderBoxControl`'s `popoverOffset` prop ([#82060](https://github.com/WordPress/gutenberg/pull/82060)).
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- `Snackbar`: Restart the auto-dismiss timer when a notice is recreated with the same ID during removal ([#81764](https://github.com/WordPress/gutenberg/pull/81764)).
|
|
14
|
+
- `ToolsPanel`: Stop a panel item whose `panelId` doesn't match the panel from writing its value into that panel's menu, which could leave an orphaned entry in the dropdown ([#82127](https://github.com/WordPress/gutenberg/pull/82127)).
|
|
15
|
+
|
|
16
|
+
### Internal
|
|
17
|
+
|
|
18
|
+
- Use the `.jsx` extension for JavaScript source files that contain JSX ([#80990](https://github.com/WordPress/gutenberg/pull/80990)).
|
|
19
|
+
- Remove tsconfig project references to packages that are not dependencies ([#82106](https://github.com/WordPress/gutenberg/pull/82106)).
|
|
20
|
+
|
|
21
|
+
## 40.0.0 (2026-08-26)
|
|
22
|
+
|
|
23
|
+
### Breaking Changes
|
|
24
|
+
|
|
25
|
+
- Components that compose Emotion style fragments with `cx()` should pass source-order-dependent fragments in a single `css()` call. Passing separate fragments can change override order after the following components stopped rendering styles through Emotion:
|
|
26
|
+
- `DropdownContentWrapper` ([#81522](https://github.com/WordPress/gutenberg/pull/81522))
|
|
27
|
+
- `ResizableBox` ([#81792](https://github.com/WordPress/gutenberg/pull/81792))
|
|
28
|
+
- `ComboboxControl`: ([#80471](https://github.com/WordPress/gutenberg/pull/80471))
|
|
29
|
+
- `GradientPicker`, `ColorPalette`: ([#80473](https://github.com/WordPress/gutenberg/pull/80473))
|
|
30
|
+
- `BaseControl` ([#80001](https://github.com/WordPress/gutenberg/pull/80001))
|
|
31
|
+
- `BorderBoxControl`, `BorderControl` ([#80437](https://github.com/WordPress/gutenberg/pull/80437))
|
|
32
|
+
- `ProgressBar` ([#80512](https://github.com/WordPress/gutenberg/pull/80512))
|
|
33
|
+
- `TextareaControl` ([#81353](https://github.com/WordPress/gutenberg/pull/81353))
|
|
34
|
+
- `ZStack` ([#80514](https://github.com/WordPress/gutenberg/pull/80514))
|
|
35
|
+
- `BoxControl` ([#80715](https://github.com/WordPress/gutenberg/pull/80715))
|
|
36
|
+
- `Scrollable` ([#80694](https://github.com/WordPress/gutenberg/pull/80694))
|
|
37
|
+
|
|
38
|
+
### Enhancements
|
|
39
|
+
|
|
40
|
+
- `RadioControl`: Allow individual options to be disabled while the rest of the group remains available ([#82026](https://github.com/WordPress/gutenberg/pull/82026)).
|
|
41
|
+
- `PaletteEdit`: Add a duotone variant. Passing `duotones` (with an optional `colorPalette` for the shadows and highlights pickers) edits duotone presets with the same UI as colors and gradients. Palette colors that do not resolve to a concrete value, such as `color-mix()`, are left out of the duotone pickers, since a duotone built from one cannot be rendered, and the rest are normalized to hex, since the front end's duotone parser does not accept CSS named colors ([#81605](https://github.com/WordPress/gutenberg/pull/81605)).
|
|
42
|
+
- `DuotonePicker`: Add `selectedSlug` prop for slug-based selection and pass the picked preset's index and slug to `onChange`, so two presets sharing a pair of colors keep their identity ([#81605](https://github.com/WordPress/gutenberg/pull/81605)).
|
|
43
|
+
- `PaletteEdit`: Name the swatch picker after the palette's heading, so it is announced as Theme, Default or Custom rather than an unlabelled list ([#81605](https://github.com/WordPress/gutenberg/pull/81605)).
|
|
44
|
+
- `ConfirmDialog`: Add the `title` prop to the types; the component already forwarded it to the underlying `Modal` ([#81847](https://github.com/WordPress/gutenberg/pull/81847)).
|
|
45
|
+
- `TextControl`, `TextareaControl`, `FormTokenField`, `ContentEditableControl`, `ComboboxControl`: Align focus and hover styles with the design system ([#81357](https://github.com/WordPress/gutenberg/pull/81357)).
|
|
46
|
+
- `InputControl`, `SelectControl`, `CustomSelectControl`: Align focus rings with the design system ([#80417](https://github.com/WordPress/gutenberg/pull/80417)).
|
|
47
|
+
- `BoxControl`: Keep the reset button focusable when disabled, preventing accidental focus loss ([#80715](https://github.com/WordPress/gutenberg/pull/80715)).
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
- `PaletteEdit`: Expose color, gradient, and duotone swatches as command buttons because activating them opens an editor instead of selecting a value. Add a `presentation` prop to `CircularOptionPicker`, `ColorPalette`, `GradientPicker`, and `DuotonePicker`, and deprecate `asButtons` in favor of `presentation="toggle-buttons"` ([#82023](https://github.com/WordPress/gutenberg/pull/82023)).
|
|
52
|
+
- `ConfirmDialog`: Preserve `title` as the dialog's accessible name when the header is hidden ([#81847](https://github.com/WordPress/gutenberg/pull/81847)).
|
|
53
|
+
- `DuotonePicker`: Do not render the custom controls wrapper when `disableCustomDuotone` is set, so a read-only picker no longer adds trailing padding below its swatches ([#81605](https://github.com/WordPress/gutenberg/pull/81605)).
|
|
54
|
+
- `DuotonePicker`: Stop the duotone bar offering to move its control points. It announced that arrow keys and dragging change the gradient position, but a duotone is two colors with no positions, so the move was discarded. `CustomGradientBar` gains a `disablePositioning` prop for this ([#81850](https://github.com/WordPress/gutenberg/pull/81850)).
|
|
55
|
+
- `Modal`: Prevent an Escape key press that dismisses the modal from propagating to underlying overlays. ([#81785](https://github.com/WordPress/gutenberg/pull/81785))
|
|
56
|
+
- `BoxControl`: Update the opposite side when ALT is held on the left or right input, which each updated themselves instead ([#81530](https://github.com/WordPress/gutenberg/pull/81530)).
|
|
57
|
+
- `InputControl`: Vertically center the value of date and time inputs in Safari ([#81361](https://github.com/WordPress/gutenberg/pull/81361)).
|
|
58
|
+
- `InputControl`: Hide the value-like placeholder Safari renders in empty date and time inputs (e.g. `12:30`), which was indistinguishable from a committed value ([#81991](https://github.com/WordPress/gutenberg/pull/81991)).
|
|
59
|
+
- `ControlWithError`: Re-read the target's validation message when an `invalid` event is received, so a message that changed without a re-render in between (e.g. a programmatic value change followed by a synthetic `invalid` event) is not revealed stale or empty. While a `validating` custom validity is pending, the message is left untouched so the pending indicator keeps showing ([#81440](https://github.com/WordPress/gutenberg/pull/81440)).
|
|
60
|
+
- `Button`: Apply the `has-text` class when the children that render the label are conditional, wrapped in an element, or preceded by other children, so that such buttons are no longer styled as icon-only buttons ([#81521](https://github.com/WordPress/gutenberg/pull/81521)).
|
|
61
|
+
|
|
62
|
+
### TypeScript
|
|
63
|
+
|
|
64
|
+
- `ComboboxControl`: Narrow the `onChange` callback parameter type to `string | null`, matching the values the component actually passes. The previous indexed-access type on the optional `value` prop leaked an accidental `undefined` into the union ([#81568](https://github.com/WordPress/gutenberg/pull/81568)).
|
|
65
|
+
|
|
66
|
+
### Internal
|
|
67
|
+
|
|
68
|
+
- Update `@ariakit/react` to 0.4.37 and `@ariakit/test` to 0.7.4 ([#81080](https://github.com/WordPress/gutenberg/pull/81080)).
|
|
69
|
+
- Point tsconfig references at split dependencies' build projects. ([#81514](https://github.com/WordPress/gutenberg/pull/81514), [#81516](https://github.com/WordPress/gutenberg/pull/81516), [#81518](https://github.com/WordPress/gutenberg/pull/81518))
|
|
70
|
+
- Update `is-plain-object` to 5.1.0, which ships its own types, and drop the `@ts-expect-error` that the missing declaration required ([#81926](https://github.com/WordPress/gutenberg/pull/81926)).
|
|
71
|
+
- Split tsconfig into a build project and a default dev project so dev files are type checked without publishing their declarations. ([#81515](https://github.com/WordPress/gutenberg/pull/81515))
|
|
72
|
+
- Remove `ValidatedComboboxControl` from the private APIs; it now lives internally in `@wordpress/dataviews`, its only consumer ([#81449](https://github.com/WordPress/gutenberg/pull/81449)).
|
|
73
|
+
- Remove `ValidatedFormTokenField` from the private APIs; it now lives internally in `@wordpress/dataviews`, its only consumer ([#81451](https://github.com/WordPress/gutenberg/pull/81451)).
|
|
74
|
+
- Remove `ValidatedToggleControl` from the private APIs; it now lives internally in `@wordpress/dataviews`, its only consumer ([#81492](https://github.com/WordPress/gutenberg/pull/81492)).
|
|
75
|
+
- Remove `ValidatedToggleGroupControl` from the private APIs; it now lives internally in `@wordpress/dataviews`, its only consumer ([#81450](https://github.com/WordPress/gutenberg/pull/81450)).
|
|
76
|
+
- `ToggleGroupControl`: Streamline focus ring color styles ([#81242](https://github.com/WordPress/gutenberg/pull/81242)).
|
|
77
|
+
- `ControlWithError`: Remove the internal implementation in favor of the `ControlWithError` component from `@wordpress/ui` ([#81230](https://github.com/WordPress/gutenberg/issues/81230)) ([#81574](https://github.com/WordPress/gutenberg/pull/81574)).
|
|
78
|
+
- Remove the unused `components-validated-control__indicator*` styles; the indicator is now rendered and styled by `ValidityIndicator` from `@wordpress/ui` ([#81230](https://github.com/WordPress/gutenberg/issues/81230)) ([#81574](https://github.com/WordPress/gutenberg/pull/81574)).
|
|
79
|
+
- Deprecate `ValidatedInputControl` in the private APIs; use `ValidatedInputControl` from `@wordpress/ui` instead ([#81627](https://github.com/WordPress/gutenberg/pull/81627)).
|
|
80
|
+
- Deprecate `ValidatedTextareaControl` in the private APIs; use `ValidatedTextareaControl` from `@wordpress/ui` instead ([#81984](https://github.com/WordPress/gutenberg/pull/81984)).
|
|
81
|
+
- `BorderBoxControl`: Migrate styles from Emotion to an SCSS Module ([#80437](https://github.com/WordPress/gutenberg/pull/80437)).
|
|
82
|
+
- `BorderControl`: Migrate styles from Emotion to an SCSS Module ([#80437](https://github.com/WordPress/gutenberg/pull/80437)).
|
|
83
|
+
|
|
5
84
|
## 39.0.0 (2026-08-12)
|
|
6
85
|
|
|
7
86
|
### Breaking Changes
|
package/CONTRIBUTING.md
CHANGED
|
@@ -346,7 +346,7 @@ function HookExample() {
|
|
|
346
346
|
|
|
347
347
|
## TypeScript
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
All new components should be written in TypeScript.
|
|
350
350
|
|
|
351
351
|
Extend existing components’ props if possible, especially when a component internally forwards its props to another component in the package:
|
|
352
352
|
|
|
@@ -680,9 +680,9 @@ As a result of the above guidelines, all new components (except for shared utili
|
|
|
680
680
|
```text
|
|
681
681
|
component-name/
|
|
682
682
|
├── stories
|
|
683
|
-
│ └── index.
|
|
683
|
+
│ └── index.ts
|
|
684
684
|
├── test
|
|
685
|
-
│ └── index.
|
|
685
|
+
│ └── index.ts
|
|
686
686
|
├── component.tsx
|
|
687
687
|
├── context.ts
|
|
688
688
|
├── hook.ts
|
|
@@ -709,9 +709,9 @@ component-family-name/
|
|
|
709
709
|
│ ├── README.md
|
|
710
710
|
│ └── style.module.scss
|
|
711
711
|
├── stories
|
|
712
|
-
│ └── index.
|
|
712
|
+
│ └── index.ts
|
|
713
713
|
├── test
|
|
714
|
-
│ └── index.
|
|
714
|
+
│ └── index.ts
|
|
715
715
|
├── context.ts
|
|
716
716
|
├── index.ts
|
|
717
717
|
├── types.ts
|
|
@@ -753,19 +753,18 @@ If possible, the legacy version of the component should be rewritten so that it
|
|
|
753
753
|
function LegacyComponent( props ) {
|
|
754
754
|
const newProps = useTranslateLegacyPropsToNewProps( props );
|
|
755
755
|
|
|
756
|
-
return
|
|
756
|
+
return <NewComponentImplementation { ...newProps } />;
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
// new-component/index.tsx
|
|
760
760
|
function NewComponent( props ) {
|
|
761
|
-
return
|
|
761
|
+
return <NewComponentImplementation { ...props } />;
|
|
762
762
|
}
|
|
763
763
|
|
|
764
764
|
// new-component/implementation.tsx
|
|
765
765
|
function NewComponentImplementation( props ) {
|
|
766
766
|
// implementation
|
|
767
767
|
}
|
|
768
|
-
|
|
769
768
|
```
|
|
770
769
|
|
|
771
770
|
In case that is not possible (eg. too difficult to reconciliate new and legacy implementations, or impossible to preserve backward compatibility), then the legacy implementation can stay as-is.
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// packages/components/src/base-control/styles/base-control-styles.
|
|
30
|
+
// packages/components/src/base-control/styles/base-control-styles.tsx
|
|
31
31
|
var base_control_styles_exports = {};
|
|
32
32
|
__export(base_control_styles_exports, {
|
|
33
33
|
StyledField: () => StyledField,
|
|
@@ -37,51 +37,156 @@ __export(base_control_styles_exports, {
|
|
|
37
37
|
Wrapper: () => Wrapper
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(base_control_styles_exports);
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
var import_clsx = __toESM(require("clsx"));
|
|
41
|
+
var import_element = require("@wordpress/element");
|
|
42
|
+
var import_polymorphic_element = require("../../utils/polymorphic-element.cjs");
|
|
43
|
+
|
|
44
|
+
// packages/style-runtime/src/index.ts
|
|
45
|
+
var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
|
|
46
|
+
function getRuntime() {
|
|
47
|
+
const globalScope = globalThis;
|
|
48
|
+
if (globalScope.__wpStyleRuntime) {
|
|
49
|
+
return globalScope.__wpStyleRuntime;
|
|
50
|
+
}
|
|
51
|
+
globalScope.__wpStyleRuntime = {
|
|
52
|
+
documents: /* @__PURE__ */ new Map(),
|
|
53
|
+
styles: /* @__PURE__ */ new Map(),
|
|
54
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
55
|
+
};
|
|
56
|
+
if (typeof document !== "undefined") {
|
|
57
|
+
registerDocument(document);
|
|
58
|
+
}
|
|
59
|
+
return globalScope.__wpStyleRuntime;
|
|
46
60
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
61
|
+
function documentContainsStyleHash(targetDocument, hash) {
|
|
62
|
+
if (!targetDocument.head) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
|
|
66
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
function injectStyle(targetDocument, hash, css) {
|
|
73
|
+
if (!targetDocument.head) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const runtime = getRuntime();
|
|
77
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
78
|
+
if (!injectedStyles) {
|
|
79
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
80
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
81
|
+
}
|
|
82
|
+
if (injectedStyles.has(hash)) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (documentContainsStyleHash(targetDocument, hash)) {
|
|
86
|
+
injectedStyles.add(hash);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const style = targetDocument.createElement("style");
|
|
90
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
|
|
91
|
+
style.appendChild(targetDocument.createTextNode(css));
|
|
92
|
+
targetDocument.head.appendChild(style);
|
|
93
|
+
injectedStyles.add(hash);
|
|
94
|
+
}
|
|
95
|
+
function registerDocument(targetDocument) {
|
|
96
|
+
const runtime = getRuntime();
|
|
97
|
+
runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
|
|
98
|
+
for (const [hash, css] of runtime.styles) {
|
|
99
|
+
injectStyle(targetDocument, hash, css);
|
|
100
|
+
}
|
|
101
|
+
return () => {
|
|
102
|
+
const count = runtime.documents.get(targetDocument);
|
|
103
|
+
if (count === void 0) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (count <= 1) {
|
|
107
|
+
runtime.documents.delete(targetDocument);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function registerStyle(hash, css) {
|
|
114
|
+
const runtime = getRuntime();
|
|
115
|
+
runtime.styles.set(hash, css);
|
|
116
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
117
|
+
injectStyle(targetDocument, hash, css);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// packages/components/src/base-control/styles/style.module.scss
|
|
122
|
+
if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
|
|
123
|
+
registerStyle("bae7d73a59", "._94dff8a2f7c49fc8__wrapper{box-sizing:border-box;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}._94dff8a2f7c49fc8__wrapper *,._94dff8a2f7c49fc8__wrapper :after,._94dff8a2f7c49fc8__wrapper :before{box-sizing:inherit}.components-panel__row .d9ac8e2c0db95cc7__field{margin-bottom:inherit}.a54361fe302593c3__label{display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-bottom:8px;padding:0;text-transform:uppercase}.de68669d18f359f5__help{text-wrap:pretty;color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));font-size:12px;font-style:normal;margin-bottom:0;margin-top:8px}");
|
|
124
|
+
}
|
|
125
|
+
var style_module_default = { "wrapper": "_94dff8a2f7c49fc8__wrapper", "field": "d9ac8e2c0db95cc7__field", "label": "a54361fe302593c3__label", "help": "de68669d18f359f5__help" };
|
|
126
|
+
|
|
127
|
+
// packages/components/src/base-control/styles/base-control-styles.tsx
|
|
128
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
129
|
+
function UnforwardedWrapper({
|
|
130
|
+
className,
|
|
131
|
+
...props
|
|
132
|
+
}, ref) {
|
|
133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_polymorphic_element.PolymorphicElement, {
|
|
134
|
+
ref,
|
|
135
|
+
...props,
|
|
136
|
+
className: (0, import_clsx.default)(style_module_default.wrapper, className)
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function UnforwardedStyledField({
|
|
140
|
+
className,
|
|
141
|
+
...props
|
|
142
|
+
}, ref) {
|
|
143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_polymorphic_element.PolymorphicElement, {
|
|
144
|
+
ref,
|
|
145
|
+
...props,
|
|
146
|
+
className: (0, import_clsx.default)(style_module_default.field, className)
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function UnforwardedStyledLabel({
|
|
150
|
+
as,
|
|
151
|
+
className,
|
|
152
|
+
...props
|
|
153
|
+
}, ref) {
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_polymorphic_element.PolymorphicElement, {
|
|
155
|
+
as: as ?? "label",
|
|
156
|
+
ref,
|
|
157
|
+
...props,
|
|
158
|
+
className: (0, import_clsx.default)(style_module_default.label, className)
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function UnforwardedStyledHelp({
|
|
162
|
+
as,
|
|
163
|
+
className,
|
|
164
|
+
...props
|
|
165
|
+
}, ref) {
|
|
166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_polymorphic_element.PolymorphicElement, {
|
|
167
|
+
as: as ?? "p",
|
|
168
|
+
ref,
|
|
169
|
+
...props,
|
|
170
|
+
className: (0, import_clsx.default)(style_module_default.help, className)
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function UnforwardedStyledVisualLabel({
|
|
174
|
+
as,
|
|
175
|
+
className,
|
|
176
|
+
...props
|
|
177
|
+
}, ref) {
|
|
178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_polymorphic_element.PolymorphicElement, {
|
|
179
|
+
as: as ?? "span",
|
|
180
|
+
ref,
|
|
181
|
+
...props,
|
|
182
|
+
className: (0, import_clsx.default)(style_module_default.label, className)
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
var Wrapper = (0, import_element.forwardRef)(UnforwardedWrapper);
|
|
186
|
+
var StyledField = (0, import_element.forwardRef)(UnforwardedStyledField);
|
|
187
|
+
var StyledLabel = (0, import_element.forwardRef)(UnforwardedStyledLabel);
|
|
188
|
+
var StyledHelp = (0, import_element.forwardRef)(UnforwardedStyledHelp);
|
|
189
|
+
var StyledVisualLabel = (0, import_element.forwardRef)(UnforwardedStyledVisualLabel);
|
|
85
190
|
// Annotate the CommonJS export names for ESM import in node:
|
|
86
191
|
0 && (module.exports = {
|
|
87
192
|
StyledField,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/base-control/styles/base-control-styles.ts"],
|
|
4
|
-
"sourcesContent": ["import _styled from \"@emotion/styled/base\";\nfunction _EMOTION_STRINGIFIED_CSS_ERROR__() { return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\"; }\nimport { css } from '@emotion/react';\nimport { baseLabelTypography, boxSizingReset, font, COLORS } from '../../utils';\nimport { space } from '../../utils/space';\nexport const Wrapper = /*#__PURE__*/_styled(\"div\", process.env.NODE_ENV === \"production\" ? {\n target: \"ej5x27r4\"\n} : {\n target: \"ej5x27r4\",\n label: \"Wrapper\"\n})(\"font-family:\", font('default.fontFamily'), \";font-size:\", font('default.fontSize'), \";\", boxSizingReset, \";\" + (process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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GlzIHJlbmRlcmVkIGFzIGEgbGVnZW5kLlxuXHQgKi9cblx0cGFkZGluZzogMDtcbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRMYWJlbCA9IHN0eWxlZC5sYWJlbGBcblx0JHsgbGFiZWxTdHlsZXMgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlbHAgPSBzdHlsZWQucGBcblx0bWFyZ2luLXRvcDogJHsgc3BhY2UoIDIgKSB9O1xuXHRtYXJnaW4tYm90dG9tOiAwO1xuXHRmb250LXNpemU6ICR7IGZvbnQoICdoZWxwVGV4dC5mb250U2l6ZScgKSB9O1xuXHRmb250LXN0eWxlOiBub3JtYWw7XG5cdGNvbG9yOiAkeyBDT0xPUlMuZ3JheVsgNzAwIF0gfTtcblx0dGV4dC13cmFwOiBwcmV0dHk7XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVmlzdWFsTGFiZWwgPSBzdHlsZWQuc3BhbmBcblx0JHsgbGFiZWxTdHlsZXMgfVxuYDtcbiJdfQ== */\"));\nexport const StyledField = /*#__PURE__*/_styled(\"div\", process.env.NODE_ENV === \"production\" ? {\n target: \"ej5x27r3\"\n} : {\n target: \"ej5x27r3\",\n label: \"StyledField\"\n})(process.env.NODE_ENV === \"production\" ? {\n name: \"1chyuqs\",\n styles: \".components-panel__row &{margin-bottom:inherit;}\"\n} : {\n name: \"1chyuqs\",\n styles: \".components-panel__row &{margin-bottom:inherit;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWXFDIiwiZmlsZSI6ImJhc2UtY29udHJvbC1zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICd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2luLXRvcDogJHsgc3BhY2UoIDIgKSB9O1xuXHRtYXJnaW4tYm90dG9tOiAwO1xuXHRmb250LXNpemU6ICR7IGZvbnQoICdoZWxwVGV4dC5mb250U2l6ZScgKSB9O1xuXHRmb250LXN0eWxlOiBub3JtYWw7XG5cdGNvbG9yOiAkeyBDT0xPUlMuZ3JheVsgNzAwIF0gfTtcblx0dGV4dC13cmFwOiBwcmV0dHk7XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkVmlzdWFsTGFiZWwgPSBzdHlsZWQuc3BhbmBcblx0JHsgbGFiZWxTdHlsZXMgfVxuYDtcbiJdfQ== */\",\n toString: _EMOTION_STRINGIFIED_CSS_ERROR__\n});\nconst labelStyles = /*#__PURE__*/css(baseLabelTypography, \";display:block;margin-bottom:\", space(2), \";padding:0;\" + (process.env.NODE_ENV === \"production\" ? \"\" : \";label:labelStyles;\"), process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0J1QiIsImZpbGUiOiJiYXNlLWNvbnRyb2wtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgYmFzZUxhYmVsVHlwb2dyYXBoeSwgYm94U2l6aW5nUmVzZXQsIGZvbnQsIENPTE9SUyB9IGZyb20gJy4uLy4uL3V0aWxzJztcbmltcG9ydCB7IHNwYWNlIH0gZnJvbSAnLi4vLi4vdXRpbHMvc3BhY2UnO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgXG5cdGZvbnQtZmFtaWx5OiAkeyBmb250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kLnNwYW5gXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG4iXX0= */\");\nexport const StyledLabel = /*#__PURE__*/_styled(\"label\", process.env.NODE_ENV === \"production\" ? {\n target: \"ej5x27r2\"\n} : {\n target: \"ej5x27r2\",\n label: \"StyledLabel\"\n})(labelStyles, \";\" + (process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOEJ1QyIsImZpbGUiOiJiYXNlLWNvbnRyb2wtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgYmFzZUxhYmVsVHlwb2dyYXBoeSwgYm94U2l6aW5nUmVzZXQsIGZvbnQsIENPTE9SUyB9IGZyb20gJy4uLy4uL3V0aWxzJztcbmltcG9ydCB7IHNwYWNlIH0gZnJvbSAnLi4vLi4vdXRpbHMvc3BhY2UnO1xuXG5leHBvcnQgY29uc3QgV3JhcHBlciA9IHN0eWxlZC5kaXZgXG5cdGZvbnQtZmFtaWx5OiAkeyBmb250KCAnZGVmYXVsdC5mb250RmFtaWx5JyApIH07XG5cdGZvbnQtc2l6ZTogJHsgZm9udCggJ2RlZmF1bHQuZm9udFNpemUnICkgfTtcblxuXHQkeyBib3hTaXppbmdSZXNldCB9XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkRmllbGQgPSBzdHlsZWQuZGl2YFxuXHQuY29tcG9uZW50cy1wYW5lbF9fcm93ICYge1xuXHRcdG1hcmdpbi1ib3R0b206IGluaGVyaXQ7XG5cdH1cbmA7XG5cbmNvbnN0IGxhYmVsU3R5bGVzID0gY3NzYFxuXHQkeyBiYXNlTGFiZWxUeXBvZ3JhcGh5IH07XG5cblx0ZGlzcGxheTogYmxvY2s7XG5cdG1hcmdpbi1ib3R0b206ICR7IHNwYWNlKCAyICkgfTtcblx0LyoqXG5cdCAqIFJlbW92ZXMgQ2hyb21lL1NhZmFyaS9GaXJlZm94IHVzZXIgYWdlbnQgc3R5bGVzaGVldCBwYWRkaW5nIGZyb21cblx0ICogU3R5bGVkTGFiZWwgd2hlbiBpdCBpcyByZW5kZXJlZCBhcyBhIGxlZ2VuZC5cblx0ICovXG5cdHBhZGRpbmc6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkTGFiZWwgPSBzdHlsZWQubGFiZWxgXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRIZWxwID0gc3R5bGVkLnBgXG5cdG1hcmdpbi10b3A6ICR7IHNwYWNlKCAyICkgfTtcblx0bWFyZ2luLWJvdHRvbTogMDtcblx0Zm9udC1zaXplOiAkeyBmb250KCAnaGVscFRleHQuZm9udFNpemUnICkgfTtcblx0Zm9udC1zdHlsZTogbm9ybWFsO1xuXHRjb2xvcjogJHsgQ09MT1JTLmdyYXlbIDcwMCBdIH07XG5cdHRleHQtd3JhcDogcHJldHR5O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZpc3VhbExhYmVsID0gc3R5bGVkLnNwYW5gXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG4iXX0= */\"));\nexport const StyledHelp = /*#__PURE__*/_styled(\"p\", process.env.NODE_ENV === \"production\" ? {\n target: \"ej5x27r1\"\n} : {\n target: \"ej5x27r1\",\n label: \"StyledHelp\"\n})(\"margin-top:\", space(2), \";margin-bottom:0;font-size:\", font('helpText.fontSize'), \";font-style:normal;color:\", COLORS.gray[700], \";text-wrap:pretty;\" + (process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64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U3R5bGVkTGFiZWwgd2hlbiBpdCBpcyByZW5kZXJlZCBhcyBhIGxlZ2VuZC5cblx0ICovXG5cdHBhZGRpbmc6IDA7XG5gO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkTGFiZWwgPSBzdHlsZWQubGFiZWxgXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG5cbmV4cG9ydCBjb25zdCBTdHlsZWRIZWxwID0gc3R5bGVkLnBgXG5cdG1hcmdpbi10b3A6ICR7IHNwYWNlKCAyICkgfTtcblx0bWFyZ2luLWJvdHRvbTogMDtcblx0Zm9udC1zaXplOiAkeyBmb250KCAnaGVscFRleHQuZm9udFNpemUnICkgfTtcblx0Zm9udC1zdHlsZTogbm9ybWFsO1xuXHRjb2xvcjogJHsgQ09MT1JTLmdyYXlbIDcwMCBdIH07XG5cdHRleHQtd3JhcDogcHJldHR5O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZpc3VhbExhYmVsID0gc3R5bGVkLnNwYW5gXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG4iXX0= */\"));\nexport const StyledVisualLabel = /*#__PURE__*/_styled(\"span\", process.env.NODE_ENV === \"production\" ? {\n target: \"ej5x27r0\"\n} : {\n target: \"ej5x27r0\",\n label: \"StyledVisualLabel\"\n})(labelStyles, \";\" + (process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJhc2UtY29udHJvbC1zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkM0QyIsImZpbGUiOiJiYXNlLWNvbnRyb2wtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgYmF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dHRvbTogMDtcblx0Zm9udC1zaXplOiAkeyBmb250KCAnaGVscFRleHQuZm9udFNpemUnICkgfTtcblx0Zm9udC1zdHlsZTogbm9ybWFsO1xuXHRjb2xvcjogJHsgQ09MT1JTLmdyYXlbIDcwMCBdIH07XG5cdHRleHQtd3JhcDogcHJldHR5O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZFZpc3VhbExhYmVsID0gc3R5bGVkLnNwYW5gXG5cdCR7IGxhYmVsU3R5bGVzIH1cbmA7XG4iXX0= */\"));"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/base-control/styles/base-control-styles.tsx", "../../../../style-runtime/src/index.ts", "../../../src/base-control/styles/style.module.scss"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from '@wordpress/element';\nimport { PolymorphicElement } from '../../utils/polymorphic-element';\nimport styles from './style.module.scss';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction UnforwardedWrapper({\n className,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(PolymorphicElement, {\n ref: ref,\n ...props,\n className: clsx(styles.wrapper, className)\n });\n}\nfunction UnforwardedStyledField({\n className,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(PolymorphicElement, {\n ref: ref,\n ...props,\n className: clsx(styles.field, className)\n });\n}\nfunction UnforwardedStyledLabel({\n as,\n className,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(PolymorphicElement, {\n as: as ?? 'label',\n ref: ref,\n ...props,\n className: clsx(styles.label, className)\n });\n}\nfunction UnforwardedStyledHelp({\n as,\n className,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(PolymorphicElement, {\n as: as ?? 'p',\n ref: ref,\n ...props,\n className: clsx(styles.help, className)\n });\n}\nfunction UnforwardedStyledVisualLabel({\n as,\n className,\n ...props\n}, ref) {\n return /*#__PURE__*/_jsx(PolymorphicElement, {\n as: as ?? 'span',\n ref: ref,\n ...props,\n className: clsx(styles.label, className)\n });\n}\nexport const Wrapper = forwardRef(UnforwardedWrapper);\nexport const StyledField = forwardRef(UnforwardedStyledField);\nexport const StyledLabel = forwardRef(UnforwardedStyledLabel);\nexport const StyledHelp = forwardRef(UnforwardedStyledHelp);\nexport const StyledVisualLabel = forwardRef(UnforwardedStyledVisualLabel);", "const STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n const globalScope = globalThis;\n if (globalScope.__wpStyleRuntime) {\n return globalScope.__wpStyleRuntime;\n }\n globalScope.__wpStyleRuntime = {\n documents: new Map(),\n styles: new Map(),\n injectedStyles: new WeakMap()\n };\n if (typeof document !== 'undefined') {\n registerDocument(document);\n }\n return globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(targetDocument, hash) {\n if (!targetDocument.head) {\n return false;\n }\n for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {\n if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle(targetDocument, hash, css) {\n if (!targetDocument.head) {\n return;\n }\n const runtime = getRuntime();\n let injectedStyles = runtime.injectedStyles.get(targetDocument);\n if (!injectedStyles) {\n injectedStyles = new Set();\n runtime.injectedStyles.set(targetDocument, injectedStyles);\n }\n if (injectedStyles.has(hash)) {\n return;\n }\n\n // Older generated CSS module output can still inject matching style tags\n // after this document's cache is created, so keep the DOM as the fallback\n // source of truth on cache misses.\n if (documentContainsStyleHash(targetDocument, hash)) {\n injectedStyles.add(hash);\n return;\n }\n const style = targetDocument.createElement('style');\n style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);\n style.appendChild(targetDocument.createTextNode(css));\n targetDocument.head.appendChild(style);\n injectedStyles.add(hash);\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument(targetDocument) {\n const runtime = getRuntime();\n runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);\n for (const [hash, css] of runtime.styles) {\n injectStyle(targetDocument, hash, css);\n }\n return () => {\n const count = runtime.documents.get(targetDocument);\n if (count === undefined) {\n return;\n }\n if (count <= 1) {\n runtime.documents.delete(targetDocument);\n return;\n }\n runtime.documents.set(targetDocument, count - 1);\n };\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle(hash, css) {\n const runtime = getRuntime();\n runtime.styles.set(hash, css);\n for (const targetDocument of runtime.documents.keys()) {\n injectStyle(targetDocument, hash, css);\n }\n}", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"bae7d73a59\", \"._94dff8a2f7c49fc8__wrapper{box-sizing:border-box;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}._94dff8a2f7c49fc8__wrapper *,._94dff8a2f7c49fc8__wrapper :after,._94dff8a2f7c49fc8__wrapper :before{box-sizing:inherit}.components-panel__row .d9ac8e2c0db95cc7__field{margin-bottom:inherit}.a54361fe302593c3__label{display:block;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:1.4;margin-bottom:8px;padding:0;text-transform:uppercase}.de68669d18f359f5__help{text-wrap:pretty;color:var(--wp-components-color-gray-700,var(--wpds-color-foreground-content-neutral-weak,#707070));font-size:12px;font-style:normal;margin-bottom:0;margin-top:8px}\");\n}\nexport default {\"wrapper\":\"_94dff8a2f7c49fc8__wrapper\",\"field\":\"d9ac8e2c0db95cc7__field\",\"label\":\"a54361fe302593c3__label\",\"help\":\"de68669d18f359f5__help\"};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,qBAA2B;AAC3B,iCAAmC;;;ACFnC,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACpB,QAAM,cAAc;AACpB,MAAI,YAAY,kBAAkB;AAChC,WAAO,YAAY;AAAA,EACrB;AACA,cAAY,mBAAmB;AAAA,IAC7B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC9B;AACA,MAAI,OAAO,aAAa,aAAa;AACnC,qBAAiB,QAAQ;AAAA,EAC3B;AACA,SAAO,YAAY;AACrB;AAUA,SAAS,0BAA0B,gBAAgB,MAAM;AACvD,MAAI,CAAC,eAAe,MAAM;AACxB,WAAO;AAAA,EACT;AACA,aAAW,SAAS,eAAe,KAAK,iBAAiB,SAAS,oBAAoB,GAAG,GAAG;AAC1F,QAAI,MAAM,aAAa,oBAAoB,MAAM,MAAM;AACrD,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B;AAAA,IAC3C,IAAI,MAAM;AAAA,IACV;AAAA,IACA,GAAG;AAAA,IACH,eAAW,YAAAC,SAAK,qBAAO,OAAO,SAAS;AAAA,EACzC,CAAC;AACH;AACO,IAAM,cAAU,2BAAW,kBAAkB;AAC7C,IAAM,kBAAc,2BAAW,sBAAsB;AACrD,IAAM,kBAAc,2BAAW,sBAAsB;AACrD,IAAM,iBAAa,2BAAW,qBAAqB;AACnD,IAAM,wBAAoB,2BAAW,4BAA4B;",
|
|
6
|
+
"names": ["_jsx", "clsx"]
|
|
7
7
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// packages/components/src/border-box-control/border-box-control/hook.ts
|
|
@@ -34,10 +24,93 @@ __export(hook_exports, {
|
|
|
34
24
|
});
|
|
35
25
|
module.exports = __toCommonJS(hook_exports);
|
|
36
26
|
var import_element = require("@wordpress/element");
|
|
37
|
-
|
|
27
|
+
|
|
28
|
+
// packages/style-runtime/src/index.ts
|
|
29
|
+
var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
|
|
30
|
+
function getRuntime() {
|
|
31
|
+
const globalScope = globalThis;
|
|
32
|
+
if (globalScope.__wpStyleRuntime) {
|
|
33
|
+
return globalScope.__wpStyleRuntime;
|
|
34
|
+
}
|
|
35
|
+
globalScope.__wpStyleRuntime = {
|
|
36
|
+
documents: /* @__PURE__ */ new Map(),
|
|
37
|
+
styles: /* @__PURE__ */ new Map(),
|
|
38
|
+
injectedStyles: /* @__PURE__ */ new WeakMap()
|
|
39
|
+
};
|
|
40
|
+
if (typeof document !== "undefined") {
|
|
41
|
+
registerDocument(document);
|
|
42
|
+
}
|
|
43
|
+
return globalScope.__wpStyleRuntime;
|
|
44
|
+
}
|
|
45
|
+
function documentContainsStyleHash(targetDocument, hash) {
|
|
46
|
+
if (!targetDocument.head) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
for (const style of targetDocument.head.querySelectorAll(`style[${STYLE_HASH_ATTRIBUTE}]`)) {
|
|
50
|
+
if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
function injectStyle(targetDocument, hash, css) {
|
|
57
|
+
if (!targetDocument.head) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const runtime = getRuntime();
|
|
61
|
+
let injectedStyles = runtime.injectedStyles.get(targetDocument);
|
|
62
|
+
if (!injectedStyles) {
|
|
63
|
+
injectedStyles = /* @__PURE__ */ new Set();
|
|
64
|
+
runtime.injectedStyles.set(targetDocument, injectedStyles);
|
|
65
|
+
}
|
|
66
|
+
if (injectedStyles.has(hash)) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (documentContainsStyleHash(targetDocument, hash)) {
|
|
70
|
+
injectedStyles.add(hash);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const style = targetDocument.createElement("style");
|
|
74
|
+
style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
|
|
75
|
+
style.appendChild(targetDocument.createTextNode(css));
|
|
76
|
+
targetDocument.head.appendChild(style);
|
|
77
|
+
injectedStyles.add(hash);
|
|
78
|
+
}
|
|
79
|
+
function registerDocument(targetDocument) {
|
|
80
|
+
const runtime = getRuntime();
|
|
81
|
+
runtime.documents.set(targetDocument, (runtime.documents.get(targetDocument) ?? 0) + 1);
|
|
82
|
+
for (const [hash, css] of runtime.styles) {
|
|
83
|
+
injectStyle(targetDocument, hash, css);
|
|
84
|
+
}
|
|
85
|
+
return () => {
|
|
86
|
+
const count = runtime.documents.get(targetDocument);
|
|
87
|
+
if (count === void 0) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (count <= 1) {
|
|
91
|
+
runtime.documents.delete(targetDocument);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
runtime.documents.set(targetDocument, count - 1);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function registerStyle(hash, css) {
|
|
98
|
+
const runtime = getRuntime();
|
|
99
|
+
runtime.styles.set(hash, css);
|
|
100
|
+
for (const targetDocument of runtime.documents.keys()) {
|
|
101
|
+
injectStyle(targetDocument, hash, css);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// packages/components/src/border-box-control/style.module.scss
|
|
106
|
+
if (typeof process === "undefined" || process.env.NODE_ENV !== "test") {
|
|
107
|
+
registerStyle("67ff33c72d", ".fa6e6c2331986855__linked-border-control.fa6e6c2331986855__linked-border-control{flex:1;margin-inline-end:24px}._48f63719b9dc7e1a__wrapper{position:relative}._902e774d37b6698b__linked-button{inset-inline-end:0;line-height:0;position:absolute;top:8px}._5978f65e1d08de6c__visualizer{border-bottom:var(--wp-components-border-box-visualizer-bottom);border-inline-end:var(--wp-components-border-box-visualizer-end);border-inline-start:var(--wp-components-border-box-visualizer-start);border-top:var(--wp-components-border-box-visualizer-top);bottom:20px;position:absolute;top:20px;inset-inline:39px}.afa8e78cec6a9f62__split-controls{flex:1;position:relative}.ec002fcdf4036950__centered-border-control{grid-column:span 2;margin:0 auto}.f9ea07d7127ab067__right-border-control{margin-inline-start:auto}");
|
|
108
|
+
}
|
|
109
|
+
var style_module_default = { "linked-border-control": "fa6e6c2331986855__linked-border-control", "wrapper": "_48f63719b9dc7e1a__wrapper", "linked-button": "_902e774d37b6698b__linked-button", "visualizer": "_5978f65e1d08de6c__visualizer", "split-controls": "afa8e78cec6a9f62__split-controls", "centered-border-control": "ec002fcdf4036950__centered-border-control", "right-border-control": "f9ea07d7127ab067__right-border-control" };
|
|
110
|
+
|
|
111
|
+
// packages/components/src/border-box-control/border-box-control/hook.ts
|
|
38
112
|
var import_utils = require("../utils.cjs");
|
|
39
113
|
var import_context = require("../../context/index.cjs");
|
|
40
|
-
var import_use_cx = require("../../utils/hooks/use-cx.cjs");
|
|
41
114
|
function useBorderBoxControl(props) {
|
|
42
115
|
const {
|
|
43
116
|
className,
|
|
@@ -102,19 +175,11 @@ function useBorderBoxControl(props) {
|
|
|
102
175
|
onChange(newBorder);
|
|
103
176
|
}
|
|
104
177
|
};
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
return cx(styles.borderBoxControl, className);
|
|
108
|
-
}, [cx, className]);
|
|
109
|
-
const linkedControlClassName = (0, import_element.useMemo)(() => {
|
|
110
|
-
return cx(styles.linkedBorderControl());
|
|
111
|
-
}, [cx]);
|
|
112
|
-
const wrapperClassName = (0, import_element.useMemo)(() => {
|
|
113
|
-
return cx(styles.wrapper);
|
|
114
|
-
}, [cx]);
|
|
178
|
+
const linkedControlClassName = style_module_default["linked-border-control"];
|
|
179
|
+
const wrapperClassName = style_module_default.wrapper;
|
|
115
180
|
return {
|
|
116
181
|
...otherProps,
|
|
117
|
-
className
|
|
182
|
+
className,
|
|
118
183
|
colors,
|
|
119
184
|
disableUnits: mixedBorders && !hasWidthValue,
|
|
120
185
|
enableAlpha,
|