@wordpress/components 28.10.0 → 28.12.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 +61 -0
- package/build/autocomplete/autocompleter-ui.js +2 -6
- package/build/autocomplete/autocompleter-ui.js.map +1 -1
- package/build/autocomplete/autocompleter-ui.native.js +2 -4
- package/build/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build/autocomplete/index.js +4 -5
- package/build/autocomplete/index.js.map +1 -1
- package/build/base-control/types.js.map +1 -1
- package/build/border-box-control/border-box-control/component.js +1 -0
- package/build/border-box-control/border-box-control/component.js.map +1 -1
- package/build/border-box-control/border-box-control/hook.js +6 -0
- package/build/border-box-control/border-box-control/hook.js.map +1 -1
- package/build/border-control/border-control/component.js +1 -0
- package/build/border-control/border-control/component.js.map +1 -1
- package/build/border-control/border-control/hook.js +6 -0
- package/build/border-control/border-control/hook.js.map +1 -1
- package/build/border-control/border-control-dropdown/component.js +13 -13
- package/build/border-control/border-control-dropdown/component.js.map +1 -1
- package/build/color-palette/index.js +1 -1
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/index.native.js +1 -2
- package/build/color-palette/index.native.js.map +1 -1
- package/build/color-picker/index.native.js +0 -1
- package/build/color-picker/index.native.js.map +1 -1
- package/build/composite/legacy/index.js +5 -2
- package/build/composite/legacy/index.js.map +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js +1 -1
- package/build/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build/date-time/date/index.js +0 -1
- package/build/date-time/date/index.js.map +1 -1
- package/build/font-size-picker/index.native.js +6 -6
- package/build/font-size-picker/index.native.js.map +1 -1
- package/build/form-file-upload/index.js +5 -1
- package/build/form-file-upload/index.js.map +1 -1
- package/build/form-token-field/index.js +0 -3
- package/build/form-token-field/index.js.map +1 -1
- package/build/form-token-field/suggestions-list.js +7 -3
- package/build/form-token-field/suggestions-list.js.map +1 -1
- package/build/form-token-field/token.js +1 -0
- package/build/form-token-field/token.js.map +1 -1
- package/build/guide/page-control.js +1 -0
- package/build/guide/page-control.js.map +1 -1
- package/build/{dropdown-menu-v2 → menu}/checkbox-item.js +8 -8
- package/build/menu/checkbox-item.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/context.js +2 -2
- package/build/menu/context.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/group-label.js +5 -5
- package/build/menu/group-label.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/group.js +5 -5
- package/build/menu/group.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/index.js +38 -38
- package/build/menu/index.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/item-help-text.js +3 -3
- package/build/menu/item-help-text.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/item-label.js +3 -3
- package/build/menu/item-label.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/item.js +7 -7
- package/build/menu/item.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/radio-item.js +8 -8
- package/build/menu/radio-item.js.map +1 -0
- package/build/{dropdown-menu-v2 → menu}/separator.js +6 -6
- package/build/menu/separator.js.map +1 -0
- package/build/menu/styles.js +150 -0
- package/build/menu/styles.js.map +1 -0
- package/build/menu/types.js.map +1 -0
- package/build/menu/use-temporary-focus-visible-fix.js.map +1 -0
- package/build/menu-item/index.js +1 -0
- package/build/menu-item/index.js.map +1 -1
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +3 -5
- package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
- package/build/mobile/bottom-sheet/range-cell.native.js +1 -1
- package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
- package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js +1 -3
- package/build/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
- package/build/mobile/bottom-sheet-select-control/index.native.js +2 -2
- package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build/mobile/color-settings/index.native.js +1 -3
- package/build/mobile/color-settings/index.native.js.map +1 -1
- package/build/mobile/color-settings/picker-screen.native.js +1 -3
- package/build/mobile/color-settings/picker-screen.native.js.map +1 -1
- package/build/mobile/image/index.native.js +1 -3
- package/build/mobile/image/index.native.js.map +1 -1
- package/build/mobile/keyboard-avoiding-view/index.ios.js +1 -3
- package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
- package/build/mobile/link-picker/link-picker-results.native.js +2 -5
- package/build/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build/mobile/link-picker/link-picker-screen.native.js +1 -3
- package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +6 -18
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/mobile/link-settings/link-settings-screen.native.js +1 -3
- package/build/mobile/link-settings/link-settings-screen.native.js.map +1 -1
- package/build/mobile/segmented-control/index.native.js +2 -6
- package/build/mobile/segmented-control/index.native.js.map +1 -1
- package/build/mobile/utils/use-unit-converter-to-mobile.native.js +2 -6
- package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
- package/build/navigation/index.js +1 -2
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/item/use-navigation-tree-item.js +2 -2
- package/build/navigation/item/use-navigation-tree-item.js.map +1 -1
- package/build/navigation/menu/menu-title-search.js +2 -2
- package/build/navigation/menu/menu-title-search.js.map +1 -1
- package/build/navigation/menu/use-navigation-tree-menu.js +2 -2
- package/build/navigation/menu/use-navigation-tree-menu.js.map +1 -1
- package/build/notice/index.js +2 -0
- package/build/notice/index.js.map +1 -1
- package/build/palette-edit/index.js +9 -2
- package/build/palette-edit/index.js.map +1 -1
- package/build/palette-edit/styles.js +13 -28
- package/build/palette-edit/styles.js.map +1 -1
- package/build/panel/body.js +1 -0
- package/build/panel/body.js.map +1 -1
- package/build/popover/index.js +4 -1
- package/build/popover/index.js.map +1 -1
- package/build/private-apis.js +4 -4
- package/build/private-apis.js.map +1 -1
- package/build/radio-group/index.js +3 -1
- package/build/radio-group/index.js.map +1 -1
- package/build/radio-group/radio.js +6 -0
- package/build/radio-group/radio.js.map +1 -1
- package/build/radio-group/types.js.map +1 -1
- package/build/sandbox/index.js +3 -6
- package/build/sandbox/index.js.map +1 -1
- package/build/sandbox/index.native.js +1 -3
- package/build/sandbox/index.native.js.map +1 -1
- package/build/search-control/index.native.js +1 -3
- package/build/search-control/index.native.js.map +1 -1
- package/build/slot-fill/bubbles-virtually/slot.js +1 -2
- package/build/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build/slot-fill/fill.js +3 -6
- package/build/slot-fill/fill.js.map +1 -1
- package/build/snackbar/index.js +2 -1
- package/build/snackbar/index.js.map +1 -1
- package/build/spacer/hook.js +5 -3
- package/build/spacer/hook.js.map +1 -1
- package/build/tab-panel/index.js +4 -1
- package/build/tab-panel/index.js.map +1 -1
- package/build/tabs/index.js +48 -113
- package/build/tabs/index.js.map +1 -1
- package/build/tabs/styles.js +12 -12
- package/build/tabs/styles.js.map +1 -1
- package/build/tabs/tab.js +23 -6
- package/build/tabs/tab.js.map +1 -1
- package/build/tabs/tablist.js +37 -14
- package/build/tabs/tablist.js.map +1 -1
- package/build/tabs/types.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +3 -2
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toolbar/toolbar/index.js +3 -0
- package/build/toolbar/toolbar/index.js.map +1 -1
- package/build/tools-panel/tools-panel-header/component.js +1 -1
- package/build/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +0 -2
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build/tooltip/index.native.js +5 -15
- package/build/tooltip/index.native.js.map +1 -1
- package/build/unit-control/index.native.js +2 -6
- package/build/unit-control/index.native.js.map +1 -1
- package/build/utils/deprecated-36px-size.js +27 -0
- package/build/utils/deprecated-36px-size.js.map +1 -0
- package/build/utils/element-rect.js +13 -2
- package/build/utils/element-rect.js.map +1 -1
- package/build/utils/hooks/use-animated-offset-rect.js +3 -2
- package/build/utils/hooks/use-animated-offset-rect.js.map +1 -1
- package/build/utils/hooks/use-update-effect.js +0 -2
- package/build/utils/hooks/use-update-effect.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.js +2 -6
- package/build-module/autocomplete/autocompleter-ui.js.map +1 -1
- package/build-module/autocomplete/autocompleter-ui.native.js +2 -4
- package/build-module/autocomplete/autocompleter-ui.native.js.map +1 -1
- package/build-module/autocomplete/index.js +4 -5
- package/build-module/autocomplete/index.js.map +1 -1
- package/build-module/base-control/types.js.map +1 -1
- package/build-module/border-box-control/border-box-control/component.js +1 -0
- package/build-module/border-box-control/border-box-control/component.js.map +1 -1
- package/build-module/border-box-control/border-box-control/hook.js +6 -0
- package/build-module/border-box-control/border-box-control/hook.js.map +1 -1
- package/build-module/border-control/border-control/component.js +1 -0
- package/build-module/border-control/border-control/component.js.map +1 -1
- package/build-module/border-control/border-control/hook.js +7 -0
- package/build-module/border-control/border-control/hook.js.map +1 -1
- package/build-module/border-control/border-control-dropdown/component.js +13 -13
- package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
- package/build-module/color-palette/index.js +1 -1
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/index.native.js +1 -2
- package/build-module/color-palette/index.native.js.map +1 -1
- package/build-module/color-picker/index.native.js +0 -1
- package/build-module/color-picker/index.native.js.map +1 -1
- package/build-module/composite/legacy/index.js +5 -2
- package/build-module/composite/legacy/index.js.map +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js +1 -1
- package/build-module/custom-gradient-picker/gradient-bar/control-points.js.map +1 -1
- package/build-module/date-time/date/index.js +0 -1
- package/build-module/date-time/date/index.js.map +1 -1
- package/build-module/font-size-picker/index.native.js +7 -7
- package/build-module/font-size-picker/index.native.js.map +1 -1
- package/build-module/form-file-upload/index.js +5 -1
- package/build-module/form-file-upload/index.js.map +1 -1
- package/build-module/form-token-field/index.js +0 -3
- package/build-module/form-token-field/index.js.map +1 -1
- package/build-module/form-token-field/suggestions-list.js +7 -3
- package/build-module/form-token-field/suggestions-list.js.map +1 -1
- package/build-module/form-token-field/token.js +1 -0
- package/build-module/form-token-field/token.js.map +1 -1
- package/build-module/guide/page-control.js +1 -0
- package/build-module/guide/page-control.js.map +1 -1
- package/build-module/{dropdown-menu-v2 → menu}/checkbox-item.js +8 -8
- package/build-module/menu/checkbox-item.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/context.js +1 -1
- package/build-module/menu/context.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/group-label.js +5 -5
- package/build-module/menu/group-label.js.map +1 -0
- package/build-module/menu/group.js +21 -0
- package/build-module/menu/group.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/index.js +46 -46
- package/build-module/menu/index.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/item-help-text.js +2 -2
- package/build-module/menu/item-help-text.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/item-label.js +2 -2
- package/build-module/menu/item-label.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/item.js +7 -7
- package/build-module/menu/item.js.map +1 -0
- package/build-module/{dropdown-menu-v2 → menu}/radio-item.js +8 -8
- package/build-module/menu/radio-item.js.map +1 -0
- package/build-module/menu/separator.js +22 -0
- package/build-module/menu/separator.js.map +1 -0
- package/build-module/menu/styles.js +143 -0
- package/build-module/menu/styles.js.map +1 -0
- package/build-module/menu/types.js.map +1 -0
- package/build-module/menu/use-temporary-focus-visible-fix.js.map +1 -0
- package/build-module/menu-item/index.js +1 -0
- package/build-module/menu-item/index.js.map +1 -1
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +3 -5
- package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/range-cell.native.js +1 -1
- package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
- package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js +1 -3
- package/build-module/mobile/bottom-sheet/sub-sheet/index.native.js.map +1 -1
- package/build-module/mobile/bottom-sheet-select-control/index.native.js +2 -2
- package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
- package/build-module/mobile/color-settings/index.native.js +1 -3
- package/build-module/mobile/color-settings/index.native.js.map +1 -1
- package/build-module/mobile/color-settings/picker-screen.native.js +1 -3
- package/build-module/mobile/color-settings/picker-screen.native.js.map +1 -1
- package/build-module/mobile/image/index.native.js +1 -3
- package/build-module/mobile/image/index.native.js.map +1 -1
- package/build-module/mobile/keyboard-avoiding-view/index.ios.js +1 -3
- package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
- package/build-module/mobile/link-picker/link-picker-results.native.js +2 -5
- package/build-module/mobile/link-picker/link-picker-results.native.js.map +1 -1
- package/build-module/mobile/link-picker/link-picker-screen.native.js +1 -3
- package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
- package/build-module/mobile/link-settings/index.native.js +6 -18
- package/build-module/mobile/link-settings/index.native.js.map +1 -1
- package/build-module/mobile/link-settings/link-settings-screen.native.js +1 -3
- package/build-module/mobile/link-settings/link-settings-screen.native.js.map +1 -1
- package/build-module/mobile/segmented-control/index.native.js +2 -6
- package/build-module/mobile/segmented-control/index.native.js.map +1 -1
- package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +2 -6
- package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
- package/build-module/navigation/index.js +1 -2
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/item/use-navigation-tree-item.js +2 -2
- package/build-module/navigation/item/use-navigation-tree-item.js.map +1 -1
- package/build-module/navigation/menu/menu-title-search.js +2 -2
- package/build-module/navigation/menu/menu-title-search.js.map +1 -1
- package/build-module/navigation/menu/use-navigation-tree-menu.js +2 -2
- package/build-module/navigation/menu/use-navigation-tree-menu.js.map +1 -1
- package/build-module/notice/index.js +2 -0
- package/build-module/notice/index.js.map +1 -1
- package/build-module/palette-edit/index.js +11 -4
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/palette-edit/styles.js +13 -29
- package/build-module/palette-edit/styles.js.map +1 -1
- package/build-module/panel/body.js +1 -0
- package/build-module/panel/body.js.map +1 -1
- package/build-module/popover/index.js +4 -1
- package/build-module/popover/index.js.map +1 -1
- package/build-module/private-apis.js +3 -3
- package/build-module/private-apis.js.map +1 -1
- package/build-module/radio-group/index.js +3 -1
- package/build-module/radio-group/index.js.map +1 -1
- package/build-module/radio-group/radio.js +6 -0
- package/build-module/radio-group/radio.js.map +1 -1
- package/build-module/radio-group/types.js.map +1 -1
- package/build-module/sandbox/index.js +3 -6
- package/build-module/sandbox/index.js.map +1 -1
- package/build-module/sandbox/index.native.js +1 -3
- package/build-module/sandbox/index.native.js.map +1 -1
- package/build-module/search-control/index.native.js +1 -3
- package/build-module/search-control/index.native.js.map +1 -1
- package/build-module/slot-fill/bubbles-virtually/slot.js +1 -2
- package/build-module/slot-fill/bubbles-virtually/slot.js.map +1 -1
- package/build-module/slot-fill/fill.js +3 -6
- package/build-module/slot-fill/fill.js.map +1 -1
- package/build-module/snackbar/index.js +2 -1
- package/build-module/snackbar/index.js.map +1 -1
- package/build-module/spacer/hook.js +5 -3
- package/build-module/spacer/hook.js.map +1 -1
- package/build-module/tab-panel/index.js +4 -1
- package/build-module/tab-panel/index.js.map +1 -1
- package/build-module/tabs/index.js +47 -112
- package/build-module/tabs/index.js.map +1 -1
- package/build-module/tabs/styles.js +11 -11
- package/build-module/tabs/styles.js.map +1 -1
- package/build-module/tabs/tab.js +21 -6
- package/build-module/tabs/tab.js.map +1 -1
- package/build-module/tabs/tablist.js +37 -14
- package/build-module/tabs/tablist.js.map +1 -1
- package/build-module/tabs/types.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/component.js +3 -2
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toolbar/toolbar/index.js +3 -0
- package/build-module/toolbar/toolbar/index.js.map +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js +1 -1
- package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js +0 -2
- package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-module/tooltip/index.native.js +5 -15
- package/build-module/tooltip/index.native.js.map +1 -1
- package/build-module/unit-control/index.native.js +2 -6
- package/build-module/unit-control/index.native.js.map +1 -1
- package/build-module/utils/deprecated-36px-size.js +19 -0
- package/build-module/utils/deprecated-36px-size.js.map +1 -0
- package/build-module/utils/element-rect.js +13 -2
- package/build-module/utils/element-rect.js.map +1 -1
- package/build-module/utils/hooks/use-animated-offset-rect.js +3 -2
- package/build-module/utils/hooks/use-animated-offset-rect.js.map +1 -1
- package/build-module/utils/hooks/use-update-effect.js +0 -2
- package/build-module/utils/hooks/use-update-effect.js.map +1 -1
- package/build-style/style-rtl.css +21 -35
- package/build-style/style.css +21 -35
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/types.d.ts +3 -0
- package/build-types/base-control/types.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/component.d.ts +1 -0
- package/build-types/border-box-control/border-box-control/component.d.ts.map +1 -1
- package/build-types/border-box-control/border-box-control/hook.d.ts.map +1 -1
- package/build-types/border-control/border-control/component.d.ts +1 -0
- package/build-types/border-control/border-control/component.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/stories/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/card/stories/index.story.d.ts.map +1 -1
- package/build-types/composite/legacy/index.d.ts.map +1 -1
- package/build-types/composite/stories/index.story.d.ts.map +1 -1
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/date-time/date/index.d.ts.map +1 -1
- package/build-types/disabled/stories/index.story.d.ts.map +1 -1
- package/build-types/draggable/stories/index.story.d.ts.map +1 -1
- package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
- package/build-types/external-link/stories/index.story.d.ts.map +1 -1
- package/build-types/form-file-upload/index.d.ts.map +1 -1
- package/build-types/form-token-field/index.d.ts.map +1 -1
- package/build-types/form-token-field/suggestions-list.d.ts.map +1 -1
- package/build-types/form-token-field/token.d.ts.map +1 -1
- package/build-types/guide/page-control.d.ts.map +1 -1
- package/build-types/heading/stories/index.story.d.ts.map +1 -1
- package/build-types/item-group/stories/index.story.d.ts +1 -1
- package/build-types/item-group/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/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 +3 -0
- package/build-types/menu/checkbox-item.d.ts.map +1 -0
- package/build-types/menu/context.d.ts +6 -0
- package/build-types/menu/context.d.ts.map +1 -0
- package/build-types/menu/group-label.d.ts +3 -0
- package/build-types/menu/group-label.d.ts.map +1 -0
- package/build-types/menu/group.d.ts +3 -0
- package/build-types/menu/group.d.ts.map +1 -0
- package/build-types/menu/index.d.ts +40 -0
- package/build-types/menu/index.d.ts.map +1 -0
- package/build-types/{dropdown-menu-v2 → menu}/item-help-text.d.ts +1 -1
- package/build-types/menu/item-help-text.d.ts.map +1 -0
- package/build-types/{dropdown-menu-v2 → menu}/item-label.d.ts +1 -1
- package/build-types/menu/item-label.d.ts.map +1 -0
- package/build-types/menu/item.d.ts +3 -0
- package/build-types/menu/item.d.ts.map +1 -0
- package/build-types/menu/radio-item.d.ts +3 -0
- package/build-types/menu/radio-item.d.ts.map +1 -0
- package/build-types/menu/separator.d.ts +3 -0
- package/build-types/menu/separator.d.ts.map +1 -0
- package/build-types/menu/stories/index.story.d.ts +16 -0
- package/build-types/menu/stories/index.story.d.ts.map +1 -0
- package/build-types/{dropdown-menu-v2 → menu}/styles.d.ts +13 -13
- package/build-types/menu/styles.d.ts.map +1 -0
- package/build-types/menu/test/index.d.ts.map +1 -0
- package/build-types/{dropdown-menu-v2 → menu}/types.d.ts +22 -21
- package/build-types/menu/types.d.ts.map +1 -0
- package/build-types/menu/use-temporary-focus-visible-fix.d.ts.map +1 -0
- package/build-types/menu-item/index.d.ts.map +1 -1
- package/build-types/modal/stories/index.story.d.ts.map +1 -1
- package/build-types/navigable-container/stories/navigable-menu.story.d.ts.map +1 -1
- package/build-types/navigable-container/stories/tabbable-container.story.d.ts.map +1 -1
- package/build-types/navigation/index.d.ts.map +1 -1
- package/build-types/navigator/stories/index.story.d.ts.map +1 -1
- package/build-types/notice/index.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts.map +1 -1
- package/build-types/palette-edit/styles.d.ts +0 -256
- package/build-types/palette-edit/styles.d.ts.map +1 -1
- package/build-types/panel/body.d.ts.map +1 -1
- package/build-types/panel/stories/index.story.d.ts.map +1 -1
- package/build-types/popover/index.d.ts.map +1 -1
- package/build-types/popover/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-group/index.d.ts.map +1 -1
- package/build-types/radio-group/radio.d.ts +4 -2
- package/build-types/radio-group/radio.d.ts.map +1 -1
- package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
- package/build-types/radio-group/types.d.ts +5 -1
- package/build-types/radio-group/types.d.ts.map +1 -1
- package/build-types/resizable-box/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/index.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/scroll-lock/stories/index.story.d.ts.map +1 -1
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/slot-fill/bubbles-virtually/slot.d.ts.map +1 -1
- package/build-types/slot-fill/fill.d.ts.map +1 -1
- package/build-types/slot-fill/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/index.d.ts.map +1 -1
- package/build-types/snackbar/stories/index.story.d.ts.map +1 -1
- package/build-types/snackbar/stories/list.story.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts.map +1 -1
- package/build-types/spinner/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/index.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/index.d.ts +21 -8
- package/build-types/tabs/index.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts +1 -1
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/styles.d.ts +6 -3
- package/build-types/tabs/styles.d.ts.map +1 -1
- package/build-types/tabs/tab.d.ts +0 -3
- package/build-types/tabs/tab.d.ts.map +1 -1
- package/build-types/tabs/tablist.d.ts.map +1 -1
- package/build-types/tabs/types.d.ts +85 -48
- package/build-types/tabs/types.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts.map +1 -1
- package/build-types/text-highlight/stories/index.story.d.ts.map +1 -1
- package/build-types/theme/stories/index.story.d.ts.map +1 -1
- package/build-types/tip/stories/index.story.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toolbar/toolbar/index.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/truncate/stories/index.story.d.ts.map +1 -1
- package/build-types/utils/deprecated-36px-size.d.ts +6 -0
- package/build-types/utils/deprecated-36px-size.d.ts.map +1 -0
- package/build-types/utils/element-rect.d.ts +1 -1
- package/build-types/utils/element-rect.d.ts.map +1 -1
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts +8 -1
- package/build-types/utils/hooks/use-animated-offset-rect.d.ts.map +1 -1
- package/build-types/utils/hooks/use-update-effect.d.ts.map +1 -1
- package/build-types/visually-hidden/stories/index.story.d.ts.map +1 -1
- package/package.json +21 -20
- package/src/alignment-matrix-control/README.md +1 -2
- package/src/angle-picker-control/README.md +1 -2
- package/src/animate/stories/index.story.tsx +2 -1
- package/src/autocomplete/autocompleter-ui.native.js +2 -4
- package/src/autocomplete/autocompleter-ui.tsx +2 -6
- package/src/autocomplete/index.tsx +4 -5
- package/src/base-control/README.md +58 -47
- package/src/base-control/docs-manifest.json +12 -0
- package/src/base-control/stories/index.story.tsx +4 -0
- package/src/base-control/types.ts +3 -0
- package/src/border-box-control/border-box-control/README.md +1 -0
- package/src/border-box-control/border-box-control/component.tsx +1 -0
- package/src/border-box-control/border-box-control/hook.ts +7 -0
- package/src/border-box-control/stories/index.story.tsx +1 -0
- package/src/border-box-control/test/index.tsx +1 -0
- package/src/border-control/border-control/README.md +1 -0
- package/src/border-control/border-control/component.tsx +1 -0
- package/src/border-control/border-control/hook.ts +7 -1
- package/src/border-control/border-control-dropdown/component.tsx +25 -13
- package/src/border-control/stories/index.story.tsx +1 -0
- package/src/border-control/test/index.js +1 -0
- package/src/button/stories/index.story.tsx +2 -1
- package/src/card/stories/index.story.tsx +2 -1
- package/src/color-palette/index.native.js +1 -2
- package/src/color-palette/index.tsx +1 -1
- package/src/color-palette/style.scss +2 -4
- package/src/color-picker/index.native.js +0 -1
- package/src/composite/legacy/index.tsx +5 -2
- package/src/composite/stories/index.story.tsx +2 -1
- package/src/confirm-dialog/stories/index.story.tsx +2 -1
- package/src/custom-gradient-picker/gradient-bar/control-points.tsx +1 -1
- package/src/date-time/date/index.tsx +0 -1
- package/src/disabled/stories/index.story.tsx +2 -1
- package/src/draggable/stories/index.story.tsx +2 -1
- package/src/dropdown/stories/index.story.tsx +2 -1
- package/src/external-link/stories/index.story.tsx +2 -1
- package/src/font-size-picker/index.native.js +7 -7
- package/src/form-file-upload/index.tsx +7 -1
- package/src/form-token-field/index.tsx +0 -3
- package/src/form-token-field/style.scss +12 -13
- package/src/form-token-field/suggestions-list.tsx +6 -0
- package/src/form-token-field/token.tsx +1 -0
- package/src/guide/page-control.tsx +1 -0
- package/src/guide/style.scss +4 -6
- package/src/heading/stories/index.story.tsx +2 -1
- package/src/item-group/stories/index.story.tsx +8 -4
- package/src/keyboard-shortcuts/stories/index.story.tsx +2 -1
- package/src/{dropdown-menu-v2 → menu}/README.md +34 -34
- package/src/{dropdown-menu-v2 → menu}/checkbox-item.tsx +14 -14
- package/src/menu/context.tsx +13 -0
- package/src/{dropdown-menu-v2 → menu}/group-label.tsx +8 -8
- package/src/menu/group.tsx +26 -0
- package/src/{dropdown-menu-v2 → menu}/index.tsx +65 -70
- package/src/{dropdown-menu-v2 → menu}/item-help-text.tsx +3 -7
- package/src/{dropdown-menu-v2 → menu}/item-label.tsx +3 -7
- package/src/{dropdown-menu-v2 → menu}/item.tsx +13 -13
- package/src/{dropdown-menu-v2 → menu}/radio-item.tsx +14 -14
- package/src/menu/separator.tsx +27 -0
- package/src/menu/stories/index.story.tsx +543 -0
- package/src/{dropdown-menu-v2 → menu}/styles.ts +17 -17
- package/src/{dropdown-menu-v2 → menu}/test/index.tsx +145 -225
- package/src/{dropdown-menu-v2 → menu}/types.ts +24 -23
- package/src/menu-item/index.tsx +1 -0
- package/src/menu-item/test/__snapshots__/index.js.snap +4 -4
- package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +3 -5
- package/src/mobile/bottom-sheet/range-cell.native.js +1 -1
- package/src/mobile/bottom-sheet/stepper-cell/index.native.js +1 -1
- package/src/mobile/bottom-sheet/sub-sheet/index.native.js +1 -3
- package/src/mobile/bottom-sheet-select-control/index.native.js +2 -2
- package/src/mobile/color-settings/index.native.js +1 -3
- package/src/mobile/color-settings/picker-screen.native.js +1 -3
- package/src/mobile/image/index.native.js +1 -3
- package/src/mobile/keyboard-avoiding-view/index.ios.js +1 -3
- package/src/mobile/link-picker/link-picker-results.native.js +2 -5
- package/src/mobile/link-picker/link-picker-screen.native.js +1 -3
- package/src/mobile/link-settings/index.native.js +6 -18
- package/src/mobile/link-settings/link-settings-screen.native.js +1 -3
- package/src/mobile/segmented-control/index.native.js +2 -6
- package/src/mobile/utils/use-unit-converter-to-mobile.native.js +2 -6
- package/src/modal/stories/index.story.tsx +2 -1
- package/src/navigable-container/stories/navigable-menu.story.tsx +2 -1
- package/src/navigable-container/stories/tabbable-container.story.tsx +2 -1
- package/src/navigation/index.tsx +1 -2
- package/src/navigation/item/use-navigation-tree-item.tsx +2 -2
- package/src/navigation/menu/menu-title-search.tsx +2 -2
- package/src/navigation/menu/use-navigation-tree-menu.tsx +2 -2
- package/src/navigator/stories/index.story.tsx +2 -1
- package/src/notice/index.tsx +2 -0
- package/src/notice/stories/index.story.tsx +7 -2
- package/src/notice/test/__snapshots__/index.tsx.snap +4 -4
- package/src/palette-edit/index.tsx +9 -5
- package/src/palette-edit/styles.ts +1 -67
- package/src/panel/body.tsx +1 -0
- package/src/panel/stories/index.story.tsx +2 -1
- package/src/popover/index.tsx +3 -0
- package/src/popover/stories/index.story.tsx +2 -1
- package/src/private-apis.ts +3 -3
- package/src/progress-bar/stories/index.story.tsx +2 -1
- package/src/radio-group/README.md +8 -8
- package/src/radio-group/index.tsx +2 -0
- package/src/radio-group/radio.tsx +7 -0
- package/src/radio-group/stories/index.story.tsx +16 -4
- package/src/radio-group/types.ts +6 -1
- package/src/resizable-box/stories/index.story.tsx +2 -1
- package/src/sandbox/index.native.js +1 -3
- package/src/sandbox/index.tsx +3 -6
- package/src/sandbox/stories/index.story.tsx +2 -1
- package/src/scroll-lock/stories/index.story.tsx +2 -1
- package/src/search-control/index.native.js +1 -3
- package/src/shortcut/stories/index.story.tsx +2 -1
- package/src/slot-fill/bubbles-virtually/slot.tsx +1 -2
- package/src/slot-fill/fill.ts +3 -6
- package/src/slot-fill/stories/index.story.tsx +2 -1
- package/src/snackbar/index.tsx +2 -1
- package/src/snackbar/stories/index.story.tsx +2 -1
- package/src/snackbar/stories/list.story.tsx +2 -1
- package/src/snackbar/style.scss +7 -16
- package/src/spacer/hook.ts +3 -2
- package/src/spinner/stories/index.story.tsx +2 -1
- package/src/tab-panel/index.tsx +3 -0
- package/src/tab-panel/stories/index.story.tsx +2 -1
- package/src/tab-panel/style.scss +1 -3
- package/src/tabs/README.md +63 -21
- package/src/tabs/index.tsx +112 -189
- package/src/tabs/stories/index.story.tsx +5 -2
- package/src/tabs/styles.ts +13 -5
- package/src/tabs/tab.tsx +23 -3
- package/src/tabs/tablist.tsx +44 -17
- package/src/tabs/test/index.tsx +131 -118
- package/src/tabs/types.ts +89 -49
- package/src/text/stories/index.story.tsx +2 -1
- package/src/text-highlight/stories/index.story.tsx +2 -1
- package/src/theme/stories/index.story.tsx +2 -1
- package/src/tip/stories/index.story.tsx +2 -1
- package/src/toggle-group-control/toggle-group-control/component.tsx +2 -1
- package/src/toolbar/toolbar/index.tsx +3 -0
- package/src/tools-panel/tools-panel-header/component.tsx +1 -1
- package/src/tools-panel/tools-panel-item/hook.ts +0 -2
- package/src/tooltip/index.native.js +5 -15
- package/src/tooltip/stories/index.story.tsx +2 -1
- package/src/tree-grid/stories/index.story.tsx +2 -1
- package/src/truncate/stories/index.story.tsx +2 -1
- package/src/unit-control/index.native.js +2 -6
- package/src/utils/deprecated-36px-size.ts +27 -0
- package/src/utils/element-rect.ts +14 -2
- package/src/utils/hooks/use-animated-offset-rect.ts +13 -1
- package/src/utils/hooks/use-update-effect.js +0 -2
- package/src/visually-hidden/stories/index.story.tsx +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/build/dropdown-menu-v2/checkbox-item.js.map +0 -1
- package/build/dropdown-menu-v2/context.js.map +0 -1
- package/build/dropdown-menu-v2/group-label.js.map +0 -1
- package/build/dropdown-menu-v2/group.js.map +0 -1
- package/build/dropdown-menu-v2/index.js.map +0 -1
- package/build/dropdown-menu-v2/item-help-text.js.map +0 -1
- package/build/dropdown-menu-v2/item-label.js.map +0 -1
- package/build/dropdown-menu-v2/item.js.map +0 -1
- package/build/dropdown-menu-v2/radio-item.js.map +0 -1
- package/build/dropdown-menu-v2/separator.js.map +0 -1
- package/build/dropdown-menu-v2/styles.js +0 -150
- package/build/dropdown-menu-v2/styles.js.map +0 -1
- package/build/dropdown-menu-v2/types.js.map +0 -1
- package/build/dropdown-menu-v2/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-module/dropdown-menu-v2/checkbox-item.js.map +0 -1
- package/build-module/dropdown-menu-v2/context.js.map +0 -1
- package/build-module/dropdown-menu-v2/group-label.js.map +0 -1
- package/build-module/dropdown-menu-v2/group.js +0 -21
- package/build-module/dropdown-menu-v2/group.js.map +0 -1
- package/build-module/dropdown-menu-v2/index.js.map +0 -1
- package/build-module/dropdown-menu-v2/item-help-text.js.map +0 -1
- package/build-module/dropdown-menu-v2/item-label.js.map +0 -1
- package/build-module/dropdown-menu-v2/item.js.map +0 -1
- package/build-module/dropdown-menu-v2/radio-item.js.map +0 -1
- package/build-module/dropdown-menu-v2/separator.js +0 -22
- package/build-module/dropdown-menu-v2/separator.js.map +0 -1
- package/build-module/dropdown-menu-v2/styles.js +0 -143
- package/build-module/dropdown-menu-v2/styles.js.map +0 -1
- package/build-module/dropdown-menu-v2/types.js.map +0 -1
- package/build-module/dropdown-menu-v2/use-temporary-focus-visible-fix.js.map +0 -1
- package/build-types/dropdown-menu-v2/checkbox-item.d.ts +0 -3
- package/build-types/dropdown-menu-v2/checkbox-item.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/context.d.ts +0 -6
- package/build-types/dropdown-menu-v2/context.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/group-label.d.ts +0 -3
- package/build-types/dropdown-menu-v2/group-label.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/group.d.ts +0 -3
- package/build-types/dropdown-menu-v2/group.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/index.d.ts +0 -40
- package/build-types/dropdown-menu-v2/index.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/item-help-text.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/item-label.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/item.d.ts +0 -3
- package/build-types/dropdown-menu-v2/item.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/radio-item.d.ts +0 -3
- package/build-types/dropdown-menu-v2/radio-item.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/separator.d.ts +0 -3
- package/build-types/dropdown-menu-v2/separator.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts +0 -16
- package/build-types/dropdown-menu-v2/stories/index.story.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/styles.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/test/index.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/types.d.ts.map +0 -1
- package/build-types/dropdown-menu-v2/use-temporary-focus-visible-fix.d.ts.map +0 -1
- package/src/dropdown-menu-v2/context.tsx +0 -13
- package/src/dropdown-menu-v2/group.tsx +0 -26
- package/src/dropdown-menu-v2/separator.tsx +0 -27
- package/src/dropdown-menu-v2/stories/index.story.tsx +0 -639
- /package/build/{dropdown-menu-v2 → menu}/types.js +0 -0
- /package/build/{dropdown-menu-v2 → menu}/use-temporary-focus-visible-fix.js +0 -0
- /package/build-module/{dropdown-menu-v2 → menu}/types.js +0 -0
- /package/build-module/{dropdown-menu-v2 → menu}/use-temporary-focus-visible-fix.js +0 -0
- /package/build-types/{dropdown-menu-v2 → menu}/test/index.d.ts +0 -0
- /package/build-types/{dropdown-menu-v2 → menu}/use-temporary-focus-visible-fix.d.ts +0 -0
- /package/src/{dropdown-menu-v2 → menu}/use-temporary-focus-visible-fix.ts +0 -0
|
@@ -32,7 +32,7 @@ container: HTMLElement | undefined,
|
|
|
32
32
|
/**
|
|
33
33
|
* The rect of the tracked element.
|
|
34
34
|
*/
|
|
35
|
-
rect: ElementOffsetRect, { prefix, dataAttribute, transitionEndFilter, }?: {
|
|
35
|
+
rect: ElementOffsetRect, { prefix, dataAttribute, transitionEndFilter, roundRect, }?: {
|
|
36
36
|
/**
|
|
37
37
|
* The prefix used for the CSS variables, e.g. if `prefix` is `selected`, the
|
|
38
38
|
* CSS variables will be `--selected-top`, `--selected-left`, etc.
|
|
@@ -58,5 +58,12 @@ rect: ElementOffsetRect, { prefix, dataAttribute, transitionEndFilter, }?: {
|
|
|
58
58
|
* @default () => true
|
|
59
59
|
*/
|
|
60
60
|
transitionEndFilter?: (event: TransitionEvent) => boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Whether the `rect` measurements should be rounded down when applied
|
|
63
|
+
* to the CSS variables. This can be useful to avoid blurry animations or
|
|
64
|
+
* to avoid subpixel rendering issues.
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
roundRect?: boolean;
|
|
61
68
|
}): void;
|
|
62
69
|
//# sourceMappingURL=use-animated-offset-rect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-animated-offset-rect.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-animated-offset-rect.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB;AACpC;;GAEG;AACH,SAAS,EAAE,WAAW,GAAG,SAAS;AAClC;;GAEG;AACH,IAAI,EAAE,iBAAiB,EACvB,EACC,MAAqB,EACrB,aAAsC,EACtC,mBAAgC,
|
|
1
|
+
{"version":3,"file":"use-animated-offset-rect.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-animated-offset-rect.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB;AACpC;;GAEG;AACH,SAAS,EAAE,WAAW,GAAG,SAAS;AAClC;;GAEG;AACH,IAAI,EAAE,iBAAiB,EACvB,EACC,MAAqB,EACrB,aAAsC,EACtC,mBAAgC,EAChC,SAAiB,GACjB,GAAE;IACF;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,CAAE,KAAK,EAAE,eAAe,KAAM,OAAO,CAAC;IAC5D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACf,QAmCN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-update-effect.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-update-effect.js"],"names":[],"mappings":";AAKA;;;;;;;GAOG;AACH,yCAHW,OAAO,OAAO,EAAE,cAAc,QAC9B,OAAO,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"use-update-effect.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/use-update-effect.js"],"names":[],"mappings":";AAKA;;;;;;;GAOG;AACH,yCAHW,OAAO,OAAO,EAAE,cAAc,QAC9B,OAAO,OAAO,EAAE,cAAc,QAqBxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/visually-hidden/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,cAAc,CActC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,cAAc,CAanD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAE,OAAO,cAAc,CAW9D,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAE,OAAO,cAAc,CAWpE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.12.0",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
"main": "build/index.js",
|
|
26
26
|
"module": "build-module/index.js",
|
|
27
27
|
"react-native": "src/index",
|
|
28
|
+
"wpScript": true,
|
|
29
|
+
"types": "build-types",
|
|
28
30
|
"sideEffects": [
|
|
29
31
|
"build-style/**",
|
|
30
32
|
"src/**/*.scss"
|
|
31
33
|
],
|
|
32
|
-
"types": "build-types",
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@ariakit/react": "^0.4.10",
|
|
35
36
|
"@babel/runtime": "7.25.7",
|
|
@@ -43,23 +44,23 @@
|
|
|
43
44
|
"@types/gradient-parser": "0.1.3",
|
|
44
45
|
"@types/highlight-words-core": "1.2.1",
|
|
45
46
|
"@use-gesture/react": "^10.3.1",
|
|
46
|
-
"@wordpress/a11y": "
|
|
47
|
-
"@wordpress/compose": "
|
|
48
|
-
"@wordpress/date": "
|
|
49
|
-
"@wordpress/deprecated": "
|
|
50
|
-
"@wordpress/dom": "
|
|
51
|
-
"@wordpress/element": "
|
|
52
|
-
"@wordpress/escape-html": "
|
|
53
|
-
"@wordpress/hooks": "
|
|
54
|
-
"@wordpress/html-entities": "
|
|
55
|
-
"@wordpress/i18n": "
|
|
56
|
-
"@wordpress/icons": "
|
|
57
|
-
"@wordpress/is-shallow-equal": "
|
|
58
|
-
"@wordpress/keycodes": "
|
|
59
|
-
"@wordpress/primitives": "
|
|
60
|
-
"@wordpress/private-apis": "
|
|
61
|
-
"@wordpress/rich-text": "
|
|
62
|
-
"@wordpress/warning": "
|
|
47
|
+
"@wordpress/a11y": "*",
|
|
48
|
+
"@wordpress/compose": "*",
|
|
49
|
+
"@wordpress/date": "*",
|
|
50
|
+
"@wordpress/deprecated": "*",
|
|
51
|
+
"@wordpress/dom": "*",
|
|
52
|
+
"@wordpress/element": "*",
|
|
53
|
+
"@wordpress/escape-html": "*",
|
|
54
|
+
"@wordpress/hooks": "*",
|
|
55
|
+
"@wordpress/html-entities": "*",
|
|
56
|
+
"@wordpress/i18n": "*",
|
|
57
|
+
"@wordpress/icons": "*",
|
|
58
|
+
"@wordpress/is-shallow-equal": "*",
|
|
59
|
+
"@wordpress/keycodes": "*",
|
|
60
|
+
"@wordpress/primitives": "*",
|
|
61
|
+
"@wordpress/private-apis": "*",
|
|
62
|
+
"@wordpress/rich-text": "*",
|
|
63
|
+
"@wordpress/warning": "*",
|
|
63
64
|
"change-case": "^4.1.2",
|
|
64
65
|
"clsx": "^2.1.1",
|
|
65
66
|
"colord": "^2.7.0",
|
|
@@ -84,5 +85,5 @@
|
|
|
84
85
|
"publishConfig": {
|
|
85
86
|
"access": "public"
|
|
86
87
|
},
|
|
87
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "510540d99f3d222a96f08d3d7b66c9e7a726f705"
|
|
88
89
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
<!-- This file is generated automatically and cannot be edited directly. -->
|
|
2
|
-
|
|
3
1
|
# AlignmentMatrixControl
|
|
4
2
|
|
|
3
|
+
<!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
|
|
5
4
|
|
|
6
5
|
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-alignmentmatrixcontrol--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
|
|
7
6
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
<!-- This file is generated automatically and cannot be edited directly. -->
|
|
2
|
-
|
|
3
1
|
# AnglePickerControl
|
|
4
2
|
|
|
3
|
+
<!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
|
|
5
4
|
|
|
6
5
|
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-anglepickercontrol--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
|
|
7
6
|
|
|
@@ -10,7 +10,8 @@ import { Animate } from '..';
|
|
|
10
10
|
import Notice from '../../notice';
|
|
11
11
|
|
|
12
12
|
const meta: Meta< typeof Animate > = {
|
|
13
|
-
title: 'Components/Animate',
|
|
13
|
+
title: 'Components/Utilities/Animate',
|
|
14
|
+
id: 'components-animate',
|
|
14
15
|
component: Animate,
|
|
15
16
|
parameters: {
|
|
16
17
|
controls: { expanded: true },
|
|
@@ -69,9 +69,8 @@ export function getAutoCompleterUI( autocompleter ) {
|
|
|
69
69
|
} else if ( isVisible && text.length === 0 ) {
|
|
70
70
|
startAnimation( false );
|
|
71
71
|
}
|
|
72
|
-
//
|
|
72
|
+
// We want to avoid introducing unexpected side effects.
|
|
73
73
|
// See https://github.com/WordPress/gutenberg/pull/41820
|
|
74
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
75
74
|
}, [ items, isVisible, text ] );
|
|
76
75
|
|
|
77
76
|
const activeItemStyles = usePreferredColorSchemeStyle(
|
|
@@ -112,9 +111,8 @@ export function getAutoCompleterUI( autocompleter ) {
|
|
|
112
111
|
}
|
|
113
112
|
} );
|
|
114
113
|
},
|
|
115
|
-
//
|
|
114
|
+
// We want to avoid introducing unexpected side effects.
|
|
116
115
|
// See https://github.com/WordPress/gutenberg/pull/41820
|
|
117
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
118
116
|
[ isVisible ]
|
|
119
117
|
);
|
|
120
118
|
|
|
@@ -165,9 +165,8 @@ export function getAutoCompleterUI( autocompleter: WPCompleter ) {
|
|
|
165
165
|
useLayoutEffect( () => {
|
|
166
166
|
onChangeOptions( items );
|
|
167
167
|
announce( items );
|
|
168
|
-
//
|
|
168
|
+
// We want to avoid introducing unexpected side effects.
|
|
169
169
|
// See https://github.com/WordPress/gutenberg/pull/41820
|
|
170
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
171
170
|
}, [ items ] );
|
|
172
171
|
|
|
173
172
|
if ( items.length === 0 ) {
|
|
@@ -235,8 +234,5 @@ function useOnClickOutside(
|
|
|
235
234
|
document.removeEventListener( 'mousedown', listener );
|
|
236
235
|
document.removeEventListener( 'touchstart', listener );
|
|
237
236
|
};
|
|
238
|
-
|
|
239
|
-
// hook's dependency list.
|
|
240
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
241
|
-
}, [ handler ] );
|
|
237
|
+
}, [ handler, ref ] );
|
|
242
238
|
}
|
|
@@ -97,7 +97,7 @@ export function useAutocomplete( {
|
|
|
97
97
|
( ( props: AutocompleterUIProps ) => JSX.Element | null ) | null
|
|
98
98
|
>( null );
|
|
99
99
|
|
|
100
|
-
const
|
|
100
|
+
const backspacingRef = useRef( false );
|
|
101
101
|
|
|
102
102
|
function insertCompletion( replacement: React.ReactNode ) {
|
|
103
103
|
if ( autocompleter === null ) {
|
|
@@ -177,7 +177,7 @@ export function useAutocomplete( {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
function handleKeyDown( event: KeyboardEvent ) {
|
|
180
|
-
|
|
180
|
+
backspacingRef.current = event.key === 'Backspace';
|
|
181
181
|
|
|
182
182
|
if ( ! autocompleter ) {
|
|
183
183
|
return;
|
|
@@ -323,7 +323,7 @@ export function useAutocomplete( {
|
|
|
323
323
|
// Ex: "Some text @marcelo sekkkk" <--- "kkkk" caused a mismatch, but
|
|
324
324
|
// if the user presses backspace here, it will show the completion popup again.
|
|
325
325
|
const matchingWhileBackspacing =
|
|
326
|
-
|
|
326
|
+
backspacingRef.current && wordsFromTrigger.length <= 3;
|
|
327
327
|
|
|
328
328
|
if ( mismatch && ! ( matchingWhileBackspacing || hasOneTriggerWord ) ) {
|
|
329
329
|
if ( autocompleter ) {
|
|
@@ -380,9 +380,8 @@ export function useAutocomplete( {
|
|
|
380
380
|
: AutocompleterUI
|
|
381
381
|
);
|
|
382
382
|
setFilterValue( query === null ? '' : query );
|
|
383
|
-
//
|
|
383
|
+
// We want to avoid introducing unexpected side effects.
|
|
384
384
|
// See https://github.com/WordPress/gutenberg/pull/41820
|
|
385
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
386
385
|
}, [ textContent ] );
|
|
387
386
|
|
|
388
387
|
const { key: selectedKey = '' } = filteredOptions[ selectedIndex ] || {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# BaseControl
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- This file is generated automatically and cannot be edited directly. Make edits via TypeScript types and TSDocs. -->
|
|
4
|
+
|
|
5
|
+
<p class="callout callout-info">See the <a href="https://wordpress.github.io/gutenberg/?path=/docs/components-basecontrol--docs">WordPress Storybook</a> for more detailed, interactive documentation.</p>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
`BaseControl` is a component used to generate labels and help text for components handling user inputs.
|
|
6
8
|
|
|
7
9
|
```jsx
|
|
8
10
|
import { BaseControl, useBaseControlProps } from '@wordpress/components';
|
|
@@ -23,70 +25,80 @@ const MyCustomTextareaControl = ({ children, ...baseProps }) => (
|
|
|
23
25
|
);
|
|
24
26
|
);
|
|
25
27
|
```
|
|
26
|
-
|
|
27
28
|
## Props
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
### `__nextHasNoMarginBottom`
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
Start opting into the new margin-free styles that will become the default in a future version.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
- Type: `boolean`
|
|
35
|
+
- Required: No
|
|
36
|
+
- Default: `false`
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
### `as`
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
- Required: No
|
|
40
|
+
The HTML element or React component to render the component as.
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
- Type: `"symbol" | "object" | "label" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | ... 516 more ... | ("view" & FunctionComponent<...>)`
|
|
43
|
+
- Required: No
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
### `className`
|
|
43
46
|
|
|
44
|
-
- Type: `String`
|
|
45
|
-
- Required: No
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
- Type: `string`
|
|
49
|
+
- Required: No
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
### `children`
|
|
52
|
+
|
|
53
|
+
The content to be displayed within the `BaseControl`.
|
|
50
54
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
55
|
+
- Type: `ReactNode`
|
|
56
|
+
- Required: Yes
|
|
53
57
|
|
|
54
|
-
### help
|
|
58
|
+
### `help`
|
|
55
59
|
|
|
56
|
-
Additional description for the control.
|
|
60
|
+
Additional description for the control.
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
- Required: No
|
|
62
|
+
Only use for meaningful description or instructions for the control. An element containing the description will be programmatically associated to the BaseControl by the means of an `aria-describedby` attribute.
|
|
60
63
|
|
|
61
|
-
|
|
64
|
+
- Type: `ReactNode`
|
|
65
|
+
- Required: No
|
|
62
66
|
|
|
63
|
-
|
|
67
|
+
### `hideLabelFromVision`
|
|
64
68
|
|
|
65
|
-
|
|
66
|
-
- Required: No
|
|
69
|
+
If true, the label will only be visible to screen readers.
|
|
67
70
|
|
|
68
|
-
|
|
71
|
+
- Type: `boolean`
|
|
72
|
+
- Required: No
|
|
73
|
+
- Default: `false`
|
|
69
74
|
|
|
70
|
-
|
|
75
|
+
### `id`
|
|
71
76
|
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
The HTML `id` of the control element (passed in as a child to `BaseControl`) to which labels and help text are being generated.
|
|
78
|
+
This is necessary to accessibly associate the label with that element.
|
|
74
79
|
|
|
75
|
-
|
|
80
|
+
The recommended way is to use the `useBaseControlProps` hook, which takes care of generating a unique `id` for you.
|
|
81
|
+
Otherwise, if you choose to pass an explicit `id` to this prop, you are responsible for ensuring the uniqueness of the `id`.
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
- Type: `string`
|
|
84
|
+
- Required: No
|
|
78
85
|
|
|
79
|
-
|
|
80
|
-
- Required: No
|
|
81
|
-
- Default: `false`
|
|
86
|
+
### `label`
|
|
82
87
|
|
|
83
|
-
|
|
88
|
+
If this property is added, a label will be generated using label property as the content.
|
|
84
89
|
|
|
85
|
-
|
|
90
|
+
- Type: `ReactNode`
|
|
91
|
+
- Required: No
|
|
86
92
|
|
|
87
|
-
|
|
93
|
+
## Subcomponents
|
|
88
94
|
|
|
89
|
-
|
|
95
|
+
### BaseControl.VisualLabel
|
|
96
|
+
|
|
97
|
+
`BaseControl.VisualLabel` is used to render a purely visual label inside a `BaseControl` component.
|
|
98
|
+
|
|
99
|
+
It should only be used in cases where the children being rendered inside `BaseControl` are already accessibly labeled,
|
|
100
|
+
e.g., a button, but we want an additional visual label for that section equivalent to the labels `BaseControl` would
|
|
101
|
+
otherwise use if the `label` prop was passed.
|
|
90
102
|
|
|
91
103
|
```jsx
|
|
92
104
|
import { BaseControl } from '@wordpress/components';
|
|
@@ -101,19 +113,18 @@ const MyBaseControl = () => (
|
|
|
101
113
|
</BaseControl>
|
|
102
114
|
);
|
|
103
115
|
```
|
|
116
|
+
#### Props
|
|
104
117
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
#### className
|
|
118
|
+
##### `as`
|
|
108
119
|
|
|
109
|
-
|
|
120
|
+
The HTML element or React component to render the component as.
|
|
110
121
|
|
|
111
|
-
-
|
|
112
|
-
-
|
|
122
|
+
- Type: `"symbol" | "object" | "label" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | ...`
|
|
123
|
+
- Required: No
|
|
113
124
|
|
|
114
|
-
|
|
125
|
+
##### `children`
|
|
115
126
|
|
|
116
127
|
The content to be displayed within the `BaseControl.VisualLabel`.
|
|
117
128
|
|
|
118
|
-
-
|
|
119
|
-
-
|
|
129
|
+
- Type: `ReactNode`
|
|
130
|
+
- Required: Yes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../schemas/docs-manifest.json",
|
|
3
|
+
"displayName": "BaseControl",
|
|
4
|
+
"filePath": "./index.tsx",
|
|
5
|
+
"subcomponents": [
|
|
6
|
+
{
|
|
7
|
+
"displayName": "VisualLabel",
|
|
8
|
+
"preferredDisplayName": "BaseControl.VisualLabel",
|
|
9
|
+
"filePath": "./index.tsx"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -12,6 +12,10 @@ import Button from '../../button';
|
|
|
12
12
|
const meta: Meta< typeof BaseControl > = {
|
|
13
13
|
title: 'Components/BaseControl',
|
|
14
14
|
component: BaseControl,
|
|
15
|
+
subcomponents: {
|
|
16
|
+
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
17
|
+
'BaseControl.VisualLabel': BaseControl.VisualLabel,
|
|
18
|
+
},
|
|
15
19
|
argTypes: {
|
|
16
20
|
children: { control: { type: null } },
|
|
17
21
|
help: { control: { type: 'text' } },
|
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
import type { WordPressComponentProps } from '../../context';
|
|
20
20
|
import { useContextSystem } from '../../context';
|
|
21
21
|
import { useCx } from '../../utils/hooks/use-cx';
|
|
22
|
+
import { maybeWarnDeprecated36pxSize } from '../../utils/deprecated-36px-size';
|
|
22
23
|
|
|
23
24
|
import type { Border } from '../../border-control/types';
|
|
24
25
|
import type { Borders, BorderSide, BorderBoxControlProps } from '../types';
|
|
@@ -39,6 +40,12 @@ export function useBorderBoxControl(
|
|
|
39
40
|
...otherProps
|
|
40
41
|
} = useContextSystem( props, 'BorderBoxControl' );
|
|
41
42
|
|
|
43
|
+
maybeWarnDeprecated36pxSize( {
|
|
44
|
+
componentName: 'BorderBoxControl',
|
|
45
|
+
__next40pxDefaultSize,
|
|
46
|
+
size,
|
|
47
|
+
} );
|
|
48
|
+
|
|
42
49
|
const computedSize =
|
|
43
50
|
size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
|
|
44
51
|
|
|
@@ -11,8 +11,8 @@ import { parseQuantityAndUnitFromRawValue } from '../../unit-control/utils';
|
|
|
11
11
|
import type { WordPressComponentProps } from '../../context';
|
|
12
12
|
import { useContextSystem } from '../../context';
|
|
13
13
|
import { useCx } from '../../utils/hooks/use-cx';
|
|
14
|
-
|
|
15
14
|
import type { Border, BorderControlProps } from '../types';
|
|
15
|
+
import { maybeWarnDeprecated36pxSize } from '../../utils/deprecated-36px-size';
|
|
16
16
|
|
|
17
17
|
// If either width or color are defined, the border is considered valid
|
|
18
18
|
// and a border style can be set as well.
|
|
@@ -41,6 +41,12 @@ export function useBorderControl(
|
|
|
41
41
|
...otherProps
|
|
42
42
|
} = useContextSystem( props, 'BorderControl' );
|
|
43
43
|
|
|
44
|
+
maybeWarnDeprecated36pxSize( {
|
|
45
|
+
componentName: 'BorderControl',
|
|
46
|
+
__next40pxDefaultSize,
|
|
47
|
+
size,
|
|
48
|
+
} );
|
|
49
|
+
|
|
44
50
|
const computedSize =
|
|
45
51
|
size === 'default' && __next40pxDefaultSize ? '__unstable-large' : size;
|
|
46
52
|
|
|
@@ -73,15 +73,19 @@ const getToggleAriaLabel = (
|
|
|
73
73
|
const ariaLabelValue = getAriaLabelColorValue( colorObject.color );
|
|
74
74
|
return style
|
|
75
75
|
? sprintf(
|
|
76
|
-
// translators:
|
|
77
|
-
|
|
76
|
+
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:". 3: The current border style selection e.g. "solid".
|
|
77
|
+
__(
|
|
78
|
+
'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".'
|
|
79
|
+
),
|
|
78
80
|
colorObject.name,
|
|
79
81
|
ariaLabelValue,
|
|
80
82
|
style
|
|
81
83
|
)
|
|
82
84
|
: sprintf(
|
|
83
|
-
// translators:
|
|
84
|
-
|
|
85
|
+
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g.: "#f00:".
|
|
86
|
+
__(
|
|
87
|
+
'Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".'
|
|
88
|
+
),
|
|
85
89
|
colorObject.name,
|
|
86
90
|
ariaLabelValue
|
|
87
91
|
);
|
|
@@ -91,14 +95,18 @@ const getToggleAriaLabel = (
|
|
|
91
95
|
const ariaLabelValue = getAriaLabelColorValue( colorValue );
|
|
92
96
|
return style
|
|
93
97
|
? sprintf(
|
|
94
|
-
// translators:
|
|
95
|
-
|
|
98
|
+
// translators: 1: The color's hex code e.g.: "#f00:". 2: The current border style selection e.g. "solid".
|
|
99
|
+
__(
|
|
100
|
+
'Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".'
|
|
101
|
+
),
|
|
96
102
|
ariaLabelValue,
|
|
97
103
|
style
|
|
98
104
|
)
|
|
99
105
|
: sprintf(
|
|
100
|
-
// translators: %
|
|
101
|
-
|
|
106
|
+
// translators: %s: The color's hex code e.g: "#f00".
|
|
107
|
+
__(
|
|
108
|
+
'Border color and style picker. The currently selected color has a value of "%s".'
|
|
109
|
+
),
|
|
102
110
|
ariaLabelValue
|
|
103
111
|
);
|
|
104
112
|
}
|
|
@@ -108,8 +116,10 @@ const getToggleAriaLabel = (
|
|
|
108
116
|
|
|
109
117
|
if ( colorObject ) {
|
|
110
118
|
return sprintf(
|
|
111
|
-
// translators:
|
|
112
|
-
|
|
119
|
+
// translators: 1: The name of the color e.g. "vivid red". 2: The color's hex code e.g: "#f00".
|
|
120
|
+
__(
|
|
121
|
+
'Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'
|
|
122
|
+
),
|
|
113
123
|
colorObject.name,
|
|
114
124
|
getAriaLabelColorValue( colorObject.color )
|
|
115
125
|
);
|
|
@@ -117,8 +127,10 @@ const getToggleAriaLabel = (
|
|
|
117
127
|
|
|
118
128
|
if ( colorValue ) {
|
|
119
129
|
return sprintf(
|
|
120
|
-
// translators: %
|
|
121
|
-
|
|
130
|
+
// translators: %s: The color's hex code e.g: "#f00".
|
|
131
|
+
__(
|
|
132
|
+
'Border color picker. The currently selected color has a value of "%s".'
|
|
133
|
+
),
|
|
122
134
|
getAriaLabelColorValue( colorValue )
|
|
123
135
|
);
|
|
124
136
|
}
|
|
@@ -176,7 +188,7 @@ const BorderControlDropdown = (
|
|
|
176
188
|
tooltipPosition={ dropdownPosition }
|
|
177
189
|
label={ __( 'Border color and style picker' ) }
|
|
178
190
|
showTooltip
|
|
179
|
-
__next40pxDefaultSize={ size === '__unstable-large'
|
|
191
|
+
__next40pxDefaultSize={ size === '__unstable-large' }
|
|
180
192
|
>
|
|
181
193
|
<span className={ indicatorWrapperClassName }>
|
|
182
194
|
<ColorIndicator
|
|
@@ -22,7 +22,8 @@ import './style.css';
|
|
|
22
22
|
import Button from '..';
|
|
23
23
|
|
|
24
24
|
const meta: Meta< typeof Button > = {
|
|
25
|
-
title: 'Components/Button',
|
|
25
|
+
title: 'Components/Actions/Button',
|
|
26
|
+
id: 'components-button',
|
|
26
27
|
component: Button,
|
|
27
28
|
argTypes: {
|
|
28
29
|
// Overrides a limitation of the docgen interpreting our TS types for this as required.
|
|
@@ -22,7 +22,8 @@ const meta: Meta< typeof Card > = {
|
|
|
22
22
|
component: Card,
|
|
23
23
|
// @ts-expect-error - See https://github.com/storybookjs/storybook/issues/23170
|
|
24
24
|
subcomponents: { CardHeader, CardBody, CardDivider, CardMedia, CardFooter },
|
|
25
|
-
title: 'Components/Card',
|
|
25
|
+
title: 'Components/Containers/Card',
|
|
26
|
+
id: 'components-card',
|
|
26
27
|
argTypes: {
|
|
27
28
|
as: {
|
|
28
29
|
control: { type: null },
|