@alfadocs/ui-kit 1.56.0 → 1.57.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 (210) hide show
  1. package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
  2. package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
  3. package/dist/_chunks/alia-sidebar-BBKBJCv6.js +1284 -0
  4. package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-CCQ62mMN.js} +4 -4
  5. package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
  7. package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CII3SDmR.js} +3 -3
  8. package/dist/_chunks/{booking-WyNGKPE2.js → booking-81WnKDsH.js} +3 -3
  9. package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
  10. package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-D5-k_9zE.js} +13 -13
  11. package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
  12. package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
  13. package/dist/_chunks/{chart-HsF1KHbx.js → chart-DQ5GxqgT.js} +347 -350
  14. package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
  15. package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
  16. package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
  17. package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
  18. package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
  19. package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-fAMTeAjM.js} +2 -2
  20. package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
  21. package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
  22. package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
  23. package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
  24. package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
  25. package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
  26. package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
  27. package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
  28. package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-CFsL1KVt.js} +3 -3
  29. package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
  30. package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
  31. package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
  32. package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-BEeOThkW.js} +2 -2
  33. package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-BUoYGo6f.js} +2 -2
  34. package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
  35. package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-C86lQTIA.js} +2 -2
  36. package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
  37. package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
  38. package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-CxW_oLa5.js} +2 -2
  39. package/dist/_chunks/link-gRw3NtOt.js +137 -0
  40. package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
  41. package/dist/_chunks/{marketplace-app-shell-Dcx-JEjg.js → marketplace-app-shell-BZcA9Z06.js} +143 -129
  42. package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-QKQutwxj.js} +76 -69
  43. package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
  44. package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
  45. package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
  46. package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
  47. package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-Cm4pttpl.js} +4 -4
  48. package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-C5VtbGjd.js} +83 -76
  49. package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-99kEdtc5.js} +2 -2
  50. package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-DkxY13T6.js} +5 -5
  51. package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-opdyfeW2.js} +4 -4
  52. package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
  53. package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
  54. package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
  55. package/dist/_chunks/popover-BG75rYjN.js +367 -0
  56. package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-CfRkjzsI.js} +2 -2
  57. package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
  58. package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DlVRK7Ue.js} +103 -96
  59. package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
  60. package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-BctevbuY.js} +2 -2
  61. package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
  62. package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-BlTzYywa.js} +2 -2
  63. package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-DTnNZ4Ff.js} +489 -484
  64. package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-8qsiMoUI.js} +2 -2
  65. package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
  66. package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-DRuYAG5I.js} +2 -2
  67. package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-AhMsNW1r.js} +2 -2
  68. package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-NkcopDna.js} +3 -3
  69. package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-CfFQNOF_.js} +5 -5
  70. package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-BKbgb7FM.js} +2 -2
  71. package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-rBA7MR5P.js} +2 -2
  72. package/dist/agent-catalog.json +2 -2
  73. package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
  74. package/dist/components/ai-credits-notice/index.js +1 -1
  75. package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
  76. package/dist/components/ai-permission-notice/index.d.ts +1 -1
  77. package/dist/components/ai-permission-notice/index.js +1 -1
  78. package/dist/components/appointment-details-panel/index.js +1 -1
  79. package/dist/components/appointment-peek/index.js +1 -1
  80. package/dist/components/appointment-timeline/index.js +1 -1
  81. package/dist/components/booking/index.js +1 -1
  82. package/dist/components/calculator-dialog/index.js +1 -1
  83. package/dist/components/care-plan-card/index.js +1 -1
  84. package/dist/components/care-plan-header/index.js +1 -1
  85. package/dist/components/chart/chart.d.ts +5 -5
  86. package/dist/components/chart/index.js +1 -1
  87. package/dist/components/clinical-note-card/index.js +1 -1
  88. package/dist/components/color-picker/index.js +1 -1
  89. package/dist/components/contact-card/index.js +1 -1
  90. package/dist/components/contact-profile-card/index.js +1 -1
  91. package/dist/components/cycle-calculator/index.js +1 -1
  92. package/dist/components/data-table/index.js +2 -2
  93. package/dist/components/data-table-tabs/index.js +1 -1
  94. package/dist/components/date-picker/index.js +1 -1
  95. package/dist/components/date-range-picker/index.js +1 -1
  96. package/dist/components/date-time-picker/index.js +1 -1
  97. package/dist/components/dialog/index.js +1 -1
  98. package/dist/components/document-preview/index.js +1 -1
  99. package/dist/components/due-date-calculator/index.js +1 -1
  100. package/dist/components/entity-summary/index.js +1 -1
  101. package/dist/components/file-manager/index.js +1 -1
  102. package/dist/components/gestational-age-calculator/index.js +1 -1
  103. package/dist/components/hcg-doubling/index.js +1 -1
  104. package/dist/components/header-settings/index.js +1 -1
  105. package/dist/components/heatmap/index.js +1 -1
  106. package/dist/components/hover-card/index.js +1 -1
  107. package/dist/components/icon-picker/index.js +1 -1
  108. package/dist/components/info-tip/index.js +1 -1
  109. package/dist/components/link/index.js +1 -1
  110. package/dist/components/link/link.d.ts +5 -3
  111. package/dist/components/locale-picker/index.js +1 -1
  112. package/dist/components/message-tray/index.js +1 -1
  113. package/dist/components/nav-grid/index.js +1 -1
  114. package/dist/components/note-timeline/index.js +1 -1
  115. package/dist/components/notes-panel/index.js +1 -1
  116. package/dist/components/notification-tray/index.js +1 -1
  117. package/dist/components/patient-details/index.js +1 -1
  118. package/dist/components/patient-summary-card/index.js +1 -1
  119. package/dist/components/patient-table/index.js +1 -1
  120. package/dist/components/payment-card/index.js +1 -1
  121. package/dist/components/pdf-viewer/index.js +1 -1
  122. package/dist/components/phone-input/index.js +1 -1
  123. package/dist/components/popover/index.js +1 -1
  124. package/dist/components/popover/popover.d.ts +1 -1
  125. package/dist/components/practice-results/index.js +1 -1
  126. package/dist/components/pregnancy-dating/index.js +1 -1
  127. package/dist/components/product-hub-tray/index.js +1 -1
  128. package/dist/components/public-footer/index.js +1 -1
  129. package/dist/components/public-header/index.js +1 -1
  130. package/dist/components/radiograph-panel/index.js +1 -1
  131. package/dist/components/rich-text-editor/index.js +2 -2
  132. package/dist/components/sheet/index.js +1 -1
  133. package/dist/components/sign-document/index.js +1 -1
  134. package/dist/components/task-editor/index.js +1 -1
  135. package/dist/components/voice-control-panel/index.js +1 -1
  136. package/dist/components/widget-picker/index.js +1 -1
  137. package/dist/i18n/locales/ar.d.ts +14 -0
  138. package/dist/i18n/locales/ar.js +15 -1
  139. package/dist/i18n/locales/de.d.ts +14 -0
  140. package/dist/i18n/locales/de.js +15 -1
  141. package/dist/i18n/locales/el.d.ts +14 -0
  142. package/dist/i18n/locales/el.js +15 -1
  143. package/dist/i18n/locales/en.d.ts +14 -0
  144. package/dist/i18n/locales/en.js +15 -1
  145. package/dist/i18n/locales/es.d.ts +14 -0
  146. package/dist/i18n/locales/es.js +15 -1
  147. package/dist/i18n/locales/fr.d.ts +14 -0
  148. package/dist/i18n/locales/fr.js +15 -1
  149. package/dist/i18n/locales/hi.d.ts +14 -0
  150. package/dist/i18n/locales/hi.js +15 -1
  151. package/dist/i18n/locales/it.d.ts +14 -0
  152. package/dist/i18n/locales/it.js +15 -1
  153. package/dist/i18n/locales/ja.d.ts +14 -0
  154. package/dist/i18n/locales/ja.js +15 -1
  155. package/dist/i18n/locales/nl.d.ts +14 -0
  156. package/dist/i18n/locales/nl.js +15 -1
  157. package/dist/i18n/locales/pl.d.ts +14 -0
  158. package/dist/i18n/locales/pl.js +15 -1
  159. package/dist/i18n/locales/pt.d.ts +14 -0
  160. package/dist/i18n/locales/pt.js +15 -1
  161. package/dist/i18n/locales/ro.d.ts +14 -0
  162. package/dist/i18n/locales/ro.js +15 -1
  163. package/dist/i18n/locales/ru.d.ts +14 -0
  164. package/dist/i18n/locales/ru.js +15 -1
  165. package/dist/i18n/locales/sq.d.ts +14 -0
  166. package/dist/i18n/locales/sq.js +15 -1
  167. package/dist/i18n/locales/sv.d.ts +14 -0
  168. package/dist/i18n/locales/sv.js +15 -1
  169. package/dist/i18n/locales/tr.d.ts +14 -0
  170. package/dist/i18n/locales/tr.js +15 -1
  171. package/dist/i18n/locales/zh.d.ts +14 -0
  172. package/dist/i18n/locales/zh.js +15 -1
  173. package/dist/index.js +194 -193
  174. package/dist/locales/ar.json +15 -1
  175. package/dist/locales/de.json +15 -1
  176. package/dist/locales/el.json +15 -1
  177. package/dist/locales/en.json +15 -1
  178. package/dist/locales/es.json +15 -1
  179. package/dist/locales/fr.json +15 -1
  180. package/dist/locales/hi.json +15 -1
  181. package/dist/locales/it.json +15 -1
  182. package/dist/locales/ja.json +15 -1
  183. package/dist/locales/nl.json +15 -1
  184. package/dist/locales/pl.json +15 -1
  185. package/dist/locales/pt.json +15 -1
  186. package/dist/locales/ro.json +15 -1
  187. package/dist/locales/ru.json +15 -1
  188. package/dist/locales/sq.json +15 -1
  189. package/dist/locales/sv.json +15 -1
  190. package/dist/locales/tr.json +15 -1
  191. package/dist/locales/zh.json +15 -1
  192. package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
  193. package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
  194. package/dist/patterns/alia-assistant/index.d.ts +2 -0
  195. package/dist/patterns/alia-assistant/index.js +6 -5
  196. package/dist/patterns/anamnesis/index.js +1 -1
  197. package/dist/patterns/calendar/index.js +1 -1
  198. package/dist/patterns/help-me-write-templates/index.js +1 -1
  199. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  200. package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +7 -2
  201. package/dist/patterns/registration-form/index.js +1 -1
  202. package/dist/patterns/signature-request/index.js +1 -1
  203. package/dist/patterns/signed-out-frame/index.js +1 -1
  204. package/dist/tokens.css +1 -1
  205. package/package.json +1 -1
  206. package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
  207. package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
  208. package/dist/_chunks/link-2HokYuIi.js +0 -130
  209. package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
  210. package/dist/_chunks/popover-BI3oV3eY.js +0 -305
