@povio/ui 3.2.2-rc.6 → 3.2.2
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/components/inputs/DateTime/shared/DateField.js +80 -83
- package/dist/components/inputs/File/FileUpload.d.ts +1 -1
- package/dist/components/inputs/File/FileUpload.js +6 -1
- package/dist/components/inputs/File/fileUpload.types.d.ts +6 -0
- package/dist/components/inputs/File/shared/FileCard.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileCard.js +46 -40
- package/dist/components/inputs/File/shared/FileCardList.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileCardList.js +27 -21
- package/dist/components/inputs/File/shared/FileUploadContent.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +98 -84
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +157 -121
- package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentError.js +189 -153
- package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +181 -145
- package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +2 -2
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +209 -168
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +4 -2
- package/dist/components/inputs/Selection/Select/QuerySelect.js +42 -38
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +2 -0
- package/dist/components/inputs/Selection/shared/SelectBase.js +35 -32
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +212 -191
- package/dist/components/inputs/Selection/shared/SelectInput.js +193 -154
- package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/select.context.js +4 -2
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +4 -1
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +91 -64
- package/dist/config/uiConfig.context.d.ts +5 -1
- package/dist/config/uiConfig.context.js +12 -3
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { c } from "react/compiler-runtime";
|
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/inputs/Selection/shared/SelectBase.tsx
|
|
9
9
|
var SelectBase = (dProps) => {
|
|
10
|
-
const $ = c(
|
|
10
|
+
const $ = c(22);
|
|
11
11
|
const ui = UIConfig.useConfig();
|
|
12
12
|
const t0 = dProps.selectionMode ?? ui.select.selectionMode;
|
|
13
13
|
const t1 = dProps.variant ?? ui.input.variant;
|
|
@@ -21,10 +21,11 @@ var SelectBase = (dProps) => {
|
|
|
21
21
|
const t9 = dProps.collapseAfter ?? ui.select.collapseAfter;
|
|
22
22
|
const t10 = dProps.hideSearchIcon ?? ui.select.hideSearchIcon;
|
|
23
23
|
const t11 = dProps.fireBlurOnChange ?? ui.select.fireBlurOnChange;
|
|
24
|
-
const t12 = dProps.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
const t12 = dProps.multiSelectAutoConfirm ?? ui.select.multiSelectAutoConfirm;
|
|
25
|
+
const t13 = dProps.ignoreInputValueFiltering ?? dProps.isClientSearchDisabled;
|
|
26
|
+
let t14;
|
|
27
|
+
if ($[0] !== dProps || $[1] !== t0 || $[2] !== t1 || $[3] !== t10 || $[4] !== t11 || $[5] !== t12 || $[6] !== t13 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4 || $[10] !== t5 || $[11] !== t6 || $[12] !== t7 || $[13] !== t8 || $[14] !== t9) {
|
|
28
|
+
t14 = {
|
|
28
29
|
...dProps,
|
|
29
30
|
selectionMode: t0,
|
|
30
31
|
variant: t1,
|
|
@@ -38,7 +39,8 @@ var SelectBase = (dProps) => {
|
|
|
38
39
|
collapseAfter: t9,
|
|
39
40
|
hideSearchIcon: t10,
|
|
40
41
|
fireBlurOnChange: t11,
|
|
41
|
-
|
|
42
|
+
multiSelectAutoConfirm: t12,
|
|
43
|
+
isClientSearchDisabled: t13
|
|
42
44
|
};
|
|
43
45
|
$[0] = dProps;
|
|
44
46
|
$[1] = t0;
|
|
@@ -46,37 +48,38 @@ var SelectBase = (dProps) => {
|
|
|
46
48
|
$[3] = t10;
|
|
47
49
|
$[4] = t11;
|
|
48
50
|
$[5] = t12;
|
|
49
|
-
$[6] =
|
|
50
|
-
$[7] =
|
|
51
|
-
$[8] =
|
|
52
|
-
$[9] =
|
|
53
|
-
$[10] =
|
|
54
|
-
$[11] =
|
|
55
|
-
$[12] =
|
|
56
|
-
$[13] =
|
|
57
|
-
$[14] =
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
$[6] = t13;
|
|
52
|
+
$[7] = t2;
|
|
53
|
+
$[8] = t3;
|
|
54
|
+
$[9] = t4;
|
|
55
|
+
$[10] = t5;
|
|
56
|
+
$[11] = t6;
|
|
57
|
+
$[12] = t7;
|
|
58
|
+
$[13] = t8;
|
|
59
|
+
$[14] = t9;
|
|
60
|
+
$[15] = t14;
|
|
61
|
+
} else t14 = $[15];
|
|
62
|
+
const props = t14;
|
|
60
63
|
const isDesktop = useBreakpoint("md");
|
|
61
|
-
const
|
|
62
|
-
let t15;
|
|
63
|
-
if ($[15] !== isDesktop || $[16] !== props) {
|
|
64
|
-
t15 = isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props });
|
|
65
|
-
$[15] = isDesktop;
|
|
66
|
-
$[16] = props;
|
|
67
|
-
$[17] = t15;
|
|
68
|
-
} else t15 = $[17];
|
|
64
|
+
const t15 = props;
|
|
69
65
|
let t16;
|
|
70
|
-
if ($[
|
|
71
|
-
t16 = /* @__PURE__ */ jsx(
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
if ($[16] !== isDesktop || $[17] !== props) {
|
|
67
|
+
t16 = isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props });
|
|
68
|
+
$[16] = isDesktop;
|
|
69
|
+
$[17] = props;
|
|
70
|
+
$[18] = t16;
|
|
71
|
+
} else t16 = $[18];
|
|
72
|
+
let t17;
|
|
73
|
+
if ($[19] !== t15 || $[20] !== t16) {
|
|
74
|
+
t17 = /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
75
|
+
...t15,
|
|
76
|
+
children: t16
|
|
74
77
|
});
|
|
75
|
-
$[18] = t14;
|
|
76
78
|
$[19] = t15;
|
|
77
79
|
$[20] = t16;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
$[21] = t17;
|
|
81
|
+
} else t17 = $[21];
|
|
82
|
+
return t17;
|
|
80
83
|
};
|
|
81
84
|
//#endregion
|
|
82
85
|
export { SelectBase };
|
|
@@ -16,7 +16,7 @@ import { useLabel, usePreventScroll } from "react-aria";
|
|
|
16
16
|
import { mergeRefs } from "@react-aria/utils";
|
|
17
17
|
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
18
18
|
var SelectDesktop = (t0) => {
|
|
19
|
-
const $ = c(
|
|
19
|
+
const $ = c(142);
|
|
20
20
|
let containerClassName;
|
|
21
21
|
let customTrigger;
|
|
22
22
|
let error;
|
|
@@ -137,9 +137,13 @@ var SelectDesktop = (t0) => {
|
|
|
137
137
|
t7 = $[32];
|
|
138
138
|
}
|
|
139
139
|
useLayoutEffect(t6, t7);
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
let WrapperComponent;
|
|
141
|
+
let comboBoxProps;
|
|
142
|
+
let dialogTriggerProps;
|
|
143
|
+
let headerProps;
|
|
144
|
+
let showPopover;
|
|
145
|
+
if ($[33] !== containerClassName || $[34] !== error || $[35] !== fieldState.inputValue || $[36] !== fieldState.value || $[37] !== headerClassName || $[38] !== helperText || $[39] !== hideLabel || $[40] !== isDisabled || $[41] !== isHeaderHidden || $[42] !== isLoading || $[43] !== isMultiple || $[44] !== isOpen || $[45] !== isRequired || $[46] !== isSearchable || $[47] !== label || $[48] !== labelProps || $[49] !== listItems || $[50] !== onChange || $[51] !== onClear || $[52] !== onInputChange || $[53] !== onSelectAll || $[54] !== rightContent || $[55] !== selectableListItems || $[56] !== selectedIds || $[57] !== setIsOpen || $[58] !== tooltipText) {
|
|
146
|
+
const onSelectionChange = (value) => {
|
|
143
147
|
if (!value) return;
|
|
144
148
|
if (value === "all-item-id") {
|
|
145
149
|
if (selectedIds.length === selectableListItems.length) onClear();
|
|
@@ -148,6 +152,7 @@ var SelectDesktop = (t0) => {
|
|
|
148
152
|
}
|
|
149
153
|
if (!isMultiple) {
|
|
150
154
|
onChange(value);
|
|
155
|
+
if (isSearchable) blurSearchInput();
|
|
151
156
|
return;
|
|
152
157
|
}
|
|
153
158
|
if (!Array.isArray(fieldState.value)) {
|
|
@@ -157,131 +162,147 @@ var SelectDesktop = (t0) => {
|
|
|
157
162
|
if (fieldState.value.includes(value)) onChange(fieldState.value.filter((id) => id !== value));
|
|
158
163
|
else onChange(fieldState.value.concat(value));
|
|
159
164
|
};
|
|
160
|
-
|
|
161
|
-
$[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
$[
|
|
180
|
-
|
|
181
|
-
const openChangeHandler = t9;
|
|
182
|
-
const WrapperComponent = isSearchable ? ComboBox : Fragment$1;
|
|
183
|
-
const t10 = isMultiple ? null : fieldState.value;
|
|
184
|
-
const t11 = fieldState.inputValue;
|
|
185
|
-
const t12 = !!error;
|
|
186
|
-
let t13;
|
|
187
|
-
if ($[43] !== containerClassName) {
|
|
188
|
-
t13 = clsx("group w-full", containerClassName);
|
|
189
|
-
$[43] = containerClassName;
|
|
190
|
-
$[44] = t13;
|
|
191
|
-
} else t13 = $[44];
|
|
192
|
-
let t14;
|
|
193
|
-
if ($[45] !== fieldState.inputValue || $[46] !== isDisabled || $[47] !== listItems || $[48] !== onInputChange || $[49] !== onSelectionChange || $[50] !== openChangeHandler || $[51] !== t10 || $[52] !== t12 || $[53] !== t13) {
|
|
194
|
-
t14 = {
|
|
165
|
+
let t8;
|
|
166
|
+
if ($[64] !== setIsOpen) {
|
|
167
|
+
t8 = (value_0) => {
|
|
168
|
+
if (closeComboBoxRef.current && value_0) {
|
|
169
|
+
closeComboBoxRef.current.setOpen(false);
|
|
170
|
+
closeComboBoxRef.current = null;
|
|
171
|
+
} else setIsOpen(value_0);
|
|
172
|
+
};
|
|
173
|
+
$[64] = setIsOpen;
|
|
174
|
+
$[65] = t8;
|
|
175
|
+
} else t8 = $[65];
|
|
176
|
+
const openChangeHandler = t8;
|
|
177
|
+
WrapperComponent = isSearchable ? ComboBox : Fragment$1;
|
|
178
|
+
const t9 = fieldState.inputValue;
|
|
179
|
+
let t10;
|
|
180
|
+
if ($[66] !== containerClassName) {
|
|
181
|
+
t10 = clsx("group w-full", containerClassName);
|
|
182
|
+
$[66] = containerClassName;
|
|
183
|
+
$[67] = t10;
|
|
184
|
+
} else t10 = $[67];
|
|
185
|
+
comboBoxProps = {
|
|
195
186
|
items: listItems,
|
|
196
|
-
selectedKey:
|
|
187
|
+
selectedKey: isMultiple ? null : fieldState.value,
|
|
197
188
|
onSelectionChange,
|
|
198
|
-
inputValue:
|
|
189
|
+
inputValue: t9,
|
|
199
190
|
onInputChange,
|
|
200
191
|
onOpenChange: openChangeHandler,
|
|
201
192
|
allowsEmptyCollection: true,
|
|
202
193
|
isDisabled,
|
|
203
|
-
isInvalid:
|
|
194
|
+
isInvalid: !!error,
|
|
204
195
|
menuTrigger: "focus",
|
|
205
|
-
className:
|
|
196
|
+
className: t10
|
|
206
197
|
};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
$[
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
rightContent
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
$[
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
$[
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
198
|
+
const t11 = hideLabel || isHeaderHidden;
|
|
199
|
+
let t12;
|
|
200
|
+
if ($[68] !== headerClassName || $[69] !== helperText || $[70] !== isDisabled || $[71] !== isRequired || $[72] !== label || $[73] !== labelProps || $[74] !== rightContent || $[75] !== t11 || $[76] !== tooltipText) {
|
|
201
|
+
t12 = {
|
|
202
|
+
label,
|
|
203
|
+
tooltipText,
|
|
204
|
+
helperText,
|
|
205
|
+
isRequired,
|
|
206
|
+
rightContent,
|
|
207
|
+
isHeaderHidden: t11,
|
|
208
|
+
isDisabled,
|
|
209
|
+
className: headerClassName,
|
|
210
|
+
labelProps
|
|
211
|
+
};
|
|
212
|
+
$[68] = headerClassName;
|
|
213
|
+
$[69] = helperText;
|
|
214
|
+
$[70] = isDisabled;
|
|
215
|
+
$[71] = isRequired;
|
|
216
|
+
$[72] = label;
|
|
217
|
+
$[73] = labelProps;
|
|
218
|
+
$[74] = rightContent;
|
|
219
|
+
$[75] = t11;
|
|
220
|
+
$[76] = tooltipText;
|
|
221
|
+
$[77] = t12;
|
|
222
|
+
} else t12 = $[77];
|
|
223
|
+
headerProps = t12;
|
|
224
|
+
let t13;
|
|
225
|
+
if ($[78] !== isOpen || $[79] !== setIsOpen) {
|
|
226
|
+
t13 = {
|
|
227
|
+
isOpen,
|
|
228
|
+
onOpenChange: setIsOpen
|
|
229
|
+
};
|
|
230
|
+
$[78] = isOpen;
|
|
231
|
+
$[79] = setIsOpen;
|
|
232
|
+
$[80] = t13;
|
|
233
|
+
} else t13 = $[80];
|
|
234
|
+
dialogTriggerProps = t13;
|
|
235
|
+
let t14;
|
|
236
|
+
if ($[81] !== isLoading || $[82] !== listItems) {
|
|
237
|
+
t14 = listItems.filter(_temp).length > 0 || isLoading;
|
|
238
|
+
$[81] = isLoading;
|
|
239
|
+
$[82] = listItems;
|
|
240
|
+
$[83] = t14;
|
|
241
|
+
} else t14 = $[83];
|
|
242
|
+
showPopover = t14;
|
|
243
|
+
const blurSearchInput = () => {
|
|
244
|
+
const activeElement = document.activeElement;
|
|
245
|
+
if (activeElement instanceof HTMLElement && wrapperRef.current?.contains(activeElement)) activeElement.blur();
|
|
250
246
|
};
|
|
251
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
247
|
+
$[33] = containerClassName;
|
|
248
|
+
$[34] = error;
|
|
249
|
+
$[35] = fieldState.inputValue;
|
|
250
|
+
$[36] = fieldState.value;
|
|
251
|
+
$[37] = headerClassName;
|
|
252
|
+
$[38] = helperText;
|
|
253
|
+
$[39] = hideLabel;
|
|
254
|
+
$[40] = isDisabled;
|
|
255
|
+
$[41] = isHeaderHidden;
|
|
256
|
+
$[42] = isLoading;
|
|
257
|
+
$[43] = isMultiple;
|
|
258
|
+
$[44] = isOpen;
|
|
259
|
+
$[45] = isRequired;
|
|
260
|
+
$[46] = isSearchable;
|
|
261
|
+
$[47] = label;
|
|
262
|
+
$[48] = labelProps;
|
|
263
|
+
$[49] = listItems;
|
|
264
|
+
$[50] = onChange;
|
|
265
|
+
$[51] = onClear;
|
|
266
|
+
$[52] = onInputChange;
|
|
267
|
+
$[53] = onSelectAll;
|
|
268
|
+
$[54] = rightContent;
|
|
269
|
+
$[55] = selectableListItems;
|
|
270
|
+
$[56] = selectedIds;
|
|
271
|
+
$[57] = setIsOpen;
|
|
272
|
+
$[58] = tooltipText;
|
|
273
|
+
$[59] = WrapperComponent;
|
|
274
|
+
$[60] = comboBoxProps;
|
|
275
|
+
$[61] = dialogTriggerProps;
|
|
276
|
+
$[62] = headerProps;
|
|
277
|
+
$[63] = showPopover;
|
|
278
|
+
} else {
|
|
279
|
+
WrapperComponent = $[59];
|
|
280
|
+
comboBoxProps = $[60];
|
|
281
|
+
dialogTriggerProps = $[61];
|
|
282
|
+
headerProps = $[62];
|
|
283
|
+
showPopover = $[63];
|
|
284
|
+
}
|
|
285
|
+
let t8;
|
|
286
|
+
if ($[84] !== comboBoxProps || $[85] !== isSearchable) {
|
|
287
|
+
t8 = isSearchable ? comboBoxProps : {};
|
|
288
|
+
$[84] = comboBoxProps;
|
|
289
|
+
$[85] = isSearchable;
|
|
290
|
+
$[86] = t8;
|
|
291
|
+
} else t8 = $[86];
|
|
292
|
+
let t9;
|
|
293
|
+
if ($[87] !== containerClassName || $[88] !== isSearchable || $[89] !== labelProps) {
|
|
294
|
+
t9 = !isSearchable && {
|
|
274
295
|
labelProps,
|
|
275
296
|
className: clsx("group w-full", containerClassName)
|
|
276
297
|
};
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
} else
|
|
282
|
-
let
|
|
283
|
-
if ($[
|
|
284
|
-
|
|
298
|
+
$[87] = containerClassName;
|
|
299
|
+
$[88] = isSearchable;
|
|
300
|
+
$[89] = labelProps;
|
|
301
|
+
$[90] = t9;
|
|
302
|
+
} else t9 = $[90];
|
|
303
|
+
let t10;
|
|
304
|
+
if ($[91] !== as || $[92] !== className || $[93] !== collapseAfter || $[94] !== customTrigger || $[95] !== dialogTriggerProps || $[96] !== error || $[97] !== fieldProps || $[98] !== headerProps || $[99] !== hideDropdownIcon || $[100] !== inputClassName || $[101] !== isClearable || $[102] !== isDirty || $[103] !== isDisabled || $[104] !== isRequired || $[105] !== isSearchable || $[106] !== leadingContent || $[107] !== onBlur || $[108] !== placeholder || $[109] !== ref || $[110] !== selectedTagsType || $[111] !== showSelectionContent || $[112] !== size || $[113] !== trailingContent || $[114] !== variant) {
|
|
305
|
+
t10 = customTrigger ? /* @__PURE__ */ jsx(DialogTrigger, {
|
|
285
306
|
...dialogTriggerProps,
|
|
286
307
|
children: /* @__PURE__ */ jsx("div", {
|
|
287
308
|
...fieldProps,
|
|
@@ -315,35 +336,35 @@ var SelectDesktop = (t0) => {
|
|
|
315
336
|
fieldProps,
|
|
316
337
|
headerProps
|
|
317
338
|
});
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
338
|
-
$[
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
} else
|
|
344
|
-
let
|
|
345
|
-
if ($[
|
|
346
|
-
|
|
339
|
+
$[91] = as;
|
|
340
|
+
$[92] = className;
|
|
341
|
+
$[93] = collapseAfter;
|
|
342
|
+
$[94] = customTrigger;
|
|
343
|
+
$[95] = dialogTriggerProps;
|
|
344
|
+
$[96] = error;
|
|
345
|
+
$[97] = fieldProps;
|
|
346
|
+
$[98] = headerProps;
|
|
347
|
+
$[99] = hideDropdownIcon;
|
|
348
|
+
$[100] = inputClassName;
|
|
349
|
+
$[101] = isClearable;
|
|
350
|
+
$[102] = isDirty;
|
|
351
|
+
$[103] = isDisabled;
|
|
352
|
+
$[104] = isRequired;
|
|
353
|
+
$[105] = isSearchable;
|
|
354
|
+
$[106] = leadingContent;
|
|
355
|
+
$[107] = onBlur;
|
|
356
|
+
$[108] = placeholder;
|
|
357
|
+
$[109] = ref;
|
|
358
|
+
$[110] = selectedTagsType;
|
|
359
|
+
$[111] = showSelectionContent;
|
|
360
|
+
$[112] = size;
|
|
361
|
+
$[113] = trailingContent;
|
|
362
|
+
$[114] = variant;
|
|
363
|
+
$[115] = t10;
|
|
364
|
+
} else t10 = $[115];
|
|
365
|
+
let t11;
|
|
366
|
+
if ($[116] !== ignoreTriggerWidth || $[117] !== isOpen || $[118] !== isSearchable || $[119] !== popoverCva || $[120] !== popoverWidth || $[121] !== props || $[122] !== selectPopoverCva || $[123] !== setIsOpen || $[124] !== showPopover) {
|
|
367
|
+
t11 = (!isSearchable || showPopover) && /* @__PURE__ */ jsx(Popover, {
|
|
347
368
|
triggerRef,
|
|
348
369
|
isOpen,
|
|
349
370
|
onOpenChange: setIsOpen,
|
|
@@ -356,61 +377,61 @@ var SelectDesktop = (t0) => {
|
|
|
356
377
|
autoFocus: !isSearchable
|
|
357
378
|
})
|
|
358
379
|
});
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
} else
|
|
370
|
-
let
|
|
371
|
-
if ($[
|
|
372
|
-
|
|
380
|
+
$[116] = ignoreTriggerWidth;
|
|
381
|
+
$[117] = isOpen;
|
|
382
|
+
$[118] = isSearchable;
|
|
383
|
+
$[119] = popoverCva;
|
|
384
|
+
$[120] = popoverWidth;
|
|
385
|
+
$[121] = props;
|
|
386
|
+
$[122] = selectPopoverCva;
|
|
387
|
+
$[123] = setIsOpen;
|
|
388
|
+
$[124] = showPopover;
|
|
389
|
+
$[125] = t11;
|
|
390
|
+
} else t11 = $[125];
|
|
391
|
+
let t12;
|
|
392
|
+
if ($[126] !== as || $[127] !== formFieldProps || $[128] !== onFocusCapture || $[129] !== onMouseEnter || $[130] !== t10 || $[131] !== t11 || $[132] !== t9) {
|
|
393
|
+
t12 = /* @__PURE__ */ jsxs(FormField, {
|
|
373
394
|
...formFieldProps,
|
|
374
|
-
...
|
|
395
|
+
...t9,
|
|
375
396
|
as,
|
|
376
397
|
onMouseEnter,
|
|
377
398
|
onFocusCapture,
|
|
378
399
|
ref: wrapperRef,
|
|
379
|
-
children: [
|
|
400
|
+
children: [t10, t11]
|
|
380
401
|
});
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else
|
|
390
|
-
let
|
|
391
|
-
if ($[
|
|
392
|
-
|
|
393
|
-
...
|
|
394
|
-
children:
|
|
402
|
+
$[126] = as;
|
|
403
|
+
$[127] = formFieldProps;
|
|
404
|
+
$[128] = onFocusCapture;
|
|
405
|
+
$[129] = onMouseEnter;
|
|
406
|
+
$[130] = t10;
|
|
407
|
+
$[131] = t11;
|
|
408
|
+
$[132] = t9;
|
|
409
|
+
$[133] = t12;
|
|
410
|
+
} else t12 = $[133];
|
|
411
|
+
let t13;
|
|
412
|
+
if ($[134] !== WrapperComponent || $[135] !== t12 || $[136] !== t8) {
|
|
413
|
+
t13 = /* @__PURE__ */ jsx(WrapperComponent, {
|
|
414
|
+
...t8,
|
|
415
|
+
children: t12
|
|
395
416
|
});
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
} else
|
|
401
|
-
let
|
|
402
|
-
if ($[
|
|
403
|
-
|
|
417
|
+
$[134] = WrapperComponent;
|
|
418
|
+
$[135] = t12;
|
|
419
|
+
$[136] = t8;
|
|
420
|
+
$[137] = t13;
|
|
421
|
+
} else t13 = $[137];
|
|
422
|
+
let t14;
|
|
423
|
+
if ($[138] !== as || $[139] !== error || $[140] !== t13) {
|
|
424
|
+
t14 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
404
425
|
as,
|
|
405
426
|
error,
|
|
406
|
-
children:
|
|
427
|
+
children: t13
|
|
407
428
|
});
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
} else
|
|
413
|
-
return
|
|
429
|
+
$[138] = as;
|
|
430
|
+
$[139] = error;
|
|
431
|
+
$[140] = t13;
|
|
432
|
+
$[141] = t14;
|
|
433
|
+
} else t14 = $[141];
|
|
434
|
+
return t14;
|
|
414
435
|
};
|
|
415
436
|
function _temp(item) {
|
|
416
437
|
return !item.isSelectAllItem;
|