@ankhorage/zora 28.5.2 → 28.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -1
- package/dist/capabilities/index.js +73 -3
- package/dist/capabilities/index.js.map +3 -3
- package/dist/features/carousel/Carousel.d.ts.map +1 -1
- package/dist/features/carousel/Carousel.js +85 -8
- package/dist/features/carousel/Carousel.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js +71 -8
- package/dist/features/form/select/adapters/inbound/Select.native.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js +5 -3
- package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
- package/dist/features/form/select/composition/SelectSearchInput.d.ts +10 -0
- package/dist/features/form/select/composition/SelectSearchInput.d.ts.map +1 -0
- package/dist/features/form/select/composition/SelectSearchInput.js +11 -0
- package/dist/features/form/select/composition/SelectSearchInput.js.map +1 -0
- package/dist/features/form/select/composition/getVisibleSelectOptions.d.ts +4 -0
- package/dist/features/form/select/composition/getVisibleSelectOptions.d.ts.map +1 -0
- package/dist/features/form/select/composition/getVisibleSelectOptions.js +8 -0
- package/dist/features/form/select/composition/getVisibleSelectOptions.js.map +1 -0
- package/dist/features/form/select/composition/useSelectController.d.ts +3 -0
- package/dist/features/form/select/composition/useSelectController.d.ts.map +1 -1
- package/dist/features/form/select/composition/useSelectController.js +11 -2
- package/dist/features/form/select/composition/useSelectController.js.map +1 -1
- package/dist/features/form/select/selectMeta.d.ts +99 -1
- package/dist/features/form/select/selectMeta.d.ts.map +1 -1
- package/dist/features/form/select/selectMeta.js +71 -1
- package/dist/features/form/select/selectMeta.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +79 -1
- package/dist/features/registry/bindableComponentMeta.d.ts.map +1 -1
- package/dist/features/registry/bindableComponentMeta.js +59 -1
- package/dist/features/registry/bindableComponentMeta.js.map +1 -1
- package/dist/types/select.d.ts +10 -0
- package/dist/types/select.d.ts.map +1 -1
- package/dist/types/select.js.map +1 -1
- package/package.json +29 -3
- package/src/features/carousel/Carousel.test.ts +243 -7
- package/src/features/carousel/Carousel.tsx +135 -26
- package/src/features/form/select/adapters/inbound/Select.native.test.tsx +322 -0
- package/src/features/form/select/adapters/inbound/Select.native.tsx +135 -13
- package/src/features/form/select/adapters/inbound/Select.web.tsx +6 -3
- package/src/features/form/select/composition/SelectSearchInput.tsx +33 -0
- package/src/features/form/select/composition/getVisibleSelectOptions.test.ts +22 -0
- package/src/features/form/select/composition/getVisibleSelectOptions.ts +13 -0
- package/src/features/form/select/composition/useSelectController.ts +25 -2
- package/src/features/form/select/public.test.ts +31 -1
- package/src/features/form/select/selectMeta.ts +71 -1
- package/src/features/registry/bindableComponentMeta.test.ts +6 -0
- package/src/features/registry/bindableComponentMeta.ts +59 -1
- package/src/features/registry/featureManifest.test.ts +10 -0
- package/src/types/select.ts +10 -0
- package/web-dist/chunks/{Accordion-sj1n06dw.js → Accordion-9dk62zn9.js} +84 -24
- package/web-dist/chunks/Accordion-ar8qe05j.js +53 -0
- package/web-dist/chunks/{Accordion-ge7cjtwy.js → Accordion-mpb070cf.js} +3 -3
- package/web-dist/chunks/{Accordion-554f42yj.js → Accordion-sj30964p.js} +4 -4
- package/web-dist/chunks/{Accordion-2bygfpwg.js → Accordion-xhxv2v0g.js} +62 -2
- package/web-dist/chunks/{RichTextClient-70qt7037.js → RichTextClient-7qqj2dpw.js} +3 -4
- package/web-dist/components/auth-screen/AuthScreen.js +2 -3
- package/web-dist/components/carousel/Carousel.js +97 -24
- package/web-dist/components/color-hue-scale/ColorHueScale.js +4 -3
- package/web-dist/components/color-picker/ColorPicker.js +4 -3
- package/web-dist/components/color-tone/ColorTone.js +4 -3
- package/web-dist/components/color-wheel/ColorWheel.js +4 -3
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +2 -3
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +2 -3
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +2 -3
- package/web-dist/components/otp-form/OtpForm.js +2 -3
- package/web-dist/components/rich-text/RichText.js +2 -2
- package/web-dist/components/search-input/SearchInput.js +5 -52
- package/web-dist/components/select/Select.js +3 -1
- package/web-dist/components/select/Select.types-0.d.ts +10 -0
- package/web-dist/components/sign-in-form/SignInForm.js +2 -3
- package/web-dist/components/sign-up-form/SignUpForm.js +2 -3
- package/web-dist/components/text-input/TextInput.js +4 -5
- package/web-dist/manifest.json +39 -41
- package/web-dist/chunks/Accordion-49d0frg7.js +0 -66
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { SelectProps } from '../../../../types/select';
|
|
2
2
|
/*** Resolves controlled or uncontrolled Select value state and the selected option. */
|
|
3
3
|
export declare function useSelectController<TValue extends string>(props: SelectProps<TValue>): {
|
|
4
|
+
readonly search: (nextValue: string) => void;
|
|
5
|
+
readonly searchValue: string;
|
|
4
6
|
readonly select: (nextValue: TValue) => void;
|
|
5
7
|
readonly selectedOption: import("../public").SelectOption<TValue> | undefined;
|
|
6
8
|
readonly value: TValue | undefined;
|
|
9
|
+
readonly visibleOptions: readonly import("../public").SelectOption<TValue>[];
|
|
7
10
|
};
|
|
8
11
|
//# sourceMappingURL=useSelectController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectController.d.ts","sourceRoot":"","sources":["../../../../../src/features/form/select/composition/useSelectController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useSelectController.d.ts","sourceRoot":"","sources":["../../../../../src/features/form/select/composition/useSelectController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,uFAAuF;AACvF,wBAAgB,mBAAmB,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC;iCA6BrE,MAAM;;iCARN,MAAM;;;;EAgBrB"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { getVisibleSelectOptions } from './getVisibleSelectOptions';
|
|
2
3
|
/*** Resolves controlled or uncontrolled Select value state and the selected option. */
|
|
3
4
|
export function useSelectController(props) {
|
|
4
|
-
const { defaultValue, onValueChange, options, value: controlledValue } = props;
|
|
5
|
+
const { defaultSearchValue, defaultValue, onSearchChange, onValueChange, options, searchValue: controlledSearchValue, value: controlledValue, } = props;
|
|
5
6
|
const [localValue, setLocalValue] = React.useState(defaultValue);
|
|
7
|
+
const [localSearchValue, setLocalSearchValue] = React.useState(defaultSearchValue ?? '');
|
|
6
8
|
const value = controlledValue ?? localValue;
|
|
9
|
+
const searchValue = controlledSearchValue ?? localSearchValue;
|
|
7
10
|
const selectedOption = options.find((option) => option.value === value);
|
|
11
|
+
const visibleOptions = React.useMemo(() => getVisibleSelectOptions(options, props.searchable, searchValue), [options, props.searchable, searchValue]);
|
|
8
12
|
const select = React.useCallback((nextValue) => {
|
|
9
13
|
if (controlledValue === undefined)
|
|
10
14
|
setLocalValue(nextValue);
|
|
11
15
|
onValueChange?.(nextValue);
|
|
12
16
|
}, [controlledValue, onValueChange]);
|
|
13
|
-
|
|
17
|
+
const search = React.useCallback((nextValue) => {
|
|
18
|
+
if (controlledSearchValue === undefined)
|
|
19
|
+
setLocalSearchValue(nextValue);
|
|
20
|
+
onSearchChange?.(nextValue);
|
|
21
|
+
}, [controlledSearchValue, onSearchChange]);
|
|
22
|
+
return { search, searchValue, select, selectedOption, value, visibleOptions };
|
|
14
23
|
}
|
|
15
24
|
//# sourceMappingURL=useSelectController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectController.js","sourceRoot":"","sources":["../../../../../src/features/form/select/composition/useSelectController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useSelectController.js","sourceRoot":"","sources":["../../../../../src/features/form/select/composition/useSelectController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,uFAAuF;AACvF,MAAM,UAAU,mBAAmB,CAAwB,KAA0B;IACnF,MAAM,EACJ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,OAAO,EACP,WAAW,EAAE,qBAAqB,EAClC,KAAK,EAAE,eAAe,GACvB,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAqB,YAAY,CAAC,CAAC;IACrF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IACzF,MAAM,KAAK,GAAG,eAAe,IAAI,UAAU,CAAC;IAC5C,MAAM,WAAW,GAAG,qBAAqB,IAAI,gBAAgB,CAAC;IAC9D,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IACxE,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAClC,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,EACrE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,CACzC,CAAC;IAEF,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAC9B,CAAC,SAAiB,EAAE,EAAE;QACpB,IAAI,eAAe,KAAK,SAAS;YAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QAC5D,aAAa,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7B,CAAC,EACD,CAAC,eAAe,EAAE,aAAa,CAAC,CACjC,CAAC;IAEF,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAC9B,CAAC,SAAiB,EAAE,EAAE;QACpB,IAAI,qBAAqB,KAAK,SAAS;YAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;QACxE,cAAc,EAAE,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC,EACD,CAAC,qBAAqB,EAAE,cAAc,CAAC,CACxC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAW,CAAC;AACzF,CAAC","sourcesContent":["import React from 'react';\n\nimport type { SelectProps } from '../../../../types/select';\nimport { getVisibleSelectOptions } from './getVisibleSelectOptions';\n\n/*** Resolves controlled or uncontrolled Select value state and the selected option. */\nexport function useSelectController<TValue extends string>(props: SelectProps<TValue>) {\n const {\n defaultSearchValue,\n defaultValue,\n onSearchChange,\n onValueChange,\n options,\n searchValue: controlledSearchValue,\n value: controlledValue,\n } = props;\n const [localValue, setLocalValue] = React.useState<TValue | undefined>(defaultValue);\n const [localSearchValue, setLocalSearchValue] = React.useState(defaultSearchValue ?? '');\n const value = controlledValue ?? localValue;\n const searchValue = controlledSearchValue ?? localSearchValue;\n const selectedOption = options.find((option) => option.value === value);\n const visibleOptions = React.useMemo(\n () => getVisibleSelectOptions(options, props.searchable, searchValue),\n [options, props.searchable, searchValue],\n );\n\n const select = React.useCallback(\n (nextValue: TValue) => {\n if (controlledValue === undefined) setLocalValue(nextValue);\n onValueChange?.(nextValue);\n },\n [controlledValue, onValueChange],\n );\n\n const search = React.useCallback(\n (nextValue: string) => {\n if (controlledSearchValue === undefined) setLocalSearchValue(nextValue);\n onSearchChange?.(nextValue);\n },\n [controlledSearchValue, onSearchChange],\n );\n\n return { search, searchValue, select, selectedOption, value, visibleOptions } as const;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const selectMeta: {
|
|
2
2
|
readonly name: "Select";
|
|
3
3
|
readonly category: "component";
|
|
4
|
-
readonly description: "Single-value form selection with Popover presentation on web and BottomSheet presentation on native.";
|
|
4
|
+
readonly description: "Single-value form selection with optional searchable options, Popover presentation on web, and BottomSheet presentation on native.";
|
|
5
5
|
readonly directManifestNode: true;
|
|
6
6
|
readonly allowedChildren: readonly [];
|
|
7
7
|
readonly blueprint: {
|
|
@@ -23,6 +23,7 @@ export declare const selectMeta: {
|
|
|
23
23
|
readonly disabled: false;
|
|
24
24
|
readonly readOnly: false;
|
|
25
25
|
readonly invalid: false;
|
|
26
|
+
readonly searchable: false;
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
readonly bindings: {
|
|
@@ -45,6 +46,47 @@ export declare const selectMeta: {
|
|
|
45
46
|
readonly acceptsFallback: true;
|
|
46
47
|
readonly acceptsTransforms: true;
|
|
47
48
|
};
|
|
49
|
+
readonly options: {
|
|
50
|
+
readonly label: "Options";
|
|
51
|
+
readonly description: "Reactive serializable options rendered by the select.";
|
|
52
|
+
readonly value: {
|
|
53
|
+
readonly type: "array";
|
|
54
|
+
readonly itemType: "object";
|
|
55
|
+
readonly fields: readonly [{
|
|
56
|
+
readonly path: "[].value";
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
readonly label: "Value";
|
|
59
|
+
}, {
|
|
60
|
+
readonly path: "[].label";
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly label: "Label";
|
|
63
|
+
}, {
|
|
64
|
+
readonly path: "[].disabled";
|
|
65
|
+
readonly type: "boolean";
|
|
66
|
+
readonly label: "Disabled";
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
readonly acceptsFallback: true;
|
|
70
|
+
readonly acceptsTransforms: true;
|
|
71
|
+
};
|
|
72
|
+
readonly searchValue: {
|
|
73
|
+
readonly label: "Search value";
|
|
74
|
+
readonly description: "Current query for the searchable option list.";
|
|
75
|
+
readonly value: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
};
|
|
78
|
+
readonly acceptsFallback: true;
|
|
79
|
+
readonly acceptsTransforms: true;
|
|
80
|
+
};
|
|
81
|
+
readonly searchable: {
|
|
82
|
+
readonly label: "Searchable";
|
|
83
|
+
readonly description: "Whether the option list exposes a search control.";
|
|
84
|
+
readonly value: {
|
|
85
|
+
readonly type: "boolean";
|
|
86
|
+
};
|
|
87
|
+
readonly acceptsFallback: true;
|
|
88
|
+
readonly acceptsTransforms: true;
|
|
89
|
+
};
|
|
48
90
|
};
|
|
49
91
|
readonly events: {
|
|
50
92
|
readonly valueChange: {
|
|
@@ -59,6 +101,18 @@ export declare const selectMeta: {
|
|
|
59
101
|
}];
|
|
60
102
|
};
|
|
61
103
|
};
|
|
104
|
+
readonly searchChange: {
|
|
105
|
+
readonly label: "Search change";
|
|
106
|
+
readonly description: "Runs when the searchable option query changes.";
|
|
107
|
+
readonly payload: {
|
|
108
|
+
readonly eventType: "select.searchChange";
|
|
109
|
+
readonly fields: readonly [{
|
|
110
|
+
readonly path: "value";
|
|
111
|
+
readonly type: "string";
|
|
112
|
+
readonly label: "Value";
|
|
113
|
+
}];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
62
116
|
};
|
|
63
117
|
};
|
|
64
118
|
readonly events: {
|
|
@@ -72,6 +126,16 @@ export declare const selectMeta: {
|
|
|
72
126
|
readonly label: "Value";
|
|
73
127
|
}];
|
|
74
128
|
};
|
|
129
|
+
readonly searchChange: {
|
|
130
|
+
readonly label: "Search change";
|
|
131
|
+
readonly eventType: "select.searchChange";
|
|
132
|
+
readonly description: "Emitted when the searchable option query changes.";
|
|
133
|
+
readonly payloadFields: readonly [{
|
|
134
|
+
readonly path: "value";
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly label: "Value";
|
|
137
|
+
}];
|
|
138
|
+
};
|
|
75
139
|
};
|
|
76
140
|
readonly props: {
|
|
77
141
|
readonly defaultValue: {
|
|
@@ -129,6 +193,40 @@ export declare const selectMeta: {
|
|
|
129
193
|
readonly authority: "instance";
|
|
130
194
|
};
|
|
131
195
|
};
|
|
196
|
+
readonly searchable: {
|
|
197
|
+
readonly type: "boolean";
|
|
198
|
+
readonly category: "Behavior";
|
|
199
|
+
readonly label: "Searchable";
|
|
200
|
+
readonly default: false;
|
|
201
|
+
readonly authoring: {
|
|
202
|
+
readonly authority: "instance";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
readonly defaultSearchValue: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly category: "State";
|
|
208
|
+
readonly label: "Initial search value";
|
|
209
|
+
readonly authoring: {
|
|
210
|
+
readonly authority: "instance";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly searchValue: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly category: "State";
|
|
216
|
+
readonly label: "Search value";
|
|
217
|
+
readonly authoring: {
|
|
218
|
+
readonly authority: "instance";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly searchPlaceholder: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly category: "Content";
|
|
224
|
+
readonly label: "Search placeholder";
|
|
225
|
+
readonly default: "Search options";
|
|
226
|
+
readonly authoring: {
|
|
227
|
+
readonly authority: "instance";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
132
230
|
readonly label: {
|
|
133
231
|
readonly type: "string";
|
|
134
232
|
readonly category: "Content";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectMeta.d.ts","sourceRoot":"","sources":["../../../../src/features/form/select/selectMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"selectMeta.d.ts","sourceRoot":"","sources":["../../../../src/features/form/select/selectMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Pe,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const selectMeta = {
|
|
2
2
|
name: 'Select',
|
|
3
3
|
category: 'component',
|
|
4
|
-
description: 'Single-value form selection with Popover presentation on web and BottomSheet presentation on native.',
|
|
4
|
+
description: 'Single-value form selection with optional searchable options, Popover presentation on web, and BottomSheet presentation on native.',
|
|
5
5
|
directManifestNode: true,
|
|
6
6
|
allowedChildren: [],
|
|
7
7
|
blueprint: {
|
|
@@ -18,6 +18,7 @@ export const selectMeta = {
|
|
|
18
18
|
disabled: false,
|
|
19
19
|
readOnly: false,
|
|
20
20
|
invalid: false,
|
|
21
|
+
searchable: false,
|
|
21
22
|
},
|
|
22
23
|
},
|
|
23
24
|
bindings: {
|
|
@@ -36,6 +37,35 @@ export const selectMeta = {
|
|
|
36
37
|
acceptsFallback: true,
|
|
37
38
|
acceptsTransforms: true,
|
|
38
39
|
},
|
|
40
|
+
options: {
|
|
41
|
+
label: 'Options',
|
|
42
|
+
description: 'Reactive serializable options rendered by the select.',
|
|
43
|
+
value: {
|
|
44
|
+
type: 'array',
|
|
45
|
+
itemType: 'object',
|
|
46
|
+
fields: [
|
|
47
|
+
{ path: '[].value', type: 'string', label: 'Value' },
|
|
48
|
+
{ path: '[].label', type: 'string', label: 'Label' },
|
|
49
|
+
{ path: '[].disabled', type: 'boolean', label: 'Disabled' },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
acceptsFallback: true,
|
|
53
|
+
acceptsTransforms: true,
|
|
54
|
+
},
|
|
55
|
+
searchValue: {
|
|
56
|
+
label: 'Search value',
|
|
57
|
+
description: 'Current query for the searchable option list.',
|
|
58
|
+
value: { type: 'string' },
|
|
59
|
+
acceptsFallback: true,
|
|
60
|
+
acceptsTransforms: true,
|
|
61
|
+
},
|
|
62
|
+
searchable: {
|
|
63
|
+
label: 'Searchable',
|
|
64
|
+
description: 'Whether the option list exposes a search control.',
|
|
65
|
+
value: { type: 'boolean' },
|
|
66
|
+
acceptsFallback: true,
|
|
67
|
+
acceptsTransforms: true,
|
|
68
|
+
},
|
|
39
69
|
},
|
|
40
70
|
events: {
|
|
41
71
|
valueChange: {
|
|
@@ -46,6 +76,14 @@ export const selectMeta = {
|
|
|
46
76
|
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
47
77
|
},
|
|
48
78
|
},
|
|
79
|
+
searchChange: {
|
|
80
|
+
label: 'Search change',
|
|
81
|
+
description: 'Runs when the searchable option query changes.',
|
|
82
|
+
payload: {
|
|
83
|
+
eventType: 'select.searchChange',
|
|
84
|
+
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
49
87
|
},
|
|
50
88
|
},
|
|
51
89
|
events: {
|
|
@@ -55,6 +93,12 @@ export const selectMeta = {
|
|
|
55
93
|
description: 'Emitted when the selected option value changes.',
|
|
56
94
|
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
57
95
|
},
|
|
96
|
+
searchChange: {
|
|
97
|
+
label: 'Search change',
|
|
98
|
+
eventType: 'select.searchChange',
|
|
99
|
+
description: 'Emitted when the searchable option query changes.',
|
|
100
|
+
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
101
|
+
},
|
|
58
102
|
},
|
|
59
103
|
props: {
|
|
60
104
|
defaultValue: {
|
|
@@ -103,6 +147,32 @@ export const selectMeta = {
|
|
|
103
147
|
],
|
|
104
148
|
authoring: { authority: 'instance' },
|
|
105
149
|
},
|
|
150
|
+
searchable: {
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
category: 'Behavior',
|
|
153
|
+
label: 'Searchable',
|
|
154
|
+
default: false,
|
|
155
|
+
authoring: { authority: 'instance' },
|
|
156
|
+
},
|
|
157
|
+
defaultSearchValue: {
|
|
158
|
+
type: 'string',
|
|
159
|
+
category: 'State',
|
|
160
|
+
label: 'Initial search value',
|
|
161
|
+
authoring: { authority: 'instance' },
|
|
162
|
+
},
|
|
163
|
+
searchValue: {
|
|
164
|
+
type: 'string',
|
|
165
|
+
category: 'State',
|
|
166
|
+
label: 'Search value',
|
|
167
|
+
authoring: { authority: 'instance' },
|
|
168
|
+
},
|
|
169
|
+
searchPlaceholder: {
|
|
170
|
+
type: 'string',
|
|
171
|
+
category: 'Content',
|
|
172
|
+
label: 'Search placeholder',
|
|
173
|
+
default: 'Search options',
|
|
174
|
+
authoring: { authority: 'instance' },
|
|
175
|
+
},
|
|
106
176
|
label: {
|
|
107
177
|
type: 'string',
|
|
108
178
|
category: 'Content',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectMeta.js","sourceRoot":"","sources":["../../../../src/features/form/select/selectMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,WAAW,EACT,sGAAsG;IACxG,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,UAAU;YACxB,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE;gBAC5C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE;gBAC7C,EAAE,KAAK,EAAE,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,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../../types/authoring';\n\nexport const selectMeta = {\n name: 'Select',\n category: 'component',\n description:\n 'Single-value form selection with Popover presentation on web and BottomSheet presentation on native.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Select',\n defaultProps: {\n label: 'Option',\n placeholder: 'Select',\n defaultValue: 'option-b',\n options: [\n { value: 'option-a', label: 'First option' },\n { value: 'option-b', label: 'Second option' },\n { value: 'option-c', label: 'Third option' },\n ],\n disabled: false,\n readOnly: false,\n invalid: false,\n },\n },\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Currently selected option value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the select is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n description: 'Runs when the selected option value changes.',\n payload: {\n eventType: 'select.valueChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n eventType: 'select.valueChange',\n description: 'Emitted when the selected option value changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n props: {\n defaultValue: {\n type: 'string',\n category: 'State',\n label: 'Initial value',\n authoring: { authority: 'instance' },\n },\n value: {\n type: 'string',\n category: 'State',\n label: 'Value',\n authoring: { authority: 'instance' },\n },\n options: {\n type: 'array',\n category: 'Content',\n label: 'Options',\n itemSchema: [\n {\n key: 'value',\n schema: { type: 'string', category: 'Content', label: 'Value' },\n },\n {\n key: 'label',\n schema: { type: 'string', category: 'Content', label: 'Label' },\n },\n {\n key: 'leadingMedia',\n schema: {\n type: 'media',\n category: 'Content',\n label: 'Leading image',\n mediaKinds: ['image'],\n },\n },\n {\n key: 'disabled',\n schema: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n },\n },\n ],\n authoring: { authority: 'instance' },\n },\n label: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n authoring: { authority: 'instance' },\n },\n helperText: {\n type: 'string',\n category: 'Content',\n label: 'Helper text',\n authoring: { authority: 'instance' },\n },\n errorText: {\n type: 'string',\n category: 'Content',\n label: 'Error text',\n authoring: { authority: 'instance' },\n },\n placeholder: {\n type: 'string',\n category: 'Content',\n label: 'Placeholder',\n default: 'Select',\n authoring: { authority: 'instance' },\n },\n leadingIcon: {\n type: 'media',\n category: 'Content',\n label: 'Leading SVG icon',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n leadingMedia: {\n type: 'media',\n category: 'Content',\n label: 'Leading image',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n labelWeight: {\n type: 'string',\n category: 'Style',\n label: 'Label weight',\n enum: ['semiBold', 'bold'],\n default: 'semiBold',\n authoring: { authority: 'instance' },\n },\n required: {\n type: 'boolean',\n category: 'State',\n label: 'Required',\n default: false,\n authoring: { authority: 'instance' },\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n authoring: { authority: 'instance' },\n },\n readOnly: {\n type: 'boolean',\n category: 'State',\n label: 'Read only',\n default: false,\n authoring: { authority: 'instance' },\n },\n invalid: {\n type: 'boolean',\n category: 'State',\n label: 'Invalid',\n default: false,\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
1
|
+
{"version":3,"file":"selectMeta.js","sourceRoot":"","sources":["../../../../src/features/form/select/selectMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CA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E;SACrC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../../types/authoring';\n\nexport const selectMeta = {\n name: 'Select',\n category: 'component',\n description:\n 'Single-value form selection with optional searchable options, Popover presentation on web, and BottomSheet presentation on native.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Select',\n defaultProps: {\n label: 'Option',\n placeholder: 'Select',\n defaultValue: 'option-b',\n options: [\n { value: 'option-a', label: 'First option' },\n { value: 'option-b', label: 'Second option' },\n { value: 'option-c', label: 'Third option' },\n ],\n disabled: false,\n readOnly: false,\n invalid: false,\n searchable: false,\n },\n },\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Currently selected option value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the select is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n options: {\n label: 'Options',\n description: 'Reactive serializable options rendered by the select.',\n value: {\n type: 'array',\n itemType: 'object',\n fields: [\n { path: '[].value', type: 'string', label: 'Value' },\n { path: '[].label', type: 'string', label: 'Label' },\n { path: '[].disabled', type: 'boolean', label: 'Disabled' },\n ],\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchValue: {\n label: 'Search value',\n description: 'Current query for the searchable option list.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchable: {\n label: 'Searchable',\n description: 'Whether the option list exposes a search control.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n description: 'Runs when the selected option value changes.',\n payload: {\n eventType: 'select.valueChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n searchChange: {\n label: 'Search change',\n description: 'Runs when the searchable option query changes.',\n payload: {\n eventType: 'select.searchChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n eventType: 'select.valueChange',\n description: 'Emitted when the selected option value changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n searchChange: {\n label: 'Search change',\n eventType: 'select.searchChange',\n description: 'Emitted when the searchable option query changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n props: {\n defaultValue: {\n type: 'string',\n category: 'State',\n label: 'Initial value',\n authoring: { authority: 'instance' },\n },\n value: {\n type: 'string',\n category: 'State',\n label: 'Value',\n authoring: { authority: 'instance' },\n },\n options: {\n type: 'array',\n category: 'Content',\n label: 'Options',\n itemSchema: [\n {\n key: 'value',\n schema: { type: 'string', category: 'Content', label: 'Value' },\n },\n {\n key: 'label',\n schema: { type: 'string', category: 'Content', label: 'Label' },\n },\n {\n key: 'leadingMedia',\n schema: {\n type: 'media',\n category: 'Content',\n label: 'Leading image',\n mediaKinds: ['image'],\n },\n },\n {\n key: 'disabled',\n schema: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n },\n },\n ],\n authoring: { authority: 'instance' },\n },\n searchable: {\n type: 'boolean',\n category: 'Behavior',\n label: 'Searchable',\n default: false,\n authoring: { authority: 'instance' },\n },\n defaultSearchValue: {\n type: 'string',\n category: 'State',\n label: 'Initial search value',\n authoring: { authority: 'instance' },\n },\n searchValue: {\n type: 'string',\n category: 'State',\n label: 'Search value',\n authoring: { authority: 'instance' },\n },\n searchPlaceholder: {\n type: 'string',\n category: 'Content',\n label: 'Search placeholder',\n default: 'Search options',\n authoring: { authority: 'instance' },\n },\n label: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n authoring: { authority: 'instance' },\n },\n helperText: {\n type: 'string',\n category: 'Content',\n label: 'Helper text',\n authoring: { authority: 'instance' },\n },\n errorText: {\n type: 'string',\n category: 'Content',\n label: 'Error text',\n authoring: { authority: 'instance' },\n },\n placeholder: {\n type: 'string',\n category: 'Content',\n label: 'Placeholder',\n default: 'Select',\n authoring: { authority: 'instance' },\n },\n leadingIcon: {\n type: 'media',\n category: 'Content',\n label: 'Leading SVG icon',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n leadingMedia: {\n type: 'media',\n category: 'Content',\n label: 'Leading image',\n mediaKinds: ['image'],\n authoring: { authority: 'instance' },\n },\n labelWeight: {\n type: 'string',\n category: 'Style',\n label: 'Label weight',\n enum: ['semiBold', 'bold'],\n default: 'semiBold',\n authoring: { authority: 'instance' },\n },\n required: {\n type: 'boolean',\n category: 'State',\n label: 'Required',\n default: false,\n authoring: { authority: 'instance' },\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n authoring: { authority: 'instance' },\n },\n readOnly: {\n type: 'boolean',\n category: 'State',\n label: 'Read only',\n default: false,\n authoring: { authority: 'instance' },\n },\n invalid: {\n type: 'boolean',\n category: 'State',\n label: 'Invalid',\n default: false,\n authoring: { authority: 'instance' },\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -281,7 +281,7 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
281
281
|
readonly Select: {
|
|
282
282
|
readonly name: "Select";
|
|
283
283
|
readonly category: "component";
|
|
284
|
-
readonly description: "Captures one selected string value.";
|
|
284
|
+
readonly description: "Captures one selected string value with optional searchable options.";
|
|
285
285
|
readonly directManifestNode: true;
|
|
286
286
|
readonly allowedChildren: readonly [];
|
|
287
287
|
readonly bindings: {
|
|
@@ -304,6 +304,47 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
304
304
|
readonly acceptsFallback: true;
|
|
305
305
|
readonly acceptsTransforms: true;
|
|
306
306
|
};
|
|
307
|
+
readonly options: {
|
|
308
|
+
readonly label: "Options";
|
|
309
|
+
readonly description: "Reactive serializable options rendered by the select.";
|
|
310
|
+
readonly value: {
|
|
311
|
+
readonly type: "array";
|
|
312
|
+
readonly itemType: "object";
|
|
313
|
+
readonly fields: readonly [{
|
|
314
|
+
readonly path: "[].value";
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
readonly label: "Value";
|
|
317
|
+
}, {
|
|
318
|
+
readonly path: "[].label";
|
|
319
|
+
readonly type: "string";
|
|
320
|
+
readonly label: "Label";
|
|
321
|
+
}, {
|
|
322
|
+
readonly path: "[].disabled";
|
|
323
|
+
readonly type: "boolean";
|
|
324
|
+
readonly label: "Disabled";
|
|
325
|
+
}];
|
|
326
|
+
};
|
|
327
|
+
readonly acceptsFallback: true;
|
|
328
|
+
readonly acceptsTransforms: true;
|
|
329
|
+
};
|
|
330
|
+
readonly searchValue: {
|
|
331
|
+
readonly label: "Search value";
|
|
332
|
+
readonly description: "Current query for the searchable option list.";
|
|
333
|
+
readonly value: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
};
|
|
336
|
+
readonly acceptsFallback: true;
|
|
337
|
+
readonly acceptsTransforms: true;
|
|
338
|
+
};
|
|
339
|
+
readonly searchable: {
|
|
340
|
+
readonly label: "Searchable";
|
|
341
|
+
readonly description: "Whether the option list exposes a search control.";
|
|
342
|
+
readonly value: {
|
|
343
|
+
readonly type: "boolean";
|
|
344
|
+
};
|
|
345
|
+
readonly acceptsFallback: true;
|
|
346
|
+
readonly acceptsTransforms: true;
|
|
347
|
+
};
|
|
307
348
|
};
|
|
308
349
|
readonly events: {
|
|
309
350
|
readonly valueChange: {
|
|
@@ -318,6 +359,18 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
318
359
|
}];
|
|
319
360
|
};
|
|
320
361
|
};
|
|
362
|
+
readonly searchChange: {
|
|
363
|
+
readonly label: "Search change";
|
|
364
|
+
readonly description: "Runs when the searchable option query changes.";
|
|
365
|
+
readonly payload: {
|
|
366
|
+
readonly eventType: "select.searchChange";
|
|
367
|
+
readonly fields: readonly [{
|
|
368
|
+
readonly path: "value";
|
|
369
|
+
readonly type: "string";
|
|
370
|
+
readonly label: "Value";
|
|
371
|
+
}];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
321
374
|
};
|
|
322
375
|
};
|
|
323
376
|
readonly events: {
|
|
@@ -331,6 +384,16 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
331
384
|
readonly label: "Value";
|
|
332
385
|
}];
|
|
333
386
|
};
|
|
387
|
+
readonly searchChange: {
|
|
388
|
+
readonly label: "Search change";
|
|
389
|
+
readonly eventType: "select.searchChange";
|
|
390
|
+
readonly description: "Emitted when the searchable option query changes.";
|
|
391
|
+
readonly payloadFields: readonly [{
|
|
392
|
+
readonly path: "value";
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly label: "Value";
|
|
395
|
+
}];
|
|
396
|
+
};
|
|
334
397
|
};
|
|
335
398
|
readonly props: {
|
|
336
399
|
readonly inverted: {
|
|
@@ -351,6 +414,21 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
351
414
|
readonly category: "State";
|
|
352
415
|
readonly label: "Disabled";
|
|
353
416
|
};
|
|
417
|
+
readonly options: {
|
|
418
|
+
readonly type: "array";
|
|
419
|
+
readonly category: "Content";
|
|
420
|
+
readonly label: "Options";
|
|
421
|
+
};
|
|
422
|
+
readonly searchable: {
|
|
423
|
+
readonly type: "boolean";
|
|
424
|
+
readonly category: "Behavior";
|
|
425
|
+
readonly label: "Searchable";
|
|
426
|
+
};
|
|
427
|
+
readonly searchValue: {
|
|
428
|
+
readonly type: "string";
|
|
429
|
+
readonly category: "State";
|
|
430
|
+
readonly label: "Search value";
|
|
431
|
+
};
|
|
354
432
|
};
|
|
355
433
|
};
|
|
356
434
|
readonly Checkbox: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindableComponentMeta.d.ts","sourceRoot":"","sources":["../../../src/features/registry/bindableComponentMeta.ts"],"names":[],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAihBG,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,4BAA4B,CAAC"}
|
|
@@ -174,7 +174,7 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
174
174
|
Select: {
|
|
175
175
|
name: 'Select',
|
|
176
176
|
category: 'component',
|
|
177
|
-
description: 'Captures one selected string value.',
|
|
177
|
+
description: 'Captures one selected string value with optional searchable options.',
|
|
178
178
|
directManifestNode: true,
|
|
179
179
|
allowedChildren: [],
|
|
180
180
|
bindings: {
|
|
@@ -193,6 +193,35 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
193
193
|
acceptsFallback: true,
|
|
194
194
|
acceptsTransforms: true,
|
|
195
195
|
},
|
|
196
|
+
options: {
|
|
197
|
+
label: 'Options',
|
|
198
|
+
description: 'Reactive serializable options rendered by the select.',
|
|
199
|
+
value: {
|
|
200
|
+
type: 'array',
|
|
201
|
+
itemType: 'object',
|
|
202
|
+
fields: [
|
|
203
|
+
{ path: '[].value', type: 'string', label: 'Value' },
|
|
204
|
+
{ path: '[].label', type: 'string', label: 'Label' },
|
|
205
|
+
{ path: '[].disabled', type: 'boolean', label: 'Disabled' },
|
|
206
|
+
],
|
|
207
|
+
},
|
|
208
|
+
acceptsFallback: true,
|
|
209
|
+
acceptsTransforms: true,
|
|
210
|
+
},
|
|
211
|
+
searchValue: {
|
|
212
|
+
label: 'Search value',
|
|
213
|
+
description: 'Current query for the searchable option list.',
|
|
214
|
+
value: { type: 'string' },
|
|
215
|
+
acceptsFallback: true,
|
|
216
|
+
acceptsTransforms: true,
|
|
217
|
+
},
|
|
218
|
+
searchable: {
|
|
219
|
+
label: 'Searchable',
|
|
220
|
+
description: 'Whether the option list exposes a search control.',
|
|
221
|
+
value: { type: 'boolean' },
|
|
222
|
+
acceptsFallback: true,
|
|
223
|
+
acceptsTransforms: true,
|
|
224
|
+
},
|
|
196
225
|
},
|
|
197
226
|
events: {
|
|
198
227
|
valueChange: {
|
|
@@ -203,6 +232,14 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
203
232
|
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
204
233
|
},
|
|
205
234
|
},
|
|
235
|
+
searchChange: {
|
|
236
|
+
label: 'Search change',
|
|
237
|
+
description: 'Runs when the searchable option query changes.',
|
|
238
|
+
payload: {
|
|
239
|
+
eventType: 'select.searchChange',
|
|
240
|
+
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
206
243
|
},
|
|
207
244
|
},
|
|
208
245
|
events: {
|
|
@@ -212,6 +249,12 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
212
249
|
description: 'Emitted when the selected value changes.',
|
|
213
250
|
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
214
251
|
},
|
|
252
|
+
searchChange: {
|
|
253
|
+
label: 'Search change',
|
|
254
|
+
eventType: 'select.searchChange',
|
|
255
|
+
description: 'Emitted when the searchable option query changes.',
|
|
256
|
+
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
257
|
+
},
|
|
215
258
|
},
|
|
216
259
|
props: {
|
|
217
260
|
inverted: INVERTED_POLARITY_PROP,
|
|
@@ -225,6 +268,21 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
225
268
|
category: 'State',
|
|
226
269
|
label: 'Disabled',
|
|
227
270
|
},
|
|
271
|
+
options: {
|
|
272
|
+
type: 'array',
|
|
273
|
+
category: 'Content',
|
|
274
|
+
label: 'Options',
|
|
275
|
+
},
|
|
276
|
+
searchable: {
|
|
277
|
+
type: 'boolean',
|
|
278
|
+
category: 'Behavior',
|
|
279
|
+
label: 'Searchable',
|
|
280
|
+
},
|
|
281
|
+
searchValue: {
|
|
282
|
+
type: 'string',
|
|
283
|
+
category: 'State',
|
|
284
|
+
label: 'Search value',
|
|
285
|
+
},
|
|
228
286
|
},
|
|
229
287
|
},
|
|
230
288
|
Checkbox: {
|