@alfadocs/ui-kit 0.25.0 → 0.25.2

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 (178) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  5. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  6. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  7. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  8. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  9. package/dist/_chunks/booking-CXngC-1u.js +1743 -0
  10. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-9eOXumpH.js} +113 -142
  11. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  12. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  13. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  14. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  15. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  16. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-CeEfEAxh.js} +2 -2
  17. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  18. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  19. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  20. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  21. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  22. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  23. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  24. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  25. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  26. package/dist/_chunks/{header-DqmKROIY.js → header-B8V_sNPy.js} +2 -2
  27. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  28. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  29. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  30. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  31. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  32. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  33. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  34. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  35. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  36. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  37. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  38. package/dist/_chunks/patient-shell-Bq8CjRYF.js +173 -0
  39. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  40. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  41. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  42. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  43. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  44. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  45. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  46. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  47. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  48. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  49. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  50. package/dist/_chunks/{slot-grid-CgpYgBkW.js → slot-grid-DoodeQGZ.js} +4 -4
  51. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  52. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  53. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  54. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  55. package/dist/_chunks/stethoscope-B8kpbtjh.js +35 -0
  56. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  57. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  58. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  59. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  60. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  61. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  62. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  63. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  64. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  65. package/dist/agent-catalog.json +56 -51
  66. package/dist/components/agenda-card/index.js +1 -1
  67. package/dist/components/agenda-tray/index.js +1 -1
  68. package/dist/components/ai-prompt-input/index.js +1 -1
  69. package/dist/components/audio-recorder/index.js +1 -1
  70. package/dist/components/autocomplete/index.js +1 -1
  71. package/dist/components/avatar/index.js +1 -1
  72. package/dist/components/benefit-card/index.js +1 -1
  73. package/dist/components/booking/booking.agent.d.ts +4 -0
  74. package/dist/components/booking/booking.d.ts +91 -0
  75. package/dist/components/booking/index.d.ts +4 -0
  76. package/dist/components/booking/index.js +6 -0
  77. package/dist/components/button/index.js +1 -1
  78. package/dist/components/calendar/index.js +1 -1
  79. package/dist/components/card/index.js +1 -1
  80. package/dist/components/carousel/index.js +1 -1
  81. package/dist/components/chat-input/index.js +1 -1
  82. package/dist/components/chat-message/index.js +1 -1
  83. package/dist/components/command-palette/index.js +1 -1
  84. package/dist/components/contact-card/index.js +1 -1
  85. package/dist/components/data-table/index.js +1 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/index.js +1 -1
  88. package/dist/components/date-time-picker/index.js +1 -1
  89. package/dist/components/description-list/index.js +1 -1
  90. package/dist/components/dialog/index.js +1 -1
  91. package/dist/components/empty-state/index.js +1 -1
  92. package/dist/components/freemium-paywall/index.js +1 -1
  93. package/dist/components/header/index.js +1 -1
  94. package/dist/components/header-settings/index.js +60 -48
  95. package/dist/components/icon-button/index.js +1 -1
  96. package/dist/components/index.d.ts +1 -1
  97. package/dist/components/key-value-pair/index.js +1 -1
  98. package/dist/components/locale-picker/index.js +1 -1
  99. package/dist/components/map-view/index.js +1 -1
  100. package/dist/components/matrix-rain/index.js +1 -1
  101. package/dist/components/message-card/index.js +1 -1
  102. package/dist/components/message-tray/index.js +1 -1
  103. package/dist/components/notification-card/index.js +1 -1
  104. package/dist/components/notification-tray/index.js +1 -1
  105. package/dist/components/password-input/index.js +1 -1
  106. package/dist/components/payment-form/index.js +1 -1
  107. package/dist/components/pdf-viewer/index.js +1 -1
  108. package/dist/components/popover/index.js +1 -1
  109. package/dist/components/privacy-lock/index.js +1 -1
  110. package/dist/components/public-header/index.js +1 -1
  111. package/dist/components/recaptcha-widget/index.js +1 -1
  112. package/dist/components/search-bar/index.js +1 -1
  113. package/dist/components/search-input/index.js +1 -1
  114. package/dist/components/sheet/index.js +1 -1
  115. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  116. package/dist/components/slot-grid/index.js +1 -1
  117. package/dist/components/spinner/index.js +1 -1
  118. package/dist/components/stepper-accordion/index.js +4 -3
  119. package/dist/components/task-tray/index.js +1 -1
  120. package/dist/components/theme-toggle/index.js +1 -1
  121. package/dist/components/timeline/index.js +1 -1
  122. package/dist/components/toast/index.js +1 -1
  123. package/dist/components/transcript-panel/index.js +1 -1
  124. package/dist/components/workflow/index.js +1 -1
  125. package/dist/hooks/index.js +1 -1
  126. package/dist/i18n/config.js +1090 -46
  127. package/dist/i18n/locales/ar.d.ts +58 -0
  128. package/dist/i18n/locales/de.d.ts +58 -0
  129. package/dist/i18n/locales/el.d.ts +58 -0
  130. package/dist/i18n/locales/es.d.ts +58 -0
  131. package/dist/i18n/locales/fr.d.ts +58 -0
  132. package/dist/i18n/locales/hi.d.ts +58 -0
  133. package/dist/i18n/locales/ja.d.ts +58 -0
  134. package/dist/i18n/locales/nl.d.ts +58 -0
  135. package/dist/i18n/locales/pl.d.ts +58 -0
  136. package/dist/i18n/locales/pt.d.ts +58 -0
  137. package/dist/i18n/locales/ro.d.ts +58 -0
  138. package/dist/i18n/locales/ru.d.ts +58 -0
  139. package/dist/i18n/locales/sq.d.ts +58 -0
  140. package/dist/i18n/locales/sv.d.ts +58 -0
  141. package/dist/i18n/locales/tr.d.ts +58 -0
  142. package/dist/i18n/locales/zh.d.ts +58 -0
  143. package/dist/i18n/resources.d.ts +116 -0
  144. package/dist/index.js +270 -269
  145. package/dist/locales/ar.json +59 -1
  146. package/dist/locales/de.json +59 -1
  147. package/dist/locales/el.json +59 -1
  148. package/dist/locales/en.json +59 -1
  149. package/dist/locales/es.json +59 -1
  150. package/dist/locales/fr.json +59 -1
  151. package/dist/locales/hi.json +59 -1
  152. package/dist/locales/it.json +59 -1
  153. package/dist/locales/ja.json +59 -1
  154. package/dist/locales/nl.json +59 -1
  155. package/dist/locales/pl.json +59 -1
  156. package/dist/locales/pt.json +59 -1
  157. package/dist/locales/ro.json +59 -1
  158. package/dist/locales/ru.json +59 -1
  159. package/dist/locales/sq.json +59 -1
  160. package/dist/locales/sv.json +59 -1
  161. package/dist/locales/tr.json +59 -1
  162. package/dist/locales/zh.json +59 -1
  163. package/dist/patterns/alia-assistant/index.js +1 -1
  164. package/dist/patterns/patient-shell/index.js +1 -1
  165. package/dist/tokens.css +1 -1
  166. package/package.json +5 -1
  167. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  168. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  169. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  170. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  171. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  172. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  173. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  174. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  175. package/dist/components/stepper-calendar/index.d.ts +0 -4
  176. package/dist/components/stepper-calendar/index.js +0 -6
  177. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  178. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
