@wix/editor-react-components 1.2254.0 → 1.2255.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/dist/site/components/AccordionComponent/component.js +4 -81
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +1 -1
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/site/components/Dropdown/Dropdown.types.d.ts +91 -0
- package/dist/site/components/Dropdown/component.d.ts +2 -0
- package/dist/site/components/Dropdown/component.js +31100 -0
- package/dist/site/components/Dropdown/component.preview.d.ts +4 -0
- package/dist/site/components/Dropdown/components/DropdownChips.d.ts +7 -0
- package/dist/site/components/Dropdown/components/DropdownList.d.ts +17 -0
- package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +18 -0
- package/dist/site/components/Dropdown/constants.d.ts +140 -0
- package/dist/site/components/Dropdown/css.css +255 -0
- package/dist/site/components/Dropdown/dropdownUtils.d.ts +24 -0
- package/dist/site/components/Dropdown/hooks/useChipOverflow.d.ts +9 -0
- package/dist/site/components/Dropdown/hooks/useDropdownQuery.d.ts +15 -0
- package/dist/site/components/Dropdown/hooks/useDropdownSelection.d.ts +16 -0
- package/dist/site/components/Dropdown/index.d.ts +2 -0
- package/dist/site/components/Dropdown/index.js +6 -0
- package/dist/site/components/Dropdown/manifest.d.ts +5 -0
- package/dist/site/components/Dropdown/manifest.js +418 -0
- package/dist/site/components/Line/manifest.js +3 -39
- package/dist/site/components/chunks/_baseSlice.js +43 -0
- package/dist/site/components/chunks/constants29.js +114 -46
- package/dist/site/components/chunks/constants30.js +53 -71
- package/dist/site/components/chunks/constants31.js +73 -77
- package/dist/site/components/chunks/constants32.js +76 -57
- package/dist/site/components/chunks/constants33.js +72 -0
- package/dist/site/components/chunks/isArray.js +12 -0
- package/dist/site/components/chunks/isArrayLike.js +88 -0
- package/dist/site/components/chunks/isObjectLike.js +5 -15
- package/dist/site/components/chunks/manifestSdkMixins.js +13 -0
- package/dist/site/components/chunks/useConsentPolicyProps.js +5 -5
- package/dist/site/components/extensions.js +51 -46
- package/package.json +3 -2
|
@@ -5,21 +5,11 @@ import "react-dom";
|
|
|
5
5
|
import { c as clsx } from "../chunks/clsx.js";
|
|
6
6
|
import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
|
|
7
7
|
import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { a as requireEq, d as requireIsFunction, r as requireIsObject, e as requireIsLength, c as require_isIndex, b as requireIsArrayLike } from "../chunks/isArrayLike.js";
|
|
9
|
+
import { c as require_root, r as require_Symbol, a as require_baseGetTag, b as requireIsObjectLike, d as require_freeGlobal } from "../chunks/isObjectLike.js";
|
|
10
|
+
import { r as requireIsArray } from "../chunks/isArray.js";
|
|
11
|
+
import { D as DEFAULT_PROPS } from "../chunks/constants33.js";
|
|
10
12
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
11
|
-
var isObject_1;
|
|
12
|
-
var hasRequiredIsObject;
|
|
13
|
-
function requireIsObject() {
|
|
14
|
-
if (hasRequiredIsObject) return isObject_1;
|
|
15
|
-
hasRequiredIsObject = 1;
|
|
16
|
-
function isObject(value) {
|
|
17
|
-
var type = typeof value;
|
|
18
|
-
return value != null && (type == "object" || type == "function");
|
|
19
|
-
}
|
|
20
|
-
isObject_1 = isObject;
|
|
21
|
-
return isObject_1;
|
|
22
|
-
}
|
|
23
13
|
var _overArg;
|
|
24
14
|
var hasRequired_overArg;
|
|
25
15
|
function require_overArg() {
|
|
@@ -476,17 +466,6 @@ function require_listCacheClear() {
|
|
|
476
466
|
_listCacheClear = listCacheClear;
|
|
477
467
|
return _listCacheClear;
|
|
478
468
|
}
|
|
479
|
-
var eq_1;
|
|
480
|
-
var hasRequiredEq;
|
|
481
|
-
function requireEq() {
|
|
482
|
-
if (hasRequiredEq) return eq_1;
|
|
483
|
-
hasRequiredEq = 1;
|
|
484
|
-
function eq(value, other) {
|
|
485
|
-
return value === other || value !== value && other !== other;
|
|
486
|
-
}
|
|
487
|
-
eq_1 = eq;
|
|
488
|
-
return eq_1;
|
|
489
|
-
}
|
|
490
469
|
var _assocIndexOf;
|
|
491
470
|
var hasRequired_assocIndexOf;
|
|
492
471
|
function require_assocIndexOf() {
|
|
@@ -644,23 +623,6 @@ function require_stackHas() {
|
|
|
644
623
|
_stackHas = stackHas;
|
|
645
624
|
return _stackHas;
|
|
646
625
|
}
|
|
647
|
-
var isFunction_1;
|
|
648
|
-
var hasRequiredIsFunction;
|
|
649
|
-
function requireIsFunction() {
|
|
650
|
-
if (hasRequiredIsFunction) return isFunction_1;
|
|
651
|
-
hasRequiredIsFunction = 1;
|
|
652
|
-
var baseGetTag = require_baseGetTag(), isObject = requireIsObject();
|
|
653
|
-
var asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
654
|
-
function isFunction2(value) {
|
|
655
|
-
if (!isObject(value)) {
|
|
656
|
-
return false;
|
|
657
|
-
}
|
|
658
|
-
var tag = baseGetTag(value);
|
|
659
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
660
|
-
}
|
|
661
|
-
isFunction_1 = isFunction2;
|
|
662
|
-
return isFunction_1;
|
|
663
|
-
}
|
|
664
626
|
var _coreJsData;
|
|
665
627
|
var hasRequired_coreJsData;
|
|
666
628
|
function require_coreJsData() {
|
|
@@ -1396,33 +1358,6 @@ function requireIsBuffer() {
|
|
|
1396
1358
|
})(isBuffer, isBuffer.exports);
|
|
1397
1359
|
return isBuffer.exports;
|
|
1398
1360
|
}
|
|
1399
|
-
var _isIndex;
|
|
1400
|
-
var hasRequired_isIndex;
|
|
1401
|
-
function require_isIndex() {
|
|
1402
|
-
if (hasRequired_isIndex) return _isIndex;
|
|
1403
|
-
hasRequired_isIndex = 1;
|
|
1404
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1405
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1406
|
-
function isIndex(value, length) {
|
|
1407
|
-
var type = typeof value;
|
|
1408
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1409
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1410
|
-
}
|
|
1411
|
-
_isIndex = isIndex;
|
|
1412
|
-
return _isIndex;
|
|
1413
|
-
}
|
|
1414
|
-
var isLength_1;
|
|
1415
|
-
var hasRequiredIsLength;
|
|
1416
|
-
function requireIsLength() {
|
|
1417
|
-
if (hasRequiredIsLength) return isLength_1;
|
|
1418
|
-
hasRequiredIsLength = 1;
|
|
1419
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1420
|
-
function isLength(value) {
|
|
1421
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1422
|
-
}
|
|
1423
|
-
isLength_1 = isLength;
|
|
1424
|
-
return isLength_1;
|
|
1425
|
-
}
|
|
1426
1361
|
var _baseIsTypedArray;
|
|
1427
1362
|
var hasRequired_baseIsTypedArray;
|
|
1428
1363
|
function require_baseIsTypedArray() {
|
|
@@ -1560,18 +1495,6 @@ function require_baseKeys() {
|
|
|
1560
1495
|
_baseKeys = baseKeys;
|
|
1561
1496
|
return _baseKeys;
|
|
1562
1497
|
}
|
|
1563
|
-
var isArrayLike_1;
|
|
1564
|
-
var hasRequiredIsArrayLike;
|
|
1565
|
-
function requireIsArrayLike() {
|
|
1566
|
-
if (hasRequiredIsArrayLike) return isArrayLike_1;
|
|
1567
|
-
hasRequiredIsArrayLike = 1;
|
|
1568
|
-
var isFunction2 = requireIsFunction(), isLength = requireIsLength();
|
|
1569
|
-
function isArrayLike(value) {
|
|
1570
|
-
return value != null && isLength(value.length) && !isFunction2(value);
|
|
1571
|
-
}
|
|
1572
|
-
isArrayLike_1 = isArrayLike;
|
|
1573
|
-
return isArrayLike_1;
|
|
1574
|
-
}
|
|
1575
1498
|
var keys_1;
|
|
1576
1499
|
var hasRequiredKeys;
|
|
1577
1500
|
function requireKeys() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, a as ACTIONS, E as ELEMENTS, N as NativeStateType, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
-
import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/
|
|
2
|
+
import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants33.js";
|
|
3
3
|
import { m as manifestFocusable, a as manifestMouseHover, b as manifestClickable } from "../chunks/manifestSdkMixins.js";
|
|
4
4
|
import { w as withSpec } from "../chunks/manifest.js";
|
|
5
5
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
@@ -15,7 +15,7 @@ import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
|
15
15
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
16
16
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
17
17
|
import Image3 from "../Image3/component.js";
|
|
18
|
-
import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/
|
|
18
|
+
import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants32.js";
|
|
19
19
|
import { c as commonjsGlobal } from "../chunks/_commonjsHelpers.js";
|
|
20
20
|
import { $ as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f, a as $f39a9eba43920ace$export$86427a43e3e48ebb, b as $64fa3d84918910a7$export$29f1550f4b0d4415, c as $64fa3d84918910a7$export$4d86445c2cf5e3, g as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, h as $64fa3d84918910a7$export$2881499e37b75b9a, d as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../chunks/filterDOMProps.js";
|
|
21
21
|
import { o as $2add3ce32c6007eb$export$fedb369cb70207f1, p as $d447af545b77c9f1$export$b204af158042fbac, q as $081cb5757e08788e$export$24490316f764c430, r as $d447af545b77c9f1$export$f21a1ffae260145a, s as $48a7d519b337145d$export$4eaf04e54aa8eed6, a as $fe16bffc7a557bf0$export$7f54fc3180508a52, t as $a92dc41f639950be$export$c2b7abe5d61ec696, u as $a92dc41f639950be$export$525bc4921d56d4a, v as $23f2114a1b82827e$export$4282f70798064fe0, c as $23f2114a1b82827e$export$e58f029f0fbfdb29, w as $b5c62b033c25b96d$export$29bf1b5f2c56cf63, x as $a92dc41f639950be$export$cabe61c495ee3649, y as $1969ac565cfec8d0$export$de79e2c695e052f3, z as $b5c62b033c25b96d$export$60278871457622de, f as $bbaa08b3cd72f041$export$9d1611c77c2fe928, A as $b7115c395c64f7b5$export$4debdb1a3f0fa79e, B as $caaf0dd3060ed57c$export$95185d699e05d4d7, C as $a4e76a5424781910$export$e08e3b67e392101e, D as $2add3ce32c6007eb$export$9ac100e40613ea10, h as $d1116acdf220c2da$export$4c014de7c8940b4c, E as $2c9edc598a03d523$export$420e68273165f4ec, d as $0beb20c9744a2065$export$8467354a121f1b9f, b as $8f5a2122b0992be3$export$8397ddfc504fdb9a, F as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, i as $3274bf1495747a7b$export$5add1d006293d136, k as $0c4a58759813079a$export$4e328f61c538687f, j as $e969f22b6713ca4a$export$ae780daf29e6d456, G as $390e54f620492c70$export$f680877a34711e37, g as $3e6197669829fe11$export$40bfa8c7b0832715, l as $01b77f81d0f07f68$export$75b6ee27786ba447, H as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../chunks/Group.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as DISPLAY_GROUPS, N as NativeStateType, C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
2
|
import { a as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
3
|
-
import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/
|
|
3
|
+
import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants32.js";
|
|
4
4
|
import manifest$1 from "../Image3/manifest.js";
|
|
5
5
|
import { w as withSpec } from "../chunks/manifest.js";
|
|
6
6
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
@@ -6,7 +6,7 @@ import { $ as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "../chunks/I18nPr
|
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
8
8
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
9
|
-
import { s as semanticClassNames } from "../chunks/
|
|
9
|
+
import { s as semanticClassNames } from "../chunks/constants31.js";
|
|
10
10
|
import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
|
|
11
11
|
import { useService } from "@wix/services-manager-react";
|
|
12
12
|
import { d as defineService } from "../chunks/index7.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, E as ELEMENTS, N as NativeStateType, D as DATA, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
2
|
import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
|
|
3
3
|
import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
|
|
4
|
-
import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/
|
|
4
|
+
import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/constants31.js";
|
|
5
5
|
import { a as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
|
|
6
6
|
const manifest = {
|
|
7
7
|
id: componentMetadata.id,
|
|
@@ -9,7 +9,7 @@ import { e as getTabIndexAttribute } from "../chunks/a11y.js";
|
|
|
9
9
|
import { a as getDataAttributes } from "../chunks/dataUtils.js";
|
|
10
10
|
import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
|
|
11
11
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
12
|
-
import { L as LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE, F as FALLBACK_LINE_HEIGHT, m as manifestClasses, E as ExpandModeValues, T as TestIds, s as semanticClassNames } from "../chunks/
|
|
12
|
+
import { L as LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE, F as FALLBACK_LINE_HEIGHT, m as manifestClasses, E as ExpandModeValues, T as TestIds, s as semanticClassNames } from "../chunks/constants30.js";
|
|
13
13
|
import { B as Button } from "../chunks/Button.js";
|
|
14
14
|
const root = "root__kOEn9";
|
|
15
15
|
const text = "text__rjuUh";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
|
|
2
|
-
import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/
|
|
2
|
+
import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants30.js";
|
|
3
3
|
import { g as getSelector } from "../chunks/manifest.js";
|
|
4
4
|
import { a as manifestMouseHover, b as manifestClickable } from "../chunks/manifestSdkMixins.js";
|
|
5
5
|
const manifest = {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { A11y, Direction } from '@wix/editor-react-types';
|
|
2
|
+
import { SdkFunctionChangeableProps, SdkFunctionFocusableProps, SdkFunctionInputableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
|
|
3
|
+
export type DropdownOption = {
|
|
4
|
+
/** Text shown to the visitor in the list. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Underlying value emitted when the option is selected. */
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
/** When the filter value is committed: immediately on pick, or only on an Apply click. */
|
|
10
|
+
export type DropdownTriggerMode = 'onSelection' | 'onApply';
|
|
11
|
+
/** Multi-select `value` item; a bare `string[]` is also accepted on read. */
|
|
12
|
+
export type DropdownValueItem = {
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
15
|
+
/** Match rule for searchable mode; defaults to case-insensitive "contains". */
|
|
16
|
+
export type DropdownFilter = (item: DropdownOption, query: string) => boolean;
|
|
17
|
+
export type DropdownProps = Omit<SdkFunctionChangeableProps, 'onChange'> & SdkFunctionFocusableProps & Omit<SdkFunctionInputableProps, 'onInput'> & {
|
|
18
|
+
/** DOM `id` on the root `.dropdown` wrapper. */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Appended to the root `.dropdown`. Use this for CSS-variable and per-element overrides. */
|
|
21
|
+
className: string;
|
|
22
|
+
/** The selectable options (static from the editor or from a bound data source). */
|
|
23
|
+
options: Array<DropdownOption>;
|
|
24
|
+
/** Single-select selection: a value string (empty = cleared). */
|
|
25
|
+
value: string;
|
|
26
|
+
/**
|
|
27
|
+
* Multi-select selection (`multiple: true`): an array of `{ value }` items
|
|
28
|
+
* (a bare `string[]` is also accepted on read).
|
|
29
|
+
*/
|
|
30
|
+
values?: Array<string> | Array<DropdownValueItem>;
|
|
31
|
+
/** Bindable filter for searchable mode; defaults to case-insensitive "contains". */
|
|
32
|
+
filter?: DropdownFilter;
|
|
33
|
+
/** Live typed search query, separate from `value`; two-way bindable via `onInput`. */
|
|
34
|
+
inputValue?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Fires with the new selection so the bound field's setter stores it: a
|
|
37
|
+
* value string (single-select) or `{ value }[]` (multi-select). The value
|
|
38
|
+
* is passed plainly (not a DOM change event) — the binding wires
|
|
39
|
+
* `onChange → <field>.setValue`.
|
|
40
|
+
*/
|
|
41
|
+
onChange?: (value: string | Array<DropdownValueItem>) => void;
|
|
42
|
+
/** Fires with the new typed query string (bound via `onInput → <field>.setValue`). */
|
|
43
|
+
onInput?: (value: string) => void;
|
|
44
|
+
/** Text shown on the trigger when nothing is selected. */
|
|
45
|
+
placeholder: string;
|
|
46
|
+
/** Field label shown above the control and associated with it for assistive tech. */
|
|
47
|
+
label: string;
|
|
48
|
+
/** When `true`, renders a searchable Combobox (type to filter) instead of the plain Select. */
|
|
49
|
+
searchable: boolean;
|
|
50
|
+
/** When `true`, allows selecting multiple options (rendered as chips); `value` becomes an array. */
|
|
51
|
+
multiple: boolean;
|
|
52
|
+
/** When `true`, shows a clear (×) control that resets the selection to empty. */
|
|
53
|
+
clearable: boolean;
|
|
54
|
+
/** When `true`, auto-highlights the first matching option while typing (searchable mode). */
|
|
55
|
+
autoHighlight: boolean;
|
|
56
|
+
/** When `true`, opens the option list when the input is clicked (searchable mode). */
|
|
57
|
+
openOnInputClick: boolean;
|
|
58
|
+
/** When `true`, renders the option list inline (always visible) instead of in a popup. */
|
|
59
|
+
inline: boolean;
|
|
60
|
+
/** When `true`, lays the option list out as a multi-column grid with 2D arrow-key navigation. */
|
|
61
|
+
grid: boolean;
|
|
62
|
+
/** Number of columns when `grid` is enabled (values ≤ 1 render a single column). */
|
|
63
|
+
columns: number;
|
|
64
|
+
/** Max number of options shown at once; `-1` (or any value ≤ 0) means unlimited. Bindable. */
|
|
65
|
+
limit: number;
|
|
66
|
+
/** Forces a selection before the surrounding form can submit. */
|
|
67
|
+
required: boolean;
|
|
68
|
+
/** Shows the current selection but blocks editing it. */
|
|
69
|
+
readOnly: boolean;
|
|
70
|
+
/** Form field name used on submit. */
|
|
71
|
+
name: string;
|
|
72
|
+
/** Helper text shown under the field (and as the field's accessible description). */
|
|
73
|
+
description: string;
|
|
74
|
+
/** `'onSelection'` commits on pick; `'onApply'` commits only when the Apply button is clicked. */
|
|
75
|
+
triggerMode: DropdownTriggerMode;
|
|
76
|
+
/** Label for the Apply button. Used only when `triggerMode='onApply'`. */
|
|
77
|
+
applyButtonLabel: string;
|
|
78
|
+
/** Disables interaction with the dropdown. */
|
|
79
|
+
isDisabled?: boolean;
|
|
80
|
+
/** Controls whether the option list is open. No effect in `inline` mode. */
|
|
81
|
+
open?: boolean;
|
|
82
|
+
/** Writing direction applied to the root. */
|
|
83
|
+
direction?: Direction;
|
|
84
|
+
/** Accessibility attributes. `ariaLabel` labels the dropdown for assistive tech. */
|
|
85
|
+
a11y?: A11y;
|
|
86
|
+
/** Platform-provided props. */
|
|
87
|
+
wix?: {
|
|
88
|
+
/** Spread on the preset wrapper. */
|
|
89
|
+
presetsWrapperProps?: Record<string, unknown>;
|
|
90
|
+
};
|
|
91
|
+
};
|