@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
10
|
+
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
11
|
+
], t = c("lock", e);
|
|
12
|
+
export {
|
|
13
|
+
t as L
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=lock-CKOIn0IK.js.map
|
package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-Skhfp6vK.js}
RENAMED
|
@@ -4,10 +4,10 @@ import { useTranslation as T } from "react-i18next";
|
|
|
4
4
|
import { c as u } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { A as E } from "./app-frame-BYx1gcV7.js";
|
|
6
6
|
import { A as C } from "./avatar-BNQNhoyL.js";
|
|
7
|
-
import { A as D } from "./alert-
|
|
7
|
+
import { A as D } from "./alert-CHYZ96tR.js";
|
|
8
8
|
import { C as w } from "./card-DPmk26CL.js";
|
|
9
9
|
import { D as m } from "./dropdown-menu-qrxjymfw.js";
|
|
10
|
-
import { T as F } from "./tab-bar-
|
|
10
|
+
import { T as F } from "./tab-bar-Bv9nGNdO.js";
|
|
11
11
|
import { a as S, H as q, g as G, f as A, e as J, c as K, d as Q } from "./header-CNszv2WQ.js";
|
|
12
12
|
import { H as U } from "./header-settings-DJqoAl5m.js";
|
|
13
13
|
import { S as X } from "./sign-in-with-alfadocs-button-LppxjlFt.js";
|
|
@@ -510,4 +510,4 @@ export {
|
|
|
510
510
|
va as M,
|
|
511
511
|
g as P
|
|
512
512
|
};
|
|
513
|
-
//# sourceMappingURL=marketplace-app-shell-
|
|
513
|
+
//# sourceMappingURL=marketplace-app-shell-Skhfp6vK.js.map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Q, useRef as U, useState as R, useCallback as W } from "react";
|
|
3
|
+
import { useTranslation as X } from "react-i18next";
|
|
4
|
+
import { C as Z } from "./clinical-note-card-BUvNMNGL.js";
|
|
5
|
+
import { R as _ } from "./rich-text-editor-DlCqPixb.js";
|
|
6
|
+
import { T as $ } from "./text-area-Bt3p7Pt0.js";
|
|
7
|
+
import { B as A } from "./button-DD_0Xdmr.js";
|
|
8
|
+
import { C as ee } from "./checkbox-BuZ1u__2.js";
|
|
9
|
+
function P(i) {
|
|
10
|
+
return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/ /gi, " ").trim().length > 0 : !1;
|
|
11
|
+
}
|
|
12
|
+
const de = Q(
|
|
13
|
+
function({
|
|
14
|
+
notes: k,
|
|
15
|
+
onAddNote: n,
|
|
16
|
+
composer: o = "rich",
|
|
17
|
+
editorToolbar: V = "standard",
|
|
18
|
+
redactor: j,
|
|
19
|
+
imageUploadUrl: w,
|
|
20
|
+
showClinicalToggle: p = !0,
|
|
21
|
+
canAddClinicalNote: h = !0,
|
|
22
|
+
clinicalGatedReason: T,
|
|
23
|
+
defaultClinical: c = !1,
|
|
24
|
+
onRequestAiDraft: z,
|
|
25
|
+
aiDraftFormat: L,
|
|
26
|
+
aiPrivacyNotice: B,
|
|
27
|
+
onDictate: H,
|
|
28
|
+
onProofread: D,
|
|
29
|
+
onAutoFormat: E,
|
|
30
|
+
onTogglePin: g,
|
|
31
|
+
onToggleFlag: b,
|
|
32
|
+
title: G,
|
|
33
|
+
composerPlaceholder: M,
|
|
34
|
+
addNoteLabel: S,
|
|
35
|
+
emptyState: Y,
|
|
36
|
+
className: q,
|
|
37
|
+
"aria-label": F,
|
|
38
|
+
...I
|
|
39
|
+
}, J) {
|
|
40
|
+
const { t: s } = X(), u = U(null), [t, m] = R(""), [d, x] = R(c), v = G ?? s("notesPanel.title", { defaultValue: "Notes" }), C = M ?? s("notesPanel.placeholder", { defaultValue: "Add a note…" }), N = s("notesPanel.composerLabel", {
|
|
41
|
+
defaultValue: "New note"
|
|
42
|
+
}), K = o === "rich" ? P(t) : t.trim().length > 0, O = W(() => {
|
|
43
|
+
var e, l;
|
|
44
|
+
if (n) {
|
|
45
|
+
if (o === "rich") {
|
|
46
|
+
const r = ((e = u.current) == null ? void 0 : e.getHTML()) ?? t;
|
|
47
|
+
if (!P(r)) return;
|
|
48
|
+
n({ content: r, clinical: d }), (l = u.current) == null || l.clear();
|
|
49
|
+
} else {
|
|
50
|
+
const r = t.trim();
|
|
51
|
+
if (!r) return;
|
|
52
|
+
n({ content: r, clinical: d });
|
|
53
|
+
}
|
|
54
|
+
m(""), x(c);
|
|
55
|
+
}
|
|
56
|
+
}, [o, t, d, c, n]), y = [...k].sort(
|
|
57
|
+
(e, l) => Number(l.pinned ?? !1) - Number(e.pinned ?? !1)
|
|
58
|
+
);
|
|
59
|
+
return /* @__PURE__ */ f(
|
|
60
|
+
"section",
|
|
61
|
+
{
|
|
62
|
+
ref: J,
|
|
63
|
+
"data-component": "notes-panel",
|
|
64
|
+
"aria-label": F ?? v,
|
|
65
|
+
className: [
|
|
66
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]",
|
|
67
|
+
q
|
|
68
|
+
].filter(Boolean).join(" "),
|
|
69
|
+
...I,
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ a("h2", { className: "ds:sticky ds:top-0 ds:z-[1] ds:m-0 ds:bg-[color:var(--background)] ds:py-[var(--spacing-2xs)] type-title-card ds:text-[color:var(--foreground)]", children: v }),
|
|
72
|
+
n ? /* @__PURE__ */ f("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
73
|
+
o === "rich" ? /* @__PURE__ */ a(
|
|
74
|
+
_,
|
|
75
|
+
{
|
|
76
|
+
ref: u,
|
|
77
|
+
ariaLabel: N,
|
|
78
|
+
placeholder: C,
|
|
79
|
+
toolbar: V,
|
|
80
|
+
minHeight: "sm",
|
|
81
|
+
redactor: j,
|
|
82
|
+
imageUploadUrl: w,
|
|
83
|
+
onChange: ({ html: e }) => m(e),
|
|
84
|
+
onRequestAiDraft: z,
|
|
85
|
+
aiDraftFormat: L,
|
|
86
|
+
aiPrivacyNotice: B,
|
|
87
|
+
onDictate: H,
|
|
88
|
+
onProofread: D,
|
|
89
|
+
onAutoFormat: E
|
|
90
|
+
}
|
|
91
|
+
) : /* @__PURE__ */ a(
|
|
92
|
+
$,
|
|
93
|
+
{
|
|
94
|
+
value: t,
|
|
95
|
+
onChange: (e) => m(e.target.value),
|
|
96
|
+
placeholder: C,
|
|
97
|
+
autoResize: !0,
|
|
98
|
+
minRows: 2,
|
|
99
|
+
maxRows: 6,
|
|
100
|
+
"aria-label": N
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ f(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: [
|
|
107
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
108
|
+
p ? "ds:justify-between" : "ds:justify-end"
|
|
109
|
+
].join(" "),
|
|
110
|
+
children: [
|
|
111
|
+
p ? /* @__PURE__ */ a(
|
|
112
|
+
ee,
|
|
113
|
+
{
|
|
114
|
+
size: "sm",
|
|
115
|
+
label: s("notesPanel.clinicalToggle", {
|
|
116
|
+
defaultValue: "Clinical note"
|
|
117
|
+
}),
|
|
118
|
+
checked: d,
|
|
119
|
+
onCheckedChange: (e) => x(e === !0),
|
|
120
|
+
disabled: !h,
|
|
121
|
+
disabledReason: h ? void 0 : T ?? s("notesPanel.clinicalGated", {
|
|
122
|
+
defaultValue: "You do not have permission to write clinical notes."
|
|
123
|
+
})
|
|
124
|
+
}
|
|
125
|
+
) : null,
|
|
126
|
+
/* @__PURE__ */ a(
|
|
127
|
+
A,
|
|
128
|
+
{
|
|
129
|
+
type: "button",
|
|
130
|
+
size: "sm",
|
|
131
|
+
onClick: O,
|
|
132
|
+
disabled: !K,
|
|
133
|
+
children: S ?? s("notesPanel.add", { defaultValue: "Add note" })
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }) : null,
|
|
140
|
+
y.length > 0 ? /* @__PURE__ */ a("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: y.map((e, l) => /* @__PURE__ */ a("li", { className: "ds:flex ds:flex-col", children: /* @__PURE__ */ a(
|
|
141
|
+
Z,
|
|
142
|
+
{
|
|
143
|
+
surface: "elevated",
|
|
144
|
+
truncate: !0,
|
|
145
|
+
...e,
|
|
146
|
+
onTogglePin: g && e.id ? () => g(e.id) : void 0,
|
|
147
|
+
onToggleFlag: b && e.id ? () => b(e.id) : void 0
|
|
148
|
+
}
|
|
149
|
+
) }, e.id ?? l)) }) : Y ?? /* @__PURE__ */ a("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: s("notesPanel.empty", { defaultValue: "No notes yet." }) })
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
export {
|
|
156
|
+
de as N
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=notes-panel-ay8_lPrA.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M, useMemo as P, useState as R, useRef as B, useCallback as L } from "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { I as
|
|
3
|
+
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as D } from "react-i18next";
|
|
5
|
+
import { I as U } from "./icon-button-LqoiKcUN.js";
|
|
6
6
|
import { B as N } from "./button-DD_0Xdmr.js";
|
|
7
|
-
import { T as
|
|
8
|
-
import { X as
|
|
9
|
-
const
|
|
7
|
+
import { T as W } from "./timestamp-BV2lC-wV.js";
|
|
8
|
+
import { X as E } from "./x-CCcI3eJp.js";
|
|
9
|
+
const H = _(
|
|
10
10
|
[
|
|
11
11
|
"ds:relative ds:flex ds:gap-[var(--spacing-sm)]",
|
|
12
12
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -23,14 +23,18 @@ const X = D(
|
|
|
23
23
|
"ds:data-[leaving=true]:pointer-events-none",
|
|
24
24
|
"ds:motion-reduce:transition-none",
|
|
25
25
|
"ds:text-start",
|
|
26
|
-
|
|
26
|
+
// Compact rows are borderless (flat list — the tray panel is the frame);
|
|
27
|
+
// the dashboard variant adds its own card border below. Forced-colors keeps
|
|
28
|
+
// a border on both so rows stay separated in High Contrast Mode.
|
|
27
29
|
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
28
30
|
].join(" "),
|
|
29
31
|
{
|
|
30
32
|
variants: {
|
|
31
33
|
variant: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
// Flat rows by default; the accessible (AAA) theme restores a hairline
|
|
35
|
+
// row divider so consecutive rows keep a visible boundary.
|
|
36
|
+
compact: "ds:items-start ds:[.theme-accessible_&]:border-b ds:[.theme-accessible_&]:border-[color:var(--card-border)]",
|
|
37
|
+
dashboard: "ds:flex-col ds:sm:flex-row ds:items-stretch ds:sm:items-start ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]"
|
|
34
38
|
},
|
|
35
39
|
size: {
|
|
36
40
|
sm: "ds:p-[var(--spacing-sm)]",
|
|
@@ -74,7 +78,7 @@ const X = D(
|
|
|
74
78
|
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
75
79
|
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
76
80
|
].join(" ");
|
|
77
|
-
function
|
|
81
|
+
function X(e) {
|
|
78
82
|
return /^(https?:\/\/(?!\/)|\/(?!\/)|#)/.test(e);
|
|
79
83
|
}
|
|
80
84
|
const q = M(
|
|
@@ -90,15 +94,15 @@ const q = M(
|
|
|
90
94
|
className: z,
|
|
91
95
|
...T
|
|
92
96
|
}, K) => {
|
|
93
|
-
const { t: u, i18n: v } =
|
|
97
|
+
const { t: u, i18n: v } = D(), S = P(() => {
|
|
94
98
|
const s = new Date(e.createdAt);
|
|
95
99
|
return Number.isNaN(s.getTime()) ? "" : new Intl.DateTimeFormat(v.language, {
|
|
96
100
|
dateStyle: "medium",
|
|
97
101
|
timeStyle: "short"
|
|
98
102
|
}).format(s);
|
|
99
|
-
}, [e.createdAt, v.language]), f = h !== void 0, [j, V] = R(!1), m = B(null),
|
|
103
|
+
}, [e.createdAt, v.language]), f = h !== void 0, [j, V] = R(!1), m = B(null), b = f ? h : j, g = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, w = L(() => {
|
|
100
104
|
if (!d) return;
|
|
101
|
-
if (f ||
|
|
105
|
+
if (f || g) {
|
|
102
106
|
d(e);
|
|
103
107
|
return;
|
|
104
108
|
}
|
|
@@ -108,12 +112,12 @@ const q = M(
|
|
|
108
112
|
() => d(e),
|
|
109
113
|
Number.isFinite(y) ? y : 200
|
|
110
114
|
);
|
|
111
|
-
}, [d, e, f,
|
|
115
|
+
}, [d, e, f, g]), F = e.read ? "read" : "unread", I = e.read ? "" : u("notificationCard.unreadSuffix", ", unread"), x = u("notificationCard.itemLabel", {
|
|
112
116
|
title: e.title,
|
|
113
117
|
time: S,
|
|
114
118
|
unreadSuffix: I,
|
|
115
119
|
defaultValue: "{{title}}, {{time}}{{unreadSuffix}}"
|
|
116
|
-
}), p = !!e.url &&
|
|
120
|
+
}), p = !!e.url && X(e.url), i = /* @__PURE__ */ a(
|
|
117
121
|
"span",
|
|
118
122
|
{
|
|
119
123
|
className: [
|
|
@@ -162,9 +166,9 @@ const q = M(
|
|
|
162
166
|
"data-component": "notification-card",
|
|
163
167
|
"data-component-id": e.id,
|
|
164
168
|
"data-read": e.read ? "true" : "false",
|
|
165
|
-
"data-leaving":
|
|
166
|
-
"aria-hidden":
|
|
167
|
-
className:
|
|
169
|
+
"data-leaving": b ? "true" : void 0,
|
|
170
|
+
"aria-hidden": b || void 0,
|
|
171
|
+
className: H({ variant: t, size: k, state: F, className: z }),
|
|
168
172
|
...T,
|
|
169
173
|
children: [
|
|
170
174
|
e.icon ? /* @__PURE__ */ a(
|
|
@@ -192,7 +196,7 @@ const q = M(
|
|
|
192
196
|
] }),
|
|
193
197
|
e.description ? /* @__PURE__ */ a("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)] ds:[overflow:hidden] ds:[display:-webkit-box] ds:[-webkit-box-orient:vertical] ds:[-webkit-line-clamp:2] ds:break-words", children: e.description }) : null,
|
|
194
198
|
/* @__PURE__ */ a(
|
|
195
|
-
|
|
199
|
+
W,
|
|
196
200
|
{
|
|
197
201
|
value: e.createdAt,
|
|
198
202
|
shape: "chip",
|
|
@@ -233,9 +237,9 @@ const q = M(
|
|
|
233
237
|
] }) : null
|
|
234
238
|
] }),
|
|
235
239
|
t === "compact" && d ? /* @__PURE__ */ a("span", { className: "ds:relative ds:z-[1] ds:opacity-0 ds:group-hover:opacity-100 ds:group-focus-within:opacity-100 ds:transition-opacity ds:motion-reduce:transition-none", children: /* @__PURE__ */ a(
|
|
236
|
-
|
|
240
|
+
U,
|
|
237
241
|
{
|
|
238
|
-
icon: /* @__PURE__ */ a(
|
|
242
|
+
icon: /* @__PURE__ */ a(E, {}),
|
|
239
243
|
intent: "ghost",
|
|
240
244
|
size: "sm",
|
|
241
245
|
"aria-label": u("notificationCard.dismiss", "Dismiss notification"),
|
|
@@ -250,6 +254,6 @@ const q = M(
|
|
|
250
254
|
q.displayName = "NotificationCard";
|
|
251
255
|
export {
|
|
252
256
|
q as N,
|
|
253
|
-
|
|
257
|
+
X as i
|
|
254
258
|
};
|
|
255
|
-
//# sourceMappingURL=notification-card-
|
|
259
|
+
//# sourceMappingURL=notification-card-D2jiKSJJ.js.map
|
|
@@ -10,7 +10,7 @@ import { B as L } from "./button-DD_0Xdmr.js";
|
|
|
10
10
|
import { S as _ } from "./separator-CYU_bGFn.js";
|
|
11
11
|
import { S as x } from "./skeleton-CZbwyJAA.js";
|
|
12
12
|
import { C as fe } from "./counter-dRlTNC_y.js";
|
|
13
|
-
import { N as me } from "./notification-card-
|
|
13
|
+
import { N as me } from "./notification-card-D2jiKSJJ.js";
|
|
14
14
|
import { u as ue } from "./registry-DvAUVLHh.js";
|
|
15
15
|
import { c as ge } from "./createLucideIcon-CrFbzy84.js";
|
|
16
16
|
/**
|
|
@@ -461,4 +461,4 @@ export {
|
|
|
461
461
|
we as N,
|
|
462
462
|
he as n
|
|
463
463
|
};
|
|
464
|
-
//# sourceMappingURL=notification-tray-
|
|
464
|
+
//# sourceMappingURL=notification-tray-AEun6DN2.js.map
|
|
@@ -3,12 +3,12 @@ import { forwardRef as w, useId as A, useRef as O } from "react";
|
|
|
3
3
|
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as z } from "react-i18next";
|
|
5
5
|
import { A as j } from "./avatar-BNQNhoyL.js";
|
|
6
|
-
import { B as I } from "./badge-
|
|
6
|
+
import { B as I } from "./badge-DCOqV9mI.js";
|
|
7
7
|
import { C as T } from "./card-DPmk26CL.js";
|
|
8
8
|
import { R as B } from "./rating-BRD7O74e.js";
|
|
9
9
|
import { u as F } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
10
|
import { u as K } from "./registry-DvAUVLHh.js";
|
|
11
|
-
import { c as S } from "./entity-card-
|
|
11
|
+
import { c as S } from "./entity-card-9_62gY7l.js";
|
|
12
12
|
const V = {
|
|
13
13
|
id: "operator-hero",
|
|
14
14
|
// Purely observable hero region — no interactive affordances and no
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
M as O,
|
|
200
200
|
V as o
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=operator-hero-
|
|
202
|
+
//# sourceMappingURL=operator-hero-CR0Rqh4-.js.map
|