@alfadocs/ui-kit 0.36.0 → 0.38.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 (201) hide show
  1. package/dist/_chunks/Alfadocs_Logo_Mark-7o3L3WBI.js +56 -0
  2. package/dist/_chunks/{alia-sidebar-BEoMl6UL.js → alia-sidebar-DXsYPinm.js} +2 -2
  3. package/dist/_chunks/{ar-CEpIJtcO.js → ar-Cn_NxqkN.js} +2 -2
  4. package/dist/_chunks/bmi-BxD-tFzU.js +32 -0
  5. package/dist/_chunks/bmi-calculator-BRUru9QX.js +213 -0
  6. package/dist/_chunks/{booking-eM0y0NIR.js → booking-DK_BPHnQ.js} +4 -4
  7. package/dist/_chunks/calculator-dialog-B74fqpFZ.js +40 -0
  8. package/dist/_chunks/chart-DnHvmiDX.js +312 -0
  9. package/dist/_chunks/{chat-message-D53_fH2w.js → chat-message-ASgGtj-L.js} +30 -39
  10. package/dist/_chunks/{contact-profile-card-BA6fgS45.js → contact-profile-card-DHyuAPXM.js} +14 -13
  11. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +185 -0
  12. package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CvQfs6Xh.js} +2 -2
  13. package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-U9fn1g9d.js} +3 -3
  14. package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-Cva0ZCWw.js} +2 -2
  15. package/dist/_chunks/{de-Dfbeau59.js → de-BMM2H7Bs.js} +2 -2
  16. package/dist/_chunks/dependent-selector-CRWgieHm.js +324 -0
  17. package/dist/_chunks/document-scanner-CdHQ6lTN.js +702 -0
  18. package/dist/_chunks/due-date-calculator-CUspKSTw.js +171 -0
  19. package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DGKuRNVG.js} +2 -2
  20. package/dist/_chunks/{el-Dro3J7CP.js → el-BYPonAaK.js} +2 -2
  21. package/dist/_chunks/{es-Dvg8u70B.js → es-CMkVCQ4F.js} +2 -2
  22. package/dist/_chunks/{file-upload-CdozCPct.js → file-upload-CnzRcErt.js} +2 -1
  23. package/dist/_chunks/fiscal-code-input-BZ0FxwUl.js +540 -0
  24. package/dist/_chunks/{fr-VOGjBSPP.js → fr-BcuWxqft.js} +2 -2
  25. package/dist/_chunks/gestation-BXEgDGmP.js +50 -0
  26. package/dist/_chunks/gestational-age-calculator-CsQ05qDy.js +165 -0
  27. package/dist/_chunks/heart-C0faivFf.js +20 -0
  28. package/dist/_chunks/{hi-BSDxWU_y.js → hi-wkq_rQAh.js} +2 -2
  29. package/dist/_chunks/image-C6RM5hfF.js +16 -0
  30. package/dist/_chunks/insert-result-yJ0QavoN.js +133 -0
  31. package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-Bim5ftRd.js} +2 -2
  32. package/dist/_chunks/{it-CuonvcI_.js → it-GiQrQ9p4.js} +3 -3
  33. package/dist/_chunks/{ja-DO57gIOT.js → ja-qfYg3Rua.js} +2 -2
  34. package/dist/_chunks/{logo-_Z-jLq80.js → logo-yituK7sE.js} +42 -91
  35. package/dist/_chunks/{marketplace-app-shell-DXHxy9dj.js → marketplace-app-shell-BnClrL2B.js} +2 -2
  36. package/dist/_chunks/{nl-DjPaaWaW.js → nl-xOogO4sZ.js} +2 -2
  37. package/dist/_chunks/{patient-shell-CDvMw_Nk.js → patient-shell-Bz3CdO84.js} +2 -2
  38. package/dist/_chunks/{pl-Cl4lOx2N.js → pl-GnOW6eGK.js} +3 -3
  39. package/dist/_chunks/{practice-results-BFM_lyUs.js → practice-results-C8ciLQap.js} +3 -2
  40. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +209 -0
  41. package/dist/_chunks/{privacy-lock-DD-wHxBg.js → privacy-lock-BmX_gkvt.js} +2 -2
  42. package/dist/_chunks/{pt-D7qO5CzD.js → pt-_bV5b5RW.js} +2 -2
  43. package/dist/_chunks/{public-footer.agent-Cjfe5jus.js → public-footer.agent-zw1vFin_.js} +2 -2
  44. package/dist/_chunks/qr-code-DNXhi6se.js +568 -0
  45. package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-CdtIiKjx.js} +27 -27
  46. package/dist/_chunks/{rich-text-editor-CHmr9Bz8.js → rich-text-editor-DLbg2852.js} +114 -124
  47. package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BEcyh5Nj.js} +2 -2
  48. package/dist/_chunks/rotate-ccw-BWANpitO.js +15 -0
  49. package/dist/_chunks/{ru-RPn9_Lpq.js → ru-Bi86hqMf.js} +3 -3
  50. package/dist/_chunks/session-countdown-LPnhTHjn.js +214 -0
  51. package/dist/_chunks/{shield-check-BhHyReu8.js → shield-check-C73ma9Cs.js} +8 -24
  52. package/dist/_chunks/{sign-in-with-alfadocs-button-BI0fVonM.js → sign-in-with-alfadocs-button-DeHBFRNS.js} +2 -2
  53. package/dist/_chunks/social-sign-in-button-X54ySJr1.js +243 -0
  54. package/dist/_chunks/{sq-AQvefouo.js → sq-BujHSAWu.js} +2 -2
  55. package/dist/_chunks/subDays-_T9YeKPX.js +8 -0
  56. package/dist/_chunks/{sv-zkx9eBtD.js → sv-C8AeDrTA.js} +2 -2
  57. package/dist/_chunks/{tr-Dmr412Ac.js → tr-CMSs_Vgf.js} +2 -2
  58. package/dist/_chunks/unit-converter-EUwO6QYq.js +168 -0
  59. package/dist/_chunks/wallet-pay-button-DK4ESYge.js +250 -0
  60. package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-eXB-PFu4.js} +3 -3
  61. package/dist/agent-catalog.json +203 -1
  62. package/dist/brand/provider-marks/apple-pay.d.ts +12 -0
  63. package/dist/brand/provider-marks/apple.d.ts +12 -0
  64. package/dist/brand/provider-marks/google-pay.d.ts +12 -0
  65. package/dist/brand/provider-marks/google.d.ts +13 -0
  66. package/dist/components/_shared/insert-result.d.ts +47 -0
  67. package/dist/components/bmi-calculator/bmi-calculator.d.ts +27 -0
  68. package/dist/components/bmi-calculator/bmi.d.ts +37 -0
  69. package/dist/components/bmi-calculator/index.d.ts +4 -0
  70. package/dist/components/bmi-calculator/index.js +15 -0
  71. package/dist/components/booking/index.js +1 -1
  72. package/dist/components/calculator-dialog/calculator-dialog.d.ts +26 -0
  73. package/dist/components/calculator-dialog/index.d.ts +3 -0
  74. package/dist/components/calculator-dialog/index.js +5 -0
  75. package/dist/components/chart/chart.d.ts +7 -0
  76. package/dist/components/chart/index.js +1 -1
  77. package/dist/components/chat-message/index.js +1 -1
  78. package/dist/components/contact-profile-card/index.js +1 -1
  79. package/dist/components/cycle-calculator/cycle-calculator.d.ts +21 -0
  80. package/dist/components/cycle-calculator/cycle.d.ts +37 -0
  81. package/dist/components/cycle-calculator/index.d.ts +4 -0
  82. package/dist/components/cycle-calculator/index.js +7 -0
  83. package/dist/components/data-table/index.js +1 -1
  84. package/dist/components/date-picker/index.js +1 -1
  85. package/dist/components/date-range-picker/index.js +1 -1
  86. package/dist/components/date-time-picker/index.js +1 -1
  87. package/dist/components/dependent-selector/dependent-selector.agent.d.ts +4 -0
  88. package/dist/components/dependent-selector/dependent-selector.d.ts +72 -0
  89. package/dist/components/dependent-selector/index.d.ts +4 -0
  90. package/dist/components/dependent-selector/index.js +6 -0
  91. package/dist/components/document-scanner/document-scanner.agent.d.ts +4 -0
  92. package/dist/components/document-scanner/document-scanner.d.ts +93 -0
  93. package/dist/components/document-scanner/index.d.ts +4 -0
  94. package/dist/components/document-scanner/index.js +6 -0
  95. package/dist/components/due-date-calculator/due-date-calculator.d.ts +21 -0
  96. package/dist/components/due-date-calculator/gestation.d.ts +60 -0
  97. package/dist/components/due-date-calculator/index.d.ts +4 -0
  98. package/dist/components/due-date-calculator/index.js +13 -0
  99. package/dist/components/file-upload/index.js +1 -1
  100. package/dist/components/fiscal-code-input/calculate-codice-fiscale.d.ts +24 -0
  101. package/dist/components/fiscal-code-input/fiscal-code-input.agent.d.ts +4 -0
  102. package/dist/components/fiscal-code-input/fiscal-code-input.d.ts +61 -0
  103. package/dist/components/fiscal-code-input/index.d.ts +6 -0
  104. package/dist/components/fiscal-code-input/index.js +11 -0
  105. package/dist/components/fiscal-code-input/is-valid-codice-fiscale.d.ts +21 -0
  106. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +27 -0
  107. package/dist/components/gestational-age-calculator/index.d.ts +3 -0
  108. package/dist/components/gestational-age-calculator/index.js +5 -0
  109. package/dist/components/index.d.ts +15 -0
  110. package/dist/components/logo/index.js +1 -1
  111. package/dist/components/practice-results/index.js +1 -1
  112. package/dist/components/pregnancy-weight-gain/index.d.ts +4 -0
  113. package/dist/components/pregnancy-weight-gain/index.js +9 -0
  114. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +19 -0
  115. package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +41 -0
  116. package/dist/components/privacy-lock/index.js +1 -1
  117. package/dist/components/public-footer/index.js +1 -1
  118. package/dist/components/qr-code/index.d.ts +5 -0
  119. package/dist/components/qr-code/index.js +8 -0
  120. package/dist/components/qr-code/qr-code.agent.d.ts +3 -0
  121. package/dist/components/qr-code/qr-code.d.ts +59 -0
  122. package/dist/components/qr-code/qr-encode.d.ts +46 -0
  123. package/dist/components/rich-text-editor/index.js +1 -1
  124. package/dist/components/session-countdown/index.d.ts +4 -0
  125. package/dist/components/session-countdown/index.js +6 -0
  126. package/dist/components/session-countdown/session-countdown.agent.d.ts +3 -0
  127. package/dist/components/session-countdown/session-countdown.d.ts +38 -0
  128. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  129. package/dist/components/skeleton/skeleton.d.ts +1 -1
  130. package/dist/components/social-sign-in-button/index.d.ts +3 -0
  131. package/dist/components/social-sign-in-button/index.js +5 -0
  132. package/dist/components/social-sign-in-button/social-sign-in-button.d.ts +56 -0
  133. package/dist/components/unit-converter/index.d.ts +4 -0
  134. package/dist/components/unit-converter/index.js +9 -0
  135. package/dist/components/unit-converter/unit-converter.d.ts +21 -0
  136. package/dist/components/unit-converter/units.d.ts +18 -0
  137. package/dist/components/wallet-pay-button/index.d.ts +3 -0
  138. package/dist/components/wallet-pay-button/index.js +5 -0
  139. package/dist/components/wallet-pay-button/wallet-pay-button.d.ts +63 -0
  140. package/dist/i18n/locales/ar.d.ts +316 -0
  141. package/dist/i18n/locales/ar.js +307 -0
  142. package/dist/i18n/locales/de.d.ts +316 -0
  143. package/dist/i18n/locales/de.js +307 -0
  144. package/dist/i18n/locales/el.d.ts +316 -0
  145. package/dist/i18n/locales/el.js +307 -0
  146. package/dist/i18n/locales/en.d.ts +316 -0
  147. package/dist/i18n/locales/en.js +310 -0
  148. package/dist/i18n/locales/es.d.ts +316 -0
  149. package/dist/i18n/locales/es.js +307 -0
  150. package/dist/i18n/locales/fr.d.ts +316 -0
  151. package/dist/i18n/locales/fr.js +307 -0
  152. package/dist/i18n/locales/hi.d.ts +316 -0
  153. package/dist/i18n/locales/hi.js +307 -0
  154. package/dist/i18n/locales/it.d.ts +316 -0
  155. package/dist/i18n/locales/it.js +307 -0
  156. package/dist/i18n/locales/ja.d.ts +316 -0
  157. package/dist/i18n/locales/ja.js +303 -0
  158. package/dist/i18n/locales/nl.d.ts +316 -0
  159. package/dist/i18n/locales/nl.js +307 -0
  160. package/dist/i18n/locales/pl.d.ts +316 -0
  161. package/dist/i18n/locales/pl.js +307 -0
  162. package/dist/i18n/locales/pt.d.ts +316 -0
  163. package/dist/i18n/locales/pt.js +310 -0
  164. package/dist/i18n/locales/ro.d.ts +316 -0
  165. package/dist/i18n/locales/ro.js +307 -0
  166. package/dist/i18n/locales/ru.d.ts +316 -0
  167. package/dist/i18n/locales/ru.js +307 -0
  168. package/dist/i18n/locales/sq.d.ts +316 -0
  169. package/dist/i18n/locales/sq.js +307 -0
  170. package/dist/i18n/locales/sv.d.ts +316 -0
  171. package/dist/i18n/locales/sv.js +307 -0
  172. package/dist/i18n/locales/tr.d.ts +316 -0
  173. package/dist/i18n/locales/tr.js +307 -0
  174. package/dist/i18n/locales/zh.d.ts +316 -0
  175. package/dist/i18n/locales/zh.js +303 -0
  176. package/dist/index.js +597 -527
  177. package/dist/locales/ar.json +316 -0
  178. package/dist/locales/de.json +316 -0
  179. package/dist/locales/el.json +316 -0
  180. package/dist/locales/en.json +316 -0
  181. package/dist/locales/es.json +316 -0
  182. package/dist/locales/fr.json +316 -0
  183. package/dist/locales/hi.json +316 -0
  184. package/dist/locales/it.json +316 -0
  185. package/dist/locales/ja.json +316 -0
  186. package/dist/locales/nl.json +316 -0
  187. package/dist/locales/pl.json +316 -0
  188. package/dist/locales/pt.json +316 -0
  189. package/dist/locales/ro.json +316 -0
  190. package/dist/locales/ru.json +316 -0
  191. package/dist/locales/sq.json +316 -0
  192. package/dist/locales/sv.json +316 -0
  193. package/dist/locales/tr.json +316 -0
  194. package/dist/locales/zh.json +316 -0
  195. package/dist/patterns/alia-assistant/index.js +1 -1
  196. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  197. package/dist/patterns/patient-shell/index.js +1 -1
  198. package/dist/tokens.css +1 -1
  199. package/package.json +57 -1
  200. package/dist/_chunks/chart-DLkVn_ex.js +0 -292
  201. package/dist/_chunks/subDays-CANHP9hz.js +0 -8
