@alfadocs/ui-kit 0.19.0 → 0.20.1

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 (84) hide show
  1. package/dist/_chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
  2. package/dist/_chunks/{ai-prompt-input-B-w5Rx3V.js → ai-prompt-input-B5MdixzR.js} +2 -2
  3. package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
  4. package/dist/_chunks/{leo-sidebar-DIsiTju3.js → alia-sidebar-Bof6TlFx.js} +211 -211
  5. package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
  6. package/dist/_chunks/{chat-message-g3lxpXM_.js → chat-message-ChOnwqf_.js} +5 -5
  7. package/dist/_chunks/editable-currency-cell-renderer-Dn3-ANF5.js +1932 -0
  8. package/dist/_chunks/{email-input-DKN5JERd.js → email-input-DvJ_kPKL.js} +2 -2
  9. package/dist/_chunks/exceljs.min-DUJ-5CGx.js +23045 -0
  10. package/dist/_chunks/file-spreadsheet-zUkY8rJ2.js +25 -0
  11. package/dist/_chunks/{file-upload-nMh-1jDD.js → file-upload-DxAQprcU.js} +103 -122
  12. package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
  13. package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
  14. package/dist/_chunks/html2canvas.esm-dgT_1dIT.js +4872 -0
  15. package/dist/_chunks/{index-CFoBa86t.js → index-BcMWc8W2.js} +2 -2
  16. package/dist/_chunks/index.es-B8zMZ1wV.js +6694 -0
  17. package/dist/_chunks/jspdf.es.min-DaapWjR1.js +10007 -0
  18. package/dist/_chunks/jspdf.plugin.autotable-CSiDNyPn.js +1088 -0
  19. package/dist/_chunks/{map-view-DVP-Kp9l.js → map-view-CcwycFQX.js} +2 -2
  20. package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
  21. package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
  22. package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
  23. package/dist/_chunks/{purify.es-DpIUMBYC.js → purify.es-Cm3utOpm.js} +2 -2
  24. package/dist/_chunks/{rich-text-editor-C7TCIlQO.js → rich-text-editor-J-wAz9eN.js} +22 -22
  25. package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
  26. package/dist/_chunks/{suggestion-chip-C4Jz0LrM.js → suggestion-chip-C4kxWUIs.js} +2 -2
  27. package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
  28. package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-BkLglexk.js} +2 -2
  29. package/dist/agent-catalog.json +1 -1
  30. package/dist/components/ai-prompt-input/index.js +1 -1
  31. package/dist/components/alert/index.js +1 -1
  32. package/dist/components/app-frame/app-frame.d.ts +1 -1
  33. package/dist/components/audio-recorder/index.js +1 -1
  34. package/dist/components/chat-container/chat-container.d.ts +1 -1
  35. package/dist/components/chat-message/chat-message.d.ts +1 -1
  36. package/dist/components/chat-message/index.js +1 -1
  37. package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
  38. package/dist/components/data-table/cell-renderers/editable-currency-cell-renderer.d.ts +23 -0
  39. package/dist/components/data-table/cell-renderers/editable-text-cell-renderer.d.ts +11 -0
  40. package/dist/components/data-table/cell-renderers/image-cell-renderer.d.ts +19 -0
  41. package/dist/components/data-table/cell-renderers/toggle-cell-renderer.d.ts +15 -3
  42. package/dist/components/data-table/data-table.d.ts +30 -3
  43. package/dist/components/data-table/filters/date-range-filter.d.ts +30 -0
  44. package/dist/components/data-table/filters/select-filter.d.ts +64 -0
  45. package/dist/components/data-table/filters/typeahead-filter.d.ts +49 -0
  46. package/dist/components/data-table/index.d.ts +13 -2
  47. package/dist/components/data-table/index.js +24 -14
  48. package/dist/components/data-table/toolbar.d.ts +80 -1
  49. package/dist/components/email-input/index.js +1 -1
  50. package/dist/components/file-upload/index.js +1 -1
  51. package/dist/components/freemium-paywall/index.js +1 -1
  52. package/dist/components/index.d.ts +1 -1
  53. package/dist/components/map-view/index.js +1 -1
  54. package/dist/components/payment-form/index.js +1 -1
  55. package/dist/components/pdf-viewer/index.js +1 -1
  56. package/dist/components/rich-text-editor/index.js +1 -1
  57. package/dist/components/sidebar/index.js +1 -1
  58. package/dist/components/suggestion-chip/index.js +1 -1
  59. package/dist/components/warning-stack/index.js +1 -1
  60. package/dist/components/workflow/index.js +1 -1
  61. package/dist/i18n/config.js +81 -13
  62. package/dist/i18n/resources.d.ts +77 -9
  63. package/dist/index.js +421 -411
  64. package/dist/locales/de.json +13 -3
  65. package/dist/locales/en.json +32 -3
  66. package/dist/locales/it.json +32 -3
  67. package/dist/patterns/alia-assistant/alia-chat-surface.d.ts +3 -0
  68. package/dist/patterns/alia-assistant/alia-embedded.d.ts +13 -0
  69. package/dist/patterns/{leo-assistant/leo-popout.d.ts → alia-assistant/alia-popout.d.ts} +4 -4
  70. package/dist/patterns/{leo-assistant/leo-sidebar.d.ts → alia-assistant/alia-sidebar.d.ts} +10 -10
  71. package/dist/patterns/{leo-assistant/leo-types.d.ts → alia-assistant/alia-types.d.ts} +23 -23
  72. package/dist/patterns/alia-assistant/index.d.ts +20 -0
  73. package/dist/patterns/alia-assistant/index.js +8 -0
  74. package/dist/patterns/patient-shell/index.js +1 -1
  75. package/dist/patterns/patient-shell/patient-shell.d.ts +1 -1
  76. package/dist/safe-html/index.js +6 -6
  77. package/dist/tokens.css +2 -2
  78. package/package.json +7 -4
  79. package/dist/_chunks/_commonjsHelpers-C6fGbg64.js +0 -7
  80. package/dist/_chunks/balance-cell-renderer-DJB6WDPe.js +0 -1015
  81. package/dist/patterns/leo-assistant/index.d.ts +0 -20
  82. package/dist/patterns/leo-assistant/index.js +0 -8
  83. package/dist/patterns/leo-assistant/leo-chat-surface.d.ts +0 -3
  84. package/dist/patterns/leo-assistant/leo-embedded.d.ts +0 -13
