@alfadocs/ui-kit 1.3.13 → 1.4.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 (185) hide show
  1. package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js +28 -0
  2. package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
  3. package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
  4. package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
  5. package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
  6. package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
  7. package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
  8. package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
  9. package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
  10. package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
  11. package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
  12. package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
  13. package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
  14. package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
  15. package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
  16. package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
  17. package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
  18. package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
  19. package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
  20. package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
  21. package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
  22. package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
  23. package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
  24. package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
  25. package/dist/_chunks/format-4HNwNGrN.js +1315 -0
  26. package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
  27. package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
  28. package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
  29. package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
  30. package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
  31. package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
  32. package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
  33. package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
  34. package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
  35. package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
  36. package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
  37. package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
  38. package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
  39. package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
  40. package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
  41. package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
  42. package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
  43. package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
  44. package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
  45. package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
  46. package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
  47. package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
  48. package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
  49. package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
  50. package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
  51. package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
  52. package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
  53. package/dist/_chunks/progress-CK8otcQ-.js +343 -0
  54. package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
  55. package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
  56. package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
  57. package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
  58. package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
  59. package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
  60. package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
  61. package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
  62. package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
  63. package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
  64. package/dist/_chunks/subDays-CAUv47M1.js +8 -0
  65. package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
  66. package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
  67. package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
  68. package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
  69. package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
  70. package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
  71. package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
  72. package/dist/agent-catalog.json +6426 -3382
  73. package/dist/agent-i18n/en.json +234 -15
  74. package/dist/components/agenda-card/index.js +1 -1
  75. package/dist/components/appointment-timeline/index.js +1 -1
  76. package/dist/components/bmi-calculator/index.js +1 -1
  77. package/dist/components/booking/index.js +1 -1
  78. package/dist/components/calculator-dialog/index.js +1 -1
  79. package/dist/components/care-plan-card/index.js +1 -1
  80. package/dist/components/care-plan-entry-card/index.js +1 -1
  81. package/dist/components/chat-container/chat-container.d.ts +14 -0
  82. package/dist/components/chat-container/index.js +1 -1
  83. package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
  84. package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
  85. package/dist/components/cycle-calculator/index.d.ts +1 -1
  86. package/dist/components/cycle-calculator/index.js +1 -1
  87. package/dist/components/data-table/index.js +1 -1
  88. package/dist/components/date-picker/index.js +1 -1
  89. package/dist/components/date-range-picker/index.js +1 -1
  90. package/dist/components/date-time-picker/index.js +1 -1
  91. package/dist/components/document-preview/index.js +1 -1
  92. package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
  93. package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
  94. package/dist/components/due-date-calculator/index.d.ts +1 -1
  95. package/dist/components/due-date-calculator/index.js +2 -2
  96. package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
  97. package/dist/components/editor-overlay/index.js +1 -1
  98. package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
  99. package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
  100. package/dist/components/fetal-weight/index.d.ts +1 -1
  101. package/dist/components/fetal-weight/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
  104. package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
  105. package/dist/components/gestational-age-calculator/index.d.ts +1 -1
  106. package/dist/components/gestational-age-calculator/index.js +1 -1
  107. package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
  108. package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
  109. package/dist/components/hcg-doubling/index.d.ts +1 -1
  110. package/dist/components/hcg-doubling/index.js +1 -1
  111. package/dist/components/header-settings/header-settings.d.ts +13 -1
  112. package/dist/components/header-settings/index.js +1 -1
  113. package/dist/components/locale-picker/index.js +1 -1
  114. package/dist/components/locale-picker/locale-picker.d.ts +9 -0
  115. package/dist/components/map-view/index.js +1 -1
  116. package/dist/components/map-view/map-view.d.ts +22 -0
  117. package/dist/components/notes-panel/index.js +1 -1
  118. package/dist/components/number-input/index.js +1 -1
  119. package/dist/components/number-input/number-input.d.ts +2 -1
  120. package/dist/components/optical-prescription/index.js +1 -1
  121. package/dist/components/patient-details/index.js +1 -1
  122. package/dist/components/patient-table/index.js +1 -1
  123. package/dist/components/payment-form/index.d.ts +1 -1
  124. package/dist/components/payment-form/index.js +1 -1
  125. package/dist/components/payment-form/payment-form.d.ts +32 -1
  126. package/dist/components/pdf-viewer/index.js +1 -1
  127. package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
  128. package/dist/components/practice-results/index.js +1 -1
  129. package/dist/components/pregnancy-dating/index.d.ts +1 -1
  130. package/dist/components/pregnancy-dating/index.js +1 -1
  131. package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
  132. package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
  133. package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
  134. package/dist/components/pregnancy-weight-gain/index.js +6 -5
  135. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
  136. package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
  137. package/dist/components/progress/index.js +1 -1
  138. package/dist/components/progress/progress.d.ts +13 -0
  139. package/dist/components/radiograph-panel/index.js +1 -1
  140. package/dist/components/rich-text-editor/index.js +1 -1
  141. package/dist/components/session-countdown/index.js +1 -1
  142. package/dist/components/sign-document/index.js +1 -1
  143. package/dist/components/slot-grid/index.d.ts +2 -1
  144. package/dist/components/slot-grid/index.js +5 -4
  145. package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
  146. package/dist/components/slot-grid/slot-grid.d.ts +34 -0
  147. package/dist/components/sparkline/index.js +1 -1
  148. package/dist/components/sparkline/sparkline.d.ts +10 -0
  149. package/dist/components/tab-bar/index.js +1 -1
  150. package/dist/components/tab-bar/tab-bar.d.ts +13 -0
  151. package/dist/components/task-card/index.js +1 -1
  152. package/dist/components/unit-converter/index.js +1 -1
  153. package/dist/components/warning-stack/index.js +1 -1
  154. package/dist/index.js +630 -627
  155. package/dist/patterns/alia-assistant/index.js +1 -1
  156. package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
  157. package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
  158. package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
  159. package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
  160. package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
  161. package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
  162. package/dist/patterns/anamnesis/index.d.ts +3 -2
  163. package/dist/patterns/anamnesis/index.js +7 -6
  164. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  165. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
  166. package/dist/tokens.css +1 -1
  167. package/package.json +1 -1
  168. package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
  169. package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
  170. package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
  171. package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
  172. package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
  173. package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
  174. package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
  175. package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
  176. package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
  177. package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
  178. package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
  179. package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
  180. package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
  181. package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
  182. package/dist/_chunks/progress-DA413-zn.js +0 -299
  183. package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
  184. package/dist/_chunks/subDays-BcNi04uf.js +0 -8
  185. package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
