laif-ds 0.2.78 → 0.2.80

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 (48) hide show
  1. package/dist/CHANGELOG.md +25 -0
  2. package/dist/_virtual/index3.js +5 -5
  3. package/dist/_virtual/index4.js +5 -5
  4. package/dist/_virtual/index5.js +4 -4
  5. package/dist/agent-docs/adoption-report.json +10 -10
  6. package/dist/agent-docs/components/AppEditor.md +4 -4
  7. package/dist/agent-docs/components/AppSelect.md +46 -0
  8. package/dist/agent-docs/manifest.json +5 -3
  9. package/dist/components/editor/editor-ui/content-editable.js +15 -8
  10. package/dist/components/ui/app-editor.js +88 -76
  11. package/dist/components/ui/app-select.js +232 -143
  12. package/dist/components/ui/date-picker.js +184 -153
  13. package/dist/components/ui/markdown-renderer.js +40 -30
  14. package/dist/index.d.ts +3 -1
  15. package/dist/node_modules/comma-separated-tokens/index.js +16 -5
  16. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +39 -0
  17. package/dist/node_modules/entities/dist/esm/decode.js +246 -0
  18. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +8 -0
  19. package/dist/node_modules/eventemitter3/index.js +1 -1
  20. package/dist/node_modules/hast-util-from-parse5/lib/index.js +146 -0
  21. package/dist/node_modules/hast-util-parse-selector/lib/index.js +21 -0
  22. package/dist/node_modules/hast-util-raw/lib/index.js +218 -0
  23. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  24. package/dist/node_modules/hast-util-to-parse5/lib/index.js +119 -0
  25. package/dist/node_modules/hastscript/lib/create-h.js +113 -0
  26. package/dist/node_modules/hastscript/lib/index.js +9 -0
  27. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +45 -0
  28. package/dist/node_modules/parse5/dist/common/doctype.js +99 -0
  29. package/dist/node_modules/parse5/dist/common/error-codes.js +8 -0
  30. package/dist/node_modules/parse5/dist/common/foreign-content.js +211 -0
  31. package/dist/node_modules/parse5/dist/common/html.js +251 -0
  32. package/dist/node_modules/parse5/dist/common/token.js +15 -0
  33. package/dist/node_modules/parse5/dist/common/unicode.js +74 -0
  34. package/dist/node_modules/parse5/dist/parser/formatting-element-list.js +85 -0
  35. package/dist/node_modules/parse5/dist/parser/index.js +2272 -0
  36. package/dist/node_modules/parse5/dist/parser/open-element-stack.js +241 -0
  37. package/dist/node_modules/parse5/dist/serializer/index.js +3 -0
  38. package/dist/node_modules/parse5/dist/tokenizer/index.js +1941 -0
  39. package/dist/node_modules/parse5/dist/tokenizer/preprocessor.js +89 -0
  40. package/dist/node_modules/parse5/dist/tree-adapters/default.js +163 -0
  41. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  42. package/dist/node_modules/rehype-raw/lib/index.js +13 -0
  43. package/dist/node_modules/space-separated-tokens/index.js +8 -3
  44. package/dist/node_modules/unified/lib/index.js +1 -1
  45. package/dist/node_modules/vfile-location/lib/index.js +43 -0
  46. package/dist/node_modules/web-namespaces/index.js +12 -0
  47. package/dist/styles.v3.css +1 -1
  48. package/package.json +2 -1
@@ -1,149 +1,197 @@
1
1
  "use client";
2
- import { jsxs as o, jsx as l } from "react/jsx-runtime";
3
- import { useState as v, useRef as T, useCallback as B, useMemo as S, useEffect as de, useLayoutEffect as ce } from "react";
4
- import { designTokens as i } from "../design-tokens.js";
5
- import { Badge as ue } from "./badge.js";
6
- import { Command as me, CommandInput as fe, CommandList as pe, CommandEmpty as he, CommandGroup as E, CommandItem as F } from "./command.js";
7
- import { Label as ge } from "./label.js";
8
- import { cn as z } from "../../lib/utils.js";
9
- import { Checkbox as ve } from "./checkbox.js";
2
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
3
+ import { useState as S, useRef as X, useCallback as k, useMemo as b, useEffect as pe, useLayoutEffect as ge } from "react";
4
+ import { designTokens as m } from "../design-tokens.js";
5
+ import { Badge as ve } from "./badge.js";
6
+ import { Command as be, CommandInput as xe, CommandList as Ce, CommandEmpty as ye, CommandGroup as $, CommandItem as _ } from "./command.js";
7
+ import { Label as we } from "./label.js";
8
+ import { cn as C } from "../../lib/utils.js";
9
+ import { Button as Ne } from "./button.js";
10
+ import { Checkbox as Se } from "./checkbox.js";
10
11
  import { Icon as A } from "./icon.js";
