@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 i, jsxs as c, Fragment as L } from "react/jsx-runtime";
2
- import { forwardRef as ne, useState as oe, useCallback as re, useEffect as E, useRef as f, useMemo as se, useImperativeHandle as de } from "react";
1
+ import { jsx as i, jsxs as c, Fragment as E } from "react/jsx-runtime";
2
+ import { forwardRef as oe, useState as re, useCallback as se, useEffect as L, useRef as f, useMemo as de, useImperativeHandle as ce } from "react";
3
3
  import * as N from "@radix-ui/react-popover";
4
- import { c as A } from "./index-D2ZczOXr.js";
4
+ import { u as le, f as pe } from "./non-modal-tab-exit-j3CPOuE3.js";
5
+ import { c as H } from "./index-D2ZczOXr.js";
5
6
  import { useTranslation as U } from "react-i18next";
6
- import { u as ce } from "./use-controllable-state-BiY4xTzM.js";
7
- import { u as le } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
8
- import { I as pe } from "./icon-button-COX76Jdj.js";
9
- import { B as F } from "./button-Bn16lcFM.js";
10
- import { S as H } from "./separator-CYU_bGFn.js";
11
- import { S as b } from "./skeleton-B1KTdJ4N.js";
12
- import { C as fe } from "./counter-WsvRuum1.js";
13
- import { S as me } from "./scroll-area-ZtFCv9K7.js";
14
- import { N as ue } from "./notification-card-BGCIL6Mu.js";
15
- import { u as ge } from "./registry-DvAUVLHh.js";
16
- import { c as ve } from "./createLucideIcon-DhHxpK9K.js";
7
+ import { u as fe } from "./use-controllable-state-BiY4xTzM.js";
8
+ import { u as me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
9
+ import { I as ue } from "./icon-button-COX76Jdj.js";
10
+ import { B as A } from "./button-Bn16lcFM.js";
11
+ import { S as F } from "./separator-CYU_bGFn.js";
12
+ import { S as T } from "./skeleton-B1KTdJ4N.js";
13
+ import { C as ge } from "./counter-WsvRuum1.js";
14
+ import { S as ve } from "./scroll-area-ZtFCv9K7.js";
15
+ import { N as he } from "./notification-card-BGCIL6Mu.js";
16
+ import { u as ye } from "./registry-DvAUVLHh.js";
17
+ import { c as xe } from "./createLucideIcon-DhHxpK9K.js";
17
18
  /**
18
19
  * @license lucide-react v1.22.0 - ISC
19
20
  *
20
21
  * This source code is licensed under the ISC license.
21
22
  * See the LICENSE file in the root directory of this source tree.
22
23
  */
23
- const he = [
24
+ const Ne = [
24
25
  ["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
25
26
  [
26
27
  "path",
@@ -29,7 +30,7 @@ const he = [
29
30
  key: "11g9vi"
30
31
  }
31
32
  ]
32
- ], V = ve("bell", he), ye = {
33
+ ], V = xe("bell", Ne), Te = {
33
34
  id: "notification-tray",
34
35
  capabilities: ["open", "close", "select_single", "dismiss", "navigate"],
35
36
  state: {
@@ -157,7 +158,7 @@ const he = [
157
158
  description: "Stable notification id emitted on each rendered NotificationCard inside the tray."
158
159
  }
159
160
  }
160
- }, xe = A(
161
+ }, be = H(
161
162
  "ds:relative ds:inline-flex ds:items-center",
162
163
  {
163
164
  variants: {
@@ -170,7 +171,7 @@ const he = [
170
171
  size: "md"
171
172
  }
172
173
  }
173
- ), Ne = A(
174
+ ), we = H(
174
175
  [
175
176
  "ds:flex ds:flex-col",
176
177
  "ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
@@ -214,8 +215,8 @@ const he = [
214
215
  size: "md"
215
216
  }
216
217
  }
217
- ), be = "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)] ds:pointer-events-none";
218
- function Te(t, a) {
218
+ ), ze = "ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)] ds:pointer-events-none";
219
+ function Ce(t, a) {
219
220
  return t > 99 ? a : String(t);
220
221
  }
221
222
  function S() {
@@ -225,17 +226,17 @@ function S() {
225
226
  "aria-hidden": "true",
226
227
  className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]",
227
228
  children: [
228
- /* @__PURE__ */ i(b, { variant: "circular", size: "sm" }),
229
+ /* @__PURE__ */ i(T, { variant: "circular", size: "sm" }),
229
230
  /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
230
- /* @__PURE__ */ i(b, { variant: "text", size: "md", width: "70%" }),
231
- /* @__PURE__ */ i(b, { variant: "text", size: "sm", width: "90%" }),
232
- /* @__PURE__ */ i(b, { variant: "text", size: "sm", width: "30%" })
231
+ /* @__PURE__ */ i(T, { variant: "text", size: "md", width: "70%" }),
232
+ /* @__PURE__ */ i(T, { variant: "text", size: "sm", width: "90%" }),
233
+ /* @__PURE__ */ i(T, { variant: "text", size: "sm", width: "30%" })
233
234
  ] })
234
235
  ]
235
236
  }
236
237
  );