@@ -1,26 +1,27 @@
1
- import { jsx as s, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as oe, useState as C, useRef as de, useCallback as H, useMemo as le, useImperativeHandle as ce } from "react";
3
- import { c as ue } from "./index-D2ZczOXr.js";
4
- import { useTranslation as me } from "react-i18next";
5
- import * as D from "@radix-ui/react-popover";
6
- import { S as pe } from "./spinner-CoflYlEx.js";
7
- import { u as fe, b as ge, c as he, i as ve, d as be, e as ye, t as Te, D as ke, C as Ce, f as De, h as we } from "./date-picker-variants-BnF-sHzq.js";
8
- import { u as Pe } from "./use-controllable-state-BiY4xTzM.js";
9
- import { u as xe, a as Se } from "./form-field-context-DtiROUJV.js";
10
- import { T as Oe } from "./time-picker-DVfyAR81.js";
11
- import { f as Ne } from "./intl-locale-ySteXlDD.js";
12
- import { u as Ie } from "./registry-DvAUVLHh.js";
13
- import { C as Le } from "./calendar-days-BGWklvE-.js";
14
- import { t as A } from "./format-D-1gTdHF.js";
15
- function K(e, t, r) {
16
- const i = A(e, r == null ? void 0 : r.in);
1
+ import { jsx as r, jsxs as k } from "react/jsx-runtime";
2
+ import { forwardRef as de, useState as D, useRef as le, useCallback as A, useMemo as ce, useImperativeHandle as ue } from "react";
3
+ import { c as me } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as pe } from "react-i18next";
5
+ import * as w from "@radix-ui/react-popover";
6
+ import { u as fe, f as ge } from "./non-modal-tab-exit-j3CPOuE3.js";
7
+ import { S as he } from "./spinner-CoflYlEx.js";
8
+ import { u as ve, b as be, c as ye, i as Te, d as ke, e as De, t as we, D as Ce, C as Pe, f as xe, h as Se } from "./date-picker-variants-BnF-sHzq.js";
9
+ import { u as Oe } from "./use-controllable-state-BiY4xTzM.js";
10
+ import { u as Ne, a as Ie } from "./form-field-context-DtiROUJV.js";
11
+ import { T as Le } from "./time-picker-DVfyAR81.js";
12
+ import { f as Re } from "./intl-locale-ySteXlDD.js";
13
+ import { u as Ve } from "./registry-DvAUVLHh.js";
14
+ import { C as Me } from "./calendar-days-BGWklvE-.js";
15
+ import { t as _ } from "./format-D-1gTdHF.js";
16
+ function H(e, t, s) {
17
+ const i = _(e, s == null ? void 0 : s.in);
17
18
  return i.setHours(t), i;
18
19
  }
