@wordpress/components 28.8.1-next.1f6eadc42.0 → 28.8.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 +14 -1
- package/build/box-control/all-input-control.js +1 -2
- package/build/box-control/all-input-control.js.map +1 -1
- package/build/card/card/component.js +2 -2
- package/build/card/card/component.js.map +1 -1
- package/build/card/styles.js +18 -18
- package/build/card/styles.js.map +1 -1
- package/build/combobox-control/index.js +3 -1
- package/build/combobox-control/index.js.map +1 -1
- package/build/combobox-control/types.js.map +1 -1
- package/build/custom-select-control-v2/styles.js +9 -9
- package/build/custom-select-control-v2/styles.js.map +1 -1
- package/build/dropdown-menu-v2/styles.js +17 -17
- package/build/dropdown-menu-v2/styles.js.map +1 -1
- package/build/modal/index.js +17 -9
- package/build/modal/index.js.map +1 -1
- package/build/modal/types.js.map +1 -1
- package/build/modal/use-modal-exit-animation.js +75 -0
- package/build/modal/use-modal-exit-animation.js.map +1 -0
- package/build/range-control/styles/range-control-styles.js +28 -28
- package/build/range-control/styles/range-control-styles.js.map +1 -1
- package/build/tabs/styles.js +3 -3
- package/build/tabs/styles.js.map +1 -1
- package/build/utils/config-values.js +4 -5
- package/build/utils/config-values.js.map +1 -1
- package/build-module/box-control/all-input-control.js +2 -2
- package/build-module/box-control/all-input-control.js.map +1 -1
- package/build-module/card/card/component.js +2 -2
- package/build-module/card/card/component.js.map +1 -1
- package/build-module/card/styles.js +18 -18
- package/build-module/card/styles.js.map +1 -1
- package/build-module/combobox-control/index.js +3 -1
- package/build-module/combobox-control/index.js.map +1 -1
- package/build-module/combobox-control/types.js.map +1 -1
- package/build-module/custom-select-control-v2/styles.js +9 -9
- package/build-module/custom-select-control-v2/styles.js.map +1 -1
- package/build-module/dropdown-menu-v2/styles.js +17 -17
- package/build-module/dropdown-menu-v2/styles.js.map +1 -1
- package/build-module/modal/index.js +18 -9
- package/build-module/modal/index.js.map +1 -1
- package/build-module/modal/types.js.map +1 -1
- package/build-module/modal/use-modal-exit-animation.js +68 -0
- package/build-module/modal/use-modal-exit-animation.js.map +1 -0
- package/build-module/range-control/styles/range-control-styles.js +28 -28
- package/build-module/range-control/styles/range-control-styles.js.map +1 -1
- package/build-module/tabs/styles.js +3 -3
- package/build-module/tabs/styles.js.map +1 -1
- package/build-module/utils/config-values.js +4 -5
- package/build-module/utils/config-values.js.map +1 -1
- package/build-style/style-rtl.css +50 -6
- package/build-style/style.css +50 -6
- package/build-types/box-control/all-input-control.d.ts.map +1 -1
- package/build-types/button-group/stories/index.story.d.ts +2 -2
- package/build-types/button-group/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/index.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +4 -0
- package/build-types/combobox-control/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/types.d.ts +4 -0
- package/build-types/combobox-control/types.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/styles.d.ts.map +1 -1
- package/build-types/modal/index.d.ts.map +1 -1
- package/build-types/modal/types.d.ts +6 -10
- package/build-types/modal/types.d.ts.map +1 -1
- package/build-types/modal/use-modal-exit-animation.d.ts +9 -0
- package/build-types/modal/use-modal-exit-animation.d.ts.map +1 -0
- package/build-types/range-control/styles/range-control-styles.d.ts.map +1 -1
- package/build-types/utils/config-values.d.ts +0 -1
- package/package.json +19 -19
- package/src/box-control/README.md +7 -0
- package/src/box-control/all-input-control.tsx +2 -3
- package/src/button-group/stories/index.story.tsx +10 -15
- package/src/card/card/component.tsx +1 -1
- package/src/card/styles.ts +1 -1
- package/src/card/test/__snapshots__/index.tsx.snap +54 -54
- package/src/combobox-control/README.md +7 -0
- package/src/combobox-control/index.tsx +2 -0
- package/src/combobox-control/test/index.tsx +40 -0
- package/src/combobox-control/types.ts +4 -0
- package/src/custom-select-control-v2/styles.ts +1 -0
- package/src/dropdown-menu-v2/styles.ts +1 -1
- package/src/form-toggle/style.scss +1 -0
- package/src/modal/index.tsx +27 -13
- package/src/modal/style.scss +30 -3
- package/src/modal/types.ts +6 -18
- package/src/modal/use-modal-exit-animation.ts +99 -0
- package/src/popover/style.scss +1 -1
- package/src/range-control/styles/range-control-styles.ts +1 -0
- package/src/resizable-box/style.scss +1 -1
- package/src/snackbar/style.scss +1 -1
- package/src/tabs/styles.ts +1 -1
- package/src/tooltip/style.scss +1 -0
- package/src/utils/config-values.js +4 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -24,6 +24,7 @@ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import
|
|
|
24
24
|
onFilterValueChange?: (value: string) => void;
|
|
25
25
|
options: import("../types").ComboboxControlOption[];
|
|
26
26
|
value?: string | null;
|
|
27
|
+
placeholder?: string;
|
|
27
28
|
}>;
|
|
28
29
|
/**
|
|
29
30
|
* The rendered output of each suggestion can be customized by passing a
|
|
@@ -45,6 +46,7 @@ export declare const WithCustomRenderItem: import("@storybook/types").AnnotatedS
|
|
|
45
46
|
onFilterValueChange?: (value: string) => void;
|
|
46
47
|
options: import("../types").ComboboxControlOption[];
|
|
47
48
|
value?: string | null;
|
|
49
|
+
placeholder?: string;
|
|
48
50
|
}>;
|
|
49
51
|
/**
|
|
50
52
|
* You can disable options in the list
|
|
@@ -66,6 +68,7 @@ export declare const WithDisabledOptions: import("@storybook/types").AnnotatedSt
|
|
|
66
68
|
onFilterValueChange?: (value: string) => void;
|
|
67
69
|
options: import("../types").ComboboxControlOption[];
|
|
68
70
|
value?: string | null;
|
|
71
|
+
placeholder?: string;
|
|
69
72
|
}>;
|
|
70
73
|
/**
|
|
71
74
|
* By default, the combobox expands when focused.
|
|
@@ -87,5 +90,6 @@ export declare const NotExpandOnFocus: import("@storybook/types").AnnotatedStory
|
|
|
87
90
|
onFilterValueChange?: (value: string) => void;
|
|
88
91
|
options: import("../types").ComboboxControlOption[];
|
|
89
92
|
value?: string | null;
|
|
93
|
+
placeholder?: string;
|
|
90
94
|
}>;
|
|
91
95
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/combobox-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,eAAe,MAAM,IAAI,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAqBrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,eAAe,CAWvC,CAAC;AACF,eAAe,IAAI,CAAC;AA6BpB,eAAO,MAAM,OAAO;;;UAjDE,MAAO,SAC3B
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/combobox-control/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,eAAe,MAAM,IAAI,CAAC;AACjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAqBrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,eAAe,CAWvC,CAAC;AACF,eAAe,IAAI,CAAC;AA6BpB,eAAO,MAAM,OAAO;;;UAjDE,MAAO,SAC3B;;;;;;;;;;;;;EAgDwC,CAAC;AAQ3C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;gBA9DJ,SAC3B;;;;;;;;;;;;;EA6DqD,CAAC;AAqCxD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;gBAxGH,SAC3B;;;;;;;;;;;;;EAuGoD,CAAC;AAWvD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;gBAxHA,SAC3B;;;;;;;;;;;;;EAuHiD,CAAC"}
|
|
@@ -73,5 +73,9 @@ export type ComboboxControlProps = Pick<BaseControlProps, '__nextHasNoMarginBott
|
|
|
73
73
|
* The current value of the control.
|
|
74
74
|
*/
|
|
75
75
|
value?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* If passed, the combobox input will show a placeholder string if no values are present.
|
|
78
|
+
*/
|
|
79
|
+
placeholder?: string;
|
|
76
80
|
};
|
|
77
81
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/combobox-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACtC,gBAAgB,EACd,yBAAyB,GACzB,WAAW,GACX,OAAO,GACP,qBAAqB,GACrB,MAAM,CACR,GAAG;IACH;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,CAAE,IAAI,EAAE;QAClC,IAAI,EAAE,qBAAqB,CAAC;KAC5B,KAAM,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE;QACV;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;KACjB,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,KAAK,EAAE,oBAAoB,CAAE,OAAO,CAAE,KAAM,IAAI,CAAC;IAC9D;;;;OAIG;IACH,m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AM,KAAM,IAAI,CAAC;IAChD;;OAEG;IACH,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAU1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA+DtD,eAAO,MAAM,MAAM;;;;;;;UAQX,WAAW,CAAE,sBAAsB,CAAE,MAAM,CAAE,CAAE;yBAChC,OAAO;UAoB7B,CAAC;AAUF,eAAO,MAAM,aAAa;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAU1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA+DtD,eAAO,MAAM,MAAM;;;;;;;UAQX,WAAW,CAAE,sBAAsB,CAAE,MAAM,CAAE,CAAE;yBAChC,OAAO;UAoB7B,CAAC;AAUF,eAAO,MAAM,aAAa;;;;;;UAiCzB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;UAIf,WAAW,CAAE,sBAAsB,CAAE,MAAM,CAAE,CAAE;UAuBtD,CAAC;AAQF,eAAO,MAAM,+BAA+B;;SA1Kd,MAAO,WAAW;yGA4K/C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;eA9KJ,WAAW;2GAiL/C,CAAC;AAEF,eAAO,MAAM,mBAAmB;;eAnLK,WAAW;yGA0L/C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;eA5LQ,WAAW;2GAkM/C,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;UAmB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modal/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA2V1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,KAAK,uGAAiC,CAAC;AAEpD,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import type { AriaRole, CSSProperties, ReactNode, KeyboardEventHandler, KeyboardEvent, SyntheticEvent } from 'react';
|
|
5
1
|
/**
|
|
6
2
|
* WordPress dependencies
|
|
7
3
|
*/
|
|
@@ -33,7 +29,7 @@ export type ModalProps = {
|
|
|
33
29
|
/**
|
|
34
30
|
* The children elements.
|
|
35
31
|
*/
|
|
36
|
-
children: ReactNode;
|
|
32
|
+
children: React.ReactNode;
|
|
37
33
|
/**
|
|
38
34
|
* If this property is added, it will an additional class name to the modal
|
|
39
35
|
* content `div`.
|
|
@@ -66,7 +62,7 @@ export type ModalProps = {
|
|
|
66
62
|
*
|
|
67
63
|
* @default null
|
|
68
64
|
*/
|
|
69
|
-
headerActions?: ReactNode;
|
|
65
|
+
headerActions?: React.ReactNode;
|
|
70
66
|
/**
|
|
71
67
|
* If this property is added, an icon will be added before the title.
|
|
72
68
|
*/
|
|
@@ -96,11 +92,11 @@ export type ModalProps = {
|
|
|
96
92
|
/**
|
|
97
93
|
* Handle the key down on the modal frame `div`.
|
|
98
94
|
*/
|
|
99
|
-
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
95
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
100
96
|
/**
|
|
101
97
|
* This function is called to indicate that the modal should be closed.
|
|
102
98
|
*/
|
|
103
|
-
onRequestClose: (event?: KeyboardEvent<HTMLDivElement> | SyntheticEvent) => void;
|
|
99
|
+
onRequestClose: (event?: React.KeyboardEvent<HTMLDivElement> | React.SyntheticEvent) => void;
|
|
104
100
|
/**
|
|
105
101
|
* If this property is added, it will an additional class name to the modal
|
|
106
102
|
* overlay `div`.
|
|
@@ -112,7 +108,7 @@ export type ModalProps = {
|
|
|
112
108
|
*
|
|
113
109
|
* @default 'dialog'
|
|
114
110
|
*/
|
|
115
|
-
role?: AriaRole;
|
|
111
|
+
role?: React.AriaRole;
|
|
116
112
|
/**
|
|
117
113
|
* If this property is added, it will determine whether the modal requests
|
|
118
114
|
* to close when a mouse click occurs outside of the modal content.
|
|
@@ -130,7 +126,7 @@ export type ModalProps = {
|
|
|
130
126
|
/**
|
|
131
127
|
* If this property is added, it will be added to the modal frame `div`.
|
|
132
128
|
*/
|
|
133
|
-
style?: CSSProperties;
|
|
129
|
+
style?: React.CSSProperties;
|
|
134
130
|
/**
|
|
135
131
|
* This property is used as the modal header's title.
|
|
136
132
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/modal/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/modal/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,CAAC,EAAE;QACN;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;;;;;;;WAQG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,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AwB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function useModalExitAnimation(): {
|
|
2
|
+
overlayClassname: string | undefined;
|
|
3
|
+
frameRef: import("react").MutableRefObject<HTMLDivElement | undefined>;
|
|
4
|
+
frameStyle: {
|
|
5
|
+
'--modal-frame-animation-duration': string;
|
|
6
|
+
};
|
|
7
|
+
closeModal: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=use-modal-exit-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-modal-exit-animation.d.ts","sourceRoot":"","sources":["../../src/modal/use-modal-exit-animation.ts"],"names":[],"mappings":"AAoBA,wBAAgB,qBAAqB;;;;;;;EA8EpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-control-styles.d.ts","sourceRoot":"","sources":["../../../src/range-control/styles/range-control-styles.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,cAAc,EAEd,UAAU,EACV,YAAY,EACZ,UAAU,EAEV,iBAAiB,EACjB,MAAM,UAAU,CAAC;AAalB,KAAK,SAAS,GAAG,IAAI,CAAE,iBAAiB,EAAE,uBAAuB,CAAE,CAAC;AACpE,eAAO,MAAM,IAAI;;SATK,MAAO,WAAW;qHAqBvC,CAAC;AAYF,eAAO,MAAM,OAAO;;eAjCS,WAAW;;;;yGA0CvC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;eA5CD,WAAW;2GAiDvC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;eAnDA,WAAW;2GAwDvC,CAAC;AAYF,eAAO,MAAM,IAAI;;eApEY,WAAW;;;;;aAmBnC,CAAC;;;;;2GA8DL,CAAC;AAYF,eAAO,MAAM,KAAK;;eA7FW,WAAW;wHAwGvC,CAAC;AAEF,eAAO,MAAM,YAAY;;eA1GI,WAAW;2GAgHvC,CAAC;AAcF,eAAO,MAAM,IAAI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UvB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;eAzSF,WAAW;2GAoTvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "28.8.1
|
|
3
|
+
"version": "28.8.1",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"@types/gradient-parser": "0.1.3",
|
|
44
44
|
"@types/highlight-words-core": "1.2.1",
|
|
45
45
|
"@use-gesture/react": "^10.3.1",
|
|
46
|
-
"@wordpress/a11y": "^4.
|
|
47
|
-
"@wordpress/compose": "^7.8.1
|
|
48
|
-
"@wordpress/date": "^5.
|
|
49
|
-
"@wordpress/deprecated": "^4.
|
|
50
|
-
"@wordpress/dom": "^4.
|
|
51
|
-
"@wordpress/element": "^6.
|
|
52
|
-
"@wordpress/escape-html": "^3.
|
|
53
|
-
"@wordpress/hooks": "^4.
|
|
54
|
-
"@wordpress/html-entities": "^4.
|
|
55
|
-
"@wordpress/i18n": "^5.
|
|
56
|
-
"@wordpress/icons": "^10.
|
|
57
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
58
|
-
"@wordpress/keycodes": "^4.
|
|
59
|
-
"@wordpress/primitives": "^4.
|
|
60
|
-
"@wordpress/private-apis": "^1.
|
|
61
|
-
"@wordpress/rich-text": "^7.
|
|
62
|
-
"@wordpress/warning": "^3.
|
|
46
|
+
"@wordpress/a11y": "^4.8.1",
|
|
47
|
+
"@wordpress/compose": "^7.8.1",
|
|
48
|
+
"@wordpress/date": "^5.8.1",
|
|
49
|
+
"@wordpress/deprecated": "^4.8.1",
|
|
50
|
+
"@wordpress/dom": "^4.8.1",
|
|
51
|
+
"@wordpress/element": "^6.8.1",
|
|
52
|
+
"@wordpress/escape-html": "^3.8.1",
|
|
53
|
+
"@wordpress/hooks": "^4.8.1",
|
|
54
|
+
"@wordpress/html-entities": "^4.8.1",
|
|
55
|
+
"@wordpress/i18n": "^5.8.1",
|
|
56
|
+
"@wordpress/icons": "^10.8.1",
|
|
57
|
+
"@wordpress/is-shallow-equal": "^5.8.1",
|
|
58
|
+
"@wordpress/keycodes": "^4.8.1",
|
|
59
|
+
"@wordpress/primitives": "^4.8.1",
|
|
60
|
+
"@wordpress/private-apis": "^1.8.1",
|
|
61
|
+
"@wordpress/rich-text": "^7.8.1",
|
|
62
|
+
"@wordpress/warning": "^3.8.1",
|
|
63
63
|
"change-case": "^4.1.2",
|
|
64
64
|
"clsx": "^2.1.1",
|
|
65
65
|
"colord": "^2.7.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "cf707c1f25a2716e310cc8f9afcc8554405c79ac"
|
|
88
88
|
}
|
|
@@ -100,3 +100,10 @@ A handler for onMouseOver events.
|
|
|
100
100
|
A handler for onMouseOut events.
|
|
101
101
|
|
|
102
102
|
- Required: No
|
|
103
|
+
|
|
104
|
+
### `__next40pxDefaultSize`: `boolean`
|
|
105
|
+
|
|
106
|
+
Start opting into the larger default size that will become the default size in a future version.
|
|
107
|
+
|
|
108
|
+
- Required: No
|
|
109
|
+
- Default: `false`
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
FlexedRangeControl,
|
|
11
11
|
StyledUnitControl,
|
|
12
12
|
} from './styles/box-control-styles';
|
|
13
|
-
import { HStack } from '../h-stack';
|
|
14
13
|
import type { BoxControlInputControlProps } from './types';
|
|
15
14
|
import { parseQuantityAndUnitFromRawValue } from '../unit-control';
|
|
16
15
|
import {
|
|
@@ -72,7 +71,7 @@ export default function AllInputControl( {
|
|
|
72
71
|
};
|
|
73
72
|
|
|
74
73
|
return (
|
|
75
|
-
|
|
74
|
+
<>
|
|
76
75
|
<StyledUnitControl
|
|
77
76
|
{ ...props }
|
|
78
77
|
__next40pxDefaultSize={ __next40pxDefaultSize }
|
|
@@ -104,6 +103,6 @@ export default function AllInputControl( {
|
|
|
104
103
|
value={ parsedQuantity ?? 0 }
|
|
105
104
|
withInputField={ false }
|
|
106
105
|
/>
|
|
107
|
-
|
|
106
|
+
</>
|
|
108
107
|
);
|
|
109
108
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import type { Meta,
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -22,18 +22,13 @@ const meta: Meta< typeof ButtonGroup > = {
|
|
|
22
22
|
};
|
|
23
23
|
export default meta;
|
|
24
24
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Button
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</Button>
|
|
35
|
-
</ButtonGroup>
|
|
36
|
-
);
|
|
25
|
+
export const Default: StoryObj< typeof ButtonGroup > = {
|
|
26
|
+
args: {
|
|
27
|
+
children: (
|
|
28
|
+
<>
|
|
29
|
+
<Button variant="primary">Button 1</Button>
|
|
30
|
+
<Button>Button 2</Button>
|
|
31
|
+
</>
|
|
32
|
+
),
|
|
33
|
+
},
|
|
37
34
|
};
|
|
38
|
-
|
|
39
|
-
export const Default: StoryFn< typeof ButtonGroup > = Template.bind( {} );
|
package/src/card/styles.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { COLORS, CONFIG } from '../utils';
|
|
|
12
12
|
// (as opposed to the `border` property), the value of the border radius needs
|
|
13
13
|
// to be adjusted by removing 1px (this is because the `box-shadow` renders
|
|
14
14
|
// as an "outer radius").
|
|
15
|
-
const adjustedBorderRadius = `calc(${ CONFIG.
|
|
15
|
+
const adjustedBorderRadius = `calc(${ CONFIG.radiusLarge } - 1px)`;
|
|
16
16
|
|
|
17
17
|
export const Card = css`
|
|
18
18
|
box-shadow: 0 0 0 1px ${ CONFIG.surfaceBorderColor };
|
|
@@ -8,8 +8,8 @@ Snapshot Diff:
|
|
|
8
8
|
@@ -1,8 +1,8 @@
|
|
9
9
|
<div>
|
|
10
10
|
<div
|
|
11
|
-
- class="components-card__body components-card-body css-
|
|
12
|
-
+ class="components-scrollable components-card__body components-card-body css-
|
|
11
|
+
- class="components-card__body components-card-body css-12jqy32-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
12
|
+
+ class="components-scrollable components-card__body components-card-body css-26nv7r-PolymorphicDiv-Scrollable-scrollableScrollbar-scrollY-Body-borderRadius-medium e19lxcc00"
|
|
13
13
|
data-wp-c16t="true"
|
|
14
14
|
data-wp-component="CardBody"
|
|
15
15
|
>
|
|
@@ -25,8 +25,8 @@ Snapshot Diff:
|
|
|
25
25
|
@@ -1,8 +1,8 @@
|
|
26
26
|
<div>
|
|
27
27
|
<div
|
|
28
|
-
- class="components-card__body components-card-body css-
|
|
29
|
-
+ class="components-card__body components-card-body css-
|
|
28
|
+
- class="components-card__body components-card-body css-12jqy32-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
29
|
+
+ class="components-card__body components-card-body css-1j7lja1-PolymorphicDiv-Body-borderRadius-medium-shady e19lxcc00"
|
|
30
30
|
data-wp-c16t="true"
|
|
31
31
|
data-wp-component="CardBody"
|
|
32
32
|
>
|
|
@@ -42,8 +42,8 @@ Snapshot Diff:
|
|
|
42
42
|
@@ -1,8 +1,8 @@
|
|
43
43
|
<div>
|
|
44
44
|
<div
|
|
45
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
46
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
45
|
+
- class="components-flex components-card__footer components-card-footer css-19sc0cg-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
46
|
+
+ class="components-flex components-card__footer components-card-footer css-14budie-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium-shady e19lxcc00"
|
|
47
47
|
data-wp-c16t="true"
|
|
48
48
|
data-wp-component="CardFooter"
|
|
49
49
|
>
|
|
@@ -59,8 +59,8 @@ Snapshot Diff:
|
|
|
59
59
|
@@ -1,8 +1,8 @@
|
|
60
60
|
<div>
|
|
61
61
|
<div
|
|
62
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
63
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
62
|
+
- class="components-flex components-card__footer components-card-footer css-19sc0cg-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
63
|
+
+ class="components-flex components-card__footer components-card-footer css-2io175-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-medium e19lxcc00"
|
|
64
64
|
data-wp-c16t="true"
|
|
65
65
|
data-wp-component="CardFooter"
|
|
66
66
|
>
|
|
@@ -76,8 +76,8 @@ Snapshot Diff:
|
|
|
76
76
|
@@ -1,8 +1,8 @@
|
|
77
77
|
<div>
|
|
78
78
|
<div
|
|
79
|
-
- class="components-flex components-card__header components-card-header css-
|
|
80
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
79
|
+
- class="components-flex components-card__header components-card-header css-1qwshfy-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium e19lxcc00"
|
|
80
|
+
+ class="components-flex components-card__header components-card-header css-1bzc8bz-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium-shady e19lxcc00"
|
|
81
81
|
data-wp-c16t="true"
|
|
82
82
|
data-wp-component="CardHeader"
|
|
83
83
|
>
|
|
@@ -96,16 +96,16 @@ Snapshot Diff:
|
|
|
96
96
|
class="css-76dw7d-PolymorphicDiv-Content e19lxcc00"
|
|
97
97
|
>
|
|
98
98
|
<div
|
|
99
|
-
- class="components-flex components-card__header components-card-header css-
|
|
100
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
99
|
+
- class="components-flex components-card__header components-card-header css-1qwshfy-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-medium e19lxcc00"
|
|
100
|
+
+ class="components-flex components-card__header components-card-header css-1t2zg3y-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large e19lxcc00"
|
|
101
101
|
data-wp-c16t="true"
|
|
102
102
|
data-wp-component="CardHeader"
|
|
103
103
|
>
|
|
104
104
|
Header
|
|
105
105
|
</div>
|
|
106
106
|
<div
|
|
107
|
-
- class="components-card__body components-card-body css-
|
|
108
|
-
+ class="components-card__body components-card-body css-
|
|
107
|
+
- class="components-card__body components-card-body css-12jqy32-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
108
|
+
+ class="components-card__body components-card-body css-e0vrqx-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
109
109
|
data-wp-c16t="true"
|
|
110
110
|
data-wp-component="CardBody"
|
|
111
111
|
>
|
|
@@ -122,7 +122,7 @@ Snapshot Diff:
|
|
|
122
122
|
Array [
|
|
123
123
|
Object {
|
|
124
124
|
"background-color": "#fff",
|
|
125
|
-
- "border-radius": "calc(
|
|
125
|
+
- "border-radius": "calc(8px - 1px)",
|
|
126
126
|
"box-shadow": "0 0 0 1px rgba(0, 0, 0, 0.1)",
|
|
127
127
|
"color": "#1e1e1e",
|
|
128
128
|
"outline": "none",
|
|
@@ -141,24 +141,24 @@ Snapshot Diff:
|
|
|
141
141
|
class="css-76dw7d-PolymorphicDiv-Content e19lxcc00"
|
|
142
142
|
>
|
|
143
143
|
<div
|
|
144
|
-
- class="components-flex components-card__header components-card-header css-
|
|
145
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
144
|
+
- class="components-flex components-card__header components-card-header css-ubn8f6-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
145
|
+
+ class="components-flex components-card__header components-card-header css-1t1rswf-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-small e19lxcc00"
|
|
146
146
|
data-wp-c16t="true"
|
|
147
147
|
data-wp-component="CardHeader"
|
|
148
148
|
>
|
|
149
149
|
Header
|
|
150
150
|
</div>
|
|
151
151
|
<div
|
|
152
|
-
- class="components-card__body components-card-body css-
|
|
153
|
-
+ class="components-card__body components-card-body css-
|
|
152
|
+
- class="components-card__body components-card-body css-e0vrqx-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
153
|
+
+ class="components-card__body components-card-body css-12jqy32-PolymorphicDiv-Body-borderRadius-medium e19lxcc00"
|
|
154
154
|
data-wp-c16t="true"
|
|
155
155
|
data-wp-component="CardBody"
|
|
156
156
|
>
|
|
157
157
|
Body
|
|
158
158
|
</div>
|
|
159
159
|
<div
|
|
160
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
161
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
160
|
+
- class="components-flex components-card__footer components-card-footer css-167csgt-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
161
|
+
+ class="components-flex components-card__footer components-card-footer css-1kcgqsk-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-xSmallCardPadding e19lxcc00"
|
|
162
162
|
data-wp-c16t="true"
|
|
163
163
|
data-wp-component="CardFooter"
|
|
164
164
|
>
|
|
@@ -174,8 +174,8 @@ Snapshot Diff:
|
|
|
174
174
|
@@ -1,30 +1,30 @@
|
|
175
175
|
<div>
|
|
176
176
|
<div
|
|
177
|
-
- class="components-surface components-card css-
|
|
178
|
-
+ class="components-surface components-card css-
|
|
177
|
+
- class="components-surface components-card css-1hs39fv-PolymorphicDiv-Surface-getBorders-primary-Card-boxShadowless-rounded e19lxcc00"
|
|
178
|
+
+ class="components-surface components-card css-1c6nh8q-PolymorphicDiv-Surface-getBorders-primary-Card-rounded e19lxcc00"
|
|
179
179
|
data-wp-c16t="true"
|
|
180
180
|
data-wp-component="Card"
|
|
181
181
|
>
|
|
@@ -183,24 +183,24 @@ Snapshot Diff:
|
|
|
183
183
|
class="css-76dw7d-PolymorphicDiv-Content e19lxcc00"
|
|
184
184
|
>
|
|
185
185
|
<div
|
|
186
|
-
- class="components-flex components-card__header components-card-header css-
|
|
187
|
-
+ class="components-flex components-card__header components-card-header css-
|
|
186
|
+
- class="components-flex components-card__header components-card-header css-ubn8f6-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
187
|
+
+ class="components-flex components-card__header components-card-header css-1t1rswf-PolymorphicDiv-Flex-base-ItemsRow-Header-borderRadius-borderColor-small e19lxcc00"
|
|
188
188
|
data-wp-c16t="true"
|
|
189
189
|
data-wp-component="CardHeader"
|
|
190
190
|
>
|
|
191
191
|
Header
|
|
192
192
|
</div>
|
|
193
193
|
<div
|
|
194
|
-
- class="components-card__body components-card-body css-
|
|
195
|
-
+ class="components-card__body components-card-body css-
|
|
194
|
+
- class="components-card__body components-card-body css-e0vrqx-PolymorphicDiv-Body-borderRadius-large e19lxcc00"
|
|
195
|
+
+ class="components-card__body components-card-body css-hms9n9-PolymorphicDiv-Body-borderRadius-small e19lxcc00"
|
|
196
196
|
data-wp-c16t="true"
|
|
197
197
|
data-wp-component="CardBody"
|
|
198
198
|
>
|
|
199
199
|
Body
|
|
200
200
|
</div>
|
|
201
201
|
<div
|
|
202
|
-
- class="components-flex components-card__footer components-card-footer css-
|
|
203
|
-
+ class="components-flex components-card__footer components-card-footer css-
|
|
202
|
+
- class="components-flex components-card__footer components-card-footer css-167csgt-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-large-borderless e19lxcc00"
|
|
203
|
+
+ class="components-flex components-card__footer components-card-footer css-18yn3ff-PolymorphicDiv-Flex-base-ItemsRow-Footer-borderRadius-borderColor-small e19lxcc00"
|
|
204
204
|
data-wp-c16t="true"
|
|
205
205
|
data-wp-component="CardFooter"
|
|
206
206
|
>
|
|
@@ -215,7 +215,7 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
215
215
|
position: relative;
|
|
216
216
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
217
217
|
outline: none;
|
|
218
|
-
border-radius: calc(
|
|
218
|
+
border-radius: calc(8px - 1px);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.emotion-2 {
|
|
@@ -254,13 +254,13 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
.emotion-4:first-of-type {
|
|
257
|
-
border-top-left-radius: calc(
|
|
258
|
-
border-top-right-radius: calc(
|
|
257
|
+
border-top-left-radius: calc(8px - 1px);
|
|
258
|
+
border-top-right-radius: calc(8px - 1px);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
.emotion-4:last-of-type {
|
|
262
|
-
border-bottom-left-radius: calc(
|
|
263
|
-
border-bottom-right-radius: calc(
|
|
262
|
+
border-bottom-left-radius: calc(8px - 1px);
|
|
263
|
+
border-bottom-right-radius: calc(8px - 1px);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.emotion-6 {
|
|
@@ -271,13 +271,13 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
.emotion-6:first-of-type {
|
|
274
|
-
border-top-left-radius: calc(
|
|
275
|
-
border-top-right-radius: calc(
|
|
274
|
+
border-top-left-radius: calc(8px - 1px);
|
|
275
|
+
border-top-right-radius: calc(8px - 1px);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.emotion-6:last-of-type {
|
|
279
|
-
border-bottom-left-radius: calc(
|
|
280
|
-
border-bottom-right-radius: calc(
|
|
279
|
+
border-bottom-left-radius: calc(8px - 1px);
|
|
280
|
+
border-bottom-right-radius: calc(8px - 1px);
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.emotion-10 {
|
|
@@ -306,13 +306,13 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.emotion-14:first-of-type {
|
|
309
|
-
border-top-left-radius: calc(
|
|
310
|
-
border-top-right-radius: calc(
|
|
309
|
+
border-top-left-radius: calc(8px - 1px);
|
|
310
|
+
border-top-right-radius: calc(8px - 1px);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.emotion-14:last-of-type {
|
|
314
|
-
border-bottom-left-radius: calc(
|
|
315
|
-
border-bottom-right-radius: calc(
|
|
314
|
+
border-bottom-left-radius: calc(8px - 1px);
|
|
315
|
+
border-bottom-right-radius: calc(8px - 1px);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
.emotion-16 {
|
|
@@ -347,13 +347,13 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.emotion-16:first-of-type {
|
|
350
|
-
border-top-left-radius: calc(
|
|
351
|
-
border-top-right-radius: calc(
|
|
350
|
+
border-top-left-radius: calc(8px - 1px);
|
|
351
|
+
border-top-right-radius: calc(8px - 1px);
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
.emotion-16:last-of-type {
|
|
355
|
-
border-bottom-left-radius: calc(
|
|
356
|
-
border-bottom-right-radius: calc(
|
|
355
|
+
border-bottom-left-radius: calc(8px - 1px);
|
|
356
|
+
border-bottom-right-radius: calc(8px - 1px);
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.emotion-18 {
|
|
@@ -370,7 +370,7 @@ exports[`Card Card component should render correctly 1`] = `
|
|
|
370
370
|
left: 0;
|
|
371
371
|
right: 0;
|
|
372
372
|
top: 0;
|
|
373
|
-
border-radius:
|
|
373
|
+
border-radius: 8px;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
@media not ( prefers-reduced-motion ) {
|
|
@@ -469,15 +469,15 @@ Snapshot Diff:
|
|
|
469
469
|
</div>
|
|
470
470
|
<div
|
|
471
471
|
aria-hidden="true"
|
|
472
|
-
- class="components-elevation css-
|
|
473
|
-
+ class="components-elevation css-
|
|
472
|
+
- class="components-elevation css-a91pvj-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
473
|
+
+ class="components-elevation css-1q4cuxd-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
474
474
|
data-wp-c16t="true"
|
|
475
475
|
data-wp-component="Elevation"
|
|
476
476
|
/>
|
|
477
477
|
<div
|
|
478
478
|
aria-hidden="true"
|
|
479
|
-
- class="components-elevation css-
|
|
480
|
-
+ class="components-elevation css-
|
|
479
|
+
- class="components-elevation css-5u83fl-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
480
|
+
+ class="components-elevation css-1q4cuxd-PolymorphicDiv-Elevation-sx-Base-sx-Base-elevationClassName e19lxcc00"
|
|
481
481
|
data-wp-c16t="true"
|
|
482
482
|
data-wp-component="Elevation"
|
|
483
483
|
/>
|
|
@@ -497,7 +497,7 @@ exports[`Card Card component should warn when the isElevated prop is passed 1`]
|
|
|
497
497
|
position: relative;
|
|
498
498
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
499
499
|
outline: none;
|
|
500
|
-
border-radius: calc(
|
|
500
|
+
border-radius: calc(8px - 1px);
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.emotion-2 {
|
|
@@ -518,7 +518,7 @@ exports[`Card Card component should warn when the isElevated prop is passed 1`]
|
|
|
518
518
|
left: 0;
|
|
519
519
|
right: 0;
|
|
520
520
|
top: 0;
|
|
521
|
-
border-radius:
|
|
521
|
+
border-radius: 8px;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
@media not ( prefers-reduced-motion ) {
|
|
@@ -542,7 +542,7 @@ exports[`Card Card component should warn when the isElevated prop is passed 1`]
|
|
|
542
542
|
left: 0;
|
|
543
543
|
right: 0;
|
|
544
544
|
top: 0;
|
|
545
|
-
border-radius:
|
|
545
|
+
border-radius: 8px;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
@media not ( prefers-reduced-motion ) {
|
|
@@ -111,6 +111,13 @@ If the control is clicked, the dropdown will expand regardless of this prop.
|
|
|
111
111
|
- Required: No
|
|
112
112
|
- Default: `true`
|
|
113
113
|
|
|
114
|
+
### placeholder
|
|
115
|
+
|
|
116
|
+
If passed, the combobox input will show a placeholder string if no values are present.
|
|
117
|
+
|
|
118
|
+
- Type: `string`
|
|
119
|
+
- Required: No
|
|
120
|
+
|
|
114
121
|
#### __experimentalRenderItem
|
|
115
122
|
|
|
116
123
|
Custom renderer invoked for each option in the suggestion list. The render prop receives as its argument an object containing, under the `item` key, the single option's data (directly from the array of data passed to the `options` prop).
|
|
@@ -129,6 +129,7 @@ function ComboboxControl( props: ComboboxControlProps ) {
|
|
|
129
129
|
},
|
|
130
130
|
__experimentalRenderItem,
|
|
131
131
|
expandOnFocus = true,
|
|
132
|
+
placeholder,
|
|
132
133
|
} = useDeprecated36pxDefaultSizeProp( props );
|
|
133
134
|
|
|
134
135
|
const [ value, setValue ] = useControlledValue( {
|
|
@@ -340,6 +341,7 @@ function ComboboxControl( props: ComboboxControlProps ) {
|
|
|
340
341
|
className="components-combobox-control__input"
|
|
341
342
|
instanceId={ instanceId }
|
|
342
343
|
ref={ inputContainer }
|
|
344
|
+
placeholder={ placeholder }
|
|
343
345
|
value={ isExpanded ? inputValue : currentLabel }
|
|
344
346
|
onFocus={ onFocus }
|
|
345
347
|
onBlur={ onBlur }
|