@alfadocs/ui-kit 1.34.0 → 1.36.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-yy03OgRL.js → actions-cell-renderer-CUn1pqEq.js} +3 -3
- package/dist/_chunks/{agenda-card-DVz3jwTf.js → agenda-card-DyQtHb9z.js} +2 -2
- package/dist/_chunks/{agenda-tray-1oDWCJdB.js → agenda-tray-DYGCTIWB.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-OggpS5hW.js → ai-consent-banner-De4gzSBZ.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-Dt7tpCBh.js → ai-prompt-input-DdxlaI7q.js} +2 -2
- package/dist/_chunks/{alert-CiJT540z.js → alert-CiQ5Pa3Q.js} +2 -2
- package/dist/_chunks/{alia-sidebar-D18kp3p9.js → alia-sidebar-B6bXlZZk.js} +6 -6
- package/dist/_chunks/{anamnesis-card-NTi4LLzI.js → anamnesis-card-DGwINeNn.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-DGVKBQoq.js → anamnesis-summary-card-GYHa7VGp.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-BYgyp_i2.js → anamnesis-summary-rows-Cxtgo2ok.js} +12 -12
- package/dist/_chunks/{antenatal-schedule-timeline-sXfIp5lp.js → antenatal-schedule-timeline-CXk_tzWG.js} +2 -2
- package/dist/_chunks/appointment-card-WsDGBBut.js +425 -0
- package/dist/_chunks/appointment-timeline-ByfovxqR.js +449 -0
- package/dist/_chunks/{appointment-tray-6rg071CL.js → appointment-tray-D6UyJHej.js} +3 -3
- package/dist/_chunks/arrow-right-KsIrLdt0.js +15 -0
- package/dist/_chunks/{audio-recorder-11wClczr.js → audio-recorder-BlQBC7N_.js} +3 -3
- package/dist/_chunks/{badge-sTusUqZD.js → badge-BudgzTe_.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DhBtFRoW.js → balance-badge-cell-B0Z8Dwn8.js} +6 -6
- package/dist/_chunks/{bishop-score-CAl7C5hm.js → bishop-score-D5b8tktp.js} +2 -2
- package/dist/_chunks/{bmi-calculator-Dwkih9a4.js → bmi-calculator-dOKP-vW4.js} +4 -4
- package/dist/_chunks/{booking-BqkEtsKx.js → booking-Dp-9qR6F.js} +9 -9
- package/dist/_chunks/button-group-QmN1VdUW.js +307 -0
- package/dist/_chunks/{calendar-Dgvl5L4T.js → calendar-7GAUlsNO.js} +3 -3
- package/dist/_chunks/{calendar-event-card-DSh-69HT.js → calendar-event-card-DKUnT9Be.js} +91 -134
- package/dist/_chunks/{calendar-workspace-4NH1Z47_.js → calendar-workspace-Duv_5B4j.js} +2494 -2415
- package/dist/_chunks/{care-plan-card-CZW476Kg.js → care-plan-card-COFOI-fI.js} +5 -5
- package/dist/_chunks/{care-plan-entry-card-BMUYagEw.js → care-plan-entry-card-BOKn0KW-.js} +6 -6
- package/dist/_chunks/{care-plan-header-B5CBE0zu.js → care-plan-header-CbuOuVBw.js} +4 -4
- package/dist/_chunks/{carousel.agent-CLxdHEBP.js → carousel.agent-Dv4a4M8L.js} +2 -2
- package/dist/_chunks/{chart-C6eHTxkO.js → chart-iWl76PXv.js} +3 -3
- package/dist/_chunks/{chat-input-BsB5Umpj.js → chat-input-qM5QpUSq.js} +2 -2
- package/dist/_chunks/{chat-message-C-8UU2av.js → chat-message-RniXtrCH.js} +2 -2
- package/dist/_chunks/{checkbox-BuZ1u__2.js → checkbox-CZkipDn7.js} +2 -2
- package/dist/_chunks/{checkbox-group-CfqMv57d.js → checkbox-group-DomUzpkF.js} +2 -2
- package/dist/_chunks/clinical-note-card-DdsGYMmI.js +325 -0
- package/dist/_chunks/{code-block-BIkpRLkl.js → code-block-uVjNSI9g.js} +2 -2
- package/dist/_chunks/{connection-status-DRZIcMqM.js → connection-status-OEsWjmRk.js} +3 -3
- package/dist/_chunks/{contact-profile-card-DSI9uumA.js → contact-profile-card--My1H2UD.js} +3 -3
- package/dist/_chunks/{control-room-rail-5MbhjsxN.js → control-room-rail-Ds45_g4f.js} +4 -4
- package/dist/_chunks/{counter-dRlTNC_y.js → counter-WsvRuum1.js} +50 -15
- package/dist/_chunks/{cycle-calculator-DVgxBfP0.js → cycle-calculator-BJeaXiZv.js} +3 -3
- package/dist/_chunks/{dashboard-grid-BFtdHqfn.js → dashboard-grid-B23BFzRl.js} +2 -2
- package/dist/_chunks/{data-table-DC96JJIq.js → data-table-BYGK-gUJ.js} +6 -6
- package/dist/_chunks/{data-table-tabs-DVIFkqx_.js → data-table-tabs-BMR0zsVQ.js} +3 -3
- package/dist/_chunks/{date-picker-B6NW_PS5.js → date-picker-6tFnKFty.js} +14 -14
- package/dist/_chunks/{dependent-selector-yTKKsuc9.js → dependent-selector-BHDP0nBB.js} +3 -3
- package/dist/_chunks/{description-list-CjJqR8WK.js → description-list-C1RXMDZ_.js} +2 -2
- package/dist/_chunks/{document-preview-BrhMHNh8.js → document-preview-DsEyRcNd.js} +4 -4
- package/dist/_chunks/{document-scanner-C5Vrbu21.js → document-scanner-CbWVtm7u.js} +53 -52
- package/dist/_chunks/{due-date-calculator-CxgK8vzt.js → due-date-calculator-Dhc9Ljkb.js} +6 -6
- package/dist/_chunks/{editable-currency-cell-renderer-B7TVZ5ZJ.js → editable-currency-cell-renderer-D7blbDFY.js} +4 -4
- package/dist/_chunks/{editor-overlay-DEc5yYwo.js → editor-overlay-8fKAcRsm.js} +2 -2
- package/dist/_chunks/{entity-card-DmrgYSEX.js → entity-card-I-Gio5wo.js} +36 -32
- package/dist/_chunks/{entity-summary-5o768XLU.js → entity-summary-BbW0mIzU.js} +4 -4
- package/dist/_chunks/{face-scheme-l-CQyLs-.js → face-scheme-uFvhqz6h.js} +4 -4
- package/dist/_chunks/{fetal-weight-Dqy0T1fP.js → fetal-weight-C6SxchOv.js} +2 -2
- package/dist/_chunks/{field-array-BjkXZzSr.js → field-array-C9dmRaIM.js} +2 -2
- package/dist/_chunks/{file-manager-CI2Qn8qW.js → file-manager-DvkFgj7d.js} +7 -7
- package/dist/_chunks/{file-upload-CwxdqkMK.js → file-upload-BDpb08GM.js} +71 -78
- package/dist/_chunks/{fiscal-code-input-B_nYMSEM.js → fiscal-code-input-CkwIdB1y.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DrXzYfv-.js → freemium-paywall-BqGk_SBU.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZHVrERT.js → gestational-age-calculator-DDOGaPvg.js} +6 -6
- package/dist/_chunks/{hcg-doubling-C2fQxfXd.js → hcg-doubling-Bb_n6tEa.js} +2 -2
- package/dist/_chunks/{header-DUXRIPyM.js → header-BZ4pZlJV.js} +2 -2
- package/dist/_chunks/{header-settings-DvjZNMhD.js → header-settings-B8mLc03Q.js} +4 -4
- package/dist/_chunks/hover-card-Bcku1GQu.js +511 -0
- package/dist/_chunks/{icon-button-DA2CAGHZ.js → icon-button-8xqRnkdG.js} +2 -2
- package/dist/_chunks/{icon-button-group-VCCod3Hz.js → icon-button-group-Dj6CRoYR.js} +2 -2
- package/dist/_chunks/{icon-picker-DOa89vn3.js → icon-picker-CTWzlHJr.js} +2 -2
- package/dist/_chunks/{info-tip-CADik6WN.js → info-tip-ey_Pon2y.js} +2 -2
- package/dist/_chunks/{key-value-pair-BIBdZBLg.js → key-value-pair-DczGb4yz.js} +42 -41
- package/dist/_chunks/{link-cell-renderer-BEpMNtAa.js → link-cell-renderer-BNa8x6oJ.js} +6 -6
- package/dist/_chunks/loader-circle-BECIU_8N.js +12 -0
- package/dist/_chunks/{locale-picker-CwFtqSkt.js → locale-picker-BLeHbFSc.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-CK_ND8Tr.js → marketplace-app-shell-BwH6Aruw.js} +6 -6
- package/dist/_chunks/{message-card-BUMv16un.js → message-card-Dm5Xshup.js} +2 -2
- package/dist/_chunks/{message-tray-0zsv27xX.js → message-tray-BcLyaO-G.js} +3 -3
- package/dist/_chunks/{multi-select-DYOvx2SJ.js → multi-select-CtPd7g4x.js} +15 -15
- package/dist/_chunks/note-attachment-CwDir3kK.js +124 -0
- package/dist/_chunks/note-timeline-CXfSV3yX.js +231 -0
- package/dist/_chunks/{notes-panel-BjLt-kiP.js → notes-panel-Co8D3uDd.js} +7 -7
- package/dist/_chunks/{notification-card-CtrzoTUO.js → notification-card-ChcK9Wat.js} +2 -2
- package/dist/_chunks/{notification-tray-BiRzXHDf.js → notification-tray-CJ8jOe-U.js} +4 -4
- package/dist/_chunks/{operator-hero-D7-iiFQ9.js → operator-hero-XIdwDmN2.js} +3 -3
- package/dist/_chunks/{optical-prescription-DUJOhKz_.js → optical-prescription-cphK41eP.js} +2 -2
- package/dist/_chunks/panel-header-D_mTdhUp.js +128 -0
- package/dist/_chunks/patient-details-f7SSXkTJ.js +371 -0
- package/dist/_chunks/patient-field-row-BQZoP4m2.js +787 -0
- package/dist/_chunks/{patient-search-HeEUB-_X.js → patient-search-D08b6jgj.js} +2 -2
- package/dist/_chunks/patient-summary-card-Bz7KdUin.js +533 -0
- package/dist/_chunks/{payment-automation-upsell-DwQW2fRp.js → payment-automation-upsell-BLTdE2em.js} +50 -59
- package/dist/_chunks/{payment-form-Ds1I9KqB.js → payment-form-BHMDqW9C.js} +2 -2
- package/dist/_chunks/{payment-request-card-lmKLwsDs.js → payment-request-card-BxcdvxKR.js} +6 -6
- package/dist/_chunks/{pdf-viewer-DUIsV9s5.js → pdf-viewer-DUKdn5iq.js} +2 -2
- package/dist/_chunks/{periodontal-chart-B9fphroR.js → periodontal-chart-BF_e3wZp.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-qEZPXj83.js → periodontal-chart-card-BJEuJuzh.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-lEwA8wqX.js → periodontal-diagnosis-C7pfPOct.js} +5 -5
- package/dist/_chunks/{periodontal-risk-chart-0x7KVZjL.js → periodontal-risk-chart-B2tNFa15.js} +2 -2
- package/dist/_chunks/{permission-matrix-BIJrGEmz.js → permission-matrix-VdAXjjHU.js} +3 -3
- package/dist/_chunks/{popover-DP6WCVwm.js → popover-DzR5QYxp.js} +24 -24
- package/dist/_chunks/{practice-profile-hero-DQyDvpJL.js → practice-profile-hero-DxoLlQr5.js} +2 -2
- package/dist/_chunks/{practice-results-kayDEorM.js → practice-results-DOcORTkP.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-n5j5dAKy.js → pregnancy-dating-nV1_S6w0.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-D5A8vPjj.js → pregnancy-weight-gain-tRecShAD.js} +4 -4
- package/dist/_chunks/{privacy-lock-CkAUo6Dz.js → privacy-lock-Be39vQUN.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BScCotGD.js → product-hub-panel-C0TO69P7.js} +2 -2
- package/dist/_chunks/{public-header.agent-kth2SdXn.js → public-header.agent-Bl1KFwSE.js} +3 -3
- package/dist/_chunks/{radio-DNRe6H_8.js → radio-6fml-pWk.js} +2 -2
- package/dist/_chunks/{radio-group-DyVBgnA3.js → radio-group-CIjmyioi.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-o4jwEJPC.js → radiograph-panel.agent-k0G7JuoM.js} +6 -6
- package/dist/_chunks/{reviews-panel-BKHEfqVQ.js → reviews-panel-BaHZb_ai.js} +3 -3
- package/dist/_chunks/{rich-text-editor-CCI-Y3DN.js → rich-text-editor-BTXlorm5.js} +7 -7
- package/dist/_chunks/{search-bar-CJj6sI9m.js → search-bar-CCmViqaa.js} +46 -46
- package/dist/_chunks/section-card.agent-W18CHEgX.js +74 -0
- package/dist/_chunks/{sheet-BSznOyJs.js → sheet-hm04DGFd.js} +2 -2
- package/dist/_chunks/{sign-document-jF4fZDJ5.js → sign-document-CRQuAn4W.js} +2 -2
- package/dist/_chunks/{signature-request-vihDT8On.js → signature-request-Dej2g86d.js} +5 -5
- package/dist/_chunks/{signature-status-chip-T5fyS-k9.js → signature-status-chip-D4NsrdeI.js} +3 -3
- package/dist/_chunks/{slot-grid-BuZOKfcd.js → slot-grid-8Ko6thzz.js} +2 -2
- package/dist/_chunks/{streaming-text-CvsjIQ7S.js → streaming-text-DjFqLSt_.js} +2 -2
- package/dist/_chunks/{tab-bar-DvFJIQfL.js → tab-bar-rDkLiaA6.js} +2 -2
- package/dist/_chunks/{tag-3wgkwwDB.js → tag-Ci3xJPcH.js} +2 -2
- package/dist/_chunks/{task-tray-COo-RlDv.js → task-tray-wl9eti6J.js} +2 -2
- package/dist/_chunks/{tasks-panel-DLKpSNoE.js → tasks-panel-BDNB7hsZ.js} +5 -5
- package/dist/_chunks/{theme-toggle-uEwoKjl3.js → theme-toggle-CMz8YfC1.js} +3 -3
- package/dist/_chunks/{timeline-Bs9Erxlo.js → timeline-61AihzYz.js} +47 -47
- package/dist/_chunks/{toast-YZz2sBzB.js → toast-8jqtbfAB.js} +2 -2
- package/dist/_chunks/{tool-rail-ONaV-Nzz.js → tool-rail-Bq5eiFMG.js} +3 -3
- package/dist/_chunks/{tooltip-DvmfrNvB.js → tooltip-Cp-PLePW.js} +41 -41
- package/dist/_chunks/{tooth-scheme-Qe7LO5Di.js → tooth-scheme-BWkYxxjR.js} +3 -3
- package/dist/_chunks/{transaction-chip-DJCstquX.js → transaction-chip-Dth1nThY.js} +49 -48
- package/dist/_chunks/{transcript-panel-BGkEhvHO.js → transcript-panel-u2HHxZB6.js} +2 -2
- package/dist/_chunks/user-x-DYszNtIg.js +45 -0
- package/dist/_chunks/{warning-stack-DQz0Jyir.js → warning-stack-BW5Dwb3z.js} +3 -3
- package/dist/_chunks/{widget-picker-DvUkBemi.js → widget-picker-B1sj6uyf.js} +2 -2
- package/dist/_chunks/{workflow-map-dNzJjBWG.js → workflow-map-D-LEni11.js} +5 -5
- package/dist/_chunks/workflow-status-xeaJTzD3.js +476 -0
- package/dist/agent-catalog.json +185 -1
- package/dist/agent-i18n/en.json +27 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +44 -0
- package/dist/components/_shared/entity-card/index.d.ts +1 -1
- package/dist/components/_shared/note-attachment.d.ts +41 -0
- package/dist/components/_shared/note-markdown.d.ts +3 -0
- package/dist/components/_shared/patient-field-row.d.ts +40 -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/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +36 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- 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/index.js +1 -1
- package/dist/components/button-group/button-group.d.ts +20 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/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/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -34
- package/dist/components/clinical-note-card/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/counter/counter.d.ts +6 -0
- package/dist/components/counter/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/date-picker/index.js +1 -1
- package/dist/components/dependent-selector/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 +2 -2
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/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/file-upload/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/hover-card.agent.d.ts +4 -0
- package/dist/components/hover-card/hover-card.d.ts +80 -0
- package/dist/components/hover-card/index.d.ts +4 -0
- package/dist/components/hover-card/index.js +6 -0
- 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/index.d.ts +4 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts +8 -1
- package/dist/components/locale-picker/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/multi-select/index.js +1 -1
- package/dist/components/note-timeline/index.d.ts +4 -0
- package/dist/components/note-timeline/index.js +6 -0
- package/dist/components/note-timeline/note-timeline.agent.d.ts +4 -0
- package/dist/components/note-timeline/note-timeline.d.ts +77 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +7 -0
- 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-summary-card/patient-summary-card.d.ts +54 -0
- package/dist/components/patient-table/index.js +1 -1
- 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/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-profile-hero/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/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- 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.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/section-card/index.d.ts +4 -0
- package/dist/components/section-card/index.js +6 -0
- package/dist/components/section-card/section-card.agent.d.ts +3 -0
- package/dist/components/section-card/section-card.d.ts +30 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-status-chip/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/tab-bar/index.js +1 -1
- package/dist/components/tag/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/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooltip/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 +11 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.d.ts +4 -0
- package/dist/components/workflow-status/index.js +7 -0
- package/dist/components/workflow-status/workflow-status.agent.d.ts +4 -0
- package/dist/components/workflow-status/workflow-status.d.ts +52 -0
- package/dist/host-compat.css +4 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/it.d.ts +20 -3
- package/dist/i18n/locales/it.js +20 -3
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/index.js +929 -916
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +20 -3
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.model.d.ts +2 -0
- 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 +17 -1
- package/dist/_chunks/appointment-card-D6mk39NB.js +0 -296
- package/dist/_chunks/appointment-timeline-D-V97Bhc.js +0 -403
- package/dist/_chunks/button-group-CaxRJsNG.js +0 -289
- package/dist/_chunks/clinical-note-card-CTRzmqvv.js +0 -438
- package/dist/_chunks/field-value-BetdWMA2.js +0 -384
- package/dist/_chunks/panel-header-D313n_9-.js +0 -105
- package/dist/_chunks/patient-details-BGiawUHd.js +0 -760
- package/dist/_chunks/patient-summary-card--CT_gbaQ.js +0 -454
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { jsxs as S, jsx as o, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as be, useId as Te, useMemo as F, useRef as T, useState as Z, useCallback as x, useImperativeHandle as xe } from "react";
|
|
3
|
-
import { c as De } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as we } from "react-i18next";
|
|
5
|
-
import { A as Re } from "./appointment-card-D6mk39NB.js";
|
|
6
|
-
import { B as A } from "./button-nJaPh_HC.js";
|
|
7
|
-
import { B as Ie } from "./button-group-CaxRJsNG.js";
|
|
8
|
-
import { D as Se } from "./date-picker-B6NW_PS5.js";
|
|
9
|
-
import { P as je } from "./panel-header-D313n_9-.js";
|
|
10
|
-
import { S as Ce } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { E as He } from "./empty-state-X0sVPfVo.js";
|
|
12
|
-
import { u as O } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
13
|
-
import { u as Fe } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
|
-
import { u as Me } from "./registry-DvAUVLHh.js";
|
|
15
|
-
import { C as Ne } from "./calendar-days-BGWklvE-.js";
|
|
16
|
-
const _e = {
|
|
17
|
-
id: "appointment-timeline",
|
|
18
|
-
// 'pick' backs select_item (non-persisting activation through
|
|
19
|
-
// onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
|
|
20
|
-
// scroll viewport (mirrors practice-results' scroll_to_result).
|
|
21
|
-
capabilities: ["scroll", "pick"],
|
|
22
|
-
state: {
|
|
23
|
-
items: {
|
|
24
|
-
type: "Array<{ id: string; state: string }>",
|
|
25
|
-
descriptionKey: "ui.agent.appointmentTimeline.state.items",
|
|
26
|
-
description: "Currently-rendered appointments. Ids + lifecycle state only — never patient identity.",
|
|
27
|
-
read: (n) => n.getItems()
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
actions: {
|
|
31
|
-
select_item: {
|
|
32
|
-
safety: "read",
|
|
33
|
-
argsType: "{ id: string }",
|
|
34
|
-
argsSchema: {
|
|
35
|
-
type: "object",
|
|
36
|
-
properties: { id: { type: "string" } },
|
|
37
|
-
required: ["id"]
|
|
38
|
-
},
|
|
39
|
-
idempotent: !0,
|
|
40
|
-
descriptionKey: "ui.agent.appointmentTimeline.actions.selectItem",
|
|
41
|
-
description: "Activate the appointment with the given id.",
|
|
42
|
-
invoke: (n, i) => {
|
|
43
|
-
n.selectItem(i.id);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
jump_to_today: {
|
|
47
|
-
safety: "read",
|
|
48
|
-
idempotent: !0,
|
|
49
|
-
descriptionKey: "ui.agent.appointmentTimeline.actions.jumpToToday",
|
|
50
|
-
description: "Re-anchor the timeline scroll on today's appointments.",
|
|
51
|
-
invoke: (n) => {
|
|
52
|
-
n.jumpToToday();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
domHooks: {
|
|
57
|
-
root: {
|
|
58
|
-
attr: "data-component",
|
|
59
|
-
value: "appointment-timeline",
|
|
60
|
-
description: "Marks the AppointmentTimeline wrapper."
|
|
61
|
-
},
|
|
62
|
-
instanceId: {
|
|
63
|
-
attr: "data-component-id",
|
|
64
|
-
sourceProp: "id",
|
|
65
|
-
description: "Sourced from the id prop. Required to address a specific timeline from the agent."
|
|
66
|
-
},
|
|
67
|
-
item: {
|
|
68
|
-
attr: "data-appointment-id",
|
|
69
|
-
description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}, L = 96, ze = De(
|
|
73
|
-
[
|
|
74
|
-
"ds:flex ds:flex-col ds:h-full ds:min-h-0",
|
|
75
|
-
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
|
|
76
|
-
].join(" "),
|
|
77
|
-
{ variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
|
|
78
|
-
), Be = [
|
|
79
|
-
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
80
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
81
|
-
"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
82
|
-
"ds:[--atl-mask-top:black] ds:[--atl-mask-bottom:black]",
|
|
83
|
-
"ds:data-[fade-top=true]:[--atl-mask-top:transparent]",
|
|
84
|
-
"ds:data-[fade-bottom=true]:[--atl-mask-bottom:transparent]",
|
|
85
|
-
"ds:[mask-image:linear-gradient(to_bottom,var(--atl-mask-top)_0,black_var(--atl-fade-distance,var(--spacing-lg)),black_calc(100%-var(--atl-fade-distance,var(--spacing-lg))),var(--atl-mask-bottom)_100%)]",
|
|
86
|
-
"ds:motion-reduce:[mask-image:none]",
|
|
87
|
-
"ds:[.theme-accessible_&]:[mask-image:none]",
|
|
88
|
-
"ds:forced-colors:[mask-image:none]",
|
|
89
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
90
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
|
|
91
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
92
|
-
].join(" ");
|
|
93
|
-
function y(n) {
|
|
94
|
-
const i = `${n.getMonth() + 1}`.padStart(2, "0"), l = `${n.getDate()}`.padStart(2, "0");
|
|
95
|
-
return `${n.getFullYear()}-${i}-${l}`;
|
|
96
|
-
}
|
|
97
|
-
function Ke(n) {
|
|
98
|
-
const i = [...n].sort(
|
|
99
|
-
(u, m) => +new Date(u.startIso) - +new Date(m.startIso)
|
|
100
|
-
), l = /* @__PURE__ */ new Map();
|
|
101
|
-
for (const u of i) {
|
|
102
|
-
const m = new Date(u.startIso), h = y(m);
|
|
103
|
-
let c = l.get(h);
|
|
104
|
-
c || (c = {
|
|
105
|
-
key: h,
|
|
106
|
-
date: new Date(m.getFullYear(), m.getMonth(), m.getDate()),
|
|
107
|
-
items: []
|
|
108
|
-
}, l.set(h, c)), c.items.push(u);
|
|
109
|
-
}
|
|
110
|
-
return [...l.values()];
|
|
111
|
-
}
|
|
112
|
-
const Ae = be(
|
|
113
|
-
({
|
|
114
|
-
id: n,
|
|
115
|
-
items: i,
|
|
116
|
-
nowIso: l,
|
|
117
|
-
title: u,
|
|
118
|
-
locale: m,
|
|
119
|
-
currency: h,
|
|
120
|
-
size: c = "sm",
|
|
121
|
-
showPatient: M = !1,
|
|
122
|
-
onOpenAppointment: f,
|
|
123
|
-
onLoadEarlier: v,
|
|
124
|
-
onLoadLater: p,
|
|
125
|
-
hasMoreEarlier: k,
|
|
126
|
-
hasMoreLater: N,
|
|
127
|
-
loadingEarlier: j = !1,
|
|
128
|
-
loadingLater: C = !1,
|
|
129
|
-
showFilters: J = !0,
|
|
130
|
-
onJumpToDate: H,
|
|
131
|
-
emptyTitle: ee,
|
|
132
|
-
emptyDescription: te,
|
|
133
|
-
className: se,
|
|
134
|
-
"aria-label": ne,
|
|
135
|
-
...ie
|
|
136
|
-
}, oe) => {
|
|
137
|
-
const { t: a, i18n: ae } = we(), Y = Te(), P = Fe(), $ = m ?? ae.language, E = u ?? a("appointmentTimeline.title"), r = F(
|
|
138
|
-
() => l ? new Date(l) : /* @__PURE__ */ new Date(),
|
|
139
|
-
[l]
|
|
140
|
-
), g = F(() => Ke(i), [i]), q = k ?? !!v, G = N ?? !!p, _ = F(() => {
|
|
141
|
-
if (g.length === 0) return;
|
|
142
|
-
const e = y(r), t = g.map((s) => s.key);
|
|
143
|
-
return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
|
|
144
|
-
}, [g, r]), D = T(null), w = T(/* @__PURE__ */ new Map()), V = T(!1), z = T(void 0), W = T(0), [re, le] = Z(!1), [ce, de] = Z(!1), R = x(() => {
|
|
145
|
-
const e = D.current;
|
|
146
|
-
if (!e) return;
|
|
147
|
-
const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
|
|
148
|
-
le(t > 1), de(t + d < s - 1);
|
|
149
|
-
}, []), I = x(
|
|
150
|
-
(e, t) => {
|
|
151
|
-
const s = D.current;
|
|
152
|
-
if (!s) return;
|
|
153
|
-
let d = w.current.get(e);
|
|
154
|
-
if (!d) {
|
|
155
|
-
const K = [...w.current.keys()].sort(), X = K.find((ve) => ve >= e) ?? K[K.length - 1];
|
|
156
|
-
d = X ? w.current.get(X) : void 0;
|
|
157
|
-
}
|
|
158
|
-
if (!d) return;
|
|
159
|
-
const he = d.getBoundingClientRect().top - s.getBoundingClientRect().top;
|
|
160
|
-
s.scrollTo({
|
|
161
|
-
top: s.scrollTop + he,
|
|
162
|
-
behavior: t && !P ? "smooth" : "auto"
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
[P]
|
|
166
|
-
);
|
|
167
|
-
O(() => {
|
|
168
|
-
var s;
|
|
169
|
-
const e = D.current;
|
|
170
|
-
if (!e) return;
|
|
171
|
-
const t = (s = g[0]) == null ? void 0 : s.key;
|
|
172
|
-
if (!V.current)
|
|
173
|
-
g.length > 0 && _ && (I(_, !1), V.current = !0);
|
|
174
|
-
else if (z.current && t && t < z.current) {
|
|
175
|
-
const d = e.scrollHeight - W.current;
|
|
176
|
-
d > 0 && (e.scrollTop += d);
|
|
177
|
-
}
|
|
178
|
-
z.current = t, W.current = e.scrollHeight, R();
|
|
179
|
-
}, [g, _, I, R]), O(() => {
|
|
180
|
-
const e = D.current;
|
|
181
|
-
if (!e || typeof ResizeObserver > "u") return;
|
|
182
|
-
const t = new ResizeObserver(R);
|
|
183
|
-
return t.observe(e), () => t.disconnect();
|
|
184
|
-
}, [R]);
|
|
185
|
-
const me = x(() => {
|
|
186
|
-
R();
|
|
187
|
-
const e = D.current;
|
|
188
|
-
if (!e) return;
|
|
189
|
-
const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
|
|
190
|
-
v && q && !j && t <= L && v(), p && G && !C && s - t - d <= L && p();
|
|
191
|
-
}, [
|
|
192
|
-
R,
|
|
193
|
-
v,
|
|
194
|
-
p,
|
|
195
|
-
q,
|
|
196
|
-
G,
|
|
197
|
-
j,
|
|
198
|
-
C
|
|
199
|
-
]), b = x(
|
|
200
|
-
(e) => {
|
|
201
|
-
const t = y(e), s = w.current.has(t);
|
|
202
|
-
I(t, !0), s || H == null || H(e.toISOString());
|
|
203
|
-
},
|
|
204
|
-
[I, H]
|
|
205
|
-
), pe = x(() => b(r), [b, r]), ue = x(() => {
|
|
206
|
-
const e = new Date(r), t = (e.getDay() + 6) % 7;
|
|
207
|
-
e.setDate(e.getDate() - t), b(e);
|
|
208
|
-
}, [b, r]), fe = x(() => {
|
|
209
|
-
b(new Date(r.getFullYear(), r.getMonth(), 1));
|
|
210
|
-
}, [b, r]), B = T(i);
|
|
211
|
-
B.current = i;
|
|
212
|
-
const Q = T(null);
|
|
213
|
-
xe(oe, () => Q.current, []);
|
|
214
|
-
const ge = F(
|
|
215
|
-
() => ({
|
|
216
|
-
getItems: () => B.current.map((e) => ({ id: e.id, state: e.state })),
|
|
217
|
-
selectItem: (e) => {
|
|
218
|
-
const t = B.current.find((s) => s.id === e);
|
|
219
|
-
t && (f == null || f(t));
|
|
220
|
-
},
|
|
221
|
-
jumpToToday: () => I(y(r), !0)
|
|
222
|
-
}),
|
|
223
|
-
[f, I, r]
|
|
224
|
-
);
|
|
225
|
-
Me(_e, ge, n);
|
|
226
|
-
const ye = g.length === 0 && !j && !C, U = (e) => /* @__PURE__ */ o(
|
|
227
|
-
"div",
|
|
228
|
-
{
|
|
229
|
-
"aria-hidden": "true",
|
|
230
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
|
|
231
|
-
children: /* @__PURE__ */ o(Ce, { variant: "rectangular", height: "3.5rem" })
|
|
232
|
-
},
|
|
233
|
-
e
|
|
234
|
-
);
|
|
235
|
-
return /* @__PURE__ */ S(
|
|
236
|
-
"section",
|
|
237
|
-
{
|
|
238
|
-
ref: Q,
|
|
239
|
-
"data-component": "appointment-timeline",
|
|
240
|
-
"data-component-id": n,
|
|
241
|
-
"aria-label": ne ?? E,
|
|
242
|
-
className: ze({ size: c, className: se }),
|
|
243
|
-
...ie,
|
|
244
|
-
children: [
|
|
245
|
-
/* @__PURE__ */ o(
|
|
246
|
-
je,
|
|
247
|
-
{
|
|
248
|
-
icon: /* @__PURE__ */ o(Ne, {}),
|
|
249
|
-
title: E,
|
|
250
|
-
filters: J ? /* @__PURE__ */ S(ke, { children: [
|
|
251
|
-
/* @__PURE__ */ S(Ie, { label: a("appointmentTimeline.filtersLabel"), children: [
|
|
252
|
-
/* @__PURE__ */ o(A, { intent: "outline", size: "sm", onClick: pe, children: a("appointmentTimeline.today") }),
|
|
253
|
-
/* @__PURE__ */ o(A, { intent: "outline", size: "sm", onClick: ue, children: a("appointmentTimeline.thisWeek") }),
|
|
254
|
-
/* @__PURE__ */ o(A, { intent: "outline", size: "sm", onClick: fe, children: a("appointmentTimeline.thisMonth") })
|
|
255
|
-
] }),
|
|
256
|
-
/* @__PURE__ */ o("label", { htmlFor: Y, className: "ds:sr-only", children: a("appointmentTimeline.jumpToDate") }),
|
|
257
|
-
/* @__PURE__ */ o(
|
|
258
|
-
Se,
|
|
259
|
-
{
|
|
260
|
-
id: Y,
|
|
261
|
-
size: "sm",
|
|
262
|
-
placeholder: a("appointmentTimeline.jumpToDate"),
|
|
263
|
-
onChange: (e) => {
|
|
264
|
-
e && b(e);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
)
|
|
268
|
-
] }) : void 0
|
|
269
|
-
}
|
|
270
|
-
),
|
|
271
|
-
ye ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
|
|
272
|
-
He,
|
|
273
|
-
{
|
|
274
|
-
variant: "first-use",
|
|
275
|
-
size: "sm",
|
|
276
|
-
title: ee ?? a("appointmentTimeline.empty.title"),
|
|
277
|
-
description: te ?? a("appointmentTimeline.empty.description")
|
|
278
|
-
}
|
|
279
|
-
) }) : /* @__PURE__ */ S(
|
|
280
|
-
"div",
|
|
281
|
-
{
|
|
282
|
-
ref: D,
|
|
283
|
-
tabIndex: 0,
|
|
284
|
-
onScroll: me,
|
|
285
|
-
"data-fade-top": re ? "true" : void 0,
|
|
286
|
-
"data-fade-bottom": ce ? "true" : void 0,
|
|
287
|
-
className: Be,
|
|
288
|
-
children: [
|
|
289
|
-
j ? U("loading-earlier") : null,
|
|
290
|
-
/* @__PURE__ */ o(
|
|
291
|
-
"ol",
|
|
292
|
-
{
|
|
293
|
-
role: "list",
|
|
294
|
-
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
|
|
295
|
-
children: g.map((e) => /* @__PURE__ */ S(
|
|
296
|
-
"li",
|
|
297
|
-
{
|
|
298
|
-
ref: (t) => {
|
|
299
|
-
t ? w.current.set(e.key, t) : w.current.delete(e.key);
|
|
300
|
-
},
|
|
301
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
302
|
-
children: [
|
|
303
|
-
/* @__PURE__ */ o(
|
|
304
|
-
Ye,
|
|
305
|
-
{
|
|
306
|
-
date: e.date,
|
|
307
|
-
now: r,
|
|
308
|
-
locale: $,
|
|
309
|
-
todayLabel: a("appointmentTimeline.today"),
|
|
310
|
-
tomorrowLabel: a("appointmentTimeline.tomorrow"),
|
|
311
|
-
yesterdayLabel: a("appointmentTimeline.yesterday")
|
|
312
|
-
}
|
|
313
|
-
),
|
|
314
|
-
/* @__PURE__ */ o(
|
|
315
|
-
"ul",
|
|
316
|
-
{
|
|
317
|
-
role: "list",
|
|
318
|
-
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0",
|
|
319
|
-
children: e.items.map((t) => /* @__PURE__ */ o(
|
|
320
|
-
Re,
|
|
321
|
-
{
|
|
322
|
-
item: t,
|
|
323
|
-
size: c,
|
|
324
|
-
surface: "elevated",
|
|
325
|
-
showPatient: M,
|
|
326
|
-
locale: $,
|
|
327
|
-
currency: h,
|
|
328
|
-
onActivate: f,
|
|
329
|
-
"data-appointment-id": t.id
|
|
330
|
-
},
|
|
331
|
-
t.id
|
|
332
|
-
))
|
|
333
|
-
}
|
|
334
|
-
)
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
e.key
|
|
338
|
-
))
|
|
339
|
-
}
|
|
340
|
-
),
|
|
341
|
-
C ? U("loading-later") : null
|
|
342
|
-
]
|
|
343
|
-
}
|
|
344
|
-
)
|
|
345
|
-
]
|
|
346
|
-
}
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
);
|
|
350
|
-
Ae.displayName = "AppointmentTimeline";
|
|
351
|
-
function Ye({
|
|
352
|
-
date: n,
|
|
353
|
-
now: i,
|
|
354
|
-
locale: l,
|
|
355
|
-
todayLabel: u,
|
|
356
|
-
tomorrowLabel: m,
|
|
357
|
-
yesterdayLabel: h
|
|
358
|
-
}) {
|
|
359
|
-
const c = y(n), M = y(i), f = new Date(i);
|
|
360
|
-
f.setDate(i.getDate() + 1);
|
|
361
|
-
const v = new Date(i);
|
|
362
|
-
v.setDate(i.getDate() - 1);
|
|
363
|
-
const p = c === M;
|
|
364
|
-
let k;
|
|
365
|
-
if (p) k = u;
|
|
366
|
-
else if (c === y(f)) k = m;
|
|
367
|
-
else if (c === y(v)) k = h;
|
|
368
|
-
else {
|
|
369
|
-
const N = n.getFullYear() === i.getFullYear();
|
|
370
|
-
k = new Intl.DateTimeFormat(l, {
|
|
371
|
-
weekday: "short",
|
|
372
|
-
day: "numeric",
|
|
373
|
-
month: "short",
|
|
374
|
-
...N ? {} : { year: "numeric" }
|
|
375
|
-
}).format(n);
|
|
376
|
-
}
|
|
377
|
-
return /* @__PURE__ */ S(
|
|
378
|
-
"div",
|
|
379
|
-
{
|
|
380
|
-
"data-today": p ? "true" : void 0,
|
|
381
|
-
className: [
|
|
382
|
-
"ds:sticky ds:top-0 ds:z-[1] ds:bg-[color:var(--card)] ds:py-[var(--spacing-2xs)]",
|
|
383
|
-
"ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] type-eyebrow",
|
|
384
|
-
p ? "ds:text-[color:var(--primary)] ds:font-semibold" : "ds:text-[color:var(--muted-foreground)]"
|
|
385
|
-
].join(" "),
|
|
386
|
-
children: [
|
|
387
|
-
p ? /* @__PURE__ */ o(
|
|
388
|
-
"span",
|
|
389
|
-
{
|
|
390
|
-
"aria-hidden": "true",
|
|
391
|
-
className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
|
|
392
|
-
}
|
|
393
|
-
) : null,
|
|
394
|
-
k
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
export {
|
|
400
|
-
Ae as A,
|
|
401
|
-
_e as a
|
|
402
|
-
};
|
|
403
|
-
//# sourceMappingURL=appointment-timeline-D-V97Bhc.js.map
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as j } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ce, useRef as R, useState as X, useCallback as fe, Children as z, isValidElement as Y, useEffect as pe, cloneElement as B } from "react";
|
|
3
|
-
import { c as me } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as be } from "react-i18next";
|
|
5
|
-
import { I as Z } from "./icon-button-DA2CAGHZ.js";
|
|
6
|
-
import { D as x } from "./dropdown-menu-DU-Hrf33.js";
|
|
7
|
-
import { u as ge } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
-
import { u as we } from "./use-priority-overflow-c9SjxZkZ.js";
|
|
9
|
-
import { E } from "./ellipsis-dRo9ouSU.js";
|
|
10
|
-
const ee = me(
|
|
11
|
-
"ds:inline-flex ds:isolate ds:[&>*]:relative ds:[&>*:focus-visible]:z-10",
|
|
12
|
-
{
|
|
13
|
-
variants: {
|
|
14
|
-
orientation: {
|
|
15
|
-
horizontal: [
|
|
16
|
-
"ds:flex-row",
|
|
17
|
-
"ds:[&>*:not(:first-child)]:rounded-s-none",
|
|
18
|
-
"ds:[&>*:not(:last-child)]:rounded-e-none",
|
|
19
|
-
"ds:[&>*:not(:first-child)]:-ms-px"
|
|
20
|
-
].join(" "),
|
|
21
|
-
vertical: [
|
|
22
|
-
"ds:flex-col",
|
|
23
|
-
"ds:[&>*:not(:first-child)]:rounded-t-none",
|
|
24
|
-
"ds:[&>*:not(:last-child)]:rounded-b-none",
|
|
25
|
-
"ds:[&>*:not(:first-child)]:-mt-px"
|
|
26
|
-
].join(" ")
|
|
27
|
-
},
|
|
28
|
-
separator: {
|
|
29
|
-
true: "",
|
|
30
|
-
false: ""
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
compoundVariants: [
|
|
34
|
-
{
|
|
35
|
-
orientation: "horizontal",
|
|
36
|
-
separator: !0,
|
|
37
|
-
class: "ds:[&>*:not(:last-child)]:border-e ds:[&>*:not(:last-child)]:border-border"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
orientation: "vertical",
|
|
41
|
-
separator: !0,
|
|
42
|
-
class: "ds:[&>*:not(:last-child)]:border-b ds:[&>*:not(:last-child)]:border-border"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
orientation: "horizontal",
|
|
47
|
-
separator: !1
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
), D = "ds:absolute ds:start-0 ds:top-0 ds:invisible ds:pointer-events-none", ve = ce(
|
|
51
|
-
({
|
|
52
|
-
className: F,
|
|
53
|
-
orientation: f = "horizontal",
|
|
54
|
-
separator: G = !1,
|
|
55
|
-
toolbar: b = !1,
|
|
56
|
-
intent: g = "outline",
|
|
57
|
-
label: re,
|
|
58
|
-
overflow: te = "none",
|
|
59
|
-
collapseToIcons: I = !1,
|
|
60
|
-
children: k,
|
|
61
|
-
...K
|
|
62
|
-
}, w) => {
|
|
63
|
-
const { t: $ } = be(), V = re ?? $("buttonGroup.label", "Button group"), M = $("buttonGroup.more", "More options"), u = te === "menu" && f !== "vertical", d = b, p = R([]), [c, v] = X(0), T = R(null), [C, oe] = X(!1);
|
|
64
|
-
ge(() => {
|
|
65
|
-
if (typeof window > "u") return;
|
|
66
|
-
const e = T.current;
|
|
67
|
-
e && oe(window.getComputedStyle(e).direction === "rtl");
|
|
68
|
-
}, []);
|
|
69
|
-
const O = fe(
|
|
70
|
-
(e) => {
|
|
71
|
-
var Q;
|
|
72
|
-
if (!d) return;
|
|
73
|
-
const r = p.current.filter(Boolean).length;
|
|
74
|
-
if (r === 0) return;
|
|
75
|
-
const o = f === "vertical" ? "ArrowDown" : C ? "ArrowLeft" : "ArrowRight", t = f === "vertical" ? "ArrowUp" : C ? "ArrowRight" : "ArrowLeft";
|
|
76
|
-
let n = null;
|
|
77
|
-
if (e.key === o ? n = (c + 1) % r : e.key === t ? n = (c - 1 + r) % r : e.key === "Home" ? n = 0 : e.key === "End" && (n = r - 1), n === null) return;
|
|
78
|
-
const a = r;
|
|
79
|
-
let i = 0, l = n;
|
|
80
|
-
for (; i < a; ) {
|
|
81
|
-
const S = p.current[l];
|
|
82
|
-
if (S && S.getAttribute("aria-disabled") !== "true" && !S.disabled)
|
|
83
|
-
break;
|
|
84
|
-
l = e.key === t || e.key === "End" ? (l - 1 + r) % r : (l + 1) % r, i += 1;
|
|
85
|
-
}
|
|
86
|
-
e.preventDefault(), v(l), (Q = p.current[l]) == null || Q.focus();
|
|
87
|
-
},
|
|
88
|
-
[d, f, C, c]
|
|
89
|
-
), m = u ? z.toArray(k).filter(Y) : [], P = (e) => {
|
|
90
|
-
if (typeof e.props.children == "string") return e.props.children;
|
|
91
|
-
const r = e.props["aria-label"];
|
|
92
|
-
return typeof r == "string" ? r : null;
|
|
93
|
-
};
|
|
94
|
-
R(!1);
|
|
95
|
-
const ne = m.map((e) => {
|
|
96
|
-
const r = e.props["data-overflow-pin"] !== void 0, o = P(e) !== null;
|
|
97
|
-
return r || !o;
|
|
98
|
-
}), {
|
|
99
|
-
containerRef: se,
|
|
100
|
-
fullRowRef: ie,
|
|
101
|
-
iconRowRef: ae,
|
|
102
|
-
triggerProbeRef: le,
|
|
103
|
-
stage: ue,
|
|
104
|
-
visible: L,
|
|
105
|
-
overflowing: h
|
|
106
|
-
} = we({
|
|
107
|
-
enabled: u,
|
|
108
|
-
count: m.length,
|
|
109
|
-
twoStage: I,
|
|
110
|
-
pinned: ne
|
|
111
|
-
}), U = R(null), y = u ? L.filter(Boolean).length : z.count(k);
|
|
112
|
-
pe(() => {
|
|
113
|
-
var r;
|
|
114
|
-
if (!d || !u) return;
|
|
115
|
-
const e = y + (h ? 1 : 0);
|
|
116
|
-
e > 0 && c >= e && (v(e - 1), document.activeElement === document.body && ((r = U.current) == null || r.focus()));
|
|
117
|
-
}, [
|
|
118
|
-
d,
|
|
119
|
-
u,
|
|
120
|
-
y,
|
|
121
|
-
h,
|
|
122
|
-
c
|
|
123
|
-
]);
|
|
124
|
-
const _ = (e, r) => (o) => {
|
|
125
|
-
p.current[r] = o;
|
|
126
|
-
const t = e.ref;
|
|
127
|
-
typeof t == "function" ? t(o) : t != null && typeof t == "object" && (t.current = o);
|
|
128
|
-
}, de = u ? null : z.map(k, (e, r) => {
|
|
129
|
-
if (!Y(e)) return e;
|
|
130
|
-
const o = e, t = {
|
|
131
|
-
intent: o.props.intent ?? g
|
|
132
|
-
};
|
|
133
|
-
return d && (t.tabIndex = r === c ? 0 : -1, t.onFocus = (n) => {
|
|
134
|
-
var a, i;
|
|
135
|
-
v(r), (i = (a = o.props).onFocus) == null || i.call(a, n);
|
|
136
|
-
}, t.ref = _(o, r)), B(
|
|
137
|
-
o,
|
|
138
|
-
t
|
|
139
|
-
);
|
|
140
|
-
});
|
|
141
|
-
let H = null, W = null;
|
|
142
|
-
if (u) {
|
|
143
|
-
p.current.length = y + (h ? 1 : 0);
|
|
144
|
-
let e = -1;
|
|
145
|
-
H = m.map((r, o) => {
|
|
146
|
-
if (!L[o]) return null;
|
|
147
|
-
e += 1;
|
|
148
|
-
const t = e, n = {
|
|
149
|
-
intent: r.props.intent ?? g
|
|
150
|
-
};
|
|
151
|
-
return I && ue === "icons" && r.props.children && (r.props.startIcon || r.props.endIcon) && (n.hideLabel = !0), d && (n.tabIndex = t === c ? 0 : -1, n.onFocus = (a) => {
|
|
152
|
-
var i, l;
|
|
153
|
-
v(t), (l = (i = r.props).onFocus) == null || l.call(i, a);
|
|
154
|
-
}, n.ref = _(r, t)), B(r, n);
|
|
155
|
-
}), W = m.map((r, o) => {
|
|
156
|
-
if (L[o]) return null;
|
|
157
|
-
const t = P(r);
|
|
158
|
-
return t === null ? null : /* @__PURE__ */ s(
|
|
159
|
-
x.Item,
|
|
160
|
-
{
|
|
161
|
-
startIcon: r.props.startIcon,
|
|
162
|
-
disabled: r.props.disabled === !0 || r.props.loading === !0,
|
|
163
|
-
onSelect: (n) => {
|
|
164
|
-
var a, i;
|
|
165
|
-
(i = (a = r.props).onClick) == null || i.call(
|
|
166
|
-
a,
|
|
167
|
-
n
|
|
168
|
-
);
|
|
169
|
-
},
|
|
170
|
-
children: t
|
|
171
|
-
},
|
|
172
|
-
r.key ?? o
|
|
173
|
-
);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
const q = (e) => {
|
|
177
|
-
T.current = e, typeof w == "function" ? w(e) : w && typeof w == "object" && (w.current = e);
|
|
178
|
-
};
|
|
179
|
-
if (!u)
|
|
180
|
-
return /* @__PURE__ */ s(
|
|
181
|
-
"div",
|
|
182
|
-
{
|
|
183
|
-
ref: q,
|
|
184
|
-
role: b ? "toolbar" : "group",
|
|
185
|
-
"aria-label": V,
|
|
186
|
-
"aria-orientation": b ? f ?? "horizontal" : void 0,
|
|
187
|
-
"data-component": "button-group",
|
|
188
|
-
onKeyDown: O,
|
|
189
|
-
className: ee({ orientation: f, separator: G, className: F }),
|
|
190
|
-
...K,
|
|
191
|
-
children: de
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
const A = ee({ orientation: f, separator: G }), N = y, J = (e, r, o) => B(e, {
|
|
195
|
-
key: e.key ?? r,
|
|
196
|
-
intent: e.props.intent ?? g,
|
|
197
|
-
tabIndex: -1,
|
|
198
|
-
// Same rule as the live strip: icon-only children never hideLabel.
|
|
199
|
-
...o && e.props.children && (e.props.startIcon || e.props.endIcon) ? { hideLabel: !0 } : null,
|
|
200
|
-
ref: null
|
|
201
|
-
});
|
|
202
|
-
return /* @__PURE__ */ s(
|
|
203
|
-
"div",
|
|
204
|
-
{
|
|
205
|
-
ref: q,
|
|
206
|
-
"data-component": "button-group",
|
|
207
|
-
className: [
|
|
208
|
-
"ds:relative ds:block ds:w-full ds:min-w-0 ds:overflow-x-clip",
|
|
209
|
-
F ?? ""
|
|
210
|
-
].join(" ").trim(),
|
|
211
|
-
...K,
|
|
212
|
-
children: /* @__PURE__ */ j("div", { ref: se, className: "ds:block ds:w-full ds:min-w-0", children: [
|
|
213
|
-
/* @__PURE__ */ s(
|
|
214
|
-
"div",
|
|
215
|
-
{
|
|
216
|
-
ref: ie,
|
|
217
|
-
"aria-hidden": "true",
|
|
218
|
-
inert: !0,
|
|
219
|
-
className: `${D} ${A}`,
|
|
220
|
-
children: m.map((e, r) => J(e, r, !1))
|
|
221
|
-
}
|
|
222
|
-
),
|
|
223
|
-
I ? /* @__PURE__ */ s(
|
|
224
|
-
"div",
|
|
225
|
-
{
|
|
226
|
-
ref: ae,
|
|
227
|
-
"aria-hidden": "true",
|
|
228
|
-
inert: !0,
|
|
229
|
-
className: `${D} ${A}`,
|
|
230
|
-
children: m.map((e, r) => J(e, r, !0))
|
|
231
|
-
}
|
|
232
|
-
) : null,
|
|
233
|
-
/* @__PURE__ */ s(
|
|
234
|
-
"span",
|
|
235
|
-
{
|
|
236
|
-
ref: le,
|
|
237
|
-
"aria-hidden": "true",
|
|
238
|
-
inert: !0,
|
|
239
|
-
className: D,
|
|
240
|
-
children: /* @__PURE__ */ s(
|
|
241
|
-
Z,
|
|
242
|
-
{
|
|
243
|
-
icon: /* @__PURE__ */ s(E, {}),
|
|
244
|
-
intent: g,
|
|
245
|
-
"aria-label": M,
|
|
246
|
-
tabIndex: -1
|
|
247
|
-
}
|
|
248
|
-
)
|
|
249
|
-
}
|
|
250
|
-
),
|
|
251
|
-
/* @__PURE__ */ j(
|
|
252
|
-
"div",
|
|
253
|
-
{
|
|
254
|
-
role: b ? "toolbar" : "group",
|
|
255
|
-
"aria-label": V,
|
|
256
|
-
"aria-orientation": b ? "horizontal" : void 0,
|
|
257
|
-
onKeyDown: O,
|
|
258
|
-
className: `${A} ds:max-w-full`,
|
|
259
|
-
children: [
|
|
260
|
-
H,
|
|
261
|
-
h ? /* @__PURE__ */ j(x.Root, { children: [
|
|
262
|
-
/* @__PURE__ */ s(x.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
263
|
-
Z,
|
|
264
|
-
{
|
|
265
|
-
icon: /* @__PURE__ */ s(E, {}),
|
|
266
|
-
intent: g,
|
|
267
|
-
"aria-label": M,
|
|
268
|
-
ref: (e) => {
|
|
269
|
-
U.current = e, p.current[N] = e;
|
|
270
|
-
},
|
|
271
|
-
tabIndex: d ? c === N ? 0 : -1 : void 0,
|
|
272
|
-
onFocus: d ? () => v(N) : void 0
|
|
273
|
-
}
|
|
274
|
-
) }),
|
|
275
|
-
/* @__PURE__ */ s(x.Content, { align: "end", children: W })
|
|
276
|
-
] }) : null
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
)
|
|
280
|
-
] })
|
|
281
|
-
}
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
);
|
|
285
|
-
ve.displayName = "ButtonGroup";
|
|
286
|
-
export {
|
|
287
|
-
ve as B
|
|
288
|
-
};
|
|
289
|
-
//# sourceMappingURL=button-group-CaxRJsNG.js.map
|