@@ -1,173 +0,0 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { forwardRef as v, useState as I } from "react";
3
- import { useTranslation as c } from "react-i18next";
4
- import { A as L } from "./app-frame-BYx1gcV7.js";
5
- import { I as w } from "./icon-button-C4CGcYuz.js";
6
- import { D as n } from "./dropdown-menu-DZxwF23X.js";
7
- import { H as k, g as A, f as y, e as H, a as C, c as x, d as B } from "./header-DqmKROIY.js";
8
- import { L as M } from "./logo-_Z-jLq80.js";
9
- import { S as T, a as N, h as O, j as P, k as W, i as j } from "./sidebar-DkyC6GvS.js";
10
- import { T as R } from "./theme-root-BOO73p5t.js";
11
- import { a as _ } from "./tooltip-DHik5yRI.js";
12
- import { u as z } from "./use-theme-B1cwAXJR.js";
13
- import { S as D } from "./settings-ca2Yi9R8.js";
14
- import { c as q } from "./createLucideIcon-CrFbzy84.js";
15
- import { L as E } from "./log-out-616hnn2-.js";
16
- /**
17
- * @license lucide-react v1.8.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */
22
- const F = [
23
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
24
- ["path", { d: "m21 3-7 7", key: "1l2asr" }],
25
- ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
26
- ["path", { d: "M9 21H3v-6", key: "wtvkvv" }]
27
- ], U = q("maximize-2", F);
28
- function G(a) {
29
- return a > 99 ? "99+" : String(a);
30
- }
31
- function J(a) {
32
- if (a.startsWith("/") || a.startsWith("#") || a.startsWith("?"))
33
- return !0;
34
- try {
35
- const t = new URL(a, window.location.origin);
36
- return t.protocol === "http:" || t.protocol === "https:";
37
- } catch {
38
- return !1;
39
- }
40
- }
41
- function K({
42
- logoutHref: a,
43
- onToggleFullscreen: t
44
- }) {
45
- const { t: r } = c();
46
- return /* @__PURE__ */ i(n.Root, { children: [
47
- /* @__PURE__ */ e(n.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
48
- w,
49
- {
50
- icon: /* @__PURE__ */ e(D, { "aria-hidden": "true" }),
51
- "aria-label": r("patientShell.settings.triggerAria"),
52
- tooltip: r("patientShell.settings.triggerAria"),
53
- "data-testid": "patient-shell-settings-trigger"
54
- }
55
- ) }),
56
- /* @__PURE__ */ i(n.Content, { align: "end", children: [
57
- /* @__PURE__ */ e(
58
- n.Item,
59
- {
60
- startIcon: /* @__PURE__ */ e(U, { "aria-hidden": "true" }),
61
- onSelect: t,
62
- "data-testid": "patient-shell-fullscreen",
63
- children: r("patientShell.settings.fullscreen")
64
- }
65
- ),
66
- /* @__PURE__ */ e(n.Separator, {}),
67
- /* @__PURE__ */ e(
68
- n.Item,
69
- {
70
- startIcon: /* @__PURE__ */ e(E, { "aria-hidden": "true" }),
71
- onSelect: () => {
72
- typeof window > "u" || J(a) && window.location.assign(a);
73
- },
74
- "data-testid": "patient-shell-logout",
75
- children: r("patientShell.settings.logout")
76
- }
77
- )
78
- ] })
79
- ] });
80
- }
81
- function Q({ menuItems: a }) {
82
- return /* @__PURE__ */ e(N, { children: a.map((t) => {
83
- const r = typeof t.badgeCount == "number" && t.badgeCount > 0 ? t.badgeCount : void 0;
84
- return /* @__PURE__ */ i(
85
- O,
86
- {
87
- href: t.href,
88
- "aria-label": t.label,
89
- isActive: t.isActive,
90
- children: [
91
- t.icon ? /* @__PURE__ */ e(P, { children: t.icon }) : null,
92
- /* @__PURE__ */ e(W, { children: t.label }),
93
- r !== void 0 ? /* @__PURE__ */ e(j, { children: G(r) }) : null
94
- ]
95
- },
96
- t.id
97
- );
98
- }) });
99
- }
100
- const V = v(
101
- ({
102
- menuItems: a,
103
- logoutHref: t,
104
- onToggleFullscreen: r,
105
- brandLogo: h,
106
- brandHref: p = "/",
107
- mainAriaLabel: m,
108
- sidebarState: o,
109
- children: u,
110
- // `userName` and `userAvatarSrc` are declared on the public API
111
- // for forward-compatibility (future profile-pill work) — they are
112
- // intentionally unused today because the legacy patient chrome
113
- // carries no profile pill.
114
- userName: X,
115
- userAvatarSrc: Y
116
- }, f) => {
117
- const { t: s } = c(), { resolvedTheme: d } = z(), g = d.startsWith("dark") ? "dark" : "light", S = d.endsWith("-accessible"), [b, l] = I(!1);
118
- return /* @__PURE__ */ e(
119
- R,
120
- {
121
- ref: f,
122
- theme: g,
123
- accessible: S,
124
- className: "ds:contents",
125
- children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
126
- L,
127
- {
128
- mainAriaLabel: m,
129
- header: /* @__PURE__ */ i(k, { children: [
130
- /* @__PURE__ */ i(A, { children: [
131
- /* @__PURE__ */ e(y, { href: "#main-content" }),
132
- /* @__PURE__ */ e(H, { onMenuOpen: () => l(!0) }),
133
- /* @__PURE__ */ e(
134
- C,
135
- {
136
- logo: h ?? /* @__PURE__ */ e(M, { variant: "monochrome", size: "md", decorative: !0 }),
137
- href: p,
138
- "aria-label": s("patientShell.brand.homeAria")
139
- }
140
- )
141
- ] }),
142
- /* @__PURE__ */ e(x, {}),
143
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
144
- K,
145
- {
146
- logoutHref: t,
147
- onToggleFullscreen: r
148
- }
149
- ) })
150
- ] }),
151
- sidebar: /* @__PURE__ */ e(
152
- T,
153
- {
154
- ...o !== void 0 ? { state: o } : { defaultState: "expanded" },
155
- open: b,
156
- onOpenChange: l,
157
- "aria-label": s("patientShell.sidebar.panelLabel"),
158
- "data-testid": "patient-shell-sidebar",
159
- children: /* @__PURE__ */ e(Q, { menuItems: a })
160
- }
161
- ),
162
- children: u
163
- }
164
- ) })
165
- }
166
- );
167
- }
168
- );
169
- V.displayName = "PatientShell";
170
- export {
171
- V as P
172
- };
173
- //# sourceMappingURL=patient-shell-B164drIa.js.map