@alfadocs/ui-kit 0.41.2 → 0.43.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 (199) hide show
  1. package/dist/_chunks/address-autocomplete-CSjMrBvu.js +358 -0
  2. package/dist/_chunks/{alia-sidebar-DXsYPinm.js → alia-sidebar-BpX4z_af.js} +2 -2
  3. package/dist/_chunks/{ar-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
  4. package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
  5. package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
  6. package/dist/_chunks/{breadcrumb-CLlhx7qo.js → breadcrumb-OTbaY70e.js} +4 -4
  7. package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
  8. package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
  9. package/dist/_chunks/cycle-calculator-Dln-y1k_.js +192 -0
  10. package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
  11. package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
  12. package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
  13. package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
  14. package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
  15. package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
  16. package/dist/_chunks/{document-scanner-CqS_klIr.js → document-scanner-BqLsGs4Y.js} +7 -7
  17. package/dist/_chunks/{dropdown-menu-BC5ZdOMo.js → dropdown-menu-CUEXqKis.js} +2 -2
  18. package/dist/_chunks/{due-date-calculator-CUspKSTw.js → due-date-calculator-Cc4dRqTI.js} +62 -41
  19. package/dist/_chunks/{editable-currency-cell-renderer-DgkCIIcO.js → editable-currency-cell-renderer-9jqwDv5x.js} +3 -3
  20. package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
  21. package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
  22. package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
  23. package/dist/_chunks/{freemium-paywall-BAk3a6er.js → freemium-paywall-BLXESpH4.js} +2 -2
  24. package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
  25. package/dist/_chunks/{gestational-age-calculator-CsQ05qDy.js → gestational-age-calculator-ZMSrzkRW.js} +59 -45
  26. package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
  27. package/dist/_chunks/{header-settings-CBLwUK6t.js → header-settings-Bx0Biimh.js} +2 -2
  28. package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
  29. package/dist/_chunks/index.modern-D2LGACWg.js +1529 -0
  30. package/dist/_chunks/insert-result-DisOY2G-.js +243 -0
  31. package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
  32. package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
  33. package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
  34. package/dist/_chunks/{kbd-Cglkd7CY.js → kbd-D855ZXIW.js} +2 -2
  35. package/dist/_chunks/map-view-Tb5VfK9Y.js +333 -0
  36. package/dist/_chunks/marketplace-app-shell-Dc5cTIt8.js +428 -0
  37. package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
  38. package/dist/_chunks/{patient-search-CBq62kmL.js → patient-search-DPe2ZYEL.js} +2 -2
  39. package/dist/_chunks/{patient-shell-DF81lALv.js → patient-shell-CnT4L8gn.js} +3 -3
  40. package/dist/_chunks/{payment-form-Dy3WIIsC.js → payment-form-BzVsG6Ks.js} +5 -5
  41. package/dist/_chunks/{pdf-viewer-Cy6Ul3hZ.js → pdf-viewer-B6MC6VTx.js} +139 -126
  42. package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
  43. package/dist/_chunks/{practice-results-C0d4IL5E.js → practice-results-CrLpEiiW.js} +4 -4
  44. package/dist/_chunks/pregnancy-weight-gain-zZL5Ir2-.js +224 -0
  45. package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
  46. package/dist/_chunks/{public-header.agent-B2dDg2_d.js → public-header.agent-BY6FH71R.js} +2 -2
  47. package/dist/_chunks/radio-group-CLjK-SlK.js +167 -0
  48. package/dist/_chunks/{rich-text-editor-DLbg2852.js → rich-text-editor-DhGIBd4a.js} +10 -10
  49. package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
  50. package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
  51. package/dist/_chunks/{sheet-BV-yuLE2.js → sheet-xbzu4YiY.js} +7 -7
  52. package/dist/_chunks/sign-document-B-3k_0LO.js +344 -0
  53. package/dist/_chunks/{signature-capture-DoiBd6i3.js → signature-capture-CpMBhqQ9.js} +6 -6
  54. package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
  55. package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
  56. package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
  57. package/dist/_chunks/tab-bar-Xetknddo.js +105 -0
  58. package/dist/_chunks/{theme-toggle-DpC28kt5.js → theme-toggle-ClATnY4Q.js} +2 -2
  59. package/dist/_chunks/{toast.agent-WHHfw5VX.js → toast.agent-B0MCsvdZ.js} +2 -2
  60. package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
  61. package/dist/_chunks/{unit-converter-EUwO6QYq.js → unit-converter-CuXCXJhK.js} +46 -40
  62. package/dist/_chunks/{workflow-map-C3gB0FvB.js → workflow-map-BFNpzTiw.js} +2 -2
  63. package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
  64. package/dist/agent-catalog.json +1 -1
  65. package/dist/brand/product-lockup/product-lockup.d.ts +16 -0
  66. package/dist/components/_shared/calendar-class-names.d.ts +8 -0
  67. package/dist/components/_shared/index.d.ts +2 -0
  68. package/dist/components/_shared/insert-result.d.ts +78 -6
  69. package/dist/components/address-autocomplete/address-autocomplete.d.ts +77 -0
  70. package/dist/components/address-autocomplete/index.d.ts +4 -0
  71. package/dist/components/address-autocomplete/index.js +6 -0
  72. package/dist/components/address-autocomplete/parse-address.d.ts +52 -0
  73. package/dist/components/badge/badge.d.ts +1 -1
  74. package/dist/components/bmi-calculator/bmi-calculator.d.ts +11 -1
  75. package/dist/components/bmi-calculator/index.js +1 -1
  76. package/dist/components/booking/index.js +1 -1
  77. package/dist/components/breadcrumb/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/card/card.d.ts +1 -1
  80. package/dist/components/chart/chart.d.ts +10 -0
  81. package/dist/components/chart/index.js +1 -1
  82. package/dist/components/cycle-calculator/cycle-calculator.d.ts +12 -2
  83. package/dist/components/cycle-calculator/index.js +1 -1
  84. package/dist/components/data-table/index.js +1 -1
  85. package/dist/components/date-picker/date-picker.d.ts +0 -1
  86. package/dist/components/date-picker/index.js +1 -1
  87. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  88. package/dist/components/date-range-picker/index.js +1 -1
  89. package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/dialog/index.js +1 -1
  92. package/dist/components/document-scanner/index.js +1 -1
  93. package/dist/components/dropdown-menu/index.js +1 -1
  94. package/dist/components/due-date-calculator/due-date-calculator.d.ts +11 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/freemium-paywall/index.js +1 -1
  97. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +12 -2
  98. package/dist/components/gestational-age-calculator/index.js +1 -1
  99. package/dist/components/header/header.d.ts +8 -0
  100. package/dist/components/header/index.js +1 -1
  101. package/dist/components/header-settings/index.js +1 -1
  102. package/dist/components/index.d.ts +3 -1
  103. package/dist/components/kbd/index.js +1 -1
  104. package/dist/components/map-view/index.js +1 -1
  105. package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
  106. package/dist/components/patient-search/index.js +1 -1
  107. package/dist/components/payment-form/index.js +1 -1
  108. package/dist/components/pdf-viewer/index.js +1 -1
  109. package/dist/components/practice-results/index.js +1 -1
  110. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  111. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +12 -2
  112. package/dist/components/public-header/index.js +1 -1
  113. package/dist/components/public-header/public-header.d.ts +1 -1
  114. package/dist/components/radio-group/index.js +1 -1
  115. package/dist/components/rich-text-editor/index.js +1 -1
  116. package/dist/components/sheet/index.js +1 -1
  117. package/dist/components/sign-document/index.js +1 -1
  118. package/dist/components/sign-document/sign-document.d.ts +12 -0
  119. package/dist/components/signature-capture/index.js +1 -1
  120. package/dist/components/stat/stat.d.ts +1 -1
  121. package/dist/components/tab-bar/index.d.ts +3 -0
  122. package/dist/components/tab-bar/index.js +5 -0
  123. package/dist/components/tab-bar/tab-bar.d.ts +104 -0
  124. package/dist/components/theme-toggle/index.js +1 -1
  125. package/dist/components/toast/index.js +1 -1
  126. package/dist/components/unit-converter/index.js +1 -1
  127. package/dist/components/unit-converter/unit-converter.d.ts +11 -1
  128. package/dist/components/workflow/index.js +1 -1
  129. package/dist/i18n/locales/ar.d.ts +17 -0
  130. package/dist/i18n/locales/ar.js +18 -1
  131. package/dist/i18n/locales/de.d.ts +17 -0
  132. package/dist/i18n/locales/de.js +18 -1
  133. package/dist/i18n/locales/el.d.ts +17 -0
  134. package/dist/i18n/locales/el.js +18 -1
  135. package/dist/i18n/locales/en.d.ts +17 -0
  136. package/dist/i18n/locales/en.js +18 -1
  137. package/dist/i18n/locales/es.d.ts +17 -0
  138. package/dist/i18n/locales/es.js +18 -1
  139. package/dist/i18n/locales/fr.d.ts +17 -0
  140. package/dist/i18n/locales/fr.js +18 -1
  141. package/dist/i18n/locales/hi.d.ts +17 -0
  142. package/dist/i18n/locales/hi.js +18 -1
  143. package/dist/i18n/locales/it.d.ts +17 -0
  144. package/dist/i18n/locales/it.js +18 -1
  145. package/dist/i18n/locales/ja.d.ts +17 -0
  146. package/dist/i18n/locales/ja.js +18 -1
  147. package/dist/i18n/locales/nl.d.ts +17 -0
  148. package/dist/i18n/locales/nl.js +18 -1
  149. package/dist/i18n/locales/pl.d.ts +17 -0
  150. package/dist/i18n/locales/pl.js +18 -1
  151. package/dist/i18n/locales/pt.d.ts +17 -0
  152. package/dist/i18n/locales/pt.js +18 -1
  153. package/dist/i18n/locales/ro.d.ts +17 -0
  154. package/dist/i18n/locales/ro.js +18 -1
  155. package/dist/i18n/locales/ru.d.ts +17 -0
  156. package/dist/i18n/locales/ru.js +18 -1
  157. package/dist/i18n/locales/sq.d.ts +17 -0
  158. package/dist/i18n/locales/sq.js +18 -1
  159. package/dist/i18n/locales/sv.d.ts +17 -0
  160. package/dist/i18n/locales/sv.js +18 -1
  161. package/dist/i18n/locales/tr.d.ts +17 -0
  162. package/dist/i18n/locales/tr.js +18 -1
  163. package/dist/i18n/locales/zh.d.ts +17 -0
  164. package/dist/i18n/locales/zh.js +18 -1
  165. package/dist/index.js +605 -599
  166. package/dist/locales/ar.json +18 -1
  167. package/dist/locales/de.json +18 -1
  168. package/dist/locales/el.json +18 -1
  169. package/dist/locales/en.json +18 -1
  170. package/dist/locales/es.json +18 -1
  171. package/dist/locales/fr.json +18 -1
  172. package/dist/locales/hi.json +18 -1
  173. package/dist/locales/it.json +18 -1
  174. package/dist/locales/ja.json +18 -1
  175. package/dist/locales/nl.json +18 -1
  176. package/dist/locales/pl.json +18 -1
  177. package/dist/locales/pt.json +18 -1
  178. package/dist/locales/ro.json +18 -1
  179. package/dist/locales/ru.json +18 -1
  180. package/dist/locales/sq.json +18 -1
  181. package/dist/locales/sv.json +18 -1
  182. package/dist/locales/tr.json +18 -1
  183. package/dist/locales/zh.json +18 -1
  184. package/dist/patterns/alia-assistant/index.js +1 -1
  185. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  186. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +87 -4
  187. package/dist/patterns/patient-shell/index.js +1 -1
  188. package/dist/tokens.css +1411 -2
  189. package/package.json +16 -1
  190. package/dist/_chunks/bmi-calculator-DnEr513I.js +0 -213
  191. package/dist/_chunks/cycle-calculator-B5Uj9QeT.js +0 -185
  192. package/dist/_chunks/insert-result-yJ0QavoN.js +0 -133
  193. package/dist/_chunks/map-view-qJLybrmN.js +0 -1850
  194. package/dist/_chunks/marketplace-app-shell-BlxVizU4.js +0 -296
  195. package/dist/_chunks/pregnancy-weight-gain-BCdi-JSv.js +0 -209
  196. package/dist/_chunks/radio-group-BcF92GEF.js +0 -152
  197. package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
  198. package/dist/_chunks/sign-document-CpLDZ6Db.js +0 -316
  199. package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
@@ -1,65 +1,76 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as $, useState as i, useMemo as g, useEffect as F } from "react";
3
- import { c as k } from "./index-D2ZczOXr.js";
4
- import { useTranslation as B } from "react-i18next";
2
+ import { forwardRef as _, useState as i, useMemo as g, useEffect as I } from "react";
3
+ import { c as S } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as z } from "react-i18next";
5
5
  import { R as s } from "./radio-TWf9Q-mp.js";
