@wordpress/components 19.2.1-next.33ec3857e2.0 → 19.2.1
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 +6 -29
- package/build/angle-picker-control/index.js +0 -2
- package/build/angle-picker-control/index.js.map +1 -1
- package/build/button/index.native.js +3 -13
- package/build/button/index.native.js.map +1 -1
- package/build/checkbox-control/index.js +1 -1
- package/build/checkbox-control/index.js.map +1 -1
- package/build/clipboard-button/index.js +2 -1
- package/build/clipboard-button/index.js.map +1 -1
- package/build/color-palette/index.js +1 -13
- package/build/color-palette/index.js.map +1 -1
- package/build/color-picker/color-display.js +2 -4
- package/build/color-picker/color-display.js.map +1 -1
- package/build/color-picker/hex-input.js +1 -3
- package/build/color-picker/hex-input.js.map +1 -1
- package/build/color-picker/input-with-slider.js +1 -3
- package/build/color-picker/input-with-slider.js.map +1 -1
- package/build/custom-gradient-picker/index.js +0 -1
- package/build/custom-gradient-picker/index.js.map +1 -1
- package/build/date-time/date.js +86 -63
- package/build/date-time/date.js.map +1 -1
- package/build/divider/component.js +7 -8
- package/build/divider/component.js.map +1 -1
- package/build/divider/styles.js +13 -38
- package/build/divider/styles.js.map +1 -1
- package/build/drop-zone/index.js +6 -14
- package/build/drop-zone/index.js.map +1 -1
- package/build/drop-zone/provider.js +0 -1
- package/build/drop-zone/provider.js.map +1 -1
- package/build/flyout/styles.js +2 -2
- package/build/flyout/styles.js.map +1 -1
- package/build/focusable-iframe/index.js +0 -1
- package/build/focusable-iframe/index.js.map +1 -1
- package/build/higher-order/with-focus-outside/index.js +0 -2
- package/build/higher-order/with-focus-outside/index.js.map +1 -1
- package/build/index.js +0 -8
- package/build/index.js.map +1 -1
- package/build/input-control/styles/input-control-styles.js +32 -44
- package/build/input-control/styles/input-control-styles.js.map +1 -1
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js +3 -10
- package/build/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build/mobile/color-settings/index.native.js +2 -4
- package/build/mobile/color-settings/index.native.js.map +1 -1
- package/build/mobile/color-settings/palette.screen.native.js +6 -7
- package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build/mobile/global-styles-context/utils.native.js +1 -1
- package/build/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build/mobile/gridicons/index.native.js +1 -3
- package/build/mobile/gridicons/index.native.js.map +1 -1
- package/build/mobile/link-picker/index.native.js +4 -45
- package/build/mobile/link-picker/index.native.js.map +1 -1
- package/build/mobile/link-settings/index.native.js +0 -10
- package/build/mobile/link-settings/index.native.js.map +1 -1
- package/build/modal/aria-helper.js +0 -2
- package/build/modal/aria-helper.js.map +1 -1
- package/build/modal/index.js +8 -17
- package/build/modal/index.js.map +1 -1
- package/build/palette-edit/index.js +31 -27
- package/build/palette-edit/index.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +9 -33
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/style-provider/index.js +0 -2
- package/build/style-provider/index.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/component.js +2 -7
- package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +14 -25
- package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
- package/build/tools-panel/styles.js +10 -12
- package/build/tools-panel/styles.js.map +1 -1
- package/build/tools-panel/tools-panel/component.js +8 -6
- package/build/tools-panel/tools-panel/component.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +8 -6
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build/unit-control/styles/unit-control-styles.js +41 -23
- package/build/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build/z-stack/component.js.map +1 -1
- package/build/z-stack/styles.js +8 -10
- package/build/z-stack/styles.js.map +1 -1
- package/build-module/angle-picker-control/index.js +0 -2
- package/build-module/angle-picker-control/index.js.map +1 -1
- package/build-module/button/index.native.js +3 -13
- package/build-module/button/index.native.js.map +1 -1
- package/build-module/checkbox-control/index.js +1 -1
- package/build-module/checkbox-control/index.js.map +1 -1
- package/build-module/clipboard-button/index.js +2 -1
- package/build-module/clipboard-button/index.js.map +1 -1
- package/build-module/color-palette/index.js +2 -14
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-picker/color-display.js +2 -3
- package/build-module/color-picker/color-display.js.map +1 -1
- package/build-module/color-picker/hex-input.js +1 -2
- package/build-module/color-picker/hex-input.js.map +1 -1
- package/build-module/color-picker/input-with-slider.js +1 -2
- package/build-module/color-picker/input-with-slider.js.map +1 -1
- package/build-module/custom-gradient-picker/index.js +0 -1
- package/build-module/custom-gradient-picker/index.js.map +1 -1
- package/build-module/date-time/date.js +87 -63
- package/build-module/date-time/date.js.map +1 -1
- package/build-module/divider/component.js +7 -8
- package/build-module/divider/component.js.map +1 -1
- package/build-module/divider/styles.js +13 -37
- package/build-module/divider/styles.js.map +1 -1
- package/build-module/drop-zone/index.js +6 -14
- package/build-module/drop-zone/index.js.map +1 -1
- package/build-module/drop-zone/provider.js +0 -1
- package/build-module/drop-zone/provider.js.map +1 -1
- package/build-module/flyout/styles.js +2 -2
- package/build-module/flyout/styles.js.map +1 -1
- package/build-module/focusable-iframe/index.js +0 -1
- package/build-module/focusable-iframe/index.js.map +1 -1
- package/build-module/higher-order/with-focus-outside/index.js +0 -1
- package/build-module/higher-order/with-focus-outside/index.js.map +1 -1
- package/build-module/index.js +0 -1
- package/build-module/index.js.map +1 -1
- package/build-module/input-control/styles/input-control-styles.js +32 -44
- package/build-module/input-control/styles/input-control-styles.js.map +1 -1
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js +4 -10
- package/build-module/mobile/bottom-sheet/link-suggestion-item-cell.native.js.map +1 -1
- package/build-module/mobile/color-settings/index.native.js +2 -4
- package/build-module/mobile/color-settings/index.native.js.map +1 -1
- package/build-module/mobile/color-settings/palette.screen.native.js +6 -7
- package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
- package/build-module/mobile/global-styles-context/utils.native.js +1 -1
- package/build-module/mobile/global-styles-context/utils.native.js.map +1 -1
- package/build-module/mobile/gridicons/index.native.js +0 -1
- package/build-module/mobile/gridicons/index.native.js.map +1 -1
- package/build-module/mobile/link-picker/index.native.js +8 -50
- package/build-module/mobile/link-picker/index.native.js.map +1 -1
- package/build-module/mobile/link-settings/index.native.js +0 -10
- package/build-module/mobile/link-settings/index.native.js.map +1 -1
- package/build-module/modal/aria-helper.js +0 -2
- package/build-module/modal/aria-helper.js.map +1 -1
- package/build-module/modal/index.js +8 -15
- package/build-module/modal/index.js.map +1 -1
- package/build-module/palette-edit/index.js +30 -27
- package/build-module/palette-edit/index.js.map +1 -1
- package/build-module/select-control/styles/select-control-styles.js +9 -33
- package/build-module/select-control/styles/select-control-styles.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/toggle-group-control/toggle-group-control/component.js +3 -8
- package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
- package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +14 -25
- package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +1 -1
- package/build-module/tools-panel/styles.js +11 -12
- package/build-module/tools-panel/styles.js.map +1 -1
- package/build-module/tools-panel/tools-panel/component.js +8 -5
- package/build-module/tools-panel/tools-panel/component.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js +8 -6
- package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-module/unit-control/styles/unit-control-styles.js +41 -23
- package/build-module/unit-control/styles/unit-control-styles.js.map +1 -1
- package/build-module/z-stack/component.js.map +1 -1
- package/build-module/z-stack/styles.js +8 -13
- package/build-module/z-stack/styles.js.map +1 -1
- package/build-style/style-rtl.css +11 -23
- package/build-style/style.css +11 -23
- package/build-types/base-field/hook.d.ts +16 -16
- package/build-types/card/card/hook.d.ts +16 -16
- package/build-types/card/card-body/hook.d.ts +16 -16
- package/build-types/card/card-divider/hook.d.ts +18 -18
- package/build-types/card/card-footer/hook.d.ts +17 -17
- package/build-types/card/card-header/hook.d.ts +16 -16
- package/build-types/card/card-media/hook.d.ts +16 -16
- package/build-types/divider/component.d.ts +7 -8
- package/build-types/divider/component.d.ts.map +1 -1
- package/build-types/divider/styles.d.ts +2 -2
- package/build-types/divider/styles.d.ts.map +1 -1
- package/build-types/divider/types.d.ts +5 -5
- package/build-types/divider/types.d.ts.map +1 -1
- package/build-types/elevation/hook.d.ts +15 -15
- package/build-types/flex/flex/hook.d.ts +16 -16
- package/build-types/flex/flex-block/hook.d.ts +16 -16
- package/build-types/flex/flex-item/hook.d.ts +16 -16
- package/build-types/flyout/flyout/hook.d.ts +17 -17
- package/build-types/flyout/styles.d.ts +9 -7
- package/build-types/flyout/styles.d.ts.map +1 -1
- package/build-types/grid/hook.d.ts +16 -16
- package/build-types/h-stack/hook.d.ts +16 -16
- package/build-types/heading/hook.d.ts +16 -16
- package/build-types/input-control/index.d.ts +1 -1
- package/build-types/input-control/index.d.ts.map +1 -1
- package/build-types/input-control/input-field.d.ts +1 -1
- package/build-types/input-control/input-field.d.ts.map +1 -1
- package/build-types/input-control/styles/input-control-styles.d.ts +2 -1
- package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
- package/build-types/input-control/types.d.ts +1 -2
- package/build-types/input-control/types.d.ts.map +1 -1
- package/build-types/item-group/item/hook.d.ts +16 -16
- package/build-types/item-group/item-group/hook.d.ts +16 -16
- package/build-types/number-control/styles/number-control-styles.d.ts +1 -1
- package/build-types/scrollable/hook.d.ts +16 -16
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +1 -1
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +16 -16
- package/build-types/surface/hook.d.ts +16 -16
- package/build-types/text/hook.d.ts +16 -16
- package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
- package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts.map +1 -1
- package/build-types/tools-panel/styles.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel/hook.d.ts +16 -16
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +16 -16
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +16 -16
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +16 -16
- package/build-types/ui/control-group/hook.d.ts +18 -18
- package/build-types/ui/control-label/hook.d.ts +16 -16
- package/build-types/ui/form-group/form-group.d.ts +4 -4
- package/build-types/ui/form-group/use-form-group.d.ts +55 -55
- package/build-types/unit-control/index.d.ts +1 -1
- package/build-types/unit-control/index.d.ts.map +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +0 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts.map +1 -1
- package/build-types/unit-control/types.d.ts +2 -2
- package/build-types/unit-control/types.d.ts.map +1 -1
- package/build-types/v-stack/hook.d.ts +16 -16
- package/build-types/z-stack/component.d.ts +1 -1
- package/build-types/z-stack/styles.d.ts.map +1 -1
- package/package.json +23 -21
- package/src/alignment-matrix-control/stories/index.js +1 -1
- package/src/angle-picker-control/index.js +0 -2
- package/src/base-control/stories/index.js +1 -1
- package/src/button/index.native.js +1 -15
- package/src/button/stories/index.js +1 -1
- package/src/button/style.scss +0 -14
- package/src/card/card/README.md +3 -3
- package/src/card/stories/index.js +1 -1
- package/src/card/test/__snapshots__/index.js.snap +6 -6
- package/src/checkbox-control/index.js +1 -1
- package/src/checkbox-control/stories/index.js +1 -1
- package/src/clipboard-button/index.js +2 -1
- package/src/color-indicator/stories/index.js +1 -1
- package/src/color-indicator/style.scss +8 -5
- package/src/color-palette/index.js +5 -13
- package/src/color-palette/stories/index.js +1 -1
- package/src/color-palette/test/__snapshots__/index.js.snap +0 -1
- package/src/color-picker/color-display.tsx +2 -3
- package/src/color-picker/hex-input.tsx +1 -2
- package/src/color-picker/input-with-slider.tsx +1 -2
- package/src/color-picker/stories/index.js +1 -1
- package/src/combobox-control/README.md +2 -2
- package/src/custom-gradient-picker/index.js +0 -1
- package/src/custom-gradient-picker/style.scss +4 -0
- package/src/date-time/README.md +0 -7
- package/src/date-time/date.js +84 -67
- package/src/date-time/stories/index.js +1 -1
- package/src/date-time/stories/time.js +1 -1
- package/src/date-time/test/date.js +29 -3
- package/src/dimension-control/README.md +1 -1
- package/src/divider/README.md +5 -33
- package/src/divider/component.tsx +7 -8
- package/src/divider/stories/index.js +17 -43
- package/src/divider/styles.ts +16 -53
- package/src/divider/test/__snapshots__/index.js.snap +11 -11
- package/src/divider/test/index.js +4 -4
- package/src/divider/types.ts +5 -5
- package/src/drop-zone/index.js +6 -14
- package/src/drop-zone/provider.js +0 -1
- package/src/dropdown-menu/stories/index.js +1 -1
- package/src/duotone-picker/README.md +1 -1
- package/src/elevation/stories/index.js +1 -1
- package/src/external-link/stories/index.js +1 -1
- package/src/flyout/styles.ts +2 -4
- package/src/focusable-iframe/index.js +0 -1
- package/src/font-size-picker/stories/index.js +1 -1
- package/src/form-token-field/stories/index.js +1 -1
- package/src/gradient-picker/stories/index.js +1 -1
- package/src/grid/stories/index.js +1 -1
- package/src/guide/stories/index.js +1 -1
- package/src/higher-order/with-focus-outside/index.js +0 -2
- package/src/icon/stories/index.js +1 -1
- package/src/index.js +0 -1
- package/src/input-control/stories/index.js +1 -2
- package/src/input-control/styles/input-control-styles.tsx +6 -16
- package/src/input-control/types.ts +1 -3
- package/src/item-group/stories/index.js +2 -84
- package/src/menu-item/README.md +2 -2
- package/src/mobile/bottom-sheet/link-suggestion-item-cell.native.js +2 -6
- package/src/mobile/color-settings/index.native.js +0 -2
- package/src/mobile/color-settings/palette.screen.native.js +5 -8
- package/src/mobile/color-settings/style.native.scss +1 -1
- package/src/mobile/global-styles-context/utils.native.js +1 -1
- package/src/mobile/gridicons/index.native.js +3 -3
- package/src/mobile/inserter-button/style.native.scss +0 -1
- package/src/mobile/link-picker/index.native.js +7 -41
- package/src/mobile/link-settings/index.native.js +0 -11
- package/src/modal/README.md +0 -10
- package/src/modal/aria-helper.js +0 -2
- package/src/modal/index.js +55 -72
- package/src/modal/stories/index.js +1 -6
- package/src/modal/style.scss +0 -9
- package/src/modal/test/index.js +0 -11
- package/src/navigation/README.md +9 -0
- package/src/notice/stories/index.js +1 -1
- package/src/number-control/stories/index.js +1 -1
- package/src/palette-edit/index.js +106 -73
- package/src/panel/stories/index.js +1 -1
- package/src/placeholder/stories/index.js +1 -1
- package/src/popover/stories/index.js +1 -1
- package/src/query-controls/README.md +6 -138
- package/src/radio-group/README.md +1 -4
- package/src/range-control/stories/index.js +1 -1
- package/src/resizable-box/stories/index.js +1 -1
- package/src/scrollable/stories/index.js +1 -1
- package/src/search-control/stories/index.js +1 -1
- package/src/select-control/stories/index.js +1 -2
- package/src/select-control/styles/select-control-styles.ts +2 -25
- package/src/select-control/types.ts +1 -1
- package/src/slot-fill/stories/index.js +1 -1
- package/src/snackbar/stories/index.js +1 -1
- package/src/spacer/stories/index.js +1 -1
- package/src/style-provider/index.js +0 -2
- package/src/surface/stories/index.js +1 -1
- package/src/tab-panel/stories/index.js +1 -1
- package/src/text-control/stories/index.js +1 -1
- package/src/text-highlight/stories/index.js +1 -1
- package/src/textarea-control/stories/index.js +1 -1
- package/src/tip/stories/index.js +1 -1
- package/src/toggle-control/stories/index.js +1 -1
- package/src/toggle-group-control/stories/index.js +1 -1
- package/src/toggle-group-control/toggle-group-control/component.tsx +2 -7
- package/src/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.tsx +9 -24
- package/src/toolbar-button/stories/index.js +1 -1
- package/src/tools-panel/stories/index.js +0 -54
- package/src/tools-panel/styles.ts +1 -41
- package/src/tools-panel/test/index.js +137 -19
- package/src/tools-panel/tools-panel/README.md +3 -11
- package/src/tools-panel/tools-panel/component.tsx +5 -2
- package/src/tools-panel/tools-panel-item/hook.ts +14 -6
- package/src/tooltip/stories/index.js +1 -1
- package/src/tree-select/stories/index.js +1 -1
- package/src/truncate/stories/index.js +1 -1
- package/src/unit-control/stories/index.js +1 -19
- package/src/unit-control/styles/unit-control-styles.ts +46 -33
- package/src/unit-control/types.ts +2 -5
- package/src/z-stack/README.md +1 -1
- package/src/z-stack/component.tsx +1 -1
- package/src/z-stack/stories/index.js +1 -1
- package/src/z-stack/styles.ts +2 -7
- package/tsconfig.json +2 -6
- package/tsconfig.tsbuildinfo +1 -1
- package/build/confirm-dialog/component.js +0 -103
- package/build/confirm-dialog/component.js.map +0 -1
- package/build/confirm-dialog/index.js +0 -16
- package/build/confirm-dialog/index.js.map +0 -1
- package/build/confirm-dialog/types.js +0 -6
- package/build/confirm-dialog/types.js.map +0 -1
- package/build/date-time/utils.js +0 -32
- package/build/date-time/utils.js.map +0 -1
- package/build-module/confirm-dialog/component.js +0 -84
- package/build-module/confirm-dialog/component.js.map +0 -1
- package/build-module/confirm-dialog/index.js +0 -6
- package/build-module/confirm-dialog/index.js.map +0 -1
- package/build-module/confirm-dialog/types.js +0 -2
- package/build-module/confirm-dialog/types.js.map +0 -1
- package/build-module/date-time/utils.js +0 -20
- package/build-module/date-time/utils.js.map +0 -1
- package/src/confirm-dialog/README.md +0 -128
- package/src/confirm-dialog/component.tsx +0 -114
- package/src/confirm-dialog/index.tsx +0 -6
- package/src/confirm-dialog/stories/index.js +0 -120
- package/src/confirm-dialog/test/index.js +0 -302
- package/src/confirm-dialog/types.ts +0 -26
- package/src/date-time/test/utils.js +0 -32
- package/src/date-time/utils.js +0 -18
- package/src/mobile/link-settings/test/edit.native.js +0 -432
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export function useFormGroup(props: import('../context').WordPressComponentProps<import('./types').FormGroupProps, 'div'>): {
|
|
5
5
|
className: string;
|
|
6
6
|
contentProps: {
|
|
7
|
-
alignLabel: import("csstype").Property.TextAlign;
|
|
7
|
+
alignLabel: import("react/node_modules/csstype").Property.TextAlign;
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
9
|
help: import("react").ReactNode;
|
|
10
10
|
id: string | number;
|
|
@@ -14,88 +14,88 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
|
|
|
14
14
|
truncate: boolean;
|
|
15
15
|
};
|
|
16
16
|
horizontal: boolean;
|
|
17
|
-
align?: (import("csstype").Property.TextAlign & import("csstype").Property.AlignItems) | undefined;
|
|
17
|
+
align?: (import("react/node_modules/csstype").Property.TextAlign & import("react/node_modules/csstype").Property.AlignItems) | undefined;
|
|
18
18
|
adjustLineHeightForInnerControls?: (boolean | "small" | "medium" | "large" | "xSmall") | undefined;
|
|
19
|
-
color?: import("csstype").Property.Color | undefined;
|
|
20
|
-
display?: import("csstype").Property.Display | undefined;
|
|
19
|
+
color?: import("react/node_modules/csstype").Property.Color | undefined;
|
|
20
|
+
display?: import("react/node_modules/csstype").Property.Display | undefined;
|
|
21
21
|
isDestructive?: boolean | undefined;
|
|
22
22
|
highlightEscape?: boolean | undefined;
|
|
23
23
|
highlightCaseSensitive?: boolean | undefined;
|
|
24
24
|
highlightSanitize?: ((text: string) => string) | undefined;
|
|
25
25
|
isBlock?: boolean | undefined;
|
|
26
|
-
lineHeight?: import("csstype").Property.LineHeight<string | number> | undefined;
|
|
27
|
-
optimizeReadabilityFor?: import("csstype").Property.Color | undefined;
|
|
26
|
+
lineHeight?: import("react/node_modules/csstype").Property.LineHeight<string | number> | undefined;
|
|
27
|
+
optimizeReadabilityFor?: import("react/node_modules/csstype").Property.Color | undefined;
|
|
28
28
|
size?: ((string | number | (string & {})) & ("small" | "medium" | "large")) | undefined;
|
|
29
29
|
upperCase?: boolean | undefined;
|
|
30
30
|
variant?: "muted" | undefined;
|
|
31
|
-
weight?: import("csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
|
|
32
|
-
letterSpacing?: import("csstype").Property.LetterSpacing<string | number> | undefined;
|
|
31
|
+
weight?: import("react/node_modules/csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
|
|
32
|
+
letterSpacing?: import("react/node_modules/csstype").Property.LetterSpacing<string | number> | undefined;
|
|
33
33
|
highlightWords?: string[] | undefined;
|
|
34
34
|
ellipsis?: string | undefined;
|
|
35
35
|
ellipsizeMode?: import("../../truncate/types").TruncateEllisizeMode | undefined;
|
|
36
36
|
limit?: number | undefined;
|
|
37
37
|
numberOfLines?: number | undefined;
|
|
38
|
-
spacing?: import("csstype").Property.Width<string | number> | undefined;
|
|
38
|
+
spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
|
|
39
39
|
alignment?: ("top" | "bottom" | "left" | "right" | "center" | "stretch" | "bottomLeft" | "bottomRight" | "spaced" | "topLeft" | "topRight") | undefined;
|
|
40
40
|
columns?: (number | (number | undefined)[]) | undefined;
|
|
41
|
-
columnGap?: import("csstype").Property.GridColumnGap<string | number> | undefined;
|
|
41
|
+
columnGap?: import("react/node_modules/csstype").Property.GridColumnGap<string | number> | undefined;
|
|
42
42
|
isInline?: boolean | undefined;
|
|
43
43
|
gap?: number | undefined;
|
|
44
|
-
justify?: import("csstype").Property.JustifyContent | undefined;
|
|
45
|
-
rowGap?: import("csstype").Property.GridRowGap<string | number> | undefined;
|
|
44
|
+
justify?: import("react/node_modules/csstype").Property.JustifyContent | undefined;
|
|
45
|
+
rowGap?: import("react/node_modules/csstype").Property.GridRowGap<string | number> | undefined;
|
|
46
46
|
rows?: (number | (number | undefined)[]) | undefined;
|
|
47
|
-
templateColumns?: import("csstype").Property.GridTemplateColumns<string | number> | undefined;
|
|
48
|
-
templateRows?: import("csstype").Property.GridTemplateRows<string | number> | undefined;
|
|
47
|
+
templateColumns?: import("react/node_modules/csstype").Property.GridTemplateColumns<string | number> | undefined;
|
|
48
|
+
templateRows?: import("react/node_modules/csstype").Property.GridTemplateRows<string | number> | undefined;
|
|
49
49
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
50
50
|
slot?: string | undefined;
|
|
51
51
|
style?: import("react").CSSProperties | undefined;
|
|
52
52
|
title?: string | undefined;
|
|
53
53
|
key?: import("react").Key | null | undefined;
|
|
54
54
|
lang?: string | undefined;
|
|
55
|
-
role?:
|
|
55
|
+
role?: string | undefined;
|
|
56
56
|
tabIndex?: number | undefined;
|
|
57
57
|
'aria-activedescendant'?: string | undefined;
|
|
58
|
-
'aria-atomic'?:
|
|
59
|
-
'aria-autocomplete'?: "
|
|
60
|
-
'aria-busy'?:
|
|
58
|
+
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
59
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
|
|
60
|
+
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
61
61
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
62
|
'aria-colcount'?: number | undefined;
|
|
63
63
|
'aria-colindex'?: number | undefined;
|
|
64
64
|
'aria-colspan'?: number | undefined;
|
|
65
65
|
'aria-controls'?: string | undefined;
|
|
66
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "
|
|
66
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
67
67
|
'aria-describedby'?: string | undefined;
|
|
68
68
|
'aria-details'?: string | undefined;
|
|
69
|
-
'aria-disabled'?:
|
|
69
|
+
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
70
70
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
71
71
|
'aria-errormessage'?: string | undefined;
|
|
72
|
-
'aria-expanded'?:
|
|
72
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
73
73
|
'aria-flowto'?: string | undefined;
|
|
74
|
-
'aria-grabbed'?:
|
|
75
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
76
|
-
'aria-hidden'?:
|
|
74
|
+
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
75
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
76
|
+
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
77
77
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
78
78
|
'aria-keyshortcuts'?: string | undefined;
|
|
79
79
|
'aria-label'?: string | undefined;
|
|
80
80
|
'aria-labelledby'?: string | undefined;
|
|
81
81
|
'aria-level'?: number | undefined;
|
|
82
82
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
83
|
-
'aria-modal'?:
|
|
84
|
-
'aria-multiline'?:
|
|
85
|
-
'aria-multiselectable'?:
|
|
83
|
+
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
84
|
+
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
85
|
+
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
86
86
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
87
87
|
'aria-owns'?: string | undefined;
|
|
88
88
|
'aria-placeholder'?: string | undefined;
|
|
89
89
|
'aria-posinset'?: number | undefined;
|
|
90
90
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
91
|
-
'aria-readonly'?:
|
|
91
|
+
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
92
92
|
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
93
|
-
'aria-required'?:
|
|
93
|
+
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
94
94
|
'aria-roledescription'?: string | undefined;
|
|
95
95
|
'aria-rowcount'?: number | undefined;
|
|
96
96
|
'aria-rowindex'?: number | undefined;
|
|
97
97
|
'aria-rowspan'?: number | undefined;
|
|
98
|
-
'aria-selected'?:
|
|
98
|
+
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
99
99
|
'aria-setsize'?: number | undefined;
|
|
100
100
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
101
101
|
'aria-valuemax'?: number | undefined;
|
|
@@ -304,7 +304,7 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
|
|
|
304
304
|
} | {
|
|
305
305
|
className: string;
|
|
306
306
|
contentProps: {
|
|
307
|
-
alignLabel: import("csstype").Property.TextAlign;
|
|
307
|
+
alignLabel: import("react/node_modules/csstype").Property.TextAlign;
|
|
308
308
|
children: import("react").ReactNode;
|
|
309
309
|
help: import("react").ReactNode;
|
|
310
310
|
id: string | number;
|
|
@@ -314,78 +314,78 @@ export function useFormGroup(props: import('../context').WordPressComponentProps
|
|
|
314
314
|
truncate: boolean;
|
|
315
315
|
};
|
|
316
316
|
horizontal: boolean;
|
|
317
|
-
align?: import("csstype").Property.TextAlign | undefined;
|
|
317
|
+
align?: import("react/node_modules/csstype").Property.TextAlign | undefined;
|
|
318
318
|
adjustLineHeightForInnerControls?: (boolean | "small" | "medium" | "large" | "xSmall") | undefined;
|
|
319
|
-
color?: import("csstype").Property.Color | undefined;
|
|
320
|
-
display?: import("csstype").Property.Display | undefined;
|
|
319
|
+
color?: import("react/node_modules/csstype").Property.Color | undefined;
|
|
320
|
+
display?: import("react/node_modules/csstype").Property.Display | undefined;
|
|
321
321
|
isDestructive?: boolean | undefined;
|
|
322
322
|
highlightEscape?: boolean | undefined;
|
|
323
323
|
highlightCaseSensitive?: boolean | undefined;
|
|
324
324
|
highlightSanitize?: ((text: string) => string) | undefined;
|
|
325
325
|
isBlock?: boolean | undefined;
|
|
326
|
-
lineHeight?: import("csstype").Property.LineHeight<string | number> | undefined;
|
|
327
|
-
optimizeReadabilityFor?: import("csstype").Property.Color | undefined;
|
|
326
|
+
lineHeight?: import("react/node_modules/csstype").Property.LineHeight<string | number> | undefined;
|
|
327
|
+
optimizeReadabilityFor?: import("react/node_modules/csstype").Property.Color | undefined;
|
|
328
328
|
size?: ((string | number | (string & {})) & ("small" | "medium" | "large")) | undefined;
|
|
329
329
|
upperCase?: boolean | undefined;
|
|
330
330
|
variant?: "muted" | undefined;
|
|
331
|
-
weight?: import("csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
|
|
332
|
-
letterSpacing?: import("csstype").Property.LetterSpacing<string | number> | undefined;
|
|
331
|
+
weight?: import("react/node_modules/csstype").Property.FontWeight | (900 | 700 | 300 | 200 | 400 | 500 | 100 | 600 | 800) | undefined;
|
|
332
|
+
letterSpacing?: import("react/node_modules/csstype").Property.LetterSpacing<string | number> | undefined;
|
|
333
333
|
highlightWords?: string[] | undefined;
|
|
334
334
|
ellipsis?: string | undefined;
|
|
335
335
|
ellipsizeMode?: import("../../truncate/types").TruncateEllisizeMode | undefined;
|
|
336
336
|
limit?: number | undefined;
|
|
337
337
|
numberOfLines?: number | undefined;
|
|
338
|
-
spacing?: import("csstype").Property.Width<string | number> | undefined;
|
|
338
|
+
spacing?: import("react/node_modules/csstype").Property.Width<string | number> | undefined;
|
|
339
339
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
340
340
|
slot?: string | undefined;
|
|
341
341
|
style?: import("react").CSSProperties | undefined;
|
|
342
342
|
title?: string | undefined;
|
|
343
343
|
key?: import("react").Key | null | undefined;
|
|
344
344
|
lang?: string | undefined;
|
|
345
|
-
role?:
|
|
345
|
+
role?: string | undefined;
|
|
346
346
|
tabIndex?: number | undefined;
|
|
347
347
|
'aria-activedescendant'?: string | undefined;
|
|
348
|
-
'aria-atomic'?:
|
|
349
|
-
'aria-autocomplete'?: "
|
|
350
|
-
'aria-busy'?:
|
|
348
|
+
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
349
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
|
|
350
|
+
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
351
351
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
352
352
|
'aria-colcount'?: number | undefined;
|
|
353
353
|
'aria-colindex'?: number | undefined;
|
|
354
354
|
'aria-colspan'?: number | undefined;
|
|
355
355
|
'aria-controls'?: string | undefined;
|
|
356
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "
|
|
356
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
357
357
|
'aria-describedby'?: string | undefined;
|
|
358
358
|
'aria-details'?: string | undefined;
|
|
359
|
-
'aria-disabled'?:
|
|
359
|
+
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
360
360
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
361
361
|
'aria-errormessage'?: string | undefined;
|
|
362
|
-
'aria-expanded'?:
|
|
362
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
363
363
|
'aria-flowto'?: string | undefined;
|
|
364
|
-
'aria-grabbed'?:
|
|
365
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
366
|
-
'aria-hidden'?:
|
|
364
|
+
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
365
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
366
|
+
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
367
367
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
368
368
|
'aria-keyshortcuts'?: string | undefined;
|
|
369
369
|
'aria-label'?: string | undefined;
|
|
370
370
|
'aria-labelledby'?: string | undefined;
|
|
371
371
|
'aria-level'?: number | undefined;
|
|
372
372
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
373
|
-
'aria-modal'?:
|
|
374
|
-
'aria-multiline'?:
|
|
375
|
-
'aria-multiselectable'?:
|
|
373
|
+
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
374
|
+
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
375
|
+
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
376
376
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
377
377
|
'aria-owns'?: string | undefined;
|
|
378
378
|
'aria-placeholder'?: string | undefined;
|
|
379
379
|
'aria-posinset'?: number | undefined;
|
|
380
380
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
381
|
-
'aria-readonly'?:
|
|
381
|
+
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
382
382
|
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
383
|
-
'aria-required'?:
|
|
383
|
+
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
384
384
|
'aria-roledescription'?: string | undefined;
|
|
385
385
|
'aria-rowcount'?: number | undefined;
|
|
386
386
|
'aria-rowindex'?: number | undefined;
|
|
387
387
|
'aria-rowspan'?: number | undefined;
|
|
388
|
-
'aria-selected'?:
|
|
388
|
+
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
389
389
|
'aria-setsize'?: number | undefined;
|
|
390
390
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
391
391
|
'aria-valuemax'?: number | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ForwardedUnitControl: import("react").ForwardRefExoticComponent<Pi
|
|
|
29
29
|
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
30
30
|
}, "children" | "value" | "label" | "as" | "isPressEnterToChange" | "__unstableStateReducer" | "disableUnits" | keyof import("./types").UnitSelectControlProps | "isResetValueOnUnitChange" | "onUnitChange"> & {
|
|
31
31
|
as?: undefined;
|
|
32
|
-
}, "type" | "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "as" | "key" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
32
|
+
}, "type" | "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "as" | "key" | "className" | "color" | "height" | "id" | "lang" | "max" | "min" | "name" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "alt" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "list" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "isPressEnterToChange" | "__unstableStateReducer" | "disableUnits" | keyof import("./types").UnitSelectControlProps | "isResetValueOnUnitChange" | "onUnitChange"> & import("react").RefAttributes<any>>;
|
|
33
33
|
export { parseUnit, useCustomUnits } from './utils';
|
|
34
34
|
export default ForwardedUnitControl;
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unit-control/index.tsx"],"names":[],"mappings":";AAmCA,OAAO,KAAK,EAAoB,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA+LnE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unit-control/index.tsx"],"names":[],"mappings":";AAmCA,OAAO,KAAK,EAAoB,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA+LnE;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;miKAA4B,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACpD,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-control-styles.d.ts","sourceRoot":"","sources":["../../../src/unit-control/styles/unit-control-styles.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,aAAK,WAAW,GAAG;IAClB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"unit-control-styles.d.ts","sourceRoot":"","sources":["../../../src/unit-control/styles/unit-control-styles.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,aAAK,WAAW,GAAG;IAClB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,aAAK,UAAU,GAAG;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,IAAI;;;yGAGhB,CAAC;AAyBF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;uBAYtB,CAAC;AA8CF,eAAO,MAAM,SAAS;;;uHAMrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;mIAwBtB,CAAC"}
|
|
@@ -6,9 +6,9 @@ import type { SyntheticEvent } from 'react';
|
|
|
6
6
|
* Internal dependencies
|
|
7
7
|
*/
|
|
8
8
|
import type { StateReducer } from '../input-control/reducer/state';
|
|
9
|
-
import type { InputChangeCallback
|
|
9
|
+
import type { InputChangeCallback } from '../input-control/types';
|
|
10
10
|
export declare type Value = number | string;
|
|
11
|
-
export declare type SelectSize =
|
|
11
|
+
export declare type SelectSize = 'default' | 'small';
|
|
12
12
|
export declare type WPUnitControlUnit = {
|
|
13
13
|
/**
|
|
14
14
|
* The value for the unit, used in a CSS value (e.g `px`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,oBAAY,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,oBAAY,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7C,oBAAY,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,KAAK,CAAE,iBAAiB,CAAE,GAAG,KAAK,CAAC;AAEvE,oBAAY,2BAA2B,GAAG,mBAAmB,CAC5D,cAAc,CAAE,iBAAiB,GAAG,gBAAgB,CAAE,EACtD;IAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAC5B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG;IACvD,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CACb,CAAC"}
|
|
@@ -15,50 +15,50 @@ export function useVStack(props: import('../ui/context').WordPressComponentProps
|
|
|
15
15
|
color?: string | undefined;
|
|
16
16
|
id?: string | undefined;
|
|
17
17
|
lang?: string | undefined;
|
|
18
|
-
role?:
|
|
18
|
+
role?: string | undefined;
|
|
19
19
|
tabIndex?: number | undefined;
|
|
20
20
|
'aria-activedescendant'?: string | undefined;
|
|
21
|
-
'aria-atomic'?:
|
|
22
|
-
'aria-autocomplete'?: "
|
|
23
|
-
'aria-busy'?:
|
|
21
|
+
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
22
|
+
'aria-autocomplete'?: "none" | "list" | "both" | "inline" | undefined;
|
|
23
|
+
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
24
24
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
25
25
|
'aria-colcount'?: number | undefined;
|
|
26
26
|
'aria-colindex'?: number | undefined;
|
|
27
27
|
'aria-colspan'?: number | undefined;
|
|
28
28
|
'aria-controls'?: string | undefined;
|
|
29
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "
|
|
29
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
30
30
|
'aria-describedby'?: string | undefined;
|
|
31
31
|
'aria-details'?: string | undefined;
|
|
32
|
-
'aria-disabled'?:
|
|
32
|
+
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
33
33
|
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
34
34
|
'aria-errormessage'?: string | undefined;
|
|
35
|
-
'aria-expanded'?:
|
|
35
|
+
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
36
36
|
'aria-flowto'?: string | undefined;
|
|
37
|
-
'aria-grabbed'?:
|
|
38
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
39
|
-
'aria-hidden'?:
|
|
37
|
+
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
38
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
39
|
+
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
40
40
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
41
41
|
'aria-keyshortcuts'?: string | undefined;
|
|
42
42
|
'aria-label'?: string | undefined;
|
|
43
43
|
'aria-labelledby'?: string | undefined;
|
|
44
44
|
'aria-level'?: number | undefined;
|
|
45
45
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
46
|
-
'aria-modal'?:
|
|
47
|
-
'aria-multiline'?:
|
|
48
|
-
'aria-multiselectable'?:
|
|
46
|
+
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
47
|
+
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
48
|
+
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
49
49
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
50
50
|
'aria-owns'?: string | undefined;
|
|
51
51
|
'aria-placeholder'?: string | undefined;
|
|
52
52
|
'aria-posinset'?: number | undefined;
|
|
53
53
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
54
|
-
'aria-readonly'?:
|
|
54
|
+
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
55
55
|
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
56
|
-
'aria-required'?:
|
|
56
|
+
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
57
57
|
'aria-roledescription'?: string | undefined;
|
|
58
58
|
'aria-rowcount'?: number | undefined;
|
|
59
59
|
'aria-rowindex'?: number | undefined;
|
|
60
60
|
'aria-rowspan'?: number | undefined;
|
|
61
|
-
'aria-selected'?:
|
|
61
|
+
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
62
62
|
'aria-setsize'?: number | undefined;
|
|
63
63
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
64
64
|
'aria-valuemax'?: number | undefined;
|
|
@@ -16,7 +16,7 @@ export interface ZStackProps {
|
|
|
16
16
|
*/
|
|
17
17
|
isReversed?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
* The amount of offset between each child element.
|
|
19
|
+
* The amount of offset between each child element.
|
|
20
20
|
*
|
|
21
21
|
* @default 0
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/z-stack/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/z-stack/styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,UAAU;;;yGAGtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;eAChB,OAAO;kBACJ,MAAM;YACZ,MAAM;yGAWd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "19.2.1
|
|
3
|
+
"version": "19.2.1",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,26 +30,25 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.16.0",
|
|
33
|
-
"@emotion/cache": "^11.
|
|
34
|
-
"@emotion/css": "^11.
|
|
35
|
-
"@emotion/react": "^11.
|
|
36
|
-
"@emotion/
|
|
37
|
-
"@emotion/styled": "^11.6.0",
|
|
33
|
+
"@emotion/cache": "^11.4.0",
|
|
34
|
+
"@emotion/css": "^11.1.3",
|
|
35
|
+
"@emotion/react": "^11.4.1",
|
|
36
|
+
"@emotion/styled": "^11.3.0",
|
|
38
37
|
"@emotion/utils": "1.0.0",
|
|
39
|
-
"@wordpress/a11y": "^3.2.
|
|
40
|
-
"@wordpress/compose": "^5.0.7
|
|
41
|
-
"@wordpress/date": "^4.2.
|
|
42
|
-
"@wordpress/deprecated": "^3.2.
|
|
43
|
-
"@wordpress/dom": "^3.2.
|
|
44
|
-
"@wordpress/element": "^4.0.
|
|
45
|
-
"@wordpress/hooks": "^3.2.
|
|
46
|
-
"@wordpress/i18n": "^4.2.
|
|
47
|
-
"@wordpress/icons": "^6.1.
|
|
48
|
-
"@wordpress/is-shallow-equal": "^4.2.
|
|
49
|
-
"@wordpress/keycodes": "^3.2.
|
|
50
|
-
"@wordpress/primitives": "^3.0.
|
|
51
|
-
"@wordpress/rich-text": "^5.0.
|
|
52
|
-
"@wordpress/warning": "^2.2.
|
|
38
|
+
"@wordpress/a11y": "^3.2.4",
|
|
39
|
+
"@wordpress/compose": "^5.0.7",
|
|
40
|
+
"@wordpress/date": "^4.2.3",
|
|
41
|
+
"@wordpress/deprecated": "^3.2.3",
|
|
42
|
+
"@wordpress/dom": "^3.2.7",
|
|
43
|
+
"@wordpress/element": "^4.0.4",
|
|
44
|
+
"@wordpress/hooks": "^3.2.2",
|
|
45
|
+
"@wordpress/i18n": "^4.2.4",
|
|
46
|
+
"@wordpress/icons": "^6.1.1",
|
|
47
|
+
"@wordpress/is-shallow-equal": "^4.2.1",
|
|
48
|
+
"@wordpress/keycodes": "^3.2.4",
|
|
49
|
+
"@wordpress/primitives": "^3.0.4",
|
|
50
|
+
"@wordpress/rich-text": "^5.0.8",
|
|
51
|
+
"@wordpress/warning": "^2.2.2",
|
|
53
52
|
"classnames": "^2.3.1",
|
|
54
53
|
"colord": "^2.7.0",
|
|
55
54
|
"dom-scroll-into-view": "^1.2.1",
|
|
@@ -69,8 +68,11 @@
|
|
|
69
68
|
"rememo": "^3.0.0",
|
|
70
69
|
"uuid": "^8.3.0"
|
|
71
70
|
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"reakit-utils": "^0.15.1"
|
|
73
|
+
},
|
|
72
74
|
"publishConfig": {
|
|
73
75
|
"access": "public"
|
|
74
76
|
},
|
|
75
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "04883dd8275ee52245a45c8899eb720b91055c50"
|
|
76
78
|
}
|
|
@@ -42,14 +42,12 @@ export default function AnglePickerControl( {
|
|
|
42
42
|
max={ 360 }
|
|
43
43
|
min={ 0 }
|
|
44
44
|
onChange={ handleOnNumberChange }
|
|
45
|
-
size="__unstable-large"
|
|
46
45
|
step="1"
|
|
47
46
|
value={ value }
|
|
48
47
|
hideHTMLArrows
|
|
49
48
|
suffix={
|
|
50
49
|
<Spacer
|
|
51
50
|
as={ Text }
|
|
52
|
-
marginBottom={ 0 }
|
|
53
51
|
marginRight={ space( 3 ) }
|
|
54
52
|
style={ {
|
|
55
53
|
color: 'var( --wp-admin-theme-color )',
|
|
@@ -93,29 +93,15 @@ export function Button( props ) {
|
|
|
93
93
|
label,
|
|
94
94
|
shortcut,
|
|
95
95
|
tooltipPosition,
|
|
96
|
-
isActiveStyle,
|
|
97
|
-
customContainerStyles,
|
|
98
96
|
} = props;
|
|
99
97
|
const preferredColorScheme = usePreferredColorScheme();
|
|
100
98
|
|
|
101
99
|
const isDisabled = ariaDisabled || disabled;
|
|
102
100
|
|
|
103
|
-
const containerStyle = [
|
|
104
|
-
styles.container,
|
|
105
|
-
customContainerStyles && { ...customContainerStyles },
|
|
106
|
-
];
|
|
107
|
-
|
|
108
101
|
const buttonViewStyle = {
|
|
109
102
|
opacity: isDisabled ? 0.3 : 1,
|
|
110
103
|
...( fixedRatio && styles.fixedRatio ),
|
|
111
104
|
...( isPressed ? styles.buttonActive : styles.buttonInactive ),
|
|
112
|
-
...( isPressed &&
|
|
113
|
-
isActiveStyle?.borderRadius && {
|
|
114
|
-
borderRadius: isActiveStyle.borderRadius,
|
|
115
|
-
} ),
|
|
116
|
-
...( isActiveStyle?.backgroundColor && {
|
|
117
|
-
backgroundColor: isActiveStyle.backgroundColor,
|
|
118
|
-
} ),
|
|
119
105
|
};
|
|
120
106
|
|
|
121
107
|
const states = [];
|
|
@@ -173,7 +159,7 @@ export function Button( props ) {
|
|
|
173
159
|
accessibilityHint={ hint }
|
|
174
160
|
onPress={ onClick }
|
|
175
161
|
onLongPress={ onLongPress }
|
|
176
|
-
style={
|
|
162
|
+
style={ styles.container }
|
|
177
163
|
disabled={ isDisabled }
|
|
178
164
|
testID={ testID }
|
|
179
165
|
>
|
package/src/button/style.scss
CHANGED
|
@@ -201,20 +201,6 @@
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
&.is-destructive.is-tertiary {
|
|
205
|
-
box-shadow: none;
|
|
206
|
-
|
|
207
|
-
&:hover:not(:disabled) {
|
|
208
|
-
box-shadow: inset 0 0 0 $border-width $alert-red;
|
|
209
|
-
color: $alert-red;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&:focus:not(:disabled) {
|
|
213
|
-
box-shadow: inset 0 0 0 1px $white, 0 0 0 var(--wp-admin-border-width-focus) $alert-red;
|
|
214
|
-
color: $alert-red;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
204
|
|
|
219
205
|
/**
|
|
220
206
|
* Link buttons.
|
package/src/card/card/README.md
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
`Card` also provides a convenient set of [sub-components](#sub-components) such as `CardBody`, `CardHeader`, `CardFooter`, and more (see below).
|
|
8
8
|
|
|
9
|
-
```jsx
|
|
9
|
+
```jsx live
|
|
10
10
|
import {
|
|
11
11
|
Card,
|
|
12
12
|
CardHeader,
|
|
13
13
|
CardBody,
|
|
14
14
|
CardFooter,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
Text,
|
|
16
|
+
Heading,
|
|
17
17
|
} from '@wordpress/components';
|
|
18
18
|
|
|
19
19
|
function Example() {
|