@alfadocs/ui-kit 1.13.0 → 1.15.0

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 (110) hide show
  1. package/dist/_chunks/actions-cell-renderer-yy03OgRL.js +137 -0
  2. package/dist/_chunks/{balance-badge-cell--iQ_gtmi.js → balance-badge-cell-CgkxYO96.js} +7 -6
  3. package/dist/_chunks/{calendar-B4Gnyu1C.js → calendar-CHT9Rm3M.js} +2 -2
  4. package/dist/_chunks/{calendar-event-card-Bjdbik8G.js → calendar-event-card-BjdHZaqz.js} +18 -14
  5. package/dist/_chunks/calendar-plus-BFrIRE4r.js +19 -0
  6. package/dist/_chunks/calendar-workspace-CGuY4kmv.js +7480 -0
  7. package/dist/_chunks/clipboard-list-rSzfIYZB.js +25 -0
  8. package/dist/_chunks/{color-picker-oZ6zYks8.js → color-picker-CU303VjY.js} +4 -2
  9. package/dist/_chunks/data-table-DC5rO3Ty.js +1817 -0
  10. package/dist/_chunks/{field-value-DG8zaZvo.js → field-value-D-vkX9uL.js} +120 -140
  11. package/dist/_chunks/{file-manager-UsD8e_AB.js → file-manager-DJMeB3V8.js} +138 -153
  12. package/dist/_chunks/folder-plus-CutOs4DP.js +22 -0
  13. package/dist/_chunks/hourglass-BEAzW1wE.js +26 -0
  14. package/dist/_chunks/{notes-panel-CymneXtl.js → notes-panel-DYAtlq_i.js} +2 -2
  15. package/dist/_chunks/{patient-details-BQaUzPqp.js → patient-details-BfzvFnxQ.js} +73 -92
  16. package/dist/_chunks/{patient-summary-card-CvDxhbBR.js → patient-summary-card-D5Vfa321.js} +2 -2
  17. package/dist/_chunks/{practice-results-D7ygCj_W.js → practice-results-DL_ExLYE.js} +159 -172
  18. package/dist/_chunks/{rich-text-editor-BDfFtK4H.js → rich-text-editor-DtbcA6s1.js} +2 -2
  19. package/dist/_chunks/signature-CpFNpsVK.js +21 -0
  20. package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-CEiPe-vX.js} +19 -34
  21. package/dist/_chunks/smartphone-C0rFF2if.js +15 -0
  22. package/dist/_chunks/{toast.agent-D1tdg6DS.js → toast-YZz2sBzB.js} +160 -212
  23. package/dist/_chunks/toast.agent-DNQ0JYGv.js +56 -0
  24. package/dist/_chunks/{workflow-map-wcw3t6g4.js → workflow-map-dNzJjBWG.js} +103 -112
  25. package/dist/agent-catalog.json +867 -1
  26. package/dist/agent-i18n/en.json +27 -0
  27. package/dist/components/calendar/index.js +1 -1
  28. package/dist/components/calendar-event-card/index.js +1 -1
  29. package/dist/components/color-picker/index.js +1 -1
  30. package/dist/components/data-table/index.js +39 -38
  31. package/dist/components/file-manager/index.js +1 -1
  32. package/dist/components/index.d.ts +1 -0
  33. package/dist/components/notes-panel/index.js +1 -1
  34. package/dist/components/patient-details/index.js +1 -1
  35. package/dist/components/patient-summary-card/index.js +1 -1
  36. package/dist/components/patient-table/index.js +1 -1
  37. package/dist/components/practice-results/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/signature-field/index.js +1 -1
  40. package/dist/components/toast/index.js +7 -6
  41. package/dist/components/workflow/index.js +1 -1
  42. package/dist/i18n/locales/ar.d.ts +680 -0
  43. package/dist/i18n/locales/ar.js +680 -0
  44. package/dist/i18n/locales/de.d.ts +680 -0
  45. package/dist/i18n/locales/de.js +680 -0
  46. package/dist/i18n/locales/el.d.ts +680 -0
  47. package/dist/i18n/locales/el.js +680 -0
  48. package/dist/i18n/locales/en.d.ts +680 -0
  49. package/dist/i18n/locales/en.js +680 -0
  50. package/dist/i18n/locales/es.d.ts +680 -0
  51. package/dist/i18n/locales/es.js +680 -0
  52. package/dist/i18n/locales/fr.d.ts +680 -0
  53. package/dist/i18n/locales/fr.js +680 -0
  54. package/dist/i18n/locales/hi.d.ts +680 -0
  55. package/dist/i18n/locales/hi.js +680 -0
  56. package/dist/i18n/locales/it.d.ts +680 -0
  57. package/dist/i18n/locales/it.js +680 -0
  58. package/dist/i18n/locales/ja.d.ts +680 -0
  59. package/dist/i18n/locales/ja.js +680 -0
  60. package/dist/i18n/locales/nl.d.ts +680 -0
  61. package/dist/i18n/locales/nl.js +680 -0
  62. package/dist/i18n/locales/pl.d.ts +680 -0
  63. package/dist/i18n/locales/pl.js +680 -0
  64. package/dist/i18n/locales/pt.d.ts +680 -0
  65. package/dist/i18n/locales/pt.js +680 -0
  66. package/dist/i18n/locales/ro.d.ts +680 -0
  67. package/dist/i18n/locales/ro.js +680 -0
  68. package/dist/i18n/locales/ru.d.ts +680 -0
  69. package/dist/i18n/locales/ru.js +680 -0
  70. package/dist/i18n/locales/sq.d.ts +680 -0
  71. package/dist/i18n/locales/sq.js +680 -0
  72. package/dist/i18n/locales/sv.d.ts +680 -0
  73. package/dist/i18n/locales/sv.js +680 -0
  74. package/dist/i18n/locales/tr.d.ts +680 -0
  75. package/dist/i18n/locales/tr.js +680 -0
  76. package/dist/i18n/locales/zh.d.ts +680 -0
  77. package/dist/i18n/locales/zh.js +680 -0
  78. package/dist/index.js +821 -803
  79. package/dist/locales/ar.json +680 -0
  80. package/dist/locales/de.json +680 -0
  81. package/dist/locales/el.json +680 -0
  82. package/dist/locales/en.json +680 -0
  83. package/dist/locales/es.json +680 -0
  84. package/dist/locales/fr.json +680 -0
  85. package/dist/locales/hi.json +680 -0
  86. package/dist/locales/it.json +680 -0
  87. package/dist/locales/ja.json +680 -0
  88. package/dist/locales/nl.json +680 -0
  89. package/dist/locales/pl.json +680 -0
  90. package/dist/locales/pt.json +680 -0
  91. package/dist/locales/ro.json +680 -0
  92. package/dist/locales/ru.json +680 -0
  93. package/dist/locales/sq.json +680 -0
  94. package/dist/locales/sv.json +680 -0
  95. package/dist/locales/tr.json +680 -0
  96. package/dist/locales/zh.json +680 -0
  97. package/dist/patterns/calendar/calendar-workspace.d.ts +82 -0
  98. package/dist/patterns/calendar/calendar-workspace.model.d.ts +380 -0
  99. package/dist/patterns/calendar/calendar.data.d.ts +122 -0
  100. package/dist/patterns/calendar/calendar.host.d.ts +10 -0
  101. package/dist/patterns/calendar/calendar.journey.d.ts +119 -0
  102. package/dist/patterns/calendar/calendar.model.d.ts +684 -0
  103. package/dist/patterns/calendar/calendar.preferences.d.ts +74 -0
  104. package/dist/patterns/calendar/calendar.sheets.d.ts +398 -0
  105. package/dist/patterns/calendar/calendar.surface.d.ts +85 -0
  106. package/dist/patterns/calendar/calendar.types.d.ts +413 -0
  107. package/dist/patterns/calendar/index.d.ts +13 -0
  108. package/dist/patterns/calendar/index.js +19 -0
  109. package/package.json +5 -1
  110. package/dist/_chunks/actions-cell-renderer-ReurEy5i.js +0 -1945
