@alfadocs/ui-kit 1.90.2 → 1.92.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 (171) hide show
  1. package/README.md +24 -0
  2. package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
  3. package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
  5. package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
  6. package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
  7. package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
  8. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
  9. package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
  10. package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
  11. package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +7 -7
  13. package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
  14. package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
  15. package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
  16. package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
  17. package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
  18. package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
  19. package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
  20. package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
  21. package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
  22. package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
  23. package/dist/_chunks/link-DtCfnLnF.js +332 -0
  24. package/dist/_chunks/{link-cell-renderer-CnCgudvq.js → link-cell-renderer-BS3V4LA6.js} +2 -2
  25. package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js → marketplace-app-shell-CJQtx3sv.js} +2 -2
  26. package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
  27. package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
  28. package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
  29. package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
  30. package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
  31. package/dist/_chunks/{notes-panel-Dywo6R55.js → notes-panel-ib7I3aNf.js} +2 -2
  32. package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
  33. package/dist/_chunks/{patient-details-BUr7Oemx.js → patient-details-BjcUpD9S.js} +3 -3
  34. package/dist/_chunks/{patient-field-row-bJk8Q_qr.js → patient-field-row-B0tdiaWi.js} +2 -2
  35. package/dist/_chunks/{patient-summary-card-CCQZ8X37.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
  36. package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
  37. package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
  38. package/dist/_chunks/{practice-results-DQuOfqej.js → practice-results-Bls-mygM.js} +620 -595
  39. package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
  40. package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
  41. package/dist/_chunks/reserved.agent-C1gLyK2R.js +4610 -0
  42. package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
  43. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
  44. package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
  45. package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
  46. package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
  47. package/dist/ag-grid.css +2746 -0
  48. package/dist/agent-catalog.json +16 -2
  49. package/dist/apexcharts.css +40 -0
  50. package/dist/components/_shared/social-brand-icons.d.ts +29 -0
  51. package/dist/components/agenda-card/index.js +1 -1
  52. package/dist/components/agenda-tray/index.js +1 -1
  53. package/dist/components/appointment-card/index.js +2 -2
  54. package/dist/components/appointment-details-panel/index.js +1 -1
  55. package/dist/components/appointment-peek/index.js +1 -1
  56. package/dist/components/appointment-timeline/index.js +1 -1
  57. package/dist/components/avatar/avatar.d.ts +14 -0
  58. package/dist/components/avatar/index.js +1 -1
  59. package/dist/components/booking/booking-types.d.ts +26 -0
  60. package/dist/components/booking/index.d.ts +3 -0
  61. package/dist/components/booking/index.js +6 -4
  62. package/dist/components/booking/reserved.agent.d.ts +4 -0
  63. package/dist/components/booking/reserved.d.ts +9 -6
  64. package/dist/components/booking/slot-load-state.d.ts +11 -0
  65. package/dist/components/calendar/index.js +1 -1
  66. package/dist/components/care-plan-card/index.js +1 -1
  67. package/dist/components/care-plan-header/index.js +1 -1
  68. package/dist/components/chat-message/index.js +1 -1
  69. package/dist/components/clinical-note-card/index.js +1 -1
  70. package/dist/components/contact-card/index.js +1 -1
  71. package/dist/components/contact-profile-card/index.js +1 -1
  72. package/dist/components/data-table/index.js +1 -1
  73. package/dist/components/dependent-selector/index.js +1 -1
  74. package/dist/components/entity-summary/index.js +1 -1
  75. package/dist/components/link/index.js +1 -1
  76. package/dist/components/link/link.d.ts +10 -1
  77. package/dist/components/link/social-url.d.ts +71 -0
  78. package/dist/components/message-card/index.js +1 -1
  79. package/dist/components/message-tray/index.js +1 -1
  80. package/dist/components/nav-grid/index.js +1 -1
  81. package/dist/components/note-timeline/index.js +1 -1
  82. package/dist/components/notes-panel/index.js +1 -1
  83. package/dist/components/operator-hero/index.js +1 -1
  84. package/dist/components/operator-hero/operator-hero.d.ts +6 -0
  85. package/dist/components/patient-details/index.js +1 -1
  86. package/dist/components/patient-summary-card/index.js +1 -1
  87. package/dist/components/patient-table/index.js +1 -1
  88. package/dist/components/payment-card/index.js +1 -1
  89. package/dist/components/practice-profile-hero/index.js +1 -1
  90. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
  91. package/dist/components/practice-results/index.js +1 -1
  92. package/dist/components/practice-results/practice-results.d.ts +9 -3
  93. package/dist/components/product-hub-tray/index.js +1 -1
  94. package/dist/components/public-footer/index.js +1 -1
  95. package/dist/components/public-footer/public-footer.d.ts +13 -1
  96. package/dist/components/public-footer/socials.d.ts +6 -5
  97. package/dist/components/slot-grid/index.js +1 -1
  98. package/dist/components/slot-grid/slot-grid.d.ts +2 -0
  99. package/dist/components/timeline/index.js +1 -1
  100. package/dist/core.css +2 -0
  101. package/dist/fullcalendar.css +56 -0
  102. package/dist/i18n/config.js +225 -97
  103. package/dist/i18n/locales/ar.d.ts +4 -0
  104. package/dist/i18n/locales/ar.js +6 -2
  105. package/dist/i18n/locales/de.d.ts +4 -0
  106. package/dist/i18n/locales/de.js +6 -2
  107. package/dist/i18n/locales/el.d.ts +4 -0
  108. package/dist/i18n/locales/el.js +6 -2
  109. package/dist/i18n/locales/en.d.ts +6 -2
  110. package/dist/i18n/locales/en.js +5 -1
  111. package/dist/i18n/locales/es.d.ts +4 -0
  112. package/dist/i18n/locales/es.js +6 -2
  113. package/dist/i18n/locales/fr.d.ts +4 -0
  114. package/dist/i18n/locales/fr.js +6 -2
  115. package/dist/i18n/locales/hi.d.ts +4 -0
  116. package/dist/i18n/locales/hi.js +6 -2
  117. package/dist/i18n/locales/it.d.ts +4 -0
  118. package/dist/i18n/locales/it.js +6 -2
  119. package/dist/i18n/locales/ja.d.ts +4 -0
  120. package/dist/i18n/locales/ja.js +6 -2
  121. package/dist/i18n/locales/nl.d.ts +4 -0
  122. package/dist/i18n/locales/nl.js +6 -2
  123. package/dist/i18n/locales/pl.d.ts +4 -0
  124. package/dist/i18n/locales/pl.js +6 -2
  125. package/dist/i18n/locales/pt.d.ts +4 -0
  126. package/dist/i18n/locales/pt.js +6 -2
  127. package/dist/i18n/locales/ro.d.ts +4 -0
  128. package/dist/i18n/locales/ro.js +6 -2
  129. package/dist/i18n/locales/ru.d.ts +4 -0
  130. package/dist/i18n/locales/ru.js +6 -2
  131. package/dist/i18n/locales/sq.d.ts +4 -0
  132. package/dist/i18n/locales/sq.js +6 -2
  133. package/dist/i18n/locales/sv.d.ts +4 -0
  134. package/dist/i18n/locales/sv.js +6 -2
  135. package/dist/i18n/locales/tr.d.ts +4 -0
  136. package/dist/i18n/locales/tr.js +6 -2
  137. package/dist/i18n/locales/zh.d.ts +4 -0
  138. package/dist/i18n/locales/zh.js +6 -2
  139. package/dist/index.js +473 -471
  140. package/dist/locales/ar.json +6 -2
  141. package/dist/locales/de.json +6 -2
  142. package/dist/locales/el.json +6 -2
  143. package/dist/locales/en.json +5 -1
  144. package/dist/locales/es.json +6 -2
  145. package/dist/locales/fr.json +6 -2
  146. package/dist/locales/hi.json +6 -2
  147. package/dist/locales/it.json +6 -2
  148. package/dist/locales/ja.json +6 -2
  149. package/dist/locales/nl.json +6 -2
  150. package/dist/locales/pl.json +6 -2
  151. package/dist/locales/pt.json +6 -2
  152. package/dist/locales/ro.json +6 -2
  153. package/dist/locales/ru.json +6 -2
  154. package/dist/locales/sq.json +6 -2
  155. package/dist/locales/sv.json +6 -2
  156. package/dist/locales/tr.json +6 -2
  157. package/dist/locales/zh.json +6 -2
  158. package/dist/patterns/alia-assistant/index.js +1 -1
  159. package/dist/patterns/calendar/index.js +1 -1
  160. package/dist/patterns/error-page/error-page-english.d.ts +71 -0
  161. package/dist/patterns/error-page/index.js +1 -1
  162. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  163. package/dist/patterns/signature-request/index.js +1 -1
  164. package/dist/patterns/signed-out-frame/index.js +1 -1
  165. package/dist/redactor.css +54 -0
  166. package/dist/tokens.css +1 -1
  167. package/package.json +10 -3
  168. package/dist/_chunks/booking-CcE_oviI.js +0 -4373
  169. package/dist/_chunks/error-page-Bhai-spN.js +0 -344
  170. package/dist/_chunks/link-N5_YpLtm.js +0 -138
  171. package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
package/README.md CHANGED
@@ -79,6 +79,30 @@ properties are available everywhere:
79
79
  import '@alfadocs/ui-kit/tokens';
80
80
  ```
81
81
 
82
+ This full stylesheet includes all four third-party bridges. For an app that
83
+ uses only part of the kit, choose core and add the bridges its components need:
84
+
85
+ ```ts
86
+ import '@alfadocs/ui-kit/styles/core.css';
87
+ import '@alfadocs/ui-kit/styles/ag-grid.css'; // DataTable
88
+ ```
89
+
90
+ | Add after core | Components and patterns that need it |
91
+ | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
92
+ | `@alfadocs/ui-kit/styles/ag-grid.css` | `DataTable`, `PatientTable`, `FileManager` (list view), Heatmap's "View as table", and the calendar pattern's sheets |
93
+ | `@alfadocs/ui-kit/styles/redactor.css` | `RichTextEditor` with the host's Redactor runtime, `NotesPanel`, `help-me-write-templates` |
94
+ | `@alfadocs/ui-kit/styles/fullcalendar.css` | `Calendar`, `CalendarWorkspace` and the calendar patterns |
95
+ | `@alfadocs/ui-kit/styles/apexcharts.css` | `Chart`, `Sparkline`, and the anamnesis indicators, compare panel and evolution grid |
96
+
97
+ Anything else that renders one of these components needs the same bridge.
98
+
99
+ Choose either `tokens` or core plus the required bridges. Core keeps all
100
+ tokens, themes, base rules, component utilities and kit font declarations.
101
+ Date pickers and booking components need no bridge. Vendor JavaScript and
102
+ optional peer dependencies are still installed or supplied as before.
103
+ Load core first so it establishes the CSS layer order. If copying built
104
+ stylesheets, keep them beside the `fonts/` directory, as with `tokens.css`.
105
+
82
106
  Then apply a theme class on the root element:
83
107
 
84
108
  ```html
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { forwardRef as h } from "react";
3
3
  import { c as x } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as y } from "react-i18next";
