@alfadocs/ui-kit 1.55.0 → 1.56.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 (169) hide show
  1. package/dist/_chunks/{alia-sidebar-DS0b54Mv.js → alia-sidebar-DOei4Iyu.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-Dtw5Hpg4.js → anamnesis-summary-rows-CQ-XGr0T.js} +3 -3
  3. package/dist/_chunks/{balance-badge-cell-zP-iN-Pd.js → balance-badge-cell-DmDcXw0c.js} +3 -3
  4. package/dist/_chunks/{bmi-calculator-DTZhRhXe.js → bmi-calculator-C0UTxB7R.js} +2 -2
  5. package/dist/_chunks/{booking-uZO10TLK.js → booking-WyNGKPE2.js} +2 -2
  6. package/dist/_chunks/{breadcrumb-xgVpPH2H.js → breadcrumb-Boan-5n8.js} +39 -39
  7. package/dist/_chunks/{calculator-dialog-BRjZMWuE.js → calculator-dialog-pCPWta7h.js} +2 -2
  8. package/dist/_chunks/{calendar-workspace-DVajSkKA.js → calendar-workspace-Du2ryaI-.js} +8 -8
  9. package/dist/_chunks/{care-plan-header-BeMYMiI7.js → care-plan-header-DUX_SVvF.js} +2 -2
  10. package/dist/_chunks/chart-HsF1KHbx.js +909 -0
  11. package/dist/_chunks/{contact-profile-card-C5DbP_X3.js → contact-profile-card-Ci8lBQ6a.js} +2 -2
  12. package/dist/_chunks/dashboard-grid-DfEY2qci.js +844 -0
  13. package/dist/_chunks/{data-table-C6T31E33.js → data-table-D8fuhqO1.js} +1 -1
  14. package/dist/_chunks/{date-range-picker-BOvHwWO5.js → date-range-picker-CtUOI38x.js} +188 -182
  15. package/dist/_chunks/{dependent-selector-Bet3XAFj.js → dependent-selector-DgaAQc-c.js} +91 -86
  16. package/dist/_chunks/{dialog-D52AI4nF.js → dialog-CUzbnKLw.js} +86 -69
  17. package/dist/_chunks/{due-date-calculator-DXDJbUzo.js → due-date-calculator-CSjklbyw.js} +2 -2
  18. package/dist/_chunks/{file-manager-dIJQUZvq.js → file-manager-Cc_uO8r2.js} +4 -4
  19. package/dist/_chunks/{freemium-paywall-B6ojVXq7.js → freemium-paywall-DIKuhX8b.js} +90 -86
  20. package/dist/_chunks/{gestational-age-calculator-BfGpt3du.js → gestational-age-calculator-DqVeJke2.js} +2 -2
  21. package/dist/_chunks/{heatmap-BARGZZt2.js → heatmap-Gf9r7Tn1.js} +2 -2
  22. package/dist/_chunks/{help-me-write-templates-B7L3zGsE.js → help-me-write-templates-fV-Apf72.js} +2 -2
  23. package/dist/_chunks/{key-value-pair-Ax8IJr1M.js → key-value-pair-BNNITp6S.js} +25 -19
  24. package/dist/_chunks/{kit-extensions-C9-v8Dih.js → kit-extensions-Byfxy6sy.js} +4 -4
  25. package/dist/_chunks/{link-cell-renderer-DlBVPMTi.js → link-cell-renderer-TeJNvymP.js} +2 -2
  26. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +65 -0
  27. package/dist/_chunks/{notes-panel-I8ntrrUW.js → notes-panel-DceRhthG.js} +3 -3
  28. package/dist/_chunks/{patient-summary-card-3dspc2tR.js → patient-summary-card-9nQWTQf6.js} +7 -3
  29. package/dist/_chunks/{payment-automation-upsell-DEUfM7EU.js → payment-automation-upsell-DiHovmUL.js} +2 -2
  30. package/dist/_chunks/{payment-request-card-DAGqh9Yx.js → payment-request-card-CwDpwXUC.js} +2 -2
  31. package/dist/_chunks/{periodontal-chart-BqwLxy2m.js → periodontal-chart-DD5C0M3l.js} +2 -2
  32. package/dist/_chunks/{periodontal-chart-card-CWZ1YM1h.js → periodontal-chart-card-CxdXvsPU.js} +2 -2
  33. package/dist/_chunks/{periodontal-diagnosis-C9IuvLId.js → periodontal-diagnosis-D-PJv7KS.js} +2 -2
  34. package/dist/_chunks/{position-grid-D2D5_Tze.js → position-grid-CBB88EaH.js} +38 -36
  35. package/dist/_chunks/{practice-results-DxOgbPDy.js → practice-results-Dhbo-fc_.js} +2 -2
  36. package/dist/_chunks/{pregnancy-dating-R3q5n1Wh.js → pregnancy-dating-Bfu0Cq4H.js} +2 -2
  37. package/dist/_chunks/{pregnancy-weight-gain-DwmNklDU.js → pregnancy-weight-gain-CUUrBTBo.js} +2 -2
  38. package/dist/_chunks/{public-header.agent-BWusjxY8.js → public-header.agent-pr2hyiND.js} +2 -2
  39. package/dist/_chunks/{radio-group-BT97ty7o.js → radio-group-DicxWJXP.js} +111 -106
  40. package/dist/_chunks/{radiograph-panel.agent-BA90I3Mu.js → radiograph-panel.agent-DkUokbEa.js} +3 -3
  41. package/dist/_chunks/{rich-text-editor-Blp4smUr.js → rich-text-editor-CkFfmA3v.js} +2 -2
  42. package/dist/_chunks/{sheet-CNFW8mYZ.js → sheet-C7SwIxwB.js} +95 -79
  43. package/dist/_chunks/{signature-request-rgMsgo-C.js → signature-request-DhbpB9N9.js} +2 -2
  44. package/dist/_chunks/{stat-51CDL4au.js → stat-DmjGfXND.js} +117 -108
  45. package/dist/_chunks/{stepper-accordion-D7lnBGh2.js → stepper-accordion-DDTSOUHc.js} +17 -6
  46. package/dist/_chunks/{task-editor-Ctxsa1BY.js → task-editor-ByyRu29Y.js} +3 -3
  47. package/dist/_chunks/{use-appointment-details-read-DinTrRIW.js → use-appointment-details-read-JsDM48tf.js} +2 -2
  48. package/dist/_chunks/use-select-on-arrow-Cr4iBuW5.js +26 -0
  49. package/dist/_chunks/{widget-picker-D8RiWrJd.js → widget-picker-DXYBMTfe.js} +2 -2
  50. package/dist/_chunks/{workflow-map-D3mezmGB.js → workflow-map-Demlpy39.js} +2 -2
  51. package/dist/agent-catalog.json +27 -10
  52. package/dist/agent-i18n/en.json +8 -7
  53. package/dist/components/_shared/non-modal-tab-exit.d.ts +8 -0
  54. package/dist/components/_shared/use-apex-chart-semantics.d.ts +6 -0
  55. package/dist/components/_shared/use-select-on-arrow.d.ts +20 -0
  56. package/dist/components/appointment-details-panel/index.js +1 -1
  57. package/dist/components/bmi-calculator/index.js +1 -1
  58. package/dist/components/booking/index.js +1 -1
  59. package/dist/components/breadcrumb/index.js +1 -1
  60. package/dist/components/calculator-dialog/index.js +1 -1
  61. package/dist/components/care-plan-header/index.js +1 -1
  62. package/dist/components/chart/chart.d.ts +10 -5
  63. package/dist/components/chart/index.js +1 -1
  64. package/dist/components/contact-profile-card/index.js +1 -1
  65. package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +22 -0
  66. package/dist/components/dashboard-grid/dashboard-grid.d.ts +48 -4
  67. package/dist/components/dashboard-grid/index.js +1 -1
  68. package/dist/components/data-table/index.js +2 -2
  69. package/dist/components/date-range-picker/index.js +1 -1
  70. package/dist/components/dependent-selector/index.js +1 -1
  71. package/dist/components/dialog/dialog.d.ts +2 -2
  72. package/dist/components/dialog/index.js +1 -1
  73. package/dist/components/due-date-calculator/index.js +1 -1
  74. package/dist/components/file-manager/index.js +1 -1
  75. package/dist/components/freemium-paywall/index.js +1 -1
  76. package/dist/components/gestational-age-calculator/index.js +1 -1
  77. package/dist/components/heatmap/index.js +1 -1
  78. package/dist/components/key-value-pair/index.js +1 -1
  79. package/dist/components/notes-panel/index.js +1 -1
  80. package/dist/components/patient-summary-card/index.js +1 -1
  81. package/dist/components/patient-table/index.js +1 -1
  82. package/dist/components/payment-card/index.js +1 -1
  83. package/dist/components/periodontal-chart/index.js +1 -1
  84. package/dist/components/periodontal-chart-card/index.js +1 -1
  85. package/dist/components/periodontal-diagnosis/index.js +1 -1
  86. package/dist/components/position-grid/index.js +1 -1
  87. package/dist/components/practice-results/index.js +1 -1
  88. package/dist/components/pregnancy-dating/index.js +1 -1
  89. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  90. package/dist/components/public-header/index.js +1 -1
  91. package/dist/components/radio-group/index.js +1 -1
  92. package/dist/components/radiograph-panel/index.js +1 -1
  93. package/dist/components/rich-text-editor/index.js +2 -2
  94. package/dist/components/sheet/index.js +1 -1
  95. package/dist/components/sheet/sheet.d.ts +2 -2
  96. package/dist/components/stat/index.d.ts +1 -1
  97. package/dist/components/stat/index.js +1 -1
  98. package/dist/components/stat/stat.d.ts +9 -0
  99. package/dist/components/stepper-accordion/index.js +1 -1
  100. package/dist/components/task-editor/index.js +1 -1
  101. package/dist/components/widget-picker/index.js +1 -1
  102. package/dist/components/workflow/index.js +1 -1
  103. package/dist/host-legacy.css +13 -2
  104. package/dist/i18n/locales/ar.d.ts +3 -2
  105. package/dist/i18n/locales/ar.js +5 -4
  106. package/dist/i18n/locales/de.d.ts +3 -2
  107. package/dist/i18n/locales/de.js +5 -4
  108. package/dist/i18n/locales/el.d.ts +3 -2
  109. package/dist/i18n/locales/el.js +5 -4
  110. package/dist/i18n/locales/en.d.ts +3 -2
  111. package/dist/i18n/locales/en.js +5 -4
  112. package/dist/i18n/locales/es.d.ts +3 -2
  113. package/dist/i18n/locales/es.js +5 -4
  114. package/dist/i18n/locales/fr.d.ts +3 -2
  115. package/dist/i18n/locales/fr.js +5 -4
  116. package/dist/i18n/locales/hi.d.ts +3 -2
  117. package/dist/i18n/locales/hi.js +5 -4
  118. package/dist/i18n/locales/it.d.ts +3 -2
  119. package/dist/i18n/locales/it.js +5 -4
  120. package/dist/i18n/locales/ja.d.ts +3 -2
  121. package/dist/i18n/locales/ja.js +5 -4
  122. package/dist/i18n/locales/nl.d.ts +3 -2
  123. package/dist/i18n/locales/nl.js +5 -4
  124. package/dist/i18n/locales/pl.d.ts +3 -2
  125. package/dist/i18n/locales/pl.js +5 -4
  126. package/dist/i18n/locales/pt.d.ts +3 -2
  127. package/dist/i18n/locales/pt.js +5 -4
  128. package/dist/i18n/locales/ro.d.ts +3 -2
  129. package/dist/i18n/locales/ro.js +5 -4
  130. package/dist/i18n/locales/ru.d.ts +3 -2
  131. package/dist/i18n/locales/ru.js +5 -4
  132. package/dist/i18n/locales/sq.d.ts +3 -2
  133. package/dist/i18n/locales/sq.js +5 -4
  134. package/dist/i18n/locales/sv.d.ts +3 -2
  135. package/dist/i18n/locales/sv.js +5 -4
  136. package/dist/i18n/locales/tr.d.ts +3 -2
  137. package/dist/i18n/locales/tr.js +5 -4
  138. package/dist/i18n/locales/zh.d.ts +3 -2
  139. package/dist/i18n/locales/zh.js +5 -4
  140. package/dist/index.js +48 -48
  141. package/dist/locales/ar.json +5 -4
  142. package/dist/locales/de.json +5 -4
  143. package/dist/locales/el.json +5 -4
  144. package/dist/locales/en.json +5 -4
  145. package/dist/locales/es.json +5 -4
  146. package/dist/locales/fr.json +5 -4
  147. package/dist/locales/hi.json +5 -4
  148. package/dist/locales/it.json +5 -4
  149. package/dist/locales/ja.json +5 -4
  150. package/dist/locales/nl.json +5 -4
  151. package/dist/locales/pl.json +5 -4
  152. package/dist/locales/pt.json +5 -4
  153. package/dist/locales/ro.json +5 -4
  154. package/dist/locales/ru.json +5 -4
  155. package/dist/locales/sq.json +5 -4
  156. package/dist/locales/sv.json +5 -4
  157. package/dist/locales/tr.json +5 -4
  158. package/dist/locales/zh.json +5 -4
  159. package/dist/patterns/alia-assistant/index.js +1 -1
  160. package/dist/patterns/anamnesis/index.js +1 -1
  161. package/dist/patterns/calendar/index.js +1 -1
  162. package/dist/patterns/help-me-write-templates/help-me-write-templates.d.ts +2 -2
  163. package/dist/patterns/help-me-write-templates/index.js +1 -1
  164. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  165. package/dist/patterns/signature-request/index.js +1 -1
  166. package/dist/tokens.css +13 -2
  167. package/package.json +1 -1
  168. package/dist/_chunks/chart-C2RBJERE.js +0 -705
  169. package/dist/_chunks/dashboard-grid-SAGoyCtL.js +0 -691
