@alfadocs/ui-kit 1.73.2 → 1.74.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 (166) hide show
  1. package/dist/_chunks/alia-sidebar-CsTRAxC8.js +1323 -0
  2. package/dist/_chunks/{anamnesis-summary-rows-BedVmSAB.js → anamnesis-summary-rows-vNDyE5HW.js} +2 -2
  3. package/dist/_chunks/{antenatal-schedule-timeline-DW_qkGo1.js → antenatal-schedule-timeline-BGewPfEX.js} +18 -18
  4. package/dist/_chunks/{appointment-timeline-CKwMXUid.js → appointment-timeline-1-Za2miy.js} +2 -2
  5. package/dist/_chunks/{ar-pLopgMbL.js → ar-C4YQVTH6.js} +2 -2
  6. package/dist/_chunks/{auth-form-parts-DHv6LVV2.js → auth-form-parts-B3GWChvG.js} +2 -2
  7. package/dist/_chunks/{balance-badge-cell-DG5JWB2p.js → balance-badge-cell-B49xgL6H.js} +2 -2
  8. package/dist/_chunks/{booking-CTRoFbIS.js → booking-sq9sa29d.js} +9 -9
  9. package/dist/_chunks/brand-mark-DLk9kD8g.js +63 -0
  10. package/dist/_chunks/{calendar-appointment-editor-dialog-Lji2y0qJ.js → calendar-appointment-editor-dialog-CctI6mpd.js} +8 -8
  11. package/dist/_chunks/{cycle-calculator-Ycp3li61.js → cycle-calculator-HO3s5InI.js} +5 -5
  12. package/dist/_chunks/{date-picker-KcoNNsM0.js → date-picker-CdhXlgVI.js} +4 -4
  13. package/dist/_chunks/{date-picker-variants-DN37Oj5-.js → date-picker-variants-Dt6UbonG.js} +25 -25
  14. package/dist/_chunks/{date-range-picker-CjcjUJLW.js → date-range-picker-B_j4VQlV.js} +5 -5
  15. package/dist/_chunks/{date-time-picker-BVQNZ4yC.js → date-time-picker-n-yrlMJq.js} +3 -3
  16. package/dist/_chunks/{de-lVkJRPnh.js → de-B1B3PIgY.js} +2 -2
  17. package/dist/_chunks/{due-date-calculator-B0gyOijA.js → due-date-calculator-CDWTSblh.js} +6 -6
  18. package/dist/_chunks/{el-CHzxNWPj.js → el-iLqGpapg.js} +16 -16
  19. package/dist/_chunks/{en-GB-CwxYmmhU.js → en-GB-CxPRQbD6.js} +6 -6
  20. package/dist/_chunks/{es-Ck-oxbHW.js → es-Bg1oqwDs.js} +2 -2
  21. package/dist/_chunks/{forgot-password-form-D6kB72OD.js → forgot-password-form-BSOZVrZG.js} +3 -3
  22. package/dist/_chunks/{format-D-1gTdHF.js → format--x5jypvH.js} +13 -13
  23. package/dist/_chunks/{fr-fWRnDcSD.js → fr-DpGxyOGI.js} +2 -2
  24. package/dist/_chunks/{gestational-age-calculator-Bu_a-K9z.js → gestational-age-calculator-CTHeJJdb.js} +7 -7
  25. package/dist/_chunks/{hcg-doubling-BnopYgd-.js → hcg-doubling-BBk-a33g.js} +11 -11
  26. package/dist/_chunks/{hi-B5uX0h3V.js → hi-3Dtsksrw.js} +2 -2
  27. package/dist/_chunks/{isSameWeek-u81Z-J7h.js → isSameWeek-DyVftHWi.js} +2 -2
  28. package/dist/_chunks/{it-DBoNIelY.js → it-Cp0CA13d.js} +3 -3
  29. package/dist/_chunks/{ja-Du8gfg8p.js → ja-9FOyR1lb.js} +22 -22
  30. package/dist/_chunks/{kit-extensions-DgBi3tsK.js → kit-extensions-sNTZWkoo.js} +4 -4
  31. package/dist/_chunks/{link-cell-renderer-BDxxpfJM.js → link-cell-renderer-B0riA_h_.js} +2 -2
  32. package/dist/_chunks/{login-dev-card-pnJbVaoQ.js → login-dev-card-DRxTPkE9.js} +3 -3
  33. package/dist/_chunks/{nl-BCBwxYi8.js → nl-sfx-zJgR.js} +2 -2
  34. package/dist/_chunks/{notes-panel-C_QshXyI.js → notes-panel-CxjMovCh.js} +2 -2
  35. package/dist/_chunks/{parse-UB4FJGNA.js → parse-B0s7bY4d.js} +3 -3
  36. package/dist/_chunks/{parseISO-y3LncvfO.js → parseISO-DZZ5a-zK.js} +2 -2
  37. package/dist/_chunks/{patient-details-Cd_dCqkg.js → patient-details-Dgd_tocD.js} +2 -2
  38. package/dist/_chunks/{patient-field-row-D6Ftm46u.js → patient-field-row-BFVlJnS9.js} +3 -3
  39. package/dist/_chunks/{patient-summary-card-BSOHR4Ol.js → patient-summary-card-BTKvFUmh.js} +2 -2
  40. package/dist/_chunks/{phone-input-O9camxkq.js → phone-input-EwVuqFik.js} +74 -74
  41. package/dist/_chunks/{pl-HwLM6gPs.js → pl-BLh7KO-s.js} +3 -3
  42. package/dist/_chunks/{pregnancy-dating-CvNFirHt.js → pregnancy-dating-JBAUbM40.js} +7 -7
  43. package/dist/_chunks/{pt-BxhT5ZQH.js → pt-CPKOrOLj.js} +2 -2
  44. package/dist/_chunks/{radiograph-panel.agent-ESnkuDfH.js → radiograph-panel.agent-DQh2SX8G.js} +3 -3
  45. package/dist/_chunks/registration-form-B6qqeXP1.js +1310 -0
  46. package/dist/_chunks/{rich-text-editor-BXFgcvBW.js → rich-text-editor-BZTyxQBd.js} +1683 -1673
  47. package/dist/_chunks/{ro-Do9W55ae.js → ro-Dc-oNqbF.js} +2 -2
  48. package/dist/_chunks/{ru-PDBX5gdf.js → ru-BtNpDZRR.js} +3 -3
  49. package/dist/_chunks/send-registration-link-form-pO2bGjGa.js +409 -0
  50. package/dist/_chunks/{slot-grid-uA9j7Nik.js → slot-grid-Bb13H9Rl.js} +3 -3
  51. package/dist/_chunks/{sq-DnvsgyIh.js → sq-D4c7olaV.js} +2 -2
  52. package/dist/_chunks/subDays-DKISP2nE.js +8 -0
  53. package/dist/_chunks/{sv-CpFSK8xS.js → sv-Bf_dHPvh.js} +2 -2
  54. package/dist/_chunks/{task-editor-BTeUFGUX.js → task-editor-CRhfwP9T.js} +2 -2
  55. package/dist/_chunks/{tr-DW4oQYHT.js → tr-xqQ6cbGY.js} +2 -2
  56. package/dist/_chunks/{use-appointment-details-read-BWbOiLVw.js → use-appointment-details-read-BFslxbRr.js} +2 -2
  57. package/dist/_chunks/use-field-match-C8ug3sdQ.js +30 -0
  58. package/dist/_chunks/use-registration-submit-CLGHxwoT.js +112 -0
  59. package/dist/_chunks/{zh-CN-QGEs29fQ.js → zh-CN-C657DBCO.js} +3 -3
  60. package/dist/agent-catalog.json +87 -3
  61. package/dist/agent-i18n/en.json +9 -2
  62. package/dist/alia-asteroid-icon/index.js +52 -0
  63. package/dist/aws-transcribe/index.js +320 -0
  64. package/dist/components/appointment-details-panel/index.js +1 -1
  65. package/dist/components/appointment-timeline/index.js +1 -1
  66. package/dist/components/booking/index.js +1 -1
  67. package/dist/components/cycle-calculator/index.js +1 -1
  68. package/dist/components/data-table/index.js +1 -1
  69. package/dist/components/date-picker/index.js +1 -1
  70. package/dist/components/date-range-picker/index.js +1 -1
  71. package/dist/components/date-time-picker/index.js +1 -1
  72. package/dist/components/due-date-calculator/index.js +2 -2
  73. package/dist/components/gestational-age-calculator/index.js +1 -1
  74. package/dist/components/hcg-doubling/index.js +1 -1
  75. package/dist/components/index.d.ts +1 -0
  76. package/dist/components/notes-panel/index.js +1 -1
  77. package/dist/components/patient-details/index.js +1 -1
  78. package/dist/components/patient-summary-card/index.js +1 -1
  79. package/dist/components/patient-table/index.js +1 -1
  80. package/dist/components/phone-input/index.js +1 -1
  81. package/dist/components/pregnancy-dating/index.js +1 -1
  82. package/dist/components/radiograph-panel/index.js +1 -1
  83. package/dist/components/rich-text-editor/index.js +2 -2
  84. package/dist/components/slot-grid/index.js +1 -1
  85. package/dist/components/task-editor/index.js +1 -1
  86. package/dist/hooks/index.js +1 -1
  87. package/dist/hooks/use-field-match.d.ts +2 -2
  88. package/dist/i18n/locales/ar.d.ts +36 -0
  89. package/dist/i18n/locales/ar.js +38 -2
  90. package/dist/i18n/locales/de.d.ts +36 -0
  91. package/dist/i18n/locales/de.js +38 -2
  92. package/dist/i18n/locales/el.d.ts +36 -0
  93. package/dist/i18n/locales/el.js +38 -2
  94. package/dist/i18n/locales/en.d.ts +36 -0
  95. package/dist/i18n/locales/en.js +38 -2
  96. package/dist/i18n/locales/es.d.ts +36 -0
  97. package/dist/i18n/locales/es.js +38 -2
  98. package/dist/i18n/locales/fr.d.ts +36 -0
  99. package/dist/i18n/locales/fr.js +38 -2
  100. package/dist/i18n/locales/hi.d.ts +36 -0
  101. package/dist/i18n/locales/hi.js +38 -2
  102. package/dist/i18n/locales/it.d.ts +36 -0
  103. package/dist/i18n/locales/it.js +38 -2
  104. package/dist/i18n/locales/ja.d.ts +36 -0
  105. package/dist/i18n/locales/ja.js +38 -2
  106. package/dist/i18n/locales/nl.d.ts +36 -0
  107. package/dist/i18n/locales/nl.js +38 -2
  108. package/dist/i18n/locales/pl.d.ts +36 -0
  109. package/dist/i18n/locales/pl.js +38 -2
  110. package/dist/i18n/locales/pt.d.ts +36 -0
  111. package/dist/i18n/locales/pt.js +38 -2
  112. package/dist/i18n/locales/ro.d.ts +36 -0
  113. package/dist/i18n/locales/ro.js +38 -2
  114. package/dist/i18n/locales/ru.d.ts +36 -0
  115. package/dist/i18n/locales/ru.js +38 -2
  116. package/dist/i18n/locales/sq.d.ts +36 -0
  117. package/dist/i18n/locales/sq.js +38 -2
  118. package/dist/i18n/locales/sv.d.ts +36 -0
  119. package/dist/i18n/locales/sv.js +38 -2
  120. package/dist/i18n/locales/tr.d.ts +36 -0
  121. package/dist/i18n/locales/tr.js +38 -2
  122. package/dist/i18n/locales/zh.d.ts +36 -0
  123. package/dist/i18n/locales/zh.js +38 -2
  124. package/dist/index.js +296 -292
  125. package/dist/locales/ar.json +38 -2
  126. package/dist/locales/de.json +38 -2
  127. package/dist/locales/el.json +38 -2
  128. package/dist/locales/en.json +38 -2
  129. package/dist/locales/es.json +38 -2
  130. package/dist/locales/fr.json +38 -2
  131. package/dist/locales/hi.json +38 -2
  132. package/dist/locales/it.json +38 -2
  133. package/dist/locales/ja.json +38 -2
  134. package/dist/locales/nl.json +38 -2
  135. package/dist/locales/pl.json +38 -2
  136. package/dist/locales/pt.json +38 -2
  137. package/dist/locales/ro.json +38 -2
  138. package/dist/locales/ru.json +38 -2
  139. package/dist/locales/sq.json +38 -2
  140. package/dist/locales/sv.json +38 -2
  141. package/dist/locales/tr.json +38 -2
  142. package/dist/locales/zh.json +38 -2
  143. package/dist/patterns/alia-assistant/alia-types.d.ts +22 -0
  144. package/dist/patterns/alia-assistant/index.js +7 -6
  145. package/dist/patterns/anamnesis/index.js +1 -1
  146. package/dist/patterns/calendar/index.js +1 -1
  147. package/dist/patterns/forgot-password-form/index.js +1 -1
  148. package/dist/patterns/login-form/index.js +1 -1
  149. package/dist/patterns/registration-form/index.d.ts +1 -0
  150. package/dist/patterns/registration-form/index.js +1 -1
  151. package/dist/patterns/registration-form/registration-form.d.ts +43 -0
  152. package/dist/patterns/registration-form/registration-verification.d.ts +38 -0
  153. package/dist/patterns/registration-form/use-contact-verification.d.ts +107 -0
  154. package/dist/patterns/registration-form/verification-requests.d.ts +9 -0
  155. package/dist/patterns/send-registration-link-form/index.d.ts +3 -0
  156. package/dist/patterns/send-registration-link-form/index.js +6 -0
  157. package/dist/patterns/send-registration-link-form/send-registration-link-form.d.ts +80 -0
  158. package/dist/speech/aws-transcribe.d.ts +65 -0
  159. package/dist/speech/event-stream.d.ts +13 -0
  160. package/dist/tokens.css +1 -1
  161. package/package.json +13 -1
  162. package/dist/_chunks/alia-sidebar-DZoyUFW8.js +0 -1290
  163. package/dist/_chunks/registration-form-BGSVMAga.js +0 -819
  164. package/dist/_chunks/subDays-xH7cpN6B.js +0 -8
  165. package/dist/_chunks/use-field-match-pdbEnKvO.js +0 -28
  166. package/dist/_chunks/use-registration-submit-eWAECgUC.js +0 -171