@@ -0,0 +1,25 @@
1
+ import { c as e } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const a = [
9
+ [
10
+ "path",
11
+ {
12
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
13
+ key: "1oefj6"
14
+ }
15
+ ],
16
+ ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
17
+ ["path", { d: "M8 13h2", key: "yr2amv" }],
18
+ ["path", { d: "M14 13h2", key: "un5t4a" }],
19
+ ["path", { d: "M8 17h2", key: "2yhykz" }],
20
+ ["path", { d: "M14 17h2", key: "10kma7" }]
21
+ ], t = e("file-spreadsheet", a);
22
+ export {
23
+ t as F
24
+ };
25
+ //# sourceMappingURL=file-spreadsheet-zUkY8rJ2.js.map
@@ -1,33 +1,34 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as Ne, useId as Ue, useState as re, useRef as V, useCallback as y, useMemo as q, useEffect as ze } from "react";
3
- import { u as je } from "./index-CFoBa86t.js";
3
+ import { u as je } from "./index-BcMWc8W2.js";
4
4
  import { c as _ } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as Me } from "react-i18next";
6
6
  import { u as Ce } from "./form-field-context-B3APVHKx.js";
7
- import { u as Le } from "./registry-C9nwlNyL.js";
7
+ import { u as Fe } from "./registry-C9nwlNyL.js";
8
8
  import { C as le } from "./circle-alert-ChA9opNA.js";
9
- import { c as w } from "./createLucideIcon-CrFbzy84.js";
9
+ import { c as z } from "./createLucideIcon-CrFbzy84.js";
10
10
  import { X as ie } from "./x-CCcI3eJp.js";
11
- import { F as Fe } from "./file-text-DSNuv2B8.js";
12
- import { C as Ae } from "./circle-check-9AeSgJD_.js";
11
+ import { F as Le } from "./file-text-DSNuv2B8.js";
12
+ import { F as Ae } from "./file-spreadsheet-zUkY8rJ2.js";
13
+ import { C as Re } from "./circle-check-9AeSgJD_.js";
13
14
  /**
14
15
  * @license lucide-react v1.8.0 - ISC
15
16
  *
16
17
  * This source code is licensed under the ISC license.
17
18
  * See the LICENSE file in the root directory of this source tree.
18
19
  */
19
- const Re = [
20
+ const De = [
20
21
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
21
22
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
22
23
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
23
- ], De = w("cloud-upload", Re);
24
+ ], Ie = z("cloud-upload", De);
24
25
  /**
25
26
  * @license lucide-react v1.8.0 - ISC
26
27
  *
27
28
  * This source code is licensed under the ISC license.
28
29
  * See the LICENSE file in the root directory of this source tree.
29
30
  */
