@wordpress/components 28.13.1-next.082ed6819.0 → 28.14.1-next.cd6172eb0.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 +46 -2
- package/CONTRIBUTING.md +16 -16
- package/build/angle-picker-control/index.js +1 -1
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/autocomplete/index.js +0 -1
- package/build/autocomplete/index.js.map +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js +1 -1
- package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build/border-control/border-control/component.js +2 -0
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/box-control/all-input-control.js +1 -0
- package/build/box-control/all-input-control.js.map +1 -1
- package/build/box-control/axial-input-controls.js +1 -0
- package/build/box-control/axial-input-controls.js.map +1 -1
- package/build/box-control/index.js +22 -15
- package/build/box-control/index.js.map +1 -1
- package/build/box-control/input-controls.js +1 -0
- package/build/box-control/input-controls.js.map +1 -1
- package/build/box-control/types.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-actions.js +1 -0
- package/build/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build/circular-option-picker/circular-option-picker-option.js +1 -0
- package/build/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build/clipboard-button/index.js +5 -3
- package/build/clipboard-button/index.js.map +1 -1
- package/build/color-palette/index.native.js +0 -1
- package/build/color-palette/index.native.js.map +1 -1
- package/build/color-picker/input-with-slider.js +2 -2
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/composite/item.js +0 -9
- package/build/composite/item.js.map +1 -1
- package/build/context/context-connect.js +0 -1
- package/build/context/context-connect.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +2 -0
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/custom-gradient-picker/index.js +2 -0
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/custom-gradient-picker/types.js.map +1 -1
- package/build/custom-select-control/index.js +8 -0
- package/build/custom-select-control/index.js.map +1 -1
- package/build/custom-select-control/types.js.map +1 -1
- package/build/drop-zone/index.js +19 -13
- package/build/drop-zone/index.js.map +1 -1
- package/build/drop-zone/types.js.map +1 -1
- package/build/dropdown-menu/index.js +1 -0
- package/build/dropdown-menu/index.js.map +1 -1
- package/build/duotone-picker/color-list-picker/index.js +9 -14
- package/build/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build/external-link/index.js +0 -1
- package/build/external-link/index.js.map +1 -1
- package/build/font-size-picker/font-size-picker-select.js +1 -0
- package/build/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build/font-size-picker/index.js +1 -0
- package/build/font-size-picker/index.js.map +1 -1
- package/build/form-file-upload/index.js +11 -1
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-file-upload/types.js.map +1 -1
- package/build/form-token-field/index.js +6 -1
- package/build/form-token-field/index.js.map +1 -1
- package/build/gradient-picker/index.js +2 -0
- package/build/gradient-picker/index.js.map +1 -1
- package/build/gradient-picker/types.js.map +1 -1
- package/build/icon/index.js +9 -0
- package/build/icon/index.js.map +1 -1
- package/build/menu/checkbox-item.js +5 -9
- package/build/menu/checkbox-item.js.map +1 -1
- package/build/menu/group-label.js +4 -1
- package/build/menu/group-label.js.map +1 -1
- package/build/menu/group.js +4 -1
- package/build/menu/group.js.map +1 -1
- package/build/menu/item-help-text.js +5 -0
- package/build/menu/item-help-text.js.map +1 -1
- package/build/menu/item-label.js +5 -0
- package/build/menu/item-label.js.map +1 -1
- package/build/menu/item.js +4 -8
- package/build/menu/item.js.map +1 -1
- package/build/menu/radio-item.js +5 -9
- package/build/menu/radio-item.js.map +1 -1
- package/build/menu/separator.js +5 -2
- package/build/menu/separator.js.map +1 -1
- package/build/modal/aria-helper.js +0 -1
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +0 -1
- package/build/modal/index.js.map +1 -1
- package/build/number-control/index.js +8 -0
- package/build/number-control/index.js.map +1 -1
- package/build/number-control/types.js.map +1 -1
- package/build/range-control/index.js +2 -1
- package/build/range-control/index.js.map +1 -1
- package/build/resizable-box/index.js +9 -1
- package/build/resizable-box/index.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/fill.js +8 -12
- package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -10
- package/build/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +4 -10
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/types.js.map +1 -1
- package/build/style-provider/index.js +0 -1
- package/build/style-provider/index.js.map +1 -1
- package/build/tabs/tab.js +0 -17
- package/build/tabs/tab.js.map +1 -1
- package/build/toolbar/toolbar-button/index.js +2 -0
- package/build/toolbar/toolbar-button/index.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +2 -0
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/unit-control/index.js +10 -1
- package/build/unit-control/index.js.map +1 -1
- package/build/unit-control/types.js.map +1 -1
- package/build-module/angle-picker-control/index.js +1 -1
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/autocomplete/index.js +0 -1
- package/build-module/autocomplete/index.js.map +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js +1 -1
- package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
- package/build-module/border-control/border-control/component.js +2 -0
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/box-control/all-input-control.js +1 -0
- package/build-module/box-control/all-input-control.js.map +1 -1
- package/build-module/box-control/axial-input-controls.js +1 -0
- package/build-module/box-control/axial-input-controls.js.map +1 -1
- package/build-module/box-control/index.js +22 -15
- package/build-module/box-control/index.js.map +1 -1
- package/build-module/box-control/input-controls.js +1 -0
- package/build-module/box-control/input-controls.js.map +1 -1
- package/build-module/box-control/types.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-actions.js +1 -0
- package/build-module/circular-option-picker/circular-option-picker-actions.js.map +1 -1
- package/build-module/circular-option-picker/circular-option-picker-option.js +1 -0
- package/build-module/circular-option-picker/circular-option-picker-option.js.map +1 -1
- package/build-module/clipboard-button/index.js +5 -3
- package/build-module/clipboard-button/index.js.map +1 -1
- package/build-module/color-palette/index.native.js +0 -1
- package/build-module/color-palette/index.native.js.map +1 -1
- package/build-module/color-picker/input-with-slider.js +2 -2
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/composite/item.js +0 -9
- package/build-module/composite/item.js.map +1 -1
- package/build-module/context/context-connect.js +0 -1
- package/build-module/context/context-connect.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +2 -0
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/custom-gradient-picker/index.js +2 -0
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/custom-gradient-picker/types.js.map +1 -1
- package/build-module/custom-select-control/index.js +8 -0
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/custom-select-control/types.js.map +1 -1
- package/build-module/drop-zone/index.js +19 -13
- package/build-module/drop-zone/index.js.map +1 -1
- package/build-module/drop-zone/types.js.map +1 -1
- package/build-module/dropdown-menu/index.js +1 -0
- package/build-module/dropdown-menu/index.js.map +1 -1
- package/build-module/duotone-picker/color-list-picker/index.js +10 -15
- package/build-module/duotone-picker/color-list-picker/index.js.map +1 -1
- package/build-module/external-link/index.js +0 -1
- package/build-module/external-link/index.js.map +1 -1
- package/build-module/font-size-picker/font-size-picker-select.js +1 -0
- package/build-module/font-size-picker/font-size-picker-select.js.map +1 -1
- package/build-module/font-size-picker/index.js +1 -0
- package/build-module/font-size-picker/index.js.map +1 -1
- package/build-module/form-file-upload/index.js +13 -2
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/form-file-upload/types.js.map +1 -1
- package/build-module/form-token-field/index.js +6 -1
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/gradient-picker/index.js +2 -0
- package/build-module/gradient-picker/index.js.map +1 -1
- package/build-module/gradient-picker/types.js.map +1 -1
- package/build-module/icon/index.js +9 -0
- package/build-module/icon/index.js.map +1 -1
- package/build-module/menu/checkbox-item.js +5 -9
- package/build-module/menu/checkbox-item.js.map +1 -1
- package/build-module/menu/group-label.js +4 -1
- package/build-module/menu/group-label.js.map +1 -1
- package/build-module/menu/group.js +4 -1
- package/build-module/menu/group.js.map +1 -1
- package/build-module/menu/item-help-text.js +6 -1
- package/build-module/menu/item-help-text.js.map +1 -1
- package/build-module/menu/item-label.js +6 -1
- package/build-module/menu/item-label.js.map +1 -1
- package/build-module/menu/item.js +4 -8
- package/build-module/menu/item.js.map +1 -1
- package/build-module/menu/radio-item.js +5 -9
- package/build-module/menu/radio-item.js.map +1 -1
- package/build-module/menu/separator.js +5 -2
- package/build-module/menu/separator.js.map +1 -1
- package/build-module/modal/aria-helper.js +0 -1
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +0 -1
- package/build-module/modal/index.js.map +1 -1
- package/build-module/number-control/index.js +8 -0
- package/build-module/number-control/index.js.map +1 -1
- package/build-module/number-control/types.js.map +1 -1
- package/build-module/range-control/index.js +2 -1
- package/build-module/range-control/index.js.map +1 -1
- package/build-module/resizable-box/index.js +9 -1
- package/build-module/resizable-box/index.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/fill.js +9 -13
- package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js +6 -10
- package/build-module/slot-fill/bubbles-virtually/slot-fill-provider.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +4 -10
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/types.js.map +1 -1
- package/build-module/style-provider/index.js +0 -1
- package/build-module/style-provider/index.js.map +1 -1
- package/build-module/tabs/tab.js +0 -15
- package/build-module/tabs/tab.js.map +1 -1
- package/build-module/toolbar/toolbar-button/index.js +2 -0
- package/build-module/toolbar/toolbar-button/index.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +2 -0
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/unit-control/index.js +10 -1
- package/build-module/unit-control/index.js.map +1 -1
- package/build-module/unit-control/types.js.map +1 -1
- package/build-style/style-rtl.css +12 -8
- package/build-style/style.css +12 -8
- package/build-types/border-control/border-control/component.d.ts.map +1 -1
- package/build-types/box-control/all-input-control.d.ts.map +1 -1
- package/build-types/box-control/axial-input-controls.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts +14 -13
- package/build-types/box-control/index.d.ts.map +1 -1
- package/build-types/box-control/input-controls.d.ts.map +1 -1
- package/build-types/box-control/stories/index.story.d.ts +42 -6
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/box-control/styles/box-control-styles.d.ts +3 -2
- package/build-types/box-control/styles/box-control-styles.d.ts.map +1 -1
- package/build-types/box-control/types.d.ts +16 -2
- package/build-types/box-control/types.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-actions.d.ts.map +1 -1
- package/build-types/circular-option-picker/circular-option-picker-option.d.ts.map +1 -1
- package/build-types/clipboard-button/index.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +3 -2
- package/build-types/color-picker/styles.d.ts.map +1 -1
- package/build-types/composite/item.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/gradient-bar/control-points.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/index.d.ts +1 -1
- package/build-types/custom-gradient-picker/index.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/types.d.ts +6 -0
- package/build-types/custom-gradient-picker/types.d.ts.map +1 -1
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/types.d.ts +7 -0
- package/build-types/custom-select-control/types.d.ts.map +1 -1
- package/build-types/date-time/time/styles.d.ts +8 -4
- package/build-types/date-time/time/styles.d.ts.map +1 -1
- package/build-types/drop-zone/index.d.ts +1 -1
- package/build-types/drop-zone/index.d.ts.map +1 -1
- package/build-types/drop-zone/types.d.ts +5 -0
- package/build-types/drop-zone/types.d.ts.map +1 -1
- package/build-types/dropdown-menu/index.d.ts.map +1 -1
- package/build-types/duotone-picker/color-list-picker/index.d.ts.map +1 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -1
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts.map +1 -1
- package/build-types/font-size-picker/font-size-picker-select.d.ts.map +1 -1
- package/build-types/font-size-picker/index.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts +2 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/form-file-upload/types.d.ts +10 -8
- package/build-types/form-file-upload/types.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/index.d.ts +1 -1
- package/build-types/gradient-picker/index.d.ts.map +1 -1
- package/build-types/gradient-picker/types.d.ts +6 -0
- package/build-types/gradient-picker/types.d.ts.map +1 -1
- package/build-types/icon/index.d.ts +23 -7
- package/build-types/icon/index.d.ts.map +1 -1
- package/build-types/icon/stories/index.story.d.ts +7 -1
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +2 -2
- package/build-types/menu/checkbox-item.d.ts.map +1 -1
- package/build-types/menu/group-label.d.ts.map +1 -1
- package/build-types/menu/group.d.ts.map +1 -1
- package/build-types/menu/index.d.ts.map +1 -1
- package/build-types/menu/item-help-text.d.ts.map +1 -1
- package/build-types/menu/item-label.d.ts.map +1 -1
- package/build-types/menu/item.d.ts.map +1 -1
- package/build-types/menu/radio-item.d.ts.map +1 -1
- package/build-types/menu/separator.d.ts.map +1 -1
- package/build-types/number-control/index.d.ts +2 -1
- package/build-types/number-control/index.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +2 -1
- package/build-types/number-control/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/types.d.ts +7 -0
- package/build-types/number-control/types.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +1 -1
- package/build-types/range-control/index.d.ts.map +1 -1
- package/build-types/range-control/styles/range-control-styles.d.ts +2 -1
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/resizable-box/index.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot-fill-provider.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/use-slot-fills.d.ts +1 -1
- package/build-types/slot-fill/types.d.ts +4 -3
- package/build-types/slot-fill/types.d.ts.map +1 -1
- package/build-types/tabs/tab.d.ts +3 -0
- package/build-types/tabs/tab.d.ts.map +1 -1
- package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
- package/build-types/tools-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts +2 -0
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/unit-control/index.d.ts +3 -2
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/stories/index.story.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +7 -0
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/package.json +20 -20
- package/src/angle-picker-control/index.tsx +1 -1
- package/src/border-box-control/border-box-control-split-controls/component.tsx +1 -1
- package/src/border-control/border-control/component.tsx +2 -0
- package/src/box-control/README.md +80 -60
- package/src/box-control/all-input-control.tsx +1 -0
- package/src/box-control/axial-input-controls.tsx +1 -0
- package/src/box-control/docs-manifest.json +5 -0
- package/src/box-control/index.tsx +23 -15
- package/src/box-control/input-controls.tsx +1 -0
- package/src/box-control/stories/index.story.tsx +1 -0
- package/src/box-control/test/index.tsx +33 -26
- package/src/box-control/types.ts +71 -54
- package/src/circular-option-picker/circular-option-picker-actions.tsx +1 -0
- package/src/circular-option-picker/circular-option-picker-option.tsx +1 -0
- package/src/circular-option-picker/style.scss +2 -2
- package/src/clipboard-button/index.tsx +5 -3
- package/src/color-picker/input-with-slider.tsx +1 -1
- package/src/composite/item.tsx +1 -19
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +2 -0
- package/src/custom-gradient-picker/index.tsx +2 -0
- package/src/custom-gradient-picker/style.scss +1 -1
- package/src/custom-gradient-picker/types.ts +6 -0
- package/src/custom-select-control/README.md +2 -0
- package/src/custom-select-control/index.tsx +9 -0
- package/src/custom-select-control/stories/index.story.tsx +1 -0
- package/src/custom-select-control/test/index.tsx +13 -9
- package/src/custom-select-control/types.ts +7 -0
- package/src/drop-zone/index.tsx +21 -24
- package/src/drop-zone/types.ts +5 -0
- package/src/dropdown-menu/index.tsx +1 -0
- package/src/dropdown-menu/style.scss +1 -1
- package/src/duotone-picker/color-list-picker/index.tsx +8 -8
- package/src/duotone-picker/color-list-picker/style.scss +0 -6
- package/src/font-size-picker/font-size-picker-select.tsx +1 -0
- package/src/font-size-picker/index.tsx +1 -0
- package/src/form-file-upload/README.md +58 -48
- package/src/form-file-upload/docs-manifest.json +5 -0
- package/src/form-file-upload/index.tsx +12 -1
- package/src/form-file-upload/stories/index.story.tsx +1 -0
- package/src/form-file-upload/test/index.tsx +5 -1
- package/src/form-file-upload/types.ts +10 -8
- package/src/form-token-field/README.md +1 -0
- package/src/form-token-field/index.tsx +7 -0
- package/src/form-token-field/stories/index.story.tsx +2 -0
- package/src/form-token-field/test/index.tsx +5 -1
- package/src/gradient-picker/README.md +8 -0
- package/src/gradient-picker/index.tsx +2 -0
- package/src/gradient-picker/types.ts +6 -0
- package/src/icon/README.md +22 -65
- package/src/icon/docs-manifest.json +5 -0
- package/src/icon/index.tsx +28 -13
- package/src/icon/stories/index.story.tsx +50 -8
- package/src/menu/checkbox-item.tsx +9 -7
- package/src/menu/group-label.tsx +8 -1
- package/src/menu/group.tsx +8 -1
- package/src/menu/item-help-text.tsx +10 -1
- package/src/menu/item-label.tsx +10 -1
- package/src/menu/item.tsx +8 -6
- package/src/menu/radio-item.tsx +9 -7
- package/src/menu/separator.tsx +9 -2
- package/src/menu-items-choice/style.scss +1 -0
- package/src/number-control/README.md +2 -1
- package/src/number-control/index.tsx +9 -0
- package/src/number-control/stories/index.story.tsx +1 -0
- package/src/number-control/test/index.tsx +5 -1
- package/src/number-control/types.ts +7 -0
- package/src/range-control/index.tsx +1 -0
- package/src/resizable-box/index.tsx +10 -0
- package/src/resizable-box/style.scss +8 -0
- package/src/slot-fill/bubbles-virtually/fill.tsx +7 -11
- package/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx +2 -13
- package/src/slot-fill/bubbles-virtually/slot.tsx +4 -7
- package/src/slot-fill/types.ts +4 -3
- package/src/tabs/tab.tsx +0 -18
- package/src/tabs/test/index.tsx +1492 -947
- package/src/toolbar/toolbar-button/index.tsx +2 -0
- package/src/tools-panel/stories/index.story.tsx +12 -0
- package/src/tools-panel/tools-panel/README.md +4 -0
- package/src/tools-panel/tools-panel/component.tsx +2 -0
- package/src/unit-control/README.md +3 -3
- package/src/unit-control/index.tsx +11 -1
- package/src/unit-control/stories/index.story.tsx +1 -0
- package/src/unit-control/test/index.tsx +5 -1
- package/src/unit-control/types.ts +7 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/menu/use-temporary-focus-visible-fix.js +0 -27
- package/build/menu/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-module/menu/use-temporary-focus-visible-fix.js +0 -20
- package/build-module/menu/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-types/menu/use-temporary-focus-visible-fix.d.ts +0 -8
- package/build-types/menu/use-temporary-focus-visible-fix.d.ts.map +0 -1
- package/src/menu/use-temporary-focus-visible-fix.ts +0 -22
|
@@ -16,6 +16,7 @@ const Example = () => {
|
|
|
16
16
|
|
|
17
17
|
return (
|
|
18
18
|
<NumberControl
|
|
19
|
+
__next40pxDefaultSize
|
|
19
20
|
isShiftStepEnabled={ true }
|
|
20
21
|
onChange={ setValue }
|
|
21
22
|
shiftStep={ 10 }
|
|
@@ -146,4 +147,4 @@ Start opting into the larger default height that will become the default size in
|
|
|
146
147
|
|
|
147
148
|
- Type: `Boolean`
|
|
148
149
|
- Required: No
|
|
149
|
-
- Default: `false`
|
|
150
|
+
- Default: `false`
|
|
@@ -26,6 +26,7 @@ import { HStack } from '../h-stack';
|
|
|
26
26
|
import { Spacer } from '../spacer';
|
|
27
27
|
import { useCx } from '../utils';
|
|
28
28
|
import { useDeprecated36pxDefaultSizeProp } from '../utils/use-deprecated-props';
|
|
29
|
+
import { maybeWarnDeprecated36pxSize } from '../utils/deprecated-36px-size';
|
|
29
30
|
|
|
30
31
|
const noop = () => {};
|
|
31
32
|
|
|
@@ -53,9 +54,17 @@ function UnforwardedNumberControl(
|
|
|
53
54
|
size = 'default',
|
|
54
55
|
suffix,
|
|
55
56
|
onChange = noop,
|
|
57
|
+
__shouldNotWarnDeprecated36pxSize,
|
|
56
58
|
...restProps
|
|
57
59
|
} = useDeprecated36pxDefaultSizeProp< NumberControlProps >( props );
|
|
58
60
|
|
|
61
|
+
maybeWarnDeprecated36pxSize( {
|
|
62
|
+
componentName: 'NumberControl',
|
|
63
|
+
size,
|
|
64
|
+
__next40pxDefaultSize: restProps.__next40pxDefaultSize,
|
|
65
|
+
__shouldNotWarnDeprecated36pxSize,
|
|
66
|
+
} );
|
|
67
|
+
|
|
59
68
|
if ( hideHTMLArrows ) {
|
|
60
69
|
deprecated( 'wp.components.NumberControl hideHTMLArrows prop ', {
|
|
61
70
|
alternative: 'spinControls="none"',
|
|
@@ -12,9 +12,13 @@ import { useState } from '@wordpress/element';
|
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
|
-
import
|
|
15
|
+
import _NumberControl from '..';
|
|
16
16
|
import type { NumberControlProps } from '../types';
|
|
17
17
|
|
|
18
|
+
const NumberControl = (
|
|
19
|
+
props: React.ComponentProps< typeof _NumberControl >
|
|
20
|
+
) => <_NumberControl __next40pxDefaultSize { ...props } />;
|
|
21
|
+
|
|
18
22
|
function StatefulNumberControl( props: NumberControlProps ) {
|
|
19
23
|
const [ value, setValue ] = useState( props.value );
|
|
20
24
|
const handleOnChange = ( v: string | undefined ) => setValue( v );
|
|
@@ -91,4 +91,11 @@ export type NumberControlProps = Omit<
|
|
|
91
91
|
* The value of the input.
|
|
92
92
|
*/
|
|
93
93
|
value?: number | string;
|
|
94
|
+
/**
|
|
95
|
+
* Do not throw a warning for the deprecated 36px default size.
|
|
96
|
+
* For internal components of other components that already throw the warning.
|
|
97
|
+
*
|
|
98
|
+
* @ignore
|
|
99
|
+
*/
|
|
100
|
+
__shouldNotWarnDeprecated36pxSize?: boolean;
|
|
94
101
|
};
|
|
@@ -112,6 +112,16 @@ function UnforwardedResizableBox(
|
|
|
112
112
|
showHandle && 'has-show-handle',
|
|
113
113
|
className
|
|
114
114
|
) }
|
|
115
|
+
// Add a focusable element within the drag handle. Unfortunately,
|
|
116
|
+
// `re-resizable` does not make them properly focusable by default,
|
|
117
|
+
// causing focus to move the the block wrapper which triggers block
|
|
118
|
+
// drag.
|
|
119
|
+
handleComponent={ Object.fromEntries(
|
|
120
|
+
Object.keys( HANDLE_CLASSES ).map( ( key ) => [
|
|
121
|
+
key,
|
|
122
|
+
<div key={ key } tabIndex={ -1 } />,
|
|
123
|
+
] )
|
|
124
|
+
) }
|
|
115
125
|
handleClasses={ HANDLE_CLASSES }
|
|
116
126
|
handleStyles={ HANDLE_STYLES }
|
|
117
127
|
ref={ ref }
|
|
@@ -15,6 +15,14 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
|
|
|
15
15
|
.components-resizable-box__container.has-show-handle & {
|
|
16
16
|
display: block;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
> div {
|
|
20
|
+
position: relative;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
z-index: z-index(".components-resizable-box__handle");
|
|
24
|
+
outline: none;
|
|
25
|
+
}
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
// Make the image inside the resize to get the full width
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import { useObservableValue } from '@wordpress/compose';
|
|
5
5
|
import {
|
|
6
6
|
useContext,
|
|
7
|
-
useReducer,
|
|
8
7
|
useRef,
|
|
9
8
|
useEffect,
|
|
10
9
|
createPortal,
|
|
@@ -20,18 +19,15 @@ import type { FillComponentProps } from '../types';
|
|
|
20
19
|
export default function Fill( { name, children }: FillComponentProps ) {
|
|
21
20
|
const registry = useContext( SlotFillContext );
|
|
22
21
|
const slot = useObservableValue( registry.slots, name );
|
|
23
|
-
const
|
|
24
|
-
const ref = useRef( { rerender } );
|
|
22
|
+
const instanceRef = useRef( {} );
|
|
25
23
|
|
|
24
|
+
// We register fills so we can keep track of their existence.
|
|
25
|
+
// Slots can use the `useSlotFills` hook to know if there're already fills
|
|
26
|
+
// registered so they can choose to render themselves or not.
|
|
26
27
|
useEffect( () => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const refValue = ref.current;
|
|
31
|
-
registry.registerFill( name, refValue );
|
|
32
|
-
return () => {
|
|
33
|
-
registry.unregisterFill( name, refValue );
|
|
34
|
-
};
|
|
28
|
+
const instance = instanceRef.current;
|
|
29
|
+
registry.registerFill( name, instance );
|
|
30
|
+
return () => registry.unregisterFill( name, instance );
|
|
35
31
|
}, [ registry, name ] );
|
|
36
32
|
|
|
37
33
|
if ( ! slot || ! slot.ref.current ) {
|
|
@@ -23,13 +23,7 @@ function createSlotRegistry(): SlotFillBubblesVirtuallyContext {
|
|
|
23
23
|
ref,
|
|
24
24
|
fillProps
|
|
25
25
|
) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
slots.set( name, {
|
|
29
|
-
...slot,
|
|
30
|
-
ref: ref || slot?.ref,
|
|
31
|
-
fillProps: fillProps || slot?.fillProps || {},
|
|
32
|
-
} );
|
|
26
|
+
slots.set( name, { ref, fillProps } );
|
|
33
27
|
};
|
|
34
28
|
|
|
35
29
|
const unregisterSlot: SlotFillBubblesVirtuallyContext[ 'unregisterSlot' ] =
|
|
@@ -66,12 +60,7 @@ function createSlotRegistry(): SlotFillBubblesVirtuallyContext {
|
|
|
66
60
|
return;
|
|
67
61
|
}
|
|
68
62
|
|
|
69
|
-
|
|
70
|
-
const slotFills = fills.get( name );
|
|
71
|
-
if ( slotFills ) {
|
|
72
|
-
// Force update fills.
|
|
73
|
-
slotFills.forEach( ( fill ) => fill.rerender() );
|
|
74
|
-
}
|
|
63
|
+
slots.set( name, { ref, fillProps } );
|
|
75
64
|
};
|
|
76
65
|
|
|
77
66
|
const registerFill: SlotFillBubblesVirtuallyContext[ 'registerFill' ] = (
|
|
@@ -39,8 +39,7 @@ function Slot(
|
|
|
39
39
|
...restProps
|
|
40
40
|
} = props;
|
|
41
41
|
|
|
42
|
-
const
|
|
43
|
-
useContext( SlotFillContext );
|
|
42
|
+
const registry = useContext( SlotFillContext );
|
|
44
43
|
|
|
45
44
|
const ref = useRef< HTMLElement >( null );
|
|
46
45
|
|
|
@@ -54,11 +53,9 @@ function Slot(
|
|
|
54
53
|
}, [ fillProps ] );
|
|
55
54
|
|
|
56
55
|
useLayoutEffect( () => {
|
|
57
|
-
registerSlot( name, ref, fillPropsRef.current );
|
|
58
|
-
return () =>
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
}, [ registerSlot, unregisterSlot, name ] );
|
|
56
|
+
registry.registerSlot( name, ref, fillPropsRef.current );
|
|
57
|
+
return () => registry.unregisterSlot( name, ref );
|
|
58
|
+
}, [ registry, name ] );
|
|
62
59
|
|
|
63
60
|
useLayoutEffect( () => {
|
|
64
61
|
registry.updateSlot( name, ref, fillPropsRef.current );
|
package/src/slot-fill/types.ts
CHANGED
|
@@ -110,15 +110,16 @@ export type SlotFillProviderProps = {
|
|
|
110
110
|
|
|
111
111
|
export type SlotRef = RefObject< HTMLElement >;
|
|
112
112
|
export type Rerenderable = { rerender: () => void };
|
|
113
|
+
export type FillInstance = {};
|
|
113
114
|
|
|
114
115
|
export type SlotFillBubblesVirtuallyContext = {
|
|
115
116
|
slots: ObservableMap< SlotKey, { ref: SlotRef; fillProps: FillProps } >;
|
|
116
|
-
fills: ObservableMap< SlotKey,
|
|
117
|
+
fills: ObservableMap< SlotKey, FillInstance[] >;
|
|
117
118
|
registerSlot: ( name: SlotKey, ref: SlotRef, fillProps: FillProps ) => void;
|
|
118
119
|
unregisterSlot: ( name: SlotKey, ref: SlotRef ) => void;
|
|
119
120
|
updateSlot: ( name: SlotKey, ref: SlotRef, fillProps: FillProps ) => void;
|
|
120
|
-
registerFill: ( name: SlotKey,
|
|
121
|
-
unregisterFill: ( name: SlotKey,
|
|
121
|
+
registerFill: ( name: SlotKey, instance: FillInstance ) => void;
|
|
122
|
+
unregisterFill: ( name: SlotKey, instance: FillInstance ) => void;
|
|
122
123
|
|
|
123
124
|
/**
|
|
124
125
|
* This helps the provider know if it's using the default context value or not.
|
package/src/tabs/tab.tsx
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import * as Ariakit from '@ariakit/react';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* WordPress dependencies
|
|
8
3
|
*/
|
|
@@ -29,18 +24,6 @@ export const Tab = forwardRef<
|
|
|
29
24
|
>( function Tab( { children, tabId, disabled, render, ...otherProps }, ref ) {
|
|
30
25
|
const { store, instanceId } = useTabsContext() ?? {};
|
|
31
26
|
|
|
32
|
-
// If the active item is not connected, the tablist may end up in a state
|
|
33
|
-
// where none of the tabs are tabbable. In this case, we force all tabs to
|
|
34
|
-
// be tabbable, so that as soon as an item received focus, it becomes active
|
|
35
|
-
// and Tablist goes back to working as expected.
|
|
36
|
-
// eslint-disable-next-line @wordpress/no-unused-vars-before-return
|
|
37
|
-
const tabbable = Ariakit.useStoreState( store, ( state ) => {
|
|
38
|
-
return (
|
|
39
|
-
state?.activeId !== null &&
|
|
40
|
-
! store?.item( state?.activeId )?.element?.isConnected
|
|
41
|
-
);
|
|
42
|
-
} );
|
|
43
|
-
|
|
44
27
|
if ( ! store ) {
|
|
45
28
|
warning( '`Tabs.Tab` must be wrapped in a `Tabs` component.' );
|
|
46
29
|
return null;
|
|
@@ -55,7 +38,6 @@ export const Tab = forwardRef<
|
|
|
55
38
|
id={ instancedTabId }
|
|
56
39
|
disabled={ disabled }
|
|
57
40
|
render={ render }
|
|
58
|
-
tabbable={ tabbable }
|
|
59
41
|
{ ...otherProps }
|
|
60
42
|
>
|
|
61
43
|
<StyledTabChildren>{ children }</StyledTabChildren>
|