@@ -0,0 +1,56 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ const s = e((t, o) => /* @__PURE__ */ a(
4
+ "svg",
5
+ {
6
+ ref: o,
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 148 148",
9
+ fill: "currentColor",
10
+ ...t,
11
+ children: [
12
+ /* @__PURE__ */ r(
13
+ "rect",
14
+ {
15
+ x: "53.04",
16
+ y: "2.54",
17
+ width: "33.99",
18
+ height: "49.34",
19
+ rx: "4.56",
20
+ ry: "4.56",
21
+ transform: "translate(-4.66 19.05) rotate(-15)"
22
+ }
23
+ ),
24
+ /* @__PURE__ */ r(
25
+ "rect",
26
+ {
27
+ x: "96.12",
28
+ y: "53.04",
29
+ width: "49.34",
30
+ height: "33.99",
31
+ rx: "4.56",
32
+ ry: "4.56",
33
+ transform: "translate(-14.01 33.65) rotate(-15)"
34
+ }
35
+ ),
36
+ /* @__PURE__ */ r("path", { d: "M47.82,59.56c-.65-2.43-3.15-3.87-5.58-3.22L3.38,66.75c-2.43.65-3.87,3.15-3.22,5.58l6.44,24.03c.65,2.43,3.15,3.87,5.58,3.22l38.86-10.41c2.43-.65,3.87-3.15,3.22-5.58l-6.44-24.03Z" }),
37
+ /* @__PURE__ */ r(
38
+ "rect",
39
+ {
40
+ x: "60.97",
41
+ y: "96.12",
42
+ width: "33.99",
43
+ height: "49.34",
44
+ rx: "4.56",
45
+ ry: "4.56",
46
+ transform: "translate(-28.61 24.29) rotate(-15)"
47
+ }
48
+ )
49
+ ]
50
+ }
51
+ ));
52
+ s.displayName = "AlfadocsLogoMark";
53
+ export {
54
+ s as A
55
+ };
56
+ //# sourceMappingURL=Alfadocs_Logo_Mark-7o3L3WBI.js.map
@@ -10,7 +10,7 @@ import { S as P } from "./sparkles-CuYXqQLg.js";
10
10
  import { A as k } from "./avatar-BNQNhoyL.js";
