@alfadocs/ui-kit 1.56.0 → 1.58.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/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-dybRpWml.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-M-FUkw9p.js} +6 -6
- package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CGoJZlKf.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-CiFSAMR-.js} +4 -4
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-DNHzjG7O.js} +19 -19
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-ZMkX-Gqy.js} +338 -341
- package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-Yn5xiGzs.js} +3 -3
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-DEtkQR1F.js} +4 -4
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-DiyOSQk9.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-CM1p6qkm.js} +3 -3
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-rOFTawXk.js} +3 -3
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-C1wOyxDF.js} +3 -3
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-DmU0poD7.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-DHLHsxpW.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-DPU-Xg0i.js} +83 -76
- package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-BCaVuaXz.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-jcRSTrp4.js} +7 -7
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-kQIfPQOE.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-D07wgCqV.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DCYX0rPG.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-C1SlVSYt.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-DrSR9Sjk.js} +4 -4
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-UgXri8h6.js} +490 -485
- package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
- package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-Dtjk0CVv.js} +3 -3
- package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-dAVgE0_5.js} +3 -3
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-DOJpobp8.js} +3 -3
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-BflEZmcF.js} +7 -6
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-izwoXh-G.js} +8 -8
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-an-bpQfF.js} +3 -3
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-DlJOgYrZ.js} +80 -57
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- 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/booking/index.js +1 -1
- package/dist/components/calculator-dialog/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/chart/chart.d.ts +5 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/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/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/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/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/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/notification-tray/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- 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/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -5
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar-move.d.ts +88 -0
- package/dist/components/sidebar/sidebar.d.ts +26 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/host-compat.css +2 -1
- package/dist/i18n/locales/ar.d.ts +24 -0
- package/dist/i18n/locales/ar.js +26 -2
- package/dist/i18n/locales/de.d.ts +24 -0
- package/dist/i18n/locales/de.js +26 -2
- package/dist/i18n/locales/el.d.ts +24 -0
- package/dist/i18n/locales/el.js +26 -2
- package/dist/i18n/locales/en.d.ts +24 -0
- package/dist/i18n/locales/en.js +26 -2
- package/dist/i18n/locales/es.d.ts +24 -0
- package/dist/i18n/locales/es.js +26 -2
- package/dist/i18n/locales/fr.d.ts +24 -0
- package/dist/i18n/locales/fr.js +26 -2
- package/dist/i18n/locales/hi.d.ts +24 -0
- package/dist/i18n/locales/hi.js +26 -2
- package/dist/i18n/locales/it.d.ts +24 -0
- package/dist/i18n/locales/it.js +26 -2
- package/dist/i18n/locales/ja.d.ts +24 -0
- package/dist/i18n/locales/ja.js +26 -2
- package/dist/i18n/locales/nl.d.ts +24 -0
- package/dist/i18n/locales/nl.js +26 -2
- package/dist/i18n/locales/pl.d.ts +24 -0
- package/dist/i18n/locales/pl.js +26 -2
- package/dist/i18n/locales/pt.d.ts +24 -0
- package/dist/i18n/locales/pt.js +26 -2
- package/dist/i18n/locales/ro.d.ts +24 -0
- package/dist/i18n/locales/ro.js +26 -2
- package/dist/i18n/locales/ru.d.ts +24 -0
- package/dist/i18n/locales/ru.js +26 -2
- package/dist/i18n/locales/sq.d.ts +24 -0
- package/dist/i18n/locales/sq.js +26 -2
- package/dist/i18n/locales/sv.d.ts +24 -0
- package/dist/i18n/locales/sv.js +26 -2
- package/dist/i18n/locales/tr.d.ts +24 -0
- package/dist/i18n/locales/tr.js +26 -2
- package/dist/i18n/locales/zh.d.ts +24 -0
- package/dist/i18n/locales/zh.js +26 -2
- package/dist/index.js +204 -203
- package/dist/locales/ar.json +26 -2
- package/dist/locales/de.json +26 -2
- package/dist/locales/el.json +26 -2
- package/dist/locales/en.json +26 -2
- package/dist/locales/es.json +26 -2
- package/dist/locales/fr.json +26 -2
- package/dist/locales/hi.json +26 -2
- package/dist/locales/it.json +26 -2
- package/dist/locales/ja.json +26 -2
- package/dist/locales/nl.json +26 -2
- package/dist/locales/pl.json +26 -2
- package/dist/locales/pt.json +26 -2
- package/dist/locales/ro.json +26 -2
- package/dist/locales/ru.json +26 -2
- package/dist/locales/sq.json +26 -2
- package/dist/locales/sv.json +26 -2
- package/dist/locales/tr.json +26 -2
- package/dist/locales/zh.json +26 -2
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +40 -10
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/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/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js +0 -541
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
|
@@ -5,7 +5,7 @@ import { useTranslation as K } from "react-i18next";
|
|
|
5
5
|
import { C as M } from "./country-select-DF5Bd_mn.js";
|
|
6
6
|
import { P as U } from "./province-select-Bd20Z9Br.js";
|
|
7
7
|
import { P as W } from "./postal-code-input-CfZOnIkW.js";
|
|
8
|
-
import { C as Y } from "./city-input-
|
|
8
|
+
import { C as Y } from "./city-input-3J3bz9EO.js";
|
|
9
9
|
import { T as z } from "./text-input-CaG9ApoE.js";
|
|
10
10
|
import { F as y } from "./form-field-Ani72sVY.js";
|
|
11
11
|
import { A as G } from "./address-autocomplete-bPR2mNBt.js";
|
|
@@ -295,4 +295,4 @@ export {
|
|
|
295
295
|
te as A,
|
|
296
296
|
X as a
|
|
297
297
|
};
|
|
298
|
-
//# sourceMappingURL=address-fields-
|
|
298
|
+
//# sourceMappingURL=address-fields-CJtu7LQU.js.map
|
|
@@ -4,7 +4,7 @@ import { c as v } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as x } from "react-i18next";
|
|
5
5
|
import { B as l } from "./button-Bn16lcFM.js";
|
|
6
6
|
import { P as y } from "./progress-D_g_Sl2g.js";
|
|
7
|
-
import { H as o } from "./hover-card-
|
|
7
|
+
import { H as o } from "./hover-card-U_ZYoh1n.js";
|
|
8
8
|
const w = v("ds:flex ds:flex-col ds:items-start", {
|
|
9
9
|
variants: {
|
|
10
10
|
mode: {
|
|
@@ -87,4 +87,4 @@ k.displayName = "AiCreditsNotice";
|
|
|
87
87
|
export {
|
|
88
88
|
k as A
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=ai-credits-notice-
|
|
90
|
+
//# sourceMappingURL=ai-credits-notice-ktklr8fy.js.map
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as C, useRef as E, useMemo as F } from "react";
|
|
3
|
+
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as P } from "react-i18next";
|
|
5
|
+
import { A as g } from "./alert-BhCstf2h.js";
|
|
6
|
+
import { B as D } from "./badge-hnBt8o7n.js";
|
|
7
|
+
import { B as H } from "./button-Bn16lcFM.js";
|
|
8
|
+
import { C as J } from "./checkbox--ndmyokr.js";
|
|
9
|
+
import { S as U } from "./spinner-CoflYlEx.js";
|
|
10
|
+
import { T as W } from "./timestamp-DPLDWdxA.js";
|
|
11
|
+
import { u as _ } from "./registry-DvAUVLHh.js";
|
|
12
|
+
const $ = {
|
|
13
|
+
id: "ai-consent-banner",
|
|
14
|
+
capabilities: [],
|
|
15
|
+
state: {
|
|
16
|
+
consentState: {
|
|
17
|
+
type: "'granted' | 'required' | 'pending'",
|
|
18
|
+
descriptionKey: "ui.agent.aiConsentBanner.state.consentState",
|
|
19
|
+
description: "Current consent state. Structural only — never the grantee identity.",
|
|
20
|
+
read: (i) => i.getState()
|
|
21
|
+
},
|
|
22
|
+
armed: {
|
|
23
|
+
type: "boolean",
|
|
24
|
+
descriptionKey: "ui.agent.aiConsentBanner.state.armed",
|
|
25
|
+
description: "Whether the consent confirmation checkbox is ticked (required state only).",
|
|
26
|
+
read: (i) => i.isArmed()
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
actions: {},
|
|
30
|
+
domHooks: {
|
|
31
|
+
root: {
|
|
32
|
+
attr: "data-component",
|
|
33
|
+
value: "ai-consent-banner",
|
|
34
|
+
description: "Marks the AiConsentBanner root region."
|
|
35
|
+
},
|
|
36
|
+
instanceId: {
|
|
37
|
+
attr: "data-component-id",
|
|
38
|
+
sourceProp: "id",
|
|
39
|
+
description: "Sourced from the id prop. Required to address a specific banner from the agent."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, O = M("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
43
|
+
variants: {
|
|
44
|
+
state: {
|
|
45
|
+
granted: "",
|
|
46
|
+
required: "",
|
|
47
|
+
pending: ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
defaultVariants: {
|
|
51
|
+
state: "required"
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
function x(i, c) {
|
|
55
|
+
return c ? "pending" : i ? "granted" : "required";
|
|
56
|
+
}
|
|
57
|
+
const q = {
|
|
58
|
+
"patient-record": {
|
|
59
|
+
descriptionRequired: {
|
|
60
|
+
key: "aiConsentBanner.description.required",
|
|
61
|
+
fallback: "AI assistance requires recorded consent before it can run."
|
|
62
|
+
},
|
|
63
|
+
descriptionGranted: {
|
|
64
|
+
key: "aiConsentBanner.description.granted",
|
|
65
|
+
fallback: "AI assistance is enabled for this record."
|
|
66
|
+
},
|
|
67
|
+
confirmLabel: {
|
|
68
|
+
key: "aiConsentBanner.confirmLabel",
|
|
69
|
+
fallback: "I confirm consent has been obtained for AI assistance."
|
|
70
|
+
},
|
|
71
|
+
notAllowed: {
|
|
72
|
+
key: "aiConsentBanner.notAllowed",
|
|
73
|
+
fallback: "You do not have permission to grant AI assistance consent."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"practice-statistics": {
|
|
77
|
+
descriptionRequired: {
|
|
78
|
+
key: "aiConsentBanner.practiceStatistics.description.required",
|
|
79
|
+
fallback: "AI assistance needs consent before it can read this practice's statistics. It uses aggregate figures only, never patient data."
|
|
80
|
+
},
|
|
81
|
+
descriptionGranted: {
|
|
82
|
+
key: "aiConsentBanner.practiceStatistics.description.granted",
|
|
83
|
+
fallback: "AI assistance can read this practice's statistics. It uses aggregate figures only, never patient data."
|
|
84
|
+
},
|
|
85
|
+
confirmLabel: {
|
|
86
|
+
key: "aiConsentBanner.practiceStatistics.confirmLabel",
|
|
87
|
+
fallback: "I may decide for this practice, and I agree to AI assistance reading its statistics."
|
|
88
|
+
},
|
|
89
|
+
notAllowed: {
|
|
90
|
+
key: "aiConsentBanner.practiceStatistics.notAllowed",
|
|
91
|
+
fallback: "You do not have permission to grant AI assistance consent for this practice."
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, Q = z(
|
|
95
|
+
({
|
|
96
|
+
id: i,
|
|
97
|
+
granted: c,
|
|
98
|
+
grantedAt: p,
|
|
99
|
+
grantedBy: h,
|
|
100
|
+
canGrant: L = !0,
|
|
101
|
+
pending: b = !1,
|
|
102
|
+
onGrantConsent: S,
|
|
103
|
+
headingLevel: I = 5,
|
|
104
|
+
subject: k = "patient-record",
|
|
105
|
+
copy: e,
|
|
106
|
+
"aria-label": w,
|
|
107
|
+
className: R,
|
|
108
|
+
...G
|
|
109
|
+
}, N) => {
|
|
110
|
+
const { t } = P("ui"), s = x(c, b), r = (l) => (l == null ? void 0 : l.trim()) || void 0, o = q[k] ?? q["patient-record"], a = {
|
|
111
|
+
title: r(e == null ? void 0 : e.title) || t("aiConsentBanner.title", "AI assistance consent"),
|
|
112
|
+
descriptionRequired: r(e == null ? void 0 : e.descriptionRequired) || t(o.descriptionRequired.key, o.descriptionRequired.fallback),
|
|
113
|
+
descriptionGranted: r(e == null ? void 0 : e.descriptionGranted) || t(o.descriptionGranted.key, o.descriptionGranted.fallback),
|
|
114
|
+
confirmLabel: r(e == null ? void 0 : e.confirmLabel) || t(o.confirmLabel.key, o.confirmLabel.fallback),
|
|
115
|
+
grantButton: r(e == null ? void 0 : e.grantButton) || t("aiConsentBanner.grantButton", "Grant consent"),
|
|
116
|
+
notAllowed: r(e == null ? void 0 : e.notAllowed) || t(o.notAllowed.key, o.notAllowed.fallback),
|
|
117
|
+
badgeGranted: r(e == null ? void 0 : e.badgeGranted) || t("aiConsentBanner.badge.granted", "Consent granted"),
|
|
118
|
+
pendingLabel: r(e == null ? void 0 : e.pendingLabel) || t("aiConsentBanner.pendingLabel", "Saving consent…")
|
|
119
|
+
}, m = [
|
|
120
|
+
k,
|
|
121
|
+
a.confirmLabel,
|
|
122
|
+
a.descriptionRequired
|
|
123
|
+
].join("\0"), [T, A] = C(!1), [B, V] = C(m);
|
|
124
|
+
B !== m && (V(m), A(!1));
|
|
125
|
+
const f = T && B === m, v = E(f);
|
|
126
|
+
v.current = f;
|
|
127
|
+
const K = F(
|
|
128
|
+
() => ({
|
|
129
|
+
getState: () => x(c, b),
|
|
130
|
+
isArmed: () => v.current
|
|
131
|
+
}),
|
|
132
|
+
[c, b]
|
|
133
|
+
);
|
|
134
|
+
_($, K, i);
|
|
135
|
+
const Y = r(w) || r(e == null ? void 0 : e.title) || t("aiConsentBanner.regionLabel", "AI assistance consent"), j = s === "granted" ? "success" : "info";
|
|
136
|
+
let u;
|
|
137
|
+
return s === "granted" ? u = /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
138
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
139
|
+
/* @__PURE__ */ n(D, { variant: "success", children: a.badgeGranted }),
|
|
140
|
+
p !== void 0 ? /* @__PURE__ */ d("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: [
|
|
141
|
+
t("aiConsentBanner.grantedAtPrefix", "Granted"),
|
|
142
|
+
" ",
|
|
143
|
+
/* @__PURE__ */ n(W, { value: p, format: "relative", shape: "inline" })
|
|
144
|
+
] }) : null
|
|
145
|
+
] }),
|
|
146
|
+
h ? /* @__PURE__ */ n("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: t("aiConsentBanner.grantedBy", {
|
|
147
|
+
name: h,
|
|
148
|
+
defaultValue: "By {{name}}"
|
|
149
|
+
}) }) : null
|
|
150
|
+
] }) : s === "pending" ? u = /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
151
|
+
/* @__PURE__ */ n(U, { variant: "pulse", size: "sm", label: a.pendingLabel }),
|
|
152
|
+
/* @__PURE__ */ n("span", { className: "type-body-sm ds:text-[color:var(--muted-foreground)]", children: a.pendingLabel })
|
|
153
|
+
] }) : u = L ? /* @__PURE__ */ d("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
154
|
+
/* @__PURE__ */ n(
|
|
155
|
+
J,
|
|
156
|
+
{
|
|
157
|
+
checked: f,
|
|
158
|
+
onCheckedChange: (l) => A(l === !0),
|
|
159
|
+
label: a.confirmLabel
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ n(g.Action, { children: /* @__PURE__ */ n(
|
|
163
|
+
H,
|
|
164
|
+
{
|
|
165
|
+
intent: "primary",
|
|
166
|
+
size: "sm",
|
|
167
|
+
disabled: !f,
|
|
168
|
+
onClick: S,
|
|
169
|
+
children: a.grantButton
|
|
170
|
+
}
|
|
171
|
+
) })
|
|
172
|
+
] }) : /* @__PURE__ */ n("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: a.notAllowed }), /* @__PURE__ */ n(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
ref: N,
|
|
176
|
+
role: "region",
|
|
177
|
+
"aria-label": Y,
|
|
178
|
+
"aria-busy": s === "pending" ? !0 : void 0,
|
|
179
|
+
"data-component": "ai-consent-banner",
|
|
180
|
+
"data-component-id": i,
|
|
181
|
+
"data-state": s,
|
|
182
|
+
id: i,
|
|
183
|
+
className: O({ state: s, className: R }),
|
|
184
|
+
...G,
|
|
185
|
+
children: /* @__PURE__ */ d(
|
|
186
|
+
g,
|
|
187
|
+
{
|
|
188
|
+
variant: j,
|
|
189
|
+
icon: s === "pending" ? null : void 0,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ n(g.Title, { as: `h${I}`, children: a.title }),
|
|
192
|
+
/* @__PURE__ */ n(g.Description, { children: s === "granted" ? a.descriptionGranted : a.descriptionRequired }),
|
|
193
|
+
u
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
Q.displayName = "AiConsentBanner";
|
|
202
|
+
export {
|
|
203
|
+
Q as A,
|
|
204
|
+
$ as a
|
|
205
|
+
};
|
|
206
|
+
//# sourceMappingURL=ai-permission-notice-DyuEGwAt.js.map
|