@alfadocs/ui-kit 1.38.0 → 1.40.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/{actions-cell-renderer-CUn1pqEq.js → actions-cell-renderer-BXBy9c0f.js} +3 -3
- package/dist/_chunks/{agenda-tray-CG6jUjKc.js → agenda-tray-CBaJASb5.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-De4gzSBZ.js → ai-consent-banner-D7I2U-cz.js} +37 -36
- package/dist/_chunks/{ai-prompt-input-DdxlaI7q.js → ai-prompt-input-DXknpQCB.js} +2 -2
- package/dist/_chunks/{alia-sidebar-B6bXlZZk.js → alia-sidebar-CUqaJNPQ.js} +7 -7
- package/dist/_chunks/{anamnesis-card-DGwINeNn.js → anamnesis-card-xtEhyojD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Cxtgo2ok.js → anamnesis-summary-rows-DQUqwWc1.js} +7 -7
- package/dist/_chunks/{appointment-card-WsDGBBut.js → appointment-card-TgR_2GKS.js} +134 -102
- package/dist/_chunks/{appointment-peek-5S4O1VQP.js → appointment-peek-abiR0T9e.js} +3 -3
- package/dist/_chunks/{appointment-timeline-D-rNwKpS.js → appointment-timeline-CCnyUYKz.js} +67 -63
- package/dist/_chunks/{appointment-tray-CK2CULg_.js → appointment-tray-N0yEI8UF.js} +4 -4
- package/dist/_chunks/{audio-recorder-BlQBC7N_.js → audio-recorder-B7dT-Y3v.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DHs5p0bA.js → balance-badge-cell-o6LldMUA.js} +5 -5
- package/dist/_chunks/{bishop-score-D5b8tktp.js → bishop-score-Cu70iv9C.js} +2 -2
- package/dist/_chunks/{bmi-calculator-dOKP-vW4.js → bmi-calculator-C9N19aLX.js} +2 -2
- package/dist/_chunks/{booking-x3J7sS2G.js → booking-D43ASl8y.js} +1110 -1104
- package/dist/_chunks/{button-nJaPh_HC.js → button-CaUe1uyd.js} +11 -7
- package/dist/_chunks/{button-group-QmN1VdUW.js → button-group-R32U7SyV.js} +2 -2
- package/dist/_chunks/{calendar-7GAUlsNO.js → calendar-ChJQzRw-.js} +2 -2
- package/dist/_chunks/calendar-workspace-SN23GsXX.js +11378 -0
- package/dist/_chunks/{care-plan-card-COFOI-fI.js → care-plan-card-BOv0NRle.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-BOKn0KW-.js → care-plan-entry-card-d-rZD4li.js} +3 -3
- package/dist/_chunks/{care-plan-header-CbuOuVBw.js → care-plan-header-CEmBXn6-.js} +2 -2
- package/dist/_chunks/{carousel.agent-Dv4a4M8L.js → carousel.agent-z1yLBpyC.js} +2 -2
- package/dist/_chunks/{chart-iWl76PXv.js → chart-PF2krCZC.js} +3 -3
- package/dist/_chunks/{chat-input-qM5QpUSq.js → chat-input-Cj7ZYQr5.js} +2 -2
- package/dist/_chunks/{chat-message-RniXtrCH.js → chat-message-BMVxiUIX.js} +3 -3
- package/dist/_chunks/{code-block-uVjNSI9g.js → code-block-BB-viuTn.js} +2 -2
- package/dist/_chunks/{connection-status-OEsWjmRk.js → connection-status-BmA9T0UO.js} +3 -3
- package/dist/_chunks/{contact-profile-card--My1H2UD.js → contact-profile-card-Zt6WNg1u.js} +2 -2
- package/dist/_chunks/{control-room-rail-DQoHdE1U.js → control-room-rail-CnNZusR5.js} +3 -3
- package/dist/_chunks/{copy-field-fYKpl6aN.js → copy-field-B8XRVmQv.js} +2 -2
- package/dist/_chunks/credit-card-D9XZsHGA.js +15 -0
- package/dist/_chunks/{cycle-calculator-BJeaXiZv.js → cycle-calculator-BH2StWoT.js} +2 -2
- package/dist/_chunks/{dashboard-grid-B23BFzRl.js → dashboard-grid-BcXWL5S9.js} +2 -2
- package/dist/_chunks/{data-table-Dy1lyumT.js → data-table-CcAx_I1w.js} +6 -6
- package/dist/_chunks/{data-table-tabs-BMR0zsVQ.js → data-table-tabs-B9SXA5VP.js} +3 -3
- package/dist/_chunks/{description-list-C1RXMDZ_.js → description-list-BsJ_6CQE.js} +2 -2
- package/dist/_chunks/{document-preview-DsEyRcNd.js → document-preview-COV0BC6n.js} +2 -2
- package/dist/_chunks/{document-scanner-CbWVtm7u.js → document-scanner-B1abl-A4.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dhc9Ljkb.js → due-date-calculator-Buh_mVHq.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-D7blbDFY.js → editable-currency-cell-renderer-Psb6XKHR.js} +3 -3
- package/dist/_chunks/{editable-description-7ptNpJEg.js → editable-description-ADMVFPUz.js} +3 -3
- package/dist/_chunks/{editor-overlay-8fKAcRsm.js → editor-overlay-9tcPXNWt.js} +2 -2
- package/dist/_chunks/{empty-state-X0sVPfVo.js → empty-state-BUN_UAWf.js} +2 -2
- package/dist/_chunks/{entity-summary-BbW0mIzU.js → entity-summary-DXejuQ8i.js} +3 -3
- package/dist/_chunks/{error-boundary-ayXFCcq4.js → error-boundary-BNT2iQ1w.js} +2 -2
- package/dist/_chunks/{face-scheme-uFvhqz6h.js → face-scheme-Dg6ZyLKb.js} +5 -5
- package/dist/_chunks/{fetal-weight-C6SxchOv.js → fetal-weight-wx4ycKc6.js} +2 -2
- package/dist/_chunks/{field-array-C9dmRaIM.js → field-array-BW9KeeXG.js} +3 -3
- package/dist/_chunks/{file-manager-UlcYQv8n.js → file-manager-BfLQxF5t.js} +136 -150
- package/dist/_chunks/{finished-terminal-Br61Ip4e.js → finished-terminal-DJd7Z_po.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-CkwIdB1y.js → fiscal-code-input-ODQRd_Sw.js} +2 -2
- package/dist/_chunks/folder-BghC8_S2.js +20 -0
- package/dist/_chunks/{freemium-paywall-BqGk_SBU.js → freemium-paywall-Cz-O9lQD.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DDOGaPvg.js → gestational-age-calculator-CwbecTul.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Bb_n6tEa.js → hcg-doubling-BcXriXJe.js} +2 -2
- package/dist/_chunks/{header-BZ4pZlJV.js → header-3o9o9v_T.js} +2 -2
- package/dist/_chunks/{header-settings-B8mLc03Q.js → header-settings-CTe45iDy.js} +4 -4
- package/dist/_chunks/{hover-card-Bcku1GQu.js → hover-card-BMJBVqIf.js} +2 -2
- package/dist/_chunks/{icon-button-8xqRnkdG.js → icon-button-CehAeZoP.js} +2 -2
- package/dist/_chunks/{icon-button-group-Dj6CRoYR.js → icon-button-group-DkkdIygu.js} +2 -2
- package/dist/_chunks/{icon-picker-CTWzlHJr.js → icon-picker-DMEelg9v.js} +3 -3
- package/dist/_chunks/{image-cropper-C84NDTB7.js → image-cropper-BjPjT7wU.js} +2 -2
- package/dist/_chunks/{info-tip-ey_Pon2y.js → info-tip-iP2Pm9dh.js} +2 -2
- package/dist/_chunks/{insert-result-LCNTskNJ.js → insert-result-DPnOBD85.js} +2 -2
- package/dist/_chunks/{key-value-pair-DczGb4yz.js → key-value-pair-DaQI_LZB.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BNa8x6oJ.js → link-cell-renderer-s3oHzOwi.js} +2 -2
- package/dist/_chunks/{locale-picker-BLeHbFSc.js → locale-picker-CH3kfrIG.js} +3 -3
- package/dist/_chunks/{map-view-CCAlC9IL.js → map-view-CHw4RL6w.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BwH6Aruw.js → marketplace-app-shell-d2EtcUbe.js} +4 -4
- package/dist/_chunks/{message-card-Dm5Xshup.js → message-card-V3sFPiQI.js} +3 -3
- package/dist/_chunks/{message-tray-CXjVsKqp.js → message-tray-CrRIHfiQ.js} +4 -4
- package/dist/_chunks/{note-timeline-D2oPuQP6.js → note-timeline-Dn_XTo1s.js} +131 -90
- package/dist/_chunks/{notes-panel-CkbfDDzj.js → notes-panel-CmTqIWlS.js} +277 -241
- package/dist/_chunks/{notification-card-ChcK9Wat.js → notification-card-B2gLO6dK.js} +3 -3
- package/dist/_chunks/{notification-tray-_NoChRKi.js → notification-tray-BOEKegVV.js} +4 -4
- package/dist/_chunks/{optical-prescription-cphK41eP.js → optical-prescription-LGgmtcST.js} +2 -2
- package/dist/_chunks/{panel-subview-BNXN8OEL.js → panel-subview-Cc2Wtt7D.js} +52 -52
- package/dist/_chunks/{patient-details-2cIaL-Zb.js → patient-details-C8ImUrVg.js} +3 -3
- package/dist/_chunks/{patient-field-row-IHb2VFc2.js → patient-field-row-BRSOKvme.js} +7 -7
- package/dist/_chunks/{patient-search-D08b6jgj.js → patient-search-5QcmQKJD.js} +2 -2
- package/dist/_chunks/{patient-summary-card-B131Q7Bp.js → patient-summary-card-BhmKB2KR.js} +7 -7
- package/dist/_chunks/{payment-automation-upsell-BLTdE2em.js → payment-automation-upsell-BKmBXU4i.js} +17 -16
- package/dist/_chunks/{payment-request-card-BxcdvxKR.js → payment-request-card-Cer6XXCn.js} +6 -5
- package/dist/_chunks/{periodontal-chart-BF_e3wZp.js → periodontal-chart-DJoZS_o7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-BJEuJuzh.js → periodontal-chart-card-Nd1ZoYWb.js} +2 -2
- package/dist/_chunks/{popover-DzR5QYxp.js → popover-DO-pssF3.js} +2 -2
- package/dist/_chunks/{practice-results-CBNRJNnY.js → practice-results-D_jjzwgf.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-nV1_S6w0.js → pregnancy-dating-DcyV9ZRD.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-tRecShAD.js → pregnancy-weight-gain-Bfq4Kwt5.js} +2 -2
- package/dist/_chunks/{privacy-lock-Be39vQUN.js → privacy-lock-CbFCAMM3.js} +3 -3
- package/dist/_chunks/{product-hub-panel-C3bMjscm.js → product-hub-panel-w40-_-1s.js} +3 -3
- package/dist/_chunks/{public-header.agent-Bl1KFwSE.js → public-header.agent-D-EBVskf.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-k0G7JuoM.js → radiograph-panel.agent-LrILY2lN.js} +4 -4
- package/dist/_chunks/{receipt-euro-C6k4Gzhr.js → receipt-euro-B1cLM_TN.js} +3 -14
- package/dist/_chunks/{reviews-panel-Cy969x7q.js → reviews-panel-2GVuxGeT.js} +4 -4
- package/dist/_chunks/{rich-text-editor-BTXlorm5.js → rich-text-editor-BJ1-Lkao.js} +1024 -932
- package/dist/_chunks/{session-countdown-QMsnRa1x.js → session-countdown-BqppPrw6.js} +2 -2
- package/dist/_chunks/{sheet-hm04DGFd.js → sheet-C8WIDFS8.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BLe_quy5.js → sign-in-with-alfadocs-button-DWwBJtyE.js} +2 -2
- package/dist/_chunks/{signature-request-b-86AGlT.js → signature-request-D_j2aQu1.js} +359 -370
- package/dist/_chunks/{slot-grid-Bk3GZL1p.js → slot-grid-B3eOPkKD.js} +4 -4
- package/dist/_chunks/{streaming-text-DjFqLSt_.js → streaming-text-CE1u_oGa.js} +2 -2
- package/dist/_chunks/{task-tray-5co9Jr2L.js → task-tray-DIwjAIes.js} +3 -3
- package/dist/_chunks/{tasks-panel-BpH-x7U3.js → tasks-panel-CpcikOeY.js} +5 -5
- package/dist/_chunks/{theme-toggle-CMz8YfC1.js → theme-toggle-bI0pgDDv.js} +3 -3
- package/dist/_chunks/{toast-8jqtbfAB.js → toast-ZZfhA5u0.js} +2 -2
- package/dist/_chunks/{token-insert-menu-9Um0JinI.js → token-insert-menu-A9B5AJw6.js} +2 -2
- package/dist/_chunks/tool-rail-D89USYE6.js +799 -0
- package/dist/_chunks/{tooth-scheme-BWkYxxjR.js → tooth-scheme-DPAq0vQK.js} +3 -3
- package/dist/_chunks/{transaction-chip-Dth1nThY.js → transaction-chip-CwgcJiqF.js} +47 -46
- package/dist/_chunks/{unit-converter-BTgU50gk.js → unit-converter-C-LpGzrN.js} +2 -2
- package/dist/_chunks/user-plus-BtcOLgNU.js +17 -0
- package/dist/_chunks/{warning-stack-BW5Dwb3z.js → warning-stack-C0glSB7p.js} +3 -3
- package/dist/_chunks/{workflow-map-CXdsxvUj.js → workflow-map-DhR_h5yw.js} +5 -5
- package/dist/agent-catalog.json +3 -418
- package/dist/agent-i18n/en.json +2 -18
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +9 -0
- package/dist/components/ai-consent-banner/index.d.ts +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +24 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +15 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/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/booking-types.d.ts +6 -0
- package/dist/components/booking/cascade.d.ts +6 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/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/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/connection-status/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/copy-field/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/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/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +9 -0
- package/dist/components/notes-panel/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +13 -5
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/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-search/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/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/popover/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/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +48 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +248 -194
- package/dist/i18n/locales/ar.js +253 -199
- package/dist/i18n/locales/de.d.ts +232 -178
- package/dist/i18n/locales/de.js +237 -183
- package/dist/i18n/locales/el.d.ts +247 -193
- package/dist/i18n/locales/el.js +252 -198
- package/dist/i18n/locales/en.d.ts +54 -0
- package/dist/i18n/locales/en.js +59 -5
- package/dist/i18n/locales/es.d.ts +240 -186
- package/dist/i18n/locales/es.js +245 -191
- package/dist/i18n/locales/fr.d.ts +234 -180
- package/dist/i18n/locales/fr.js +239 -185
- package/dist/i18n/locales/hi.d.ts +248 -194
- package/dist/i18n/locales/hi.js +257 -199
- package/dist/i18n/locales/it.d.ts +192 -138
- package/dist/i18n/locales/it.js +197 -143
- package/dist/i18n/locales/ja.d.ts +246 -192
- package/dist/i18n/locales/ja.js +251 -197
- package/dist/i18n/locales/nl.d.ts +237 -183
- package/dist/i18n/locales/nl.js +242 -188
- package/dist/i18n/locales/pl.d.ts +242 -188
- package/dist/i18n/locales/pl.js +247 -193
- package/dist/i18n/locales/pt.d.ts +242 -188
- package/dist/i18n/locales/pt.js +247 -193
- package/dist/i18n/locales/ro.d.ts +241 -187
- package/dist/i18n/locales/ro.js +246 -192
- package/dist/i18n/locales/ru.d.ts +247 -193
- package/dist/i18n/locales/ru.js +252 -198
- package/dist/i18n/locales/sq.d.ts +241 -187
- package/dist/i18n/locales/sq.js +246 -192
- package/dist/i18n/locales/sv.d.ts +242 -188
- package/dist/i18n/locales/sv.js +247 -193
- package/dist/i18n/locales/tr.d.ts +248 -194
- package/dist/i18n/locales/tr.js +253 -199
- package/dist/i18n/locales/zh.d.ts +241 -187
- package/dist/i18n/locales/zh.js +246 -192
- package/dist/index.js +107 -107
- package/dist/locales/ar.json +253 -199
- package/dist/locales/de.json +237 -183
- package/dist/locales/el.json +252 -198
- package/dist/locales/en.json +59 -5
- package/dist/locales/es.json +245 -191
- package/dist/locales/fr.json +239 -185
- package/dist/locales/hi.json +253 -199
- package/dist/locales/it.json +197 -143
- package/dist/locales/ja.json +251 -197
- package/dist/locales/nl.json +242 -188
- package/dist/locales/pl.json +247 -193
- package/dist/locales/pt.json +247 -193
- package/dist/locales/ro.json +246 -192
- package/dist/locales/ru.json +252 -198
- package/dist/locales/sq.json +246 -192
- package/dist/locales/sv.json +247 -193
- package/dist/locales/tr.json +253 -199
- package/dist/locales/zh.json +246 -192
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +7 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +10 -5
- package/dist/patterns/calendar/calendar-bookings-panel.d.ts +31 -0
- package/dist/patterns/calendar/calendar-info-hover.d.ts +15 -1
- package/dist/patterns/calendar/calendar-privacy.d.ts +23 -0
- package/dist/patterns/calendar/calendar-rail-settle.d.ts +14 -0
- package/dist/patterns/calendar/calendar-upcoming-panel.d.ts +32 -0
- package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +62 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +14 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +37 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +9 -1
- package/dist/patterns/calendar/calendar.model.d.ts +8 -2
- package/dist/patterns/calendar/calendar.sheets.d.ts +49 -28
- package/dist/patterns/calendar/calendar.types.d.ts +6 -0
- package/dist/patterns/calendar/index.d.ts +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +3 -1
- package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +0 -9900
- package/dist/_chunks/tool-rail-BP8sjxCw.js +0 -667
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsxs as o, jsx as n, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import { R as
|
|
8
|
-
import { T as
|
|
9
|
-
import { A as
|
|
10
|
-
import { B as
|
|
11
|
-
import { I as
|
|
1
|
+
import { jsxs as o, jsx as n, Fragment as Ue } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Xe, useRef as f, useState as w, useId as Ze, useCallback as T, useEffect as me, useImperativeHandle as et, useMemo as tt } from "react";
|
|
3
|
+
import { c as Ce } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as nt } from "react-i18next";
|
|
5
|
+
import { u as at } from "./registry-DvAUVLHh.js";
|
|
6
|
+
import { C as it } from "./clinical-note-card-DdsGYMmI.js";
|
|
7
|
+
import { R as st } from "./rich-text-editor-BJ1-Lkao.js";
|
|
8
|
+
import { T as lt } from "./text-area-Bt3p7Pt0.js";
|
|
9
|
+
import { A as I } from "./alert-CiQ5Pa3Q.js";
|
|
10
|
+
import { B as z } from "./button-CaUe1uyd.js";
|
|
11
|
+
import { I as ge } from "./icon-button-CehAeZoP.js";
|
|
12
12
|
import { C as rt } from "./checkbox-CZkipDn7.js";
|
|
13
|
-
import { C as
|
|
14
|
-
import { C as
|
|
15
|
-
import { D as
|
|
16
|
-
import { P as
|
|
17
|
-
import { a as
|
|
18
|
-
import { u as
|
|
19
|
-
import { N as
|
|
20
|
-
import { P as
|
|
21
|
-
import { T as
|
|
22
|
-
function
|
|
13
|
+
import { C as he } from "./card-DPmk26CL.js";
|
|
14
|
+
import { C as ot, S as M } from "./skeleton-B1KTdJ4N.js";
|
|
15
|
+
import { D as v } from "./dialog-BJiLqhx6.js";
|
|
16
|
+
import { P as dt } from "./panel-header-D_mTdhUp.js";
|
|
17
|
+
import { a as ct, u as ut, R as ft } from "./use-list-reflow-Cw43nxw5.js";
|
|
18
|
+
import { u as pt } from "./use-theme-CAuo6EYT.js";
|
|
19
|
+
import { N as mt } from "./notebook-pen-CO7HoM-W.js";
|
|
20
|
+
import { P as gt } from "./pencil-B1sKKyuT.js";
|
|
21
|
+
import { T as ht } from "./trash-2-uumy3fy1.js";
|
|
22
|
+
function ve(i, c) {
|
|
23
23
|
return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string" && i.message.trim() ? i.message : c;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const vt = {
|
|
26
26
|
id: "notes-panel",
|
|
27
27
|
// 'submit' backs add_note (compose + commit a note). pin / flag are toggles
|
|
28
28
|
// with no dedicated capability in the closed vocabulary.
|
|
@@ -121,100 +121,117 @@ const gt = {
|
|
|
121
121
|
description: "Sourced from the id prop. Required to address a specific notes panel from the agent."
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
},
|
|
125
|
-
"ds:flex ds:flex-col ds:rounded-[var(--radius-
|
|
124
|
+
}, yt = "ds:isolate ds:[&_[data-component=card]>*]:relative ds:[&_[data-component=card]>*]:z-[1]", bt = Ce(
|
|
125
|
+
"ds:relative ds:flex ds:flex-col ds:rounded-[var(--radius-lg)]",
|
|
126
126
|
{
|
|
127
127
|
variants: {
|
|
128
128
|
current: {
|
|
129
|
-
true: "ds:
|
|
130
|
-
false: "
|
|
131
|
-
}
|
|
129
|
+
true: "ds:focus:outline-[length:var(--focus-ring-width)] ds:focus:outline-solid ds:focus:outline-[color:var(--ring)] ds:focus:outline-offset-[length:var(--focus-ring-offset)]",
|
|
130
|
+
false: ""
|
|
131
|
+
},
|
|
132
|
+
washed: { true: yt, false: "" }
|
|
132
133
|
},
|
|
133
|
-
defaultVariants: { current: !1 }
|
|
134
|
+
defaultVariants: { current: !1, washed: !1 }
|
|
134
135
|
}
|
|
135
|
-
),
|
|
136
|
+
), ye = Ce(
|
|
137
|
+
"ds:pointer-events-none ds:absolute ds:inset-0 ds:rounded-[var(--radius-lg)] ds:bg-[color:var(--accent)]",
|
|
138
|
+
{
|
|
139
|
+
variants: {
|
|
140
|
+
state: {
|
|
141
|
+
addressed: [
|
|
142
|
+
"ds:opacity-0",
|
|
143
|
+
"ds:animate-[note-addressed_calc(var(--animation-duration)*9)_var(--ease-in-out)]",
|
|
144
|
+
"ds:motion-reduce:animate-none ds:motion-reduce:opacity-[var(--opacity-12)]",
|
|
145
|
+
"ds:[.theme-accessible_&]:animate-none ds:[.theme-accessible_&]:opacity-[var(--opacity-12)]"
|
|
146
|
+
].join(" "),
|
|
147
|
+
editing: "ds:opacity-[var(--opacity-12)]"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
), Ct = "ds:opacity-0", Pt = [
|
|
136
152
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
137
153
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
138
|
-
].join(" "),
|
|
139
|
-
function
|
|
154
|
+
].join(" "), xt = [3, 2, 3];
|
|
155
|
+
function be(i) {
|
|
140
156
|
return i ? /<img\b/i.test(i) ? !0 : i.replace(/<[^>]*>/g, "").replace(/ /gi, " ").trim().length > 0 : !1;
|
|
141
157
|
}
|
|
142
|
-
const Kt =
|
|
158
|
+
const Kt = Xe(
|
|
143
159
|
function({
|
|
144
160
|
id: c,
|
|
145
|
-
notes:
|
|
161
|
+
notes: j,
|
|
146
162
|
onAddNote: m,
|
|
147
|
-
status:
|
|
163
|
+
status: C = "ready",
|
|
148
164
|
onRetry: X,
|
|
149
|
-
currentNoteId:
|
|
150
|
-
currentNoteKey:
|
|
151
|
-
composer:
|
|
152
|
-
editorToolbar:
|
|
153
|
-
redactor:
|
|
154
|
-
imageUploadUrl:
|
|
155
|
-
showClinicalToggle:
|
|
156
|
-
canAddClinicalNote:
|
|
157
|
-
clinicalGatedReason:
|
|
158
|
-
defaultClinical:
|
|
159
|
-
onRequestAiDraft:
|
|
160
|
-
aiDraftFormat:
|
|
161
|
-
aiPrivacyNotice:
|
|
162
|
-
onDictate:
|
|
163
|
-
onProofread:
|
|
164
|
-
onAutoFormat:
|
|
165
|
-
|
|
165
|
+
currentNoteId: y,
|
|
166
|
+
currentNoteKey: Z,
|
|
167
|
+
composer: g = "rich",
|
|
168
|
+
editorToolbar: Pe = "standard",
|
|
169
|
+
redactor: xe,
|
|
170
|
+
imageUploadUrl: we,
|
|
171
|
+
showClinicalToggle: Te = !0,
|
|
172
|
+
canAddClinicalNote: A = !0,
|
|
173
|
+
clinicalGatedReason: Ee,
|
|
174
|
+
defaultClinical: E = !1,
|
|
175
|
+
onRequestAiDraft: Ne,
|
|
176
|
+
aiDraftFormat: Ve,
|
|
177
|
+
aiPrivacyNotice: Re,
|
|
178
|
+
onDictate: ke,
|
|
179
|
+
onProofread: _e,
|
|
180
|
+
onAutoFormat: Se,
|
|
181
|
+
aiConsent: Ie,
|
|
182
|
+
onTogglePin: L,
|
|
166
183
|
onToggleFlag: H,
|
|
167
|
-
noteActions:
|
|
168
|
-
onEditNote:
|
|
169
|
-
editClinical:
|
|
170
|
-
onDeleteNote:
|
|
171
|
-
confirmDelete:
|
|
172
|
-
title:
|
|
173
|
-
composerPlaceholder:
|
|
174
|
-
addNoteLabel:
|
|
175
|
-
emptyState:
|
|
176
|
-
className:
|
|
177
|
-
"aria-label":
|
|
178
|
-
...
|
|
179
|
-
},
|
|
180
|
-
const { t: a, i18n:
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
var
|
|
184
|
-
if (!(
|
|
185
|
-
const t =
|
|
186
|
-
if (t ? !
|
|
187
|
-
const
|
|
188
|
-
var
|
|
189
|
-
t && ((
|
|
184
|
+
noteActions: ee,
|
|
185
|
+
onEditNote: N,
|
|
186
|
+
editClinical: ze = !1,
|
|
187
|
+
onDeleteNote: h,
|
|
188
|
+
confirmDelete: $ = !0,
|
|
189
|
+
title: je,
|
|
190
|
+
composerPlaceholder: Ae,
|
|
191
|
+
addNoteLabel: Le,
|
|
192
|
+
emptyState: He,
|
|
193
|
+
className: Oe,
|
|
194
|
+
"aria-label": G,
|
|
195
|
+
...Be
|
|
196
|
+
}, We) {
|
|
197
|
+
const { t: a, i18n: te } = nt(), b = f(null), [P, V] = w(""), [O, B] = w(E), [u, ne] = w(!1), [ae, R] = w(null), [r, Y] = w(null), ie = f(!1);
|
|
198
|
+
C === "loading" && (ie.current = !0);
|
|
199
|
+
const De = ie.current ? ot : "", qe = je ?? a("notesPanel.title", { defaultValue: "Notes" }), se = Ze(), le = Ae ?? a("notesPanel.placeholder", { defaultValue: "Add a note…" }), re = r !== null ? a("notesPanel.edit", { defaultValue: "Edit note" }) : a("notesPanel.composerLabel", { defaultValue: "New note" }), Fe = g === "rich" ? be(P) : P.trim().length > 0, Ke = T(() => {
|
|
200
|
+
var x;
|
|
201
|
+
if (!(r !== null ? N : m) || u) return;
|
|
202
|
+
const t = g === "rich", d = t ? ((x = b.current) == null ? void 0 : x.getHTML()) ?? P : P.trim();
|
|
203
|
+
if (t ? !be(d) : !d) return;
|
|
204
|
+
const l = () => {
|
|
205
|
+
var p;
|
|
206
|
+
t && ((p = b.current) == null || p.clear()), V(""), B(E), Y(null);
|
|
190
207
|
};
|
|
191
|
-
|
|
192
|
-
let
|
|
208
|
+
R(null);
|
|
209
|
+
let s;
|
|
193
210
|
try {
|
|
194
|
-
|
|
195
|
-
} catch (
|
|
196
|
-
|
|
211
|
+
s = r !== null && N ? N(r, { content: d, clinical: O }) : m == null ? void 0 : m({ content: d, clinical: O });
|
|
212
|
+
} catch (p) {
|
|
213
|
+
R(ve(p, a("notesPanel.addFailed")));
|
|
197
214
|
return;
|
|
198
215
|
}
|
|
199
|
-
if (!
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
(
|
|
203
|
-
).finally(() =>
|
|
216
|
+
if (!s || typeof s.then != "function") return l();
|
|
217
|
+
ne(!0), Promise.resolve(s).then(
|
|
218
|
+
l,
|
|
219
|
+
(p) => R(ve(p, a("notesPanel.addFailed")))
|
|
220
|
+
).finally(() => ne(!1));
|
|
204
221
|
}, [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
g,
|
|
223
|
+
P,
|
|
224
|
+
O,
|
|
225
|
+
E,
|
|
226
|
+
r,
|
|
210
227
|
m,
|
|
211
|
-
|
|
228
|
+
N,
|
|
212
229
|
u,
|
|
213
230
|
a
|
|
214
|
-
]),
|
|
231
|
+
]), oe = Te && (r === null || ze), de = T(
|
|
215
232
|
(e) => {
|
|
216
233
|
try {
|
|
217
|
-
return new Intl.DateTimeFormat(
|
|
234
|
+
return new Intl.DateTimeFormat(te.language, {
|
|
218
235
|
day: "numeric",
|
|
219
236
|
month: "long",
|
|
220
237
|
year: "numeric",
|
|
@@ -225,56 +242,56 @@ const Kt = Je(
|
|
|
225
242
|
return e.dateIso;
|
|
226
243
|
}
|
|
227
244
|
},
|
|
228
|
-
[
|
|
229
|
-
),
|
|
245
|
+
[te.language]
|
|
246
|
+
), Me = T(
|
|
230
247
|
(e) => {
|
|
231
|
-
var d,
|
|
248
|
+
var d, l, s;
|
|
232
249
|
if (!e.id || u) return;
|
|
233
250
|
const t = e.content ?? "";
|
|
234
|
-
|
|
251
|
+
R(null), Y(e.id), B(e.clinical ?? !1), V(t), g === "rich" && ((d = b.current) == null || d.clear(), (l = b.current) == null || l.insertAtCursor(t, { asHtml: !0 })), (s = b.current) == null || s.focus();
|
|
235
252
|
},
|
|
236
|
-
[
|
|
237
|
-
),
|
|
253
|
+
[g, u]
|
|
254
|
+
), W = T(() => {
|
|
238
255
|
var e;
|
|
239
|
-
|
|
240
|
-
}, [
|
|
256
|
+
g === "rich" && ((e = b.current) == null || e.clear()), V(""), B(E), R(null), Y(null);
|
|
257
|
+
}, [g, E]), ce = r === null || j.some((e) => e.id === r && !e.deleted);
|
|
241
258
|
me(() => {
|
|
242
|
-
|
|
243
|
-
}, [
|
|
244
|
-
const
|
|
259
|
+
ce || W();
|
|
260
|
+
}, [ce, W]);
|
|
261
|
+
const k = [...j].sort(
|
|
245
262
|
(e, t) => Number(t.pinned ?? !1) - Number(e.pinned ?? !1)
|
|
246
|
-
), { resolvedTheme:
|
|
247
|
-
key:
|
|
248
|
-
reduceMotion:
|
|
249
|
-
}),
|
|
263
|
+
), { resolvedTheme: $e } = pt(), ue = $e.endsWith("-accessible") || void 0, { containerRef: Ge } = ct({
|
|
264
|
+
key: k.map((e) => e.id).join(),
|
|
265
|
+
reduceMotion: ue
|
|
266
|
+
}), _ = ut({ reduceMotion: ue }), [D, q] = w(null), Ye = T(
|
|
250
267
|
(e) => {
|
|
251
|
-
|
|
268
|
+
h && ($ ? q(e) : _.leave(e, () => h(e)));
|
|
252
269
|
},
|
|
253
|
-
[
|
|
254
|
-
),
|
|
255
|
-
if (!
|
|
256
|
-
const e =
|
|
257
|
-
q(null),
|
|
258
|
-
}, [
|
|
270
|
+
[$, _, h]
|
|
271
|
+
), Je = T(() => {
|
|
272
|
+
if (!D || !h) return;
|
|
273
|
+
const e = D;
|
|
274
|
+
q(null), _.leave(e, () => h(e));
|
|
275
|
+
}, [D, h, _]), J = f(null);
|
|
259
276
|
me(() => {
|
|
260
277
|
var e, t;
|
|
261
|
-
|
|
262
|
-
}, [
|
|
263
|
-
const Q = f(
|
|
264
|
-
Q.current =
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
const F = f(
|
|
268
|
-
F.current =
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
const U = f(
|
|
272
|
-
U.current =
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
278
|
+
y && ((e = J.current) == null || e.scrollIntoView({ block: "center" }), (t = J.current) == null || t.focus());
|
|
279
|
+
}, [y, Z]);
|
|
280
|
+
const Q = f(j);
|
|
281
|
+
Q.current = j;
|
|
282
|
+
const S = f(m);
|
|
283
|
+
S.current = m;
|
|
284
|
+
const F = f(L);
|
|
285
|
+
F.current = L;
|
|
286
|
+
const K = f(H);
|
|
287
|
+
K.current = H;
|
|
288
|
+
const U = f(A);
|
|
289
|
+
U.current = A;
|
|
290
|
+
const fe = f(y);
|
|
291
|
+
fe.current = y;
|
|
292
|
+
const pe = f(null);
|
|
293
|
+
et(We, () => pe.current, []);
|
|
294
|
+
const Qe = tt(
|
|
278
295
|
() => ({
|
|
279
296
|
// Ids + flags only — never the note body or author (both PHI).
|
|
280
297
|
getNotes: () => Q.current.map((e) => ({
|
|
@@ -283,84 +300,86 @@ const Kt = Je(
|
|
|
283
300
|
flagged: !!e.flagged,
|
|
284
301
|
clinical: !!e.clinical
|
|
285
302
|
})),
|
|
286
|
-
canAddNote: () => !!
|
|
303
|
+
canAddNote: () => !!S.current,
|
|
287
304
|
canAddClinical: () => U.current,
|
|
288
|
-
getCurrentNoteId: () =>
|
|
305
|
+
getCurrentNoteId: () => fe.current ?? null,
|
|
289
306
|
addNote: (e) => {
|
|
290
307
|
var t;
|
|
291
308
|
if (!(e.clinical && !U.current))
|
|
292
|
-
return (t =
|
|
309
|
+
return (t = S.current) == null ? void 0 : t.call(S, e);
|
|
293
310
|
},
|
|
294
311
|
togglePin: (e) => {
|
|
295
|
-
var d,
|
|
296
|
-
const t = Q.current.find((
|
|
297
|
-
t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (
|
|
312
|
+
var d, l;
|
|
313
|
+
const t = Q.current.find((s) => s.id === e);
|
|
314
|
+
t && (t.deleted || ((d = t.actions) == null ? void 0 : d.pin) === !1) || (l = F.current) == null || l.call(F, e);
|
|
298
315
|
},
|
|
299
316
|
toggleFlag: (e) => {
|
|
300
317
|
var t;
|
|
301
|
-
return (t =
|
|
318
|
+
return (t = K.current) == null ? void 0 : t.call(K, e);
|
|
302
319
|
}
|
|
303
320
|
}),
|
|
304
321
|
[]
|
|
305
322
|
);
|
|
306
|
-
return
|
|
323
|
+
return at(vt, Qe, c), /* @__PURE__ */ o(
|
|
307
324
|
"section",
|
|
308
325
|
{
|
|
309
|
-
ref:
|
|
326
|
+
ref: pe,
|
|
310
327
|
"data-component": "notes-panel",
|
|
311
328
|
"data-component-id": c,
|
|
312
|
-
"aria-labelledby":
|
|
313
|
-
"aria-label":
|
|
314
|
-
className: ["ds:flex ds:flex-col",
|
|
315
|
-
...
|
|
329
|
+
"aria-labelledby": G ? void 0 : se,
|
|
330
|
+
"aria-label": G,
|
|
331
|
+
className: ["ds:flex ds:flex-col", Oe].filter(Boolean).join(" "),
|
|
332
|
+
...Be,
|
|
316
333
|
children: [
|
|
317
334
|
/* @__PURE__ */ n(
|
|
318
|
-
|
|
335
|
+
dt,
|
|
319
336
|
{
|
|
320
|
-
title:
|
|
321
|
-
icon: /* @__PURE__ */ n(
|
|
322
|
-
headingId:
|
|
337
|
+
title: qe,
|
|
338
|
+
icon: /* @__PURE__ */ n(mt, { "aria-hidden": "true" }),
|
|
339
|
+
headingId: G ? void 0 : se,
|
|
323
340
|
sticky: !0,
|
|
324
341
|
divider: !0
|
|
325
342
|
}
|
|
326
343
|
),
|
|
327
344
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]", children: [
|
|
328
|
-
m ||
|
|
345
|
+
m || r !== null ? /* @__PURE__ */ o(
|
|
329
346
|
"div",
|
|
330
347
|
{
|
|
331
|
-
"data-notes-panel-composer":
|
|
348
|
+
"data-notes-panel-composer": r !== null ? "edit" : "add",
|
|
332
349
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
333
350
|
children: [
|
|
334
|
-
|
|
335
|
-
|
|
351
|
+
g === "rich" ? /* @__PURE__ */ n(
|
|
352
|
+
st,
|
|
336
353
|
{
|
|
337
|
-
ref:
|
|
338
|
-
ariaLabel:
|
|
339
|
-
placeholder:
|
|
340
|
-
toolbar:
|
|
354
|
+
ref: b,
|
|
355
|
+
ariaLabel: re,
|
|
356
|
+
placeholder: le,
|
|
357
|
+
toolbar: Pe,
|
|
341
358
|
minHeight: "fill",
|
|
342
|
-
redactor:
|
|
343
|
-
imageUploadUrl:
|
|
359
|
+
redactor: xe,
|
|
360
|
+
imageUploadUrl: we,
|
|
344
361
|
readOnly: u,
|
|
345
|
-
onChange: ({ html: e }) =>
|
|
346
|
-
onRequestAiDraft:
|
|
347
|
-
aiDraftFormat:
|
|
348
|
-
aiPrivacyNotice:
|
|
349
|
-
onDictate:
|
|
350
|
-
onProofread:
|
|
351
|
-
onAutoFormat:
|
|
362
|
+
onChange: ({ html: e }) => V(e),
|
|
363
|
+
onRequestAiDraft: Ne,
|
|
364
|
+
aiDraftFormat: Ve,
|
|
365
|
+
aiPrivacyNotice: Re,
|
|
366
|
+
onDictate: ke,
|
|
367
|
+
onProofread: _e,
|
|
368
|
+
onAutoFormat: Se,
|
|
369
|
+
aiConsent: Ie,
|
|
370
|
+
aiConsentHeadingLevel: 3
|
|
352
371
|
}
|
|
353
372
|
) : /* @__PURE__ */ n(
|
|
354
|
-
|
|
373
|
+
lt,
|
|
355
374
|
{
|
|
356
|
-
value:
|
|
375
|
+
value: P,
|
|
357
376
|
readOnly: u,
|
|
358
|
-
onChange: (e) =>
|
|
359
|
-
placeholder:
|
|
377
|
+
onChange: (e) => V(e.target.value),
|
|
378
|
+
placeholder: le,
|
|
360
379
|
autoResize: !0,
|
|
361
380
|
minRows: 2,
|
|
362
381
|
maxRows: 6,
|
|
363
|
-
"aria-label":
|
|
382
|
+
"aria-label": re
|
|
364
383
|
}
|
|
365
384
|
),
|
|
366
385
|
/* @__PURE__ */ o(
|
|
@@ -368,56 +387,56 @@ const Kt = Je(
|
|
|
368
387
|
{
|
|
369
388
|
className: [
|
|
370
389
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
371
|
-
|
|
390
|
+
oe ? "ds:justify-between" : "ds:justify-end"
|
|
372
391
|
].join(" "),
|
|
373
392
|
children: [
|
|
374
|
-
|
|
393
|
+
oe ? /* @__PURE__ */ n(
|
|
375
394
|
rt,
|
|
376
395
|
{
|
|
377
396
|
size: "sm",
|
|
378
397
|
label: a("notesPanel.clinicalToggle", {
|
|
379
398
|
defaultValue: "Clinical note"
|
|
380
399
|
}),
|
|
381
|
-
checked:
|
|
382
|
-
onCheckedChange: (e) =>
|
|
383
|
-
disabled: u || !
|
|
384
|
-
disabledReason:
|
|
400
|
+
checked: O,
|
|
401
|
+
onCheckedChange: (e) => B(e === !0),
|
|
402
|
+
disabled: u || !A,
|
|
403
|
+
disabledReason: A ? void 0 : Ee ?? a("notesPanel.clinicalGated", {
|
|
385
404
|
defaultValue: "You do not have permission to write clinical notes."
|
|
386
405
|
})
|
|
387
406
|
}
|
|
388
407
|
) : null,
|
|
389
408
|
/* @__PURE__ */ o("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
390
|
-
|
|
391
|
-
|
|
409
|
+
r !== null ? /* @__PURE__ */ n(
|
|
410
|
+
z,
|
|
392
411
|
{
|
|
393
412
|
type: "button",
|
|
394
413
|
size: "sm",
|
|
395
414
|
intent: "ghost",
|
|
396
|
-
onClick:
|
|
415
|
+
onClick: W,
|
|
397
416
|
disabled: u,
|
|
398
417
|
children: a("notesPanel.cancelEdit", { defaultValue: "Cancel" })
|
|
399
418
|
}
|
|
400
419
|
) : null,
|
|
401
420
|
/* @__PURE__ */ n(
|
|
402
|
-
|
|
421
|
+
z,
|
|
403
422
|
{
|
|
404
423
|
type: "button",
|
|
405
424
|
size: "sm",
|
|
406
425
|
onClick: Ke,
|
|
407
|
-
disabled: !
|
|
426
|
+
disabled: !Fe,
|
|
408
427
|
loading: u,
|
|
409
|
-
children:
|
|
428
|
+
children: r !== null ? a("notesPanel.saveEdit", { defaultValue: "Save note" }) : Le ?? a("notesPanel.add", { defaultValue: "Add note" })
|
|
410
429
|
}
|
|
411
430
|
)
|
|
412
431
|
] })
|
|
413
432
|
]
|
|
414
433
|
}
|
|
415
434
|
),
|
|
416
|
-
|
|
435
|
+
ae ? /* @__PURE__ */ n(I, { variant: "error", children: /* @__PURE__ */ n(I.Description, { children: ae }) }) : null
|
|
417
436
|
]
|
|
418
437
|
}
|
|
419
438
|
) : null,
|
|
420
|
-
|
|
439
|
+
C === "loading" && k.length === 0 ? (
|
|
421
440
|
/* Note-shaped placeholders, not a spinner: the reader sees where
|
|
422
441
|
the notes will land and how many to expect. The status text is
|
|
423
442
|
for assistive tech only; sighted readers get the motion. */
|
|
@@ -429,10 +448,10 @@ const Kt = Je(
|
|
|
429
448
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
430
449
|
children: [
|
|
431
450
|
/* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }),
|
|
432
|
-
|
|
451
|
+
xt.map((e, t) => /* @__PURE__ */ n(he, { variant: "elevated", "aria-hidden": "true", children: /* @__PURE__ */ n(he.Body, { children: /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
433
452
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
434
453
|
/* @__PURE__ */ n(
|
|
435
|
-
|
|
454
|
+
M,
|
|
436
455
|
{
|
|
437
456
|
variant: "circular",
|
|
438
457
|
size: "sm",
|
|
@@ -441,7 +460,7 @@ const Kt = Je(
|
|
|
441
460
|
),
|
|
442
461
|
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
443
462
|
/* @__PURE__ */ n(
|
|
444
|
-
|
|
463
|
+
M,
|
|
445
464
|
{
|
|
446
465
|
variant: "text",
|
|
447
466
|
size: "sm",
|
|
@@ -450,7 +469,7 @@ const Kt = Je(
|
|
|
450
469
|
}
|
|
451
470
|
),
|
|
452
471
|
/* @__PURE__ */ n(
|
|
453
|
-
|
|
472
|
+
M,
|
|
454
473
|
{
|
|
455
474
|
variant: "text",
|
|
456
475
|
size: "sm",
|
|
@@ -461,7 +480,7 @@ const Kt = Je(
|
|
|
461
480
|
] })
|
|
462
481
|
] }),
|
|
463
482
|
/* @__PURE__ */ n(
|
|
464
|
-
|
|
483
|
+
M,
|
|
465
484
|
{
|
|
466
485
|
variant: "text",
|
|
467
486
|
size: "sm",
|
|
@@ -473,85 +492,102 @@ const Kt = Je(
|
|
|
473
492
|
]
|
|
474
493
|
}
|
|
475
494
|
)
|
|
476
|
-
) :
|
|
477
|
-
/* @__PURE__ */ n(
|
|
478
|
-
X ? /* @__PURE__ */ n(
|
|
495
|
+
) : C === "error" ? /* @__PURE__ */ o(I, { variant: "error", children: [
|
|
496
|
+
/* @__PURE__ */ n(I.Description, { children: a("notesPanel.loadError") }),
|
|
497
|
+
X ? /* @__PURE__ */ n(I.Action, { children: /* @__PURE__ */ n(z, { intent: "secondary", size: "sm", onClick: X, children: a("notesPanel.retry") }) }) : null
|
|
479
498
|
] }) : null,
|
|
480
|
-
|
|
481
|
-
|
|
499
|
+
C === "loading" && k.length > 0 ? /* @__PURE__ */ n("span", { role: "status", className: "ds:sr-only", children: a("notesPanel.loading") }) : null,
|
|
500
|
+
k.length > 0 ? /* @__PURE__ */ n(
|
|
482
501
|
"ul",
|
|
483
502
|
{
|
|
484
|
-
ref:
|
|
485
|
-
"aria-busy":
|
|
486
|
-
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${
|
|
487
|
-
children:
|
|
488
|
-
const
|
|
503
|
+
ref: Ge,
|
|
504
|
+
"aria-busy": C === "loading" || void 0,
|
|
505
|
+
className: `ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0 ${De}`.trim(),
|
|
506
|
+
children: k.map(({ actions: e, ...t }, d) => {
|
|
507
|
+
const l = y != null && t.id === y, s = t.id, x = s != null && r === s, p = s != null && _.isLeaving(s);
|
|
489
508
|
return /* @__PURE__ */ o(
|
|
490
509
|
"li",
|
|
491
510
|
{
|
|
492
|
-
ref:
|
|
493
|
-
tabIndex:
|
|
494
|
-
"aria-current":
|
|
495
|
-
"data-reflow-id":
|
|
496
|
-
"data-leaving":
|
|
497
|
-
"data-editing":
|
|
511
|
+
ref: l ? J : void 0,
|
|
512
|
+
tabIndex: l ? -1 : void 0,
|
|
513
|
+
"aria-current": l ? "true" : void 0,
|
|
514
|
+
"data-reflow-id": s,
|
|
515
|
+
"data-leaving": p ? "" : void 0,
|
|
516
|
+
"data-editing": x ? "" : void 0,
|
|
498
517
|
className: [
|
|
499
|
-
|
|
500
|
-
current:
|
|
518
|
+
bt({
|
|
519
|
+
current: l,
|
|
520
|
+
washed: l || x
|
|
501
521
|
}),
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
522
|
+
Pt,
|
|
523
|
+
ft,
|
|
524
|
+
p ? Ct : ""
|
|
505
525
|
].filter(Boolean).join(" "),
|
|
506
526
|
children: [
|
|
507
|
-
|
|
527
|
+
l ? /* @__PURE__ */ n("span", { className: "ds:sr-only", children: a("notesPanel.current", {
|
|
508
528
|
defaultValue: "Current note"
|
|
509
529
|
}) }) : null,
|
|
530
|
+
x ? /* @__PURE__ */ n(
|
|
531
|
+
"span",
|
|
532
|
+
{
|
|
533
|
+
"aria-hidden": "true",
|
|
534
|
+
"data-notes-panel-wash": "editing",
|
|
535
|
+
className: ye({ state: "editing" })
|
|
536
|
+
}
|
|
537
|
+
) : l ? /* @__PURE__ */ n(
|
|
538
|
+
"span",
|
|
539
|
+
{
|
|
540
|
+
"aria-hidden": "true",
|
|
541
|
+
"data-notes-panel-wash": "addressed",
|
|
542
|
+
className: ye({ state: "addressed" })
|
|
543
|
+
},
|
|
544
|
+
`${y}:${Z ?? ""}`
|
|
545
|
+
) : null,
|
|
510
546
|
/* @__PURE__ */ n(
|
|
511
|
-
|
|
547
|
+
it,
|
|
512
548
|
{
|
|
513
549
|
surface: "elevated",
|
|
514
|
-
truncate: !
|
|
515
|
-
headerActions: /* @__PURE__ */ o(
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
550
|
+
truncate: !l,
|
|
551
|
+
headerActions: /* @__PURE__ */ o(Ue, { children: [
|
|
552
|
+
ee ? ee({ ...t, actions: e }) : null,
|
|
553
|
+
N && s && !t.deleted && (e == null ? void 0 : e.edit) !== !1 ? /* @__PURE__ */ n(
|
|
554
|
+
ge,
|
|
519
555
|
{
|
|
520
|
-
icon: /* @__PURE__ */ n(
|
|
556
|
+
icon: /* @__PURE__ */ n(gt, {}),
|
|
521
557
|
intent: "ghost",
|
|
522
558
|
size: "sm",
|
|
523
559
|
"aria-label": a("notesPanel.editNamed", {
|
|
524
|
-
date:
|
|
560
|
+
date: de(t),
|
|
525
561
|
defaultValue: "Edit note · {{date}}"
|
|
526
562
|
}),
|
|
527
563
|
tooltip: a("notesPanel.edit", {
|
|
528
564
|
defaultValue: "Edit note"
|
|
529
565
|
}),
|
|
530
|
-
"aria-pressed":
|
|
566
|
+
"aria-pressed": r === s,
|
|
531
567
|
disabled: u,
|
|
532
568
|
"data-notes-panel-edit": "",
|
|
533
|
-
onClick: () =>
|
|
569
|
+
onClick: () => r === s ? W() : Me(t)
|
|
534
570
|
}
|
|
535
571
|
) : null,
|
|
536
|
-
|
|
537
|
-
|
|
572
|
+
h && s && !t.deleted ? /* @__PURE__ */ n(
|
|
573
|
+
ge,
|
|
538
574
|
{
|
|
539
|
-
icon: /* @__PURE__ */ n(
|
|
575
|
+
icon: /* @__PURE__ */ n(ht, {}),
|
|
540
576
|
intent: "ghost",
|
|
541
577
|
size: "sm",
|
|
542
578
|
"aria-label": a("notesPanel.deleteNamed", {
|
|
543
|
-
date:
|
|
579
|
+
date: de(t),
|
|
544
580
|
defaultValue: "Delete note · {{date}}"
|
|
545
581
|
}),
|
|
546
582
|
tooltip: a("notesPanel.delete", {
|
|
547
583
|
defaultValue: "Delete note"
|
|
548
584
|
}),
|
|
549
|
-
onClick: () =>
|
|
585
|
+
onClick: () => Ye(s)
|
|
550
586
|
}
|
|
551
587
|
) : null
|
|
552
588
|
] }),
|
|
553
589
|
...t,
|
|
554
|
-
onTogglePin:
|
|
590
|
+
onTogglePin: L && t.id && (e == null ? void 0 : e.pin) !== !1 && !t.deleted ? () => L(t.id) : void 0,
|
|
555
591
|
onToggleFlag: H && t.id ? () => H(t.id) : void 0
|
|
556
592
|
}
|
|
557
593
|
)
|
|
@@ -561,23 +597,23 @@ const Kt = Je(
|
|
|
561
597
|
);
|
|
562
598
|
})
|
|
563
599
|
}
|
|
564
|
-
) :
|
|
600
|
+
) : C !== "ready" ? null : He ?? /* @__PURE__ */ n("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)]", children: a("notesPanel.empty", { defaultValue: "No notes yet." }) })
|
|
565
601
|
] }),
|
|
566
|
-
|
|
567
|
-
|
|
602
|
+
h && $ ? /* @__PURE__ */ n(
|
|
603
|
+
v,
|
|
568
604
|
{
|
|
569
|
-
open:
|
|
605
|
+
open: D !== null,
|
|
570
606
|
onOpenChange: (e) => !e && q(null),
|
|
571
|
-
children: /* @__PURE__ */ o(
|
|
572
|
-
/* @__PURE__ */ n(
|
|
607
|
+
children: /* @__PURE__ */ o(v.Content, { variant: "alert", size: "sm", children: [
|
|
608
|
+
/* @__PURE__ */ n(v.Header, { children: /* @__PURE__ */ n(v.Title, { children: a("notesPanel.deleteConfirmTitle", {
|
|
573
609
|
defaultValue: "Delete this note?"
|
|
574
610
|
}) }) }),
|
|
575
|
-
/* @__PURE__ */ n(
|
|
611
|
+
/* @__PURE__ */ n(v.Body, { children: /* @__PURE__ */ n(v.Description, { children: a("notesPanel.deleteConfirmBody", {
|
|
576
612
|
defaultValue: "The note will be removed from the record."
|
|
577
613
|
}) }) }),
|
|
578
|
-
/* @__PURE__ */ o(
|
|
579
|
-
/* @__PURE__ */ n(
|
|
580
|
-
|
|
614
|
+
/* @__PURE__ */ o(v.Footer, { children: [
|
|
615
|
+
/* @__PURE__ */ n(v.Close, { asChild: !0, children: /* @__PURE__ */ n(
|
|
616
|
+
z,
|
|
581
617
|
{
|
|
582
618
|
intent: "secondary",
|
|
583
619
|
size: "sm",
|
|
@@ -588,11 +624,11 @@ const Kt = Je(
|
|
|
588
624
|
}
|
|
589
625
|
) }),
|
|
590
626
|
/* @__PURE__ */ n(
|
|
591
|
-
|
|
627
|
+
z,
|
|
592
628
|
{
|
|
593
629
|
intent: "destructive",
|
|
594
630
|
size: "sm",
|
|
595
|
-
onClick:
|
|
631
|
+
onClick: Je,
|
|
596
632
|
children: a("notesPanel.deleteConfirmAction", {
|
|
597
633
|
defaultValue: "Delete"
|
|
598
634
|
})
|
|
@@ -609,6 +645,6 @@ const Kt = Je(
|
|
|
609
645
|
);
|
|
610
646
|
export {
|
|
611
647
|
Kt as N,
|
|
612
|
-
|
|
648
|
+
ve as g
|
|
613
649
|
};
|
|
614
|
-
//# sourceMappingURL=notes-panel-
|
|
650
|
+
//# sourceMappingURL=notes-panel-CmTqIWlS.js.map
|