@alfadocs/ui-kit 0.72.2 → 0.75.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-DLrcSTK_.js +1546 -0
- package/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DziJCGLe.js} +3 -3
- package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
- package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
- package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
- package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
- package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
- package/dist/_chunks/{columns-2-8lq4-b8e.js → arrow-up-right-C2v_MKsK.js} +5 -5
- package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-Cc3KuL9y.js} +4 -4
- package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
- package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-DDW5-gb9.js} +3 -3
- package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
- package/dist/_chunks/{booking-B62CMY5k.js → booking-B1Qkcl3c.js} +9 -9
- package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
- package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
- package/dist/_chunks/camera-VSklPDCv.js +21 -0
- package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-BrwhyIJI.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-DWEdCQM3.js} +3 -3
- package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
- package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
- package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
- package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
- package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
- package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
- package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
- package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
- package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
- package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
- package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
- package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
- package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
- package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
- package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
- package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
- package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
- package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-B6h1Ir56.js} +198 -230
- package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
- package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
- package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
- package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
- package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
- package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
- package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
- package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
- package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
- package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
- package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DHG6gEKS.js} +5 -5
- package/dist/_chunks/file-Cwe9VC1A.js +40 -0
- package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
- package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-DENvuhfs.js} +101 -139
- package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
- package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
- package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
- package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-BpYw-WF-.js} +7 -7
- package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
- package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
- package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-4cwQzeFc.js} +4 -4
- package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
- package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
- package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-CM9ubkew.js} +3 -3
- package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
- package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
- package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
- package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
- package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
- package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
- package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
- package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-GNF3lo8K.js} +3 -3
- package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-D_1tF4La.js} +6 -6
- package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
- package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
- package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
- package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
- package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-Cvdp818a.js} +3 -3
- package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
- package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
- package/dist/_chunks/optical-prescription-BEjYQjiO.js +1260 -0
- package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-DP4wKyq4.js} +7 -7
- package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
- package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-D6kgdTNn.js} +4 -4
- package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-DweKjiXg.js} +122 -118
- package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
- package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
- package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
- package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
- package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
- package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
- package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
- package/dist/_chunks/{popover-uJ6BvEU3.js → popover-Cc0a69sw.js} +32 -29
- package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-msMl_6wz.js} +7 -7
- package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
- package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
- package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
- package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
- package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
- package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-CxF9pVxd.js} +40 -57
- package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
- package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CCWjNkbx.js} +26 -26
- package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
- package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
- package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
- package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
- package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
- package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-C0PbwJBc.js} +375 -335
- package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
- package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
- package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
- package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
- package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
- package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
- package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
- package/dist/_chunks/subDays-DIKRViZm.js +8 -0
- package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
- package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
- package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
- package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-CjGAhIN8.js} +6 -6
- package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
- package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
- package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
- package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
- package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
- package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
- package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
- package/dist/_chunks/type-ggmfVs23.js +16 -0
- package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-CSLWFDQh.js} +3 -3
- package/dist/_chunks/upload-BfT2hzMg.js +16 -0
- package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
- package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
- package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
- package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
- package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
- package/dist/agent-catalog.json +4081 -3201
- package/dist/agent-i18n/en.json +121 -69
- package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
- package/dist/components/_shared/entity-card/entity-card.d.ts +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/anamnesis-card/anamnesis-card.d.ts +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/benefit-card/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/button.d.ts +8 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/button-group.d.ts +16 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/card/card.d.ts +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/chat-container/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/clinical-note-card/clinical-note-card.d.ts +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -8
- package/dist/components/data-table/index.js +35 -34
- package/dist/components/data-table/toolbar.d.ts +5 -11
- package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
- package/dist/components/data-table-tabs/index.d.ts +5 -0
- package/dist/components/data-table-tabs/index.js +8 -0
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
- package/dist/components/document-preview/document-preview.d.ts +41 -0
- package/dist/components/document-preview/index.d.ts +4 -0
- package/dist/components/document-preview/index.js +6 -0
- 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/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
- package/dist/components/face-scheme/face-scheme.d.ts +112 -2
- package/dist/components/face-scheme/index.d.ts +2 -2
- package/dist/components/face-scheme/index.js +25 -14
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/dialogs.d.ts +48 -0
- package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
- package/dist/components/file-manager/file-manager.d.ts +82 -0
- package/dist/components/file-manager/folder-tree.d.ts +12 -0
- package/dist/components/file-manager/index.d.ts +5 -0
- package/dist/components/file-manager/index.js +6 -0
- package/dist/components/file-manager/list-view.d.ts +49 -0
- package/dist/components/file-manager/toolbar.d.ts +15 -0
- package/dist/components/file-manager/types.d.ts +167 -0
- package/dist/components/file-manager/utils.d.ts +34 -0
- package/dist/components/file-upload/file-upload.d.ts +1 -0
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +4 -3
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/flag/flag.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/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +7 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +1 -1
- package/dist/components/optical-prescription/index.d.ts +4 -2
- package/dist/components/optical-prescription/index.js +29 -26
- package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
- package/dist/components/optical-prescription/optical-prescription.d.ts +9 -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 +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-card/payment-card.d.ts +1 -1
- package/dist/components/payment-card/payment-request-card.d.ts +1 -1
- package/dist/components/periodontal-chart/index.d.ts +6 -0
- package/dist/components/periodontal-chart/index.js +22 -0
- package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
- package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
- package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
- package/dist/components/periodontal-diagnosis/index.js +13 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
- package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
- package/dist/components/periodontal-risk-chart/index.js +9 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -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/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +9 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +7 -0
- package/dist/components/skeleton-scheme/index.js +1186 -0
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +29 -28
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +40 -35
- package/dist/hooks/use-priority-overflow.d.ts +63 -0
- package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
- package/dist/i18n/locales/ar.d.ts +490 -9
- package/dist/i18n/locales/ar.js +493 -12
- package/dist/i18n/locales/de.d.ts +490 -9
- package/dist/i18n/locales/de.js +493 -12
- package/dist/i18n/locales/el.d.ts +490 -9
- package/dist/i18n/locales/el.js +493 -12
- package/dist/i18n/locales/en.d.ts +490 -9
- package/dist/i18n/locales/en.js +493 -12
- package/dist/i18n/locales/es.d.ts +490 -9
- package/dist/i18n/locales/es.js +493 -12
- package/dist/i18n/locales/fr.d.ts +490 -9
- package/dist/i18n/locales/fr.js +493 -12
- package/dist/i18n/locales/hi.d.ts +490 -9
- package/dist/i18n/locales/hi.js +493 -12
- package/dist/i18n/locales/it.d.ts +490 -9
- package/dist/i18n/locales/it.js +493 -12
- package/dist/i18n/locales/ja.d.ts +490 -9
- package/dist/i18n/locales/ja.js +493 -12
- package/dist/i18n/locales/nl.d.ts +490 -9
- package/dist/i18n/locales/nl.js +493 -12
- package/dist/i18n/locales/pl.d.ts +490 -9
- package/dist/i18n/locales/pl.js +493 -12
- package/dist/i18n/locales/pt.d.ts +490 -9
- package/dist/i18n/locales/pt.js +493 -12
- package/dist/i18n/locales/ro.d.ts +490 -9
- package/dist/i18n/locales/ro.js +493 -12
- package/dist/i18n/locales/ru.d.ts +490 -9
- package/dist/i18n/locales/ru.js +493 -12
- package/dist/i18n/locales/sq.d.ts +490 -9
- package/dist/i18n/locales/sq.js +493 -12
- package/dist/i18n/locales/sv.d.ts +490 -9
- package/dist/i18n/locales/sv.js +493 -12
- package/dist/i18n/locales/tr.d.ts +490 -9
- package/dist/i18n/locales/tr.js +493 -12
- package/dist/i18n/locales/zh.d.ts +490 -9
- package/dist/i18n/locales/zh.js +493 -12
- package/dist/index.js +872 -809
- package/dist/locales/ar.json +493 -12
- package/dist/locales/de.json +493 -12
- package/dist/locales/el.json +493 -12
- package/dist/locales/en.json +493 -12
- package/dist/locales/es.json +493 -12
- package/dist/locales/fr.json +493 -12
- package/dist/locales/hi.json +493 -12
- package/dist/locales/it.json +493 -12
- package/dist/locales/ja.json +493 -12
- package/dist/locales/nl.json +493 -12
- package/dist/locales/pl.json +493 -12
- package/dist/locales/pt.json +493 -12
- package/dist/locales/ro.json +493 -12
- package/dist/locales/ru.json +493 -12
- package/dist/locales/sq.json +493 -12
- package/dist/locales/sv.json +493 -12
- package/dist/locales/tr.json +493 -12
- package/dist/locales/zh.json +493 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
- package/dist/patterns/signature-request/index.d.ts +3 -0
- package/dist/patterns/signature-request/index.js +5 -0
- package/dist/patterns/signature-request/signature-request.d.ts +81 -0
- package/dist/tokens.css +2 -2
- package/package.json +32 -4
- package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
- package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
- package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
- package/dist/_chunks/link-cell-renderer-BCppbMec.js +0 -2185
- package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
- package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
- package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
- package/dist/_chunks/tooth-scheme-D_rso4uu.js +0 -2133
- package/dist/patterns/patient-shell/index.d.ts +0 -12
- package/dist/patterns/patient-shell/index.js +0 -5
- package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { jsx as s, jsxs as u, Fragment as
|
|
2
|
-
import { forwardRef as b, useState as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import { jsx as s, jsxs as u, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as B, useEffect as L, useCallback as ss, useRef as G, useMemo as $, useId as ns, useContext as q, createContext as Z } from "react";
|
|
3
|
+
import * as R from "@radix-ui/react-dialog";
|
|
4
|
+
import * as K from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as E from "@radix-ui/react-accordion";
|
|
6
6
|
import * as h from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
8
|
-
import { S as
|
|
7
|
+
import { a as os } from "./accordion-C11v9ouP.js";
|
|
8
|
+
import { S as ts } from "./scroll-area-BZOvUhwQ.js";
|
|
9
9
|
import { Slot as ls } from "@radix-ui/react-slot";
|
|
10
|
-
import { c as
|
|
11
|
-
import { useTranslation as
|
|
10
|
+
import { c as T } from "./index-D2ZczOXr.js";
|
|
11
|
+
import { useTranslation as A } from "react-i18next";
|
|
12
12
|
import { u as cs } from "./registry-DvAUVLHh.js";
|
|
13
13
|
import { u as us } from "./use-edge-resize-ZnGG7gyO.js";
|
|
14
14
|
import { c as ms } from "./compose-refs-C0k0tdqF.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { a as vs, b as ps, d as fs } from "./input-surface-xyERuLU_.js";
|
|
16
|
+
import { X as gs } from "./x-B5YnXwCz.js";
|
|
17
|
+
import { c as W } from "./createLucideIcon-DhHxpK9K.js";
|
|
18
|
+
import { G as bs } from "./grip-vertical-onSb1JXO.js";
|
|
18
19
|
import { C as H } from "./chevron-right-I9AeSxH2.js";
|
|
19
|
-
import { S as
|
|
20
|
+
import { S as hs } from "./star-Bf9L2Uot.js";
|
|
20
21
|
/**
|
|
21
22
|
* @license lucide-react v1.22.0 - ISC
|
|
22
23
|
*
|
|
23
24
|
* This source code is licensed under the ISC license.
|
|
24
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
26
|
*/
|
|
26
|
-
const
|
|
27
|
+
const xs = [
|
|
27
28
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
28
29
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
29
30
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
30
|
-
],
|
|
31
|
+
], ys = W("panel-left-close", xs);
|
|
31
32
|
/**
|
|
32
33
|
* @license lucide-react v1.22.0 - ISC
|
|
33
34
|
*
|
|
34
35
|
* This source code is licensed under the ISC license.
|
|
35
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
37
|
*/
|
|
37
|
-
const
|
|
38
|
+
const Ns = [
|
|
38
39
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
39
40
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
40
41
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
41
|
-
],
|
|
42
|
+
], ws = W("panel-left-open", Ns);
|
|
42
43
|
/**
|
|
43
44
|
* @license lucide-react v1.22.0 - ISC
|
|
44
45
|
*
|
|
45
46
|
* This source code is licensed under the ISC license.
|
|
46
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
48
|
*/
|
|
48
|
-
const
|
|
49
|
+
const zs = [
|
|
49
50
|
["path", { d: "M16 7h6v6", key: "box55l" }],
|
|
50
51
|
["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
|
|
51
|
-
],
|
|
52
|
+
], Ss = W("trending-up", zs), js = {
|
|
52
53
|
id: "sidebar",
|
|
53
54
|
capabilities: ["expand"],
|
|
54
55
|
state: {
|
|
@@ -83,11 +84,11 @@ const ys = [
|
|
|
83
84
|
description: "Each Sidebar.Item emits its `navId` prop as data-nav-id. Agents activate a nav item via native click on the matching anchor."
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
+
}, O = Z({
|
|
87
88
|
mode: "expanded",
|
|
88
89
|
density: "default"
|
|
89
|
-
}), x = () =>
|
|
90
|
-
function
|
|
90
|
+
}), x = () => q(O), es = "ui.sidebar.state";
|
|
91
|
+
function Cs(e) {
|
|
91
92
|
if (typeof window > "u") return e;
|
|
92
93
|
try {
|
|
93
94
|
const a = window.localStorage.getItem(es);
|
|
@@ -96,14 +97,14 @@ function zs(e) {
|
|
|
96
97
|
}
|
|
97
98
|
return e;
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function ks(e) {
|
|
100
101
|
if (!(typeof window > "u"))
|
|
101
102
|
try {
|
|
102
103
|
window.localStorage.setItem(es, e);
|
|
103
104
|
} catch {
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
|
-
const J =
|
|
107
|
+
const J = T(
|
|
107
108
|
[
|
|
108
109
|
"ds:flex ds:flex-col",
|
|
109
110
|
// Sidebar sits at the page background in light mode (white-on-white
|
|
@@ -149,7 +150,7 @@ const J = I(
|
|
|
149
150
|
},
|
|
150
151
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
151
152
|
}
|
|
152
|
-
),
|
|
153
|
+
), Ts = 192, Is = 384, Rs = 248, Bs = [
|
|
153
154
|
"ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
|
|
154
155
|
"ds:w-[var(--resizable-handle-size)]",
|
|
155
156
|
"ds:cursor-col-resize ds:select-none ds:touch-none",
|
|
@@ -163,37 +164,37 @@ const J = I(
|
|
|
163
164
|
"ds:before:[inset-block:0]",
|
|
164
165
|
"ds:before:[inline-size:var(--min-target-size)]",
|
|
165
166
|
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
166
|
-
].join(" "),
|
|
167
|
+
].join(" "), As = b(
|
|
167
168
|
({
|
|
168
169
|
state: e,
|
|
169
170
|
defaultState: a = "expanded",
|
|
170
171
|
onStateChange: r,
|
|
171
|
-
density:
|
|
172
|
-
open:
|
|
173
|
-
onOpenChange:
|
|
174
|
-
resizable:
|
|
175
|
-
"aria-label":
|
|
176
|
-
className:
|
|
172
|
+
density: i = "default",
|
|
173
|
+
open: n,
|
|
174
|
+
onOpenChange: c,
|
|
175
|
+
resizable: o = !1,
|
|
176
|
+
"aria-label": t,
|
|
177
|
+
className: l,
|
|
177
178
|
children: p,
|
|
178
179
|
id: f,
|
|
179
180
|
...g
|
|
180
|
-
},
|
|
181
|
-
const { t: y } =
|
|
182
|
-
() =>
|
|
183
|
-
), m =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}, [
|
|
181
|
+
}, w) => {
|
|
182
|
+
const { t: y } = A(), d = e !== void 0, [N, z] = B(
|
|
183
|
+
() => d ? e : Cs(a)
|
|
184
|
+
), m = d ? e : N;
|
|
185
|
+
L(() => {
|
|
186
|
+
d || ks(N);
|
|
187
|
+
}, [N, d]);
|
|
187
188
|
const S = ss(
|
|
188
189
|
(k) => {
|
|
189
|
-
|
|
190
|
+
d || z(k), r == null || r(k);
|
|
190
191
|
},
|
|
191
|
-
[
|
|
192
|
-
), j =
|
|
193
|
-
|
|
192
|
+
[d, r]
|
|
193
|
+
), j = t ?? y("navigation.sidebar.label"), C = G(m);
|
|
194
|
+
L(() => {
|
|
194
195
|
C.current = m;
|
|
195
196
|
}, [m]);
|
|
196
|
-
const F =
|
|
197
|
+
const F = $(
|
|
197
198
|
() => ({
|
|
198
199
|
getIsCollapsed: () => C.current !== "expanded",
|
|
199
200
|
toggleCollapsed: () => {
|
|
@@ -203,23 +204,23 @@ const J = I(
|
|
|
203
204
|
}),
|
|
204
205
|
[S]
|
|
205
206
|
);
|
|
206
|
-
cs(
|
|
207
|
-
const
|
|
207
|
+
cs(js, F, f);
|
|
208
|
+
const D = G(null), _ = $(() => ms(w, D), [w]), { separatorProps: U, isResizing: P } = us({
|
|
208
209
|
edge: "inline-end",
|
|
209
|
-
targetRef:
|
|
210
|
+
targetRef: D,
|
|
210
211
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
211
|
-
minSize:
|
|
212
|
-
maxSize:
|
|
213
|
-
defaultSize:
|
|
214
|
-
disabled: !
|
|
215
|
-
}),
|
|
212
|
+
minSize: Ts,
|
|
213
|
+
maxSize: Is,
|
|
214
|
+
defaultSize: Rs,
|
|
215
|
+
disabled: !o || m !== "expanded"
|
|
216
|
+
}), M = o && m === "expanded";
|
|
216
217
|
return m === "overlay" ? /* @__PURE__ */ s(
|
|
217
|
-
|
|
218
|
+
O.Provider,
|
|
218
219
|
{
|
|
219
|
-
value: { mode: "overlay", density:
|
|
220
|
-
children: /* @__PURE__ */ s(
|
|
220
|
+
value: { mode: "overlay", density: i, transitionTo: S },
|
|
221
|
+
children: /* @__PURE__ */ s(R.Root, { open: n, onOpenChange: c, children: /* @__PURE__ */ u(R.Portal, { children: [
|
|
221
222
|
/* @__PURE__ */ s(
|
|
222
|
-
|
|
223
|
+
R.Overlay,
|
|
223
224
|
{
|
|
224
225
|
className: [
|
|
225
226
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -231,27 +232,30 @@ const J = I(
|
|
|
231
232
|
}
|
|
232
233
|
),
|
|
233
234
|
/* @__PURE__ */ u(
|
|
234
|
-
|
|
235
|
+
R.Content,
|
|
235
236
|
{
|
|
236
237
|
"aria-label": j,
|
|
237
238
|
className: [
|
|
238
239
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
239
|
-
|
|
240
|
+
// `start-0`/`top-0` — the `inset-inline-start-0` /
|
|
241
|
+
// `inset-block-start-0` spellings are not Tailwind
|
|
242
|
+
// utilities and compiled to nothing.
|
|
243
|
+
"ds:start-0 ds:top-0",
|
|
240
244
|
"ds:h-dvh",
|
|
241
|
-
J({ mode: "overlay", density:
|
|
245
|
+
J({ mode: "overlay", density: i }),
|
|
242
246
|
"ds:shadow-[var(--shadow-xl)]",
|
|
243
247
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
244
248
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
245
249
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
246
250
|
"ds:motion-reduce:animate-none",
|
|
247
251
|
"ds:focus:outline-none",
|
|
248
|
-
|
|
252
|
+
l ?? ""
|
|
249
253
|
].filter(Boolean).join(" "),
|
|
250
254
|
children: [
|
|
251
255
|
/* @__PURE__ */ s(
|
|
252
256
|
"nav",
|
|
253
257
|
{
|
|
254
|
-
ref:
|
|
258
|
+
ref: _,
|
|
255
259
|
id: f,
|
|
256
260
|
"aria-label": j,
|
|
257
261
|
"data-component": "sidebar",
|
|
@@ -261,7 +265,7 @@ const J = I(
|
|
|
261
265
|
children: p
|
|
262
266
|
}
|
|
263
267
|
),
|
|
264
|
-
/* @__PURE__ */ s(
|
|
268
|
+
/* @__PURE__ */ s(R.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
265
269
|
"button",
|
|
266
270
|
{
|
|
267
271
|
type: "button",
|
|
@@ -275,7 +279,7 @@ const J = I(
|
|
|
275
279
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
276
280
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
277
281
|
].join(" "),
|
|
278
|
-
children: /* @__PURE__ */ s(
|
|
282
|
+
children: /* @__PURE__ */ s(gs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
279
283
|
}
|
|
280
284
|
) })
|
|
281
285
|
]
|
|
@@ -284,35 +288,35 @@ const J = I(
|
|
|
284
288
|
] }) })
|
|
285
289
|
}
|
|
286
290
|
) : /* @__PURE__ */ s(
|
|
287
|
-
|
|
291
|
+
O.Provider,
|
|
288
292
|
{
|
|
289
|
-
value: { mode: m, density:
|
|
293
|
+
value: { mode: m, density: i, transitionTo: S },
|
|
290
294
|
children: /* @__PURE__ */ s(h.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
|
|
291
295
|
"nav",
|
|
292
296
|
{
|
|
293
|
-
ref:
|
|
297
|
+
ref: _,
|
|
294
298
|
id: f,
|
|
295
299
|
"aria-label": j,
|
|
296
300
|
"data-component": "sidebar",
|
|
297
301
|
"data-component-id": f,
|
|
298
302
|
"data-mode": m,
|
|
299
|
-
"data-density":
|
|
300
|
-
"data-resizing":
|
|
303
|
+
"data-density": i,
|
|
304
|
+
"data-resizing": P ? "" : void 0,
|
|
301
305
|
className: [
|
|
302
|
-
J({ mode: m, density:
|
|
303
|
-
|
|
304
|
-
|
|
306
|
+
J({ mode: m, density: i }),
|
|
307
|
+
i === "compact" ? "ds:density-compact" : "",
|
|
308
|
+
l ?? ""
|
|
305
309
|
].filter(Boolean).join(" "),
|
|
306
310
|
...g,
|
|
307
311
|
children: [
|
|
308
312
|
p,
|
|
309
|
-
|
|
313
|
+
M ? /* @__PURE__ */ s(
|
|
310
314
|
"div",
|
|
311
315
|
{
|
|
312
|
-
...
|
|
316
|
+
...U,
|
|
313
317
|
"aria-label": y("navigation.sidebar.resize"),
|
|
314
|
-
"data-resizing":
|
|
315
|
-
className:
|
|
318
|
+
"data-resizing": P ? "" : void 0,
|
|
319
|
+
className: Bs
|
|
316
320
|
}
|
|
317
321
|
) : null
|
|
318
322
|
]
|
|
@@ -322,9 +326,9 @@ const J = I(
|
|
|
322
326
|
);
|
|
323
327
|
}
|
|
324
328
|
);
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
const { mode:
|
|
329
|
+
As.displayName = "Sidebar";
|
|
330
|
+
const Ds = b(({ className: e, ...a }, r) => {
|
|
331
|
+
const { mode: i } = x();
|
|
328
332
|
return /* @__PURE__ */ s(
|
|
329
333
|
"div",
|
|
330
334
|
{
|
|
@@ -334,7 +338,7 @@ const Bs = b(({ className: e, ...a }, r) => {
|
|
|
334
338
|
"ds:min-h-[var(--min-target-size)]",
|
|
335
339
|
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
336
340
|
// control fits centred inside the header.
|
|
337
|
-
|
|
341
|
+
i === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
338
342
|
"ds:py-[var(--spacing-sm)]",
|
|
339
343
|
// Hairline border + downward chrome shadow cast the header as a
|
|
340
344
|
// sticky top band above the scrolling body.
|
|
@@ -346,9 +350,9 @@ const Bs = b(({ className: e, ...a }, r) => {
|
|
|
346
350
|
}
|
|
347
351
|
);
|
|
348
352
|
});
|
|
349
|
-
|
|
350
|
-
const
|
|
351
|
-
({ className: e, children: a, ...r },
|
|
353
|
+
Ds.displayName = "SidebarHeader";
|
|
354
|
+
const _s = b(
|
|
355
|
+
({ className: e, children: a, ...r }, i) => (
|
|
352
356
|
// Scroll the nav sections through the kit `ScrollArea` (8px tokenised
|
|
353
357
|
// scrollbar) instead of native `overflow-auto` (the OS scrollbar), so the
|
|
354
358
|
// sidebar matches the Control Room rail and the kit's trays. `flex-1 min-h-0`
|
|
@@ -356,14 +360,14 @@ const Rs = b(
|
|
|
356
360
|
// body box (the ScrollArea root). Padding + `ref` + div props go on the inner
|
|
357
361
|
// content div so the scrollbar sits flush at the inline-end edge.
|
|
358
362
|
/* @__PURE__ */ s(
|
|
359
|
-
|
|
363
|
+
ts,
|
|
360
364
|
{
|
|
361
365
|
orientation: "vertical",
|
|
362
366
|
className: ["ds:flex-1 ds:min-h-0", e ?? ""].filter(Boolean).join(" "),
|
|
363
367
|
children: /* @__PURE__ */ s(
|
|
364
368
|
"div",
|
|
365
369
|
{
|
|
366
|
-
ref:
|
|
370
|
+
ref: i,
|
|
367
371
|
className: "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:py-[var(--spacing-sm)]",
|
|
368
372
|
...r,
|
|
369
373
|
children: a
|
|
@@ -373,9 +377,9 @@ const Rs = b(
|
|
|
373
377
|
)
|
|
374
378
|
)
|
|
375
379
|
);
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
const { mode:
|
|
380
|
+
_s.displayName = "SidebarBody";
|
|
381
|
+
const Ps = b(({ className: e, ...a }, r) => {
|
|
382
|
+
const { mode: i } = x();
|
|
379
383
|
return /* @__PURE__ */ s(
|
|
380
384
|
"div",
|
|
381
385
|
{
|
|
@@ -384,7 +388,7 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
384
388
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
385
389
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
386
390
|
// so switch to a vertical stack and let each row self-centre.
|
|
387
|
-
|
|
391
|
+
i === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
388
392
|
"ds:min-h-[var(--min-target-size)]",
|
|
389
393
|
"ds:py-[var(--spacing-sm)]",
|
|
390
394
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -397,8 +401,8 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
397
401
|
}
|
|
398
402
|
);
|
|
399
403
|
});
|
|
400
|
-
|
|
401
|
-
const
|
|
404
|
+
Ps.displayName = "SidebarFooter";
|
|
405
|
+
const Es = [
|
|
402
406
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
403
407
|
"type-eyebrow",
|
|
404
408
|
"ds:text-[var(--muted-foreground)]",
|
|
@@ -418,21 +422,21 @@ const As = [
|
|
|
418
422
|
label: e,
|
|
419
423
|
icon: a,
|
|
420
424
|
collapsible: r = !0,
|
|
421
|
-
defaultOpen:
|
|
422
|
-
open:
|
|
423
|
-
onOpenChange:
|
|
424
|
-
className:
|
|
425
|
-
children:
|
|
426
|
-
...
|
|
425
|
+
defaultOpen: i = !0,
|
|
426
|
+
open: n,
|
|
427
|
+
onOpenChange: c,
|
|
428
|
+
className: o,
|
|
429
|
+
children: t,
|
|
430
|
+
...l
|
|
427
431
|
}, p) => {
|
|
428
|
-
const { mode: f } = x(), g = f === "icon",
|
|
432
|
+
const { mode: f } = x(), g = f === "icon", w = r && !g && !!e, y = [
|
|
429
433
|
"ds:flex ds:flex-col",
|
|
430
434
|
"ds:gap-[var(--spacing-xs)]",
|
|
431
435
|
"ds:mt-[var(--spacing-sm)]",
|
|
432
|
-
|
|
436
|
+
o ?? ""
|
|
433
437
|
].filter(Boolean).join(" ");
|
|
434
|
-
if (!
|
|
435
|
-
return /* @__PURE__ */ u("div", { ref: p, className: y, ...
|
|
438
|
+
if (!w)
|
|
439
|
+
return /* @__PURE__ */ u("div", { ref: p, className: y, ...l, children: [
|
|
436
440
|
!!e || !!a ? /* @__PURE__ */ u(
|
|
437
441
|
"span",
|
|
438
442
|
{
|
|
@@ -450,20 +454,20 @@ const As = [
|
|
|
450
454
|
]
|
|
451
455
|
}
|
|
452
456
|
) : null,
|
|
453
|
-
|
|
457
|
+
t
|
|
454
458
|
] });
|
|
455
|
-
const
|
|
459
|
+
const d = "section";
|
|
456
460
|
return /* @__PURE__ */ s(
|
|
457
461
|
E.Root,
|
|
458
462
|
{
|
|
459
463
|
type: "single",
|
|
460
464
|
collapsible: !0,
|
|
461
|
-
defaultValue:
|
|
462
|
-
value:
|
|
463
|
-
onValueChange:
|
|
465
|
+
defaultValue: n === void 0 && i ? d : void 0,
|
|
466
|
+
value: n === void 0 ? void 0 : n ? d : "",
|
|
467
|
+
onValueChange: c ? (N) => c(N === d) : void 0,
|
|
464
468
|
asChild: !0,
|
|
465
|
-
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...
|
|
466
|
-
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className:
|
|
469
|
+
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...l, children: /* @__PURE__ */ u(E.Item, { value: d, children: [
|
|
470
|
+
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Es, children: [
|
|
467
471
|
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
468
472
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
469
473
|
/* @__PURE__ */ s(
|
|
@@ -475,11 +479,11 @@ const As = [
|
|
|
475
479
|
)
|
|
476
480
|
] }) }),
|
|
477
481
|
/* @__PURE__ */ s(
|
|
478
|
-
|
|
482
|
+
os,
|
|
479
483
|
{
|
|
480
484
|
"aria-label": e,
|
|
481
485
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
482
|
-
children:
|
|
486
|
+
children: t
|
|
483
487
|
}
|
|
484
488
|
)
|
|
485
489
|
] }) })
|
|
@@ -488,7 +492,7 @@ const As = [
|
|
|
488
492
|
}
|
|
489
493
|
);
|
|
490
494
|
as.displayName = "SidebarSection";
|
|
491
|
-
const
|
|
495
|
+
const Hs = [
|
|
492
496
|
"ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
493
497
|
"ds:min-h-[var(--min-target-size)]",
|
|
494
498
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -499,29 +503,29 @@ const Ps = [
|
|
|
499
503
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
500
504
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
501
505
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
502
|
-
].join(" "),
|
|
506
|
+
].join(" "), Fs = b(
|
|
503
507
|
({
|
|
504
508
|
label: e,
|
|
505
509
|
icon: a,
|
|
506
510
|
children: r,
|
|
507
|
-
className:
|
|
508
|
-
defaultOpen:
|
|
509
|
-
open:
|
|
510
|
-
onOpenChange:
|
|
511
|
-
...
|
|
512
|
-
},
|
|
511
|
+
className: i,
|
|
512
|
+
defaultOpen: n,
|
|
513
|
+
open: c,
|
|
514
|
+
onOpenChange: o,
|
|
515
|
+
...t
|
|
516
|
+
}, l) => {
|
|
513
517
|
const { mode: p } = x();
|
|
514
518
|
return /* @__PURE__ */ u(
|
|
515
|
-
|
|
519
|
+
K.Root,
|
|
516
520
|
{
|
|
517
|
-
ref:
|
|
518
|
-
defaultOpen:
|
|
519
|
-
open:
|
|
520
|
-
onOpenChange:
|
|
521
|
-
className:
|
|
522
|
-
...
|
|
521
|
+
ref: l,
|
|
522
|
+
defaultOpen: n,
|
|
523
|
+
open: c,
|
|
524
|
+
onOpenChange: o,
|
|
525
|
+
className: i,
|
|
526
|
+
...t,
|
|
523
527
|
children: [
|
|
524
|
-
/* @__PURE__ */ u(
|
|
528
|
+
/* @__PURE__ */ u(K.Trigger, { className: Hs, children: [
|
|
525
529
|
a ? /* @__PURE__ */ s(
|
|
526
530
|
"span",
|
|
527
531
|
{
|
|
@@ -549,7 +553,7 @@ const Ps = [
|
|
|
549
553
|
) : null
|
|
550
554
|
] }),
|
|
551
555
|
/* @__PURE__ */ s(
|
|
552
|
-
|
|
556
|
+
K.Content,
|
|
553
557
|
{
|
|
554
558
|
className: [
|
|
555
559
|
"ds:overflow-hidden",
|
|
@@ -565,8 +569,8 @@ const Ps = [
|
|
|
565
569
|
);
|
|
566
570
|
}
|
|
567
571
|
);
|
|
568
|
-
|
|
569
|
-
const
|
|
572
|
+
Fs.displayName = "SidebarGroup";
|
|
573
|
+
const Us = T(
|
|
570
574
|
[
|
|
571
575
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
572
576
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -627,55 +631,55 @@ const Es = I(
|
|
|
627
631
|
isActive: !1
|
|
628
632
|
}
|
|
629
633
|
}
|
|
630
|
-
), rs =
|
|
634
|
+
), rs = Z(null), ds = b(
|
|
631
635
|
({
|
|
632
636
|
asChild: e = !1,
|
|
633
637
|
isActive: a = !1,
|
|
634
638
|
navId: r,
|
|
635
|
-
isPinned:
|
|
636
|
-
onPinChange:
|
|
637
|
-
pinLabel:
|
|
638
|
-
className:
|
|
639
|
-
children:
|
|
640
|
-
"aria-label":
|
|
639
|
+
isPinned: i = !1,
|
|
640
|
+
onPinChange: n,
|
|
641
|
+
pinLabel: c,
|
|
642
|
+
className: o,
|
|
643
|
+
children: t,
|
|
644
|
+
"aria-label": l,
|
|
641
645
|
...p
|
|
642
646
|
}, f) => {
|
|
643
|
-
const { mode: g, density:
|
|
647
|
+
const { mode: g, density: w } = x(), y = e ? ls : "a", d = n !== void 0 && g !== "icon", [N, z] = B(null), m = g === "icon" && l != null && N ? `${l}, ${N}` : l, S = /* @__PURE__ */ s(
|
|
644
648
|
y,
|
|
645
649
|
{
|
|
646
650
|
ref: f,
|
|
647
651
|
"aria-current": a ? "page" : void 0,
|
|
648
652
|
"aria-label": m,
|
|
649
653
|
"data-nav-id": r,
|
|
650
|
-
className:
|
|
654
|
+
className: Us({
|
|
651
655
|
mode: g,
|
|
652
|
-
density:
|
|
656
|
+
density: w,
|
|
653
657
|
isActive: a,
|
|
654
|
-
className:
|
|
658
|
+
className: d ? "ds:flex-1 ds:min-w-0" : o
|
|
655
659
|
}),
|
|
656
660
|
...p,
|
|
657
|
-
children:
|
|
661
|
+
children: t
|
|
658
662
|
}
|
|
659
|
-
), j =
|
|
663
|
+
), j = d ? /* @__PURE__ */ u(
|
|
660
664
|
"div",
|
|
661
665
|
{
|
|
662
666
|
className: [
|
|
663
667
|
"ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
664
|
-
|
|
668
|
+
o ?? ""
|
|
665
669
|
].filter(Boolean).join(" "),
|
|
666
670
|
children: [
|
|
667
671
|
S,
|
|
668
672
|
/* @__PURE__ */ s(
|
|
669
673
|
Y,
|
|
670
674
|
{
|
|
671
|
-
isPinned:
|
|
672
|
-
label:
|
|
673
|
-
onPinChange:
|
|
675
|
+
isPinned: i,
|
|
676
|
+
label: c ?? l ?? "",
|
|
677
|
+
onPinChange: n
|
|
674
678
|
}
|
|
675
679
|
)
|
|
676
680
|
]
|
|
677
681
|
}
|
|
678
|
-
) : S, C = g === "icon" &&
|
|
682
|
+
) : S, C = g === "icon" && l ? /* @__PURE__ */ u(h.Root, { children: [
|
|
679
683
|
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: j }),
|
|
680
684
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
681
685
|
h.Content,
|
|
@@ -690,7 +694,7 @@ const Es = I(
|
|
|
690
694
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
691
695
|
].join(" "),
|
|
692
696
|
children: [
|
|
693
|
-
|
|
697
|
+
l,
|
|
694
698
|
/* @__PURE__ */ s(h.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
695
699
|
]
|
|
696
700
|
}
|
|
@@ -699,11 +703,11 @@ const Es = I(
|
|
|
699
703
|
return /* @__PURE__ */ s(rs.Provider, { value: z, children: C });
|
|
700
704
|
}
|
|
701
705
|
);
|
|
702
|
-
|
|
703
|
-
const
|
|
706
|
+
ds.displayName = "SidebarItem";
|
|
707
|
+
const Ms = b(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
704
708
|
"span",
|
|
705
709
|
{
|
|
706
|
-
ref:
|
|
710
|
+
ref: i,
|
|
707
711
|
"aria-hidden": "true",
|
|
708
712
|
className: [
|
|
709
713
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -721,18 +725,18 @@ const Hs = b(({ className: e, children: a, ...r }, n) => /* @__PURE__ */ s(
|
|
|
721
725
|
children: a
|
|
722
726
|
}
|
|
723
727
|
));
|
|
724
|
-
|
|
725
|
-
const
|
|
726
|
-
const { mode:
|
|
728
|
+
Ms.displayName = "SidebarItemIcon";
|
|
729
|
+
const Vs = b(({ className: e, children: a, ...r }, i) => {
|
|
730
|
+
const { mode: n } = x();
|
|
727
731
|
return /* @__PURE__ */ s(
|
|
728
732
|
"span",
|
|
729
733
|
{
|
|
730
|
-
ref:
|
|
734
|
+
ref: i,
|
|
731
735
|
className: [
|
|
732
736
|
"ds:flex-1",
|
|
733
737
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
734
738
|
"ds:text-start",
|
|
735
|
-
|
|
739
|
+
n === "icon" ? "ds:sr-only" : "",
|
|
736
740
|
e ?? ""
|
|
737
741
|
].filter(Boolean).join(" "),
|
|
738
742
|
...r,
|
|
@@ -740,22 +744,22 @@ const Fs = b(({ className: e, children: a, ...r }, n) => {
|
|
|
740
744
|
}
|
|
741
745
|
);
|
|
742
746
|
});
|
|
743
|
-
|
|
744
|
-
const
|
|
745
|
-
const { mode:
|
|
746
|
-
return
|
|
747
|
-
if (!
|
|
748
|
-
const
|
|
749
|
-
return t
|
|
750
|
-
}, [
|
|
747
|
+
Vs.displayName = "SidebarItemLabel";
|
|
748
|
+
const Ks = b(({ className: e, children: a, ...r }, i) => {
|
|
749
|
+
const { mode: n } = x(), c = n === "icon", o = q(rs);
|
|
750
|
+
return L(() => {
|
|
751
|
+
if (!o || !c) return;
|
|
752
|
+
const t = a == null || a === !1 ? null : String(a).trim() || null;
|
|
753
|
+
return o(t), () => o(null);
|
|
754
|
+
}, [o, a, c]), /* @__PURE__ */ s(
|
|
751
755
|
"span",
|
|
752
756
|
{
|
|
753
|
-
ref:
|
|
754
|
-
"aria-hidden":
|
|
757
|
+
ref: i,
|
|
758
|
+
"aria-hidden": c ? "true" : void 0,
|
|
755
759
|
className: [
|
|
756
760
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
757
761
|
"ds:font-[var(--font-weight-semibold)]",
|
|
758
|
-
|
|
762
|
+
c ? [
|
|
759
763
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
760
764
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
761
765
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -776,55 +780,91 @@ const Ms = b(({ className: e, children: a, ...r }, n) => {
|
|
|
776
780
|
}
|
|
777
781
|
);
|
|
778
782
|
});
|
|
779
|
-
|
|
780
|
-
const
|
|
783
|
+
Ks.displayName = "SidebarItemBadge";
|
|
784
|
+
const Ls = T(
|
|
781
785
|
[
|
|
782
|
-
"ds:flex ds:items-center
|
|
783
|
-
"ds:
|
|
784
|
-
"ds:
|
|
785
|
-
"ds:rounded-[var(--radius-md)]",
|
|
786
|
-
"ds:text-[var(--foreground)] ds:text-[length:var(--font-size-sm)]",
|
|
787
|
-
"ds:hover:bg-[var(--muted)]/20",
|
|
786
|
+
"ds:flex ds:items-center",
|
|
787
|
+
"ds:text-[var(--foreground)]",
|
|
788
|
+
"ds:transition-colors ds:motion-reduce:transition-none",
|
|
788
789
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
789
790
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
790
791
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
791
792
|
"ds:no-underline"
|
|
792
|
-
].join(" ")
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
793
|
+
].join(" "),
|
|
794
|
+
{
|
|
795
|
+
variants: {
|
|
796
|
+
variant: {
|
|
797
|
+
// Borderless (Linear / Notion style): transparent at rest with a
|
|
798
|
+
// muted hover fill, a 44px tap target, roomier radius, and the dense
|
|
799
|
+
// `--font-size-sm` label. The historical default.
|
|
800
|
+
ghost: [
|
|
801
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
802
|
+
"ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
803
|
+
"ds:text-[length:var(--font-size-sm)]",
|
|
804
|
+
"ds:rounded-[var(--radius-md)]",
|
|
805
|
+
"ds:hover:bg-[var(--muted)]/20"
|
|
806
|
+
].join(" "),
|
|
807
|
+
// Input-field look: consumes the SAME shared input-surface tokens as
|
|
808
|
+
// <TextInput size="sm"> — height, text size and horizontal inset — so
|
|
809
|
+
// a practice / workspace selector stacked directly above the sidebar
|
|
810
|
+
// <SearchBar size="sm"> renders as a genuinely matched pair (identical
|
|
811
|
+
// 32px box and label size) and stays in lockstep if that surface
|
|
812
|
+
// evolves. `gap-3` + the shared `ps-3` line the pin glyph and label up
|
|
813
|
+
// with the search input's icon and text below. The bordered
|
|
814
|
+
// `--input`/`--shadow-input`/`--radius-sm` chrome mirrors the input's
|
|
815
|
+
// resting surface; opaque hover keeps the fill solid over a
|
|
816
|
+
// brand-tinted parent. 32px clears WCAG 2.5.8 (24px AA).
|
|
817
|
+
field: [
|
|
818
|
+
vs.sm,
|
|
819
|
+
ps.sm,
|
|
820
|
+
fs.sm,
|
|
821
|
+
"ds:gap-3",
|
|
822
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
823
|
+
"ds:border ds:border-[var(--border)] ds:bg-[var(--input)]",
|
|
824
|
+
"ds:shadow-[var(--shadow-input)]",
|
|
825
|
+
"ds:hover:bg-[color-mix(in_srgb,var(--muted)_20%,var(--input))]"
|
|
826
|
+
].join(" ")
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
defaultVariants: { variant: "ghost" }
|
|
830
|
+
}
|
|
831
|
+
), Gs = b(
|
|
832
|
+
({ logo: e, name: a, showChevron: r = !0, variant: i = "ghost", className: n, ...c }, o) => {
|
|
833
|
+
const { mode: t } = x(), l = t !== "icon";
|
|
834
|
+
return /* @__PURE__ */ u(
|
|
835
|
+
"button",
|
|
836
|
+
{
|
|
837
|
+
ref: o,
|
|
838
|
+
type: "button",
|
|
839
|
+
"aria-label": a,
|
|
840
|
+
className: [Ls({ variant: i }), n].filter(Boolean).join(" "),
|
|
841
|
+
...c,
|
|
842
|
+
children: [
|
|
843
|
+
/* @__PURE__ */ s(
|
|
844
|
+
"span",
|
|
816
845
|
{
|
|
817
846
|
"aria-hidden": "true",
|
|
818
|
-
className: "ds:
|
|
847
|
+
className: "ds:inline-flex ds:items-center ds:shrink-0",
|
|
848
|
+
children: e
|
|
819
849
|
}
|
|
820
|
-
)
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
850
|
+
),
|
|
851
|
+
l ? /* @__PURE__ */ u(X, { children: [
|
|
852
|
+
/* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
853
|
+
r ? /* @__PURE__ */ s(
|
|
854
|
+
H,
|
|
855
|
+
{
|
|
856
|
+
"aria-hidden": "true",
|
|
857
|
+
className: "ds:size-4 ds:shrink-0 ds:rotate-90"
|
|
858
|
+
}
|
|
859
|
+
) : null
|
|
860
|
+
] }) : null
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
);
|
|
866
|
+
Gs.displayName = "SidebarWorkspaceSwitcher";
|
|
867
|
+
const $s = T(
|
|
828
868
|
[
|
|
829
869
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
830
870
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -847,17 +887,17 @@ const Vs = I(
|
|
|
847
887
|
},
|
|
848
888
|
defaultVariants: { mode: "expanded" }
|
|
849
889
|
}
|
|
850
|
-
),
|
|
851
|
-
const { mode:
|
|
890
|
+
), Os = b(({ icon: e, label: a, shortcut: r, className: i, ...n }, c) => {
|
|
891
|
+
const { mode: o } = x(), t = o !== "icon";
|
|
852
892
|
return /* @__PURE__ */ u(
|
|
853
893
|
"button",
|
|
854
894
|
{
|
|
855
|
-
ref:
|
|
895
|
+
ref: c,
|
|
856
896
|
type: "button",
|
|
857
897
|
"aria-label": a,
|
|
858
898
|
"aria-keyshortcuts": r,
|
|
859
|
-
className: [
|
|
860
|
-
...
|
|
899
|
+
className: [$s({ mode: o }), i].filter(Boolean).join(" "),
|
|
900
|
+
...n,
|
|
861
901
|
children: [
|
|
862
902
|
/* @__PURE__ */ s(
|
|
863
903
|
"span",
|
|
@@ -867,7 +907,7 @@ const Vs = I(
|
|
|
867
907
|
children: e
|
|
868
908
|
}
|
|
869
909
|
),
|
|
870
|
-
|
|
910
|
+
t ? /* @__PURE__ */ u(X, { children: [
|
|
871
911
|
/* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
|
|
872
912
|
r ? /* @__PURE__ */ s("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
|
|
873
913
|
] }) : null
|
|
@@ -875,8 +915,8 @@ const Vs = I(
|
|
|
875
915
|
}
|
|
876
916
|
);
|
|
877
917
|
});
|
|
878
|
-
|
|
879
|
-
const
|
|
918
|
+
Os.displayName = "SidebarPrimaryAction";
|
|
919
|
+
const Xs = [
|
|
880
920
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
881
921
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
882
922
|
// Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
|
|
@@ -901,24 +941,24 @@ const $s = [
|
|
|
901
941
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
902
942
|
"ds:motion-reduce:transition-none"
|
|
903
943
|
].join(" "), Y = b(
|
|
904
|
-
({ isPinned: e, onPinChange: a, label: r, className:
|
|
905
|
-
const { t
|
|
906
|
-
if (
|
|
907
|
-
const p = e ?
|
|
944
|
+
({ isPinned: e, onPinChange: a, label: r, className: i, onClick: n, ...c }, o) => {
|
|
945
|
+
const { t } = A(), { mode: l } = x();
|
|
946
|
+
if (l === "icon") return null;
|
|
947
|
+
const p = e ? t("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : t("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
908
948
|
return /* @__PURE__ */ s(
|
|
909
949
|
"button",
|
|
910
950
|
{
|
|
911
|
-
ref:
|
|
951
|
+
ref: o,
|
|
912
952
|
type: "button",
|
|
913
953
|
"aria-label": p,
|
|
914
954
|
"aria-pressed": e,
|
|
915
|
-
className: [
|
|
955
|
+
className: [Xs, i].filter(Boolean).join(" "),
|
|
916
956
|
onClick: (f) => {
|
|
917
|
-
f.preventDefault(), f.stopPropagation(), a == null || a(!e),
|
|
957
|
+
f.preventDefault(), f.stopPropagation(), a == null || a(!e), n == null || n(f);
|
|
918
958
|
},
|
|
919
|
-
...
|
|
959
|
+
...c,
|
|
920
960
|
children: /* @__PURE__ */ s(
|
|
921
|
-
|
|
961
|
+
hs,
|
|
922
962
|
{
|
|
923
963
|
"aria-hidden": "true",
|
|
924
964
|
className: "ds:size-4",
|
|
@@ -930,31 +970,31 @@ const $s = [
|
|
|
930
970
|
}
|
|
931
971
|
);
|
|
932
972
|
Y.displayName = "SidebarPinButton";
|
|
933
|
-
const
|
|
934
|
-
({ heading: e, emptyMessage: a, onReorder: r, className:
|
|
935
|
-
const { t
|
|
936
|
-
z.current = !z.current,
|
|
937
|
-
}, []), S =
|
|
938
|
-
() => ({ onReorder: r, count: f, dragSource:
|
|
939
|
-
[r, f,
|
|
973
|
+
const is = Z(null), qs = () => q(is), Zs = b(
|
|
974
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: i, children: n, ...c }, o) => {
|
|
975
|
+
const { t } = A(), l = e ?? t("navigation.sidebar.favorites", "Favourites"), p = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], f = p.length, g = f > 0, [w, y] = B(null), [d, N] = B(""), z = G(!1), m = ss((j) => {
|
|
976
|
+
z.current = !z.current, N(z.current ? j : `${j}`);
|
|
977
|
+
}, []), S = $(
|
|
978
|
+
() => ({ onReorder: r, count: f, dragSource: w, setDragSource: y, announce: m }),
|
|
979
|
+
[r, f, w, m]
|
|
940
980
|
);
|
|
941
|
-
return !g && !a ? null : /* @__PURE__ */ s(
|
|
981
|
+
return !g && !a ? null : /* @__PURE__ */ s(is.Provider, { value: S, children: /* @__PURE__ */ u(
|
|
942
982
|
as,
|
|
943
983
|
{
|
|
944
|
-
ref:
|
|
945
|
-
label:
|
|
946
|
-
className:
|
|
947
|
-
...
|
|
984
|
+
ref: o,
|
|
985
|
+
label: l,
|
|
986
|
+
className: i,
|
|
987
|
+
...c,
|
|
948
988
|
children: [
|
|
949
989
|
g ? p : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
950
|
-
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
990
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: d })
|
|
951
991
|
]
|
|
952
992
|
}
|
|
953
993
|
) });
|
|
954
994
|
}
|
|
955
995
|
);
|
|
956
|
-
|
|
957
|
-
const
|
|
996
|
+
Zs.displayName = "SidebarFavorites";
|
|
997
|
+
const Ws = T(
|
|
958
998
|
[
|
|
959
999
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
960
1000
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -973,7 +1013,7 @@ const qs = I(
|
|
|
973
1013
|
},
|
|
974
1014
|
defaultVariants: { dragging: !1, dropTarget: !1 }
|
|
975
1015
|
}
|
|
976
|
-
),
|
|
1016
|
+
), Ys = [
|
|
977
1017
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
978
1018
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
979
1019
|
"ds:cursor-grab ds:active:cursor-grabbing",
|
|
@@ -987,68 +1027,68 @@ const qs = I(
|
|
|
987
1027
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
988
1028
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
989
1029
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
990
|
-
].join(" "),
|
|
1030
|
+
].join(" "), Js = b(
|
|
991
1031
|
({
|
|
992
1032
|
index: e,
|
|
993
1033
|
isActive: a = !1,
|
|
994
1034
|
asChild: r = !1,
|
|
995
|
-
reorderLabel:
|
|
996
|
-
isPinned:
|
|
997
|
-
onPinChange:
|
|
998
|
-
pinLabel:
|
|
999
|
-
"aria-label":
|
|
1000
|
-
className:
|
|
1035
|
+
reorderLabel: i,
|
|
1036
|
+
isPinned: n = !1,
|
|
1037
|
+
onPinChange: c,
|
|
1038
|
+
pinLabel: o,
|
|
1039
|
+
"aria-label": t,
|
|
1040
|
+
className: l,
|
|
1001
1041
|
children: p,
|
|
1002
1042
|
...f
|
|
1003
1043
|
}, g) => {
|
|
1004
|
-
const { t:
|
|
1005
|
-
if (!(
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
|
|
1044
|
+
const { t: w } = A(), { mode: y } = x(), d = qs(), [N, z] = B(!1), m = !!(d != null && d.onReorder) && y !== "icon", S = i ?? t ?? "", j = ns(), C = (v, I) => {
|
|
1045
|
+
if (!(d != null && d.onReorder)) return;
|
|
1046
|
+
const V = Math.max(0, Math.min(d.count - 1, I));
|
|
1047
|
+
V !== v && (d.onReorder(v, V), d.announce(
|
|
1048
|
+
w(
|
|
1009
1049
|
"navigation.sidebar.reorderAnnounce",
|
|
1010
1050
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
1011
|
-
{ label: S, to:
|
|
1051
|
+
{ label: S, to: V + 1, total: d.count }
|
|
1012
1052
|
)
|
|
1013
1053
|
));
|
|
1014
1054
|
}, F = (v) => {
|
|
1015
|
-
m && (v.altKey && v.key === "ArrowUp" ? (v.preventDefault(), C(e, e - 1)) : v.altKey && v.key === "ArrowDown" ? (v.preventDefault(), C(e, e + 1)) : v.key === "Home" && v.altKey ? (v.preventDefault(), C(e, 0)) : v.key === "End" && v.altKey && (v.preventDefault(), C(e,
|
|
1016
|
-
},
|
|
1017
|
-
m && (
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
-
},
|
|
1021
|
-
!m || (
|
|
1022
|
-
},
|
|
1055
|
+
m && (v.altKey && v.key === "ArrowUp" ? (v.preventDefault(), C(e, e - 1)) : v.altKey && v.key === "ArrowDown" ? (v.preventDefault(), C(e, e + 1)) : v.key === "Home" && v.altKey ? (v.preventDefault(), C(e, 0)) : v.key === "End" && v.altKey && (v.preventDefault(), C(e, d.count - 1)));
|
|
1056
|
+
}, D = (v) => {
|
|
1057
|
+
m && (d == null || d.setDragSource(e), v.dataTransfer && (v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("ds:text/plain", String(e))));
|
|
1058
|
+
}, _ = () => {
|
|
1059
|
+
d == null || d.setDragSource(null), z(!1);
|
|
1060
|
+
}, U = (v) => {
|
|
1061
|
+
!m || (d == null ? void 0 : d.dragSource) === null || (v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), z(!0));
|
|
1062
|
+
}, P = () => z(!1), M = (v) => {
|
|
1023
1063
|
if (!m) return;
|
|
1024
1064
|
v.preventDefault();
|
|
1025
|
-
const
|
|
1026
|
-
z(!1), !(
|
|
1027
|
-
}, k = (
|
|
1065
|
+
const I = d == null ? void 0 : d.dragSource;
|
|
1066
|
+
z(!1), !(I == null || I === e) && C(I, e);
|
|
1067
|
+
}, k = (d == null ? void 0 : d.dragSource) === e;
|
|
1028
1068
|
return /* @__PURE__ */ u(
|
|
1029
1069
|
"div",
|
|
1030
1070
|
{
|
|
1031
|
-
className:
|
|
1071
|
+
className: Ws({
|
|
1032
1072
|
dragging: k,
|
|
1033
|
-
dropTarget:
|
|
1073
|
+
dropTarget: N && !k
|
|
1034
1074
|
}),
|
|
1035
1075
|
draggable: m || void 0,
|
|
1036
|
-
onDragStart: m ?
|
|
1037
|
-
onDragEnd: m ?
|
|
1038
|
-
onDragOver:
|
|
1039
|
-
onDragLeave:
|
|
1040
|
-
onDrop:
|
|
1076
|
+
onDragStart: m ? D : void 0,
|
|
1077
|
+
onDragEnd: m ? _ : void 0,
|
|
1078
|
+
onDragOver: U,
|
|
1079
|
+
onDragLeave: P,
|
|
1080
|
+
onDrop: M,
|
|
1041
1081
|
children: [
|
|
1042
1082
|
/* @__PURE__ */ s(
|
|
1043
|
-
|
|
1083
|
+
ds,
|
|
1044
1084
|
{
|
|
1045
1085
|
ref: g,
|
|
1046
1086
|
isActive: a,
|
|
1047
1087
|
asChild: r,
|
|
1048
|
-
"aria-label":
|
|
1088
|
+
"aria-label": t,
|
|
1049
1089
|
"aria-describedby": m ? j : void 0,
|
|
1050
1090
|
draggable: m ? !1 : void 0,
|
|
1051
|
-
className: [m ? "ds:flex-1 ds:min-w-0" : "",
|
|
1091
|
+
className: [m ? "ds:flex-1 ds:min-w-0" : "", l ?? ""].filter(Boolean).join(" "),
|
|
1052
1092
|
...f,
|
|
1053
1093
|
children: p
|
|
1054
1094
|
}
|
|
@@ -1058,22 +1098,22 @@ const qs = I(
|
|
|
1058
1098
|
{
|
|
1059
1099
|
type: "button",
|
|
1060
1100
|
id: j,
|
|
1061
|
-
"aria-label":
|
|
1101
|
+
"aria-label": w(
|
|
1062
1102
|
"navigation.sidebar.reorderHandle",
|
|
1063
1103
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
1064
1104
|
{ label: S }
|
|
1065
1105
|
),
|
|
1066
|
-
className:
|
|
1106
|
+
className: Ys,
|
|
1067
1107
|
onKeyDown: F,
|
|
1068
|
-
children: /* @__PURE__ */ s(
|
|
1108
|
+
children: /* @__PURE__ */ s(bs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
1069
1109
|
}
|
|
1070
1110
|
) : null,
|
|
1071
|
-
|
|
1111
|
+
c && y !== "icon" ? /* @__PURE__ */ s(
|
|
1072
1112
|
Y,
|
|
1073
1113
|
{
|
|
1074
|
-
isPinned:
|
|
1075
|
-
label:
|
|
1076
|
-
onPinChange:
|
|
1114
|
+
isPinned: n,
|
|
1115
|
+
label: o ?? t ?? "",
|
|
1116
|
+
onPinChange: c
|
|
1077
1117
|
}
|
|
1078
1118
|
) : null
|
|
1079
1119
|
]
|
|
@@ -1081,8 +1121,8 @@ const qs = I(
|
|
|
1081
1121
|
);
|
|
1082
1122
|
}
|
|
1083
1123
|
);
|
|
1084
|
-
|
|
1085
|
-
const
|
|
1124
|
+
Js.displayName = "SidebarFavoriteItem";
|
|
1125
|
+
const Qs = T(
|
|
1086
1126
|
[
|
|
1087
1127
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1088
1128
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1095,16 +1135,16 @@ const Xs = I(
|
|
|
1095
1135
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1096
1136
|
"ds:no-underline"
|
|
1097
1137
|
].join(" ")
|
|
1098
|
-
),
|
|
1099
|
-
const { mode:
|
|
1138
|
+
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: i, className: n, ...c }, o) => {
|
|
1139
|
+
const { mode: t } = x(), l = t !== "icon", p = typeof r == "string" ? r : i;
|
|
1100
1140
|
return /* @__PURE__ */ u(
|
|
1101
1141
|
"button",
|
|
1102
1142
|
{
|
|
1103
|
-
ref:
|
|
1143
|
+
ref: o,
|
|
1104
1144
|
type: "button",
|
|
1105
1145
|
"aria-label": p ? `${a}, ${p}` : a,
|
|
1106
|
-
className: [
|
|
1107
|
-
...
|
|
1146
|
+
className: [Qs(), n].filter(Boolean).join(" "),
|
|
1147
|
+
...c,
|
|
1108
1148
|
children: [
|
|
1109
1149
|
/* @__PURE__ */ s(
|
|
1110
1150
|
"span",
|
|
@@ -1114,7 +1154,7 @@ const Xs = I(
|
|
|
1114
1154
|
children: e
|
|
1115
1155
|
}
|
|
1116
1156
|
),
|
|
1117
|
-
|
|
1157
|
+
l ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1118
1158
|
/* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1119
1159
|
r ? typeof r == "string" ? /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[length:var(--spacing-xs)] ds:min-w-0 type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : null
|
|
1120
1160
|
] }) : null
|
|
@@ -1122,8 +1162,8 @@ const Xs = I(
|
|
|
1122
1162
|
}
|
|
1123
1163
|
);
|
|
1124
1164
|
});
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1165
|
+
se.displayName = "SidebarProfilePill";
|
|
1166
|
+
const ee = [
|
|
1127
1167
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1128
1168
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
1129
1169
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1133,29 +1173,29 @@ const Js = [
|
|
|
1133
1173
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1134
1174
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1135
1175
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1136
|
-
].join(" "),
|
|
1137
|
-
const { t:
|
|
1138
|
-
if (
|
|
1139
|
-
const
|
|
1176
|
+
].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...i }, n) => {
|
|
1177
|
+
const { t: c } = A(), { mode: o, transitionTo: t } = x();
|
|
1178
|
+
if (o === "overlay") return null;
|
|
1179
|
+
const l = o === "expanded", p = a ?? (l ? c("navigation.sidebar.collapse", "Collapse sidebar") : c("navigation.sidebar.expand", "Expand sidebar")), f = /* @__PURE__ */ s(
|
|
1140
1180
|
"button",
|
|
1141
1181
|
{
|
|
1142
|
-
ref:
|
|
1182
|
+
ref: n,
|
|
1143
1183
|
type: "button",
|
|
1144
1184
|
"aria-label": p,
|
|
1145
|
-
"aria-expanded":
|
|
1185
|
+
"aria-expanded": l,
|
|
1146
1186
|
onClick: (g) => {
|
|
1147
|
-
|
|
1187
|
+
t == null || t(l ? "icon" : "expanded"), r == null || r(g);
|
|
1148
1188
|
},
|
|
1149
|
-
className: [
|
|
1150
|
-
...
|
|
1151
|
-
children:
|
|
1152
|
-
|
|
1189
|
+
className: [ee, e].filter(Boolean).join(" "),
|
|
1190
|
+
...i,
|
|
1191
|
+
children: l ? /* @__PURE__ */ s(
|
|
1192
|
+
ys,
|
|
1153
1193
|
{
|
|
1154
1194
|
"aria-hidden": "true",
|
|
1155
1195
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1156
1196
|
}
|
|
1157
1197
|
) : /* @__PURE__ */ s(
|
|
1158
|
-
|
|
1198
|
+
ws,
|
|
1159
1199
|
{
|
|
1160
1200
|
"aria-hidden": "true",
|
|
1161
1201
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -1168,7 +1208,7 @@ const Js = [
|
|
|
1168
1208
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1169
1209
|
h.Content,
|
|
1170
1210
|
{
|
|
1171
|
-
side:
|
|
1211
|
+
side: o === "icon" ? "right" : "top",
|
|
1172
1212
|
sideOffset: 6,
|
|
1173
1213
|
className: [
|
|
1174
1214
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
@@ -1185,8 +1225,8 @@ const Js = [
|
|
|
1185
1225
|
) })
|
|
1186
1226
|
] });
|
|
1187
1227
|
});
|
|
1188
|
-
|
|
1189
|
-
const
|
|
1228
|
+
ae.displayName = "SidebarCollapseTrigger";
|
|
1229
|
+
const re = T(
|
|
1190
1230
|
[
|
|
1191
1231
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1192
1232
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -1217,18 +1257,18 @@ const se = I(
|
|
|
1217
1257
|
},
|
|
1218
1258
|
defaultVariants: { mode: "expanded" }
|
|
1219
1259
|
}
|
|
1220
|
-
),
|
|
1221
|
-
const { mode:
|
|
1260
|
+
), de = b(({ title: e, description: a, icon: r, className: i, ...n }, c) => {
|
|
1261
|
+
const { mode: o } = x(), t = o === "icon", l = (
|
|
1222
1262
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1223
1263
|
// expanded mode the accessible name comes from the visible contents
|
|
1224
1264
|
// so the description isn't excluded from it.
|
|
1225
1265
|
/* @__PURE__ */ u(
|
|
1226
1266
|
"a",
|
|
1227
1267
|
{
|
|
1228
|
-
ref:
|
|
1229
|
-
"aria-label":
|
|
1230
|
-
className:
|
|
1231
|
-
...
|
|
1268
|
+
ref: c,
|
|
1269
|
+
"aria-label": t ? e : void 0,
|
|
1270
|
+
className: re({ mode: o, className: i }),
|
|
1271
|
+
...n,
|
|
1232
1272
|
children: [
|
|
1233
1273
|
/* @__PURE__ */ s(
|
|
1234
1274
|
"span",
|
|
@@ -1239,10 +1279,10 @@ const se = I(
|
|
|
1239
1279
|
"ds:rounded-[var(--radius-sm)]",
|
|
1240
1280
|
"ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
|
|
1241
1281
|
].join(" "),
|
|
1242
|
-
children: r ?? /* @__PURE__ */ s(
|
|
1282
|
+
children: r ?? /* @__PURE__ */ s(Ss, { className: "ds:size-4" })
|
|
1243
1283
|
}
|
|
1244
1284
|
),
|
|
1245
|
-
|
|
1285
|
+
t ? null : /* @__PURE__ */ u(X, { children: [
|
|
1246
1286
|
/* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1247
1287
|
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
|
|
1248
1288
|
a ? (
|
|
@@ -1263,8 +1303,8 @@ const se = I(
|
|
|
1263
1303
|
}
|
|
1264
1304
|
)
|
|
1265
1305
|
);
|
|
1266
|
-
return
|
|
1267
|
-
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children:
|
|
1306
|
+
return t ? /* @__PURE__ */ u(h.Root, { children: [
|
|
1307
|
+
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: l }),
|
|
1268
1308
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1269
1309
|
h.Content,
|
|
1270
1310
|
{
|
|
@@ -1283,29 +1323,29 @@ const se = I(
|
|
|
1283
1323
|
]
|
|
1284
1324
|
}
|
|
1285
1325
|
) })
|
|
1286
|
-
] }) :
|
|
1326
|
+
] }) : l;
|
|
1287
1327
|
});
|
|
1288
|
-
|
|
1328
|
+
de.displayName = "SidebarUpgradeChip";
|
|
1289
1329
|
export {
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1330
|
+
As as S,
|
|
1331
|
+
_s as a,
|
|
1332
|
+
ae as b,
|
|
1333
|
+
Js as c,
|
|
1334
|
+
Zs as d,
|
|
1335
|
+
Ps as e,
|
|
1336
|
+
Fs as f,
|
|
1337
|
+
Ds as g,
|
|
1338
|
+
ds as h,
|
|
1339
|
+
Ks as i,
|
|
1340
|
+
Ms as j,
|
|
1341
|
+
Vs as k,
|
|
1302
1342
|
Y as l,
|
|
1303
|
-
|
|
1304
|
-
|
|
1343
|
+
Os as m,
|
|
1344
|
+
se as n,
|
|
1305
1345
|
as as o,
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1346
|
+
de as p,
|
|
1347
|
+
Gs as q,
|
|
1348
|
+
js as s,
|
|
1309
1349
|
x as u
|
|
1310
1350
|
};
|
|
1311
|
-
//# sourceMappingURL=sidebar-
|
|
1351
|
+
//# sourceMappingURL=sidebar-C0PbwJBc.js.map
|