@wordpress/components 23.3.1 → 23.3.3
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 +22 -2
- package/build/color-palette/index.js +7 -4
- package/build/color-palette/index.js.map +1 -1
- package/build/color-palette/utils.js +12 -4
- package/build/color-palette/utils.js.map +1 -1
- package/build/custom-select-control/index.js +7 -0
- package/build/custom-select-control/index.js.map +1 -1
- package/build/index.js +16 -10
- package/build/index.js.map +1 -1
- package/build/navigator/context.js +5 -1
- package/build/navigator/context.js.map +1 -1
- package/build/navigator/index.js +8 -0
- package/build/navigator/index.js.map +1 -1
- package/build/navigator/navigator-back-button/hook.js +11 -3
- package/build/navigator/navigator-back-button/hook.js.map +1 -1
- package/build/navigator/navigator-provider/component.js +119 -11
- package/build/navigator/navigator-provider/component.js.map +1 -1
- package/build/navigator/navigator-screen/component.js +18 -7
- package/build/navigator/navigator-screen/component.js.map +1 -1
- package/build/navigator/navigator-to-parent-button/component.js +75 -0
- package/build/navigator/navigator-to-parent-button/component.js.map +1 -0
- package/build/navigator/navigator-to-parent-button/index.js +16 -0
- package/build/navigator/navigator-to-parent-button/index.js.map +1 -0
- package/build/navigator/use-navigator.js +6 -2
- package/build/navigator/use-navigator.js.map +1 -1
- package/build/navigator/utils/router.js +57 -0
- package/build/navigator/utils/router.js.map +1 -0
- package/build/private-apis.js +35 -0
- package/build/private-apis.js.map +1 -0
- package/build/select-control/index.js +1 -1
- package/build/select-control/index.js.map +1 -1
- package/build/select-control/styles/select-control-styles.js +38 -25
- package/build/select-control/styles/select-control-styles.js.map +1 -1
- package/build/tools-panel/tools-panel/hook.js +4 -4
- package/build/tools-panel/tools-panel/hook.js.map +1 -1
- package/build/tools-panel/tools-panel-item/hook.js +20 -11
- package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-module/color-palette/index.js +8 -5
- package/build-module/color-palette/index.js.map +1 -1
- package/build-module/color-palette/utils.js +12 -4
- package/build-module/color-palette/utils.js.map +1 -1
- package/build-module/custom-select-control/index.js +5 -0
- package/build-module/custom-select-control/index.js.map +1 -1
- package/build-module/index.js +5 -4
- package/build-module/index.js.map +1 -1
- package/build-module/navigator/context.js +5 -1
- package/build-module/navigator/context.js.map +1 -1
- package/build-module/navigator/index.js +1 -0
- package/build-module/navigator/index.js.map +1 -1
- package/build-module/navigator/navigator-back-button/hook.js +11 -3
- package/build-module/navigator/navigator-back-button/hook.js.map +1 -1
- package/build-module/navigator/navigator-provider/component.js +117 -12
- package/build-module/navigator/navigator-provider/component.js.map +1 -1
- package/build-module/navigator/navigator-screen/component.js +20 -9
- package/build-module/navigator/navigator-screen/component.js.map +1 -1
- package/build-module/navigator/navigator-to-parent-button/component.js +61 -0
- package/build-module/navigator/navigator-to-parent-button/component.js.map +1 -0
- package/build-module/navigator/navigator-to-parent-button/index.js +2 -0
- package/build-module/navigator/navigator-to-parent-button/index.js.map +1 -0
- package/build-module/navigator/use-navigator.js +6 -2
- package/build-module/navigator/use-navigator.js.map +1 -1
- package/build-module/navigator/utils/router.js +51 -0
- package/build-module/navigator/utils/router.js.map +1 -0
- package/build-module/private-apis.js +20 -0
- package/build-module/private-apis.js.map +1 -0
- package/build-module/select-control/index.js +1 -1
- package/build-module/select-control/index.js.map +1 -1
- package/build-module/select-control/styles/select-control-styles.js +38 -25
- package/build-module/select-control/styles/select-control-styles.js.map +1 -1
- package/build-module/tools-panel/tools-panel/hook.js +4 -4
- package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
- package/build-module/tools-panel/tools-panel-item/hook.js +20 -11
- package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
- package/build-style/style-rtl.css +0 -11
- package/build-style/style.css +0 -11
- package/build-types/base-control/hooks.d.ts +1 -1
- package/build-types/base-field/hook.d.ts +2 -2
- package/build-types/border-box-control/border-box-control/hook.d.ts +2 -2
- package/build-types/border-box-control/border-box-control-linked-button/hook.d.ts +2 -2
- package/build-types/border-box-control/border-box-control-split-controls/hook.d.ts +2 -2
- package/build-types/border-box-control/border-box-control-visualizer/hook.d.ts +2 -2
- package/build-types/border-control/border-control/hook.d.ts +2 -2
- package/build-types/border-control/border-control-dropdown/hook.d.ts +2 -2
- package/build-types/border-control/border-control-style-picker/hook.d.ts +2 -2
- package/build-types/button/deprecated.d.ts +2 -2
- package/build-types/button/types.d.ts +3 -1
- package/build-types/button/types.d.ts.map +1 -1
- package/build-types/card/card/hook.d.ts +2 -2
- package/build-types/card/card-body/hook.d.ts +2 -2
- package/build-types/card/card-divider/hook.d.ts +2 -2
- package/build-types/card/card-footer/hook.d.ts +2 -2
- package/build-types/card/card-header/hook.d.ts +2 -2
- package/build-types/card/card-media/hook.d.ts +2 -2
- package/build-types/color-palette/index.d.ts.map +1 -1
- package/build-types/color-palette/styles.d.ts +1 -1
- package/build-types/color-palette/utils.d.ts +8 -5
- package/build-types/color-palette/utils.d.ts.map +1 -1
- package/build-types/color-picker/styles.d.ts +7 -7
- package/build-types/custom-select-control/index.d.ts +1 -0
- package/build-types/custom-select-control/index.d.ts.map +1 -1
- package/build-types/date-time/date/styles.d.ts +3 -3
- package/build-types/date-time/date-time/styles.d.ts +3 -3
- package/build-types/date-time/time/styles.d.ts +8 -8
- package/build-types/elevation/hook.d.ts +2 -2
- package/build-types/external-link/styles/external-link-styles.d.ts +1 -1
- package/build-types/flex/flex/hook.d.ts +2 -2
- package/build-types/flex/flex-block/hook.d.ts +2 -2
- package/build-types/flex/flex-item/hook.d.ts +2 -2
- package/build-types/focal-point-picker/styles/focal-point-picker-style.d.ts +2 -2
- package/build-types/form-token-field/styles.d.ts +1 -1
- package/build-types/grid/hook.d.ts +2 -2
- package/build-types/h-stack/component.d.ts +1 -1
- package/build-types/h-stack/hook.d.ts +2 -2
- package/build-types/heading/hook.d.ts +2 -2
- package/build-types/input-control/styles/input-control-styles.d.ts +2 -2
- package/build-types/item-group/item/hook.d.ts +2 -2
- package/build-types/item-group/item-group/hook.d.ts +2 -2
- package/build-types/navigator/context.d.ts.map +1 -1
- package/build-types/navigator/index.d.ts +1 -0
- package/build-types/navigator/index.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/component.d.ts +22 -3
- package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-back-button/hook.d.ts +24 -6
- package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/component.d.ts +22 -3
- package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-button/hook.d.ts +22 -4
- package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
- package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
- package/build-types/navigator/navigator-to-parent-button/component.d.ts +27 -0
- package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -0
- package/build-types/navigator/navigator-to-parent-button/index.d.ts +2 -0
- package/build-types/navigator/navigator-to-parent-button/index.d.ts.map +1 -0
- package/build-types/navigator/stories/index.d.ts +1 -0
- package/build-types/navigator/stories/index.d.ts.map +1 -1
- package/build-types/navigator/test/router.d.ts +2 -0
- package/build-types/navigator/test/router.d.ts.map +1 -0
- package/build-types/navigator/types.d.ts +25 -9
- package/build-types/navigator/types.d.ts.map +1 -1
- package/build-types/navigator/use-navigator.d.ts.map +1 -1
- package/build-types/navigator/utils/router.d.ts +10 -0
- package/build-types/navigator/utils/router.d.ts.map +1 -0
- package/build-types/number-control/index.d.ts +2 -2
- package/build-types/number-control/stories/index.d.ts +2 -2
- package/build-types/popover/index.d.ts +1 -1
- package/build-types/popover/stories/e2e/index.d.ts +1 -1
- package/build-types/private-apis.d.ts +4 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/range-control/index.d.ts +2 -2
- package/build-types/range-control/styles/range-control-styles.d.ts +2 -2
- package/build-types/resizable-box/index.d.ts +1 -1
- package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
- package/build-types/resizable-box/stories/index.d.ts +2 -2
- package/build-types/scrollable/hook.d.ts +2 -2
- package/build-types/search-control/index.d.ts +1 -1
- package/build-types/search-control/stories/index.d.ts +2 -2
- package/build-types/select-control/index.d.ts.map +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts +1 -1
- package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
- package/build-types/select-control/types.d.ts +3 -1
- package/build-types/select-control/types.d.ts.map +1 -1
- package/build-types/spacer/hook.d.ts +2 -2
- package/build-types/spinner/index.d.ts +1 -1
- package/build-types/surface/hook.d.ts +2 -2
- package/build-types/text/hook.d.ts +2 -2
- package/build-types/text-control/index.d.ts +3 -3
- package/build-types/tools-panel/tools-panel/hook.d.ts +2 -2
- package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
- package/build-types/tools-panel/tools-panel-header/hook.d.ts +2 -2
- package/build-types/tools-panel/tools-panel-item/hook.d.ts +2 -2
- package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
- package/build-types/truncate/hook.d.ts +2 -2
- package/build-types/ui/control-group/hook.d.ts +2 -2
- package/build-types/ui/control-label/hook.d.ts +2 -2
- package/build-types/ui/form-group/form-group.d.ts +2 -2
- package/build-types/ui/form-group/use-form-group.d.ts +2 -2
- package/build-types/unit-control/index.d.ts +1 -1
- package/build-types/unit-control/styles/unit-control-styles.d.ts +2 -2
- package/build-types/v-stack/component.d.ts +2 -2
- package/build-types/v-stack/hook.d.ts +2 -2
- package/build-types/v-stack/stories/index.d.ts +2 -2
- package/package.json +9 -7
- package/src/button/types.ts +5 -2
- package/src/color-palette/index.tsx +13 -5
- package/src/color-palette/test/utils.ts +17 -1
- package/src/color-palette/utils.ts +12 -7
- package/src/custom-select-control/index.js +9 -0
- package/src/custom-select-control/stories/index.js +1 -1
- package/src/custom-select-control/test/index.js +2 -2
- package/src/dimension-control/test/__snapshots__/index.test.js.snap +4 -4
- package/src/index.js +5 -2
- package/src/navigator/context.ts +4 -0
- package/src/navigator/index.ts +1 -0
- package/src/navigator/navigator-back-button/README.md +1 -17
- package/src/navigator/navigator-back-button/hook.ts +10 -5
- package/src/navigator/navigator-button/README.md +1 -1
- package/src/navigator/navigator-provider/README.md +25 -4
- package/src/navigator/navigator-provider/component.tsx +170 -14
- package/src/navigator/navigator-screen/component.tsx +22 -11
- package/src/navigator/navigator-to-parent-button/README.md +15 -0
- package/src/navigator/navigator-to-parent-button/component.tsx +65 -0
- package/src/navigator/navigator-to-parent-button/index.ts +1 -0
- package/src/navigator/stories/index.tsx +93 -3
- package/src/navigator/test/index.tsx +267 -23
- package/src/navigator/test/router.ts +122 -0
- package/src/navigator/types.ts +31 -12
- package/src/navigator/use-navigator.ts +4 -1
- package/src/navigator/utils/router.ts +49 -0
- package/src/private-apis.js +22 -0
- package/src/select-control/README.md +3 -1
- package/src/select-control/index.tsx +3 -1
- package/src/select-control/style.scss +0 -10
- package/src/select-control/styles/select-control-styles.ts +36 -22
- package/src/select-control/types.ts +3 -1
- package/src/tools-panel/test/index.js +65 -0
- package/src/tools-panel/tools-panel/hook.ts +4 -5
- package/src/tools-panel/tools-panel-item/hook.ts +24 -14
- package/tsconfig.json +5 -1
- package/tsconfig.tsbuildinfo +1 -1
package/build-style/style.css
CHANGED
|
@@ -2867,20 +2867,9 @@ body.lockscroll {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
|
|
2869
2869
|
.components-select-control__input {
|
|
2870
|
-
background: #fff;
|
|
2871
|
-
height: 36px;
|
|
2872
|
-
line-height: 36px;
|
|
2873
|
-
margin: 1px;
|
|
2874
2870
|
outline: 0;
|
|
2875
|
-
width: 100%;
|
|
2876
2871
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
|
|
2877
2872
|
}
|
|
2878
|
-
@media (min-width: 782px) {
|
|
2879
|
-
.components-select-control__input {
|
|
2880
|
-
height: 28px;
|
|
2881
|
-
line-height: 28px;
|
|
2882
|
-
}
|
|
2883
|
-
}
|
|
2884
2873
|
|
|
2885
2874
|
@media (max-width: 782px) {
|
|
2886
2875
|
.components-base-control .components-base-control__field .components-select-control__input {
|
|
@@ -11,8 +11,8 @@ export declare function useBaseControlProps(props: Omit<BaseControlProps, 'child
|
|
|
11
11
|
baseControlProps: {
|
|
12
12
|
label?: import("react").ReactNode;
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
__nextHasNoMarginBottom?: boolean | undefined;
|
|
15
14
|
hideLabelFromVision?: boolean | undefined;
|
|
15
|
+
__nextHasNoMarginBottom?: boolean | undefined;
|
|
16
16
|
id: string;
|
|
17
17
|
help: import("react").ReactNode;
|
|
18
18
|
};
|
|
@@ -19,7 +19,6 @@ export declare function useBaseField(props: WordPressComponentProps<BaseFieldPro
|
|
|
19
19
|
key?: import("react").Key | null | undefined;
|
|
20
20
|
slot?: string | undefined;
|
|
21
21
|
title?: string | undefined;
|
|
22
|
-
id?: string | undefined;
|
|
23
22
|
defaultChecked?: boolean | undefined;
|
|
24
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
24
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -28,6 +27,7 @@ export declare function useBaseField(props: WordPressComponentProps<BaseFieldPro
|
|
|
28
27
|
contextMenu?: string | undefined;
|
|
29
28
|
dir?: string | undefined;
|
|
30
29
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
30
|
+
id?: string | undefined;
|
|
31
31
|
lang?: string | undefined;
|
|
32
32
|
placeholder?: string | undefined;
|
|
33
33
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -64,7 +64,7 @@ export declare function useBaseField(props: WordPressComponentProps<BaseFieldPro
|
|
|
64
64
|
'aria-colindex'?: number | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
67
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-details'?: string | undefined;
|
|
70
70
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -32,7 +32,6 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
|
|
|
32
32
|
key?: import("react").Key | null | undefined;
|
|
33
33
|
slot?: string | undefined;
|
|
34
34
|
title?: string | undefined;
|
|
35
|
-
id?: string | undefined;
|
|
36
35
|
defaultChecked?: boolean | undefined;
|
|
37
36
|
suppressContentEditableWarning?: boolean | undefined;
|
|
38
37
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -41,6 +40,7 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
|
|
|
41
40
|
contextMenu?: string | undefined;
|
|
42
41
|
dir?: string | undefined;
|
|
43
42
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
43
|
+
id?: string | undefined;
|
|
44
44
|
lang?: string | undefined;
|
|
45
45
|
placeholder?: string | undefined;
|
|
46
46
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -77,7 +77,7 @@ export declare function useBorderBoxControl(props: WordPressComponentProps<Borde
|
|
|
77
77
|
'aria-colindex'?: number | undefined;
|
|
78
78
|
'aria-colspan'?: number | undefined;
|
|
79
79
|
'aria-controls'?: string | undefined;
|
|
80
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
80
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
81
81
|
'aria-describedby'?: string | undefined;
|
|
82
82
|
'aria-details'?: string | undefined;
|
|
83
83
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -19,7 +19,6 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
|
|
|
19
19
|
slot?: string | undefined;
|
|
20
20
|
title?: string | undefined;
|
|
21
21
|
type?: "button" | "reset" | "submit" | undefined;
|
|
22
|
-
id?: string | undefined;
|
|
23
22
|
defaultChecked?: boolean | undefined;
|
|
24
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
24
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -28,6 +27,7 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
|
|
|
28
27
|
contextMenu?: string | undefined;
|
|
29
28
|
dir?: string | undefined;
|
|
30
29
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
30
|
+
id?: string | undefined;
|
|
31
31
|
lang?: string | undefined;
|
|
32
32
|
placeholder?: string | undefined;
|
|
33
33
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -64,7 +64,7 @@ export declare function useBorderBoxControlLinkedButton(props: WordPressComponen
|
|
|
64
64
|
'aria-colindex'?: number | undefined;
|
|
65
65
|
'aria-colspan'?: number | undefined;
|
|
66
66
|
'aria-controls'?: string | undefined;
|
|
67
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
67
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
68
68
|
'aria-describedby'?: string | undefined;
|
|
69
69
|
'aria-details'?: string | undefined;
|
|
70
70
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -23,7 +23,6 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
|
|
|
23
23
|
key?: import("react").Key | null | undefined;
|
|
24
24
|
slot?: string | undefined;
|
|
25
25
|
title?: string | undefined;
|
|
26
|
-
id?: string | undefined;
|
|
27
26
|
defaultChecked?: boolean | undefined;
|
|
28
27
|
suppressContentEditableWarning?: boolean | undefined;
|
|
29
28
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -32,6 +31,7 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
|
|
|
32
31
|
contextMenu?: string | undefined;
|
|
33
32
|
dir?: string | undefined;
|
|
34
33
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
34
|
+
id?: string | undefined;
|
|
35
35
|
lang?: string | undefined;
|
|
36
36
|
placeholder?: string | undefined;
|
|
37
37
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -68,7 +68,7 @@ export declare function useBorderBoxControlSplitControls(props: WordPressCompone
|
|
|
68
68
|
'aria-colindex'?: number | undefined;
|
|
69
69
|
'aria-colspan'?: number | undefined;
|
|
70
70
|
'aria-controls'?: string | undefined;
|
|
71
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
71
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
72
72
|
'aria-describedby'?: string | undefined;
|
|
73
73
|
'aria-details'?: string | undefined;
|
|
74
74
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -13,7 +13,6 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
|
|
|
13
13
|
key?: import("react").Key | null | undefined;
|
|
14
14
|
slot?: string | undefined;
|
|
15
15
|
title?: string | undefined;
|
|
16
|
-
id?: string | undefined;
|
|
17
16
|
defaultChecked?: boolean | undefined;
|
|
18
17
|
suppressContentEditableWarning?: boolean | undefined;
|
|
19
18
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -22,6 +21,7 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
|
|
|
22
21
|
contextMenu?: string | undefined;
|
|
23
22
|
dir?: string | undefined;
|
|
24
23
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
24
|
+
id?: string | undefined;
|
|
25
25
|
lang?: string | undefined;
|
|
26
26
|
placeholder?: string | undefined;
|
|
27
27
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -58,7 +58,7 @@ export declare function useBorderBoxControlVisualizer(props: WordPressComponentP
|
|
|
58
58
|
'aria-colindex'?: number | undefined;
|
|
59
59
|
'aria-colspan'?: number | undefined;
|
|
60
60
|
'aria-controls'?: string | undefined;
|
|
61
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
61
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
62
62
|
'aria-describedby'?: string | undefined;
|
|
63
63
|
'aria-details'?: string | undefined;
|
|
64
64
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -33,7 +33,6 @@ export declare function useBorderControl(props: WordPressComponentProps<BorderCo
|
|
|
33
33
|
key?: import("react").Key | null | undefined;
|
|
34
34
|
slot?: string | undefined;
|
|
35
35
|
title?: string | undefined;
|
|
36
|
-
id?: string | undefined;
|
|
37
36
|
defaultChecked?: boolean | undefined;
|
|
38
37
|
suppressContentEditableWarning?: boolean | undefined;
|
|
39
38
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -42,6 +41,7 @@ export declare function useBorderControl(props: WordPressComponentProps<BorderCo
|
|
|
42
41
|
contextMenu?: string | undefined;
|
|
43
42
|
dir?: string | undefined;
|
|
44
43
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
44
|
+
id?: string | undefined;
|
|
45
45
|
lang?: string | undefined;
|
|
46
46
|
placeholder?: string | undefined;
|
|
47
47
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -78,7 +78,7 @@ export declare function useBorderControl(props: WordPressComponentProps<BorderCo
|
|
|
78
78
|
'aria-colindex'?: number | undefined;
|
|
79
79
|
'aria-colspan'?: number | undefined;
|
|
80
80
|
'aria-controls'?: string | undefined;
|
|
81
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
81
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
82
82
|
'aria-describedby'?: string | undefined;
|
|
83
83
|
'aria-details'?: string | undefined;
|
|
84
84
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -27,7 +27,6 @@ export declare function useBorderControlDropdown(props: WordPressComponentProps<
|
|
|
27
27
|
key?: import("react").Key | null | undefined;
|
|
28
28
|
slot?: string | undefined;
|
|
29
29
|
title?: string | undefined;
|
|
30
|
-
id?: string | undefined;
|
|
31
30
|
defaultChecked?: boolean | undefined;
|
|
32
31
|
suppressContentEditableWarning?: boolean | undefined;
|
|
33
32
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -36,6 +35,7 @@ export declare function useBorderControlDropdown(props: WordPressComponentProps<
|
|
|
36
35
|
contextMenu?: string | undefined;
|
|
37
36
|
dir?: string | undefined;
|
|
38
37
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
38
|
+
id?: string | undefined;
|
|
39
39
|
lang?: string | undefined;
|
|
40
40
|
placeholder?: string | undefined;
|
|
41
41
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -72,7 +72,7 @@ export declare function useBorderControlDropdown(props: WordPressComponentProps<
|
|
|
72
72
|
'aria-colindex'?: number | undefined;
|
|
73
73
|
'aria-colspan'?: number | undefined;
|
|
74
74
|
'aria-controls'?: string | undefined;
|
|
75
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
75
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
76
76
|
'aria-describedby'?: string | undefined;
|
|
77
77
|
'aria-details'?: string | undefined;
|
|
78
78
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -16,7 +16,6 @@ export declare function useBorderControlStylePicker(props: WordPressComponentPro
|
|
|
16
16
|
key?: import("react").Key | null | undefined;
|
|
17
17
|
slot?: string | undefined;
|
|
18
18
|
title?: string | undefined;
|
|
19
|
-
id?: string | undefined;
|
|
20
19
|
defaultChecked?: boolean | undefined;
|
|
21
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
22
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -25,6 +24,7 @@ export declare function useBorderControlStylePicker(props: WordPressComponentPro
|
|
|
25
24
|
contextMenu?: string | undefined;
|
|
26
25
|
dir?: string | undefined;
|
|
27
26
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
28
|
lang?: string | undefined;
|
|
29
29
|
placeholder?: string | undefined;
|
|
30
30
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function useBorderControlStylePicker(props: WordPressComponentPro
|
|
|
61
61
|
'aria-colindex'?: number | undefined;
|
|
62
62
|
'aria-colspan'?: number | undefined;
|
|
63
63
|
'aria-controls'?: string | undefined;
|
|
64
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
65
65
|
'aria-describedby'?: string | undefined;
|
|
66
66
|
'aria-details'?: string | undefined;
|
|
67
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
44
44
|
tooltipPosition?: ("bottom" | "top" | "middle") | "bottom left" | "bottom right" | "bottom center" | "top left" | "top right" | "top center" | "middle left" | "middle right" | "middle center" | "bottom left left" | "bottom left right" | "bottom left bottom" | "bottom left top" | "bottom right left" | "bottom right right" | "bottom right bottom" | "bottom right top" | "bottom center left" | "bottom center right" | "bottom center bottom" | "bottom center top" | "top left left" | "top left right" | "top left bottom" | "top left top" | "top right left" | "top right right" | "top right bottom" | "top right top" | "top center left" | "top center right" | "top center bottom" | "top center top" | "middle left left" | "middle left right" | "middle left bottom" | "middle left top" | "middle right left" | "middle right right" | "middle right bottom" | "middle right top" | "middle center left" | "middle center right" | "middle center bottom" | "middle center top" | undefined;
|
|
45
45
|
variant?: "link" | "primary" | "secondary" | "tertiary" | undefined;
|
|
46
46
|
__experimentalIsFocusable?: boolean | undefined;
|
|
47
|
-
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "value" | "name" | "color" | "translate" | "hidden" | "style" | "disabled" | "key" | "form" | "slot" | "title" | "type" | "
|
|
47
|
+
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "value" | "name" | "color" | "translate" | "hidden" | "style" | "disabled" | "key" | "form" | "slot" | "title" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof {
|
|
48
48
|
children?: import("react").ReactNode;
|
|
49
49
|
describedBy?: string | undefined;
|
|
50
50
|
focus?: boolean | undefined;
|
|
@@ -115,7 +115,7 @@ declare const _default: import("react").ForwardRefExoticComponent<((Pick<{
|
|
|
115
115
|
disabled?: false | undefined;
|
|
116
116
|
href: string;
|
|
117
117
|
target?: string | undefined;
|
|
118
|
-
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "color" | "translate" | "hidden" | "style" | "key" | "slot" | "title" | "type" | "
|
|
118
|
+
}> & import("react").RefAttributes<any>, "defaultValue" | "onChange" | "color" | "translate" | "hidden" | "style" | "key" | "slot" | "title" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | "download" | keyof {
|
|
119
119
|
children?: import("react").ReactNode;
|
|
120
120
|
describedBy?: string | undefined;
|
|
121
121
|
focus?: boolean | undefined;
|
|
@@ -8,7 +8,9 @@ import type { ReactNode } from 'react';
|
|
|
8
8
|
import type { Props as IconProps } from '../icon';
|
|
9
9
|
import type { PopoverProps } from '../popover/types';
|
|
10
10
|
import type { WordPressComponentProps } from '../ui/context/wordpress-component';
|
|
11
|
-
export declare type ButtonProps = WordPressComponentProps<
|
|
11
|
+
export declare type ButtonProps = WordPressComponentProps<ButtonAsButtonProps, 'button', false> | WordPressComponentProps<ButtonAsAnchorProps, 'a', false>;
|
|
12
|
+
export declare type ButtonAsButtonProps = BaseButtonProps & _ButtonProps;
|
|
13
|
+
export declare type ButtonAsAnchorProps = BaseButtonProps & AnchorProps;
|
|
12
14
|
declare type BaseButtonProps = {
|
|
13
15
|
/**
|
|
14
16
|
* The button's children.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,oBAAY,WAAW,GACpB,uBAAuB,CAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/button/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAEjF,oBAAY,WAAW,GACpB,uBAAuB,CAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,CAAE,GAC/D,uBAAuB,CAAE,mBAAmB,EAAE,GAAG,EAAE,KAAK,CAAE,CAAC;AAE9D,oBAAY,mBAAmB,GAAG,eAAe,GAAG,YAAY,CAAC;AACjE,oBAAY,mBAAmB,GAAG,eAAe,GAAG,WAAW,CAAC;AAEhE,aAAK,eAAe,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAE,OAAO,CAAE,CAAE,MAAM,CAAE,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAE,OAAO,CAAE,CAAE,MAAM,CAAE,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,eAAe,CAAC,EAAE,YAAY,CAAE,UAAU,CAAE,CAAC;IAC7C;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IACxD;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,aAAK,YAAY,GAAG;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,aAAK,WAAW,GAAG;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,yBAAyB,GAAG;IACvC,aAAa,EAAE,WAAW,CAAE,iBAAiB,CAAE,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,WAAW,CAAE,UAAU,CAAE,CAAC;IAChC,KAAK,EAAE,WAAW,CAAE,OAAO,CAAE,CAAC;IAC9B,OAAO,EAAE,WAAW,CAAE,OAAO,CAAE,CAAC;CAChC,CAAC"}
|
|
@@ -21,7 +21,6 @@ export declare function useCard(props: CardProps): {
|
|
|
21
21
|
key?: import("react").Key | null | undefined;
|
|
22
22
|
slot?: string | undefined;
|
|
23
23
|
title?: string | undefined;
|
|
24
|
-
id?: string | undefined;
|
|
25
24
|
defaultChecked?: boolean | undefined;
|
|
26
25
|
suppressContentEditableWarning?: boolean | undefined;
|
|
27
26
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -30,6 +29,7 @@ export declare function useCard(props: CardProps): {
|
|
|
30
29
|
contextMenu?: string | undefined;
|
|
31
30
|
dir?: string | undefined;
|
|
32
31
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
33
|
lang?: string | undefined;
|
|
34
34
|
placeholder?: string | undefined;
|
|
35
35
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -66,7 +66,7 @@ export declare function useCard(props: CardProps): {
|
|
|
66
66
|
'aria-colindex'?: number | undefined;
|
|
67
67
|
'aria-colspan'?: number | undefined;
|
|
68
68
|
'aria-controls'?: string | undefined;
|
|
69
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
69
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
70
70
|
'aria-describedby'?: string | undefined;
|
|
71
71
|
'aria-details'?: string | undefined;
|
|
72
72
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -17,7 +17,6 @@ export declare function useCardBody(props: WordPressComponentProps<BodyProps, 'd
|
|
|
17
17
|
key?: import("react").Key | null | undefined;
|
|
18
18
|
slot?: string | undefined;
|
|
19
19
|
title?: string | undefined;
|
|
20
|
-
id?: string | undefined;
|
|
21
20
|
defaultChecked?: boolean | undefined;
|
|
22
21
|
suppressContentEditableWarning?: boolean | undefined;
|
|
23
22
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -26,6 +25,7 @@ export declare function useCardBody(props: WordPressComponentProps<BodyProps, 'd
|
|
|
26
25
|
contextMenu?: string | undefined;
|
|
27
26
|
dir?: string | undefined;
|
|
28
27
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
29
|
lang?: string | undefined;
|
|
30
30
|
placeholder?: string | undefined;
|
|
31
31
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -62,7 +62,7 @@ export declare function useCardBody(props: WordPressComponentProps<BodyProps, 'd
|
|
|
62
62
|
'aria-colindex'?: number | undefined;
|
|
63
63
|
'aria-colspan'?: number | undefined;
|
|
64
64
|
'aria-controls'?: string | undefined;
|
|
65
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
65
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
66
66
|
'aria-describedby'?: string | undefined;
|
|
67
67
|
'aria-details'?: string | undefined;
|
|
68
68
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -16,7 +16,6 @@ export declare function useCardDivider(props: WordPressComponentProps<DividerPro
|
|
|
16
16
|
ref?: import("react").Ref<any> | undefined;
|
|
17
17
|
slot?: string | undefined;
|
|
18
18
|
title?: string | undefined;
|
|
19
|
-
id?: string | undefined;
|
|
20
19
|
defaultChecked?: boolean | undefined;
|
|
21
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
22
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -25,6 +24,7 @@ export declare function useCardDivider(props: WordPressComponentProps<DividerPro
|
|
|
25
24
|
contextMenu?: string | undefined;
|
|
26
25
|
dir?: string | undefined;
|
|
27
26
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
28
|
lang?: string | undefined;
|
|
29
29
|
placeholder?: string | undefined;
|
|
30
30
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function useCardDivider(props: WordPressComponentProps<DividerPro
|
|
|
61
61
|
'aria-colindex'?: number | undefined;
|
|
62
62
|
'aria-colspan'?: number | undefined;
|
|
63
63
|
'aria-controls'?: string | undefined;
|
|
64
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
65
65
|
'aria-describedby'?: string | undefined;
|
|
66
66
|
'aria-details'?: string | undefined;
|
|
67
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -17,7 +17,6 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
17
17
|
key?: import("react").Key | null | undefined;
|
|
18
18
|
slot?: string | undefined;
|
|
19
19
|
title?: string | undefined;
|
|
20
|
-
id?: string | undefined;
|
|
21
20
|
defaultChecked?: boolean | undefined;
|
|
22
21
|
suppressContentEditableWarning?: boolean | undefined;
|
|
23
22
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -26,6 +25,7 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
26
25
|
contextMenu?: string | undefined;
|
|
27
26
|
dir?: string | undefined;
|
|
28
27
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
29
|
lang?: string | undefined;
|
|
30
30
|
placeholder?: string | undefined;
|
|
31
31
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -62,7 +62,7 @@ export declare function useCardFooter(props: WordPressComponentProps<FooterProps
|
|
|
62
62
|
'aria-colindex'?: number | undefined;
|
|
63
63
|
'aria-colspan'?: number | undefined;
|
|
64
64
|
'aria-controls'?: string | undefined;
|
|
65
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
65
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
66
66
|
'aria-describedby'?: string | undefined;
|
|
67
67
|
'aria-details'?: string | undefined;
|
|
68
68
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -16,7 +16,6 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
16
16
|
key?: import("react").Key | null | undefined;
|
|
17
17
|
slot?: string | undefined;
|
|
18
18
|
title?: string | undefined;
|
|
19
|
-
id?: string | undefined;
|
|
20
19
|
defaultChecked?: boolean | undefined;
|
|
21
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
22
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -25,6 +24,7 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
25
24
|
contextMenu?: string | undefined;
|
|
26
25
|
dir?: string | undefined;
|
|
27
26
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
28
|
lang?: string | undefined;
|
|
29
29
|
placeholder?: string | undefined;
|
|
30
30
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function useCardHeader(props: WordPressComponentProps<HeaderProps
|
|
|
61
61
|
'aria-colindex'?: number | undefined;
|
|
62
62
|
'aria-colspan'?: number | undefined;
|
|
63
63
|
'aria-controls'?: string | undefined;
|
|
64
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
65
65
|
'aria-describedby'?: string | undefined;
|
|
66
66
|
'aria-details'?: string | undefined;
|
|
67
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -16,7 +16,6 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
16
16
|
key?: import("react").Key | null | undefined;
|
|
17
17
|
slot?: string | undefined;
|
|
18
18
|
title?: string | undefined;
|
|
19
|
-
id?: string | undefined;
|
|
20
19
|
defaultChecked?: boolean | undefined;
|
|
21
20
|
suppressContentEditableWarning?: boolean | undefined;
|
|
22
21
|
suppressHydrationWarning?: boolean | undefined;
|
|
@@ -25,6 +24,7 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
25
24
|
contextMenu?: string | undefined;
|
|
26
25
|
dir?: string | undefined;
|
|
27
26
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
28
|
lang?: string | undefined;
|
|
29
29
|
placeholder?: string | undefined;
|
|
30
30
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function useCardMedia(props: WordPressComponentProps<MediaProps,
|
|
|
61
61
|
'aria-colindex'?: number | undefined;
|
|
62
62
|
'aria-colspan'?: number | undefined;
|
|
63
63
|
'aria-controls'?: string | undefined;
|
|
64
|
-
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "
|
|
64
|
+
'aria-current'?: boolean | "page" | "false" | "true" | "time" | "date" | "step" | "location" | undefined;
|
|
65
65
|
'aria-describedby'?: string | undefined;
|
|
66
66
|
'aria-details'?: string | undefined;
|
|
67
67
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color-palette/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACX,WAAW,EAEX,8BAA8B,EAE9B,aAAa,EAEb,MAAM,SAAS,CAAC;AA0GjB,wBAAgB,yBAAyB,CAAE,EAC1C,mBAAmB,EACnB,YAAY,EAAE,oBAAoB,EAClC,GAAG,KAAK,EACR,EAAE,8BAA8B,eA4BhC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/color-palette/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACX,WAAW,EAEX,8BAA8B,EAE9B,aAAa,EAEb,MAAM,SAAS,CAAC;AA0GjB,wBAAgB,yBAAyB,CAAE,EAC1C,mBAAmB,EACnB,YAAY,EAAE,oBAAoB,EAClC,GAAG,KAAK,EACR,EAAE,8BAA8B,eA4BhC;AA2ID;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;uCAAwC,CAAC;AAElE,eAAe,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ColorHeading: import("@emotion/styled").StyledComponent<Omit<import("../text/types").Props, "size"> & {
|
|
3
3
|
level?: import("../heading/types").HeadingSize | undefined;
|
|
4
|
-
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, "color" | "display" | "letterSpacing" | "lineHeight" | "ellipsis" | "weight" | "children" | "as" | "
|
|
4
|
+
} & import("react").RefAttributes<any> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, "color" | "display" | "letterSpacing" | "lineHeight" | "ellipsis" | "weight" | "children" | "as" | "isBlock" | "align" | keyof import("react").RefAttributes<any> | "ellipsizeMode" | "limit" | "numberOfLines" | "adjustLineHeightForInnerControls" | "isDestructive" | "highlightEscape" | "highlightCaseSensitive" | "highlightSanitize" | "optimizeReadabilityFor" | "truncate" | "upperCase" | "variant" | "highlightWords" | "level"> & {
|
|
5
5
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { RefObject } from 'react';
|
|
5
1
|
/**
|
|
6
2
|
* Internal dependencies
|
|
7
3
|
*/
|
|
@@ -10,5 +6,12 @@ export declare const extractColorNameFromCurrentValue: (currentValue?: ColorPale
|
|
|
10
6
|
export declare const showTransparentBackground: (currentValue?: string | undefined) => boolean;
|
|
11
7
|
export declare const isMultiplePaletteObject: (obj: PaletteObject | ColorObject) => obj is PaletteObject;
|
|
12
8
|
export declare const isMultiplePaletteArray: (arr: (PaletteObject | ColorObject)[]) => arr is PaletteObject[];
|
|
13
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Transform a CSS variable used as background color into the color value itself.
|
|
11
|
+
*
|
|
12
|
+
* @param value The color value that may be a CSS variable.
|
|
13
|
+
* @param element The element for which to get the computed style.
|
|
14
|
+
* @return The background color value computed from a element.
|
|
15
|
+
*/
|
|
16
|
+
export declare const normalizeColorValue: (value: string | undefined, element: HTMLElement | null) => string | undefined;
|
|
14
17
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/color-palette/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/color-palette/utils.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7E,eAAO,MAAM,gCAAgC,kBAC7B,iBAAiB,CAAE,OAAO,CAAE,WACnC,iBAAiB,CAAE,QAAQ,CAAE,yBACf,OAAO,WA8B7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,gDAKrC,CAAC;AAIF,eAAO,MAAM,uBAAuB,QAC9B,aAAa,GAAG,WAAW,yBAEwC,CAAC;AAE1E,eAAO,MAAM,sBAAsB,QAC7B,CAAE,aAAa,GAAG,WAAW,CAAE,EAAE,2BAMtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,UACxB,MAAM,GAAG,SAAS,WAChB,WAAW,GAAG,IAAI,uBAgB3B,CAAC"}
|