@alfadocs/ui-kit 1.32.0 → 1.34.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 (113) hide show
  1. package/dist/_chunks/{appointment-card-D-oj_ugh.js → appointment-card-D6mk39NB.js} +3 -3
  2. package/dist/_chunks/{appointment-timeline-CymGHyIP.js → appointment-timeline-D-V97Bhc.js} +2 -2
  3. package/dist/_chunks/{appointment-tray-DCk8gHod.js → appointment-tray-6rg071CL.js} +2 -2
  4. package/dist/_chunks/{booking-l6UGNiE1.js → booking-BqkEtsKx.js} +777 -747
  5. package/dist/_chunks/{calendar-workspace-BX-zDyVR.js → calendar-workspace-4NH1Z47_.js} +7 -7
  6. package/dist/_chunks/{clinical-note-card-D2WTV2CO.js → clinical-note-card-CTRzmqvv.js} +83 -81
  7. package/dist/_chunks/{contact-profile-card-BZqi8Hck.js → contact-profile-card-DSI9uumA.js} +17 -16
  8. package/dist/_chunks/{control-room-rail-iO_BCaq1.js → control-room-rail-5MbhjsxN.js} +2 -2
  9. package/dist/_chunks/format-price-BkMEbeW3.js +47 -0
  10. package/dist/_chunks/{format-price-DNqXPa_q.js → languages-CZqBaPwI.js} +8 -38
  11. package/dist/_chunks/money.agent-Dw55UxUA.js +116 -0
  12. package/dist/_chunks/notes-panel-BjLt-kiP.js +469 -0
  13. package/dist/_chunks/{practice-results-DjEzPgAK.js → practice-results-kayDEorM.js} +15 -14
  14. package/dist/_chunks/{rich-text-editor-CQ7yZdG3.js → rich-text-editor-CCI-Y3DN.js} +3 -5
  15. package/dist/_chunks/{task-card-BUgK6yZT.js → task-card-BalrLkSz.js} +41 -40
  16. package/dist/_chunks/{task-tray-CYG6rj2s.js → task-tray-COo-RlDv.js} +2 -2
  17. package/dist/_chunks/tasks-panel-DLKpSNoE.js +844 -0
  18. package/dist/_chunks/tool-rail-ONaV-Nzz.js +588 -0
  19. package/dist/_chunks/use-check-animation--I3cS00X.js +28 -0
  20. package/dist/_chunks/use-list-reflow-Cw43nxw5.js +100 -0
  21. package/dist/agent-catalog.json +15 -1
  22. package/dist/components/_shared/format-price.d.ts +15 -0
  23. package/dist/components/appointment-card/index.js +2 -2
  24. package/dist/components/appointment-timeline/index.js +1 -1
  25. package/dist/components/booking/index.js +1 -1
  26. package/dist/components/clinical-note-card/clinical-note-card.d.ts +8 -1
  27. package/dist/components/clinical-note-card/index.js +1 -1
  28. package/dist/components/command-palette/command-palette.d.ts +7 -7
  29. package/dist/components/contact-profile-card/index.js +1 -1
  30. package/dist/components/control-room-rail/index.js +1 -1
  31. package/dist/components/index.d.ts +1 -0
  32. package/dist/components/money/index.d.ts +4 -0
  33. package/dist/components/money/index.js +6 -0
  34. package/dist/components/money/money.agent.d.ts +3 -0
  35. package/dist/components/money/money.d.ts +38 -0
  36. package/dist/components/notes-panel/index.js +1 -1
  37. package/dist/components/notes-panel/notes-panel.d.ts +16 -1
  38. package/dist/components/practice-results/index.js +1 -1
  39. package/dist/components/rich-text-editor/index.js +1 -1
  40. package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  41. package/dist/components/task-card/index.js +1 -1
  42. package/dist/components/task-card/task-card.d.ts +11 -3
  43. package/dist/components/task-tray/index.js +1 -1
  44. package/dist/components/tasks-panel/index.js +1 -1
  45. package/dist/components/tasks-panel/tasks-panel.d.ts +1 -1
  46. package/dist/components/tool-rail/index.js +1 -1
  47. package/dist/hooks/index.d.ts +3 -0
  48. package/dist/hooks/index.js +43 -37
  49. package/dist/hooks/use-check-animation.d.ts +53 -0
  50. package/dist/hooks/use-exit-transition.d.ts +48 -0
  51. package/dist/hooks/use-list-reflow.d.ts +47 -0
  52. package/dist/host-compat.css +8 -2
  53. package/dist/i18n/locales/ar.d.ts +5 -0
  54. package/dist/i18n/locales/ar.js +6 -1
  55. package/dist/i18n/locales/de.d.ts +5 -0
  56. package/dist/i18n/locales/de.js +6 -1
  57. package/dist/i18n/locales/el.d.ts +5 -0
  58. package/dist/i18n/locales/el.js +6 -1
  59. package/dist/i18n/locales/en.d.ts +5 -0
  60. package/dist/i18n/locales/en.js +6 -1
  61. package/dist/i18n/locales/es.d.ts +5 -0
  62. package/dist/i18n/locales/es.js +6 -1
  63. package/dist/i18n/locales/fr.d.ts +5 -0
  64. package/dist/i18n/locales/fr.js +6 -1
  65. package/dist/i18n/locales/hi.d.ts +5 -0
  66. package/dist/i18n/locales/hi.js +6 -1
  67. package/dist/i18n/locales/it.d.ts +5 -0
  68. package/dist/i18n/locales/it.js +6 -1
  69. package/dist/i18n/locales/ja.d.ts +5 -0
  70. package/dist/i18n/locales/ja.js +6 -1
  71. package/dist/i18n/locales/nl.d.ts +5 -0
  72. package/dist/i18n/locales/nl.js +6 -1
  73. package/dist/i18n/locales/pl.d.ts +5 -0
  74. package/dist/i18n/locales/pl.js +6 -1
  75. package/dist/i18n/locales/pt.d.ts +5 -0
  76. package/dist/i18n/locales/pt.js +6 -1
  77. package/dist/i18n/locales/ro.d.ts +5 -0
  78. package/dist/i18n/locales/ro.js +6 -1
  79. package/dist/i18n/locales/ru.d.ts +5 -0
  80. package/dist/i18n/locales/ru.js +6 -1
  81. package/dist/i18n/locales/sq.d.ts +5 -0
  82. package/dist/i18n/locales/sq.js +6 -1
  83. package/dist/i18n/locales/sv.d.ts +5 -0
  84. package/dist/i18n/locales/sv.js +6 -1
  85. package/dist/i18n/locales/tr.d.ts +5 -0
  86. package/dist/i18n/locales/tr.js +6 -1
  87. package/dist/i18n/locales/zh.d.ts +5 -0
  88. package/dist/i18n/locales/zh.js +6 -1
  89. package/dist/index.js +919 -916
  90. package/dist/locales/ar.json +6 -1
  91. package/dist/locales/de.json +6 -1
  92. package/dist/locales/el.json +6 -1
  93. package/dist/locales/en.json +6 -1
  94. package/dist/locales/es.json +6 -1
  95. package/dist/locales/fr.json +6 -1
  96. package/dist/locales/hi.json +6 -1
  97. package/dist/locales/it.json +6 -1
  98. package/dist/locales/ja.json +6 -1
  99. package/dist/locales/nl.json +6 -1
  100. package/dist/locales/pl.json +6 -1
  101. package/dist/locales/pt.json +6 -1
  102. package/dist/locales/ro.json +6 -1
  103. package/dist/locales/ru.json +6 -1
  104. package/dist/locales/sq.json +6 -1
  105. package/dist/locales/sv.json +6 -1
  106. package/dist/locales/tr.json +6 -1
  107. package/dist/locales/zh.json +6 -1
  108. package/dist/patterns/calendar/index.js +1 -1
  109. package/dist/tokens.css +2 -1
  110. package/package.json +5 -1
  111. package/dist/_chunks/notes-panel-C4G-mhZ9.js +0 -380
  112. package/dist/_chunks/tasks-panel-DQuaVvl5.js +0 -757
  113. package/dist/_chunks/tool-rail-8Scslq3X.js +0 -524
