@alfadocs/ui-kit 1.60.0 → 1.62.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-CZWGQFKV.js → actions-cell-renderer-BXCpK2_0.js} +3 -3
- package/dist/_chunks/{agenda-card-DauvvKX6.js → agenda-card-DR9gDdKp.js} +2 -2
- package/dist/_chunks/{agenda-tray-DU7O5Z7R.js → agenda-tray-DGB1Zup-.js} +3 -3
- package/dist/_chunks/{ai-credits-notice-MBgQXxsx.js → ai-credits-notice-pK9BOmEz.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-BJHutKLE.js → ai-permission-notice-DpRmZ9Q3.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-Dzos37rf.js → ai-prompt-input-DSGSe4LH.js} +2 -2
- package/dist/_chunks/{alert-BhCstf2h.js → alert-DdDpOi-P.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CU3mVL9J.js → alia-sidebar-qe0quZkB.js} +6 -6
- package/dist/_chunks/{anamnesis-card-VjJOUl-t.js → anamnesis-card-CsUBOG32.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-cCj7LPh3.js → anamnesis-summary-card-CMzBLTiN.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-C5F08WT6.js → anamnesis-summary-rows-DFWws7mM.js} +11 -11
- package/dist/_chunks/{antenatal-schedule-timeline-CfNFrej5.js → antenatal-schedule-timeline-DuaAQj1m.js} +2 -2
- package/dist/_chunks/app-frame-DUPEwu4E.js +179 -0
- package/dist/_chunks/app-frame-context-CPszhDDb.js +10 -0
- package/dist/_chunks/{appointment-card-BXQUZlAJ.js → appointment-card-CL32sux-.js} +3 -3
- package/dist/_chunks/{appointment-peek-BvzXHYiD.js → appointment-peek-B5mcDcXt.js} +3 -3
- package/dist/_chunks/{appointment-timeline-r-q97cec.js → appointment-timeline-DaHKV81s.js} +4 -4
- package/dist/_chunks/{appointment-tray-DF_R9ldY.js → appointment-tray-qtpJt8e0.js} +3 -3
- package/dist/_chunks/{audio-recorder-Cssm6jVh.js → audio-recorder-DR-u1qbl.js} +3 -3
- package/dist/_chunks/{auth-form-parts-CravOf0L.js → auth-form-parts-Cmb41LSQ.js} +2 -2
- package/dist/_chunks/{badge-hnBt8o7n.js → badge-BUk4RjTS.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DMG06b2C.js → balance-badge-cell-F7p_ZKEg.js} +5 -5
- package/dist/_chunks/{bishop-score-DxfkcxiV.js → bishop-score-CaNTrikJ.js} +2 -2
- package/dist/_chunks/{bmi-calculator-B4kgPqt5.js → bmi-calculator-DjmQ04Ch.js} +4 -4
- package/dist/_chunks/{booking-CXaqmdF7.js → booking-CGhOtxad.js} +8 -8
- package/dist/_chunks/{button-group-Cfpyu6pc.js → button-group-DCOJhvm3.js} +3 -3
- package/dist/_chunks/{calendar-DNTVaK6b.js → calendar-DCr65Kt1.js} +3 -3
- package/dist/_chunks/{calendar-workspace-UL5xcpWa.js → calendar-workspace-Dvfl9Vf6.js} +29 -29
- package/dist/_chunks/{care-plan-card-DFQbU_Gd.js → care-plan-card-BU3p5cLr.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-bj784KRk.js → care-plan-entry-card-DPJcP34v.js} +4 -4
- package/dist/_chunks/{care-plan-header-DDhyAfVK.js → care-plan-header-CgFjQLBd.js} +3 -3
- package/dist/_chunks/{carousel.agent-Csn24G1k.js → carousel.agent-BaRsN-8H.js} +2 -2
- package/dist/_chunks/chart-DgYHN8Xq.js +991 -0
- package/dist/_chunks/{chat-input-Ck34Pnmp.js → chat-input-HtTbUUD6.js} +2 -2
- package/dist/_chunks/{chat-message-DU0X3Xnl.js → chat-message-fRLZ95O5.js} +2 -2
- package/dist/_chunks/{checkbox--ndmyokr.js → checkbox-BjDv-r3o.js} +2 -2
- package/dist/_chunks/{checkbox-group-B0oZHNT3.js → checkbox-group-Cw2H5qaq.js} +2 -2
- package/dist/_chunks/{clinical-note-card-L6FVM9Gx.js → clinical-note-card-BgURrgL5.js} +3 -3
- package/dist/_chunks/{code-block-DiC4bg-o.js → code-block-vwEv1jEa.js} +2 -2
- package/dist/_chunks/{connection-status-BAnuwayz.js → connection-status--wYsgreh.js} +3 -3
- package/dist/_chunks/{contact-profile-card-JTRbnbxy.js → contact-profile-card-VTCAmQqj.js} +3 -3
- package/dist/_chunks/control-room-rail-DUerqHeo.js +416 -0
- package/dist/_chunks/{cycle-calculator-BuFi6ZJa.js → cycle-calculator-D-rwX9Pj.js} +2 -2
- package/dist/_chunks/dashboard-grid-B2MB7SRS.js +1428 -0
- package/dist/_chunks/{data-table-DAPkhyXO.js → data-table-m7GbLJZy.js} +6 -6
- package/dist/_chunks/{data-table-tabs-2t0cdk0h.js → data-table-tabs-BfrnefV5.js} +3 -3
- package/dist/_chunks/{dependent-selector-DgaAQc-c.js → dependent-selector-DBr1AhLg.js} +3 -3
- package/dist/_chunks/{description-list-CFEw__MT.js → description-list-Q8640NHu.js} +2 -2
- package/dist/_chunks/{dev-bypass-button-dTuUuzsT.js → dev-bypass-button--CPzzRSj.js} +2 -2
- package/dist/_chunks/{document-preview-DYX669jE.js → document-preview-B1dQm292.js} +4 -4
- package/dist/_chunks/{document-scanner-C41n4pNq.js → document-scanner-CVPVLK7z.js} +2 -2
- package/dist/_chunks/{due-date-calculator-yYvX8Ww_.js → due-date-calculator-DTfxFJCM.js} +5 -5
- package/dist/_chunks/{editable-currency-cell-renderer-6LDFAWUE.js → editable-currency-cell-renderer-1ijmzNWh.js} +4 -4
- package/dist/_chunks/{editable-description-D9FsTi8e.js → editable-description-ChGNdYY8.js} +2 -2
- package/dist/_chunks/{editor-overlay-BYkcaLCj.js → editor-overlay-CpVO1-Kk.js} +2 -2
- package/dist/_chunks/{entity-summary-oD_63dlz.js → entity-summary-DXIr5_x2.js} +4 -4
- package/dist/_chunks/{error-summary-BhM8FEkl.js → error-summary-DrUfuKu1.js} +2 -2
- package/dist/_chunks/{face-scheme-C-5V3MsY.js → face-scheme-DAD-mXzM.js} +4 -4
- package/dist/_chunks/{fetal-weight-CHv2winC.js → fetal-weight-DycD_Vqr.js} +2 -2
- package/dist/_chunks/{field-array-dSkD_ePA.js → field-array-BJYc1xSu.js} +2 -2
- package/dist/_chunks/{file-manager-C8bdHsYy.js → file-manager-G0t8MWbE.js} +6 -6
- package/dist/_chunks/{fiscal-code-input-BSWwda0C.js → fiscal-code-input-DwHb2nVW.js} +2 -2
- package/dist/_chunks/{forgot-password-form-CGWV5Q1-.js → forgot-password-form-CgZkEvZy.js} +4 -4
- package/dist/_chunks/{freemium-paywall-DjjVPC-5.js → freemium-paywall-r-z48YaT.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BLccWS_4.js → gestational-age-calculator-BnCAL5a-.js} +5 -5
- package/dist/_chunks/{hcg-doubling-CnrY2OVu.js → hcg-doubling-DVDiqFyp.js} +2 -2
- package/dist/_chunks/{header-BVHAt7Fi.js → header-_TppWBpK.js} +2 -2
- package/dist/_chunks/{header-settings-C200bKyp.js → header-settings-BSH9Gk0J.js} +3 -3
- package/dist/_chunks/{heatmap-CRMr7VWC.js → heatmap-Bb0-M88T.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-C9T8-DcT.js → help-me-write-templates-DFmqnsAa.js} +4 -4
- package/dist/_chunks/{hover-card-DbTmj-ea.js → hover-card-CTNhQXWS.js} +2 -2
- package/dist/_chunks/{icon-button-dNE6ENLn.js → icon-button-C_1TgRiK.js} +2 -2
- package/dist/_chunks/{icon-button-group-Du8IvZek.js → icon-button-group-NIHji7_y.js} +2 -2
- package/dist/_chunks/{icon-picker-D5NdDbCL.js → icon-picker-Dq4O32K8.js} +2 -2
- package/dist/_chunks/{info-tip-DObdz3w3.js → info-tip-cYszyg6h.js} +2 -2
- package/dist/_chunks/{key-value-pair-BNYHAZwD.js → key-value-pair-BscGwZsJ.js} +2 -2
- package/dist/_chunks/{kit-extensions-DI2nHVNw.js → kit-extensions-RnddkrXn.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-DvhzS6lu.js → link-cell-renderer-dtEYlxi2.js} +6 -6
- package/dist/_chunks/{locale-picker-Bu4YE5b2.js → locale-picker-CeveTnDK.js} +3 -3
- package/dist/_chunks/{login-dev-card-DwWWHclZ.js → login-dev-card-PnADNcI9.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-DK2pFMpf.js → marketplace-app-shell-C-2e4eCD.js} +139 -136
- package/dist/_chunks/{message-card-CvZlo3Fn.js → message-card-A3mJNqfy.js} +2 -2
- package/dist/_chunks/{message-tray-DrS_LOed.js → message-tray-Ft6vSr71.js} +3 -3
- package/dist/_chunks/{multi-select-BT23EnSA.js → multi-select-CMaAQQgb.js} +2 -2
- package/dist/_chunks/{note-attachment-Bt2cddsZ.js → note-attachment-DoVWvjWR.js} +2 -2
- package/dist/_chunks/{note-timeline-CX9nAgAR.js → note-timeline-B7l3t5DZ.js} +2 -2
- package/dist/_chunks/{notes-panel-6TElt7jQ.js → notes-panel-CTmvrqQn.js} +7 -7
- package/dist/_chunks/{notification-card-Qrs52HIA.js → notification-card-c2oX8j3F.js} +2 -2
- package/dist/_chunks/{notification-tray-DRm1z97G.js → notification-tray-BR3seWA7.js} +3 -3
- package/dist/_chunks/{operator-hero-C_Khr5IU.js → operator-hero-3_RG4Dkj.js} +2 -2
- package/dist/_chunks/{optical-prescription-DLIAhJ6f.js → optical-prescription-CxfMsbxi.js} +2 -2
- package/dist/_chunks/{panel-header-D_mTdhUp.js → panel-header-BJkaUwnl.js} +2 -2
- package/dist/_chunks/{panel-subview-CjZgdWwO.js → panel-subview-yP4qIbKS.js} +3 -3
- package/dist/_chunks/{patient-details-BjqKBY2x.js → patient-details-BNDS69Zx.js} +4 -4
- package/dist/_chunks/{patient-field-row-BiI0BPPK.js → patient-field-row-BLBi-PjO.js} +7 -7
- package/dist/_chunks/{patient-search-B5R7FyFO.js → patient-search-DOnDUVsl.js} +2 -2
- package/dist/_chunks/{patient-summary-card-BOgnWKRV.js → patient-summary-card-T9umuZJF.js} +8 -8
- package/dist/_chunks/{payment-automation-upsell-39d5ykBi.js → payment-automation-upsell-C8MEu0t6.js} +4 -4
- package/dist/_chunks/{payment-form-v6zZuV1_.js → payment-form-i90DUuNK.js} +2 -2
- package/dist/_chunks/{payment-request-card-E3G4aVt6.js → payment-request-card-BmzNMY2a.js} +4 -4
- package/dist/_chunks/{pdf-viewer-CNQxa4tv.js → pdf-viewer-DJ9VN7cu.js} +2 -2
- package/dist/_chunks/{periodontal-chart-BZ1d6S36.js → periodontal-chart-DCcOEYC6.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-BE5hiQnn.js → periodontal-chart-card-CxdjXFb3.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-6wybid_W.js → periodontal-diagnosis-B9YmmVmM.js} +5 -5
- package/dist/_chunks/{periodontal-risk-chart-CgLwBj5c.js → periodontal-risk-chart-CPy7CNFe.js} +2 -2
- package/dist/_chunks/{permission-matrix-DuTkUHxe.js → permission-matrix-BoQjENGV.js} +3 -3
- package/dist/_chunks/{popover-DQr_tljb.js → popover-4ZVtH_At.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-DPbvYfCs.js → practice-profile-hero-Dfc0F60y.js} +2 -2
- package/dist/_chunks/{practice-results-Cktx7KaC.js → practice-results-B8L9ZmtR.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-26fcvhAx.js → pregnancy-dating-D2XTELiw.js} +5 -5
- package/dist/_chunks/{pregnancy-weight-gain-D8q1IUCT.js → pregnancy-weight-gain-BVvyL-j1.js} +4 -4
- package/dist/_chunks/{privacy-lock-BpVgSgMb.js → privacy-lock-CEYJ8ehu.js} +2 -2
- package/dist/_chunks/{privacy-mask-BfMC57ST.js → privacy-mask-Ch7743uk.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CH4B49ij.js → product-hub-panel-D-UELdo0.js} +2 -2
- package/dist/_chunks/{public-header.agent-BHTDKMsw.js → public-header.agent-DXRA7ebK.js} +3 -3
- package/dist/_chunks/{radio-BBbMdbE_.js → radio-BZQs6_36.js} +2 -2
- package/dist/_chunks/{radio-group-DicxWJXP.js → radio-group-ChIKyeSJ.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-DR0gOeSc.js → radiograph-panel.agent-DDNUo4Ul.js} +4 -4
- package/dist/_chunks/{registration-form-B8IeB9kd.js → registration-form-BQyT_kBX.js} +5 -5
- package/dist/_chunks/{resource-chip-DQeCJzJf.js → resource-chip-DB5jDwUO.js} +2 -2
- package/dist/_chunks/{reviews-panel-CHzDqerd.js → reviews-panel-AvsVgtJu.js} +3 -3
- package/dist/_chunks/{rich-text-editor-BRuTo2hm.js → rich-text-editor-M2gT_E7f.js} +9 -9
- package/dist/_chunks/{sheet-CqvPYNLn.js → sheet-D2PfJl8n.js} +2 -2
- package/dist/_chunks/{sidebar-DhePV1hE.js → sidebar-BS24EnYd.js} +527 -519
- package/dist/_chunks/{sign-document-D4iHS_Ug.js → sign-document-CY7xTXbm.js} +2 -2
- package/dist/_chunks/{signature-request-BH7yKI01.js → signature-request-BMCHy2ZO.js} +5 -5
- package/dist/_chunks/{signature-status-chip-DP3qRijv.js → signature-status-chip-pIoQjvH8.js} +3 -3
- package/dist/_chunks/{signed-out-frame-eaOWHpDr.js → signed-out-frame-D5DzqATh.js} +3 -3
- package/dist/_chunks/{slot-grid-DELa2Nwz.js → slot-grid-dj5f6R2w.js} +2 -2
- package/dist/_chunks/{stat-DmjGfXND.js → stat-D2PNJujA.js} +2 -2
- package/dist/_chunks/{streaming-text-bPDoG7Y3.js → streaming-text-zFViGexf.js} +2 -2
- package/dist/_chunks/{tab-bar-5GppbMGc.js → tab-bar-BEODTG6k.js} +2 -2
- package/dist/_chunks/{tag-CS5cXpfx.js → tag-DOZGz0fT.js} +2 -2
- package/dist/_chunks/{task-card-zaTU1rQa.js → task-card-BS7Uqevr.js} +2 -2
- package/dist/_chunks/{task-editor-CgGcg-2c.js → task-editor-DoiOzNiC.js} +9 -9
- package/dist/_chunks/{task-tray-DGMwogWu.js → task-tray-eQU4KJcA.js} +3 -3
- package/dist/_chunks/{tasks-panel-xGtiEdcj.js → tasks-panel-8nLwBw6P.js} +7 -7
- package/dist/_chunks/{theme-toggle-_cfYEK73.js → theme-toggle-Ctb77x6O.js} +3 -3
- package/dist/_chunks/{toast-CNUydTgT.js → toast-6T519aLz.js} +2 -2
- package/dist/_chunks/tool-rail-C-03rH2I.js +973 -0
- package/dist/_chunks/tooltip-uEBdD1-5.js +178 -0
- package/dist/_chunks/{tooth-scheme-05DsRMA5.js → tooth-scheme-Dkh4JwzT.js} +2 -2
- package/dist/_chunks/{transcript-panel-CjsiDB1K.js → transcript-panel-XudW5l6l.js} +2 -2
- package/dist/_chunks/{treatment-receipt-BSVOfStA.js → treatment-receipt-BdJ36vNP.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-BGVthJFx.js → use-appointment-details-read-Gu0ehyxj.js} +16 -16
- package/dist/_chunks/use-edge-resize-CBtem0j2.js +171 -0
- package/dist/_chunks/{voice-control-panel-DyKEaFxt.js → voice-control-panel-C0BfY23Y.js} +4 -4
- package/dist/_chunks/{warning-stack-CAL9xVo1.js → warning-stack-HYWAytZV.js} +3 -3
- package/dist/_chunks/{widget-picker-CkhoG4Rj.js → widget-picker-DlNPGcnu.js} +2 -2
- package/dist/_chunks/{workflow-map-BUYG1oXU.js → workflow-map-C2B2qIr1.js} +5 -5
- package/dist/agent-catalog.json +49 -2
- package/dist/agent-i18n/en.json +13 -1
- package/dist/components/_shared/use-apex-legend-scroll.d.ts +7 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/app-frame/app-frame-context.d.ts +19 -0
- package/dist/components/app-frame/app-frame.d.ts +3 -0
- package/dist/components/app-frame/index.d.ts +2 -0
- package/dist/components/app-frame/index.js +4 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/chart.d.ts +3 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/control-room-context.d.ts +10 -4
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid-engine.d.ts +16 -4
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +42 -2
- package/dist/components/dashboard-grid/index.d.ts +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-subview/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-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/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/resource-chip/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/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stat/stat.d.ts +7 -2
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-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/toast/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +7 -0
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/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/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-edge-resize.d.ts +5 -1
- package/dist/i18n/locales/ar.d.ts +1 -0
- package/dist/i18n/locales/ar.js +1 -0
- package/dist/i18n/locales/de.d.ts +1 -0
- package/dist/i18n/locales/de.js +1 -0
- package/dist/i18n/locales/el.d.ts +1 -0
- package/dist/i18n/locales/el.js +1 -0
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/en.js +1 -0
- package/dist/i18n/locales/es.d.ts +1 -0
- package/dist/i18n/locales/es.js +1 -0
- package/dist/i18n/locales/fr.d.ts +1 -0
- package/dist/i18n/locales/fr.js +1 -0
- package/dist/i18n/locales/hi.d.ts +1 -0
- package/dist/i18n/locales/hi.js +1 -0
- package/dist/i18n/locales/it.d.ts +1 -0
- package/dist/i18n/locales/it.js +1 -0
- package/dist/i18n/locales/ja.d.ts +1 -0
- package/dist/i18n/locales/ja.js +1 -0
- package/dist/i18n/locales/nl.d.ts +1 -0
- package/dist/i18n/locales/nl.js +1 -0
- package/dist/i18n/locales/pl.d.ts +1 -0
- package/dist/i18n/locales/pl.js +1 -0
- package/dist/i18n/locales/pt.d.ts +1 -0
- package/dist/i18n/locales/pt.js +1 -0
- package/dist/i18n/locales/ro.d.ts +1 -0
- package/dist/i18n/locales/ro.js +1 -0
- package/dist/i18n/locales/ru.d.ts +1 -0
- package/dist/i18n/locales/ru.js +1 -0
- package/dist/i18n/locales/sq.d.ts +1 -0
- package/dist/i18n/locales/sq.js +1 -0
- package/dist/i18n/locales/sv.d.ts +1 -0
- package/dist/i18n/locales/sv.js +1 -0
- package/dist/i18n/locales/tr.d.ts +1 -0
- package/dist/i18n/locales/tr.js +1 -0
- package/dist/i18n/locales/zh.d.ts +1 -0
- package/dist/i18n/locales/zh.js +1 -0
- package/dist/index.js +778 -776
- package/dist/locales/ar.json +1 -0
- package/dist/locales/de.json +1 -0
- package/dist/locales/el.json +1 -0
- package/dist/locales/en.json +1 -0
- package/dist/locales/es.json +1 -0
- package/dist/locales/fr.json +1 -0
- package/dist/locales/hi.json +1 -0
- package/dist/locales/it.json +1 -0
- package/dist/locales/ja.json +1 -0
- package/dist/locales/nl.json +1 -0
- package/dist/locales/pl.json +1 -0
- package/dist/locales/pt.json +1 -0
- package/dist/locales/ro.json +1 -0
- package/dist/locales/ru.json +1 -0
- package/dist/locales/sq.json +1 -0
- package/dist/locales/sv.json +1 -0
- package/dist/locales/tr.json +1 -0
- package/dist/locales/zh.json +1 -0
- 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/help-me-write-templates/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/marketplace-app-shell/marketplace-app-shell.d.ts +3 -0
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +8 -1
- package/package.json +1 -1
- package/dist/_chunks/app-frame-CqmDh2v5.js +0 -134
- package/dist/_chunks/chart-D7PbNO_M.js +0 -920
- package/dist/_chunks/control-room-rail-BbBEIdws.js +0 -379
- package/dist/_chunks/dashboard-grid-DeNEltwI.js +0 -933
- package/dist/_chunks/tool-rail-Blgibz0a.js +0 -816
- package/dist/_chunks/tooltip-Cp-PLePW.js +0 -119
- package/dist/_chunks/use-edge-resize-DHbyQwu8.js +0 -149
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { useId as ve, useState as
|
|
3
|
-
import * 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 oe, forwardRef as $, isValidElement as ds } from "react";
|
|
3
|
+
import * as ge from "@radix-ui/react-dialog";
|
|
4
4
|
import * as Ee 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 ae } from "./index-D2ZczOXr.js";
|
|
11
11
|
import { useTranslation as de } from "react-i18next";
|
|
12
12
|
import { u as fs } from "./registry-DvAUVLHh.js";
|
|
13
|
-
import { u as ms } from "./use-edge-resize-
|
|
13
|
+
import { u as ms } from "./use-edge-resize-CBtem0j2.js";
|
|
14
14
|
import { c as $e } from "./compose-refs-C0k0tdqF.js";
|
|
15
15
|
import { a as ps, b as vs, d as gs } from "./input-surface-iBmxVBfr.js";
|
|
16
|
-
import { u as
|
|
16
|
+
import { u as xe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
17
17
|
import { i as bs } from "./is-development-CLUAnsU7.js";
|
|
18
18
|
import { X as He } from "./x-B5YnXwCz.js";
|
|
19
19
|
import { c as Ce } from "./createLucideIcon-DhHxpK9K.js";
|
|
@@ -212,49 +212,49 @@ const Os = {
|
|
|
212
212
|
}, Ae = ie({
|
|
213
213
|
enabled: !1,
|
|
214
214
|
move: null
|
|
215
|
-
}), Te = () =>
|
|
216
|
-
function
|
|
215
|
+
}), Te = () => oe(Ae), 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
|
+
function be(e, s) {
|
|
217
217
|
var i;
|
|
218
218
|
const t = (i = e.parentElement) == null ? void 0 : i.closest(Ge);
|
|
219
219
|
return t && s.contains(t) ? t.dataset.sidebarSectionId ?? null : null;
|
|
220
220
|
}
|
|
221
221
|
function Ps(e, s) {
|
|
222
|
-
var
|
|
222
|
+
var v;
|
|
223
223
|
const t = e.querySelector("[data-sidebar-body]") ?? e, i = Array.from(
|
|
224
224
|
t.querySelectorAll(`${Ge},${Ve}`)
|
|
225
225
|
), d = /* @__PURE__ */ new Map([[null, []]]), a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
226
226
|
let u = null;
|
|
227
|
-
for (const
|
|
228
|
-
const
|
|
229
|
-
if (
|
|
230
|
-
d.set(
|
|
227
|
+
for (const p of i) {
|
|
228
|
+
const b = p.dataset.sidebarSectionId;
|
|
229
|
+
if (b !== void 0) {
|
|
230
|
+
d.set(b, []), a.set(b, p.dataset.sidebarSectionOpen !== "false"), n.set(b, p.dataset.sidebarSectionLabel ?? "");
|
|
231
231
|
continue;
|
|
232
232
|
}
|
|
233
|
-
if (
|
|
234
|
-
u =
|
|
233
|
+
if (p.dataset.sidebarItemId === s) {
|
|
234
|
+
u = p;
|
|
235
235
|
continue;
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
(
|
|
237
|
+
const x = be(p, t);
|
|
238
|
+
(v = d.get(x)) == null || v.push(p);
|
|
239
239
|
}
|
|
240
240
|
if (!u) return null;
|
|
241
|
-
const c = (
|
|
242
|
-
var
|
|
243
|
-
return (((
|
|
244
|
-
}, l = [],
|
|
245
|
-
for (const
|
|
246
|
-
const
|
|
247
|
-
if (
|
|
248
|
-
const
|
|
249
|
-
(!a.get(
|
|
250
|
-
sectionId:
|
|
251
|
-
index:
|
|
252
|
-
total: c(
|
|
253
|
-
indicator: { kind: "section", sectionId:
|
|
241
|
+
const c = (p) => {
|
|
242
|
+
var b;
|
|
243
|
+
return (((b = d.get(p)) == null ? void 0 : b.length) ?? 0) + 1;
|
|
244
|
+
}, l = [], w = d.get(null) ?? [], C = w.length === 0 && be(u, t) === null;
|
|
245
|
+
for (const p of i) {
|
|
246
|
+
const b = p.dataset.sidebarSectionId;
|
|
247
|
+
if (b !== void 0) {
|
|
248
|
+
const T = d.get(b) ?? [];
|
|
249
|
+
(!a.get(b) || T.length === 0) && l.push({
|
|
250
|
+
sectionId: b,
|
|
251
|
+
index: T.length,
|
|
252
|
+
total: c(b),
|
|
253
|
+
indicator: { kind: "section", sectionId: b }
|
|
254
254
|
});
|
|
255
255
|
continue;
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
257
|
+
if (p === u) {
|
|
258
258
|
C && l.push({
|
|
259
259
|
sectionId: null,
|
|
260
260
|
index: 0,
|
|
@@ -263,43 +263,43 @@ function Ps(e, s) {
|
|
|
263
263
|
});
|
|
264
264
|
continue;
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
const P = d.get(
|
|
266
|
+
const x = be(p, t);
|
|
267
|
+
if (x !== null && !a.get(x)) continue;
|
|
268
|
+
const P = d.get(x) ?? [], L = P.indexOf(p), A = p.dataset.sidebarItemId ?? "";
|
|
269
269
|
l.push({
|
|
270
|
-
sectionId:
|
|
271
|
-
index:
|
|
272
|
-
total: c(
|
|
273
|
-
indicator: { kind: "item", itemId:
|
|
274
|
-
}),
|
|
275
|
-
sectionId:
|
|
276
|
-
index:
|
|
277
|
-
total: c(
|
|
278
|
-
indicator: { kind: "item", itemId:
|
|
270
|
+
sectionId: x,
|
|
271
|
+
index: L,
|
|
272
|
+
total: c(x),
|
|
273
|
+
indicator: { kind: "item", itemId: A, edge: "before" }
|
|
274
|
+
}), L === P.length - 1 && l.push({
|
|
275
|
+
sectionId: x,
|
|
276
|
+
index: L + 1,
|
|
277
|
+
total: c(x),
|
|
278
|
+
indicator: { kind: "item", itemId: A, edge: "after" }
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
w.length === 0 && !C && l.push({
|
|
282
282
|
sectionId: null,
|
|
283
283
|
index: 0,
|
|
284
284
|
total: 1,
|
|
285
285
|
indicator: { kind: "list" }
|
|
286
286
|
});
|
|
287
|
-
const
|
|
288
|
-
(
|
|
287
|
+
const I = be(u, t), j = (d.get(I) ?? []).filter(
|
|
288
|
+
(p) => p.compareDocumentPosition(u) & Node.DOCUMENT_POSITION_FOLLOWING
|
|
289
289
|
).length;
|
|
290
290
|
return {
|
|
291
291
|
places: l,
|
|
292
292
|
originIndex: l.findIndex(
|
|
293
|
-
(
|
|
293
|
+
(p) => fe(p, { sectionId: I, index: j })
|
|
294
294
|
),
|
|
295
|
-
emptySectionIds: [...d.entries()].filter(([
|
|
296
|
-
listEmpty:
|
|
295
|
+
emptySectionIds: [...d.entries()].filter(([p, b]) => p !== null && a.get(p) && !b.length).map(([p]) => p),
|
|
296
|
+
listEmpty: w.length === 0 && !C,
|
|
297
297
|
sectionLabels: n
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function _s(e, s) {
|
|
301
|
-
const t = e.querySelector("[data-sidebar-body]") ?? e, i =
|
|
302
|
-
(a) => a !== s &&
|
|
301
|
+
const t = e.querySelector("[data-sidebar-body]") ?? e, i = be(s, t), d = Array.from(t.querySelectorAll(Ve)).filter(
|
|
302
|
+
(a) => a !== s && be(a, t) === i && a.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_FOLLOWING
|
|
303
303
|
).length;
|
|
304
304
|
return { sectionId: i, index: d };
|
|
305
305
|
}
|
|
@@ -326,142 +326,142 @@ function Us({
|
|
|
326
326
|
rootRef: t,
|
|
327
327
|
quietFocusRef: i
|
|
328
328
|
}) {
|
|
329
|
-
const { t: d } = de("ui"), a = ve(), [n, u] =
|
|
330
|
-
|
|
331
|
-
const
|
|
329
|
+
const { t: d } = de("ui"), a = 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
|
+
j.current = e;
|
|
331
|
+
const v = U(null), p = U(null), b = F((o) => {
|
|
332
332
|
c.current = o, u(o);
|
|
333
|
-
}, []), [
|
|
334
|
-
|
|
335
|
-
}, []),
|
|
333
|
+
}, []), [x, P] = Z(""), L = U(!1), A = F((o) => {
|
|
334
|
+
L.current = !L.current, P(L.current ? o : `${o}`);
|
|
335
|
+
}, []), T = F(
|
|
336
336
|
(o) => o.sectionId === null ? d("navigation.sidebar.move.inList", {
|
|
337
337
|
position: o.index + 1,
|
|
338
338
|
total: o.total
|
|
339
339
|
}) : d("navigation.sidebar.move.inSection", {
|
|
340
|
-
section:
|
|
340
|
+
section: w.current.get(o.sectionId) ?? "",
|
|
341
341
|
position: o.index + 1,
|
|
342
342
|
total: o.total
|
|
343
343
|
}),
|
|
344
344
|
[d]
|
|
345
|
-
),
|
|
346
|
-
(o,
|
|
345
|
+
), _ = F(
|
|
346
|
+
(o, S, E) => {
|
|
347
347
|
var B;
|
|
348
348
|
const m = t.current;
|
|
349
349
|
if (!m) return !1;
|
|
350
350
|
const f = Ps(m, o);
|
|
351
351
|
if (!f || f.originIndex < 0) return !1;
|
|
352
|
-
l.current = f.places,
|
|
353
|
-
const
|
|
354
|
-
return
|
|
352
|
+
l.current = f.places, w.current = f.sectionLabels;
|
|
353
|
+
const N = f.places[f.originIndex], D = E.getAttribute("aria-label") ?? ((B = E.textContent) == null ? void 0 : B.trim()) ?? "";
|
|
354
|
+
return b({
|
|
355
355
|
itemId: o,
|
|
356
|
-
label:
|
|
357
|
-
via:
|
|
358
|
-
origin:
|
|
359
|
-
target:
|
|
356
|
+
label: D,
|
|
357
|
+
via: S,
|
|
358
|
+
origin: N,
|
|
359
|
+
target: N,
|
|
360
360
|
emptySectionIds: f.emptySectionIds,
|
|
361
361
|
listEmpty: f.listEmpty
|
|
362
|
-
}),
|
|
362
|
+
}), A(
|
|
363
363
|
d("navigation.sidebar.move.pickedUp", {
|
|
364
|
-
item:
|
|
365
|
-
place:
|
|
364
|
+
item: D,
|
|
365
|
+
place: T(N)
|
|
366
366
|
})
|
|
367
367
|
), !0;
|
|
368
368
|
},
|
|
369
|
-
[t,
|
|
369
|
+
[t, b, A, d, T]
|
|
370
370
|
), K = F(
|
|
371
|
-
(o,
|
|
372
|
-
const
|
|
373
|
-
!
|
|
374
|
-
var f,
|
|
371
|
+
(o, S) => {
|
|
372
|
+
const E = c.current;
|
|
373
|
+
!E || fe(E.target, o) || (b({ ...E, target: o }), S && (A(T(o)), requestAnimationFrame(() => {
|
|
374
|
+
var f, N;
|
|
375
375
|
const m = t.current;
|
|
376
|
-
m && ((
|
|
376
|
+
m && ((N = (f = qe(m, o)) == null ? void 0 : f.scrollIntoView) == null || N.call(f, { block: "nearest" }));
|
|
377
377
|
})));
|
|
378
378
|
},
|
|
379
|
-
[
|
|
380
|
-
),
|
|
381
|
-
var
|
|
379
|
+
[b, A, T, t]
|
|
380
|
+
), Y = F(() => {
|
|
381
|
+
var N, D;
|
|
382
382
|
const o = c.current;
|
|
383
383
|
if (!o) return;
|
|
384
|
-
|
|
385
|
-
const { itemId:
|
|
386
|
-
fe(
|
|
387
|
-
itemId:
|
|
384
|
+
b(null), l.current = [];
|
|
385
|
+
const { itemId: S, origin: E, target: m, label: f } = o;
|
|
386
|
+
fe(E, m) || (I.current = {
|
|
387
|
+
itemId: S,
|
|
388
388
|
sectionId: m.sectionId,
|
|
389
389
|
index: m.index,
|
|
390
390
|
until: Date.now() + Bs
|
|
391
|
-
}, m.sectionId !== null && ((
|
|
392
|
-
itemId:
|
|
391
|
+
}, m.sectionId !== null && ((N = C.current.get(m.sectionId)) == null || N()), (D = j.current) == null || D.call(j, {
|
|
392
|
+
itemId: S,
|
|
393
393
|
toSectionId: m.sectionId,
|
|
394
394
|
index: m.index
|
|
395
|
-
})),
|
|
395
|
+
})), A(
|
|
396
396
|
d("navigation.sidebar.move.dropped", {
|
|
397
397
|
item: f,
|
|
398
|
-
place:
|
|
398
|
+
place: T(m)
|
|
399
399
|
})
|
|
400
400
|
);
|
|
401
|
-
}, [
|
|
401
|
+
}, [b, A, d, T]), k = F(() => {
|
|
402
402
|
const o = c.current;
|
|
403
|
-
o && (
|
|
403
|
+
o && (b(null), l.current = [], A(
|
|
404
404
|
d("navigation.sidebar.move.cancelled", {
|
|
405
405
|
item: o.label,
|
|
406
|
-
place:
|
|
406
|
+
place: T(o.origin)
|
|
407
407
|
})
|
|
408
408
|
));
|
|
409
|
-
}, [
|
|
410
|
-
(o,
|
|
411
|
-
const
|
|
412
|
-
if (!
|
|
413
|
-
o.key === " " && m && !o.repeat && (o.preventDefault(),
|
|
409
|
+
}, [b, A, d, T]), R = F(
|
|
410
|
+
(o, S) => {
|
|
411
|
+
const E = c.current, m = !o.altKey && !o.ctrlKey && !o.metaKey && !o.shiftKey;
|
|
412
|
+
if (!E) {
|
|
413
|
+
o.key === " " && m && !o.repeat && (o.preventDefault(), _(S, "keyboard", o.currentTarget));
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
if (
|
|
417
|
-
const f = l.current,
|
|
418
|
-
const
|
|
419
|
-
|
|
416
|
+
if (E.itemId !== S || E.via !== "keyboard") return;
|
|
417
|
+
const f = l.current, N = f.findIndex((B) => fe(B, E.target)), D = (B) => {
|
|
418
|
+
const se = f[Math.max(0, Math.min(f.length - 1, B))];
|
|
419
|
+
se && K(se, !0);
|
|
420
420
|
};
|
|
421
421
|
switch (o.key) {
|
|
422
422
|
case "ArrowDown":
|
|
423
|
-
o.preventDefault(),
|
|
423
|
+
o.preventDefault(), D(N + 1);
|
|
424
424
|
break;
|
|
425
425
|
case "ArrowUp":
|
|
426
|
-
o.preventDefault(),
|
|
426
|
+
o.preventDefault(), D(N - 1);
|
|
427
427
|
break;
|
|
428
428
|
case "Home":
|
|
429
|
-
o.preventDefault(),
|
|
429
|
+
o.preventDefault(), D(0);
|
|
430
430
|
break;
|
|
431
431
|
case "End":
|
|
432
|
-
o.preventDefault(),
|
|
432
|
+
o.preventDefault(), D(f.length - 1);
|
|
433
433
|
break;
|
|
434
434
|
case " ":
|
|
435
435
|
case "Enter":
|
|
436
|
-
o.preventDefault(), o.repeat ||
|
|
436
|
+
o.preventDefault(), o.repeat || Y();
|
|
437
437
|
break;
|
|
438
438
|
case "Escape":
|
|
439
|
-
o.preventDefault(), o.stopPropagation(),
|
|
439
|
+
o.preventDefault(), o.stopPropagation(), k();
|
|
440
440
|
break;
|
|
441
441
|
case "Tab":
|
|
442
|
-
|
|
442
|
+
k();
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
|
-
[
|
|
447
|
-
),
|
|
446
|
+
[_, K, Y, k]
|
|
447
|
+
), O = F(
|
|
448
448
|
(o) => {
|
|
449
|
-
const
|
|
450
|
-
(
|
|
449
|
+
const S = c.current;
|
|
450
|
+
(S == null ? void 0 : S.via) === "keyboard" && S.itemId === o && k();
|
|
451
451
|
},
|
|
452
|
-
[
|
|
453
|
-
),
|
|
454
|
-
var
|
|
455
|
-
const o =
|
|
456
|
-
o != null && o.timer && clearTimeout(o.timer), o != null && o.frame && cancelAnimationFrame(o.frame),
|
|
457
|
-
}, []),
|
|
458
|
-
(o,
|
|
459
|
-
if (c.current ||
|
|
460
|
-
const
|
|
452
|
+
[k]
|
|
453
|
+
), g = F(() => {
|
|
454
|
+
var S;
|
|
455
|
+
const o = v.current;
|
|
456
|
+
o != null && o.timer && clearTimeout(o.timer), o != null && o.frame && cancelAnimationFrame(o.frame), v.current = null, (S = p.current) == null || S.call(p), p.current = null;
|
|
457
|
+
}, []), M = F(
|
|
458
|
+
(o, S) => {
|
|
459
|
+
if (c.current || v.current || !o.isPrimary || o.button !== 0) return;
|
|
460
|
+
const E = o.pointerType === "touch", m = {
|
|
461
461
|
pointerId: o.pointerId,
|
|
462
|
-
itemId:
|
|
462
|
+
itemId: S,
|
|
463
463
|
node: o.currentTarget,
|
|
464
|
-
touch:
|
|
464
|
+
touch: E,
|
|
465
465
|
startX: o.clientX,
|
|
466
466
|
startY: o.clientY,
|
|
467
467
|
dragging: !1,
|
|
@@ -469,58 +469,58 @@ function Us({
|
|
|
469
469
|
lastY: o.clientY,
|
|
470
470
|
frame: 0
|
|
471
471
|
};
|
|
472
|
-
|
|
472
|
+
v.current = m;
|
|
473
473
|
const f = () => {
|
|
474
|
-
var
|
|
475
|
-
if (!
|
|
476
|
-
|
|
474
|
+
var z, V;
|
|
475
|
+
if (!_(m.itemId, "pointer", m.node)) {
|
|
476
|
+
g();
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
479
|
-
m.dragging = !0, (
|
|
480
|
-
},
|
|
481
|
-
const
|
|
482
|
-
if (!
|
|
483
|
-
let
|
|
479
|
+
m.dragging = !0, (V = (z = window.getSelection) == null ? void 0 : z.call(window)) == null || V.removeAllRanges();
|
|
480
|
+
}, N = (z) => {
|
|
481
|
+
const V = t.current;
|
|
482
|
+
if (!V) return;
|
|
483
|
+
let te = null, he = Number.POSITIVE_INFINITY;
|
|
484
484
|
for (const ce of l.current) {
|
|
485
|
-
const ue = Math.abs(Rs(
|
|
486
|
-
ue <
|
|
485
|
+
const ue = Math.abs(Rs(V, ce) - z);
|
|
486
|
+
ue < he && (te = ce, he = ue);
|
|
487
487
|
}
|
|
488
|
-
|
|
489
|
-
},
|
|
488
|
+
te && K(te, !1);
|
|
489
|
+
}, D = () => {
|
|
490
490
|
var _e, Re;
|
|
491
491
|
if (m.frame = 0, !m.dragging) return;
|
|
492
|
-
const
|
|
493
|
-
if (!
|
|
494
|
-
const
|
|
492
|
+
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
|
+
if (!z) return;
|
|
494
|
+
const V = z.getBoundingClientRect(), te = V.top + je - m.lastY, he = m.lastY - (V.bottom - je), ce = Math.max(te, he);
|
|
495
495
|
if (ce <= 0) return;
|
|
496
|
-
const ue = Math.ceil(Fs * Math.min(1, ce / je)), Se =
|
|
497
|
-
|
|
498
|
-
}, B = (
|
|
499
|
-
if (
|
|
496
|
+
const ue = Math.ceil(Fs * Math.min(1, ce / je)), Se = z.scrollTop;
|
|
497
|
+
z.scrollTop += te > 0 ? -ue : ue, z.scrollTop !== Se && (N(m.lastY), m.frame = requestAnimationFrame(D));
|
|
498
|
+
}, B = (z) => {
|
|
499
|
+
if (z.pointerId === m.pointerId) {
|
|
500
500
|
if (!m.dragging) {
|
|
501
501
|
if (Math.hypot(
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
z.clientX - m.startX,
|
|
503
|
+
z.clientY - m.startY
|
|
504
504
|
) < Ms) return;
|
|
505
505
|
if (m.touch) {
|
|
506
|
-
|
|
506
|
+
g();
|
|
507
507
|
return;
|
|
508
508
|
}
|
|
509
509
|
if (f(), !m.dragging) return;
|
|
510
510
|
}
|
|
511
|
-
m.lastY =
|
|
511
|
+
m.lastY = z.clientY, N(z.clientY), m.frame || (m.frame = requestAnimationFrame(D));
|
|
512
512
|
}
|
|
513
|
-
},
|
|
513
|
+
}, se = (z) => {
|
|
514
514
|
var ue;
|
|
515
|
-
if (
|
|
516
|
-
const
|
|
517
|
-
if (
|
|
518
|
-
const
|
|
519
|
-
if (!
|
|
520
|
-
|
|
515
|
+
if (z.pointerId !== m.pointerId) return;
|
|
516
|
+
const V = m.dragging;
|
|
517
|
+
if (g(), !V) return;
|
|
518
|
+
const te = (ue = t.current) == null ? void 0 : ue.getBoundingClientRect();
|
|
519
|
+
if (!te || z.clientX < te.left || z.clientX > te.right || z.clientY < te.top || z.clientY > te.bottom) {
|
|
520
|
+
k();
|
|
521
521
|
return;
|
|
522
522
|
}
|
|
523
|
-
|
|
523
|
+
Y();
|
|
524
524
|
const ce = (Se) => {
|
|
525
525
|
Se.preventDefault(), Se.stopPropagation();
|
|
526
526
|
};
|
|
@@ -528,95 +528,95 @@ function Us({
|
|
|
528
528
|
capture: !0,
|
|
529
529
|
once: !0
|
|
530
530
|
}), setTimeout(() => window.removeEventListener("click", ce, !0), 0);
|
|
531
|
-
},
|
|
532
|
-
if (
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
-
},
|
|
536
|
-
|
|
531
|
+
}, we = (z) => {
|
|
532
|
+
if (z.pointerId !== m.pointerId) return;
|
|
533
|
+
const V = m.dragging;
|
|
534
|
+
g(), V && k();
|
|
535
|
+
}, X = (z) => z.preventDefault(), pe = (z) => {
|
|
536
|
+
z.key !== "Escape" || !m.dragging || (z.preventDefault(), g(), k());
|
|
537
537
|
};
|
|
538
|
-
window.addEventListener("pointermove", B), window.addEventListener("pointerup",
|
|
538
|
+
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
539
|
m.timer = null, f();
|
|
540
|
-
}, Ls)),
|
|
541
|
-
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup",
|
|
540
|
+
}, Ls)), p.current = () => {
|
|
541
|
+
window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", se), window.removeEventListener("pointercancel", we), window.removeEventListener("keydown", pe, !0), window.removeEventListener("contextmenu", X, !0);
|
|
542
542
|
};
|
|
543
543
|
},
|
|
544
|
-
[
|
|
544
|
+
[_, K, Y, k, g, t]
|
|
545
545
|
);
|
|
546
|
-
|
|
547
|
-
const G = U(null),
|
|
548
|
-
var
|
|
549
|
-
(
|
|
550
|
-
}, []),
|
|
546
|
+
ne(() => g, [g]);
|
|
547
|
+
const G = U(null), W = F((o) => {
|
|
548
|
+
var S;
|
|
549
|
+
(S = v.current) != null && S.dragging && o.preventDefault();
|
|
550
|
+
}, []), q = F(
|
|
551
551
|
(o) => {
|
|
552
|
-
var
|
|
553
|
-
G.current !== o && ((
|
|
552
|
+
var S;
|
|
553
|
+
G.current !== o && ((S = G.current) == null || S.removeEventListener("touchmove", W), G.current = o, o == null || o.addEventListener("touchmove", W, { passive: !1 }));
|
|
554
554
|
},
|
|
555
|
-
[q]
|
|
556
|
-
), X = U(s);
|
|
557
|
-
X.current = s;
|
|
558
|
-
const oe = F(
|
|
559
|
-
(o) => W(o && X.current ? o : null),
|
|
560
555
|
[W]
|
|
556
|
+
), J = U(s);
|
|
557
|
+
J.current = s;
|
|
558
|
+
const Q = F(
|
|
559
|
+
(o) => q(o && J.current ? o : null),
|
|
560
|
+
[q]
|
|
561
561
|
);
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}, [s,
|
|
565
|
-
!s && c.current &&
|
|
566
|
-
}, [s,
|
|
567
|
-
const ee = F((o,
|
|
568
|
-
C.current.get(o) ===
|
|
569
|
-
}), []),
|
|
570
|
-
const o =
|
|
571
|
-
if (!o || !
|
|
562
|
+
ne(() => {
|
|
563
|
+
q(s ? t.current : null);
|
|
564
|
+
}, [s, q, t]), ne(() => () => q(null), [q]), ne(() => {
|
|
565
|
+
!s && c.current && k();
|
|
566
|
+
}, [s, k]);
|
|
567
|
+
const ee = F((o, S) => (C.current.set(o, S), () => {
|
|
568
|
+
C.current.get(o) === S && C.current.delete(o);
|
|
569
|
+
}), []), re = F(() => {
|
|
570
|
+
const o = I.current, S = t.current;
|
|
571
|
+
if (!o || !S) return;
|
|
572
572
|
if (Date.now() > o.until) {
|
|
573
|
-
|
|
573
|
+
I.current = null;
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
576
|
-
const
|
|
576
|
+
const E = S.querySelector(
|
|
577
577
|
`[data-sidebar-item-id="${CSS.escape(o.itemId)}"]`
|
|
578
578
|
);
|
|
579
|
-
if (!
|
|
580
|
-
const m = document.activeElement, f = m !== null && m !== document.body && m !==
|
|
581
|
-
if (!fe(_s(
|
|
582
|
-
f && (
|
|
579
|
+
if (!E) return;
|
|
580
|
+
const m = document.activeElement, f = m !== null && m !== document.body && m !== E;
|
|
581
|
+
if (!fe(_s(S, E), o)) {
|
|
582
|
+
f && (I.current = null);
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
|
-
|
|
585
|
+
I.current = null, !(m === E || f) && (i.current = !0, E.focus(), i.current = !1);
|
|
586
586
|
}, [t, i]);
|
|
587
587
|
return {
|
|
588
|
-
context:
|
|
588
|
+
context: ye(
|
|
589
589
|
() => s ? {
|
|
590
590
|
enabled: s,
|
|
591
591
|
instructionsId: a,
|
|
592
592
|
move: n,
|
|
593
|
-
onItemKeyDown:
|
|
594
|
-
onItemPointerDown:
|
|
595
|
-
onItemBlur:
|
|
593
|
+
onItemKeyDown: R,
|
|
594
|
+
onItemPointerDown: M,
|
|
595
|
+
onItemBlur: O,
|
|
596
596
|
registerSection: ee
|
|
597
597
|
} : { enabled: !1, move: null, registerSection: ee },
|
|
598
598
|
[
|
|
599
599
|
s,
|
|
600
600
|
a,
|
|
601
601
|
n,
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
R,
|
|
603
|
+
M,
|
|
604
|
+
O,
|
|
605
605
|
ee
|
|
606
606
|
]
|
|
607
607
|
),
|
|
608
|
-
message:
|
|
608
|
+
message: x,
|
|
609
609
|
instructionsId: a,
|
|
610
|
-
restoreFocus:
|
|
611
|
-
touchGuardRef:
|
|
610
|
+
restoreFocus: re,
|
|
611
|
+
touchGuardRef: Q,
|
|
612
612
|
/** True while any move runs: Escape cancels it, not the drawer. */
|
|
613
|
-
cancelIfMoving: () => c.current ? (
|
|
613
|
+
cancelIfMoving: () => c.current ? (k(), !0) : !1
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
const De = ie({
|
|
617
617
|
mode: "expanded",
|
|
618
618
|
density: "default"
|
|
619
|
-
}),
|
|
619
|
+
}), H = () => oe(De), We = ie(null);
|
|
620
620
|
function $s(e) {
|
|
621
621
|
const s = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
622
622
|
let i = { total: 0, open: 0 };
|
|
@@ -642,9 +642,9 @@ function $s(e) {
|
|
|
642
642
|
n.filter((l) => l.open !== a).forEach((l) => l.setOpen(a));
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
|
-
n.sort((l,
|
|
646
|
-
const C = l.element(),
|
|
647
|
-
return !C || !
|
|
645
|
+
n.sort((l, w) => {
|
|
646
|
+
const C = l.element(), I = w.element();
|
|
647
|
+
return !C || !I ? 0 : C.compareDocumentPosition(I) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
648
648
|
});
|
|
649
649
|
const c = [];
|
|
650
650
|
for (const l of n)
|
|
@@ -684,7 +684,7 @@ function Ys(e) {
|
|
|
684
684
|
} catch {
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
const Le =
|
|
687
|
+
const Le = ae(
|
|
688
688
|
[
|
|
689
689
|
"ds:flex ds:flex-col",
|
|
690
690
|
// `--sidebar-surface`: the page background in light mode (white-on-white
|
|
@@ -752,59 +752,59 @@ const Le = ne(
|
|
|
752
752
|
onMoveItem: u,
|
|
753
753
|
onSetAllSectionsOpen: c,
|
|
754
754
|
"aria-label": l,
|
|
755
|
-
className:
|
|
755
|
+
className: w,
|
|
756
756
|
children: C,
|
|
757
|
-
id:
|
|
758
|
-
...
|
|
759
|
-
},
|
|
760
|
-
const
|
|
761
|
-
|
|
762
|
-
const [
|
|
757
|
+
id: I,
|
|
758
|
+
...j
|
|
759
|
+
}, v) => {
|
|
760
|
+
const p = U(c);
|
|
761
|
+
p.current = c;
|
|
762
|
+
const [b] = Z(() => $s(p)), x = /* @__PURE__ */ r(Oe.Provider, { value: b, children: C }), { t: P } = de("ui"), L = e !== void 0, [A, T] = Z(
|
|
763
763
|
() => Ks(s)
|
|
764
|
-
),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}, [
|
|
764
|
+
), _ = L ? e : A;
|
|
765
|
+
ne(() => {
|
|
766
|
+
L || Ys(A);
|
|
767
|
+
}, [A, L]);
|
|
768
768
|
const K = F(
|
|
769
769
|
(f) => {
|
|
770
|
-
|
|
770
|
+
L || T(f), t == null || t(f);
|
|
771
771
|
},
|
|
772
|
-
[
|
|
773
|
-
),
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}, [
|
|
777
|
-
const
|
|
772
|
+
[L, t]
|
|
773
|
+
), Y = l ?? P("navigation.sidebar.label"), k = ve(), R = I ?? k, O = U(_);
|
|
774
|
+
ne(() => {
|
|
775
|
+
O.current = _;
|
|
776
|
+
}, [_]);
|
|
777
|
+
const g = ye(
|
|
778
778
|
() => ({
|
|
779
|
-
getIsCollapsed: () =>
|
|
779
|
+
getIsCollapsed: () => O.current !== "expanded",
|
|
780
780
|
toggleCollapsed: () => {
|
|
781
|
-
const f =
|
|
781
|
+
const f = O.current === "expanded" ? "icon" : "expanded";
|
|
782
782
|
K(f);
|
|
783
783
|
},
|
|
784
|
-
getAnySectionOpen: () =>
|
|
785
|
-
setAllSectionsOpen: (f) =>
|
|
784
|
+
getAnySectionOpen: () => b.getSnapshot().open > 0,
|
|
785
|
+
setAllSectionsOpen: (f) => b.setAll(f)
|
|
786
786
|
}),
|
|
787
|
-
[K,
|
|
787
|
+
[K, b]
|
|
788
788
|
);
|
|
789
|
-
fs(Os,
|
|
790
|
-
const
|
|
789
|
+
fs(Os, g, I);
|
|
790
|
+
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
791
|
edge: "inline-end",
|
|
792
|
-
targetRef:
|
|
792
|
+
targetRef: M,
|
|
793
793
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
794
794
|
minSize: Vs,
|
|
795
795
|
maxSize: Gs,
|
|
796
796
|
defaultSize: qs,
|
|
797
|
-
disabled: !n ||
|
|
798
|
-
}), le = n &&
|
|
797
|
+
disabled: !n || _ !== "expanded"
|
|
798
|
+
}), le = n && _ === "expanded", o = Us({
|
|
799
799
|
onMoveItem: u,
|
|
800
|
-
enabled: u !== void 0 &&
|
|
801
|
-
rootRef:
|
|
802
|
-
quietFocusRef:
|
|
803
|
-
}), { touchGuardRef:
|
|
804
|
-
() => $e(
|
|
805
|
-
[
|
|
800
|
+
enabled: u !== void 0 && _ !== "icon",
|
|
801
|
+
rootRef: M,
|
|
802
|
+
quietFocusRef: W
|
|
803
|
+
}), { touchGuardRef: S } = o, E = ye(
|
|
804
|
+
() => $e(v, M, S),
|
|
805
|
+
[v, S]
|
|
806
806
|
);
|
|
807
|
-
|
|
807
|
+
xe(() => o.restoreFocus());
|
|
808
808
|
const m = u !== void 0 ? /* @__PURE__ */ h(Ie, { children: [
|
|
809
809
|
/* @__PURE__ */ r("span", { id: o.instructionsId, hidden: !0, children: P("navigation.sidebar.move.instructions") }),
|
|
810
810
|
/* @__PURE__ */ r(
|
|
@@ -818,19 +818,19 @@ const Le = ne(
|
|
|
818
818
|
}
|
|
819
819
|
)
|
|
820
820
|
] }) : null;
|
|
821
|
-
return
|
|
821
|
+
return _ === "overlay" ? /* @__PURE__ */ r(
|
|
822
822
|
De.Provider,
|
|
823
823
|
{
|
|
824
824
|
value: {
|
|
825
825
|
mode: "overlay",
|
|
826
826
|
density: i,
|
|
827
827
|
transitionTo: K,
|
|
828
|
-
navElementId:
|
|
829
|
-
quietFocusRef:
|
|
828
|
+
navElementId: R,
|
|
829
|
+
quietFocusRef: W
|
|
830
830
|
},
|
|
831
|
-
children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(
|
|
831
|
+
children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(ge.Root, { open: d, onOpenChange: a, children: /* @__PURE__ */ h(ge.Portal, { children: [
|
|
832
832
|
/* @__PURE__ */ r(
|
|
833
|
-
|
|
833
|
+
ge.Overlay,
|
|
834
834
|
{
|
|
835
835
|
className: [
|
|
836
836
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -842,27 +842,27 @@ const Le = ne(
|
|
|
842
842
|
}
|
|
843
843
|
),
|
|
844
844
|
/* @__PURE__ */ h(
|
|
845
|
-
|
|
845
|
+
ge.Content,
|
|
846
846
|
{
|
|
847
847
|
onOpenAutoFocus: (f) => {
|
|
848
|
-
var
|
|
848
|
+
var D, B;
|
|
849
849
|
G.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
850
|
-
const
|
|
850
|
+
const N = ((D = M.current) == null ? void 0 : D.querySelector(
|
|
851
851
|
'[aria-current="page"]'
|
|
852
|
-
)) ?? ((B =
|
|
852
|
+
)) ?? ((B = M.current) == null ? void 0 : B.querySelector(
|
|
853
853
|
'a[href], button:not([disabled]), input:not([disabled]), [tabindex="0"]'
|
|
854
854
|
));
|
|
855
|
-
|
|
855
|
+
W.current = !0, N == null || N.focus(), W.current = !1, N && document.activeElement === N && f.preventDefault();
|
|
856
856
|
},
|
|
857
857
|
onCloseAutoFocus: (f) => {
|
|
858
|
-
var
|
|
859
|
-
const
|
|
860
|
-
|
|
858
|
+
var D;
|
|
859
|
+
const N = document.activeElement;
|
|
860
|
+
N && N !== document.body || (D = G.current) != null && D.isConnected && (f.preventDefault(), G.current.focus());
|
|
861
861
|
},
|
|
862
862
|
onEscapeKeyDown: (f) => {
|
|
863
863
|
o.cancelIfMoving() && f.preventDefault();
|
|
864
864
|
},
|
|
865
|
-
"aria-label":
|
|
865
|
+
"aria-label": Y,
|
|
866
866
|
className: [
|
|
867
867
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
868
868
|
// `start-0`/`top-0` — the `inset-inline-start-0` /
|
|
@@ -876,32 +876,32 @@ const Le = ne(
|
|
|
876
876
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
877
877
|
"ds:motion-reduce:animate-none",
|
|
878
878
|
"ds:focus:outline-none",
|
|
879
|
-
|
|
879
|
+
w ?? ""
|
|
880
880
|
].filter(Boolean).join(" "),
|
|
881
881
|
children: [
|
|
882
882
|
/* @__PURE__ */ h(
|
|
883
883
|
"nav",
|
|
884
884
|
{
|
|
885
|
-
ref:
|
|
886
|
-
id:
|
|
887
|
-
"aria-label":
|
|
885
|
+
ref: E,
|
|
886
|
+
id: R,
|
|
887
|
+
"aria-label": Y,
|
|
888
888
|
"data-component": "sidebar",
|
|
889
|
-
"data-component-id":
|
|
889
|
+
"data-component-id": I,
|
|
890
890
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
891
|
-
...
|
|
891
|
+
...j,
|
|
892
892
|
children: [
|
|
893
893
|
/* @__PURE__ */ r(Ae.Provider, { value: o.context, children: /* @__PURE__ */ r(
|
|
894
894
|
We.Provider,
|
|
895
895
|
{
|
|
896
|
-
value:
|
|
897
|
-
children:
|
|
896
|
+
value: Q,
|
|
897
|
+
children: x
|
|
898
898
|
}
|
|
899
899
|
) }),
|
|
900
900
|
m
|
|
901
901
|
]
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
|
-
|
|
904
|
+
q === 0 ? /* @__PURE__ */ r(ge.Close, { asChild: !0, children: /* @__PURE__ */ r(
|
|
905
905
|
"button",
|
|
906
906
|
{
|
|
907
907
|
type: "button",
|
|
@@ -919,38 +919,38 @@ const Le = ne(
|
|
|
919
919
|
De.Provider,
|
|
920
920
|
{
|
|
921
921
|
value: {
|
|
922
|
-
mode:
|
|
922
|
+
mode: _,
|
|
923
923
|
density: i,
|
|
924
924
|
transitionTo: K,
|
|
925
|
-
navElementId:
|
|
926
|
-
quietFocusRef:
|
|
925
|
+
navElementId: R,
|
|
926
|
+
quietFocusRef: W
|
|
927
927
|
},
|
|
928
928
|
children: /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: /* @__PURE__ */ h(
|
|
929
929
|
"nav",
|
|
930
930
|
{
|
|
931
|
-
ref:
|
|
932
|
-
id:
|
|
933
|
-
"aria-label":
|
|
931
|
+
ref: E,
|
|
932
|
+
id: R,
|
|
933
|
+
"aria-label": Y,
|
|
934
934
|
"data-component": "sidebar",
|
|
935
|
-
"data-component-id":
|
|
936
|
-
"data-mode":
|
|
935
|
+
"data-component-id": I,
|
|
936
|
+
"data-mode": _,
|
|
937
937
|
"data-density": i,
|
|
938
|
-
"data-resizing":
|
|
938
|
+
"data-resizing": re ? "" : void 0,
|
|
939
939
|
className: [
|
|
940
|
-
Le({ mode:
|
|
940
|
+
Le({ mode: _, density: i }),
|
|
941
941
|
i === "compact" ? "ds:density-compact" : "",
|
|
942
|
-
|
|
942
|
+
w ?? ""
|
|
943
943
|
].filter(Boolean).join(" "),
|
|
944
|
-
...
|
|
944
|
+
...j,
|
|
945
945
|
children: [
|
|
946
|
-
/* @__PURE__ */ r(Ae.Provider, { value: o.context, children:
|
|
946
|
+
/* @__PURE__ */ r(Ae.Provider, { value: o.context, children: x }),
|
|
947
947
|
m,
|
|
948
948
|
le ? /* @__PURE__ */ r(
|
|
949
949
|
"div",
|
|
950
950
|
{
|
|
951
951
|
...ee,
|
|
952
952
|
"aria-label": P("navigation.sidebar.resize"),
|
|
953
|
-
"data-resizing":
|
|
953
|
+
"data-resizing": re ? "" : void 0,
|
|
954
954
|
className: Ws
|
|
955
955
|
}
|
|
956
956
|
) : null
|
|
@@ -963,7 +963,7 @@ const Le = ne(
|
|
|
963
963
|
);
|
|
964
964
|
Xs.displayName = "Sidebar";
|
|
965
965
|
const Zs = $(({ className: e, ...s }, t) => {
|
|
966
|
-
const { mode: i } =
|
|
966
|
+
const { mode: i } = H();
|
|
967
967
|
return /* @__PURE__ */ r(
|
|
968
968
|
"div",
|
|
969
969
|
{
|
|
@@ -991,7 +991,7 @@ const Zs = $(({ className: e, ...s }, t) => {
|
|
|
991
991
|
);
|
|
992
992
|
});
|
|
993
993
|
Zs.displayName = "SidebarHeader";
|
|
994
|
-
const Je =
|
|
994
|
+
const Je = ae(
|
|
995
995
|
[
|
|
996
996
|
"ds:min-h-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
|
|
997
997
|
"ds:border ds:border-dashed ds:border-[color:var(--border)]"
|
|
@@ -1007,7 +1007,7 @@ const Je = ne(
|
|
|
1007
1007
|
}
|
|
1008
1008
|
), Js = $(
|
|
1009
1009
|
({ className: e, children: s, ...t }, i) => {
|
|
1010
|
-
const { navElementId: d } =
|
|
1010
|
+
const { navElementId: d } = H(), { enabled: a, move: n } = Te(), u = a && (n != null && n.listEmpty) ? /* @__PURE__ */ r(
|
|
1011
1011
|
"div",
|
|
1012
1012
|
{
|
|
1013
1013
|
"aria-hidden": "true",
|
|
@@ -1050,7 +1050,7 @@ const Je = ne(
|
|
|
1050
1050
|
);
|
|
1051
1051
|
Js.displayName = "SidebarBody";
|
|
1052
1052
|
const Qs = $(({ className: e, ...s }, t) => {
|
|
1053
|
-
const { mode: i } =
|
|
1053
|
+
const { mode: i } = H();
|
|
1054
1054
|
return /* @__PURE__ */ r(
|
|
1055
1055
|
"div",
|
|
1056
1056
|
{
|
|
@@ -1091,7 +1091,7 @@ const et = [
|
|
|
1091
1091
|
"ds:size-4",
|
|
1092
1092
|
"ds:text-[var(--accent)]",
|
|
1093
1093
|
"ds:me-[var(--spacing-xs)]"
|
|
1094
|
-
].join(" "), Be =
|
|
1094
|
+
].join(" "), Be = ae(
|
|
1095
1095
|
"ds:flex ds:items-center ds:rounded-[var(--radius-sm)]",
|
|
1096
1096
|
{
|
|
1097
1097
|
variants: {
|
|
@@ -1121,7 +1121,7 @@ function at({
|
|
|
1121
1121
|
nameRef: s,
|
|
1122
1122
|
children: t
|
|
1123
1123
|
}) {
|
|
1124
|
-
const { navElementId: i, quietFocusRef: d } =
|
|
1124
|
+
const { navElementId: i, quietFocusRef: d } = H(), { move: a } = Te();
|
|
1125
1125
|
if (i === void 0) return t;
|
|
1126
1126
|
const n = (u) => {
|
|
1127
1127
|
const c = s.current;
|
|
@@ -1161,85 +1161,86 @@ const es = ie(!1), ss = $(
|
|
|
1161
1161
|
onOpenChange: a,
|
|
1162
1162
|
sectionId: n,
|
|
1163
1163
|
actions: u,
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1164
|
+
headingLevel: c = 3,
|
|
1165
|
+
className: l,
|
|
1166
|
+
children: w,
|
|
1167
|
+
...C
|
|
1168
|
+
}, I) => {
|
|
1169
|
+
const { t: j } = de("ui"), { mode: v } = H(), p = v === "icon", b = ve(), x = ve(), P = U(null), [L, A] = Z(
|
|
1169
1170
|
() => /* @__PURE__ */ new Set()
|
|
1170
|
-
),
|
|
1171
|
-
|
|
1172
|
-
if (
|
|
1173
|
-
const
|
|
1174
|
-
return pe ?
|
|
1171
|
+
), T = F((X, pe) => {
|
|
1172
|
+
A((z) => {
|
|
1173
|
+
if (z.has(X) === pe) return z;
|
|
1174
|
+
const V = new Set(z);
|
|
1175
|
+
return pe ? V.add(X) : V.delete(X), V;
|
|
1175
1176
|
});
|
|
1176
|
-
}, []),
|
|
1177
|
-
|
|
1178
|
-
const
|
|
1179
|
-
(
|
|
1180
|
-
d === void 0 &&
|
|
1177
|
+
}, []), _ = t && !p && !!e, [K, Y] = Z(i), k = d ?? K, R = U(k);
|
|
1178
|
+
R.current = k;
|
|
1179
|
+
const O = F(
|
|
1180
|
+
(X) => {
|
|
1181
|
+
d === void 0 && Y(X), a == null || a(X);
|
|
1181
1182
|
},
|
|
1182
1183
|
[d, a]
|
|
1183
|
-
),
|
|
1184
|
-
() => $e(
|
|
1185
|
-
[
|
|
1184
|
+
), g = oe(Oe), M = ve(), G = U(null), W = ye(
|
|
1185
|
+
() => $e(I, G),
|
|
1186
|
+
[I]
|
|
1186
1187
|
), q = t && !!e;
|
|
1187
|
-
|
|
1188
|
-
if (!(!
|
|
1189
|
-
return () =>
|
|
1190
|
-
}, [
|
|
1191
|
-
!
|
|
1192
|
-
open:
|
|
1188
|
+
xe(() => {
|
|
1189
|
+
if (!(!g || !q))
|
|
1190
|
+
return () => g.remove(M);
|
|
1191
|
+
}, [g, M, q]), xe(() => {
|
|
1192
|
+
!g || !q || g.set(M, {
|
|
1193
|
+
open: k,
|
|
1193
1194
|
sectionId: n,
|
|
1194
1195
|
controlled: d !== void 0,
|
|
1195
|
-
setOpen:
|
|
1196
|
-
setInner:
|
|
1197
|
-
element: () =>
|
|
1196
|
+
setOpen: O,
|
|
1197
|
+
setInner: Y,
|
|
1198
|
+
element: () => G.current
|
|
1198
1199
|
});
|
|
1199
|
-
}, [
|
|
1200
|
-
const { enabled:
|
|
1201
|
-
|
|
1202
|
-
|
|
1200
|
+
}, [g, M, q, k, n, d, O]);
|
|
1201
|
+
const { enabled: J, move: Q, registerSection: ee } = Te(), re = oe(es);
|
|
1202
|
+
ne(() => {
|
|
1203
|
+
J && n === void 0 && !re && bs() && console.warn(
|
|
1203
1204
|
`SidebarSection "${e ?? ""}": moves are on but it has no sectionId, so its items cannot move.`
|
|
1204
1205
|
);
|
|
1205
|
-
}, [
|
|
1206
|
-
if (!(n === void 0 || !
|
|
1207
|
-
return
|
|
1208
|
-
|
|
1206
|
+
}, [J, n, re, e]), ne(() => {
|
|
1207
|
+
if (!(n === void 0 || !ee))
|
|
1208
|
+
return ee(n, () => {
|
|
1209
|
+
R.current || O(!0);
|
|
1209
1210
|
});
|
|
1210
|
-
}, [n,
|
|
1211
|
-
const
|
|
1211
|
+
}, [n, ee, O]);
|
|
1212
|
+
const le = J && Q !== null && n !== void 0, o = le && Q.target.indicator.kind === "section" && Q.target.indicator.sectionId === n && !fe(Q.target, Q.origin), S = le && Q.emptySectionIds.includes(n) ? /* @__PURE__ */ r(
|
|
1212
1213
|
"div",
|
|
1213
1214
|
{
|
|
1214
1215
|
"aria-hidden": "true",
|
|
1215
1216
|
"data-sidebar-drop-zone": n,
|
|
1216
|
-
className: Je({ active:
|
|
1217
|
+
className: Je({ active: o })
|
|
1217
1218
|
}
|
|
1218
|
-
) : null,
|
|
1219
|
+
) : null, E = n !== void 0 ? {
|
|
1219
1220
|
"data-sidebar-section-id": n,
|
|
1220
1221
|
"data-sidebar-section-label": e ?? "",
|
|
1221
|
-
"data-sidebar-section-open": String(!
|
|
1222
|
-
} : {},
|
|
1222
|
+
"data-sidebar-section-open": String(!_ || k)
|
|
1223
|
+
} : {}, m = u && !p ? /* @__PURE__ */ r(
|
|
1223
1224
|
"span",
|
|
1224
1225
|
{
|
|
1225
1226
|
role: "group",
|
|
1226
|
-
"aria-label": e ?
|
|
1227
|
+
"aria-label": e ? j("navigation.sidebar.sectionActions", { section: e }) : void 0,
|
|
1227
1228
|
className: st,
|
|
1228
1229
|
children: u
|
|
1229
1230
|
}
|
|
1230
|
-
) : null,
|
|
1231
|
-
/* @__PURE__ */ r("div", { "data-sidebar-section-items": "", className: "ds:contents", children:
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
] }) }),
|
|
1231
|
+
) : null, f = _ && !k && L.size > 0, N = e && !p ? /* @__PURE__ */ r("p", { "data-sidebar-section-empty": "", className: tt, 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
|
+
/* @__PURE__ */ r("div", { "data-sidebar-section-items": "", className: "ds:contents", children: w }),
|
|
1233
|
+
N,
|
|
1234
|
+
S
|
|
1235
|
+
] }) }), B = [
|
|
1235
1236
|
"ds:flex ds:flex-col",
|
|
1236
1237
|
"ds:gap-[var(--spacing-xs)]",
|
|
1237
1238
|
"ds:mt-[var(--spacing-sm)]",
|
|
1238
1239
|
rt,
|
|
1239
|
-
|
|
1240
|
+
l ?? ""
|
|
1240
1241
|
].filter(Boolean).join(" ");
|
|
1241
|
-
if (!
|
|
1242
|
-
const
|
|
1242
|
+
if (!_) {
|
|
1243
|
+
const X = !!e || !!s, pe = e ? { role: "group", "aria-labelledby": b } : {}, z = X ? /* @__PURE__ */ h(
|
|
1243
1244
|
"span",
|
|
1244
1245
|
{
|
|
1245
1246
|
className: [
|
|
@@ -1248,82 +1249,89 @@ const es = ie(!1), ss = $(
|
|
|
1248
1249
|
"ds:text-[var(--muted-foreground)]",
|
|
1249
1250
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
1250
1251
|
"ds:py-[var(--spacing-xs)]",
|
|
1251
|
-
|
|
1252
|
+
m ? "ds:min-w-0 ds:flex-1" : "",
|
|
1252
1253
|
p && !s ? "ds:sr-only" : ""
|
|
1253
1254
|
].filter(Boolean).join(" "),
|
|
1254
1255
|
children: [
|
|
1255
1256
|
s ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: Me, children: s }) : null,
|
|
1256
|
-
e ? /* @__PURE__ */ r("span", { id:
|
|
1257
|
+
e ? /* @__PURE__ */ r("span", { id: b, className: p ? "ds:sr-only" : "", children: e }) : null
|
|
1257
1258
|
]
|
|
1258
1259
|
}
|
|
1259
1260
|
) : null;
|
|
1260
1261
|
return /* @__PURE__ */ h(
|
|
1261
1262
|
"div",
|
|
1262
1263
|
{
|
|
1263
|
-
ref:
|
|
1264
|
-
className:
|
|
1264
|
+
ref: W,
|
|
1265
|
+
className: B,
|
|
1265
1266
|
...pe,
|
|
1266
|
-
...
|
|
1267
|
-
...
|
|
1267
|
+
...E,
|
|
1268
|
+
...C,
|
|
1268
1269
|
children: [
|
|
1269
|
-
|
|
1270
|
+
m ? /* @__PURE__ */ h(
|
|
1270
1271
|
"div",
|
|
1271
1272
|
{
|
|
1272
1273
|
"data-sidebar-section-heading": "",
|
|
1273
1274
|
className: Be(),
|
|
1274
1275
|
children: [
|
|
1275
|
-
|
|
1276
|
-
|
|
1276
|
+
z,
|
|
1277
|
+
m
|
|
1277
1278
|
]
|
|
1278
1279
|
}
|
|
1279
|
-
) :
|
|
1280
|
-
|
|
1280
|
+
) : z,
|
|
1281
|
+
D
|
|
1281
1282
|
]
|
|
1282
1283
|
}
|
|
1283
1284
|
);
|
|
1284
1285
|
}
|
|
1285
|
-
const
|
|
1286
|
+
const se = "section", we = c === !1 ? "div" : `h${c}`;
|
|
1286
1287
|
return /* @__PURE__ */ r(
|
|
1287
1288
|
Ne.Root,
|
|
1288
1289
|
{
|
|
1289
1290
|
type: "single",
|
|
1290
1291
|
collapsible: !0,
|
|
1291
|
-
value:
|
|
1292
|
-
onValueChange: (
|
|
1292
|
+
value: k ? se : "",
|
|
1293
|
+
onValueChange: (X) => O(X === se),
|
|
1293
1294
|
asChild: !0,
|
|
1294
1295
|
children: /* @__PURE__ */ r(
|
|
1295
1296
|
"div",
|
|
1296
1297
|
{
|
|
1297
|
-
ref:
|
|
1298
|
-
className:
|
|
1299
|
-
...
|
|
1300
|
-
...
|
|
1301
|
-
children: /* @__PURE__ */ h(Ne.Item, { value:
|
|
1298
|
+
ref: W,
|
|
1299
|
+
className: B,
|
|
1300
|
+
...E,
|
|
1301
|
+
...C,
|
|
1302
|
+
children: /* @__PURE__ */ h(Ne.Item, { value: se, children: [
|
|
1302
1303
|
/* @__PURE__ */ h(
|
|
1303
1304
|
"div",
|
|
1304
1305
|
{
|
|
1305
1306
|
"data-sidebar-section-heading": "",
|
|
1306
1307
|
className: Be({
|
|
1307
|
-
dropInto:
|
|
1308
|
+
dropInto: o && !k
|
|
1308
1309
|
}),
|
|
1309
1310
|
children: [
|
|
1310
|
-
/* @__PURE__ */ r(at, { name: e ?? "", nameRef:
|
|
1311
|
+
/* @__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(
|
|
1311
1312
|
Ne.Trigger,
|
|
1312
1313
|
{
|
|
1313
1314
|
className: et,
|
|
1314
|
-
"data-holds-current":
|
|
1315
|
-
"aria-describedby":
|
|
1315
|
+
"data-holds-current": f ? "" : void 0,
|
|
1316
|
+
"aria-describedby": f ? x : void 0,
|
|
1316
1317
|
children: [
|
|
1317
|
-
s ? /* @__PURE__ */ r(
|
|
1318
|
+
s ? /* @__PURE__ */ r(
|
|
1319
|
+
"span",
|
|
1320
|
+
{
|
|
1321
|
+
"aria-hidden": "true",
|
|
1322
|
+
className: Me,
|
|
1323
|
+
children: s
|
|
1324
|
+
}
|
|
1325
|
+
) : null,
|
|
1318
1326
|
/* @__PURE__ */ r(
|
|
1319
1327
|
"span",
|
|
1320
1328
|
{
|
|
1321
|
-
ref:
|
|
1329
|
+
ref: P,
|
|
1322
1330
|
className: `ds:flex-1 ds:text-start ${ot}`,
|
|
1323
1331
|
children: e
|
|
1324
1332
|
}
|
|
1325
1333
|
),
|
|
1326
|
-
|
|
1334
|
+
f ? /* @__PURE__ */ r(
|
|
1327
1335
|
"span",
|
|
1328
1336
|
{
|
|
1329
1337
|
"aria-hidden": "true",
|
|
@@ -1340,11 +1348,11 @@ const es = ie(!1), ss = $(
|
|
|
1340
1348
|
)
|
|
1341
1349
|
]
|
|
1342
1350
|
}
|
|
1343
|
-
) }) }) }),
|
|
1344
|
-
|
|
1345
|
-
|
|
1351
|
+
) }) }) }) }),
|
|
1352
|
+
m,
|
|
1353
|
+
f ? (
|
|
1346
1354
|
// Hidden, yet still the fold button's description.
|
|
1347
|
-
/* @__PURE__ */ r("span", { id:
|
|
1355
|
+
/* @__PURE__ */ r("span", { id: x, hidden: !0, children: j("navigation.sidebar.section.containsCurrent") })
|
|
1348
1356
|
) : null
|
|
1349
1357
|
]
|
|
1350
1358
|
}
|
|
@@ -1360,7 +1368,7 @@ const es = ie(!1), ss = $(
|
|
|
1360
1368
|
// Force-mounted content is never hidden by Radix: do it here.
|
|
1361
1369
|
"ds:data-[state=closed]:hidden"
|
|
1362
1370
|
].join(" "),
|
|
1363
|
-
children:
|
|
1371
|
+
children: D
|
|
1364
1372
|
}
|
|
1365
1373
|
)
|
|
1366
1374
|
] })
|
|
@@ -1393,7 +1401,7 @@ const it = [
|
|
|
1393
1401
|
onOpenChange: n,
|
|
1394
1402
|
...u
|
|
1395
1403
|
}, c) => {
|
|
1396
|
-
const { mode: l } =
|
|
1404
|
+
const { mode: l } = H();
|
|
1397
1405
|
return /* @__PURE__ */ h(
|
|
1398
1406
|
Ee.Root,
|
|
1399
1407
|
{
|
|
@@ -1455,7 +1463,7 @@ const me = [
|
|
|
1455
1463
|
"ds:bg-[var(--foreground)] ds:text-[var(--background)]",
|
|
1456
1464
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)]",
|
|
1457
1465
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1458
|
-
].join(" "), lt =
|
|
1466
|
+
].join(" "), lt = ae(
|
|
1459
1467
|
[
|
|
1460
1468
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
1461
1469
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -1521,7 +1529,7 @@ const me = [
|
|
|
1521
1529
|
"ds:before:h-[length:var(--focus-ring-width)] ds:before:content-['']",
|
|
1522
1530
|
"ds:before:rounded-[var(--radius-full)] ds:before:bg-[var(--primary)]",
|
|
1523
1531
|
"ds:forced-colors:before:bg-[CanvasText]"
|
|
1524
|
-
].join(" "), ct =
|
|
1532
|
+
].join(" "), ct = ae("", {
|
|
1525
1533
|
variants: {
|
|
1526
1534
|
movable: {
|
|
1527
1535
|
true: "ds:select-none ds:[-webkit-touch-callout:none]",
|
|
@@ -1547,68 +1555,68 @@ const me = [
|
|
|
1547
1555
|
children: u,
|
|
1548
1556
|
"aria-label": c,
|
|
1549
1557
|
"aria-describedby": l,
|
|
1550
|
-
onKeyDown:
|
|
1558
|
+
onKeyDown: w,
|
|
1551
1559
|
onPointerDown: C,
|
|
1552
|
-
onBlur:
|
|
1553
|
-
...
|
|
1554
|
-
},
|
|
1555
|
-
const { mode:
|
|
1556
|
-
|
|
1560
|
+
onBlur: I,
|
|
1561
|
+
...j
|
|
1562
|
+
}, v) => {
|
|
1563
|
+
const { mode: p, density: b, quietFocusRef: x, navElementId: P } = H(), L = e ? Ue : "a", A = d !== void 0 && p !== "icon", T = Te(), _ = oe(Ye), K = oe(Qe), Y = ve(), k = s || j["aria-current"] === "page";
|
|
1564
|
+
ne(() => {
|
|
1557
1565
|
if (K)
|
|
1558
|
-
return K(
|
|
1559
|
-
}, [K,
|
|
1560
|
-
const
|
|
1561
|
-
"data-sidebar-item-id":
|
|
1562
|
-
"data-moving": (
|
|
1566
|
+
return K(Y, k), () => K(Y, !1);
|
|
1567
|
+
}, [K, Y, k]);
|
|
1568
|
+
const R = T.enabled && p !== "icon" && t !== void 0 && (_ === null || _.sectionId !== void 0) ? t : void 0, O = T.move, g = O && !fe(O.target, O.origin) ? O.target : null, M = R !== void 0 && (g == null ? void 0 : g.indicator.kind) === "item" && g.indicator.itemId === R ? g.indicator.edge : "none", G = R !== void 0 ? {
|
|
1569
|
+
"data-sidebar-item-id": R,
|
|
1570
|
+
"data-moving": (O == null ? void 0 : O.itemId) === R ? "" : void 0,
|
|
1563
1571
|
// A link would otherwise start the browser's own link drag.
|
|
1564
1572
|
draggable: !1,
|
|
1565
|
-
"aria-describedby": [l,
|
|
1573
|
+
"aria-describedby": [l, T.instructionsId].filter(Boolean).join(" "),
|
|
1566
1574
|
// An image inside the item would start its own native drag.
|
|
1567
1575
|
onDragStart: (f) => f.preventDefault(),
|
|
1568
1576
|
onKeyDown: (f) => {
|
|
1569
|
-
var
|
|
1570
|
-
|
|
1571
|
-
const
|
|
1572
|
-
(!f.defaultPrevented ||
|
|
1577
|
+
var D, B;
|
|
1578
|
+
w == null || w(f);
|
|
1579
|
+
const N = f.key === "Escape" && ((D = T.move) == null ? void 0 : D.itemId) === R;
|
|
1580
|
+
(!f.defaultPrevented || N) && ((B = T.onItemKeyDown) == null || B.call(T, f, R));
|
|
1573
1581
|
},
|
|
1574
1582
|
onPointerDown: (f) => {
|
|
1575
|
-
var
|
|
1576
|
-
C == null || C(f), (
|
|
1583
|
+
var N;
|
|
1584
|
+
C == null || C(f), (N = T.onItemPointerDown) == null || N.call(T, f, R);
|
|
1577
1585
|
},
|
|
1578
1586
|
onBlur: (f) => {
|
|
1579
|
-
var
|
|
1580
|
-
|
|
1587
|
+
var N;
|
|
1588
|
+
I == null || I(f), (N = T.onItemBlur) == null || N.call(T, R);
|
|
1581
1589
|
}
|
|
1582
1590
|
} : {
|
|
1583
1591
|
// Keys left out when unset: an undefined one would override the
|
|
1584
1592
|
// tooltip's own description through Slot.
|
|
1585
1593
|
...l !== void 0 ? { "aria-describedby": l } : {},
|
|
1586
|
-
...
|
|
1594
|
+
...w ? { onKeyDown: w } : {},
|
|
1587
1595
|
...C ? { onPointerDown: C } : {},
|
|
1588
|
-
...
|
|
1589
|
-
},
|
|
1590
|
-
movable:
|
|
1591
|
-
moving:
|
|
1592
|
-
drop:
|
|
1593
|
-
}), [
|
|
1594
|
-
|
|
1596
|
+
...I ? { onBlur: I } : {}
|
|
1597
|
+
}, W = ct({
|
|
1598
|
+
movable: R !== void 0,
|
|
1599
|
+
moving: O !== null && O.itemId === R,
|
|
1600
|
+
drop: M
|
|
1601
|
+
}), [q, J] = Z(null), Q = p === "icon" && c != null && q ? `${c}, ${q}` : c, ee = /* @__PURE__ */ r(
|
|
1602
|
+
L,
|
|
1595
1603
|
{
|
|
1596
|
-
ref:
|
|
1604
|
+
ref: v,
|
|
1597
1605
|
"aria-current": s ? "page" : void 0,
|
|
1598
|
-
"aria-label":
|
|
1606
|
+
"aria-label": Q,
|
|
1599
1607
|
"data-nav-id": t,
|
|
1600
|
-
"data-sidebar-item":
|
|
1608
|
+
"data-sidebar-item": A ? void 0 : "",
|
|
1601
1609
|
className: lt({
|
|
1602
|
-
mode:
|
|
1603
|
-
density:
|
|
1610
|
+
mode: p,
|
|
1611
|
+
density: b,
|
|
1604
1612
|
isActive: s,
|
|
1605
|
-
className: [
|
|
1613
|
+
className: [A ? "ds:flex-1 ds:min-w-0" : n, W].filter(Boolean).join(" ")
|
|
1606
1614
|
}),
|
|
1607
1615
|
...G,
|
|
1608
|
-
...
|
|
1616
|
+
...j,
|
|
1609
1617
|
children: u
|
|
1610
1618
|
}
|
|
1611
|
-
),
|
|
1619
|
+
), re = A ? /* @__PURE__ */ h(
|
|
1612
1620
|
"div",
|
|
1613
1621
|
{
|
|
1614
1622
|
"data-sidebar-item": "",
|
|
@@ -1628,25 +1636,25 @@ const me = [
|
|
|
1628
1636
|
)
|
|
1629
1637
|
]
|
|
1630
1638
|
}
|
|
1631
|
-
) : ee, le = U(null), [o,
|
|
1632
|
-
var B,
|
|
1633
|
-
const
|
|
1639
|
+
) : ee, le = U(null), [o, S] = Z(), E = (f) => {
|
|
1640
|
+
var B, se;
|
|
1641
|
+
const N = (B = le.current) == null ? void 0 : B.querySelector(
|
|
1634
1642
|
"[data-sidebar-item-label]"
|
|
1635
1643
|
);
|
|
1636
|
-
if (!(
|
|
1644
|
+
if (!(N != null && N.scrollWidth > N.clientWidth) || x != null && x.current || T.move !== null) {
|
|
1637
1645
|
f.preventDefault();
|
|
1638
1646
|
return;
|
|
1639
1647
|
}
|
|
1640
|
-
|
|
1641
|
-
}, m =
|
|
1648
|
+
S(((se = N.textContent) == null ? void 0 : se.trim()) || void 0);
|
|
1649
|
+
}, m = p !== "icon" && P !== void 0 ? /* @__PURE__ */ h(y.Root, { children: [
|
|
1642
1650
|
/* @__PURE__ */ r(
|
|
1643
1651
|
y.Trigger,
|
|
1644
1652
|
{
|
|
1645
1653
|
asChild: !0,
|
|
1646
1654
|
ref: le,
|
|
1647
|
-
onPointerMove:
|
|
1648
|
-
onFocus:
|
|
1649
|
-
children:
|
|
1655
|
+
onPointerMove: E,
|
|
1656
|
+
onFocus: E,
|
|
1657
|
+
children: re
|
|
1650
1658
|
}
|
|
1651
1659
|
),
|
|
1652
1660
|
/* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
|
|
@@ -1661,8 +1669,8 @@ const me = [
|
|
|
1661
1669
|
]
|
|
1662
1670
|
}
|
|
1663
1671
|
) })
|
|
1664
|
-
] }) :
|
|
1665
|
-
/* @__PURE__ */ r(y.Trigger, { asChild: !0, children:
|
|
1672
|
+
] }) : p === "icon" && c ? /* @__PURE__ */ h(y.Root, { children: [
|
|
1673
|
+
/* @__PURE__ */ r(y.Trigger, { asChild: !0, children: re }),
|
|
1666
1674
|
/* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
|
|
1667
1675
|
y.Content,
|
|
1668
1676
|
{
|
|
@@ -1675,8 +1683,8 @@ const me = [
|
|
|
1675
1683
|
]
|
|
1676
1684
|
}
|
|
1677
1685
|
) })
|
|
1678
|
-
] }) :
|
|
1679
|
-
return /* @__PURE__ */ r(ts.Provider, { value:
|
|
1686
|
+
] }) : re;
|
|
1687
|
+
return /* @__PURE__ */ r(ts.Provider, { value: J, children: m });
|
|
1680
1688
|
}
|
|
1681
1689
|
);
|
|
1682
1690
|
rs.displayName = "SidebarItem";
|
|
@@ -1703,7 +1711,7 @@ const ut = $(({ className: e, children: s, ...t }, i) => /* @__PURE__ */ r(
|
|
|
1703
1711
|
));
|
|
1704
1712
|
ut.displayName = "SidebarItemIcon";
|
|
1705
1713
|
const ft = $(({ className: e, children: s, ...t }, i) => {
|
|
1706
|
-
const { mode: d } =
|
|
1714
|
+
const { mode: d } = H();
|
|
1707
1715
|
return /* @__PURE__ */ r(
|
|
1708
1716
|
"span",
|
|
1709
1717
|
{
|
|
@@ -1723,8 +1731,8 @@ const ft = $(({ className: e, children: s, ...t }, i) => {
|
|
|
1723
1731
|
});
|
|
1724
1732
|
ft.displayName = "SidebarItemLabel";
|
|
1725
1733
|
const mt = $(({ className: e, children: s, ...t }, i) => {
|
|
1726
|
-
const { mode: d } =
|
|
1727
|
-
return
|
|
1734
|
+
const { mode: d } = H(), a = d === "icon", n = oe(ts);
|
|
1735
|
+
return ne(() => {
|
|
1728
1736
|
if (!n || !a) return;
|
|
1729
1737
|
const u = s == null || s === !1 ? null : String(s).trim() || null;
|
|
1730
1738
|
return n(u), () => n(null);
|
|
@@ -1758,7 +1766,7 @@ const mt = $(({ className: e, children: s, ...t }, i) => {
|
|
|
1758
1766
|
);
|
|
1759
1767
|
});
|
|
1760
1768
|
mt.displayName = "SidebarItemBadge";
|
|
1761
|
-
const pt =
|
|
1769
|
+
const pt = ae(
|
|
1762
1770
|
[
|
|
1763
1771
|
"ds:flex ds:items-center",
|
|
1764
1772
|
"ds:text-[var(--foreground)]",
|
|
@@ -1808,7 +1816,7 @@ const pt = ne(
|
|
|
1808
1816
|
}
|
|
1809
1817
|
), vt = $(
|
|
1810
1818
|
({ logo: e, name: s, showChevron: t = !0, variant: i = "ghost", className: d, ...a }, n) => {
|
|
1811
|
-
const { mode: u } =
|
|
1819
|
+
const { mode: u } = H(), c = u !== "icon";
|
|
1812
1820
|
return /* @__PURE__ */ h(
|
|
1813
1821
|
"button",
|
|
1814
1822
|
{
|
|
@@ -1887,7 +1895,7 @@ function os({
|
|
|
1887
1895
|
slot: e && !s ? /* @__PURE__ */ r(us, { children: t }) : null
|
|
1888
1896
|
};
|
|
1889
1897
|
}
|
|
1890
|
-
const gt =
|
|
1898
|
+
const gt = ae(
|
|
1891
1899
|
[
|
|
1892
1900
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
1893
1901
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1933,46 +1941,46 @@ const gt = ne(
|
|
|
1933
1941
|
children: u,
|
|
1934
1942
|
onClickCapture: c,
|
|
1935
1943
|
onAuxClickCapture: l,
|
|
1936
|
-
...
|
|
1944
|
+
...w
|
|
1937
1945
|
}, C) => {
|
|
1938
|
-
const { mode:
|
|
1946
|
+
const { mode: I } = H(), j = I !== "icon", v = os({
|
|
1939
1947
|
asChild: i,
|
|
1940
1948
|
disabled: a,
|
|
1941
1949
|
children: u,
|
|
1942
1950
|
onClickCapture: c,
|
|
1943
1951
|
onAuxClickCapture: l
|
|
1944
|
-
}), { Comp:
|
|
1952
|
+
}), { Comp: p } = v, b = /* @__PURE__ */ r(
|
|
1945
1953
|
"span",
|
|
1946
1954
|
{
|
|
1947
1955
|
"aria-hidden": "true",
|
|
1948
1956
|
className: "ds:inline-flex ds:size-4 ds:items-center ds:justify-center",
|
|
1949
1957
|
children: e
|
|
1950
1958
|
}
|
|
1951
|
-
),
|
|
1959
|
+
), x = j ? /* @__PURE__ */ h(Ie, { children: [
|
|
1952
1960
|
/* @__PURE__ */ r("span", { "data-sidebar-primary-label": "", className: "ds:truncate", children: s }),
|
|
1953
1961
|
t && !a ? /* @__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
|
|
1954
1962
|
] }) : null, P = /* @__PURE__ */ h(
|
|
1955
|
-
|
|
1963
|
+
p,
|
|
1956
1964
|
{
|
|
1957
1965
|
ref: C,
|
|
1958
|
-
...
|
|
1966
|
+
...v.props,
|
|
1959
1967
|
"aria-label": s,
|
|
1960
1968
|
"aria-keyshortcuts": a ? void 0 : Ke(t),
|
|
1961
1969
|
"aria-current": d ? "page" : void 0,
|
|
1962
1970
|
className: [
|
|
1963
|
-
gt({ mode:
|
|
1964
|
-
|
|
1971
|
+
gt({ mode: I }),
|
|
1972
|
+
v.hostClassName,
|
|
1965
1973
|
n
|
|
1966
1974
|
].filter(Boolean).join(" "),
|
|
1967
|
-
...
|
|
1975
|
+
...w,
|
|
1968
1976
|
children: [
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1977
|
+
b,
|
|
1978
|
+
v.slot,
|
|
1979
|
+
x
|
|
1972
1980
|
]
|
|
1973
1981
|
}
|
|
1974
1982
|
);
|
|
1975
|
-
return
|
|
1983
|
+
return j ? P : /* @__PURE__ */ h(y.Root, { children: [
|
|
1976
1984
|
/* @__PURE__ */ r(y.Trigger, { asChild: !0, children: P }),
|
|
1977
1985
|
/* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
|
|
1978
1986
|
y.Content,
|
|
@@ -2013,33 +2021,33 @@ const ht = [
|
|
|
2013
2021
|
children: u,
|
|
2014
2022
|
onClickCapture: c,
|
|
2015
2023
|
onAuxClickCapture: l,
|
|
2016
|
-
...
|
|
2024
|
+
...w
|
|
2017
2025
|
}, C) => {
|
|
2018
|
-
const { mode:
|
|
2026
|
+
const { mode: I, navElementId: j, quietFocusRef: v } = H(), p = os({
|
|
2019
2027
|
asChild: i,
|
|
2020
2028
|
disabled: a,
|
|
2021
2029
|
children: u,
|
|
2022
2030
|
onClickCapture: c,
|
|
2023
2031
|
onAuxClickCapture: l
|
|
2024
|
-
}), { Comp:
|
|
2032
|
+
}), { Comp: b } = p, x = /* @__PURE__ */ h(y.Root, { children: [
|
|
2025
2033
|
/* @__PURE__ */ r(
|
|
2026
2034
|
y.Trigger,
|
|
2027
2035
|
{
|
|
2028
2036
|
asChild: !0,
|
|
2029
2037
|
onFocus: (P) => {
|
|
2030
|
-
|
|
2038
|
+
v != null && v.current && P.preventDefault();
|
|
2031
2039
|
},
|
|
2032
2040
|
children: /* @__PURE__ */ h(
|
|
2033
|
-
|
|
2041
|
+
b,
|
|
2034
2042
|
{
|
|
2035
2043
|
ref: C,
|
|
2036
2044
|
"data-component": "sidebar-header-action",
|
|
2037
|
-
...
|
|
2045
|
+
...p.props,
|
|
2038
2046
|
"aria-label": s,
|
|
2039
2047
|
"aria-keyshortcuts": a ? void 0 : Ke(t),
|
|
2040
2048
|
"aria-current": d ? "page" : void 0,
|
|
2041
|
-
className: [ht,
|
|
2042
|
-
...
|
|
2049
|
+
className: [ht, p.hostClassName, n].filter(Boolean).join(" "),
|
|
2050
|
+
...w,
|
|
2043
2051
|
children: [
|
|
2044
2052
|
/* @__PURE__ */ r(
|
|
2045
2053
|
"span",
|
|
@@ -2049,7 +2057,7 @@ const ht = [
|
|
|
2049
2057
|
children: e
|
|
2050
2058
|
}
|
|
2051
2059
|
),
|
|
2052
|
-
|
|
2060
|
+
p.slot
|
|
2053
2061
|
]
|
|
2054
2062
|
}
|
|
2055
2063
|
)
|
|
@@ -2058,7 +2066,7 @@ const ht = [
|
|
|
2058
2066
|
/* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
|
|
2059
2067
|
y.Content,
|
|
2060
2068
|
{
|
|
2061
|
-
side:
|
|
2069
|
+
side: I === "icon" ? "right" : "bottom",
|
|
2062
2070
|
sideOffset: 6,
|
|
2063
2071
|
className: me,
|
|
2064
2072
|
children: [
|
|
@@ -2069,32 +2077,32 @@ const ht = [
|
|
|
2069
2077
|
}
|
|
2070
2078
|
) })
|
|
2071
2079
|
] });
|
|
2072
|
-
return
|
|
2080
|
+
return j !== void 0 ? x : /* @__PURE__ */ r(y.Provider, { delayDuration: 300, children: x });
|
|
2073
2081
|
}
|
|
2074
2082
|
);
|
|
2075
2083
|
as.displayName = "SidebarHeaderAction";
|
|
2076
2084
|
const yt = $(({ onClick: e, disabled: s = !1, ...t }, i) => {
|
|
2077
|
-
const { t: d } = de("ui"), { mode: a } =
|
|
2085
|
+
const { t: d } = de("ui"), { mode: a } = H(), n = oe(Oe), [{ total: u, open: c }, l] = Z(
|
|
2078
2086
|
() => (n == null ? void 0 : n.getSnapshot()) ?? Hs
|
|
2079
2087
|
);
|
|
2080
|
-
if (
|
|
2088
|
+
if (xe(() => {
|
|
2081
2089
|
if (n)
|
|
2082
2090
|
return l(n.getSnapshot()), n.subscribe(() => l(n.getSnapshot()));
|
|
2083
2091
|
}, [n]), !n || u === 0) return null;
|
|
2084
|
-
const
|
|
2092
|
+
const w = c > 0;
|
|
2085
2093
|
return /* @__PURE__ */ r(
|
|
2086
2094
|
as,
|
|
2087
2095
|
{
|
|
2088
2096
|
ref: i,
|
|
2089
|
-
icon:
|
|
2097
|
+
icon: w ? /* @__PURE__ */ r(Ss, { "aria-hidden": "true", className: "ds:size-4" }) : /* @__PURE__ */ r(Is, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
2090
2098
|
label: d(
|
|
2091
|
-
|
|
2099
|
+
w ? "navigation.sidebar.collapseAllSections" : "navigation.sidebar.expandAllSections"
|
|
2092
2100
|
),
|
|
2093
|
-
"aria-expanded":
|
|
2101
|
+
"aria-expanded": w,
|
|
2094
2102
|
"data-sidebar-sections-toggle": "",
|
|
2095
2103
|
disabled: a === "icon" || s,
|
|
2096
2104
|
onClick: (C) => {
|
|
2097
|
-
e == null || e(C), C.defaultPrevented || n.setAll(!
|
|
2105
|
+
e == null || e(C), C.defaultPrevented || n.setAll(!w);
|
|
2098
2106
|
},
|
|
2099
2107
|
...t
|
|
2100
2108
|
}
|
|
@@ -2127,7 +2135,7 @@ const xt = [
|
|
|
2127
2135
|
"ds:motion-reduce:transition-none"
|
|
2128
2136
|
].join(" "), Pe = $(
|
|
2129
2137
|
({ isPinned: e, onPinChange: s, label: t, className: i, onClick: d, ...a }, n) => {
|
|
2130
|
-
const { t: u } = de("ui"), { mode: c } =
|
|
2138
|
+
const { t: u } = de("ui"), { mode: c } = H();
|
|
2131
2139
|
if (c === "icon") return null;
|
|
2132
2140
|
const l = e ? u("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: t }) : u("navigation.sidebar.pinItem", "Pin {{label}}", { label: t });
|
|
2133
2141
|
return /* @__PURE__ */ r(
|
|
@@ -2138,8 +2146,8 @@ const xt = [
|
|
|
2138
2146
|
"aria-label": l,
|
|
2139
2147
|
"aria-pressed": e,
|
|
2140
2148
|
className: [xt, i].filter(Boolean).join(" "),
|
|
2141
|
-
onClick: (
|
|
2142
|
-
|
|
2149
|
+
onClick: (w) => {
|
|
2150
|
+
w.preventDefault(), w.stopPropagation(), s == null || s(!e), d == null || d(w);
|
|
2143
2151
|
},
|
|
2144
2152
|
...a,
|
|
2145
2153
|
children: /* @__PURE__ */ r(
|
|
@@ -2155,13 +2163,13 @@ const xt = [
|
|
|
2155
2163
|
}
|
|
2156
2164
|
);
|
|
2157
2165
|
Pe.displayName = "SidebarPinButton";
|
|
2158
|
-
const is = ie(null), wt = () =>
|
|
2166
|
+
const is = ie(null), wt = () => oe(is), St = $(
|
|
2159
2167
|
({ heading: e, emptyMessage: s, onReorder: t, className: i, children: d, ...a }, n) => {
|
|
2160
|
-
const { t: u } = de("ui"), c = e ?? u("navigation.sidebar.favorites", "Favourites"), l = Array.isArray(d) ? d.filter(Boolean) : d ? [d] : [],
|
|
2161
|
-
|
|
2162
|
-
}, []), P =
|
|
2163
|
-
() => ({ onReorder: t, count:
|
|
2164
|
-
[t,
|
|
2168
|
+
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
|
+
b.current = !b.current, p(b.current ? L : `${L}`);
|
|
2170
|
+
}, []), P = ye(
|
|
2171
|
+
() => ({ onReorder: t, count: w, dragSource: I, setDragSource: j, announce: x }),
|
|
2172
|
+
[t, w, I, x]
|
|
2165
2173
|
);
|
|
2166
2174
|
return !C && !s ? null : /* @__PURE__ */ r(is.Provider, { value: P, children: /* @__PURE__ */ r(es.Provider, { value: !0, children: /* @__PURE__ */ h(
|
|
2167
2175
|
ss,
|
|
@@ -2172,14 +2180,14 @@ const is = ie(null), wt = () => re(is), St = $(
|
|
|
2172
2180
|
...a,
|
|
2173
2181
|
children: [
|
|
2174
2182
|
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 }),
|
|
2175
|
-
/* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
2183
|
+
/* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: v })
|
|
2176
2184
|
]
|
|
2177
2185
|
}
|
|
2178
2186
|
) }) });
|
|
2179
2187
|
}
|
|
2180
2188
|
);
|
|
2181
2189
|
St.displayName = "SidebarFavorites";
|
|
2182
|
-
const Nt =
|
|
2190
|
+
const Nt = ae(
|
|
2183
2191
|
[
|
|
2184
2192
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
2185
2193
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -2224,45 +2232,45 @@ const Nt = ne(
|
|
|
2224
2232
|
"aria-label": u,
|
|
2225
2233
|
className: c,
|
|
2226
2234
|
children: l,
|
|
2227
|
-
...
|
|
2235
|
+
...w
|
|
2228
2236
|
}, C) => {
|
|
2229
|
-
const { t:
|
|
2230
|
-
if (!(
|
|
2231
|
-
const G = Math.max(0, Math.min(
|
|
2232
|
-
G !==
|
|
2233
|
-
|
|
2237
|
+
const { t: I } = de("ui"), { mode: j } = H(), v = wt(), [p, b] = Z(!1), x = !!(v != null && v.onReorder) && j !== "icon", P = i ?? u ?? "", L = ve(), A = (g, M) => {
|
|
2238
|
+
if (!(v != null && v.onReorder)) return;
|
|
2239
|
+
const G = Math.max(0, Math.min(v.count - 1, M));
|
|
2240
|
+
G !== g && (v.onReorder(g, G), v.announce(
|
|
2241
|
+
I(
|
|
2234
2242
|
"navigation.sidebar.reorderAnnounce",
|
|
2235
2243
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
2236
|
-
{ label: P, to: G + 1, total:
|
|
2244
|
+
{ label: P, to: G + 1, total: v.count }
|
|
2237
2245
|
)
|
|
2238
2246
|
));
|
|
2239
|
-
},
|
|
2240
|
-
|
|
2241
|
-
},
|
|
2242
|
-
|
|
2247
|
+
}, T = (g) => {
|
|
2248
|
+
x && (g.altKey && g.key === "ArrowUp" ? (g.preventDefault(), A(e, e - 1)) : g.altKey && g.key === "ArrowDown" ? (g.preventDefault(), A(e, e + 1)) : g.key === "Home" && g.altKey ? (g.preventDefault(), A(e, 0)) : g.key === "End" && g.altKey && (g.preventDefault(), A(e, v.count - 1)));
|
|
2249
|
+
}, _ = (g) => {
|
|
2250
|
+
x && (v == null || v.setDragSource(e), g.dataTransfer && (g.dataTransfer.effectAllowed = "move", g.dataTransfer.setData("ds:text/plain", String(e))));
|
|
2243
2251
|
}, K = () => {
|
|
2244
|
-
|
|
2245
|
-
},
|
|
2246
|
-
!
|
|
2247
|
-
},
|
|
2248
|
-
if (!
|
|
2249
|
-
|
|
2250
|
-
const
|
|
2251
|
-
|
|
2252
|
-
},
|
|
2252
|
+
v == null || v.setDragSource(null), b(!1);
|
|
2253
|
+
}, Y = (g) => {
|
|
2254
|
+
!x || (v == null ? void 0 : v.dragSource) === null || (g.preventDefault(), g.dataTransfer && (g.dataTransfer.dropEffect = "move"), b(!0));
|
|
2255
|
+
}, k = () => b(!1), R = (g) => {
|
|
2256
|
+
if (!x) return;
|
|
2257
|
+
g.preventDefault();
|
|
2258
|
+
const M = v == null ? void 0 : v.dragSource;
|
|
2259
|
+
b(!1), !(M == null || M === e) && A(M, e);
|
|
2260
|
+
}, O = (v == null ? void 0 : v.dragSource) === e;
|
|
2253
2261
|
return /* @__PURE__ */ h(
|
|
2254
2262
|
"div",
|
|
2255
2263
|
{
|
|
2256
2264
|
className: Nt({
|
|
2257
|
-
dragging:
|
|
2258
|
-
dropTarget:
|
|
2265
|
+
dragging: O,
|
|
2266
|
+
dropTarget: p && !O
|
|
2259
2267
|
}),
|
|
2260
|
-
draggable:
|
|
2261
|
-
onDragStart:
|
|
2262
|
-
onDragEnd:
|
|
2263
|
-
onDragOver:
|
|
2264
|
-
onDragLeave:
|
|
2265
|
-
onDrop:
|
|
2268
|
+
draggable: x || void 0,
|
|
2269
|
+
onDragStart: x ? _ : void 0,
|
|
2270
|
+
onDragEnd: x ? K : void 0,
|
|
2271
|
+
onDragOver: Y,
|
|
2272
|
+
onDragLeave: k,
|
|
2273
|
+
onDrop: R,
|
|
2266
2274
|
children: [
|
|
2267
2275
|
/* @__PURE__ */ r(
|
|
2268
2276
|
rs,
|
|
@@ -2271,29 +2279,29 @@ const Nt = ne(
|
|
|
2271
2279
|
isActive: s,
|
|
2272
2280
|
asChild: t,
|
|
2273
2281
|
"aria-label": u,
|
|
2274
|
-
"aria-describedby":
|
|
2275
|
-
draggable:
|
|
2276
|
-
className: [
|
|
2277
|
-
...
|
|
2282
|
+
"aria-describedby": x ? L : void 0,
|
|
2283
|
+
draggable: x ? !1 : void 0,
|
|
2284
|
+
className: [x ? "ds:flex-1 ds:min-w-0" : "", c ?? ""].filter(Boolean).join(" "),
|
|
2285
|
+
...w,
|
|
2278
2286
|
children: l
|
|
2279
2287
|
}
|
|
2280
2288
|
),
|
|
2281
|
-
|
|
2289
|
+
x ? /* @__PURE__ */ r(
|
|
2282
2290
|
"button",
|
|
2283
2291
|
{
|
|
2284
2292
|
type: "button",
|
|
2285
|
-
id:
|
|
2286
|
-
"aria-label":
|
|
2293
|
+
id: L,
|
|
2294
|
+
"aria-label": I(
|
|
2287
2295
|
"navigation.sidebar.reorderHandle",
|
|
2288
2296
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
2289
2297
|
{ label: P }
|
|
2290
2298
|
),
|
|
2291
2299
|
className: It,
|
|
2292
|
-
onKeyDown:
|
|
2300
|
+
onKeyDown: T,
|
|
2293
2301
|
children: /* @__PURE__ */ r(hs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
2294
2302
|
}
|
|
2295
2303
|
) : null,
|
|
2296
|
-
a &&
|
|
2304
|
+
a && j !== "icon" ? /* @__PURE__ */ r(
|
|
2297
2305
|
Pe,
|
|
2298
2306
|
{
|
|
2299
2307
|
isPinned: d,
|
|
@@ -2307,7 +2315,7 @@ const Nt = ne(
|
|
|
2307
2315
|
}
|
|
2308
2316
|
);
|
|
2309
2317
|
Ct.displayName = "SidebarFavoriteItem";
|
|
2310
|
-
const zt =
|
|
2318
|
+
const zt = ae(
|
|
2311
2319
|
[
|
|
2312
2320
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
2313
2321
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -2321,7 +2329,7 @@ const zt = ne(
|
|
|
2321
2329
|
"ds:no-underline"
|
|
2322
2330
|
].join(" ")
|
|
2323
2331
|
), Tt = $(({ avatar: e, name: s, subtitle: t, subtitleLabel: i, className: d, ...a }, n) => {
|
|
2324
|
-
const { mode: u } =
|
|
2332
|
+
const { mode: u } = H(), c = u !== "icon", l = typeof t == "string" ? t : i;
|
|
2325
2333
|
return /* @__PURE__ */ h(
|
|
2326
2334
|
"button",
|
|
2327
2335
|
{
|
|
@@ -2349,22 +2357,22 @@ const zt = ne(
|
|
|
2349
2357
|
});
|
|
2350
2358
|
Tt.displayName = "SidebarProfilePill";
|
|
2351
2359
|
const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
2352
|
-
const { t: a } = de("ui"), { mode: n, density: u, transitionTo: c } =
|
|
2360
|
+
const { t: a } = de("ui"), { mode: n, density: u, transitionTo: c } = H();
|
|
2353
2361
|
if (n === "overlay") return null;
|
|
2354
|
-
const l = n === "expanded",
|
|
2362
|
+
const l = n === "expanded", w = l ? [
|
|
2355
2363
|
"ds:justify-start",
|
|
2356
2364
|
u === "compact" ? "ds:ps-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-sm)]"
|
|
2357
|
-
].join(" ") : "ds:justify-center", C = s ?? (l ? a("navigation.sidebar.collapse", "Collapse sidebar") : a("navigation.sidebar.expand", "Expand sidebar")),
|
|
2365
|
+
].join(" ") : "ds:justify-center", C = s ?? (l ? a("navigation.sidebar.collapse", "Collapse sidebar") : a("navigation.sidebar.expand", "Expand sidebar")), I = /* @__PURE__ */ r(
|
|
2358
2366
|
"button",
|
|
2359
2367
|
{
|
|
2360
2368
|
ref: d,
|
|
2361
2369
|
type: "button",
|
|
2362
2370
|
"aria-label": C,
|
|
2363
2371
|
"aria-expanded": l,
|
|
2364
|
-
onClick: (
|
|
2365
|
-
c == null || c(l ? "icon" : "expanded"), t == null || t(
|
|
2372
|
+
onClick: (j) => {
|
|
2373
|
+
c == null || c(l ? "icon" : "expanded"), t == null || t(j);
|
|
2366
2374
|
},
|
|
2367
|
-
className: [ns,
|
|
2375
|
+
className: [ns, w, e].filter(Boolean).join(" "),
|
|
2368
2376
|
...i,
|
|
2369
2377
|
children: /* @__PURE__ */ r("span", { className: "ds:inline-flex ds:size-5 ds:shrink-0 ds:items-center ds:justify-center", children: l ? /* @__PURE__ */ r(
|
|
2370
2378
|
zs,
|
|
@@ -2382,7 +2390,7 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
|
2382
2390
|
}
|
|
2383
2391
|
);
|
|
2384
2392
|
return /* @__PURE__ */ h(y.Root, { children: [
|
|
2385
|
-
/* @__PURE__ */ r(y.Trigger, { asChild: !0, children:
|
|
2393
|
+
/* @__PURE__ */ r(y.Trigger, { asChild: !0, children: I }),
|
|
2386
2394
|
/* @__PURE__ */ r(y.Portal, { children: /* @__PURE__ */ h(
|
|
2387
2395
|
y.Content,
|
|
2388
2396
|
{
|
|
@@ -2399,8 +2407,8 @@ const Et = $(({ className: e, "aria-label": s, onClick: t, ...i }, d) => {
|
|
|
2399
2407
|
});
|
|
2400
2408
|
Et.displayName = "SidebarCollapseTrigger";
|
|
2401
2409
|
const jt = $(({ className: e, ...s }, t) => {
|
|
2402
|
-
const { t: i } = de("ui"), { mode: d, quietFocusRef: a } =
|
|
2403
|
-
if (
|
|
2410
|
+
const { t: i } = de("ui"), { mode: d, quietFocusRef: a } = H(), n = oe(We), u = d === "overlay" && n !== null;
|
|
2411
|
+
if (xe(() => {
|
|
2404
2412
|
if (!(!u || !n))
|
|
2405
2413
|
return n();
|
|
2406
2414
|
}, [u, n]), !u) return null;
|
|
@@ -2413,7 +2421,7 @@ const jt = $(({ className: e, ...s }, t) => {
|
|
|
2413
2421
|
onFocus: (l) => {
|
|
2414
2422
|
a != null && a.current && l.preventDefault();
|
|
2415
2423
|
},
|
|
2416
|
-
children: /* @__PURE__ */ r(
|
|
2424
|
+
children: /* @__PURE__ */ r(ge.Close, { asChild: !0, children: /* @__PURE__ */ r(
|
|
2417
2425
|
"button",
|
|
2418
2426
|
{
|
|
2419
2427
|
ref: t,
|
|
@@ -2441,7 +2449,7 @@ const jt = $(({ className: e, ...s }, t) => {
|
|
|
2441
2449
|
] });
|
|
2442
2450
|
});
|
|
2443
2451
|
jt.displayName = "SidebarCloseTrigger";
|
|
2444
|
-
const kt =
|
|
2452
|
+
const kt = ae(
|
|
2445
2453
|
[
|
|
2446
2454
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
2447
2455
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -2473,7 +2481,7 @@ const kt = ne(
|
|
|
2473
2481
|
defaultVariants: { mode: "expanded" }
|
|
2474
2482
|
}
|
|
2475
2483
|
), At = $(({ title: e, description: s, icon: t, className: i, ...d }, a) => {
|
|
2476
|
-
const { mode: n } =
|
|
2484
|
+
const { mode: n } = H(), u = n === "icon", c = (
|
|
2477
2485
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
2478
2486
|
// expanded mode the accessible name comes from the visible contents
|
|
2479
2487
|
// so the description isn't excluded from it.
|
|
@@ -2558,6 +2566,6 @@ export {
|
|
|
2558
2566
|
At as s,
|
|
2559
2567
|
vt as t,
|
|
2560
2568
|
Os as u,
|
|
2561
|
-
|
|
2569
|
+
H as v
|
|
2562
2570
|
};
|
|
2563
|
-
//# sourceMappingURL=sidebar-
|
|
2571
|
+
//# sourceMappingURL=sidebar-BS24EnYd.js.map
|