@@ -6,7 +6,7 @@ import { B as y } from "./benefit-card-BWBClvdF.js";
6
6
  import { B as C } from "./button-Bn16lcFM.js";
7
7
  import { C as d } from "./card-DMO2nkt4.js";
8
8
  import { L as n } from "./list-RRN2TJ_7.js";
9
- import { S as U } from "./stat-51CDL4au.js";
9
+ import { S as U } from "./stat-DmjGfXND.js";
10
10
  import { C as f } from "./credit-card-D9XZsHGA.js";
11
11
  import { R as _ } from "./receipt-euro-B1cLM_TN.js";
12
12
  import { C as b } from "./circle-check-BN6rz4NV.js";
@@ -283,4 +283,4 @@ Y.displayName = "PaymentAutomationUpsell";
283
283
  export {
284
284
  Y as P
285
285
  };
286
- //# sourceMappingURL=payment-automation-upsell-DEUfM7EU.js.map
286
+ //# sourceMappingURL=payment-automation-upsell-DiHovmUL.js.map
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
5
5
  import { B as O } from "./badge-hnBt8o7n.js";
6
6
  import { C as D } from "./card-DMO2nkt4.js";
7
7
  import { D as d } from "./description-list-DkLeHiew.js";
8
- import { K as Y, a as H } from "./key-value-pair-Ax8IJr1M.js";
8
+ import { K as Y, a as H } from "./key-value-pair-BNNITp6S.js";
9
9
  import { T as j, A as ae } from "./transaction-chip-CohY6sTA.js";
