@alfadocs/ui-kit 0.69.0 → 0.71.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-CPbFJ8e8.js +246 -0
- 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-prompt-input-CuhTo9mh.js → ai-prompt-input-V4DdOeqv.js} +2 -2
- package/dist/_chunks/{alert-_mUKLmwA.js → alert-CHYZ96tR.js} +150 -96
- package/dist/_chunks/{alia-sidebar-B47qRQb5.js → alia-sidebar-DvIUzIX9.js} +107 -106
- package/dist/_chunks/{anamnesis-card-DRmE24OQ.js → anamnesis-card-DvYCa16e.js} +2 -2
- package/dist/_chunks/anatomy-scheme-CXSk11UJ.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/{app-frame-BYx1gcV7.js → app-frame-DIEMIC5V.js} +67 -56
- package/dist/_chunks/appointment-card-DVaeJNVB.js +294 -0
- package/dist/_chunks/appointment-timeline-PJgnrjFb.js +388 -0
- package/dist/_chunks/appointment-tray-B16QPGbm.js +193 -0
- package/dist/_chunks/{audio-recorder-DYXXnGug.js → audio-recorder-DNDsOLqO.js} +3 -3
- package/dist/_chunks/{autocomplete-DOeGouCL.js → autocomplete-BrONKN8l.js} +168 -146
- package/dist/_chunks/{badge-CqGsX32l.js → badge-DCOqV9mI.js} +32 -27
- package/dist/_chunks/{bishop-score-PJI3AXzA.js → bishop-score-Cym_TeQY.js} +3 -3
- package/dist/_chunks/{bmi-calculator-BZtIJ53x.js → bmi-calculator-zjeY4E7J.js} +2 -2
- package/dist/_chunks/{booking-C3VqFReX.js → booking-C7do4vaR.js} +7 -7
- package/dist/_chunks/{button-group-Ciq6J4IW.js → button-group-CvEnVzY7.js} +32 -35
- package/dist/_chunks/{care-plan-card-CvFGXa2z.js → care-plan-card-DzPDYgtK.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-C3E_gClk.js → care-plan-entry-card-CEnQy7YP.js} +5 -5
- package/dist/_chunks/care-plan-header-DcXFXWit.js +198 -0
- package/dist/_chunks/{chat-message-3V54YipB.js → chat-message-DzpcJR-q.js} +25 -23
- package/dist/_chunks/city-input-Dkgaak7I.js +169 -0
- package/dist/_chunks/clinical-note-card-BUvNMNGL.js +436 -0
- package/dist/_chunks/clipboard-list-S7s-MXQq.js +25 -0
- package/dist/_chunks/{combobox-Clum7gJ1.js → combobox-DnqSF0IH.js} +131 -114
- package/dist/_chunks/connection-status-CY1HV8Wg.js +108 -0
- package/dist/_chunks/{contact-profile-card-Dramqa9C.js → contact-profile-card-DDPwRFiP.js} +2 -2
- package/dist/_chunks/control-room-rail-FAQZrGVL.js +333 -0
- package/dist/_chunks/country-select-BwUZQvTa.js +709 -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-CGELrkIj.js +410 -0
- package/dist/_chunks/email-input-DJ7EXklP.js +397 -0
- package/dist/_chunks/{entity-card-COhmqHly.js → entity-card-DmrgYSEX.js} +38 -20
- package/dist/_chunks/entity-summary-CaM1Y-xE.js +291 -0
- package/dist/_chunks/{fetal-weight-CRz7KE2D.js → fetal-weight-DNCkyeVo.js} +2 -2
- package/dist/_chunks/field-array-siUZzfYe.js +146 -0
- package/dist/_chunks/field-value-3jMM0uDx.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-DKzEV5Qi.js} +4 -4
- 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/iban-input-B0TWzR1R.js +436 -0
- package/dist/_chunks/icon-picker-0B7KhrF1.js +272 -0
- package/dist/_chunks/image-cropper-D9jqJy19.js +367 -0
- package/dist/_chunks/{actions-cell-renderer-DrcaxB0w.js → link-cell-renderer-De_SLjSq.js} +792 -668
- package/dist/_chunks/list-checks-BUs75d_o.js +18 -0
- package/dist/_chunks/lock-CKOIn0IK.js +15 -0
- package/dist/_chunks/{marketplace-app-shell-6T9W4Knl.js → marketplace-app-shell-BGqkywsi.js} +5 -5
- package/dist/_chunks/message-card-DsHFFiL1.js +319 -0
- package/dist/_chunks/{message-tray-DwrBLJlf.js → message-tray-C0a6CL1_.js} +172 -135
- package/dist/_chunks/{multi-select-BdHHDrRN.js → multi-select-WE4S9FIF.js} +75 -63
- package/dist/_chunks/nav-grid-9xphY3FM.js +169 -0
- package/dist/_chunks/notes-panel-DXiMfuvp.js +320 -0
- package/dist/_chunks/notification-card-BMqNzCIt.js +290 -0
- package/dist/_chunks/{notification-tray-Btb9oQeZ.js → notification-tray-BmUlCx3g.js} +201 -166
- package/dist/_chunks/{operator-hero-CP2Nhupm.js → operator-hero-BO8TqzX2.js} +3 -3
- package/dist/_chunks/panel-header-D313n_9-.js +105 -0
- package/dist/_chunks/patient-details-DgfTJimE.js +759 -0
- package/dist/_chunks/{patient-search-CBC_ySF6.js → patient-search-CSWQKOSP.js} +3 -3
- package/dist/_chunks/{patient-shell-DV3XEtIB.js → patient-shell-BMwsIKlW.js} +3 -3
- package/dist/_chunks/patient-summary-card-D4NdgYJB.js +452 -0
- package/dist/_chunks/patient-table-CERknpd8.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-Blf-MFNY.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/permission-matrix-Bw5oexUt.js +174 -0
- package/dist/_chunks/position-grid-CcvqHaKN.js +169 -0
- package/dist/_chunks/postal-code-input-UCOYuRY2.js +192 -0
- package/dist/_chunks/{practice-results-KrTHqZua.js → practice-results-El5Z-oVp.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-DORUAOHB.js → pregnancy-dating-CunHrOpO.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-DVz4rr7-.js → pregnancy-weight-gain-BUNpTsH-.js} +2 -2
- package/dist/_chunks/{product-hub-panel-e6pW220e.js → product-hub-panel-DtU7KXxm.js} +257 -217
- package/dist/_chunks/province-select-D_TZvix3.js +261 -0
- package/dist/_chunks/{public-header.agent-DqkqA-ca.js → public-header.agent-TxmC_x1I.js} +2 -2
- package/dist/_chunks/radiograph-panel.agent-tWjN2nHX.js +553 -0
- package/dist/_chunks/reviews-panel-DxkSrgMl.js +559 -0
- package/dist/_chunks/rich-text-editor-C8tyGjfb.js +2621 -0
- package/dist/_chunks/{scroll-area-5wNK0Cyz.js → scroll-area-BZOvUhwQ.js} +2 -2
- package/dist/_chunks/{select-DMLG44F5.js → select-KsyRr8WH.js} +114 -102
- package/dist/_chunks/{sheet-BxsE7eQm.js → sheet-umkfZjF6.js} +53 -42
- package/dist/_chunks/{sidebar-DY9jGjgt.js → sidebar-QCp9wHNP.js} +125 -113
- 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/{tabs-BxcOziCo.js → tabs-CYZVKKDl.js} +2 -2
- package/dist/_chunks/task-card-DCdsI0ZT.js +189 -0
- package/dist/_chunks/{task-tray-qOEQflu4.js → task-tray-DNVejijD.js} +2 -2
- package/dist/_chunks/tasks-panel-C9odmawT.js +757 -0
- package/dist/_chunks/token-insert-menu-CFQqTe_n.js +147 -0
- package/dist/_chunks/tool-rail-BZx0-yIr.js +524 -0
- package/dist/_chunks/tooth-scheme-DJZtzfeY.js +2133 -0
- package/dist/_chunks/{transaction-chip-DK84XCBU.js → transaction-chip-CscoQbxF.js} +88 -61
- package/dist/_chunks/{transcript-panel-3THQX6nJ.js → transcript-panel-CHGHHHdT.js} +95 -83
- package/dist/_chunks/{unit-converter-YEpD9evj.js → unit-converter-CwlZbfdn.js} +2 -2
- 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-M8MBBHQm.js} +107 -119
- 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 +3325 -322
- package/dist/agent-i18n/en.json +314 -14
- 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/option.d.ts +2 -0
- package/dist/components/_shared/patient-fields.d.ts +119 -0
- package/dist/components/address-fields/address-fields.agent.d.ts +9 -0
- package/dist/components/address-fields/address-fields.d.ts +29 -0
- package/dist/components/address-fields/index.d.ts +5 -0
- package/dist/components/address-fields/index.js +6 -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-prompt-input/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/app-frame/app-frame.d.ts +2 -2
- package/dist/components/app-frame/index.js +1 -1
- 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/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/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/button-group/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 +111 -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/chat-message/index.js +1 -1
- package/dist/components/city-input/city-input.agent.d.ts +8 -0
- package/dist/components/city-input/city-input.d.ts +57 -0
- package/dist/components/city-input/index.d.ts +5 -0
- package/dist/components/city-input/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/combobox/combobox.d.ts +17 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/connection-status.agent.d.ts +4 -0
- package/dist/components/connection-status/connection-status.d.ts +36 -0
- package/dist/components/connection-status/index.d.ts +4 -0
- package/dist/components/connection-status/index.js +6 -0
- 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.agent.d.ts +4 -0
- package/dist/components/control-room-rail/control-room-rail.d.ts +35 -0
- package/dist/components/control-room-rail/index.d.ts +6 -0
- package/dist/components/control-room-rail/index.js +10 -0
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/country-select/country-select.agent.d.ts +8 -0
- package/dist/components/country-select/country-select.d.ts +51 -0
- package/dist/components/country-select/index.d.ts +6 -0
- package/dist/components/country-select/index.js +9 -0
- package/dist/components/country-select/iso-3166.d.ts +15 -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/cell-renderers/reorder-cell-renderer.d.ts +34 -0
- package/dist/components/data-table/index.d.ts +3 -1
- package/dist/components/data-table/index.js +35 -32
- 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.agent.d.ts +4 -0
- package/dist/components/entity-summary/entity-summary.d.ts +92 -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/field-array/field-array.agent.d.ts +4 -0
- package/dist/components/field-array/field-array.d.ts +45 -0
- package/dist/components/field-array/index.d.ts +4 -0
- package/dist/components/field-array/index.js +6 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +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/iban-input/iban-input.agent.d.ts +4 -0
- package/dist/components/iban-input/iban-input.d.ts +51 -0
- package/dist/components/iban-input/index.d.ts +5 -0
- package/dist/components/iban-input/index.js +13 -0
- package/dist/components/iban-input/is-valid-iban.d.ts +31 -0
- package/dist/components/icon-picker/icon-picker.agent.d.ts +4 -0
- package/dist/components/icon-picker/icon-picker.d.ts +41 -0
- package/dist/components/icon-picker/index.d.ts +4 -0
- package/dist/components/icon-picker/index.js +6 -0
- package/dist/components/image-cropper/crop-geometry.d.ts +30 -0
- package/dist/components/image-cropper/image-cropper.agent.d.ts +4 -0
- package/dist/components/image-cropper/image-cropper.d.ts +32 -0
- package/dist/components/image-cropper/index.d.ts +5 -0
- package/dist/components/image-cropper/index.js +11 -0
- package/dist/components/index.d.ts +25 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +14 -0
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts +4 -0
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/nav-grid/index.d.ts +4 -0
- package/dist/components/nav-grid/index.js +7 -0
- package/dist/components/nav-grid/nav-grid.agent.d.ts +4 -0
- package/dist/components/nav-grid/nav-grid.d.ts +41 -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.agent.d.ts +4 -0
- package/dist/components/notes-panel/notes-panel.d.ts +94 -0
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +15 -0
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts +4 -0
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/panel-header/index.d.ts +3 -0
- package/dist/components/panel-header/index.js +7 -0
- package/dist/components/panel-header/panel-header.d.ts +41 -0
- 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/permission-matrix/index.d.ts +4 -0
- package/dist/components/permission-matrix/index.js +7 -0
- package/dist/components/permission-matrix/permission-matrix.agent.d.ts +4 -0
- package/dist/components/permission-matrix/permission-matrix.d.ts +47 -0
- package/dist/components/position-grid/index.d.ts +4 -0
- package/dist/components/position-grid/index.js +7 -0
- package/dist/components/position-grid/position-grid.agent.d.ts +4 -0
- package/dist/components/position-grid/position-grid.d.ts +39 -0
- package/dist/components/postal-code-input/index.d.ts +5 -0
- package/dist/components/postal-code-input/index.js +6 -0
- package/dist/components/postal-code-input/postal-code-input.agent.d.ts +8 -0
- package/dist/components/postal-code-input/postal-code-input.d.ts +27 -0
- 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/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +13 -1
- package/dist/components/province-select/index.d.ts +6 -0
- package/dist/components/province-select/index.js +7 -0
- package/dist/components/province-select/it-provinces.d.ts +8 -0
- package/dist/components/province-select/province-select.agent.d.ts +8 -0
- package/dist/components/province-select/province-select.d.ts +38 -0
- package/dist/components/public-footer/public-footer.d.ts +1 -1
- package/dist/components/public-header/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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +17 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -2
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +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/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.d.ts +14 -6
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.d.ts +4 -0
- package/dist/components/tasks-panel/index.js +6 -0
- package/dist/components/tasks-panel/tasks-panel.agent.d.ts +4 -0
- package/dist/components/tasks-panel/tasks-panel.d.ts +152 -0
- package/dist/components/token-insert-menu/index.d.ts +4 -0
- package/dist/components/token-insert-menu/index.js +6 -0
- package/dist/components/token-insert-menu/token-insert-menu.agent.d.ts +4 -0
- package/dist/components/token-insert-menu/token-insert-menu.d.ts +33 -0
- package/dist/components/tool-rail/index.d.ts +4 -0
- package/dist/components/tool-rail/index.js +6 -0
- package/dist/components/tool-rail/tool-rail.agent.d.ts +4 -0
- package/dist/components/tool-rail/tool-rail.d.ts +160 -0
- 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 +84 -11
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +2 -2
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/transcript-panel/transcript-panel.d.ts +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- 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-edge-resize.d.ts +2 -2
- 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 +475 -26
- package/dist/i18n/locales/ar.js +478 -31
- package/dist/i18n/locales/de.d.ts +475 -26
- package/dist/i18n/locales/de.js +480 -31
- package/dist/i18n/locales/el.d.ts +475 -26
- package/dist/i18n/locales/el.js +485 -31
- package/dist/i18n/locales/en.d.ts +476 -34
- package/dist/i18n/locales/en.js +492 -39
- package/dist/i18n/locales/es.d.ts +475 -26
- package/dist/i18n/locales/es.js +477 -31
- package/dist/i18n/locales/fr.d.ts +475 -26
- package/dist/i18n/locales/fr.js +480 -31
- package/dist/i18n/locales/hi.d.ts +475 -26
- package/dist/i18n/locales/hi.js +476 -31
- package/dist/i18n/locales/it.d.ts +475 -26
- package/dist/i18n/locales/it.js +480 -31
- package/dist/i18n/locales/ja.d.ts +475 -26
- package/dist/i18n/locales/ja.js +481 -31
- package/dist/i18n/locales/nl.d.ts +475 -26
- package/dist/i18n/locales/nl.js +473 -31
- package/dist/i18n/locales/pl.d.ts +475 -26
- package/dist/i18n/locales/pl.js +481 -31
- package/dist/i18n/locales/pt.d.ts +475 -26
- package/dist/i18n/locales/pt.js +485 -31
- package/dist/i18n/locales/ro.d.ts +475 -26
- package/dist/i18n/locales/ro.js +485 -31
- package/dist/i18n/locales/ru.d.ts +475 -26
- package/dist/i18n/locales/ru.js +478 -31
- package/dist/i18n/locales/sq.d.ts +475 -26
- package/dist/i18n/locales/sq.js +482 -31
- package/dist/i18n/locales/sv.d.ts +475 -26
- package/dist/i18n/locales/sv.js +480 -31
- package/dist/i18n/locales/tr.d.ts +475 -26
- package/dist/i18n/locales/tr.js +478 -31
- package/dist/i18n/locales/zh.d.ts +475 -26
- package/dist/i18n/locales/zh.js +473 -31
- package/dist/index.js +826 -709
- package/dist/locales/ar.json +480 -31
- package/dist/locales/de.json +480 -31
- package/dist/locales/el.json +480 -31
- package/dist/locales/en.json +480 -31
- package/dist/locales/es.json +480 -31
- package/dist/locales/fr.json +480 -31
- package/dist/locales/hi.json +480 -31
- package/dist/locales/it.json +480 -31
- package/dist/locales/ja.json +480 -31
- package/dist/locales/nl.json +480 -31
- package/dist/locales/pl.json +480 -31
- package/dist/locales/pt.json +480 -31
- package/dist/locales/ro.json +480 -31
- package/dist/locales/ru.json +480 -31
- package/dist/locales/sq.json +480 -31
- package/dist/locales/sv.json +480 -31
- package/dist/locales/tr.json +480 -31
- package/dist/locales/zh.json +480 -31
- package/dist/patterns/alia-assistant/alia-types.d.ts +9 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +9 -1
- package/package.json +101 -5
- 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/message-card-Bx4GmLvf.js +0 -277
- package/dist/_chunks/notification-card-BiESdm8q.js +0 -255
- package/dist/_chunks/patient-summary-card-B836_fDB.js +0 -435
- package/dist/_chunks/patient-table-CDuosVru.js +0 -889
- package/dist/_chunks/reviews-panel-Dq7LMDcH.js +0 -555
- package/dist/_chunks/rich-text-editor-BsV7zUdg.js +0 -2142
- package/dist/_chunks/tab-bar-B1ovILzh.js +0 -105
- package/dist/_chunks/task-card-BwY9jaV1.js +0 -124
- package/dist/_chunks/tooth-scheme-yBr53cvv.js +0 -1330
- package/dist/_chunks/use-persistent-state-i23OWy6G.js +0 -24
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +0 -4
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +0 -68
- package/dist/components/ai-tools-rail/index.d.ts +0 -4
- package/dist/components/ai-tools-rail/index.js +0 -6
- package/dist/components/patient-table/cell-renderers/contact-cell.d.ts +0 -45
- package/dist/components/patient-table/cell-renderers/patient-identity-cell.d.ts +0 -26
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as M, useMemo as P, useState as R, useRef as B, useCallback as L } from "react";
|
|
3
|
-
import { c as D } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as U } from "react-i18next";
|
|
5
|
-
import { I as W } from "./icon-button-LqoiKcUN.js";
|
|
6
|
-
import { B as N } from "./button-DD_0Xdmr.js";
|
|
7
|
-
import { T as E } from "./timestamp-BV2lC-wV.js";
|
|
8
|
-
import { X as H } from "./x-CCcI3eJp.js";
|
|
9
|
-
const X = D(
|
|
10
|
-
[
|
|
11
|
-
"ds:relative ds:flex ds:gap-[var(--spacing-sm)]",
|
|
12
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
13
|
-
"ds:transition-colors",
|
|
14
|
-
// Mount: fade + slide-down so a fresh notification reads as arriving.
|
|
15
|
-
// `data-leaving=true` plays the matching exit, driven by the owning
|
|
16
|
-
// tray's AnimatePresence loop.
|
|
17
|
-
"ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:slide-in-from-top-2 ds:motion-safe:duration-[var(--animation-duration)]",
|
|
18
|
-
"ds:data-[leaving=true]:motion-safe:animate-out ds:data-[leaving=true]:motion-safe:fade-out-0 ds:data-[leaving=true]:motion-safe:slide-out-to-top-2",
|
|
19
|
-
// Pin the exit's end-state until React unmounts. Without `fill-mode-forwards`
|
|
20
|
-
// tw-animate-css leaves the element at opacity:1 for one paint frame after
|
|
21
|
-
// the animation ends — the "flicker before it animates away" bug.
|
|
22
|
-
"ds:data-[leaving=true]:motion-safe:fill-mode-forwards",
|
|
23
|
-
"ds:data-[leaving=true]:pointer-events-none",
|
|
24
|
-
"ds:motion-reduce:transition-none",
|
|
25
|
-
"ds:text-start",
|
|
26
|
-
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
27
|
-
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
28
|
-
].join(" "),
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
compact: "ds:items-start",
|
|
33
|
-
dashboard: "ds:flex-col ds:sm:flex-row ds:items-stretch ds:sm:items-start ds:border ds:border-[color:var(--card-border)] ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]"
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
sm: "ds:p-[var(--spacing-sm)]",
|
|
37
|
-
md: "ds:p-[var(--spacing-md)]"
|
|
38
|
-
},
|
|
39
|
-
state: {
|
|
40
|
-
unread: "",
|
|
41
|
-
read: "ds:bg-transparent"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
compoundVariants: [
|
|
45
|
-
{
|
|
46
|
-
variant: "compact",
|
|
47
|
-
state: "unread",
|
|
48
|
-
class: "ds:bg-[color:var(--accent)]/5"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
variant: "compact",
|
|
52
|
-
state: "read",
|
|
53
|
-
class: "ds:hover:bg-[color:var(--muted)]/40"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
variant: "dashboard",
|
|
57
|
-
state: "unread",
|
|
58
|
-
class: "ds:bg-[color:var(--accent)]/5"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
defaultVariants: {
|
|
62
|
-
variant: "compact",
|
|
63
|
-
size: "sm",
|
|
64
|
-
state: "read"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
), C = [
|
|
68
|
-
"ds:focus-visible:outline-none",
|
|
69
|
-
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-sm)]",
|
|
70
|
-
"ds:after:pointer-events-auto",
|
|
71
|
-
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
72
|
-
"ds:focus-visible:after:outline-solid",
|
|
73
|
-
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
74
|
-
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
75
|
-
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
76
|
-
].join(" ");
|
|
77
|
-
function _(e) {
|
|
78
|
-
return /^(https?:\/\/(?!\/)|\/(?!\/)|#)/.test(e);
|
|
79
|
-
}
|
|
80
|
-
const q = M(
|
|
81
|
-
({
|
|
82
|
-
item: e,
|
|
83
|
-
variant: t = "compact",
|
|
84
|
-
size: k = "sm",
|
|
85
|
-
onActivate: r,
|
|
86
|
-
onDismiss: d,
|
|
87
|
-
ctaLabel: l,
|
|
88
|
-
dismissLabel: c,
|
|
89
|
-
leaving: h,
|
|
90
|
-
className: z,
|
|
91
|
-
...T
|
|
92
|
-
}, K) => {
|
|
93
|
-
const { t: u, i18n: v } = U(), S = P(() => {
|
|
94
|
-
const s = new Date(e.createdAt);
|
|
95
|
-
return Number.isNaN(s.getTime()) ? "" : new Intl.DateTimeFormat(v.language, {
|
|
96
|
-
dateStyle: "medium",
|
|
97
|
-
timeStyle: "short"
|
|
98
|
-
}).format(s);
|
|
99
|
-
}, [e.createdAt, v.language]), f = h !== void 0, [j, V] = R(!1), m = B(null), g = f ? h : j, b = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, w = L(() => {
|
|
100
|
-
if (!d) return;
|
|
101
|
-
if (f || b) {
|
|
102
|
-
d(e);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
V(!0), m.current && clearTimeout(m.current);
|
|
106
|
-
const s = typeof window < "u" && window.getComputedStyle(document.documentElement).getPropertyValue("--animation-duration") || "200ms", y = s.trim().endsWith("ms") ? parseFloat(s) : parseFloat(s) * 1e3;
|
|
107
|
-
m.current = setTimeout(
|
|
108
|
-
() => d(e),
|
|
109
|
-
Number.isFinite(y) ? y : 200
|
|
110
|
-
);
|
|
111
|
-
}, [d, e, f, b]), F = e.read ? "read" : "unread", I = e.read ? "" : u("notificationCard.unreadSuffix", ", unread"), x = u("notificationCard.itemLabel", {
|
|
112
|
-
title: e.title,
|
|
113
|
-
time: S,
|
|
114
|
-
unreadSuffix: I,
|
|
115
|
-
defaultValue: "{{title}}, {{time}}{{unreadSuffix}}"
|
|
116
|
-
}), p = !!e.url && _(e.url), i = /* @__PURE__ */ a(
|
|
117
|
-
"span",
|
|
118
|
-
{
|
|
119
|
-
className: [
|
|
120
|
-
"ds:flex-1 ds:min-w-0 ds:truncate",
|
|
121
|
-
e.read ? "ds:font-normal" : "ds:font-semibold"
|
|
122
|
-
].join(" "),
|
|
123
|
-
children: e.title
|
|
124
|
-
}
|
|
125
|
-
);
|
|
126
|
-
let o;
|
|
127
|
-
return t === "compact" && p && r ? o = /* @__PURE__ */ a(
|
|
128
|
-
"a",
|
|
129
|
-
{
|
|
130
|
-
href: e.url,
|
|
131
|
-
"aria-label": x,
|
|
132
|
-
className: C + " ds:contents",
|
|
133
|
-
onClick: (s) => {
|
|
134
|
-
s.defaultPrevented || s.metaKey || s.ctrlKey || s.shiftKey || (s.preventDefault(), r(e));
|
|
135
|
-
},
|
|
136
|
-
children: i
|
|
137
|
-
}
|
|
138
|
-
) : t === "compact" && r ? o = /* @__PURE__ */ a(
|
|
139
|
-
"button",
|
|
140
|
-
{
|
|
141
|
-
type: "button",
|
|
142
|
-
"aria-label": x,
|
|
143
|
-
className: C + " ds:contents ds:bg-transparent ds:border-0 ds:p-0",
|
|
144
|
-
onClick: () => r(e),
|
|
145
|
-
children: i
|
|
146
|
-
}
|
|
147
|
-
) : t === "dashboard" && p && r ? o = /* @__PURE__ */ a(
|
|
148
|
-
"a",
|
|
149
|
-
{
|
|
150
|
-
href: e.url,
|
|
151
|
-
className: "ds:text-[color:var(--foreground)] ds:no-underline ds:hover:underline ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
152
|
-
onClick: (s) => {
|
|
153
|
-
s.defaultPrevented || s.metaKey || s.ctrlKey || s.shiftKey || (s.preventDefault(), r(e));
|
|
154
|
-
},
|
|
155
|
-
children: i
|
|
156
|
-
}
|
|
157
|
-
) : o = i, /* @__PURE__ */ n(
|
|
158
|
-
"div",
|
|
159
|
-
{
|
|
160
|
-
ref: K,
|
|
161
|
-
role: "listitem",
|
|
162
|
-
"data-component": "notification-card",
|
|
163
|
-
"data-component-id": e.id,
|
|
164
|
-
"data-read": e.read ? "true" : "false",
|
|
165
|
-
"data-leaving": g ? "true" : void 0,
|
|
166
|
-
"aria-hidden": g || void 0,
|
|
167
|
-
className: X({ variant: t, size: k, state: F, className: z }),
|
|
168
|
-
...T,
|
|
169
|
-
children: [
|
|
170
|
-
e.icon ? /* @__PURE__ */ a(
|
|
171
|
-
"span",
|
|
172
|
-
{
|
|
173
|
-
"aria-hidden": "true",
|
|
174
|
-
className: "ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center ds:size-8 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--accent)]/10 ds:text-[color:var(--accent)] ds:[&>svg]:size-4",
|
|
175
|
-
children: e.icon
|
|
176
|
-
}
|
|
177
|
-
) : null,
|
|
178
|
-
/* @__PURE__ */ n("div", { className: "ds:flex-1 ds:min-w-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
179
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
180
|
-
e.read ? null : /* @__PURE__ */ a(
|
|
181
|
-
"span",
|
|
182
|
-
{
|
|
183
|
-
"aria-hidden": "true",
|
|
184
|
-
className: "ds:inline-block ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)] ds:forced-colors:bg-[Highlight]"
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
t === "dashboard" ? (
|
|
188
|
-
// `h3` keeps the dashboard heading ladder continuous:
|
|
189
|
-
// h1 (page) → h2 (WarningStack + NotificationsPanel) → h3 (notification title).
|
|
190
|
-
/* @__PURE__ */ a("h3", { className: "ds:m-0 ds:flex-1 ds:min-w-0 type-title-item", children: o })
|
|
191
|
-
) : /* @__PURE__ */ a("span", { className: "ds:flex-1 ds:min-w-0 type-title-item ds:text-[color:var(--foreground)]", children: o })
|
|
192
|
-
] }),
|
|
193
|
-
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
|
-
/* @__PURE__ */ a(
|
|
195
|
-
E,
|
|
196
|
-
{
|
|
197
|
-
value: e.createdAt,
|
|
198
|
-
shape: "chip",
|
|
199
|
-
size: "sm",
|
|
200
|
-
relativeWindow: 720 * 60 * 1e3
|
|
201
|
-
}
|
|
202
|
-
),
|
|
203
|
-
t === "dashboard" && (l || c) ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
204
|
-
l && p ? /* @__PURE__ */ a(
|
|
205
|
-
N,
|
|
206
|
-
{
|
|
207
|
-
intent: "outline",
|
|
208
|
-
size: "sm",
|
|
209
|
-
asChild: !0,
|
|
210
|
-
className: "ds:relative ds:z-[1]",
|
|
211
|
-
children: /* @__PURE__ */ a(
|
|
212
|
-
"a",
|
|
213
|
-
{
|
|
214
|
-
href: e.url,
|
|
215
|
-
onClick: (s) => {
|
|
216
|
-
s.defaultPrevented || s.metaKey || s.ctrlKey || s.shiftKey || (s.preventDefault(), r == null || r(e));
|
|
217
|
-
},
|
|
218
|
-
children: l
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
}
|
|
222
|
-
) : null,
|
|
223
|
-
c && d ? /* @__PURE__ */ a(
|
|
224
|
-
N,
|
|
225
|
-
{
|
|
226
|
-
intent: "link",
|
|
227
|
-
size: "sm",
|
|
228
|
-
onClick: w,
|
|
229
|
-
className: "ds:relative ds:z-[1]",
|
|
230
|
-
children: c
|
|
231
|
-
}
|
|
232
|
-
) : null
|
|
233
|
-
] }) : null
|
|
234
|
-
] }),
|
|
235
|
-
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
|
-
W,
|
|
237
|
-
{
|
|
238
|
-
icon: /* @__PURE__ */ a(H, {}),
|
|
239
|
-
intent: "ghost",
|
|
240
|
-
size: "sm",
|
|
241
|
-
"aria-label": u("notificationCard.dismiss", "Dismiss notification"),
|
|
242
|
-
onClick: w
|
|
243
|
-
}
|
|
244
|
-
) }) : null
|
|
245
|
-
]
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
q.displayName = "NotificationCard";
|
|
251
|
-
export {
|
|
252
|
-
q as N,
|
|
253
|
-
_ as i
|
|
254
|
-
};
|
|
255
|
-
//# sourceMappingURL=notification-card-BiESdm8q.js.map
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as va, useId as ba, useMemo as xa } from "react";
|
|
3
|
-
import { c as Sa } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as Ca } from "react-i18next";
|
|
5
|
-
import { A as q } from "./avatar-BNQNhoyL.js";
|
|
6
|
-
import { B as w } from "./badge-CqGsX32l.js";
|
|
7
|
-
import { C as H } from "./card-DPmk26CL.js";
|
|
8
|
-
import { K as Na, a as Aa } from "./key-value-pair-BrgbMfbF.js";
|
|
9
|
-
import { L as S } from "./link-DrD_cRUg.js";
|
|
10
|
-
import { S as C } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { T as O } from "./tag-BQXwuJq1.js";
|
|
12
|
-
import { T as Va } from "./transaction-chip-DK84XCBU.js";
|
|
13
|
-
import { i as W } from "./is-safe-url-DkETxeHz.js";
|
|
14
|
-
import { u as ka } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { M as La } from "./mail-C8irm52s.js";
|
|
16
|
-
import { P as Ma } from "./phone-Bi5yUm4I.js";
|
|
17
|
-
import { M as Pa } from "./map-pin-B8STOPMJ.js";
|
|
18
|
-
import { S as wa } from "./shield-check-BjCGH_Sr.js";
|
|
19
|
-
import { S as $a } from "./sparkles-CuYXqQLg.js";
|
|
20
|
-
import { U as Ea } from "./users-MBVtUzwd.js";
|
|
21
|
-
import { c as J } from "./createLucideIcon-CrFbzy84.js";
|
|
22
|
-
/**
|
|
23
|
-
* @license lucide-react v1.8.0 - ISC
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the ISC license.
|
|
26
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
const Da = [
|
|
29
|
-
[
|
|
30
|
-
"path",
|
|
31
|
-
{
|
|
32
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
33
|
-
key: "1oefj6"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
37
|
-
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
38
|
-
], Ta = J("file-exclamation-point", Da);
|
|
39
|
-
/**
|
|
40
|
-
* @license lucide-react v1.8.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
const Ga = [
|
|
46
|
-
[
|
|
47
|
-
"path",
|
|
48
|
-
{
|
|
49
|
-
d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
|
|
50
|
-
key: "18887p"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
["path", { d: "M12 15h.01", key: "q59x07" }],
|
|
54
|
-
["path", { d: "M12 7v4", key: "xawao1" }]
|
|
55
|
-
], _a = J("message-square-warning", Ga), Fa = {
|
|
56
|
-
id: "patient-summary-card",
|
|
57
|
-
// Presentational, read-only card — the only handle method is a structural
|
|
58
|
-
// getSummary projection; there is no view-switching action. The previous
|
|
59
|
-
// `view_change` capability was spurious and is removed.
|
|
60
|
-
capabilities: [],
|
|
61
|
-
state: {
|
|
62
|
-
summary: {
|
|
63
|
-
type: "{ id?: string; hasUnpaid: boolean; unsignedDocumentsCount: number; highlightedAnamnesisCount: number; aiConsentGranted: boolean }",
|
|
64
|
-
descriptionKey: "ui.agent.patientSummaryCard.state.summary",
|
|
65
|
-
description: "Structural summary of the patient card — identifiers, counts, and consent flags only. Never patient identity or clinical content.",
|
|
66
|
-
read: (r) => r.getSummary()
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
actions: {},
|
|
70
|
-
domHooks: {
|
|
71
|
-
root: {
|
|
72
|
-
attr: "data-component",
|
|
73
|
-
value: "patient-summary-card",
|
|
74
|
-
description: "Marks the PatientSummaryCard root region."
|
|
75
|
-
},
|
|
76
|
-
instanceId: {
|
|
77
|
-
attr: "data-component-id",
|
|
78
|
-
sourceProp: "id",
|
|
79
|
-
description: "Sourced from the id prop."
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, za = Sa("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
83
|
-
variants: {
|
|
84
|
-
// Matches the kit's other `surface` props (ContactProfileCard,
|
|
85
|
-
// OperatorHero). `'elevated'` wraps the content in `<Card>`.
|
|
86
|
-
surface: {
|
|
87
|
-
flat: "",
|
|
88
|
-
elevated: ""
|
|
89
|
-
},
|
|
90
|
-
// Density tunes the avatar size + body padding. `comfortable` reads
|
|
91
|
-
// as a page header; `compact` fits an embedded sidebar / aside.
|
|
92
|
-
density: {
|
|
93
|
-
comfortable: "",
|
|
94
|
-
compact: ""
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
defaultVariants: {
|
|
98
|
-
surface: "elevated",
|
|
99
|
-
density: "comfortable"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
function Ua(r) {
|
|
103
|
-
return r.replace(/[^\d+]/g, "");
|
|
104
|
-
}
|
|
105
|
-
const Ba = {
|
|
106
|
-
highlightedAnamnesis: _a,
|
|
107
|
-
unsignedDocuments: Ta
|
|
108
|
-
}, Ia = {
|
|
109
|
-
highlightedAnamnesis: "warning",
|
|
110
|
-
unsignedDocuments: "error"
|
|
111
|
-
}, Ra = {
|
|
112
|
-
highlightedAnamnesis: "{{count}} highlighted anamnesis answers",
|
|
113
|
-
unsignedDocuments: "{{count}} unsigned documents"
|
|
114
|
-
}, ja = {
|
|
115
|
-
yes: "Yes",
|
|
116
|
-
no: "No",
|
|
117
|
-
not_specified: "Not specified"
|
|
118
|
-
}, Ka = va(
|
|
119
|
-
({
|
|
120
|
-
name: r,
|
|
121
|
-
title: N,
|
|
122
|
-
ageYears: $,
|
|
123
|
-
dateOfBirth: E,
|
|
124
|
-
gender: A,
|
|
125
|
-
avatarUrl: Q,
|
|
126
|
-
patientUrl: V,
|
|
127
|
-
email: p,
|
|
128
|
-
emailEnabled: X = !1,
|
|
129
|
-
phone: d,
|
|
130
|
-
cityProvince: D,
|
|
131
|
-
marketingConsent: o,
|
|
132
|
-
aiConsent: l,
|
|
133
|
-
flags: s,
|
|
134
|
-
familyRelations: k,
|
|
135
|
-
assignedTo: h,
|
|
136
|
-
currency: Y = "EUR",
|
|
137
|
-
locale: Z,
|
|
138
|
-
loading: f = !1,
|
|
139
|
-
actionSlot: T,
|
|
140
|
-
onActivate: G,
|
|
141
|
-
surface: _ = "elevated",
|
|
142
|
-
density: m = "comfortable",
|
|
143
|
-
"aria-label": F,
|
|
144
|
-
id: c,
|
|
145
|
-
className: aa,
|
|
146
|
-
...ea
|
|
147
|
-
}, ta) => {
|
|
148
|
-
const { t: e, i18n: na } = Ca(), L = ba(), sa = Z ?? na.language ?? "en", M = s == null ? void 0 : s.unpaidAmountCents, g = (s == null ? void 0 : s.unsignedDocumentsCount) ?? 0, y = (s == null ? void 0 : s.highlightedAnamnesisCount) ?? 0, v = M != null && M > 0, ia = xa(
|
|
149
|
-
() => ({
|
|
150
|
-
getSummary: () => ({
|
|
151
|
-
id: c,
|
|
152
|
-
hasUnpaid: v,
|
|
153
|
-
unsignedDocumentsCount: g,
|
|
154
|
-
highlightedAnamnesisCount: y,
|
|
155
|
-
aiConsentGranted: l != null
|
|
156
|
-
})
|
|
157
|
-
}),
|
|
158
|
-
[
|
|
159
|
-
c,
|
|
160
|
-
v,
|
|
161
|
-
g,
|
|
162
|
-
y,
|
|
163
|
-
l
|
|
164
|
-
]
|
|
165
|
-
);
|
|
166
|
-
ka(Fa, ia, c);
|
|
167
|
-
const ra = F ?? e("patientSummaryCard.regionLabel", { defaultValue: "Patient overview" }), la = {
|
|
168
|
-
mr: "Mr.",
|
|
169
|
-
ms: "Ms."
|
|
170
|
-
}, z = N ? e(`patientSummaryCard.title.${N}`, {
|
|
171
|
-
defaultValue: la[N]
|
|
172
|
-
}) : void 0, U = z ? `${z} ${r}` : r, da = {
|
|
173
|
-
m: "Male",
|
|
174
|
-
f: "Female"
|
|
175
|
-
}, b = [];
|
|
176
|
-
A && b.push(
|
|
177
|
-
e(`patientSummaryCard.gender.${A}`, {
|
|
178
|
-
defaultValue: da[A]
|
|
179
|
-
})
|
|
180
|
-
), $ != null && b.push(
|
|
181
|
-
e("patientSummaryCard.identity.age", {
|
|
182
|
-
count: $,
|
|
183
|
-
defaultValue: "{{count}} yrs"
|
|
184
|
-
})
|
|
185
|
-
), E && b.push(
|
|
186
|
-
e("patientSummaryCard.identity.bornOn", {
|
|
187
|
-
date: E,
|
|
188
|
-
defaultValue: "Born {{date}}"
|
|
189
|
-
})
|
|
190
|
-
);
|
|
191
|
-
const B = b.join(
|
|
192
|
-
e("patientSummaryCard.identity.separator", { defaultValue: " · " })
|
|
193
|
-
), oa = !!V && W(V), ma = m === "comfortable" ? "xl" : "lg", I = m === "comfortable" ? "type-title-card" : "type-title-item", R = m === "comfortable" ? "ds:gap-[var(--spacing-md)]" : "ds:gap-[var(--spacing-sm)]", i = [];
|
|
194
|
-
p && i.push({
|
|
195
|
-
key: "email",
|
|
196
|
-
icon: /* @__PURE__ */ a(La, { "aria-hidden": "true" }),
|
|
197
|
-
label: e("patientSummaryCard.label.email", { defaultValue: "Email" }),
|
|
198
|
-
value: X ? /* @__PURE__ */ a(S, { href: `mailto:${p}`, intent: "default", onClick: G, children: p }) : /* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)]", children: p })
|
|
199
|
-
}), d && i.push({
|
|
200
|
-
key: "phone",
|
|
201
|
-
icon: /* @__PURE__ */ a(Ma, { "aria-hidden": "true" }),
|
|
202
|
-
label: d.label ?? e("patientSummaryCard.label.phone", { defaultValue: "Phone" }),
|
|
203
|
-
value: /* @__PURE__ */ n("span", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-2xs)]", children: [
|
|
204
|
-
/* @__PURE__ */ a(
|
|
205
|
-
S,
|
|
206
|
-
{
|
|
207
|
-
href: `tel:${Ua(d.prefixAndNumber)}`,
|
|
208
|
-
intent: "default",
|
|
209
|
-
children: d.prefixAndNumber
|
|
210
|
-
}
|
|
211
|
-
),
|
|
212
|
-
d.smsEnabled ? /* @__PURE__ */ a(w, { variant: "success", size: "sm", children: e("patientSummaryCard.value.smsEnabled", {
|
|
213
|
-
defaultValue: "SMS"
|
|
214
|
-
}) }) : null
|
|
215
|
-
] })
|
|
216
|
-
}), D && i.push({
|
|
217
|
-
key: "cityProvince",
|
|
218
|
-
icon: /* @__PURE__ */ a(Pa, { "aria-hidden": "true" }),
|
|
219
|
-
label: e("patientSummaryCard.label.cityProvince", {
|
|
220
|
-
defaultValue: "City / province"
|
|
221
|
-
}),
|
|
222
|
-
value: D
|
|
223
|
-
}), o && i.push({
|
|
224
|
-
key: "marketingConsent",
|
|
225
|
-
icon: /* @__PURE__ */ a(wa, { "aria-hidden": "true" }),
|
|
226
|
-
label: e("patientSummaryCard.label.marketingConsent", {
|
|
227
|
-
defaultValue: "Marketing consent"
|
|
228
|
-
}),
|
|
229
|
-
value: /* @__PURE__ */ a(
|
|
230
|
-
w,
|
|
231
|
-
{
|
|
232
|
-
variant: o === "yes" ? "success" : o === "no" ? "error" : "neutral",
|
|
233
|
-
size: "sm",
|
|
234
|
-
withDot: !0,
|
|
235
|
-
children: e(`patientSummaryCard.marketingConsent.${o}`, {
|
|
236
|
-
defaultValue: ja[o]
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
}), l && i.push({
|
|
241
|
-
key: "aiConsent",
|
|
242
|
-
icon: /* @__PURE__ */ a($a, { "aria-hidden": "true" }),
|
|
243
|
-
label: e("patientSummaryCard.label.aiConsent", {
|
|
244
|
-
defaultValue: "AI consent"
|
|
245
|
-
}),
|
|
246
|
-
value: l.grantedBy ? e("patientSummaryCard.value.aiConsentGrantedBy", {
|
|
247
|
-
date: l.grantedAt,
|
|
248
|
-
by: l.grantedBy,
|
|
249
|
-
defaultValue: "Granted {{date}} by {{by}}"
|
|
250
|
-
}) : e("patientSummaryCard.value.aiConsentGrantedAt", {
|
|
251
|
-
date: l.grantedAt,
|
|
252
|
-
defaultValue: "Granted {{date}}"
|
|
253
|
-
})
|
|
254
|
-
}), h && i.push({
|
|
255
|
-
key: "assignedTo",
|
|
256
|
-
icon: /* @__PURE__ */ a(Ea, { "aria-hidden": "true" }),
|
|
257
|
-
label: e("patientSummaryCard.label.assignedTo", {
|
|
258
|
-
defaultValue: "Assigned to"
|
|
259
|
-
}),
|
|
260
|
-
value: /* @__PURE__ */ n("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
261
|
-
/* @__PURE__ */ a(
|
|
262
|
-
q,
|
|
263
|
-
{
|
|
264
|
-
size: "xs",
|
|
265
|
-
name: h.name,
|
|
266
|
-
src: h.avatarUrl
|
|
267
|
-
}
|
|
268
|
-
),
|
|
269
|
-
/* @__PURE__ */ a("span", { children: h.name })
|
|
270
|
-
] })
|
|
271
|
-
});
|
|
272
|
-
const x = [];
|
|
273
|
-
y > 0 && x.push({
|
|
274
|
-
key: "highlightedAnamnesis",
|
|
275
|
-
count: y
|
|
276
|
-
}), g > 0 && x.push({
|
|
277
|
-
key: "unsignedDocuments",
|
|
278
|
-
count: g
|
|
279
|
-
});
|
|
280
|
-
const ca = v || x.length > 0, ua = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${R}`, children: [
|
|
281
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-md)]", children: [
|
|
282
|
-
/* @__PURE__ */ a(C, { variant: "circular", size: "lg" }),
|
|
283
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:flex-1 ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
284
|
-
/* @__PURE__ */ a(C, { variant: "text", width: "60%" }),
|
|
285
|
-
/* @__PURE__ */ a(C, { variant: "text", width: "40%" })
|
|
286
|
-
] })
|
|
287
|
-
] }),
|
|
288
|
-
/* @__PURE__ */ a(C, { variant: "text", lines: 3 })
|
|
289
|
-
] }), pa = oa ? /* @__PURE__ */ a(
|
|
290
|
-
S,
|
|
291
|
-
{
|
|
292
|
-
href: V,
|
|
293
|
-
intent: "default",
|
|
294
|
-
weight: "strong",
|
|
295
|
-
onClick: G,
|
|
296
|
-
className: `${I} ds:no-underline`,
|
|
297
|
-
children: /* @__PURE__ */ a("span", { id: L, children: U })
|
|
298
|
-
}
|
|
299
|
-
) : /* @__PURE__ */ a(
|
|
300
|
-
"span",
|
|
301
|
-
{
|
|
302
|
-
id: L,
|
|
303
|
-
className: `${I} ds:text-[color:var(--foreground)]`,
|
|
304
|
-
children: U
|
|
305
|
-
}
|
|
306
|
-
), ha = /* @__PURE__ */ n("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)]", children: [
|
|
307
|
-
/* @__PURE__ */ a(
|
|
308
|
-
q,
|
|
309
|
-
{
|
|
310
|
-
size: ma,
|
|
311
|
-
name: r,
|
|
312
|
-
src: Q,
|
|
313
|
-
className: "ds:shrink-0"
|
|
314
|
-
}
|
|
315
|
-
),
|
|
316
|
-
/* @__PURE__ */ n("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
317
|
-
pa,
|
|
318
|
-
B ? /* @__PURE__ */ a("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: B }) : null
|
|
319
|
-
] }),
|
|
320
|
-
T ? /* @__PURE__ */ a("div", { className: "ds:ms-auto ds:flex ds:shrink-0 ds:items-center ds:gap-[var(--spacing-xs)]", children: T }) : null
|
|
321
|
-
] }), fa = ca ? /* @__PURE__ */ n(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
role: "list",
|
|
325
|
-
"aria-label": e("patientSummaryCard.flagsLabel", {
|
|
326
|
-
defaultValue: "Patient attention flags"
|
|
327
|
-
}),
|
|
328
|
-
className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
329
|
-
children: [
|
|
330
|
-
v ? /* @__PURE__ */ a("span", { role: "listitem", children: /* @__PURE__ */ a(
|
|
331
|
-
Va,
|
|
332
|
-
{
|
|
333
|
-
state: "debt",
|
|
334
|
-
amount: M / 100,
|
|
335
|
-
currency: Y,
|
|
336
|
-
locale: sa,
|
|
337
|
-
size: "sm",
|
|
338
|
-
showLabel: !0
|
|
339
|
-
}
|
|
340
|
-
) }) : null,
|
|
341
|
-
x.map(({ key: t, count: u }) => {
|
|
342
|
-
const P = Ba[t];
|
|
343
|
-
return /* @__PURE__ */ a(
|
|
344
|
-
"span",
|
|
345
|
-
{
|
|
346
|
-
role: "listitem",
|
|
347
|
-
"aria-label": e(`patientSummaryCard.flag.${t}`, {
|
|
348
|
-
count: u,
|
|
349
|
-
defaultValue: Ra[t]
|
|
350
|
-
}),
|
|
351
|
-
className: "ds:inline-flex",
|
|
352
|
-
children: /* @__PURE__ */ a(
|
|
353
|
-
w,
|
|
354
|
-
{
|
|
355
|
-
"aria-hidden": "true",
|
|
356
|
-
variant: Ia[t],
|
|
357
|
-
size: "md",
|
|
358
|
-
withDot: !0,
|
|
359
|
-
leading: /* @__PURE__ */ a(P, { "aria-hidden": "true" }),
|
|
360
|
-
children: u
|
|
361
|
-
}
|
|
362
|
-
)
|
|
363
|
-
},
|
|
364
|
-
t
|
|
365
|
-
);
|
|
366
|
-
})
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
) : null, ga = k && k.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
370
|
-
/* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: e("patientSummaryCard.label.familyRelations", {
|
|
371
|
-
defaultValue: "Family relations"
|
|
372
|
-
}) }),
|
|
373
|
-
/* @__PURE__ */ a("div", { className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-2xs)]", children: k.map((t, u) => {
|
|
374
|
-
const P = !!t.relatedPatient.url && W(t.relatedPatient.url), K = e("patientSummaryCard.value.familyRelation", {
|
|
375
|
-
relation: t.relation,
|
|
376
|
-
name: t.relatedPatient.name,
|
|
377
|
-
defaultValue: "{{relation}}: {{name}}"
|
|
378
|
-
});
|
|
379
|
-
return P ? /* @__PURE__ */ a(
|
|
380
|
-
S,
|
|
381
|
-
{
|
|
382
|
-
href: t.relatedPatient.url,
|
|
383
|
-
intent: "default",
|
|
384
|
-
className: "ds:no-underline",
|
|
385
|
-
children: /* @__PURE__ */ a(O, { label: K, variant: "neutral" })
|
|
386
|
-
},
|
|
387
|
-
`${t.relation}-${u}`
|
|
388
|
-
) : /* @__PURE__ */ a(
|
|
389
|
-
O,
|
|
390
|
-
{
|
|
391
|
-
label: K,
|
|
392
|
-
variant: "neutral"
|
|
393
|
-
},
|
|
394
|
-
`${t.relation}-${u}`
|
|
395
|
-
);
|
|
396
|
-
}) })
|
|
397
|
-
] }) : null, ya = /* @__PURE__ */ n("div", { className: `ds:flex ds:flex-col ${R}`, children: [
|
|
398
|
-
ha,
|
|
399
|
-
fa,
|
|
400
|
-
i.length > 0 ? /* @__PURE__ */ a(Na, { rowGap: "sm", children: i.map((t) => /* @__PURE__ */ a(
|
|
401
|
-
Aa,
|
|
402
|
-
{
|
|
403
|
-
icon: t.icon,
|
|
404
|
-
label: t.label,
|
|
405
|
-
value: t.value
|
|
406
|
-
},
|
|
407
|
-
t.key
|
|
408
|
-
)) }) : null,
|
|
409
|
-
ga
|
|
410
|
-
] }), j = f ? ua : ya;
|
|
411
|
-
return /* @__PURE__ */ a(
|
|
412
|
-
"div",
|
|
413
|
-
{
|
|
414
|
-
ref: ta,
|
|
415
|
-
role: "region",
|
|
416
|
-
"aria-label": f || F ? ra : void 0,
|
|
417
|
-
"aria-labelledby": f ? void 0 : L,
|
|
418
|
-
"aria-busy": f || void 0,
|
|
419
|
-
"data-component": "patient-summary-card",
|
|
420
|
-
"data-component-id": c,
|
|
421
|
-
"data-density": m,
|
|
422
|
-
id: c,
|
|
423
|
-
className: za({ surface: _, density: m, className: aa }),
|
|
424
|
-
...ea,
|
|
425
|
-
children: _ === "elevated" ? /* @__PURE__ */ a(H, { variant: "elevated", children: /* @__PURE__ */ a(H.Body, { children: j }) }) : j
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
);
|
|
430
|
-
Ka.displayName = "PatientSummaryCard";
|
|
431
|
-
export {
|
|
432
|
-
Ka as P,
|
|
433
|
-
Fa as p
|
|
434
|
-
};
|
|
435
|
-
//# sourceMappingURL=patient-summary-card-B836_fDB.js.map
|