@@ -1,4 +1,4 @@
1
- import { jsxs as t, jsx as a, Fragment as M } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as a, Fragment as M } from "react/jsx-runtime";
2
2
  import { forwardRef as b, useState as E } from "react";
3
3
  import { useTranslation as B } from "react-i18next";
4
4
  import { c as p } from "./index-D2ZczOXr.js";
@@ -7,11 +7,11 @@ import { A as S } from "./avatar-BNQNhoyL.js";
7
7
  import { A as F } from "./alert-CiJT540z.js";
8
8
  import { C as w } from "./card-DPmk26CL.js";
9
9
  import { D as m } from "./dropdown-menu-DU-Hrf33.js";
10
- import { T as q } from "./tab-bar-Axhk6xzx.js";
10
+ import { T as q } from "./tab-bar-BYESZINM.js";
11
11
  import { a as A, H as G, g as J, f as z, e as K, c as Q, d as U } from "./header-CjwasYnn.js";
12
- import { H as X } from "./header-settings--pjYOe6g.js";
12
+ import { H as X } from "./header-settings-Cn5fPXCE.js";
13
13
  import { S as Y } from "./sign-in-with-alfadocs-button-UlYefZpI.js";
14
- import { S as Z, g as _, b as aa, a as ea, j as sa, k as ra, i as ta, h as I } from "./sidebar-C-Gr2LL-.js";
14
+ import { S as Z, g as _, b as aa, a as ea, j as sa, k as ta, i as ra, h as I } from "./sidebar-C-Gr2LL-.js";
15
15
  import { T as na } from "./theme-root-BOO73p5t.js";
16
16
  import { a as da } from "./tooltip-DvmfrNvB.js";
17
17
  import { u as ia } from "./use-theme-CAuo6EYT.js";
@@ -75,14 +75,14 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
75
75
  name: s,
76
76
  variant: n = "standard",
77
77
  monochrome: e = !1,
78
- tone: r = "auto",
78
+ tone: t = "auto",
79
79
  size: d = "md",
80
80
  className: l,
81
81
  ...c
