@alfadocs/ui-kit 0.69.0 → 0.70.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-BxSFkqgY.js → agenda-card-BQ-IKAru.js} +2 -2
- package/dist/_chunks/{agenda-tray-g0kg7HwB.js → agenda-tray-CGXRk58j.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-CXlsNX1c.js → ai-consent-banner-Be-h9mRI.js} +3 -3
- package/dist/_chunks/ai-tools-rail-B5NEghsp.js +511 -0
- package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
- package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
- package/dist/_chunks/anatomy-scheme-CJB6dI6p.js +2445 -0
- package/dist/_chunks/annotation-marker-qt5R9WZX.js +120 -0
- package/dist/_chunks/{antenatal-schedule-timeline-35ebkcZT.js → antenatal-schedule-timeline-CwXrQRm1.js} +2 -2
- package/dist/_chunks/appointment-card-C06aZqA7.js +310 -0
- package/dist/_chunks/appointment-timeline-BJM0S_Fg.js +386 -0
- package/dist/_chunks/appointment-tray-DRRw5ROi.js +193 -0
- package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-Cpdk5qpQ.js} +2 -2
- package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
- package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-DnYWtZa_.js} +2 -2
- package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
- package/dist/_chunks/{booking-C3VqFReX.js → booking-DUBI0oqt.js} +4 -4
- package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-C5sTfY9G.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CXnxGCWA.js} +5 -5
- package/dist/_chunks/care-plan-header-BUwqDTtz.js +206 -0
- package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
- package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
- package/dist/_chunks/control-room-rail-Y8ryLYsP.js +229 -0
- package/dist/_chunks/{cycle-calculator-DmRGJNaT.js → cycle-calculator-CCmPwcBl.js} +2 -2
- package/dist/_chunks/{dependent-selector-CG_FOHya.js → dependent-selector-DUV4thxX.js} +2 -2
- package/dist/_chunks/{document-scanner-CTubA0-N.js → document-scanner-C_AxLooF.js} +3 -3
- package/dist/_chunks/{due-date-calculator-BTmsIQqD.js → due-date-calculator-Brdj-euS.js} +3 -3
- package/dist/_chunks/editable-currency-cell-renderer-C9twtALM.js +328 -0
- package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
- package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-9_62gY7l.js} +38 -20
- package/dist/_chunks/entity-summary-BxRjFh_4.js +138 -0
- package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
- package/dist/_chunks/field-value-NXYczdpO.js +415 -0
- package/dist/_chunks/{file-upload-5ScQd4fE.js → file-upload-DwZcAK8D.js} +2 -1
- package/dist/_chunks/{freemium-paywall-DZ2mBS3w.js → freemium-paywall-WYlNO7yT.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BleUdhbI.js → gestational-age-calculator-CF2ISaYQ.js} +3 -3
- package/dist/_chunks/hash-CysBBS_N.js +17 -0
- package/dist/_chunks/{hcg-doubling-CnjDXX6U.js → hcg-doubling-C7bmuaU3.js} +2 -2
- package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-CTXqtXV-.js} +715 -592
- package/dist/_chunks/lock-CKOIn0IK.js +15 -0
- package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-Skhfp6vK.js} +3 -3
- package/dist/_chunks/notes-panel-ay8_lPrA.js +158 -0
- package/dist/_chunks/{notification-card-BiESdm8q.js → notification-card-D2jiKSJJ.js} +27 -23
- package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-AEun6DN2.js} +2 -2
- package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-CR0Rqh4-.js} +3 -3
- package/dist/_chunks/patient-details-Dlhqb5ig.js +675 -0
- package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-Be6cLrHR.js} +2 -2
- package/dist/_chunks/patient-summary-card-WySCMwwA.js +437 -0
- package/dist/_chunks/patient-table-CHxf3Oqk.js +1110 -0
- package/dist/_chunks/{payment-form-DvjwYVIT.js → payment-form-CxqIXqw7.js} +2 -2
- package/dist/_chunks/{payment-request-card-DioWKBUq.js → payment-request-card-BcZJwu9z.js} +125 -136
- package/dist/_chunks/{pdf-viewer-D6BPfW2D.js → pdf-viewer-QfebdLOd.js} +192 -214
- package/dist/_chunks/{periodontal-chart-card-BuDEMbHE.js → periodontal-chart-card-hRRJY1NN.js} +2 -2
- package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-C6qDfxos.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CRVWswD-.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-CAX-C3g3.js +558 -0
- package/dist/_chunks/{rich-text-editor-BsV7zUdg.js → rich-text-editor-DlCqPixb.js} +410 -394
- package/dist/_chunks/{sign-document-B4DeRhTe.js → sign-document-By6hMOra.js} +2 -2
- package/dist/_chunks/{stepper-accordion-Dki6r9ZE.js → stepper-accordion-DC-H-8v4.js} +38 -48
- package/dist/_chunks/tab-bar-Bv9nGNdO.js +262 -0
- package/dist/_chunks/tooth-scheme-BhQoPNBD.js +2131 -0
- package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
- package/dist/_chunks/use-clamp-overflow-DQE2kwZ9.js +20 -0
- package/dist/_chunks/use-overflow-collapse-BIOzKbni.js +32 -0
- package/dist/_chunks/use-persistent-state-nZwZAnE9.js +24 -0
- package/dist/_chunks/{warning-stack-BsgaEbL8.js → warning-stack--sTrrBDA.js} +86 -101
- package/dist/_chunks/{workflow-map-Bdam9pGp.js → workflow-map-Dy8mLCqF.js} +3 -3
- package/dist/_chunks/zoom-out-CgVtf2Wx.js +29 -0
- package/dist/agent/index.js +5 -4
- package/dist/agent/types.d.ts +19 -2
- package/dist/agent-catalog.json +1253 -86
- package/dist/agent-i18n/en.json +108 -6
- package/dist/components/_shared/entity-card/entity-card.d.ts +6 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/field-value.d.ts +21 -0
- package/dist/components/_shared/field-visibility-cog.d.ts +20 -0
- package/dist/components/_shared/field-visibility.d.ts +36 -0
- package/dist/components/_shared/patient-fields.d.ts +119 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +75 -0
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/alert/alert.d.ts +5 -0
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anatomy-scheme/anatomy-face-paths.d.ts +15 -0
- package/dist/components/anatomy-scheme/anatomy-muscle-paths.d.ts +20 -0
- package/dist/components/anatomy-scheme/anatomy-scheme-data.d.ts +121 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.agent.d.ts +6 -0
- package/dist/components/anatomy-scheme/anatomy-scheme.d.ts +69 -0
- package/dist/components/anatomy-scheme/index.d.ts +6 -0
- package/dist/components/anatomy-scheme/index.js +17 -0
- package/dist/components/annotation-marker/annotation-marker.d.ts +33 -0
- package/dist/components/annotation-marker/index.d.ts +3 -0
- package/dist/components/annotation-marker/index.js +7 -0
- package/dist/components/appointment-card/appointment-card.d.ts +25 -1
- package/dist/components/appointment-card/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.agent.d.ts +4 -0
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +66 -0
- package/dist/components/appointment-timeline/index.d.ts +4 -0
- package/dist/components/appointment-timeline/index.js +6 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +6 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/care-plan-header.agent.d.ts +4 -0
- package/dist/components/care-plan-header/care-plan-header.d.ts +100 -0
- package/dist/components/care-plan-header/index.d.ts +4 -0
- package/dist/components/care-plan-header/index.js +6 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +21 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +53 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
- package/dist/components/control-room-rail/index.d.ts +5 -0
- package/dist/components/control-room-rail/index.js +9 -0
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +18 -0
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/index.js +32 -31
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +43 -0
- package/dist/components/entity-summary/index.d.ts +3 -0
- package/dist/components/entity-summary/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/notes-panel/index.d.ts +3 -0
- package/dist/components/notes-panel/index.js +5 -0
- package/dist/components/notes-panel/notes-panel.d.ts +64 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.d.ts +5 -0
- package/dist/components/patient-details/index.js +6 -0
- package/dist/components/patient-details/patient-details.agent.d.ts +4 -0
- package/dist/components/patient-details/patient-details.d.ts +96 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +40 -1
- package/dist/components/patient-table/columns.d.ts +69 -40
- package/dist/components/patient-table/index.d.ts +2 -6
- package/dist/components/patient-table/index.js +8 -9
- package/dist/components/patient-table/patient-table.d.ts +38 -4
- package/dist/components/patient-table/types.d.ts +52 -2
- package/dist/components/patient-table/use-responsive-columns.d.ts +8 -6
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/radiograph-panel/index.d.ts +4 -0
- package/dist/components/radiograph-panel/index.js +7 -0
- package/dist/components/radiograph-panel/radiograph-panel.agent.d.ts +13 -0
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +36 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +18 -1
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.js +30 -23
- package/dist/components/tooth-scheme/tooth-data.d.ts +112 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -2
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +75 -11
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts +10 -7
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +24 -22
- package/dist/hooks/use-clamp-overflow.d.ts +19 -0
- package/dist/hooks/use-overflow-collapse.d.ts +46 -0
- package/dist/hooks/use-persistent-state.d.ts +7 -1
- package/dist/hooks/use-scroll-overflow.d.ts +36 -0
- package/dist/i18n/locales/ar.d.ts +308 -24
- package/dist/i18n/locales/ar.js +322 -27
- package/dist/i18n/locales/de.d.ts +308 -24
- package/dist/i18n/locales/de.js +322 -27
- package/dist/i18n/locales/el.d.ts +308 -24
- package/dist/i18n/locales/el.js +322 -27
- package/dist/i18n/locales/en.d.ts +309 -32
- package/dist/i18n/locales/en.js +323 -35
- package/dist/i18n/locales/es.d.ts +308 -24
- package/dist/i18n/locales/es.js +322 -27
- package/dist/i18n/locales/fr.d.ts +308 -24
- package/dist/i18n/locales/fr.js +322 -27
- package/dist/i18n/locales/hi.d.ts +308 -24
- package/dist/i18n/locales/hi.js +322 -27
- package/dist/i18n/locales/it.d.ts +308 -24
- package/dist/i18n/locales/it.js +322 -27
- package/dist/i18n/locales/ja.d.ts +308 -24
- package/dist/i18n/locales/ja.js +322 -27
- package/dist/i18n/locales/nl.d.ts +308 -24
- package/dist/i18n/locales/nl.js +322 -27
- package/dist/i18n/locales/pl.d.ts +308 -24
- package/dist/i18n/locales/pl.js +322 -27
- package/dist/i18n/locales/pt.d.ts +308 -24
- package/dist/i18n/locales/pt.js +322 -27
- package/dist/i18n/locales/ro.d.ts +308 -24
- package/dist/i18n/locales/ro.js +322 -27
- package/dist/i18n/locales/ru.d.ts +308 -24
- package/dist/i18n/locales/ru.js +322 -27
- package/dist/i18n/locales/sq.d.ts +308 -24
- package/dist/i18n/locales/sq.js +322 -27
- package/dist/i18n/locales/sv.d.ts +308 -24
- package/dist/i18n/locales/sv.js +322 -27
- package/dist/i18n/locales/tr.d.ts +308 -24
- package/dist/i18n/locales/tr.js +322 -27
- package/dist/i18n/locales/zh.d.ts +308 -24
- package/dist/i18n/locales/zh.js +322 -27
- package/dist/index.js +672 -623
- package/dist/locales/ar.json +311 -27
- package/dist/locales/de.json +311 -27
- package/dist/locales/el.json +311 -27
- package/dist/locales/en.json +311 -27
- package/dist/locales/es.json +311 -27
- package/dist/locales/fr.json +311 -27
- package/dist/locales/hi.json +311 -27
- package/dist/locales/it.json +311 -27
- package/dist/locales/ja.json +311 -27
- package/dist/locales/nl.json +311 -27
- package/dist/locales/pl.json +311 -27
- package/dist/locales/pt.json +311 -27
- package/dist/locales/ro.json +311 -27
- package/dist/locales/ru.json +311 -27
- package/dist/locales/sq.json +311 -27
- package/dist/locales/sv.json +311 -27
- package/dist/locales/tr.json +311 -27
- package/dist/locales/zh.json +311 -27
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +37 -1
- package/dist/_chunks/ai-tools-rail-BA_sqy1A.js +0 -373
- package/dist/_chunks/appointment-tray-CZtvtaH-.js +0 -431
- package/dist/_chunks/clinical-note-card-DqQYf_D4.js +0 -333
- package/dist/_chunks/editable-currency-cell-renderer-kgqp_mIw.js +0 -448
- package/dist/_chunks/email-input-B_Y55f5G.js +0 -396
- package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
- package/dist/_chunks/patient-table-CDuosVru.js +0 -889
- package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
- package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as va, useId as ba, useMemo as xa } from "react";
|
|
3
|
-
import { c as Sa } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as Ca } from "react-i18next";
|
|
5
|
-
import { A as q } from "./avatar-BNQNhoyL.js";
|
|
6
|
-
import { B as w } from "./badge-CqGsX32l.js";
|
|
7
|
-
import { C as H } from "./card-DPmk26CL.js";
|
|
8
|
-
import { K as Na, a as Aa } from "./key-value-pair-BrgbMfbF.js";
|
|
9
|
-
import { L as S } from "./link-DrD_cRUg.js";
|
|
10
|
-
import { S as C } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { T as O } from "./tag-BQXwuJq1.js";
|
|
12
|
-
import { T as Va } from "./transaction-chip-DK84XCBU.js";
|
|
13
|
-
import { i as W } from "./is-safe-url-DkETxeHz.js";
|
|
14
|
-
import { u as ka } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { M as La } from "./mail-C8irm52s.js";
|
|
16
|
-
import { P as Ma } from "./phone-Bi5yUm4I.js";
|
|
17
|
-
import { M as Pa } from "./map-pin-B8STOPMJ.js";
|
|
18
|
-
import { S as wa } from "./shield-check-BjCGH_Sr.js";
|
|
19
|
-
import { S as $a } from "./sparkles-CuYXqQLg.js";
|
|
20
|
-
import { U as Ea } from "./users-MBVtUzwd.js";
|
|
21
|
-
import { c as J } from "./createLucideIcon-CrFbzy84.js";
|
|
22
|
-
/**
|
|
23
|
-
* @license lucide-react v1.8.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
const Da = [
|
|
29
|
-
[
|
|
30
|
-
"path",
|
|
31
|
-
{
|
|
32
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
33
|
-
key: "1oefj6"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
37
|
-
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
38
|
-
], Ta = J("file-exclamation-point", Da);
|
|
39
|
-
/**
|
|
40
|
-
* @license lucide-react v1.8.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
const Ga = [
|
|
46
|
-
[
|
|
47
|
-
"path",
|
|
48
|
-
{
|
|
49
|
-
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
50
|
-
key: "18887p"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
["path", { d: "M12 15h.01", key: "q59x07" }],
|
|
54
|
-
["path", { d: "M12 7v4", key: "xawao1" }]
|
|
55
|
-
], _a = J("message-square-warning", Ga), Fa = {
|
|
56
|
-
id: "patient-summary-card",
|
|
57
|
-
// Presentational, read-only card — the only handle method is a structural
|
|
58
|
-
// getSummary projection; there is no view-switching action. The previous
|
|
59
|
-
// `view_change` capability was spurious and is removed.
|
|
60
|
-
capabilities: [],
|
|
61
|
-
state: {
|
|
62
|
-
summary: {
|
|
63
|
-
type: "{ id?: string; hasUnpaid: boolean; unsignedDocumentsCount: number; highlightedAnamnesisCount: number; aiConsentGranted: boolean }",
|
|
64
|
-
descriptionKey: "ui.agent.patientSummaryCard.state.summary",
|
|
65
|
-
description: "Structural summary of the patient card — identifiers, counts, and consent flags only. Never patient identity or clinical content.",
|
|
66
|
-
read: (r) => r.getSummary()
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
actions: {},
|
|
70
|
-
domHooks: {
|
|
71
|
-
root: {
|
|
72
|
-
attr: "data-component",
|
|
73
|
-
value: "patient-summary-card",
|
|
74
|
-
description: "Marks the PatientSummaryCard root region."
|
|
75
|
-
},
|
|
76
|
-
instanceId: {
|
|
77
|
-
attr: "data-component-id",
|
|
78
|
-
sourceProp: "id",
|
|
79
|
-
description: "Sourced from the id prop."
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, za = Sa("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
83
|
-
variants: {
|
|
84
|
-
// Matches the kit's other `surface` props (ContactProfileCard,
|
|
85
|
-
// OperatorHero). `'elevated'` wraps the content in `<Card>`.
|
|
86
|
-
surface: {
|
|
87
|
-
flat: "",
|
|
88
|
-
elevated: ""
|
|
89
|
-
},
|
|
90
|
-
// Density tunes the avatar size + body padding. `comfortable` reads
|
|
91
|
-
// as a page header; `compact` fits an embedded sidebar / aside.
|
|
92
|
-
density: {
|
|
93
|
-
comfortable: "",
|
|
94
|
-
compact: ""
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
defaultVariants: {
|
|
98
|
-
surface: "elevated",
|
|
99
|
-
density: "comfortable"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
function Ua(r) {
|
|
103
|
-
return r.replace(/[^\d+]/g, "");
|
|
104
|
-
}
|
|
105
|
-
const Ba = {
|
|
106
|
-
highlightedAnamnesis: _a,
|
|
107
|
-
unsignedDocuments: Ta
|
|
108
|
-
}, Ia = {
|
|
109
|
-
highlightedAnamnesis: "warning",
|
|
110
|
-
unsignedDocuments: "error"
|
|
111
|
-
}, Ra = {
|
|
112
|
-
highlightedAnamnesis: "{{count}} highlighted anamnesis answers",
|
|
113
|
-
unsignedDocuments: "{{count}} unsigned documents"
|
|
114
|
-
}, ja = {
|
|
115
|
-
yes: "Yes",
|
|
116
|
-
no: "No",
|
|
117
|
-
not_specified: "Not specified"
|
|
118
|
-
}, Ka = va(
|
|
119
|
-
({
|
|
120
|
-
name: r,
|
|
121
|
-
title: N,
|
|
122
|
-
ageYears: $,
|
|
123
|
-
dateOfBirth: E,
|
|
124
|
-
gender: A,
|
|
125
|
-
avatarUrl: Q,
|
|
126
|
-
patientUrl: V,
|
|
127
|
-
email: p,
|
|
128
|
-
emailEnabled: X = !1,
|
|
129
|
-
phone: d,
|
|
130
|
-
cityProvince: D,
|
|
131
|
-
marketingConsent: o,
|
|
132
|
-
aiConsent: l,
|
|
133
|
-
flags: s,
|
|
134
|
-
familyRelations: k,
|
|
135
|
-
assignedTo: h,
|
|
136
|
-
currency: Y = "EUR",
|
|
137
|
-
locale: Z,
|
|
138
|
-
loading: f = !1,
|
|
139
|
-
actionSlot: T,
|
|
140
|
-
onActivate: G,
|
|
141
|
-
surface: _ = "elevated",
|
|
142
|
-
density: m = "comfortable",
|
|
143
|
-
"aria-label": F,
|
|
144
|
-
id: c,
|
|
145
|
-
className: aa,
|
|
146
|
-
...ea
|
|
147
|
-
}, ta) => {
|
|
148
|
-
const { t: e, i18n: na } = Ca(), L = ba(), sa = Z ?? na.language ?? "en", M = s == null ? void 0 : s.unpaidAmountCents, g = (s == null ? void 0 : s.unsignedDocumentsCount) ?? 0, y = (s == null ? void 0 : s.highlightedAnamnesisCount) ?? 0, v = M != null && M > 0, ia = xa(
|
|
149
|
-
() => ({
|
|
150
|
-
getSummary: () => ({
|
|
151
|
-
id: c,
|
|
152
|
-
hasUnpaid: v,
|
|
153
|
-
unsignedDocumentsCount: g,
|
|
154
|
-
highlightedAnamnesisCount: y,
|
|
155
|
-
aiConsentGranted: l != null
|
|
156
|
-
})
|
|
157
|
-
}),
|
|
158
|
-
[
|
|
159
|
-
c,
|
|
160
|
-
v,
|
|
161
|
-
g,
|
|
162
|
-
y,
|
|
163
|
-
l
|
|
164
|
-
]
|
|
165
|
-
);
|
|
166
|
-
ka(Fa, ia, c);
|
|
167
|
-
const ra = F ?? e("patientSummaryCard.regionLabel", { defaultValue: "Patient overview" }), la = {
|
|
168
|
-
mr: "Mr.",
|
|
169
|
-
ms: "Ms."
|
|
170
|
-
}, z = N ? e(`patientSummaryCard.title.${N}`, {
|
|
171
|
-
defaultValue: la[N]
|
|
172
|
-
}) : void 0, U = z ? `${z} ${r}` : r, da = {
|
|
173
|
-
m: "Male",
|
|
174
|
-
f: "Female"
|
|
175
|
-
}, b = [];
|
|
176
|
-
A && b.push(
|
|
177
|
-
e(`patientSummaryCard.gender.${A}`, {
|
|
178
|
-
defaultValue: da[A]
|
|
179
|
-
})
|
|
180
|
-
), $ != null && b.push(
|
|
181
|
-
e("patientSummaryCard.identity.age", {
|
|
182
|
-
count: $,
|
|
183
|
-
defaultValue: "{{count}} yrs"
|
|
184
|
-
})
|
|
185
|
-
), E && b.push(
|
|
186
|
-
e("patientSummaryCard.identity.bornOn", {
|
|
187
|
-
date: E,
|
|
188
|
-
defaultValue: "Born {{date}}"
|
|
189
|
-
})
|
|
190
|
-
);
|
|
191
|
-
const B = b.join(
|
|
192
|
-
e("patientSummaryCard.identity.separator", { defaultValue: " · " })
|
|
193
|
-
), oa = !!V && W(V), ma = m === "comfortable" ? "xl" : "lg", I = m === "comfortable" ? "type-title-card" : "type-title-item", R = m === "comfortable" ? "ds:gap-[var(--spacing-md)]" : "ds:gap-[var(--spacing-sm)]", i = [];
|
|
194
|
-
p && i.push({
|
|
195
|
-
key: "email",
|
|
196
|
-
icon: /* @__PURE__ */ a(La, { "aria-hidden": "true" }),
|
|
197
|
-
label: e("patientSummaryCard.label.email", { defaultValue: "Email" }),
|
|
198
|
-
value: X ? /* @__PURE__ */ a(S, { href: `mailto:${p}`, intent: "default", onClick: G, children: p }) : /* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)]", children: p })
|
|
199
|
-
}), d && i.push({
|
|
200
|
-
key: "phone",
|
|
201
|
-
icon: /* @__PURE__ */ a(Ma, { "aria-hidden": "true" }),
|
|
202
|
-
label: d.label ?? e("patientSummaryCard.label.phone", { defaultValue: "Phone" }),
|
|
203
|
-
value: /* @__PURE__ */ n("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
204
|
-
/* @__PURE__ */ a(
|
|
205
|
-
S,
|
|
206
|
-
{
|
|
207
|
-
href: `tel:${Ua(d.prefixAndNumber)}`,
|
|
208
|
-
intent: "default",
|
|
209
|
-
children: d.prefixAndNumber
|
|
210
|
-
}
|
|
211
|
-
),
|
|
212
|
-
d.smsEnabled ? /* @__PURE__ */ a(w, { variant: "success", size: "sm", children: e("patientSummaryCard.value.smsEnabled", {
|
|
213
|
-
defaultValue: "SMS"
|
|
214
|
-
}) }) : null
|
|
215
|
-
] })
|
|
216
|
-
}), D && i.push({
|
|
217
|
-
key: "cityProvince",
|
|
218
|
-
icon: /* @__PURE__ */ a(Pa, { "aria-hidden": "true" }),
|
|
219
|
-
label: e("patientSummaryCard.label.cityProvince", {
|
|
220
|
-
defaultValue: "City / province"
|
|
221
|
-
}),
|
|
222
|
-
value: D
|
|
223
|
-
}), o && i.push({
|
|
224
|
-
key: "marketingConsent",
|
|
225
|
-
icon: /* @__PURE__ */ a(wa, { "aria-hidden": "true" }),
|
|
226
|
-
label: e("patientSummaryCard.label.marketingConsent", {
|
|
227
|
-
defaultValue: "Marketing consent"
|
|
228
|
-
}),
|
|
229
|
-
value: /* @__PURE__ */ a(
|
|
230
|
-
w,
|
|
231
|
-
{
|
|
232
|
-
variant: o === "yes" ? "success" : o === "no" ? "error" : "neutral",
|
|
233
|
-
size: "sm",
|
|
234
|
-
withDot: !0,
|
|
235
|
-
children: e(`patientSummaryCard.marketingConsent.${o}`, {
|
|
236
|
-
defaultValue: ja[o]
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
}), l && i.push({
|
|
241
|
-
key: "aiConsent",
|
|
242
|
-
icon: /* @__PURE__ */ a($a, { "aria-hidden": "true" }),
|
|
243
|
-
label: e("patientSummaryCard.label.aiConsent", {
|
|
244
|
-
defaultValue: "AI consent"
|
|
245
|
-
}),
|
|
246
|
-
value: l.grantedBy ? e("patientSummaryCard.value.aiConsentGrantedBy", {
|
|
247
|
-
date: l.grantedAt,
|
|
248
|
-
by: l.grantedBy,
|
|
249
|
-
defaultValue: "Granted {{date}} by {{by}}"
|
|
250
|
-
}) : e("patientSummaryCard.value.aiConsentGrantedAt", {
|
|
251
|
-
date: l.grantedAt,
|
|
252
|
-
defaultValue: "Granted {{date}}"
|
|
253
|
-
})
|
|
254
|
-
}), h && i.push({
|
|
255
|
-
key: "assignedTo",
|
|
256
|
-
icon: /* @__PURE__ */ a(Ea, { "aria-hidden": "true" }),
|
|
257
|
-
label: e("patientSummaryCard.label.assignedTo", {
|
|
258
|
-
defaultValue: "Assigned to"
|
|
259
|
-
}),
|
|
260
|
-
value: /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
261
|
-
/* @__PURE__ */ a(
|
|
262
|
-
q,
|
|
263
|
-
{
|
|
264
|
-
size: "xs",
|
|
265
|
-
name: h.name,
|
|
266
|
-
src: h.avatarUrl
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
/* @__PURE__ */ a("span", { children: h.name })
|
|
270
|
-
] })
|
|
271
|
-
});
|
|
272
|
-
const x = [];
|
|
273
|
-
y > 0 && x.push({
|
|
274
|
-
key: "highlightedAnamnesis",
|
|
275
|
-
count: y
|
|
276
|
-
}), g > 0 && x.push({
|
|
277
|
-
key: "unsignedDocuments",
|
|
278
|
-
count: g
|
|
279
|
-
});
|
|
280
|
-
const ca = v || x.length > 0, ua = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${R}`, children: [
|
|
281
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-md)]", children: [
|
|
282
|
-
/* @__PURE__ */ a(C, { variant: "circular", size: "lg" }),
|
|
283
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
284
|
-
/* @__PURE__ */ a(C, { variant: "text", width: "60%" }),
|
|
285
|
-
/* @__PURE__ */ a(C, { variant: "text", width: "40%" })
|
|
286
|
-
] })
|
|
287
|
-
] }),
|
|
288
|
-
/* @__PURE__ */ a(C, { variant: "text", lines: 3 })
|
|
289
|
-
] }), pa = oa ? /* @__PURE__ */ a(
|
|
290
|
-
S,
|
|
291
|
-
{
|
|
292
|
-
href: V,
|
|
293
|
-
intent: "default",
|
|
294
|
-
weight: "strong",
|
|
295
|
-
onClick: G,
|
|
296
|
-
className: `${I} ds:no-underline`,
|
|
297
|
-
children: /* @__PURE__ */ a("span", { id: L, children: U })
|
|
298
|
-
}
|
|
299
|
-
) : /* @__PURE__ */ a(
|
|
300
|
-
"span",
|
|
301
|
-
{
|
|
302
|
-
id: L,
|
|
303
|
-
className: `${I} ds:text-[color:var(--foreground)]`,
|
|
304
|
-
children: U
|
|
305
|
-
}
|
|
306
|
-
), ha = /* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
307
|
-
/* @__PURE__ */ a(
|
|
308
|
-
q,
|
|
309
|
-
{
|
|
310
|
-
size: ma,
|
|
311
|
-
name: r,
|
|
312
|
-
src: Q,
|
|
313
|
-
className: "ds:shrink-0"
|
|
314
|
-
}
|
|
315
|
-
),
|
|
316
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
317
|
-
pa,
|
|
318
|
-
B ? /* @__PURE__ */ a("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: B }) : null
|
|
319
|
-
] }),
|
|
320
|
-
T ? /* @__PURE__ */ a("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: T }) : null
|
|
321
|
-
] }), fa = ca ? /* @__PURE__ */ n(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
role: "list",
|
|
325
|
-
"aria-label": e("patientSummaryCard.flagsLabel", {
|
|
326
|
-
defaultValue: "Patient attention flags"
|
|
327
|
-
}),
|
|
328
|
-
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
329
|
-
children: [
|
|
330
|
-
v ? /* @__PURE__ */ a("span", { role: "listitem", children: /* @__PURE__ */ a(
|
|
331
|
-
Va,
|
|
332
|
-
{
|
|
333
|
-
state: "debt",
|
|
334
|
-
amount: M / 100,
|
|
335
|
-
currency: Y,
|
|
336
|
-
locale: sa,
|
|
337
|
-
size: "sm",
|
|
338
|
-
showLabel: !0
|
|
339
|
-
}
|
|
340
|
-
) }) : null,
|
|
341
|
-
x.map(({ key: t, count: u }) => {
|
|
342
|
-
const P = Ba[t];
|
|
343
|
-
return /* @__PURE__ */ a(
|
|
344
|
-
"span",
|
|
345
|
-
{
|
|
346
|
-
role: "listitem",
|
|
347
|
-
"aria-label": e(`patientSummaryCard.flag.${t}`, {
|
|
348
|
-
count: u,
|
|
349
|
-
defaultValue: Ra[t]
|
|
350
|
-
}),
|
|
351
|
-
className: "ds:inline-flex",
|
|
352
|
-
children: /* @__PURE__ */ a(
|
|
353
|
-
w,
|
|
354
|
-
{
|
|
355
|
-
"aria-hidden": "true",
|
|
356
|
-
variant: Ia[t],
|
|
357
|
-
size: "md",
|
|
358
|
-
withDot: !0,
|
|
359
|
-
leading: /* @__PURE__ */ a(P, { "aria-hidden": "true" }),
|
|
360
|
-
children: u
|
|
361
|
-
}
|
|
362
|
-
)
|
|
363
|
-
},
|
|
364
|
-
t
|
|
365
|
-
);
|
|
366
|
-
})
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
) : null, ga = k && k.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
370
|
-
/* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: e("patientSummaryCard.label.familyRelations", {
|
|
371
|
-
defaultValue: "Family relations"
|
|
372
|
-
}) }),
|
|
373
|
-
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: k.map((t, u) => {
|
|
374
|
-
const P = !!t.relatedPatient.url && W(t.relatedPatient.url), K = e("patientSummaryCard.value.familyRelation", {
|
|
375
|
-
relation: t.relation,
|
|
376
|
-
name: t.relatedPatient.name,
|
|
377
|
-
defaultValue: "{{relation}}: {{name}}"
|
|
378
|
-
});
|
|
379
|
-
return P ? /* @__PURE__ */ a(
|
|
380
|
-
S,
|
|
381
|
-
{
|
|
382
|
-
href: t.relatedPatient.url,
|
|
383
|
-
intent: "default",
|
|
384
|
-
className: "ds:no-underline",
|
|
385
|
-
children: /* @__PURE__ */ a(O, { label: K, variant: "neutral" })
|
|
386
|
-
},
|
|
387
|
-
`${t.relation}-${u}`
|
|
388
|
-
) : /* @__PURE__ */ a(
|
|
389
|
-
O,
|
|
390
|
-
{
|
|
391
|
-
label: K,
|
|
392
|
-
variant: "neutral"
|
|
393
|
-
},
|
|
394
|
-
`${t.relation}-${u}`
|
|
395
|
-
);
|
|
396
|
-
}) })
|
|
397
|
-
] }) : null, ya = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${R}`, children: [
|
|
398
|
-
ha,
|
|
399
|
-
fa,
|
|
400
|
-
i.length > 0 ? /* @__PURE__ */ a(Na, { rowGap: "sm", children: i.map((t) => /* @__PURE__ */ a(
|
|
401
|
-
Aa,
|
|
402
|
-
{
|
|
403
|
-
icon: t.icon,
|
|
404
|
-
label: t.label,
|
|
405
|
-
value: t.value
|
|
406
|
-
},
|
|
407
|
-
t.key
|
|
408
|
-
)) }) : null,
|
|
409
|
-
ga
|
|
410
|
-
] }), j = f ? ua : ya;
|
|
411
|
-
return /* @__PURE__ */ a(
|
|
412
|
-
"div",
|
|
413
|
-
{
|
|
414
|
-
ref: ta,
|
|
415
|
-
role: "region",
|
|
416
|
-
"aria-label": f || F ? ra : void 0,
|
|
417
|
-
"aria-labelledby": f ? void 0 : L,
|
|
418
|
-
"aria-busy": f || void 0,
|
|
419
|
-
"data-component": "patient-summary-card",
|
|
420
|
-
"data-component-id": c,
|
|
421
|
-
"data-density": m,
|
|
422
|
-
id: c,
|
|
423
|
-
className: za({ surface: _, density: m, className: aa }),
|
|
424
|
-
...ea,
|
|
425
|
-
children: _ === "elevated" ? /* @__PURE__ */ a(H, { variant: "elevated", children: /* @__PURE__ */ a(H.Body, { children: j }) }) : j
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
);
|
|
430
|
-
Ka.displayName = "PatientSummaryCard";
|
|
431
|
-
export {
|
|
432
|
-
Ka as P,
|
|
433
|
-
Fa as p
|
|
434
|
-
};
|
|
435
|
-
//# sourceMappingURL=patient-summary-card-B836_fDB.js.map
|