@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
|
@@ -4,26 +4,16 @@ import * as m from "@radix-ui/react-accordion";
|
|
|
4
4
|
import { c as v } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as B } from "react-i18next";
|
|
6
6
|
import { C as D } from "./chevron-down-BX_NP2Yh.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
* @license lucide-react v1.8.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const H = [
|
|
15
|
-
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
16
|
-
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
17
|
-
], U = G("lock", H);
|
|
18
|
-
function W(a, c, r) {
|
|
7
|
+
import { L as G } from "./lock-CKOIn0IK.js";
|
|
8
|
+
function H(a, c, r) {
|
|
19
9
|
return r === "error" ? "error" : a === c ? "current" : r === "completed" || a < c ? "completed" : "upcoming";
|
|
20
10
|
}
|
|
21
|
-
const k = "step-", y = (a) => `${k}${a}`,
|
|
11
|
+
const k = "step-", y = (a) => `${k}${a}`, U = (a) => Number(a.slice(k.length)), p = [
|
|
22
12
|
"ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]",
|
|
23
13
|
"ds:animate-[stepper-icon-draw_var(--animation-duration)_var(--ease-out)_forwards]",
|
|
24
14
|
"ds:motion-reduce:animate-none ds:motion-reduce:[stroke-dashoffset:0]"
|
|
25
15
|
].join(" ");
|
|
26
|
-
function
|
|
16
|
+
function W() {
|
|
27
17
|
return /* @__PURE__ */ e(
|
|
28
18
|
"svg",
|
|
29
19
|
{
|
|
@@ -39,7 +29,7 @@ function X() {
|
|
|
39
29
|
}
|
|
40
30
|
);
|
|
41
31
|
}
|
|
42
|
-
function
|
|
32
|
+
function O() {
|
|
43
33
|
return /* @__PURE__ */ i(
|
|
44
34
|
"svg",
|
|
45
35
|
{
|
|
@@ -58,7 +48,7 @@ function q() {
|
|
|
58
48
|
}
|
|
59
49
|
);
|
|
60
50
|
}
|
|
61
|
-
const
|
|
51
|
+
const X = [
|
|
62
52
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
63
53
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
64
54
|
"ds:size-[var(--min-target-size)]",
|
|
@@ -68,7 +58,7 @@ const J = [
|
|
|
68
58
|
"ds:transition-[background-color,border-color,color]",
|
|
69
59
|
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
70
60
|
"ds:motion-reduce:transition-none"
|
|
71
|
-
].join(" "),
|
|
61
|
+
].join(" "), q = v(X, {
|
|
72
62
|
variants: {
|
|
73
63
|
state: {
|
|
74
64
|
upcoming: "ds:bg-[var(--background)] ds:text-[var(--muted-foreground)]",
|
|
@@ -85,7 +75,7 @@ const J = [
|
|
|
85
75
|
].join(" ")
|
|
86
76
|
}
|
|
87
77
|
}
|
|
88
|
-
}),
|
|
78
|
+
}), J = v(
|
|
89
79
|
[
|
|
90
80
|
"ds:group/item ds:overflow-hidden ds:rounded-[var(--radius-md)]",
|
|
91
81
|
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2 ds:bg-[var(--card)]",
|
|
@@ -102,7 +92,7 @@ const J = [
|
|
|
102
92
|
},
|
|
103
93
|
defaultVariants: { tone: "neutral" }
|
|
104
94
|
}
|
|
105
|
-
),
|
|
95
|
+
), K = [
|
|
106
96
|
"ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
107
97
|
"ds:min-h-[var(--min-target-size)]",
|
|
108
98
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -114,48 +104,48 @@ const J = [
|
|
|
114
104
|
"ds:transition-[background-color] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
115
105
|
"ds:motion-reduce:transition-none",
|
|
116
106
|
"ds:hover:enabled:bg-[var(--muted)]/40"
|
|
117
|
-
].join(" "),
|
|
107
|
+
].join(" "), Q = (a) => [
|
|
118
108
|
"type-body-sm",
|
|
119
109
|
a === "current" || a === "error" ? "ds:font-[var(--font-weight-semibold)] ds:text-[var(--foreground)]" : a === "completed" ? "ds:text-[var(--foreground)]" : "ds:text-[var(--muted-foreground)]"
|
|
120
|
-
].join(" "),
|
|
110
|
+
].join(" "), Y = [
|
|
121
111
|
"type-meta ds:text-[var(--muted-foreground)]",
|
|
122
112
|
"ds:mt-[var(--spacing-xs)]"
|
|
123
113
|
].join(" "), N = [
|
|
124
114
|
"type-meta",
|
|
125
115
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
126
116
|
"ds:text-[var(--muted-foreground)]"
|
|
127
|
-
].join(" "),
|
|
117
|
+
].join(" "), Z = [
|
|
128
118
|
"ds:size-4 ds:shrink-0 ds:text-[var(--muted-foreground)]",
|
|
129
119
|
"ds:transition-transform ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]",
|
|
130
120
|
"ds:motion-reduce:transition-none",
|
|
131
121
|
"ds:group-data-[state=open]/item:rotate-180"
|
|
132
|
-
].join(" "),
|
|
122
|
+
].join(" "), S = [
|
|
133
123
|
"type-meta ds:text-[var(--muted-foreground)]",
|
|
134
124
|
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
135
125
|
"ds:pe-[var(--spacing-md)] ds:pb-[var(--spacing-sm)]",
|
|
136
126
|
"ds:group-data-[state=open]/item:hidden"
|
|
137
|
-
].join(" "),
|
|
127
|
+
].join(" "), ee = [
|
|
138
128
|
"ds:overflow-hidden",
|
|
139
129
|
"ds:data-[state=open]:animate-[accordion-down_var(--animation-duration)_var(--ease-out)]",
|
|
140
130
|
"ds:data-[state=closed]:animate-[accordion-up_var(--animation-duration)_var(--ease-in)]"
|
|
141
|
-
].join(" "),
|
|
131
|
+
].join(" "), re = [
|
|
142
132
|
"ds:ps-[calc(var(--min-target-size)+var(--spacing-md)+var(--spacing-sm))]",
|
|
143
133
|
"ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-md)]"
|
|
144
|
-
].join(" "),
|
|
134
|
+
].join(" "), se = v("ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", {
|
|
145
135
|
variants: {}
|
|
146
|
-
}),
|
|
136
|
+
}), ae = E(
|
|
147
137
|
({
|
|
148
138
|
activeStep: a,
|
|
149
139
|
steps: c,
|
|
150
140
|
onStepChange: r,
|
|
151
|
-
"aria-label":
|
|
141
|
+
"aria-label": j,
|
|
152
142
|
id: f,
|
|
153
|
-
className:
|
|
143
|
+
className: w,
|
|
154
144
|
..._
|
|
155
145
|
}, C) => {
|
|
156
|
-
const { t: d } = B(), l = c.length, o = Math.max(0, Math.min(a, l - 1)), z =
|
|
146
|
+
const { t: d } = B(), l = c.length, o = Math.max(0, Math.min(a, l - 1)), z = j ?? d("navigation.stepper.label"), g = d("navigation.stepper.edit"), L = d("navigation.stepper.locked"), M = d("navigation.stepper.completed"), V = d("navigation.stepper.error"), A = (t) => {
|
|
157
147
|
if (!t) return;
|
|
158
|
-
const s =
|
|
148
|
+
const s = U(t);
|
|
159
149
|
Number.isFinite(s) && s !== o && (r == null || r(s));
|
|
160
150
|
}, h = P(
|
|
161
151
|
() => ({
|
|
@@ -187,17 +177,17 @@ const J = [
|
|
|
187
177
|
id: f,
|
|
188
178
|
"data-component": "stepper-accordion",
|
|
189
179
|
"data-component-id": f,
|
|
190
|
-
className:
|
|
180
|
+
className: se({ className: w }),
|
|
191
181
|
..._,
|
|
192
182
|
children: c.map((t, s) => {
|
|
193
|
-
const n =
|
|
194
|
-
/* @__PURE__ */ e(
|
|
183
|
+
const n = H(s, o, t.status), u = n === "current" || n === "error", F = n === "upcoming", T = n === "error" ? "error" : "neutral", b = d("navigation.stepper.stepN", { n: s + 1 }), I = n === "completed" ? /* @__PURE__ */ i(x, { children: [
|
|
184
|
+
/* @__PURE__ */ e(W, {}),
|
|
195
185
|
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: M })
|
|
196
186
|
] }) : n === "error" ? /* @__PURE__ */ i(x, { children: [
|
|
197
|
-
/* @__PURE__ */ e(
|
|
187
|
+
/* @__PURE__ */ e(O, {}),
|
|
198
188
|
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: V })
|
|
199
189
|
] }) : /* @__PURE__ */ e("span", { children: s + 1 }), $ = n === "completed" ? /* @__PURE__ */ e("span", { className: N, children: g }) : n === "upcoming" ? /* @__PURE__ */ i("span", { className: N, children: [
|
|
200
|
-
/* @__PURE__ */ e(
|
|
190
|
+
/* @__PURE__ */ e(G, { "aria-hidden": "true", className: "ds:size-3" }),
|
|
201
191
|
L
|
|
202
192
|
] }) : null;
|
|
203
193
|
return /* @__PURE__ */ i(
|
|
@@ -205,7 +195,7 @@ const J = [
|
|
|
205
195
|
{
|
|
206
196
|
value: y(s),
|
|
207
197
|
"data-step-id": String(s),
|
|
208
|
-
className:
|
|
198
|
+
className: J({ tone: T }),
|
|
209
199
|
children: [
|
|
210
200
|
/* @__PURE__ */ e(m.Header, { className: "ds:flex", children: /* @__PURE__ */ i(
|
|
211
201
|
m.Trigger,
|
|
@@ -214,33 +204,33 @@ const J = [
|
|
|
214
204
|
"aria-disabled": u || void 0,
|
|
215
205
|
"aria-label": n === "completed" ? `${b}, ${g}` : b,
|
|
216
206
|
"aria-current": u ? "step" : void 0,
|
|
217
|
-
className:
|
|
207
|
+
className: K,
|
|
218
208
|
children: [
|
|
219
209
|
/* @__PURE__ */ e(
|
|
220
210
|
"span",
|
|
221
211
|
{
|
|
222
212
|
"aria-hidden": "true",
|
|
223
|
-
className:
|
|
224
|
-
children:
|
|
213
|
+
className: q({ state: n }),
|
|
214
|
+
children: I
|
|
225
215
|
}
|
|
226
216
|
),
|
|
227
217
|
/* @__PURE__ */ i("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col", children: [
|
|
228
|
-
/* @__PURE__ */ e("span", { className:
|
|
229
|
-
t.description ? /* @__PURE__ */ e("span", { className:
|
|
218
|
+
/* @__PURE__ */ e("span", { className: Q(n), children: t.label }),
|
|
219
|
+
t.description ? /* @__PURE__ */ e("span", { className: Y, children: t.description }) : null
|
|
230
220
|
] }),
|
|
231
221
|
$,
|
|
232
222
|
u ? null : /* @__PURE__ */ e(
|
|
233
223
|
D,
|
|
234
224
|
{
|
|
235
225
|
"aria-hidden": "true",
|
|
236
|
-
className:
|
|
226
|
+
className: Z
|
|
237
227
|
}
|
|
238
228
|
)
|
|
239
229
|
]
|
|
240
230
|
}
|
|
241
231
|
) }),
|
|
242
|
-
t.summary && n === "completed" ? /* @__PURE__ */ e("div", { className:
|
|
243
|
-
/* @__PURE__ */ e(m.Content, { className:
|
|
232
|
+
t.summary && n === "completed" ? /* @__PURE__ */ e("div", { className: S, children: t.summary }) : null,
|
|
233
|
+
/* @__PURE__ */ e(m.Content, { className: ee, children: /* @__PURE__ */ e("div", { className: re, children: t.content }) })
|
|
244
234
|
]
|
|
245
235
|
},
|
|
246
236
|
s
|
|
@@ -250,8 +240,8 @@ const J = [
|
|
|
250
240
|
);
|
|
251
241
|
}
|
|
252
242
|
);
|
|
253
|
-
|
|
243
|
+
ae.displayName = "StepperAccordion";
|
|
254
244
|
export {
|
|
255
|
-
|
|
245
|
+
ae as S
|
|
256
246
|
};
|
|
257
|
-
//# sourceMappingURL=stepper-accordion-
|
|
247
|
+
//# sourceMappingURL=stepper-accordion-DC-H-8v4.js.map
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { jsx as a, jsxs as g, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useState as V, useCallback as F, forwardRef as O, Fragment as D } from "react";
|
|
3
|
+
import { c as C } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as M } from "react-i18next";
|
|
5
|
+
import { B as L } from "./badge-DCOqV9mI.js";
|
|
6
|
+
import { D as b } from "./dropdown-menu-qrxjymfw.js";
|
|
7
|
+
import { u as W } from "./use-media-query-CcAx5SMM.js";
|
|
8
|
+
import { u as P } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
|
+
import { u as I } from "./use-overflow-collapse-BIOzKbni.js";
|
|
10
|
+
import { C as Q } from "./chevron-down-BX_NP2Yh.js";
|
|
11
|
+
import { C as q } from "./check-DPdL_Sm7.js";
|
|
12
|
+
import { C as G } from "./chevron-left-CX1jqD2M.js";
|
|
13
|
+
import { C as H } from "./chevron-right-BrpYejk0.js";
|
|
14
|
+
function J(t = !0) {
|
|
15
|
+
const c = S(null), [d, p] = V({ start: !1, end: !1 });
|
|
16
|
+
P(() => {
|
|
17
|
+
const r = c.current;
|
|
18
|
+
if (!r || !t) {
|
|
19
|
+
p(
|
|
20
|
+
(o) => o.start || o.end ? { start: !1, end: !1 } : o
|
|
21
|
+
);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const e = () => {
|
|
25
|
+
const o = Math.abs(r.scrollLeft), f = r.scrollWidth - r.clientWidth, i = o > 1, m = f - o > 1;
|
|
26
|
+
p(
|
|
27
|
+
(v) => v.start === i && v.end === m ? v : { start: i, end: m }
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
e(), r.addEventListener("scroll", e, { passive: !0 });
|
|
31
|
+
let n;
|
|
32
|
+
return typeof ResizeObserver < "u" && (n = new ResizeObserver(e), n.observe(r), r.firstElementChild && n.observe(r.firstElementChild)), () => {
|
|
33
|
+
r.removeEventListener("scroll", e), n == null || n.disconnect();
|
|
34
|
+
};
|
|
35
|
+
}, [t]);
|
|
36
|
+
const u = F((r) => {
|
|
37
|
+
var i;
|
|
38
|
+
const e = c.current;
|
|
39
|
+
if (!e || typeof window > "u") return;
|
|
40
|
+
const n = window.getComputedStyle(e).direction === "rtl", o = (i = window.matchMedia) == null ? void 0 : i.call(
|
|
41
|
+
window,
|
|
42
|
+
"(prefers-reduced-motion: reduce)"
|
|
43
|
+
).matches, f = e.clientWidth * 0.85 * r * (n ? -1 : 1);
|
|
44
|
+
e.scrollBy({ left: f, behavior: o ? "auto" : "smooth" });
|
|
45
|
+
}, []);
|
|
46
|
+
return {
|
|
47
|
+
ref: c,
|
|
48
|
+
canScrollStart: d.start,
|
|
49
|
+
canScrollEnd: d.end,
|
|
50
|
+
scrollByPage: u
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function K(t) {
|
|
54
|
+
return t > 99 ? "99+" : String(t);
|
|
55
|
+
}
|
|
56
|
+
const U = C("ds:shrink-0", {
|
|
57
|
+
variants: {
|
|
58
|
+
position: {
|
|
59
|
+
top: "ds:pt-[var(--spacing-md)]",
|
|
60
|
+
bottom: "ds:pb-[var(--spacing-md)]"
|
|
61
|
+
},
|
|
62
|
+
fill: {
|
|
63
|
+
false: "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
64
|
+
true: ""
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: { position: "top", fill: !1 }
|
|
68
|
+
}), X = "ds:rounded-[var(--radius-lg)] ds:border ds:border-[color:var(--card-border)] ds:bg-[var(--card)]/80 ds:backdrop-blur-md ds:shadow-[var(--shadow-md)]", Y = [
|
|
69
|
+
"ds:flex ds:[justify-content:safe_center] ds:overflow-x-auto ds:py-[var(--spacing-xs)]",
|
|
70
|
+
"ds:[--tabbar-mask-start:black] ds:[--tabbar-mask-end:black]",
|
|
71
|
+
"ds:ltr:data-[fade-start=true]:[--tabbar-mask-start:transparent]",
|
|
72
|
+
"ds:ltr:data-[fade-end=true]:[--tabbar-mask-end:transparent]",
|
|
73
|
+
"ds:rtl:data-[fade-start=true]:[--tabbar-mask-end:transparent]",
|
|
74
|
+
"ds:rtl:data-[fade-end=true]:[--tabbar-mask-start:transparent]",
|
|
75
|
+
"ds:[mask-image:linear-gradient(to_right,var(--tabbar-mask-start)_0,black_var(--tabbar-fade-distance,var(--spacing-lg)),black_calc(100%-var(--tabbar-fade-distance,var(--spacing-lg))),var(--tabbar-mask-end)_100%)]",
|
|
76
|
+
"ds:motion-reduce:[mask-image:none]",
|
|
77
|
+
"ds:[.theme-accessible_&]:[mask-image:none]",
|
|
78
|
+
"ds:forced-colors:[mask-image:none]"
|
|
79
|
+
].join(" "), Z = C(
|
|
80
|
+
"ds:flex ds:items-stretch ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
81
|
+
{
|
|
82
|
+
variants: {
|
|
83
|
+
fill: { false: "ds:shrink-0", true: "ds:w-full" }
|
|
84
|
+
},
|
|
85
|
+
defaultVariants: { fill: !1 }
|
|
86
|
+
}
|
|
87
|
+
), R = C(
|
|
88
|
+
"ds:group ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:whitespace-nowrap ds:cursor-pointer ds:appearance-none ds:border-0 ds:bg-transparent ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-regular)] ds:text-[color:var(--foreground)] ds:no-underline ds:hover:bg-[var(--muted)]/20 ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
89
|
+
{
|
|
90
|
+
variants: {
|
|
91
|
+
fill: {
|
|
92
|
+
// Responsive: label under the icon below `sm`, beside it at `sm`+.
|
|
93
|
+
false: "ds:flex-col ds:sm:flex-row ds:sm:gap-[var(--spacing-sm)]",
|
|
94
|
+
// Fill the bar, always icon-over-label. No `min-w-0`, so a tab never
|
|
95
|
+
// shrinks below its label (labels never overlap); if the full set can't
|
|
96
|
+
// fit, the pill scrolls instead.
|
|
97
|
+
true: "ds:flex-1 ds:basis-0 ds:flex-col"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
defaultVariants: { fill: !1 }
|
|
101
|
+
}
|
|
102
|
+
), E = "ds:inline-flex ds:items-center ds:text-[color:var(--accent)] ds:[&>svg]:size-4", ss = "ds:group-aria-[current=page]:underline ds:group-aria-[current=page]:decoration-2 ds:group-aria-[current=page]:decoration-[color:var(--accent)] ds:group-aria-[current=page]:underline-offset-[var(--spacing-xs)]", as = "ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)] ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:cursor-pointer ds:appearance-none ds:border-0 ds:bg-transparent ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-regular)] ds:text-[color:var(--foreground)] ds:hover:bg-[var(--muted)]/20 ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]", T = "ds:absolute ds:top-px ds:bottom-px ds:z-10 ds:flex ds:min-w-[var(--min-target-size)] ds:items-center ds:cursor-pointer ds:appearance-none ds:border-0 ds:bg-transparent ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)] ds:forced-colors:focus-visible:outline-[CanvasText]", rs = "ds:start-px ds:justify-start ds:ps-[var(--spacing-xs)]", es = "ds:end-px ds:justify-end ds:pe-[var(--spacing-xs)]", $ = "ds:size-4 ds:shrink-0 ds:text-[color:var(--accent)] ds:rtl:-scale-x-100", ns = O(
|
|
103
|
+
({
|
|
104
|
+
items: t,
|
|
105
|
+
ariaLabel: c,
|
|
106
|
+
onSelect: d,
|
|
107
|
+
renderLink: p,
|
|
108
|
+
fill: u = !1,
|
|
109
|
+
position: r = "top",
|
|
110
|
+
collapseToMenu: e = !1,
|
|
111
|
+
className: n
|
|
112
|
+
}, o) => {
|
|
113
|
+
const { t: f } = M(), i = W("(max-width: 640px)"), { containerRef: m, contentRef: v, isOverflowing: j } = I(e), w = e && (i || j), {
|
|
114
|
+
ref: A,
|
|
115
|
+
canScrollStart: k,
|
|
116
|
+
canScrollEnd: N,
|
|
117
|
+
scrollByPage: y
|
|
118
|
+
} = J(!w), l = t.find((s) => s.isActive) ?? t[0];
|
|
119
|
+
return /* @__PURE__ */ a(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
ref: o,
|
|
123
|
+
"data-component": "tab-bar",
|
|
124
|
+
className: `${U({ position: r, fill: u })}${n ? ` ${n}` : ""}`,
|
|
125
|
+
children: /* @__PURE__ */ g("div", { className: "ds:relative", children: [
|
|
126
|
+
/* @__PURE__ */ a("div", { ref: m, className: X, children: w ? /* @__PURE__ */ a("nav", { "aria-label": c, className: "ds:w-full", children: /* @__PURE__ */ g(b.Root, { children: [
|
|
127
|
+
/* @__PURE__ */ g(b.Trigger, { className: as, children: [
|
|
128
|
+
l != null && l.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: E, children: l.icon }) : null,
|
|
129
|
+
/* @__PURE__ */ a("span", { className: "ds:flex-1 ds:truncate ds:text-start", children: l == null ? void 0 : l.label }),
|
|
130
|
+
/* @__PURE__ */ a(
|
|
131
|
+
Q,
|
|
132
|
+
{
|
|
133
|
+
"aria-hidden": "true",
|
|
134
|
+
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--muted-foreground)]"
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ a(
|
|
139
|
+
b.Content,
|
|
140
|
+
{
|
|
141
|
+
align: "start",
|
|
142
|
+
className: "ds:min-w-[12rem]",
|
|
143
|
+
children: t.map((s) => /* @__PURE__ */ a(
|
|
144
|
+
b.Item,
|
|
145
|
+
{
|
|
146
|
+
startIcon: s.icon,
|
|
147
|
+
endIcon: s.isActive ? /* @__PURE__ */ a(
|
|
148
|
+
q,
|
|
149
|
+
{
|
|
150
|
+
"aria-hidden": "true",
|
|
151
|
+
className: "ds:text-[color:var(--accent)]"
|
|
152
|
+
}
|
|
153
|
+
) : void 0,
|
|
154
|
+
"aria-current": s.isActive ? "page" : void 0,
|
|
155
|
+
onSelect: () => {
|
|
156
|
+
s.href ? window.location.assign(s.href) : d == null || d(s.id);
|
|
157
|
+
},
|
|
158
|
+
children: s.label
|
|
159
|
+
},
|
|
160
|
+
s.id
|
|
161
|
+
))
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
] }) }) : /* @__PURE__ */ a(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
ref: A,
|
|
168
|
+
"data-fade-start": k ? "true" : void 0,
|
|
169
|
+
"data-fade-end": N ? "true" : void 0,
|
|
170
|
+
className: Y,
|
|
171
|
+
children: /* @__PURE__ */ a(
|
|
172
|
+
"nav",
|
|
173
|
+
{
|
|
174
|
+
ref: v,
|
|
175
|
+
"aria-label": c,
|
|
176
|
+
className: Z({ fill: u }),
|
|
177
|
+
children: t.map((s) => {
|
|
178
|
+
const z = typeof s.badgeCount == "number" && s.badgeCount > 0 ? s.badgeCount : void 0, h = s.isActive ? "page" : void 0, x = /* @__PURE__ */ g(_, { children: [
|
|
179
|
+
s.icon ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: E, children: s.icon }) : null,
|
|
180
|
+
/* @__PURE__ */ g("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
181
|
+
/* @__PURE__ */ a("span", { className: ss, children: s.label }),
|
|
182
|
+
z !== void 0 ? /* @__PURE__ */ a(L, { variant: "neutral", children: K(z) }) : null
|
|
183
|
+
] })
|
|
184
|
+
] });
|
|
185
|
+
if (s.href !== void 0) {
|
|
186
|
+
const B = R({ fill: u });
|
|
187
|
+
return p ? /* @__PURE__ */ a(D, { children: p({
|
|
188
|
+
href: s.href,
|
|
189
|
+
className: B,
|
|
190
|
+
children: x,
|
|
191
|
+
"aria-current": h,
|
|
192
|
+
onClick: s.onClick
|
|
193
|
+
}) }, s.id) : /* @__PURE__ */ a(
|
|
194
|
+
"a",
|
|
195
|
+
{
|
|
196
|
+
href: s.href,
|
|
197
|
+
"aria-current": h,
|
|
198
|
+
className: B,
|
|
199
|
+
...s.onClick ? { onClick: s.onClick } : {},
|
|
200
|
+
children: x
|
|
201
|
+
},
|
|
202
|
+
s.id
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
return /* @__PURE__ */ a(
|
|
206
|
+
"button",
|
|
207
|
+
{
|
|
208
|
+
type: "button",
|
|
209
|
+
"aria-current": h,
|
|
210
|
+
className: R({ fill: u }),
|
|
211
|
+
onClick: () => d == null ? void 0 : d(s.id),
|
|
212
|
+
children: x
|
|
213
|
+
},
|
|
214
|
+
s.id
|
|
215
|
+
);
|
|
216
|
+
})
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
) }),
|
|
221
|
+
k ? /* @__PURE__ */ a(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
type: "button",
|
|
225
|
+
"aria-label": f("navigation.tabBar.scrollBack"),
|
|
226
|
+
onClick: () => y(-1),
|
|
227
|
+
className: `${T} ${rs}`,
|
|
228
|
+
children: /* @__PURE__ */ a(
|
|
229
|
+
G,
|
|
230
|
+
{
|
|
231
|
+
"aria-hidden": "true",
|
|
232
|
+
className: $
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
) : null,
|
|
237
|
+
N ? /* @__PURE__ */ a(
|
|
238
|
+
"button",
|
|
239
|
+
{
|
|
240
|
+
type: "button",
|
|
241
|
+
"aria-label": f("navigation.tabBar.scrollForward"),
|
|
242
|
+
onClick: () => y(1),
|
|
243
|
+
className: `${T} ${es}`,
|
|
244
|
+
children: /* @__PURE__ */ a(
|
|
245
|
+
H,
|
|
246
|
+
{
|
|
247
|
+
"aria-hidden": "true",
|
|
248
|
+
className: $
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
}
|
|
252
|
+
) : null
|
|
253
|
+
] })
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
ns.displayName = "TabBar";
|
|
259
|
+
export {
|
|
260
|
+
ns as T
|
|
261
|
+
};
|
|
262
|
+
//# sourceMappingURL=tab-bar-Bv9nGNdO.js.map
|
|
@@ -5,7 +5,7 @@ import * as k from "@radix-ui/react-dropdown-menu";
|
|
|
5
5
|
import { a as N, c as M } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as Y } from "react-i18next";
|
|
7
7
|
import { c as Z } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import { S as D } from "./select-
|
|
8
|
+
import { S as D } from "./select-KsyRr8WH.js";
|
|
9
9
|
import { u as ee } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { X as te } from "./x-CCcI3eJp.js";
|
|
11
11
|
import { u as se } from "./use-direction-Dp8h70PP.js";
|
|
@@ -405,4 +405,4 @@ export {
|
|
|
405
405
|
F as c,
|
|
406
406
|
re as t
|
|
407
407
|
};
|
|
408
|
-
//# sourceMappingURL=tabs-
|
|
408
|
+
//# sourceMappingURL=tabs-CYZVKKDl.js.map
|