@@ -0,0 +1,137 @@
1
+ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
+ import { isValidElement as w, cloneElement as A, forwardRef as B } from "react";
3
+ import { useTranslation as R } from "react-i18next";
4
+ import { I as f } from "./icon-button-DA2CAGHZ.js";
5
+ import { I as S } from "./icon-button-group-VCCod3Hz.js";
6
+ import { D as l } from "./dropdown-menu-DU-Hrf33.js";
7
+ import { E as T } from "./ellipsis-dRo9ouSU.js";
8
+ function h(s) {
9
+ if (!w(s)) return s;
10
+ const e = s, i = e.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(i) ? i : `${i} size-4`.trim();
11
+ return A(e, { className: r, size: e.props.size ?? 16 });
12
+ }
13
+ function G(s) {
14
+ return Math.max(1, s) * 32 + 28;
15
+ }
16
+ function p(s, e) {
17
+ return typeof s == "function" ? s(e) : !!s;
18
+ }
19
+ const k = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
20
+ function V(s) {
21
+ const {
22
+ data: e,
23
+ actions: i,
24
+ intent: r = "ghost",
25
+ group: v,
26
+ label: a,
27
+ collapsed: c,
28
+ maxInline: n
29
+ } = s, { t: d } = R();
30
+ if (!e) return null;
31
+ const u = i.filter((t) => !p(t.hidden, e)), N = typeof c == "function" ? c() : !!c, z = n === void 0 ? u : u.slice(0, Math.max(0, n)), C = n === void 0 ? [] : u.slice(Math.max(0, n));
32
+ if (N)
33
+ return /* @__PURE__ */ m(l.Root, { children: [
34
+ /* @__PURE__ */ o(l.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
35
+ f,
36
+ {
37
+ size: "sm",
38
+ intent: r,
39
+ icon: /* @__PURE__ */ o(T, { "aria-hidden": !0 }),
40
+ "aria-label": a ?? d("dataTable.actions", "Actions")
41
+ }
42
+ ) }),
43
+ /* @__PURE__ */ o(l.Content, { align: "end", children: u.map((t, b) => /* @__PURE__ */ o(
44
+ l.Item,
45
+ {
46
+ startIcon: h(t.icon),
47
+ disabled: p(t.disabled, e),
48
+ onSelect: () => t.onClick(e),
49
+ className: t.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
50
+ children: t.label
51
+ },
52
+ b
53
+ )) })
54
+ ] });
55
+ const x = z.map((t, b) => {
56
+ const I = p(t.disabled, e), E = I && t.disabledReason ? t.disabledReason : t.label;
57
+ return /* @__PURE__ */ o(
58
+ f,
59
+ {
60
+ size: "sm",
61
+ intent: r,
62
+ icon: h(t.icon),
63
+ tooltip: E,
64
+ "aria-label": t.label,
65
+ disabled: I,
66
+ onClick: (M) => {
67
+ M.stopPropagation(), t.onClick(e);
68
+ },
69
+ className: t.variant === "destructive" ? k : void 0
70
+ },
71
+ b
72
+ );
73
+ }), g = C.length > 0 ? /* @__PURE__ */ o(
74
+ L,
75
+ {
76
+ data: e,
77
+ actions: C,
78
+ intent: r,
79
+ label: a ?? d("dataTable.actions", "Actions")
80
+ },
81
+ "overflow"
82
+ ) : null;
83
+ return v ? /* @__PURE__ */ m(
84
+ S,
85
+ {
86
+ "aria-label": a ?? d("dataTable.actions", "Actions"),
87
+ size: "sm",
88
+ children: [
89
+ x,
90
+ g
91
+ ]
92
+ }
93
+ ) : /* @__PURE__ */ m("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
94
+ x,
95
+ g
96
+ ] });
97
+ }
98
+ const L = B(function({
99
+ data: e,
100
+ actions: i,
101
+ label: r,
102
+ intent: v = "ghost",
103
+ ...a
104
+ }, c) {
105
+ return /* @__PURE__ */ m(l.Root, { children: [
106
+ /* @__PURE__ */ o(l.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
107
+ f,
108
+ {
109
+ ref: c,
110
+ type: "button",
111
+ size: "sm",
112
+ intent: v,
113
+ icon: /* @__PURE__ */ o(T, { "aria-hidden": !0 }),
114
+ tooltip: r,
115
+ "aria-label": r,
116
+ onClick: (n) => n.stopPropagation(),
117
+ ...a
118
+ }
119
+ ) }),
120
+ /* @__PURE__ */ o(l.Content, { align: "end", children: i.map((n, d) => /* @__PURE__ */ o(
121
+ l.Item,
122
+ {
123
+ startIcon: h(n.icon),
124
+ disabled: p(n.disabled, e),
125
+ onSelect: () => n.onClick(e),
126
+ className: n.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
127
+ children: n.label
128
+ },
129
+ d
130
+ )) })
131
+ ] });
132
+ });
133
+ export {
134
+ V as A,
135
+ G as a
136
+ };
137
+ //# sourceMappingURL=actions-cell-renderer-yy03OgRL.js.map
@@ -1,7 +1,8 @@
1
1
  import { jsx as v, jsxs as M } from "react/jsx-runtime";