@@ -1,8 +0,0 @@
1
- import { a as o } from "./date-picker-variants-DN37Oj5-.js";
2
- function n(a, s, r) {
3
- return o(a, -s, r);
4
- }
5
- export {
6
- n as s
7
- };
8
- //# sourceMappingURL=subDays-xH7cpN6B.js.map
@@ -1,28 +0,0 @@
1
- import { useState as w, useCallback as E, useEffect as M } from "react";
2
- import { useTranslation as b } from "react-i18next";
3
- const L = {
4
- email: (s) => s.trim().toLowerCase(),
5
- password: (s) => s
6
- };
7
- function C({
8
- value: s,
9
- confirmValue: l,
10
- kind: o,
11
- submitted: f = !1,
12
- normalise: u
13
- }) {
14
- const { t: r } = b("ui"), [m, a] = w(!1), p = E(() => a(!0), []), c = u ?? L[o], t = c(s), e = c(l), n = t === e, d = t !== "" && e !== "" && !n, i = t === "" && e === "";
15
- M(() => {
16
- i && a(!1);
17
- }, [i]);
18
- const h = r(o === "email" ? "fieldMatch.email" : "fieldMatch.password");
19
- return {
20
- matches: n,
21
- error: d && (m || f) ? h : void 0,
22
- confirmProps: { onBlur: p }
23
- };
24
- }
25
- export {
26
- C as u
27
- };
28
- //# sourceMappingURL=use-field-match-pdbEnKvO.js.map
@@ -1,171 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as c, useState as v, useEffect as w } from "react";
3
- import { c as N } from "./index-D2ZczOXr.js";
4
- import { A as R, P as B } from "./mark-pieces-m_rn1mAc.js";
5
- const F = N(
6
- "ds:w-24 ds:shrink-0 ds:select-none ds:text-[color:var(--primary)] ds:forced-colors:text-[CanvasText]"
7
- ), D = {
8
- assemble: "ds:[transform-box:view-box] ds:origin-center ds:motion-safe:animate-[brand-mark-turn_calc(var(--animation-duration)*12)_ease-in-out_1]",
9
- spin: "ds:[transform-box:view-box] ds:origin-center ds:motion-safe:animate-[brand-mark-turn_calc(var(--animation-duration)*8)_ease-in-out_1]",
10
- pulse: "ds:[transform-box:view-box] ds:origin-center ds:motion-safe:animate-[brand-mark-pulse_calc(var(--animation-duration)*6)_ease-in-out_3]",
11
- none: void 0
12
- }, H = {
13
- top: "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[brand-mark-scatter-top_calc(var(--animation-duration)*12)_ease-in-out_1]",
14
- right: "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[brand-mark-scatter-right_calc(var(--animation-duration)*12)_ease-in-out_1]",
15
- left: "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[brand-mark-scatter-left_calc(var(--animation-duration)*12)_ease-in-out_1]",
16
- bottom: "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[brand-mark-scatter-bottom_calc(var(--animation-duration)*12)_ease-in-out_1]"
17
- };
18
- function I({
19
- motion: r = "assemble",
20
- label: e,
21
- className: o
22
- }) {
23
- const t = c(null), [h, m] = v(0);
24
- return w(() => {
25
- const i = t.current;
26
- if (!i) return;
27
- const s = () => m((b) => b + 1);
28
- return i.addEventListener("click", s), () => i.removeEventListener("click", s);
29
- }, []), /* @__PURE__ */ p(
30
- "div",
31
- {
32
- ref: t,
33
- "data-brand-mark": "",
34
- "data-motion": r,
35
- role: e ? "img" : void 0,
36
- "aria-label": e,
37
- "aria-hidden": e ? void 0 : !0,
38
- className: F({ className: o }),
39
- children: /* @__PURE__ */ p(
40
- "svg",
41
- {
42
- xmlns: "http://www.w3.org/2000/svg",
43
- viewBox: "-26 -26 200 200",
44
- fill: "currentColor",
45
- "aria-hidden": "true",
46
- className: "ds:block ds:h-auto ds:w-full ds:overflow-visible",
47
- children: /* @__PURE__ */ p("g", { className: D[r], children: R.map((i) => /* @__PURE__ */ p(
48
- "g",
49
- {
50
- className: r === "assemble" ? H[i] : void 0,
51
- children: /* @__PURE__ */ p(B, { name: i })
52
- },
53
- i
54
- )) }, h)
55
- }
56
- )
57
- }
58
- );
59
- }
60
- function J(r, e, o = !1) {
61
- const [t, h] = v(
62
- () => o ? {} : null
63
- ), [m, i] = v(null), [s, b] = v([]);
64
- if (t !== m)
65
- i(t), b(r.filter((n) => !!e(n)));
66
- else {
67
- const n = s.filter((l) => !!e(l));
68
- n.length !== s.length && b(n);
69
- }
70
- const g = c(null), u = c(null);
71
- return w(() => {
72
- var n, l;
73
- !t || u.current === t || (u.current = t, s.length > 0 ? (n = g.current) == null || n.focus() : (l = t.fallback) == null || l.call(t));
74
- }, [t, s]), {
75
- listed: s,
76
- lists: (n) => s.includes(n),
77
- // A new object each time, so a second refused submit moves focus again.
78
- open: (n) => h({ fallback: n }),
79
- ref: g
80
- };
81
- }
82
- function Q(r, e) {
83
- const [o, t] = v(void 0);
84
- return r && e && o !== r && t(r), !r && o !== void 0 && t(void 0), r && (e || o === r) ? "off" : void 0;
85
- }
86
- const M = 8e3, O = (r) => JSON.stringify(
87
- Object.entries(r ?? {}).filter(([, e]) => !!e).sort(([e], [o]) => e < o ? -1 : e > o ? 1 : 0)
88
- );
89
- function z(r) {
90
- const e = c(r);
91
- e.current = r;
92
- const [o, t] = v(!1), [h, m] = v(!1), [i, s] = v(!1), b = r.submitting || o || h, g = c(null), u = c(!1), n = c(void 0), l = c(!1), x = c(!1), S = c(void 0), T = () => {
93
- u.current = !1, clearTimeout(n.current), m(!1);
94
- };
95
- w(() => () => clearTimeout(n.current), []);
96
- const y = (a) => {
97
- e.current.native ? t(!0) : (l.current = !0, x.current = !1, S.current = e.current.errors), e.current.deliver(a);
98
- }, P = (a) => {
99
- if (b) {
100
- a.preventDefault();
101
- return;
102
- }
103
- s(!1);
104
- const d = e.current.firstProblem();
105
- if (d !== void 0) {
106
- a.preventDefault(), e.current.onRefused(d);
107
- return;
108
- }
109
- if (e.current.captcha) {
110
- a.preventDefault();
111
- const f = g.current;
112
- if (!f) {
113
- s(!0);
114
- return;
115
- }
116
- u.current = !1, f.reset(), u.current = !0, m(!0), clearTimeout(n.current), n.current = setTimeout(
117
- () => m(!1),
118
- M
119
- ), f.execute();
120
- return;
121
- }
122
- if (e.current.native) {
123
- t(!0);
124
- return;
125
- }
126
- a.preventDefault(), y();
127
- }, C = (a) => {
128
- if (!u.current) return;
129
- if (T(), !a) {
130
- s(!0);
131
- return;
132
- }
133
- const d = e.current.firstProblem();
134
- if (d !== void 0) {
135
- e.current.onRefused(d);
136
- return;
137
- }
138
- y(a);
139
- }, L = () => {
140
- u.current && (T(), s(!0));
141
- }, _ = r.errors, k = O(_), E = c(null);
142
- return w(() => {
143
- var f;
144
- if (E.current === null) {
145
- E.current = k;
146
- return;
147
- }
148
- const a = k !== E.current;
149
- E.current = k, l.current && r.submitting && (x.current = !0);
150
- const d = l.current && x.current && !r.submitting && _ !== S.current;
151
- !a && !d || (l.current = !1, x.current = !1, u.current = !1, clearTimeout(n.current), m(!1), (f = g.current) == null || f.reset(), e.current.onAnswer(_ ?? {}));
152
- }, [_, k, r.submitting]), w(() => {
153
- const a = (d) => {
154
- var f, A;
155
- d.persisted && (t(!1), (A = (f = e.current).onRestore) == null || A.call(f));
156
- };
157
- return window.addEventListener("pageshow", a), () => window.removeEventListener("pageshow", a);
158
- }, []), {
159
- busy: b,
160
- captchaFailed: i,
161
- handleSubmit: P,
162
- captcha: { ref: g, onChange: C, onError: L }
163
- };
164
- }
165
- export {
166
- I as B,
167
- Q as a,
168
- z as b,
169
- J as u
170
- };
171
- //# sourceMappingURL=use-registration-submit-eWAECgUC.js.map