@alfadocs/ui-kit 1.90.2 → 1.91.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 (162) hide show
  1. package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
  4. package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
  5. package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
  7. package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
  8. package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
  9. package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
  10. package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
  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-CQ_KvEXK.js} +517 -514
  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/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
  42. package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
  43. package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
  44. package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
  45. package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
  46. package/dist/agent-catalog.json +2 -2
  47. package/dist/components/_shared/social-brand-icons.d.ts +29 -0
  48. package/dist/components/agenda-card/index.js +1 -1
  49. package/dist/components/agenda-tray/index.js +1 -1
  50. package/dist/components/appointment-card/index.js +2 -2
  51. package/dist/components/appointment-details-panel/index.js +1 -1
  52. package/dist/components/appointment-peek/index.js +1 -1
  53. package/dist/components/appointment-timeline/index.js +1 -1
  54. package/dist/components/avatar/avatar.d.ts +14 -0
  55. package/dist/components/avatar/index.js +1 -1
  56. package/dist/components/booking/booking-types.d.ts +26 -0
  57. package/dist/components/booking/index.js +1 -1
  58. package/dist/components/booking/slot-load-state.d.ts +11 -0
  59. package/dist/components/calendar/index.js +1 -1
  60. package/dist/components/care-plan-card/index.js +1 -1
  61. package/dist/components/care-plan-header/index.js +1 -1
  62. package/dist/components/chat-message/index.js +1 -1
  63. package/dist/components/clinical-note-card/index.js +1 -1
  64. package/dist/components/contact-card/index.js +1 -1
  65. package/dist/components/contact-profile-card/index.js +1 -1
  66. package/dist/components/data-table/index.js +1 -1
  67. package/dist/components/dependent-selector/index.js +1 -1
  68. package/dist/components/entity-summary/index.js +1 -1
  69. package/dist/components/link/index.js +1 -1
  70. package/dist/components/link/link.d.ts +10 -1
  71. package/dist/components/link/social-url.d.ts +71 -0
  72. package/dist/components/message-card/index.js +1 -1
  73. package/dist/components/message-tray/index.js +1 -1
  74. package/dist/components/nav-grid/index.js +1 -1
  75. package/dist/components/note-timeline/index.js +1 -1
  76. package/dist/components/notes-panel/index.js +1 -1
  77. package/dist/components/operator-hero/index.js +1 -1
  78. package/dist/components/operator-hero/operator-hero.d.ts +6 -0
  79. package/dist/components/patient-details/index.js +1 -1
  80. package/dist/components/patient-summary-card/index.js +1 -1
  81. package/dist/components/patient-table/index.js +1 -1
  82. package/dist/components/payment-card/index.js +1 -1
  83. package/dist/components/practice-profile-hero/index.js +1 -1
  84. package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
  85. package/dist/components/practice-results/index.js +1 -1
  86. package/dist/components/practice-results/practice-results.d.ts +8 -2
  87. package/dist/components/product-hub-tray/index.js +1 -1
  88. package/dist/components/public-footer/index.js +1 -1
  89. package/dist/components/public-footer/public-footer.d.ts +13 -1
  90. package/dist/components/public-footer/socials.d.ts +6 -5
  91. package/dist/components/slot-grid/index.js +1 -1
  92. package/dist/components/slot-grid/slot-grid.d.ts +2 -0
  93. package/dist/components/timeline/index.js +1 -1
  94. package/dist/i18n/config.js +224 -96
  95. package/dist/i18n/locales/ar.d.ts +3 -0
  96. package/dist/i18n/locales/ar.js +4 -1
  97. package/dist/i18n/locales/de.d.ts +3 -0
  98. package/dist/i18n/locales/de.js +4 -1
  99. package/dist/i18n/locales/el.d.ts +3 -0
  100. package/dist/i18n/locales/el.js +4 -1
  101. package/dist/i18n/locales/en.d.ts +3 -0
  102. package/dist/i18n/locales/en.js +3 -0
  103. package/dist/i18n/locales/es.d.ts +3 -0
  104. package/dist/i18n/locales/es.js +4 -1
  105. package/dist/i18n/locales/fr.d.ts +3 -0
  106. package/dist/i18n/locales/fr.js +4 -1
  107. package/dist/i18n/locales/hi.d.ts +3 -0
  108. package/dist/i18n/locales/hi.js +4 -1
  109. package/dist/i18n/locales/it.d.ts +3 -0
  110. package/dist/i18n/locales/it.js +4 -1
  111. package/dist/i18n/locales/ja.d.ts +3 -0
  112. package/dist/i18n/locales/ja.js +4 -1
  113. package/dist/i18n/locales/nl.d.ts +3 -0
  114. package/dist/i18n/locales/nl.js +4 -1
  115. package/dist/i18n/locales/pl.d.ts +3 -0
  116. package/dist/i18n/locales/pl.js +4 -1
  117. package/dist/i18n/locales/pt.d.ts +3 -0
  118. package/dist/i18n/locales/pt.js +4 -1
  119. package/dist/i18n/locales/ro.d.ts +3 -0
  120. package/dist/i18n/locales/ro.js +4 -1
  121. package/dist/i18n/locales/ru.d.ts +3 -0
  122. package/dist/i18n/locales/ru.js +4 -1
  123. package/dist/i18n/locales/sq.d.ts +3 -0
  124. package/dist/i18n/locales/sq.js +4 -1
  125. package/dist/i18n/locales/sv.d.ts +3 -0
  126. package/dist/i18n/locales/sv.js +4 -1
  127. package/dist/i18n/locales/tr.d.ts +3 -0
  128. package/dist/i18n/locales/tr.js +4 -1
  129. package/dist/i18n/locales/zh.d.ts +3 -0
  130. package/dist/i18n/locales/zh.js +4 -1
  131. package/dist/index.js +42 -42
  132. package/dist/locales/ar.json +4 -1
  133. package/dist/locales/de.json +4 -1
  134. package/dist/locales/el.json +4 -1
  135. package/dist/locales/en.json +3 -0
  136. package/dist/locales/es.json +4 -1
  137. package/dist/locales/fr.json +4 -1
  138. package/dist/locales/hi.json +4 -1
  139. package/dist/locales/it.json +4 -1
  140. package/dist/locales/ja.json +4 -1
  141. package/dist/locales/nl.json +4 -1
  142. package/dist/locales/pl.json +4 -1
  143. package/dist/locales/pt.json +4 -1
  144. package/dist/locales/ro.json +4 -1
  145. package/dist/locales/ru.json +4 -1
  146. package/dist/locales/sq.json +4 -1
  147. package/dist/locales/sv.json +4 -1
  148. package/dist/locales/tr.json +4 -1
  149. package/dist/locales/zh.json +4 -1
  150. package/dist/patterns/alia-assistant/index.js +1 -1
  151. package/dist/patterns/calendar/index.js +1 -1
  152. package/dist/patterns/error-page/error-page-english.d.ts +71 -0
  153. package/dist/patterns/error-page/index.js +1 -1
  154. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  155. package/dist/patterns/signature-request/index.js +1 -1
  156. package/dist/patterns/signed-out-frame/index.js +1 -1
  157. package/dist/tokens.css +1 -1
  158. package/package.json +1 -1
  159. package/dist/_chunks/booking-CcE_oviI.js +0 -4373
  160. package/dist/_chunks/error-page-Bhai-spN.js +0 -344
  161. package/dist/_chunks/link-N5_YpLtm.js +0 -138
  162. package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
@@ -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