@wix/editor-react-components 1.2764.0 → 1.2766.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 +80 -3
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +4 -3
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +2 -2
- package/dist/site/components/Breadcrumbs/component.js +3 -3
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Button/component.js +1 -1
- package/dist/site/components/Button/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +3 -4
- package/dist/site/components/CheckboxGroup/component.js +3 -4
- package/dist/site/components/CollapsibleText/component.js +2 -2
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +7 -7
- package/dist/site/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/site/components/Dropdown/Dropdown.types.d.ts +22 -89
- package/dist/site/components/Dropdown/component.js +205 -873
- package/dist/site/components/Dropdown/constants.d.ts +26 -168
- package/dist/site/components/Dropdown/css.css +52 -462
- package/dist/site/components/Dropdown/manifest.js +338 -441
- package/dist/site/components/GoogleMap/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/manifest.js +1 -1
- package/dist/site/components/HeadingTextBlock/component.js +2 -2
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/Image3/component.js +1 -1
- package/dist/site/components/ImageReveal/component.js +2 -2
- package/dist/site/components/LegacyAppWidget/component.js +1 -1
- package/dist/site/components/LegacyContainer/component.js +1 -1
- package/dist/site/components/LegacyMultiStateBox/component.js +2 -2
- package/dist/site/components/Line/component.js +1 -1
- package/dist/site/components/Line/manifest.js +39 -3
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/component.js +1 -1
- package/dist/site/components/Menu/component.js +3 -3
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/RadioButtons/component.js +3 -4
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/ShareButtons/manifest.js +1 -1
- package/dist/site/components/Slideshow/component.js +1 -1
- package/dist/site/components/Slideshow/manifest.js +1 -1
- package/dist/site/components/Tabs/manifest.js +1 -1
- package/dist/site/components/TestComp/manifest.js +1 -1
- package/dist/site/components/TextBox/component.js +2 -3
- package/dist/site/components/TextEffects3d/component.js +1 -1
- package/dist/site/components/TextEffectsBauhaus/component.js +1 -1
- package/dist/site/components/TextEffectsGlass/component.js +1 -1
- package/dist/site/components/TextEffectsGlitch/component.js +1 -1
- package/dist/site/components/TextEffectsLetterPress/component.js +1 -1
- package/dist/site/components/TextEffectsMatrix/component.js +1 -1
- package/dist/site/components/TextEffectsNeonSign/component.js +1 -1
- package/dist/site/components/TextEffectsNoisy/component.js +1 -1
- package/dist/site/components/TextEffectsOutlineOut/component.js +1 -1
- package/dist/site/components/TextEffectsRetro/component.js +1 -1
- package/dist/site/components/TextEffectsShook/component.js +1 -1
- package/dist/site/components/TextEffectsSticker/component.js +1 -1
- package/dist/site/components/TextEffectsStriped/component.js +1 -1
- package/dist/site/components/TextInput/TextInput.d.ts +3 -7
- package/dist/site/components/TextInput/TextInput.types.d.ts +38 -105
- package/dist/site/components/TextInput/component.js +104 -780
- package/dist/site/components/TextInput/component.preview.d.ts +1 -4
- package/dist/site/components/TextInput/constants.d.ts +17 -65
- package/dist/site/components/TextInput/css.css +25 -223
- package/dist/site/components/TextInput/manifest.js +181 -367
- package/dist/site/components/TimePicker/component.js +7 -8
- package/dist/site/components/chunks/AnimatedIcon.js +1 -1
- package/dist/site/components/chunks/Button.js +1055 -466
- package/dist/site/components/chunks/Button2.js +486 -0
- package/dist/site/components/chunks/DismissSmall.js +7727 -1
- package/dist/site/components/chunks/Group.js +46 -970
- package/dist/site/components/chunks/I18nProvider.js +125 -0
- package/dist/site/components/chunks/Input.js +369 -0
- package/dist/site/components/chunks/Link.js +1 -1
- package/dist/site/components/chunks/RequiredIndicator.js +4 -0
- package/dist/site/components/chunks/ResponsiveBox.js +1 -1
- package/dist/site/components/chunks/ResponsiveContainer.js +1 -1
- package/dist/site/components/chunks/TextEffectsShared.js +1 -1
- package/dist/site/components/chunks/VisuallyHidden.js +1 -1
- package/dist/site/components/chunks/a11y.js +4 -5
- package/dist/site/components/chunks/constants3.js +23 -63
- package/dist/site/components/chunks/constants36.js +31 -148
- package/dist/site/components/chunks/filterDOMProps.js +18 -139
- package/dist/site/components/chunks/index10.js +3 -2020
- package/dist/site/components/chunks/index11.js +31118 -232
- package/dist/site/components/chunks/index12.js +3 -31191
- package/dist/site/components/chunks/index13.js +44 -3
- package/dist/site/components/chunks/index3.js +1 -1
- package/dist/site/components/chunks/index4.js +1 -1
- package/dist/site/components/chunks/index5.js +1 -1
- package/dist/site/components/chunks/index7.js +67 -3
- package/dist/site/components/chunks/index8.js +2020 -3
- package/dist/site/components/chunks/index9.js +232 -60
- package/dist/site/components/chunks/isObjectLike.js +15 -5
- package/dist/site/components/chunks/manifestSdkMixins.js +4 -17
- package/dist/site/components/chunks/parseHtml.js +1 -1
- package/dist/site/components/chunks/parseSvg.js +1 -1
- package/dist/site/components/chunks/staticService.js +1 -1
- package/dist/site/components/chunks/useConsentPolicyProps.js +1 -1
- package/dist/site/components/chunks/useLocalizedStringFormatter.js +1 -1
- package/package.json +2 -2
- package/dist/site/components/Dropdown/component.preview.d.ts +0 -9
- package/dist/site/components/Dropdown/components/DropdownChips.d.ts +0 -8
- package/dist/site/components/Dropdown/components/DropdownList.d.ts +0 -20
- package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +0 -22
- package/dist/site/components/Dropdown/dropdownUtils.d.ts +0 -22
- package/dist/site/components/Dropdown/hooks/useChipOverflow.d.ts +0 -9
- package/dist/site/components/Dropdown/hooks/useDropdownQuery.d.ts +0 -15
- package/dist/site/components/Dropdown/hooks/useDropdownSelection.d.ts +0 -16
- package/dist/site/components/TextInput/TextInput.viewer.constants.d.ts +0 -24
- package/dist/site/components/TextInput/sdk.d.ts +0 -4
- package/dist/site/components/TextInput/sdk.js +0 -91
- package/dist/site/components/TextInput/utils.d.ts +0 -9
- package/dist/site/components/chunks/DateField.js +0 -6762
- package/dist/site/components/chunks/InfoCircleSmall.js +0 -7
- package/dist/site/components/chunks/NumberFormatter.js +0 -140
- package/dist/site/components/chunks/Tooltip.js +0 -1334
- package/dist/site/components/chunks/_baseSlice.js +0 -43
- package/dist/site/components/chunks/index14.js +0 -46
- package/dist/site/components/chunks/isArray.js +0 -12
- package/dist/site/components/chunks/isArrayLike.js +0 -88
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: "
|
|
3
|
-
label: "
|
|
4
|
-
input: "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
requiredIndicator: "textInput__required-indicator"
|
|
1
|
+
const componentClassNames = {
|
|
2
|
+
root: "text-input",
|
|
3
|
+
label: "text-input-label",
|
|
4
|
+
input: "text-input-input",
|
|
5
|
+
helperText: "text-input-helper",
|
|
6
|
+
errorMessage: "text-input-error-message"
|
|
8
7
|
};
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
tooltipButton: "text-input-tooltip-button"
|
|
8
|
+
const FunctionalStateKeys = {
|
|
9
|
+
previewError: "previewError"
|
|
12
10
|
};
|
|
13
|
-
const
|
|
11
|
+
const ERROR_MESSAGE_PREVIEW_TEXT = "Error message";
|
|
14
12
|
const DesignStates = {
|
|
15
13
|
input: {
|
|
16
14
|
hover: { displayName: "Hover", className: "textInput__input--hover" },
|
|
@@ -28,70 +26,32 @@ const DisplayNames = {
|
|
|
28
26
|
elements: {
|
|
29
27
|
label: "Label",
|
|
30
28
|
input: "Input",
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
helperText: "Helper text",
|
|
30
|
+
errorMessage: "Error message"
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
33
|
cssCustomProperties: {
|
|
36
|
-
|
|
37
|
-
helperColor: "Helper text color",
|
|
38
|
-
textColor: "Text color",
|
|
39
|
-
placeholderTextColor: "Placeholder text color",
|
|
40
|
-
requiredTextColor: "Required text color",
|
|
41
|
-
prefixFont: "Prefix font",
|
|
42
|
-
labelFont: "Label font",
|
|
43
|
-
labelTextColor: "Label text color",
|
|
44
|
-
labelMarginBottom: "Label bottom margin",
|
|
45
|
-
labelPaddingInlineStart: "Label left padding",
|
|
46
|
-
labelPaddingInlineEnd: "Label right padding",
|
|
47
|
-
labelAlign: "Label alignment",
|
|
48
|
-
inputAlign: "Input alignment"
|
|
34
|
+
placeholderTextColor: "Placeholder text color"
|
|
49
35
|
},
|
|
50
36
|
data: {
|
|
51
37
|
value: "Value",
|
|
52
|
-
|
|
53
|
-
isDisabled: "Disabled",
|
|
54
|
-
name: "Name",
|
|
55
|
-
minLength: "Minimum length",
|
|
56
|
-
autocompleteToken: "Autocomplete type",
|
|
57
|
-
numberSpinnerHidden: "Hide number spinner",
|
|
58
|
-
labelDirection: "Label direction",
|
|
59
|
-
inputDirection: "Input direction",
|
|
60
|
-
inputType: "Input type",
|
|
61
|
-
maxLength: "Maximum length",
|
|
62
|
-
min: "Minimum value",
|
|
63
|
-
max: "Maximum value",
|
|
64
|
-
pattern: "Pattern validation",
|
|
65
|
-
phoneFormat: "Phone format",
|
|
38
|
+
disabled: "Disabled",
|
|
66
39
|
label: "Label text",
|
|
67
40
|
placeholder: "Placeholder text",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readOnly: "Read only",
|
|
72
|
-
required: "Required",
|
|
73
|
-
errorMessageType: "Error message format",
|
|
74
|
-
prefix: "Prefix",
|
|
75
|
-
step: "Step"
|
|
41
|
+
helperText: "Helper text",
|
|
42
|
+
errorMessage: "Error message",
|
|
43
|
+
readOnly: "Read only"
|
|
76
44
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
url: "URL",
|
|
82
|
-
tel: "Phone number",
|
|
83
|
-
password: "Password",
|
|
84
|
-
center: "Center",
|
|
85
|
-
start: "Left",
|
|
86
|
-
end: "Right",
|
|
87
|
-
inline: "Inline",
|
|
88
|
-
tooltip: "Tooltip"
|
|
45
|
+
descriptions: {
|
|
46
|
+
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
47
|
+
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows.",
|
|
48
|
+
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short."
|
|
89
49
|
}
|
|
90
50
|
};
|
|
91
51
|
export {
|
|
92
52
|
DesignStates as D,
|
|
93
|
-
|
|
94
|
-
|
|
53
|
+
ERROR_MESSAGE_PREVIEW_TEXT as E,
|
|
54
|
+
FunctionalStateKeys as F,
|
|
95
55
|
DisplayNames as a,
|
|
96
|
-
|
|
56
|
+
componentClassNames as c
|
|
97
57
|
};
|
|
@@ -1,48 +1,25 @@
|
|
|
1
|
+
const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
|
|
1
2
|
const DesignStates = {
|
|
2
|
-
root: {
|
|
3
|
-
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
-
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
-
},
|
|
6
3
|
input: {
|
|
7
4
|
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
8
5
|
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
6
|
+
error: { displayName: "Error", className: "dropdown__input--error" },
|
|
9
7
|
disabled: {
|
|
10
8
|
displayName: "Disabled",
|
|
11
9
|
className: "dropdown__input--disabled"
|
|
12
10
|
}
|
|
13
11
|
},
|
|
14
|
-
trigger: {
|
|
15
|
-
hover: { displayName: "Hover", className: "dropdown__trigger--hover" },
|
|
16
|
-
selected: {
|
|
17
|
-
displayName: "Selected",
|
|
18
|
-
className: "dropdown__trigger--selected"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
clearButton: {
|
|
22
|
-
hover: { displayName: "Hover", className: "dropdown__clear--hover" },
|
|
23
|
-
selected: {
|
|
24
|
-
displayName: "Selected",
|
|
25
|
-
className: "dropdown__clear--selected"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
12
|
option: {
|
|
29
13
|
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
30
14
|
selected: {
|
|
31
15
|
displayName: "Selected",
|
|
32
16
|
className: "dropdown__option--selected"
|
|
33
17
|
}
|
|
34
|
-
},
|
|
35
|
-
chip: {
|
|
36
|
-
hover: { displayName: "Hover", className: "dropdown__chip--hover" },
|
|
37
|
-
selected: {
|
|
38
|
-
displayName: "Selected",
|
|
39
|
-
className: "dropdown__chip--selected"
|
|
40
|
-
}
|
|
41
18
|
}
|
|
42
19
|
};
|
|
43
20
|
const FunctionalStateKeys = {
|
|
44
21
|
previewList: "previewList",
|
|
45
|
-
|
|
22
|
+
previewError: "previewError"
|
|
46
23
|
};
|
|
47
24
|
const DisplayNames = {
|
|
48
25
|
root: {
|
|
@@ -52,160 +29,66 @@ const DisplayNames = {
|
|
|
52
29
|
optionLabel: "Label",
|
|
53
30
|
optionValue: "Value",
|
|
54
31
|
value: "Selected value",
|
|
55
|
-
|
|
56
|
-
defaultValue: "Default value",
|
|
57
|
-
defaultValues: "Default values",
|
|
58
|
-
inputValue: "Search query",
|
|
59
|
-
open: "Open",
|
|
60
|
-
isDisabled: "Disabled",
|
|
32
|
+
disabled: "Disabled",
|
|
61
33
|
placeholder: "Placeholder",
|
|
62
|
-
searchable: "Allow search",
|
|
63
|
-
multiple: "Allow multiple selection",
|
|
64
|
-
clearable: "Show clear button",
|
|
65
|
-
autoHighlight: "Highlight first match",
|
|
66
|
-
openOnInputClick: "Open list on click",
|
|
67
|
-
inline: "Show options inline",
|
|
68
|
-
grid: "Show options in a grid",
|
|
69
|
-
columns: "Columns",
|
|
70
|
-
limit: "Max visible options",
|
|
71
34
|
label: "Label",
|
|
72
|
-
required: "Required",
|
|
73
35
|
readOnly: "Read only",
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
36
|
+
helperText: "Helper text",
|
|
37
|
+
errorMessage: "Error message"
|
|
38
|
+
},
|
|
39
|
+
// Tooltip copy for the Design panel's info icon on these data props —
|
|
40
|
+
// https://wix.slack.com/archives/C0BBFFEG6HL/p1791456026776399
|
|
41
|
+
descriptions: {
|
|
42
|
+
value: "This field's current value. Connect it to your context to save the data your visitors provide. A value typed in this panel stays fixed.",
|
|
43
|
+
helperText: "A hint shown under this field, like a format example. It's always visible, so keep it short.",
|
|
44
|
+
errorMessage: "The message shown when this field is invalid. Connect it to your context so it appears only when something's wrong. A message typed in this panel always shows."
|
|
83
45
|
},
|
|
84
46
|
cssCustomProperties: {
|
|
85
|
-
width: "Width",
|
|
86
|
-
maxWidth: "Max width",
|
|
87
|
-
backgroundColor: "Background",
|
|
88
|
-
borderColor: "Border color",
|
|
89
|
-
borderWidth: "Border width",
|
|
90
|
-
paddingTop: "Padding top",
|
|
91
|
-
paddingBottom: "Padding bottom",
|
|
92
|
-
paddingInlineStart: "Padding start",
|
|
93
|
-
paddingInlineEnd: "Padding end",
|
|
94
|
-
gap: "Spacing",
|
|
95
|
-
boxShadow: "Shadow",
|
|
96
|
-
textAlign: "Value alignment",
|
|
97
|
-
font: "Value font",
|
|
98
|
-
textColor: "Value color",
|
|
99
|
-
labelFont: "Label font",
|
|
100
|
-
labelColor: "Label color",
|
|
101
|
-
helperFont: "Helper text font",
|
|
102
|
-
helperColor: "Helper text color",
|
|
103
|
-
optionTextColor: "Option text color",
|
|
104
|
-
optionHoverBackgroundColor: "Option hover background",
|
|
105
47
|
placeholderColor: "Placeholder color",
|
|
106
|
-
|
|
107
|
-
chipTextColor: "Chip text color"
|
|
48
|
+
optionsGap: "Space between options"
|
|
108
49
|
},
|
|
109
50
|
elements: {
|
|
110
51
|
label: "Label",
|
|
111
52
|
input: "Input",
|
|
112
|
-
trigger: "Button",
|
|
113
|
-
clearButton: "Clear button",
|
|
114
53
|
list: "List",
|
|
115
54
|
option: "Option",
|
|
116
|
-
|
|
55
|
+
helperText: "Helper text",
|
|
56
|
+
errorMessage: "Error message"
|
|
57
|
+
},
|
|
58
|
+
presets: {
|
|
59
|
+
baseDropdown: "Base Dropdown"
|
|
117
60
|
},
|
|
118
61
|
displayGroups: {
|
|
119
|
-
optionsGroup: "Manage options"
|
|
120
|
-
sizeGroup: "Size",
|
|
121
|
-
backgroundGroup: "Background",
|
|
122
|
-
cornersGroup: "Corner radius",
|
|
123
|
-
paddingGroup: "Padding"
|
|
62
|
+
optionsGroup: "Manage options"
|
|
124
63
|
}
|
|
125
64
|
}
|
|
126
65
|
};
|
|
127
|
-
const defaultValues = {
|
|
128
|
-
placeholder: "Select a value",
|
|
129
|
-
inputValue: "",
|
|
130
|
-
open: false,
|
|
131
|
-
isDisabled: false,
|
|
132
|
-
searchable: false,
|
|
133
|
-
multiple: false,
|
|
134
|
-
clearable: false,
|
|
135
|
-
autoHighlight: false,
|
|
136
|
-
openOnInputClick: true,
|
|
137
|
-
inline: false,
|
|
138
|
-
grid: false,
|
|
139
|
-
columns: 2,
|
|
140
|
-
limit: -1,
|
|
141
|
-
label: "",
|
|
142
|
-
required: false,
|
|
143
|
-
readOnly: false,
|
|
144
|
-
name: "",
|
|
145
|
-
description: "",
|
|
146
|
-
triggerMode: "onSelection",
|
|
147
|
-
applyButtonLabel: "Apply",
|
|
148
|
-
noResultsText: "No results"
|
|
149
|
-
};
|
|
150
|
-
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
151
|
-
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
152
|
-
TriggerModeValues2["OnApply"] = "onApply";
|
|
153
|
-
return TriggerModeValues2;
|
|
154
|
-
})(TriggerModeValues || {});
|
|
155
|
-
const ALL_VALUE = "";
|
|
156
66
|
const TestIds = {
|
|
157
67
|
root: "dropdown-root",
|
|
158
68
|
label: "dropdown-label",
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
clear: "dropdown-clear",
|
|
163
|
-
applyButton: "dropdown-apply-button",
|
|
164
|
-
description: "dropdown-description",
|
|
69
|
+
input: "dropdown-input",
|
|
70
|
+
list: "dropdown-list",
|
|
71
|
+
helperText: "dropdown-helper-text",
|
|
165
72
|
errorMessage: "dropdown-error-message"
|
|
166
73
|
};
|
|
167
|
-
const
|
|
74
|
+
const editorElementClassNames = {
|
|
168
75
|
root: "dropdown",
|
|
169
76
|
label: "dropdown-label",
|
|
170
77
|
input: "dropdown-input",
|
|
171
|
-
trigger: "dropdown-trigger",
|
|
172
|
-
clear: "dropdown-clear",
|
|
173
78
|
list: "dropdown-list",
|
|
174
79
|
option: "dropdown-option",
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
const semanticClassNames = {
|
|
178
|
-
root: "dropdown",
|
|
179
|
-
label: "dropdown__label",
|
|
180
|
-
requiredIndicator: "dropdown__required-indicator",
|
|
181
|
-
input: "dropdown__input",
|
|
182
|
-
trigger: "dropdown__trigger",
|
|
183
|
-
clear: "dropdown__clear",
|
|
184
|
-
listbox: "dropdown__listbox",
|
|
185
|
-
option: "dropdown__option",
|
|
186
|
-
chips: "dropdown__chips",
|
|
187
|
-
chip: "dropdown__chip",
|
|
188
|
-
applyButton: "dropdown__apply-button",
|
|
189
|
-
errorMessage: "dropdown__error-message"
|
|
80
|
+
helperText: "dropdown-helper-text",
|
|
81
|
+
errorMessage: "dropdown-error-message"
|
|
190
82
|
};
|
|
191
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
192
83
|
const AriaLabels = {
|
|
193
|
-
root: { key: "Dropdown_AriaLabel", default: "Dropdown" }
|
|
194
|
-
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
195
|
-
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
84
|
+
root: { key: "Dropdown_AriaLabel", default: "Dropdown" }
|
|
196
85
|
};
|
|
197
|
-
const VALUE_MISSING_MESSAGE = "Please select an option.";
|
|
198
86
|
export {
|
|
199
|
-
|
|
87
|
+
AriaLabels as A,
|
|
200
88
|
DesignStates as D,
|
|
201
89
|
FunctionalStateKeys as F,
|
|
202
90
|
TestIds as T,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
ARIA_LABEL_NAMESPACE as c,
|
|
207
|
-
defaultValues as d,
|
|
208
|
-
AriaLabels as e,
|
|
209
|
-
DisplayNames as f,
|
|
210
|
-
selectors as s
|
|
91
|
+
DisplayNames as a,
|
|
92
|
+
TEXT_PROP_STATIC_VALUE_MAX_LENGTH as b,
|
|
93
|
+
editorElementClassNames as e
|
|
211
94
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useRef, useCallback, useMemo, useContext, useState, forwardRef, createContext
|
|
1
|
+
import React__default, { useRef, useCallback, useMemo, useContext, useState, forwardRef, createContext } from "react";
|
|
2
2
|
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
|
3
3
|
};
|
|
4
4
|
let $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map();
|
|
@@ -396,125 +396,6 @@ function $f39a9eba43920ace$export$86427a43e3e48ebb(fn) {
|
|
|
396
396
|
function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() {
|
|
397
397
|
return useContext($f39a9eba43920ace$export$94b6d0abf7d33e8c);
|
|
398
398
|
}
|
|
399
|
-
const $d805ff57cab8bee2$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
400
|
-
"Arab",
|
|
401
|
-
"Syrc",
|
|
402
|
-
"Samr",
|
|
403
|
-
"Mand",
|
|
404
|
-
"Thaa",
|
|
405
|
-
"Mend",
|
|
406
|
-
"Nkoo",
|
|
407
|
-
"Adlm",
|
|
408
|
-
"Rohg",
|
|
409
|
-
"Hebr"
|
|
410
|
-
]);
|
|
411
|
-
const $d805ff57cab8bee2$var$RTL_LANGS = /* @__PURE__ */ new Set([
|
|
412
|
-
"ae",
|
|
413
|
-
"ar",
|
|
414
|
-
"arc",
|
|
415
|
-
"bcc",
|
|
416
|
-
"bqi",
|
|
417
|
-
"ckb",
|
|
418
|
-
"dv",
|
|
419
|
-
"fa",
|
|
420
|
-
"glk",
|
|
421
|
-
"he",
|
|
422
|
-
"ku",
|
|
423
|
-
"mzn",
|
|
424
|
-
"nqo",
|
|
425
|
-
"pnb",
|
|
426
|
-
"ps",
|
|
427
|
-
"sd",
|
|
428
|
-
"ug",
|
|
429
|
-
"ur",
|
|
430
|
-
"yi"
|
|
431
|
-
]);
|
|
432
|
-
function $d805ff57cab8bee2$export$702d680b21cbd764(localeString) {
|
|
433
|
-
if (Intl.Locale) {
|
|
434
|
-
let locale = new Intl.Locale(localeString).maximize();
|
|
435
|
-
let textInfo = typeof locale.getTextInfo === "function" ? locale.getTextInfo() : locale.textInfo;
|
|
436
|
-
if (textInfo) return textInfo.direction === "rtl";
|
|
437
|
-
if (locale.script) return $d805ff57cab8bee2$var$RTL_SCRIPTS.has(locale.script);
|
|
438
|
-
}
|
|
439
|
-
let lang = localeString.split("-")[0];
|
|
440
|
-
return $d805ff57cab8bee2$var$RTL_LANGS.has(lang);
|
|
441
|
-
}
|
|
442
|
-
const $520a025cdb0d710d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
443
|
-
function $520a025cdb0d710d$export$f09106e7c6677ec5() {
|
|
444
|
-
let locale = typeof window !== "undefined" && window[$520a025cdb0d710d$var$localeSymbol] || typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
445
|
-
try {
|
|
446
|
-
Intl.DateTimeFormat.supportedLocalesOf([
|
|
447
|
-
locale
|
|
448
|
-
]);
|
|
449
|
-
} catch {
|
|
450
|
-
locale = "en-US";
|
|
451
|
-
}
|
|
452
|
-
return {
|
|
453
|
-
locale,
|
|
454
|
-
direction: $d805ff57cab8bee2$export$702d680b21cbd764(locale) ? "rtl" : "ltr"
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
let $520a025cdb0d710d$var$currentLocale = $520a025cdb0d710d$export$f09106e7c6677ec5();
|
|
458
|
-
let $520a025cdb0d710d$var$listeners = /* @__PURE__ */ new Set();
|
|
459
|
-
function $520a025cdb0d710d$var$updateLocale() {
|
|
460
|
-
$520a025cdb0d710d$var$currentLocale = $520a025cdb0d710d$export$f09106e7c6677ec5();
|
|
461
|
-
for (let listener of $520a025cdb0d710d$var$listeners) listener($520a025cdb0d710d$var$currentLocale);
|
|
462
|
-
}
|
|
463
|
-
function $520a025cdb0d710d$export$188ec29ebc2bdc3a() {
|
|
464
|
-
let isSSR = $c7eafbbe1ea5834e$export$535bd6ca7f90a273();
|
|
465
|
-
let [defaultLocale, setDefaultLocale] = useState($520a025cdb0d710d$var$currentLocale);
|
|
466
|
-
useEffect(() => {
|
|
467
|
-
if ($520a025cdb0d710d$var$listeners.size === 0) window.addEventListener("languagechange", $520a025cdb0d710d$var$updateLocale);
|
|
468
|
-
$520a025cdb0d710d$var$listeners.add(setDefaultLocale);
|
|
469
|
-
return () => {
|
|
470
|
-
$520a025cdb0d710d$var$listeners.delete(setDefaultLocale);
|
|
471
|
-
if ($520a025cdb0d710d$var$listeners.size === 0) window.removeEventListener("languagechange", $520a025cdb0d710d$var$updateLocale);
|
|
472
|
-
};
|
|
473
|
-
}, []);
|
|
474
|
-
if (isSSR) {
|
|
475
|
-
let locale = typeof window !== "undefined" && window[$520a025cdb0d710d$var$localeSymbol];
|
|
476
|
-
return {
|
|
477
|
-
locale: locale || "en-US",
|
|
478
|
-
direction: "ltr"
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
return defaultLocale;
|
|
482
|
-
}
|
|
483
|
-
const $2eb8e6d23f3d0cb0$var$I18nContext = /* @__PURE__ */ React__default.createContext(null);
|
|
484
|
-
function $2eb8e6d23f3d0cb0$var$I18nProviderWithLocale(props) {
|
|
485
|
-
let { locale, children } = props;
|
|
486
|
-
let value = React__default.useMemo(() => ({
|
|
487
|
-
locale,
|
|
488
|
-
direction: $d805ff57cab8bee2$export$702d680b21cbd764(locale) ? "rtl" : "ltr"
|
|
489
|
-
}), [
|
|
490
|
-
locale
|
|
491
|
-
]);
|
|
492
|
-
return /* @__PURE__ */ React__default.createElement($2eb8e6d23f3d0cb0$var$I18nContext.Provider, {
|
|
493
|
-
value
|
|
494
|
-
}, children);
|
|
495
|
-
}
|
|
496
|
-
function $2eb8e6d23f3d0cb0$var$I18nProviderWithDefaultLocale(props) {
|
|
497
|
-
let { children } = props;
|
|
498
|
-
let defaultLocale = $520a025cdb0d710d$export$188ec29ebc2bdc3a();
|
|
499
|
-
return /* @__PURE__ */ React__default.createElement($2eb8e6d23f3d0cb0$var$I18nContext.Provider, {
|
|
500
|
-
value: defaultLocale
|
|
501
|
-
}, children);
|
|
502
|
-
}
|
|
503
|
-
function $2eb8e6d23f3d0cb0$export$a54013f0d02a8f82(props) {
|
|
504
|
-
let { locale, children } = props;
|
|
505
|
-
if (locale) return /* @__PURE__ */ React__default.createElement($2eb8e6d23f3d0cb0$var$I18nProviderWithLocale, {
|
|
506
|
-
locale,
|
|
507
|
-
children
|
|
508
|
-
});
|
|
509
|
-
return /* @__PURE__ */ React__default.createElement($2eb8e6d23f3d0cb0$var$I18nProviderWithDefaultLocale, {
|
|
510
|
-
children
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
function $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7() {
|
|
514
|
-
let defaultLocale = $520a025cdb0d710d$export$188ec29ebc2bdc3a();
|
|
515
|
-
let context = useContext($2eb8e6d23f3d0cb0$var$I18nContext);
|
|
516
|
-
return context || defaultLocale;
|
|
517
|
-
}
|
|
518
399
|
const $8e9d2fae0ecb9001$var$DOMPropNames = /* @__PURE__ */ new Set([
|
|
519
400
|
"id"
|
|
520
401
|
]);
|
|
@@ -584,23 +465,21 @@ function $8e9d2fae0ecb9001$export$457c3d6518dd4c6f(props, opts = {}) {
|
|
|
584
465
|
return filteredProps;
|
|
585
466
|
}
|
|
586
467
|
export {
|
|
587
|
-
$
|
|
588
|
-
$
|
|
589
|
-
$
|
|
590
|
-
$64fa3d84918910a7$export$
|
|
591
|
-
$64fa3d84918910a7$export$
|
|
592
|
-
$64fa3d84918910a7$export$
|
|
593
|
-
$64fa3d84918910a7$export$
|
|
594
|
-
$
|
|
595
|
-
$
|
|
596
|
-
$
|
|
597
|
-
$c7eafbbe1ea5834e$export$
|
|
598
|
-
$
|
|
599
|
-
$
|
|
600
|
-
$
|
|
601
|
-
$
|
|
602
|
-
$
|
|
603
|
-
$
|
|
604
|
-
$64fa3d84918910a7$export$c62b8e45d58ddad9 as q,
|
|
605
|
-
$f39a9eba43920ace$export$8dc98ba7eadeaa56 as r
|
|
468
|
+
$8e9d2fae0ecb9001$export$457c3d6518dd4c6f as $,
|
|
469
|
+
$f39a9eba43920ace$export$86427a43e3e48ebb as a,
|
|
470
|
+
$64fa3d84918910a7$export$29f1550f4b0d4415 as b,
|
|
471
|
+
$64fa3d84918910a7$export$fabf2dc03a41866e as c,
|
|
472
|
+
$64fa3d84918910a7$export$9d4c57ee4c6ffdd8 as d,
|
|
473
|
+
$64fa3d84918910a7$export$ef03459518577ad4 as e,
|
|
474
|
+
$64fa3d84918910a7$export$4d86445c2cf5e3 as f,
|
|
475
|
+
$65484d02dcb7eb3e$export$457c3d6518dd4c6f as g,
|
|
476
|
+
$64fa3d84918910a7$export$2881499e37b75b9a as h,
|
|
477
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as i,
|
|
478
|
+
$c7eafbbe1ea5834e$export$535bd6ca7f90a273 as j,
|
|
479
|
+
$df56164dff5785e2$export$4338b53315abf666 as k,
|
|
480
|
+
$c7eafbbe1ea5834e$export$619500959fc48b26 as l,
|
|
481
|
+
$f39a9eba43920ace$export$b5d7cc18bb8d2b59 as m,
|
|
482
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as n,
|
|
483
|
+
$64fa3d84918910a7$export$c62b8e45d58ddad9 as o,
|
|
484
|
+
$f39a9eba43920ace$export$8dc98ba7eadeaa56 as p
|
|
606
485
|
};
|