@wix/editor-react-components 1.2765.0 → 1.2767.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.
Files changed (36) hide show
  1. package/dist/site/components/AccordionComponent/component.js +80 -3
  2. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  3. package/dist/site/components/Checkbox/component.js +1 -2
  4. package/dist/site/components/CheckboxGroup/component.js +1 -2
  5. package/dist/site/components/DatePicker/component.js +2 -4
  6. package/dist/site/components/Dropdown/Dropdown.d.ts +1 -1
  7. package/dist/site/components/Dropdown/Dropdown.types.d.ts +22 -89
  8. package/dist/site/components/Dropdown/component.js +205 -873
  9. package/dist/site/components/Dropdown/constants.d.ts +26 -168
  10. package/dist/site/components/Dropdown/css.css +52 -462
  11. package/dist/site/components/Dropdown/manifest.js +338 -441
  12. package/dist/site/components/Line/manifest.js +39 -3
  13. package/dist/site/components/RadioButtons/component.js +1 -2
  14. package/dist/site/components/TextBox/component.js +1 -2
  15. package/dist/site/components/TimePicker/component.js +2 -4
  16. package/dist/site/components/chunks/DismissSmall.js +7727 -1
  17. package/dist/site/components/chunks/RequiredIndicator.js +4 -0
  18. package/dist/site/components/chunks/constants36.js +31 -148
  19. package/dist/site/components/chunks/index11.js +0 -66
  20. package/dist/site/components/chunks/isObjectLike.js +15 -5
  21. package/dist/site/components/chunks/manifestSdkMixins.js +1 -14
  22. package/dist/site/components/chunks/types.impl.js +26 -1
  23. package/package.json +3 -3
  24. package/dist/site/components/Dropdown/component.preview.d.ts +0 -9
  25. package/dist/site/components/Dropdown/components/DropdownChips.d.ts +0 -8
  26. package/dist/site/components/Dropdown/components/DropdownList.d.ts +0 -20
  27. package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +0 -22
  28. package/dist/site/components/Dropdown/dropdownUtils.d.ts +0 -22
  29. package/dist/site/components/Dropdown/hooks/useChipOverflow.d.ts +0 -9
  30. package/dist/site/components/Dropdown/hooks/useDropdownQuery.d.ts +0 -15
  31. package/dist/site/components/Dropdown/hooks/useDropdownSelection.d.ts +0 -16
  32. package/dist/site/components/chunks/InfoCircleSmall.js +0 -7
  33. package/dist/site/components/chunks/Tooltip.js +0 -7728
  34. package/dist/site/components/chunks/_baseSlice.js +0 -43
  35. package/dist/site/components/chunks/isArray.js +0 -12
  36. package/dist/site/components/chunks/isArrayLike.js +0 -88