237
238
  }
238
- function we() {
239
+ function Se() {
239
240
  const { t } = U("ui");
240
241
  return /* @__PURE__ */ c(
241
242
  "div",
@@ -261,16 +262,16 @@ function we() {
261
262
  }
262
263
  );
263
264
  }
264
- const ze = ne(
265
+ const ke = oe(
265
266
  ({
266
267
  id: t,
267
268
  items: a,
268
- unseenCount: T,
269
+ unseenCount: b,
269
270
  open: W,
270
271
  onOpenChange: Y,
271
272
  onItemClick: m,
272
273
  onDismiss: u,
273
- onMarkRead: h,
274
+ onMarkRead: y,
274
275
  onMarkAllRead: l,
275
276
  loading: k = !1,
276
277
  maxVisible: G,
@@ -282,26 +283,26 @@ const ze = ne(
282
283
  className: X,
283
284
  ...Z
284
285
  }, $) => {
285
- var B;
286
- const { t: s } = U("ui"), [D, y] = ce({
286
+ var q;
287
+ const { t: s } = U("ui"), [D, v] = fe({
287
288
  value: W,
288
289
  defaultValue: !1,
289
290
  onChange: Y
290
- }), z = D ?? !1, [v, R] = oe(
291
+ }), z = D ?? !1, [h, R] = re(
291
292
  () => a.map((e) => ({ item: e, leaving: !1 }))
292
- ), j = re(() => {
293
+ ), j = se(() => {
293
294
  if (typeof window > "u") return 200;
294
295
  const e = window.getComputedStyle(document.documentElement).getPropertyValue("--animation-duration");
295
296
  if (!e) return 200;
296
297
  const n = e.trim(), o = parseFloat(n);
297
298
  return Number.isFinite(o) ? n.endsWith("ms") ? o : o * 1e3 : 200;
298
299
  }, []);
299
- le(() => {
300
+ me(() => {
300
301
  R((e) => {
301
302
  const n = new Set(a.map((r) => r.id)), o = new Set(e.map((r) => r.item.id)), d = e.map((r) => {
302
303
  if (n.has(r.item.id)) {
303
- const P = a.find((ae) => ae.id === r.item.id);
304
- return P ? { item: P, leaving: !1 } : { ...r, leaving: !0 };
304
+ const B = a.find((ne) => ne.id === r.item.id);
305
+ return B ? { item: B, leaving: !1 } : { ...r, leaving: !0 };
305
306
  }
306
307
  return { ...r, leaving: !0 };
307
308
  });
@@ -309,15 +310,15 @@ const ze = ne(
309
310
  o.has(r.id) || d.push({ item: r, leaving: !1 });
310
311
  return d;
311
312
  });
312
- }, [a]), E(() => {
313
- if (!v.some((o) => o.leaving)) return;
313
+ }, [a]), L(() => {
314
+ if (!h.some((o) => o.leaving)) return;
314
315
  const e = j(), n = setTimeout(() => {
315
316
  R((o) => o.filter((d) => !d.leaving));
316
317
  }, e);
317
318
  return () => clearTimeout(n);
318
- }, [v, j]);
319
- const C = f(null), I = f((B = a[0]) == null ? void 0 : B.id);
320
- E(() => {
319
+ }, [h, j]);
320
+ const C = f(null), I = f((q = a[0]) == null ? void 0 : q.id);
321
+ L(() => {
321
322
  var o;
322
323
  const e = (o = a[0]) == null ? void 0 : o.id, n = I.current;
323
324
  if (n && e && n !== e && C.current) {
@@ -332,23 +333,23 @@ const ze = ne(
332
333
  }
333
334
  I.current = e;
334
335
  }, [a, s]);
335
- const x = T ?? 0, M = x > 0 ? s("notificationTray.triggerLabel", {
336
+ const x = b ?? 0, M = x > 0 ? s("notificationTray.triggerLabel", {
336
337
  count: x,
337
338
  defaultValue: "Notifications, {{count}} unread"
338
- }) : s("notificationTray.triggerLabelNone", "Notifications, none unread"), ee = Te(
339
+ }) : s("notificationTray.triggerLabelNone", "Notifications, none unread"), ee = Ce(
339
340
  x,
340
341
  s("notificationTray.badgeCountOverflow", "99+")
341
- ), te = Ne({ size: w }), p = f(a);
342
+ ), te = we({ size: w }), p = f(a);
342
343
  p.current = a;
343
- const K = f(T);
344
- K.current = T;
345
- const _ = f(z);
346
- _.current = z;
347
- const ie = se(
344
+ const K = f(b);
345
+ K.current = b;
346
+ const P = f(z);
347
+ P.current = z;
348
+ const ie = de(
348
349
  () => ({
349
- open: () => y(!0),
350
- close: () => y(!1),
351
- isOpen: () => _.current,
350
+ open: () => v(!0),
351
+ close: () => v(!1),
352
+ isOpen: () => P.current,
352
353
  getItems: () => p.current.map((e) => ({ id: e.id, read: !!e.read })),
353
354
  getUnreadCount: () => K.current ?? p.current.filter((e) => !e.read).length,
354
355
  selectItem: (e) => {
@@ -357,7 +358,7 @@ const ze = ne(
357
358
  },
358
359
  markRead: (e) => {
359
360
  const n = p.current.find((o) => o.id === e);
360
- n && (h == null || h(n));
361
+ n && (y == null || y(n));
361
362
  },
362
363
  dismiss: (e) => {
363
364
  const n = p.current.find((o) => o.id === e);
@@ -367,25 +368,30 @@ const ze = ne(
367
368
  viewAll: () => g == null ? void 0 : g()
368
369
  }),
369
370
  [
370
- y,
371
+ v,
371
372
  m,
372
- h,
373
+ y,
373
374
  u,
374
375
  l,
375
376
  g
376
377
  ]
377
- ), q = f(null);
378
- return de($, () => q.current, []), ge(ye, ie, t), /* @__PURE__ */ i(
378
+ ), _ = f(null);
379
+ ce($, () => _.current, []), ye(Te, ie, t);
380
+ const ae = le(!0, {
381
+ getAnchor: pe,
382
+ onReturnToTrigger: () => v(!1)
383
+ });
384
+ return /* @__PURE__ */ i(
379
385
  "div",
380
386
  {
381
- ref: q,
387
+ ref: _,
382
388
  "data-component": "notification-tray",
383
389
  "data-component-id": t,
384
- className: [xe({ size: w }), X].filter(Boolean).join(" "),
390
+ className: [be({ size: w }), X].filter(Boolean).join(" "),
385
391
  ...Z,
386
- children: /* @__PURE__ */ c(N.Root, { open: z, onOpenChange: y, children: [
392
+ children: /* @__PURE__ */ c(N.Root, { open: z, onOpenChange: v, children: [
387
393
  /* @__PURE__ */ i(N.Trigger, { asChild: !0, children: /* @__PURE__ */ i(
388
- pe,
394
+ ue,
389
395
  {
390
396
  icon: /* @__PURE__ */ i(V, {}),
391
397
  intent: "outline",
@@ -395,13 +401,13 @@ const ze = ne(
395
401
  }
396
402
  ) }),
397
403
  x > 0 ? /* @__PURE__ */ i(
398
- fe,
404
+ ge,
399
405
  {
400
406
  variant: "notification",
401
407
  size: "md",
402
408
  "aria-hidden": "true",
403
409
  "data-testid": "notification-tray-badge",
404
- className: be,
410
+ className: ze,
405
411
  children: ee
406
412
  }
407
413
  ) : null,
@@ -418,6 +424,7 @@ const ze = ne(
418
424
  N.Content,
419
425
  {
420
426
  role: "dialog",
427
+ onKeyDown: ae,
421
428
  "aria-label": s("notificationTray.panelTitle", "Notifications"),
422
429
  side: Q,
423
430
  align: J,
@@ -428,7 +435,7 @@ const ze = ne(
428
435
  /* @__PURE__ */ c("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: [
429
436
  /* @__PURE__ */ i("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: s("notificationTray.panelTitle", "Notifications") }),
430
437
  l && a.some((e) => !e.read) ? /* @__PURE__ */ i(
431
- F,
438
+ A,
432
439
  {
433
440
  intent: "link",
434
441
  size: "sm",
@@ -438,24 +445,24 @@ const ze = ne(
438
445
  }
439
446
  ) : null
440
447
  ] }),
441
- /* @__PURE__ */ i(H, {}),
448
+ /* @__PURE__ */ i(F, {}),
442
449
  /* @__PURE__ */ i(
443
- me,
450
+ ve,
444
451
  {
445
452
  orientation: "vertical",
446
453
  className: "ds:flex-1 ds:sm:flex-none ds:sm:[max-block-size:var(--notification-tray-max-block-size,24rem)]",
447
454
  children: /* @__PURE__ */ i(
448
455
  "div",
449
456
  {
450
- role: k || v.length === 0 ? void 0 : "list",
457
+ role: k || h.length === 0 ? void 0 : "list",
451
458
  "data-max-visible": G,
452
459
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)]",
453
- children: k ? /* @__PURE__ */ c(L, { children: [
460
+ children: k ? /* @__PURE__ */ c(E, { children: [
454
461
  /* @__PURE__ */ i(S, {}),
455
462
  /* @__PURE__ */ i(S, {}),
456
463
  /* @__PURE__ */ i(S, {})
457
- ] }) : v.length === 0 ? /* @__PURE__ */ i(we, {}) : v.map(({ item: e, leaving: n }) => /* @__PURE__ */ i(
458
- ue,
464
+ ] }) : h.length === 0 ? /* @__PURE__ */ i(Se, {}) : h.map(({ item: e, leaving: n }) => /* @__PURE__ */ i(
465
+ he,
459
466
  {
460
467
  item: e,
461
468
  variant: "compact",
@@ -470,10 +477,10 @@ const ze = ne(
470
477
  )
471
478
  }
472
479
  ),
473
- O ? /* @__PURE__ */ c(L, { children: [
474
- /* @__PURE__ */ i(H, {}),
480
+ O ? /* @__PURE__ */ c(E, { children: [
481
+ /* @__PURE__ */ i(F, {}),
475
482
  /* @__PURE__ */ i("div", { className: "ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ i(
476
- F,
483
+ A,
477
484
  {
478
485
  intent: "link",
479
486
  size: "sm",
@@ -491,9 +498,9 @@ const ze = ne(
491
498
  );
492
499
  }
493
500
  );
494
- ze.displayName = "NotificationTray";
501
+ ke.displayName = "NotificationTray";
495
502
  export {
496
- ze as N,
497
- ye as n
503
+ ke as N,
504
+ Te as n
498
505
  };
499
- //# sourceMappingURL=notification-tray-__sJXnsz.js.map
506
+ //# sourceMappingURL=notification-tray-C5VtbGjd.js.map
@@ -8,7 +8,7 @@ import { C as ie, b as te, a as se } from "./collapsible-DVPM46bq.js";
8
8
  import { D as ae } from "./description-list-DkLeHiew.js";
9
9
  import { P as de } from "./panel-header-D_mTdhUp.js";
10
10
  import { u as re } from "./registry-DvAUVLHh.js";
11
- import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-BvZ9luz-.js";
11
+ import { u as ne, F as le, r as oe, P as ce } from "./patient-field-row-DkxY13T6.js";
12
12
  import { C as pe } from "./clipboard-list-rSzfIYZB.js";
13
13
  const me = {
14
14
  id: "patient-details",
@@ -368,4 +368,4 @@ export {
368
368
  ue as P,
369
369
  me as p
370
370
  };
371
- //# sourceMappingURL=patient-details-DsTtjpuX.js.map
371
+ //# sourceMappingURL=patient-details-99kEdtc5.js.map
@@ -5,13 +5,13 @@ import { useTranslation as A } from "react-i18next";
5
5
  import { B as ee } from "./button-Bn16lcFM.js";
6
6
  import { I } from "./icon-button-COX76Jdj.js";
7
7
  import { C as R } from "./checkbox--ndmyokr.js";
8
- import { P as O } from "./popover-BI3oV3eY.js";
8
+ import { P as O } from "./popover-BG75rYjN.js";
9
9
  import { S as te } from "./separator-CYU_bGFn.js";
10
10
  import { S as ae } from "./settings-d25ju_6L.js";
11
11
  import { G as se } from "./grip-vertical-onSb1JXO.js";
12
12
  import { D as $ } from "./description-list-DkLeHiew.js";
13
13
  import { B as j } from "./badge-hnBt8o7n.js";
14
- import { L as re } from "./link-2HokYuIi.js";
14
+ import { L as re } from "./link-gRw3NtOt.js";
15
15
  import { T as ne } from "./transaction-chip-CohY6sTA.js";
16
16
  import { H as ie } from "./hash-CSQ9SChR.js";
17
17
  import { C as oe } from "./calendar-days-BGWklvE-.js";
@@ -19,11 +19,11 @@ import { c as q } from "./createLucideIcon-DhHxpK9K.js";
19
19
  import { U as le } from "./user-B12p7bVF.js";
20
20
  import { C as ce } from "./city-input-BC_nYINn.js";
21
21
  import { C as de } from "./country-select-DF5Bd_mn.js";
22
- import { D as ue } from "./date-picker-wRAcq2lt.js";
22
+ import { D as ue } from "./date-picker-BSZuKo13.js";
23
23
  import { E as me } from "./email-input-C7THAwh2.js";
24
24
  import { F as pe } from "./fiscal-code-input-DesSQ6Fh.js";
25
25
  import { N as fe } from "./number-input-CVwI1ltI.js";
26
- import { P as ge } from "./phone-input-DxkHMYmu.js";
26
+ import { P as ge } from "./phone-input-O9camxkq.js";
27
27
  import { P as he } from "./postal-code-input-CfZOnIkW.js";
28
28
  import { P as ye } from "./province-select-Bd20Z9Br.js";
29
29
  import { S as be } from "./select-Ce5RMk93.js";
@@ -826,4 +826,4 @@ export {
826
826
  Dt as r,
827
827
  St as u
828
828
  };
829
- //# sourceMappingURL=patient-field-row-BvZ9luz-.js.map
829
+ //# sourceMappingURL=patient-field-row-DkxY13T6.js.map
@@ -7,14 +7,14 @@ import { B as D } from "./badge-hnBt8o7n.js";
7
7
  import { I as Ue } from "./icon-button-COX76Jdj.js";
8
8
  import { C as le } from "./card-DMO2nkt4.js";
9
9
  import { K as Be, a as Re } from "./key-value-pair-BNNITp6S.js";
10
- import { L as V } from "./link-2HokYuIi.js";
10
+ import { L as V } from "./link-gRw3NtOt.js";
11
11
  import { S as k } from "./skeleton-B1KTdJ4N.js";
12
12
  import { T as oe } from "./tag-CS5cXpfx.js";
13
13
  import { T as Ke } from "./transaction-chip-CohY6sTA.js";
14
14
  import { T as je } from "./tooltip-Cp-PLePW.js";
15
- import { H as G } from "./hover-card-BnTueNS2.js";
15
+ import { H as G } from "./hover-card-U_ZYoh1n.js";
16
16
  import { i as de } from "./is-safe-url-DkETxeHz.js";
17
- import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-BvZ9luz-.js";
17
+ import { u as qe, r as We, a as He, b as Je, F as Qe, S as Xe, A as Ye, N as Ze } from "./patient-field-row-DkxY13T6.js";
18
18
  import { u as Oe } from "./registry-DvAUVLHh.js";
19
19
  import { M as ea } from "./mail-BqXVF2zH.js";
20
20
  import { P as aa } from "./phone-FceYcIFQ.js";
@@ -548,4 +548,4 @@ export {
548
548
  Ca as P,
549
549
  ma as p
550
550
  };
551
- //# sourceMappingURL=patient-summary-card-9nQWTQf6.js.map
551
+ //# sourceMappingURL=patient-summary-card-opdyfeW2.js.map
@@ -16,7 +16,7 @@ import { U as ie } from "./user-B12p7bVF.js";
16
16
  import { U as le } from "./user-cog-BTn98Arm.js";
17
17
  import { e as Q } from "./entity-card-fpm-KUKc.js";
18
18
  import { A as de } from "./arrow-up-right-C2v_MKsK.js";
19
- import { L as oe } from "./link-2HokYuIi.js";
19
+ import { L as oe } from "./link-gRw3NtOt.js";
20
20
  import { C as $ } from "./credit-card-D9XZsHGA.js";
21
21
  import { C as se } from "./calendar-clock-hbObjfGY.js";
22
22
  import { i as ce } from "./is-safe-url-DkETxeHz.js";
@@ -439,4 +439,4 @@ export {
439
439
  Ce as b,
440
440
  me as p
441
441
  };
442
- //# sourceMappingURL=payment-request-card-CwDpwXUC.js.map
442
+ //# sourceMappingURL=payment-request-card-DAniJNLX.js.map