@epam/ai-dial-ui-kit 0.14.0-dev.32 → 0.14.0-dev.33

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 (33) hide show
  1. package/dist/CHANGELOG.md +9 -0
  2. package/dist/DateCellRenderer-B41xNX7a.cjs +1 -0
  3. package/dist/components/New/Dropdown/Dropdown.js +170 -189
  4. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +62 -104
  5. package/dist/components/New/Dropdown/constants.js +19 -26
  6. package/dist/components/New/Dropdown/item-mark.js +6 -0
  7. package/dist/components/New/MenuItem/MenuItem.js +108 -0
  8. package/dist/components/New/MenuItem/constants.js +16 -0
  9. package/dist/components/New/Select/Select.js +218 -229
  10. package/dist/components/New/Select/SelectSubMenuItem.js +54 -71
  11. package/dist/components/New/Select/constants.js +22 -37
  12. package/dist/components/New/constants/overlay.js +11 -7
  13. package/dist/components-manifest.json +143 -4
  14. package/dist/dial-ui-kit.cjs +2 -2
  15. package/dist/dial-ui-kit.js +247 -243
  16. package/dist/grid.cjs +1 -1
  17. package/dist/index.css +1 -1
  18. package/dist/src/components/New/Dropdown/Dropdown.d.ts +10 -0
  19. package/dist/src/components/New/Dropdown/constants.d.ts +5 -4
  20. package/dist/src/components/New/Dropdown/item-mark.d.ts +15 -0
  21. package/dist/src/components/New/MenuItem/MenuItem.d.ts +68 -0
  22. package/dist/src/components/New/MenuItem/constants.d.ts +5 -0
  23. package/dist/src/components/New/Select/Select.d.ts +14 -2
  24. package/dist/src/components/New/Select/SelectSubMenuItem.d.ts +3 -0
  25. package/dist/src/components/New/Select/constants.d.ts +12 -5
  26. package/dist/src/components/New/constants/overlay.d.ts +7 -0
  27. package/dist/src/index.d.ts +3 -0
  28. package/dist/src/models/dropdown.d.ts +17 -1
  29. package/dist/src/models/select.d.ts +6 -0
  30. package/dist/src/types/menu-item.d.ts +21 -0
  31. package/dist/types/menu-item.js +4 -0
  32. package/package.json +1 -1
  33. package/dist/DateCellRenderer-CKFfW-Hf.cjs +0 -1
@@ -1,233 +1,243 @@
1
- import { jsx as l, jsxs as d, Fragment as _e } from "react/jsx-runtime";
2
- import { IconChevronDown as je } from "@tabler/icons-react";
3
- import { useId as Ke, useState as j, useCallback as u, useMemo as h, useEffect as ze, useImperativeHandle as He } from "react";
1
+ import { jsx as l, jsxs as S, Fragment as Be } from "react/jsx-runtime";
2
+ import { IconChevronDown as _e } from "@tabler/icons-react";
3
+ import { useId as je, useState as _, useCallback as f, useMemo as m, useEffect as Ke, useImperativeHandle as ze } from "react";
4
4
  import { Checkbox as Ue } from "../Checkbox/Checkbox.js";