6
- import { R as f } from "./radio-group-BcF92GEF.js";
7
- import { F as h } from "./form-field-BOm9hK35.js";
8
- import { D as _ } from "./date-picker-CvQfs6Xh.js";
9
- import { N as I } from "./number-input-Dj5L3pXK.js";
10
- import { B as S } from "./badge-zsf5i5bH.js";
11
- import { I as V } from "./insert-result-yJ0QavoN.js";
12
- import { D as v, c as z } from "./gestation-BXEgDGmP.js";
13
- const G = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
6
+ import { R as h } from "./radio-group-CLjK-SlK.js";
7
+ import { F as v } from "./form-field-BOm9hK35.js";
8
+ import { D as G } from "./date-picker-Bq7xhMA-.js";
9
+ import { N as M } from "./number-input-Dj5L3pXK.js";
10
+ import { C } from "./card-DPmk26CL.js";
11
+ import { B as R } from "./badge-zsf5i5bH.js";
12
+ import { I as V } from "./insert-result-DisOY2G-.js";
13
+ import { D as b, c as j } from "./gestation-mWF4AXea.js";
14
+ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
14
15
  variants: {
15
16
  width: { full: "ds:w-full", auto: "ds:inline-flex" }
16
17
  },
17
18
  defaultVariants: { width: "full" }