11
11
  import { B as D } from "./button-DD_0Xdmr.js";
12
12
  import { C as de } from "./chat-container-ogB4OskO.js";
13
- import { C as ie } from "./chat-message-D53_fH2w.js";
13
+ import { C as ie } from "./chat-message-ASgGtj-L.js";
14
14
  import { C as re } from "./chat-input-CQe7nR_v.js";
15
15
  import { S as le } from "./streaming-text-GH07yIYh.js";
16
16
  import { a as O, S as Q } from "./suggestion-chip-C4kxWUIs.js";
@@ -739,4 +739,4 @@ export {
739
739
  ze as b,
740
740
  Ce as c
741
741
  };
742
- //# sourceMappingURL=alia-sidebar-BEoMl6UL.js.map
742
+ //# sourceMappingURL=alia-sidebar-DXsYPinm.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as r, r as i, v as d } from "./react-day-picker-DsjfS7uI.js";
1
+ import { o as s, q as r, r as i, v as d } from "./react-day-picker-CdtIiKjx.js";
2
2
  const h = {
3
3
  lessThanXSeconds: {
4
4
  one: "أقل من ثانية",
@@ -396,4 +396,4 @@ const h = {
396
396
  export {
397
397
  z as ar
398
398
  };
399
- //# sourceMappingURL=ar-CEpIJtcO.js.map
399
+ //# sourceMappingURL=ar-Cn_NxqkN.js.map
@@ -0,0 +1,32 @@
1
+ const r = 0.45359237, e = 2.54, s = 12, f = (n) => n * r, l = (n) => n / r, u = (n) => n * e, a = (n) => n / e;
2
+ function _(n) {
3
+ const t = a(n), o = Math.floor(t / s);
4
+ return { ft: o, in: t - o * s };
5
+ }
6
+ const I = (n, t) => u(n * s + t);
7
+ function M(n, t) {
8
+ if (n === null || t === null || !Number.isFinite(n) || !Number.isFinite(t) || n <= 0 || t <= 0)
9
+ return null;
10
+ const o = t / 100;
11
+ return n / (o * o);
12
+ }
13
+ function m(n) {
14
+ return n < 18.5 ? "underweight" : n < 25 ? "normal" : n < 30 ? "overweight" : "obese";
15
+ }
16
+ const c = 12, i = 40;
17
+ function T(n) {
18
+ const t = (n - c) / (i - c) * 100;
19
+ return Math.min(100, Math.max(0, t));
20
+ }
21
+ export {
22
+ T as a,
23
+ m as b,
24
+ _ as c,
25
+ a as d,
26
+ M as e,
27
+ I as f,
28
+ u as i,
29
+ l as k,
30
+ f as l
31
+ };
32
+ //# sourceMappingURL=bmi-BxD-tFzU.js.map
@@ -0,0 +1,213 @@
1
+ import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as z, useId as U, useState as r, useMemo as O, useEffect as P } from "react";
3
+ import { c as R } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Y } from "react-i18next";
5
+ import { R as I } from "./radio-TWf9Q-mp.js";
6
+ import { R as _ } from "./radio-group-BcF92GEF.js";
7
+ import { F as T } from "./form-field-BOm9hK35.js";
8
+ import { N as h } from "./number-input-Dj5L3pXK.js";
9
+ import { C as q } from "./chart-DnHvmiDX.js";
10
+ import { B as J } from "./badge-zsf5i5bH.js";
11
+ import { I as Q } from "./insert-result-yJ0QavoN.js";
12
+ import { a as X, b as Z, e as aa, c as la, f as S, l as G, k as ea } from "./bmi-BxD-tFzU.js";
13
+ const ta = R("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
14
+ variants: {
15
+ width: {
16
+ full: "ds:w-full",
17
+ auto: "ds:inline-flex"
18
+ }
19
+ },
20
+ defaultVariants: { width: "full" }
21
+ }), ia = {
22
+ underweight: "info",
23
+ normal: "success",
24
+ overweight: "warning",
25
+ obese: "error"
26
+ }, p = (f) => Math.round(f * 10) / 10, ra = z(
27
+ ({
28
+ defaultUnitSystem: f = "metric",
29
+ onResultChange: u,
30
+ onInsert: y,
31
+ id: k,
32
+ width: A,
33
+ className: H
34
+ }, K) => {
35
+ const { t: a, i18n: v } = Y(), x = U(), [s, V] = r(f), [d, N] = r(null), [g, w] = r(null), [o, F] = r(null), [n, $] = r(null), [m, B] = r(null), D = (M) => {
36
+ const C = M;
37
+ if (C !== s) {
38
+ if (C === "imperial") {
39
+ if (d !== null) {
40
+ const { ft: W, in: j } = la(d);
41
+ F(W), $(p(j));
42
+ }
43
+ g !== null && B(p(ea(g)));
44
+ } else
45
+ (o !== null || n !== null) && N(p(S(o ?? 0, n ?? 0))), m !== null && w(p(G(m)));
46
+ V(C);
47
+ }
48
+ }, E = s === "metric" ? d : o !== null || n !== null ? S(o ?? 0, n ?? 0) : null, L = s === "metric" ? g : m !== null ? G(m) : null, t = aa(L, E), e = t !== null ? Z(t) : null, b = O(
49
+ () => new Intl.NumberFormat(v.language, {
50
+ minimumFractionDigits: 1,
51
+ maximumFractionDigits: 1
52
+ }),
53
+ [v.language]
54
+ );
55
+ P(() => {
56
+ u == null || u(
57
+ t !== null && e !== null ? { bmi: t, category: e } : null
58
+ );
59
+ }, [t, e, u]);
60
+ const c = s === "metric";
61
+ return /* @__PURE__ */ i(
62
+ "div",
63
+ {
64
+ ref: K,
65
+ "data-component": "bmi-calculator",
66
+ "data-component-id": k,
67
+ className: ta({ width: A, className: H }),
68
+ children: [
69
+ /* @__PURE__ */ i(
70
+ _,
71
+ {
72
+ label: a("bmiCalculator.unitSystem.label"),
73
+ variant: "horizontal",
74
+ value: s,
75
+ onValueChange: D,
76
+ children: [
77
+ /* @__PURE__ */ l(I, { label: a("bmiCalculator.unitSystem.metric"), value: "metric" }),
78
+ /* @__PURE__ */ l(
79
+ I,
80
+ {
81
+ label: a("bmiCalculator.unitSystem.imperial"),
82
+ value: "imperial"
83
+ }
84
+ )
85
+ ]
86
+ }
87
+ ),
88
+ /* @__PURE__ */ i("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
89
+ c ? /* @__PURE__ */ l(
90
+ T,
91
+ {
92
+ label: `${a("bmiCalculator.height")} (${a("bmiCalculator.units.cm")})`,
93
+ children: /* @__PURE__ */ l(
94
+ h,
95
+ {
96
+ mode: "decimal",
97
+ min: 0,
98
+ step: 0.5,
99
+ value: d,
100
+ onChange: N
101
+ }
102
+ )
103
+ }
104
+ ) : /* @__PURE__ */ i("div", { role: "group", "aria-labelledby": x, children: [
105
+ /* @__PURE__ */ l(
106
+ "span",
107
+ {
108
+ id: x,
109
+ className: "type-label ds:mb-[var(--spacing-xs)] ds:block ds:text-foreground",
110
+ children: a("bmiCalculator.height")
111
+ }
112
+ ),
113
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
114
+ /* @__PURE__ */ l(
115
+ h,
116
+ {
117
+ mode: "integer",
118
+ min: 0,
119
+ value: o,
120
+ onChange: F,
121
+ "aria-label": a("bmiCalculator.feet")
122
+ }
123
+ ),
124
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.units.ft") }),
125
+ /* @__PURE__ */ l(
126
+ h,
127
+ {
128
+ mode: "decimal",
129
+ min: 0,
130
+ max: 11.9,
131
+ step: 0.5,
132
+ value: n,
133
+ onChange: $,
134
+ "aria-label": a("bmiCalculator.inches")
135
+ }
136
+ ),
137
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.units.in") })
138
+ ] })
139
+ ] }),
140
+ /* @__PURE__ */ l(
141
+ T,
142
+ {
143
+ label: `${a("bmiCalculator.weight")} (${a(
144
+ c ? "bmiCalculator.units.kg" : "bmiCalculator.units.lb"
145
+ )})`,
146
+ children: /* @__PURE__ */ l(
147
+ h,
148
+ {
149
+ mode: "decimal",
150
+ min: 0,
151
+ step: c ? 0.1 : 0.5,
152
+ value: c ? g : m,
153
+ onChange: c ? w : B
154
+ }
155
+ )
156
+ }
157
+ )
158
+ ] }),
159
+ /* @__PURE__ */ l("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: t !== null && e !== null ? a("bmiCalculator.gaugeAria", {
160
+ bmi: b.format(t),
161
+ category: a(`bmiCalculator.category.${e}`)
162
+ }) : "" }),
163
+ t !== null && e !== null ? /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-md)]", children: [
164
+ /* @__PURE__ */ i("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:text-center", children: [
165
+ /* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground", children: a("bmiCalculator.category.label") }),
166
+ /* @__PURE__ */ l(J, { variant: ia[e], size: "lg", children: a(`bmiCalculator.category.${e}`) }),
167
+ /* @__PURE__ */ l("p", { className: "type-body ds:text-muted-foreground", children: a(`bmiCalculator.range.${e}`) })
168
+ ] }),
169
+ /* @__PURE__ */ l("div", { className: "ds:w-[240px] ds:max-w-full", children: /* @__PURE__ */ l(
170
+ q,
171
+ {
172
+ type: "radialBar",
173
+ title: a("bmiCalculator.gaugeAria", {
174
+ bmi: b.format(t),
175
+ category: a(`bmiCalculator.category.${e}`)
176
+ }),
177
+ series: [X(t)],
178
+ labels: [a(`bmiCalculator.category.${e}`)],
179
+ radialValueFormatter: () => b.format(t),
180
+ height: 240
181
+ }
182
+ ) }),
183
+ y ? /* @__PURE__ */ l(
184
+ Q,
185
+ {
186
+ onInsert: y,
187
+ card: {
188
+ title: a("insert.title.bmi"),
189
+ highlight: a(`bmiCalculator.category.${e}`),
190
+ fields: [
191
+ {
192
+ label: a("insert.title.bmi"),
193
+ value: b.format(t)
194
+ },
195
+ {
196
+ label: a("bmiCalculator.category.label"),
197
+ value: a(`bmiCalculator.category.${e}`)
198
+ }
199
+ ]
200
+ }
201
+ }
202
+ ) : null
203
+ ] }) : /* @__PURE__ */ l("p", { className: "type-body ds:text-muted-foreground", children: a("bmiCalculator.empty") })
204
+ ]
205
+ }
206
+ );
207
+ }
208
+ );
209
+ ra.displayName = "BmiCalculator";
210
+ export {
211
+ ra as B
212
+ };
213
+ //# sourceMappingURL=bmi-calculator-BRUru9QX.js.map
@@ -7,7 +7,7 @@ import { A as z } from "./alert-ywPR59NE.js";
7
7
  import { B as ie } from "./button-DD_0Xdmr.js";
