@alfadocs/ui-kit 0.20.0 → 0.21.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 (59) hide show
  1. package/dist/_chunks/{agenda-card-CsCm7hQv.js → agenda-card-BmpaUG1h.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-B8QZ3wEp.js → agenda-tray-DiInnVqk.js} +2 -2
  3. package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
  4. package/dist/_chunks/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
  5. package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
  6. package/dist/_chunks/{avatar-I10iCDs8.js → avatar-BpFohgWG.js} +24 -16
  7. package/dist/_chunks/{chat-message-ChOnwqf_.js → chat-message-W3k8rLOA.js} +2 -2
  8. package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +1972 -0
  9. package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
  10. package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
  11. package/dist/_chunks/key-value-pair-DBuOCtIc.js +98 -0
  12. package/dist/_chunks/{message-card-c6R0-qXq.js → message-card-i61k1TGc.js} +2 -2
  13. package/dist/_chunks/{message-tray-BNAS8al4.js → message-tray-DrV7G-wR.js} +2 -2
  14. package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
  15. package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
  16. package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
  17. package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
  18. package/dist/_chunks/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
  19. package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
  20. package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
  21. package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-712GL-8u.js} +3 -3
  22. package/dist/agent-catalog.json +1 -1
  23. package/dist/components/agenda-card/index.js +1 -1
  24. package/dist/components/agenda-tray/index.js +1 -1
  25. package/dist/components/alert/index.js +1 -1
  26. package/dist/components/audio-recorder/index.js +1 -1
  27. package/dist/components/avatar/avatar.d.ts +1 -1
  28. package/dist/components/avatar/index.js +1 -1
  29. package/dist/components/chat-message/index.js +1 -1
  30. package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
  31. package/dist/components/data-table/filters/date-range-filter.d.ts +12 -1
  32. package/dist/components/data-table/filters/select-filter.d.ts +58 -0
  33. package/dist/components/data-table/filters/typeahead-filter.d.ts +52 -0
  34. package/dist/components/data-table/index.d.ts +5 -1
  35. package/dist/components/data-table/index.js +23 -18
  36. package/dist/components/freemium-paywall/index.js +1 -1
  37. package/dist/components/key-value-pair/index.js +1 -1
  38. package/dist/components/key-value-pair/key-value-pair.d.ts +19 -1
  39. package/dist/components/message-card/index.js +1 -1
  40. package/dist/components/message-tray/index.js +1 -1
  41. package/dist/components/payment-form/index.js +1 -1
  42. package/dist/components/pdf-viewer/index.js +1 -1
  43. package/dist/components/sidebar/index.js +1 -1
  44. package/dist/components/timeline/index.js +1 -1
  45. package/dist/components/warning-stack/index.js +1 -1
  46. package/dist/components/whatsapp-button/index.js +1 -1
  47. package/dist/components/workflow/index.js +1 -1
  48. package/dist/i18n/config.js +34 -4
  49. package/dist/i18n/resources.d.ts +30 -0
  50. package/dist/index.js +399 -394
  51. package/dist/locales/de.json +10 -0
  52. package/dist/locales/en.json +10 -0
  53. package/dist/locales/it.json +10 -0
  54. package/dist/patterns/alia-assistant/index.js +1 -1
  55. package/dist/patterns/patient-shell/index.js +1 -1
  56. package/dist/tokens.css +2 -2
  57. package/package.json +1 -1
  58. package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +0 -1590
  59. package/dist/_chunks/key-value-pair-AbrRwesr.js +0 -76
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
3
  import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as b } from "react-i18next";
5
- import { A as x } from "./avatar-I10iCDs8.js";
5
+ import { A as x } from "./avatar-BpFohgWG.js";
6
6
  import { B as y } from "./badge-cLYVGlMh.js";
7
7
  import { C as N } from "./chevron-right-BrpYejk0.js";
8
8
  const C = h(
@@ -138,4 +138,4 @@ export {
138
138
  T as A,
139
139
  w as i
140
140
  };
141
- //# sourceMappingURL=agenda-card-CsCm7hQv.js.map
141
+ //# sourceMappingURL=agenda-card-BmpaUG1h.js.map
@@ -5,7 +5,7 @@ import { useTranslation as j } from "react-i18next";
5
5
  import { I as _ } from "./icon-button-C4CGcYuz.js";
6
6
  import { S as E } from "./skeleton-CZbwyJAA.js";
7
7
  import { E as P } from "./empty-state-3CLJIXSj.js";
8
- import { A as H } from "./agenda-card-CsCm7hQv.js";
8
+ import { A as H } from "./agenda-card-BmpaUG1h.js";
9
9
  import { u as K } from "./registry-C9nwlNyL.js";
10
10
  import { c as L } from "./createLucideIcon-CrFbzy84.js";
11
11
  import { P as V } from "./plus-CYKNmfuA.js";
@@ -178,4 +178,4 @@ export {
178
178
  G as A,
179
179
  D as a
180
180
  };
181
- //# sourceMappingURL=agenda-tray-B8QZ3wEp.js.map
181
+ //# sourceMappingURL=agenda-tray-DiInnVqk.js.map
@@ -66,7 +66,20 @@ const U = F(
66
66
  }
67
67
  }
