@wix/editor-react-components 1.2637.0 → 1.2638.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 +1 -1
- 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/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/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/Checkbox/component.js +1 -1
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +1 -1
- package/dist/site/components/CheckboxGroup/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/DatePicker/component.js +1 -1
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +1 -1
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HeadingTextBlock/component.js +3 -42
- package/dist/site/components/HeadingTextBlock/css.css +20 -21
- package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/ImageReveal/ImageReveal.d.ts +4 -0
- package/dist/site/components/ImageReveal/component.d.ts +2 -0
- package/dist/site/components/ImageReveal/component.js +317 -0
- package/dist/site/components/ImageReveal/constants.d.ts +49 -0
- package/dist/site/components/ImageReveal/css.css +364 -0
- package/dist/site/components/ImageReveal/index.d.ts +2 -0
- package/dist/site/components/ImageReveal/index.js +6 -0
- package/dist/site/components/ImageReveal/manifest.d.ts +5 -0
- package/dist/site/components/ImageReveal/manifest.js +330 -0
- package/dist/site/components/ImageReveal/types.d.ts +27 -0
- package/dist/site/components/chunks/constants32.js +49 -24
- package/dist/site/components/chunks/constants33.js +25 -56
- package/dist/site/components/chunks/constants34.js +59 -10
- package/dist/site/components/chunks/constants35.js +10 -206
- package/dist/site/components/chunks/constants36.js +182 -153
- package/dist/site/components/chunks/constants37.js +162 -49
- package/dist/site/components/chunks/constants38.js +51 -102
- package/dist/site/components/chunks/constants39.js +69 -39
- package/dist/site/components/chunks/constants40.js +72 -69
- package/dist/site/components/chunks/constants41.js +73 -77
- package/dist/site/components/chunks/constants42.js +75 -56
- package/dist/site/components/chunks/constants43.js +72 -0
- package/dist/site/components/chunks/index14.js +46 -0
- package/dist/site/components/extensions.js +35 -33
- package/package.json +2 -2
|
@@ -1,211 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
root: {
|
|
3
|
-
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
-
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
-
},
|
|
6
|
-
input: {
|
|
7
|
-
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
8
|
-
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
9
|
-
disabled: {
|
|
10
|
-
displayName: "Disabled",
|
|
11
|
-
className: "dropdown__input--disabled"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
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
|
-
option: {
|
|
29
|
-
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
30
|
-
selected: {
|
|
31
|
-
displayName: "Selected",
|
|
32
|
-
className: "dropdown__option--selected"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
chip: {
|
|
36
|
-
hover: { displayName: "Hover", className: "dropdown__chip--hover" },
|
|
37
|
-
selected: {
|
|
38
|
-
displayName: "Selected",
|
|
39
|
-
className: "dropdown__chip--selected"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const FunctionalStateKeys = {
|
|
44
|
-
previewList: "previewList",
|
|
45
|
-
previewChips: "previewChips"
|
|
46
|
-
};
|
|
1
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
47
2
|
const DisplayNames = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
values: "Selected values",
|
|
56
|
-
defaultValue: "Default value",
|
|
57
|
-
defaultValues: "Default values",
|
|
58
|
-
inputValue: "Search query",
|
|
59
|
-
open: "Open",
|
|
60
|
-
isDisabled: "Disabled",
|
|
61
|
-
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
|
-
label: "Label",
|
|
72
|
-
required: "Required",
|
|
73
|
-
readOnly: "Read only",
|
|
74
|
-
description: "Helper text",
|
|
75
|
-
triggerMode: {
|
|
76
|
-
displayName: "Apply filter",
|
|
77
|
-
options: {
|
|
78
|
-
onSelection: "On selection",
|
|
79
|
-
onApply: "On button click"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
applyButtonLabel: "Apply button text"
|
|
83
|
-
},
|
|
84
|
-
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
|
-
placeholderColor: "Placeholder color",
|
|
106
|
-
chipBackgroundColor: "Chip background",
|
|
107
|
-
chipTextColor: "Chip text color"
|
|
108
|
-
},
|
|
109
|
-
elements: {
|
|
110
|
-
label: "Label",
|
|
111
|
-
input: "Input",
|
|
112
|
-
trigger: "Button",
|
|
113
|
-
clearButton: "Clear button",
|
|
114
|
-
list: "List",
|
|
115
|
-
option: "Option",
|
|
116
|
-
chip: "Chip"
|
|
117
|
-
},
|
|
118
|
-
displayGroups: {
|
|
119
|
-
optionsGroup: "Manage options",
|
|
120
|
-
sizeGroup: "Size",
|
|
121
|
-
backgroundGroup: "Background",
|
|
122
|
-
cornersGroup: "Corner radius",
|
|
123
|
-
paddingGroup: "Padding"
|
|
124
|
-
}
|
|
3
|
+
data: {
|
|
4
|
+
onClick: "On Click",
|
|
5
|
+
onDblClick: "On Double Click",
|
|
6
|
+
onMouseIn: "On Mouse In",
|
|
7
|
+
onMouseOut: "On Mouse Out",
|
|
8
|
+
onFocus: "On Focus",
|
|
9
|
+
onBlur: "On Blur"
|
|
125
10
|
}
|
|
126
11
|
};
|
|
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
|
-
const TestIds = {
|
|
157
|
-
root: "dropdown-root",
|
|
158
|
-
label: "dropdown-label",
|
|
159
|
-
requiredIndicator: "dropdown-required-indicator",
|
|
160
|
-
trigger: "dropdown-trigger",
|
|
161
|
-
listbox: "dropdown-listbox",
|
|
162
|
-
clear: "dropdown-clear",
|
|
163
|
-
applyButton: "dropdown-apply-button",
|
|
164
|
-
description: "dropdown-description",
|
|
165
|
-
errorMessage: "dropdown-error-message"
|
|
166
|
-
};
|
|
167
|
-
const selectors = {
|
|
168
|
-
root: "dropdown",
|
|
169
|
-
label: "dropdown-label",
|
|
170
|
-
input: "dropdown-input",
|
|
171
|
-
trigger: "dropdown-trigger",
|
|
172
|
-
clear: "dropdown-clear",
|
|
173
|
-
list: "dropdown-list",
|
|
174
|
-
option: "dropdown-option",
|
|
175
|
-
chip: "dropdown-chip"
|
|
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"
|
|
190
|
-
};
|
|
191
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
192
|
-
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" }
|
|
196
|
-
};
|
|
197
|
-
const VALUE_MISSING_MESSAGE = "Please select an option.";
|
|
198
12
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
FunctionalStateKeys as F,
|
|
202
|
-
TestIds as T,
|
|
203
|
-
VALUE_MISSING_MESSAGE as V,
|
|
204
|
-
semanticClassNames as a,
|
|
205
|
-
TriggerModeValues as b,
|
|
206
|
-
ARIA_LABEL_NAMESPACE as c,
|
|
207
|
-
defaultValues as d,
|
|
208
|
-
AriaLabels as e,
|
|
209
|
-
DisplayNames as f,
|
|
210
|
-
selectors as s
|
|
13
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
14
|
+
DisplayNames as D
|
|
211
15
|
};
|
|
@@ -1,182 +1,211 @@
|
|
|
1
|
+
const DesignStates = {
|
|
2
|
+
root: {
|
|
3
|
+
hover: { displayName: "Hover", className: "dropdown--hover" },
|
|
4
|
+
disabled: { displayName: "Disabled", className: "dropdown--disabled" }
|
|
5
|
+
},
|
|
6
|
+
input: {
|
|
7
|
+
hover: { displayName: "Hover", className: "dropdown__input--hover" },
|
|
8
|
+
focus: { displayName: "Focus", className: "dropdown__input--focus" },
|
|
9
|
+
disabled: {
|
|
10
|
+
displayName: "Disabled",
|
|
11
|
+
className: "dropdown__input--disabled"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
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
|
+
option: {
|
|
29
|
+
hover: { displayName: "Hover", className: "dropdown__option--hover" },
|
|
30
|
+
selected: {
|
|
31
|
+
displayName: "Selected",
|
|
32
|
+
className: "dropdown__option--selected"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
chip: {
|
|
36
|
+
hover: { displayName: "Hover", className: "dropdown__chip--hover" },
|
|
37
|
+
selected: {
|
|
38
|
+
displayName: "Selected",
|
|
39
|
+
className: "dropdown__chip--selected"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const FunctionalStateKeys = {
|
|
44
|
+
previewList: "previewList",
|
|
45
|
+
previewChips: "previewChips"
|
|
46
|
+
};
|
|
1
47
|
const DisplayNames = {
|
|
2
48
|
root: {
|
|
3
|
-
elementDisplayName: "
|
|
49
|
+
elementDisplayName: "Dropdown",
|
|
4
50
|
data: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
tooltip: "Tooltip",
|
|
51
|
+
options: "Options",
|
|
52
|
+
optionLabel: "Label",
|
|
53
|
+
optionValue: "Value",
|
|
54
|
+
value: "Selected value",
|
|
55
|
+
values: "Selected values",
|
|
56
|
+
defaultValue: "Default value",
|
|
57
|
+
defaultValues: "Default values",
|
|
58
|
+
inputValue: "Search query",
|
|
59
|
+
open: "Open",
|
|
60
|
+
isDisabled: "Disabled",
|
|
61
|
+
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",
|
|
26
71
|
label: "Label",
|
|
27
|
-
description: "Helper text",
|
|
28
|
-
minDate: "Earliest date",
|
|
29
|
-
maxDate: "Latest date",
|
|
30
|
-
unavailableDates: "Unavailable dates",
|
|
31
|
-
unavailableFrom: "From",
|
|
32
|
-
unavailableTo: "To",
|
|
33
|
-
allowPastDates: "Allow past dates",
|
|
34
|
-
allowFutureDates: "Allow future dates",
|
|
35
72
|
required: "Required",
|
|
36
73
|
readOnly: "Read only",
|
|
37
|
-
|
|
38
|
-
|
|
74
|
+
description: "Helper text",
|
|
75
|
+
triggerMode: {
|
|
76
|
+
displayName: "Apply filter",
|
|
77
|
+
options: {
|
|
78
|
+
onSelection: "On selection",
|
|
79
|
+
onApply: "On button click"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
applyButtonLabel: "Apply button text"
|
|
39
83
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
84
|
+
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
|
+
placeholderColor: "Placeholder color",
|
|
106
|
+
chipBackgroundColor: "Chip background",
|
|
107
|
+
chipTextColor: "Chip text color"
|
|
45
108
|
},
|
|
46
109
|
elements: {
|
|
47
110
|
label: "Label",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
111
|
+
input: "Input",
|
|
112
|
+
trigger: "Button",
|
|
113
|
+
clearButton: "Clear button",
|
|
114
|
+
list: "List",
|
|
115
|
+
option: "Option",
|
|
116
|
+
chip: "Chip"
|
|
117
|
+
},
|
|
118
|
+
displayGroups: {
|
|
119
|
+
optionsGroup: "Manage options",
|
|
120
|
+
sizeGroup: "Size",
|
|
121
|
+
backgroundGroup: "Background",
|
|
122
|
+
cornersGroup: "Corner radius",
|
|
123
|
+
paddingGroup: "Padding"
|
|
55
124
|
}
|
|
56
125
|
}
|
|
57
126
|
};
|
|
58
127
|
const defaultValues = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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,
|
|
62
141
|
label: "",
|
|
63
|
-
description: "",
|
|
64
|
-
allowPastDates: true,
|
|
65
|
-
allowFutureDates: true,
|
|
66
142
|
required: false,
|
|
67
143
|
readOnly: false,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
SelectionModeValues2["Range"] = "range";
|
|
74
|
-
return SelectionModeValues2;
|
|
75
|
-
})(SelectionModeValues || {});
|
|
76
|
-
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
77
|
-
GranularityValues2["Day"] = "day";
|
|
78
|
-
GranularityValues2["Hour"] = "hour";
|
|
79
|
-
GranularityValues2["Minute"] = "minute";
|
|
80
|
-
return GranularityValues2;
|
|
81
|
-
})(GranularityValues || {});
|
|
82
|
-
const DesignStates = {
|
|
83
|
-
root: {
|
|
84
|
-
hover: {
|
|
85
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
86
|
-
className: "datePicker--hover"
|
|
87
|
-
},
|
|
88
|
-
focus: {
|
|
89
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
90
|
-
className: "datePicker--focus"
|
|
91
|
-
},
|
|
92
|
-
disabled: {
|
|
93
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
94
|
-
className: "datePicker--disabled"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dateInput: {
|
|
98
|
-
hover: {
|
|
99
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
100
|
-
className: "datePicker__group--hover"
|
|
101
|
-
},
|
|
102
|
-
focus: {
|
|
103
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
104
|
-
className: "datePicker__group--focus"
|
|
105
|
-
},
|
|
106
|
-
disabled: {
|
|
107
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
108
|
-
className: "datePicker__group--disabled"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
calendarButton: {
|
|
112
|
-
hover: {
|
|
113
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
114
|
-
className: "datePicker__calendar-button--hover"
|
|
115
|
-
},
|
|
116
|
-
selected: {
|
|
117
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
118
|
-
className: "datePicker__calendar-button--selected"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
calendarDay: {
|
|
122
|
-
hover: {
|
|
123
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
124
|
-
className: "datePicker__day--hover"
|
|
125
|
-
},
|
|
126
|
-
selected: {
|
|
127
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
128
|
-
className: "datePicker__day--selected"
|
|
129
|
-
},
|
|
130
|
-
disabled: {
|
|
131
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
132
|
-
className: "datePicker__day--disabled"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
|
|
137
|
-
const EMPTY_VALUE = "";
|
|
138
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
139
|
-
const AriaLabels = {
|
|
140
|
-
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
141
|
-
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
142
|
-
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
144
|
+
name: "",
|
|
145
|
+
description: "",
|
|
146
|
+
triggerMode: "onSelection",
|
|
147
|
+
applyButtonLabel: "Apply",
|
|
148
|
+
noResultsText: "No results"
|
|
143
149
|
};
|
|
150
|
+
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
151
|
+
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
152
|
+
TriggerModeValues2["OnApply"] = "onApply";
|
|
153
|
+
return TriggerModeValues2;
|
|
154
|
+
})(TriggerModeValues || {});
|
|
155
|
+
const ALL_VALUE = "";
|
|
144
156
|
const TestIds = {
|
|
145
|
-
root: "
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
errorMessage: "
|
|
154
|
-
requiredIndicator: "datepicker-required-indicator"
|
|
157
|
+
root: "dropdown-root",
|
|
158
|
+
label: "dropdown-label",
|
|
159
|
+
requiredIndicator: "dropdown-required-indicator",
|
|
160
|
+
trigger: "dropdown-trigger",
|
|
161
|
+
listbox: "dropdown-listbox",
|
|
162
|
+
clear: "dropdown-clear",
|
|
163
|
+
applyButton: "dropdown-apply-button",
|
|
164
|
+
description: "dropdown-description",
|
|
165
|
+
errorMessage: "dropdown-error-message"
|
|
155
166
|
};
|
|
156
167
|
const selectors = {
|
|
157
|
-
root: "
|
|
158
|
-
label: "
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
root: "dropdown",
|
|
169
|
+
label: "dropdown-label",
|
|
170
|
+
input: "dropdown-input",
|
|
171
|
+
trigger: "dropdown-trigger",
|
|
172
|
+
clear: "dropdown-clear",
|
|
173
|
+
list: "dropdown-list",
|
|
174
|
+
option: "dropdown-option",
|
|
175
|
+
chip: "dropdown-chip"
|
|
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"
|
|
190
|
+
};
|
|
191
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
192
|
+
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" }
|
|
167
196
|
};
|
|
168
|
-
const VALUE_MISSING_MESSAGE = "
|
|
197
|
+
const VALUE_MISSING_MESSAGE = "Please select an option.";
|
|
169
198
|
export {
|
|
170
|
-
|
|
199
|
+
ALL_VALUE as A,
|
|
171
200
|
DesignStates as D,
|
|
172
|
-
|
|
173
|
-
GranularityValues as G,
|
|
174
|
-
PREVIEW_CALENDAR_OPEN as P,
|
|
175
|
-
SelectionModeValues as S,
|
|
201
|
+
FunctionalStateKeys as F,
|
|
176
202
|
TestIds as T,
|
|
177
203
|
VALUE_MISSING_MESSAGE as V,
|
|
178
|
-
|
|
179
|
-
|
|
204
|
+
semanticClassNames as a,
|
|
205
|
+
TriggerModeValues as b,
|
|
206
|
+
ARIA_LABEL_NAMESPACE as c,
|
|
180
207
|
defaultValues as d,
|
|
208
|
+
AriaLabels as e,
|
|
209
|
+
DisplayNames as f,
|
|
181
210
|
selectors as s
|
|
182
211
|
};
|