19
- function Z(e, t, r) {
20
- const i = A(e, r == null ? void 0 : r.in);
20
+ function Z(e, t, s) {
21
+ const i = _(e, s == null ? void 0 : s.in);
21
22
  return i.setMinutes(t), i;
22
23
  }
23
- const Ve = {
24
+ const Fe = {
24
25
  id: "date-time-picker",
25
26
  // Persisted single datetime (value state + set_datetime) → select_single +
26
27
  // set_value, plus open/close of the combined popover.
@@ -112,18 +113,18 @@ const Ve = {
112
113
  }
113
114
  }
114
115
  };
115
- function Re(e, t) {
116
- var r;
116
+ function Ke(e, t) {
117
+ var s;
117
118
  try {
118
119
  const i = { timeZoneName: "short" };
119
- return t && t !== "local" && (i.timeZone = t === "utc" ? "UTC" : t), ((r = new Intl.DateTimeFormat(e, i).formatToParts(
120
+ return t && t !== "local" && (i.timeZone = t === "utc" ? "UTC" : t), ((s = new Intl.DateTimeFormat(e, i).formatToParts(
120
121
  /* @__PURE__ */ new Date()
121
- ).find((d) => d.type === "timeZoneName")) == null ? void 0 : r.value) ?? "";
122
+ ).find((d) => d.type === "timeZoneName")) == null ? void 0 : s.value) ?? "";
122
123
  } catch {
123
124
  return "";
124
125
  }
125
126
  }
126
- function Me(e) {
127
+ function Ae(e) {
127
128
  if (!e || e === "local") return !1;
128
129
  try {
129
130
  const t = Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -132,7 +133,7 @@ function Me(e) {
132
133
  return !1;
133
134
  }
134
135
  }
135
- const Fe = ue(
136
+ const He = me(
136
137
  [
137
138
  "ds:w-full ds:rounded-[var(--radius-sm)]",
138
139
  "ds:bg-primary ds:text-primary-foreground",
@@ -152,51 +153,51 @@ const Fe = ue(
152
153
  },
153
154
  defaultVariants: { size: "md" }
154
155
  }
155
- ), He = oe(
156
+ ), Ze = de(
156
157
  ({
157
158
  value: e,
158
159
  defaultValue: t,
159
- onChange: r,
160
+ onChange: s,
160
161
  timezone: i,
161
- showTimezone: w,
162
+ showTimezone: C,
162
163
  minDate: d,
163
164
  maxDate: p,
164
- hour12: _,
165
- minuteStep: j = 1,
165
+ hour12: j,
166
+ minuteStep: B = 1,
166
167
  size: f = "md",
167
- disabled: B,
168
+ disabled: E,
168
169
  placeholder: U,
169
170
  className: z,
170
- id: E
171
- }, W) => {
172
- const { t: l, i18n: g } = me("ui"), c = xe(), h = Se(c, E), N = c.disabled || B, q = c.invalid ? "error" : "default", I = fe(g.language), J = ge(), $ = U ?? l("inputs.dateTimePicker.placeholder", "Select date and time"), G = l("inputs.dateTimePicker.apply", "Apply"), Q = l(
171
+ id: W
172
+ }, q) => {
173
+ const { t: l, i18n: g } = pe("ui"), c = Ne(), h = Ie(c, W), N = c.disabled || E, J = c.invalid ? "error" : "default", I = ve(g.language), $ = be(), G = U ?? l("inputs.dateTimePicker.placeholder", "Select date and time"), Q = l("inputs.dateTimePicker.apply", "Apply"), X = l(
173
174
  "inputs.dateTimePicker.outOfRange",
174
175
  "Date/time is out of allowed range"
175
- ), L = (w !== void 0 ? w : Me(i)) ? Re(g.language, i) : "", [X, V] = Pe({
176
+ ), L = (C !== void 0 ? C : Ae(i)) ? Ke(g.language, i) : "", [Y, R] = Oe({
176
177
  value: e,
177
178
  defaultValue: t,
178
- onChange: r
179
- }), n = X, [o, v] = C(n), [b, y] = C(!1), [Y, P] = C(n ?? /* @__PURE__ */ new Date()), [R, u] = C(!1), M = de(null), T = H(
179
+ onChange: s
180
+ }), n = Y, [o, v] = D(n), [b, y] = D(!1), [ee, P] = D(n ?? /* @__PURE__ */ new Date()), [V, u] = D(!1), M = le(null), T = A(
180
181
  (a) => {
181
- V(a);
182
+ R(a);
182
183
  },
183
- [V]
184
- ), ee = he(d, p), x = H(
185
- (a) => !(d && ve(a, d) || p && be(a, p)),
184
+ [R]
185
+ ), te = ye(d, p), x = A(
186
+ (a) => !(d && Te(a, d) || p && ke(a, p)),
186
187
  [d, p]
187
- ), te = (a) => {
188
+ ), F = (a) => {
188
189
  a && (v(n ?? /* @__PURE__ */ new Date()), P(n ?? /* @__PURE__ */ new Date()), u(!1)), y(a);
189
190
  }, ae = (a) => {
190
191
  if (!a) return;
191
192
  const O = o ?? /* @__PURE__ */ new Date(), m = Z(
192
- K(a, O.getHours()),
193
+ H(a, O.getHours()),
193
194
  O.getMinutes()
194
195
  );
195
196
  v(m), u(!x(m));
196
- }, se = (a) => {
197
- const m = Z(K(o ?? /* @__PURE__ */ new Date(), a.hours), a.minutes);
197
+ }, re = (a) => {
198
+ const m = Z(H(o ?? /* @__PURE__ */ new Date(), a.hours), a.minutes);
198
199
  v(m), u(!x(m));
199
- }, re = () => {
200
+ }, se = () => {
200
201
  var a;
201
202
  if (o) {
202
203
  if (!x(o)) {
@@ -205,12 +206,12 @@ const Fe = ue(
205
206
  }
206
207
  T(o), y(!1), (a = M.current) == null || a.focus();
207
208
  }
208
- }, F = n ? new Intl.DateTimeFormat(Ne(g.language), {
209
+ }, K = n ? new Intl.DateTimeFormat(Re(g.language), {
209
210
  calendar: "gregory",
210
211
  dateStyle: "medium",
211
212
  timeStyle: "short",
212
213
  hourCycle: "h23"
213
- }).format(n) : "", ie = l("inputs.datePicker.gridLabel", "Calendar"), ne = l("inputs.timePicker.groupLabel", "Time"), S = le(
214
+ }).format(n) : "", ie = l("inputs.datePicker.gridLabel", "Calendar"), ne = l("inputs.timePicker.groupLabel", "Time"), S = ce(
214
215
  () => ({
215
216
  getValue: () => n,
216
217
  setValue: (a) => T(a),
@@ -224,14 +225,19 @@ const Fe = ue(
224
225
  }),
225
226
  [n, T, b]
226
227
  );
227
- return ce(W, () => S, [S]), Ie(Ve, S, h), /* @__PURE__ */ s(D.Root, { open: b, onOpenChange: te, children: /* @__PURE__ */ k(
228
+ ue(q, () => S, [S]), Ve(Fe, S, h);
229
+ const oe = fe(!0, {
230
+ getAnchor: ge,
231
+ onReturnToTrigger: () => F(!1)
232
+ });
233
+ return /* @__PURE__ */ r(w.Root, { open: b, onOpenChange: F, children: /* @__PURE__ */ k(
228
234
  "div",
229
235
  {
230
236
  className: z,
231
237
  "data-component": "date-time-picker",
232
238
  "data-component-id": h,
233
239
  children: [
234
- /* @__PURE__ */ s(D.Trigger, { asChild: !0, disabled: N, children: /* @__PURE__ */ k(
240
+ /* @__PURE__ */ r(w.Trigger, { asChild: !0, disabled: N, children: /* @__PURE__ */ k(
235
241
  "button",
236
242
  {
237
243
  ref: M,
@@ -242,51 +248,52 @@ const Fe = ue(
242
248
  "aria-invalid": c.invalid || void 0,
243
249
  "aria-haspopup": "dialog",
244
250
  "aria-expanded": b,
245
- className: Te({ size: f, tone: q }),
251
+ className: we({ size: f, tone: J }),
246
252
  children: [
247
- /* @__PURE__ */ s(
253
+ /* @__PURE__ */ r(
248
254
  "span",
249
255
  {
250
- className: F ? "ds:text-foreground" : "ds:text-muted-foreground",
251
- children: F || $
256
+ className: K ? "ds:text-foreground" : "ds:text-muted-foreground",
257
+ children: K || G
252
258
  }
253
259
  ),
254
- /* @__PURE__ */ s(
260
+ /* @__PURE__ */ r(
255
261
  "span",
256
262
  {
257
263
  "aria-hidden": "true",
258
- className: ye({ size: f }),
259
- children: /* @__PURE__ */ s(Le, {})
264
+ className: De({ size: f }),
265
+ children: /* @__PURE__ */ r(Me, {})
260
266
  }
261
267
  )
262
268
  ]
263
269
  }
264
270
  ) }),
265
- /* @__PURE__ */ s(D.Portal, { children: /* @__PURE__ */ s(
266
- D.Content,
271
+ /* @__PURE__ */ r(w.Portal, { children: /* @__PURE__ */ r(
272
+ w.Content,
267
273
  {
268
274
  sideOffset: 4,
269
275
  align: "start",
270
- className: we(),
276
+ onKeyDown: oe,
277
+ className: Se(),
271
278
  children: /* @__PURE__ */ k("div", { className: "ds:flex ds:flex-col ds:sm:flex-row ds:gap-[var(--spacing-md)]", children: [
272
- /* @__PURE__ */ s("div", { role: "region", "aria-label": ie, children: I ? /* @__PURE__ */ s(
273
- ke,
279
+ /* @__PURE__ */ r("div", { role: "region", "aria-label": ie, children: I ? /* @__PURE__ */ r(
280
+ Ce,
274
281
  {
275
282
  mode: "single",
276
283
  selected: o,
277
284
  onSelect: ae,
278
- month: Y,
285
+ month: ee,
279
286
  onMonthChange: P,
280
- disabled: ee,
287
+ disabled: te,
281
288
  locale: I,
282
- labels: J,
289
+ labels: $,
283
290
  dir: g.dir(),
284
291
  showOutsideDays: !0,
285
292
  fixedWeeks: !0,
286
- classNames: De,
287
- components: { Chevron: Ce }
293
+ classNames: xe,
294
+ components: { Chevron: Pe }
288
295
  }
289
- ) : /* @__PURE__ */ s(pe, {}) }),
296
+ ) : /* @__PURE__ */ r(he, {}) }),
290
297
  /* @__PURE__ */ k(
291
298
  "div",
292
299
  {
@@ -294,37 +301,37 @@ const Fe = ue(
294
301
  "aria-label": ne,
295
302
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:sm:border-s ds:sm:border-border ds:sm:ps-[var(--spacing-md)] ds:min-w-[10rem]",
296
303
  children: [
297
- /* @__PURE__ */ s(
298
- Oe,
304
+ /* @__PURE__ */ r(
305
+ Le,
299
306
  {
300
307
  id: `${h}-time`,
301
308
  value: o ? {
302
309
  hours: o.getHours(),
303
310
  minutes: o.getMinutes()
304
311
  } : { hours: 0, minutes: 0 },
305
- onChange: se,
306
- hour12: _,
307
- minuteStep: j,
312
+ onChange: re,
313
+ hour12: j,
314
+ minuteStep: B,
308
315
  size: f
309
316
  }
310
317
  ),
311
- L ? /* @__PURE__ */ s("span", { className: "type-meta ds:text-muted-foreground", children: L }) : null,
312
- R ? /* @__PURE__ */ s(
318
+ L ? /* @__PURE__ */ r("span", { className: "type-meta ds:text-muted-foreground", children: L }) : null,
319
+ V ? /* @__PURE__ */ r(
313
320
  "span",
314
321
  {
315
322
  role: "alert",
316
323
  className: "type-meta ds:text-destructive",
317
- children: Q
324
+ children: X
318
325
  }
319
326
  ) : null,
320
- /* @__PURE__ */ s(
327
+ /* @__PURE__ */ r(
321
328
  "button",
322
329
  {
323
330
  type: "button",
324
- onClick: re,
325
- disabled: !o || R,
326
- className: Fe({ size: f }),
327
- children: G
331
+ onClick: se,
332
+ disabled: !o || V,
333
+ className: He({ size: f }),
334
+ children: Q
328
335
  }
329
336
  )
330
337
  ]
@@ -338,9 +345,9 @@ const Fe = ue(
338
345
  ) });
339
346
  }
340
347
  );
341
- He.displayName = "DateTimePicker";
348
+ Ze.displayName = "DateTimePicker";
342
349
  export {
343
- He as D,
344
- Ve as d
350
+ Ze as D,
351
+ Fe as d
345
352
  };
346
- //# sourceMappingURL=date-time-picker-CLeLKuv9.js.map
353
+ //# sourceMappingURL=date-time-picker-CjxTkblD.js.map
@@ -5,7 +5,7 @@ import { c as z } from "./index-D2ZczOXr.js";
5
5
  import { useTranslation as F } from "react-i18next";
6
6
  import { u as I } from "./use-controllable-state-BiY4xTzM.js";
7
7
  import { u as V } from "./registry-DvAUVLHh.js";
8
- import { u as L } from "./non-modal-tab-exit-D2Bd93Bq.js";
8
+ import { u as L } from "./non-modal-tab-exit-j3CPOuE3.js";
9
9
  import { X as M } from "./x-B5YnXwCz.js";
10
10
  const P = {
11
11
  id: "dialog",
@@ -252,4 +252,4 @@ export {
252
252
  Z as D,
253
253
  P as d
254
254
  };
255
- //# sourceMappingURL=dialog-CUzbnKLw.js.map
255
+ //# sourceMappingURL=dialog-Dn-iQ0Jp.js.map
@@ -6,7 +6,7 @@ import { B as b } from "./badge-hnBt8o7n.js";
6
6
  import { C as B } from "./card-DMO2nkt4.js";
7
7
  import { E as G } from "./empty-state-gNG3qYCX.js";
8
8
  import { P as Y } from "./panel-header-D_mTdhUp.js";
9
- import { P as J } from "./pdf-viewer-C3minW5b.js";
9
+ import { P as J } from "./pdf-viewer-CNQxa4tv.js";
10
10
  import { T as O, b as Q, c as X, a as Z } from "./tabs-I2wf_nC7.js";
11
11
  import { u as ee } from "./registry-DvAUVLHh.js";
12
12
  import { F as ie } from "./file-image-cDgE-BTy.js";
@@ -288,4 +288,4 @@ export {
288
288
  ue as D,
289
289
  de as d
290
290
  };
291
- //# sourceMappingURL=document-preview-uoTekVR7.js.map
291
+ //# sourceMappingURL=document-preview-CHGGG0l_.js.map
@@ -6,7 +6,7 @@ import { u as de } from "./registry-DvAUVLHh.js";
6
6
  import { R as C } from "./radio-BBbMdbE_.js";
7
7
  import { R as z } from "./radio-group-DicxWJXP.js";
8
8
  import { F as w } from "./form-field-Ani72sVY.js";
9
- import { D as T } from "./date-picker-wRAcq2lt.js";
9
+ import { D as T } from "./date-picker-BSZuKo13.js";
10
10
  import { N as Y } from "./number-input-CVwI1ltI.js";
11
11
  import { C as U } from "./card-DMO2nkt4.js";
12
12
  import { B as W } from "./badge-hnBt8o7n.js";
@@ -568,4 +568,4 @@ Ae.displayName = "DueDateCalculator";
568
568
  export {
569
569
  Ae as D
570
570
  };
571
- //# sourceMappingURL=due-date-calculator-CSjklbyw.js.map
571
+ //# sourceMappingURL=due-date-calculator-D_qFUiHp.js.map
@@ -6,7 +6,7 @@ import { A as H } from "./avatar-WZY3eGE7.js";
6
6
  import { B as $ } from "./button-Bn16lcFM.js";
7
7
  import { I as O } from "./icon-button-COX76Jdj.js";
8
8
  import { C } from "./card-DMO2nkt4.js";
9
- import { L as F } from "./link-2HokYuIi.js";
9
+ import { L as F } from "./link-gRw3NtOt.js";
10
10
  import { P as G } from "./panel-header-D_mTdhUp.js";
11
11
  import { T as W } from "./timestamp-DPLDWdxA.js";
12
12
  import { u as X } from "./registry-DvAUVLHh.js";
@@ -274,4 +274,4 @@ function ae({ section: t }) {
274
274
  export {
275
275
  be as E
276
276
  };
277
- //# sourceMappingURL=entity-summary-DcB0fIiv.js.map
277
+ //# sourceMappingURL=entity-summary-CWcCSThK.js.map
@@ -8,7 +8,7 @@ import { S as he } from "./skeleton-B1KTdJ4N.js";
8
8
  import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
9
9
  import { u as wt } from "./registry-DvAUVLHh.js";
10
10
  import { B as Z } from "./button-Bn16lcFM.js";
11
- import { D as m } from "./dialog-CUzbnKLw.js";
11
+ import { D as m } from "./dialog-Dn-iQ0Jp.js";
12
12
  import { a as St, F as xt } from "./file-upload-CxjCs7TX.js";
13
13
  import { S as We } from "./state-backed-text-input-DECQy5aA.js";
14
14
  import { F as Ge } from "./folder-BghC8_S2.js";
@@ -18,7 +18,7 @@ import { F as Ft } from "./file-text-5yv6r2ls.js";
18
18
  import { F as Tt } from "./file-spreadsheet-DmwyfV4O.js";
19
19
  import { F as At } from "./file-BuG1VMAy.js";
20
20
  import { C as Dt } from "./chevron-right-I9AeSxH2.js";
21
- import { D as Fe } from "./data-table-D8fuhqO1.js";
21
+ import { D as Fe } from "./data-table-fAMTeAjM.js";
22
22
  import { A as Rt, a as It } from "./actions-cell-renderer-Dj1ZkvJj.js";
23
23
  import { B as $e } from "./badge-hnBt8o7n.js";
24
24
  import { D as Ue } from "./download-CfYKJO_j.js";
@@ -1744,4 +1744,4 @@ export {
1744
1744
  hn as F,
1745
1745
  Gt as f
1746
1746
  };
1747
- //# sourceMappingURL=file-manager-Cc_uO8r2.js.map
1747
+ //# sourceMappingURL=file-manager-CFsL1KVt.js.map
@@ -6,7 +6,7 @@ import { u as ue } from "./registry-DvAUVLHh.js";
6
6
  import { R as d } from "./radio-BBbMdbE_.js";
7
7
  import { R as S } from "./radio-group-DicxWJXP.js";
8
8
  import { F as k } from "./form-field-Ani72sVY.js";
9
- import { D as _ } from "./date-picker-wRAcq2lt.js";
9
+ import { D as _ } from "./date-picker-BSZuKo13.js";
10
10
  import { S as me } from "./select-Ce5RMk93.js";
11
11
  import { S as ge } from "./switch-D--x7n6h.js";
12
12
  import { C as E } from "./card-DMO2nkt4.js";
@@ -485,4 +485,4 @@ Re.displayName = "GestationalAgeCalculator";
485
485
  export {
486
486
  Re as G
487
487
  };
488
- //# sourceMappingURL=gestational-age-calculator-DqVeJke2.js.map
488
+ //# sourceMappingURL=gestational-age-calculator-CZi43xKG.js.map
@@ -5,7 +5,7 @@ import { useTranslation as J } from "react-i18next";
5
5
  import { u as Q } from "./registry-DvAUVLHh.js";
6
6
  import { F as S } from "./form-field-Ani72sVY.js";
7
7
  import { N as P } from "./number-input-CVwI1ltI.js";
8
- import { D as G } from "./date-time-picker-CLeLKuv9.js";
8
+ import { D as G } from "./date-time-picker-CjxTkblD.js";
9
9
  import { C as B } from "./card-DMO2nkt4.js";
10
10
  import { B as X } from "./badge-hnBt8o7n.js";
11
11
  import { I as ee } from "./insert-result-C1C2OCc3.js";
@@ -309,4 +309,4 @@ export {
309
309
  re as M,
310
310
  oe as a
311
311
  };
312
- //# sourceMappingURL=hcg-doubling-BIYyI2Yo.js.map
312
+ //# sourceMappingURL=hcg-doubling-Ccvh7OaU.js.map
@@ -4,7 +4,7 @@ import { c as K } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as T } from "react-i18next";
5
5
  import { I as _ } from "./icon-button-COX76Jdj.js";
6
6
  import { D as n } from "./dropdown-menu-BQSNVp4x.js";
7
- import { u as H, c as g, L as O, a as j } from "./locale-picker-DfNSdOpy.js";
7
+ import { u as H, c as g, L as O, a as j } from "./locale-picker-BGfrZyTw.js";
8
8
  import { u as N } from "./use-locale-BExNy9Dl.js";
9
9
  import { u as x } from "./use-theme-CAuo6EYT.js";
10
10
  import { u as D } from "./registry-DvAUVLHh.js";
@@ -302,4 +302,4 @@ B.displayName = "HeaderSettings";
302
302
  export {
303
303
  B as H
304
304
  };
305
- //# sourceMappingURL=header-settings-ge_3gYEq.js.map
305
+ //# sourceMappingURL=header-settings-BMcCx2LC.js.map
@@ -2036,7 +2036,7 @@ const ea = fa(
2036
2036
  }
2037
2037
  );
2038
2038
  ea.displayName = "HeatmapLegend";
2039
- const ta = () => import("./data-table-D8fuhqO1.js").then((e) => e.h).then((e) => ({
2039
+ const ta = () => import("./data-table-fAMTeAjM.js").then((e) => e.h).then((e) => ({
2040
2040
  default: e.DataTable
2041
2041
  })), Mr = va(ta);
2042
2042
  function ha() {
@@ -2862,4 +2862,4 @@ export {
2862
2862
  Na as b,
2863
2863
  Ya as h
2864
2864
  };
2865
- //# sourceMappingURL=heatmap-Gf9r7Tn1.js.map
2865
+ //# sourceMappingURL=heatmap-BEeOThkW.js.map
@@ -5,7 +5,7 @@ import { c as ce } from "./index-D2ZczOXr.js";
5
5
  import { A as O } from "./alert-BhCstf2h.js";
6
6
  import { B as N } from "./button-Bn16lcFM.js";
7
7
  import { I as B } from "./icon-button-COX76Jdj.js";
8
- import { D as x } from "./dialog-CUzbnKLw.js";
8
+ import { D as x } from "./dialog-Dn-iQ0Jp.js";
9
9
  import { E as de } from "./editor-overlay-NMxzcO6J.js";
10
10
  import { E as me } from "./empty-state-gNG3qYCX.js";
11
11
  import { F as Z } from "./form-field-Ani72sVY.js";
@@ -744,4 +744,4 @@ export {
744
744
  Le as c,
745
745
  mr as u
746
746
  };
747
- //# sourceMappingURL=help-me-write-templates-fV-Apf72.js.map
747
+ //# sourceMappingURL=help-me-write-templates-BUoYGo6f.js.map