11
- import { Popover as be, PopoverTrigger as Ce, PopoverContent as xe } from "./popover.js";
12
- import ye from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
13
- const Ne = {
14
- sm: i.sizes.sm,
15
- default: i.sizes.default,
16
- lg: i.sizes.lg
12
+ import { Popover as ke, PopoverTrigger as Ae, PopoverContent as De } from "./popover.js";
13
+ import ze from "../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
14
+ const Pe = {
15
+ sm: m.sizes.sm,
16
+ default: m.sizes.default,
17
+ lg: m.sizes.lg
17
18
  };
18
- function Ve(O) {
19
+ function Ge(y) {
19
20
  const {
20
- multiple: t = !1,
21
- options: m,
22
- value: G,
23
- defaultValue: W,
24
- renderValue: g,
25
- onValueChange: b,
26
- onClear: C,
27
- placeholder: X = "Seleziona...",
28
- emptyPlaceholder: $ = "Nessun risultato",
29
- searchPlaceholder: q = "Cerca...",
30
- addItemPlaceholder: H = "Aggiungi",
31
- itemCountMessage: J = (e) => `${e} elementi selezionati`,
32
- maxSelectedMessage: K = (e) => `Puoi selezionare fino a ${e} elementi`,
33
- label: k,
34
- className: Q = "",
35
- labelClassName: U = "",
36
- wrpClassName: Y = "",
37
- searchable: D = !1,
38
- creatable: Z = !1,
39
- noGroupLabel: L = "Nessun gruppo",
40
- maxSelected: c,
41
- showChipsInsteadOfCount: _ = !1,
42
- disabled: x,
43
- size: ee = "default",
44
- isSingleSelectClearable: le = !1,
45
- id: re,
46
- "data-testid": ae
47
- } = O, [h, y] = v(!1), [f, N] = v(""), w = T(null), I = T(null), [j, te] = v(0), P = Object.prototype.hasOwnProperty.call(O, "value"), [ne, se] = v(W), d = P ? G : ne, p = B(
21
+ multiple: r = !1,
22
+ options: d,
23
+ value: H,
24
+ defaultValue: J,
25
+ renderValue: w,
26
+ onValueChange: D,
27
+ onClear: z,
28
+ placeholder: K = "Seleziona...",
29
+ emptyPlaceholder: Q = "Nessun risultato",
30
+ searchPlaceholder: U = "Cerca...",
31
+ addItemPlaceholder: Y = "Aggiungi",
32
+ itemCountMessage: Z = (e) => `${e} elementi selezionati`,
33
+ maxSelectedMessage: ee = (e) => `Puoi selezionare fino a ${e} elementi`,
34
+ label: T,
35
+ className: le = "",
36
+ labelClassName: te = "",
37
+ wrpClassName: ae = "",
38
+ searchable: P = !1,
39
+ creatable: re = !1,
40
+ noGroupLabel: q = "Nessun gruppo",
41
+ maxSelected: s,
42
+ showChipsInsteadOfCount: ne = !1,
43
+ disabled: I,
44
+ size: se = "default",
45
+ isSingleSelectClearable: oe = !1,
46
+ id: ie,
47
+ "data-testid": ce
48
+ } = y, N = y.multiple ? y.selectableAll ?? !0 : !1, [x, L] = S(!1), [h, O] = S(""), V = X(null), M = X(null), [B, de] = S(0), j = Object.prototype.hasOwnProperty.call(y, "value"), [ue, fe] = S(J), p = j ? H : ue, u = k(
48
49
  (e) => {
49
- P || se(e), b?.(
50
- t ? Array.isArray(e) ? e : [] : Array.isArray(e) ? e[0] : e
50
+ j || fe(e), D?.(
51
+ r ? Array.isArray(e) ? e : [] : Array.isArray(e) ? e[0] : e
51
52
  );
52
53
  },
53
- [P, t, b]
54
- ), n = S(() => t ? Array.isArray(d) ? d : [] : d != null ? [d] : [], [d, t]), u = S(() => {
55
- const e = m.filter((a) => n.includes(a.value));
56
- if (t) {
57
- const a = n.filter((r) => !e.find((s) => s.value === r)).map((r) => ({ value: r, label: r }));
58
- return [...e, ...a];
54
+ [j, r, D]
55
+ ), n = b(() => r ? Array.isArray(p) ? p : [] : p != null ? [p] : [], [p, r]), g = b(() => {
56
+ const e = d.filter((t) => n.includes(t.value));
57
+ if (r) {
58
+ const t = n.filter((l) => !e.find((o) => o.value === l)).map((l) => ({ value: l, label: l }));
59
+ return [...e, ...t];
59
60
  } else if (n.length && !e.length)
60
61
  return [{ value: n[0], label: n[0] }];
61
62
  return e;
62
- }, [m, n, t]), V = (e) => {
63
+ }, [d, n, r]), E = (e) => {
63
64
  if (!e.disabled)
64
- if (t) {
65
- const a = n.includes(e.value);
66
- if (!a && c !== void 0 && n.length >= c)
65
+ if (r) {
66
+ const t = n.includes(e.value);
67
+ if (!t && s !== void 0 && n.length >= s)
67
68
  return;
68
- p(
69
- a ? n.filter((r) => r !== e.value) : [...n, e.value]
69
+ u(
70
+ t ? n.filter((l) => l !== e.value) : [...n, e.value]
70
71
  );
71
72
  } else
72
- p(e.value), y(!1);
73
- }, M = B(() => {
74
- p(t ? [] : void 0), N(""), C && C();
75
- }, [p, C, t]), oe = S(() => {
76
- const e = m.some((a) => a.group);
77
- return m.reduce((a, r) => {
78
- const s = e ? r.group || L : "";
79
- return a[s] = a[s] || [], a[s].push(r), a;
73
+ u(e.value), L(!1);
74
+ }, G = k(() => {
75
+ u(r ? [] : void 0), O(""), z && z();
76
+ }, [u, z, r]), W = k(
77
+ (e) => {
78
+ const t = h.toLocaleLowerCase();
79
+ return t ? (typeof e.label == "string" ? e.label : String(e.value)).toLocaleLowerCase().includes(t) : !0;
80
+ },
81
+ [h]
82
+ ), f = b(
83
+ () => d.filter((e) => !e.disabled && W(e)),
84
+ [d, W]
85
+ ), R = b(
86
+ () => f.filter((e) => n.includes(e.value)).length,
87
+ [f, n]
88
+ ), v = b(() => {
89
+ if (R === 0) return "none";
90
+ const e = s !== void 0 && n.length >= s;
91
+ return R >= f.length || e ? "all" : "some";
92
+ }, [
93
+ R,
94
+ f.length,
95
+ n.length,
96
+ s
97
+ ]), me = k(() => {
98
+ if (!r) return;
99
+ if (v === "all") {
100
+ const l = new Set(f.map((i) => i.value)), o = new Set(
101
+ d.filter((i) => i.fixed).map((i) => i.value)
102
+ ), F = n.filter(
103
+ (i) => !l.has(i) || o.has(i)
104
+ );
105
+ u(F);
106
+ return;
107
+ }
108
+ const e = new Set(n), t = [...n];
109
+ for (const l of f)
110
+ if (!e.has(l.value)) {
111
+ if (s !== void 0 && t.length >= s) break;
112
+ t.push(l.value), e.add(l.value);
113
+ }
114
+ u(t);
115
+ }, [
116
+ r,
117
+ v,
118
+ d,
119
+ n,
120
+ f,
121
+ s,
122
+ u
123
+ ]), he = b(() => {
124
+ const e = d.some((t) => t.group);
125
+ return d.reduce((t, l) => {
126
+ const o = e ? l.group || q : "";
127
+ return t[o] = t[o] || [], t[o].push(l), t;
80
128
  }, {});
81
- }, [m, L]);
82
- return de(() => {
83
- w.current && te(w.current.getBoundingClientRect().width);
84
- }, [h, n, m]), ce(() => {
85
- if (!h) return;
129
+ }, [d, q]);
130
+ return pe(() => {
131
+ V.current && de(V.current.getBoundingClientRect().width);
132
+ }, [x, n, d]), ge(() => {
133
+ if (!x) return;
86
134
  const e = requestAnimationFrame(() => {
87
- I.current && I.current?.scrollIntoView({
135
+ M.current && M.current?.scrollIntoView({
88
136
  behavior: "instant",
89
137
  block: "center"
90
138
  });
91
139
  });
92
140
  return () => cancelAnimationFrame(e);
93
- }, [h]), /* @__PURE__ */ o("div", { className: z("flex flex-col gap-1.5", Y), children: [
94
- k && /* @__PURE__ */ l(ge, { className: U, children: k }),
95
- /* @__PURE__ */ o(
96
- be,
141
+ }, [x]), /* @__PURE__ */ c("div", { className: C("flex flex-col gap-1.5", ae), children: [
142
+ T && /* @__PURE__ */ a(we, { className: te, children: T }),
143
+ /* @__PURE__ */ c(
144
+ ke,
97
145
  {
98
- open: x ? !1 : h,
99
- onOpenChange: (e) => !x && y(e),
146
+ open: I ? !1 : x,
147
+ onOpenChange: (e) => !I && L(e),
100
148
  modal: !0,
101
149
  children: [
102
- /* @__PURE__ */ l(Ce, { asChild: !0, children: /* @__PURE__ */ o(
150
+ /* @__PURE__ */ a(Ae, { asChild: !0, children: /* @__PURE__ */ c(
103
151
  "div",
104
152
  {
105
- ref: w,
106
- id: re,
107
- "data-testid": ae,
108
- className: z(
109
- i.input.base,
110
- i.radius.default,
111
- i.focusRingWithin,
153
+ ref: V,
154
+ id: ie,
155
+ "data-testid": ce,
156
+ className: C(
157
+ m.input.base,
158
+ m.radius.default,
159
+ m.focusRingWithin,
112
160
  "flex w-full min-w-[100px] cursor-pointer items-center justify-between gap-2",
113
- h && i.activeRing,
114
- Ne[ee],
115
- x && "cursor-not-allowed opacity-50",
116
- Q
161
+ x && m.activeRing,
162
+ Pe[se],
163
+ I && "cursor-not-allowed opacity-50",
164
+ le
117
165
  ),
118
166
  children: [
119
- u.length === 0 ? /* @__PURE__ */ l("span", { className: "text-d-muted-foreground", children: X }) : t ? /* @__PURE__ */ o("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
120
- /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-nowrap gap-1 overflow-auto", children: _ ? u.map(
121
- (e) => g ? g(e) : /* @__PURE__ */ o(
122
- ue,
167
+ g.length === 0 ? /* @__PURE__ */ a("span", { className: "text-d-muted-foreground", children: K }) : r ? /* @__PURE__ */ c("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
168
+ /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-nowrap gap-1 overflow-auto", children: ne ? g.map(
169
+ (e) => w ? w(e) : /* @__PURE__ */ c(
170
+ ve,
123
171
  {
124
172
  variant: "secondary",
125
173
  className: "hover:bg-d-secondary/100 bg-d-secondary/50 border-d-border flex cursor-pointer items-center gap-1 border",
126
- onClick: (a) => {
127
- a.stopPropagation(), V(e);
174
+ onClick: (t) => {
175
+ t.stopPropagation(), E(e);
128
176
  },
129
177
  children: [
130
178
  e.label,
131
- !e.fixed && /* @__PURE__ */ l(A, { name: "X", size: "xs" })
179
+ !e.fixed && /* @__PURE__ */ a(A, { name: "X", size: "xs" })
132
180
  ]
133
181
  },
134
182
  e.value
135
183
  )
136
- ) : /* @__PURE__ */ l("div", { children: J(u.length) }) }),
137
- t && /* @__PURE__ */ l(
184
+ ) : /* @__PURE__ */ a("div", { children: Z(g.length) }) }),
185
+ r && /* @__PURE__ */ a(
138
186
  "div",
139
187
  {
140
188
  className: "border-d-input bg-d-accent cursor-pointer rounded-full p-1",
141
189
  onClick: (e) => {
142
- e.stopPropagation(), e.preventDefault(), M();
190
+ e.stopPropagation(), e.preventDefault(), G();
143
191
  },
144
192
  onMouseDown: (e) => e.preventDefault(),
145
193
  "aria-label": "Clear selection",
146
- children: /* @__PURE__ */ l(
194
+ children: /* @__PURE__ */ a(
147
195
  A,
148
196
  {
149
197
  name: "X",
@@ -153,19 +201,19 @@ function Ve(O) {
153
201
  )
154
202
  }
155
203
  )
156
- ] }) : /* @__PURE__ */ o("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
157
- /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 truncate", children: g ? g(u[0]) : typeof u[0]?.label == "string" ? /* @__PURE__ */ l("span", { children: u[0]?.label }) : u[0]?.label }),
158
- le && d !== void 0 && d !== null && /* @__PURE__ */ l(
204
+ ] }) : /* @__PURE__ */ c("div", { className: "flex h-full w-full min-w-0 items-center justify-between gap-2", children: [
205
+ /* @__PURE__ */ a("div", { className: "min-w-0 flex-1 truncate", children: w ? w(g[0]) : typeof g[0]?.label == "string" ? /* @__PURE__ */ a("span", { children: g[0]?.label }) : g[0]?.label }),
206
+ oe && p !== void 0 && p !== null && /* @__PURE__ */ a(
159
207
  "div",
160
208
  {
161
209
  role: "button",
162
210
  className: "border-d-input bg-d-accent cursor-pointer rounded-full p-1",
163
211
  onClick: (e) => {
164
- e.stopPropagation(), e.preventDefault(), M();
212
+ e.stopPropagation(), e.preventDefault(), G();
165
213
  },
166
214
  onMouseDown: (e) => e.preventDefault(),
167
215
  "aria-label": "Clear selection",
168
- children: /* @__PURE__ */ l(
216
+ children: /* @__PURE__ */ a(
169
217
  A,
170
218
  {
171
219
  name: "X",
@@ -176,76 +224,117 @@ function Ve(O) {
176
224
  }
177
225
  )
178
226
  ] }),
179
- /* @__PURE__ */ l(ye, { className: "h-4 w-4 opacity-50" })
227
+ /* @__PURE__ */ a(ze, { className: "h-4 w-4 opacity-50" })
180
228
  ]
181
229
  }
182
230
  ) }),
183
- /* @__PURE__ */ l(
184
- xe,
231
+ /* @__PURE__ */ a(
232
+ De,
185
233
  {
186
234
  className: "p-0",
187
- style: { width: j > 0 ? j : "auto" },
235
+ style: { width: B > 0 ? B : "auto" },
188
236
  align: "start",
189
237
  sideOffset: 4,
190
238
  avoidCollisions: !0,
191
239
  collisionPadding: 8,
192
- children: /* @__PURE__ */ o(
193
- me,
240
+ onOpenAutoFocus: (e) => e.preventDefault(),
241
+ children: /* @__PURE__ */ c(
242
+ be,
194
243
  {
195
- shouldFilter: D,
196
- filter: (e, a) => e.toLocaleLowerCase().includes(a.toLocaleLowerCase()) ? 1 : 0,
244
+ shouldFilter: P,
245
+ filter: (e, t) => e.toLocaleLowerCase().includes(t.toLocaleLowerCase()) ? 1 : 0,
197
246
  className: "w-full",
198
247
  children: [
199
- D && /* @__PURE__ */ l(
200
- fe,
248
+ (P || r && N) && /* @__PURE__ */ c(
249
+ "div",
201
250
  {
202
- placeholder: q,
203
- className: "placeholder:text-d-muted-foreground",
204
- value: f,
205
- onValueChange: N
251
+ className: C(
252
+ "relative",
253
+ r && N && "[&_[data-slot=command-d-input-wrapper]>svg]:hidden"
254
+ ),
255
+ children: [
256
+ P ? /* @__PURE__ */ a(
257
+ xe,
258
+ {
259
+ placeholder: U,
260
+ className: C(
261
+ "placeholder:text-d-muted-foreground",
262
+ r && N && "pl-7"
263
+ ),
264
+ value: h,
265
+ onValueChange: O
266
+ }
267
+ ) : /* @__PURE__ */ a("div", { className: "border-d-border h-9 border-b" }),
268
+ r && N && /* @__PURE__ */ a(
269
+ Ne,
270
+ {
271
+ type: "button",
272
+ variant: "ghost",
273
+ size: "sm",
274
+ disabled: f.length === 0,
275
+ "aria-label": v === "all" ? "Deselect all" : "Select all",
276
+ "aria-checked": v === "all" ? !0 : v === "some" ? "mixed" : !1,
277
+ role: "checkbox",
278
+ className: "text-d-muted-foreground hover:text-d-foreground absolute top-1/2 left-2 size-6 -translate-y-1/2 px-0",
279
+ onMouseDown: (e) => {
280
+ e.stopPropagation(), e.preventDefault();
281
+ },
282
+ onClick: (e) => {
283
+ e.stopPropagation(), e.preventDefault(), me();
284
+ },
285
+ children: /* @__PURE__ */ a(
286
+ A,
287
+ {
288
+ name: f.length === 0 ? "SquareDot" : v === "all" ? "SquareCheck" : v === "some" ? "SquareMinus" : "Square",
289
+ size: "xs"
290
+ }
291
+ )
292
+ }
293
+ )
294
+ ]
206
295
  }
207
296
  ),
208
- /* @__PURE__ */ o(pe, { className: "max-h-60 overflow-auto overscroll-contain", children: [
209
- /* @__PURE__ */ l(he, { children: $ }),
210
- Z && f && /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
211
- F,
297
+ /* @__PURE__ */ c(Ce, { className: "max-h-60 overflow-auto overscroll-contain", children: [
298
+ /* @__PURE__ */ a(ye, { children: Q }),
299
+ re && h && /* @__PURE__ */ a($, { children: /* @__PURE__ */ a(
300
+ _,
212
301
  {
213
302
  className: "cursor-pointer",
214
303
  onSelect: () => {
215
- f && (p(t ? [...n, f] : f), N(""), t || y(!1));
304
+ h && (u(r ? [...n, h] : h), O(""), r || L(!1));
216
305
  },
217
- children: /* @__PURE__ */ o("div", { className: "text-d-foreground text-xs", children: [
218
- H,
306
+ children: /* @__PURE__ */ c("div", { className: "text-d-foreground text-xs", children: [
307
+ Y,
219
308
  " “",
220
- f,
309
+ h,
221
310
  "”"
222
311
  ] })
223
312
  }
224
313
  ) }),
225
- Object.entries(oe).map(([e, a]) => /* @__PURE__ */ l(E, { heading: e || void 0, children: a.map((r) => {
226
- const s = n.includes(r.value), ie = t && c !== void 0 && !s && n.length >= c, R = r.disabled || ie;
227
- return /* @__PURE__ */ o(
228
- F,
314
+ Object.entries(he).map(([e, t]) => /* @__PURE__ */ a($, { heading: e || void 0, children: t.map((l) => {
315
+ const o = n.includes(l.value), F = r && s !== void 0 && !o && n.length >= s, i = l.disabled || F;
316
+ return /* @__PURE__ */ c(
317
+ _,
229
318
  {
230
- ref: s ? I : null,
231
- value: typeof r.label == "string" ? r.label : String(r.value),
232
- onSelect: () => !R && V(r),
233
- className: z(
319
+ ref: o ? M : null,
320
+ value: typeof l.label == "string" ? l.label : String(l.value),
321
+ onSelect: () => !i && E(l),
322
+ className: C(
234
323
  "cursor-pointer",
235
- i.dropdownItem.hover,
236
- R && "cursor-not-allowed opacity-50",
237
- !t && s && i.dropdownItem.selected
324
+ m.dropdownItem.hover,
325
+ i && "cursor-not-allowed opacity-50",
326
+ !r && o && m.dropdownItem.selected
238
327
  ),
239
328
  children: [
240
- t && /* @__PURE__ */ l(ve, { checked: s, className: "mr-1" }),
241
- typeof r.label == "string" ? /* @__PURE__ */ l("span", { children: r.label }) : r.label
329
+ r && /* @__PURE__ */ a(Se, { checked: o, className: "mr-1" }),
330
+ typeof l.label == "string" ? /* @__PURE__ */ a("span", { children: l.label }) : l.label
242
331
  ]
243
332
  },
244
- r.value
333
+ l.value
245
334
  );
246
335
  }) }, e))
247
336
  ] }),
248
- t && c !== void 0 && n.length >= c && /* @__PURE__ */ l("div", { className: "border-d-border text-d-muted-foreground border-t px-2 py-1 text-xs", children: K(c) })
337
+ r && s !== void 0 && n.length >= s && /* @__PURE__ */ a("div", { className: "border-d-border text-d-muted-foreground border-t px-2 py-1 text-xs", children: ee(s) })
249
338
  ]
250
339
  }
251
340
  )
@@ -257,5 +346,5 @@ function Ve(O) {
257
346
  ] });
258
347
  }
259
348
  export {
260
- Ve as AppSelect
349
+ Ge as AppSelect
261
350
  };