18
- }), M = {
19
+ }), Y = {
19
20
  preconception: "neutral",
20
21
  first: "info",
21
22
  second: "success",
22
23
  third: "warning",
23
24
  postterm: "error"
24
- }, R = {
25
+ }, K = {
25
26
  lmp: "dueDateCalculator.lmpDate",
26
27
  conception: "dueDateCalculator.conceptionDate",
27
28
  ivf: "dueDateCalculator.transferDate"
28
- }, j = $(
29
- ({ defaultMethod: b = "lmp", onResultChange: d, onInsert: p, id: C, width: y, className: x }, N) => {
30
- const { t: e, i18n: D } = B(), [r, L] = i(b), [o, A] = i(void 0), [u, w] = i(
31
- v
32
- ), [n, E] = i(5), t = g(() => o ? z(
29
+ }, P = _(
30
+ ({
31
+ defaultMethod: y = "lmp",
32
+ onResultChange: d,
33
+ onInsert: p,
34
+ insertVariant: D = "insert",
35
+ onCopy: x,
36
+ onError: N,
37
+ id: L,
38
+ width: A,
39
+ className: w
40
+ }, E) => {
41
+ const { t: e, i18n: f } = z(), [r, T] = i(y), [o, $] = i(void 0), [u, B] = i(
42
+ b
43
+ ), [n, F] = i(5), t = g(() => o ? j(
33
44
  {
34
45
  method: r,
35
46
  date: o,
36
- cycleLength: u ?? v,
47
+ cycleLength: u ?? b,
37
48
  embryoAge: n
38
49
  },
39
50
  /* @__PURE__ */ new Date()
40
51
  ) : null, [r, o, u, n]), c = g(
41
- () => new Intl.DateTimeFormat(D.language, { dateStyle: "long" }),
42
- [D.language]
52
+ () => new Intl.DateTimeFormat(f.language, { dateStyle: "long" }),
53
+ [f.language]
43
54
  );
44
- F(() => {
55
+ I(() => {
45
56
  d == null || d(t);
46
57
  }, [t, d]);
47
- const T = g(() => /* @__PURE__ */ new Date(), []);
58
+ const k = g(() => /* @__PURE__ */ new Date(), []);
48
59
  return /* @__PURE__ */ l(
49
60
  "div",
50
61
  {
51
- ref: N,
62
+ ref: E,
52
63
  "data-component": "due-date-calculator",
53
- "data-component-id": C,
54
- className: G({ width: y, className: x }),
64
+ "data-component-id": L,
65
+ className: H({ width: A, className: w }),
55
66
  children: [
56
67
  /* @__PURE__ */ l(
57
- f,
68
+ h,
58
69
  {
59
70
  label: e("dueDateCalculator.method.label"),
60
71
  variant: "horizontal",
61
72
  value: r,
62
- onValueChange: (m) => L(m),
73
+ onValueChange: (m) => T(m),
63
74
  children: [
64
75
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.method.lmp"), value: "lmp" }),
65
76
  /* @__PURE__ */ a(
@@ -74,31 +85,31 @@ const G = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
74
85
  }
75
86
  ),
76
87
  /* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
77
- /* @__PURE__ */ a(h, { label: e(R[r]), children: /* @__PURE__ */ a(_, { value: o, onChange: A, maxDate: T }) }),
88
+ /* @__PURE__ */ a(v, { label: e(K[r]), children: /* @__PURE__ */ a(G, { value: o, onChange: $, maxDate: k }) }),
78
89
  r === "lmp" && /* @__PURE__ */ a(
79
- h,
90
+ v,
80
91
  {
81
92
  label: e("dueDateCalculator.cycleLength"),
82
93
  description: e("dueDateCalculator.cycleLengthHint"),
83
94
  children: /* @__PURE__ */ a(
84
- I,
95
+ M,
85
96
  {
86
97
  mode: "integer",
87
98
  min: 20,
88
99
  max: 45,
89
100
  value: u,
90
- onChange: w
101
+ onChange: B
91
102
  }
92
103
  )
93
104
  }
94
105
  ),
95
106
  r === "ivf" && /* @__PURE__ */ l(
96
- f,
107
+ h,
97
108
  {
98
109
  label: e("dueDateCalculator.embryoAge"),
99
110
  variant: "horizontal",
100
111
  value: String(n),
101
- onValueChange: (m) => E(Number(m)),
112
+ onValueChange: (m) => F(Number(m)),
102
113
  children: [
103
114
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.day3"), value: "3" }),
104
115
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.day5"), value: "5" })
@@ -111,11 +122,18 @@ const G = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
111
122
  )}. ${e("dueDateCalculator.result.trimesterLabel")}: ${e(
112
123
  `dueDateCalculator.trimester.${t.trimester}`
113
124
  )}.` : "" }),
114
- t ? /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
125
+ t ? /* @__PURE__ */ a(C, { variant: "elevated", children: /* @__PURE__ */ l(C.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
115
126
  /* @__PURE__ */ l("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
116
127
  /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
117
128
  /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.trimesterLabel") }),
118
- /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(S, { variant: M[t.trimester], size: "lg", children: e(`dueDateCalculator.trimester.${t.trimester}`) }) })
129
+ /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
130
+ R,
131
+ {
132
+ variant: Y[t.trimester],
133
+ size: "lg",
134
+ children: e(`dueDateCalculator.trimester.${t.trimester}`)
135
+ }
136
+ ) })
119
137
  ] }),
120
138
  /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
121
139
  /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.gestationLabel") }),
@@ -129,10 +147,13 @@ const G = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
129
147
  /* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: c.format(t.dueDate) })
130
148
  ] })
131
149
  ] }),
132
- p ? /* @__PURE__ */ a(
150
+ D === "copy" || p ? /* @__PURE__ */ a(
133
151
  V,
134
152
  {
153
+ variant: D,
135
154
  onInsert: p,
155
+ onCopy: x,
156
+ onError: N,
136
157
  card: {
137
158
  title: e("insert.title.dueDate"),
138
159
  highlight: c.format(t.dueDate),
@@ -158,14 +179,14 @@ const G = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
158
179
  }
159
180
  }
160
181
  ) : null
161
- ] }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("dueDateCalculator.empty") })
182
+ ] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("dueDateCalculator.empty") })
162
183
  ]
163
184
  }
164
185
  );
165
186
  }
166
187
  );
167
- j.displayName = "DueDateCalculator";
188
+ P.displayName = "DueDateCalculator";
168
189
  export {
169
- j as D
190
+ P as D
170
191
  };
171
- //# sourceMappingURL=due-date-calculator-CUspKSTw.js.map
192
+ //# sourceMappingURL=due-date-calculator-Cc4dRqTI.js.map
@@ -12,7 +12,7 @@ import { P as Z } from "./popover-Devce-tT.js";
12
12
  import { C as Re } from "./checkbox-DRcOdmXv.js";
13
13
  import { T as fe } from "./text-input-BaClJL8Y.js";
14
14
  import { T as ae } from "./tag-CdA0s_VV.js";
15
- import { D as Y } from "./dropdown-menu-BC5ZdOMo.js";
15
+ import { D as Y } from "./dropdown-menu-CUEXqKis.js";
16
16
  import { X as De } from "./x-CCcI3eJp.js";
17
17
  import { R as Rt } from "./refresh-cw-CC8jSKMr.js";
18
18
  import { S as pe } from "./search-BonnQsHv.js";
@@ -26,7 +26,7 @@ import { S as Ie } from "./select-hsCaJSX3.js";
26
26
  import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
27
27
  import { u as At } from "./use-theme-C2dHKUAN.js";
28
28
  import { u as Pt } from "./registry-nPAVE19X.js";
29
- import { D as ze } from "./date-range-picker-U9fn1g9d.js";
29
+ import { D as ze } from "./date-range-picker-DcXuI9y7.js";
30
30
  import { M as Ot } from "./multi-select-DOLO3K_z.js";
31
31
  import { A as Ae } from "./autocomplete-DIgdhCGJ.js";
32
32
  import { N as ee } from "./number-input-Dj5L3pXK.js";
@@ -2332,4 +2332,4 @@ export {
2332
2332
  Be as q,
2333
2333
  xn as u
2334
2334
  };
2335
- //# sourceMappingURL=editable-currency-cell-renderer-DgkCIIcO.js.map
2335
+ //# sourceMappingURL=editable-currency-cell-renderer-9jqwDv5x.js.map
@@ -1,4 +1,4 @@
1
- import { o as s, q as i, r as o, v as d } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as s, r as i, v as o, w as d } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const u = {
3
3
  lessThanXSeconds: {
4
4
  one: "λιγότερο από ένα δευτερόλεπτο",
@@ -93,7 +93,7 @@ const u = {
93
93
  formats: m,
94
94
  defaultWidth: "full"
95
95
  })
96
- }, b = {
96
+ }, w = {
97
97
  lastWeek: (e) => {
98
98
  switch (e.getDay()) {
99
99
  case 6:
@@ -107,8 +107,8 @@ const u = {
107
107
  tomorrow: "'αύριο στις' p",
108
108
  nextWeek: "eeee 'στις' p",
109
109
  other: "P"
110
- }, w = (e, r) => {
111
- const a = b[e];
110
+ }, b = (e, r) => {
111
+ const a = w[e];
112
112
  return typeof a == "function" ? a(r) : a;
113
113
  }, y = {
114
114
  narrow: ["πΧ", "μΧ"],
@@ -359,7 +359,7 @@ const u = {
359
359
  code: "el",
360
360
  formatDistance: c,
361
361
  formatLong: f,
362
- formatRelative: w,
362
+ formatRelative: b,
363
363
  localize: k,
364
364
  match: q,
365
365
  options: {
@@ -370,4 +370,4 @@ const u = {
370
370
  export {
371
371
  O as el
372
372
  };
373
- //# sourceMappingURL=el-BYPonAaK.js.map
373
+ //# sourceMappingURL=el-BWG5RXxa.js.map
@@ -1,4 +1,4 @@
1
- import { o as d, q as o, r, v as s } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as d, r as o, v as r, w as s } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "menos de un segundo",
@@ -370,4 +370,4 @@ const m = {
370
370
  export {
371
371
  q as es
372
372
  };
373
- //# sourceMappingURL=es-CMkVCQ4F.js.map
373
+ //# sourceMappingURL=es-DfO_G435.js.map
@@ -1,4 +1,4 @@
1
- import { o as m, q as r, r as o, v as d } from "./react-day-picker-CdtIiKjx.js";
1
+ import { q as m, r, v as o, w as d } from "./date-picker-variants-DLi1Va_e.js";
2
2
  const u = {
3
3
  lessThanXSeconds: {
4
4
  one: "moins d’une seconde",
@@ -335,4 +335,4 @@ const u = {
335
335
  export {
336
336
  q as fr
337
337
  };
338
- //# sourceMappingURL=fr-BcuWxqft.js.map
338
+ //# sourceMappingURL=fr-BTn24bs8.js.map
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
8
8
  import { u as Y } from "./registry-nPAVE19X.js";
9
9
  import { B as I } from "./button-DD_0Xdmr.js";
10
10
  import { P as Z } from "./progress-kzIRcdaq.js";
11
- import { f as $ } from "./payment-form-Dy3WIIsC.js";
11
+ import { f as $ } from "./payment-form-BzVsG6Ks.js";
12
12
  import { T as ee } from "./triangle-alert-CBPUIzQo.js";
13
13
  import { C as se } from "./check-DPdL_Sm7.js";
14
14
  const ae = {
@@ -265,4 +265,4 @@ export {
265
265
  te as F,
266
266
  ae as f
267
267
  };
268
- //# sourceMappingURL=freemium-paywall-BAk3a6er.js.map
268
+ //# sourceMappingURL=freemium-paywall-BLXESpH4.js.map
@@ -1,5 +1,5 @@
1
- import { a, d as E } from "./react-day-picker-CdtIiKjx.js";
2
- import { s as i } from "./subDays-_T9YeKPX.js";
1
+ import { a, d as E } from "./date-picker-variants-DLi1Va_e.js";
2
+ import { s as i } from "./subDays-Dv7q9S7u.js";
3
3
  const T = 280, m = 14, u = 266, d = 28;
4
4
  function p(e) {
5
5
  if (e < 0) return "preconception";
@@ -47,4 +47,4 @@ export {
47
47
  g,
48
48
  p as t
49
49
  };
50
- //# sourceMappingURL=gestation-BXEgDGmP.js.map
50
+ //# sourceMappingURL=gestation-mWF4AXea.js.map
@@ -1,45 +1,56 @@
1
1
  import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as w, useState as p, useMemo as m, useEffect as $ } from "react";
3
- import { c as G } from "./index-D2ZczOXr.js";
4
- import { useTranslation as L } from "react-i18next";
5
- import { R as f } from "./radio-TWf9Q-mp.js";
6
- import { R as T } from "./radio-group-BcF92GEF.js";
7
- import { F as S } from "./form-field-BOm9hK35.js";
8
- import { D as k } from "./date-picker-CvQfs6Xh.js";
9
- import { B as h } from "./badge-zsf5i5bH.js";
10
- import { I as E } from "./insert-result-yJ0QavoN.js";
11
- import { c as F, g as B, G as I } from "./gestation-BXEgDGmP.js";
12
- import { s as M } from "./subDays-_T9YeKPX.js";
13
- import { i as j } from "./react-day-picker-CdtIiKjx.js";
14
- const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
2
+ import { forwardRef as T, useState as f, useMemo as m, useEffect as S } from "react";
3
+ import { c as k } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as B } from "react-i18next";
5
+ import { R as h } from "./radio-TWf9Q-mp.js";
6
+ import { R as E } from "./radio-group-CLjK-SlK.js";
7
+ import { F } from "./form-field-BOm9hK35.js";
8
+ import { D as I } from "./date-picker-Bq7xhMA-.js";
9
+ import { C as x } from "./card-DPmk26CL.js";
10
+ import { B as A } from "./badge-zsf5i5bH.js";
11
+ import { I as M } from "./insert-result-DisOY2G-.js";
12
+ import { c as j, g as R, G as z } from "./gestation-mWF4AXea.js";
13
+ import { s as V } from "./subDays-Dv7q9S7u.js";
14
+ import { i as _ } from "./date-picker-variants-DLi1Va_e.js";
15
+ const O = k("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
15
16
  variants: {
16
17
  width: { full: "ds:w-full", auto: "ds:inline-flex" }
17
18
  },
18
19
  defaultVariants: { width: "full" }
19
- }), V = {
20
+ }), P = {
20
21
  preconception: "neutral",
21
22
  first: "info",
22
23
  second: "success",
23
24
  third: "warning",
24
25
  postterm: "error"
25
- }, z = w(
26
- ({ defaultMethod: x = "lmp", onResultChange: d, onInsert: g, id: A, width: v, className: b }, y) => {
27
- const { t: e, i18n: u } = L(), [o, C] = p(x), [i, N] = p(void 0), n = m(() => /* @__PURE__ */ new Date(), []), t = m(() => {
26
+ }, Y = T(
27
+ ({
28
+ defaultMethod: v = "lmp",
29
+ onResultChange: d,
30
+ onInsert: g,
31
+ insertVariant: u = "insert",
32
+ onCopy: y,
33
+ onError: b,
34
+ id: C,
35
+ width: N,
36
+ className: D
37
+ }, w) => {
38
+ const { t: e, i18n: p } = B(), [o, $] = f(v), [i, G] = f(void 0), n = m(() => /* @__PURE__ */ new Date(), []), t = m(() => {
28
39
  if (!i) return null;
29
- const l = o === "lmp" ? i : M(i, I), r = F({ method: "lmp", date: l }, n);
40
+ const l = o === "lmp" ? i : V(i, z), r = j({ method: "lmp", date: l }, n);
30
41
  return {
31
42
  result: {
32
43
  gestationalAge: r.gestationalAge,
33
44
  trimester: r.trimester,
34
45
  dueDate: r.dueDate
35
46
  },
36
- milestones: B(r.gestationalStart)
47
+ milestones: R(r.gestationalStart)
37
48
  };
38
- }, [o, i, n]), D = m(
39
- () => new Intl.DateTimeFormat(u.language, { dateStyle: "medium" }),
40
- [u.language]
49
+ }, [o, i, n]), L = m(
50
+ () => new Intl.DateTimeFormat(p.language, { dateStyle: "medium" }),
51
+ [p.language]
41
52
  );
42
- $(() => {
53
+ S(() => {
43
54
  d == null || d((t == null ? void 0 : t.result) ?? null);
44
55
  }, [t, d]);
45
56
  const c = (l) => l ? e("gestationalAgeCalculator.gestation", {
@@ -49,35 +60,35 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
49
60
  return /* @__PURE__ */ s(
50
61
  "div",
51
62
  {
52
- ref: y,
63
+ ref: w,
53
64
  "data-component": "gestational-age-calculator",
54
- "data-component-id": A,
55
- className: R({ width: v, className: b }),
65
+ "data-component-id": C,
66
+ className: O({ width: N, className: D }),
56
67
  children: [
57
68
  /* @__PURE__ */ s(
58
- T,
69
+ E,
59
70
  {
60
71
  label: e("gestationalAgeCalculator.method.label"),
61
72
  variant: "horizontal",
62
73
  value: o,
63
- onValueChange: (l) => C(l),
74
+ onValueChange: (l) => $(l),
64
75
  children: [
65
- /* @__PURE__ */ a(f, { label: e("gestationalAgeCalculator.method.lmp"), value: "lmp" }),
66
- /* @__PURE__ */ a(f, { label: e("gestationalAgeCalculator.method.edd"), value: "edd" })
76
+ /* @__PURE__ */ a(h, { label: e("gestationalAgeCalculator.method.lmp"), value: "lmp" }),
77
+ /* @__PURE__ */ a(h, { label: e("gestationalAgeCalculator.method.edd"), value: "edd" })
67
78
  ]
68
79
  }
69
80
  ),
70
81
  /* @__PURE__ */ a(
71
- S,
82
+ F,
72
83
  {
73
84
  label: e(
74
85
  o === "lmp" ? "gestationalAgeCalculator.lmpDate" : "gestationalAgeCalculator.eddDate"
75
86
  ),
76
87
  children: /* @__PURE__ */ a(
77
- k,
88
+ I,
78
89
  {
79
90
  value: i,
80
- onChange: N,
91
+ onChange: G,
81
92
  maxDate: o === "lmp" ? n : void 0
82
93
  }
83
94
  )
@@ -88,14 +99,14 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
88
99
  )}. ${e("gestationalAgeCalculator.trimesterLabel")}: ${e(
89
100
  `gestationalAgeCalculator.trimester.${t.result.trimester}`
90
101
  )}.` : "" }),
91
- t ? /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
102
+ t ? /* @__PURE__ */ a(x, { variant: "elevated", children: /* @__PURE__ */ s(x.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
92
103
  /* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
93
104
  /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
94
105
  /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.trimesterLabel") }),
95
106
  /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
96
- h,
107
+ A,
97
108
  {
98
- variant: V[t.result.trimester],
109
+ variant: P[t.result.trimester],
99
110
  size: "lg",
100
111
  children: e(
101
112
  `gestationalAgeCalculator.trimester.${t.result.trimester}`
@@ -111,7 +122,7 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
111
122
  /* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
112
123
  /* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground", children: e("gestationalAgeCalculator.milestonesLabel") }),
113
124
  /* @__PURE__ */ a("ul", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: t.milestones.map((l) => {
114
- const r = j(n, l.date);
125
+ const r = _(n, l.date);
115
126
  return /* @__PURE__ */ s(
116
127
  "li",
117
128
  {
@@ -119,8 +130,8 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
119
130
  children: [
120
131
  /* @__PURE__ */ a("span", { className: "type-body ds:text-foreground", children: e(`gestationalAgeCalculator.milestone.${l.key}`) }),
121
132
  /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
122
- /* @__PURE__ */ a("span", { className: "type-body ds:text-muted-foreground", children: D.format(l.date) }),
123
- r ? /* @__PURE__ */ a(h, { variant: "success", children: e("gestationalAgeCalculator.reached") }) : null
133
+ /* @__PURE__ */ a("span", { className: "type-body ds:text-muted-foreground", children: L.format(l.date) }),
134
+ r ? /* @__PURE__ */ a(A, { variant: "success", children: e("gestationalAgeCalculator.reached") }) : null
124
135
  ] })
125
136
  ]
126
137
  },
@@ -128,10 +139,13 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
128
139
  );
129
140
  }) })
130
141
  ] }),
131
- g ? /* @__PURE__ */ a(
132
- E,
142
+ u === "copy" || g ? /* @__PURE__ */ a(
143
+ M,
133
144
  {
134
145
  onInsert: g,
146
+ variant: u,
147
+ onCopy: y,
148
+ onError: b,
135
149
  card: {
136
150
  title: e("insert.title.gestationalAge"),
137
151
  highlight: e(
@@ -152,14 +166,14 @@ const R = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
152
166
  }
153
167
  }
154
168
  ) : null
155
- ] }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("gestationalAgeCalculator.empty") })
169
+ ] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("gestationalAgeCalculator.empty") })
156
170
  ]
157
171
  }
158
172
  );
159
173
  }
160
174
  );
161
- z.displayName = "GestationalAgeCalculator";
175
+ Y.displayName = "GestationalAgeCalculator";
162
176
  export {
163
- z as G
177
+ Y as G
164
178
  };
165
- //# sourceMappingURL=gestational-age-calculator-CsQ05qDy.js.map
179
+ //# sourceMappingURL=gestational-age-calculator-ZMSrzkRW.js.map