5
- import { CheckboxBox as Ve } from "../Checkbox/CheckboxBox.js";
6
- import { Dropdown as qe } from "../Dropdown/Dropdown.js";
7
- import { EllipsisTooltip as le } from "../EllipsisTooltip/EllipsisTooltip.js";
8
- import { DialIcon as te } from "../../Icon/Icon.js";
9
- import { ErrorText as Ge, CaptionText as Qe } from "../CaptionText/CaptionText.js";
10
- import { GhostIconButton as Re } from "../IconButton/IconButtonWrappers.js";
11
- import { Input as ne } from "../Input/Input.js";
12
- import { Label as We } from "../Label/Label.js";
13
- import { DialNoDataContent as Ze } from "../../NoDataContent/NoDataContent.js";
14
- import { DIAL_KIT_ICON_STROKE as Je } from "../constants/icon.js";
15
- import { DIAL_ICON_SIZE as ae } from "../../../constants/icon.js";
16
- import { ElementSize as D } from "../../../types/size.js";
17
- import { resolveAccessibleName as se } from "../../../utils/accessible-name.js";
18
- import { mergeClasses as f } from "../../../utils/merge-classes.js";
19
- import { MultiSelectTags as Xe } from "./MultiSelectTags.js";
20
- import { SelectSubMenuItem as Ye } from "./SelectSubMenuItem.js";
21
- import { dropdownMenuMaxHeight as Pe, selectFieldIconClassName as el, selectListWidthClassName as ll, selectOverlayBaseClassName as tl, selectSearchThreshold as nl, selectSearchIcon as al, selectCloseIcon as sl, selectOptionBaseClassName as K, selectEmptyStateIcon as rl, selectOptionDisabledClassName as re, selectOptionSelectedClassName as il, selectOptionCheckIcon as ol } from "./constants.js";
22
- const Fl = ({
23
- options: s,
5
+ import { Dropdown as Ve } from "../Dropdown/Dropdown.js";
6
+ import { EllipsisTooltip as qe } from "../EllipsisTooltip/EllipsisTooltip.js";
7
+ import { ErrorText as Ge, CaptionText as He } from "../CaptionText/CaptionText.js";
8
+ import { GhostIconButton as Qe } from "../IconButton/IconButtonWrappers.js";
9
+ import { Input as te } from "../Input/Input.js";
10
+ import { Label as Re } from "../Label/Label.js";
11
+ import { DialNoDataContent as We } from "../../NoDataContent/NoDataContent.js";
12
+ import { DIAL_KIT_ICON_STROKE as Ze } from "../constants/icon.js";
13
+ import { DIAL_ICON_SIZE as ne } from "../../../constants/icon.js";
14
+ import { MenuItem as re } from "../MenuItem/MenuItem.js";
15
+ import { MenuItemMark as j } from "../../../types/menu-item.js";
16
+ import { ElementSize as O } from "../../../types/size.js";
17
+ import { resolveAccessibleName as ae } from "../../../utils/accessible-name.js";
18
+ import { mergeClasses as p } from "../../../utils/merge-classes.js";
19
+ import { MultiSelectTags as Je } from "./MultiSelectTags.js";
20
+ import { SelectSubMenuItem as Xe } from "./SelectSubMenuItem.js";
21
+ import { selectFieldIconClassName as Ye, selectListWidthClassName as Pe, selectOverlayBaseClassName as el, selectSearchThreshold as ll, selectSearchIcon as tl, selectCloseIcon as nl, selectOptionBaseClassName as rl, selectOptionsScrollClassName as al, selectEmptyStateIcon as il } from "./constants.js";
22
+ const Al = ({
23
+ options: a,
24
24
  multiple: n = !1,
25
25
  id: ie,
26
26
  value: A,
27
- defaultValue: oe,
28
- size: z = D.Standard,
29
- prefix: H,
27
+ defaultValue: se,
28
+ size: K = O.Standard,
29
+ prefix: z,
30
30
  customSelectedValue: U,
31
- placeholder: ce = "Select...",
31
+ placeholder: oe = "Select...",
32
32
  labelProps: g,
33
33
  error: V,
34
- caption: de,
34
+ caption: ce,
35
35
  ariaLabel: q,
36
- searchable: k = !1,
37
- searchSize: fe = D.Standard,
38
- searchPlaceholder: G,
39
- selectAll: me = !1,
40
- invalid: ue,
41
- selectAllLabel: he = "Select all",
42
- emptyStateTitle: pe = "No options available",
43
- emptyStateDescription: be,
44
- emptyStateIcon: xe,
45
- disabled: x = !1,
46
- className: Ne,
47
- fieldClassName: ve,
48
- listClassName: Se,
49
- closable: F = !1,
50
- header: C,
51
- footer: w,
52
- onClose: Q,
53
- onChange: R,
54
- dismissRef: ge,
55
- onFooterClick: W,
56
- open: Z,
57
- onOpenChange: J,
58
- onSearchQueryChange: X,
59
- customMultiSelectTagsRenderer: Y
36
+ searchable: G = !1,
37
+ searchSize: de = O.Standard,
38
+ searchPlaceholder: H,
39
+ selectAll: fe = !1,
40
+ invalid: me,
41
+ selectAllLabel: ue = "Select all",
42
+ selectedOptionMark: Q = j.Tint,
43
+ emptyStateTitle: he = "No options available",
44
+ emptyStateDescription: pe,
45
+ emptyStateIcon: be,
46
+ disabled: b = !1,
47
+ className: ve,
48
+ fieldClassName: Ce,
49
+ listClassName: Ne,
50
+ closable: D = !1,
51
+ header: x,
52
+ footer: I,
53
+ onClose: R,
54
+ onChange: W,
55
+ dismissRef: Se,
56
+ onFooterClick: Z,
57
+ open: J,
58
+ onOpenChange: X,
59
+ onSearchQueryChange: Y,
60
+ customMultiSelectTagsRenderer: P
60
61
  }) => {
61
- const Ce = Ke(), p = ie || Ce, P = `list-${p}`, ee = z === D.Small, [we, Ie] = j(!1), T = Z !== void 0, m = T ? !!Z : we, c = u(
62
+ const ge = je(), u = ie || ge, ee = `list-${u}`, le = K === O.Small, [xe, Ie] = _(!1), T = J !== void 0, d = T ? !!J : xe, c = f(
62
63
  (e) => {
63
- T || Ie(e), J?.(e);
64
+ T || Ie(e), X?.(e);
64
65
  },
65
- [T, J]
66
- ), [b, ye] = j(""), E = u(
66
+ [T, X]
67
+ ), [h, we] = _(""), F = f(
67
68
  (e) => {
68
- e !== b && (ye(e || ""), X?.(e || ""));
69
+ e !== h && (we(e || ""), Y?.(e || ""));
69
70
  },
70
- [X, b]
71
- ), L = A !== void 0, [Oe, De] = j(oe), N = L ? A : Oe, a = h(() => n ? Array.isArray(N) ? N : [] : typeof N == "string" ? [N] : [], [N, n]), I = h(() => {
72
- const e = b.trim().toLowerCase();
73
- return e ? s.filter((t) => t.label.toLowerCase().includes(e)) : s;
74
- }, [s, b]);
75
- ze(() => {
76
- m || E("");
77
- }, [m, E]);
78
- const o = u(
71
+ [Y, h]
72
+ ), L = A !== void 0, [ye, ke] = _(se), v = L ? A : ye, r = m(() => n ? Array.isArray(v) ? v : [] : typeof v == "string" ? [v] : [], [v, n]), w = m(() => {
73
+ const e = h.trim().toLowerCase();
74
+ return e ? a.filter((t) => t.label.toLowerCase().includes(e)) : a;
75
+ }, [a, h]);
76
+ Ke(() => {
77
+ d || F("");
78
+ }, [d, F]);
79
+ const o = f(
79
80
  (e) => {
80
- L || De(e), R?.(e);
81
+ L || ke(e), W?.(e);
81
82
  },
82
- [L, R]
83
- ), B = u(
83
+ [L, W]
84
+ ), E = f(
84
85
  (e) => {
85
86
  if (n) {
86
- const t = new Set(a);
87
+ const t = new Set(r);
87
88
  t.has(e) ? t.delete(e) : t.add(e), o(Array.from(t));
88
89
  return;
89
90
  }
90
91
  o(e), c(!1);
91
92
  },
92
- [n, o, c, a]
93
- ), M = u(
93
+ [n, o, c, r]
94
+ ), M = f(
94
95
  (e, t) => {
95
96
  if (e.stopPropagation(), !n) {
96
97
  o("");
97
98
  return;
98
99
  }
99
- const Me = a.filter(($e) => $e !== t);
100
+ const Me = r.filter(($e) => $e !== t);
100
101
  o(Me);
101
102
  },
102
- [n, a, o]
103
- ), i = h(
104
- () => I.filter((e) => !e.disabled),
105
- [I]
106
- ), $ = h(
107
- () => i.filter((e) => a.includes(e.value)).length,
108
- [i, a]
109
- ), { allSelectedInFiltered: _, someSelectedInFiltered: Ae } = h(() => {
110
- const e = i.length > 0 && $ === i.length;
103
+ [n, r, o]
104
+ ), s = m(
105
+ () => w.filter((e) => !e.disabled),
106
+ [w]
107
+ ), $ = m(
108
+ () => s.filter((e) => r.includes(e.value)).length,
109
+ [s, r]
110
+ ), { allSelectedInFiltered: B, someSelectedInFiltered: Oe } = m(() => {
111
+ const e = s.length > 0 && $ === s.length;
111
112
  return {
112
113
  allSelectedInFiltered: e,
113
114
  someSelectedInFiltered: $ > 0 && !e
114
115
  };
115
- }, [i, $]), ke = u(() => {
116
- if (!(!n || i.length === 0))
117
- if (_) {
118
- const e = new Set(i.map((t) => t.value));
119
- o(a.filter((t) => !e.has(t)));
116
+ }, [s, $]), Ae = f(() => {
117
+ if (!(!n || s.length === 0))
118
+ if (B) {
119
+ const e = new Set(s.map((t) => t.value));
120
+ o(r.filter((t) => !e.has(t)));
120
121
  } else {
121
- const e = new Set(a);
122
- i.forEach((t) => e.add(t.value)), o(Array.from(e));
122
+ const e = new Set(r);
123
+ s.forEach((t) => e.add(t.value)), o(Array.from(e));
123
124
  }
124
125
  }, [
125
- _,
126
+ B,
126
127
  n,
127
- i,
128
- a,
129
- o
130
- ]), y = a.length > 0, O = !n && y ? a[0] : void 0, r = h(
131
- () => O ? s.find((e) => e.value === O) ?? s.flatMap((e) => e.children ?? []).find((e) => e.value === O) : void 0,
132
- [s, O]
133
- ), v = r ? H ? `${H} ${r.label}` : r.label : void 0, S = h(() => n ? y ? /* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1", children: Y?.(
134
128
  s,
129
+ r,
130
+ o
131
+ ]), y = r.length > 0, k = !n && y ? r[0] : void 0, i = m(
132
+ () => k ? a.find((e) => e.value === k) ?? a.flatMap((e) => e.children ?? []).find((e) => e.value === k) : void 0,
133
+ [a, k]
134
+ ), C = i ? z ? `${z} ${i.label}` : i.label : void 0, N = m(() => n ? y ? /* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1", children: P?.(
135
135
  a,
136
+ r,
136
137
  M
137
138
  ) ?? /* @__PURE__ */ l(
138
- Xe,
139
+ Je,
139
140
  {
140
- options: s,
141
- selectedValues: a,
141
+ options: a,
142
+ selectedValues: r,
142
143
  handleRemoveTag: M
143
144
  }
144
- ) }) : null : !r || !r.labelNode && !r.description ? null : /* @__PURE__ */ d("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
145
+ ) }) : null : !i || !i.labelNode && !i.description ? null : /* @__PURE__ */ S("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
145
146
  /* @__PURE__ */ l(
146
- le,
147
+ qe,
147
148
  {
148
- text: r.labelNode ?? v
149
+ text: i.labelNode ?? C
149
150
  }
150
151
  ),
151
- r.description && /* @__PURE__ */ l("span", { className: "truncate text-secondary dial-tiny-text", children: r.description })
152
+ i.description && /* @__PURE__ */ l("span", { className: "truncate text-secondary dial-tiny-text", children: i.description })
152
153
  ] }), [
153
- Y,
154
+ P,
154
155
  M,
155
156
  y,
156
157
  n,
157
- s,
158
- v,
159
158
  a,
160
- r
161
- ]), Fe = n || S ? "" : v || (U && A ? U : ""), Te = typeof g?.label == "string" ? g.label : void 0, Ee = S ? [
162
- se(q, Te),
163
- n ? a.map((e) => s.find((t) => t.value === e)?.label ?? e).join(", ") : v
164
- ].filter(Boolean).join(", ") || void 0 : se(q);
165
- He(ge, () => ({
159
+ C,
160
+ r,
161
+ i
162
+ ]), De = n || N ? "" : C || (U && A ? U : ""), Te = typeof g?.label == "string" ? g.label : void 0, Fe = N ? [
163
+ ae(q, Te),
164
+ n ? r.map((e) => a.find((t) => t.value === e)?.label ?? e).join(", ") : C
165
+ ].filter(Boolean).join(", ") || void 0 : ae(q);
166
+ ze(Se, () => ({
166
167
  dismiss: () => {
167
168
  c(!1);
168
169
  }
169
170
  }));
170
- const Le = u(
171
+ const Le = f(
171
172
  (e) => {
172
- x || (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), m || c(!0));
173
+ b || (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), d || c(!0));
173
174
  },
174
- [x, m, c]
175
- ), Be = () => /* @__PURE__ */ d(
175
+ [b, d, c]
176
+ ), Ee = () => /* @__PURE__ */ S(
176
177
  "div",
177
178
  {
178
- id: P,
179
+ id: ee,
179
180
  role: "listbox",
180
181
  "aria-multiselectable": n || void 0,
181
- className: tl,
182
+ className: el,
182
183
  children: [
183
- C && /* @__PURE__ */ l(_e, { children: typeof C == "function" ? C() : C }),
184
- (k || F) && (s.length > nl || !!b) && /* @__PURE__ */ d("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
185
- k && /* @__PURE__ */ l(
186
- ne,
184
+ x && /* @__PURE__ */ l(Be, { children: typeof x == "function" ? x() : x }),
185
+ (G || D) && (a.length > ll || !!h) && /* @__PURE__ */ S("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
186
+ G && /* @__PURE__ */ l(
187
+ te,
187
188
  {
188
- id: `search-${p}`,
189
- size: fe,
190
- placeholder: G,
191
- "aria-label": G || "Search options",
192
- onChange: (e) => E(e),
193
- value: b,
194
- iconBefore: al,
189
+ id: `search-${u}`,
190
+ size: de,
191
+ placeholder: H,
192
+ "aria-label": H || "Search options",
193
+ onChange: (e) => F(e),
194
+ value: h,
195
+ iconBefore: tl,
195
196
  containerClassName: "w-full"
196
197
  }
197
198
  ),
198
- F && /* @__PURE__ */ l(
199
- Re,
199
+ D && /* @__PURE__ */ l(
200
+ Qe,
200
201
  {
201
202
  "aria-label": "Close select",
202
203
  className: "shrink-0",
203
- size: D.Small,
204
- icon: sl,
204
+ size: O.Small,
205
+ icon: nl,
205
206
  onClick: (e) => {
206
- Q?.(e), c(!1);
207
+ R?.(e), c(!1);
207
208
  }
208
209
  }
209
210
  )
210
211
  ] }),
211
- n && me && i.length > 0 && /* @__PURE__ */ l("div", { className: f(K, "mt-2"), children: /* @__PURE__ */ l(
212
+ n && fe && s.length > 0 && /* @__PURE__ */ l("div", { className: p(rl, "mt-2"), children: /* @__PURE__ */ l(
212
213
  Ue,
213
214
  {
214
- id: `${p}-selectAll`,
215
- labelProps: { label: he },
216
- isSelected: _,
217
- isIndeterminate: Ae,
218
- onChange: ke
215
+ id: `${u}-selectAll`,
216
+ labelProps: { label: ue },
217
+ isSelected: B,
218
+ isIndeterminate: Oe,
219
+ onChange: Ae
219
220
  }
220
221
  ) }),
221
- I.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-3", children: /* @__PURE__ */ l(
222
- Ze,
222
+ /* @__PURE__ */ l("div", { role: "none", className: al, children: w.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-3", children: /* @__PURE__ */ l(
223
+ We,
223
224
  {
224
- icon: xe ?? rl,
225
- title: pe,
226
- description: be
225
+ icon: be ?? il,
226
+ title: he,
227
+ description: pe
227
228
  }
228
- ) }) : I.map((e) => {
229
- const t = a.includes(e.value);
230
- return n ? (
229
+ ) }) : w.map((e) => {
230
+ const t = r.includes(e.value);
231
+ return e.children?.length ? /* @__PURE__ */ l(
232
+ Xe,
233
+ {
234
+ opt: e,
235
+ selectedValues: r,
236
+ mark: n ? j.Checkbox : Q,
237
+ onSelect: E
238
+ },
239
+ e.value
240
+ ) : n ? (
231
241
  /*
232
242
  The row itself is the control: one `option` whose state rides on
233
243
  `aria-selected`, with a decorative box drawing the check. A real
@@ -235,145 +245,124 @@ const Fl = ({
235
245
  would leave the rest of the 40px rectangle inert — the design
236
246
  has the whole row selecting the option.
237
247
  */
238
- /* @__PURE__ */ d(
239
- "button",
248
+ /* @__PURE__ */ l(
249
+ re,
240
250
  {
241
- id: `${p}-${e.value}`,
242
- type: "button",
251
+ id: `${u}-${e.value}`,
243
252
  role: "option",
244
253
  "aria-selected": t,
245
254
  "aria-disabled": !!e.disabled,
246
255
  disabled: e.disabled,
247
- className: f(
248
- K,
249
- t && il,
250
- e.disabled && re
251
- ),
252
- onClick: () => B(e.value),
253
- children: [
254
- /* @__PURE__ */ l(Ve, { isSelected: t, disabled: e.disabled }),
255
- e.icon && /* @__PURE__ */ l(te, { icon: e.icon }),
256
- /* @__PURE__ */ l("span", { className: "min-w-0 flex-1 truncate text-start", children: e.labelNode ?? e.label }),
257
- e.description && /* @__PURE__ */ l("span", { className: "shrink-0 text-secondary dial-small-text", children: e.description })
258
- ]
256
+ mark: j.Checkbox,
257
+ selected: t,
258
+ icon: e.icon,
259
+ label: e.labelNode ?? e.label,
260
+ description: e.description,
261
+ rightControl: e.rightControl,
262
+ onClick: () => E(e.value)
259
263
  },
260
264
  e.value
261
265
  )
262
- ) : e.children?.length ? /* @__PURE__ */ l(
263
- Ye,
264
- {
265
- opt: e,
266
- selectedValues: a,
267
- onSelect: B
268
- },
269
- e.value
270
- ) : /* @__PURE__ */ d(
271
- "button",
266
+ ) : /* @__PURE__ */ l(
267
+ re,
272
268
  {
273
269
  role: "option",
274
- type: "button",
275
270
  "aria-selected": t,
276
271
  "aria-disabled": !!e.disabled,
277
272
  disabled: e.disabled,
278
- className: f(
279
- K,
280
- e.disabled && re
281
- ),
282
- onClick: () => !e.disabled && B(e.value),
283
- children: [
284
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2 w-full min-w-0", children: [
285
- e.icon && /* @__PURE__ */ l(te, { icon: e.icon }),
286
- /* @__PURE__ */ l(le, { text: e.labelNode ?? e.label }),
287
- e.description && /* @__PURE__ */ l("div", { className: "text-secondary dial-small-text", children: e.description })
288
- ] }),
289
- t && ol
290
- ]
273
+ mark: Q,
274
+ selected: t,
275
+ ellipsisLabel: !0,
276
+ icon: e.icon,
277
+ label: e.labelNode ?? e.label,
278
+ description: e.description,
279
+ rightControl: e.rightControl,
280
+ onClick: () => !e.disabled && E(e.value)
291
281
  },
292
282
  e.value
293
283
  );
294
- }),
295
- w && /* @__PURE__ */ l(
284
+ }) }),
285
+ I && /* @__PURE__ */ l(
296
286
  "div",
297
287
  {
298
288
  onClick: (e) => {
299
- W?.(e), W && c(!1);
289
+ Z?.(e), Z && c(!1);
300
290
  },
301
- children: typeof w == "function" ? w() : w
291
+ children: typeof I == "function" ? I() : I
302
292
  }
303
293
  )
304
294
  ]