82
82
  }, o) => {
83
83
  if (n === "maker") {
84
- const i = r === "inherit", u = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", h = i ? "" : "ds:text-[color:var(--muted-foreground)]", v = i ? "" : "ds:text-[color:var(--foreground)]";
85
- return /* @__PURE__ */ t(
84
+ const i = t === "inherit", u = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", f = i ? "" : e ? "ds:text-[color:var(--foreground)]" : "ds:text-[color:var(--primary)]", h = i ? "" : "ds:text-[color:var(--muted-foreground)]", v = i ? "" : "ds:text-[color:var(--foreground)]";
85
+ return /* @__PURE__ */ r(
86
86
  "span",
87
87
  {
88
88
  ref: o,
@@ -107,7 +107,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
107
107
  children: s
108
108
  }
109
109
  ),
110
- /* @__PURE__ */ t(
110
+ /* @__PURE__ */ r(
111
111
  "span",
112
112
  {
113
113
  "aria-hidden": !0,
@@ -129,7 +129,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
129
129
  }
130
130
  );
131
131
  }
132
- return /* @__PURE__ */ t(
132
+ return /* @__PURE__ */ r(
133
133
  "span",
134
134
  {
135
135
  ref: o,
@@ -143,7 +143,7 @@ const ua = p("ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]"), fa =
143
143
  oa,
144
144
  {
145
145
  variant: e ? "monochrome" : "wordmark",
146
- tone: r,
146
+ tone: t,
147
147
  size: d,
148
148
  decorative: !0
149
149
  }
@@ -172,14 +172,14 @@ function va({
172
172
  user: s,
173
173
  labels: n,
174
174
  onSignOut: e,
175
- onToggleFullscreen: r
175
+ onToggleFullscreen: t
176
176
  }) {
177
177
  const { t: d } = B(), l = n.fullscreen ?? d("marketplaceAppShell.settings.fullscreen");
178
178
  return (
179
179
  // Non-modal: an account menu shouldn't inert/aria-hide the whole shell
180
180
  // behind it (which leaves the still-focusable chrome inside an
181
181
  // aria-hidden region — an `aria-hidden-focus` violation).
182
- /* @__PURE__ */ t(m.Root, { modal: !1, children: [
182
+ /* @__PURE__ */ r(m.Root, { modal: !1, children: [
183
183
  /* @__PURE__ */ a(m.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
184
184
  "button",
185
185
  {
@@ -190,21 +190,21 @@ function va({
190
190
  children: /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "md" }) })
191
191
  }
192
192
  ) }),
193
- /* @__PURE__ */ t(m.Content, { align: "end", collisionPadding: 16, children: [
194
- /* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */ t("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
193
+ /* @__PURE__ */ r(m.Content, { align: "end", collisionPadding: 16, children: [
194
+ /* @__PURE__ */ a(m.Label, { children: /* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
195
195
  /* @__PURE__ */ a("span", { "aria-hidden": "true", children: /* @__PURE__ */ a(S, { name: s.name, src: s.avatarSrc, size: "sm" }) }),
196
- /* @__PURE__ */ t("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
196
+ /* @__PURE__ */ r("span", { className: "ds:flex ds:flex-col ds:min-w-0", children: [
197
197
  /* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--foreground)] ds:truncate", children: s.name }),
198
198
  s.email ? /* @__PURE__ */ a("span", { className: "type-meta ds:truncate", children: s.email }) : null
199
199
  ] })
200
200
  ] }) }),
201
- r ? /* @__PURE__ */ t(M, { children: [
201
+ t ? /* @__PURE__ */ r(M, { children: [
202
202
  /* @__PURE__ */ a(m.Separator, {}),
203
203
  /* @__PURE__ */ a(
204
204
  m.Item,
205
205
  {
206
206
  startIcon: /* @__PURE__ */ a(ma, { "aria-hidden": !0 }),
207
- onSelect: r,
207
+ onSelect: t,
208
208
  "data-testid": "marketplace-fullscreen",
209
209
  children: l
210
210
  }
@@ -229,10 +229,10 @@ function xa({
229
229
  renderLink: n
230
230
  }) {
231
231
  return /* @__PURE__ */ a(ea, { children: s.map((e) => {
232
- const r = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ t(M, { children: [
232
+ const t = typeof e.badgeCount == "number" && e.badgeCount > 0 ? e.badgeCount : void 0, d = /* @__PURE__ */ r(M, { children: [
233
233
  e.icon ? /* @__PURE__ */ a(sa, { children: e.icon }) : null,
234
- /* @__PURE__ */ a(ra, { children: e.label }),
235
- r !== void 0 ? /* @__PURE__ */ a(ta, { children: ga(r) }) : null
234
+ /* @__PURE__ */ a(ta, { children: e.label }),
235
+ t !== void 0 ? /* @__PURE__ */ a(ra, { children: ga(t) }) : null
236
236
  ] });
237
237
  return n ? /* @__PURE__ */ a(I, { asChild: !0, isActive: e.isActive, children: n({
238
238
  href: e.href,
@@ -269,18 +269,27 @@ function ba({
269
269
  ariaLabel: n,
270
270
  renderLink: e
271
271
  }) {
272
- const r = e ? ({
272
+ const t = e ? ({
273
273
  href: d,
274
274
  className: l,
275
275
  children: c,
276
- "aria-current": o
277
- }) => e({ href: d, className: l, children: c, "aria-current": o }) : void 0;
276
+ "aria-current": o,
277
+ "data-tab-id": i
278
+ }) => e({
279
+ href: d,
280
+ className: l,
281
+ children: c,
282
+ "aria-current": o,
283
+ // Forward the agent DOM hook — without it a consumer-router tab is
284
+ // invisible to `[data-tab-id]` lookups (PRS §26 §6).
285
+ "data-tab-id": i
286
+ }) : void 0;
278
287
  return /* @__PURE__ */ a(
279
288
  q,
280
289
  {
281
290
  items: s,
282
291
  ariaLabel: n,
283
- ...r ? { renderLink: r } : {}
292
+ ...t ? { renderLink: t } : {}
284
293
  }
285
294
  );
286
295
  }
@@ -289,7 +298,7 @@ const ka = b(
289
298
  productName: s,
290
299
  productHref: n = "/",
291
300
  nav: e,
292
- renderLink: r,
301
+ renderLink: t,
293
302
  user: d,
294
303
  labels: l,
295
304
  onSignOut: c,
@@ -300,7 +309,7 @@ const ka = b(
300
309
  variant: h = "standalone",
301
310
  children: v
302
311
  }, k) => {
303
- const { t: x } = B(), H = r ? /* @__PURE__ */ a(A, { asChild: !0, children: r({
312
+ const { t: x } = B(), H = t ? /* @__PURE__ */ a(A, { asChild: !0, children: t({
304
313
  href: n,
305
314
  children: /* @__PURE__ */ a(
306
315
  g,
@@ -330,14 +339,14 @@ const ka = b(
330
339
  {
331
340
  mainAriaLabel: f,
332
341
  mainClassName: T({ variant: "standalone" }),
333
- header: /* @__PURE__ */ t(G, { children: [
334
- /* @__PURE__ */ t(J, { children: [
342
+ header: /* @__PURE__ */ r(G, { children: [
343
+ /* @__PURE__ */ r(J, { children: [
335
344
  /* @__PURE__ */ a(z, { href: "#main-content" }),
336
345
  /* @__PURE__ */ a(K, { onMenuOpen: () => N(!0) }),
337
346
  H
338
347
  ] }),
339
348
  /* @__PURE__ */ a(Q, {}),
340
- /* @__PURE__ */ t(U, { children: [
349
+ /* @__PURE__ */ r(U, { children: [
341
350
  /* @__PURE__ */ a(X, { size: "sm" }),
342
351
  /* @__PURE__ */ a(
343
352
  va,
@@ -350,7 +359,7 @@ const ka = b(
350
359
  )
351
360
  ] })
352
361
  ] }),
353
- sidebar: /* @__PURE__ */ t(
362
+ sidebar: /* @__PURE__ */ r(
354
363
  Z,
355
364
  {
356
365
  ...i !== void 0 ? { state: i } : { defaultState: "expanded" },
@@ -366,7 +375,7 @@ const ka = b(
366
375
  // the icon-mode centring and offset the toggle in the rail.
367
376
  /* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(aa, {}) })
368
377
  ) : null,
369
- /* @__PURE__ */ a(xa, { nav: e, renderLink: r })
378
+ /* @__PURE__ */ a(xa, { nav: e, renderLink: t })
370
379
  ]
371
380
  }
372
381
  ),
@@ -375,14 +384,14 @@ const ka = b(
375
384
  ) }), P = (
376
385
  // The shell owns the warm-grey canvas; TabBar's strip is transparent and
377
386
  // floats its pill on it, and `<main>` continues the same surface.
378
- /* @__PURE__ */ t("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
387
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:min-h-dvh ds:flex-col ds:bg-[color:var(--app-shell-background)]", children: [
379
388
  /* @__PURE__ */ a(z, { href: "#main-content" }),
380
389
  /* @__PURE__ */ a(
381
390
  ba,
382
391
  {
383
392
  nav: e,
384
393
  ariaLabel: x("navigation.sidebar.label"),
385
- renderLink: r
394
+ renderLink: t
386
395
  }
387
396
  ),
388
397
  /* @__PURE__ */ a(
@@ -448,7 +457,7 @@ const ya = p(
448
457
  productName: s,
449
458
  title: n,
450
459
  description: e,
451
- connectLabel: r,
460
+ connectLabel: t,
452
461
  status: d = "idle",
453
462
  error: l,
454
463
  onConnect: c,
@@ -456,7 +465,7 @@ const ya = p(
456
465
  layout: i = "card",
457
466
  brandPanel: u,
458
467
  className: f
459
- }, h) => /* @__PURE__ */ t(
468
+ }, h) => /* @__PURE__ */ r(
460
469
  "div",
461
470
  {
462
471
  ref: h,
@@ -468,7 +477,7 @@ const ya = p(
468
477
  // monochrome lockup riding the `--primary-foreground` ink, plus an
469
478
  // optional `brandPanel` slot. Decorative — the card carries the real
470
479
  // heading + CTA, and shows its own lockup below `lg:`.
471
- /* @__PURE__ */ t("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
480
+ /* @__PURE__ */ r("div", { className: "ds:hidden ds:lg:flex ds:lg:w-[55%] ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:bg-[color:var(--primary)] ds:text-[color:var(--primary-foreground)] ds:ps-[var(--spacing-2xl)] ds:pe-[var(--spacing-2xl)] ds:pt-[var(--spacing-2xl)] ds:pb-[var(--spacing-2xl)] ds:text-start", children: [
472
481
  /* @__PURE__ */ a(
473
482
  g,
474
483
  {
@@ -482,7 +491,7 @@ const ya = p(
482
491
  u ? /* @__PURE__ */ a("div", { className: "type-body ds:max-w-[28rem] ds:text-start", children: u }) : null
483
492
  ] })
484
493
  ) : null,
485
- /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: Na({ layout: i }), children: /* @__PURE__ */ t(w.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
494
+ /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-1 ds:items-center ds:justify-center ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(w, { className: Na({ layout: i }), children: /* @__PURE__ */ r(w.Body, { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:text-center", children: [
486
495
  /* @__PURE__ */ a(
487
496
  g,
488
497
  {
@@ -492,7 +501,7 @@ const ya = p(
492
501
  className: Ca({ layout: i })
493
502
  }
494
503
  ),
495
- /* @__PURE__ */ t("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
504
+ /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
496
505
  /* @__PURE__ */ a("h1", { className: "type-title-card", children: n }),
497
506
  /* @__PURE__ */ a("p", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: e })
498
507
  ] }),
@@ -504,7 +513,7 @@ const ya = p(
504
513
  className: "ds:w-full",
505
514
  loading: d === "connecting",
506
515
  onClick: c,
507
- label: r,
516
+ label: t,
508
517
  "data-testid": "connect-with-alfadocs-button"
509
518
  }
510
519
  ),
@@ -520,4 +529,4 @@ export {
520
529
  ka as M,
521
530
  g as P
522
531
  };
523
- //# sourceMappingURL=marketplace-app-shell-DwcFMxzp.js.map
532
+ //# sourceMappingURL=marketplace-app-shell-BLRvg-M0.js.map
@@ -1,4 +1,4 @@
1
- import { A as d, B as n, E as r, F as s } from "./date-picker-variants-eL6HjWvw.js";
1
+ import { g as d, h as n, j as r, k as s } from "./format-4HNwNGrN.js";
2
2
  const m = {
3
3
  lessThanXSeconds: {
4
4
  one: "minder dan een seconde",
@@ -205,7 +205,7 @@ const m = {
205
205
  values: M,
206
206
  defaultWidth: "wide"
207
207
  })
208
- }, z = /^(\d+)e?/i, k = /\d+/i, W = {
208
+ }, k = /^(\d+)e?/i, z = /\d+/i, W = {
209
209
  narrow: /^([vn]\.? ?C\.?)/,
210
210
  abbreviated: /^([vn]\. ?Chr\.?)/,
211
211
  wide: /^((voor|na) Christus)/
@@ -217,11 +217,11 @@ const m = {
217
217
  wide: /^[1234]e kwartaal/i
218
218
  }, x = {
219
219
  any: [/1/i, /2/i, /3/i, /4/i]
220
- }, F = {
220
+ }, H = {
221
221
  narrow: /^[jfmasond]/i,
222
222
  abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,
223
223
  wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i
224
- }, H = {
224
+ }, F = {
225
225
  narrow: [
226
226
  /^j/i,
227
227
  /^f/i,
@@ -255,12 +255,12 @@ const m = {
255
255
  short: /^(zo|ma|di|wo|do|vr|za)/i,
256
256
  abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i,
257
257
  wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i
258
- }, A = {
258
+ }, V = {
259
259
  narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i],
260
260
  any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i]
261
- }, E = {
261
+ }, A = {
262
262
  any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i
263
- }, V = {
263
+ }, E = {
264
264
  any: {
265
265
  am: /^am/i,
266
266
  pm: /^pm/i,
@@ -273,8 +273,8 @@ const m = {
273
273
  }
274
274
  }, L = {
275
275
  ordinalNumber: s({
276
- matchPattern: z,
277
- parsePattern: k,
276
+ matchPattern: k,
277
+ parsePattern: z,
278
278
  valueCallback: (e) => parseInt(e, 10)
279
279
  }),
280
280
  era: r({
@@ -291,21 +291,21 @@ const m = {
291
291
  valueCallback: (e) => e + 1
292
292
  }),
293
293
  month: r({
294
- matchPatterns: F,
294
+ matchPatterns: H,
295
295
  defaultMatchWidth: "wide",
296
- parsePatterns: H,
296
+ parsePatterns: F,
297
297
  defaultParseWidth: "any"
298
298
  }),
299
299
  day: r({
300
300
  matchPatterns: X,
301
301
  defaultMatchWidth: "wide",
302
- parsePatterns: A,
302
+ parsePatterns: V,
303
303
  defaultParseWidth: "any"
304
304
  }),
305
305
  dayPeriod: r({
306
- matchPatterns: E,
306
+ matchPatterns: A,
307
307
  defaultMatchWidth: "any",
308
- parsePatterns: V,
308
+ parsePatterns: E,
309
309
  defaultParseWidth: "any"
310
310
  })
311
311
  }, S = {
@@ -323,4 +323,4 @@ const m = {
323
323
  export {
324
324
  S as nl
325
325
  };
326
- //# sourceMappingURL=nl-DuShqwuV.js.map
326
+ //# sourceMappingURL=nl-DDs-KEnD.js.map
@@ -4,7 +4,7 @@ import { c as pe } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as fe } from "react-i18next";
5
5
  import { u as me } from "./registry-DvAUVLHh.js";
6
6
  import { C as ge } from "./clinical-note-card-D63x_AkK.js";
7
- import { R as he } from "./rich-text-editor-CfeXPPWs.js";
7
+ import { R as he } from "./rich-text-editor-BedTpWzL.js";
8
8
  import { T as be } from "./text-area-Bt3p7Pt0.js";
9
9
  import { B as ve } from "./button-CPGiR_bH.js";
10
10
  import { C as ye } from "./checkbox-BuZ1u__2.js";
@@ -348,4 +348,4 @@ const Se = se(
348
348
  export {
349
349
  Se as N
350
350
  };
351
- //# sourceMappingURL=notes-panel-DPsgB4Mv.js.map
351
+ //# sourceMappingURL=notes-panel-CiFN3sLW.js.map
@@ -1,14 +1,14 @@
1
- import { jsxs as we, jsx as F } from "react/jsx-runtime";
2
- import { useMemo as Y, forwardRef as Ie, useRef as L, useCallback as z, useState as q, useEffect as De } from "react";
3
- import { c as xe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as Ce } from "react-i18next";
5
- import { u as Fe } from "./use-controllable-state-BiY4xTzM.js";
6
- import { u as Se } from "./form-field-context-B3APVHKx.js";
7
- import { c as Ve } from "./compose-refs-C0k0tdqF.js";
8
- import { u as Me } from "./registry-DvAUVLHh.js";
9
- import { C as ke } from "./chevron-down-DWE7GSq9.js";
10
- import { C as Te } from "./chevron-up-umRGgtJA.js";
11
- const Pe = {
1
+ import { jsxs as Ie, jsx as F } from "react/jsx-runtime";
2
+ import { useMemo as Y, forwardRef as De, useRef as K, useCallback as z, useState as q, useEffect as xe } from "react";
3
+ import { c as Ce } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as Fe } from "react-i18next";
5
+ import { u as Se } from "./use-controllable-state-BiY4xTzM.js";
6
+ import { u as Ve } from "./form-field-context-B3APVHKx.js";
7
+ import { c as Me } from "./compose-refs-C0k0tdqF.js";
8
+ import { u as ke } from "./registry-DvAUVLHh.js";
9
+ import { C as Te } from "./chevron-down-DWE7GSq9.js";
10
+ import { C as Pe } from "./chevron-up-umRGgtJA.js";
11
+ const ze = {
12
12
  id: "number-input",
13
13
  capabilities: ["set_value"],
14
14
  state: {
@@ -74,7 +74,7 @@ const Pe = {
74
74
  }
75
75
  }
76
76
  };
77
- function ze(n) {
77
+ function Re(n) {
78
78
  let s = "";
79
79
  for (const l of n) {
80
80
  const r = l.codePointAt(0);
@@ -82,7 +82,7 @@ function ze(n) {
82
82
  }
83
83
  return s;
84
84
  }
85
- function Re(n, s, l) {
85
+ function Ae(n, s, l) {
86
86
  return Y(() => {
87
87
  var V, M;
88
88
  const r = new Intl.NumberFormat(n).formatToParts(1234.5), u = ((V = r.find((a) => a.type === "decimal")) == null ? void 0 : V.value) ?? ".", S = ((M = r.find((a) => a.type === "group")) == null ? void 0 : M.value) ?? ",", p = s === "currency" ? new Intl.NumberFormat(n, {
@@ -93,7 +93,7 @@ function Re(n, s, l) {
93
93
  maximumFractionDigits: 4
94
94
  }) : s === "integer" ? new Intl.NumberFormat(n, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(n, { maximumFractionDigits: 10 }), R = (a) => Number.isFinite(a) ? p.format(a) : "", A = (a) => {
95
95
  if (!a) return NaN;
96
- const k = ze(a), h = k.trim(), I = h.startsWith("-") || h.startsWith("−");
96
+ const k = Re(a), h = k.trim(), I = h.startsWith("-") || h.startsWith("−");
97
97
  let d = "";
98
98
  for (const N of k)
99
99
  N >= "0" && N <= "9" ? d += N : N === u && (d += ".");
@@ -123,7 +123,7 @@ function Re(n, s, l) {
123
123
  };
124
124
  }, [n, s, l]);
125
125
  }
126
- const Ae = xe(
126
+ const je = Ce(
127
127
  [
128
128
  "ds:flex ds:items-center ds:w-full ds:rounded-[var(--radius-sm)]",
129
129
  "ds:border ds:bg-input ds:text-foreground",
@@ -153,18 +153,18 @@ const Ae = xe(
153
153
  "ds:text-muted-foreground ds:hover:text-foreground",
154
154
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
155
155
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
156
- ].join(" "), je = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US";
157
- function Be(n) {
156
+ ].join(" "), Be = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US", Ee = (n) => typeof n == "string" && n.trim() !== "" ? n : void 0;
157
+ function Ue(n) {
158
158
  if (!Number.isFinite(n)) return 0;
159
159
  const s = String(n), l = s.indexOf(".");
160
160
  return l === -1 ? 0 : s.length - l - 1;
161
161
  }
162
- function Ee(n, s) {
162
+ function Le(n, s) {
163
163
  if (s <= 0 || !Number.isFinite(s)) return n;
164
- const r = 10 ** Be(s);
164
+ const r = 10 ** Ue(s);
165
165
  return Math.round(n * r) / r;
166
166
  }
167
- const Ue = Ie(
167
+ const Ke = De(
168
168
  ({
169
169
  value: n,
170
170
  defaultValue: s,
@@ -185,16 +185,16 @@ const Ue = Ie(
185
185
  onKeyDown: d,
186
186
  ...m
187
187
  }, N) => {
188
- const { t: H } = Ce(), D = Se(), Z = a ?? D.id, T = !!(D.disabled || k), ee = A ?? je(), j = Re(ee, p, R), {
188
+ const { t: H, i18n: Z } = Fe(), D = Ve(), ee = a ?? D.id, T = !!(D.disabled || k), te = A ?? Ee(Z.language) ?? Be(), j = Ae(te, p, R), {
189
189
  decimalSeparator: P,
190
190
  groupingSeparator: W,
191
191
  format: B,
192
192
  parse: O
193
- } = j, _ = L(null), te = Ve(N, _), [ne, re] = Fe({
193
+ } = j, _ = K(null), ne = Me(N, _), [re, se] = Se({
194
194
  value: n,
195
195
  defaultValue: s ?? null,
196
196
  onChange: l
197
- }), i = ne ?? null, $ = L(i);
197
+ }), i = re ?? null, $ = K(i);
198
198
  $.current = i;
199
199
  const x = z(
200
200
  (e) => {
@@ -207,54 +207,54 @@ const Ue = Ie(
207
207
  [B]
208
208
  ), [E, c] = q(
209
209
  () => v(i)
210
- ), y = L(!1), [se, b] = q(!1), [U, C] = q(!1), K = z(
210
+ ), y = K(!1), [oe, b] = q(!1), [U, C] = q(!1), L = z(
211
211
  (e) => {
212
212
  if (e >= "0" && e <= "9") return !0;
213
213
  const t = e.codePointAt(0) ?? 0;
214
214
  return t >= 1632 && t <= 1641 || t >= 1776 && t <= 1785 ? !0 : e === P || e === W || e === "-" || e === "−";
215
215
  },
216
216
  [P, W]
217
- ), oe = z(
217
+ ), ie = z(
218
218
  (e) => {
219
219
  let t = "";
220
220
  for (const o of e)
221
- K(o) && (t += o);
221
+ L(o) && (t += o);
222
222
  return t;
223
223
  },
224
- [K]
224
+ [L]
225
225
  );
226
- De(() => {
226
+ xe(() => {
227
227
  !y.current && !U && c(v(i));
228
228
  }, [i, v, U]);
229
- const ie = se || U || i !== null && (r !== void 0 && i < r || u !== void 0 && i > u), G = D.invalid || ie, ae = G ? "error" : V ?? "default", f = (e) => {
230
- re(e);
229
+ const ae = oe || U || i !== null && (r !== void 0 && i < r || u !== void 0 && i > u), G = D.invalid || ae, ue = G ? "error" : V ?? "default", f = (e) => {
230
+ se(e);
231
231
  }, w = (e) => {
232
232
  let o = (i ?? 0) + S * e;
233
- r !== void 0 && (o = Math.max(r, o)), u !== void 0 && (o = Math.min(u, o)), o = Ee(o, S), f(o), b(!1), c(
233
+ r !== void 0 && (o = Math.max(r, o)), u !== void 0 && (o = Math.min(u, o)), o = Le(o, S), f(o), b(!1), c(
234
234
  y.current ? x(o) : v(o)
235
235
  );
236
236
  }, J = (e) => {
237
237
  f(e), b(!1), c(
238
238
  y.current ? x(e) : v(e)
239
239
  );
240
- }, ue = (e) => {
240
+ }, le = (e) => {
241
241
  if (d == null || d(e), e.defaultPrevented || T) return;
242
242
  const { key: t, shiftKey: o } = e;
243
243
  t === "ArrowUp" ? (e.preventDefault(), w(o ? 10 : 1)) : t === "ArrowDown" ? (e.preventDefault(), w(o ? -10 : -1)) : t === "PageUp" ? (e.preventDefault(), w(100)) : t === "PageDown" ? (e.preventDefault(), w(-100)) : t === "Home" && r !== void 0 ? (e.preventDefault(), J(r)) : t === "End" && u !== void 0 && (e.preventDefault(), J(u));
244
- }, le = (e) => {
245
- const t = oe(e.target.value);
244
+ }, de = (e) => {
245
+ const t = ie(e.target.value);
246
246
  if (c(t), t.trim() === "") {
247
247
  f(null), b(!1), C(!1);
248
248
  return;
249
249
  }
250
250
  const o = O(t);
251
251
  Number.isNaN(o) || (f(o), C(!1));
252
- }, de = (e) => {
253
- const { data: t } = e.nativeEvent;
254
- typeof t != "string" || t.length !== 1 || K(t) || e.preventDefault();
255
252
  }, ce = (e) => {
256
- h == null || h(e), y.current = !0, i != null && c(x(i));
253
+ const { data: t } = e.nativeEvent;
254
+ typeof t != "string" || t.length !== 1 || L(t) || e.preventDefault();
257
255
  }, fe = (e) => {
256
+ h == null || h(e), y.current = !0, i != null && c(x(i));
257
+ }, pe = (e) => {
258
258
  if (I == null || I(e), y.current = !1, E.trim() === "") {
259
259
  f(null), b(!1), C(!1), c("");
260
260
  return;
@@ -268,7 +268,7 @@ const Ue = Ie(
268
268
  b(o), C(!1), f(t), c(v(t));
269
269
  }, Q = (e) => {
270
270
  e.preventDefault();
271
- }, pe = () => w(1), me = () => w(-1), ve = Y(
271
+ }, me = () => w(1), ve = () => w(-1), be = Y(
272
272
  () => ({
273
273
  getValue: () => $.current,
274
274
  setValue: (e) => {
@@ -289,14 +289,14 @@ const Ue = Ie(
289
289
  // eslint-disable-next-line react-hooks/exhaustive-deps
290
290
  [x, v]
291
291
  );
292
- Me(Pe, ve, a);
293
- const be = T || r !== void 0 && i !== null && i <= r, ge = T || u !== void 0 && i !== null && i >= u, he = i ?? void 0, Ne = (p === "currency" || p === "percentage") && i !== null && i !== null ? B(i) : void 0, ye = j.inputMode === "numeric" ? "[0-9]*" : void 0;
294
- return /* @__PURE__ */ we(
292
+ ke(ze, be, a);
293
+ const ge = T || r !== void 0 && i !== null && i <= r, he = T || u !== void 0 && i !== null && i >= u, Ne = i ?? void 0, ye = (p === "currency" || p === "percentage") && i !== null && i !== null ? B(i) : void 0, we = j.inputMode === "numeric" ? "[0-9]*" : void 0;
294
+ return /* @__PURE__ */ Ie(
295
295
  "div",
296
296
  {
297
- className: Ae({
297
+ className: je({
298
298
  size: g,
299
- tone: ae,
299
+ tone: ue,
300
300
  className: M
301
301
  }),
302
302
  "data-component": "number-input",
@@ -309,37 +309,37 @@ const Ue = Ie(
309
309
  type: "button",
310
310
  tabIndex: -1,
311
311
  "aria-label": H("inputs.number.decrement", "Decrement"),
312
- onClick: me,
312
+ onClick: ve,
313
313
  onMouseDown: Q,
314
- disabled: be,
314
+ disabled: ge,
315
315
  className: `${X} ds:ps-2 ds:pe-1`,
316
- children: /* @__PURE__ */ F(ke, { "aria-hidden": "true", className: "ds:size-4" })
316
+ children: /* @__PURE__ */ F(Te, { "aria-hidden": "true", className: "ds:size-4" })
317
317
  }
318
318
  ),
319
319
  /* @__PURE__ */ F(
320
320
  "input",
321
321
  {
322
- ref: te,
323
- id: Z,
322
+ ref: ne,
323
+ id: ee,
324
324
  type: "text",
325
325
  role: "spinbutton",
326
326
  inputMode: j.inputMode,
327
- pattern: ye,
327
+ pattern: we,
328
328
  autoComplete: "off",
329
329
  value: E,
330
330
  disabled: T,
331
331
  "aria-valuemin": r,
332
332
  "aria-valuemax": u,
333
- "aria-valuenow": he,
334
- "aria-valuetext": Ne,
333
+ "aria-valuenow": Ne,
334
+ "aria-valuetext": ye,
335
335
  "aria-invalid": G || void 0,
336
336
  "aria-required": D.required || void 0,
337
337
  "aria-describedby": D.describedBy || void 0,
338
- onBeforeInput: de,
339
- onChange: le,
340
- onFocus: ce,
341
- onBlur: fe,
342
- onKeyDown: ue,
338
+ onBeforeInput: ce,
339
+ onChange: de,
340
+ onFocus: fe,
341
+ onBlur: pe,
342
+ onKeyDown: le,
343
343
  className: "ds:flex-1 ds:w-full ds:min-w-0 ds:bg-transparent ds:outline-none ds:ps-2 ds:pe-2 ds:text-start ds:tabular-nums ds:disabled:cursor-not-allowed",
344
344
  ...m
345
345
  }
@@ -350,11 +350,11 @@ const Ue = Ie(
350
350
  type: "button",
351
351
  tabIndex: -1,
352
352
  "aria-label": H("inputs.number.increment", "Increment"),
353
- onClick: pe,
353
+ onClick: me,
354
354
  onMouseDown: Q,
355
- disabled: ge,
355
+ disabled: he,
356
356
  className: `${X} ds:ps-1 ds:pe-2`,
357
- children: /* @__PURE__ */ F(Te, { "aria-hidden": "true", className: "ds:size-4" })
357
+ children: /* @__PURE__ */ F(Pe, { "aria-hidden": "true", className: "ds:size-4" })
358
358
  }
359
359
  )
360
360
  ]
@@ -362,9 +362,9 @@ const Ue = Ie(
362
362
  );
363
363
  }
364
364
  );
365
- Ue.displayName = "NumberInput";
365
+ Ke.displayName = "NumberInput";
366
366
  export {
367
- Ue as N,
368
- Re as u
367
+ Ke as N,
368
+ Ae as u
369
369
  };
370
- //# sourceMappingURL=number-input-DrozbZAU.js.map
370
+ //# sourceMappingURL=number-input-DOe5VYei.js.map