5
- import { A as N } from "./avatar-BPiPL7ND.js";
5
+ import { A as N } from "./avatar-a6042Ox2.js";
6
6
  import { B as C } from "./badge-BUk4RjTS.js";
7
7
  import { i as w } from "./is-safe-url-DkETxeHz.js";
8
8
  import { C as k } from "./chevron-right-I9AeSxH2.js";
@@ -144,4 +144,4 @@ z.displayName = "AgendaCard";
144
144
  export {
145
145
  z as A
146
146
  };
147
- //# sourceMappingURL=agenda-card-BDuvreCe.js.map
147
+ //# sourceMappingURL=agenda-card-BhY342MA.js.map
@@ -5,7 +5,7 @@ import { useTranslation as K } from "react-i18next";
5
5
  import { I as M } from "./icon-button-S8_weU3g.js";
6
6
  import { S as A } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as D } from "./empty-state-DwJ5YNzz.js";
8
- import { A as V } from "./agenda-card-BDuvreCe.js";
8
+ import { A as V } from "./agenda-card-BhY342MA.js";
9
9
  import { u as F } from "./registry-DvAUVLHh.js";
10
10
  import { C as G } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as J } from "./plus-DzMQ_c6b.js";
@@ -212,4 +212,4 @@ export {
212
212
  U as A,
213
213
  L as a
214
214
  };
