@alfadocs/ui-kit 1.113.0 → 1.115.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-BVn3vDTg.js → actions-cell-renderer-bI27uXXC.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
- package/dist/_chunks/{anamnesis-card-BzuluoD1.js → anamnesis-card-Ddnrdfx3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-DdTRdNrQ.js → anamnesis-summary-card-S1H_AARG.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-DfDulR_c.js → anamnesis-summary-rows-BZ36ULQk.js} +5 -5
- package/dist/_chunks/{antenatal-schedule-timeline-DmsY5g28.js → antenatal-schedule-timeline-va9zx7tJ.js} +12 -12
- package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-D_-aBrx5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-DxLu3afn.js} +3 -3
- package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-BhXOJpIJ.js} +2 -2
- package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
- package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-CXHihM22.js} +28 -27
- package/dist/_chunks/{bishop-score-CnIft4eV.js → bishop-score-QJu-sM1y.js} +2 -2
- package/dist/_chunks/{bmi-calculator-NMkXc079.js → bmi-calculator-Ba4yoR31.js} +2 -2
- package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-CaZm5wGR.js → calendar-appointment-editor-dialog-BVzFi4hH.js} +520 -532
- package/dist/_chunks/{card-C85_Ndhb.js → card-DVO3x8E-.js} +23 -19
- package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-BA3MfdfZ.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-CUtFZ813.js} +2 -2
- package/dist/_chunks/{chart-bddVIElM.js → chart-DebrFZ6L.js} +2 -2
- package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
- package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
- package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
- package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
- package/dist/_chunks/{clinical-note-card-BVkxGiGl.js → clinical-note-card-Zz5_GEz-.js} +2 -2
- package/dist/_chunks/compact-editor-fields-cP6yh7xv.js +21 -0
- package/dist/_chunks/{connection-status-CWSU3eiq.js → connection-status-DjarASoU.js} +2 -2
- package/dist/_chunks/{contact-card-CymtNvy3.js → contact-card-Cv-Nwvac.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CAL66GaH.js → contact-profile-card-DMXWBBkU.js} +2 -2
- package/dist/_chunks/{cycle-calculator-ZMDvToIm.js → cycle-calculator-C68V9rdH.js} +6 -6
- package/dist/_chunks/data-grid-tabs-CsLbIv0h.js +365 -0
- package/dist/_chunks/data-table-DXaE2Ret.js +1693 -0
- package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
- package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
- package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
- package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
- package/dist/_chunks/date-range-panel-CBFfkgmz.js +62 -0
- package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
- package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
- package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
- package/dist/_chunks/{document-preview-5xs64jME.js → document-preview-WvJKHJOP.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dr2cDa64.js → due-date-calculator-C1UA5jpS.js} +7 -7
- package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-CtlMhLai.js} +3 -3
- package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
- package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
- package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
- package/dist/_chunks/{entity-summary-BbqqYqF1.js → entity-summary-DGCBQDt1.js} +2 -2
- package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
- package/dist/_chunks/{face-scheme-e2M2HJGz.js → face-scheme-DkoxiDCh.js} +3 -3
- package/dist/_chunks/{fetal-weight-CkIwJgiH.js → fetal-weight-DmZzMRzB.js} +2 -2
- package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DFFExyym.js} +4 -4
- package/dist/_chunks/{finished-terminal-DXVAfhRr.js → finished-terminal-BKTFUk3S.js} +2 -2
- package/dist/_chunks/{forgot-password-form-YQVzSskq.js → forgot-password-form-Bc_UPax6.js} +2 -2
- package/dist/_chunks/format-ql5WTsYT.js +846 -0
- package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
- package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
- package/dist/_chunks/{gestational-age-calculator-Dv3IePb-.js → gestational-age-calculator-60y1RyQL.js} +8 -8
- package/dist/_chunks/grid-context-AwsLJRhH.js +46 -0
- package/dist/_chunks/{hcg-doubling-DdyUt4gz.js → hcg-doubling-CC-dbKE8.js} +7 -6
- package/dist/_chunks/{heatmap-BiwC7Gdx.js → heatmap-eXdtmEoU.js} +4 -4
- package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
- package/dist/_chunks/icon-button-group-C9mPK-bX.js +442 -0
- package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
- package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
- package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
- package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
- package/dist/_chunks/{kit-extensions-BOsUgWnE.js → kit-extensions-CzG0RmhQ.js} +7 -7
- package/dist/_chunks/link-cell-renderer-Ditt5mvT.js +800 -0
- package/dist/_chunks/{login-dev-card-B6-zCFq3.js → login-dev-card-CPndtWdz.js} +3 -3
- package/dist/_chunks/map-view-Bny79cWa.js +856 -0
- package/dist/_chunks/{marketplace-app-shell-C-4QF6mp.js → marketplace-app-shell-CcEHJgDd.js} +3 -3
- package/dist/_chunks/match-BATShpSX.js +336 -0
- package/dist/_chunks/motion-is-off-BvAuNV5O.js +15 -0
- package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
- package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
- package/dist/_chunks/{notes-panel-Cz621DWV.js → notes-panel-BVYG_MJE.js} +4 -4
- package/dist/_chunks/{operator-hero-BELhrv9o.js → operator-hero-BWayX73x.js} +71 -62
- package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
- package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
- package/dist/_chunks/parts-Wz2LeGnH.js +1113 -0
- package/dist/_chunks/{patient-details-RsT3SaYh.js → patient-details-DlT-vpSe.js} +3 -3
- package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-B54uzvu-.js} +3 -3
- package/dist/_chunks/{patient-search-CxuqVUTB.js → patient-search-DDRDCjZi.js} +439 -482
- package/dist/_chunks/{patient-summary-card-BjZErlbt.js → patient-summary-card-Dy9-CzON.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-u5EuFyCY.js → payment-automation-upsell-D7yaD4u1.js} +3 -3
- package/dist/_chunks/{payment-request-card-IR83TJax.js → payment-request-card-BmV2pLoM.js} +2 -2
- package/dist/_chunks/{periodontal-chart-DqdUEFxK.js → periodontal-chart-Bjz7O4wT.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CCkzStlm.js → periodontal-chart-card-CxEXHl2x.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-CF1d_0yl.js → periodontal-diagnosis-DnZuZD14.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-D2zyID0H.js → periodontal-risk-chart-BBPB9wf1.js} +2 -2
- package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
- package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
- package/dist/_chunks/{practice-profile-hero-Bb4YyxHA.js → practice-profile-hero-Cw4NZp0A.js} +2 -2
- package/dist/_chunks/practice-results-BlxfBx-D.js +2181 -0
- package/dist/_chunks/{pregnancy-dating-Cs8xpZA8.js → pregnancy-dating-qZpw3zj8.js} +8 -8
- package/dist/_chunks/{pregnancy-weight-gain-B_Zldlzq.js → pregnancy-weight-gain-DQoOM8QV.js} +2 -2
- package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
- package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
- package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
- package/dist/_chunks/{public-footer-DGjLTtNK.js → public-footer-CB7ruuLI.js} +295 -260
- package/dist/_chunks/{public-header.agent-_ArDD1Xr.js → public-header.agent-Db4wm6_S.js} +203 -193
- package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-C1LGeX-G.js} +3 -3
- package/dist/_chunks/{registration-form-Cq5_OSIL.js → registration-form-DW-0X7S4.js} +3 -3
- package/dist/_chunks/{reserved.agent-BMkapgom.js → reserved.agent-6p3Hm4oH.js} +29 -39
- package/dist/_chunks/{reset-password-form-BVsL2fOJ.js → reset-password-form-C93SH0Tx.js} +2 -2
- package/dist/_chunks/{reviews-panel-B03auSpQ.js → reviews-panel-CfJPEkH7.js} +2 -2
- package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-efaMWbYz.js} +3 -3
- package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
- package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
- package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
- package/dist/_chunks/{section-card-D1sV4Voz.js → section-card-DFr2wGal.js} +2 -2
- package/dist/_chunks/{send-registration-link-form-OgPomrZN.js → send-registration-link-form-DWxWa_cJ.js} +6 -6
- package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
- package/dist/_chunks/{signed-out-frame-CPow3aCZ.js → signed-out-frame-bh7fn_Px.js} +2 -2
- package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
- package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
- package/dist/_chunks/{stat-BFKZV50y.js → stat-WGLdn5Vn.js} +113 -107
- package/dist/_chunks/subDays-Bsoy023P.js +8 -0
- package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
- package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
- package/dist/_chunks/{task-card-TSJjuuDe.js → task-card-BNbkwIYM.js} +2 -2
- package/dist/_chunks/{task-editor-gqWF1jI6.js → task-editor-CSa6vQ9r.js} +377 -391
- package/dist/_chunks/{task-tray-DrXfMCuf.js → task-tray-Bmi9wCHq.js} +2 -2
- package/dist/_chunks/{tasks-panel-OuIaydK5.js → tasks-panel-CVjY1d7Q.js} +2 -2
- package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-CObX2Ffa.js} +2 -2
- package/dist/_chunks/{timeline-CKUaBZOx.js → timeline-AMqE-c2T.js} +2 -2
- package/dist/_chunks/toolbar-Bc3pjfG5.js +9907 -0
- package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
- package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
- package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-BydbojdD.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-DvK7Looa.js → use-appointment-details-read-BMAiQYo6.js} +6 -6
- package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
- package/dist/_chunks/{workflow-map-DWk-rZse.js → workflow-map-B4XkcET0.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DILFqAVd.js → workflow-webhook-action-DNSe65yd.js} +3 -3
- package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
- package/dist/agent-catalog.json +722 -11
- package/dist/agent-i18n/en.json +52 -4
- package/dist/components/_shared/motion-is-off.d.ts +7 -0
- package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
- package/dist/components/_shared/privacy-mask.d.ts +2 -4
- package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
- package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
- package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
- package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
- package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
- package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
- package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
- package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
- package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
- package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
- package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
- package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/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/booking/step-focus.d.ts +0 -6
- package/dist/components/card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +66 -6
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/announcer.d.ts +27 -0
- package/dist/components/data-grid/body.d.ts +95 -0
- package/dist/components/data-grid/columns.d.ts +96 -0
- package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
- package/dist/components/data-grid/data-grid.d.ts +11 -27
- package/dist/components/data-grid/data-grid.variants.d.ts +118 -0
- package/dist/components/data-grid/editors.d.ts +8 -0
- package/dist/components/data-grid/export-snapshot.d.ts +3 -0
- package/dist/components/data-grid/features.d.ts +56 -0
- package/dist/components/data-grid/filter-fns.d.ts +23 -0
- package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
- package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
- package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
- package/dist/components/data-grid/footer.d.ts +10 -0
- package/dist/components/data-grid/grid-context.d.ts +18 -0
- package/dist/components/data-grid/handle.d.ts +60 -0
- package/dist/components/data-grid/header.d.ts +12 -0
- package/dist/components/data-grid/index.d.ts +3 -0
- package/dist/components/data-grid/index.js +10 -3
- package/dist/components/data-grid/keyboard.d.ts +76 -0
- package/dist/components/data-grid/pager.d.ts +18 -0
- package/dist/components/data-grid/persistence.d.ts +60 -0
- package/dist/components/data-grid/print.d.ts +10 -0
- package/dist/components/data-grid/responsive.d.ts +36 -0
- package/dist/components/data-grid/selection.d.ts +58 -0
- package/dist/components/data-grid/state.d.ts +119 -0
- package/dist/components/data-grid/states.d.ts +34 -0
- package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
- package/dist/components/data-grid/toolbar.d.ts +41 -0
- package/dist/components/data-grid/types.d.ts +1346 -0
- package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
- package/dist/components/data-grid/virtual-rows.d.ts +43 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
- package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
- package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
- package/dist/components/data-grid-tabs/index.d.ts +5 -0
- package/dist/components/data-grid-tabs/index.js +8 -0
- package/dist/components/data-grid-tabs/types.d.ts +220 -0
- package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
- package/dist/components/data-table/calendar-day.d.ts +4 -21
- package/dist/components/data-table/data-table.d.ts +10 -6
- package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
- package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
- package/dist/components/data-table/filters/number-filter.d.ts +6 -10
- package/dist/components/data-table/filters/select-filter.d.ts +2 -4
- package/dist/components/data-table/filters/text-filter.d.ts +2 -5
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +25 -21
- package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
- 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/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/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/heatmap/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
- package/dist/components/icon-button-group/index.d.ts +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +16 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +6 -2
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +15 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +23 -0
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +7 -0
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -0
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +36 -2
- package/dist/i18n/locales/ar.d.ts +95 -0
- package/dist/i18n/locales/ar.js +98 -3
- package/dist/i18n/locales/de.d.ts +95 -0
- package/dist/i18n/locales/de.js +98 -3
- package/dist/i18n/locales/el.d.ts +95 -0
- package/dist/i18n/locales/el.js +98 -3
- package/dist/i18n/locales/en.d.ts +95 -0
- package/dist/i18n/locales/en.js +98 -2
- package/dist/i18n/locales/es.d.ts +95 -0
- package/dist/i18n/locales/es.js +98 -3
- package/dist/i18n/locales/fr.d.ts +95 -0
- package/dist/i18n/locales/fr.js +98 -3
- package/dist/i18n/locales/hi.d.ts +95 -0
- package/dist/i18n/locales/hi.js +98 -3
- package/dist/i18n/locales/it.d.ts +95 -0
- package/dist/i18n/locales/it.js +98 -3
- package/dist/i18n/locales/ja.d.ts +95 -0
- package/dist/i18n/locales/ja.js +98 -3
- package/dist/i18n/locales/nl.d.ts +95 -0
- package/dist/i18n/locales/nl.js +98 -3
- package/dist/i18n/locales/pl.d.ts +95 -0
- package/dist/i18n/locales/pl.js +98 -3
- package/dist/i18n/locales/pt.d.ts +95 -0
- package/dist/i18n/locales/pt.js +98 -3
- package/dist/i18n/locales/ro.d.ts +95 -0
- package/dist/i18n/locales/ro.js +98 -3
- package/dist/i18n/locales/ru.d.ts +95 -0
- package/dist/i18n/locales/ru.js +98 -3
- package/dist/i18n/locales/sq.d.ts +95 -0
- package/dist/i18n/locales/sq.js +98 -3
- package/dist/i18n/locales/sv.d.ts +95 -0
- package/dist/i18n/locales/sv.js +98 -3
- package/dist/i18n/locales/tr.d.ts +95 -0
- package/dist/i18n/locales/tr.js +98 -3
- package/dist/i18n/locales/zh.d.ts +95 -0
- package/dist/i18n/locales/zh.js +98 -3
- package/dist/index.js +1048 -1036
- package/dist/locales/ar.json +98 -3
- package/dist/locales/de.json +98 -3
- package/dist/locales/el.json +98 -3
- package/dist/locales/en.json +97 -2
- package/dist/locales/es.json +98 -3
- package/dist/locales/fr.json +98 -3
- package/dist/locales/hi.json +98 -3
- package/dist/locales/it.json +98 -3
- package/dist/locales/ja.json +98 -3
- package/dist/locales/nl.json +98 -3
- package/dist/locales/pl.json +98 -3
- package/dist/locales/pt.json +98 -3
- package/dist/locales/ro.json +98 -3
- package/dist/locales/ru.json +98 -3
- package/dist/locales/sq.json +98 -3
- package/dist/locales/sv.json +98 -3
- package/dist/locales/tr.json +98 -3
- package/dist/locales/zh.json +98 -3
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/reset-password-form/index.js +1 -1
- package/dist/patterns/send-registration-link-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
- package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
- package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
- package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
- package/dist/_chunks/format--x5jypvH.js +0 -1319
- package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
- package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
- package/dist/_chunks/map-view-Dn7aXZJw.js +0 -731
- package/dist/_chunks/practice-results-BByRCIuR.js +0 -1977
- package/dist/_chunks/privacy-mask-DbEKI-Jv.js +0 -81
- package/dist/_chunks/subDays-DKISP2nE.js +0 -8
|
@@ -1,68 +1,59 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { useId as ve, useState as Z, useRef as U, useCallback as F, useEffect as ne, useMemo as ye, createContext as ie, useContext as
|
|
2
|
+
import { useId as ve, useState as Z, useRef as U, useCallback as F, useEffect as ne, useMemo as ye, createContext as ie, useContext as ae, forwardRef as H, isValidElement as ds } from "react";
|
|
3
3
|
import * as ge from "@radix-ui/react-dialog";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Te from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as Ne from "@radix-ui/react-accordion";
|
|
6
6
|
import * as y from "@radix-ui/react-tooltip";
|
|
7
7
|
import { a as ls } from "./accordion-Ch3xp0mX.js";
|
|
8
8
|
import { S as cs } from "./scroll-area-CY5SLYNw.js";
|
|
9
9
|
import { Slot as Ue, Slottable as us } from "@radix-ui/react-slot";
|
|
10
|
-
import { c as
|
|
10
|
+
import { c as oe } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { useTranslation as de } from "react-i18next";
|
|
12
12
|
import { u as fs } from "./registry-DvAUVLHh.js";
|
|
13
13
|
import { u as ms } from "./use-edge-resize-CBtem0j2.js";
|
|
14
|
-
import { c as
|
|
14
|
+
import { c as He } from "./compose-refs-C0k0tdqF.js";
|
|
15
15
|
import { a as ps, b as vs, d as gs } from "./input-surface-BMffm2Vd.js";
|
|
16
16
|
import { u as xe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
17
17
|
import { i as bs } from "./is-development-CLUAnsU7.js";
|
|
18
|
-
import { X as
|
|
19
|
-
import { c as
|
|
18
|
+
import { X as $e } from "./x-B5YnXwCz.js";
|
|
19
|
+
import { c as De } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
20
|
import { G as hs } from "./grip-vertical-onSb1JXO.js";
|
|
21
|
-
import { C as
|
|
21
|
+
import { C as Ce } from "./chevron-right-I9AeSxH2.js";
|
|
22
22
|
import { S as ys } from "./star-Bf9L2Uot.js";
|
|
23
|
-
import {
|
|
23
|
+
import { C as xs } from "./chevrons-up-down-CgiVAHb7.js";
|
|
24
|
+
import { T as ws } from "./trending-up-C_luYBzS.js";
|
|
24
25
|
/**
|
|
25
26
|
* @license lucide-react v1.22.0 - ISC
|
|
26
27
|
*
|
|
27
28
|
* This source code is licensed under the ISC license.
|
|
28
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
30
|
*/
|
|
30
|
-
const
|
|
31
|
+
const Ss = [
|
|
31
32
|
["path", { d: "m7 20 5-5 5 5", key: "13a0gw" }],
|
|
32
33
|
["path", { d: "m7 4 5 5 5-5", key: "1kwcof" }]
|
|
33
|
-
],
|
|
34
|
+
], Ns = De("chevrons-down-up", Ss);
|
|
34
35
|
/**
|
|
35
36
|
* @license lucide-react v1.22.0 - ISC
|
|
36
37
|
*
|
|
37
38
|
* This source code is licensed under the ISC license.
|
|
38
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
40
|
*/
|
|
40
|
-
const
|
|
41
|
-
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
42
|
-
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
43
|
-
], Is = Ce("chevrons-up-down", Ns);
|
|
44
|
-
/**
|
|
45
|
-
* @license lucide-react v1.22.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/
|
|
50
|
-
const Cs = [
|
|
41
|
+
const Is = [
|
|
51
42
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
52
43
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
53
44
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
54
|
-
],
|
|
45
|
+
], Cs = De("panel-left-close", Is);
|
|
55
46
|
/**
|
|
56
47
|
* @license lucide-react v1.22.0 - ISC
|
|
57
48
|
*
|
|
58
49
|
* This source code is licensed under the ISC license.
|
|
59
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
51
|
*/
|
|
61
|
-
const
|
|
52
|
+
const zs = [
|
|
62
53
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
63
54
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
64
55
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
65
|
-
],
|
|
56
|
+
], Ts = De("panel-left-open", zs), je = {
|
|
66
57
|
"⌘": "Meta",
|
|
67
58
|
cmd: "Meta",
|
|
68
59
|
command: "Meta",
|
|
@@ -76,7 +67,7 @@ const Ts = [
|
|
|
76
67
|
option: "Alt",
|
|
77
68
|
"⇧": "Shift",
|
|
78
69
|
shift: "Shift"
|
|
79
|
-
},
|
|
70
|
+
}, Es = {
|
|
80
71
|
"+": "Plus",
|
|
81
72
|
plus: "Plus",
|
|
82
73
|
esc: "Escape",
|
|
@@ -109,14 +100,14 @@ const Ts = [
|
|
|
109
100
|
"→": "ArrowRight",
|
|
110
101
|
right: "ArrowRight",
|
|
111
102
|
arrowright: "ArrowRight"
|
|
112
|
-
},
|
|
113
|
-
function
|
|
114
|
-
const s =
|
|
103
|
+
}, js = ["Control", "Alt", "Shift", "Meta"];
|
|
104
|
+
function ks(e) {
|
|
105
|
+
const s = Es[e.toLowerCase()];
|
|
115
106
|
if (s) return s;
|
|
116
107
|
if (/^f([1-9]|1\d|2[0-4])$/i.test(e) || [...e].length === 1 && /^\S$/u.test(e))
|
|
117
108
|
return e.toUpperCase();
|
|
118
109
|
}
|
|
119
|
-
function
|
|
110
|
+
function As(e) {
|
|
120
111
|
const s = e.replace(/([⌘⌃⌥⇧])(?!\+)/g, "$1+");
|
|
121
112
|
let t, i;
|
|
122
113
|
if (s === "+")
|
|
@@ -130,29 +121,29 @@ function Ds(e) {
|
|
|
130
121
|
if (!i || t.some((n) => !n)) return;
|
|
131
122
|
const d = /* @__PURE__ */ new Set();
|
|
132
123
|
for (const n of t) {
|
|
133
|
-
const u =
|
|
124
|
+
const u = je[n.toLowerCase()];
|
|
134
125
|
if (!u) return;
|
|
135
126
|
d.add(u);
|
|
136
127
|
}
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
return [...
|
|
128
|
+
if (je[i.toLowerCase()]) return;
|
|
129
|
+
const o = ks(i);
|
|
130
|
+
if (o)
|
|
131
|
+
return [...js.filter((n) => d.has(n)), o].join("+");
|
|
141
132
|
}
|
|
142
133
|
function Ke(e) {
|
|
143
134
|
if (!(e != null && e.trim())) return;
|
|
144
135
|
const s = e.trim().replace(/\s*\+\s*/g, "+").replace(/([⌘⌃⌥⇧])\s+/g, "$1").split(/\s+/), t = [];
|
|
145
136
|
let i = "";
|
|
146
|
-
for (const
|
|
147
|
-
const n = i ? `${i}+${
|
|
148
|
-
n.split("+").every((c) => c !== "" &&
|
|
137
|
+
for (const o of s) {
|
|
138
|
+
const n = i ? `${i}+${o}` : o;
|
|
139
|
+
n.split("+").every((c) => c !== "" && je[c.toLowerCase()]) ? i = n : (t.push(n), i = "");
|
|
149
140
|
}
|
|
150
141
|
if (i) return;
|
|
151
|
-
const d = t.map(
|
|
152
|
-
if (!d.some((
|
|
142
|
+
const d = t.map(As);
|
|
143
|
+
if (!d.some((o) => o === void 0))
|
|
153
144
|
return d.join(" ");
|
|
154
145
|
}
|
|
155
|
-
const
|
|
146
|
+
const Ds = {
|
|
156
147
|
id: "sidebar",
|
|
157
148
|
capabilities: ["expand"],
|
|
158
149
|
state: {
|
|
@@ -209,25 +200,25 @@ const Os = {
|
|
|
209
200
|
description: "Each Sidebar.Item emits its `navId` prop as data-nav-id. Agents activate a nav item via native click on the matching anchor."
|
|
210
201
|
}
|
|
211
202
|
}
|
|
212
|
-
},
|
|
203
|
+
}, ke = ie({
|
|
213
204
|
enabled: !1,
|
|
214
205
|
move: null
|
|
215
|
-
}),
|
|
206
|
+
}), ze = () => ae(ke), Ye = ie(null), fe = (e, s) => e.sectionId === s.sectionId && e.index === s.index, Ve = "[data-sidebar-item-id]", Ge = "[data-sidebar-section-id]";
|
|
216
207
|
function be(e, s) {
|
|
217
208
|
var i;
|
|
218
209
|
const t = (i = e.parentElement) == null ? void 0 : i.closest(Ge);
|
|
219
210
|
return t && s.contains(t) ? t.dataset.sidebarSectionId ?? null : null;
|
|
220
211
|
}
|
|
221
|
-
function
|
|
212
|
+
function Os(e, s) {
|
|
222
213
|
var v;
|
|
223
214
|
const t = e.querySelector("[data-sidebar-body]") ?? e, i = Array.from(
|
|
224
215
|
t.querySelectorAll(`${Ge},${Ve}`)
|
|
225
|
-
), d = /* @__PURE__ */ new Map([[null, []]]),
|
|
216
|
+
), d = /* @__PURE__ */ new Map([[null, []]]), o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
226
217
|
let u = null;
|
|
227
218
|
for (const p of i) {
|
|
228
219
|
const b = p.dataset.sidebarSectionId;
|
|
229
220
|
if (b !== void 0) {
|
|
230
|
-
d.set(b, []),
|
|
221
|
+
d.set(b, []), o.set(b, p.dataset.sidebarSectionOpen !== "false"), n.set(b, p.dataset.sidebarSectionLabel ?? "");
|
|
231
222
|
continue;
|
|
232
223
|
}
|
|
233
224
|
if (p.dataset.sidebarItemId === s) {
|
|
@@ -246,7 +237,7 @@ function Ps(e, s) {
|
|
|
246
237
|
const b = p.dataset.sidebarSectionId;
|
|
247
238
|
if (b !== void 0) {
|
|
248
239
|
const T = d.get(b) ?? [];
|
|
249
|
-
(!
|
|
240
|
+
(!o.get(b) || T.length === 0) && l.push({
|
|
250
241
|
sectionId: b,
|
|
251
242
|
index: T.length,
|
|
252
243
|
total: c(b),
|
|
@@ -264,7 +255,7 @@ function Ps(e, s) {
|
|
|
264
255
|
continue;
|
|
265
256
|
}
|
|
266
257
|
const x = be(p, t);
|
|
267
|
-
if (x !== null && !
|
|
258
|
+
if (x !== null && !o.get(x)) continue;
|
|
268
259
|
const P = d.get(x) ?? [], L = P.indexOf(p), A = p.dataset.sidebarItemId ?? "";
|
|
269
260
|
l.push({
|
|
270
261
|
sectionId: x,
|
|
@@ -292,14 +283,14 @@ function Ps(e, s) {
|
|
|
292
283
|
originIndex: l.findIndex(
|
|
293
284
|
(p) => fe(p, { sectionId: I, index: j })
|
|
294
285
|
),
|
|
295
|
-
emptySectionIds: [...d.entries()].filter(([p, b]) => p !== null &&
|
|
286
|
+
emptySectionIds: [...d.entries()].filter(([p, b]) => p !== null && o.get(p) && !b.length).map(([p]) => p),
|
|
296
287
|
listEmpty: w.length === 0 && !C,
|
|
297
288
|
sectionLabels: n
|
|
298
289
|
};
|
|
299
290
|
}
|
|
300
|
-
function
|
|
291
|
+
function Ps(e, s) {
|
|
301
292
|
const t = e.querySelector("[data-sidebar-body]") ?? e, i = be(s, t), d = Array.from(t.querySelectorAll(Ve)).filter(
|
|
302
|
-
(
|
|
293
|
+
(o) => o !== s && be(o, t) === i && o.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_FOLLOWING
|
|
303
294
|
).length;
|
|
304
295
|
return { sectionId: i, index: d };
|
|
305
296
|
}
|
|
@@ -314,45 +305,45 @@ function qe(e, s) {
|
|
|
314
305
|
`[data-sidebar-section-id="${CSS.escape(t.sectionId)}"]`
|
|
315
306
|
)) == null ? void 0 : i.querySelector("[data-sidebar-section-heading]")) ?? null;
|
|
316
307
|
}
|
|
317
|
-
function
|
|
308
|
+
function _s(e, s) {
|
|
318
309
|
var i;
|
|
319
310
|
const t = (i = qe(e, s)) == null ? void 0 : i.getBoundingClientRect();
|
|
320
311
|
return t ? s.indicator.kind === "item" ? s.indicator.edge === "before" ? t.top : t.bottom : t.top + t.height / 2 : s.indicator.kind === "item" ? Number.POSITIVE_INFINITY : e.getBoundingClientRect().bottom;
|
|
321
312
|
}
|
|
322
|
-
const
|
|
323
|
-
function
|
|
313
|
+
const Rs = 450, Ls = 6, Ms = 5e3, Ee = 48, Bs = 14;
|
|
314
|
+
function Fs({
|
|
324
315
|
onMoveItem: e,
|
|
325
316
|
enabled: s,
|
|
326
317
|
rootRef: t,
|
|
327
318
|
quietFocusRef: i
|
|
328
319
|
}) {
|
|
329
|
-
const { t: d } = de("ui"),
|
|
320
|
+
const { t: d } = de("ui"), o = ve(), [n, u] = Z(null), c = U(null), l = U([]), w = U(/* @__PURE__ */ new Map()), C = U(/* @__PURE__ */ new Map()), I = U(null), j = U(e);
|
|
330
321
|
j.current = e;
|
|
331
|
-
const v = U(null), p = U(null), b = F((
|
|
332
|
-
c.current =
|
|
333
|
-
}, []), [x, P] = Z(""), L = U(!1), A = F((
|
|
334
|
-
L.current = !L.current, P(L.current ?
|
|
322
|
+
const v = U(null), p = U(null), b = F((a) => {
|
|
323
|
+
c.current = a, u(a);
|
|
324
|
+
}, []), [x, P] = Z(""), L = U(!1), A = F((a) => {
|
|
325
|
+
L.current = !L.current, P(L.current ? a : `${a}`);
|
|
335
326
|
}, []), T = F(
|
|
336
|
-
(
|
|
337
|
-
position:
|
|
338
|
-
total:
|
|
327
|
+
(a) => a.sectionId === null ? d("navigation.sidebar.move.inList", {
|
|
328
|
+
position: a.index + 1,
|
|
329
|
+
total: a.total
|
|
339
330
|
}) : d("navigation.sidebar.move.inSection", {
|
|
340
|
-
section: w.current.get(
|
|
341
|
-
position:
|
|
342
|
-
total:
|
|
331
|
+
section: w.current.get(a.sectionId) ?? "",
|
|
332
|
+
position: a.index + 1,
|
|
333
|
+
total: a.total
|
|
343
334
|
}),
|
|
344
335
|
[d]
|
|
345
336
|
), _ = F(
|
|
346
|
-
(
|
|
337
|
+
(a, S, E) => {
|
|
347
338
|
var B;
|
|
348
339
|
const m = t.current;
|
|
349
340
|
if (!m) return !1;
|
|
350
|
-
const f =
|
|
341
|
+
const f = Os(m, a);
|
|
351
342
|
if (!f || f.originIndex < 0) return !1;
|
|
352
343
|
l.current = f.places, w.current = f.sectionLabels;
|
|
353
344
|
const N = f.places[f.originIndex], D = E.getAttribute("aria-label") ?? ((B = E.textContent) == null ? void 0 : B.trim()) ?? "";
|
|
354
345
|
return b({
|
|
355
|
-
itemId:
|
|
346
|
+
itemId: a,
|
|
356
347
|
label: D,
|
|
357
348
|
via: S,
|
|
358
349
|
origin: N,
|
|
@@ -368,26 +359,26 @@ function Us({
|
|
|
368
359
|
},
|
|
369
360
|
[t, b, A, d, T]
|
|
370
361
|
), K = F(
|
|
371
|
-
(
|
|
362
|
+
(a, S) => {
|
|
372
363
|
const E = c.current;
|
|
373
|
-
!E || fe(E.target,
|
|
364
|
+
!E || fe(E.target, a) || (b({ ...E, target: a }), S && (A(T(a)), requestAnimationFrame(() => {
|
|
374
365
|
var f, N;
|
|
375
366
|
const m = t.current;
|
|
376
|
-
m && ((N = (f = qe(m,
|
|
367
|
+
m && ((N = (f = qe(m, a)) == null ? void 0 : f.scrollIntoView) == null || N.call(f, { block: "nearest" }));
|
|
377
368
|
})));
|
|
378
369
|
},
|
|
379
370
|
[b, A, T, t]
|
|
380
371
|
), Y = F(() => {
|
|
381
372
|
var N, D;
|
|
382
|
-
const
|
|
383
|
-
if (!
|
|
373
|
+
const a = c.current;
|
|
374
|
+
if (!a) return;
|
|
384
375
|
b(null), l.current = [];
|
|
385
|
-
const { itemId: S, origin: E, target: m, label: f } =
|
|
376
|
+
const { itemId: S, origin: E, target: m, label: f } = a;
|
|
386
377
|
fe(E, m) || (I.current = {
|
|
387
378
|
itemId: S,
|
|
388
379
|
sectionId: m.sectionId,
|
|
389
380
|
index: m.index,
|
|
390
|
-
until: Date.now() +
|
|
381
|
+
until: Date.now() + Ms
|
|
391
382
|
}, m.sectionId !== null && ((N = C.current.get(m.sectionId)) == null || N()), (D = j.current) == null || D.call(j, {
|
|
392
383
|
itemId: S,
|
|
393
384
|
toSectionId: m.sectionId,
|
|
@@ -399,18 +390,18 @@ function Us({
|
|
|
399
390
|
})
|
|
400
391
|
);
|
|
401
392
|
}, [b, A, d, T]), k = F(() => {
|
|
402
|
-
const
|
|
403
|
-
|
|
393
|
+
const a = c.current;
|
|
394
|
+
a && (b(null), l.current = [], A(
|
|
404
395
|
d("navigation.sidebar.move.cancelled", {
|
|
405
|
-
item:
|
|
406
|
-
place: T(
|
|
396
|
+
item: a.label,
|
|
397
|
+
place: T(a.origin)
|
|
407
398
|
})
|
|
408
399
|
));
|
|
409
400
|
}, [b, A, d, T]), R = F(
|
|
410
|
-
(
|
|
411
|
-
const E = c.current, m = !
|
|
401
|
+
(a, S) => {
|
|
402
|
+
const E = c.current, m = !a.altKey && !a.ctrlKey && !a.metaKey && !a.shiftKey;
|
|
412
403
|
if (!E) {
|
|
413
|
-
|
|
404
|
+
a.key === " " && m && !a.repeat && (a.preventDefault(), _(S, "keyboard", a.currentTarget));
|
|
414
405
|
return;
|
|
415
406
|
}
|
|
416
407
|
if (E.itemId !== S || E.via !== "keyboard") return;
|
|
@@ -418,25 +409,25 @@ function Us({
|
|
|
418
409
|
const se = f[Math.max(0, Math.min(f.length - 1, B))];
|
|
419
410
|
se && K(se, !0);
|
|
420
411
|
};
|
|
421
|
-
switch (
|
|
412
|
+
switch (a.key) {
|
|
422
413
|
case "ArrowDown":
|
|
423
|
-
|
|
414
|
+
a.preventDefault(), D(N + 1);
|
|
424
415
|
break;
|
|
425
416
|
case "ArrowUp":
|
|
426
|
-
|
|
417
|
+
a.preventDefault(), D(N - 1);
|
|
427
418
|
break;
|
|
428
419
|
case "Home":
|
|
429
|
-
|
|
420
|
+
a.preventDefault(), D(0);
|
|
430
421
|
break;
|
|
431
422
|
case "End":
|
|
432
|
-
|
|
423
|
+
a.preventDefault(), D(f.length - 1);
|
|
433
424
|
break;
|
|
434
425
|
case " ":
|
|
435
426
|
case "Enter":
|
|
436
|
-
|
|
427
|
+
a.preventDefault(), a.repeat || Y();
|
|
437
428
|
break;
|
|
438
429
|
case "Escape":
|
|
439
|
-
|
|
430
|
+
a.preventDefault(), a.stopPropagation(), k();
|
|
440
431
|
break;
|
|
441
432
|
case "Tab":
|
|
442
433
|
k();
|
|
@@ -445,28 +436,28 @@ function Us({
|
|
|
445
436
|
},
|
|
446
437
|
[_, K, Y, k]
|
|
447
438
|
), O = F(
|
|
448
|
-
(
|
|
439
|
+
(a) => {
|
|
449
440
|
const S = c.current;
|
|
450
|
-
(S == null ? void 0 : S.via) === "keyboard" && S.itemId ===
|
|
441
|
+
(S == null ? void 0 : S.via) === "keyboard" && S.itemId === a && k();
|
|
451
442
|
},
|
|
452
443
|
[k]
|
|
453
444
|
), g = F(() => {
|
|
454
445
|
var S;
|
|
455
|
-
const
|
|
456
|
-
|
|
446
|
+
const a = v.current;
|
|
447
|
+
a != null && a.timer && clearTimeout(a.timer), a != null && a.frame && cancelAnimationFrame(a.frame), v.current = null, (S = p.current) == null || S.call(p), p.current = null;
|
|
457
448
|
}, []), M = F(
|
|
458
|
-
(
|
|
459
|
-
if (c.current || v.current || !
|
|
460
|
-
const E =
|
|
461
|
-
pointerId:
|
|
449
|
+
(a, S) => {
|
|
450
|
+
if (c.current || v.current || !a.isPrimary || a.button !== 0) return;
|
|
451
|
+
const E = a.pointerType === "touch", m = {
|
|
452
|
+
pointerId: a.pointerId,
|
|
462
453
|
itemId: S,
|
|
463
|
-
node:
|
|
454
|
+
node: a.currentTarget,
|
|
464
455
|
touch: E,
|
|
465
|
-
startX:
|
|
466
|
-
startY:
|
|
456
|
+
startX: a.clientX,
|
|
457
|
+
startY: a.clientY,
|
|
467
458
|
dragging: !1,
|
|
468
459
|
timer: null,
|
|
469
|
-
lastY:
|
|
460
|
+
lastY: a.clientY,
|
|
470
461
|
frame: 0
|
|
471
462
|
};
|
|
472
463
|
v.current = m;
|
|
@@ -482,7 +473,7 @@ function Us({
|
|
|
482
473
|
if (!V) return;
|
|
483
474
|
let te = null, he = Number.POSITIVE_INFINITY;
|
|
484
475
|
for (const ce of l.current) {
|
|
485
|
-
const ue = Math.abs(
|
|
476
|
+
const ue = Math.abs(_s(V, ce) - z);
|
|
486
477
|
ue < he && (te = ce, he = ue);
|
|
487
478
|
}
|
|
488
479
|
te && K(te, !1);
|
|
@@ -491,9 +482,9 @@ function Us({
|
|
|
491
482
|
if (m.frame = 0, !m.dragging) return;
|
|
492
483
|
const z = (Re = (_e = t.current) == null ? void 0 : _e.querySelector("[data-sidebar-body]")) == null ? void 0 : Re.closest("[data-radix-scroll-area-viewport]");
|
|
493
484
|
if (!z) return;
|
|
494
|
-
const V = z.getBoundingClientRect(), te = V.top +
|
|
485
|
+
const V = z.getBoundingClientRect(), te = V.top + Ee - m.lastY, he = m.lastY - (V.bottom - Ee), ce = Math.max(te, he);
|
|
495
486
|
if (ce <= 0) return;
|
|
496
|
-
const ue = Math.ceil(
|
|
487
|
+
const ue = Math.ceil(Bs * Math.min(1, ce / Ee)), Se = z.scrollTop;
|
|
497
488
|
z.scrollTop += te > 0 ? -ue : ue, z.scrollTop !== Se && (N(m.lastY), m.frame = requestAnimationFrame(D));
|
|
498
489
|
}, B = (z) => {
|
|
499
490
|
if (z.pointerId === m.pointerId) {
|
|
@@ -501,7 +492,7 @@ function Us({
|
|
|
501
492
|
if (Math.hypot(
|
|
502
493
|
z.clientX - m.startX,
|
|
503
494
|
z.clientY - m.startY
|
|
504
|
-
) <
|
|
495
|
+
) < Ls) return;
|
|
505
496
|
if (m.touch) {
|
|
506
497
|
g();
|
|
507
498
|
return;
|
|
@@ -537,26 +528,26 @@ function Us({
|
|
|
537
528
|
};
|
|
538
529
|
window.addEventListener("pointermove", B), window.addEventListener("pointerup", se), window.addEventListener("pointercancel", we), window.addEventListener("keydown", pe, !0), E && (window.addEventListener("contextmenu", X, !0), m.timer = setTimeout(() => {
|
|
539
530
|
m.timer = null, f();
|
|
540
|
-
},
|
|
531
|
+
}, Rs)), p.current = () => {
|
|
541
532
|
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", se), window.removeEventListener("pointercancel", we), window.removeEventListener("keydown", pe, !0), window.removeEventListener("contextmenu", X, !0);
|
|
542
533
|
};
|
|
543
534
|
},
|
|
544
535
|
[_, K, Y, k, g, t]
|
|
545
536
|
);
|
|
546
537
|
ne(() => g, [g]);
|
|
547
|
-
const G = U(null), W = F((
|
|
538
|
+
const G = U(null), W = F((a) => {
|
|
548
539
|
var S;
|
|
549
|
-
(S = v.current) != null && S.dragging &&
|
|
540
|
+
(S = v.current) != null && S.dragging && a.preventDefault();
|
|
550
541
|
}, []), q = F(
|
|
551
|
-
(
|
|
542
|
+
(a) => {
|
|
552
543
|
var S;
|
|
553
|
-
G.current !==
|
|
544
|
+
G.current !== a && ((S = G.current) == null || S.removeEventListener("touchmove", W), G.current = a, a == null || a.addEventListener("touchmove", W, { passive: !1 }));
|
|
554
545
|
},
|
|
555
546
|
[W]
|
|
556
547
|
), J = U(s);
|
|
557
548
|
J.current = s;
|
|
558
549
|
const Q = F(
|
|
559
|
-
(
|
|
550
|
+
(a) => q(a && J.current ? a : null),
|
|
560
551
|
[q]
|
|
561
552
|
);
|
|
562
553
|
ne(() => {
|
|
@@ -564,21 +555,21 @@ function Us({
|
|
|
564
555
|
}, [s, q, t]), ne(() => () => q(null), [q]), ne(() => {
|
|
565
556
|
!s && c.current && k();
|
|
566
557
|
}, [s, k]);
|
|
567
|
-
const ee = F((
|
|
568
|
-
C.current.get(
|
|
558
|
+
const ee = F((a, S) => (C.current.set(a, S), () => {
|
|
559
|
+
C.current.get(a) === S && C.current.delete(a);
|
|
569
560
|
}), []), re = F(() => {
|
|
570
|
-
const
|
|
571
|
-
if (!
|
|
572
|
-
if (Date.now() >
|
|
561
|
+
const a = I.current, S = t.current;
|
|
562
|
+
if (!a || !S) return;
|
|
563
|
+
if (Date.now() > a.until) {
|
|
573
564
|
I.current = null;
|
|
574
565
|
return;
|
|
575
566
|
}
|
|
576
567
|
const E = S.querySelector(
|
|
577
|
-
`[data-sidebar-item-id="${CSS.escape(
|
|
568
|
+
`[data-sidebar-item-id="${CSS.escape(a.itemId)}"]`
|
|
578
569
|
);
|
|
579
570
|
if (!E) return;
|
|
580
571
|
const m = document.activeElement, f = m !== null && m !== document.body && m !== E;
|
|
581
|
-
if (!fe(
|
|
572
|
+
if (!fe(Ps(S, E), a)) {
|
|
582
573
|
f && (I.current = null);
|
|
583
574
|
return;
|
|
584
575
|
}
|
|
@@ -588,7 +579,7 @@ function Us({
|
|
|
588
579
|
context: ye(
|
|
589
580
|
() => s ? {
|
|
590
581
|
enabled: s,
|
|
591
|
-
instructionsId:
|
|
582
|
+
instructionsId: o,
|
|
592
583
|
move: n,
|
|
593
584
|
onItemKeyDown: R,
|
|
594
585
|
onItemPointerDown: M,
|
|
@@ -597,7 +588,7 @@ function Us({
|
|
|
597
588
|
} : { enabled: !1, move: null, registerSection: ee },
|
|
598
589
|
[
|
|
599
590
|
s,
|
|
600
|
-
|
|
591
|
+
o,
|
|
601
592
|
n,
|
|
602
593
|
R,
|
|
603
594
|
M,
|
|
@@ -606,40 +597,40 @@ function Us({
|
|
|
606
597
|
]
|
|
607
598
|
),
|
|
608
599
|
message: x,
|
|
609
|
-
instructionsId:
|
|
600
|
+
instructionsId: o,
|
|
610
601
|
restoreFocus: re,
|
|
611
602
|
touchGuardRef: Q,
|
|
612
603
|
/** True while any move runs: Escape cancels it, not the drawer. */
|
|
613
604
|
cancelIfMoving: () => c.current ? (k(), !0) : !1
|
|
614
605
|
};
|
|
615
606
|
}
|
|
616
|
-
const
|
|
607
|
+
const Ae = ie({
|
|
617
608
|
mode: "expanded",
|
|
618
609
|
density: "default"
|
|
619
|
-
}),
|
|
620
|
-
function
|
|
610
|
+
}), $ = () => ae(Ae), We = ie(null);
|
|
611
|
+
function Us(e) {
|
|
621
612
|
const s = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
622
613
|
let i = { total: 0, open: 0 };
|
|
623
614
|
const d = () => {
|
|
624
|
-
let
|
|
615
|
+
let o = 0;
|
|
625
616
|
s.forEach((n) => {
|
|
626
|
-
n.open && (
|
|
627
|
-
}), (i.total !== s.size || i.open !==
|
|
617
|
+
n.open && (o += 1);
|
|
618
|
+
}), (i.total !== s.size || i.open !== o) && (i = { total: s.size, open: o }, t.forEach((n) => n()));
|
|
628
619
|
};
|
|
629
620
|
return {
|
|
630
|
-
set(
|
|
631
|
-
s.set(
|
|
621
|
+
set(o, n) {
|
|
622
|
+
s.set(o, n), d();
|
|
632
623
|
},
|
|
633
|
-
remove(
|
|
634
|
-
s.delete(
|
|
624
|
+
remove(o) {
|
|
625
|
+
s.delete(o), d();
|
|
635
626
|
},
|
|
636
627
|
// With the host's batch callback, one call carries every section that has
|
|
637
628
|
// a sectionId; uncontrolled ones also set their own state. Without it,
|
|
638
629
|
// each section changes as its own fold button would change it.
|
|
639
|
-
setAll(
|
|
630
|
+
setAll(o) {
|
|
640
631
|
const n = [...s.values()], u = e.current;
|
|
641
632
|
if (!u) {
|
|
642
|
-
n.filter((l) => l.open !==
|
|
633
|
+
n.filter((l) => l.open !== o).forEach((l) => l.setOpen(o));
|
|
643
634
|
return;
|
|
644
635
|
}
|
|
645
636
|
n.sort((l, w) => {
|
|
@@ -648,12 +639,12 @@ function $s(e) {
|
|
|
648
639
|
});
|
|
649
640
|
const c = [];
|
|
650
641
|
for (const l of n)
|
|
651
|
-
l.sectionId !== void 0 ? (c.push(l.sectionId), !l.controlled && l.open !==
|
|
652
|
-
c.length > 0 && u(
|
|
642
|
+
l.sectionId !== void 0 ? (c.push(l.sectionId), !l.controlled && l.open !== o && l.setInner(o)) : l.open !== o && l.setOpen(o);
|
|
643
|
+
c.length > 0 && u(o, c);
|
|
653
644
|
},
|
|
654
|
-
subscribe(
|
|
655
|
-
return t.add(
|
|
656
|
-
t.delete(
|
|
645
|
+
subscribe(o) {
|
|
646
|
+
return t.add(o), () => {
|
|
647
|
+
t.delete(o);
|
|
657
648
|
};
|
|
658
649
|
},
|
|
659
650
|
getSnapshot: () => i
|
|
@@ -668,7 +659,7 @@ const Oe = ie(null), Hs = { total: 0, open: 0 }, Xe = [
|
|
|
668
659
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
669
660
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
670
661
|
].join(" "), Ze = "ui.sidebar.state";
|
|
671
|
-
function
|
|
662
|
+
function $s(e) {
|
|
672
663
|
if (typeof window > "u") return e;
|
|
673
664
|
try {
|
|
674
665
|
const s = window.localStorage.getItem(Ze);
|
|
@@ -677,14 +668,14 @@ function Ks(e) {
|
|
|
677
668
|
}
|
|
678
669
|
return e;
|
|
679
670
|
}
|
|
680
|
-
function
|
|
671
|
+
function Ks(e) {
|
|
681
672
|
if (!(typeof window > "u"))
|
|
682
673
|
try {
|
|
683
674
|
window.localStorage.setItem(Ze, e);
|
|
684
675
|
} catch {
|
|
685
676
|
}
|
|
686
677
|
}
|
|
687
|
-
const Le =
|
|
678
|
+
const Le = oe(
|
|
688
679
|
[
|
|
689
680
|
"ds:flex ds:flex-col",
|
|
690
681
|
// `--sidebar-surface`: the page background in light mode (white-on-white
|
|
@@ -726,7 +717,7 @@ const Le = ae(
|
|
|
726
717
|
},
|
|
727
718
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
728
719
|
}
|
|
729
|
-
),
|
|
720
|
+
), Ys = 192, Vs = 384, Gs = 248, qs = [
|
|
730
721
|
"ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
|
|
731
722
|
"ds:w-[var(--resizable-handle-size)]",
|
|
732
723
|
"ds:cursor-col-resize ds:select-none ds:touch-none",
|
|
@@ -740,14 +731,14 @@ const Le = ae(
|
|
|
740
731
|
"ds:before:[inset-block:0]",
|
|
741
732
|
"ds:before:[inline-size:var(--min-target-size)]",
|
|
742
733
|
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
743
|
-
].join(" "),
|
|
734
|
+
].join(" "), Ws = H(
|
|
744
735
|
({
|
|
745
736
|
state: e,
|
|
746
737
|
defaultState: s = "expanded",
|
|
747
738
|
onStateChange: t,
|
|
748
739
|
density: i = "default",
|
|
749
740
|
open: d,
|
|
750
|
-
onOpenChange:
|
|
741
|
+
onOpenChange: o,
|
|
751
742
|
resizable: n = !1,
|
|
752
743
|
onMoveItem: u,
|
|
753
744
|
onSetAllSectionsOpen: c,
|
|
@@ -759,11 +750,11 @@ const Le = ae(
|
|
|
759
750
|
}, v) => {
|
|
760
751
|
const p = U(c);
|
|
761
752
|
p.current = c;
|
|
762
|
-
const [b] = Z(() =>
|
|
763
|
-
() =>
|
|
753
|
+
const [b] = Z(() => Us(p)), x = /* @__PURE__ */ r(Oe.Provider, { value: b, children: C }), { t: P } = de("ui"), L = e !== void 0, [A, T] = Z(
|
|
754
|
+
() => $s(s)
|
|
764
755
|
), _ = L ? e : A;
|
|
765
756
|
ne(() => {
|
|
766
|
-
L ||
|
|
757
|
+
L || Ks(A);
|
|
767
758
|
}, [A, L]);
|
|
768
759
|
const K = F(
|
|
769
760
|
(f) => {
|
|
@@ -786,27 +777,27 @@ const Le = ae(
|
|
|
786
777
|
}),
|
|
787
778
|
[K, b]
|
|
788
779
|
);
|
|
789
|
-
fs(
|
|
780
|
+
fs(Ds, g, I);
|
|
790
781
|
const M = U(null), G = U(null), W = U(!1), [q, J] = Z(0), Q = F(() => (J((f) => f + 1), () => J((f) => f - 1)), []), { separatorProps: ee, isResizing: re } = ms({
|
|
791
782
|
edge: "inline-end",
|
|
792
783
|
targetRef: M,
|
|
793
784
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
794
|
-
minSize:
|
|
795
|
-
maxSize:
|
|
796
|
-
defaultSize:
|
|
785
|
+
minSize: Ys,
|
|
786
|
+
maxSize: Vs,
|
|
787
|
+
defaultSize: Gs,
|
|
797
788
|
disabled: !n || _ !== "expanded"
|
|
798
|
-
}), le = n && _ === "expanded",
|
|
789
|
+
}), le = n && _ === "expanded", a = Fs({
|
|
799
790
|
onMoveItem: u,
|
|
800
791
|
enabled: u !== void 0 && _ !== "icon",
|
|
801
792
|
rootRef: M,
|
|
802
793
|
quietFocusRef: W
|
|
803
|
-
}), { touchGuardRef: S } =
|
|
804
|
-
() =>
|
|
794
|
+
}), { touchGuardRef: S } = a, E = ye(
|
|
795
|
+
() => He(v, M, S),
|
|
805
796
|
[v, S]
|
|
806
797
|
);
|
|
807
|
-
xe(() =>
|
|
798
|
+
xe(() => a.restoreFocus());
|
|
808
799
|
const m = u !== void 0 ? /* @__PURE__ */ h(Ie, { children: [
|
|
809
|
-
/* @__PURE__ */ r("span", { id:
|
|
800
|
+
/* @__PURE__ */ r("span", { id: a.instructionsId, hidden: !0, children: P("navigation.sidebar.move.instructions") }),
|
|
810
801
|
/* @__PURE__ */ r(
|
|
811
802
|
"span",
|
|
812
803
|
{
|
|
@@ -814,12 +805,12 @@ const Le = ae(
|
|
|
814
805
|
"aria-live": "polite",
|
|
815
806
|
"data-sidebar-move-status": "",
|
|
816
807
|
className: "ds:sr-only",
|
|
817
|
-
children:
|
|
808
|
+
children: a.message
|
|
818
809
|
}
|
|
819
810
|
)
|
|
820
811
|
] }) : null;
|
|
821
812
|
return _ === "overlay" ? /* @__PURE__ */ r(
|
|
822
|
-
|
|
813
|
+
Ae.Provider,
|
|
823
814
|
{
|
|
824
815
|
value: {
|
|
825
816
|
mode: "overlay",
|
|
@@ -828,7 +819,7 @@ const Le = ae(
|
|
|
828
819
|
navElementId: R,
|
|
829
820
|
quietFocusRef: W
|
|
830
821
|
},
|
|
831
|
-
children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(ge.Root, { open: d, onOpenChange:
|
|
822
|
+
children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(ge.Root, { open: d, onOpenChange: o, children: /* @__PURE__ */ h(ge.Portal, { children: [
|
|
832
823
|
/* @__PURE__ */ r(
|
|
833
824
|
ge.Overlay,
|
|
834
825
|
{
|
|
@@ -860,7 +851,7 @@ const Le = ae(
|
|
|
860
851
|
N && N !== document.body || (D = G.current) != null && D.isConnected && (f.preventDefault(), G.current.focus());
|
|
861
852
|
},
|
|
862
853
|
onEscapeKeyDown: (f) => {
|
|
863
|
-
|
|
854
|
+
a.cancelIfMoving() && f.preventDefault();
|
|
864
855
|
},
|
|
865
856
|
"aria-label": Y,
|
|
866
857
|
className: [
|
|
@@ -890,7 +881,7 @@ const Le = ae(
|
|
|
890
881
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
891
882
|
...j,
|
|
892
883
|
children: [
|
|
893
|
-
/* @__PURE__ */ r(
|
|
884
|
+
/* @__PURE__ */ r(ke.Provider, { value: a.context, children: /* @__PURE__ */ r(
|
|
894
885
|
We.Provider,
|
|
895
886
|
{
|
|
896
887
|
value: Q,
|
|
@@ -907,7 +898,7 @@ const Le = ae(
|
|
|
907
898
|
type: "button",
|
|
908
899
|
"aria-label": P("navigation.sidebar.close"),
|
|
909
900
|
className: `ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)] ${Xe}`,
|
|
910
|
-
children: /* @__PURE__ */ r(
|
|
901
|
+
children: /* @__PURE__ */ r($e, { "aria-hidden": "true", className: "ds:size-4" })
|
|
911
902
|
}
|
|
912
903
|
) }) : null
|
|
913
904
|
]
|
|
@@ -916,7 +907,7 @@ const Le = ae(
|
|
|
916
907
|
] }) }) })
|
|
917
908
|
}
|
|
918
909
|
) : /* @__PURE__ */ r(
|
|
919
|
-
|
|
910
|
+
Ae.Provider,
|
|
920
911
|
{
|
|
921
912
|
value: {
|
|
922
913
|
mode: _,
|
|
@@ -943,7 +934,7 @@ const Le = ae(
|
|
|
943
934
|
].filter(Boolean).join(" "),
|
|
944
935
|
...j,
|
|
945
936
|
children: [
|
|
946
|
-
/* @__PURE__ */ r(
|
|
937
|
+
/* @__PURE__ */ r(ke.Provider, { value: a.context, children: x }),
|
|
947
938
|
m,
|
|
948
939
|
le ? /* @__PURE__ */ r(
|
|
949
940
|
"div",
|
|
@@ -951,7 +942,7 @@ const Le = ae(
|
|
|
951
942
|
...ee,
|
|
952
943
|
"aria-label": P("navigation.sidebar.resize"),
|
|
953
944
|
"data-resizing": re ? "" : void 0,
|
|
954
|
-
className:
|
|
945
|
+
className: qs
|
|
955
946
|
}
|
|
956
947
|
) : null
|
|
957
948
|
]
|
|
@@ -961,9 +952,9 @@ const Le = ae(
|
|
|
961
952
|
);
|
|
962
953
|
}
|
|
963
954
|
);
|
|
964
|
-
|
|
965
|
-
const
|
|
966
|
-
const { mode: i } =
|
|
955
|
+
Ws.displayName = "Sidebar";
|
|
956
|
+
const Xs = H(({ className: e, ...s }, t) => {
|
|
957
|
+
const { mode: i } = $();
|
|
967
958
|
return /* @__PURE__ */ r(
|
|
968
959
|
"div",
|
|
969
960
|
{
|
|
@@ -990,8 +981,8 @@ const Zs = $(({ className: e, ...s }, t) => {
|
|
|
990
981
|
}
|
|
991
982
|
);
|
|
992
983
|
});
|
|
993
|
-
|
|
994
|
-
const Je =
|
|
984
|
+
Xs.displayName = "SidebarHeader";
|
|
985
|
+
const Je = oe(
|
|
995
986
|
[
|
|
996
987
|
"ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
|
|
997
988
|
"ds:border ds:border-dashed ds:border-[color:var(--border)]"
|
|
@@ -1005,9 +996,9 @@ const Je = ae(
|
|
|
1005
996
|
},
|
|
1006
997
|
defaultVariants: { active: !1 }
|
|
1007
998
|
}
|
|
1008
|
-
),
|
|
999
|
+
), Zs = H(
|
|
1009
1000
|
({ className: e, children: s, ...t }, i) => {
|
|
1010
|
-
const { navElementId: d } =
|
|
1001
|
+
const { navElementId: d } = $(), { enabled: o, move: n } = ze(), u = o && (n != null && n.listEmpty) ? /* @__PURE__ */ r(
|
|
1011
1002
|
"div",
|
|
1012
1003
|
{
|
|
1013
1004
|
"aria-hidden": "true",
|
|
@@ -1048,9 +1039,9 @@ const Je = ae(
|
|
|
1048
1039
|
);
|
|
1049
1040
|
}
|
|
1050
1041
|
);
|
|
1051
|
-
|
|
1052
|
-
const
|
|
1053
|
-
const { mode: i } =
|
|
1042
|
+
Zs.displayName = "SidebarBody";
|
|
1043
|
+
const Js = H(({ className: e, ...s }, t) => {
|
|
1044
|
+
const { mode: i } = $();
|
|
1054
1045
|
return /* @__PURE__ */ r(
|
|
1055
1046
|
"div",
|
|
1056
1047
|
{
|
|
@@ -1072,8 +1063,8 @@ const Qs = $(({ className: e, ...s }, t) => {
|
|
|
1072
1063
|
}
|
|
1073
1064
|
);
|
|
1074
1065
|
});
|
|
1075
|
-
|
|
1076
|
-
const
|
|
1066
|
+
Js.displayName = "SidebarFooter";
|
|
1067
|
+
const Qs = [
|
|
1077
1068
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
1078
1069
|
// A full target, 44px (48px accessible): the row gains height, the text
|
|
1079
1070
|
// keeps its size, and no hit area overlaps the items around it.
|
|
@@ -1091,7 +1082,7 @@ const et = [
|
|
|
1091
1082
|
"ds:size-4",
|
|
1092
1083
|
"ds:text-[var(--accent)]",
|
|
1093
1084
|
"ds:me-[var(--spacing-xs)]"
|
|
1094
|
-
].join(" "), Be =
|
|
1085
|
+
].join(" "), Be = oe(
|
|
1095
1086
|
"ds:flex ds:items-center ds:rounded-[var(--radius-sm)]",
|
|
1096
1087
|
{
|
|
1097
1088
|
variants: {
|
|
@@ -1102,30 +1093,30 @@ const et = [
|
|
|
1102
1093
|
},
|
|
1103
1094
|
defaultVariants: { dropInto: !1 }
|
|
1104
1095
|
}
|
|
1105
|
-
),
|
|
1096
|
+
), et = [
|
|
1106
1097
|
"ds:flex ds:shrink-0 ds:items-center",
|
|
1107
1098
|
"ds:[&>*]:min-w-[var(--min-target-size)] ds:[&>*]:min-h-[var(--min-target-size)]"
|
|
1108
|
-
].join(" "),
|
|
1099
|
+
].join(" "), st = [
|
|
1109
1100
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] type-meta ds:text-[color:var(--muted-foreground)]",
|
|
1110
1101
|
"ds:[[data-sidebar-section-items]:not(:empty)~&]:hidden"
|
|
1111
|
-
].join(" "),
|
|
1102
|
+
].join(" "), tt = [
|
|
1112
1103
|
"ds:[&:has(+[data-sidebar-item])]:[border-block-end:var(--border-width-hairline)_solid_var(--border)]",
|
|
1113
1104
|
"ds:[&:has(+[data-sidebar-item])]:pb-[var(--spacing-xs)]",
|
|
1114
1105
|
"ds:[&:has(+[data-sidebar-item])]:mb-[var(--spacing-xs)]"
|
|
1115
|
-
].join(" "), Qe = ie(null),
|
|
1106
|
+
].join(" "), Qe = ie(null), rt = [
|
|
1116
1107
|
"ds:size-2 ds:shrink-0 ds:me-[var(--spacing-xs)] ds:rounded-[var(--radius-full)]",
|
|
1117
1108
|
"ds:bg-[var(--primary)] ds:border-[length:var(--border-width-sm)] ds:border-[color:var(--primary)]"
|
|
1118
|
-
].join(" "),
|
|
1109
|
+
].join(" "), nt = "ds:min-w-0 ds:line-clamp-2 ds:[overflow-wrap:anywhere]";
|
|
1119
1110
|
function at({
|
|
1120
1111
|
name: e,
|
|
1121
1112
|
nameRef: s,
|
|
1122
1113
|
children: t
|
|
1123
1114
|
}) {
|
|
1124
|
-
const { navElementId: i, quietFocusRef: d } =
|
|
1115
|
+
const { navElementId: i, quietFocusRef: d } = $(), { move: o } = ze();
|
|
1125
1116
|
if (i === void 0) return t;
|
|
1126
1117
|
const n = (u) => {
|
|
1127
1118
|
const c = s.current;
|
|
1128
|
-
(!(c != null && c.scrollHeight > c.clientHeight) || d != null && d.current ||
|
|
1119
|
+
(!(c != null && c.scrollHeight > c.clientHeight) || d != null && d.current || o !== null) && u.preventDefault();
|
|
1129
1120
|
};
|
|
1130
1121
|
return /* @__PURE__ */ h(y.Root, { children: [
|
|
1131
1122
|
/* @__PURE__ */ r(
|
|
@@ -1151,14 +1142,14 @@ function at({
|
|
|
1151
1142
|
) })
|
|
1152
1143
|
] });
|
|
1153
1144
|
}
|
|
1154
|
-
const es = ie(!1), ss =
|
|
1145
|
+
const es = ie(!1), ss = H(
|
|
1155
1146
|
({
|
|
1156
1147
|
label: e,
|
|
1157
1148
|
icon: s,
|
|
1158
1149
|
collapsible: t = !0,
|
|
1159
1150
|
defaultOpen: i = !0,
|
|
1160
1151
|
open: d,
|
|
1161
|
-
onOpenChange:
|
|
1152
|
+
onOpenChange: o,
|
|
1162
1153
|
sectionId: n,
|
|
1163
1154
|
actions: u,
|
|
1164
1155
|
headingLevel: c = 3,
|
|
@@ -1166,7 +1157,7 @@ const es = ie(!1), ss = $(
|
|
|
1166
1157
|
children: w,
|
|
1167
1158
|
...C
|
|
1168
1159
|
}, I) => {
|
|
1169
|
-
const { t: j } = de("ui"), { mode: v } =
|
|
1160
|
+
const { t: j } = de("ui"), { mode: v } = $(), p = v === "icon", b = ve(), x = ve(), P = U(null), [L, A] = Z(
|
|
1170
1161
|
() => /* @__PURE__ */ new Set()
|
|
1171
1162
|
), T = F((X, pe) => {
|
|
1172
1163
|
A((z) => {
|
|
@@ -1178,11 +1169,11 @@ const es = ie(!1), ss = $(
|
|
|
1178
1169
|
R.current = k;
|
|
1179
1170
|
const O = F(
|
|
1180
1171
|
(X) => {
|
|
1181
|
-
d === void 0 && Y(X),
|
|
1172
|
+
d === void 0 && Y(X), o == null || o(X);
|
|
1182
1173
|
},
|
|
1183
|
-
[d,
|
|
1184
|
-
), g =
|
|
1185
|
-
() =>
|
|
1174
|
+
[d, o]
|
|
1175
|
+
), g = ae(Oe), M = ve(), G = U(null), W = ye(
|
|
1176
|
+
() => He(I, G),
|
|
1186
1177
|
[I]
|
|
1187
1178
|
), q = t && !!e;
|
|
1188
1179
|
xe(() => {
|
|
@@ -1198,7 +1189,7 @@ const es = ie(!1), ss = $(
|
|
|
1198
1189
|
element: () => G.current
|
|
1199
1190
|
});
|
|
1200
1191
|
}, [g, M, q, k, n, d, O]);
|
|
1201
|
-
const { enabled: J, move: Q, registerSection: ee } =
|
|
1192
|
+
const { enabled: J, move: Q, registerSection: ee } = ze(), re = ae(es);
|
|
1202
1193
|
ne(() => {
|
|
1203
1194
|
J && n === void 0 && !re && bs() && console.warn(
|
|
1204
1195
|
`SidebarSection "${e ?? ""}": moves are on but it has no sectionId, so its items cannot move.`
|
|
@@ -1209,12 +1200,12 @@ const es = ie(!1), ss = $(
|
|
|
1209
1200
|
R.current || O(!0);
|
|
1210
1201
|
});
|
|
1211
1202
|
}, [n, ee, O]);
|
|
1212
|
-
const le = J && Q !== null && n !== void 0,
|
|
1203
|
+
const le = J && Q !== null && n !== void 0, a = le && Q.target.indicator.kind === "section" && Q.target.indicator.sectionId === n && !fe(Q.target, Q.origin), S = le && Q.emptySectionIds.includes(n) ? /* @__PURE__ */ r(
|
|
1213
1204
|
"div",
|
|
1214
1205
|
{
|
|
1215
1206
|
"aria-hidden": "true",
|
|
1216
1207
|
"data-sidebar-drop-zone": n,
|
|
1217
|
-
className: Je({ active:
|
|
1208
|
+
className: Je({ active: a })
|
|
1218
1209
|
}
|
|
1219
1210
|
) : null, E = n !== void 0 ? {
|
|
1220
1211
|
"data-sidebar-section-id": n,
|
|
@@ -1225,10 +1216,10 @@ const es = ie(!1), ss = $(
|
|
|
1225
1216
|
{
|
|
1226
1217
|
role: "group",
|
|
1227
1218
|
"aria-label": e ? j("navigation.sidebar.sectionActions", { section: e }) : void 0,
|
|
1228
|
-
className:
|
|
1219
|
+
className: et,
|
|
1229
1220
|
children: u
|
|
1230
1221
|
}
|
|
1231
|
-
) : null, f = _ && !k && L.size > 0, N = e && !p ? /* @__PURE__ */ r("p", { "data-sidebar-section-empty": "", className:
|
|
1222
|
+
) : null, f = _ && !k && L.size > 0, N = e && !p ? /* @__PURE__ */ r("p", { "data-sidebar-section-empty": "", className: st, children: j(J && n !== void 0 ? "navigation.sidebar.section.emptyMove" : "navigation.sidebar.section.empty") }) : null, D = /* @__PURE__ */ r(Ye.Provider, { value: { sectionId: n }, children: /* @__PURE__ */ h(Qe.Provider, { value: T, children: [
|
|
1232
1223
|
/* @__PURE__ */ r("div", { "data-sidebar-section-items": "", className: "ds:contents", children: w }),
|
|
1233
1224
|
N,
|
|
1234
1225
|
S
|
|
@@ -1236,7 +1227,7 @@ const es = ie(!1), ss = $(
|
|
|
1236
1227
|
"ds:flex ds:flex-col",
|
|
1237
1228
|
"ds:gap-[var(--spacing-xs)]",
|
|
1238
1229
|
"ds:mt-[var(--spacing-sm)]",
|
|
1239
|
-
|
|
1230
|
+
tt,
|
|
1240
1231
|
l ?? ""
|
|
1241
1232
|
].filter(Boolean).join(" ");
|
|
1242
1233
|
if (!_) {
|
|
@@ -1305,13 +1296,13 @@ const es = ie(!1), ss = $(
|
|
|
1305
1296
|
{
|
|
1306
1297
|
"data-sidebar-section-heading": "",
|
|
1307
1298
|
className: Be({
|
|
1308
|
-
dropInto:
|
|
1299
|
+
dropInto: a && !k
|
|
1309
1300
|
}),
|
|
1310
1301
|
children: [
|
|
1311
1302
|
/* @__PURE__ */ r(at, { name: e ?? "", nameRef: P, children: /* @__PURE__ */ r("div", { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ r(Ne.Header, { asChild: !0, children: /* @__PURE__ */ r(we, { className: "ds:flex ds:min-w-0 ds:flex-1", children: /* @__PURE__ */ h(
|
|
1312
1303
|
Ne.Trigger,
|
|
1313
1304
|
{
|
|
1314
|
-
className:
|
|
1305
|
+
className: Qs,
|
|
1315
1306
|
"data-holds-current": f ? "" : void 0,
|
|
1316
1307
|
"aria-describedby": f ? x : void 0,
|
|
1317
1308
|
children: [
|
|
@@ -1327,7 +1318,7 @@ const es = ie(!1), ss = $(
|
|
|
1327
1318
|
"span",
|
|
1328
1319
|
{
|
|
1329
1320
|
ref: P,
|
|
1330
|
-
className: `ds:flex-1 ds:text-start ${
|
|
1321
|
+
className: `ds:flex-1 ds:text-start ${nt}`,
|
|
1331
1322
|
children: e
|
|
1332
1323
|
}
|
|
1333
1324
|
),
|
|
@@ -1336,11 +1327,11 @@ const es = ie(!1), ss = $(
|
|
|
1336
1327
|
{
|
|
1337
1328
|
"aria-hidden": "true",
|
|
1338
1329
|
"data-sidebar-section-current": "",
|
|
1339
|
-
className:
|
|
1330
|
+
className: rt
|
|
1340
1331
|
}
|
|
1341
1332
|
) : null,
|
|
1342
1333
|
/* @__PURE__ */ r(
|
|
1343
|
-
|
|
1334
|
+
Ce,
|
|
1344
1335
|
{
|
|
1345
1336
|
"aria-hidden": "true",
|
|
1346
1337
|
className: "ds:size-3 ds:shrink-0 ds:transition-transform ds:group-data-[state=open]/section-label:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
@@ -1379,7 +1370,7 @@ const es = ie(!1), ss = $(
|
|
|
1379
1370
|
}
|
|
1380
1371
|
);
|
|
1381
1372
|
ss.displayName = "SidebarSection";
|
|
1382
|
-
const
|
|
1373
|
+
const ot = [
|
|
1383
1374
|
"ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1384
1375
|
"ds:min-h-[var(--min-target-size)]",
|
|
1385
1376
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -1390,29 +1381,29 @@ const it = [
|
|
|
1390
1381
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1391
1382
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1392
1383
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1393
|
-
].join(" "),
|
|
1384
|
+
].join(" "), it = H(
|
|
1394
1385
|
({
|
|
1395
1386
|
label: e,
|
|
1396
1387
|
icon: s,
|
|
1397
1388
|
children: t,
|
|
1398
1389
|
className: i,
|
|
1399
1390
|
defaultOpen: d,
|
|
1400
|
-
open:
|
|
1391
|
+
open: o,
|
|
1401
1392
|
onOpenChange: n,
|
|
1402
1393
|
...u
|
|
1403
1394
|
}, c) => {
|
|
1404
|
-
const { mode: l } =
|
|
1395
|
+
const { mode: l } = $();
|
|
1405
1396
|
return /* @__PURE__ */ h(
|
|
1406
|
-
|
|
1397
|
+
Te.Root,
|
|
1407
1398
|
{
|
|
1408
1399
|
ref: c,
|
|
1409
1400
|
defaultOpen: d,
|
|
1410
|
-
open:
|
|
1401
|
+
open: o,
|
|
1411
1402
|
onOpenChange: n,
|
|
1412
1403
|
className: i,
|
|
1413
1404
|
...u,
|
|
1414
1405
|
children: [
|
|
1415
|
-
/* @__PURE__ */ h(
|
|
1406
|
+
/* @__PURE__ */ h(Te.Trigger, { className: ot, children: [
|
|
1416
1407
|
s ? /* @__PURE__ */ r(
|
|
1417
1408
|
"span",
|
|
1418
1409
|
{
|
|
@@ -1432,7 +1423,7 @@ const it = [
|
|
|
1432
1423
|
}
|
|
1433
1424
|
),
|
|
1434
1425
|
l !== "icon" ? /* @__PURE__ */ r(
|
|
1435
|
-
|
|
1426
|
+
Ce,
|
|
1436
1427
|
{
|
|
1437
1428
|
"aria-hidden": "true",
|
|
1438
1429
|
className: "ds:size-4 ds:transition-transform ds:group-data-[state=open]:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
@@ -1440,7 +1431,7 @@ const it = [
|
|
|
1440
1431
|
) : null
|
|
1441
1432
|
] }),
|
|
1442
1433
|
/* @__PURE__ */ r(
|
|
1443
|
-
|
|
1434
|
+
Te.Content,
|
|
1444
1435
|
{
|
|
1445
1436
|
className: [
|
|
1446
1437
|
"ds:overflow-hidden",
|
|
@@ -1456,14 +1447,14 @@ const it = [
|
|
|
1456
1447
|
);
|
|
1457
1448
|
}
|
|
1458
1449
|
);
|
|
1459
|
-
|
|
1450
|
+
it.displayName = "SidebarGroup";
|
|
1460
1451
|
const me = [
|
|
1461
1452
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
1462
1453
|
"ds:rounded-[var(--radius-sm)]",
|
|
1463
1454
|
"ds:bg-[var(--foreground)] ds:text-[var(--background)]",
|
|
1464
1455
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)]",
|
|
1465
1456
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1466
|
-
].join(" "),
|
|
1457
|
+
].join(" "), dt = oe(
|
|
1467
1458
|
[
|
|
1468
1459
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
1469
1460
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -1529,7 +1520,7 @@ const me = [
|
|
|
1529
1520
|
"ds:before:h-[length:var(--focus-ring-width)] ds:before:content-['']",
|
|
1530
1521
|
"ds:before:rounded-[var(--radius-full)] ds:before:bg-[var(--primary)]",
|
|
1531
1522
|
"ds:forced-colors:before:bg-[CanvasText]"
|
|
1532
|
-
].join(" "),
|
|
1523
|
+
].join(" "), lt = oe("", {
|
|
1533
1524
|
variants: {
|
|
1534
1525
|
movable: {
|
|
1535
1526
|
true: "ds:select-none ds:[-webkit-touch-callout:none]",
|
|
@@ -1543,14 +1534,14 @@ const me = [
|
|
|
1543
1534
|
}
|
|
1544
1535
|
},
|
|
1545
1536
|
defaultVariants: { movable: !1, moving: !1, drop: "none" }
|
|
1546
|
-
}), ts = ie(null), rs =
|
|
1537
|
+
}), ts = ie(null), rs = H(
|
|
1547
1538
|
({
|
|
1548
1539
|
asChild: e = !1,
|
|
1549
1540
|
isActive: s = !1,
|
|
1550
1541
|
navId: t,
|
|
1551
1542
|
isPinned: i = !1,
|
|
1552
1543
|
onPinChange: d,
|
|
1553
|
-
pinLabel:
|
|
1544
|
+
pinLabel: o,
|
|
1554
1545
|
className: n,
|
|
1555
1546
|
children: u,
|
|
1556
1547
|
"aria-label": c,
|
|
@@ -1560,7 +1551,7 @@ const me = [
|
|
|
1560
1551
|
onBlur: I,
|
|
1561
1552
|
...j
|
|
1562
1553
|
}, v) => {
|
|
1563
|
-
const { mode: p, density: b, quietFocusRef: x, navElementId: P } =
|
|
1554
|
+
const { mode: p, density: b, quietFocusRef: x, navElementId: P } = $(), L = e ? Ue : "a", A = d !== void 0 && p !== "icon", T = ze(), _ = ae(Ye), K = ae(Qe), Y = ve(), k = s || j["aria-current"] === "page";
|
|
1564
1555
|
ne(() => {
|
|
1565
1556
|
if (K)
|
|
1566
1557
|
return K(Y, k), () => K(Y, !1);
|
|
@@ -1594,7 +1585,7 @@ const me = [
|
|
|
1594
1585
|
...w ? { onKeyDown: w } : {},
|
|
1595
1586
|
...C ? { onPointerDown: C } : {},
|
|
1596
1587
|
...I ? { onBlur: I } : {}
|
|
1597
|
-
}, W =
|
|
1588
|
+
}, W = lt({
|
|
1598
1589
|
movable: R !== void 0,
|
|
1599
1590
|
moving: O !== null && O.itemId === R,
|
|
1600
1591
|
drop: M
|
|
@@ -1606,7 +1597,7 @@ const me = [
|
|
|
1606
1597
|
"aria-label": Q,
|
|
1607
1598
|
"data-nav-id": t,
|
|
1608
1599
|
"data-sidebar-item": A ? void 0 : "",
|
|
1609
|
-
className:
|
|
1600
|
+
className: dt({
|
|
1610
1601
|
mode: p,
|
|
1611
1602
|
density: b,
|
|
1612
1603
|
isActive: s,
|
|
@@ -1630,13 +1621,13 @@ const me = [
|
|
|
1630
1621
|
Pe,
|
|
1631
1622
|
{
|
|
1632
1623
|
isPinned: i,
|
|
1633
|
-
label:
|
|
1624
|
+
label: o ?? c ?? "",
|
|
1634
1625
|
onPinChange: d
|
|
1635
1626
|
}
|
|
1636
1627
|
)
|
|
1637
1628
|
]
|
|
1638
1629
|
}
|
|
1639
|
-
) : ee, le = U(null), [
|
|
1630
|
+
) : ee, le = U(null), [a, S] = Z(), E = (f) => {
|
|
1640
1631
|
var B, se;
|
|
1641
1632
|
const N = (B = le.current) == null ? void 0 : B.querySelector(
|
|
1642
1633
|
"[data-sidebar-item-label]"
|
|
@@ -1664,7 +1655,7 @@ const me = [
|
|
|
1664
1655
|
sideOffset: 6,
|
|
1665
1656
|
className: me,
|
|
1666
1657
|
children: [
|
|
1667
|
-
c ??
|
|
1658
|
+
c ?? a,
|
|
1668
1659
|
/* @__PURE__ */ r(y.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
1669
1660
|
]
|
|
1670
1661
|
}
|
|
@@ -1688,7 +1679,7 @@ const me = [
|
|
|
1688
1679
|
}
|
|
1689
1680
|
);
|
|
1690
1681
|
rs.displayName = "SidebarItem";
|
|
1691
|
-
const
|
|
1682
|
+
const ct = H(({ className: e, children: s, ...t }, i) => /* @__PURE__ */ r(
|
|
1692
1683
|
"span",
|
|
1693
1684
|
{
|
|
1694
1685
|
ref: i,
|
|
@@ -1709,9 +1700,9 @@ const ut = $(({ className: e, children: s, ...t }, i) => /* @__PURE__ */ r(
|
|
|
1709
1700
|
children: s
|
|
1710
1701
|
}
|
|
1711
1702
|
));
|
|
1712
|
-
|
|
1713
|
-
const
|
|
1714
|
-
const { mode: d } =
|
|
1703
|
+
ct.displayName = "SidebarItemIcon";
|
|
1704
|
+
const ut = H(({ className: e, children: s, ...t }, i) => {
|
|
1705
|
+
const { mode: d } = $();
|
|
1715
1706
|
return /* @__PURE__ */ r(
|
|
1716
1707
|
"span",
|
|
1717
1708
|
{
|
|
@@ -1729,22 +1720,22 @@ const ft = $(({ className: e, children: s, ...t }, i) => {
|
|
|
1729
1720
|
}
|
|
1730
1721
|
);
|
|
1731
1722
|
});
|
|
1732
|
-
|
|
1733
|
-
const
|
|
1734
|
-
const { mode: d } =
|
|
1723
|
+
ut.displayName = "SidebarItemLabel";
|
|
1724
|
+
const ft = H(({ className: e, children: s, ...t }, i) => {
|
|
1725
|
+
const { mode: d } = $(), o = d === "icon", n = ae(ts);
|
|
1735
1726
|
return ne(() => {
|
|
1736
|
-
if (!n || !
|
|
1727
|
+
if (!n || !o) return;
|
|
1737
1728
|
const u = s == null || s === !1 ? null : String(s).trim() || null;
|
|
1738
1729
|
return n(u), () => n(null);
|
|
1739
|
-
}, [n, s,
|
|
1730
|
+
}, [n, s, o]), /* @__PURE__ */ r(
|
|
1740
1731
|
"span",
|
|
1741
1732
|
{
|
|
1742
1733
|
ref: i,
|
|
1743
|
-
"aria-hidden":
|
|
1734
|
+
"aria-hidden": o ? "true" : void 0,
|
|
1744
1735
|
className: [
|
|
1745
1736
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1746
1737
|
"ds:font-[var(--font-weight-semibold)]",
|
|
1747
|
-
|
|
1738
|
+
o ? [
|
|
1748
1739
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
1749
1740
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
1750
1741
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -1765,8 +1756,8 @@ const mt = $(({ className: e, children: s, ...t }, i) => {
|
|
|
1765
1756
|
}
|
|
1766
1757
|
);
|
|
1767
1758
|
});
|
|
1768
|
-
|
|
1769
|
-
const
|
|
1759
|
+
ft.displayName = "SidebarItemBadge";
|
|
1760
|
+
const mt = oe(
|
|
1770
1761
|
[
|
|
1771
1762
|
"ds:flex ds:items-center",
|
|
1772
1763
|
"ds:text-[var(--foreground)]",
|
|
@@ -1814,17 +1805,17 @@ const pt = ae(
|
|
|
1814
1805
|
},
|
|
1815
1806
|
defaultVariants: { variant: "ghost" }
|
|
1816
1807
|
}
|
|
1817
|
-
),
|
|
1818
|
-
({ logo: e, name: s, showChevron: t = !0, variant: i = "ghost", className: d, ...
|
|
1819
|
-
const { mode: u } =
|
|
1808
|
+
), pt = H(
|
|
1809
|
+
({ logo: e, name: s, showChevron: t = !0, variant: i = "ghost", className: d, ...o }, n) => {
|
|
1810
|
+
const { mode: u } = $(), c = u !== "icon";
|
|
1820
1811
|
return /* @__PURE__ */ h(
|
|
1821
1812
|
"button",
|
|
1822
1813
|
{
|
|
1823
1814
|
ref: n,
|
|
1824
1815
|
type: "button",
|
|
1825
1816
|
"aria-label": s,
|
|
1826
|
-
className: [
|
|
1827
|
-
...
|
|
1817
|
+
className: [mt({ variant: i }), d].filter(Boolean).join(" "),
|
|
1818
|
+
...o,
|
|
1828
1819
|
children: [
|
|
1829
1820
|
/* @__PURE__ */ r(
|
|
1830
1821
|
"span",
|
|
@@ -1837,7 +1828,7 @@ const pt = ae(
|
|
|
1837
1828
|
c ? /* @__PURE__ */ h(Ie, { children: [
|
|
1838
1829
|
/* @__PURE__ */ r("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: s }),
|
|
1839
1830
|
t ? /* @__PURE__ */ r(
|
|
1840
|
-
|
|
1831
|
+
Ce,
|
|
1841
1832
|
{
|
|
1842
1833
|
"aria-hidden": "true",
|
|
1843
1834
|
className: "ds:size-4 ds:shrink-0 ds:rotate-90"
|
|
@@ -1849,7 +1840,7 @@ const pt = ae(
|
|
|
1849
1840
|
);
|
|
1850
1841
|
}
|
|
1851
1842
|
);
|
|
1852
|
-
|
|
1843
|
+
pt.displayName = "SidebarWorkspaceSwitcher";
|
|
1853
1844
|
const ns = [
|
|
1854
1845
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1855
1846
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
@@ -1861,20 +1852,20 @@ const ns = [
|
|
|
1861
1852
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1862
1853
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1863
1854
|
].join(" ");
|
|
1864
|
-
function
|
|
1855
|
+
function as({
|
|
1865
1856
|
asChild: e,
|
|
1866
1857
|
disabled: s,
|
|
1867
1858
|
children: t,
|
|
1868
1859
|
onClickCapture: i,
|
|
1869
1860
|
onAuxClickCapture: d
|
|
1870
1861
|
}) {
|
|
1871
|
-
const
|
|
1862
|
+
const o = e && s, n = o && ds(t) ? t.props : {}, u = (l) => {
|
|
1872
1863
|
s && (l.preventDefault(), l.stopPropagation());
|
|
1873
1864
|
};
|
|
1874
1865
|
return {
|
|
1875
|
-
Comp:
|
|
1866
|
+
Comp: o ? "a" : e ? Ue : "button",
|
|
1876
1867
|
props: {
|
|
1877
|
-
...
|
|
1868
|
+
...o ? { role: "link", tabIndex: 0 } : e ? {} : { type: "button" },
|
|
1878
1869
|
...Object.fromEntries(
|
|
1879
1870
|
Object.entries(n).filter(([l]) => l.startsWith("data-"))
|
|
1880
1871
|
),
|
|
@@ -1895,7 +1886,7 @@ function os({
|
|
|
1895
1886
|
slot: e && !s ? /* @__PURE__ */ r(us, { children: t }) : null
|
|
1896
1887
|
};
|
|
1897
1888
|
}
|
|
1898
|
-
const
|
|
1889
|
+
const vt = oe(
|
|
1899
1890
|
[
|
|
1900
1891
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
1901
1892
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1929,23 +1920,23 @@ const gt = ae(
|
|
|
1929
1920
|
},
|
|
1930
1921
|
defaultVariants: { mode: "expanded" }
|
|
1931
1922
|
}
|
|
1932
|
-
),
|
|
1923
|
+
), gt = H(
|
|
1933
1924
|
({
|
|
1934
1925
|
icon: e,
|
|
1935
1926
|
label: s,
|
|
1936
1927
|
shortcut: t,
|
|
1937
1928
|
asChild: i = !1,
|
|
1938
1929
|
isActive: d = !1,
|
|
1939
|
-
disabled:
|
|
1930
|
+
disabled: o = !1,
|
|
1940
1931
|
className: n,
|
|
1941
1932
|
children: u,
|
|
1942
1933
|
onClickCapture: c,
|
|
1943
1934
|
onAuxClickCapture: l,
|
|
1944
1935
|
...w
|
|
1945
1936
|
}, C) => {
|
|
1946
|
-
const { mode: I } =
|
|
1937
|
+
const { mode: I } = $(), j = I !== "icon", v = as({
|
|
1947
1938
|
asChild: i,
|
|
1948
|
-
disabled:
|
|
1939
|
+
disabled: o,
|
|
1949
1940
|
children: u,
|
|
1950
1941
|
onClickCapture: c,
|
|
1951
1942
|
onAuxClickCapture: l
|
|
@@ -1958,17 +1949,17 @@ const gt = ae(
|
|
|
1958
1949
|
}
|
|
1959
1950
|
), x = j ? /* @__PURE__ */ h(Ie, { children: [
|
|
1960
1951
|
/* @__PURE__ */ r("span", { "data-sidebar-primary-label": "", className: "ds:truncate", children: s }),
|
|
1961
|
-
t && !
|
|
1952
|
+
t && !o ? /* @__PURE__ */ r("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: t }) : null
|
|
1962
1953
|
] }) : null, P = /* @__PURE__ */ h(
|
|
1963
1954
|
p,
|
|
1964
1955
|
{
|
|
1965
1956
|
ref: C,
|
|
1966
1957
|
...v.props,
|
|
1967
1958
|
"aria-label": s,
|
|
1968
|
-
"aria-keyshortcuts":
|
|
1959
|
+
"aria-keyshortcuts": o ? void 0 : Ke(t),
|
|
1969
1960
|
"aria-current": d ? "page" : void 0,
|
|
1970
1961
|
className: [
|
|
1971
|
-
|
|
1962
|
+
vt({ mode: I }),
|
|
1972
1963
|
v.hostClassName,
|
|
1973
1964
|
n
|
|
1974
1965
|
].filter(Boolean).join(" "),
|
|
@@ -1997,8 +1988,8 @@ const gt = ae(
|
|
|
1997
1988
|
] });
|
|
1998
1989
|
}
|
|
1999
1990
|
);
|
|
2000
|
-
|
|
2001
|
-
const
|
|
1991
|
+
gt.displayName = "SidebarPrimaryAction";
|
|
1992
|
+
const bt = [
|
|
2002
1993
|
ns,
|
|
2003
1994
|
"ds:relative ds:no-underline",
|
|
2004
1995
|
// Disabled: the icon fades, not the focus ring; no hover; still focusable.
|
|
@@ -2009,23 +2000,23 @@ const ht = [
|
|
|
2009
2000
|
// shadows) and full-strength ink.
|
|
2010
2001
|
"ds:aria-[current=page]:text-[var(--foreground)] ds:aria-[current=page]:shadow-[inset_0_0_0_var(--border-width-md)_var(--primary)]",
|
|
2011
2002
|
"ds:forced-colors:aria-[current=page]:border-[length:var(--border-width-md)] ds:forced-colors:aria-[current=page]:border-solid ds:forced-colors:aria-[current=page]:border-[color:CanvasText]"
|
|
2012
|
-
].join(" "),
|
|
2003
|
+
].join(" "), os = H(
|
|
2013
2004
|
({
|
|
2014
2005
|
icon: e,
|
|
2015
2006
|
label: s,
|
|
2016
2007
|
shortcut: t,
|
|
2017
2008
|
asChild: i = !1,
|
|
2018
2009
|
isActive: d = !1,
|
|
2019
|
-
disabled:
|
|
2010
|
+
disabled: o = !1,
|
|
2020
2011
|
className: n,
|
|
2021
2012
|
children: u,
|
|
2022
2013
|
onClickCapture: c,
|
|
2023
2014
|
onAuxClickCapture: l,
|
|
2024
2015
|
...w
|
|
2025
2016
|
}, C) => {
|
|
2026
|
-
const { mode: I, navElementId: j, quietFocusRef: v } =
|
|
2017
|
+
const { mode: I, navElementId: j, quietFocusRef: v } = $(), p = as({
|
|
2027
2018
|
asChild: i,
|
|
2028
|
-
disabled:
|
|
2019
|
+
disabled: o,
|
|
2029
2020
|
children: u,
|
|
2030
2021
|
onClickCapture: c,
|
|
2031
2022
|
onAuxClickCapture: l
|
|
@@ -2044,9 +2035,9 @@ const ht = [
|
|
|
2044
2035
|
"data-component": "sidebar-header-action",
|
|
2045
2036
|
...p.props,
|
|
2046
2037
|
"aria-label": s,
|
|
2047
|
-
"aria-keyshortcuts":
|
|
2038
|
+
"aria-keyshortcuts": o ? void 0 : Ke(t),
|
|
2048
2039
|
"aria-current": d ? "page" : void 0,
|
|
2049
|
-
className: [
|
|
2040
|
+
className: [bt, p.hostClassName, n].filter(Boolean).join(" "),
|
|
2050
2041
|
...w,
|
|
2051
2042
|
children: [
|
|
2052
2043
|
/* @__PURE__ */ r(
|
|
@@ -2080,9 +2071,9 @@ const ht = [
|
|
|
2080
2071
|
return j !== void 0 ? x : /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: x });
|
|
2081
2072
|
}
|
|
2082
2073
|
);
|
|
2083
|
-
|
|
2084
|
-
const
|
|
2085
|
-
const { t: d } = de("ui"), { mode:
|
|
2074
|
+
os.displayName = "SidebarHeaderAction";
|
|
2075
|
+
const ht = H(({ onClick: e, disabled: s = !1, ...t }, i) => {
|
|
2076
|
+
const { t: d } = de("ui"), { mode: o } = $(), n = ae(Oe), [{ total: u, open: c }, l] = Z(
|
|
2086
2077
|
() => (n == null ? void 0 : n.getSnapshot()) ?? Hs
|
|
2087
2078
|
);
|
|
2088
2079
|
if (xe(() => {
|
|
@@ -2091,16 +2082,16 @@ const yt = $(({ onClick: e, disabled: s = !1, ...t }, i) => {
|
|
|
2091
2082
|
}, [n]), !n || u === 0) return null;
|
|
2092
2083
|
const w = c > 0;
|
|
2093
2084
|
return /* @__PURE__ */ r(
|
|
2094
|
-
|
|
2085
|
+
os,
|
|
2095
2086
|
{
|
|
2096
2087
|
ref: i,
|
|
2097
|
-
icon: w ? /* @__PURE__ */ r(
|
|
2088
|
+
icon: w ? /* @__PURE__ */ r(Ns, { "aria-hidden": "true", className: "ds:size-4" }) : /* @__PURE__ */ r(xs, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
2098
2089
|
label: d(
|
|
2099
2090
|
w ? "navigation.sidebar.collapseAllSections" : "navigation.sidebar.expandAllSections"
|
|
2100
2091
|
),
|
|
2101
2092
|
"aria-expanded": w,
|
|
2102
2093
|
"data-sidebar-sections-toggle": "",
|
|
2103
|
-
disabled:
|
|
2094
|
+
disabled: o === "icon" || s,
|
|
2104
2095
|
onClick: (C) => {
|
|
2105
2096
|
e == null || e(C), C.defaultPrevented || n.setAll(!w);
|
|
2106
2097
|
},
|
|
@@ -2108,8 +2099,8 @@ const yt = $(({ onClick: e, disabled: s = !1, ...t }, i) => {
|
|
|
2108
2099
|
}
|
|
2109
2100
|
);
|
|
2110
2101
|
});
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2102
|
+
ht.displayName = "SidebarSectionsToggle";
|
|
2103
|
+
const yt = [
|
|
2113
2104
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
2114
2105
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
2115
2106
|
// Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
|
|
@@ -2133,9 +2124,9 @@ const xt = [
|
|
|
2133
2124
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
2134
2125
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
2135
2126
|
"ds:motion-reduce:transition-none"
|
|
2136
|
-
].join(" "), Pe =
|
|
2137
|
-
({ isPinned: e, onPinChange: s, label: t, className: i, onClick: d, ...
|
|
2138
|
-
const { t: u } = de("ui"), { mode: c } =
|
|
2127
|
+
].join(" "), Pe = H(
|
|
2128
|
+
({ isPinned: e, onPinChange: s, label: t, className: i, onClick: d, ...o }, n) => {
|
|
2129
|
+
const { t: u } = de("ui"), { mode: c } = $();
|
|
2139
2130
|
if (c === "icon") return null;
|
|
2140
2131
|
const l = e ? u("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: t }) : u("navigation.sidebar.pinItem", "Pin {{label}}", { label: t });
|
|
2141
2132
|
return /* @__PURE__ */ r(
|
|
@@ -2145,11 +2136,11 @@ const xt = [
|
|
|
2145
2136
|
type: "button",
|
|
2146
2137
|
"aria-label": l,
|
|
2147
2138
|
"aria-pressed": e,
|
|
2148
|
-
className: [
|
|
2139
|
+
className: [yt, i].filter(Boolean).join(" "),
|
|
2149
2140
|
onClick: (w) => {
|
|
2150
2141
|
w.preventDefault(), w.stopPropagation(), s == null || s(!e), d == null || d(w);
|
|
2151
2142
|
},
|
|
2152
|
-
...
|
|
2143
|
+
...o,
|
|
2153
2144
|
children: /* @__PURE__ */ r(
|
|
2154
2145
|
ys,
|
|
2155
2146
|
{
|
|
@@ -2163,8 +2154,8 @@ const xt = [
|
|
|
2163
2154
|
}
|
|
2164
2155
|
);
|
|
2165
2156
|
Pe.displayName = "SidebarPinButton";
|
|
2166
|
-
const is = ie(null),
|
|
2167
|
-
({ heading: e, emptyMessage: s, onReorder: t, className: i, children: d, ...
|
|
2157
|
+
const is = ie(null), xt = () => ae(is), wt = H(
|
|
2158
|
+
({ heading: e, emptyMessage: s, onReorder: t, className: i, children: d, ...o }, n) => {
|
|
2168
2159
|
const { t: u } = de("ui"), c = e ?? u("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [], w = l.length, C = w > 0, [I, j] = Z(null), [v, p] = Z(""), b = U(!1), x = F((L) => {
|
|
2169
2160
|
b.current = !b.current, p(b.current ? L : `${L}`);
|
|
2170
2161
|
}, []), P = ye(
|
|
@@ -2177,7 +2168,7 @@ const is = ie(null), wt = () => oe(is), St = $(
|
|
|
2177
2168
|
ref: n,
|
|
2178
2169
|
label: c,
|
|
2179
2170
|
className: i,
|
|
2180
|
-
...
|
|
2171
|
+
...o,
|
|
2181
2172
|
children: [
|
|
2182
2173
|
C ? l : /* @__PURE__ */ r("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: s }),
|
|
2183
2174
|
/* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: v })
|
|
@@ -2186,8 +2177,8 @@ const is = ie(null), wt = () => oe(is), St = $(
|
|
|
2186
2177
|
) }) });
|
|
2187
2178
|
}
|
|
2188
2179
|
);
|
|
2189
|
-
|
|
2190
|
-
const
|
|
2180
|
+
wt.displayName = "SidebarFavorites";
|
|
2181
|
+
const St = oe(
|
|
2191
2182
|
[
|
|
2192
2183
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
2193
2184
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -2206,7 +2197,7 @@ const Nt = ae(
|
|
|
2206
2197
|
},
|
|
2207
2198
|
defaultVariants: { dragging: !1, dropTarget: !1 }
|
|
2208
2199
|
}
|
|
2209
|
-
),
|
|
2200
|
+
), Nt = [
|
|
2210
2201
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
2211
2202
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
2212
2203
|
"ds:cursor-grab ds:active:cursor-grabbing",
|
|
@@ -2220,21 +2211,21 @@ const Nt = ae(
|
|
|
2220
2211
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2221
2212
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
2222
2213
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
2223
|
-
].join(" "),
|
|
2214
|
+
].join(" "), It = H(
|
|
2224
2215
|
({
|
|
2225
2216
|
index: e,
|
|
2226
2217
|
isActive: s = !1,
|
|
2227
2218
|
asChild: t = !1,
|
|
2228
2219
|
reorderLabel: i,
|
|
2229
2220
|
isPinned: d = !1,
|
|
2230
|
-
onPinChange:
|
|
2221
|
+
onPinChange: o,
|
|
2231
2222
|
pinLabel: n,
|
|
2232
2223
|
"aria-label": u,
|
|
2233
2224
|
className: c,
|
|
2234
2225
|
children: l,
|
|
2235
2226
|
...w
|
|
2236
2227
|
}, C) => {
|
|
2237
|
-
const { t: I } = de("ui"), { mode: j } =
|
|
2228
|
+
const { t: I } = de("ui"), { mode: j } = $(), v = xt(), [p, b] = Z(!1), x = !!(v != null && v.onReorder) && j !== "icon", P = i ?? u ?? "", L = ve(), A = (g, M) => {
|
|
2238
2229
|
if (!(v != null && v.onReorder)) return;
|
|
2239
2230
|
const G = Math.max(0, Math.min(v.count - 1, M));
|
|
2240
2231
|
G !== g && (v.onReorder(g, G), v.announce(
|
|
@@ -2261,7 +2252,7 @@ const Nt = ae(
|
|
|
2261
2252
|
return /* @__PURE__ */ h(
|
|
2262
2253
|
"div",
|
|
2263
2254
|
{
|
|
2264
|
-
className:
|
|
2255
|
+
className: St({
|
|
2265
2256
|
dragging: O,
|
|
2266
2257
|
dropTarget: p && !O
|
|
2267
2258
|
}),
|
|
@@ -2296,17 +2287,17 @@ const Nt = ae(
|
|
|
2296
2287
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
2297
2288
|
{ label: P }
|
|
2298
2289
|
),
|
|
2299
|
-
className:
|
|
2290
|
+
className: Nt,
|
|
2300
2291
|
onKeyDown: T,
|
|
2301
2292
|
children: /* @__PURE__ */ r(hs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
2302
2293
|
}
|
|
2303
2294
|
) : null,
|
|
2304
|
-
|
|
2295
|
+
o && j !== "icon" ? /* @__PURE__ */ r(
|
|
2305
2296
|
Pe,
|
|
2306
2297
|
{
|
|
2307
2298
|
isPinned: d,
|
|
2308
2299
|
label: n ?? u ?? "",
|
|
2309
|
-
onPinChange:
|
|
2300
|
+
onPinChange: o
|
|
2310
2301
|
}
|
|
2311
2302
|
) : null
|
|
2312
2303
|
]
|
|
@@ -2314,8 +2305,8 @@ const Nt = ae(
|
|
|
2314
2305
|
);
|
|
2315
2306
|
}
|
|
2316
2307
|
);
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2308
|
+
It.displayName = "SidebarFavoriteItem";
|
|
2309
|
+
const Ct = oe(
|
|
2319
2310
|
[
|
|
2320
2311
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
2321
2312
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2328,16 +2319,16 @@ const zt = ae(
|
|
|
2328
2319
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
2329
2320
|
"ds:no-underline"
|
|
2330
2321
|
].join(" ")
|
|
2331
|
-
),
|
|
2332
|
-
const { mode: u } =
|
|
2322
|
+
), zt = H(({ avatar: e, name: s, subtitle: t, subtitleLabel: i, className: d, ...o }, n) => {
|
|
2323
|
+
const { mode: u } = $(), c = u !== "icon", l = typeof t == "string" ? t : i;
|
|
2333
2324
|
return /* @__PURE__ */ h(
|
|
2334
2325
|
"button",
|
|
2335
2326
|
{
|
|
2336
2327
|
ref: n,
|
|
2337
2328
|
type: "button",
|
|
2338
2329
|
"aria-label": l ? `${s}, ${l}` : s,
|
|
2339
|
-
className: [
|
|
2340
|
-
...
|
|
2330
|
+
className: [Ct(), d].filter(Boolean).join(" "),
|
|
2331
|
+
...o,
|
|
2341
2332
|
children: [
|
|
2342
2333
|
/* @__PURE__ */ r(
|
|
2343
2334
|
"span",
|
|
@@ -2355,14 +2346,14 @@ const zt = ae(
|
|
|
2355
2346
|
}
|
|
2356
2347
|
);
|
|
2357
2348
|
});
|
|
2358
|
-
|
|
2359
|
-
const
|
|
2360
|
-
const { t:
|
|
2349
|
+
zt.displayName = "SidebarProfilePill";
|
|
2350
|
+
const Tt = H(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
2351
|
+
const { t: o } = de("ui"), { mode: n, density: u, transitionTo: c } = $();
|
|
2361
2352
|
if (n === "overlay") return null;
|
|
2362
2353
|
const l = n === "expanded", w = l ? [
|
|
2363
2354
|
"ds:justify-start",
|
|
2364
2355
|
u === "compact" ? "ds:ps-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-sm)]"
|
|
2365
|
-
].join(" ") : "ds:justify-center", C = s ?? (l ?
|
|
2356
|
+
].join(" ") : "ds:justify-center", C = s ?? (l ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), I = /* @__PURE__ */ r(
|
|
2366
2357
|
"button",
|
|
2367
2358
|
{
|
|
2368
2359
|
ref: d,
|
|
@@ -2375,13 +2366,13 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
|
2375
2366
|
className: [ns, w, e].filter(Boolean).join(" "),
|
|
2376
2367
|
...i,
|
|
2377
2368
|
children: /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center", children: l ? /* @__PURE__ */ r(
|
|
2378
|
-
|
|
2369
|
+
Cs,
|
|
2379
2370
|
{
|
|
2380
2371
|
"aria-hidden": "true",
|
|
2381
2372
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
2382
2373
|
}
|
|
2383
2374
|
) : /* @__PURE__ */ r(
|
|
2384
|
-
|
|
2375
|
+
Ts,
|
|
2385
2376
|
{
|
|
2386
2377
|
"aria-hidden": "true",
|
|
2387
2378
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -2405,9 +2396,9 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
|
2405
2396
|
) })
|
|
2406
2397
|
] });
|
|
2407
2398
|
});
|
|
2408
|
-
|
|
2409
|
-
const
|
|
2410
|
-
const { t: i } = de("ui"), { mode: d, quietFocusRef:
|
|
2399
|
+
Tt.displayName = "SidebarCollapseTrigger";
|
|
2400
|
+
const Et = H(({ className: e, ...s }, t) => {
|
|
2401
|
+
const { t: i } = de("ui"), { mode: d, quietFocusRef: o } = $(), n = ae(We), u = d === "overlay" && n !== null;
|
|
2411
2402
|
if (xe(() => {
|
|
2412
2403
|
if (!(!u || !n))
|
|
2413
2404
|
return n();
|
|
@@ -2419,7 +2410,7 @@ const jt = $(({ className: e, ...s }, t) => {
|
|
|
2419
2410
|
{
|
|
2420
2411
|
asChild: !0,
|
|
2421
2412
|
onFocus: (l) => {
|
|
2422
|
-
|
|
2413
|
+
o != null && o.current && l.preventDefault();
|
|
2423
2414
|
},
|
|
2424
2415
|
children: /* @__PURE__ */ r(ge.Close, { asChild: !0, children: /* @__PURE__ */ r(
|
|
2425
2416
|
"button",
|
|
@@ -2429,7 +2420,7 @@ const jt = $(({ className: e, ...s }, t) => {
|
|
|
2429
2420
|
"aria-label": c,
|
|
2430
2421
|
className: [Xe, e].filter(Boolean).join(" "),
|
|
2431
2422
|
...s,
|
|
2432
|
-
children: /* @__PURE__ */ r(
|
|
2423
|
+
children: /* @__PURE__ */ r($e, { "aria-hidden": "true", className: "ds:size-4" })
|
|
2433
2424
|
}
|
|
2434
2425
|
) })
|
|
2435
2426
|
}
|
|
@@ -2448,8 +2439,8 @@ const jt = $(({ className: e, ...s }, t) => {
|
|
|
2448
2439
|
) })
|
|
2449
2440
|
] });
|
|
2450
2441
|
});
|
|
2451
|
-
|
|
2452
|
-
const
|
|
2442
|
+
Et.displayName = "SidebarCloseTrigger";
|
|
2443
|
+
const jt = oe(
|
|
2453
2444
|
[
|
|
2454
2445
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
2455
2446
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -2480,17 +2471,17 @@ const kt = ae(
|
|
|
2480
2471
|
},
|
|
2481
2472
|
defaultVariants: { mode: "expanded" }
|
|
2482
2473
|
}
|
|
2483
|
-
),
|
|
2484
|
-
const { mode: n } =
|
|
2474
|
+
), kt = H(({ title: e, description: s, icon: t, className: i, ...d }, o) => {
|
|
2475
|
+
const { mode: n } = $(), u = n === "icon", c = (
|
|
2485
2476
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
2486
2477
|
// expanded mode the accessible name comes from the visible contents
|
|
2487
2478
|
// so the description isn't excluded from it.
|
|
2488
2479
|
/* @__PURE__ */ h(
|
|
2489
2480
|
"a",
|
|
2490
2481
|
{
|
|
2491
|
-
ref:
|
|
2482
|
+
ref: o,
|
|
2492
2483
|
"aria-label": u ? e : void 0,
|
|
2493
|
-
className:
|
|
2484
|
+
className: jt({ mode: n, className: i }),
|
|
2494
2485
|
...d,
|
|
2495
2486
|
children: [
|
|
2496
2487
|
/* @__PURE__ */ r(
|
|
@@ -2502,7 +2493,7 @@ const kt = ae(
|
|
|
2502
2493
|
"ds:rounded-[var(--radius-sm)]",
|
|
2503
2494
|
"ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
|
|
2504
2495
|
].join(" "),
|
|
2505
|
-
children: t ?? /* @__PURE__ */ r(
|
|
2496
|
+
children: t ?? /* @__PURE__ */ r(ws, { className: "ds:size-4" })
|
|
2506
2497
|
}
|
|
2507
2498
|
),
|
|
2508
2499
|
u ? null : /* @__PURE__ */ h(Ie, { children: [
|
|
@@ -2515,7 +2506,7 @@ const kt = ae(
|
|
|
2515
2506
|
) : null
|
|
2516
2507
|
] }),
|
|
2517
2508
|
/* @__PURE__ */ r(
|
|
2518
|
-
|
|
2509
|
+
Ce,
|
|
2519
2510
|
{
|
|
2520
2511
|
"aria-hidden": "true",
|
|
2521
2512
|
className: "ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
@@ -2542,30 +2533,30 @@ const kt = ae(
|
|
|
2542
2533
|
) })
|
|
2543
2534
|
] }) : c;
|
|
2544
2535
|
});
|
|
2545
|
-
|
|
2536
|
+
kt.displayName = "SidebarUpgradeChip";
|
|
2546
2537
|
export {
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2538
|
+
Ws as S,
|
|
2539
|
+
Zs as a,
|
|
2540
|
+
Et as b,
|
|
2541
|
+
Tt as c,
|
|
2542
|
+
It as d,
|
|
2543
|
+
wt as e,
|
|
2544
|
+
Js as f,
|
|
2545
|
+
it as g,
|
|
2546
|
+
Xs as h,
|
|
2547
|
+
os as i,
|
|
2557
2548
|
rs as j,
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2549
|
+
ft as k,
|
|
2550
|
+
ct as l,
|
|
2551
|
+
ut as m,
|
|
2561
2552
|
Pe as n,
|
|
2562
|
-
|
|
2563
|
-
|
|
2553
|
+
gt as o,
|
|
2554
|
+
zt as p,
|
|
2564
2555
|
ss as q,
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2556
|
+
ht as r,
|
|
2557
|
+
kt as s,
|
|
2558
|
+
pt as t,
|
|
2559
|
+
Ds as u,
|
|
2560
|
+
$ as v
|
|
2570
2561
|
};
|
|
2571
|
-
//# sourceMappingURL=sidebar-
|
|
2562
|
+
//# sourceMappingURL=sidebar-D5DFYN5K.js.map
|