@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.
- package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
- package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
- package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
- package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
- package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
- package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
- package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
- package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
- package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
- package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +7 -7
- package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
- package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
- package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
- package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
- package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
- package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
- package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
- package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
- package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
- package/dist/_chunks/link-DtCfnLnF.js +332 -0
- package/dist/_chunks/{link-cell-renderer-CnCgudvq.js → link-cell-renderer-BS3V4LA6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js → marketplace-app-shell-CJQtx3sv.js} +2 -2
- package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
- package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
- package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
- package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
- package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
- package/dist/_chunks/{notes-panel-Dywo6R55.js → notes-panel-ib7I3aNf.js} +2 -2
- package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
- package/dist/_chunks/{patient-details-BUr7Oemx.js → patient-details-BjcUpD9S.js} +3 -3
- package/dist/_chunks/{patient-field-row-bJk8Q_qr.js → patient-field-row-B0tdiaWi.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CCQZ8X37.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
- package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
- package/dist/_chunks/{practice-results-DQuOfqej.js → practice-results-CQ_KvEXK.js} +517 -514
- package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
- package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
- package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
- package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
- package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
- package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/social-brand-icons.d.ts +29 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +26 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/slot-load-state.d.ts +11 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +10 -1
- package/dist/components/link/social-url.d.ts +71 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +6 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +8 -2
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +13 -1
- package/dist/components/public-footer/socials.d.ts +6 -5
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/slot-grid/slot-grid.d.ts +2 -0
- package/dist/components/timeline/index.js +1 -1
- package/dist/i18n/config.js +224 -96
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.js +4 -1
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.js +4 -1
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.js +4 -1
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.js +4 -1
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.js +4 -1
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.js +4 -1
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.js +4 -1
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.js +4 -1
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.js +4 -1
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.js +4 -1
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.js +4 -1
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.js +4 -1
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.js +4 -1
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.js +4 -1
- package/dist/index.js +42 -42
- package/dist/locales/ar.json +4 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/el.json +4 -1
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +4 -1
- package/dist/locales/fr.json +4 -1
- package/dist/locales/hi.json +4 -1
- package/dist/locales/it.json +4 -1
- package/dist/locales/ja.json +4 -1
- package/dist/locales/nl.json +4 -1
- package/dist/locales/pl.json +4 -1
- package/dist/locales/pt.json +4 -1
- package/dist/locales/ro.json +4 -1
- package/dist/locales/ru.json +4 -1
- package/dist/locales/sq.json +4 -1
- package/dist/locales/sv.json +4 -1
- package/dist/locales/tr.json +4 -1
- package/dist/locales/zh.json +4 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page-english.d.ts +71 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-CcE_oviI.js +0 -4373
- package/dist/_chunks/error-page-Bhai-spN.js +0 -344
- package/dist/_chunks/link-N5_YpLtm.js +0 -138
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
193
|
+
//# sourceMappingURL=appointment-tray-6zd8RLIL.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { c as
|
|
6
|
-
import { u as
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
for (let
|
|
10
|
-
|
|
11
|
-
return
|
|
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
|
|
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
|
|
32
|
-
return
|
|
31
|
+
function T(t) {
|
|
32
|
+
return g[P(t) % g.length];
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
return
|
|
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
|
|
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
|
-
),
|
|
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
|
-
),
|
|
144
|
-
({ src:
|
|
145
|
-
const { t:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, [
|
|
149
|
-
const d =
|
|
150
|
-
d && (
|
|
151
|
-
}, [
|
|
152
|
-
const o = !!
|
|
153
|
-
size:
|
|
154
|
-
shape:
|
|
155
|
-
ratio:
|
|
156
|
-
className: [
|
|
157
|
-
}),
|
|
158
|
-
return /* @__PURE__ */
|
|
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:
|
|
162
|
-
role: "img",
|
|
163
|
-
"aria-label":
|
|
161
|
+
ref: x,
|
|
162
|
+
role: u ? void 0 : "img",
|
|
163
|
+
"aria-label": u ? void 0 : j,
|
|
164
164
|
"data-component": "avatar",
|
|
165
|
-
className:
|
|
166
|
-
...
|
|
165
|
+
className: y,
|
|
166
|
+
...p,
|
|
167
167
|
children: [
|
|
168
|
-
(
|
|
169
|
-
|
|
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:
|
|
182
|
-
alt: "",
|
|
183
|
-
"aria-hidden": "true",
|
|
184
|
-
className:
|
|
185
|
-
onError: () =>
|
|
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
|
-
|
|
193
|
+
G.displayName = "Avatar";
|
|
194
194
|
export {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
G as A,
|
|
196
|
+
U as g,
|
|
197
|
+
T as n
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=avatar-
|
|
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-
|
|
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-
|
|
1182
|
+
//# sourceMappingURL=balance-badge-cell-BtJvre1-.js.map
|