215
- //# sourceMappingURL=agenda-tray-D-jvptdo.js.map
215
+ //# sourceMappingURL=agenda-tray-BmxBGEci.js.map
@@ -8,10 +8,10 @@ import { S as ee } from "./sheet-uZZXaO_S.js";
8
8
  import { X as Ie } from "./x-B5YnXwCz.js";
9
9
  import { A as ls } from "./astroid-BN4f5VXU.js";
10
10
  import { AliaAsteroidIcon as he } from "../alia-asteroid-icon/index.js";
11
- import { A as te } from "./avatar-BPiPL7ND.js";
11
+ import { A as te } from "./avatar-a6042Ox2.js";
12
12
  import { B as H } from "./button-DohK_Ak_.js";
13
13
  import { C as os } from "./chat-container-baxzy8k8.js";
14
- import { C as cs } from "./chat-message-CmFJdEre.js";
14
+ import { C as cs } from "./chat-message-LRO_6Ee3.js";
15
15
  import { C as Se, P as ms } from "./chat-input-DwQ4_WXK.js";
16
16
  import { S as us } from "./streaming-text-Nb3Q7L94.js";
17
17
  import { a as Re, S as _e } from "./suggestion-chip-BNRWZL51.js";
@@ -1320,4 +1320,4 @@ export {
1320
1320
  Ks as b,
1321
1321
  Gs as c
1322
1322
  };
