@alfadocs/ui-kit 1.128.0 → 1.129.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 (164) hide show
  1. package/dist/_chunks/{appointment-card-0PebvrOS.js → appointment-card-vbUsDh70.js} +49 -72
  2. package/dist/_chunks/{appointment-timeline-Czd4PBkF.js → appointment-timeline-B5pfBl-b.js} +2 -2
  3. package/dist/_chunks/{appointment-tray-B04zKY7g.js → appointment-tray-BhiXetjs.js} +2 -2
  4. package/dist/_chunks/{calendar-_sgjuH3L.js → calendar-DzR-vdJ5.js} +614 -563
  5. package/dist/_chunks/calendar-appointment-editor-dialog-DnPADcj9.js +13438 -0
  6. package/dist/_chunks/{calendar-event-card-DXAYWH6k.js → calendar-event-card-BNEzkjm-.js} +142 -132
  7. package/dist/_chunks/{care-plan-card-bGTIliXc.js → care-plan-card-CwgkImOD.js} +2 -2
  8. package/dist/_chunks/{care-plan-header-k8FslxsU.js → care-plan-header-Dx5OMkc9.js} +2 -2
  9. package/dist/_chunks/{clinical-note-card-DHn5W_bv.js → clinical-note-card-pPaeWWnu.js} +2 -2
  10. package/dist/_chunks/{contact-card-CGpbYuxl.js → contact-card-BSY2YpLZ.js} +2 -2
  11. package/dist/_chunks/{contact-profile-card-CCgf0Ntt.js → contact-profile-card-CsZNMlws.js} +2 -2
  12. package/dist/_chunks/{default-tabs-DOuHEKI5.js → default-tabs-BnB6FUEW.js} +2 -2
  13. package/dist/_chunks/{entity-summary-BanguTa6.js → entity-summary-Dzk54yom.js} +2 -2
  14. package/dist/_chunks/file-pen-line-k4uMBM3h.js +29 -0
  15. package/dist/_chunks/{info-tip-C-MPkShR.js → info-tip-B3cn3fY2.js} +2 -2
  16. package/dist/_chunks/{link-DtCfnLnF.js → link-CeV7FoI6.js} +2 -2
  17. package/dist/_chunks/{nav-grid-D2xVcHTO.js → nav-grid-dEgDAri3.js} +2 -2
  18. package/dist/_chunks/{note-attachment-cnj2JRrg.js → note-attachment-MNTIqdSz.js} +2 -2
  19. package/dist/_chunks/{note-timeline-BrjHBQfx.js → note-timeline-BQeW0VZY.js} +2 -2
  20. package/dist/_chunks/{notes-panel-n1JFNQ5u.js → notes-panel-DIY7eNsq.js} +2 -2
  21. package/dist/_chunks/{patient-details-Cba9HQj_.js → patient-details-DBtEITfE.js} +2 -2
  22. package/dist/_chunks/{patient-field-row-CtDihADs.js → patient-field-row-a5d4QijH.js} +2 -2
  23. package/dist/_chunks/{patient-summary-card-DnLdbtsw.js → patient-summary-card-BUcZ-gaL.js} +3 -3
  24. package/dist/_chunks/{payment-request-card-CEIalOtr.js → payment-request-card-Dv4WbRBe.js} +2 -2
  25. package/dist/_chunks/{product-hub-panel-CqRJlmb7.js → product-hub-panel-a8wdVOUt.js} +2 -2
  26. package/dist/_chunks/{public-footer-C8UIzqLJ.js → public-footer-D0cqScpz.js} +2 -2
  27. package/dist/_chunks/{signature-request-Dzs0jZsd.js → signature-request-DW2PSp66.js} +3 -3
  28. package/dist/_chunks/{signed-out-frame-fUf7tqs3.js → signed-out-frame-Oa2e1yps.js} +2 -2
  29. package/dist/_chunks/task-editor-CVRrDqpe.js +1256 -0
  30. package/dist/_chunks/{treatment-receipt-1VnuinhY.js → treatment-receipt-BZzwvsnY.js} +73 -56
  31. package/dist/_chunks/use-appointment-details-read-n7kycxrm.js +2439 -0
  32. package/dist/_chunks/{whatsapp-button-DV9JFmtq.js → whatsapp-button-XbozeDl_.js} +32 -25
  33. package/dist/agent-catalog.json +49 -16
  34. package/dist/agent-i18n/en.json +5 -5
  35. package/dist/browser-support.js +1 -1
  36. package/dist/components/_shared/patient-picker.d.ts +10 -0
  37. package/dist/components/appointment-card/index.js +2 -2
  38. package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +23 -1
  39. package/dist/components/appointment-details-panel/appointment-details-panel.links.d.ts +13 -0
  40. package/dist/components/appointment-details-panel/appointment-details-panel.recurrence.d.ts +9 -0
  41. package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +8 -3
  42. package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +63 -1
  43. package/dist/components/appointment-details-panel/index.d.ts +2 -1
  44. package/dist/components/appointment-details-panel/index.js +5 -4
  45. package/dist/components/appointment-timeline/index.js +1 -1
  46. package/dist/components/bill-table/index.js +1 -1
  47. package/dist/components/calendar/calendar.d.ts +22 -0
  48. package/dist/components/calendar/index.js +1 -1
  49. package/dist/components/calendar-event-card/calendar-event-card.d.ts +8 -0
  50. package/dist/components/calendar-event-card/index.js +1 -1
  51. package/dist/components/care-plan-card/index.js +1 -1
  52. package/dist/components/care-plan-header/index.js +1 -1
  53. package/dist/components/clinical-note-card/index.js +1 -1
  54. package/dist/components/contact-card/index.js +1 -1
  55. package/dist/components/contact-profile-card/index.js +1 -1
  56. package/dist/components/entity-summary/index.js +1 -1
  57. package/dist/components/info-tip/index.js +1 -1
  58. package/dist/components/link/index.js +1 -1
  59. package/dist/components/nav-grid/index.js +1 -1
  60. package/dist/components/note-timeline/index.js +1 -1
  61. package/dist/components/notes-panel/index.js +1 -1
  62. package/dist/components/patient-details/index.js +1 -1
  63. package/dist/components/patient-summary-card/index.js +1 -1
  64. package/dist/components/payment-card/index.js +1 -1
  65. package/dist/components/product-hub-tray/index.js +1 -1
  66. package/dist/components/public-footer/index.js +1 -1
  67. package/dist/components/task-editor/index.js +1 -1
  68. package/dist/components/treatment-receipt/index.d.ts +2 -2
  69. package/dist/components/treatment-receipt/index.js +2 -1
  70. package/dist/components/treatment-receipt/treatment-receipt.d.ts +11 -1
  71. package/dist/components/whatsapp-button/index.js +1 -1
  72. package/dist/core.css +1 -1
  73. package/dist/fullcalendar.css +5 -1
  74. package/dist/host-compat.css +4 -1
  75. package/dist/i18n/locales/ar.d.ts +111 -4
  76. package/dist/i18n/locales/ar.js +122 -15
  77. package/dist/i18n/locales/de.d.ts +111 -4
  78. package/dist/i18n/locales/de.js +122 -15
  79. package/dist/i18n/locales/el.d.ts +111 -4
  80. package/dist/i18n/locales/el.js +122 -15
  81. package/dist/i18n/locales/en.d.ts +111 -4
  82. package/dist/i18n/locales/en.js +114 -10
  83. package/dist/i18n/locales/es.d.ts +111 -4
  84. package/dist/i18n/locales/es.js +122 -15
  85. package/dist/i18n/locales/fr.d.ts +111 -4
  86. package/dist/i18n/locales/fr.js +122 -15
  87. package/dist/i18n/locales/hi.d.ts +111 -4
  88. package/dist/i18n/locales/hi.js +122 -15
  89. package/dist/i18n/locales/it.d.ts +111 -4
  90. package/dist/i18n/locales/it.js +122 -15
  91. package/dist/i18n/locales/ja.d.ts +111 -4
  92. package/dist/i18n/locales/ja.js +122 -15
  93. package/dist/i18n/locales/nl.d.ts +111 -4
  94. package/dist/i18n/locales/nl.js +122 -15
  95. package/dist/i18n/locales/pl.d.ts +111 -4
  96. package/dist/i18n/locales/pl.js +122 -15
  97. package/dist/i18n/locales/pt.d.ts +111 -4
  98. package/dist/i18n/locales/pt.js +122 -15
  99. package/dist/i18n/locales/ro.d.ts +111 -4
  100. package/dist/i18n/locales/ro.js +122 -15
  101. package/dist/i18n/locales/ru.d.ts +111 -4
  102. package/dist/i18n/locales/ru.js +122 -15
  103. package/dist/i18n/locales/sq.d.ts +111 -4
  104. package/dist/i18n/locales/sq.js +122 -15
  105. package/dist/i18n/locales/sv.d.ts +111 -4
  106. package/dist/i18n/locales/sv.js +122 -15
  107. package/dist/i18n/locales/tr.d.ts +111 -4
  108. package/dist/i18n/locales/tr.js +122 -15
  109. package/dist/i18n/locales/zh.d.ts +111 -4
  110. package/dist/i18n/locales/zh.js +122 -15
  111. package/dist/index.js +1112 -1107
  112. package/dist/locales/ar.json +122 -15
  113. package/dist/locales/de.json +122 -15
  114. package/dist/locales/el.json +122 -15
  115. package/dist/locales/en.json +114 -7
  116. package/dist/locales/es.json +122 -15
  117. package/dist/locales/fr.json +122 -15
  118. package/dist/locales/hi.json +122 -15
  119. package/dist/locales/it.json +122 -15
  120. package/dist/locales/ja.json +122 -15
  121. package/dist/locales/nl.json +122 -15
  122. package/dist/locales/pl.json +122 -15
  123. package/dist/locales/pt.json +122 -15
  124. package/dist/locales/ro.json +122 -15
  125. package/dist/locales/ru.json +122 -15
  126. package/dist/locales/sq.json +122 -15
  127. package/dist/locales/sv.json +122 -15
  128. package/dist/locales/tr.json +122 -15
  129. package/dist/locales/zh.json +122 -15
  130. package/dist/patterns/calendar/calendar-appointment-details.d.ts +74 -2
  131. package/dist/patterns/calendar/calendar-archive.d.ts +12 -0
  132. package/dist/patterns/calendar/calendar-care-rules.d.ts +19 -23
  133. package/dist/patterns/calendar/calendar-delete-confirm.d.ts +18 -0
  134. package/dist/patterns/calendar/calendar-document-scope-confirm.d.ts +12 -0
  135. package/dist/patterns/calendar/calendar-editor-guard.d.ts +12 -0
  136. package/dist/patterns/calendar/calendar-editor-hydration.d.ts +13 -2
  137. package/dist/patterns/calendar/calendar-load-error.d.ts +11 -0
  138. package/dist/patterns/calendar/calendar-patient-locked.d.ts +13 -0
  139. package/dist/patterns/calendar/calendar-patient-picker.d.ts +6 -1
  140. package/dist/patterns/calendar/calendar-prompts.d.ts +11 -0
  141. package/dist/patterns/calendar/calendar-settings-ical.d.ts +11 -0
  142. package/dist/patterns/calendar/calendar-settings-overlay.d.ts +73 -0
  143. package/dist/patterns/calendar/calendar-settings-panel.d.ts +62 -0
  144. package/dist/patterns/calendar/calendar-settings-practice.d.ts +20 -0
  145. package/dist/patterns/calendar/calendar-status-colours.d.ts +18 -0
  146. package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +17 -2
  147. package/dist/patterns/calendar/calendar-workspace.d.ts +258 -6
  148. package/dist/patterns/calendar/calendar-workspace.model.d.ts +98 -11
  149. package/dist/patterns/calendar/calendar.data.d.ts +9 -3
  150. package/dist/patterns/calendar/calendar.journey.d.ts +69 -5
  151. package/dist/patterns/calendar/calendar.model.d.ts +72 -14
  152. package/dist/patterns/calendar/calendar.preferences.d.ts +4 -0
  153. package/dist/patterns/calendar/calendar.sheets.d.ts +85 -17
  154. package/dist/patterns/calendar/calendar.surface.d.ts +64 -6
  155. package/dist/patterns/calendar/calendar.types.d.ts +223 -6
  156. package/dist/patterns/calendar/index.d.ts +9 -6
  157. package/dist/patterns/calendar/index.js +18 -15
  158. package/dist/patterns/signature-request/index.js +1 -1
  159. package/dist/patterns/signed-out-frame/index.js +1 -1
  160. package/dist/tokens.css +5 -1
  161. package/package.json +1 -1
  162. package/dist/_chunks/calendar-appointment-editor-dialog-CGDDGMdo.js +0 -10974
  163. package/dist/_chunks/task-editor-C05yx7JJ.js +0 -1218
  164. package/dist/_chunks/use-appointment-details-read-Bm408XzX.js +0 -2198