305
295
  }
306
296
  );
307
- return /* @__PURE__ */ d("div", { className: f("flex w-full flex-col gap-2", Ne), children: [
308
- g && /* @__PURE__ */ l(We, { ...g, htmlFor: p }),
309
- /* @__PURE__ */ d("div", { className: "flex flex-col gap-1", children: [
297
+ return /* @__PURE__ */ S("div", { className: p("flex w-full flex-col gap-2", ve), children: [
298
+ g && /* @__PURE__ */ l(Re, { ...g, htmlFor: u }),
299
+ /* @__PURE__ */ S("div", { className: "flex flex-col gap-1", children: [
310
300
  /* @__PURE__ */ l(
311
- qe,
301
+ Ve,
312
302
  {
313
- open: m,
303
+ open: d,
314
304
  onOpenChange: c,
315
- disabled: x,
316
- closable: F,
317
- onClose: Q,
305
+ disabled: b,
306
+ closable: D,
307
+ onClose: R,
318
308
  placement: "bottom-start",
319
309
  allowedPlacements: ["bottom-start", "top-start"],
320
- maxDropdownHeight: k ? null : Pe,
321
- listClassName: f(ll, Se),
310
+ listClassName: p(Pe, Ne),
322
311
  className: "w-full",
323
- renderOverlay: Be,
312
+ renderOverlay: Ee,
324
313
  children: /* @__PURE__ */ l(
325
- ne,
314
+ te,
326
315
  {
327
- id: p,
328
- size: z,
329
- disabled: x,
330
- invalid: ue,
331
- value: Fe,
332
- placeholder: S ? void 0 : ce,
316
+ id: u,
317
+ size: K,
318
+ disabled: b,
319
+ invalid: me,
320
+ value: De,
321
+ placeholder: N ? void 0 : oe,
333
322
  readOnly: !0,
334
- iconBefore: n ? void 0 : r?.icon,
323
+ iconBefore: n ? void 0 : i?.icon,
335
324
  iconAfter: /* @__PURE__ */ l(
336
- je,
325
+ _e,
337
326
  {
338
- size: ee ? ae.SM : ae.MD,
339
- stroke: Je,
327
+ size: le ? ne.SM : ne.MD,
328
+ stroke: Ze,
340
329
  "aria-hidden": "true",
341
- className: f(
342
- el,
343
- m && "rotate-180"
330
+ className: p(
331
+ Ye,
332
+ d && "rotate-180"
344
333
  )
345
334
  }
346
335
  ),
347
336
  role: "combobox",
348
337
  "aria-haspopup": "listbox",
349
- "aria-expanded": m,
350
- "aria-controls": P,
338
+ "aria-expanded": d,
339
+ "aria-controls": ee,
351
340
  "aria-autocomplete": "none",
352
- "aria-label": Ee,
341
+ "aria-label": Fe,
353
342
  containerClassName: "w-full",
354
- wrapperClassName: f(
355
- !x && "cursor-pointer",
343
+ wrapperClassName: p(
344
+ !b && "cursor-pointer",
356
345
  n && y && [
357
346
  "!h-auto flex-wrap py-1.5",
358
- ee ? "min-h-[24px]" : "min-h-[40px]"
347
+ le ? "min-h-[24px]" : "min-h-[40px]"
359
348
  ],
360
- ve
349
+ Ce
361
350
  ),
362
- className: f(
351
+ className: p(
363
352
  "cursor-pointer",
364
- S && "w-0 min-w-0 flex-none p-0"
353
+ N && "w-0 min-w-0 flex-none p-0"
365
354
  ),
366
355
  onKeyDown: Le,
367
- children: S
356
+ children: N
368
357
  }
369
358
  )
370
359
  }
371
360
  ),
372
361
  /* @__PURE__ */ l(Ge, { text: V }),
373
- !V && /* @__PURE__ */ l(Qe, { text: de })
362
+ !V && /* @__PURE__ */ l(He, { text: ce })
374
363
  ] })
375
364
  ] });
376
365
  };
377
366
  export {
378
- Fl as Select
367
+ Al as Select
379
368
  };