@alfadocs/ui-kit 0.0.20 → 0.1.1
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/accordion-BJD1aM67.js +117 -0
- package/dist/_chunks/accordion-BJD1aM67.js.map +1 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js +130 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js.map +1 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js +119 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js.map +1 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js +379 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js.map +1 -0
- package/dist/_chunks/{alert-C5ud6CfE.js → alert-ETrF7Q8J.js} +51 -51
- package/dist/_chunks/alert-ETrF7Q8J.js.map +1 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js +48 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js.map +1 -0
- package/dist/_chunks/{app-frame-CmIUp9BD.js → app-frame-uq2Gy0vs.js} +37 -37
- package/dist/_chunks/app-frame-uq2Gy0vs.js.map +1 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js +56 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js.map +1 -0
- package/dist/_chunks/{audio-recorder-GkGNtW2X.js → audio-recorder-D2UEBF9B.js} +98 -98
- package/dist/_chunks/audio-recorder-D2UEBF9B.js.map +1 -0
- package/dist/_chunks/{audio-visualiser-CIO3yy23.js → audio-visualiser-B4u4goV5.js} +46 -46
- package/dist/_chunks/audio-visualiser-B4u4goV5.js.map +1 -0
- package/dist/_chunks/{autocomplete.agent-kb0nmr6F.js → autocomplete.agent-Bi6CiRKa.js} +111 -111
- package/dist/_chunks/autocomplete.agent-Bi6CiRKa.js.map +1 -0
- package/dist/_chunks/{avatar-BsV7vRA6.js → avatar-BAhxbDEu.js} +38 -38
- package/dist/_chunks/avatar-BAhxbDEu.js.map +1 -0
- package/dist/_chunks/badge-zDghajh8.js +104 -0
- package/dist/_chunks/badge-zDghajh8.js.map +1 -0
- package/dist/_chunks/{balance-cell-renderer-BQwN51rT.js → balance-cell-renderer-BGyvZWjB.js} +123 -124
- package/dist/_chunks/balance-cell-renderer-BGyvZWjB.js.map +1 -0
- package/dist/_chunks/{breadcrumb-DnO6eHSS.js → breadcrumb-pdUacgm1.js} +40 -40
- package/dist/_chunks/breadcrumb-pdUacgm1.js.map +1 -0
- package/dist/_chunks/button-DmiGFnNA.js +119 -0
- package/dist/_chunks/button-DmiGFnNA.js.map +1 -0
- package/dist/_chunks/{button-group-CI7LFxt3.js → button-group-BtTHSyU0.js} +24 -24
- package/dist/_chunks/button-group-BtTHSyU0.js.map +1 -0
- package/dist/_chunks/{calendar-BIXVzhkL.js → calendar-BkDeDTaX.js} +333 -290
- package/dist/_chunks/calendar-BkDeDTaX.js.map +1 -0
- package/dist/_chunks/card-DeItIBcV.js +158 -0
- package/dist/_chunks/card-DeItIBcV.js.map +1 -0
- package/dist/_chunks/{chart.agent-DkmVXNsI.js → chart.agent-BdS-_8MO.js} +66 -64
- package/dist/_chunks/chart.agent-BdS-_8MO.js.map +1 -0
- package/dist/_chunks/chat-container-Co8HpB64.js +174 -0
- package/dist/_chunks/chat-container-Co8HpB64.js.map +1 -0
- package/dist/_chunks/{chat-input-aphxDjZL.js → chat-input-3rstZhHR.js} +57 -57
- package/dist/_chunks/chat-input-3rstZhHR.js.map +1 -0
- package/dist/_chunks/{chat-message-CdJSD18D.js → chat-message-dDMVSYBs.js} +66 -66
- package/dist/_chunks/chat-message-dDMVSYBs.js.map +1 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js +116 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js.map +1 -0
- package/dist/_chunks/{checkbox-group-D1aqVI0-.js → checkbox-group-DBnIBRT_.js} +34 -34
- package/dist/_chunks/checkbox-group-DBnIBRT_.js.map +1 -0
- package/dist/_chunks/{collapsible-jBFm7Ah8.js → collapsible-DPGQnHZh.js} +16 -16
- package/dist/_chunks/collapsible-DPGQnHZh.js.map +1 -0
- package/dist/_chunks/{color-picker-CiotzQJF.js → color-picker-OKKF3Dww.js} +158 -158
- package/dist/_chunks/color-picker-OKKF3Dww.js.map +1 -0
- package/dist/_chunks/{combobox.agent-B6RwDSct.js → combobox.agent-CfeB-IZ1.js} +107 -107
- package/dist/_chunks/combobox.agent-CfeB-IZ1.js.map +1 -0
- package/dist/_chunks/{command-palette.agent-B87_OkmC.js → command-palette.agent-XLfSGHCL.js} +27 -27
- package/dist/_chunks/command-palette.agent-XLfSGHCL.js.map +1 -0
- package/dist/_chunks/{date-picker-CdPuI3dK.js → date-picker-DXx8oSJb.js} +5 -5
- package/dist/_chunks/{date-picker-CdPuI3dK.js.map → date-picker-DXx8oSJb.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-DfK4cjln.js → date-range-picker-C3CbY__H.js} +29 -29
- package/dist/_chunks/{date-range-picker-DfK4cjln.js.map → date-range-picker-C3CbY__H.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-CX_FMsLG.js → date-time-picker-Bn3FPeAc.js} +58 -58
- package/dist/_chunks/date-time-picker-Bn3FPeAc.js.map +1 -0
- package/dist/_chunks/description-list-B1CL3RTG.js +187 -0
- package/dist/_chunks/description-list-B1CL3RTG.js.map +1 -0
- package/dist/_chunks/{dialog.agent-B276rAQF.js → dialog.agent-D9WeIWi2.js} +39 -39
- package/dist/_chunks/dialog.agent-D9WeIWi2.js.map +1 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js +210 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js.map +1 -0
- package/dist/_chunks/{empty-state-DiG7vYBM.js → empty-state-DV96gCnp.js} +37 -37
- package/dist/_chunks/empty-state-DV96gCnp.js.map +1 -0
- package/dist/_chunks/{file-upload.agent-BMow5yDY.js → file-upload.agent-DYFnqdxw.js} +185 -185
- package/dist/_chunks/file-upload.agent-DYFnqdxw.js.map +1 -0
- package/dist/_chunks/{flag-ChP784EM.js → flag-C3BUEwHH.js} +14 -14
- package/dist/_chunks/{flag-ChP784EM.js.map → flag-C3BUEwHH.js.map} +1 -1
- package/dist/_chunks/floating-action-button-RigP2E7o.js +95 -0
- package/dist/_chunks/floating-action-button-RigP2E7o.js.map +1 -0
- package/dist/_chunks/form-field-DI5LY5aG.js +121 -0
- package/dist/_chunks/form-field-DI5LY5aG.js.map +1 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js +197 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js.map +1 -0
- package/dist/_chunks/{header-BpKaSL_v.js → header-CW2oRd5H.js} +111 -111
- package/dist/_chunks/header-CW2oRd5H.js.map +1 -0
- package/dist/_chunks/icon-button-C482ii4y.js +45 -0
- package/dist/_chunks/icon-button-C482ii4y.js.map +1 -0
- package/dist/_chunks/{icon-button-group-tERESY-n.js → icon-button-group-BnhkUWUg.js} +56 -56
- package/dist/_chunks/icon-button-group-BnhkUWUg.js.map +1 -0
- package/dist/_chunks/{kbd-0iPlQjgC.js → kbd-DTcIjYA7.js} +52 -52
- package/dist/_chunks/kbd-DTcIjYA7.js.map +1 -0
- package/dist/_chunks/{key-value-pair--Je59tAF.js → key-value-pair-DDhSYdDL.js} +26 -26
- package/dist/_chunks/key-value-pair-DDhSYdDL.js.map +1 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js +755 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js.map +1 -0
- package/dist/_chunks/{list-n8vI8Yvn.js → list-Cwe8mcmh.js} +96 -96
- package/dist/_chunks/list-Cwe8mcmh.js.map +1 -0
- package/dist/_chunks/live-region-COggO6x6.js +57 -0
- package/dist/_chunks/live-region-COggO6x6.js.map +1 -0
- package/dist/_chunks/{logo-UNWYb9p7.js → logo-3wrZGpwg.js} +29 -29
- package/dist/_chunks/logo-3wrZGpwg.js.map +1 -0
- package/dist/_chunks/{matrix-rain-Q7xTEpKu.js → matrix-rain-gsHqSvW7.js} +75 -75
- package/dist/_chunks/matrix-rain-gsHqSvW7.js.map +1 -0
- package/dist/_chunks/message-card-DID3cXUW.js +275 -0
- package/dist/_chunks/message-card-DID3cXUW.js.map +1 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js +302 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js.map +1 -0
- package/dist/_chunks/{multi-select.agent-Cf4pU636.js → multi-select.agent-BUKYZJfp.js} +126 -126
- package/dist/_chunks/multi-select.agent-BUKYZJfp.js.map +1 -0
- package/dist/_chunks/{navigation-menu-DBDsAmXc.js → navigation-menu-NjwxyshT.js} +68 -97
- package/dist/_chunks/navigation-menu-NjwxyshT.js.map +1 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js +255 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js.map +1 -0
- package/dist/_chunks/{notification-tray-CNWPuPZp.js → notification-tray-CnEd7B2q.js} +96 -96
- package/dist/_chunks/notification-tray-CnEd7B2q.js.map +1 -0
- package/dist/_chunks/{number-input-B1Th0DdC.js → number-input-D7rSa_ef.js} +73 -73
- package/dist/_chunks/number-input-D7rSa_ef.js.map +1 -0
- package/dist/_chunks/{otp-input-CmoBuZ4K.js → otp-input-C9R9sC74.js} +42 -42
- package/dist/_chunks/otp-input-C9R9sC74.js.map +1 -0
- package/dist/_chunks/{pagination.agent-B5KLDCMN.js → pagination.agent-D75FB6XP.js} +106 -106
- package/dist/_chunks/pagination.agent-D75FB6XP.js.map +1 -0
- package/dist/_chunks/{password-input-DnjNh-hQ.js → password-input-C6PvKyQV.js} +59 -59
- package/dist/_chunks/password-input-C6PvKyQV.js.map +1 -0
- package/dist/_chunks/{patient-shell-D0RaWDMR.js → patient-shell-CGsmI5LJ.js} +9 -9
- package/dist/_chunks/{patient-shell-D0RaWDMR.js.map → patient-shell-CGsmI5LJ.js.map} +1 -1
- package/dist/_chunks/{payment-form-Cf7U6r5L.js → payment-form-l3j-gA-t.js} +108 -108
- package/dist/_chunks/payment-form-l3j-gA-t.js.map +1 -0
- package/dist/_chunks/{pdf-viewer.agent-DXjgDItg.js → pdf-viewer.agent-DuGfSoep.js} +234 -233
- package/dist/_chunks/pdf-viewer.agent-DuGfSoep.js.map +1 -0
- package/dist/_chunks/{phone-input-C2dtIuxW.js → phone-input-ZWa_FU4R.js} +112 -112
- package/dist/_chunks/phone-input-ZWa_FU4R.js.map +1 -0
- package/dist/_chunks/{popover-D1woU9mP.js → popover-CMr1pTPO.js} +58 -58
- package/dist/_chunks/popover-CMr1pTPO.js.map +1 -0
- package/dist/_chunks/{privacy-lock-C1X42Sit.js → privacy-lock-DdpkKNM2.js} +37 -36
- package/dist/_chunks/privacy-lock-DdpkKNM2.js.map +1 -0
- package/dist/_chunks/{progress-DL3-izuO.js → progress-D4ELgHG3.js} +43 -43
- package/dist/_chunks/progress-D4ELgHG3.js.map +1 -0
- package/dist/_chunks/radio-B_gvGU29.js +106 -0
- package/dist/_chunks/radio-B_gvGU29.js.map +1 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js +88 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js.map +1 -0
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js → react-day-picker-d0MHsyCj.js} +174 -174
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js.map → react-day-picker-d0MHsyCj.js.map} +1 -1
- package/dist/_chunks/{resizable.agent-DVk_jJur.js → resizable.agent-DBpPGNdy.js} +122 -122
- package/dist/_chunks/resizable.agent-DBpPGNdy.js.map +1 -0
- package/dist/_chunks/{rich-text-editor.agent-BOjF4Xao.js → rich-text-editor.agent-C1_E7_7t.js} +225 -225
- package/dist/_chunks/rich-text-editor.agent-C1_E7_7t.js.map +1 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js +144 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js.map +1 -0
- package/dist/_chunks/{search-bar-DgSOAajC.js → search-bar-VoTqJhRp.js} +131 -131
- package/dist/_chunks/search-bar-VoTqJhRp.js.map +1 -0
- package/dist/_chunks/search-input-D6rarD0_.js +197 -0
- package/dist/_chunks/search-input-D6rarD0_.js.map +1 -0
- package/dist/_chunks/select-DbxWF3O_.js +320 -0
- package/dist/_chunks/select-DbxWF3O_.js.map +1 -0
- package/dist/_chunks/{separator-DExI4amU.js → separator-BRQHi8s0.js} +17 -17
- package/dist/_chunks/separator-BRQHi8s0.js.map +1 -0
- package/dist/_chunks/sheet-DyWqluiS.js +188 -0
- package/dist/_chunks/sheet-DyWqluiS.js.map +1 -0
- package/dist/_chunks/sidebar-B52iGGNV.js +1076 -0
- package/dist/_chunks/sidebar-B52iGGNV.js.map +1 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js → sign-in-with-alfadocs-button-BU7MP5Hg.js} +4 -4
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js.map → sign-in-with-alfadocs-button-BU7MP5Hg.js.map} +1 -1
- package/dist/_chunks/{signature-capture.agent-L_1_-zVR.js → signature-capture.agent-4htVctJ2.js} +163 -163
- package/dist/_chunks/signature-capture.agent-4htVctJ2.js.map +1 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js +95 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js.map +1 -0
- package/dist/_chunks/skip-link-CASJkBOe.js +68 -0
- package/dist/_chunks/skip-link-CASJkBOe.js.map +1 -0
- package/dist/_chunks/slider-n8JWpJvT.js +273 -0
- package/dist/_chunks/slider-n8JWpJvT.js.map +1 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js +491 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js.map +1 -0
- package/dist/_chunks/{sparkline.agent-BDTXzTy9.js → sparkline.agent-BLY1IMyW.js} +45 -45
- package/dist/_chunks/sparkline.agent-BLY1IMyW.js.map +1 -0
- package/dist/_chunks/{spinner-77xUGpuX.js → spinner-CoAOGcDa.js} +40 -40
- package/dist/_chunks/spinner-CoAOGcDa.js.map +1 -0
- package/dist/_chunks/stat-D76MNHzK.js +208 -0
- package/dist/_chunks/stat-D76MNHzK.js.map +1 -0
- package/dist/_chunks/{stepper-accordion-BkvqQWPI.js → stepper-accordion-DHQ80A4v.js} +33 -33
- package/dist/_chunks/stepper-accordion-DHQ80A4v.js.map +1 -0
- package/dist/_chunks/{stepper-calendar-BQMjrwzo.js → stepper-calendar-vtWwa2bY.js} +159 -159
- package/dist/_chunks/stepper-calendar-vtWwa2bY.js.map +1 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js +128 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js.map +1 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js +104 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js.map +1 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js +157 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js.map +1 -0
- package/dist/_chunks/switch-DtLPKO0p.js +137 -0
- package/dist/_chunks/switch-DtLPKO0p.js.map +1 -0
- package/dist/_chunks/{tabs.agent-FsGU3sZL.js → tabs.agent-BDUlyPbJ.js} +101 -101
- package/dist/_chunks/tabs.agent-BDUlyPbJ.js.map +1 -0
- package/dist/_chunks/tag-CfSZZN2f.js +194 -0
- package/dist/_chunks/tag-CfSZZN2f.js.map +1 -0
- package/dist/_chunks/task-card-B5xfiFg5.js +112 -0
- package/dist/_chunks/task-card-B5xfiFg5.js.map +1 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js +99 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js.map +1 -0
- package/dist/_chunks/text-area-BqbruBWx.js +152 -0
- package/dist/_chunks/text-area-BqbruBWx.js.map +1 -0
- package/dist/_chunks/text-input-lh6kRXZS.js +187 -0
- package/dist/_chunks/text-input-lh6kRXZS.js.map +1 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js +326 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js.map +1 -0
- package/dist/_chunks/{time-picker-BapZq0OY.js → time-picker-DbpAmPux.js} +102 -102
- package/dist/_chunks/time-picker-DbpAmPux.js.map +1 -0
- package/dist/_chunks/timeline-vjsUeuq1.js +219 -0
- package/dist/_chunks/timeline-vjsUeuq1.js.map +1 -0
- package/dist/_chunks/{timestamp-BLM-jjdw.js → timestamp-DmSt92P1.js} +30 -30
- package/dist/_chunks/timestamp-DmSt92P1.js.map +1 -0
- package/dist/_chunks/{toast-DSCqnDRl.js → toast-DllSITLf.js} +151 -151
- package/dist/_chunks/{toast-DSCqnDRl.js.map → toast-DllSITLf.js.map} +1 -1
- package/dist/_chunks/{tooltip-DF6WjD1r.js → tooltip-Dp3u8jGz.js} +30 -30
- package/dist/_chunks/tooltip-Dp3u8jGz.js.map +1 -0
- package/dist/_chunks/{tooth-scheme.agent-CFKl3iQr.js → tooth-scheme.agent-BRqxWa1D.js} +75 -75
- package/dist/_chunks/tooth-scheme.agent-BRqxWa1D.js.map +1 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js +265 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js.map +1 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js +81 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js.map +1 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js +32 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js.map +1 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js +21 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js.map +1 -0
- package/dist/_chunks/{warning-stack-Cyf_81SL.js → warning-stack-B9N9yWet.js} +38 -38
- package/dist/_chunks/warning-stack-B9N9yWet.js.map +1 -0
- package/dist/_chunks/{workflow-map-Uf-hHAO3.js → workflow-map-gBhL_Wrs.js} +385 -385
- package/dist/_chunks/workflow-map-gBhL_Wrs.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/use-focus-trap.d.ts +32 -0
- package/dist/components/_shared/use-focus-trap.d.ts.map +1 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts +3 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts.map +1 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/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/app-frame/index.js +1 -1
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/flag/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon-button/index.d.ts +3 -0
- package/dist/components/icon-button/index.d.ts.map +1 -0
- package/dist/components/icon-button/index.js +5 -0
- package/dist/components/icon-button/index.js.map +1 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/live-region/index.d.ts +3 -0
- package/dist/components/live-region/index.d.ts.map +1 -0
- package/dist/components/live-region/index.js +5 -0
- package/dist/components/live-region/index.js.map +1 -0
- package/dist/components/live-region/live-region.d.ts +49 -0
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/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/navigation-menu/index.d.ts +4 -2
- package/dist/components/navigation-menu/index.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.js +3 -2
- package/dist/components/navigation-menu/index.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -6
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/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/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/privacy-lock/privacy-lock.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +5 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio-group/index.js +4 -3
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/skip-link/index.d.ts.map +1 -0
- package/dist/components/skip-link/index.js +5 -0
- package/dist/components/skip-link/index.js.map +1 -0
- package/dist/components/skip-link/skip-link.d.ts +34 -0
- package/dist/components/skip-link/skip-link.d.ts.map +1 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/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-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.d.ts +3 -0
- package/dist/components/theme-toggle/index.d.ts.map +1 -0
- package/dist/components/theme-toggle/index.js +5 -0
- package/dist/components/theme-toggle/index.js.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +34 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts.map +1 -0
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- 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/typing-indicator/index.js +1 -1
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.d.ts.map +1 -0
- package/dist/components/visually-hidden/index.js +5 -0
- package/dist/components/visually-hidden/index.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +10 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-locale.d.ts +27 -0
- package/dist/hooks/use-locale.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts +17 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/i18n/config.js +59 -2
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +57 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +442 -431
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +19 -0
- package/dist/locales/en.json +19 -0
- package/dist/locales/it.json +19 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +4 -2
- package/dist/_chunks/accordion-Dgcd38U_.js +0 -117
- package/dist/_chunks/accordion-Dgcd38U_.js.map +0 -1
- package/dist/_chunks/agenda-card-B2gq-gTq.js +0 -130
- package/dist/_chunks/agenda-card-B2gq-gTq.js.map +0 -1
- package/dist/_chunks/agenda-tray-twa8g_87.js +0 -119
- package/dist/_chunks/agenda-tray-twa8g_87.js.map +0 -1
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js +0 -379
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js.map +0 -1
- package/dist/_chunks/alert-C5ud6CfE.js.map +0 -1
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js +0 -17
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js.map +0 -1
- package/dist/_chunks/app-frame-CmIUp9BD.js.map +0 -1
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js +0 -56
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js.map +0 -1
- package/dist/_chunks/audio-recorder-GkGNtW2X.js.map +0 -1
- package/dist/_chunks/audio-visualiser-CIO3yy23.js.map +0 -1
- package/dist/_chunks/autocomplete.agent-kb0nmr6F.js.map +0 -1
- package/dist/_chunks/avatar-BsV7vRA6.js.map +0 -1
- package/dist/_chunks/badge--CmSr7ok.js +0 -104
- package/dist/_chunks/badge--CmSr7ok.js.map +0 -1
- package/dist/_chunks/balance-cell-renderer-BQwN51rT.js.map +0 -1
- package/dist/_chunks/breadcrumb-DnO6eHSS.js.map +0 -1
- package/dist/_chunks/button-CXL8bA8G.js +0 -119
- package/dist/_chunks/button-CXL8bA8G.js.map +0 -1
- package/dist/_chunks/button-group-CI7LFxt3.js.map +0 -1
- package/dist/_chunks/calendar-BIXVzhkL.js.map +0 -1
- package/dist/_chunks/card-n97MNPP2.js +0 -158
- package/dist/_chunks/card-n97MNPP2.js.map +0 -1
- package/dist/_chunks/chart.agent-DkmVXNsI.js.map +0 -1
- package/dist/_chunks/chat-container-SR3UWxbL.js +0 -174
- package/dist/_chunks/chat-container-SR3UWxbL.js.map +0 -1
- package/dist/_chunks/chat-input-aphxDjZL.js.map +0 -1
- package/dist/_chunks/chat-message-CdJSD18D.js.map +0 -1
- package/dist/_chunks/checkbox-CfiZ0FZc.js +0 -116
- package/dist/_chunks/checkbox-CfiZ0FZc.js.map +0 -1
- package/dist/_chunks/checkbox-group-D1aqVI0-.js.map +0 -1
- package/dist/_chunks/collapsible-jBFm7Ah8.js.map +0 -1
- package/dist/_chunks/color-picker-CiotzQJF.js.map +0 -1
- package/dist/_chunks/combobox.agent-B6RwDSct.js.map +0 -1
- package/dist/_chunks/command-palette.agent-B87_OkmC.js.map +0 -1
- package/dist/_chunks/date-time-picker-CX_FMsLG.js.map +0 -1
- package/dist/_chunks/description-list-C5UPZgX6.js +0 -187
- package/dist/_chunks/description-list-C5UPZgX6.js.map +0 -1
- package/dist/_chunks/dialog.agent-B276rAQF.js.map +0 -1
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js +0 -210
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js.map +0 -1
- package/dist/_chunks/empty-state-DiG7vYBM.js.map +0 -1
- package/dist/_chunks/file-upload.agent-BMow5yDY.js.map +0 -1
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js +0 -95
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js.map +0 -1
- package/dist/_chunks/form-field-B4bwrccN.js +0 -121
- package/dist/_chunks/form-field-B4bwrccN.js.map +0 -1
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js +0 -197
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js.map +0 -1
- package/dist/_chunks/header-BpKaSL_v.js.map +0 -1
- package/dist/_chunks/icon-button-C1vpylg3.js +0 -45
- package/dist/_chunks/icon-button-C1vpylg3.js.map +0 -1
- package/dist/_chunks/icon-button-group-tERESY-n.js.map +0 -1
- package/dist/_chunks/kbd-0iPlQjgC.js.map +0 -1
- package/dist/_chunks/key-value-pair--Je59tAF.js.map +0 -1
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js +0 -755
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js.map +0 -1
- package/dist/_chunks/list-n8vI8Yvn.js.map +0 -1
- package/dist/_chunks/logo-UNWYb9p7.js.map +0 -1
- package/dist/_chunks/matrix-rain-Q7xTEpKu.js.map +0 -1
- package/dist/_chunks/message-card-g5VS5Q80.js +0 -275
- package/dist/_chunks/message-card-g5VS5Q80.js.map +0 -1
- package/dist/_chunks/message-tray-CAk-iibU.js +0 -302
- package/dist/_chunks/message-tray-CAk-iibU.js.map +0 -1
- package/dist/_chunks/multi-select.agent-Cf4pU636.js.map +0 -1
- package/dist/_chunks/navigation-menu-DBDsAmXc.js.map +0 -1
- package/dist/_chunks/notification-card-CQxJporb.js +0 -255
- package/dist/_chunks/notification-card-CQxJporb.js.map +0 -1
- package/dist/_chunks/notification-tray-CNWPuPZp.js.map +0 -1
- package/dist/_chunks/number-input-B1Th0DdC.js.map +0 -1
- package/dist/_chunks/otp-input-CmoBuZ4K.js.map +0 -1
- package/dist/_chunks/pagination.agent-B5KLDCMN.js.map +0 -1
- package/dist/_chunks/password-input-DnjNh-hQ.js.map +0 -1
- package/dist/_chunks/payment-form-Cf7U6r5L.js.map +0 -1
- package/dist/_chunks/pdf-viewer.agent-DXjgDItg.js.map +0 -1
- package/dist/_chunks/phone-input-C2dtIuxW.js.map +0 -1
- package/dist/_chunks/popover-D1woU9mP.js.map +0 -1
- package/dist/_chunks/privacy-lock-C1X42Sit.js.map +0 -1
- package/dist/_chunks/progress-DL3-izuO.js.map +0 -1
- package/dist/_chunks/radio-group-CXN9qNPe.js +0 -185
- package/dist/_chunks/radio-group-CXN9qNPe.js.map +0 -1
- package/dist/_chunks/resizable.agent-DVk_jJur.js.map +0 -1
- package/dist/_chunks/rich-text-editor.agent-BOjF4Xao.js.map +0 -1
- package/dist/_chunks/scroll-area-DXn-YWHY.js +0 -144
- package/dist/_chunks/scroll-area-DXn-YWHY.js.map +0 -1
- package/dist/_chunks/search-bar-DgSOAajC.js.map +0 -1
- package/dist/_chunks/search-input-D4tC_Prn.js +0 -197
- package/dist/_chunks/search-input-D4tC_Prn.js.map +0 -1
- package/dist/_chunks/select-B4m4upMg.js +0 -320
- package/dist/_chunks/select-B4m4upMg.js.map +0 -1
- package/dist/_chunks/separator-DExI4amU.js.map +0 -1
- package/dist/_chunks/sheet-D6XOx0fK.js +0 -188
- package/dist/_chunks/sheet-D6XOx0fK.js.map +0 -1
- package/dist/_chunks/sidebar-r645O-k9.js +0 -1076
- package/dist/_chunks/sidebar-r645O-k9.js.map +0 -1
- package/dist/_chunks/signature-capture.agent-L_1_-zVR.js.map +0 -1
- package/dist/_chunks/skeleton-vbTWUntB.js +0 -95
- package/dist/_chunks/skeleton-vbTWUntB.js.map +0 -1
- package/dist/_chunks/slider-B3DBwmcm.js +0 -273
- package/dist/_chunks/slider-B3DBwmcm.js.map +0 -1
- package/dist/_chunks/slot-grid-DL_Tuj0p.js +0 -491
- package/dist/_chunks/slot-grid-DL_Tuj0p.js.map +0 -1
- package/dist/_chunks/sparkline.agent-BDTXzTy9.js.map +0 -1
- package/dist/_chunks/spinner-77xUGpuX.js.map +0 -1
- package/dist/_chunks/stat-CrumvZWf.js +0 -208
- package/dist/_chunks/stat-CrumvZWf.js.map +0 -1
- package/dist/_chunks/stepper-accordion-BkvqQWPI.js.map +0 -1
- package/dist/_chunks/stepper-calendar-BQMjrwzo.js.map +0 -1
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js +0 -128
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js.map +0 -1
- package/dist/_chunks/streaming-text-Cu9YQe_1.js +0 -104
- package/dist/_chunks/streaming-text-Cu9YQe_1.js.map +0 -1
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js +0 -157
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js.map +0 -1
- package/dist/_chunks/switch-DyC0ThNT.js +0 -137
- package/dist/_chunks/switch-DyC0ThNT.js.map +0 -1
- package/dist/_chunks/tabs.agent-FsGU3sZL.js.map +0 -1
- package/dist/_chunks/tag-BucAvfTX.js +0 -194
- package/dist/_chunks/tag-BucAvfTX.js.map +0 -1
- package/dist/_chunks/task-card-uxjApfcg.js +0 -112
- package/dist/_chunks/task-card-uxjApfcg.js.map +0 -1
- package/dist/_chunks/task-tray-BdfM3p8N.js +0 -99
- package/dist/_chunks/task-tray-BdfM3p8N.js.map +0 -1
- package/dist/_chunks/text-area-CKxZ7cS3.js +0 -152
- package/dist/_chunks/text-area-CKxZ7cS3.js.map +0 -1
- package/dist/_chunks/text-input-D16CcMlL.js +0 -187
- package/dist/_chunks/text-input-D16CcMlL.js.map +0 -1
- package/dist/_chunks/time-picker-BapZq0OY.js.map +0 -1
- package/dist/_chunks/timeline-D3VOf4RT.js +0 -219
- package/dist/_chunks/timeline-D3VOf4RT.js.map +0 -1
- package/dist/_chunks/timestamp-BLM-jjdw.js.map +0 -1
- package/dist/_chunks/tooltip-DF6WjD1r.js.map +0 -1
- package/dist/_chunks/tooth-scheme.agent-CFKl3iQr.js.map +0 -1
- package/dist/_chunks/transcript-panel-aI14fHYA.js +0 -265
- package/dist/_chunks/transcript-panel-aI14fHYA.js.map +0 -1
- package/dist/_chunks/typing-indicator-BTVDEpnd.js +0 -81
- package/dist/_chunks/typing-indicator-BTVDEpnd.js.map +0 -1
- package/dist/_chunks/warning-stack-Cyf_81SL.js.map +0 -1
- package/dist/_chunks/workflow-map-Uf-hHAO3.js.map +0 -1
|
@@ -1,1076 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as f, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as g, useState as D, useEffect as $, useCallback as K, useId as ie, useRef as ne, useMemo as te, useContext as G, createContext as q } from "react";
|
|
3
|
-
import * as B from "@radix-ui/react-dialog";
|
|
4
|
-
import * as F from "@radix-ui/react-collapsible";
|
|
5
|
-
import * as A from "@radix-ui/react-accordion";
|
|
6
|
-
import * as S from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as oe } from "./accordion-Dgcd38U_.js";
|
|
8
|
-
import { Slot as se } from "@radix-ui/react-slot";
|
|
9
|
-
import { c as k } from "./index-D2ZczOXr.js";
|
|
10
|
-
import { useTranslation as I } from "react-i18next";
|
|
11
|
-
import { X as le } from "./x-CCcI3eJp.js";
|
|
12
|
-
import { c as R } from "./createLucideIcon-CrFbzy84.js";
|
|
13
|
-
import { C as L } from "./chevron-right-BrpYejk0.js";
|
|
14
|
-
/**
|
|
15
|
-
* @license lucide-react v1.8.0 - ISC
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the ISC license.
|
|
18
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/
|
|
20
|
-
const ce = [
|
|
21
|
-
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
22
|
-
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
23
|
-
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
24
|
-
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
25
|
-
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
26
|
-
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
27
|
-
], de = R("grip-vertical", ce);
|
|
28
|
-
/**
|
|
29
|
-
* @license lucide-react v1.8.0 - ISC
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the ISC license.
|
|
32
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/
|
|
34
|
-
const ue = [
|
|
35
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
36
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
37
|
-
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
38
|
-
], me = R("panel-left-close", ue);
|
|
39
|
-
/**
|
|
40
|
-
* @license lucide-react v1.8.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
|
-
const fe = [
|
|
46
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
47
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
48
|
-
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
49
|
-
], ve = R("panel-left-open", fe);
|
|
50
|
-
/**
|
|
51
|
-
* @license lucide-react v1.8.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/
|
|
56
|
-
const pe = [
|
|
57
|
-
[
|
|
58
|
-
"path",
|
|
59
|
-
{
|
|
60
|
-
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
|
|
61
|
-
key: "r04s7s"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
], ge = R("star", pe), H = q({
|
|
65
|
-
mode: "expanded",
|
|
66
|
-
density: "default"
|
|
67
|
-
}), w = () => G(H), U = "ui.sidebar.state";
|
|
68
|
-
function be(e) {
|
|
69
|
-
if (typeof window > "u") return e;
|
|
70
|
-
try {
|
|
71
|
-
const a = window.localStorage.getItem(U);
|
|
72
|
-
if (a === "expanded" || a === "icon" || a === "overlay") return a;
|
|
73
|
-
} catch {
|
|
74
|
-
}
|
|
75
|
-
return e;
|
|
76
|
-
}
|
|
77
|
-
function he(e) {
|
|
78
|
-
if (!(typeof window > "u"))
|
|
79
|
-
try {
|
|
80
|
-
window.localStorage.setItem(U, e);
|
|
81
|
-
} catch {
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function Ze(e, a) {
|
|
85
|
-
const [i, n] = D(() => {
|
|
86
|
-
if (typeof window > "u")
|
|
87
|
-
return typeof a == "function" ? a() : a;
|
|
88
|
-
try {
|
|
89
|
-
const o = window.localStorage.getItem(e);
|
|
90
|
-
if (o !== null) return JSON.parse(o);
|
|
91
|
-
} catch {
|
|
92
|
-
}
|
|
93
|
-
return typeof a == "function" ? a() : a;
|
|
94
|
-
});
|
|
95
|
-
return $(() => {
|
|
96
|
-
if (!(typeof window > "u"))
|
|
97
|
-
try {
|
|
98
|
-
window.localStorage.setItem(e, JSON.stringify(i));
|
|
99
|
-
} catch {
|
|
100
|
-
}
|
|
101
|
-
}, [e, i]), [i, n];
|
|
102
|
-
}
|
|
103
|
-
const V = k(
|
|
104
|
-
[
|
|
105
|
-
"flex flex-col",
|
|
106
|
-
// Sidebar sits at the page background in light mode (white-on-white
|
|
107
|
-
// chrome separated by the inline-end border + --shadow-md). In dark
|
|
108
|
-
// mode the Header already blends with --background, so we step the
|
|
109
|
-
// sidebar one layer down (blue-600) to keep it visually distinct from
|
|
110
|
-
// the header band — matches the PDF dark mockups' "flat Dark Blue
|
|
111
|
-
// surface with subtle depth via layering" recipe.
|
|
112
|
-
"bg-[var(--background)] [.theme-dark_&]:bg-[color:var(--color-blue-600)] text-[var(--foreground)]",
|
|
113
|
-
"border-inline-end border-[var(--border)]",
|
|
114
|
-
// Resting-surface elevation — `--shadow-md` is deliberately lighter
|
|
115
|
-
// than `--shadow-card` so it reads as chrome, not a floating card,
|
|
116
|
-
// while still separating the rail from the page content on light
|
|
117
|
-
// backgrounds. Forced-colors strips shadows globally, so the
|
|
118
|
-
// `border-inline-end` above carries the separation cue for HCM.
|
|
119
|
-
//
|
|
120
|
-
// `relative z-[1]` lifts the rail above any sibling that paints a
|
|
121
|
-
// solid background (e.g. AppFrame's `<main>` surface), otherwise
|
|
122
|
-
// the shadow that projects towards the inline-end gets covered.
|
|
123
|
-
"relative z-[1] shadow-[var(--shadow-md)]",
|
|
124
|
-
"h-full",
|
|
125
|
-
"transition-[inline-size] duration-[var(--animation-duration)]",
|
|
126
|
-
"motion-reduce:transition-none"
|
|
127
|
-
].join(" "),
|
|
128
|
-
{
|
|
129
|
-
variants: {
|
|
130
|
-
mode: {
|
|
131
|
-
// Tokenised widths modelled on Linear / Jira proportions.
|
|
132
|
-
expanded: "w-[var(--sidebar-modern-expanded-size)]",
|
|
133
|
-
icon: "w-[var(--sidebar-modern-icon-size)]",
|
|
134
|
-
overlay: "w-[var(--sidebar-modern-expanded-size)]"
|
|
135
|
-
},
|
|
136
|
-
density: {
|
|
137
|
-
default: "",
|
|
138
|
-
compact: ""
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
defaultVariants: { mode: "expanded", density: "default" }
|
|
142
|
-
}
|
|
143
|
-
), xe = g(
|
|
144
|
-
({
|
|
145
|
-
state: e,
|
|
146
|
-
defaultState: a = "expanded",
|
|
147
|
-
onStateChange: i,
|
|
148
|
-
density: n = "default",
|
|
149
|
-
open: o,
|
|
150
|
-
onOpenChange: l,
|
|
151
|
-
"aria-label": d,
|
|
152
|
-
className: s,
|
|
153
|
-
children: m,
|
|
154
|
-
...u
|
|
155
|
-
}, v) => {
|
|
156
|
-
const { t: h } = I(), b = e !== void 0, [x, t] = D(
|
|
157
|
-
() => b ? e : be(a)
|
|
158
|
-
), y = b ? e : x;
|
|
159
|
-
$(() => {
|
|
160
|
-
b || he(x);
|
|
161
|
-
}, [x, b]);
|
|
162
|
-
const N = K(
|
|
163
|
-
(j) => {
|
|
164
|
-
b || t(j), i == null || i(j);
|
|
165
|
-
},
|
|
166
|
-
[b, i]
|
|
167
|
-
), p = d ?? h("ui.navigation.sidebar.label");
|
|
168
|
-
return y === "overlay" ? /* @__PURE__ */ r(H.Provider, { value: { mode: "overlay", density: n, transitionTo: N }, children: /* @__PURE__ */ r(B.Root, { open: o, onOpenChange: l, children: /* @__PURE__ */ f(B.Portal, { children: [
|
|
169
|
-
/* @__PURE__ */ r(
|
|
170
|
-
B.Overlay,
|
|
171
|
-
{
|
|
172
|
-
className: [
|
|
173
|
-
"fixed inset-0 z-[var(--z-modal-backdrop)]",
|
|
174
|
-
"bg-[var(--foreground)]/20 backdrop-blur-sm",
|
|
175
|
-
"data-[state=open]:animate-in data-[state=open]:fade-in",
|
|
176
|
-
"data-[state=closed]:animate-out data-[state=closed]:fade-out",
|
|
177
|
-
"motion-reduce:animate-none"
|
|
178
|
-
].join(" ")
|
|
179
|
-
}
|
|
180
|
-
),
|
|
181
|
-
/* @__PURE__ */ f(
|
|
182
|
-
B.Content,
|
|
183
|
-
{
|
|
184
|
-
"aria-label": p,
|
|
185
|
-
className: [
|
|
186
|
-
"fixed z-[var(--z-modal)]",
|
|
187
|
-
"inset-inline-start-0 inset-block-start-0",
|
|
188
|
-
"h-dvh",
|
|
189
|
-
V({ mode: "overlay", density: n }),
|
|
190
|
-
"shadow-[var(--shadow-xl)]",
|
|
191
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
192
|
-
"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
|
|
193
|
-
"rtl:data-[state=open]:slide-in-from-right rtl:data-[state=closed]:slide-out-to-right",
|
|
194
|
-
"motion-reduce:animate-none",
|
|
195
|
-
"focus:outline-none",
|
|
196
|
-
s ?? ""
|
|
197
|
-
].filter(Boolean).join(" "),
|
|
198
|
-
children: [
|
|
199
|
-
/* @__PURE__ */ r("nav", { ref: v, "aria-label": p, className: "flex flex-col h-full", ...u, children: m }),
|
|
200
|
-
/* @__PURE__ */ r(B.Close, { asChild: !0, children: /* @__PURE__ */ r(
|
|
201
|
-
"button",
|
|
202
|
-
{
|
|
203
|
-
type: "button",
|
|
204
|
-
"aria-label": h("ui.navigation.sidebar.close"),
|
|
205
|
-
className: [
|
|
206
|
-
"absolute top-[var(--spacing-sm)] end-[var(--spacing-sm)]",
|
|
207
|
-
"inline-flex items-center justify-center",
|
|
208
|
-
"min-w-[var(--min-target-size)] min-h-[var(--min-target-size)]",
|
|
209
|
-
"rounded-[var(--radius-sm)] text-[var(--muted-foreground)]",
|
|
210
|
-
"hover:bg-[var(--muted)]/20 focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
211
|
-
"focus-visible:outline-solid focus-visible:outline-[var(--ring)]",
|
|
212
|
-
"focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
213
|
-
].join(" "),
|
|
214
|
-
children: /* @__PURE__ */ r(le, { "aria-hidden": "true", className: "size-4" })
|
|
215
|
-
}
|
|
216
|
-
) })
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
)
|
|
220
|
-
] }) }) }) : /* @__PURE__ */ r(H.Provider, { value: { mode: y, density: n, transitionTo: N }, children: /* @__PURE__ */ r(S.Provider, { delayDuration: 300, children: /* @__PURE__ */ r(
|
|
221
|
-
"nav",
|
|
222
|
-
{
|
|
223
|
-
ref: v,
|
|
224
|
-
"aria-label": p,
|
|
225
|
-
"data-mode": y,
|
|
226
|
-
"data-density": n,
|
|
227
|
-
className: [
|
|
228
|
-
V({ mode: y, density: n }),
|
|
229
|
-
n === "compact" ? "density-compact" : "",
|
|
230
|
-
s ?? ""
|
|
231
|
-
].filter(Boolean).join(" "),
|
|
232
|
-
...u,
|
|
233
|
-
children: m
|
|
234
|
-
}
|
|
235
|
-
) }) });
|
|
236
|
-
}
|
|
237
|
-
);
|
|
238
|
-
xe.displayName = "Sidebar";
|
|
239
|
-
const ye = g(
|
|
240
|
-
({ className: e, ...a }, i) => {
|
|
241
|
-
const { mode: n } = w();
|
|
242
|
-
return /* @__PURE__ */ r(
|
|
243
|
-
"div",
|
|
244
|
-
{
|
|
245
|
-
ref: i,
|
|
246
|
-
className: [
|
|
247
|
-
"relative flex items-center gap-[var(--spacing-xs)]",
|
|
248
|
-
"min-h-[var(--min-target-size)]",
|
|
249
|
-
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
250
|
-
// control fits centred inside the header.
|
|
251
|
-
n === "icon" ? "justify-center ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]" : "ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
252
|
-
"py-[var(--spacing-sm)]",
|
|
253
|
-
// Hairline border + downward chrome shadow cast the header as a
|
|
254
|
-
// sticky top band above the scrolling body.
|
|
255
|
-
"border-block-end border-[var(--border)]",
|
|
256
|
-
"shadow-[var(--shadow-chrome-down)]",
|
|
257
|
-
e ?? ""
|
|
258
|
-
].filter(Boolean).join(" "),
|
|
259
|
-
...a
|
|
260
|
-
}
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
ye.displayName = "SidebarHeader";
|
|
265
|
-
const we = g(
|
|
266
|
-
({ className: e, ...a }, i) => /* @__PURE__ */ r(
|
|
267
|
-
"div",
|
|
268
|
-
{
|
|
269
|
-
ref: i,
|
|
270
|
-
className: [
|
|
271
|
-
"flex-1 overflow-auto",
|
|
272
|
-
"ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]",
|
|
273
|
-
"py-[var(--spacing-sm)]",
|
|
274
|
-
e ?? ""
|
|
275
|
-
].filter(Boolean).join(" "),
|
|
276
|
-
...a
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
);
|
|
280
|
-
we.displayName = "SidebarBody";
|
|
281
|
-
const Ne = g(
|
|
282
|
-
({ className: e, ...a }, i) => {
|
|
283
|
-
const { mode: n } = w();
|
|
284
|
-
return /* @__PURE__ */ r(
|
|
285
|
-
"div",
|
|
286
|
-
{
|
|
287
|
-
ref: i,
|
|
288
|
-
className: [
|
|
289
|
-
"relative flex items-center gap-[var(--spacing-xs)]",
|
|
290
|
-
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
291
|
-
// so switch to a vertical stack and let each row self-centre.
|
|
292
|
-
n === "icon" ? "flex-col ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]" : "ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
293
|
-
"min-h-[var(--min-target-size)]",
|
|
294
|
-
"py-[var(--spacing-sm)]",
|
|
295
|
-
// Hairline border + upward chrome shadow cast the footer as a
|
|
296
|
-
// sticky bottom band below the scrolling body.
|
|
297
|
-
"border-block-start border-[var(--border)]",
|
|
298
|
-
"shadow-[var(--shadow-chrome-up)]",
|
|
299
|
-
e ?? ""
|
|
300
|
-
].filter(Boolean).join(" "),
|
|
301
|
-
...a
|
|
302
|
-
}
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
);
|
|
306
|
-
Ne.displayName = "SidebarFooter";
|
|
307
|
-
const Se = [
|
|
308
|
-
"group/section-label flex w-full items-center",
|
|
309
|
-
"type-eyebrow",
|
|
310
|
-
"text-[var(--muted-foreground)]",
|
|
311
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
312
|
-
"py-[var(--spacing-xs)]",
|
|
313
|
-
"hover:text-[var(--foreground)]",
|
|
314
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
315
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
316
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none"
|
|
317
|
-
].join(" "), M = [
|
|
318
|
-
"inline-flex shrink-0 items-center justify-center",
|
|
319
|
-
"size-4",
|
|
320
|
-
"text-[var(--accent)]",
|
|
321
|
-
"me-[var(--spacing-xs)]"
|
|
322
|
-
].join(" "), J = g(
|
|
323
|
-
({
|
|
324
|
-
label: e,
|
|
325
|
-
icon: a,
|
|
326
|
-
collapsible: i = !0,
|
|
327
|
-
defaultOpen: n = !0,
|
|
328
|
-
open: o,
|
|
329
|
-
onOpenChange: l,
|
|
330
|
-
className: d,
|
|
331
|
-
children: s,
|
|
332
|
-
...m
|
|
333
|
-
}, u) => {
|
|
334
|
-
const { mode: v } = w(), h = v === "icon", b = i && !h && !!e, x = [
|
|
335
|
-
"flex flex-col",
|
|
336
|
-
"gap-[var(--spacing-xs)]",
|
|
337
|
-
"mt-[var(--spacing-sm)]",
|
|
338
|
-
d ?? ""
|
|
339
|
-
].filter(Boolean).join(" ");
|
|
340
|
-
if (!b)
|
|
341
|
-
return /* @__PURE__ */ f("div", { ref: u, className: x, ...m, children: [
|
|
342
|
-
!!e || !!a ? /* @__PURE__ */ f(
|
|
343
|
-
"span",
|
|
344
|
-
{
|
|
345
|
-
className: [
|
|
346
|
-
"flex items-center",
|
|
347
|
-
"type-eyebrow",
|
|
348
|
-
"text-[var(--muted-foreground)]",
|
|
349
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
350
|
-
"py-[var(--spacing-xs)]",
|
|
351
|
-
h && !a ? "sr-only" : ""
|
|
352
|
-
].filter(Boolean).join(" "),
|
|
353
|
-
children: [
|
|
354
|
-
a ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: M, children: a }) : null,
|
|
355
|
-
e ? /* @__PURE__ */ r("span", { className: h ? "sr-only" : "", children: e }) : null
|
|
356
|
-
]
|
|
357
|
-
}
|
|
358
|
-
) : null,
|
|
359
|
-
s
|
|
360
|
-
] });
|
|
361
|
-
const t = "section";
|
|
362
|
-
return /* @__PURE__ */ r(
|
|
363
|
-
A.Root,
|
|
364
|
-
{
|
|
365
|
-
type: "single",
|
|
366
|
-
collapsible: !0,
|
|
367
|
-
defaultValue: o === void 0 && n ? t : void 0,
|
|
368
|
-
value: o === void 0 ? void 0 : o ? t : "",
|
|
369
|
-
onValueChange: l ? (y) => l(y === t) : void 0,
|
|
370
|
-
asChild: !0,
|
|
371
|
-
children: /* @__PURE__ */ r("div", { ref: u, className: x, ...m, children: /* @__PURE__ */ f(A.Item, { value: t, children: [
|
|
372
|
-
/* @__PURE__ */ r(A.Header, { className: "flex", children: /* @__PURE__ */ f(A.Trigger, { className: Se, children: [
|
|
373
|
-
a ? /* @__PURE__ */ r("span", { "aria-hidden": "true", className: M, children: a }) : null,
|
|
374
|
-
/* @__PURE__ */ r("span", { className: "flex-1 text-start", children: e }),
|
|
375
|
-
/* @__PURE__ */ r(
|
|
376
|
-
L,
|
|
377
|
-
{
|
|
378
|
-
"aria-hidden": "true",
|
|
379
|
-
className: "size-3 transition-transform group-data-[state=open]/section-label:rotate-90 rtl:-scale-x-100 motion-reduce:transition-none"
|
|
380
|
-
}
|
|
381
|
-
)
|
|
382
|
-
] }) }),
|
|
383
|
-
/* @__PURE__ */ r(
|
|
384
|
-
oe,
|
|
385
|
-
{
|
|
386
|
-
"aria-label": e,
|
|
387
|
-
className: "flex flex-col gap-[var(--spacing-xs)] [&>div]:contents",
|
|
388
|
-
children: s
|
|
389
|
-
}
|
|
390
|
-
)
|
|
391
|
-
] }) })
|
|
392
|
-
}
|
|
393
|
-
);
|
|
394
|
-
}
|
|
395
|
-
);
|
|
396
|
-
J.displayName = "SidebarSection";
|
|
397
|
-
const je = [
|
|
398
|
-
"group flex w-full items-center gap-[var(--spacing-sm)]",
|
|
399
|
-
"min-h-[var(--min-target-size)]",
|
|
400
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
401
|
-
"rounded-[var(--radius-sm)]",
|
|
402
|
-
"text-[var(--foreground)] text-[var(--font-size-sm)]",
|
|
403
|
-
"font-[var(--font-weight-medium)]",
|
|
404
|
-
"hover:bg-[var(--muted)]/20",
|
|
405
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
406
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
407
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none"
|
|
408
|
-
].join(" "), ze = g(
|
|
409
|
-
({ label: e, icon: a, children: i, className: n, defaultOpen: o, open: l, onOpenChange: d, ...s }, m) => {
|
|
410
|
-
const { mode: u } = w();
|
|
411
|
-
return /* @__PURE__ */ f(
|
|
412
|
-
F.Root,
|
|
413
|
-
{
|
|
414
|
-
ref: m,
|
|
415
|
-
defaultOpen: o,
|
|
416
|
-
open: l,
|
|
417
|
-
onOpenChange: d,
|
|
418
|
-
className: n,
|
|
419
|
-
...s,
|
|
420
|
-
children: [
|
|
421
|
-
/* @__PURE__ */ f(F.Trigger, { className: je, children: [
|
|
422
|
-
a ? /* @__PURE__ */ r(
|
|
423
|
-
"span",
|
|
424
|
-
{
|
|
425
|
-
"aria-hidden": "true",
|
|
426
|
-
className: "inline-flex items-center text-[var(--accent)]",
|
|
427
|
-
children: a
|
|
428
|
-
}
|
|
429
|
-
) : null,
|
|
430
|
-
/* @__PURE__ */ r(
|
|
431
|
-
"span",
|
|
432
|
-
{
|
|
433
|
-
className: [
|
|
434
|
-
"flex-1 text-start",
|
|
435
|
-
u === "icon" ? "sr-only" : ""
|
|
436
|
-
].join(" "),
|
|
437
|
-
children: e
|
|
438
|
-
}
|
|
439
|
-
),
|
|
440
|
-
u !== "icon" ? /* @__PURE__ */ r(
|
|
441
|
-
L,
|
|
442
|
-
{
|
|
443
|
-
"aria-hidden": "true",
|
|
444
|
-
className: "size-4 transition-transform group-data-[state=open]:rotate-90 rtl:-scale-x-100 motion-reduce:transition-none"
|
|
445
|
-
}
|
|
446
|
-
) : null
|
|
447
|
-
] }),
|
|
448
|
-
/* @__PURE__ */ r(
|
|
449
|
-
F.Content,
|
|
450
|
-
{
|
|
451
|
-
className: [
|
|
452
|
-
"overflow-hidden",
|
|
453
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
454
|
-
"motion-reduce:animate-none",
|
|
455
|
-
"ps-[var(--spacing-md)]"
|
|
456
|
-
].join(" "),
|
|
457
|
-
children: i
|
|
458
|
-
}
|
|
459
|
-
)
|
|
460
|
-
]
|
|
461
|
-
}
|
|
462
|
-
);
|
|
463
|
-
}
|
|
464
|
-
);
|
|
465
|
-
ze.displayName = "SidebarGroup";
|
|
466
|
-
const ke = k(
|
|
467
|
-
[
|
|
468
|
-
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
469
|
-
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
470
|
-
// `!text-[var(--foreground)]` forces the label colour over the browser's
|
|
471
|
-
// default `<a>` link colour (blue-violet) and any inherited hue. The
|
|
472
|
-
// active variant also uses `!text-*` so it still wins when needed.
|
|
473
|
-
"group/item relative flex items-center",
|
|
474
|
-
"gap-[var(--spacing-sm)]",
|
|
475
|
-
"no-underline !text-[var(--foreground)] text-[length:var(--font-size-sm)]",
|
|
476
|
-
"hover:bg-[var(--muted)]/12",
|
|
477
|
-
"transition-colors duration-[var(--animation-duration)]",
|
|
478
|
-
"motion-reduce:transition-none",
|
|
479
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
480
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
481
|
-
"forced-colors:focus-visible:outline-[CanvasText]"
|
|
482
|
-
].join(" "),
|
|
483
|
-
{
|
|
484
|
-
variants: {
|
|
485
|
-
mode: {
|
|
486
|
-
expanded: [
|
|
487
|
-
"min-h-[var(--min-target-size)] rounded-[var(--radius-sm)]",
|
|
488
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]"
|
|
489
|
-
].join(" "),
|
|
490
|
-
// Icon-only: each item is a 44×44 pill tile centered in the rail.
|
|
491
|
-
// The active / hover background fills just the tile rather than the
|
|
492
|
-
// whole row — matching Linear / Asana chrome.
|
|
493
|
-
icon: [
|
|
494
|
-
"justify-center ms-auto me-auto",
|
|
495
|
-
"w-[var(--min-target-size)] h-[var(--min-target-size)]",
|
|
496
|
-
"ps-0 pe-0 rounded-[var(--radius-md)]"
|
|
497
|
-
].join(" "),
|
|
498
|
-
overlay: [
|
|
499
|
-
"min-h-[var(--min-target-size)] rounded-[var(--radius-sm)]",
|
|
500
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]"
|
|
501
|
-
].join(" ")
|
|
502
|
-
},
|
|
503
|
-
density: {
|
|
504
|
-
default: "",
|
|
505
|
-
compact: "ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]"
|
|
506
|
-
},
|
|
507
|
-
isActive: {
|
|
508
|
-
// Filled pill — multi-carrier (bg + text + weight + aria-current at
|
|
509
|
-
// render time) so colour is never the sole identifier. `!text-*`
|
|
510
|
-
// forces the foreground over any inherited / base rule so the icon
|
|
511
|
-
// and label read clearly against the primary fill in every theme.
|
|
512
|
-
true: [
|
|
513
|
-
"bg-[var(--primary)] !text-[var(--primary-foreground)]",
|
|
514
|
-
"font-[var(--font-weight-semibold)]",
|
|
515
|
-
// Keep hover from dimming the active fill.
|
|
516
|
-
"hover:bg-[var(--primary)]"
|
|
517
|
-
].join(" "),
|
|
518
|
-
false: ""
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
defaultVariants: {
|
|
522
|
-
mode: "expanded",
|
|
523
|
-
density: "default",
|
|
524
|
-
isActive: !1
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
), W = g(
|
|
528
|
-
({
|
|
529
|
-
asChild: e = !1,
|
|
530
|
-
isActive: a = !1,
|
|
531
|
-
isPinned: i = !1,
|
|
532
|
-
onPinChange: n,
|
|
533
|
-
pinLabel: o,
|
|
534
|
-
className: l,
|
|
535
|
-
children: d,
|
|
536
|
-
"aria-label": s,
|
|
537
|
-
...m
|
|
538
|
-
}, u) => {
|
|
539
|
-
const { mode: v, density: h } = w(), b = e ? se : "a", x = n !== void 0 && v !== "icon", t = /* @__PURE__ */ r(
|
|
540
|
-
b,
|
|
541
|
-
{
|
|
542
|
-
ref: u,
|
|
543
|
-
"aria-current": a ? "page" : void 0,
|
|
544
|
-
"aria-label": s,
|
|
545
|
-
className: ke({
|
|
546
|
-
mode: v,
|
|
547
|
-
density: h,
|
|
548
|
-
isActive: a,
|
|
549
|
-
className: x ? "flex-1 min-w-0" : l
|
|
550
|
-
}),
|
|
551
|
-
...m,
|
|
552
|
-
children: d
|
|
553
|
-
}
|
|
554
|
-
), y = x ? /* @__PURE__ */ f(
|
|
555
|
-
"div",
|
|
556
|
-
{
|
|
557
|
-
className: [
|
|
558
|
-
"group/item flex items-center gap-[var(--spacing-2xs)]",
|
|
559
|
-
l ?? ""
|
|
560
|
-
].filter(Boolean).join(" "),
|
|
561
|
-
children: [
|
|
562
|
-
t,
|
|
563
|
-
/* @__PURE__ */ r(
|
|
564
|
-
_,
|
|
565
|
-
{
|
|
566
|
-
isPinned: i,
|
|
567
|
-
label: o ?? s ?? "",
|
|
568
|
-
onPinChange: n
|
|
569
|
-
}
|
|
570
|
-
)
|
|
571
|
-
]
|
|
572
|
-
}
|
|
573
|
-
) : t;
|
|
574
|
-
return v === "icon" && s ? /* @__PURE__ */ f(S.Root, { children: [
|
|
575
|
-
/* @__PURE__ */ r(S.Trigger, { asChild: !0, children: y }),
|
|
576
|
-
/* @__PURE__ */ r(S.Portal, { children: /* @__PURE__ */ f(
|
|
577
|
-
S.Content,
|
|
578
|
-
{
|
|
579
|
-
side: "right",
|
|
580
|
-
sideOffset: 6,
|
|
581
|
-
className: [
|
|
582
|
-
"z-[var(--z-tooltip)] max-w-[16rem]",
|
|
583
|
-
"rounded-[var(--radius-sm)]",
|
|
584
|
-
"bg-[var(--foreground)] text-[var(--background)]",
|
|
585
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)] py-[var(--spacing-xs)] text-[var(--font-size-xs)]",
|
|
586
|
-
"animate-in fade-in zoom-in-95 motion-reduce:animate-none"
|
|
587
|
-
].join(" "),
|
|
588
|
-
children: [
|
|
589
|
-
s,
|
|
590
|
-
/* @__PURE__ */ r(S.Arrow, { className: "fill-[var(--foreground)]" })
|
|
591
|
-
]
|
|
592
|
-
}
|
|
593
|
-
) })
|
|
594
|
-
] }) : y;
|
|
595
|
-
}
|
|
596
|
-
);
|
|
597
|
-
W.displayName = "SidebarItem";
|
|
598
|
-
const Ce = g(
|
|
599
|
-
({ className: e, children: a, ...i }, n) => /* @__PURE__ */ r(
|
|
600
|
-
"span",
|
|
601
|
-
{
|
|
602
|
-
ref: n,
|
|
603
|
-
"aria-hidden": "true",
|
|
604
|
-
className: [
|
|
605
|
-
"inline-flex shrink-0 items-center justify-center",
|
|
606
|
-
"size-5",
|
|
607
|
-
// Icons carry the accent tint by default so the rail reads less
|
|
608
|
-
// monotone against the violet active pill. The active row sets
|
|
609
|
-
// `aria-current="page"` on the anchor (which is `group/item`), so
|
|
610
|
-
// the icon flips to the primary-foreground (white) on the filled
|
|
611
|
-
// pill — keeping it readable on the primary background.
|
|
612
|
-
"text-[var(--accent)]",
|
|
613
|
-
"group-aria-[current=page]/item:text-[var(--primary-foreground)]",
|
|
614
|
-
e ?? ""
|
|
615
|
-
].filter(Boolean).join(" "),
|
|
616
|
-
...i,
|
|
617
|
-
children: a
|
|
618
|
-
}
|
|
619
|
-
)
|
|
620
|
-
);
|
|
621
|
-
Ce.displayName = "SidebarItemIcon";
|
|
622
|
-
const Te = g(
|
|
623
|
-
({ className: e, children: a, ...i }, n) => {
|
|
624
|
-
const { mode: o } = w();
|
|
625
|
-
return /* @__PURE__ */ r(
|
|
626
|
-
"span",
|
|
627
|
-
{
|
|
628
|
-
ref: n,
|
|
629
|
-
className: [
|
|
630
|
-
"flex-1",
|
|
631
|
-
"overflow-hidden text-ellipsis whitespace-nowrap break-normal",
|
|
632
|
-
"text-start",
|
|
633
|
-
o === "icon" ? "sr-only" : "",
|
|
634
|
-
e ?? ""
|
|
635
|
-
].filter(Boolean).join(" "),
|
|
636
|
-
...i,
|
|
637
|
-
children: a
|
|
638
|
-
}
|
|
639
|
-
);
|
|
640
|
-
}
|
|
641
|
-
);
|
|
642
|
-
Te.displayName = "SidebarItemLabel";
|
|
643
|
-
const Be = g(
|
|
644
|
-
({ className: e, children: a, ...i }, n) => {
|
|
645
|
-
const { mode: o } = w(), l = o === "icon";
|
|
646
|
-
return /* @__PURE__ */ r(
|
|
647
|
-
"span",
|
|
648
|
-
{
|
|
649
|
-
ref: n,
|
|
650
|
-
"aria-hidden": l ? "true" : void 0,
|
|
651
|
-
className: [
|
|
652
|
-
"inline-flex items-center justify-center",
|
|
653
|
-
"font-[var(--font-weight-semibold)]",
|
|
654
|
-
l ? [
|
|
655
|
-
"absolute top-[2px] end-[2px]",
|
|
656
|
-
"min-w-0 size-[10px] ps-0 pe-0",
|
|
657
|
-
"rounded-[var(--radius-full)]",
|
|
658
|
-
"bg-[var(--primary)] text-transparent",
|
|
659
|
-
"ring-2 ring-[var(--background)]",
|
|
660
|
-
"pointer-events-none"
|
|
661
|
-
].join(" ") : [
|
|
662
|
-
"min-w-[var(--spacing-lg)] h-[var(--spacing-lg)]",
|
|
663
|
-
"rounded-[var(--radius-full)]",
|
|
664
|
-
"bg-[var(--primary)] text-[var(--primary-foreground)]",
|
|
665
|
-
"text-[length:var(--font-size-xs)]",
|
|
666
|
-
"ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]"
|
|
667
|
-
].join(" "),
|
|
668
|
-
e ?? ""
|
|
669
|
-
].filter(Boolean).join(" "),
|
|
670
|
-
...i,
|
|
671
|
-
children: a
|
|
672
|
-
}
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
|
-
);
|
|
676
|
-
Be.displayName = "SidebarItemBadge";
|
|
677
|
-
const De = k(
|
|
678
|
-
[
|
|
679
|
-
"flex items-center gap-[var(--spacing-sm)]",
|
|
680
|
-
"min-h-[var(--min-target-size)]",
|
|
681
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
682
|
-
"rounded-[var(--radius-md)]",
|
|
683
|
-
"text-[var(--foreground)] text-[var(--font-size-sm)]",
|
|
684
|
-
"hover:bg-[var(--muted)]/20",
|
|
685
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
686
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
687
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
688
|
-
"no-underline"
|
|
689
|
-
].join(" ")
|
|
690
|
-
), Ie = g(({ logo: e, name: a, showChevron: i = !0, className: n, ...o }, l) => {
|
|
691
|
-
const { mode: d } = w(), s = d !== "icon";
|
|
692
|
-
return /* @__PURE__ */ f(
|
|
693
|
-
"button",
|
|
694
|
-
{
|
|
695
|
-
ref: l,
|
|
696
|
-
type: "button",
|
|
697
|
-
"aria-label": a,
|
|
698
|
-
className: [De(), n].filter(Boolean).join(" "),
|
|
699
|
-
...o,
|
|
700
|
-
children: [
|
|
701
|
-
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: "inline-flex items-center shrink-0", children: e }),
|
|
702
|
-
s ? /* @__PURE__ */ f(O, { children: [
|
|
703
|
-
/* @__PURE__ */ r(
|
|
704
|
-
"span",
|
|
705
|
-
{
|
|
706
|
-
className: "truncate flex-1 text-start max-w-[var(--header-workspace-max-inline-size)]",
|
|
707
|
-
children: a
|
|
708
|
-
}
|
|
709
|
-
),
|
|
710
|
-
i ? /* @__PURE__ */ r(
|
|
711
|
-
L,
|
|
712
|
-
{
|
|
713
|
-
"aria-hidden": "true",
|
|
714
|
-
className: "size-4 shrink-0 rotate-90"
|
|
715
|
-
}
|
|
716
|
-
) : null
|
|
717
|
-
] }) : null
|
|
718
|
-
]
|
|
719
|
-
}
|
|
720
|
-
);
|
|
721
|
-
});
|
|
722
|
-
Ie.displayName = "SidebarWorkspaceSwitcher";
|
|
723
|
-
const Ae = k(
|
|
724
|
-
[
|
|
725
|
-
"flex items-center justify-center gap-[var(--spacing-xs)]",
|
|
726
|
-
"min-h-[var(--min-target-size)]",
|
|
727
|
-
"rounded-[var(--radius-md)]",
|
|
728
|
-
"bg-[var(--primary)] text-[var(--primary-foreground)]",
|
|
729
|
-
"font-[var(--font-weight-semibold)] text-[var(--font-size-sm)]",
|
|
730
|
-
"hover:bg-[var(--primary-hover)]",
|
|
731
|
-
"transition-colors motion-reduce:transition-none",
|
|
732
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
733
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
734
|
-
"forced-colors:focus-visible:outline-[CanvasText]"
|
|
735
|
-
].join(" "),
|
|
736
|
-
{
|
|
737
|
-
variants: {
|
|
738
|
-
mode: {
|
|
739
|
-
expanded: "ps-[var(--spacing-md)] pe-[var(--spacing-md)]",
|
|
740
|
-
icon: "ps-0 pe-0 w-[var(--sidebar-modern-tile)] h-[var(--sidebar-modern-tile)] ms-auto me-auto",
|
|
741
|
-
overlay: "ps-[var(--spacing-md)] pe-[var(--spacing-md)]"
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
defaultVariants: { mode: "expanded" }
|
|
745
|
-
}
|
|
746
|
-
), Re = g(({ icon: e, label: a, shortcut: i, className: n, ...o }, l) => {
|
|
747
|
-
const { mode: d } = w(), s = d !== "icon";
|
|
748
|
-
return /* @__PURE__ */ f(
|
|
749
|
-
"button",
|
|
750
|
-
{
|
|
751
|
-
ref: l,
|
|
752
|
-
type: "button",
|
|
753
|
-
"aria-label": a,
|
|
754
|
-
"aria-keyshortcuts": i,
|
|
755
|
-
className: [Ae({ mode: d }), n].filter(Boolean).join(" "),
|
|
756
|
-
...o,
|
|
757
|
-
children: [
|
|
758
|
-
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: "inline-flex size-4 items-center justify-center", children: e }),
|
|
759
|
-
s ? /* @__PURE__ */ f(O, { children: [
|
|
760
|
-
/* @__PURE__ */ r("span", { className: "truncate", children: a }),
|
|
761
|
-
i ? /* @__PURE__ */ r("kbd", { className: "ms-auto text-[length:var(--font-size-xs)] font-[family-name:var(--font-mono)] opacity-80", children: i }) : null
|
|
762
|
-
] }) : null
|
|
763
|
-
]
|
|
764
|
-
}
|
|
765
|
-
);
|
|
766
|
-
});
|
|
767
|
-
Re.displayName = "SidebarPrimaryAction";
|
|
768
|
-
const Pe = [
|
|
769
|
-
"inline-flex items-center justify-center shrink-0",
|
|
770
|
-
"size-6 rounded-[var(--radius-sm)]",
|
|
771
|
-
// Pin stars carry the accent tint to match every other icon in the rail.
|
|
772
|
-
// Stays quiet via opacity — reveals only on row hover / focus.
|
|
773
|
-
"text-[var(--accent)]",
|
|
774
|
-
"opacity-0 group-hover/item:opacity-100 focus-visible:opacity-100",
|
|
775
|
-
"hover:bg-[var(--muted)]/20",
|
|
776
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
777
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
778
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
779
|
-
"transition-[color,opacity,background-color] duration-[var(--animation-duration)]",
|
|
780
|
-
"motion-reduce:transition-none"
|
|
781
|
-
].join(" "), _ = g(
|
|
782
|
-
({ isPinned: e, onPinChange: a, label: i, className: n, onClick: o, ...l }, d) => {
|
|
783
|
-
const { t: s } = I(), { mode: m } = w();
|
|
784
|
-
if (m === "icon") return null;
|
|
785
|
-
const u = e ? s("ui.navigation.sidebar.unpinItem", "Unpin {{label}}", { label: i }) : s("ui.navigation.sidebar.pinItem", "Pin {{label}}", { label: i });
|
|
786
|
-
return /* @__PURE__ */ r(
|
|
787
|
-
"button",
|
|
788
|
-
{
|
|
789
|
-
ref: d,
|
|
790
|
-
type: "button",
|
|
791
|
-
"aria-label": u,
|
|
792
|
-
"aria-pressed": e,
|
|
793
|
-
className: [Pe, n].filter(Boolean).join(" "),
|
|
794
|
-
onClick: (v) => {
|
|
795
|
-
v.preventDefault(), v.stopPropagation(), a == null || a(!e), o == null || o(v);
|
|
796
|
-
},
|
|
797
|
-
...l,
|
|
798
|
-
children: /* @__PURE__ */ r(
|
|
799
|
-
ge,
|
|
800
|
-
{
|
|
801
|
-
"aria-hidden": "true",
|
|
802
|
-
className: "size-4",
|
|
803
|
-
fill: e ? "currentColor" : "none"
|
|
804
|
-
}
|
|
805
|
-
)
|
|
806
|
-
}
|
|
807
|
-
);
|
|
808
|
-
}
|
|
809
|
-
);
|
|
810
|
-
_.displayName = "SidebarPinButton";
|
|
811
|
-
const X = q(null), Fe = () => G(X), He = g(
|
|
812
|
-
({ heading: e, emptyMessage: a, onReorder: i, className: n, children: o, ...l }, d) => {
|
|
813
|
-
const { t: s } = I(), m = e ?? s("ui.navigation.sidebar.favorites", "Favourites"), u = Array.isArray(o) ? o.filter(Boolean) : o ? [o] : [], v = u.length, h = v > 0, [b, x] = D(null), [t, y] = D(""), N = ne(!1), p = K((C) => {
|
|
814
|
-
N.current = !N.current, y(
|
|
815
|
-
N.current ? C : `${C}`
|
|
816
|
-
);
|
|
817
|
-
}, []), j = te(
|
|
818
|
-
() => ({ onReorder: i, count: v, dragSource: b, setDragSource: x, announce: p }),
|
|
819
|
-
[i, v, b, p]
|
|
820
|
-
);
|
|
821
|
-
return !h && !a ? null : /* @__PURE__ */ r(X.Provider, { value: j, children: /* @__PURE__ */ f(
|
|
822
|
-
J,
|
|
823
|
-
{
|
|
824
|
-
ref: d,
|
|
825
|
-
label: m,
|
|
826
|
-
className: n,
|
|
827
|
-
...l,
|
|
828
|
-
children: [
|
|
829
|
-
h ? u : /* @__PURE__ */ r("p", { className: "ps-[var(--spacing-sm)] pe-[var(--spacing-sm)] type-meta text-[color:var(--muted-foreground)]", children: a }),
|
|
830
|
-
/* @__PURE__ */ r("span", { role: "status", "aria-live": "polite", className: "sr-only", children: t })
|
|
831
|
-
]
|
|
832
|
-
}
|
|
833
|
-
) });
|
|
834
|
-
}
|
|
835
|
-
);
|
|
836
|
-
He.displayName = "SidebarFavorites";
|
|
837
|
-
const Le = k(
|
|
838
|
-
[
|
|
839
|
-
"group/item relative flex items-center gap-[var(--spacing-2xs)]",
|
|
840
|
-
"rounded-[var(--radius-sm)]",
|
|
841
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none"
|
|
842
|
-
].join(" "),
|
|
843
|
-
{
|
|
844
|
-
variants: {
|
|
845
|
-
dragging: {
|
|
846
|
-
true: "opacity-60",
|
|
847
|
-
false: ""
|
|
848
|
-
},
|
|
849
|
-
dropTarget: {
|
|
850
|
-
true: "outline-[length:var(--focus-ring-width)] outline-dashed outline-[var(--primary)] outline-offset-[-2px]",
|
|
851
|
-
false: ""
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
defaultVariants: { dragging: !1, dropTarget: !1 }
|
|
855
|
-
}
|
|
856
|
-
), _e = [
|
|
857
|
-
"inline-flex items-center justify-center shrink-0",
|
|
858
|
-
"size-6 rounded-[var(--radius-sm)]",
|
|
859
|
-
"cursor-grab active:cursor-grabbing",
|
|
860
|
-
"text-[var(--muted-foreground)]",
|
|
861
|
-
// Quiet chrome — only reveal the grip when the row is hovered or the
|
|
862
|
-
// handle itself is focused (keyboard / AT). Matches the pin-star's
|
|
863
|
-
// reveal-on-hover behaviour so the two siblings appear together.
|
|
864
|
-
"opacity-0 group-hover/item:opacity-100 focus-visible:opacity-100",
|
|
865
|
-
"hover:bg-[var(--muted)]/20 hover:text-[var(--foreground)]",
|
|
866
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
867
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
868
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
869
|
-
"transition-[color,opacity,background-color] duration-[var(--animation-duration)] motion-reduce:transition-none"
|
|
870
|
-
].join(" "), Ee = g(
|
|
871
|
-
({
|
|
872
|
-
index: e,
|
|
873
|
-
isActive: a = !1,
|
|
874
|
-
asChild: i = !1,
|
|
875
|
-
reorderLabel: n,
|
|
876
|
-
isPinned: o = !1,
|
|
877
|
-
onPinChange: l,
|
|
878
|
-
pinLabel: d,
|
|
879
|
-
"aria-label": s,
|
|
880
|
-
className: m,
|
|
881
|
-
children: u,
|
|
882
|
-
...v
|
|
883
|
-
}, h) => {
|
|
884
|
-
const { t: b } = I(), { mode: x } = w(), t = Fe(), [y, N] = D(!1), p = !!(t != null && t.onReorder) && x !== "icon", j = n ?? s ?? "", C = ie(), T = (c, z) => {
|
|
885
|
-
if (!(t != null && t.onReorder)) return;
|
|
886
|
-
const P = Math.max(0, Math.min(t.count - 1, z));
|
|
887
|
-
P !== c && (t.onReorder(c, P), t.announce(
|
|
888
|
-
b(
|
|
889
|
-
"ui.navigation.sidebar.reorderAnnounce",
|
|
890
|
-
"{{label}} moved to position {{to}} of {{total}}",
|
|
891
|
-
{ label: j, to: P + 1, total: t.count }
|
|
892
|
-
)
|
|
893
|
-
));
|
|
894
|
-
}, Y = (c) => {
|
|
895
|
-
p && (c.altKey && c.key === "ArrowUp" ? (c.preventDefault(), T(e, e - 1)) : c.altKey && c.key === "ArrowDown" ? (c.preventDefault(), T(e, e + 1)) : c.key === "Home" && c.altKey ? (c.preventDefault(), T(e, 0)) : c.key === "End" && c.altKey && (c.preventDefault(), T(e, t.count - 1)));
|
|
896
|
-
}, Q = (c) => {
|
|
897
|
-
p && (t == null || t.setDragSource(e), c.dataTransfer && (c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/plain", String(e))));
|
|
898
|
-
}, Z = () => {
|
|
899
|
-
t == null || t.setDragSource(null), N(!1);
|
|
900
|
-
}, ee = (c) => {
|
|
901
|
-
!p || (t == null ? void 0 : t.dragSource) === null || (c.preventDefault(), c.dataTransfer && (c.dataTransfer.dropEffect = "move"), N(!0));
|
|
902
|
-
}, ae = () => N(!1), re = (c) => {
|
|
903
|
-
if (!p) return;
|
|
904
|
-
c.preventDefault();
|
|
905
|
-
const z = t == null ? void 0 : t.dragSource;
|
|
906
|
-
N(!1), !(z == null || z === e) && T(z, e);
|
|
907
|
-
}, E = (t == null ? void 0 : t.dragSource) === e;
|
|
908
|
-
return /* @__PURE__ */ f(
|
|
909
|
-
"div",
|
|
910
|
-
{
|
|
911
|
-
className: Le({
|
|
912
|
-
dragging: E,
|
|
913
|
-
dropTarget: y && !E
|
|
914
|
-
}),
|
|
915
|
-
draggable: p || void 0,
|
|
916
|
-
onDragStart: p ? Q : void 0,
|
|
917
|
-
onDragEnd: p ? Z : void 0,
|
|
918
|
-
onDragOver: ee,
|
|
919
|
-
onDragLeave: ae,
|
|
920
|
-
onDrop: re,
|
|
921
|
-
children: [
|
|
922
|
-
/* @__PURE__ */ r(
|
|
923
|
-
W,
|
|
924
|
-
{
|
|
925
|
-
ref: h,
|
|
926
|
-
isActive: a,
|
|
927
|
-
asChild: i,
|
|
928
|
-
"aria-label": s,
|
|
929
|
-
"aria-describedby": p ? C : void 0,
|
|
930
|
-
draggable: p ? !1 : void 0,
|
|
931
|
-
className: [
|
|
932
|
-
p ? "flex-1 min-w-0" : "",
|
|
933
|
-
m ?? ""
|
|
934
|
-
].filter(Boolean).join(" "),
|
|
935
|
-
...v,
|
|
936
|
-
children: u
|
|
937
|
-
}
|
|
938
|
-
),
|
|
939
|
-
p ? /* @__PURE__ */ r(
|
|
940
|
-
"button",
|
|
941
|
-
{
|
|
942
|
-
type: "button",
|
|
943
|
-
id: C,
|
|
944
|
-
"aria-label": b(
|
|
945
|
-
"ui.navigation.sidebar.reorderHandle",
|
|
946
|
-
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
947
|
-
{ label: j }
|
|
948
|
-
),
|
|
949
|
-
className: _e,
|
|
950
|
-
onKeyDown: Y,
|
|
951
|
-
children: /* @__PURE__ */ r(de, { "aria-hidden": "true", className: "size-4" })
|
|
952
|
-
}
|
|
953
|
-
) : null,
|
|
954
|
-
l && x !== "icon" ? /* @__PURE__ */ r(
|
|
955
|
-
_,
|
|
956
|
-
{
|
|
957
|
-
isPinned: o,
|
|
958
|
-
label: d ?? s ?? "",
|
|
959
|
-
onPinChange: l
|
|
960
|
-
}
|
|
961
|
-
) : null
|
|
962
|
-
]
|
|
963
|
-
}
|
|
964
|
-
);
|
|
965
|
-
}
|
|
966
|
-
);
|
|
967
|
-
Ee.displayName = "SidebarFavoriteItem";
|
|
968
|
-
const Ve = k(
|
|
969
|
-
[
|
|
970
|
-
"flex items-center gap-[var(--spacing-sm)]",
|
|
971
|
-
"min-h-[var(--min-target-size)]",
|
|
972
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
973
|
-
"rounded-[var(--radius-md)]",
|
|
974
|
-
"text-[var(--foreground)] text-[var(--font-size-sm)]",
|
|
975
|
-
"hover:bg-[var(--muted)]/20",
|
|
976
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
977
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
978
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
979
|
-
"no-underline"
|
|
980
|
-
].join(" ")
|
|
981
|
-
), Me = g(({ avatar: e, name: a, subtitle: i, subtitleLabel: n, className: o, ...l }, d) => {
|
|
982
|
-
const { mode: s } = w(), m = s !== "icon", u = typeof i == "string" ? i : n;
|
|
983
|
-
return /* @__PURE__ */ f(
|
|
984
|
-
"button",
|
|
985
|
-
{
|
|
986
|
-
ref: d,
|
|
987
|
-
type: "button",
|
|
988
|
-
"aria-label": u ? `${a}, ${u}` : a,
|
|
989
|
-
className: [Ve(), o].filter(Boolean).join(" "),
|
|
990
|
-
...l,
|
|
991
|
-
children: [
|
|
992
|
-
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: "inline-flex items-center shrink-0", children: e }),
|
|
993
|
-
m ? /* @__PURE__ */ f("span", { className: "flex-1 min-w-0 text-start", children: [
|
|
994
|
-
/* @__PURE__ */ r("span", { className: "block truncate type-label", children: a }),
|
|
995
|
-
i ? typeof i == "string" ? /* @__PURE__ */ r("span", { className: "block truncate type-meta text-[color:var(--muted-foreground)]", children: i }) : /* @__PURE__ */ r("span", { className: "flex items-center gap-[length:var(--spacing-xs)] min-w-0 type-meta text-[color:var(--muted-foreground)]", children: i }) : null
|
|
996
|
-
] }) : null
|
|
997
|
-
]
|
|
998
|
-
}
|
|
999
|
-
);
|
|
1000
|
-
});
|
|
1001
|
-
Me.displayName = "SidebarProfilePill";
|
|
1002
|
-
const Oe = [
|
|
1003
|
-
"inline-flex items-center justify-center shrink-0",
|
|
1004
|
-
"min-w-[var(--min-target-size)] min-h-[var(--min-target-size)]",
|
|
1005
|
-
"rounded-[var(--radius-sm)]",
|
|
1006
|
-
"text-[var(--muted-foreground)]",
|
|
1007
|
-
"hover:bg-[var(--muted)]/20 hover:text-[var(--foreground)]",
|
|
1008
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
1009
|
-
"focus-visible:outline-[var(--ring)] focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1010
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
1011
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none"
|
|
1012
|
-
].join(" "), $e = g(
|
|
1013
|
-
({ className: e, "aria-label": a, onClick: i, ...n }, o) => {
|
|
1014
|
-
const { t: l } = I(), { mode: d, transitionTo: s } = w();
|
|
1015
|
-
if (d === "overlay") return null;
|
|
1016
|
-
const m = d === "expanded", u = a ?? (m ? l("ui.navigation.sidebar.collapse", "Collapse sidebar") : l("ui.navigation.sidebar.expand", "Expand sidebar")), v = /* @__PURE__ */ r(
|
|
1017
|
-
"button",
|
|
1018
|
-
{
|
|
1019
|
-
ref: o,
|
|
1020
|
-
type: "button",
|
|
1021
|
-
"aria-label": u,
|
|
1022
|
-
"aria-expanded": m,
|
|
1023
|
-
onClick: (h) => {
|
|
1024
|
-
s == null || s(m ? "icon" : "expanded"), i == null || i(h);
|
|
1025
|
-
},
|
|
1026
|
-
className: [Oe, e].filter(Boolean).join(" "),
|
|
1027
|
-
...n,
|
|
1028
|
-
children: m ? /* @__PURE__ */ r(me, { "aria-hidden": "true", className: "size-4 rtl:-scale-x-100" }) : /* @__PURE__ */ r(ve, { "aria-hidden": "true", className: "size-4 rtl:-scale-x-100" })
|
|
1029
|
-
}
|
|
1030
|
-
);
|
|
1031
|
-
return /* @__PURE__ */ f(S.Root, { children: [
|
|
1032
|
-
/* @__PURE__ */ r(S.Trigger, { asChild: !0, children: v }),
|
|
1033
|
-
/* @__PURE__ */ r(S.Portal, { children: /* @__PURE__ */ f(
|
|
1034
|
-
S.Content,
|
|
1035
|
-
{
|
|
1036
|
-
side: d === "icon" ? "right" : "top",
|
|
1037
|
-
sideOffset: 6,
|
|
1038
|
-
className: [
|
|
1039
|
-
"z-[var(--z-tooltip)] max-w-[16rem]",
|
|
1040
|
-
"rounded-[var(--radius-sm)]",
|
|
1041
|
-
"bg-[var(--foreground)] text-[var(--background)]",
|
|
1042
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)] py-[var(--spacing-xs)] text-[var(--font-size-xs)]",
|
|
1043
|
-
"animate-in fade-in zoom-in-95 motion-reduce:animate-none"
|
|
1044
|
-
].join(" "),
|
|
1045
|
-
children: [
|
|
1046
|
-
u,
|
|
1047
|
-
/* @__PURE__ */ r(S.Arrow, { className: "fill-[var(--foreground)]" })
|
|
1048
|
-
]
|
|
1049
|
-
}
|
|
1050
|
-
) })
|
|
1051
|
-
] });
|
|
1052
|
-
}
|
|
1053
|
-
);
|
|
1054
|
-
$e.displayName = "SidebarCollapseTrigger";
|
|
1055
|
-
export {
|
|
1056
|
-
xe as S,
|
|
1057
|
-
we as a,
|
|
1058
|
-
$e as b,
|
|
1059
|
-
Ee as c,
|
|
1060
|
-
He as d,
|
|
1061
|
-
Ne as e,
|
|
1062
|
-
ze as f,
|
|
1063
|
-
ye as g,
|
|
1064
|
-
W as h,
|
|
1065
|
-
Be as i,
|
|
1066
|
-
Ce as j,
|
|
1067
|
-
Te as k,
|
|
1068
|
-
_ as l,
|
|
1069
|
-
Re as m,
|
|
1070
|
-
Me as n,
|
|
1071
|
-
J as o,
|
|
1072
|
-
Ie as p,
|
|
1073
|
-
w as q,
|
|
1074
|
-
Ze as u
|
|
1075
|
-
};
|
|
1076
|
-
//# sourceMappingURL=sidebar-r645O-k9.js.map
|