@wordpress/components 32.5.0 → 32.5.2-next.v.202604091042.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +20 -0
- package/README.md +18 -4
- package/build/autocomplete/autocompleter-ui.cjs +75 -79
- package/build/autocomplete/autocompleter-ui.cjs.map +2 -2
- package/build/autocomplete/get-autocomplete-match.cjs +91 -0
- package/build/autocomplete/get-autocomplete-match.cjs.map +7 -0
- package/build/autocomplete/index.cjs +104 -107
- package/build/autocomplete/index.cjs.map +3 -3
- package/build/box-control/index.cjs +0 -8
- package/build/box-control/index.cjs.map +2 -2
- package/build/box-control/utils.cjs +1 -10
- package/build/box-control/utils.cjs.map +2 -2
- package/build/calendar/utils/use-localization-props.cjs +3 -2
- package/build/calendar/utils/use-localization-props.cjs.map +2 -2
- package/build/custom-select-control/index.cjs.map +3 -3
- package/build/custom-select-control-v2/custom-select.cjs +2 -2
- package/build/custom-select-control-v2/custom-select.cjs.map +2 -2
- package/build/custom-select-control-v2/index.cjs.map +3 -3
- package/build/sandbox/index.cjs +2 -2
- package/build/sandbox/index.cjs.map +2 -2
- package/build/validated-form-controls/control-with-error.cjs +12 -8
- package/build/validated-form-controls/control-with-error.cjs.map +2 -2
- package/build-module/autocomplete/autocompleter-ui.mjs +74 -78
- package/build-module/autocomplete/autocompleter-ui.mjs.map +2 -2
- package/build-module/autocomplete/get-autocomplete-match.mjs +56 -0
- package/build-module/autocomplete/get-autocomplete-match.mjs.map +7 -0
- package/build-module/autocomplete/index.mjs +103 -107
- package/build-module/autocomplete/index.mjs.map +3 -3
- package/build-module/box-control/index.mjs +1 -9
- package/build-module/box-control/index.mjs.map +2 -2
- package/build-module/box-control/utils.mjs +1 -9
- package/build-module/box-control/utils.mjs.map +2 -2
- package/build-module/calendar/utils/use-localization-props.mjs +3 -2
- package/build-module/calendar/utils/use-localization-props.mjs.map +2 -2
- package/build-module/custom-select-control/index.mjs +2 -2
- package/build-module/custom-select-control/index.mjs.map +2 -2
- package/build-module/custom-select-control-v2/custom-select.mjs +2 -2
- package/build-module/custom-select-control-v2/custom-select.mjs.map +2 -2
- package/build-module/custom-select-control-v2/index.mjs +2 -2
- package/build-module/custom-select-control-v2/index.mjs.map +2 -2
- package/build-module/sandbox/index.mjs +2 -2
- package/build-module/sandbox/index.mjs.map +2 -2
- package/build-module/validated-form-controls/control-with-error.mjs +12 -8
- package/build-module/validated-form-controls/control-with-error.mjs.map +2 -2
- package/build-style/style-rtl.css +0 -3
- package/build-style/style.css +0 -3
- package/build-types/autocomplete/autocompleter-ui.d.ts +2 -2
- package/build-types/autocomplete/autocompleter-ui.d.ts.map +1 -1
- package/build-types/autocomplete/get-autocomplete-match.d.ts +11 -0
- package/build-types/autocomplete/get-autocomplete-match.d.ts.map +1 -0
- package/build-types/autocomplete/index.d.ts +8 -0
- package/build-types/autocomplete/index.d.ts.map +1 -1
- package/build-types/autocomplete/test/get-autocomplete-match.d.ts +2 -0
- package/build-types/autocomplete/test/get-autocomplete-match.d.ts.map +1 -0
- package/build-types/autocomplete/types.d.ts +23 -9
- package/build-types/autocomplete/types.d.ts.map +1 -1
- package/build-types/box-control/index.d.ts.map +1 -1
- package/build-types/box-control/utils.d.ts +7 -16
- package/build-types/box-control/utils.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +0 -1
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/calendar/utils/use-localization-props.d.ts +3 -3
- package/build-types/calendar/utils/use-localization-props.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/constants.d.ts +2 -2
- package/build-types/custom-select-control-v2/custom-select.d.ts +3 -3
- package/build-types/custom-select-control-v2/custom-select.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/types.d.ts +1 -1
- package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
- package/build-types/font-size-picker/constants.d.ts +2 -2
- package/build-types/font-size-picker/constants.d.ts.map +1 -1
- package/build-types/palette-edit/index.d.ts +1 -1
- package/build-types/validated-form-controls/control-with-error.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/alignment-matrix-control/README.md +1 -1
- package/src/angle-picker-control/style.module.scss +1 -0
- package/src/autocomplete/README.md +2 -2
- package/src/autocomplete/autocompleter-ui.native.js +166 -173
- package/src/autocomplete/autocompleter-ui.tsx +114 -116
- package/src/autocomplete/get-autocomplete-match.ts +115 -0
- package/src/autocomplete/index.tsx +129 -208
- package/src/autocomplete/test/get-autocomplete-match.ts +338 -0
- package/src/autocomplete/test/index.tsx +112 -4
- package/src/autocomplete/types.ts +17 -10
- package/src/box-control/index.tsx +1 -19
- package/src/box-control/utils.ts +1 -19
- package/src/button/README.md +1 -1
- package/src/button/stories/index.story.tsx +0 -1
- package/src/button/style.scss +0 -6
- package/src/calendar/utils/use-localization-props.ts +3 -4
- package/src/custom-select-control/index.tsx +3 -3
- package/src/custom-select-control-v2/custom-select.tsx +4 -4
- package/src/custom-select-control-v2/index.tsx +2 -2
- package/src/custom-select-control-v2/types.ts +1 -1
- package/src/divider/README.md +5 -6
- package/src/flex/stories/index.story.tsx +1 -1
- package/src/form-file-upload/README.md +3 -3
- package/src/gradient-picker/README.md +2 -2
- package/src/h-stack/README.md +10 -15
- package/src/h-stack/stories/index.story.tsx +2 -2
- package/src/heading/stories/index.story.tsx +1 -1
- package/src/higher-order/with-focus-outside/index.native.js +21 -20
- package/src/icon/README.md +1 -1
- package/src/menu/README.md +2 -2
- package/src/mobile/utils/get-px-from-css-unit.native.js +1 -1
- package/src/sandbox/index.native.js +2 -2
- package/src/sandbox/index.tsx +2 -2
- package/src/tabs/README.md +6 -6
- package/src/text/stories/index.story.tsx +1 -1
- package/src/toolbar/toolbar-button/toolbar-button-container.native.js +3 -1
- package/src/tree-select/README.md +1 -1
- package/src/v-stack/README.md +10 -15
- package/src/v-stack/stories/index.story.tsx +2 -2
- package/src/validated-form-controls/control-with-error.tsx +17 -12
- package/src/validated-form-controls/test/control-with-error.tsx +28 -1
- package/src/view/README.md +2 -5
- package/src/button/stories/style.css +0 -8
|
@@ -92,6 +92,10 @@ export type WPCompleter<TCompleterOption = any> = {
|
|
|
92
92
|
};
|
|
93
93
|
type ContentRef = React.RefObject<HTMLElement | null>;
|
|
94
94
|
export type AutocompleterUIProps = {
|
|
95
|
+
/**
|
|
96
|
+
* The autocompleter configuration object.
|
|
97
|
+
*/
|
|
98
|
+
autocompleter: WPCompleter;
|
|
95
99
|
/**
|
|
96
100
|
* The value to filter the options by.
|
|
97
101
|
*/
|
|
@@ -121,19 +125,10 @@ export type AutocompleterUIProps = {
|
|
|
121
125
|
* A function to be called when an option is selected.
|
|
122
126
|
*/
|
|
123
127
|
onSelect: (option: KeyedOption) => void;
|
|
124
|
-
/**
|
|
125
|
-
* A function to be called when the completer is reset
|
|
126
|
-
* (e.g. when the user hits the escape key).
|
|
127
|
-
*/
|
|
128
|
-
onReset?: () => void;
|
|
129
128
|
/**
|
|
130
129
|
* A function that defines the behavior of the completer when it is reset
|
|
131
130
|
*/
|
|
132
131
|
reset: (event: Event) => void;
|
|
133
|
-
/**
|
|
134
|
-
* The rich text value object the autocompleter is being applied to.
|
|
135
|
-
*/
|
|
136
|
-
value?: RichTextValue;
|
|
137
132
|
/**
|
|
138
133
|
* A ref containing the editable element that will serve as the anchor for
|
|
139
134
|
* `Autocomplete`'s `Popover`.
|
|
@@ -171,6 +166,25 @@ export type UseAutocompleteProps = {
|
|
|
171
166
|
*/
|
|
172
167
|
contentRef: ContentRef;
|
|
173
168
|
};
|
|
169
|
+
export type AutocompleteState = {
|
|
170
|
+
selectedIndex: number;
|
|
171
|
+
filteredOptions: KeyedOption[];
|
|
172
|
+
filterValue: string;
|
|
173
|
+
autocompleter: WPCompleter | null;
|
|
174
|
+
};
|
|
175
|
+
export type AutocompleteAction = {
|
|
176
|
+
type: 'RESET';
|
|
177
|
+
} | {
|
|
178
|
+
type: 'SELECT';
|
|
179
|
+
index: number;
|
|
180
|
+
} | {
|
|
181
|
+
type: 'OPTIONS';
|
|
182
|
+
options: KeyedOption[];
|
|
183
|
+
} | {
|
|
184
|
+
type: 'MATCH';
|
|
185
|
+
completer: WPCompleter;
|
|
186
|
+
query: string;
|
|
187
|
+
};
|
|
174
188
|
export type AutocompleteProps = UseAutocompleteProps & {
|
|
175
189
|
/**
|
|
176
190
|
* A function that returns nodes to be rendered within the Autocomplete.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/autocomplete/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,GAAG,CAAC;AAGzC,MAAM,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,SAAS,GAAG,YAAY,GAAG,aAAa,CAAC;AAE9E,KAAK,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,CAAE,MAAM,GAAG,YAAY,CAAE,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAE,MAAM,CAAE,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,CAAE,gBAAgB,GAAG,GAAG,IAAK;IACnD;;;OAGG;IACH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E,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,WAAW,EAAE,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG;IACtD;;OAEG;IACH,QAAQ,EAAE,CACT,KAAK,EAAE,IAAI,CAAE,UAAU,CAAE,OAAO,eAAe,CAAE,EAAE,SAAS,CAAE,KAC1D,KAAK,CAAC,SAAS,CAAC;IACrB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/box-control/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,SAAS,CAAC;AAehE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iBAAS,UAAU,CAAE,EACpB,qBAA6B,EAC7B,EAAE,EAAE,MAAM,EACV,UAA8B,EAC9B,QAAe,EACf,KAA2B,EAC3B,MAAM,EAAE,UAAU,EAClB,KAAK,EACL,KAAK,EACL,WAAmB,EACnB,UAAiB,EACjB,WAA4B,EAC5B,OAAO,EACP,SAAS,EACT,WAAW,EACX,UAAU,GACV,EAAE,eAAe,+BAwIjB;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,eAAe,UAAU,CAAC"}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import type { BoxControlInputControlProps, BoxControlProps, BoxControlValue, CustomValueUnits, Preset } from './types';
|
|
5
5
|
export declare const CUSTOM_VALUE_SETTINGS: CustomValueUnits;
|
|
6
6
|
export declare const LABELS: {
|
|
7
|
-
all: import("@wordpress/i18n").
|
|
8
|
-
top: import("@wordpress/i18n").
|
|
9
|
-
bottom: import("@wordpress/i18n").
|
|
10
|
-
left: import("@wordpress/i18n").
|
|
11
|
-
right: import("@wordpress/i18n").
|
|
12
|
-
vertical: import("@wordpress/i18n").
|
|
13
|
-
horizontal: import("@wordpress/i18n").
|
|
7
|
+
all: import("@wordpress/i18n").TransformedText<"All sides">;
|
|
8
|
+
top: import("@wordpress/i18n").TransformedText<"Top side">;
|
|
9
|
+
bottom: import("@wordpress/i18n").TransformedText<"Bottom side">;
|
|
10
|
+
left: import("@wordpress/i18n").TransformedText<"Left side">;
|
|
11
|
+
right: import("@wordpress/i18n").TransformedText<"Right side">;
|
|
12
|
+
vertical: import("@wordpress/i18n").TransformedText<"Top and bottom sides">;
|
|
13
|
+
horizontal: import("@wordpress/i18n").TransformedText<"Left and right sides">;
|
|
14
14
|
};
|
|
15
15
|
export declare const DEFAULT_VALUES: {
|
|
16
16
|
top: undefined;
|
|
@@ -51,15 +51,6 @@ export declare function getAllUnitFallback(selectedUnits?: BoxControlValue): str
|
|
|
51
51
|
* @return Whether values are mixed.
|
|
52
52
|
*/
|
|
53
53
|
export declare function isValuesDefined(values?: BoxControlValue): boolean | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Get initial selected side, factoring in whether the sides are linked,
|
|
56
|
-
* and whether the vertical / horizontal directions are grouped via splitOnAxis.
|
|
57
|
-
*
|
|
58
|
-
* @param isLinked Whether the box control's fields are linked.
|
|
59
|
-
* @param splitOnAxis Whether splitting by horizontal or vertical axis.
|
|
60
|
-
* @return The initial side.
|
|
61
|
-
*/
|
|
62
|
-
export declare function getInitialSide(isLinked: boolean, splitOnAxis: boolean): "top" | "all" | "vertical";
|
|
63
54
|
/**
|
|
64
55
|
* Normalizes provided sides configuration to an array containing only top,
|
|
65
56
|
* right, bottom and left. This essentially just maps `horizontal` or `vertical`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/box-control/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/box-control/utils.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,OAAO,KAAK,EACX,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,qBAAqB,EAAE,gBA6BnC,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF,eAAO,MAAM,SAAS,6CAAgD,CAAC;AAmBvE;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC7B,MAAM,GAAE,eAAoB,EAC5B,cAAc,GAAE,eAAe,CAAE,OAAO,CAAc,sBAatD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC3B,MAAM,GAAE,eAAoB,EAC5B,cAAc,GAAE,eAAe,CAAE,OAAO,CAAc,WAOtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAE,aAAa,CAAC,EAAE,eAAe,sBAQlE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,MAAM,CAAC,EAAE,eAAe,uBAUxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,KAAK,EAAE,eAAe,CAAE,OAAO,CAAE,2EAiBhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAChC,aAAa,EAAE,eAAe,EAC9B,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,eAAe,CAAE,OAAO,CAAE,GAChC,eAAe,CAwBjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC9B,KAAK,EAAE,2BAA2B,CAAE,OAAO,CAAE,8BAiB7C;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,WAE9D;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EAAE,sBAkBjB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EAAE,UAIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/button/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAc3D;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/button/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAc3D;;GAEG;AACH,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,MAAM,CAqC9B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,+MAAsB,CAAC;AAK3C;;;;GAIG;AACH,eAAO,MAAM,OAAO,+MAAsB,CAAC;AAM3C;;GAEG;AACH,eAAO,MAAM,SAAS,+MAAsB,CAAC;AAM7C;;GAEG;AACH,eAAO,MAAM,QAAQ,+MAAsB,CAAC;AAM5C;;;GAGG;AACH,eAAO,MAAM,IAAI,+MAAsB,CAAC;AAMxC;;GAEG;AACH,eAAO,MAAM,aAAa,+MAAsB,CAAC;AAMjD,eAAO,MAAM,IAAI,+MAAsB,CAAC;AASxC,wBAAgB,YAAY,gCAY3B"}
|
|
@@ -24,7 +24,7 @@ export declare const useLocalizationProps: ({ locale, timeZone, mode, }: {
|
|
|
24
24
|
timeZone: BaseProps["timeZone"];
|
|
25
25
|
mode: "single" | "range";
|
|
26
26
|
}) => {
|
|
27
|
-
readonly 'aria-label': import("@wordpress/i18n").
|
|
27
|
+
readonly 'aria-label': import("@wordpress/i18n").TransformedText<"Date calendar"> | import("@wordpress/i18n").TransformedText<"Date range calendar">;
|
|
28
28
|
readonly labels: {
|
|
29
29
|
/**
|
|
30
30
|
* The label for the month grid.
|
|
@@ -38,9 +38,9 @@ export declare const useLocalizationProps: ({ locale, timeZone, mode, }: {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly labelGridcell: (date: Date, modifiers?: Modifiers) => string;
|
|
40
40
|
/** The label for the "next month" button. */
|
|
41
|
-
readonly labelNext: () => import("@wordpress/i18n").
|
|
41
|
+
readonly labelNext: () => import("@wordpress/i18n").TransformedText<"Go to the Next Month">;
|
|
42
42
|
/** The label for the "previous month" button. */
|
|
43
|
-
readonly labelPrevious: () => import("@wordpress/i18n").
|
|
43
|
+
readonly labelPrevious: () => import("@wordpress/i18n").TransformedText<"Go to the Previous Month">;
|
|
44
44
|
/**
|
|
45
45
|
* The label for the day button.
|
|
46
46
|
* @param date
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-localization-props.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/use-localization-props.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"use-localization-props.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/use-localization-props.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqBrD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,GAAK,6BAInC;IACF,MAAM,EAAE,WAAW,CAAE,SAAS,CAAE,QAAQ,CAAE,CAAE,CAAC;IAC7C,QAAQ,EAAE,SAAS,CAAE,UAAU,CAAE,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CACzB;;;QAmCG;;;WAGG;mCACgB,IAAI;QACvB;;;;WAIG;uCAEI,IAAI,cAEE,SAAS;QAatB,6CAA6C;;QAE7C,iDAAiD;;QAEjD;;;;WAIG;wCAEI,IAAI,cAEE,SAAS;QAoBtB;;;WAGG;sCACmB,IAAI;;;;;2CAMC,IAAI;uCAGR,IAAI;;;CAO9B,CAAC"}
|
|
@@ -6,10 +6,10 @@ export declare const HORIZONTAL_GRADIENT_ORIENTATION: {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const GRADIENT_OPTIONS: ({
|
|
8
8
|
value: string;
|
|
9
|
-
label: import("@wordpress/i18n").
|
|
9
|
+
label: import("@wordpress/i18n").TransformedText<"Linear">;
|
|
10
10
|
} | {
|
|
11
11
|
value: string;
|
|
12
|
-
label: import("@wordpress/i18n").
|
|
12
|
+
label: import("@wordpress/i18n").TransformedText<"Radial">;
|
|
13
13
|
})[];
|
|
14
14
|
export declare const DIRECTIONAL_ORIENTATION_ANGLE_MAP: {
|
|
15
15
|
top: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CustomSelectContext as CustomSelectContextType, CustomSelectStore, CustomSelectButtonSize,
|
|
1
|
+
import type { CustomSelectContext as CustomSelectContextType, CustomSelectStore, CustomSelectButtonSize, CustomSelectInternalProps, _CustomSelectProps } from './types';
|
|
2
2
|
export declare const CustomSelectContext: import("react").Context<CustomSelectContextType>;
|
|
3
|
-
declare function
|
|
4
|
-
export default
|
|
3
|
+
declare function CustomSelect(props: CustomSelectInternalProps & _CustomSelectProps & CustomSelectStore & CustomSelectButtonSize): import("react").JSX.Element;
|
|
4
|
+
export default CustomSelect;
|
|
5
5
|
//# sourceMappingURL=custom-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/custom-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,iBAAiB,EAEjB,sBAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/custom-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,mBAAmB,IAAI,uBAAuB,EAC9C,iBAAiB,EAEjB,sBAAsB,EACtB,yBAAyB,EACzB,kBAAkB,EAClB,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,mBAAmB,kDACsB,CAAC;AA0DvD,iBAAS,YAAY,CACpB,KAAK,EAAE,yBAAyB,GAC/B,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,+BAsEvB;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -37,7 +37,7 @@ export type CustomSelectButtonProps = {
|
|
|
37
37
|
*/
|
|
38
38
|
value?: string | readonly string[];
|
|
39
39
|
};
|
|
40
|
-
export type
|
|
40
|
+
export type CustomSelectInternalProps = {
|
|
41
41
|
/**
|
|
42
42
|
* True if the consumer is emulating the legacy component behavior and look
|
|
43
43
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE/C,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC;CAC3B,CAAC;AAEF,KAAK,gBAAgB,CAAE,IAAI,GAAG,SAAS,GAAG,SAAS,IAAK;IACvD;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,gBA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C;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,KAAM,IAAI,CAAC;IAC5D;;OAEG;IACH,mBAAmB,CAAC,EAAE,CACrB,aAAa,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,KACrC,KAAK,CAAC,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC;AAGF,MAAM,MAAM,yBAAyB,GAAG;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,GAAG;IAC1D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
5
5
|
* ordered by size and show T-shirt labels.
|
|
6
6
|
*/
|
|
7
|
-
export declare const T_SHIRT_ABBREVIATIONS: (import("@wordpress/i18n").
|
|
7
|
+
export declare const T_SHIRT_ABBREVIATIONS: (import("@wordpress/i18n").TransformedText<"S"> | import("@wordpress/i18n").TransformedText<"M"> | import("@wordpress/i18n").TransformedText<"L"> | import("@wordpress/i18n").TransformedText<"XL"> | import("@wordpress/i18n").TransformedText<"XXL">)[];
|
|
8
8
|
/**
|
|
9
9
|
* List of T-shirt names.
|
|
10
10
|
*
|
|
11
11
|
* When there are 5 font sizes or fewer, we assume that the font sizes are
|
|
12
12
|
* ordered by size and show T-shirt labels.
|
|
13
13
|
*/
|
|
14
|
-
export declare const T_SHIRT_NAMES: (import("@wordpress/i18n").
|
|
14
|
+
export declare const T_SHIRT_NAMES: (import("@wordpress/i18n").TransformedText<"Small"> | import("@wordpress/i18n").TransformedText<"Medium"> | import("@wordpress/i18n").TransformedText<"Large"> | import("@wordpress/i18n").TransformedText<"Extra Large"> | import("@wordpress/i18n").TransformedText<"Extra Extra Large">)[];
|
|
15
15
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/font-size-picker/constants.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,2PAWjC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,+RAMzB,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare function deduplicateElementSlugs<T extends PaletteElement>(elemen
|
|
|
14
14
|
* @return A name and slug for the new palette item.
|
|
15
15
|
*/
|
|
16
16
|
export declare function getNameAndSlugForPosition(elements: PaletteElement[], slugPrefix: string): {
|
|
17
|
-
name:
|
|
17
|
+
name: import("@wordpress/i18n").TransformedText<"Color %d">;
|
|
18
18
|
slug: string;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-with-error.d.ts","sourceRoot":"","sources":["../../src/validated-form-controls/control-with-error.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"control-with-error.d.ts","sourceRoot":"","sources":["../../src/validated-form-controls/control-with-error.tsx"],"names":[],"mappings":"AAYA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAiChE;;;;;;;GAOG;AACH,KAAK,cAAc,GAChB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,CAAC;AAiQvB,eAAO,MAAM,gBAAgB;IAvP3B;;OAEG;eACQ,OAAO;IAClB;;OAEG;uBACgB,OAAO;qBACT,qBAAqB,CAAE,gBAAgB,CAAE;IAC1D;;OAEG;uBACgB,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS;IAC1D;;;;;;;OAOG;;kDAmOoE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/components",
|
|
3
|
-
"version": "32.5.0",
|
|
3
|
+
"version": "32.5.2-next.v.202604091042.0+668146787",
|
|
4
4
|
"description": "UI components for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -64,24 +64,24 @@
|
|
|
64
64
|
"@types/highlight-words-core": "1.2.1",
|
|
65
65
|
"@types/react": "^18.3.27",
|
|
66
66
|
"@use-gesture/react": "^10.3.1",
|
|
67
|
-
"@wordpress/a11y": "^4.43.0",
|
|
68
|
-
"@wordpress/base-styles": "^6.19.0",
|
|
69
|
-
"@wordpress/compose": "^7.43.0",
|
|
70
|
-
"@wordpress/date": "^5.43.0",
|
|
71
|
-
"@wordpress/deprecated": "^4.43.0",
|
|
72
|
-
"@wordpress/dom": "^4.43.0",
|
|
73
|
-
"@wordpress/element": "^6.
|
|
74
|
-
"@wordpress/escape-html": "^3.43.0",
|
|
75
|
-
"@wordpress/hooks": "^4.43.0",
|
|
76
|
-
"@wordpress/html-entities": "^4.43.0",
|
|
77
|
-
"@wordpress/i18n": "^6.
|
|
78
|
-
"@wordpress/icons": "^12.1.0",
|
|
79
|
-
"@wordpress/is-shallow-equal": "^5.43.0",
|
|
80
|
-
"@wordpress/keycodes": "^4.43.0",
|
|
81
|
-
"@wordpress/primitives": "^4.43.0",
|
|
82
|
-
"@wordpress/private-apis": "^1.43.0",
|
|
83
|
-
"@wordpress/rich-text": "^7.43.0",
|
|
84
|
-
"@wordpress/warning": "^3.43.0",
|
|
67
|
+
"@wordpress/a11y": "^4.43.1-next.v.202604091042.0+668146787",
|
|
68
|
+
"@wordpress/base-styles": "^6.19.1-next.v.202604091042.0+668146787",
|
|
69
|
+
"@wordpress/compose": "^7.43.1-next.v.202604091042.0+668146787",
|
|
70
|
+
"@wordpress/date": "^5.43.1-next.v.202604091042.0+668146787",
|
|
71
|
+
"@wordpress/deprecated": "^4.43.1-next.v.202604091042.0+668146787",
|
|
72
|
+
"@wordpress/dom": "^4.43.1-next.v.202604091042.0+668146787",
|
|
73
|
+
"@wordpress/element": "^6.44.1-next.v.202604091042.0+668146787",
|
|
74
|
+
"@wordpress/escape-html": "^3.43.1-next.v.202604091042.0+668146787",
|
|
75
|
+
"@wordpress/hooks": "^4.43.1-next.v.202604091042.0+668146787",
|
|
76
|
+
"@wordpress/html-entities": "^4.43.1-next.v.202604091042.0+668146787",
|
|
77
|
+
"@wordpress/i18n": "^6.17.1-next.v.202604091042.0+668146787",
|
|
78
|
+
"@wordpress/icons": "^12.1.1-next.v.202604091042.0+668146787",
|
|
79
|
+
"@wordpress/is-shallow-equal": "^5.43.1-next.v.202604091042.0+668146787",
|
|
80
|
+
"@wordpress/keycodes": "^4.43.1-next.v.202604091042.0+668146787",
|
|
81
|
+
"@wordpress/primitives": "^4.43.1-next.v.202604091042.0+668146787",
|
|
82
|
+
"@wordpress/private-apis": "^1.43.1-next.v.202604091042.0+668146787",
|
|
83
|
+
"@wordpress/rich-text": "^7.43.1-next.v.202604091042.0+668146787",
|
|
84
|
+
"@wordpress/warning": "^3.43.1-next.v.202604091042.0+668146787",
|
|
85
85
|
"change-case": "^4.1.2",
|
|
86
86
|
"clsx": "^2.1.1",
|
|
87
87
|
"colord": "^2.7.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@storybook/react-vite": "^10.2.8",
|
|
108
108
|
"@testing-library/jest-dom": "^6.9.1",
|
|
109
109
|
"@types/jest": "^29.5.14",
|
|
110
|
-
"@wordpress/jest-console": "^8.43.0",
|
|
110
|
+
"@wordpress/jest-console": "^8.43.1-next.v.202604091042.0+668146787",
|
|
111
111
|
"snapshot-diff": "^0.10.0",
|
|
112
112
|
"storybook": "^10.2.8",
|
|
113
113
|
"timezone-mock": "^1.3.6"
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"publishConfig": {
|
|
120
120
|
"access": "public"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
|
|
123
123
|
}
|
|
@@ -78,7 +78,7 @@ In addition, a completer may optionally declare:
|
|
|
78
78
|
|
|
79
79
|
#### name
|
|
80
80
|
|
|
81
|
-
The name of the completer. Useful for identifying a specific completer to be overridden via extensibility hooks.
|
|
81
|
+
The name of the completer. Useful for identifying a specific completer to be overridden via extensibility hooks. Each completer should have a unique name.
|
|
82
82
|
|
|
83
83
|
- Type: `String`
|
|
84
84
|
- Required: Yes
|
|
@@ -145,7 +145,7 @@ A class name to apply to the autocompletion popup menu.
|
|
|
145
145
|
|
|
146
146
|
#### isDebounced
|
|
147
147
|
|
|
148
|
-
Whether to
|
|
148
|
+
Whether to debounce the autocompleter. This setting only affects the `options` argument; it is ignored by the `useItems`.
|
|
149
149
|
|
|
150
150
|
- Type: `Boolean`
|
|
151
151
|
- Required: No
|