@wix/editor-react-components 1.2349.0 → 1.2351.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 +2 -2
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +2 -2
- 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/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.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/Menu/component.js +1 -1
- package/dist/site/components/Menu/manifest.js +1 -1
- package/dist/site/components/MultiStateBox/component.js +1 -1
- package/dist/site/components/MultiStateBox/manifest.js +1 -1
- package/dist/site/components/ProgressBar/component.js +1 -1
- package/dist/site/components/ProgressBar/manifest.js +1 -1
- package/dist/site/components/ProgressBar/sdk.js +1 -1
- package/dist/site/components/RadioButtons/RadioButtons.d.ts +3 -0
- package/dist/site/components/RadioButtons/RadioButtons.types.d.ts +22 -0
- package/dist/site/components/RadioButtons/component.d.ts +2 -0
- package/dist/site/components/RadioButtons/component.js +201 -0
- package/dist/site/components/RadioButtons/component.preview.d.ts +4 -0
- package/dist/site/components/RadioButtons/constants.d.ts +108 -0
- package/dist/site/components/RadioButtons/css.css +181 -0
- package/dist/site/components/RadioButtons/index.d.ts +2 -0
- package/dist/site/components/RadioButtons/index.js +6 -0
- package/dist/site/components/RadioButtons/manifest.d.ts +5 -0
- package/dist/site/components/RadioButtons/manifest.js +284 -0
- package/dist/site/components/chunks/constants24.js +97 -27
- package/dist/site/components/chunks/constants25.js +32 -17
- package/dist/site/components/chunks/constants26.js +16 -417
- package/dist/site/components/chunks/constants27.js +408 -73
- package/dist/site/components/chunks/constants28.js +80 -15
- package/dist/site/components/chunks/constants29.js +11 -42
- package/dist/site/components/chunks/constants30.js +44 -23
- package/dist/site/components/chunks/constants31.js +28 -10
- package/dist/site/components/chunks/constants32.js +10 -198
- package/dist/site/components/chunks/constants33.js +175 -152
- package/dist/site/components/chunks/constants34.js +160 -49
- package/dist/site/components/chunks/constants35.js +51 -98
- package/dist/site/components/chunks/constants36.js +67 -37
- package/dist/site/components/chunks/constants37.js +68 -69
- package/dist/site/components/chunks/constants38.js +73 -77
- package/dist/site/components/chunks/constants39.js +76 -57
- package/dist/site/components/chunks/constants40.js +72 -0
- package/dist/site/components/chunks/index10.js +4 -2
- package/dist/site/components/chunks/utils.js +1 -1
- package/dist/site/components/extensions.js +53 -51
- package/package.json +5 -5
|
@@ -1,33 +1,54 @@
|
|
|
1
|
-
const
|
|
1
|
+
const presets = {
|
|
2
|
+
horizontal: "horizontal",
|
|
3
|
+
vertical: "vertical"
|
|
4
|
+
};
|
|
2
5
|
const DisplayNames = {
|
|
3
6
|
root: {
|
|
4
|
-
elementDisplayName: "
|
|
7
|
+
elementDisplayName: "Social Bar",
|
|
8
|
+
presets: {
|
|
9
|
+
horizontal: "Horizontal",
|
|
10
|
+
vertical: "Vertical"
|
|
11
|
+
},
|
|
12
|
+
cssCustomProperties: {
|
|
13
|
+
"item-size": "Size",
|
|
14
|
+
"row-gap": "Vertical space between icons",
|
|
15
|
+
"column-gap": "Horizontal space between icons",
|
|
16
|
+
"justify-content": "Alignment"
|
|
17
|
+
},
|
|
18
|
+
data: {
|
|
19
|
+
items: "Social",
|
|
20
|
+
icon: "Icon",
|
|
21
|
+
link: "Links to"
|
|
22
|
+
},
|
|
23
|
+
actions: {
|
|
24
|
+
manageItems: "Manage Social Bar"
|
|
25
|
+
},
|
|
5
26
|
customActions: {
|
|
6
|
-
|
|
27
|
+
orientation: "Change Orientation"
|
|
7
28
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
29
|
+
displayGroups: {
|
|
30
|
+
gapGroup: {
|
|
31
|
+
displayName: "Space between icons"
|
|
32
|
+
},
|
|
33
|
+
iconsGroup: {
|
|
34
|
+
displayName: "Icons"
|
|
35
|
+
}
|
|
11
36
|
}
|
|
12
37
|
}
|
|
13
38
|
};
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
activateHeading: "hipaaIcon_activate_heading",
|
|
19
|
-
activateDescription: "hipaaIcon_activate_description"
|
|
20
|
-
};
|
|
21
|
-
const DefaultTranslations = {
|
|
22
|
-
ariaLabelCompliant: "HIPAA Compliant",
|
|
23
|
-
ariaLabelActivate: "HIPAA Certification",
|
|
24
|
-
activateHeading: "Activate HIPAA",
|
|
25
|
-
activateDescription: "Go to Manage > Purchase & Activate HIPAA Compliance"
|
|
39
|
+
const DesignStates = {
|
|
40
|
+
root: {
|
|
41
|
+
hover: { displayName: "Hover", className: "link-bar--hover" }
|
|
42
|
+
}
|
|
26
43
|
};
|
|
44
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
45
|
+
const ARIA_LABEL_KEY = "LinkBar_AriaLabel_SocialBarContainer";
|
|
46
|
+
const ARIA_LABEL_DEFAULT = "Social Bar";
|
|
27
47
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DisplayNames as
|
|
48
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
49
|
+
DesignStates as D,
|
|
50
|
+
ARIA_LABEL_KEY as a,
|
|
51
|
+
ARIA_LABEL_DEFAULT as b,
|
|
52
|
+
DisplayNames as c,
|
|
53
|
+
presets as p
|
|
33
54
|
};
|
|
@@ -1,15 +1,33 @@
|
|
|
1
|
-
const
|
|
1
|
+
const HIPAA_SETTINGS_PANEL_ID = "e4a7c1d3-8f2b-4e6a-9d5c-3b1f7a2e8c4d";
|
|
2
2
|
const DisplayNames = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
root: {
|
|
4
|
+
elementDisplayName: "HIPAA Certification",
|
|
5
|
+
customActions: {
|
|
6
|
+
hipaaSettings: "HIPAA Settings"
|
|
7
|
+
},
|
|
8
|
+
cssProperties: {
|
|
9
|
+
color: "Icon Color",
|
|
10
|
+
backgroundColor: "Background Color"
|
|
11
|
+
}
|
|
10
12
|
}
|
|
11
13
|
};
|
|
14
|
+
const TRANSLATIONS_NAMESPACE = "ariaLabels";
|
|
15
|
+
const TranslationKeys = {
|
|
16
|
+
ariaLabelCompliant: "hipaaIcon_aria_label_compliant",
|
|
17
|
+
ariaLabelActivate: "hipaaIcon_aria_label_activate",
|
|
18
|
+
activateHeading: "hipaaIcon_activate_heading",
|
|
19
|
+
activateDescription: "hipaaIcon_activate_description"
|
|
20
|
+
};
|
|
21
|
+
const DefaultTranslations = {
|
|
22
|
+
ariaLabelCompliant: "HIPAA Compliant",
|
|
23
|
+
ariaLabelActivate: "HIPAA Certification",
|
|
24
|
+
activateHeading: "Activate HIPAA",
|
|
25
|
+
activateDescription: "Go to Manage > Purchase & Activate HIPAA Compliance"
|
|
26
|
+
};
|
|
12
27
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
DefaultTranslations as D,
|
|
29
|
+
HIPAA_SETTINGS_PANEL_ID as H,
|
|
30
|
+
TranslationKeys as T,
|
|
31
|
+
TRANSLATIONS_NAMESPACE as a,
|
|
32
|
+
DisplayNames as b
|
|
15
33
|
};
|
|
@@ -1,203 +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
|
-
inputValue: "Search query",
|
|
57
|
-
open: "Open",
|
|
58
|
-
isDisabled: "Disabled",
|
|
59
|
-
placeholder: "Placeholder",
|
|
60
|
-
searchable: "Allow search",
|
|
61
|
-
multiple: "Allow multiple selection",
|
|
62
|
-
clearable: "Show clear button",
|
|
63
|
-
autoHighlight: "Highlight first match",
|
|
64
|
-
openOnInputClick: "Open list on click",
|
|
65
|
-
inline: "Show options inline",
|
|
66
|
-
grid: "Show options in a grid",
|
|
67
|
-
columns: "Columns",
|
|
68
|
-
limit: "Max visible options",
|
|
69
|
-
label: "Label",
|
|
70
|
-
required: "Required",
|
|
71
|
-
readOnly: "Read only",
|
|
72
|
-
description: "Helper text",
|
|
73
|
-
triggerMode: {
|
|
74
|
-
displayName: "Apply filter",
|
|
75
|
-
options: {
|
|
76
|
-
onSelection: "On selection",
|
|
77
|
-
onApply: "On button click"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
applyButtonLabel: "Apply button text"
|
|
81
|
-
},
|
|
82
|
-
cssCustomProperties: {
|
|
83
|
-
width: "Width",
|
|
84
|
-
maxWidth: "Max width",
|
|
85
|
-
backgroundColor: "Background",
|
|
86
|
-
borderColor: "Border color",
|
|
87
|
-
borderWidth: "Border width",
|
|
88
|
-
paddingTop: "Padding top",
|
|
89
|
-
paddingBottom: "Padding bottom",
|
|
90
|
-
paddingInlineStart: "Padding start",
|
|
91
|
-
paddingInlineEnd: "Padding end",
|
|
92
|
-
gap: "Spacing",
|
|
93
|
-
boxShadow: "Shadow",
|
|
94
|
-
textAlign: "Value alignment",
|
|
95
|
-
font: "Value font",
|
|
96
|
-
textColor: "Value color",
|
|
97
|
-
labelFont: "Label font",
|
|
98
|
-
labelColor: "Label color",
|
|
99
|
-
helperFont: "Helper text font",
|
|
100
|
-
helperColor: "Helper text color",
|
|
101
|
-
optionTextColor: "Option text color",
|
|
102
|
-
optionHoverBackgroundColor: "Option hover background",
|
|
103
|
-
placeholderColor: "Placeholder color",
|
|
104
|
-
chipBackgroundColor: "Chip background",
|
|
105
|
-
chipTextColor: "Chip text color"
|
|
106
|
-
},
|
|
107
|
-
elements: {
|
|
108
|
-
label: "Label",
|
|
109
|
-
input: "Input",
|
|
110
|
-
trigger: "Button",
|
|
111
|
-
clearButton: "Clear button",
|
|
112
|
-
list: "List",
|
|
113
|
-
option: "Option",
|
|
114
|
-
chip: "Chip"
|
|
115
|
-
},
|
|
116
|
-
displayGroups: {
|
|
117
|
-
optionsGroup: "Manage options",
|
|
118
|
-
sizeGroup: "Size",
|
|
119
|
-
backgroundGroup: "Background",
|
|
120
|
-
cornersGroup: "Corner radius",
|
|
121
|
-
paddingGroup: "Padding"
|
|
122
|
-
}
|
|
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"
|
|
123
10
|
}
|
|
124
11
|
};
|
|
125
|
-
const defaultValues = {
|
|
126
|
-
placeholder: "Select a value",
|
|
127
|
-
inputValue: "",
|
|
128
|
-
open: false,
|
|
129
|
-
isDisabled: false,
|
|
130
|
-
searchable: false,
|
|
131
|
-
multiple: false,
|
|
132
|
-
clearable: false,
|
|
133
|
-
autoHighlight: false,
|
|
134
|
-
openOnInputClick: true,
|
|
135
|
-
inline: false,
|
|
136
|
-
grid: false,
|
|
137
|
-
columns: 2,
|
|
138
|
-
limit: -1,
|
|
139
|
-
label: "",
|
|
140
|
-
required: false,
|
|
141
|
-
readOnly: false,
|
|
142
|
-
name: "",
|
|
143
|
-
description: "",
|
|
144
|
-
triggerMode: "onSelection",
|
|
145
|
-
applyButtonLabel: "Apply",
|
|
146
|
-
noResultsText: "No results"
|
|
147
|
-
};
|
|
148
|
-
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
149
|
-
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
150
|
-
TriggerModeValues2["OnApply"] = "onApply";
|
|
151
|
-
return TriggerModeValues2;
|
|
152
|
-
})(TriggerModeValues || {});
|
|
153
|
-
const ALL_VALUE = "";
|
|
154
|
-
const TestIds = {
|
|
155
|
-
root: "dropdown-root",
|
|
156
|
-
label: "dropdown-label",
|
|
157
|
-
trigger: "dropdown-trigger",
|
|
158
|
-
listbox: "dropdown-listbox",
|
|
159
|
-
clear: "dropdown-clear",
|
|
160
|
-
applyButton: "dropdown-apply-button",
|
|
161
|
-
description: "dropdown-description"
|
|
162
|
-
};
|
|
163
|
-
const selectors = {
|
|
164
|
-
root: "dropdown",
|
|
165
|
-
label: "dropdown-label",
|
|
166
|
-
input: "dropdown-input",
|
|
167
|
-
trigger: "dropdown-trigger",
|
|
168
|
-
clear: "dropdown-clear",
|
|
169
|
-
list: "dropdown-list",
|
|
170
|
-
option: "dropdown-option",
|
|
171
|
-
chip: "dropdown-chip"
|
|
172
|
-
};
|
|
173
|
-
const semanticClassNames = {
|
|
174
|
-
root: "dropdown",
|
|
175
|
-
label: "dropdown__label",
|
|
176
|
-
input: "dropdown__input",
|
|
177
|
-
trigger: "dropdown__trigger",
|
|
178
|
-
clear: "dropdown__clear",
|
|
179
|
-
listbox: "dropdown__listbox",
|
|
180
|
-
option: "dropdown__option",
|
|
181
|
-
chips: "dropdown__chips",
|
|
182
|
-
chip: "dropdown__chip",
|
|
183
|
-
applyButton: "dropdown__apply-button"
|
|
184
|
-
};
|
|
185
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
186
|
-
const AriaLabels = {
|
|
187
|
-
root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
|
|
188
|
-
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
189
|
-
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
190
|
-
};
|
|
191
12
|
export {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
FunctionalStateKeys as F,
|
|
195
|
-
TestIds as T,
|
|
196
|
-
semanticClassNames as a,
|
|
197
|
-
TriggerModeValues as b,
|
|
198
|
-
ARIA_LABEL_NAMESPACE as c,
|
|
199
|
-
defaultValues as d,
|
|
200
|
-
AriaLabels as e,
|
|
201
|
-
DisplayNames as f,
|
|
202
|
-
selectors as s
|
|
13
|
+
ARIA_LABEL_NAMESPACE as A,
|
|
14
|
+
DisplayNames as D
|
|
203
15
|
};
|
|
@@ -1,180 +1,203 @@
|
|
|
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
|
+
inputValue: "Search query",
|
|
57
|
+
open: "Open",
|
|
58
|
+
isDisabled: "Disabled",
|
|
59
|
+
placeholder: "Placeholder",
|
|
60
|
+
searchable: "Allow search",
|
|
61
|
+
multiple: "Allow multiple selection",
|
|
62
|
+
clearable: "Show clear button",
|
|
63
|
+
autoHighlight: "Highlight first match",
|
|
64
|
+
openOnInputClick: "Open list on click",
|
|
65
|
+
inline: "Show options inline",
|
|
66
|
+
grid: "Show options in a grid",
|
|
67
|
+
columns: "Columns",
|
|
68
|
+
limit: "Max visible options",
|
|
26
69
|
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
70
|
required: "Required",
|
|
36
71
|
readOnly: "Read only",
|
|
37
|
-
|
|
38
|
-
|
|
72
|
+
description: "Helper text",
|
|
73
|
+
triggerMode: {
|
|
74
|
+
displayName: "Apply filter",
|
|
75
|
+
options: {
|
|
76
|
+
onSelection: "On selection",
|
|
77
|
+
onApply: "On button click"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
applyButtonLabel: "Apply button text"
|
|
39
81
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
82
|
+
cssCustomProperties: {
|
|
83
|
+
width: "Width",
|
|
84
|
+
maxWidth: "Max width",
|
|
85
|
+
backgroundColor: "Background",
|
|
86
|
+
borderColor: "Border color",
|
|
87
|
+
borderWidth: "Border width",
|
|
88
|
+
paddingTop: "Padding top",
|
|
89
|
+
paddingBottom: "Padding bottom",
|
|
90
|
+
paddingInlineStart: "Padding start",
|
|
91
|
+
paddingInlineEnd: "Padding end",
|
|
92
|
+
gap: "Spacing",
|
|
93
|
+
boxShadow: "Shadow",
|
|
94
|
+
textAlign: "Value alignment",
|
|
95
|
+
font: "Value font",
|
|
96
|
+
textColor: "Value color",
|
|
97
|
+
labelFont: "Label font",
|
|
98
|
+
labelColor: "Label color",
|
|
99
|
+
helperFont: "Helper text font",
|
|
100
|
+
helperColor: "Helper text color",
|
|
101
|
+
optionTextColor: "Option text color",
|
|
102
|
+
optionHoverBackgroundColor: "Option hover background",
|
|
103
|
+
placeholderColor: "Placeholder color",
|
|
104
|
+
chipBackgroundColor: "Chip background",
|
|
105
|
+
chipTextColor: "Chip text color"
|
|
45
106
|
},
|
|
46
107
|
elements: {
|
|
47
108
|
label: "Label",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
109
|
+
input: "Input",
|
|
110
|
+
trigger: "Button",
|
|
111
|
+
clearButton: "Clear button",
|
|
112
|
+
list: "List",
|
|
113
|
+
option: "Option",
|
|
114
|
+
chip: "Chip"
|
|
115
|
+
},
|
|
116
|
+
displayGroups: {
|
|
117
|
+
optionsGroup: "Manage options",
|
|
118
|
+
sizeGroup: "Size",
|
|
119
|
+
backgroundGroup: "Background",
|
|
120
|
+
cornersGroup: "Corner radius",
|
|
121
|
+
paddingGroup: "Padding"
|
|
54
122
|
}
|
|
55
123
|
}
|
|
56
124
|
};
|
|
57
125
|
const defaultValues = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
126
|
+
placeholder: "Select a value",
|
|
127
|
+
inputValue: "",
|
|
128
|
+
open: false,
|
|
129
|
+
isDisabled: false,
|
|
130
|
+
searchable: false,
|
|
131
|
+
multiple: false,
|
|
132
|
+
clearable: false,
|
|
133
|
+
autoHighlight: false,
|
|
134
|
+
openOnInputClick: true,
|
|
135
|
+
inline: false,
|
|
136
|
+
grid: false,
|
|
137
|
+
columns: 2,
|
|
138
|
+
limit: -1,
|
|
61
139
|
label: "",
|
|
62
|
-
description: "",
|
|
63
|
-
allowPastDates: true,
|
|
64
|
-
allowFutureDates: true,
|
|
65
140
|
required: false,
|
|
66
141
|
readOnly: false,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
SelectionModeValues2["Range"] = "range";
|
|
73
|
-
return SelectionModeValues2;
|
|
74
|
-
})(SelectionModeValues || {});
|
|
75
|
-
var GranularityValues = /* @__PURE__ */ ((GranularityValues2) => {
|
|
76
|
-
GranularityValues2["Day"] = "day";
|
|
77
|
-
GranularityValues2["Hour"] = "hour";
|
|
78
|
-
GranularityValues2["Minute"] = "minute";
|
|
79
|
-
return GranularityValues2;
|
|
80
|
-
})(GranularityValues || {});
|
|
81
|
-
const DesignStates = {
|
|
82
|
-
root: {
|
|
83
|
-
hover: {
|
|
84
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
85
|
-
className: "datePicker--hover"
|
|
86
|
-
},
|
|
87
|
-
focus: {
|
|
88
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
89
|
-
className: "datePicker--focus"
|
|
90
|
-
},
|
|
91
|
-
disabled: {
|
|
92
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
93
|
-
className: "datePicker--disabled"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
dateInput: {
|
|
97
|
-
hover: {
|
|
98
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
99
|
-
className: "datePicker__group--hover"
|
|
100
|
-
},
|
|
101
|
-
focus: {
|
|
102
|
-
displayName: DisplayNames.root.designStates.focus,
|
|
103
|
-
className: "datePicker__group--focus"
|
|
104
|
-
},
|
|
105
|
-
disabled: {
|
|
106
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
107
|
-
className: "datePicker__group--disabled"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
calendarButton: {
|
|
111
|
-
hover: {
|
|
112
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
113
|
-
className: "datePicker__calendar-button--hover"
|
|
114
|
-
},
|
|
115
|
-
selected: {
|
|
116
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
117
|
-
className: "datePicker__calendar-button--selected"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
calendarDay: {
|
|
121
|
-
hover: {
|
|
122
|
-
displayName: DisplayNames.root.designStates.hover,
|
|
123
|
-
className: "datePicker__day--hover"
|
|
124
|
-
},
|
|
125
|
-
selected: {
|
|
126
|
-
displayName: DisplayNames.root.designStates.selected,
|
|
127
|
-
className: "datePicker__day--selected"
|
|
128
|
-
},
|
|
129
|
-
disabled: {
|
|
130
|
-
displayName: DisplayNames.root.designStates.disabled,
|
|
131
|
-
className: "datePicker__day--disabled"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const PREVIEW_CALENDAR_OPEN = "previewCalendarOpen";
|
|
136
|
-
const EMPTY_VALUE = "";
|
|
137
|
-
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
138
|
-
const AriaLabels = {
|
|
139
|
-
root: { key: "datePicker_aria_label", default: "Date picker" },
|
|
140
|
-
clear: { key: "datePicker_clear_button", default: "Clear" },
|
|
141
|
-
openCalendar: { key: "datePicker_open_calendar", default: "Open calendar" }
|
|
142
|
+
name: "",
|
|
143
|
+
description: "",
|
|
144
|
+
triggerMode: "onSelection",
|
|
145
|
+
applyButtonLabel: "Apply",
|
|
146
|
+
noResultsText: "No results"
|
|
142
147
|
};
|
|
148
|
+
var TriggerModeValues = /* @__PURE__ */ ((TriggerModeValues2) => {
|
|
149
|
+
TriggerModeValues2["OnSelection"] = "onSelection";
|
|
150
|
+
TriggerModeValues2["OnApply"] = "onApply";
|
|
151
|
+
return TriggerModeValues2;
|
|
152
|
+
})(TriggerModeValues || {});
|
|
153
|
+
const ALL_VALUE = "";
|
|
143
154
|
const TestIds = {
|
|
144
|
-
root: "
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
tooltipButton: "datepicker-tooltip-button",
|
|
152
|
-
errorMessage: "datepicker-error-message",
|
|
153
|
-
requiredIndicator: "datepicker-required-indicator"
|
|
155
|
+
root: "dropdown-root",
|
|
156
|
+
label: "dropdown-label",
|
|
157
|
+
trigger: "dropdown-trigger",
|
|
158
|
+
listbox: "dropdown-listbox",
|
|
159
|
+
clear: "dropdown-clear",
|
|
160
|
+
applyButton: "dropdown-apply-button",
|
|
161
|
+
description: "dropdown-description"
|
|
154
162
|
};
|
|
155
163
|
const selectors = {
|
|
156
|
-
root: "
|
|
157
|
-
label: "
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
root: "dropdown",
|
|
165
|
+
label: "dropdown-label",
|
|
166
|
+
input: "dropdown-input",
|
|
167
|
+
trigger: "dropdown-trigger",
|
|
168
|
+
clear: "dropdown-clear",
|
|
169
|
+
list: "dropdown-list",
|
|
170
|
+
option: "dropdown-option",
|
|
171
|
+
chip: "dropdown-chip"
|
|
172
|
+
};
|
|
173
|
+
const semanticClassNames = {
|
|
174
|
+
root: "dropdown",
|
|
175
|
+
label: "dropdown__label",
|
|
176
|
+
input: "dropdown__input",
|
|
177
|
+
trigger: "dropdown__trigger",
|
|
178
|
+
clear: "dropdown__clear",
|
|
179
|
+
listbox: "dropdown__listbox",
|
|
180
|
+
option: "dropdown__option",
|
|
181
|
+
chips: "dropdown__chips",
|
|
182
|
+
chip: "dropdown__chip",
|
|
183
|
+
applyButton: "dropdown__apply-button"
|
|
184
|
+
};
|
|
185
|
+
const ARIA_LABEL_NAMESPACE = "ariaLabels";
|
|
186
|
+
const AriaLabels = {
|
|
187
|
+
root: { key: "Dropdown_AriaLabel", default: "Dropdown" },
|
|
188
|
+
clear: { key: "Dropdown_AriaLabel_Clear", default: "Clear" },
|
|
189
|
+
removeItem: { key: "Dropdown_AriaLabel_RemoveItem", default: "Remove" }
|
|
165
190
|
};
|
|
166
|
-
const VALUE_MISSING_MESSAGE = "This field is required";
|
|
167
191
|
export {
|
|
168
|
-
|
|
192
|
+
ALL_VALUE as A,
|
|
169
193
|
DesignStates as D,
|
|
170
|
-
|
|
171
|
-
GranularityValues as G,
|
|
172
|
-
PREVIEW_CALENDAR_OPEN as P,
|
|
173
|
-
SelectionModeValues as S,
|
|
194
|
+
FunctionalStateKeys as F,
|
|
174
195
|
TestIds as T,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
196
|
+
semanticClassNames as a,
|
|
197
|
+
TriggerModeValues as b,
|
|
198
|
+
ARIA_LABEL_NAMESPACE as c,
|
|
178
199
|
defaultValues as d,
|
|
200
|
+
AriaLabels as e,
|
|
201
|
+
DisplayNames as f,
|
|
179
202
|
selectors as s
|
|
180
203
|
};
|