1323
- //# sourceMappingURL=alia-sidebar-CsTRAxC8.js.map
1323
+ //# sourceMappingURL=alia-sidebar-ovRX_oti.js.map
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { forwardRef as la } from "react";
3
3
  import { c as ca } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as pa } from "react-i18next";
5
- import { A as K } from "./avatar-BPiPL7ND.js";
5
+ import { A as K } from "./avatar-a6042Ox2.js";
6
6
  import { B as t } from "./badge-BUk4RjTS.js";
7
7
  import { T as ua } from "./tag-DOZGz0fT.js";
8
8
  import { T as ma } from "./timestamp-DPLDWdxA.js";
@@ -454,4 +454,4 @@ Pa.displayName = "AppointmentCard";
454
454
  export {
455
455
  Pa as A
456
456
  };
457
- //# sourceMappingURL=appointment-card-5JMWi9_f.js.map
457
+ //# sourceMappingURL=appointment-card-Bstc1p7a.js.map
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
2
  import { forwardRef as P, isValidElement as D } from "react";
3
3
  import { c as V } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as y } from "react-i18next";
5
- import { A as z } from "./avatar-BPiPL7ND.js";
5
+ import { A as z } from "./avatar-a6042Ox2.js";
6
6
  import { D as l } from "./description-list-BxzDN9o2.js";
7
7
  import { H as E } from "./hover-card-CuRIA4wN.js";
8
8
  import { a as H } from "./workflow-status-Dc_CyEz5.js";
@@ -120,4 +120,4 @@ T.displayName = "AppointmentPeek";
120
120
  export {
121
121
  T as A
122
122
  };
123
- //# sourceMappingURL=appointment-peek-39BwVMUf.js.map
123
+ //# sourceMappingURL=appointment-peek-C0kKqnFk.js.map
@@ -2,7 +2,7 @@ import { jsxs as x, jsx as o, Fragment as He } from "react/jsx-runtime";
2
2
  import { forwardRef as Me, useId as Ne, useMemo as j, useRef as y, useState as $, useEffect as Fe, useCallback as b, useImperativeHandle as _e } from "react";
3
3
  import { c as ze } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as Ae } from "react-i18next";
5
- import { A as ne } from "./appointment-card-5JMWi9_f.js";
5
+ import { A as ne } from "./appointment-card-Bstc1p7a.js";
6
6
  import { B as P } from "./button-DohK_Ak_.js";
7
7
  import { B as Be } from "./button-group-ZVb1Q-w4.js";
8
8
  import { D as Ke } from "./date-picker-CdhXlgVI.js";
@@ -449,4 +449,4 @@ export {
449
449
  Ze as A,
450
450
  Oe as a
451
451
  };
452
- //# sourceMappingURL=appointment-timeline-1-Za2miy.js.map
452
+ //# sourceMappingURL=appointment-timeline-rbt9AwHO.js.map
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
5
5
  import { I as M } from "./icon-button-S8_weU3g.js";
6
6
  import { S as q } from "./skeleton-tTWJpvAq.js";
7
7
  import { E as K } from "./empty-state-DwJ5YNzz.js";
8
- import { A as V } from "./appointment-card-5JMWi9_f.js";
8
+ import { A as V } from "./appointment-card-Bstc1p7a.js";
9
9
  import { u as B } from "./registry-DvAUVLHh.js";
10
10
  import { C as D } from "./calendar-days-BGWklvE-.js";
11
11
  import { P as L } from "./plus-DzMQ_c6b.js";
@@ -190,4 +190,4 @@ export {
190
190
  ae as a,
191
191
  _ as b
192
192
  };
193
- //# sourceMappingURL=appointment-tray-Dwc8MSIQ.js.map
193
+ //# sourceMappingURL=appointment-tray-6zd8RLIL.js.map
@@ -1,16 +1,16 @@
1
- import { jsxs as y, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as j, useRef as I, useState as A, useEffect as L } from "react";
3
- import { c as u } from "./index-D2ZczOXr.js";
4
- import { useTranslation as E } from "react-i18next";
5
- import { c as R } from "./compose-refs-C0k0tdqF.js";
6
- import { u as S } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
- function V(a) {
8
- let s = 5381;
9
- for (let e = 0; e < a.length; e++)
10
- s = (s << 5) + s ^ a.charCodeAt(e), s = s >>> 0;
11
- return s;
1
+ import { jsxs as I, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as A, useRef as L, useState as E, useEffect as R } from "react";
3
+ import { c as f } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as S } from "react-i18next";
5
+ import { c as V } from "./compose-refs-C0k0tdqF.js";
6
+ import { u as B } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
7
+ function P(t) {
8
+ let e = 5381;
9
+ for (let s = 0; s < t.length; s++)
10
+ e = (e << 5) + e ^ t.charCodeAt(s), e = e >>> 0;
11
+ return e;
12
12
  }