2
2
  import { createElement as O, useRef as k, useEffect as ne, useCallback as j, forwardRef as pe, useState as ae, useImperativeHandle as be, useMemo as Q } from "react";
3
3
  import { useTranslation as K } from "react-i18next";
4
- import { a as g, T as C, A as ge, d as ie, D as S, e as Ce } from "./actions-cell-renderer-ReurEy5i.js";
4
+ import { a as g, T as C, D as S, d as ge } from "./data-table-DC5rO3Ty.js";
5
+ import { A as Ce, a as ie } from "./actions-cell-renderer-yy03OgRL.js";
5
6
  import { S as ve } from "./select-Bi8zril7.js";
6
7
  import { u as Te } from "./registry-DvAUVLHh.js";
7
8
  import { I as we, L as Ne, b as _, a as z, c as H, N as $, d as R, S as I, T as re, D as q, g as Fe, f as Re, U as Ie, e as ye } from "./link-cell-renderer-CIASXsVM.js";
@@ -830,7 +831,7 @@ function Qe(e, a = {}) {
830
831
  // other column — no right-aligned header (the actions still sit at the
831
832
  // pinned inline-end edge, the group just starts at the cell's leading edge).
832
833
  cellClass: "ds:justify-start ag-cell-graphic",
833
- cellRenderer: ge,
834
+ cellRenderer: Ce,
834
835
  cellRendererParams: {
835
836
  actions: h,
836
837
  intent: "ghost",
@@ -1093,7 +1094,7 @@ const it = pe(
1093
1094
  ] })