@@ -1,12 +1,12 @@
1
- import { jsx as s, jsxs as t } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as j } from "react";
3
- import { c as g } from "./index-D2ZczOXr.js";
4
- import { useTranslation as L } from "react-i18next";
5
- import { B as f } from "./badge-BUk4RjTS.js";
6
- import { M as u } from "./money-OE6_oDPH.js";
7
- import { C as z, S as h } from "./skeleton-tTWJpvAq.js";
8
- import { T as S } from "./tag-BNlcEJfE.js";
9
- const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
1
+ import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
+ import { forwardRef as z, useRef as L } from "react";
3
+ import { c as N } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as B } from "react-i18next";
5
+ import { B as n } from "./badge-BUk4RjTS.js";
6
+ import { M as h } from "./money-OE6_oDPH.js";
7
+ import { C as S, S as b } from "./skeleton-tTWJpvAq.js";
8
+ import { T as E } from "./tag-BNlcEJfE.js";
9
+ const g = "type-label ds:text-[color:var(--muted-foreground)]", x = N(
10
10
  [
11
11
  "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
12
12
  "ds:py-[var(--spacing-xs)]",
@@ -15,34 +15,38 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
15
15
  "ds:border-b ds:border-dashed ds:border-[color:var(--border)]",
16
16
  "ds:last:border-b-0"
17
17
  ].join(" ")
18
- ), B = g(
18
+ ), M = N(
19
19
  [
20
20
  "ds:mt-[var(--spacing-xs)] ds:flex ds:items-baseline ds:justify-between",
21
21
  "ds:gap-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)]",
22
22
  "ds:border-t ds:border-[color:var(--border)]"
23
23
  ].join(" ")
24
- ), E = R(
24
+ );
25
+ function k(t) {
26
+ return t.billing ? t.billing === "billed" : t.billed === !0;
27
+ }
28
+ const _ = z(
25
29
  ({
26
- lines: r,
27
- locale: n,
28
- currency: i,
29
- totalLabel: b,
30
- loading: l = !1,
31
- loadingLines: N = 2,
30
+ lines: t,
31
+ locale: i,
32
+ currency: c,
33
+ totalLabel: y,
34
+ loading: d = !1,
35
+ loadingLines: R = 2,
32
36
  className: o,
33
- ...c
34
- }, m) => {
35
- const { t: d } = L("ui"), p = j(!1);
36
- l && (p.current = !0);
37
- const y = p.current ? z : "", T = r.length > 0 && r.every((e) => e.priceCents !== void 0), w = r.reduce(
37
+ ...m
38
+ }, p) => {
39
+ const { t: l } = B("ui"), u = L(!1);
40
+ d && (u.current = !0);
41
+ const w = u.current ? S : "", T = t.length > 0 && t.every((e) => e.priceCents !== void 0), C = t.reduce(
38
42
  (e, a) => e + (a.priceCents ?? 0),
39
43
  0
40
44
  );
41
- return l && r.length === 0 ? /* @__PURE__ */ s(
45
+ return d && t.length === 0 ? /* @__PURE__ */ s(
42
46
  "div",
43
47
  {
44
- ...c,
45
- ref: m,
48
+ ...m,
49
+ ref: p,
46
50
  "data-component": "treatment-receipt",
47
51
  "data-loading": "",
48
52
  "aria-busy": "true",
@@ -52,9 +56,9 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
52
56
  {
53
57
  "aria-hidden": "true",
54
58
  className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0",
55
- children: Array.from({ length: Math.max(1, N) }, (e, a) => /* @__PURE__ */ s("li", { className: x(), children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
59
+ children: Array.from({ length: Math.max(1, R) }, (e, a) => /* @__PURE__ */ s("li", { className: x(), children: /* @__PURE__ */ r("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
56
60
  /* @__PURE__ */ s(
57
- h,
61
+ b,
58
62
  {
59
63
  variant: "text",
60
64
  size: "sm",
@@ -63,7 +67,7 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
63
67
  }
64
68
  ),
65
69
  /* @__PURE__ */ s(
66
- h,
70
+ b,
67
71
  {
68
72
  variant: "text",
69
73
  size: "sm",
@@ -76,33 +80,33 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
76
80
  }
77
81
  )
78
82
  }
79
- ) : /* @__PURE__ */ t(
83
+ ) : /* @__PURE__ */ r(
80
84
  "div",
81
85
  {
82
- ref: m,
86
+ ref: p,
83
87
  "data-component": "treatment-receipt",
84
- "aria-busy": l || void 0,
88
+ "aria-busy": d || void 0,
85
89
  className: ["ds:flex ds:flex-col", o].filter(Boolean).join(" "),
86
- ...c,
90
+ ...m,
87
91
  children: [
88
92
  /* @__PURE__ */ s(
89
93
  "ul",
90
94
  {
91
- className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${y}`.trim(),
92
- children: r.map((e) => {
93
- const a = e.phases ?? [], C = a.length > 0 || e.done || e.billed;
94
- return /* @__PURE__ */ t(
95
+ className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:p-0 ${w}`.trim(),
96
+ children: t.map((e) => {
97
+ const a = e.phases ?? [], f = k(e), v = e.billing === "reversed", j = a.length > 0 || e.done || f || v;
98
+ return /* @__PURE__ */ r(
95
99
  "li",
96
100
  {
97
101
  "data-treatment-receipt-line": "",
98
102
  className: x(),
99
103
  children: [
100
- /* @__PURE__ */ t("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
101
- /* @__PURE__ */ t("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm", children: [
104
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:items-baseline ds:gap-[var(--spacing-sm)]", children: [
105
+ /* @__PURE__ */ r("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm", children: [
102
106
  e.name,
103
- e.code ? /* @__PURE__ */ s("span", { className: `${v} ds:tabular-nums`, children: e.code }) : null,
107
+ e.code ? /* @__PURE__ */ s("span", { className: `${g} ds:tabular-nums`, children: e.code }) : null,
104
108
  e.elementsLabel ? /* @__PURE__ */ s(
105
- S,
109
+ E,
106
110
  {
107
111
  size: "sm",
108
112
  variant: "info",
@@ -111,22 +115,34 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
111
115
  ) : null
112
116
  ] }),
113
117
  e.priceCents !== void 0 ? /* @__PURE__ */ s(
114
- u,
118
+ h,
115
119
  {
116
120
  value: e.priceCents,
117
- locale: n,
118
- currency: i,
121
+ locale: i,
122
+ currency: c,
119
123
  decimals: "muted",
120
124
  className: "ds:shrink-0"
121
125
  }
122
126
  ) : null
123
127
  ] }),
124
- C ? /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
125
- a.length > 0 ? /* @__PURE__ */ s("span", { className: v, children: d("treatmentReceipt.phases", {
128
+ j ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: [
129
+ a.length > 0 ? /* @__PURE__ */ s("span", { className: g, children: l("treatmentReceipt.phases", {
126
130
  phases: a.join(", ")
127
131
  }) }) : null,
128
- e.done ? /* @__PURE__ */ s(f, { variant: "success", size: "sm", withDot: !0, children: d("treatmentReceipt.done") }) : null,
129
- e.billed ? /* @__PURE__ */ s(f, { variant: "neutral", size: "sm", children: d("treatmentReceipt.billed") }) : null
132
+ e.done ? /* @__PURE__ */ s(n, { variant: "success", size: "sm", withDot: !0, children: l("treatmentReceipt.done") }) : null,
133
+ f ? /* @__PURE__ */ s(n, { variant: "neutral", size: "sm", children: l("treatmentReceipt.billed") }) : null,
134
+ v ? /* @__PURE__ */ r(
135
+ n,
136
+ {
137
+ variant: "warning",
138
+ size: "sm",
139
+ title: l("treatmentReceipt.billReversed"),
140
+ children: [
141
+ l("treatmentReceipt.unbilled"),
142
+ /* @__PURE__ */ s("span", { className: "ds:sr-only", children: `, ${l("treatmentReceipt.billReversed")}` })
143
+ ]
144
+ }
145
+ ) : null
130
146
  ] }) : null
131
147
  ]
132
148
  },
@@ -135,14 +151,14 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
135
151
  })
136
152
  }
137
153
  ),
138
- T ? /* @__PURE__ */ t("div", { "data-treatment-receipt-total": "", className: B(), children: [
139
- /* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: b ?? d("treatmentReceipt.total") }),
154
+ T ? /* @__PURE__ */ r("div", { "data-treatment-receipt-total": "", className: M(), children: [
155
+ /* @__PURE__ */ s("span", { className: "type-body-sm ds:font-medium", children: y ?? l("treatmentReceipt.total") }),
140
156
  /* @__PURE__ */ s(
141
- u,
157
+ h,
142
158
  {
143
- value: w,
144
- locale: n,
145
- currency: i,
159
+ value: C,
160
+ locale: i,
161
+ currency: c,
146
162
  decimals: "muted",
147
163
  className: "ds:font-semibold"
148
164
  }
@@ -153,8 +169,9 @@ const v = "type-label ds:text-[color:var(--muted-foreground)]", x = g(
153
169
  );
154
170
  }
155
171
  );
156
- E.displayName = "TreatmentReceipt";
172
+ _.displayName = "TreatmentReceipt";
157
173
  export {
158
- E as T
174
+ _ as T,
175
+ k as i
159
176
  };
160
- //# sourceMappingURL=treatment-receipt-1VnuinhY.js.map
177
+ //# sourceMappingURL=treatment-receipt-BZzwvsnY.js.map