@viglet/viglet-design-system 2026.3.11 → 2026.3.12

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.
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./utils-Fk5jmzzb.js";
2
- import { C as t, a as n, c as r, g as i, o as a, p as o, u as s, v as c, y as l } from "./badge-locale-DxDp8Q3S.js";
2
+ import { C as t, a as n, c as r, g as i, o as a, p as o, u as s, v as c, y as l } from "./badge-locale-Bx7m7tg2.js";
3
3
  import * as u from "react";
4
4
  import d, { createContext as f, useCallback as ee, useContext as p, useEffect as m, useRef as h, useState as g } from "react";
5
5
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
@@ -15,70 +15,123 @@ import { Popover as k } from "radix-ui";
15
15
  import * as A from "@radix-ui/react-tooltip";
16
16
  import { useTheme as j } from "next-themes";
17
17
  import { Toaster as M, toast as N } from "sonner";
18
- var P = t("check", [["path", {
19
- d: "M20 6 9 17l-5-5",
20
- key: "1gmf2c"
21
- }]]), F = t("chevron-right", [["path", {
22
- d: "m9 18 6-6-6-6",
23
- key: "mthhwq"
24
- }]]), I = t("circle-check", [["circle", {
25
- cx: "12",
26
- cy: "12",
27
- r: "10",
28
- key: "1mglay"
29
- }], ["path", {
30
- d: "m9 12 2 2 4-4",
31
- key: "dzmm74"
32
- }]]), L = t("circle", [["circle", {
33
- cx: "12",
34
- cy: "12",
35
- r: "10",
36
- key: "1mglay"
37
- }]]), R = t("info", [
38
- ["circle", {
18
+ //#region node_modules/lucide-react/dist/esm/icons/check.mjs
19
+ var P = {
20
+ name: "check",
21
+ size: 24,
22
+ node: [["path", {
23
+ d: "M20 6 9 17l-5-5",
24
+ key: "1gmf2c"
25
+ }]]
26
+ };
27
+ P.node;
28
+ var F = t(P), I = {
29
+ name: "chevron-right",
30
+ size: 24,
31
+ node: [["path", {
32
+ d: "m9 18 6-6-6-6",
33
+ key: "mthhwq"
34
+ }]]
35
+ };
36
+ I.node;
37
+ var L = t(I), R = {
38
+ name: "circle-check",
39
+ size: 24,
40
+ node: [["circle", {
41
+ cx: "12",
42
+ cy: "12",
43
+ r: "10",
44
+ key: "1mglay"
45
+ }], ["path", {
46
+ d: "m16 9-5.5 5.5L8 12",
47
+ key: "xofnsj"
48
+ }]],
49
+ aliases: ["check-circle-2"]
50
+ };
51
+ R.node;
52
+ var z = t(R), B = {
53
+ name: "circle",
54
+ size: 24,
55
+ node: [["circle", {
39
56
  cx: "12",
40
57
  cy: "12",
41
58
  r: "10",
42
59
  key: "1mglay"
43
- }],
44
- ["path", {
45
- d: "M12 16v-4",
46
- key: "1dtifu"
47
- }],
48
- ["path", {
49
- d: "M12 8h.01",
50
- key: "e9boi3"
51
- }]
52
- ]), z = t("loader-circle", [["path", {
53
- d: "M21 12a9 9 0 1 1-6.219-8.56",
54
- key: "13zald"
55
- }]]), B = t("octagon-x", [
56
- ["path", {
57
- d: "m15 9-6 6",
58
- key: "1uzhvr"
59
- }],
60
- ["path", {
61
- d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
62
- key: "2d38gg"
63
- }],
64
- ["path", {
65
- d: "m9 9 6 6",
66
- key: "z0biqf"
67
- }]
68
- ]), V = t("triangle-alert", [
69
- ["path", {
70
- d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
71
- key: "wmoenq"
72
- }],
73
- ["path", {
74
- d: "M12 9v4",
75
- key: "juzpu7"
76
- }],
77
- ["path", {
78
- d: "M12 17h.01",
79
- key: "p32p05"
80
- }]
81
- ]), H = S("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
60
+ }]]
61
+ };
62
+ B.node;
63
+ var V = t(B), H = {
64
+ name: "info",
65
+ size: 24,
66
+ node: [
67
+ ["circle", {
68
+ cx: "12",
69
+ cy: "12",
70
+ r: "10",
71
+ key: "1mglay"
72
+ }],
73
+ ["path", {
74
+ d: "M12 16v-4",
75
+ key: "1dtifu"
76
+ }],
77
+ ["path", {
78
+ d: "M12 8h.01",
79
+ key: "e9boi3"
80
+ }]
81
+ ]
82
+ };
83
+ H.node;
84
+ var ie = t(H), U = {
85
+ name: "loader-circle",
86
+ size: 24,
87
+ node: [["path", {
88
+ d: "M21 12a9 9 0 1 1-6.219-8.56",
89
+ key: "13zald"
90
+ }]],
91
+ aliases: ["loader-2"]
92
+ };
93
+ U.node;
94
+ var ae = t(U), W = {
95
+ name: "octagon-x",
96
+ size: 24,
97
+ node: [
98
+ ["path", {
99
+ d: "m15 9-6 6",
100
+ key: "1uzhvr"
101
+ }],
102
+ ["path", {
103
+ d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
104
+ key: "2d38gg"
105
+ }],
106
+ ["path", {
107
+ d: "m9 9 6 6",
108
+ key: "z0biqf"
109
+ }]
110
+ ],
111
+ aliases: ["x-octagon"]
112
+ };
113
+ W.node;
114
+ var oe = t(W), G = {
115
+ name: "triangle-alert",
116
+ size: 24,
117
+ node: [
118
+ ["path", {
119
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
120
+ key: "wmoenq"
121
+ }],
122
+ ["path", {
123
+ d: "M12 9v4",
124
+ key: "juzpu7"
125
+ }],
126
+ ["path", {
127
+ d: "M12 17h.01",
128
+ key: "p32p05"
129
+ }]
130
+ ],
131
+ aliases: ["alert-triangle"]
132
+ };
133
+ G.node;
134
+ var se = t(G), K = S("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
82
135
  variants: {
83
136
  variant: {
84
137
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -102,11 +155,11 @@ var P = t("check", [["path", {
102
155
  size: "default"
103
156
  }
104
157
  });
105
- function ie({ className: t, variant: n, size: r, asChild: i = !1, loading: a = !1, onClick: o, children: s, ...u }) {
158
+ function ce({ className: t, variant: n, size: r, asChild: i = !1, loading: a = !1, onClick: o, children: s, ...u }) {
106
159
  let d = i ? x : "button", f = l(a, u["aria-disabled"], o);
107
160
  return /* @__PURE__ */ v(d, {
108
161
  "data-slot": "button",
109
- className: e(H({
162
+ className: e(K({
110
163
  variant: n,
111
164
  size: r,
112
165
  className: t
@@ -118,7 +171,7 @@ function ie({ className: t, variant: n, size: r, asChild: i = !1, loading: a = !
118
171
  }
119
172
  //#endregion
120
173
  //#region src/components/ui/checkbox.tsx
121
- function ae({ className: t, ...n }) {
174
+ function le({ className: t, ...n }) {
122
175
  return /* @__PURE__ */ v(w.Root, {
123
176
  "data-slot": "checkbox",
124
177
  className: e("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", t),
@@ -126,31 +179,31 @@ function ae({ className: t, ...n }) {
126
179
  children: /* @__PURE__ */ v(w.Indicator, {
127
180
  "data-slot": "checkbox-indicator",
128
181
  className: "grid place-content-center text-current transition-none",
129
- children: /* @__PURE__ */ v(P, { className: "size-3.5" })
182
+ children: /* @__PURE__ */ v(F, { className: "size-3.5" })
130
183
  })
131
184
  });
132
185
  }
133
186
  //#endregion
134
187
  //#region src/components/ui/dropdown-menu.tsx
135
- function oe({ ...e }) {
188
+ function ue({ ...e }) {
136
189
  return /* @__PURE__ */ v(T.Root, {
137
190
  "data-slot": "dropdown-menu",
138
191
  ...e
139
192
  });
140
193
  }
141
- function se({ ...e }) {
194
+ function de({ ...e }) {
142
195
  return /* @__PURE__ */ v(T.Portal, {
143
196
  "data-slot": "dropdown-menu-portal",
144
197
  ...e
145
198
  });
146
199
  }
147
- function ce({ ...e }) {
200
+ function fe({ ...e }) {
148
201
  return /* @__PURE__ */ v(T.Trigger, {
149
202
  "data-slot": "dropdown-menu-trigger",
150
203
  ...e
151
204
  });
152
205
  }
153
- function le({ className: t, sideOffset: n = 4, ...r }) {
206
+ function pe({ className: t, sideOffset: n = 4, ...r }) {
154
207
  return /* @__PURE__ */ v(T.Portal, { children: /* @__PURE__ */ v(T.Content, {
155
208
  "data-slot": "dropdown-menu-content",
156
209
  sideOffset: n,
@@ -158,13 +211,13 @@ function le({ className: t, sideOffset: n = 4, ...r }) {
158
211
  ...r
159
212
  }) });
160
213
  }
161
- function ue({ ...e }) {
214
+ function me({ ...e }) {
162
215
  return /* @__PURE__ */ v(T.Group, {
163
216
  "data-slot": "dropdown-menu-group",
164
217
  ...e
165
218
  });
166
219
  }
167
- function de({ className: t, inset: n, variant: r = "default", ...i }) {
220
+ function he({ className: t, inset: n, variant: r = "default", ...i }) {
168
221
  return /* @__PURE__ */ v(T.Item, {
169
222
  "data-slot": "dropdown-menu-item",
170
223
  "data-inset": n,
@@ -173,7 +226,7 @@ function de({ className: t, inset: n, variant: r = "default", ...i }) {
173
226
  ...i
174
227
  });
175
228
  }
176
- function fe({ className: t, children: n, checked: r, ...i }) {
229
+ function ge({ className: t, children: n, checked: r, ...i }) {
177
230
  return /* @__PURE__ */ y(T.CheckboxItem, {
178
231
  "data-slot": "dropdown-menu-checkbox-item",
179
232
  className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
@@ -181,28 +234,28 @@ function fe({ className: t, children: n, checked: r, ...i }) {
181
234
  ...i,
182
235
  children: [/* @__PURE__ */ v("span", {
183
236
  className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
184
- children: /* @__PURE__ */ v(T.ItemIndicator, { children: /* @__PURE__ */ v(P, { className: "size-4" }) })
237
+ children: /* @__PURE__ */ v(T.ItemIndicator, { children: /* @__PURE__ */ v(F, { className: "size-4" }) })
185
238
  }), n]
186
239
  });
187
240
  }
188
- function pe({ ...e }) {
241
+ function _e({ ...e }) {
189
242
  return /* @__PURE__ */ v(T.RadioGroup, {
190
243
  "data-slot": "dropdown-menu-radio-group",
191
244
  ...e
192
245
  });
193
246
  }
194
- function me({ className: t, children: n, ...r }) {
247
+ function ve({ className: t, children: n, ...r }) {
195
248
  return /* @__PURE__ */ y(T.RadioItem, {
196
249
  "data-slot": "dropdown-menu-radio-item",
197
250
  className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
198
251
  ...r,
199
252
  children: [/* @__PURE__ */ v("span", {
200
253
  className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
201
- children: /* @__PURE__ */ v(T.ItemIndicator, { children: /* @__PURE__ */ v(L, { className: "size-2 fill-current" }) })
254
+ children: /* @__PURE__ */ v(T.ItemIndicator, { children: /* @__PURE__ */ v(V, { className: "size-2 fill-current" }) })
202
255
  }), n]
203
256
  });
204
257
  }
205
- function he({ className: t, inset: n, ...r }) {
258
+ function ye({ className: t, inset: n, ...r }) {
206
259
  return /* @__PURE__ */ v(T.Label, {
207
260
  "data-slot": "dropdown-menu-label",
208
261
  "data-inset": n,
@@ -210,36 +263,36 @@ function he({ className: t, inset: n, ...r }) {
210
263
  ...r
211
264
  });
212
265
  }
213
- function ge({ className: t, ...n }) {
266
+ function be({ className: t, ...n }) {
214
267
  return /* @__PURE__ */ v(T.Separator, {
215
268
  "data-slot": "dropdown-menu-separator",
216
269
  className: e("bg-border -mx-1 my-1 h-px", t),
217
270
  ...n
218
271
  });
219
272
  }
220
- function _e({ className: t, ...n }) {
273
+ function xe({ className: t, ...n }) {
221
274
  return /* @__PURE__ */ v("span", {
222
275
  "data-slot": "dropdown-menu-shortcut",
223
276
  className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
224
277
  ...n
225
278
  });
226
279
  }
227
- function ve({ ...e }) {
280
+ function Se({ ...e }) {
228
281
  return /* @__PURE__ */ v(T.Sub, {
229
282
  "data-slot": "dropdown-menu-sub",
230
283
  ...e
231
284
  });
232
285
  }
233
- function ye({ className: t, inset: n, children: r, ...i }) {
286
+ function Ce({ className: t, inset: n, children: r, ...i }) {
234
287
  return /* @__PURE__ */ y(T.SubTrigger, {
235
288
  "data-slot": "dropdown-menu-sub-trigger",
236
289
  "data-inset": n,
237
290
  className: e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
238
291
  ...i,
239
- children: [r, /* @__PURE__ */ v(F, { className: "ml-auto size-4" })]
292
+ children: [r, /* @__PURE__ */ v(L, { className: "ml-auto size-4" })]
240
293
  });
241
294
  }
242
- function be({ className: t, ...n }) {
295
+ function we({ className: t, ...n }) {
243
296
  return /* @__PURE__ */ v(T.SubContent, {
244
297
  "data-slot": "dropdown-menu-sub-content",
245
298
  className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", t),
@@ -248,22 +301,22 @@ function be({ className: t, ...n }) {
248
301
  }
249
302
  //#endregion
250
303
  //#region src/components/ui/icon-picker-dialog.tsx
251
- var U = [
304
+ var q = [
252
305
  "lucide",
253
306
  "tabler",
254
307
  "mdi",
255
308
  "ph",
256
309
  "solar",
257
310
  "heroicons"
258
- ], xe = U.join(",");
259
- async function W(e, t, n) {
311
+ ], Te = q.join(",");
312
+ async function J(e, t, n) {
260
313
  try {
261
- let r = await fetch(`https://api.iconify.design/search?query=${encodeURIComponent(e)}&limit=${t}&prefixes=${xe}`, { signal: n });
314
+ let r = await fetch(`https://api.iconify.design/search?query=${encodeURIComponent(e)}&limit=${t}&prefixes=${Te}`, { signal: n });
262
315
  if (r.ok) return (await r.json()).icons ?? [];
263
316
  } catch {}
264
317
  return [];
265
318
  }
266
- function Se({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title: d, description: f, suggestKeywords: p }) {
319
+ function Ee({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title: d, description: f, suggestKeywords: p }) {
267
320
  let { t: _ } = C(), [b, x] = g(""), [S, w] = g([]), [T, E] = g(!1), k = h(null), [A, j] = g(!1), [M, N] = g([]), P = h(0), [F, I] = g(null), L = ee(async (e, t) => {
268
321
  let n = ++P.current, r = () => n === P.current && !t.aborted;
269
322
  if (!e.trim()) {
@@ -272,7 +325,7 @@ function Se({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title
272
325
  }
273
326
  E(!0);
274
327
  try {
275
- let n = await W(e, 60, t);
328
+ let n = await J(e, 60, t);
276
329
  r() && w(n);
277
330
  } catch {
278
331
  r() && w([]);
@@ -304,7 +357,7 @@ function Se({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title
304
357
  if (e.signal.aborted) return;
305
358
  n.push({
306
359
  keyword: r.trim(),
307
- icons: await W(r.trim(), 30, e.signal)
360
+ icons: await J(r.trim(), 30, e.signal)
308
361
  });
309
362
  }
310
363
  e.signal.aborted || N(n);
@@ -397,7 +450,7 @@ function Se({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title
397
450
  !T && !b && S.length === 0 && M.length === 0 && /* @__PURE__ */ y("div", {
398
451
  className: "flex h-32 flex-col items-center justify-center gap-2 px-4 text-center text-sm text-muted-foreground",
399
452
  children: [/* @__PURE__ */ v("span", { children: _("forms.iconPicker.typeToSearch", {
400
- count: U.length,
453
+ count: q.length,
401
454
  defaultValue: "Type to search {{count}} icon collections"
402
455
  }) }), H && /* @__PURE__ */ v("span", {
403
456
  className: "text-xs leading-relaxed",
@@ -457,19 +510,19 @@ function Se({ open: e, onOpenChange: t, value: c, onSelect: l, onClear: u, title
457
510
  }
458
511
  //#endregion
459
512
  //#region src/components/ui/popover.tsx
460
- function Ce({ ...e }) {
513
+ function De({ ...e }) {
461
514
  return /* @__PURE__ */ v(k.Root, {
462
515
  "data-slot": "popover",
463
516
  ...e
464
517
  });
465
518
  }
466
- function we({ ...e }) {
519
+ function Oe({ ...e }) {
467
520
  return /* @__PURE__ */ v(k.Trigger, {
468
521
  "data-slot": "popover-trigger",
469
522
  ...e
470
523
  });
471
524
  }
472
- function Te({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
525
+ function ke({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
473
526
  return /* @__PURE__ */ v(k.Portal, { children: /* @__PURE__ */ v(k.Content, {
474
527
  "data-slot": "popover-content",
475
528
  align: n,
@@ -478,27 +531,27 @@ function Te({ className: t, align: n = "center", sideOffset: r = 4, ...i }) {
478
531
  ...i
479
532
  }) });
480
533
  }
481
- function Ee({ ...e }) {
534
+ function Ae({ ...e }) {
482
535
  return /* @__PURE__ */ v(k.Anchor, {
483
536
  "data-slot": "popover-anchor",
484
537
  ...e
485
538
  });
486
539
  }
487
- function De({ className: t, ...n }) {
540
+ function je({ className: t, ...n }) {
488
541
  return /* @__PURE__ */ v("div", {
489
542
  "data-slot": "popover-header",
490
543
  className: e("flex flex-col gap-1 text-sm", t),
491
544
  ...n
492
545
  });
493
546
  }
494
- function Oe({ className: t, ...n }) {
547
+ function Me({ className: t, ...n }) {
495
548
  return /* @__PURE__ */ v("div", {
496
549
  "data-slot": "popover-title",
497
550
  className: e("font-medium", t),
498
551
  ...n
499
552
  });
500
553
  }
501
- function ke({ className: t, ...n }) {
554
+ function Ne({ className: t, ...n }) {
502
555
  return /* @__PURE__ */ v("p", {
503
556
  "data-slot": "popover-description",
504
557
  className: e("text-muted-foreground", t),
@@ -507,7 +560,7 @@ function ke({ className: t, ...n }) {
507
560
  }
508
561
  //#endregion
509
562
  //#region src/components/ui/section-card.tsx
510
- var G = {
563
+ var Y = {
511
564
  blue: {
512
565
  color: "text-blue-600 dark:text-blue-400",
513
566
  bg: "from-blue-500/10 to-indigo-500/10 dark:from-blue-500/20 dark:to-indigo-500/20",
@@ -548,14 +601,14 @@ var G = {
548
601
  bg: "from-slate-500/10 to-gray-500/10 dark:from-slate-500/20 dark:to-gray-500/20",
549
602
  ring: "ring-slate-500/10 dark:ring-slate-400/10"
550
603
  }
551
- }, K = f({
604
+ }, X = f({
552
605
  open: !0,
553
606
  toggle: () => {},
554
607
  variant: "blue"
555
608
  });
556
- function q({ variant: t = "blue", defaultOpen: n = !0, children: r, className: i }) {
609
+ function Z({ variant: t = "blue", defaultOpen: n = !0, children: r, className: i }) {
557
610
  let [a, o] = g(n);
558
- return /* @__PURE__ */ v(K.Provider, {
611
+ return /* @__PURE__ */ v(X.Provider, {
559
612
  value: {
560
613
  open: a,
561
614
  toggle: () => o((e) => !e),
@@ -567,8 +620,8 @@ function q({ variant: t = "blue", defaultOpen: n = !0, children: r, className: i
567
620
  })
568
621
  });
569
622
  }
570
- function Ae({ icon: t, title: n, description: r, className: i }) {
571
- let { open: a, toggle: o, variant: s } = p(K), c = G[s];
623
+ function Pe({ icon: t, title: n, description: r, className: i }) {
624
+ let { open: a, toggle: o, variant: s } = p(X), c = Y[s];
572
625
  return /* @__PURE__ */ y("button", {
573
626
  type: "button",
574
627
  onClick: o,
@@ -592,8 +645,8 @@ function Ae({ icon: t, title: n, description: r, className: i }) {
592
645
  ]
593
646
  });
594
647
  }
595
- function je({ icon: t, title: n, description: r, className: i }) {
596
- let { variant: a } = p(K), o = G[a];
648
+ function Fe({ icon: t, title: n, description: r, className: i }) {
649
+ let { variant: a } = p(X), o = Y[a];
597
650
  return /* @__PURE__ */ y("div", {
598
651
  className: e("flex items-center gap-3 px-5 py-4 bg-muted/40 border-b", i),
599
652
  children: [/* @__PURE__ */ v("div", {
@@ -611,19 +664,19 @@ function je({ icon: t, title: n, description: r, className: i }) {
611
664
  })]
612
665
  });
613
666
  }
614
- function Me({ children: t, className: n }) {
615
- let { open: r } = p(K);
667
+ function Ie({ children: t, className: n }) {
668
+ let { open: r } = p(X);
616
669
  return r ? /* @__PURE__ */ v("div", {
617
670
  className: e("p-5 space-y-6", n),
618
671
  children: t
619
672
  }) : null;
620
673
  }
621
- q.Header = Ae, q.StaticHeader = je, q.Content = Me;
674
+ Z.Header = Pe, Z.StaticHeader = Fe, Z.Content = Ie;
622
675
  //#endregion
623
676
  //#region src/components/ui/tooltip.tsx
624
- var J = u.createContext(!1);
625
- function Y({ delayDuration: e = 0, ...t }) {
626
- return /* @__PURE__ */ v(J, {
677
+ var Q = u.createContext(!1);
678
+ function $({ delayDuration: e = 0, ...t }) {
679
+ return /* @__PURE__ */ v(Q, {
627
680
  value: !0,
628
681
  children: /* @__PURE__ */ v(A.Provider, {
629
682
  "data-slot": "tooltip-provider",
@@ -632,20 +685,20 @@ function Y({ delayDuration: e = 0, ...t }) {
632
685
  })
633
686
  });
634
687
  }
635
- function Ne({ ...e }) {
636
- let t = u.useContext(J), n = /* @__PURE__ */ v(A.Root, {
688
+ function Le({ ...e }) {
689
+ let t = u.useContext(Q), n = /* @__PURE__ */ v(A.Root, {
637
690
  "data-slot": "tooltip",
638
691
  ...e
639
692
  });
640
- return t ? n : /* @__PURE__ */ v(Y, { children: n });
693
+ return t ? n : /* @__PURE__ */ v($, { children: n });
641
694
  }
642
- function X({ ...e }) {
695
+ function Re({ ...e }) {
643
696
  return /* @__PURE__ */ v(A.Trigger, {
644
697
  "data-slot": "tooltip-trigger",
645
698
  ...e
646
699
  });
647
700
  }
648
- function Pe({ className: t, sideOffset: n = 0, children: r, ...i }) {
701
+ function ze({ className: t, sideOffset: n = 0, children: r, ...i }) {
649
702
  return /* @__PURE__ */ v(A.Portal, { children: /* @__PURE__ */ y(A.Content, {
650
703
  "data-slot": "tooltip-content",
651
704
  sideOffset: n,
@@ -656,18 +709,18 @@ function Pe({ className: t, sideOffset: n = 0, children: r, ...i }) {
656
709
  }
657
710
  //#endregion
658
711
  //#region src/components/ui/sonner.tsx
659
- var Fe = ({ ...e }) => {
712
+ var Be = ({ ...e }) => {
660
713
  let { theme: t = "system" } = j(), { t: n } = C();
661
714
  return /* @__PURE__ */ v(M, {
662
715
  theme: t,
663
716
  className: "toaster group",
664
717
  containerAriaLabel: n("common.notifications", { defaultValue: "Notifications" }),
665
718
  icons: {
666
- success: /* @__PURE__ */ v(I, { className: "size-4" }),
667
- info: /* @__PURE__ */ v(R, { className: "size-4" }),
668
- warning: /* @__PURE__ */ v(V, { className: "size-4" }),
669
- error: /* @__PURE__ */ v(B, { className: "size-4" }),
670
- loading: /* @__PURE__ */ v(z, { className: "size-4 animate-spin" })
719
+ success: /* @__PURE__ */ v(z, { className: "size-4" }),
720
+ info: /* @__PURE__ */ v(ie, { className: "size-4" }),
721
+ warning: /* @__PURE__ */ v(se, { className: "size-4" }),
722
+ error: /* @__PURE__ */ v(oe, { className: "size-4" }),
723
+ loading: /* @__PURE__ */ v(ae, { className: "size-4 animate-spin" })
671
724
  },
672
725
  style: {
673
726
  "--normal-bg": "var(--vg-popover)",
@@ -680,7 +733,7 @@ var Fe = ({ ...e }) => {
680
733
  };
681
734
  //#endregion
682
735
  //#region src/components/ui/user-avatar.tsx
683
- function Z({ givenName: e, familyName: t, name: n }) {
736
+ function Ve({ givenName: e, familyName: t, name: n }) {
684
737
  let r = (e ?? "").trim(), i = (t ?? "").trim();
685
738
  if (r || i) {
686
739
  let e = r ? r[0] : "", t = i.split(/\s+/).filter(Boolean), n = `${e}${t.length > 0 ? t[t.length - 1][0] : ""}`.toUpperCase();
@@ -693,8 +746,8 @@ function Z({ givenName: e, familyName: t, name: n }) {
693
746
  }
694
747
  return "U";
695
748
  }
696
- function Ie({ className: t, givenName: n, familyName: r, name: i, src: a, alt: o, children: s, ...c }) {
697
- let l = Z({
749
+ function He({ className: t, givenName: n, familyName: r, name: i, src: a, alt: o, children: s, ...c }) {
750
+ let l = Ve({
698
751
  givenName: n,
699
752
  familyName: r,
700
753
  name: i
@@ -718,14 +771,14 @@ function Ie({ className: t, givenName: n, familyName: r, name: i, src: a, alt: o
718
771
  }
719
772
  //#endregion
720
773
  //#region src/lib/corner-slot.ts
721
- var Q = f(!1);
722
- function Le() {
723
- return p(Q);
774
+ var Ue = f(!1);
775
+ function We() {
776
+ return p(Ue);
724
777
  }
725
778
  //#endregion
726
779
  //#region src/contexts/user.context.tsx
727
- var $ = d.createContext(null);
728
- function Re({ children: e, fetchUser: t }) {
780
+ var Ge = d.createContext(null);
781
+ function Ke({ children: e, fetchUser: t }) {
729
782
  let [n, r] = d.useState({}), [i, a] = d.useState("loading"), [o, s] = d.useState(null), c = d.useRef(0), l = d.useCallback(() => {
730
783
  let e = ++c.current;
731
784
  t().then((t) => {
@@ -748,15 +801,15 @@ function Re({ children: e, fetchUser: t }) {
748
801
  i,
749
802
  o
750
803
  ]);
751
- return /* @__PURE__ */ v($, {
804
+ return /* @__PURE__ */ v(Ge, {
752
805
  value: u,
753
806
  children: e
754
807
  });
755
808
  }
756
- function ze() {
757
- let e = d.useContext($);
809
+ function qe() {
810
+ let e = d.useContext(Ge);
758
811
  if (!e) throw Error("useCurrentUser must be used within UserProvider");
759
812
  return e;
760
813
  }
761
814
  //#endregion
762
- export { pe as A, H as B, oe as C, de as D, ue as E, be as F, P as H, ye as I, ce as L, ge as M, _e as N, he as O, ve as P, ae as R, Se as S, le as T, F as V, Te as _, Ie as a, Oe as b, N as c, Y as d, X as f, Ee as g, Ce as h, Le as i, me as j, se as k, Ne as l, G as m, ze as n, Z as o, q as p, Q as r, Fe as s, Re as t, Pe as u, ke as v, fe as w, we as x, De as y, ie as z };
815
+ export { _e as A, K as B, ue as C, he as D, me as E, we as F, F as H, Ce as I, fe as L, be as M, xe as N, ye as O, Se as P, le as R, Ee as S, pe as T, L as V, ke as _, He as a, Me as b, N as c, $ as d, Re as f, Ae as g, De as h, We as i, ve as j, de as k, Le as l, Y as m, qe as n, Ve as o, Z as p, Ue as r, Be as s, Ke as t, ze as u, Ne as v, ge as w, Oe as x, je as y, ce as z };