@alfadocs/ui-kit 0.43.0 → 0.45.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 (129) hide show
  1. package/dist/_chunks/{alia-sidebar-BpX4z_af.js → alia-sidebar-Be8FhKYd.js} +332 -237
  2. package/dist/_chunks/{autocomplete-DIgdhCGJ.js → autocomplete-CDqxB68B.js} +2 -2
  3. package/dist/_chunks/bmi-calculator-CQqXTVNL.js +258 -0
  4. package/dist/_chunks/{booking-CtLwaxkK.js → booking-DlDVuWMd.js} +2 -2
  5. package/dist/_chunks/{calculator-dialog-DdexHrTP.js → calculator-dialog-D-nfvteH.js} +2 -2
  6. package/dist/_chunks/{cycle-calculator-Dln-y1k_.js → cycle-calculator-KxA8dqDf.js} +73 -54
  7. package/dist/_chunks/dialog-BTpZV6It.js +223 -0
  8. package/dist/_chunks/{due-date-calculator-Cc4dRqTI.js → due-date-calculator-mFxpHLml.js} +73 -49
  9. package/dist/_chunks/{editable-currency-cell-renderer-9jqwDv5x.js → editable-currency-cell-renderer-BEBUQl9P.js} +2 -2
  10. package/dist/_chunks/{freemium-paywall-BLXESpH4.js → freemium-paywall-BYist2sJ.js} +2 -2
  11. package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +203 -0
  12. package/dist/_chunks/insert-result-C5ABnzDl.js +711 -0
  13. package/dist/_chunks/{marketplace-app-shell-Dc5cTIt8.js → marketplace-app-shell-Gfsf78ge.js} +2 -2
  14. package/dist/_chunks/{patient-search-DPe2ZYEL.js → patient-search-CocVcGJ3.js} +2 -2
  15. package/dist/_chunks/{payment-form-BzVsG6Ks.js → payment-form-DqEiEJRO.js} +247 -195
  16. package/dist/_chunks/{pdf-viewer-B6MC6VTx.js → pdf-viewer-CWEXTlwq.js} +2 -2
  17. package/dist/_chunks/{practice-results-CrLpEiiW.js → practice-results-DDi-kvaD.js} +2 -2
  18. package/dist/_chunks/{pregnancy-weight-gain-zZL5Ir2-.js → pregnancy-weight-gain-BtEHaSqy.js} +78 -56
  19. package/dist/_chunks/{search-bar-CP6wUJFY.js → search-bar-CvN_S0jW.js} +2 -2
  20. package/dist/_chunks/{search-input-C1C3jQpD.js → search-input-D3aMvi4l.js} +2 -2
  21. package/dist/_chunks/{sign-document-B-3k_0LO.js → sign-document-BCyLpFHJ.js} +2 -2
  22. package/dist/_chunks/{sign-in-with-alfadocs-button-DeHBFRNS.js → sign-in-with-alfadocs-button-CuYn_kKP.js} +2 -2
  23. package/dist/_chunks/{social-sign-in-button-X54ySJr1.js → social-sign-in-button-uJYLM366.js} +2 -2
  24. package/dist/_chunks/{spinner-CCByyvcb.js → spinner-OjQNn8oN.js} +7 -3
  25. package/dist/_chunks/{transcript-panel-CR7VY1uw.js → transcript-panel-B4HiC7ed.js} +2 -2
  26. package/dist/_chunks/{unit-converter-CuXCXJhK.js → unit-converter-u3CwNDpP.js} +96 -74
  27. package/dist/_chunks/{wallet-pay-button-DK4ESYge.js → wallet-pay-button-DuDPBlCO.js} +2 -2
  28. package/dist/agent-catalog.json +1 -1
  29. package/dist/components/_shared/banded-gauge.d.ts +193 -0
  30. package/dist/components/_shared/index.d.ts +1 -1
  31. package/dist/components/_shared/insert-result.d.ts +173 -10
  32. package/dist/components/autocomplete/index.js +1 -1
  33. package/dist/components/bmi-calculator/bmi-calculator.d.ts +6 -0
  34. package/dist/components/bmi-calculator/index.js +1 -1
  35. package/dist/components/booking/index.js +1 -1
  36. package/dist/components/calculator-dialog/index.js +1 -1
  37. package/dist/components/cycle-calculator/cycle-calculator.d.ts +6 -0
  38. package/dist/components/cycle-calculator/index.js +1 -1
  39. package/dist/components/data-table/index.js +1 -1
  40. package/dist/components/dialog/dialog.d.ts +1 -0
  41. package/dist/components/dialog/index.js +1 -1
  42. package/dist/components/due-date-calculator/due-date-calculator.d.ts +6 -0
  43. package/dist/components/due-date-calculator/index.js +1 -1
  44. package/dist/components/freemium-paywall/index.js +1 -1
  45. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +6 -0
  46. package/dist/components/gestational-age-calculator/index.js +1 -1
  47. package/dist/components/index.d.ts +1 -1
  48. package/dist/components/patient-search/index.js +1 -1
  49. package/dist/components/payment-form/index.js +1 -1
  50. package/dist/components/payment-form/payment-form.d.ts +24 -2
  51. package/dist/components/pdf-viewer/index.js +1 -1
  52. package/dist/components/practice-results/index.js +1 -1
  53. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  54. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +6 -0
  55. package/dist/components/search-bar/index.js +1 -1
  56. package/dist/components/search-input/index.js +1 -1
  57. package/dist/components/sign-document/index.js +1 -1
  58. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  59. package/dist/components/social-sign-in-button/index.js +1 -1
  60. package/dist/components/spinner/index.js +1 -1
  61. package/dist/components/spinner/spinner.d.ts +2 -2
  62. package/dist/components/transcript-panel/index.js +1 -1
  63. package/dist/components/unit-converter/index.js +1 -1
  64. package/dist/components/unit-converter/unit-converter.d.ts +6 -0
  65. package/dist/components/wallet-pay-button/index.js +1 -1
  66. package/dist/i18n/locales/ar.d.ts +1 -1
  67. package/dist/i18n/locales/ar.js +1 -1
  68. package/dist/i18n/locales/de.d.ts +1 -1
  69. package/dist/i18n/locales/de.js +1 -1
  70. package/dist/i18n/locales/el.d.ts +1 -1
  71. package/dist/i18n/locales/el.js +1 -1
  72. package/dist/i18n/locales/en.d.ts +1 -1
  73. package/dist/i18n/locales/en.js +1 -1
  74. package/dist/i18n/locales/es.d.ts +1 -1
  75. package/dist/i18n/locales/es.js +1 -1
  76. package/dist/i18n/locales/fr.d.ts +1 -1
  77. package/dist/i18n/locales/fr.js +1 -1
  78. package/dist/i18n/locales/hi.d.ts +1 -1
  79. package/dist/i18n/locales/hi.js +1 -1
  80. package/dist/i18n/locales/it.d.ts +1 -1
  81. package/dist/i18n/locales/it.js +1 -1
  82. package/dist/i18n/locales/ja.d.ts +1 -1
  83. package/dist/i18n/locales/ja.js +1 -1
  84. package/dist/i18n/locales/nl.d.ts +1 -1
  85. package/dist/i18n/locales/nl.js +1 -1
  86. package/dist/i18n/locales/pl.d.ts +1 -1
  87. package/dist/i18n/locales/pl.js +1 -1
  88. package/dist/i18n/locales/pt.d.ts +1 -1
  89. package/dist/i18n/locales/pt.js +1 -1
  90. package/dist/i18n/locales/ro.d.ts +1 -1
  91. package/dist/i18n/locales/ro.js +1 -1
  92. package/dist/i18n/locales/ru.d.ts +1 -1
  93. package/dist/i18n/locales/ru.js +1 -1
  94. package/dist/i18n/locales/sq.d.ts +1 -1
  95. package/dist/i18n/locales/sq.js +1 -1
  96. package/dist/i18n/locales/sv.d.ts +1 -1
  97. package/dist/i18n/locales/sv.js +1 -1
  98. package/dist/i18n/locales/tr.d.ts +1 -1
  99. package/dist/i18n/locales/tr.js +1 -1
  100. package/dist/i18n/locales/zh.d.ts +1 -1
  101. package/dist/i18n/locales/zh.js +1 -1
  102. package/dist/index.js +497 -496
  103. package/dist/locales/ar.json +1 -1
  104. package/dist/locales/de.json +1 -1
  105. package/dist/locales/el.json +1 -1
  106. package/dist/locales/en.json +1 -1
  107. package/dist/locales/es.json +1 -1
  108. package/dist/locales/fr.json +1 -1
  109. package/dist/locales/hi.json +1 -1
  110. package/dist/locales/it.json +1 -1
  111. package/dist/locales/ja.json +1 -1
  112. package/dist/locales/nl.json +1 -1
  113. package/dist/locales/pl.json +1 -1
  114. package/dist/locales/pt.json +1 -1
  115. package/dist/locales/ro.json +1 -1
  116. package/dist/locales/ru.json +1 -1
  117. package/dist/locales/sq.json +1 -1
  118. package/dist/locales/sv.json +1 -1
  119. package/dist/locales/tr.json +1 -1
  120. package/dist/locales/zh.json +1 -1
  121. package/dist/patterns/alia-assistant/alia-types.d.ts +20 -0
  122. package/dist/patterns/alia-assistant/index.js +1 -1
  123. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  124. package/dist/tokens.css +1 -1
  125. package/package.json +1 -1
  126. package/dist/_chunks/bmi-calculator-DuVSFDuw.js +0 -259
  127. package/dist/_chunks/dialog-DOYgd75U.js +0 -224
  128. package/dist/_chunks/gestational-age-calculator-ZMSrzkRW.js +0 -179
  129. package/dist/_chunks/insert-result-DisOY2G-.js +0 -243