@@ -1,14 +1,5 @@
1
+ export declare const TEXT_PROP_STATIC_VALUE_MAX_LENGTH = 400;
1
2
  export declare const DesignStates: {
2
- readonly root: {
3
- readonly hover: {
4
- readonly displayName: "Hover";
5
- readonly className: "dropdown--hover";
6
- };
7
- readonly disabled: {
8
- readonly displayName: "Disabled";
9
- readonly className: "dropdown--disabled";
10
- };
11
- };
12
3
  readonly input: {
13
4
  readonly hover: {
14
5
  readonly displayName: "Hover";
@@ -18,31 +9,15 @@ export declare const DesignStates: {
18
9
  readonly displayName: "Focus";
19
10
  readonly className: "dropdown__input--focus";
20
11
  };
12
+ readonly error: {
13
+ readonly displayName: "Error";
14
+ readonly className: "dropdown__input--error";
15
+ };
21
16
  readonly disabled: {
22
17
  readonly displayName: "Disabled";
23
18
  readonly className: "dropdown__input--disabled";
24
19
  };
25
20
  };
26
- readonly trigger: {
27
- readonly hover: {
28
- readonly displayName: "Hover";
29
- readonly className: "dropdown__trigger--hover";
30
- };
31
- readonly selected: {
32
- readonly displayName: "Selected";
33
- readonly className: "dropdown__trigger--selected";
34
- };
35
- };
36
- readonly clearButton: {
37
- readonly hover: {
38
- readonly displayName: "Hover";
39
- readonly className: "dropdown__clear--hover";
40
- };
41
- readonly selected: {
42
- readonly displayName: "Selected";
43
- readonly className: "dropdown__clear--selected";
44
- };
45
- };
46
21
  readonly option: {
47
22
  readonly hover: {
48
23
  readonly displayName: "Hover";
@@ -53,29 +28,10 @@ export declare const DesignStates: {
53
28
  readonly className: "dropdown__option--selected";
54
29
  };
55
30
  };
56
- readonly chip: {
57
- readonly hover: {
58
- readonly displayName: "Hover";
59
- readonly className: "dropdown__chip--hover";
60
- };
61
- readonly selected: {
62
- readonly displayName: "Selected";
63
- readonly className: "dropdown__chip--selected";
64
- };
65
- };
66
- };
67
- export declare const ElementKeys: {
68
- readonly label: "label";
69
- readonly input: "input";
70
- readonly trigger: "trigger";
71
- readonly clearButton: "clearButton";
72
- readonly list: "list";
73
- readonly option: "option";
74
- readonly chip: "chip";
75
31
  };
76
32
  export declare const FunctionalStateKeys: {
77
33
  readonly previewList: "previewList";
78
- readonly previewChips: "previewChips";
34
+ readonly previewError: "previewError";
79
35
  };
80
36
  export declare const DisplayNames: {
81
37
  root: {
@@ -85,156 +41,58 @@ export declare const DisplayNames: {
85
41
  optionLabel: string;
86
42
  optionValue: string;
87
43
  value: string;
88
- values: string;
89
- defaultValue: string;
90
- defaultValues: string;
91
- inputValue: string;
92
- open: string;
93
- isDisabled: string;
44
+ disabled: string;
94
45
  placeholder: string;
95
- searchable: string;
96
- multiple: string;
97
- clearable: string;
98
- autoHighlight: string;
99
- openOnInputClick: string;
100
- inline: string;
101
- grid: string;
102
- columns: string;
103
- limit: string;
104
46
  label: string;
105
- required: string;
106
47
  readOnly: string;
107
- description: string;
108
- triggerMode: {
109
- displayName: string;
110
- options: {
111
- onSelection: string;
112
- onApply: string;
113
- };
114
- };
115
- applyButtonLabel: string;
48
+ helperText: string;
49
+ errorMessage: string;
50
+ };
51
+ descriptions: {
52
+ value: string;
53
+ helperText: string;
54
+ errorMessage: string;
116
55
  };
117
56
  cssCustomProperties: {
118
- width: string;
119
- maxWidth: string;
120
- backgroundColor: string;
121
- borderColor: string;
122
- borderWidth: string;
123
- paddingTop: string;
124
- paddingBottom: string;
125
- paddingInlineStart: string;
126
- paddingInlineEnd: string;
127
- gap: string;
128
- boxShadow: string;
129
- textAlign: string;
130
- font: string;
131
- textColor: string;
132
- labelFont: string;
133
- labelColor: string;
134
- helperFont: string;
135
- helperColor: string;
136
- optionTextColor: string;
137
- optionHoverBackgroundColor: string;
138
57
  placeholderColor: string;
139
- chipBackgroundColor: string;
140
- chipTextColor: string;
58
+ optionsGap: string;
141
59
  };
142
60
  elements: {
143
61
  label: string;
144
62
  input: string;
145
- trigger: string;
146
- clearButton: string;
147
63
  list: string;
148
64
  option: string;
149
- chip: string;
65
+ helperText: string;
66
+ errorMessage: string;
67
+ };
68
+ presets: {
69
+ baseDropdown: string;
150
70
  };
151
71
  displayGroups: {
152
72
  optionsGroup: string;
153
- sizeGroup: string;
154
- backgroundGroup: string;
155
- cornersGroup: string;
156
- paddingGroup: string;
157
73
  };
158
74
  };
159
75
  };
160
- export declare const defaultValues: {
161
- readonly placeholder: "Select a value";
162
- readonly inputValue: "";
163
- readonly open: false;
164
- readonly isDisabled: false;
165
- readonly searchable: false;
166
- readonly multiple: false;
167
- readonly clearable: false;
168
- readonly autoHighlight: false;
169
- readonly openOnInputClick: true;
170
- readonly inline: false;
171
- readonly grid: false;
172
- readonly columns: 2;
173
- readonly limit: -1;
174
- readonly label: "";
175
- readonly required: false;
176
- readonly readOnly: false;
177
- readonly name: "";
178
- readonly description: "";
179
- readonly triggerMode: "onSelection";
180
- readonly applyButtonLabel: "Apply";
181
- readonly noResultsText: "No results";
182
- };
183
- export declare const enum TriggerModeValues {
184
- OnSelection = "onSelection",
185
- OnApply = "onApply"
186
- }
187
- /** The value that represents the cleared / empty state. */
188
- export declare const ALL_VALUE = "";
189
76
  export declare const TestIds: {
190
77
  readonly root: "dropdown-root";
191
78
  readonly label: "dropdown-label";
192
- readonly requiredIndicator: "dropdown-required-indicator";
193
- readonly trigger: "dropdown-trigger";
194
- readonly listbox: "dropdown-listbox";
195
- readonly clear: "dropdown-clear";
196
- readonly applyButton: "dropdown-apply-button";
197
- readonly description: "dropdown-description";
79
+ readonly input: "dropdown-input";
80
+ readonly list: "dropdown-list";
81
+ readonly helperText: "dropdown-helper-text";
198
82
  readonly errorMessage: "dropdown-error-message";
199
83
  };
200
- export declare const selectors: {
84
+ export declare const editorElementClassNames: {
201
85
  readonly root: "dropdown";
202
86
  readonly label: "dropdown-label";
203
87
  readonly input: "dropdown-input";
204
- readonly trigger: "dropdown-trigger";
205
- readonly clear: "dropdown-clear";
206
88
  readonly list: "dropdown-list";
207
89
  readonly option: "dropdown-option";
208
- readonly chip: "dropdown-chip";
209
- };
210
- export declare const semanticClassNames: {
211
- readonly root: "dropdown";
212
- readonly label: "dropdown__label";
213
- readonly requiredIndicator: "dropdown__required-indicator";
214
- readonly input: "dropdown__input";
215
- readonly trigger: "dropdown__trigger";
216
- readonly clear: "dropdown__clear";
217
- readonly listbox: "dropdown__listbox";
218
- readonly option: "dropdown__option";
219
- readonly chips: "dropdown__chips";
220
- readonly chip: "dropdown__chip";
221
- readonly applyButton: "dropdown__apply-button";
222
- readonly errorMessage: "dropdown__error-message";
90
+ readonly helperText: "dropdown-helper-text";
91
+ readonly errorMessage: "dropdown-error-message";
223
92
  };
224
- export declare const ARIA_LABEL_NAMESPACE = "ariaLabels";
225
93
  export declare const AriaLabels: {
226
94
  readonly root: {
227
95
  readonly key: "Dropdown_AriaLabel";
228
96
  readonly default: "Dropdown";
229
97
  };
230
- readonly clear: {
231
- readonly key: "Dropdown_AriaLabel_Clear";
232
- readonly default: "Clear";
233
- };
234
- readonly removeItem: {
235
- readonly key: "Dropdown_AriaLabel_RemoveItem";
236
- readonly default: "Remove";
237
- };
238
98
  };
239
- /** Intrinsic `required` failure message (pre-resolved; i18n is a shared TODO). */
240
- export declare const VALUE_MISSING_MESSAGE = "Please select an option.";