@@ -650,7 +650,7 @@ function bn({
650
650
  open: o,
651
651
  onClose: i,
652
652
  ariaLabel: u("editor.ai.dialogTitle"),
653
- children: he ? /* @__PURE__ */ v("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
653
+ children: he ? /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
654
654
  /* @__PURE__ */ e(
655
655
  F,
656
656
  {
@@ -702,7 +702,7 @@ function bn({
702
702
  }
703
703
  )
704
704
  ] }) : /* @__PURE__ */ v(ke, { children: [
705
- /* @__PURE__ */ v("div", { className: "ds:flex ds:items-end ds:gap-[var(--spacing-sm)]", children: [
705
+ /* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
706
706
  /* @__PURE__ */ e(
707
707
  F,
708
708
  {
@@ -719,7 +719,6 @@ function bn({
719
719
  {
720
720
  id: w,
721
721
  size: "md",
722
- className: "ds:content-center",
723
722
  value: ge,
724
723
  onChange: (M) => L(M.target.value),
725
724
  placeholder: u("editor.ai.promptPlaceholder"),
@@ -2563,7 +2562,6 @@ const Qn = Ge(
2563
2562
  "aria-busy": t.running || void 0,
2564
2563
  disabled: je && !t.running || void 0,
2565
2564
  "aria-label": t.label,
2566
- title: t.label,
2567
2565
  className: t.recording ? Jn : Yn,
2568
2566
  children: t.icon
2569
2567
  }
@@ -2626,4 +2624,4 @@ export {
2626
2624
  hn as r,
2627
2625
  Qn as w
2628
2626
  };
2629
- //# sourceMappingURL=rich-text-editor-CQ7yZdG3.js.map
2627
+ //# sourceMappingURL=rich-text-editor-CCI-Y3DN.js.map
@@ -1,31 +1,31 @@
1
1
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { forwardRef as C } from "react";
3
- import { c as L } from "./index-D2ZczOXr.js";
4
- import { useTranslation as w } from "react-i18next";
2
+ import { forwardRef as L } from "react";
3
+ import { c as w } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as T } from "react-i18next";
5
5
  import { V as f } from "./visually-hidden-BHxEUGyT.js";
6
6
  import { c as m } from "./createLucideIcon-DhHxpK9K.js";
7
7
  import { U as g } from "./user-B12p7bVF.js";
8
- import { C as T } from "./chevron-right-I9AeSxH2.js";
9
- import { S as z } from "./square-check-big-dj0o8yA3.js";
10
- import { C as V } from "./circle-alert-rGDZ73Wh.js";
11
- import { S as M } from "./square-DASBRZ0U.js";
8
+ import { C as z } from "./chevron-right-I9AeSxH2.js";
9
+ import { S as V } from "./square-check-big-dj0o8yA3.js";
10
+ import { C as M } from "./circle-alert-rGDZ73Wh.js";
11
+ import { S } from "./square-DASBRZ0U.js";
12
12
  /**
13
13
  * @license lucide-react v1.22.0 - ISC
14
14
  *
15
15
  * This source code is licensed under the ISC license.
16
16
  * See the LICENSE file in the root directory of this source tree.
17
17
  */
18
- const S = [
18
+ const _ = [
19
19
  ["path", { d: "M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16", key: "jecpp" }],
20
20
  ["rect", { width: "20", height: "14", x: "2", y: "6", rx: "2", key: "i6l2r4" }]
21
- ], _ = m("briefcase", S);
21
+ ], $ = m("briefcase", _);
22
22
  /**
23
23
  * @license lucide-react v1.22.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
27
  */
28
- const $ = [
28
+ const j = [
29
29
  ["path", { d: "M10 12h4", key: "a56b0p" }],
30
30
  ["path", { d: "M10 8h4", key: "1sr2af" }],
31
31
  ["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
@@ -37,14 +37,15 @@ const $ = [
37
37
  }
38
38
  ],
39
39
  ["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
40
- ], j = m("building-2", $), I = {
40
+ ], I = m("building-2", j), K = {
41
41
  patient: g,
42
- company: j,
43
- operator: _
44
- }, K = L(
42
+ company: I,
43
+ operator: $
44
+ }, U = w(
45
45
  [
46
46
  "ds:relative ds:flex ds:items-start ds:gap-[var(--spacing-sm)]",
47
- "ds:rounded-[var(--radius-sm)]",
47
+ // Same corner as the elevated Card the note and appointment rows use.
48
+ "ds:rounded-[var(--radius-lg)]",
48
49
  "ds:transition-colors",
49
50
  "ds:motion-reduce:transition-none",
50
51
  "ds:text-start ds:group",
@@ -70,7 +71,7 @@ const $ = [
70
71
  }
71
72
  ), h = [
72
73
  "ds:focus-visible:outline-none",
73
- "ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-sm)]",
74
+ "ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-lg)]",
74
75
  "ds:after:pointer-events-auto",
75
76
  "ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
76
77
  "ds:focus-visible:after:outline-solid",
@@ -78,29 +79,29 @@ const $ = [
78
79
  "ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
79
80
  "ds:forced-colors:focus-visible:after:outline-[CanvasText]"
80
81
  ].join(" ");
81
- function U(s) {
82
+ function B(s) {
82
83
  return /^(https?:\/\/(?!\/)|\/(?!\/)|#)/.test(s);
83
84
  }
84
- function B({
85
+ function R({
85
86
  status: s,
86
- priority: n
87
+ priority: t
87
88
  }) {
88
- const a = n === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
89
- return s === "done" ? /* @__PURE__ */ e(z, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : n === "high" ? /* @__PURE__ */ e(V, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : /* @__PURE__ */ e(M, { "aria-hidden": "true", className: `ds:size-4 ${a}` });
89
+ const a = t === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
90
+ return s === "done" ? /* @__PURE__ */ e(V, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : t === "high" ? /* @__PURE__ */ e(M, { "aria-hidden": "true", className: `ds:size-4 ${a}` }) : /* @__PURE__ */ e(S, { "aria-hidden": "true", className: `ds:size-4 ${a}` });
90
91
  }
91
- const R = C(
92
- ({ item: s, size: n = "sm", onActivate: a, actions: c, className: v, ...k }, b) => {
93
- const { t: r } = w(), t = !!a, y = !!s.url && U(s.url), p = r("taskCard.itemLabel", {
92
+ const q = L(
93
+ ({ item: s, size: t = "sm", onActivate: a, actions: c, leading: v, className: k, ...b }, y) => {
94
+ const { t: r } = T(), n = !!a, x = !!s.url && B(s.url), p = r("taskCard.itemLabel", {
94
95
  title: s.title,
95
96
  due: s.dueLabel ?? "",
96
97
  defaultValue: '{{title}}{{due, prepend, " · "}}'
97
- }), x = {
98
+ }), N = {
98
99
  patient: r("taskCard.link.patient"),
99
100
  company: r("taskCard.link.company"),
100
101
  operator: r("taskCard.link.operator")
101
- }, u = s.linkType ? I[s.linkType] : null, N = !!s.linkType && !!s.linkedLabel || !!s.assigneeLabel, l = /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm ds:text-[color:var(--foreground)]", children: s.title });
102
+ }, u = s.linkType ? K[s.linkType] : null, C = !!s.linkType && !!s.linkedLabel || !!s.assigneeLabel, l = /* @__PURE__ */ e("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm ds:text-[color:var(--foreground)]", children: s.title });
102
103
  let o;
103
- return t && y ? o = /* @__PURE__ */ e(
104
+ return n && x ? o = /* @__PURE__ */ e(
104
105
  "a",
105
106
  {
106
107
  href: s.url,
@@ -111,7 +112,7 @@ const R = C(
111
112
  },
112
113
  children: l
113
114
  }
114
- ) : t ? o = /* @__PURE__ */ e(
115
+ ) : n ? o = /* @__PURE__ */ e(
115
116
  "button",
116
117
  {
117
118
  type: "button",
@@ -123,21 +124,21 @@ const R = C(
123
124
  ) : o = l, /* @__PURE__ */ d(
124
125
  "div",
125
126
  {
126
- ref: b,
127
+ ref: y,
127
128
  role: "listitem",
128
129
  "data-component": "task-card",
129
130
  "data-component-id": s.id,
130
131
  "data-status": s.status ?? "open",
131
132
  "data-priority": s.priority ?? "normal",
132
- className: K({ size: n, interactive: t, className: v }),
133
- ...k,
133
+ className: U({ size: t, interactive: n, className: k }),
134
+ ...b,
134
135
  children: [
135
- /* @__PURE__ */ e("span", { className: "ds:mt-[var(--spacing-2xs)] ds:shrink-0", children: /* @__PURE__ */ e(B, { status: s.status, priority: s.priority }) }),
136
+ /* @__PURE__ */ e("span", { className: "ds:relative ds:z-[1] ds:mt-[var(--spacing-2xs)] ds:shrink-0", children: v ?? /* @__PURE__ */ e(R, { status: s.status, priority: s.priority }) }),
136
137
  /* @__PURE__ */ d("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
137
138
  o,
138
139
  s.description ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:truncate", children: s.description }) : null,
139
140
  s.note ? /* @__PURE__ */ e("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:line-clamp-2", children: s.note }) : null,
140
- N ? (
141
+ C ? (
141
142
  // `type-meta` (not `type-eyebrow`): these chips carry proper-noun
142
143
  // values (patient / company / operator name, assignee) that must
143
144
  // not be uppercased. Icons are decorative; the type word is exposed
@@ -152,7 +153,7 @@ const R = C(
152
153
  className: "ds:size-3 ds:shrink-0"
153
154
  }
154
155
  ),
155
- /* @__PURE__ */ e(f, { children: `${x[s.linkType]}: ` }),
156
+ /* @__PURE__ */ e(f, { children: `${N[s.linkType]}: ` }),
156
157
  /* @__PURE__ */ e("span", { className: "ds:truncate", children: s.linkedLabel })
157
158
  ] }) : null,
158
159
  s.assigneeLabel ? /* @__PURE__ */ d("span", { className: "ds:inline-flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
@@ -169,8 +170,8 @@ const R = C(
169
170
  // Above the stretched-link overlay so the buttons stay clickable.
170
171
  /* @__PURE__ */ e("span", { className: "ds:relative ds:z-[1] ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:shrink-0", children: c })
171
172
  ) : null,
172
- t ? /* @__PURE__ */ e(
173
- T,
173
+ n ? /* @__PURE__ */ e(
174
+ z,
174
175
  {
175
176
  "aria-hidden": "true",
176
177
  className: "ds:mt-[var(--spacing-2xs)] ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)] ds:opacity-0 ds:transition-opacity ds:motion-reduce:transition-none ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:rtl:rotate-180"
@@ -181,9 +182,9 @@ const R = C(
181
182
  );
182
183
  }
183
184
  );
184
- R.displayName = "TaskCard";
185
+ q.displayName = "TaskCard";
185
186
  export {
186
- R as T,
187
- U as i
187
+ q as T,
188
+ B as i
188
189
  };
189
- //# sourceMappingURL=task-card-BUgK6yZT.js.map
190
+ //# sourceMappingURL=task-card-BalrLkSz.js.map
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
5
5
  import { I as A } from "./icon-button-DA2CAGHZ.js";
6
6
  import { S as V } from "./skeleton-CZbwyJAA.js";
7
7
  import { E as F } from "./empty-state-X0sVPfVo.js";
8
- import { T as G } from "./task-card-BUgK6yZT.js";
8
+ import { T as G } from "./task-card-BalrLkSz.js";
9
9
  import { u as J } from "./registry-DvAUVLHh.js";
10
10
  import { S as L } from "./square-check-big-dj0o8yA3.js";
11
11
  import { P as Q } from "./plus-DzMQ_c6b.js";
@@ -236,4 +236,4 @@ export {
236
236
  X as T,
237
237
  U as t
238
238
  };
239
- //# sourceMappingURL=task-tray-CYG6rj2s.js.map
239
+ //# sourceMappingURL=task-tray-COo-RlDv.js.map