10
10
  import { u as W } from "./registry-DvAUVLHh.js";
11
11
  import { H as te } from "./hash-CSQ9SChR.js";
@@ -439,4 +439,4 @@ export {
439
439
  Ce as b,
440
440
  me as p
441
441
  };
442
- //# sourceMappingURL=payment-request-card-DAGqh9Yx.js.map
442
+ //# sourceMappingURL=payment-request-card-CwDpwXUC.js.map
@@ -5,7 +5,7 @@ import { useTranslation as gt } from "react-i18next";
5
5
  import { u as ft } from "./registry-DvAUVLHh.js";
6
6
  import { o as bt } from "./floating-clearance-nIx9fFLy.js";
7
7
  import { P as Se, i as Te, h as vt, g as yt, f as xt, Y as Nt } from "./tooth-data-DR8Kdnup.js";
8
- import { P as Ye } from "./periodontal-chart-card-CWZ1YM1h.js";
8
+ import { P as Ye } from "./periodontal-chart-card-CxdXvsPU.js";
9
9
  const j = {
10
10
  type: "string",
11
11
  description: "FDI tooth id ('11'–'48' permanent, '51'–'85' primary)."
@@ -1410,4 +1410,4 @@ export {
1410
1410
  ze as s,
1411
1411
  sr as t
1412
1412
  };
1413
- //# sourceMappingURL=periodontal-chart-BqwLxy2m.js.map
1413
+ //# sourceMappingURL=periodontal-chart-DD5C0M3l.js.map
@@ -4,7 +4,7 @@ import { c as R } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
5
  import { B as re } from "./badge-hnBt8o7n.js";
6
6
  import { C as S } from "./card-DMO2nkt4.js";
7
- import { K as ne, a as se } from "./key-value-pair-Ax8IJr1M.js";
7
+ import { K as ne, a as se } from "./key-value-pair-BNNITp6S.js";
8
8
  import { u as oe } from "./registry-DvAUVLHh.js";
9
9
  const de = {
10
10
  id: "periodontal-chart-card",
@@ -452,4 +452,4 @@ export {
452
452
  he as a,
453
453
  de as p
454
454
  };
455
- //# sourceMappingURL=periodontal-chart-card-CWZ1YM1h.js.map
455
+ //# sourceMappingURL=periodontal-chart-card-CxdXvsPU.js.map
@@ -6,7 +6,7 @@ import { B as te } from "./badge-hnBt8o7n.js";
6
6
  import { C as j } from "./card-DMO2nkt4.js";
7
7
  import { C as ae } from "./checkbox--ndmyokr.js";
8
8
  import { R as y } from "./radio-BBbMdbE_.js";
9
- import { R as D } from "./radio-group-BT97ty7o.js";
9
+ import { R as D } from "./radio-group-DicxWJXP.js";
10
10
  import { u as oe } from "./registry-DvAUVLHh.js";
11
11
  const se = {
12
12
  enum: [1, 2, 3, 4],
@@ -342,4 +342,4 @@ export {
342
342
  k as i,
343
343
  ne as p
344
344
  };
345
- //# sourceMappingURL=periodontal-diagnosis-C9IuvLId.js.map
345
+ //# sourceMappingURL=periodontal-diagnosis-D-PJv7KS.js.map
@@ -1,11 +1,12 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as N, useRef as g, useState as _, useMemo as f } from "react";
3
- import * as y from "@radix-ui/react-radio-group";
2
+ import { forwardRef as N, useRef as f, useState as _, useMemo as y } from "react";
3
+ import * as h from "@radix-ui/react-radio-group";
4
4
  import { c } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as q } from "react-i18next";
6
- import { c as T } from "./compose-refs-C0k0tdqF.js";
7
- import { u as z } from "./registry-DvAUVLHh.js";
8
- import { u as A } from "./use-direction-Dp8h70PP.js";
6
+ import { c as D } from "./compose-refs-C0k0tdqF.js";
7
+ import { u as O } from "./use-select-on-arrow-Cr4iBuW5.js";
8
+ import { u as T } from "./registry-DvAUVLHh.js";
9
+ import { u as z } from "./use-direction-Dp8h70PP.js";
9
10
  const E = {
10
11
  id: "position-grid",
11
12
  capabilities: ["select_single"],
@@ -66,9 +67,9 @@ const E = {
66
67
  { value: "bottom-start", labelKey: "bottomStart" },
67
68
  { value: "bottom", labelKey: "bottom" },
68
69
  { value: "bottom-end", labelKey: "bottomEnd" }
69
- ], D = c(
70
+ ], H = c(
70
71
  "ds:grid ds:grid-cols-3 ds:gap-[var(--spacing-2xs)] ds:w-fit"
71
- ), H = c(
72
+ ), M = c(
72
73
  [
73
74
  "ds:group ds:relative ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
74
75
  "ds:aspect-square ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -83,41 +84,41 @@ const E = {
83
84
  "ds:data-[state=checked]:bg-[color-mix(in_srgb,var(--accent)_8%,transparent)]",
84
85
  "ds:data-[disabled]:border-muted"
85
86
  ].join(" ")
86
- ), M = c(
87
+ ), F = c(
87
88
  [
88
89
  "ds:size-2.5 ds:rounded-full ds:bg-muted-foreground",
89
90
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
90
91
  "ds:group-data-[state=checked]:bg-primary",
91
92
  "ds:group-data-[disabled]:bg-muted"
92
93
  ].join(" ")
93
- ), O = N(
94
+ ), U = N(
94
95
  function({
95
96
  value: t,
96
97
  defaultValue: u,
97
98
  onChange: a,
98
99
  positions: p,
99
- name: h,
100
+ name: K,
100
101
  disabled: V,
101
102
  id: i,
102
- className: k,
103
- "aria-label": K
104
- }, S) {
105
- const { t: s } = q("ui"), n = g(null), G = T(S, n), R = A(n), o = t !== void 0, [w, P] = _(
103
+ className: S,
104
+ "aria-label": k
105
+ }, w) {
106
+ const { t: s } = q("ui"), n = f(null), G = D(w, n), R = z(n), m = O(), o = t !== void 0, [P, x] = _(
106
107
  u ?? ""
107
- ), m = o ? t ?? "" : w, v = g(m);
108
- v.current = m;
109
- const x = f(
108
+ ), v = o ? t ?? "" : P, b = f(v);
109
+ b.current = v;
110
+ const j = y(
110
111
  () => p ?? L.map((e) => ({
111
112
  value: e.value,
112
113
  label: s(`positionGrid.${e.labelKey}`)
113
114
  })),
114
115
  [p, s]
115
- ), j = K ?? s("positionGrid.groupLabel"), b = (e) => {
116
- o || P(e), a == null || a(e);
117
- }, I = f(
116
+ ), A = k ?? s("positionGrid.groupLabel"), g = (e) => {
117
+ m.noteSelection(), o || x(e), a == null || a(e);
118
+ }, I = y(
118
119
  () => ({
119
- getValue: () => v.current,
120
- setValue: (e) => b(e),
120
+ getValue: () => b.current,
121
+ setValue: (e) => g(e),
121
122
  focus: () => {
122
123
  const e = n.current;
123
124
  if (!e) return;
@@ -130,29 +131,30 @@ const E = {
130
131
  // eslint-disable-next-line react-hooks/exhaustive-deps
131
132
  [o, a]
132
133
  );
133
- return z(E, I, i), /* @__PURE__ */ l(
134
- y.Root,
134
+ return T(E, I, i), /* @__PURE__ */ l(
135
+ h.Root,
135
136
  {
136
137
  ref: G,
137
138
  id: i,
138
- name: h,
139
+ name: K,
139
140
  dir: R,
140
141
  disabled: V,
141
142
  value: o ? t : void 0,
142
143
  defaultValue: o ? void 0 : u,
143
- onValueChange: b,
144
- "aria-label": j,
145
- className: D({ className: k }),
144
+ onValueChange: g,
145
+ onKeyDown: m.onKeyDown,
146
+ "aria-label": A,
147
+ className: H({ className: S }),
146
148
  "data-component": "position-grid",
147
149
  "data-component-id": i,
148
- children: x.map((e) => /* @__PURE__ */ l(
149
- y.Item,
150
+ children: j.map((e) => /* @__PURE__ */ l(
151
+ h.Item,
150
152
  {
151
153
  value: e.value,
152
154
  "aria-label": e.label,
153
155
  "data-option-id": e.value,
154
- className: H(),
155
- children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: M() })
156
+ className: M(),
157
+ children: /* @__PURE__ */ l("span", { "aria-hidden": "true", className: F() })
156
158
  },
157
159
  e.value
158
160
  ))
@@ -160,10 +162,10 @@ const E = {
160
162
  );
161
163
  }
162
164
  );
163
- O.displayName = "PositionGrid";
165
+ U.displayName = "PositionGrid";
164
166
  export {
165
- O as P,
166
- D as g,
167
+ U as P,
168
+ H as g,
167
169
  E as p
168
170
  };
169
- //# sourceMappingURL=position-grid-D2D5_Tze.js.map
171
+ //# sourceMappingURL=position-grid-CBB88EaH.js.map
@@ -9,7 +9,7 @@ import { D } from "./dropdown-menu-BQSNVp4x.js";
9
9
  import { E as st } from "./empty-state-gNG3qYCX.js";
10
10
  import { M as it } from "./map-view-CO2v0hfp.js";
11
11
  import { R as Ne } from "./rating-C1Vrmpsi.js";
12
- import { S as I } from "./sheet-CNFW8mYZ.js";
12
+ import { S as I } from "./sheet-C7SwIxwB.js";
13
13
  import { S as rt } from "./skeleton-B1KTdJ4N.js";
14
14
  import { S as ot } from "./spinner-CoflYlEx.js";
15
15
  import { B as $ } from "./badge-hnBt8o7n.js";
@@ -1742,4 +1742,4 @@ export {
1742
1742
  Ot as P,
1743
1743
  bt as p
1744
1744
  };
1745
- //# sourceMappingURL=practice-results-DxOgbPDy.js.map
1745
+ //# sourceMappingURL=practice-results-Dhbo-fc_.js.map
@@ -4,7 +4,7 @@ import { c as Me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Re } from "react-i18next";
5
5
  import { u as Te } from "./registry-DvAUVLHh.js";
6
6
  import { R as u } from "./radio-BBbMdbE_.js";
7
- import { R as j } from "./radio-group-BT97ty7o.js";
7
+ import { R as j } from "./radio-group-DicxWJXP.js";
8
8
  import { F as f } from "./form-field-Ani72sVY.js";
9
9
  import { D as V } from "./date-picker-wRAcq2lt.js";
10
10
  import { N as H } from "./number-input-CVwI1ltI.js";
@@ -767,4 +767,4 @@ Ue.displayName = "PregnancyDating";
767
767
  export {
768
768
  Ue as P
769
769
  };
770
- //# sourceMappingURL=pregnancy-dating-R3q5n1Wh.js.map
770
+ //# sourceMappingURL=pregnancy-dating-Bfu0Cq4H.js.map
@@ -4,7 +4,7 @@ import { c as X } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Y } from "react-i18next";
5
5
  import { u as Z } from "./registry-DvAUVLHh.js";
6
6
  import { R as M } from "./radio-BBbMdbE_.js";
7
- import { R as ee } from "./radio-group-BT97ty7o.js";
7
+ import { R as ee } from "./radio-group-DicxWJXP.js";
8
8
  import { F as P } from "./form-field-Ani72sVY.js";
9
9
  import { N as I } from "./number-input-CVwI1ltI.js";
10
10
  import { C as B } from "./card-DMO2nkt4.js";
@@ -550,4 +550,4 @@ export {
550
550
  ie as p,
551
551
  oe as r
552
552
  };
553
- //# sourceMappingURL=pregnancy-weight-gain-DwmNklDU.js.map
553
+ //# sourceMappingURL=pregnancy-weight-gain-CUUrBTBo.js.map
@@ -4,7 +4,7 @@ import { c as C } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as de } from "react-i18next";
5
5
  import * as m from "@radix-ui/react-navigation-menu";
6
6
  import { I as ae } from "./icon-button-COX76Jdj.js";
7
- import { S as f } from "./sheet-CNFW8mYZ.js";
7
+ import { S as f } from "./sheet-C7SwIxwB.js";
8
8
  import { u as ne } from "./use-visual-viewport-pin-ChurOsHM.js";
9
9
  import { C as R } from "./chevron-down-DWE7GSq9.js";
10
10
  import { X as re } from "./x-B5YnXwCz.js";
@@ -600,4 +600,4 @@ export {
600
600
  Le as P,
601
601
  Pe as p
602
602
  };
603
- //# sourceMappingURL=public-header.agent-BWusjxY8.js.map
603
+ //# sourceMappingURL=public-header.agent-pr2hyiND.js.map
@@ -1,15 +1,16 @@
1
- import { jsx as e, jsxs as u, Fragment as ae } from "react/jsx-runtime";
2
- import { forwardRef as de, useId as ie, Children as le, isValidElement as ce, useMemo as O, useRef as m, useState as Q } from "react";
3
- import * as pe from "@radix-ui/react-radio-group";
4
- import { c as ue } from "./index-D2ZczOXr.js";
5
- import { a as me, r as fe, b as E } from "./radio-BBbMdbE_.js";
6
- import { a as ve } from "./tooltip-Cp-PLePW.js";
7
- import { c as ge } from "./compose-refs-C0k0tdqF.js";
8
- import { u as J } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
- import { u as he } from "./registry-DvAUVLHh.js";
10
- import { u as xe } from "./use-direction-Dp8h70PP.js";
11
- import { C as be } from "./circle-alert-rGDZ73Wh.js";
12
- const Re = {
1
+ import { jsx as s, jsxs as u, Fragment as de } from "react/jsx-runtime";
2
+ import { forwardRef as le, useId as ce, Children as pe, isValidElement as ue, useMemo as J, useRef as m, useState as X } from "react";
3
+ import * as me from "@radix-ui/react-radio-group";
4
+ import { c as fe } from "./index-D2ZczOXr.js";
5
+ import { a as ve, r as ge, b as Q } from "./radio-BBbMdbE_.js";
6
+ import { a as he } from "./tooltip-Cp-PLePW.js";
7
+ import { c as xe } from "./compose-refs-C0k0tdqF.js";
8
+ import { u as be } from "./use-select-on-arrow-Cr4iBuW5.js";
9
+ import { u as U } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
10
+ import { u as Re } from "./registry-DvAUVLHh.js";
11
+ import { u as ye } from "./use-direction-Dp8h70PP.js";
12
+ import { C as Ne } from "./circle-alert-rGDZ73Wh.js";
13
+ const we = {
13
14
  id: "radio-group",
14
15
  capabilities: ["select_single"],
15
16
  state: {
@@ -58,50 +59,50 @@ const Re = {
58
59
  description: "Stable opaque value emitted on each rendered Radio child."
59
60
  }
60
61
  }
61
- }, U = "ds:flex ds:flex-nowrap ds:items-stretch ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:p-[var(--spacing-2xs)]", ye = ue("ds:flex", {
62
+ }, Y = "ds:flex ds:flex-nowrap ds:items-stretch ds:gap-[var(--spacing-2xs)] ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background ds:p-[var(--spacing-2xs)]", Ae = fe("ds:flex", {
62
63
  variants: {
63
64
  variant: {
64
65
  vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
65
66
  horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
66
67
  card: "ds:flex-col ds:gap-[var(--spacing-md)]",
67
- segmented: `${U} ds:w-fit ds:max-w-full ds:min-w-0`
68
+ segmented: `${Y} ds:w-fit ds:max-w-full ds:min-w-0`
68
69
  }
69
70
  },
70
71
  defaultVariants: {
71
72
  variant: "vertical"
72
73
  }
73
- }), A = () => {
74
+ }), $ = () => {
74
75
  };
75
- function Ne(t, r, f) {
76
- const n = m(null), a = m(null), v = m(null), o = m(null), [g, d] = Q(!1), h = m(A);
77
- return J(() => {
78
- const x = n.current, i = a.current;
79
- if (!t || !x || !i) {
80
- d(!1);
76
+ function Se(t, r, f) {
77
+ const n = m(null), a = m(null), v = m(null), o = m(null), [g, i] = X(!1), h = m($);
78
+ return U(() => {
79
+ const b = n.current, d = a.current;
80
+ if (!t || !b || !d) {
81
+ i(!1);
81
82
  return;
82
83
  }
83
84
  const l = () => {
84
- const p = x.clientWidth;
85
+ const p = b.clientWidth;
85
86
  if (p <= 0) {
86
- d(!1);
87
+ i(!1);
87
88
  return;
88
89
  }
89
- const w = o.current, V = v.current, b = w && V ? w.offsetWidth + (Number.parseFloat(window.getComputedStyle(V).columnGap) || 0) : 0;
90
- d(i.scrollWidth > p - b + 1);
90
+ const x = o.current, w = v.current, A = x && w ? x.offsetWidth + (Number.parseFloat(window.getComputedStyle(w).columnGap) || 0) : 0;
91
+ i(d.scrollWidth > p - A + 1);
91
92
  };
92
93
  if (h.current = l, l(), typeof ResizeObserver > "u")
93
94
  return () => {
94
- h.current = A;
95
+ h.current = $;
95
96
  };
96
97
  const c = new ResizeObserver(l);
97
- return c.observe(x), c.observe(i), o.current && c.observe(o.current), () => {
98
- c.disconnect(), h.current = A;
98
+ return c.observe(b), c.observe(d), o.current && c.observe(o.current), () => {
99
+ c.disconnect(), h.current = $;
99
100
  };
100
- }, [t, r]), J(() => {
101
+ }, [t, r]), U(() => {
101
102
  h.current();
102
103
  }, [f]), { containerRef: n, measureRef: a, lineRef: v, endRef: o, collapsed: g };
103
104
  }
104
- const we = de(
105
+ const Ve = le(
105
106
  ({
106
107
  children: t,
107
108
  variant: r = "vertical",
@@ -111,116 +112,120 @@ const we = de(
111
112
  controlEnd: v,
112
113
  description: o,
113
114
  error: g,
114
- required: d,
115
+ required: i,
115
116
  disabled: h,
116
- className: x,
117
- id: i,
117
+ className: b,
118
+ id: d,
118
119
  value: l,
119
120
  defaultValue: c,
120
121
  onValueChange: p,
122
+ onKeyDown: x,
121
123
  ...w
122
- }, V) => {
123
- const b = ie(), C = `${b}-legend`, S = `${b}-description`, k = `${b}-error`, X = [o ? S : null, g ? k : null].filter(Boolean).join(" ") || void 0, Y = f ? C : void 0, R = r === "segmented", Z = r === "horizontal" || R ? "horizontal" : "vertical", I = R ? le.toArray(t).filter(ce) : [], ee = I.map(
124
- (s) => `${s.props.value ?? ""}:${s.props.shortLabel ?? s.props.label ?? ""}:${s.props.icon ? 1 : 0}`
125
- ).join("|"), y = Ne(
124
+ }, A) => {
125
+ const S = ce(), C = `${S}-legend`, k = `${S}-description`, I = `${S}-error`, Z = [o ? k : null, g ? I : null].filter(Boolean).join(" ") || void 0, ee = f ? C : void 0, R = r === "segmented", se = r === "horizontal" || R ? "horizontal" : "vertical", B = R ? pe.toArray(t).filter(ue) : [], te = B.map(
126
+ (e) => `${e.props.value ?? ""}:${e.props.shortLabel ?? e.props.label ?? ""}:${e.props.icon ? 1 : 0}`
127
+ ).join("|"), y = Se(
126
128
  R,
127
129
  `${!!v}:${!!f}`,
128
- ee
129
- ), G = R && y.collapsed, B = O(
130
- () => ({ variant: r, collapsed: G }),
131
- [r, G]
132
- ), z = o ? /* @__PURE__ */ e("p", { id: S, className: "type-body-sm ds:text-muted-foreground", children: o }) : null, j = g ? /* @__PURE__ */ u(
130
+ te
131
+ ), V = R && y.collapsed, z = J(
132
+ () => ({ variant: r, collapsed: V }),
133
+ [r, V]
134
+ ), j = o ? /* @__PURE__ */ s("p", { id: k, className: "type-body-sm ds:text-muted-foreground", children: o }) : null, T = g ? /* @__PURE__ */ u(
133
135
  "p",
134
136
  {
135
- id: k,
137
+ id: I,
136
138
  role: "alert",
137
139
  className: "ds:inline-flex ds:items-start ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
138
140
  children: [
139
- /* @__PURE__ */ e(be, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
140
- /* @__PURE__ */ e("span", { children: g })
141
+ /* @__PURE__ */ s(Ne, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
142
+ /* @__PURE__ */ s("span", { children: g })
141
143
  ]
142
144
  }
143
- ) : null, $ = m(null), se = ge(V, $), te = xe($), N = l !== void 0, [re, oe] = Q(
145
+ ) : null, G = m(null), re = xe(A, G), oe = ye(G), L = be(), N = l !== void 0, [ne, ae] = X(
144
146
  c ?? ""
145
- ), T = N ? l ?? "" : re, K = m(T);
146
- K.current = T;
147
- const L = (s) => {
148
- N || oe(s), p == null || p(s);
149
- }, ne = O(
147
+ ), O = N ? l ?? "" : ne, P = m(O);
148
+ P.current = O;
149
+ const W = (e) => {
150
+ L.noteSelection(), N || ae(e), p == null || p(e);
151
+ }, ie = J(
150
152
  () => ({
151
- getValue: () => K.current,
153
+ getValue: () => P.current,
152
154
  // An agent may only pick what a user could: a value with a rendered,
153
155
  // enabled radio. Unoffered or disabled values are ignored.
154
- setValue: (s) => {
156
+ setValue: (e) => {
155
157
  var D;
156
158
  Array.from(
157
- ((D = $.current) == null ? void 0 : D.querySelectorAll('[role="radio"]')) ?? []
159
+ ((D = G.current) == null ? void 0 : D.querySelectorAll('[role="radio"]')) ?? []
158
160
  ).some(
159
- (H) => H.getAttribute("data-option-id") === s && !H.hasAttribute("data-disabled")
160
- ) && L(s);
161
+ (E) => E.getAttribute("data-option-id") === e && !E.hasAttribute("data-disabled")
162
+ ) && W(e);
161
163
  }
162
164
  }),
163
165
  // eslint-disable-next-line react-hooks/exhaustive-deps
164
166
  [N, p]
165
167
  );
166
- he(Re, ne, i);
167
- const P = /* @__PURE__ */ e(
168
- pe.Root,
168
+ Re(we, ie, d);
169
+ const F = /* @__PURE__ */ s(
170
+ me.Root,
169
171
  {
170
- ref: se,
171
- id: i,
172
- orientation: Z,
173
- dir: te,
172
+ ref: re,
173
+ id: d,
174
+ "aria-orientation": se,
175
+ dir: oe,
174
176
  disabled: h,
175
- required: d,
177
+ required: i,
176
178
  value: N ? l : void 0,
177
179
  defaultValue: N ? void 0 : c,
178
- onValueChange: L,
179
- "aria-labelledby": Y,
180
- "aria-describedby": X,
180
+ onValueChange: W,
181
+ onKeyDown: (e) => {
182
+ x == null || x(e), L.onKeyDown(e);
183
+ },
184
+ "aria-labelledby": ee,
185
+ "aria-describedby": Z,
181
186
  "aria-invalid": !!g || void 0,
182
- "aria-required": d || void 0,
183
- className: ye({ variant: r, className: x }),
187
+ "aria-required": i || void 0,
188
+ className: Ae({ variant: r, className: b }),
184
189
  "data-component": "radio-group",
185
- "data-component-id": i,
186
- "data-collapsed": G ? "" : void 0,
190
+ "data-component-id": d,
191
+ "data-collapsed": V ? "" : void 0,
187
192
  ...w,
188
193
  children: t
189
194
  }
190
- ), W = R ? (
195
+ ), M = R ? (
191
196
  // Segments carry a tooltip each; bring a provider so the variant is
192
197
  // safe in a host without one at its root.
193
- /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
198
+ /* @__PURE__ */ s(he, { children: /* @__PURE__ */ u(
194
199
  "div",
195
200
  {
196
201
  ref: y.containerRef,
197
202
  className: "ds:relative ds:w-full ds:min-w-0",
198
203
  children: [
199
- /* @__PURE__ */ e(
204
+ /* @__PURE__ */ s(
200
205
  "div",
201
206
  {
202
207
  "aria-hidden": "true",
203
208
  className: "ds:pointer-events-none ds:invisible ds:absolute ds:inset-0 ds:overflow-hidden",
204
- children: /* @__PURE__ */ e(
209
+ children: /* @__PURE__ */ s(
205
210
  "div",
206
211
  {
207
212
  ref: y.measureRef,
208
213
  "data-segment-measure": "",
209
- className: `ds:absolute ds:start-0 ds:top-0 ds:w-max ${U}`,
210
- children: I.map((s, q) => /* @__PURE__ */ e(
214
+ className: `ds:absolute ds:start-0 ds:top-0 ds:w-max ${Y}`,
215
+ children: B.map((e, K) => /* @__PURE__ */ s(
211
216
  "span",
212
217
  {
213
- className: fe(),
214
- children: /* @__PURE__ */ e(
215
- me,
218
+ className: ge(),
219
+ children: /* @__PURE__ */ s(
220
+ ve,
216
221
  {
217
- icon: s.props.icon,
218
- text: s.props.shortLabel ?? s.props.label ?? "",
222
+ icon: e.props.icon,
223
+ text: e.props.shortLabel ?? e.props.label ?? "",
219
224
  collapsed: !1
220
225
  }
221
226
  )
222
227
  },
223
- s.key ?? q
228
+ e.key ?? K
224
229
  ))
225
230
  }
226
231
  )
@@ -232,8 +237,8 @@ const we = de(
232
237
  ref: y.lineRef,
233
238
  className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-md)]",
234
239
  children: [
235
- P,
236
- v ? /* @__PURE__ */ e(
240
+ F,
241
+ v ? /* @__PURE__ */ s(
237
242
  "span",
238
243
  {
239
244
  ref: y.endRef,
@@ -247,9 +252,9 @@ const we = de(
247
252
  ]
248
253
  }
249
254
  ) })
250
- ) : P, F = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", M = !!(n || a), _ = /* @__PURE__ */ u(ae, { children: [
255
+ ) : F, _ = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", q = !!(n || a), H = /* @__PURE__ */ u(de, { children: [
251
256
  f,
252
- d ? /* @__PURE__ */ e(
257
+ i ? /* @__PURE__ */ s(
253
258
  "span",
254
259
  {
255
260
  "aria-hidden": "true",
@@ -258,40 +263,40 @@ const we = de(
258
263
  }
259
264
  ) : null
260
265
  ] });
261
- return f ? /* @__PURE__ */ e(E.Provider, { value: B, children: /* @__PURE__ */ u(
266
+ return f ? /* @__PURE__ */ s(Q.Provider, { value: z, children: /* @__PURE__ */ u(
262
267
  "fieldset",
263
268
  {
264
269
  role: "presentation",
265
- className: `${F} ds:border-0 ds:p-0 ds:m-0`,
270
+ className: `${_} ds:border-0 ds:p-0 ds:m-0`,
266
271
  children: [
267
- /* @__PURE__ */ e(
272
+ /* @__PURE__ */ s(
268
273
  "legend",
269
274
  {
270
275
  id: C,
271
- className: M ? "type-label ds:text-foreground ds:p-0 ds:w-full" : "type-label ds:text-foreground ds:p-0",
272
- children: M ? /* @__PURE__ */ u("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-xs)]", children: [
273
- n ? /* @__PURE__ */ e("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: n }) : null,
276
+ className: q ? "type-label ds:text-foreground ds:p-0 ds:w-full" : "type-label ds:text-foreground ds:p-0",
277
+ children: q ? /* @__PURE__ */ u("span", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-xs)]", children: [
278
+ n ? /* @__PURE__ */ s("span", { className: "ds:inline-flex ds:shrink-0 ds:items-center", children: n }) : null,
274
279
  n ? " " : null,
275
- /* @__PURE__ */ e("span", { children: _ }),
280
+ /* @__PURE__ */ s("span", { children: H }),
276
281
  a ? " " : null,
277
- a ? /* @__PURE__ */ e("span", { className: "ds:ms-auto ds:inline-flex ds:shrink-0 ds:items-center", children: a }) : null
278
- ] }) : _
282
+ a ? /* @__PURE__ */ s("span", { className: "ds:ms-auto ds:inline-flex ds:shrink-0 ds:items-center", children: a }) : null
283
+ ] }) : H
279
284
  }
280
285
  ),
281
- z,
282
- W,
283
- j
286
+ j,
287
+ M,
288
+ T
284
289
  ]
285
290
  }
286
- ) }) : /* @__PURE__ */ e(E.Provider, { value: B, children: /* @__PURE__ */ u("div", { className: F, children: [
287
- z,
288
- W,
289
- j
291
+ ) }) : /* @__PURE__ */ s(Q.Provider, { value: z, children: /* @__PURE__ */ u("div", { className: _, children: [
292
+ j,
293
+ M,
294
+ T
290
295
  ] }) });
291
296
  }
292
297
  );
293
- we.displayName = "RadioGroup";
298
+ Ve.displayName = "RadioGroup";
294
299
  export {
295
- we as R
300
+ Ve as R
296
301
  };
297
- //# sourceMappingURL=radio-group-BT97ty7o.js.map
302
+ //# sourceMappingURL=radio-group-DicxWJXP.js.map