8
8
  import { C as Ke } from "./checkbox-DRcOdmXv.js";
9
9
  import { C as Bt } from "./checkbox-group-CpUwlHug.js";
10
- import { D as Et } from "./date-picker-B94HAV4A.js";
10
+ import { D as Et } from "./date-picker-CvQfs6Xh.js";
11
11
  import { E as Vt } from "./email-input-lQivsFrw.js";
12
12
  import { F as Z } from "./form-field-BOm9hK35.js";
13
13
  import { P as Lt } from "./phone-input-DfZbPPvh.js";
@@ -24,8 +24,8 @@ import { S as $t } from "./stepper-accordion-BfS6lUB9.js";
24
24
  import { S as zt } from "./stepper-progress-DDjq5nei.js";
25
25
  import { p as F, S as Kt } from "./slot-grid-BlHHP9Qy.js";
26
26
  import { s as le, i as at } from "./isSameDay-DUEiAT0G.js";
27
- import { w as lt, n as ce, a as je, m as jt, f as ye, d as qt, h as _e, x as Me } from "./react-day-picker-DsjfS7uI.js";
28
- import { s as Ht } from "./subDays-CANHP9hz.js";
27
+ import { w as lt, i as ce, a as je, n as jt, h as ye, f as qt, j as _e, x as Me } from "./react-day-picker-CdtIiKjx.js";
28
+ import { s as Ht } from "./subDays-_T9YeKPX.js";
29
29
  import { C as Gt } from "./chevron-left-CX1jqD2M.js";