@@ -0,0 +1,223 @@
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { useRef as j, useEffect as O, useMemo as T, forwardRef as i, useContext as x, createContext as B } from "react";
3
+ import * as s from "@radix-ui/react-dialog";
4
+ import { c as k } from "./index-D2ZczOXr.js";
5
+ import { useTranslation as S } from "react-i18next";
6
+ import { u as w } from "./use-controllable-state-BiY4xTzM.js";
7
+ import { u as A } from "./registry-nPAVE19X.js";
8
+ import { X as E } from "./x-CCcI3eJp.js";
9
+ const H = {
10
+ id: "dialog",
11
+ capabilities: ["open", "close", "dismiss"],
12
+ state: {
13
+ isOpen: {
14
+ type: "boolean",
15
+ description: "True when the dialog is currently open.",
16
+ read: (e) => e.getIsOpen()
17
+ }
18
+ },
19
+ actions: {
20
+ open: {
21
+ safety: "read",
22
+ description: "Open the dialog.",
23
+ invoke: (e) => {
24
+ e.open();
25
+ }
26
+ },
27
+ close: {
28
+ safety: "write",
29
+ description: "Close the dialog. Reversible by reopening.",
30
+ invoke: (e) => {
31
+ e.close();
32
+ }
33
+ },
34
+ dismiss: {
35
+ safety: "destructive",
36
+ description: "Dismiss the dialog. Loses any in-progress input that has not been committed.",
37
+ invoke: (e) => {
38
+ e.close();
39
+ }
40
+ }
41
+ },
42
+ domHooks: {
43
+ root: { attr: "data-component", value: "dialog" },
44
+ instanceId: {
45
+ attr: "data-component-id",
46
+ sourceProp: "id",
47
+ description: "Sourced from the id prop on Dialog.Root."
48
+ }
49
+ }
50
+ }, I = [
51
+ "ds-dialog__backdrop",
52
+ "ds:backdrop-blur-sm",
53
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0",
54
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0",
55
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
56
+ ].join(" "), z = [
57
+ "ds:focus-visible:outline-none",
58
+ "ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in-0 ds:data-[state=open]:zoom-in-95",
59
+ "ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out-0 ds:data-[state=closed]:zoom-out-95",
60
+ "ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
61
+ ].join(" "), F = k(`ds-dialog ds-dialog__surface ${z}`, {
62
+ variants: {
63
+ size: {
64
+ sm: "ds-dialog__surface--sm",
65
+ md: "",
66
+ lg: "ds-dialog__surface--lg",
67
+ fullscreen: "ds-dialog__surface--fullscreen"
68
+ }
69
+ },
70
+ defaultVariants: { size: "md" }
71
+ }), f = B(void 0), g = ({
72
+ children: e,
73
+ id: o,
74
+ open: a,
75
+ defaultOpen: r,
76
+ onOpenChange: c,
77
+ ...m
78
+ }) => {
79
+ const [p, n] = w({
80
+ value: a,
81
+ defaultValue: r ?? !1,
82
+ onChange: c
83
+ }), d = p ?? !1, l = j(d);
84
+ O(() => {
85
+ l.current = d;
86
+ }, [d]);
87
+ const R = T(
88
+ () => ({
89
+ getIsOpen: () => l.current,
90
+ open: () => n(!0),
91
+ close: () => n(!1)
92
+ }),
93
+ [n]
94
+ );
95
+ return A(H, R, o), /* @__PURE__ */ t(f.Provider, { value: o, children: /* @__PURE__ */ t(s.Root, { open: d, onOpenChange: n, ...m, children: e }) });
96
+ };
97
+ g.displayName = "Dialog.Root";
98
+ const D = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Trigger, { ref: a, ...o, children: e }));
99
+ D.displayName = "Dialog.Trigger";
100
+ const y = i(({ children: e, ...o }, a) => /* @__PURE__ */ t(s.Close, { ref: a, ...o, children: e }));
101
+ y.displayName = "Dialog.Close";
102
+ const v = i(
103
+ ({
104
+ size: e = "md",
105
+ variant: o = "default",
106
+ hideCloseButton: a = !0,
107
+ className: r,
108
+ children: c,
109
+ ...m
110
+ }, p) => {
111
+ const { t: n } = S(), d = x(f), l = o === "alert" ? { role: "alertdialog" } : {};
112
+ return /* @__PURE__ */ u(s.Portal, { children: [
113
+ /* @__PURE__ */ t(
114
+ s.Overlay,
115
+ {
116
+ "data-component": "dialog-overlay",
117
+ className: I
118
+ }
119
+ ),
120
+ /* @__PURE__ */ u(
121
+ s.Content,
122
+ {
123
+ ref: p,
124
+ ...l,
125
+ "data-component": "dialog",
126
+ "data-component-id": d,
127
+ className: F({ size: e, className: r }),
128
+ ...m,
129
+ children: [
130
+ c,
131
+ !a && // The close is a plain button carrying the `ds-dialog__close`
132
+ // contract class — the SAME class a vanilla host renders. The CSS
133
+ // (src/styles.css) owns its position, sizing, glyph size, hover
134
+ // wash, and focus ring from tokens, so the React and non-React
135
+ // close buttons are identical and can't drift.
136
+ /* @__PURE__ */ t(
137
+ s.Close,
138
+ {
139
+ type: "button",
140
+ className: "ds-dialog__close",
141
+ "aria-label": n("common.close", "Close"),
142
+ children: /* @__PURE__ */ t(E, { "aria-hidden": "true" })
143
+ }
144
+ )
145
+ ]
146
+ }
147
+ )
148
+ ] });
149
+ }
150
+ );
151
+ v.displayName = "Dialog.Content";
152
+ const C = i(
153
+ ({ className: e, ...o }, a) => /* @__PURE__ */ t(
154
+ "div",
155
+ {
156
+ ref: a,
157
+ className: ["ds-dialog__header", e].filter(Boolean).join(" "),
158
+ ...o
159
+ }
160
+ )
161
+ );
162
+ C.displayName = "Dialog.Header";
163
+ const _ = i(
164
+ ({ className: e, ...o }, a) => /* @__PURE__ */ t(
165
+ "div",
166
+ {
167
+ ref: a,
168
+ className: ["ds-dialog__body", e].filter(Boolean).join(" "),
169
+ ...o
170
+ }
171
+ )
172
+ );
173
+ _.displayName = "Dialog.Body";
174
+ const b = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
175
+ s.Title,
176
+ {
177
+ ref: a,
178
+ className: ["ds-dialog__title type-title-card ds:break-words", e].filter(Boolean).join(" "),
179
+ ...o
180
+ }
181
+ ));
182
+ b.displayName = "Dialog.Title";
183
+ const h = i(({ className: e, ...o }, a) => /* @__PURE__ */ t(
184
+ s.Description,
185
+ {
186
+ ref: a,
187
+ className: ["type-body-sm ds:text-[var(--muted-foreground)]", e].filter(Boolean).join(" "),
188
+ ...o
189
+ }
190
+ ));
191
+ h.displayName = "Dialog.Description";
192
+ const N = i(
193
+ ({ className: e, divider: o = !1, ...a }, r) => /* @__PURE__ */ t(
194
+ "div",
195
+ {
196
+ ref: r,
197
+ className: [
198
+ "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-sm)]",
199
+ "ds:mt-[var(--spacing-md)]",
200
+ o && "ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-md)]",
201
+ e
202
+ ].filter(Boolean).join(" "),
203
+ ...a
204
+ }
205
+ )
206
+ );
207
+ N.displayName = "Dialog.Footer";
208
+ const $ = Object.assign(g, {
209
+ Root: g,
210
+ Trigger: D,
211
+ Content: v,
212
+ Header: C,
213
+ Title: b,
214
+ Description: h,
215
+ Body: _,
216
+ Footer: N,
217
+ Close: y
218
+ });
219
+ export {
220
+ $ as D,
221
+ H as d
222
+ };
223
+ //# sourceMappingURL=dialog-BTpZV6It.js.map
@@ -1,17 +1,17 @@
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 I } from "react";
3
- import { c as S } from "./index-D2ZczOXr.js";
4
- import { useTranslation as z } from "react-i18next";
2
+ import { forwardRef as F, useState as c, useMemo as p, useEffect as H } from "react";
3
+ import { c as G } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as R } from "react-i18next";
5
5
  import { R as s } from "./radio-TWf9Q-mp.js";
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";
6
+ import { R as v } from "./radio-group-CLjK-SlK.js";
7
+ import { F as b } from "./form-field-BOm9hK35.js";
8
+ import { D as S } from "./date-picker-Bq7xhMA-.js";
9
9
  import { N as M } from "./number-input-Dj5L3pXK.js";