13
- const v = [
13
+ const g = [
14
14
  "ds:bg-[var(--color-violet-500)]",
15
15
  "ds:bg-[var(--color-violet-600)]",
16
16
  "ds:bg-[var(--color-violet-700)]",
@@ -28,14 +28,14 @@ const v = [
28
28
  "ds:bg-[var(--color-blue-700)]",
29
29
  "ds:bg-[var(--color-grey-900)]"
30
30
  ];
31
- function B(a) {
32
- return v[V(a) % v.length];
31
+ function T(t) {
32
+ return g[P(t) % g.length];
33
33
  }
34
- function T(a) {
35
- const s = (i) => i.trim().split(/\s+/).map((r) => r.replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((r) => new RegExp("\\p{L}", "u").test(r)), e = s(a.replace(/\([^)]*\)|\[[^\]]*\]/g, " ")), t = e.length > 0 ? e : s(a);
36
- return t.length === 0 ? "" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
34
+ function U(t) {
35
+ const e = (i) => i.trim().split(/\s+/).map((r) => r.replace(/^[^\p{L}\p{N}]+|[^\p{L}\p{N}]+$/gu, "")).filter((r) => new RegExp("\\p{L}", "u").test(r)), s = e(t.replace(/\([^)]*\)|\[[^\]]*\]/g, " ")), a = s.length > 0 ? s : e(t);
36
+ return a.length === 0 ? "" : a.length === 1 ? a[0].slice(0, 2).toUpperCase() : (a[0][0] + a[a.length - 1][0]).toUpperCase();
37
37
  }
38
- const U = u(
38
+ const _ = f(
39
39
  [
40
40
  "ds:relative ds:inline-flex ds:shrink-0 ds:select-none ds:items-center ds:justify-center ds:overflow-hidden",
41
41
  // Focus ring — uses design-system tokens so theme overrides (accessible: 3px) apply automatically.
@@ -128,7 +128,7 @@ const U = u(
128
128
  ],
129
129
  defaultVariants: { size: "md", shape: "circle", ratio: "1:1" }
130
130
  }
131
- ), _ = u(
131
+ ), k = f(
132
132
  "ds:absolute ds:inset-0 ds:size-full ds:object-cover",
133
133
  {
134
134
  variants: {
@@ -140,33 +140,33 @@ const U = u(
140
140
  },
141
141
  defaultVariants: { ratio: "1:1" }
142
142
  }
143
- ), k = j(
144
- ({ src: a, name: s, color: e, size: t, shape: i, ratio: r, className: g, ...f }, m) => {
145
- const { t: p } = E("ui"), n = I(null), b = R(m, n), [x, c] = A(!1);
146
- L(() => {
147
- c(!1);
148
- }, [a]), S(() => {
149
- const d = n.current;
150
- d && (e ? d.style.setProperty("--avatar-color-override", e) : d.style.removeProperty("--avatar-color-override"));
151
- }, [e]);
152
- const o = !!a && !x, h = !o && !!s, z = !o && !s, N = e ? "ds:bg-[var(--avatar-color-override)]" : s ? B(s) : "ds:bg-muted", C = U({
153
- size: t,
154
- shape: i,
155
- ratio: r,
156
- className: [N, e || s ? "ds:text-[var(--avatar-initials-foreground,var(--primary-foreground))]" : "ds:text-muted-foreground", g].filter(Boolean).join(" ")
157
- }), w = s ?? p("avatar.placeholder", "User avatar");
158
- return /* @__PURE__ */ y(
143
+ ), G = A(
144
+ ({ src: t, alt: e, name: s, color: a, size: i, shape: r, ratio: n, className: m, ...p }, b) => {
145
+ const { t: h } = S("ui"), c = L(null), x = V(b, c), [z, v] = E(!1);
146
+ R(() => {
147
+ v(!1);
148
+ }, [t]), B(() => {
149
+ const d = c.current;
150
+ d && (a ? d.style.setProperty("--avatar-color-override", a) : d.style.removeProperty("--avatar-color-override"));
151
+ }, [a]);
152
+ const o = !!t && !z, N = !o && !!s, C = !o && !s, w = a ? "ds:bg-[var(--avatar-color-override)]" : s ? T(s) : "ds:bg-muted", y = _({
153
+ size: i,
154
+ shape: r,
155
+ ratio: n,
156
+ className: [w, a || s ? "ds:text-[var(--avatar-initials-foreground,var(--primary-foreground))]" : "ds:text-muted-foreground", m].filter(Boolean).join(" ")
157
+ }), j = s ?? h("avatar.placeholder", "User avatar"), u = o && !!e;
158
+ return /* @__PURE__ */ I(
159
159
  "span",
160
160
  {
161
- ref: b,
162
- role: "img",
163
- "aria-label": w,
161
+ ref: x,
162
+ role: u ? void 0 : "img",
163
+ "aria-label": u ? void 0 : j,
164
164
  "data-component": "avatar",
165
- className: C,
166
- ...f,
165
+ className: y,
166
+ ...p,
167
167
  children: [
168
- (h || o) && !!s && /* @__PURE__ */ l("span", { "aria-hidden": "true", children: T(s) }),
169
- z && /* @__PURE__ */ l(
168
+ (N || o) && !!s && /* @__PURE__ */ l("span", { "aria-hidden": "true", children: U(s) }),
169
+ C && /* @__PURE__ */ l(
170
170
  "svg",
171
171
  {
172
172
  "aria-hidden": "true",
@@ -178,11 +178,11 @@ const U = u(
178
178
  o && /* @__PURE__ */ l(
179
179
  "img",
180
180
  {
181
- src: a,
182
- alt: "",
183
- "aria-hidden": "true",
184
- className: _({ ratio: r }),
185
- onError: () => c(!0)
181
+ src: t,
182
+ alt: e ?? "",
183
+ "aria-hidden": e ? void 0 : "true",
184
+ className: k({ ratio: n }),
185
+ onError: () => v(!0)
186
186
  }
187
187
  )
188
188
  ]
@@ -190,10 +190,10 @@ const U = u(
190
190
  );
191
191
  }
192
192
  );
193
- k.displayName = "Avatar";
193
+ G.displayName = "Avatar";
194
194
  export {
195
- k as A,
196
- T as g,
197
- B as n
195
+ G as A,
196
+ U as g,
197
+ T as n
198
198
  };
199
- //# sourceMappingURL=avatar-BPiPL7ND.js.map
199
+ //# sourceMappingURL=avatar-a6042Ox2.js.map
@@ -5,7 +5,7 @@ import { a as b, T as g, D as S, d as Ce } from "./data-table-CqQgoNsU.js";
5
5
  import { A as ve, a as re } from "./actions-cell-renderer-B1yaOfQM.js";
6
6
  import { S as Te } from "./select-4S-eYZUf.js";
7
7
  import { u as we } from "./registry-DvAUVLHh.js";
8
- import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe, h as Se } from "./link-cell-renderer-CnCgudvq.js";
8
+ import { I as Ne, L as Fe, b as z, a as H, c as $, N as j, d as w, S as N, T as le, D as Q, g as Re, f as Ie, U as ye, e as Pe, h as Se } from "./link-cell-renderer-BS3V4LA6.js";
9
9
  import { T as We } from "./transaction-chip-CohY6sTA.js";
10
10
  import { B as oe } from "./badge-BUk4RjTS.js";
11
11
  import { c as Ae } from "./index-D2ZczOXr.js";
@@ -1179,4 +1179,4 @@ export {
1179
1179
  se as g,
1180
1180
  nt as u
1181
1181
  };
1182
- //# sourceMappingURL=balance-badge-cell-D9VhFp0L.js.map
1182
+ //# sourceMappingURL=balance-badge-cell-BtJvre1-.js.map
@@ -15,7 +15,7 @@ import br from "@fullcalendar/interaction";
15
15
  import { u as Tr } from "./use-prefers-reduced-motion-BMwIQRjB.js";
16
16
  import { u as xr } from "./registry-DvAUVLHh.js";
17
17
  import { w as wr, C as Dr } from "./calendar-event-card-DXAYWH6k.js";
18
- import { A as Cr } from "./avatar-BPiPL7ND.js";
18
+ import { A as Cr } from "./avatar-a6042Ox2.js";
19
19
  import { B as kr } from "./button-DohK_Ak_.js";
20
20
  import { a as je, R as Ar } from "./resource-chip-DB5jDwUO.js";
21
21
  import { T as _e } from "./tooltip-uEBdD1-5.js";
@@ -1469,4 +1469,4 @@ export {
1469
1469
  Er as c,
1470
1470
  be as r
1471
1471
  };
1472
- //# sourceMappingURL=calendar-ClB-jWH1.js.map
1472
+ //# sourceMappingURL=calendar-CmiMS4FJ.js.map
@@ -2,9 +2,9 @@ import { jsxs as p, jsx as t, Fragment as Ue } from "react/jsx-runtime";
2
2
  import { createElement as wo, useContext as ki, createContext as Ii, useState as A, useCallback as Z, useMemo as ee, useRef as F, useEffect as oe, useId as St, forwardRef as Fr, Fragment as To, useLayoutEffect as Ks } from "react";
3
3
  import { useTranslation as $e } from "react-i18next";
4
4
  import { u as Lo } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
5
- import { A as Ao } from "./appointment-timeline-1-Za2miy.js";
5
+ import { A as Ao } from "./appointment-timeline-rbt9AwHO.js";
6
6
  import { a as yi } from "./workflow-status-Dc_CyEz5.js";
7
- import { A as dr, g as Eo } from "./avatar-BPiPL7ND.js";
7
+ import { A as dr, g as Eo } from "./avatar-a6042Ox2.js";
8
8
  import { B as ot } from "./badge-BUk4RjTS.js";
9
9
  import { S as Hn, C as Ci } from "./skeleton-tTWJpvAq.js";
10
10
  import { S as Sr } from "./stethoscope-sZXGC43m.js";
@@ -16,9 +16,9 @@ import { d as vt, c as qs, b as ra } from "./toast-BNoN8Qjh.js";
16
16
  import { T as Ga, a as Si } from "./tooltip-uEBdD1-5.js";
17
17
  import { A as he } from "./alert-9kEwDza3.js";
18
18
  import { B as ge } from "./button-DohK_Ak_.js";
19
- import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-BytPq3Ux.js";
19
+ import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-D8vDg0sg.js";
20
20
  import { V as va } from "./visually-hidden-BHxEUGyT.js";
21
- import { C as Xo } from "./calendar-ClB-jWH1.js";
21
+ import { C as Xo } from "./calendar-CmiMS4FJ.js";
22
22
  import { C as lr } from "./card-BA4Ig_kn.js";
23
23
  import { C as zn } from "./checkbox-a7Sh-dXb.js";
24
24
  import { a as Ua } from "./key-value-pair-BoXOtBL1.js";
@@ -34,7 +34,7 @@ import { D as U } from "./dropdown-menu-D1we7oAY.js";
34
34
  import { F as Ie } from "./form-field-CyHfOVKF.js";
35
35
  import { P as On } from "./popover-Da1ekjV1.js";
36
36
  import { S as Qo, a as ec, E as nc } from "./calendar-event-card-DXAYWH6k.js";
37
- import { A as tc } from "./appointment-peek-39BwVMUf.js";
37
+ import { A as tc } from "./appointment-peek-C0kKqnFk.js";
38
38
  import { H as er } from "./hover-card-CuRIA4wN.js";
39
39
  import { R as xt } from "./radio-BZQs6_36.js";
40
40
  import { R as Sa } from "./radio-group-ChIKyeSJ.js";
@@ -74,7 +74,7 @@ import { createPortal as lc } from "react-dom";
74
74
  import { G as Ya, h as Js, c as uc, A as hc, C as _i } from "./color-picker-AcaWuKah.js";
75
75
  import { s as mc, S as pc } from "./signature-status-chip-pIoQjvH8.js";
76
76
  import { b as gc } from "./appointment-workflow-status-DMjuIK90.js";
77
- import { N as vc } from "./notes-panel-Dywo6R55.js";
77
+ import { N as vc } from "./notes-panel-ib7I3aNf.js";
78
78
  import { C as vs } from "./combobox-D-gpgEDy.js";
79
79
  import { S as fc } from "./state-backed-text-input-Cgh4ms3p.js";
80
80
  import { N as ns } from "./number-input-CVwI1ltI.js";
@@ -10983,4 +10983,4 @@ export {
10983
10983
  hp as r,
10984
10984
  Vn as u
10985
10985
  };
10986
- //# sourceMappingURL=calendar-appointment-editor-dialog-CiAGAX2t.js.map
10986
+ //# sourceMappingURL=calendar-appointment-editor-dialog-sJKLoVJ2.js.map
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { forwardRef as H, useId as P } from "react";
3
3
  import { useTranslation as M } from "react-i18next";
4
4
  import { B as N } from "./badge-BUk4RjTS.js";
5
- import { L as F } from "./link-N5_YpLtm.js";
5
+ import { L as F } from "./link-DtCfnLnF.js";
6
6
  import { P as A } from "./progress-D_g_Sl2g.js";
7
7
  import { T as C } from "./timestamp-DPLDWdxA.js";
8
8
  import { T as L } from "./transaction-chip-CohY6sTA.js";
@@ -253,4 +253,4 @@ export {
253
253
  de as C,
254
254
  Z as c
255
255
  };
256
- //# sourceMappingURL=care-plan-card-BYCPNDvA.js.map
256
+ //# sourceMappingURL=care-plan-card-DD9rEWYN.js.map
@@ -3,7 +3,7 @@ import { forwardRef as F, useId as M } from "react";
3
3
  import { useTranslation as U } from "react-i18next";
4
4
  import { B as P } from "./badge-BUk4RjTS.js";
5
5
  import { a as G } from "./key-value-pair-BoXOtBL1.js";
6
- import { L as O } from "./link-N5_YpLtm.js";
6
+ import { L as O } from "./link-DtCfnLnF.js";
7
7
  import { S as $ } from "./separator-CYU_bGFn.js";
8
8
  import { T as A } from "./timestamp-DPLDWdxA.js";
9
9
  import { u as q } from "./registry-DvAUVLHh.js";
@@ -195,4 +195,4 @@ export {
195
195
  ee as C,
196
196
  X as c
197
197
  };
198
- //# sourceMappingURL=care-plan-header-BzsAg6oY.js.map
198
+ //# sourceMappingURL=care-plan-header-CXUJQt8Q.js.map
@@ -3,7 +3,7 @@ import { forwardRef as T, useMemo as z, Fragment as l } from "react";
3
3
  import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as B } from "react-i18next";
5
5
  import { B as F } from "./button-DohK_Ak_.js";
6
- import { A as I } from "./avatar-BPiPL7ND.js";
6
+ import { A as I } from "./avatar-a6042Ox2.js";
7
7
  import { T as A } from "./timestamp-DPLDWdxA.js";
8
8
  import { s as M, C as S } from "./code-block-BTsCXVGI.js";
9
9
  import { s as V } from "./safe-image-src-DstKgCo7.js";
@@ -236,4 +236,4 @@ J.displayName = "ChatMessage";
236
236
  export {
237
237
  J as C
238
238
  };
239
- //# sourceMappingURL=chat-message-CmFJdEre.js.map
239
+ //# sourceMappingURL=chat-message-LRO_6Ee3.js.map
@@ -2,12 +2,12 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as T, useId as P, useState as k, useMemo as ee } from "react";
3
3
  import { c as z } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as se } from "react-i18next";
5
- import { A as ae } from "./avatar-BPiPL7ND.js";
5
+ import { A as ae } from "./avatar-a6042Ox2.js";
6
6
  import { B as b } from "./badge-BUk4RjTS.js";
7
7
  import { C as S } from "./card-BA4Ig_kn.js";
8
8
  import { T as B } from "./timestamp-DPLDWdxA.js";
9
9
  import { SafeHtml as ie } from "../safe-html/index.js";
10
- import { n as te, P as I, F as O, N as re } from "./note-attachment-DIlIQ7JF.js";
10
+ import { n as te, P as I, F as O, N as re } from "./note-attachment-cnj2JRrg.js";
11
11
  import { u as de } from "./use-clamp-overflow-DQE2kwZ9.js";
12
12
  import { u as ne } from "./registry-DvAUVLHh.js";
13
13
  const oe = {
@@ -337,4 +337,4 @@ export {
337
337
  ue as C,
338
338
  oe as c
339
339
  };
340
- //# sourceMappingURL=clinical-note-card-Caidqcwa.js.map
340
+ //# sourceMappingURL=clinical-note-card-Cut2lNmu.js.map
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as r, Fragment as b } from "react";
3
3
  import { useTranslation as k } from "react-i18next";
4
4
  import { C as o } from "./card-BA4Ig_kn.js";
5
- import { L as p } from "./link-N5_YpLtm.js";
5
+ import { L as p } from "./link-DtCfnLnF.js";
6
6
  import { M as v } from "./map-pin-BaY37-Km.js";
7
7
  function L(s) {
8
8
  return `tel:${s.replace(/\(0\)/g, "").replace(/[^\d+]/g, "")}`;
@@ -118,4 +118,4 @@ const M = Object.assign(f, {
118
118
  export {
119
119
  M as C
120
120
  };
121
- //# sourceMappingURL=contact-card-Czu60UvU.js.map
121
+ //# sourceMappingURL=contact-card-ClvEDM9e.js.map