68
68
  ), h = "ds:shrink-0 ds:size-5", $ = `${h} ds:mt-0.5`, q = [
69
+ // Default (no title): the alert root uses `items-center` and the
70
+ // button centres in the cross-axis. A centred 16×16 glyph inside a
71
+ // 44×44 button aligns optically with a single-line description.
72
+ // With a title: the root flips to `items-start` so the button's top
73
+ // edge aligns with the title row top. A centred glyph would then
74
+ // land ~11 px below the title's optical centre (button height is
75
+ // --min-target-size, much taller than the title's line-height). The
76
+ // `[data-has-title=true]` variant below flips the button to
77
+ // `items-start` and adds a block-start padding that pulls the glyph
78
+ // up onto the title row — same cap-height compensation idea as the
79
+ // leading icon's `mt-0.5`.
69
80
  "ds:ms-auto ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center",
81
+ "ds:[[data-has-title=true]_&]:items-start",
82
+ "ds:[[data-has-title=true]_&]:pt-[var(--spacing-sm)]",
70
83
  "ds:rounded-[var(--radius-sm)]",
71
84
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
72
85
  "ds:-mt-[var(--spacing-xs)] ds:-me-[var(--spacing-xs)]",
@@ -213,4 +226,4 @@ const nt = Object.assign(w, {
213
226
  export {
214
227
  nt as A
215
228
  };
216
- //# sourceMappingURL=alert-DBnawbmf.js.map
229
+ //# sourceMappingURL=alert-ywPR59NE.js.map
@@ -6,10 +6,10 @@ import { F as se } from "./floating-action-button-pojvb9gG.js";
6
6
  import { I as B } from "./icon-button-C4CGcYuz.js";
7
7
  import { S as E } from "./sheet-BT0izeoI.js";
8
8
  import { X as ae } from "./x-CCcI3eJp.js";
9
- import { A as C } from "./avatar-I10iCDs8.js";
9
+ import { A as C } from "./avatar-BpFohgWG.js";
10
10
  import { B as D } from "./button-DD_0Xdmr.js";
11
11
  import { C as de } from "./chat-container-izziXViv.js";
12
- import { C as ie } from "./chat-message-ChOnwqf_.js";
12
+ import { C as ie } from "./chat-message-W3k8rLOA.js";
13
13
  import { C as re } from "./chat-input-B3XmFGDw.js";
14
14
  import { S as le } from "./streaming-text-BgjCTVOw.js";
15
15
  import { a as q, S as O } from "./suggestion-chip-C4kxWUIs.js";
@@ -756,4 +756,4 @@ export {
756
756
  we as b,
757
757
  Ie as c
758
758
  };
759
- //# sourceMappingURL=alia-sidebar-Bof6TlFx.js.map
759
+ //# sourceMappingURL=alia-sidebar-CUi2UCbY.js.map
@@ -6,7 +6,7 @@ import { B as G } from "./button-DD_0Xdmr.js";
6
6
  import { I as N } from "./icon-button-C4CGcYuz.js";
7
7
  import { S as ue } from "./select-C92AT_OZ.js";
8
8
  import { A as pe } from "./audio-visualiser-I-T4Z7EU.js";
9
- import { A as F } from "./alert-DBnawbmf.js";
9
+ import { A as F } from "./alert-ywPR59NE.js";
10
10
  import { u as le } from "./registry-C9nwlNyL.js";
11
11
  import { c as V } from "./createLucideIcon-CrFbzy84.js";
12
12
  import { S as me } from "./square-CZoGU14v.js";
@@ -454,4 +454,4 @@ export {
454
454
  Ne as A,
455
455
  Re as a
456
456
  };
457
- //# sourceMappingURL=audio-recorder-DNkQLW1G.js.map
457
+ //# sourceMappingURL=audio-recorder-D4xM3H5i.js.map
@@ -1,12 +1,12 @@
1
- import { jsxs as C, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as C, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as y, useRef as j, useState as w, useEffect as A, useLayoutEffect as I } from "react";
3
3
  import { c as N } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as E } from "react-i18next";
5
5
  import { c as B } from "./compose-refs-C0k0tdqF.js";
6
6
  function R(s) {
7
7
  let e = 5381;
8
- for (let o = 0; o < s.length; o++)
9
- e = (e << 5) + e ^ s.charCodeAt(o), e = e >>> 0;
8
+ for (let t = 0; t < s.length; t++)
9
+ e = (e << 5) + e ^ s.charCodeAt(t), e = e >>> 0;
10
10
  return e;
11
11
  }
12
12
  const i = [
@@ -52,23 +52,31 @@ const T = N(
52
52
  sm: "ds:size-8 ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
53
53
  md: "ds:size-10 ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
54
54
  lg: "ds:size-12 ds:text-[length:var(--font-size-sm)] ds:font-semibold ds:leading-none",
55
- xl: "ds:size-16 ds:text-[length:var(--font-size-base)] ds:font-semibold ds:leading-none"
55
+ xl: "ds:size-16 ds:text-[length:var(--font-size-base)] ds:font-semibold ds:leading-none",
56
+ // 2xl / 3xl are hero / display crops (operator cards, practice-
57
+ // profile pages). They token-reference `--avatar-size-*` so
58
+ // consumer themes can override the dimensions per-context, and
59
+ // `--avatar-text-size-*` so initials scale proportionally to
60
+ // the circle (otherwise --font-size-base at 192px reads as a
61
+ // tiny letter in a vast disc).
62
+ "2xl": "ds:size-[var(--avatar-size-2xl)] ds:text-[length:var(--avatar-text-size-2xl)] ds:font-semibold ds:leading-none",
63
+ "3xl": "ds:size-[var(--avatar-size-3xl)] ds:text-[length:var(--avatar-text-size-3xl)] ds:font-semibold ds:leading-none"
56
64
  }
57
65
  },
58
66
  defaultVariants: { size: "md" }
59
67
  }
60
68
  ), U = y(
61
- ({ src: s, name: e, color: o, size: d, className: c, ...f }, v) => {
62
- const { t: g } = E(), l = j(null), u = B(v, l), [b, n] = w(!1);
69
+ ({ src: s, name: e, color: t, size: d, className: c, ...v }, f) => {
70
+ const { t: g } = E(), l = j(null), u = B(f, l), [b, n] = w(!1);
63
71
  A(() => {
64
72
  n(!1);
65
73
  }, [s]), I(() => {
66
74
  const a = l.current;
67
- a && (o ? a.style.setProperty("--avatar-color-override", o) : a.style.removeProperty("--avatar-color-override"));
68
- }, [o]);
69
- const r = !!s && !b, m = !r && !!e, h = !r && !e, p = o ? "ds:bg-[var(--avatar-color-override)]" : e ? S(e) : "ds:bg-muted", x = T({
75
+ a && (t ? a.style.setProperty("--avatar-color-override", t) : a.style.removeProperty("--avatar-color-override"));
76
+ }, [t]);
77
+ const o = !!s && !b, m = !o && !!e, h = !o && !e, p = t ? "ds:bg-[var(--avatar-color-override)]" : e ? S(e) : "ds:bg-muted", x = T({
70
78
  size: d,
71
- className: [p, o || e ? "ds:text-[var(--primary-foreground)]" : "ds:text-muted-foreground", c].filter(Boolean).join(" ")
79
+ className: [p, t || e ? "ds:text-[var(--primary-foreground)]" : "ds:text-muted-foreground", c].filter(Boolean).join(" ")
72
80
  }), z = e ?? g("avatar.placeholder", "User avatar");
73
81
  return /* @__PURE__ */ C(
74
82
  "span",
@@ -78,19 +86,19 @@ const T = N(
78
86
  "aria-label": z,
79
87
  "data-component": "avatar",
80
88
  className: x,
81
- ...f,
89
+ ...v,
82
90
  children: [
83
- (m || r) && !!e && /* @__PURE__ */ t("span", { "aria-hidden": "true", children: L(e) }),
84
- h && /* @__PURE__ */ t(
91
+ (m || o) && !!e && /* @__PURE__ */ r("span", { "aria-hidden": "true", children: L(e) }),
92
+ h && /* @__PURE__ */ r(
85
93
  "svg",
86
94
  {
87
95
  "aria-hidden": "true",
88
96
  viewBox: "0 0 24 24",
89
97
  className: "ds:size-[58%] ds:fill-current",
90
- children: /* @__PURE__ */ t("path", { d: "M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z" })
98
+ children: /* @__PURE__ */ r("path", { d: "M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z" })
91
99
  }
92
100
  ),
93
- r && /* @__PURE__ */ t(
101
+ o && /* @__PURE__ */ r(
94
102
  "img",
95
103
  {
96
104
  src: s,
@@ -111,4 +119,4 @@ export {
111
119
  L as g,
112
120
  S as n
113
121
  };
114
- //# sourceMappingURL=avatar-I10iCDs8.js.map
122
+ //# sourceMappingURL=avatar-BpFohgWG.js.map
@@ -3,7 +3,7 @@ import { forwardRef as C, useMemo as j, Fragment as g } from "react";
3
3
  import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as T } from "react-i18next";
5
5
  import { B as z } from "./button-DD_0Xdmr.js";
6
- import { A as M } from "./avatar-I10iCDs8.js";
6
+ import { A as M } from "./avatar-BpFohgWG.js";
7
7
  import { T as I } from "./timestamp-BV2lC-wV.js";
8
8
  import { s as A } from "./safe-image-src-DstKgCo7.js";
9
9
  import { c as F } from "./createLucideIcon-CrFbzy84.js";
@@ -236,4 +236,4 @@ H.displayName = "ChatMessage";
236
236
  export {
237
237
  H as C
238
238
  };
239
- //# sourceMappingURL=chat-message-ChOnwqf_.js.map
239
+ //# sourceMappingURL=chat-message-W3k8rLOA.js.map