@alfadocs/ui-kit 0.25.1 → 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 +16 -15
  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,145 +0,0 @@
1
- import { useSyncExternalStore as A, useEffect as p, useCallback as b } from "react";
2
- const y = "alfadocs-ui.theme", w = "alfadocs-ui.accessibility", i = {
3
- light: "theme-light",
4
- dark: "theme-dark",
5
- accessible: "theme-accessible"
6
- }, M = "(prefers-color-scheme: dark)", C = "(prefers-contrast: more)";
7
- function S(e) {
8
- if (typeof window > "u") return null;
9
- try {
10
- return window.localStorage.getItem(e);
11
- } catch {
12
- return null;
13
- }
14
- }
15
- function g(e, t) {
16
- if (!(typeof window > "u"))
17
- try {
18
- t === null ? window.localStorage.removeItem(e) : window.localStorage.setItem(e, t);
19
- } catch {
20
- }
21
- }
22
- function L(e) {
23
- return e === "light" || e === "dark" || e === "system";
24
- }
25
- function T(e) {
26
- return e === "default" || e === "accessible" || e === "system";
27
- }
28
- function _() {
29
- const e = S(y), t = S(w), r = typeof window < "u" && typeof window.matchMedia == "function";
30
- return {
31
- theme: L(e) ? e : "system",
32
- accessibility: T(t) ? t : "system",
33
- prefersDark: r ? window.matchMedia(M).matches : !1,
34
- prefersMoreContrast: r ? window.matchMedia(C).matches : !1
35
- };
36
- }
37
- let s = _();
38
- const h = /* @__PURE__ */ new Set();
39
- function c(e) {
40
- e.theme === s.theme && e.accessibility === s.accessibility && e.prefersDark === s.prefersDark && e.prefersMoreContrast === s.prefersMoreContrast || (s = e, h.forEach((t) => t()));
41
- }
42
- function D(e) {
43
- return h.add(e), () => {
44
- h.delete(e);
45
- };
46
- }
47
- function I() {
48
- return s;
49
- }
50
- function R() {
51
- return {
52
- theme: "system",
53
- accessibility: "system",
54
- prefersDark: !1,
55
- prefersMoreContrast: !1
56
- };
57
- }
58
- let d = 0, u = null, f = null, l = null;
59
- function O(e) {
60
- c({ ...s, prefersDark: e.matches });
61
- }
62
- function V(e) {
63
- c({ ...s, prefersMoreContrast: e.matches });
64
- }
65
- function H(e) {
66
- if (e.key === y) {
67
- const t = L(e.newValue) ? e.newValue : "system";
68
- c({ ...s, theme: t });
69
- } else if (e.key === w) {
70
- const t = T(e.newValue) ? e.newValue : "system";
71
- c({ ...s, accessibility: t });
72
- }
73
- }
74
- function E(e, t) {
75
- return typeof e.addEventListener == "function" ? (e.addEventListener("change", t), () => e.removeEventListener("change", t)) : (e.addListener(t), () => e.removeListener(t));
76
- }
77
- function Y() {
78
- return d += 1, d > 1 || typeof window > "u" || (typeof window.matchMedia == "function" && (u = window.matchMedia(M), f = window.matchMedia(C), c({
79
- ...s,
80
- prefersDark: u.matches,
81
- prefersMoreContrast: f.matches
82
- }), a = E(u, O), o = E(f, V)), l = H, window.addEventListener("storage", l)), m;
83
- }
84
- let a = null, o = null;
85
- function m() {
86
- d -= 1, !(d > 0) && (a == null || a(), o == null || o(), a = null, o = null, u = null, f = null, l && typeof window < "u" && window.removeEventListener("storage", l), l = null);
87
- }
88
- function k(e) {
89
- const t = e.theme === "system" ? e.prefersDark ? "dark" : "light" : e.theme, r = e.accessibility === "system" ? e.prefersMoreContrast : e.accessibility === "accessible";
90
- return t === "dark" && r ? "dark-accessible" : t === "dark" ? "dark" : r ? "light-accessible" : "light";
91
- }
92
- function v(e) {
93
- switch (e) {
94
- case "light":
95
- return [i.light];
96
- case "dark":
97
- return [i.dark];
98
- case "light-accessible":
99
- return [i.light, i.accessible];
100
- case "dark-accessible":
101
- return [i.dark, i.accessible];
102
- }
103
- }
104
- const G = [
105
- i.light,
106
- i.dark,
107
- i.accessible
108
- ];
109
- function K(e) {
110
- if (typeof document > "u") return;
111
- const t = document.documentElement, r = new Set(v(e));
112
- G.forEach((n) => {
113
- r.has(n) ? t.classList.add(n) : t.classList.remove(n);
114
- });
115
- }
116
- function U() {
117
- const e = A(D, I, R);
118
- p(() => Y(), []), p(() => {
119
- K(k(e));
120
- }, [e]);
121
- const t = b((n) => {
122
- g(y, n === "system" ? null : n), c({ ...s, theme: n });
123
- }, []), r = b((n) => {
124
- g(
125
- w,
126
- n === "system" ? null : n
127
- ), c({ ...s, accessibility: n });
128
- }, []);
129
- return {
130
- theme: e.theme,
131
- accessibility: e.accessibility,
132
- resolvedTheme: k(e),
133
- setTheme: t,
134
- setAccessibility: r
135
- };
136
- }
137
- export {
138
- w as A,
139
- i as T,
140
- y as a,
141
- k as r,
142
- v as t,
143
- U as u
144
- };
145
- //# sourceMappingURL=use-theme-B1cwAXJR.js.map
@@ -1,4 +0,0 @@
1
- export { StepperCalendar } from './stepper-calendar';
2
- export type { StepperCalendarProps, StepperCalendarHandle, StepperCalendarValue, ServiceOption, } from './stepper-calendar';
3
- export { stepperCalendarAgent } from './stepper-calendar.agent';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +0,0 @@
1
- import { S as r, s as p } from "../../_chunks/stepper-calendar-BLOJUE0-.js";
2
- export {
3
- r as StepperCalendar,
4
- p as stepperCalendarAgent
5
- };
6
- //# sourceMappingURL=index.js.map
@@ -1,4 +0,0 @@
1
- import type { AgentAdapter } from '../../agent/types';
2
- import type { StepperCalendarHandle } from './stepper-calendar';
3
- export declare const stepperCalendarAgent: AgentAdapter<StepperCalendarHandle>;
4
- //# sourceMappingURL=stepper-calendar.agent.d.ts.map
@@ -1,62 +0,0 @@
1
- import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- import type { StepStatus } from '../_shared/stepper';
4
- /** Service offering rendered on Step 1. Data is API-driven by the consumer. */
5
- export interface StepperCalendarService {
6
- id: string;
7
- /** Already-translated label (consumer is responsible for i18n of data). */
8
- label: string;
9
- /** Duration in minutes — shown alongside the label. */
10
- durationMin: number;
11
- /** Optional secondary line. */
12
- description?: string;
13
- }
14
- /** Re-exported for convenience. */
15
- export type ServiceOption = StepperCalendarService;
16
- /** Booking selection — controlled by the consumer. */
17
- export interface StepperCalendarValue {
18
- serviceId?: string;
19
- /** ISO yyyy-mm-dd. */
20
- date?: string;
21
- /** HH:mm (24h). */
22
- time?: string;
23
- }
24
- declare const rootVariants: (props?: ({
25
- layout?: "horizontal" | "vertical" | null | undefined;
26
- density?: "compact" | "comfortable" | null | undefined;
27
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
28
- export interface StepperCalendarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'aria-label' | 'onChange' | 'onSubmit'>, VariantProps<typeof rootVariants> {
29
- services: StepperCalendarService[];
30
- availableDates: string[];
31
- availableSlots: Record<string, string[]>;
32
- value: StepperCalendarValue;
33
- onChange: (next: StepperCalendarValue) => void;
34
- onSubmit?: (value: StepperCalendarValue) => void;
35
- detailsFields?: ReactNode;
36
- loadingDates?: boolean;
37
- loadingSlots?: boolean;
38
- /** Per-step status overrides — `error` will mark a step in the rail. */
39
- stepStatuses?: Partial<Record<0 | 1 | 2 | 3, StepStatus>>;
40
- 'aria-label'?: string;
41
- /**
42
- * Consumer-supplied instance id, surfaced as `data-component-id` so an
43
- * agent / UI bridge can address this instance.
44
- */
45
- id?: string;
46
- }
47
- /**
48
- * Imperative handle for agent-readiness. The booking value itself is
49
- * owned by the consumer through `value` / `onChange`, so the handle
50
- * deliberately exposes only step navigation — not the selected
51
- * service / date / time.
52
- */
53
- export interface StepperCalendarHandle {
54
- getCurrentStep: () => number;
55
- getTotalSteps: () => number;
56
- gotoStep: (step: number) => void;
57
- next: () => void;
58
- previous: () => void;
59
- }
60
- declare const StepperCalendar: import("react").ForwardRefExoticComponent<StepperCalendarProps & import("react").RefAttributes<HTMLDivElement>>;
61
- export { StepperCalendar };
62
- //# sourceMappingURL=stepper-calendar.d.ts.map