1094
1095
  ] }), ue = T ?? ce, me = i ? void 0 : a, fe = Q(() => ({ getRowId: nt }), []);
1095
1096
  return Te(
1096
- Ce,
1097
+ ge,
1097
1098
  N,
1098
1099
  s
1099
1100
  ), /* @__PURE__ */ v(
@@ -1141,7 +1142,7 @@ function ot(e) {
1141
1142
  const a = typeof e == "number" ? e : Number(e);
1142
1143
  return Number.isFinite(a) ? a : null;
1143
1144
  }
1144
- function yt(e) {
1145
+ function Pt(e) {
1145
1146
  const { value: a, currency: o = "EUR", options: s } = e, { t: l, i18n: r } = K("ui"), c = ot(a);
1146
1147
  if (c === null) return null;
1147
1148
  const h = r.language || "en", d = new Intl.NumberFormat(h, {
@@ -1155,7 +1156,7 @@ function yt(e) {
1155
1156
  ] });
1156
1157
  }
1157
1158
  export {
1158
- yt as B,
1159
+ Pt as B,
1159
1160
  ke as C,
1160
1161
  He as N,
1161
1162
  $e as P,
@@ -1165,4 +1166,4 @@ export {
1165
1166
  oe as g,
1166
1167
  et as u
1167
1168
  };
1168
- //# sourceMappingURL=balance-badge-cell--iQ_gtmi.js.map
1169
+ //# sourceMappingURL=balance-badge-cell-CgkxYO96.js.map
@@ -12,7 +12,7 @@ import Zt from "@fullcalendar/timeline";
12
12
  import Qt from "@fullcalendar/interaction";
13
13
  import { u as er } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
14
  import { u as tr } from "./registry-DvAUVLHh.js";
15
- import { w as rr, C as nr } from "./calendar-event-card-Bjdbik8G.js";
15
+ import { w as rr, C as nr } from "./calendar-event-card-BjdHZaqz.js";
16
16
  import { A as ir } from "./avatar-BNQNhoyL.js";
17
17
  import { R as ar } from "./resource-chip-DYTG0IQQ.js";
18
18
  import { T as sr } from "./tooltip-DvmfrNvB.js";
@@ -1249,4 +1249,4 @@ export {
1249
1249
  dr as c,
1250
1250
  pe as r
1251
1251
  };
1252
- //# sourceMappingURL=calendar-B4Gnyu1C.js.map
1252
+ //# sourceMappingURL=calendar-CHT9Rm3M.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as q } from "react";
3
- import { useTranslation as G } from "react-i18next";
4
- import { c as Z } from "./index-D2ZczOXr.js";
2
+ import { forwardRef as Z } from "react";
3
+ import { useTranslation as q } from "react-i18next";
4
+ import { c as G } from "./index-D2ZczOXr.js";
5
5
  import { C as W } from "./clipboard-check-BeAGxDVT.js";
6
6
  import { E } from "./eye-off-C_4xkbRP.js";
7
7
  import { c as f } from "./createLucideIcon-DhHxpK9K.js";
@@ -11,8 +11,8 @@ import { C as F } from "./clock-Drd4Wtis.js";
11
11
  import { G as J } from "./globe-sHBW1JN5.js";
12
12
  import { T as P } from "./triangle-alert-CBnO6nq_.js";
13
13
  import { H as Q } from "./heart-pulse-BCppJyN2.js";
14
- import { V as X } from "./video-BheNGvsu.js";
15
- import { R as T } from "./repeat-CvQa5rZt.js";
14
+ import { V as T } from "./video-BheNGvsu.js";
15
+ import { R as X } from "./repeat-CvQa5rZt.js";
16
16
  /**
17
17
  * @license lucide-react v1.22.0 - ISC
18
18
  *
@@ -125,7 +125,7 @@ const me = {
125
125
  done: "calendar.status.done",
126
126
  cancelled: "calendar.status.cancelled",
127
127
  absent: "calendar.status.absent"
128
- }, ve = Z(
128
+ }, ve = G(
129
129
  [
130
130
  // Block root; the appointment content is a wrap-capable flex row
131
131
  // (inline-flowing text cell beside the icon column — structurally
@@ -230,7 +230,7 @@ const me = {
230
230
  colorStyle: "solid"
231
231
  }
232
232
  }
233
- ), fe = q(
233
+ ), fe = Z(
234
234
  ({
235
235
  title: a,
236
236
  suffix: r,
@@ -253,12 +253,12 @@ const me = {
253
253
  resourceLabel: A,
254
254
  privacyMasked: $ = !1,
255
255
  eventId: L,
256
- className: C,
256
+ className: B,
257
257
  style: I,
258
- "aria-label": B,
258
+ "aria-label": C,
259
259
  ...O
260
260
  }, M) => {
261
- const { t: b } = G(), x = s ? me[s] : null, H = !!x || !!g || !!N || !!w || !!k || !!y || !!z, R = s ? b(ue[s]) : void 0, V = u ? b("calendar.eventKind.draft") : l ? b("calendar.eventKind.task") : void 0, K = B ?? [a, n, A, R, V].filter(Boolean).join(", "), v = !l && !u && j === "tinted", _ = !v && !p && o ? ce(o) : null, S = v ? o ? { "--calendar-event-accent": o } : void 0 : o || p || h ? {
261
+ const { t: b } = q(), x = s ? me[s] : null, H = !!x || !!g || !!N || !!w || !!k || !!y || !!z, R = s ? b(ue[s]) : void 0, V = u ? b("calendar.eventKind.draft") : l ? b("calendar.eventKind.task") : void 0, K = C ?? [a, n, A, R, V].filter(Boolean).join(", "), v = !l && !u && j === "tinted", _ = !v && !p && o ? ce(o) : null, S = v ? o ? { "--calendar-event-accent": o } : void 0 : o || p || h ? {
262
262
  ...o ? { "--calendar-event-bg": o } : {},
263
263
  ...p ? { "--calendar-event-text": p } : _ === "on-light" ? { "--calendar-event-text": "var(--event-ink-on-light)" } : _ === "on-dark" ? { "--calendar-event-text": "var(--event-ink-on-dark)" } : {},
264
264
  ...h ? { "--calendar-event-border": h } : {}
@@ -273,7 +273,7 @@ const me = {
273
273
  bookedOnline: g,
274
274
  kind: u ? "draft" : l ? "task" : "appointment",
275
275
  colorStyle: v ? "tinted" : "solid",
276
- className: C
276
+ className: B
277
277
  }),
278
278
  style: U,
279
279
  "aria-label": K,
@@ -390,7 +390,7 @@ const me = {
390
390
  {
391
391
  "aria-hidden": "true",
392
392
  className: `${i} ${m.info}`,
393
- children: /* @__PURE__ */ e(X, { size: 11, "aria-hidden": "true" })
393
+ children: /* @__PURE__ */ e(T, { size: 11, "aria-hidden": "true" })
394
394
  }
395
395
  ) : null,
396
396
  z ? /* @__PURE__ */ e(
@@ -398,7 +398,7 @@ const me = {
398
398
  {
399
399
  "aria-hidden": "true",
400
400
  className: `${i} ${m.info}`,
401
- children: /* @__PURE__ */ e(T, { size: 11, "aria-hidden": "true" })
401
+ children: /* @__PURE__ */ e(X, { size: 11, "aria-hidden": "true" })
402
402
  }
403
403
  ) : null
404
404
  ]
@@ -419,7 +419,11 @@ const me = {
419
419
  );
420
420
  fe.displayName = "CalendarEventCard";
421
421
  export {
422
+ ne as B,
422
423
  fe as C,
424
+ re as E,
425
+ te as T,
426
+ ie as Z,
423
427
  Ae as w
424
428
  };
425
- //# sourceMappingURL=calendar-event-card-Bjdbik8G.js.map
429
+ //# sourceMappingURL=calendar-event-card-BjdHZaqz.js.map
@@ -0,0 +1,19 @@
1
+ import { c as a } from "./createLucideIcon-DhHxpK9K.js";
2
+ /**
3
+ * @license lucide-react v1.22.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
+ ["path", { d: "M16 19h6", key: "xwg31i" }],
10
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
11
+ ["path", { d: "M19 16v6", key: "tddt3s" }],
12
+ ["path", { d: "M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5", key: "1glfrc" }],
13
+ ["path", { d: "M3 10h18", key: "8toen8" }],
14
+ ["path", { d: "M8 2v4", key: "1cmpym" }]
15
+ ], d = a("calendar-plus", e);
16
+ export {
17
+ d as C
18
+ };
19
+ //# sourceMappingURL=calendar-plus-BFrIRE4r.js.map