30
30
  import { C as Ut } from "./chevron-right-BrpYejk0.js";
31
31
  import { c as V } from "./createLucideIcon-CrFbzy84.js";
@@ -2697,4 +2697,4 @@ export {
2697
2697
  X as O,
2698
2698
  Da as b
2699
2699
  };
2700
- //# sourceMappingURL=booking-eM0y0NIR.js.map
2700
+ //# sourceMappingURL=booking-DK_BPHnQ.js.map
@@ -0,0 +1,40 @@
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as p } from "react";
3
+ import { D as r } from "./dialog-Cee13rHU.js";
4
+ const u = p(
5
+ ({
6
+ trigger: i,
7
+ title: e,
8
+ description: o,
9
+ children: t,
10
+ size: n = "lg",
11
+ open: c,
12
+ defaultOpen: d,
13
+ onOpenChange: m,
14
+ id: s,
15
+ className: g
16
+ }, h) => /* @__PURE__ */ a(
17
+ r,
18
+ {
19
+ open: c,
20
+ defaultOpen: d,
21
+ onOpenChange: m,
22
+ id: s,
23
+ children: [
24
+ /* @__PURE__ */ l(r.Trigger, { asChild: !0, children: i }),
25
+ /* @__PURE__ */ a(r.Content, { ref: h, size: n, children: [
26
+ /* @__PURE__ */ a(r.Header, { children: [
27
+ /* @__PURE__ */ l(r.Title, { children: e }),
28
+ o ? /* @__PURE__ */ l(r.Description, { children: o }) : null
29
+ ] }),
30
+ /* @__PURE__ */ l("div", { "data-component": "calculator-dialog", className: g, children: t })
31
+ ] })
32
+ ]
33
+ }
34
+ )
35
+ );
36
+ u.displayName = "CalculatorDialog";
37
+ export {
38
+ u as C
39
+ };
40
+ //# sourceMappingURL=calculator-dialog-B74fqpFZ.js.map