@alfadocs/ui-kit 0.2.2 → 0.4.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 (31) hide show
  1. package/dist/_chunks/{ai-prompt-input-BBiDlEIS.js → ai-prompt-input-DLgY8lrW.js} +2 -2
  2. package/dist/_chunks/{audio-recorder-B4U1LuiQ.js → audio-recorder-BdBbU-UK.js} +2 -2
  3. package/dist/_chunks/{command-palette-C_vgSgrI.js → command-palette-DkL-aW4O.js} +9 -2
  4. package/dist/_chunks/{dialog-BPD7wlGE.js → dialog-D5bK95-N.js} +24 -24
  5. package/dist/_chunks/{dropdown-menu-CpiF6CPz.js → dropdown-menu-dyV7gHh_.js} +2 -1
  6. package/dist/_chunks/{leo-sidebar-kHO45M6C.js → leo-sidebar-D1RdE54a.js} +2 -2
  7. package/dist/_chunks/{patient-shell-BlsEUKWB.js → patient-shell-IhMULVrt.js} +2 -2
  8. package/dist/_chunks/{select-y6bXV1f1.js → select-BOU_Osnf.js} +2 -1
  9. package/dist/_chunks/{sheet-4tgMFwj0.js → sheet-B9T3OQmz.js} +23 -23
  10. package/dist/_chunks/{tabs-DaFA3Muo.js → tabs-BZQy_Rmb.js} +2 -2
  11. package/dist/_chunks/{theme-toggle-B9zzCnvl.js → theme-toggle-B3UR6ouK.js} +2 -2
  12. package/dist/_chunks/{toast.agent-BwKXA0km.js → toast.agent-DihA6MON.js} +206 -203
  13. package/dist/_chunks/{workflow-map-C-nlogPC.js → workflow-map-Bi5liGzo.js} +2 -2
  14. package/dist/agent-catalog.json +1 -1
  15. package/dist/components/ai-prompt-input/index.js +1 -1
  16. package/dist/components/audio-recorder/index.js +1 -1
  17. package/dist/components/command-palette/index.js +1 -1
  18. package/dist/components/dialog/index.js +1 -1
  19. package/dist/components/dropdown-menu/index.js +1 -1
  20. package/dist/components/select/index.js +1 -1
  21. package/dist/components/sheet/index.js +1 -1
  22. package/dist/components/tabs/index.js +1 -1
  23. package/dist/components/theme-toggle/index.js +1 -1
  24. package/dist/components/toast/index.js +1 -1
  25. package/dist/components/workflow/index.js +1 -1
  26. package/dist/index.js +13 -13
  27. package/dist/patterns/leo-assistant/index.js +1 -1
  28. package/dist/patterns/patient-shell/index.js +1 -1
  29. package/dist/safe-html/index.js +13 -12
  30. package/dist/tokens.css +1 -1
  31. package/package.json +2 -1
@@ -6,7 +6,7 @@ import { u as Ae } from "./registry-C9nwlNyL.js";
6
6
  import { _ as b } from "./index-4xgbg-sn.js";
7
7
  import { u as Ce } from "./index-CeY1nNvd.js";
8
8
  import { I as ie } from "./icon-button-C4CGcYuz.js";
9
- import { S as Le } from "./select-y6bXV1f1.js";
9
+ import { S as Le } from "./select-BOU_Osnf.js";
10
10
  import { S as Re } from "./send-CySZIRPJ.js";
11
11
  import { X as Ue } from "./x-CCcI3eJp.js";
12
12
  const We = {
@@ -473,4 +473,4 @@ export {
473
473
  Qe as A,
474
474
  We as a
475
475
  };
476
- //# sourceMappingURL=ai-prompt-input-BBiDlEIS.js.map
476
+ //# sourceMappingURL=ai-prompt-input-DLgY8lrW.js.map
@@ -4,7 +4,7 @@ import { c as ce } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as oe } from "react-i18next";
5
5
  import { B as G } from "./button-DD_0Xdmr.js";
