@epam/ai-dial-ui-kit 0.14.0-dev.40 → 0.14.0-dev.41

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