10
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)]", {
11
+ import { B as z } from "./badge-zsf5i5bH.js";
12
+ import { I as V } from "./insert-result-C5ABnzDl.js";
13
+ import { D as y, c as j } from "./gestation-mWF4AXea.js";
14
+ const K = G("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
15
15
  variants: {
16
16
  width: { full: "ds:w-full", auto: "ds:inline-flex" }
17
17
  },
@@ -22,55 +22,66 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
22
22
  second: "success",
23
23
  third: "warning",
24
24
  postterm: "error"
25
- }, K = {
25
+ }, O = {
26
+ preconception: "--muted",
27
+ first: "--info",
28
+ second: "--success",
29
+ third: "--warning-readable",
30
+ postterm: "--destructive"
31
+ };
32
+ function P(n) {
33
+ return O[n];
34
+ }
35
+ const U = {
26
36
  lmp: "dueDateCalculator.lmpDate",
27
37
  conception: "dueDateCalculator.conceptionDate",
28
38
  ivf: "dueDateCalculator.transferDate"
29
- }, P = _(
39
+ }, q = F(
30
40
  ({
31
- defaultMethod: y = "lmp",
41
+ defaultMethod: n = "lmp",
32
42
  onResultChange: d,
33
- onInsert: p,
43
+ onInsert: f,
34
44
  insertVariant: D = "insert",
35
45
  onCopy: x,
36
46
  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(
47
+ insertBrand: L,
48
+ id: E,
49
+ width: w,
50
+ className: A
51
+ }, T) => {
52
+ const { t: e, i18n: h } = R(), [r, k] = c(n), [o, I] = c(void 0), [u, _] = c(
53
+ y
54
+ ), [m, $] = c(5), t = p(() => o ? j(
44
55
  {
45
56
  method: r,
46
57
  date: o,
47
- cycleLength: u ?? b,
48
- embryoAge: n
58
+ cycleLength: u ?? y,
59
+ embryoAge: m
49
60
  },
50
61
  /* @__PURE__ */ new Date()
51
- ) : null, [r, o, u, n]), c = g(
52
- () => new Intl.DateTimeFormat(f.language, { dateStyle: "long" }),
53
- [f.language]
62
+ ) : null, [r, o, u, m]), i = p(
63
+ () => new Intl.DateTimeFormat(h.language, { dateStyle: "long" }),
64
+ [h.language]
54
65
  );
55
- I(() => {
66
+ H(() => {
56
67
  d == null || d(t);
57
68
  }, [t, d]);
58
- const k = g(() => /* @__PURE__ */ new Date(), []);
69
+ const B = p(() => /* @__PURE__ */ new Date(), []);
59
70
  return /* @__PURE__ */ l(
60
71
  "div",
61
72
  {
62
- ref: E,
73
+ ref: T,
63
74
  "data-component": "due-date-calculator",
64
- "data-component-id": L,
65
- className: H({ width: A, className: w }),
75
+ "data-component-id": E,
76
+ className: K({ width: w, className: A }),
66
77
  children: [
67
78
  /* @__PURE__ */ l(
68
- h,
79
+ v,
69
80
  {
70
81
  label: e("dueDateCalculator.method.label"),
71
82
  variant: "horizontal",
72
83
  value: r,
73
- onValueChange: (m) => T(m),
84
+ onValueChange: (g) => k(g),
74
85
  children: [
75
86
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.method.lmp"), value: "lmp" }),
76
87
  /* @__PURE__ */ a(
@@ -85,9 +96,9 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
85
96
  }
86
97
  ),
87
98
  /* @__PURE__ */ l("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
88
- /* @__PURE__ */ a(v, { label: e(K[r]), children: /* @__PURE__ */ a(G, { value: o, onChange: $, maxDate: k }) }),
99
+ /* @__PURE__ */ a(b, { label: e(U[r]), children: /* @__PURE__ */ a(S, { value: o, onChange: I, maxDate: B }) }),
89
100
  r === "lmp" && /* @__PURE__ */ a(
90
- v,
101
+ b,
91
102
  {
92
103
  label: e("dueDateCalculator.cycleLength"),
93
104
  description: e("dueDateCalculator.cycleLengthHint"),
@@ -98,18 +109,18 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
98
109
  min: 20,
99
110
  max: 45,
100
111
  value: u,
101
- onChange: B
112
+ onChange: _
102
113
  }
103
114
  )
104
115
  }
105
116
  ),
106
117
  r === "ivf" && /* @__PURE__ */ l(
107
- h,
118
+ v,
108
119
  {
109
120
  label: e("dueDateCalculator.embryoAge"),
110
121
  variant: "horizontal",
111
- value: String(n),
112
- onValueChange: (m) => F(Number(m)),
122
+ value: String(m),
123
+ onValueChange: (g) => $(Number(g)),
113
124
  children: [
114
125
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.day3"), value: "3" }),
115
126
  /* @__PURE__ */ a(s, { label: e("dueDateCalculator.day5"), value: "5" })
@@ -117,7 +128,7 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
117
128
  }
118
129
  )
119
130
  ] }),
120
- /* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: t ? `${e("dueDateCalculator.result.dueDateLabel")}: ${c.format(
131
+ /* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: t ? `${e("dueDateCalculator.result.dueDateLabel")}: ${i.format(
121
132
  t.dueDate
122
133
  )}. ${e("dueDateCalculator.result.trimesterLabel")}: ${e(
123
134
  `dueDateCalculator.trimester.${t.trimester}`
@@ -127,7 +138,7 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
127
138
  /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
128
139
  /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.trimesterLabel") }),
129
140
  /* @__PURE__ */ a("dd", { children: /* @__PURE__ */ a(
130
- R,
141
+ z,
131
142
  {
132
143
  variant: Y[t.trimester],
133
144
  size: "lg",
@@ -144,25 +155,36 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
144
155
  ] }),
145
156
  /* @__PURE__ */ l("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
146
157
  /* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.dueDateLabel") }),
147
- /* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: c.format(t.dueDate) })
158
+ /* @__PURE__ */ a("dd", { className: "type-metric ds:text-foreground", children: i.format(t.dueDate) })
148
159
  ] })
149
160
  ] }),
150
- D === "copy" || p ? /* @__PURE__ */ a(
161
+ D === "copy" || f ? /* @__PURE__ */ a(
151
162
  V,
152
163
  {
153
164
  variant: D,
154
- onInsert: p,
165
+ onInsert: f,
155
166
  onCopy: x,
156
167
  onError: N,
157
168
  card: {
158
169
  title: e("insert.title.dueDate"),
159
- highlight: c.format(t.dueDate),
170
+ icon: "calendar-heart",
171
+ highlight: i.format(t.dueDate),
172
+ // Chip tinted with the trimester's semantic token so the
173
+ // inserted PNG carries the same clinical-stage colour as
174
+ // the on-screen trimester badge — with the contrast-safe
175
+ // orange override for the `--warning` third trimester.
176
+ highlightToken: P(t.trimester),
177
+ brand: L,
160
178
  fields: [
161
179
  {
180
+ // The estimated date of delivery → calendar glyph.
181
+ icon: "calendar",
162
182
  label: e("dueDateCalculator.result.dueDateLabel"),
163
- value: c.format(t.dueDate)
183
+ value: i.format(t.dueDate)
164
184
  },
165
185
  {
186
+ // Gestational age is an elapsed duration → clock glyph.
187
+ icon: "clock",
166
188
  label: e("dueDateCalculator.result.gestationLabel"),
167
189
  value: t.gestationalAge ? e("dueDateCalculator.result.gestation", {
168
190
  weeks: t.gestationalAge.weeks,
@@ -170,6 +192,8 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
170
192
  }) : "—"
171
193
  },
172
194
  {
195
+ // Trimester is a clinical-stage classification → tag.
196
+ icon: "tag",
173
197
  label: e("dueDateCalculator.result.trimesterLabel"),
174
198
  value: e(
175
199
  `dueDateCalculator.trimester.${t.trimester}`
@@ -185,8 +209,8 @@ const H = S("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
185
209
  );
186
210
  }
187
211
  );
188
- P.displayName = "DueDateCalculator";
212
+ q.displayName = "DueDateCalculator";
189
213
  export {
190
- P as D
214
+ q as D
191
215
  };
192
- //# sourceMappingURL=due-date-calculator-Cc4dRqTI.js.map
216
+ //# sourceMappingURL=due-date-calculator-mFxpHLml.js.map
@@ -28,7 +28,7 @@ import { u as At } from "./use-theme-C2dHKUAN.js";
28
28
  import { u as Pt } from "./registry-nPAVE19X.js";
29
29
  import { D as ze } from "./date-range-picker-DcXuI9y7.js";
30
30
  import { M as Ot } from "./multi-select-DOLO3K_z.js";
31
- import { A as Ae } from "./autocomplete-DIgdhCGJ.js";
31
+ import { A as Ae } from "./autocomplete-CDqxB68B.js";
32
32
  import { N as ee } from "./number-input-Dj5L3pXK.js";
33
33
  import { B as Mt } from "./badge-zsf5i5bH.js";
34
34
  import { A as Pe } from "./avatar-BNQNhoyL.js";
@@ -2332,4 +2332,4 @@ export {
2332
2332
  Be as q,
2333
2333
  xn as u
2334
2334
  };
2335
- //# sourceMappingURL=editable-currency-cell-renderer-9jqwDv5x.js.map
2335
+ //# sourceMappingURL=editable-currency-cell-renderer-BEBUQl9P.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-BzVsG6Ks.js";
11
+ import { f as $ } from "./payment-form-DqEiEJRO.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-BLXESpH4.js.map
268
+ //# sourceMappingURL=freemium-paywall-BYist2sJ.js.map