6
6
  import { I as N } from "./icon-button-C4CGcYuz.js";
7
- import { S as ue } from "./select-y6bXV1f1.js";
7
+ import { S as ue } from "./select-BOU_Osnf.js";
8
8
  import { A as pe } from "./audio-visualiser-ByDEFLNm.js";
9
9
  import { A as F } from "./alert-B1sj8Ss0.js";
10
10
  import { u as le } from "./registry-C9nwlNyL.js";
@@ -454,4 +454,4 @@ export {
454
454
  Ne as A,
455
455
  Re as a
456
456
  };
457
- //# sourceMappingURL=audio-recorder-B4U1LuiQ.js.map
457
+ //# sourceMappingURL=audio-recorder-BdBbU-UK.js.map
@@ -343,10 +343,17 @@ function ue({
343
343
  x([]), L([]);
344
344
  }, []);
345
345
  return /* @__PURE__ */ s(h.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ m(h.Portal, { children: [
346
- /* @__PURE__ */ s(h.Overlay, { className: se }),
346
+ /* @__PURE__ */ s(
347
+ h.Overlay,
348
+ {
349
+ "data-component": "command-palette-overlay",
350
+ className: se
351
+ }
352
+ ),
347
353
  /* @__PURE__ */ m(
348
354
  h.Content,
349
355
  {
356
+ "data-component": "command-palette-dialog",
350
357
  className: ne,
351
358
  "aria-label": c("navigation.cmdk.title", "Command palette"),
352
359
  children: [
@@ -438,4 +445,4 @@ export {
438
445
  ae as k,
439
446
  me as u
440
447
  };
441
- //# sourceMappingURL=command-palette-C_vgSgrI.js.map
448
+ //# sourceMappingURL=command-palette-DkL-aW4O.js.map
@@ -1,4 +1,4 @@
1
- import { jsx as a, jsxs as D } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as y } from "react/jsx-runtime";
2
2
  import { useState as k, useRef as z, useEffect as E, useCallback as I, useMemo as O, forwardRef as d, useContext as B, createContext as S } from "react";
3
3
  import * as t from "@radix-ui/react-dialog";
4
4
  import { c as A } from "./index-D2ZczOXr.js";
@@ -73,17 +73,17 @@ const $ = {
73
73
  }
74
74
  },
75
75
  defaultVariants: { size: "md" }
76
- }), y = S(void 0), v = ({
76
+ }), D = S(void 0), v = ({
77
77
  children: o,
78
78
  id: e,
79
- open: s,
79
+ open: a,
80
80
  defaultOpen: r,
81
81
  onOpenChange: i,
82
82
  ...p
83
83
  }) => {
84
- const l = s !== void 0, [m, g] = k(
84
+ const l = a !== void 0, [m, g] = k(
85
85
  r ?? !1
86
- ), n = l ? !!s : m, f = z(n);
86
+ ), n = l ? !!a : m, f = z(n);
87
87
  E(() => {
88
88
  f.current = n;
89
89
  }, [n]);
@@ -100,26 +100,26 @@ const $ = {
100
100
  }),
101
101
  [c]
102
102
  );
103
- return L($, j, e), /* @__PURE__ */ a(y.Provider, { value: e, children: /* @__PURE__ */ a(t.Root, { open: n, onOpenChange: c, ...p, children: o }) });
103
+ return L($, j, e), /* @__PURE__ */ s(D.Provider, { value: e, children: /* @__PURE__ */ s(t.Root, { open: n, onOpenChange: c, ...p, children: o }) });
104
104
  };
105
105
  v.displayName = "Dialog.Root";
106
- const h = d(({ children: o, ...e }, s) => /* @__PURE__ */ a(t.Trigger, { ref: s, ...e, children: o }));
106
+ const h = d(({ children: o, ...e }, a) => /* @__PURE__ */ s(t.Trigger, { ref: a, ...e, children: o }));
107
107
  h.displayName = "Dialog.Trigger";
108
- const b = d(({ children: o, ...e }, s) => /* @__PURE__ */ a(t.Close, { ref: s, ...e, children: o }));
108
+ const b = d(({ children: o, ...e }, a) => /* @__PURE__ */ s(t.Close, { ref: a, ...e, children: o }));
109
109
  b.displayName = "Dialog.Close";
110
110
  const N = d(
111
111
  ({
112
112
  size: o = "md",
113
113
  variant: e = "default",
114
- hideCloseButton: s = !0,
114
+ hideCloseButton: a = !0,
115
115
  className: r,
116
116
  children: i,
117
117
  ...p
118
118
  }, l) => {
119
- const { t: m } = H(), g = B(y), n = e === "alert" ? { role: "alertdialog" } : {};
120
- return /* @__PURE__ */ D(t.Portal, { children: [
121
- /* @__PURE__ */ a(t.Overlay, { className: P }),
122
- /* @__PURE__ */ D(
119
+ const { t: m } = H(), g = B(D), n = e === "alert" ? { role: "alertdialog" } : {};
120
+ return /* @__PURE__ */ y(t.Portal, { children: [
121
+ /* @__PURE__ */ s(t.Overlay, { "data-component": "dialog-overlay", className: P }),
122
+ /* @__PURE__ */ y(
123
123
  t.Content,
124
124
  {
125
125
  ref: l,
@@ -130,10 +130,10 @@ const N = d(
130
130
  ...p,
131
131
  children: [
132
132
  i,
133
- !s && /* @__PURE__ */ a("div", { className: "ds:absolute ds:end-[var(--spacing-md)] ds:top-[var(--spacing-md)]", children: /* @__PURE__ */ a(t.Close, { asChild: !0, children: /* @__PURE__ */ a(
133
+ !a && /* @__PURE__ */ s("div", { className: "ds:absolute ds:end-[var(--spacing-md)] ds:top-[var(--spacing-md)]", children: /* @__PURE__ */ s(t.Close, { asChild: !0, children: /* @__PURE__ */ s(
134
134
  F,
135
135
  {
136
- icon: /* @__PURE__ */ a(V, {}),
136
+ icon: /* @__PURE__ */ s(V, {}),
137
137
  intent: "ghost",
138
138
  size: "sm",
139
139
  "aria-label": m("ui.common.close", "Close")
@@ -147,10 +147,10 @@ const N = d(
147
147
  );
148
148
  N.displayName = "Dialog.Content";
149
149
  const w = d(
150
- ({ className: o, ...e }, s) => /* @__PURE__ */ a(
150
+ ({ className: o, ...e }, a) => /* @__PURE__ */ s(
151
151
  "div",
152
152
  {
153
- ref: s,
153
+ ref: a,
154
154
  className: [
155
155
  "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:pe-[var(--spacing-xl)]",
156
156
  o
@@ -160,26 +160,26 @@ const w = d(
160
160
  )
161
161
  );
162
162
  w.displayName = "Dialog.Header";
163
- const C = d(({ className: o, ...e }, s) => /* @__PURE__ */ a(
163
+ const C = d(({ className: o, ...e }, a) => /* @__PURE__ */ s(
164
164
  t.Title,
165
165
  {
166
- ref: s,
166
+ ref: a,
167
167
  className: ["type-title-card ds:break-words", o].filter(Boolean).join(" "),
168
168
  ...e
169
169
  }
170
170
  ));
171
171
  C.displayName = "Dialog.Title";
172
- const R = d(({ className: o, ...e }, s) => /* @__PURE__ */ a(
172
+ const R = d(({ className: o, ...e }, a) => /* @__PURE__ */ s(
173
173
  t.Description,
174
174
  {
175
- ref: s,
175
+ ref: a,
176
176
  className: ["type-body-sm ds:text-[var(--muted-foreground)]", o].filter(Boolean).join(" "),
177
177
  ...e
178
178
  }
179
179
  ));
180
180
  R.displayName = "Dialog.Description";
181
181
  const T = d(
182
- ({ className: o, divider: e = !1, ...s }, r) => /* @__PURE__ */ a(
182
+ ({ className: o, divider: e = !1, ...a }, r) => /* @__PURE__ */ s(
183
183
  "div",
184
184
  {
185
185
  ref: r,
@@ -189,7 +189,7 @@ const T = d(
189
189
  e && "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
190
190
  o
191
191
  ].filter(Boolean).join(" "),
192
- ...s
192
+ ...a
193
193
  }
194
194
  )
195
195
  );
@@ -208,4 +208,4 @@ export {
208
208
  U as D,
209
209
  $ as d
210
210
  };
211
- //# sourceMappingURL=dialog-BPD7wlGE.js.map
211
+ //# sourceMappingURL=dialog-D5bK95-N.js.map
@@ -271,6 +271,7 @@ const T = r(({ className: s, ...a }, o) => /* @__PURE__ */ e(t.Portal, { childre
271
271
  {
272
272
  ref: o,
273
273
  sideOffset: 8,
274
+ "data-component": "dropdown-menu-sub-content",
274
275
  className: N({ className: s }),
275
276
  ...a
276
277
  }
@@ -297,4 +298,4 @@ export {
297
298
  le as D,
298
299
  U as d
299
300
  };
300
- //# sourceMappingURL=dropdown-menu-CpiF6CPz.js.map
301
+ //# sourceMappingURL=dropdown-menu-dyV7gHh_.js.map
@@ -4,7 +4,7 @@ import * as ee from "@radix-ui/react-dialog";
4
4
  import { useTranslation as y } from "react-i18next";
5
5
  import { F as se } from "./floating-action-button-C8OYj8mE.js";
6
6
  import { I as B } from "./icon-button-C4CGcYuz.js";
7
- import { S as E } from "./sheet-4tgMFwj0.js";
7
+ import { S as E } from "./sheet-B9T3OQmz.js";
8
8
  import { X as de } from "./x-CCcI3eJp.js";
9
9
  import { A as L } from "./avatar-Dcr6XuDQ.js";
10
10
  import { B as D } from "./button-DD_0Xdmr.js";
@@ -756,4 +756,4 @@ export {
756
756
  we as b,
757
757
  Ce as c
758
758
  };
759
- //# sourceMappingURL=leo-sidebar-kHO45M6C.js.map
759
+ //# sourceMappingURL=leo-sidebar-D1RdE54a.js.map
@@ -3,7 +3,7 @@ import { forwardRef as k, useState as w } from "react";
3
3
  import { useTranslation as c } from "react-i18next";
4
4
  import { A as y } from "./app-frame-CDJOgPXe.js";
5
5
  import { I } from "./icon-button-C4CGcYuz.js";
6
- import { D as n } from "./dropdown-menu-CpiF6CPz.js";
6
+ import { D as n } from "./dropdown-menu-dyV7gHh_.js";
7
7
  import { H as L, g as A, f as H, e as x, a as C, c as M, d as B } from "./header-D0ULgQl3.js";
8
8
  import { L as N } from "./logo-_Z-jLq80.js";
9
9
  import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-Bx3wCDyy.js";
@@ -185,4 +185,4 @@ V.displayName = "PatientShell";
185
185
  export {
186
186
  V as P
187
187
  };
188
- //# sourceMappingURL=patient-shell-BlsEUKWB.js.map
188
+ //# sourceMappingURL=patient-shell-IhMULVrt.js.map
@@ -189,6 +189,7 @@ const I = a(
189
189
  ref: g,
190
190
  position: n,
191
191
  sideOffset: r,
192
+ "data-component": "select-content",
192
193
  className: we({ className: e }),
193
194
  ...c,
194
195
  children: [
@@ -408,4 +409,4 @@ export {
408
409
  H as i,
409
410
  j
410
411
  };
411
- //# sourceMappingURL=select-y6bXV1f1.js.map
412
+ //# sourceMappingURL=select-BOU_Osnf.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { useState as R, useRef as B, useEffect as T, useCallback as I, useMemo as D, forwardRef as i, useContext as O, createContext as A } from "react";
2
+ import { useState as R, useRef as B, useEffect as T, useCallback as I, useMemo as D, forwardRef as n, useContext as O, createContext as A } from "react";
3
3
  import * as d from "@radix-ui/react-dialog";
4
4
  import { c as H } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as E } from "react-i18next";
@@ -111,21 +111,21 @@ const b = A(void 0), m = ({
111
111
  children: e,
112
112
  id: t,
113
113
  open: s,
114
- defaultOpen: n,
114
+ defaultOpen: r,
115
115
  onOpenChange: a,
116
116
  ...p
117
117
  }) => {
118
- const r = s !== void 0, [N, C] = R(
119
- n ?? !1
120
- ), l = r ? !!s : N, f = B(l);
118
+ const i = s !== void 0, [N, C] = R(
119
+ r ?? !1
120
+ ), l = i ? !!s : N, f = B(l);
121
121
  T(() => {
122
122
  f.current = l;
123
123
  }, [l]);
124
124
  const c = I(
125
125
  (v) => {
126
- r || C(v), a == null || a(v);
126
+ i || C(v), a == null || a(v);
127
127
  },
128
- [r, a]
128
+ [i, a]
129
129
  ), w = D(
130
130
  () => ({
131
131
  getIsOpen: () => f.current,
@@ -137,15 +137,15 @@ const b = A(void 0), m = ({
137
137
  return L(P, w, t), /* @__PURE__ */ o(b.Provider, { value: t, children: /* @__PURE__ */ o(d.Root, { open: l, onOpenChange: c, ...p, children: e }) });
138
138
  };
139
139
  m.displayName = "Sheet.Root";
140
- const g = i(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Trigger, { ref: s, ...t, children: e }));
140
+ const g = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Trigger, { ref: s, ...t, children: e }));
141
141
  g.displayName = "Sheet.Trigger";
142
- const u = i(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Close, { ref: s, ...t, children: e }));
142
+ const u = n(({ children: e, ...t }, s) => /* @__PURE__ */ o(d.Close, { ref: s, ...t, children: e }));
143
143
  u.displayName = "Sheet.Close";
144
- const y = i(
145
- ({ side: e = "end", size: t = "md", className: s, children: n, ...a }, p) => {
146
- const r = O(b);
144
+ const y = n(
145
+ ({ side: e = "end", size: t = "md", className: s, children: r, ...a }, p) => {
146
+ const i = O(b);
147
147
  return /* @__PURE__ */ h(d.Portal, { children: [
148
- /* @__PURE__ */ o(d.Overlay, { className: M }),
148
+ /* @__PURE__ */ o(d.Overlay, { "data-component": "sheet-overlay", className: M }),
149
149
  /* @__PURE__ */ o(
150
150
  d.Content,
151
151
  {
@@ -156,22 +156,22 @@ const y = i(
156
156
  s
157
157
  ].filter(Boolean).join(" "),
158
158
  "data-component": "sheet",
159
- "data-component-id": r,
159
+ "data-component-id": i,
160
160
  ...a,
161
- children: n
161
+ children: r
162
162
  }
163
163
  )
164
164
  ] });
165
165
  }
166
166
  );
167
167
  y.displayName = "Sheet.Content";
168
- const x = i(
169
- ({ className: e, children: t, ...s }, n) => {
168
+ const x = n(
169
+ ({ className: e, children: t, ...s }, r) => {
170
170
  const { t: a } = E();
171
171
  return /* @__PURE__ */ h(
172
172
  "div",
173
173
  {
174
- ref: n,
174
+ ref: r,
175
175
  className: [
176
176
  "ds:sticky ds:top-0 ds:z-10 ds:flex ds:items-center ds:justify-between",
177
177
  "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)] ds:py-[var(--spacing-md)]",
@@ -196,7 +196,7 @@ const x = i(
196
196
  }
197
197
  );
198
198
  x.displayName = "Sheet.Header";
199
- const S = i(
199
+ const S = n(
200
200
  ({ className: e, ...t }, s) => /* @__PURE__ */ o(
201
201
  "div",
202
202
  {
@@ -212,7 +212,7 @@ const S = i(
212
212
  )
213
213
  );
214
214
  S.displayName = "Sheet.Body";
215
- const j = i(
215
+ const j = n(
216
216
  ({ className: e, ...t }, s) => /* @__PURE__ */ o(
217
217
  "div",
218
218
  {
@@ -229,7 +229,7 @@ const j = i(
229
229
  )
230
230
  );
231
231
  j.displayName = "Sheet.Footer";
232
- const k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o(
232
+ const k = n(({ className: e, ...t }, s) => /* @__PURE__ */ o(
233
233
  d.Title,
234
234
  {
235
235
  ref: s,
@@ -238,7 +238,7 @@ const k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o(
238
238
  }
239
239
  ));
240
240
  k.displayName = "Sheet.Title";
241
- const z = i(({ className: e, ...t }, s) => /* @__PURE__ */ o(
241
+ const z = n(({ className: e, ...t }, s) => /* @__PURE__ */ o(
242
242
  d.Description,
243
243
  {
244
244
  ref: s,
@@ -262,4 +262,4 @@ export {
262
262
  W as S,
263
263
  P as s
264
264
  };
265
- //# sourceMappingURL=sheet-4tgMFwj0.js.map
265
+ //# sourceMappingURL=sheet-B9T3OQmz.js.map
@@ -6,7 +6,7 @@ import { a as N, c as q } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Z } from "react-i18next";
7
7
  import { u as K } from "./use-direction-D6rvvG9G.js";
8
8
  import { c as D } from "./compose-refs-C0k0tdqF.js";
9
- import { S as ee } from "./select-y6bXV1f1.js";
9
+ import { S as ee } from "./select-BOU_Osnf.js";
10
10
  import { X as te } from "./x-CCcI3eJp.js";
11
11
  import { u as se } from "./registry-C9nwlNyL.js";
12
12
  import { C as ae } from "./chevron-down-BX_NP2Yh.js";
@@ -396,4 +396,4 @@ export {
396
396
  F as c,
397
397
  re as t
398
398
  };
399
- //# sourceMappingURL=tabs-DaFA3Muo.js.map
399
+ //# sourceMappingURL=tabs-BZQy_Rmb.js.map
@@ -5,7 +5,7 @@ import { useTranslation as g } from "react-i18next";
5
5
  import { I as b } from "./icon-button-C4CGcYuz.js";
6
6
  import { I as z } from "./icon-button-group-DeV3FpNY.js";
7
7
  import { S as j } from "./switch-C0psfIQF.js";
8
- import { D as o } from "./dropdown-menu-CpiF6CPz.js";
8
+ import { D as o } from "./dropdown-menu-dyV7gHh_.js";
9
9
  import { u as K } from "./use-theme-B1cwAXJR.js";
10
10
  import { u as L } from "./registry-C9nwlNyL.js";
11
11
  import { c as C } from "./createLucideIcon-CrFbzy84.js";
@@ -393,4 +393,4 @@ export {
393
393
  J as T,
394
394
  B as t
395
395
  };
396
- //# sourceMappingURL=theme-toggle-B9zzCnvl.js.map
396
+ //# sourceMappingURL=theme-toggle-B3UR6ouK.js.map