30
- const Ie = [
31
+ const _e = [
31
32
  [
32
33
  "path",
33
34
  {
@@ -40,14 +41,14 @@ const Ie = [
40
41
  ["path", { d: "M8 18v-2", key: "qcmpov" }],
41
42
  ["path", { d: "M8 7V6", key: "1nbb54" }],
42
43
  ["circle", { cx: "8", cy: "20", r: "2", key: "ckkr5m" }]
43
- ], _e = w("file-archive", Ie);
44
+ ], Be = z("file-archive", _e);
44
45
  /**
45
46
  * @license lucide-react v1.8.0 - ISC
46
47
  *
47
48
  * This source code is licensed under the ISC license.
48
49
  * See the LICENSE file in the root directory of this source tree.
49
50
  */
50
- const Be = [
51
+ const He = [
51
52
  [
52
53
  "path",
53
54
  {
@@ -58,27 +59,7 @@ const Be = [
58
59
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
59
60
  ["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
60
61
  ["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
61
- ], He = w("file-image", Be);
62
- /**
63
- * @license lucide-react v1.8.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */
68
- const Oe = [
69
- [
70
- "path",
71
- {
72
- d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
73
- key: "1oefj6"
74
- }
75
- ],
76
- ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
77
- ["path", { d: "M8 13h2", key: "yr2amv" }],
78
- ["path", { d: "M14 13h2", key: "un5t4a" }],
79
- ["path", { d: "M8 17h2", key: "2yhykz" }],
80
- ["path", { d: "M14 17h2", key: "10kma7" }]
81
- ], $e = w("file-spreadsheet", Oe);
62
+ ], Oe = z("file-image", He);
82
63
  /**
83
64
  * @license lucide-react v1.8.0 - ISC
84
65
  *
@@ -94,25 +75,25 @@ const Ee = [
94
75
  }
95
76
  ],
96
77
  ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }]
97
- ], Ve = w("file", Ee);
78
+ ], $e = z("file", Ee);
98
79
  /**
99
80
  * @license lucide-react v1.8.0 - ISC
100
81
  *
101
82
  * This source code is licensed under the ISC license.
102
83
  * See the LICENSE file in the root directory of this source tree.
103
84
  */
104
- const qe = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Te = w("loader-circle", qe);
85
+ const Ve = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], qe = z("loader-circle", Ve);
105
86
  /**
106
87
  * @license lucide-react v1.8.0 - ISC
107
88
  *
108
89
  * This source code is licensed under the ISC license.
109
90
  * See the LICENSE file in the root directory of this source tree.
110
91
  */
111
- const We = [
92
+ const Te = [
112
93
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
113
94
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
114
95
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
115
- ], T = w("upload", We), Pe = {
96
+ ], T = z("upload", Te), We = {
116
97
  id: "file-upload",
117
98
  capabilities: ["submit", "dismiss"],
118
99
  state: {
@@ -151,7 +132,7 @@ const We = [
151
132
  description: "Each tracked file emits its id as data-file-id."
152
133
  }
153
134
  }
154
- }, Ke = _(
135
+ }, Pe = _(
155
136
  [
156
137
  "ds:relative ds:flex ds:flex-col ds:items-center ds:justify-center",
157
138
  "ds:min-h-48 ds:px-[var(--spacing-lg)] ds:py-[var(--spacing-xl)]",
@@ -197,7 +178,7 @@ const We = [
197
178
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
198
179
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
199
180
  ].join(" ")
200
- ), Ge = _(
181
+ ), Ke = _(
201
182
  [
202
183
  "ds:flex ds:items-center ds:gap-[var(--spacing-md)]",
203
184
  "ds:rounded-[var(--radius-md)] ds:border ds:bg-background",
@@ -230,52 +211,52 @@ const We = [
230
211
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
231
212
  ].join(" ")
232
213
  );
233
- function Xe() {
214
+ function Ge() {
234
215
  return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
235
216
  }
236
- function Ye(d) {
217
+ function Xe(d) {
237
218
  return d.type.startsWith("image/");
238
219
  }
239
- function Je(d) {
220
+ function Ye(d) {
240
221
  var c;
241
222
  const n = ((c = d.name.split(".").pop()) == null ? void 0 : c.toLowerCase()) ?? "";
242
223
  return ["pdf", "doc", "docx", "txt", "rtf"].includes(n) ? /* @__PURE__ */ r(
243
- Fe,
224
+ Le,
244
225
  {
245
226
  "aria-hidden": "true",
246
227
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
247
228
  }
248
229
  ) : ["zip", "rar", "7z", "tar", "gz"].includes(n) ? /* @__PURE__ */ r(
249
- _e,
230
+ Be,
250
231
  {
251
232
  "aria-hidden": "true",
252
233
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
253
234
  }
254
235
  ) : ["xls", "xlsx", "csv"].includes(n) ? /* @__PURE__ */ r(
255
- $e,
236
+ Ae,
256
237
  {
257
238
  "aria-hidden": "true",
258
239
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
259
240
  }
260
241
  ) : ["png", "jpg", "jpeg", "gif", "webp", "svg", "bmp"].includes(n) ? /* @__PURE__ */ r(
261
- He,
242
+ Oe,
262
243
  {
263
244
  "aria-hidden": "true",
264
245
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
265
246
  }
266
247
  ) : /* @__PURE__ */ r(
267
- Ve,
248
+ $e,
268
249
  {
269
250
  "aria-hidden": "true",
270
251
  className: "ds:size-10 ds:shrink-0 ds:text-muted-foreground"
271
252
  }
272
253
  );
273
254
  }
274
- function Qe(d) {
255
+ function Je(d) {
275
256
  switch (d) {
276
257
  case "uploading":
277
258
  return /* @__PURE__ */ r(
278
- Te,
259
+ qe,
279
260
  {
280
261
  "aria-hidden": "true",
281
262
  className: "ds:size-4 ds:shrink-0 ds:text-primary ds:animate-spin"
@@ -283,7 +264,7 @@ function Qe(d) {
283
264
  );
284
265
  case "complete":
285
266
  return /* @__PURE__ */ r(
286
- Ae,
267
+ Re,
287
268
  {
288
269
  "aria-hidden": "true",
289
270
  className: "ds:size-4 ds:shrink-0 ds:text-[var(--success)]"
@@ -301,7 +282,7 @@ function Qe(d) {
301
282
  return null;
302
283
  }
303
284
  }
304
- const Ze = [
285
+ const Qe = [
305
286
  "inputs.fileUpload.units.bytes",
306
287
  "inputs.fileUpload.units.kilobytes",
307
288
  "inputs.fileUpload.units.megabytes",
@@ -311,12 +292,12 @@ function I(d, n, c) {
311
292
  let u = d, p = 0;
312
293
  for (; u >= 1024 && p < ne.length - 1; )
313
294
  u /= 1024, p++;
314
- const h = new Intl.NumberFormat(n, {
295
+ const g = new Intl.NumberFormat(n, {
315
296
  maximumFractionDigits: p === 0 ? 0 : 1
316
- }).format(u), B = c(Ze[p], ne[p]);
317
- return `${h} ${B}`;
297
+ }).format(u), B = c(Qe[p], ne[p]);
298
+ return `${g} ${B}`;
318
299
  }
319
- function Se(d) {
300
+ function Ze(d) {
320
301
  switch (d) {
321
302
  case "file-too-large":
322
303
  return "file-too-large";
@@ -334,7 +315,7 @@ function de(d) {
334
315
  const n = d.split(".");
335
316
  return n.length > 1 ? `.${n.pop().toLowerCase()}` : "";
336
317
  }
337
- function es(d) {
318
+ function Se(d) {
338
319
  const n = [];
339
320
  for (const u of Object.values(d))
340
321
  for (const p of u)
@@ -345,33 +326,33 @@ function es(d) {
345
326
  u.endsWith("/*") ? c.push(u.replace("/*", "").split("/").pop() ?? u) : c.push(u.split("/").pop() ?? u);
346
327
  return c.join(", ");
347
328
  }
348
- const ss = Ne(
329
+ const es = Ne(
349
330
  ({
350
331
  id: d,
351
332
  accept: n,
352
333
  maxSize: c,
353
334
  minSize: u,
354
335
  maxFiles: p = 1,
355
- multiple: h = !1,
336
+ multiple: g = !1,
356
337
  disabled: B,
357
338
  strictAccept: W = !1,
358
- onDrop: L,
339
+ onDrop: F,
359
340
  onUpload: H,
360
- onRemove: F,
341
+ onRemove: L,
361
342
  onReject: A,
362
- variant: g = "both",
343
+ variant: h = "both",
363
344
  showPreview: ce = !0,
364
345
  className: P
365
346
  }, j) => {
366
- const { t: o, i18n: N } = Me(), v = Ce(), ue = Ue(), x = v.disabled || B, pe = v.invalid, K = v.id || ue, [R, b] = re([]), [G, fe] = re([]), D = V(/* @__PURE__ */ new Map()), O = V(null), M = V(R);
347
+ const { t: o, i18n: w } = Me(), v = Ce(), ue = Ue(), x = v.disabled || B, pe = v.invalid, K = v.id || ue, [R, b] = re([]), [G, fe] = re([]), D = V(/* @__PURE__ */ new Map()), O = V(null), M = V(R);
367
348
  M.current = R;
368
- const U = y((e) => {
349
+ const N = y((e) => {
369
350
  O.current && (O.current.textContent = e);
370
351
  }, []), X = y(
371
352
  (e) => {
372
353
  if (!W || !n) return !0;
373
354
  for (const [s, a] of Object.entries(n)) {
374
- const t = s === "*/*" || s.endsWith("/*") && e.type.startsWith(s.replace("/*", "/")) || e.type === s, i = de(e.name), f = a.length === 0 || a.some((z) => z.toLowerCase() === i);
355
+ const t = s === "*/*" || s.endsWith("/*") && e.type.startsWith(s.replace("/*", "/")) || e.type === s, i = de(e.name), f = a.length === 0 || a.some((U) => U.toLowerCase() === i);
375
356
  if (t && f) return !0;
376
357
  }
377
358
  return !1;
@@ -385,7 +366,7 @@ const ss = Ne(
385
366
  (a) => a.map(
386
367
  (t) => t.id === e.id ? { ...t, status: "uploading", progress: 0 } : t
387
368
  )
388
- ), U(o("inputs.fileUpload.uploading", "Uploading…"));
369
+ ), N(o("inputs.fileUpload.uploading", "Uploading…"));
389
370
  try {
390
371
  await H(e.file, {
391
372
  signal: s.signal,
@@ -394,7 +375,7 @@ const ss = Ne(
394
375
  (t) => t.map(
395
376
  (i) => i.id === e.id ? { ...i, progress: a } : i
396
377
  )
397
- ), U(
378
+ ), N(
398
379
  o("inputs.fileUpload.progress", "{{percent}}% uploaded", {
399
380
  percent: a
400
381
  })
@@ -404,7 +385,7 @@ const ss = Ne(
404
385
  (a) => a.map(
405
386
  (t) => t.id === e.id ? { ...t, status: "complete", progress: 100 } : t
406
387
  )
407
- ), U(o("inputs.fileUpload.complete", "Upload complete"));
388
+ ), N(o("inputs.fileUpload.complete", "Upload complete"));
408
389
  } catch (a) {
409
390
  if (s.signal.aborted) {
410
391
  b((i) => i.filter((f) => f.id !== e.id));
@@ -420,48 +401,48 @@ const ss = Ne(
420
401
  D.current.delete(e.id);
421
402
  }
422
403
  },
423
- [H, U, o]
424
- ), $ = y(
404
+ [H, N, o]
405
+ ), E = y(
425
406
  (e, s) => {
426
407
  const a = s.flatMap(
427
408
  (l) => l.errors.map((k) => ({
428
409
  file: l.file,
429
- reason: Se(k.code)
410
+ reason: Ze(k.code)
430
411
  }))
431
412
  ), t = [], i = [];
432
413
  for (const l of e)
433
414
  X(l) ? i.push(l) : t.push({ file: l, reason: "file-invalid-type" });
434
415
  const f = [...a, ...t];
435
416
  fe(f), f.length > 0 && (A == null || A(f));
436
- const z = i.map((l) => ({
417
+ const U = i.map((l) => ({
437
418
  file: l,
438
- id: Xe(),
419
+ id: Ge(),
439
420
  status: "pending",
440
421
  progress: 0,
441
- preview: Ye(l) ? URL.createObjectURL(l) : void 0
422
+ preview: Xe(l) ? URL.createObjectURL(l) : void 0
442
423
  }));
443
424
  b((l) => {
444
- if (!h && p === 1) {
425
+ if (!g && p === 1) {
445
426
  for (const k of l)
446
427
  k.preview && URL.revokeObjectURL(k.preview);
447
- return z;
428
+ return U;
448
429
  }
449
- return [...l, ...z];
450
- }), L == null || L(i, f), U(
430
+ return [...l, ...U];
431
+ }), F == null || F(i, f), N(
451
432
  o("inputs.fileUpload.filesSelected", "{{count}} file(s) selected", {
452
433
  count: i.length
453
434
  })
454
435
  );
455
- for (const l of z)
436
+ for (const l of U)
456
437
  Y(l);
457
438
  },
458
439
  [
459
- h,
440
+ g,
460
441
  p,
461
- L,
442
+ F,
462
443
  A,
463
444
  X,
464
- U,
445
+ N,
465
446
  Y,
466
447
  o
467
448
  ]
@@ -469,31 +450,31 @@ const ss = Ne(
469
450
  accept: n,
470
451
  maxSize: c,
471
452
  minSize: u,
472
- maxFiles: h ? p : 1,
473
- multiple: h,
453
+ maxFiles: g ? p : 1,
454
+ multiple: g,
474
455
  disabled: x,
475
- onDrop: $,
476
- noClick: g === "button",
477
- noKeyboard: g === "button"
478
- }), he = y((e) => {
456
+ onDrop: E,
457
+ noClick: h === "button",
458
+ noKeyboard: h === "button"
459
+ }), ge = y((e) => {
479
460
  const s = D.current.get(e);
480
461
  s == null || s.abort(), b((a) => {
481
462
  const t = a.find((i) => i.id === e);
482
463
  return t != null && t.preview && URL.revokeObjectURL(t.preview), a.filter((i) => i.id !== e);
483
464
  });
484
- }, []), E = y(
465
+ }, []), $ = y(
485
466
  (e) => {
486
467
  const s = M.current.find((a) => a.id === e);
487
- s != null && s.preview && URL.revokeObjectURL(s.preview), b((a) => a.filter((t) => t.id !== e)), s && (F == null || F(s));
468
+ s != null && s.preview && URL.revokeObjectURL(s.preview), b((a) => a.filter((t) => t.id !== e)), s && (L == null || L(s));
488
469
  },
489
- [F]
470
+ [L]
490
471
  ), Z = y(() => {
491
472
  for (const e of M.current) {
492
473
  const s = D.current.get(e.id);
493
474
  s == null || s.abort(), e.preview && URL.revokeObjectURL(e.preview);
494
475
  }
495
476
  b([]);
496
- }, []), ge = q(
477
+ }, []), he = q(
497
478
  () => ({
498
479
  getFiles: () => M.current.map((e) => ({
499
480
  id: e.id,
@@ -501,15 +482,15 @@ const ss = Ne(
501
482
  size: e.file.size,
502
483
  status: e.status
503
484
  })),
504
- removeFile: (e) => E(e),
485
+ removeFile: (e) => $(e),
505
486
  clear: () => Z()
506
487
  }),
507
- [E, Z]
488
+ [$, Z]
508
489
  );
509
- Le(Pe, ge, d);
490
+ Fe(We, he, d);
510
491
  const S = y(
511
492
  (e) => {
512
- const s = [], a = [], t = h ? p : 1;
493
+ const s = [], a = [], t = g ? p : 1;
513
494
  for (const i of e) {
514
495
  if (s.length >= t) {
515
496
  a.push({ file: i, reason: "too-many-files" });
@@ -539,7 +520,7 @@ const ss = Ne(
539
520
  }
540
521
  return { accepted: s, rejected: a };
541
522
  },
542
- [n, c, u, p, h]
523
+ [n, c, u, p, g]
543
524
  ), ee = y(
544
525
  (e) => {
545
526
  if (x) return;
@@ -550,10 +531,10 @@ const ss = Ne(
550
531
  file: f.file,
551
532
  errors: [{ code: f.reason, message: f.reason }]
552
533
  }));
553
- $(a, i);
534
+ E(a, i);
554
535
  }
555
536
  },
556
- [x, $, S]
537
+ [x, E, S]
557
538
  );
558
539
  ze(() => () => {
559
540
  for (const e of M.current)
@@ -561,23 +542,23 @@ const ss = Ne(
561
542
  }, []);
562
543
  const se = q(() => {
563
544
  const e = [];
564
- return n && e.push(es(n)), c && e.push(
545
+ return n && e.push(Se(n)), c && e.push(
565
546
  o("inputs.fileUpload.maxSizeHint", "Max {{size}}", {
566
- size: I(c, N.language, o)
547
+ size: I(c, w.language, o)
567
548
  })
568
- ), h && p > 1 && e.push(
549
+ ), g && p > 1 && e.push(
569
550
  o("inputs.fileUpload.maxFilesHint", "Up to {{count}} files", {
570
551
  count: p
571
552
  })
572
553
  ), e;
573
- }, [n, c, h, p, o, N.language]), te = q(() => G.map((e) => {
554
+ }, [n, c, g, p, o, w.language]), te = q(() => G.map((e) => {
574
555
  switch (e.reason) {
575
556
  case "file-too-large":
576
557
  return o(
577
558
  "inputs.fileUpload.errors.fileTooLarge",
578
559
  "File exceeds {{maxSize}}",
579
560
  {
580
- maxSize: c ? I(c, N.language, o) : ""
561
+ maxSize: c ? I(c, w.language, o) : ""
581
562
  }
582
563
  );
583
564
  case "file-too-small":
@@ -585,7 +566,7 @@ const ss = Ne(
585
566
  "inputs.fileUpload.errors.fileTooSmall",
586
567
  "File is smaller than {{minSize}}",
587
568
  {
588
- minSize: u ? I(u, N.language, o) : ""
569
+ minSize: u ? I(u, w.language, o) : ""
589
570
  }
590
571
  );
591
572
  case "file-invalid-type":
@@ -602,11 +583,11 @@ const ss = Ne(
602
583
  }
603
584
  );
604
585
  }
605
- }), [G, o, c, u, p, N.language]), ve = () => R.length === 0 ? null : /* @__PURE__ */ r("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: R.map((e) => /* @__PURE__ */ m(
586
+ }), [G, o, c, u, p, w.language]), ve = () => R.length === 0 ? null : /* @__PURE__ */ r("ul", { className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:list-none ds:p-0 ds:m-0", children: R.map((e) => /* @__PURE__ */ m(
606
587
  "li",
607
588
  {
608
589
  "data-file-id": e.id,
609
- className: Ge({ status: e.status }),
590
+ className: Ke({ status: e.status }),
610
591
  children: [
611
592
  ce && e.preview ? /* @__PURE__ */ r(
612
593
  "img",
@@ -616,14 +597,14 @@ const ss = Ne(
616
597
  "aria-hidden": "true",
617
598
  className: "ds:size-12 ds:shrink-0 ds:rounded-[var(--radius-md)] ds:object-cover ds:border ds:border-border"
618
599
  }
619
- ) : Je(e.file),
600
+ ) : Ye(e.file),
620
601
  /* @__PURE__ */ m("div", { className: "ds:flex-1 ds:min-w-0", children: [
621
602
  /* @__PURE__ */ m("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
622
603
  /* @__PURE__ */ r("p", { className: "ds:truncate type-label ds:m-0", children: e.file.name }),
623
- Qe(e.status)
604
+ Je(e.status)
624
605
  ] }),
625
606
  /* @__PURE__ */ m("p", { className: "type-meta ds:text-muted-foreground ds:m-0 ds:mt-0.5", children: [
626
- I(e.file.size, N.language, o),
607
+ I(e.file.size, w.language, o),
627
608
  e.status === "uploading" && /* @__PURE__ */ m("span", { className: "ds:ms-[var(--spacing-sm)] ds:text-primary ds:font-medium", children: [
628
609
  e.progress,
629
610
  "%"
@@ -661,7 +642,7 @@ const ss = Ne(
661
642
  "button",
662
643
  {
663
644
  type: "button",
664
- onClick: () => he(e.id),
645
+ onClick: () => ge(e.id),
665
646
  "aria-label": o("inputs.fileUpload.cancel", "Cancel upload"),
666
647
  className: oe(),
667
648
  children: /* @__PURE__ */ r(ie, { "aria-hidden": "true", className: "ds:size-4" })
@@ -671,7 +652,7 @@ const ss = Ne(
671
652
  "button",
672
653
  {
673
654
  type: "button",
674
- onClick: () => E(e.id),
655
+ onClick: () => $(e.id),
675
656
  "aria-label": o("inputs.fileUpload.remove", "Remove file"),
676
657
  className: oe(),
677
658
  children: /* @__PURE__ */ r(ie, { "aria-hidden": "true", className: "ds:size-4" })
@@ -681,9 +662,9 @@ const ss = Ne(
681
662
  },
682
663
  e.id
683
664
  )) }), be = () => {
684
- if (g === "button") return null;
665
+ if (h === "button") return null;
685
666
  const e = me({
686
- className: Ke({
667
+ className: Pe({
687
668
  isDragActive: C,
688
669
  hasError: pe ?? !1,
689
670
  isDisabled: x ?? !1,
@@ -721,7 +702,7 @@ const ss = Ne(
721
702
  }
722
703
  ),
723
704
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-sm)]", children: [
724
- /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: C ? /* @__PURE__ */ r(De, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ r(T, { "aria-hidden": "true", className: "ds:size-7" }) }),
705
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:justify-center ds:size-14 ds:rounded-[var(--radius-full)] ds:bg-primary/10 ds:text-primary ds:transition-colors ds:duration-[var(--animation-duration)] ds:group-hover:bg-primary/15 ds:motion-reduce:transition-none", children: C ? /* @__PURE__ */ r(Ie, { "aria-hidden": "true", className: "ds:size-7" }) : /* @__PURE__ */ r(T, { "aria-hidden": "true", className: "ds:size-7" }) }),
725
706
  /* @__PURE__ */ m("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)]", children: [
726
707
  /* @__PURE__ */ r("p", { className: "type-label ds:text-foreground ds:text-center ds:m-0", children: C ? o("inputs.fileUpload.dropActive", "Drop files here") : o(
727
708
  "inputs.fileUpload.dropHere",
@@ -729,7 +710,7 @@ const ss = Ne(
729
710
  ) }),
730
711
  se.length > 0 && !C && /* @__PURE__ */ r("p", { className: "type-meta ds:text-muted-foreground ds:text-center ds:m-0", children: se.join(" · ") })
731
712
  ] }),
732
- g === "both" && !C && /* @__PURE__ */ m(
713
+ h === "both" && !C && /* @__PURE__ */ m(
733
714
  "button",
734
715
  {
735
716
  type: "button",
@@ -750,7 +731,7 @@ const ss = Ne(
750
731
  ]
751
732
  }
752
733
  );
753
- }, ye = () => g === "dropzone" ? null : g === "button" ? /* @__PURE__ */ m("div", { onPaste: ee, ref: j, children: [
734
+ }, ye = () => h === "dropzone" ? null : h === "button" ? /* @__PURE__ */ m("div", { onPaste: ee, ref: j, children: [
754
735
  /* @__PURE__ */ r(
755
736
  "input",
756
737
  {
@@ -766,10 +747,10 @@ const ss = Ne(
766
747
  onClick: Q,
767
748
  disabled: x,
768
749
  className: ae({ className: P }),
769
- id: g === "button" ? K : void 0,
770
- "aria-describedby": g === "button" && v.describedBy || void 0,
771
- "aria-invalid": g === "button" && v.invalid || void 0,
772
- "aria-required": g === "button" && v.required || void 0,
750
+ id: h === "button" ? K : void 0,
751
+ "aria-describedby": h === "button" && v.describedBy || void 0,
752
+ "aria-invalid": h === "button" && v.invalid || void 0,
753
+ "aria-required": h === "button" && v.required || void 0,
773
754
  children: [
774
755
  /* @__PURE__ */ r(T, { "aria-hidden": "true", className: "ds:size-4" }),
775
756
  o("inputs.fileUpload.browse", "Browse files")
@@ -817,9 +798,9 @@ const ss = Ne(
817
798
  ] });
818
799
  }
819
800
  );
820
- ss.displayName = "FileUpload";
801
+ es.displayName = "FileUpload";
821
802
  export {
822
- ss as F,
823
- Pe as f
803
+ es as F,
804
+ We as f
824
805
  };
825
- //# sourceMappingURL=file-upload-nMh-1jDD.js.map
806
+ //# sourceMappingURL=file-upload-DxAQprcU.js.map
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
8
8
  import { u as Y } from "./registry-C9nwlNyL.js";
9
9
  import { B as R } from "./button-DD_0Xdmr.js";
10
10
  import { P as Z } from "./progress-B-PSO5OS.js";
11
- import { f as $ } from "./payment-form-BjkuQeqR.js";
11
+ import { f as $ } from "./payment-form-F7uh0Rqr.js";
12
12
  import { T as ee } from "./triangle-alert-CBPUIzQo.js";
13
13
  import { C as se } from "./check-DPdL_Sm7.js";
14
14
  const ae = {
@@ -265,4 +265,4 @@ export {
265
265
  te as F,
266
266
  ae as f
267
267
  };
268
- //# sourceMappingURL=freemium-paywall-DXc7XlGE.js.map
268
+ //# sourceMappingURL=freemium-paywall-CM6V1zNf.js.map
@@ -0,0 +1,19 @@
1
+ import { c } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
10
+ ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
11
+ ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
12
+ ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
13
+ ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
14
+ ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
15
+ ], i = c("grip-vertical", e);
16
+ export {
17
+ i as G
18
+ };
19
+ //# sourceMappingURL=grip-vertical-Dlg0_k5C.js.map