@constructive-io/ui 0.6.0 → 0.6.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/button-D4vqTxhp.d.cts +20 -0
- package/dist/button-D4vqTxhp.d.ts +20 -0
- package/dist/components/alert-dialog.cjs +98 -302
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +22 -21
- package/dist/components/alert-dialog.d.ts +22 -21
- package/dist/components/alert-dialog.js +96 -281
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +51 -108
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +13 -13
- package/dist/components/alert.d.ts +13 -13
- package/dist/components/alert.js +49 -87
- package/dist/components/alert.js.map +1 -1
- package/dist/components/app-bar.cjs +73 -359
- package/dist/components/app-bar.cjs.map +1 -1
- package/dist/components/app-bar.d.cts +21 -20
- package/dist/components/app-bar.d.ts +21 -20
- package/dist/components/app-bar.js +71 -338
- package/dist/components/app-bar.js.map +1 -1
- package/dist/components/app-shell.cjs +252 -1777
- package/dist/components/app-shell.cjs.map +1 -1
- package/dist/components/app-shell.d.cts +77 -85
- package/dist/components/app-shell.d.ts +77 -85
- package/dist/components/app-shell.js +249 -1756
- package/dist/components/app-shell.js.map +1 -1
- package/dist/components/autocomplete.cjs +146 -397
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.d.cts +24 -24
- package/dist/components/autocomplete.d.ts +24 -24
- package/dist/components/autocomplete.js +146 -376
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +26 -38
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +11 -10
- package/dist/components/avatar.d.ts +11 -10
- package/dist/components/avatar.js +24 -37
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +42 -60
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +13 -13
- package/dist/components/badge.d.ts +13 -13
- package/dist/components/badge.js +39 -38
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +65 -94
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.d.cts +14 -13
- package/dist/components/breadcrumb.d.ts +14 -13
- package/dist/components/breadcrumb.js +63 -73
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +68 -162
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +2 -20
- package/dist/components/button.d.ts +2 -20
- package/dist/components/button.js +65 -140
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +49 -62
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.d.cts +8 -8
- package/dist/components/calendar-rac.d.ts +8 -8
- package/dist/components/calendar-rac.js +49 -61
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +61 -74
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +15 -16
- package/dist/components/card.d.ts +15 -16
- package/dist/components/card.js +58 -72
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +12 -11
- package/dist/components/checkbox-group.cjs.map +1 -1
- package/dist/components/checkbox-group.d.cts +5 -5
- package/dist/components/checkbox-group.d.ts +5 -5
- package/dist/components/checkbox-group.js +12 -10
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.cjs +60 -114
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.d.cts +6 -6
- package/dist/components/checkbox.d.ts +6 -6
- package/dist/components/checkbox.js +58 -93
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +76 -113
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.d.cts +16 -15
- package/dist/components/collapsible.d.ts +16 -15
- package/dist/components/collapsible.js +74 -92
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +213 -507
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +36 -35
- package/dist/components/combobox.d.ts +36 -35
- package/dist/components/combobox.js +229 -504
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +102 -199
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +22 -21
- package/dist/components/command.d.ts +22 -21
- package/dist/components/command.js +100 -198
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +110 -402
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +27 -26
- package/dist/components/dialog.d.ts +27 -26
- package/dist/components/dialog.js +107 -380
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +80 -111
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +25 -25
- package/dist/components/dock.d.ts +25 -25
- package/dist/components/dock.js +78 -106
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +77 -111
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.d.cts +15 -14
- package/dist/components/drawer.d.ts +15 -14
- package/dist/components/drawer.js +75 -90
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +163 -238
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +44 -43
- package/dist/components/dropdown-menu.d.ts +44 -43
- package/dist/components/dropdown-menu.js +161 -217
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +51 -85
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.d.cts +13 -13
- package/dist/components/empty.d.ts +13 -13
- package/dist/components/empty.js +48 -83
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +150 -259
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +39 -39
- package/dist/components/field.d.ts +39 -39
- package/dist/components/field.js +148 -238
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +143 -166
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.d.cts +14 -13
- package/dist/components/flickering-grid.d.ts +14 -13
- package/dist/components/flickering-grid.js +141 -161
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +56 -188
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +9 -9
- package/dist/components/flow-zoom-panel.d.ts +9 -9
- package/dist/components/flow-zoom-panel.js +56 -168
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +58 -186
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.d.cts +11 -10
- package/dist/components/form-control.d.ts +11 -10
- package/dist/components/form-control.js +56 -165
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +78 -184
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.d.cts +2 -36
- package/dist/components/form.d.ts +2 -36
- package/dist/components/form.js +76 -163
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +51 -165
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +14 -15
- package/dist/components/input-group.d.ts +14 -15
- package/dist/components/input-group.js +51 -164
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.cjs +30 -55
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +2 -10
- package/dist/components/input.d.ts +2 -10
- package/dist/components/input.js +30 -54
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.cjs +133 -337
- package/dist/components/json-input.cjs.map +1 -1
- package/dist/components/json-input.d.cts +20 -19
- package/dist/components/json-input.d.ts +20 -19
- package/dist/components/json-input.js +132 -317
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/label.cjs +19 -21
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.d.cts +6 -5
- package/dist/components/label.d.ts +6 -5
- package/dist/components/label.js +17 -20
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +61 -101
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.d.cts +15 -14
- package/dist/components/motion-grid.d.ts +15 -14
- package/dist/components/motion-grid.js +59 -80
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +563 -786
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.d.cts +173 -173
- package/dist/components/multi-select.d.ts +173 -173
- package/dist/components/multi-select.js +561 -765
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +24 -13
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.d.cts +11 -11
- package/dist/components/page-header.d.ts +11 -11
- package/dist/components/page-header.js +23 -11
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +72 -272
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +15 -16
- package/dist/components/pagination.d.ts +15 -16
- package/dist/components/pagination.js +69 -250
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.cjs +68 -111
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.d.cts +31 -30
- package/dist/components/popover.d.ts +31 -30
- package/dist/components/popover.js +66 -90
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.cjs +128 -81
- package/dist/components/portal.cjs.map +1 -1
- package/dist/components/portal.d.cts +24 -23
- package/dist/components/portal.d.ts +24 -23
- package/dist/components/portal.js +126 -60
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.cjs +23 -24
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +8 -7
- package/dist/components/progress.d.ts +8 -7
- package/dist/components/progress.js +21 -23
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +70 -138
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +19 -19
- package/dist/components/progressive-blur-scroll-container.d.ts +19 -19
- package/dist/components/progressive-blur-scroll-container.js +70 -137
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +40 -64
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.d.cts +15 -14
- package/dist/components/progressive-blur.d.ts +15 -14
- package/dist/components/progressive-blur.js +38 -63
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +28 -42
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.d.cts +8 -8
- package/dist/components/radio-group.d.ts +8 -8
- package/dist/components/radio-group.js +28 -41
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +6 -418
- package/dist/components/record-picker.d.cts +13 -13
- package/dist/components/record-picker.d.ts +13 -13
- package/dist/components/record-picker.js +5 -397
- package/dist/components/resizable.cjs +32 -58
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.d.cts +10 -9
- package/dist/components/resizable.d.ts +10 -9
- package/dist/components/resizable.js +29 -37
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +50 -61
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -7
- package/dist/components/responsive-diagram.d.ts +7 -7
- package/dist/components/responsive-diagram.js +50 -60
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +37 -83
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.d.cts +9 -8
- package/dist/components/scroll-area.d.ts +9 -8
- package/dist/components/scroll-area.js +35 -62
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +175 -300
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +36 -35
- package/dist/components/select.d.ts +36 -35
- package/dist/components/select.js +172 -278
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +16 -19
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +2 -10
- package/dist/components/separator.d.ts +2 -10
- package/dist/components/separator.js +14 -18
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +17 -487
- package/dist/components/sheet.d.cts +85 -85
- package/dist/components/sheet.d.ts +85 -85
- package/dist/components/sheet.js +3 -453
- package/dist/components/sidebar.cjs +27 -1298
- package/dist/components/sidebar.d.cts +62 -65
- package/dist/components/sidebar.d.ts +62 -65
- package/dist/components/sidebar.js +3 -1254
- package/dist/components/skeleton.cjs +18 -30
- package/dist/components/skeleton.cjs.map +1 -1
- package/dist/components/skeleton.d.cts +6 -5
- package/dist/components/skeleton.d.ts +6 -5
- package/dist/components/skeleton.js +15 -28
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/sonner.cjs +17 -19
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +7 -7
- package/dist/components/sonner.d.ts +7 -7
- package/dist/components/sonner.js +17 -18
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/stack/index.cjs +43 -1515
- package/dist/components/stack/index.d.cts +2 -672
- package/dist/components/stack/index.d.ts +2 -672
- package/dist/components/stack/index.js +3 -1455
- package/dist/components/stepper.cjs +131 -285
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +27 -26
- package/dist/components/stepper.d.ts +27 -26
- package/dist/components/stepper.js +130 -265
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +21 -32
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.d.cts +7 -6
- package/dist/components/switch.d.ts +7 -6
- package/dist/components/switch.js +19 -31
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +58 -106
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +17 -16
- package/dist/components/table.d.ts +17 -16
- package/dist/components/table.js +55 -104
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +31 -35
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +9 -8
- package/dist/components/tabs.d.ts +9 -8
- package/dist/components/tabs.js +29 -34
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +114 -433
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +24 -28
- package/dist/components/tags.d.ts +24 -28
- package/dist/components/tags.js +114 -413
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +27 -49
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.d.cts +8 -7
- package/dist/components/textarea.d.ts +8 -7
- package/dist/components/textarea.js +27 -48
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +9 -612
- package/dist/components/toast/index.d.cts +2 -52
- package/dist/components/toast/index.d.ts +2 -52
- package/dist/components/toast/index.js +3 -586
- package/dist/components/tooltip.cjs +47 -72
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +2 -28
- package/dist/components/tooltip.d.ts +2 -28
- package/dist/components/tooltip.js +45 -51
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +19 -192
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +11 -11
- package/dist/components/unlink-button.d.ts +11 -11
- package/dist/components/unlink-button.js +18 -170
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/form-DgRTv7O7.d.ts +54 -0
- package/dist/form-DoZEWSzb.d.cts +54 -0
- package/dist/index-CjA4CENl.d.cts +684 -0
- package/dist/index-CjA4CENl.d.ts +684 -0
- package/dist/index-UnM04j0t.d.cts +58 -0
- package/dist/index-UnM04j0t.d.ts +58 -0
- package/dist/index.cjs +408 -8697
- package/dist/index.d.cts +224 -2136
- package/dist/index.d.ts +224 -2136
- package/dist/index.js +65 -8350
- package/dist/input-CBrCuMH8.d.cts +11 -0
- package/dist/input-CBrCuMH8.d.ts +11 -0
- package/dist/motion-config-COCFHq1L.cjs +271 -0
- package/dist/motion-config-COCFHq1L.cjs.map +1 -0
- package/dist/motion-config-COsZ6azM.js +241 -0
- package/dist/motion-config-COsZ6azM.js.map +1 -0
- package/dist/record-picker-BbxngCeV.js +162 -0
- package/dist/record-picker-BbxngCeV.js.map +1 -0
- package/dist/record-picker-Bz4FApxD.cjs +167 -0
- package/dist/record-picker-Bz4FApxD.cjs.map +1 -0
- package/dist/rolldown-runtime-D_qnwXdH.cjs +35 -0
- package/dist/separator-BQEsr0Rc.d.cts +11 -0
- package/dist/separator-BQEsr0Rc.d.ts +11 -0
- package/dist/sheet-BLHnhLRH.js +425 -0
- package/dist/sheet-BLHnhLRH.js.map +1 -0
- package/dist/sheet-BdA0rfIz.cjs +515 -0
- package/dist/sheet-BdA0rfIz.cjs.map +1 -0
- package/dist/sidebar-CPy_fibW.cjs +608 -0
- package/dist/sidebar-CPy_fibW.cjs.map +1 -0
- package/dist/sidebar-Cfax0g0_.js +463 -0
- package/dist/sidebar-Cfax0g0_.js.map +1 -0
- package/dist/slot-C-jEfihz.cjs +122 -0
- package/dist/slot-C-jEfihz.cjs.map +1 -0
- package/dist/slot-EL8zfLG0.js +97 -0
- package/dist/slot-EL8zfLG0.js.map +1 -0
- package/dist/stack-DKdvlOM6.cjs +1771 -0
- package/dist/stack-DKdvlOM6.cjs.map +1 -0
- package/dist/stack-jMdxDrex.js +1531 -0
- package/dist/stack-jMdxDrex.js.map +1 -0
- package/dist/toast-D6MqijT2.cjs +316 -0
- package/dist/toast-D6MqijT2.cjs.map +1 -0
- package/dist/toast-D_BOLzm3.js +287 -0
- package/dist/toast-D_BOLzm3.js.map +1 -0
- package/dist/tooltip-CTRQoN1A.d.cts +29 -0
- package/dist/tooltip-CTRQoN1A.d.ts +29 -0
- package/dist/utils-BkMLyah9.js +12 -0
- package/dist/utils-BkMLyah9.js.map +1 -0
- package/dist/utils-CzTQ3-VI.cjs +17 -0
- package/dist/utils-CzTQ3-VI.cjs.map +1 -0
- package/package.json +5 -5
- package/dist/components/record-picker.cjs.map +0 -1
- package/dist/components/record-picker.js.map +0 -1
- package/dist/components/sheet.cjs.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.cjs.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/stack/index.cjs.map +0 -1
- package/dist/components/stack/index.js.map +0 -1
- package/dist/components/toast/index.cjs.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-CPy_fibW.cjs","names":["React","React","TooltipProvider","cn","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","Button","PanelLeftIcon","Input","Separator","TooltipTrigger","Tooltip","TooltipContent","Skeleton"],"sources":["../src/lib/use-mobile.ts","../src/components/sidebar.tsx"],"sourcesContent":["import * as React from 'react';\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n\t// Default to false on server to avoid hydration mismatch\n\tconst [isMobile, setIsMobile] = React.useState(false);\n\n\tReact.useEffect(() => {\n\t\tconst mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n\t\tconst onChange = () => {\n\t\t\tsetIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n\t\t};\n\t\tmql.addEventListener('change', onChange);\n\t\tsetIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n\t\treturn () => mql.removeEventListener('change', onChange);\n\t}, []);\n\n\treturn isMobile;\n}\n","'use client';\n\nimport * as React from 'react';\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { PanelLeftIcon } from 'lucide-react';\n\nimport { useIsMobile } from '../lib/use-mobile';\nimport { cn } from '../lib/utils';\nimport { Button } from './button';\nimport { Input } from './input';\nimport { Separator } from './separator';\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from './sheet';\nimport { Skeleton } from './skeleton';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar_state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype SidebarContextProps = {\n\tsidebarId: string;\n\tstate: 'expanded' | 'collapsed';\n\topen: boolean;\n\tsetOpen: (open: boolean | ((open: boolean) => boolean)) => void;\n\topenMobile: boolean;\n\tsetOpenMobile: React.Dispatch<React.SetStateAction<boolean>>;\n\tisMobile: boolean;\n\ttoggleSidebar: () => void;\n};\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null);\n\nfunction useSidebar() {\n\tconst context = React.useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error('useSidebar must be used within a SidebarProvider.');\n\t}\n\n\treturn context;\n}\n\nfunction SidebarProvider({\n\tdefaultOpen = true,\n\topen: openProp,\n\tonOpenChange: setOpenProp,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tdefaultOpen?: boolean;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n}) {\n\tconst isMobile = useIsMobile();\n\tconst sidebarId = React.useId();\n\tconst [openMobile, setOpenMobile] = React.useState(false);\n\tconst [_open, _setOpen] = React.useState(defaultOpen);\n\tconst open = openProp ?? _open;\n\tconst setOpen = React.useCallback(\n\t\t(value: boolean | ((value: boolean) => boolean)) => {\n\t\t\tconst openState = typeof value === 'function' ? value(open) : value;\n\t\t\tif (setOpenProp) {\n\t\t\t\tsetOpenProp(openState);\n\t\t\t} else {\n\t\t\t\t_setOpen(openState);\n\t\t\t}\n\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t\t[open, setOpenProp],\n\t);\n\n\tconst toggleSidebar = React.useCallback(() => {\n\t\treturn isMobile ? setOpenMobile((currentOpen) => !currentOpen) : setOpen((currentOpen) => !currentOpen);\n\t}, [isMobile, setOpen]);\n\n\tReact.useEffect(() => {\n\t\tconst handleKeyDown = (event: KeyboardEvent) => {\n\t\t\tif (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\ttoggleSidebar();\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('keydown', handleKeyDown);\n\t\treturn () => window.removeEventListener('keydown', handleKeyDown);\n\t}, [toggleSidebar]);\n\n\tconst state = open ? 'expanded' : 'collapsed';\n\tconst contextValue = React.useMemo<SidebarContextProps>(\n\t\t() => ({\n\t\t\tsidebarId,\n\t\t\tstate,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\tisMobile,\n\t\t\topenMobile,\n\t\t\tsetOpenMobile,\n\t\t\ttoggleSidebar,\n\t\t}),\n\t\t[sidebarId, state, open, setOpen, isMobile, openMobile, toggleSidebar],\n\t);\n\n\treturn (\n\t\t<SidebarContext.Provider value={contextValue}>\n\t\t\t<TooltipProvider delay={0}>\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='sidebar-wrapper'\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH,\n\t\t\t\t\t\t\t'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n\t\t\t\t\t\t\t...style,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tclassName={cn('group/sidebar-wrapper flex min-h-dvh w-full has-data-[variant=inset]:bg-sidebar', className)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</TooltipProvider>\n\t\t</SidebarContext.Provider>\n\t);\n}\n\nfunction Sidebar({\n\tside = 'left',\n\tvariant = 'sidebar',\n\tcollapsible = 'offcanvas',\n\tclassName,\n\tchildren,\n\tdir,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tside?: 'left' | 'right';\n\tvariant?: 'sidebar' | 'floating' | 'inset';\n\tcollapsible?: 'offcanvas' | 'icon' | 'none';\n}) {\n\tconst { isMobile, sidebarId, state, openMobile, setOpenMobile } = useSidebar();\n\n\tif (collapsible === 'none') {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={sidebarId}\n\t\t\t\tdata-slot='sidebar'\n\t\t\t\tclassName={cn('flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (isMobile) {\n\t\treturn (\n\t\t\t<Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n\t\t\t\t<SheetContent\n\t\t\t\t\tid={sidebarId}\n\t\t\t\t\tdir={dir}\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar'\n\t\t\t\t\tdata-mobile='true'\n\t\t\t\t\tclassName={`w-(--sidebar-width) bg-sidebar pt-[env(safe-area-inset-top)]\n\t\t\t\t\t\tpb-[env(safe-area-inset-bottom)] text-sidebar-foreground [&_[data-sidebar=header]]:pr-12\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:top-[calc(env(safe-area-inset-top)+0.5rem)]\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:right-2 [&>[data-slot=sheet-close]]:flex\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:size-10 [&>[data-slot=sheet-close]]:items-center\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:justify-center [&>[data-slot=sheet-close]]:rounded-lg\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:opacity-100 pointer-coarse:[&>[data-slot=sheet-close]]:size-11`}\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tside={side}\n\t\t\t\t>\n\t\t\t\t\t<SheetHeader className='sr-only'>\n\t\t\t\t\t\t<SheetTitle>Sidebar</SheetTitle>\n\t\t\t\t\t\t<SheetDescription>Displays the mobile sidebar.</SheetDescription>\n\t\t\t\t\t</SheetHeader>\n\t\t\t\t\t<div className='flex h-full w-full flex-col'>{children}</div>\n\t\t\t\t</SheetContent>\n\t\t\t</Sheet>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tid={sidebarId}\n\t\t\tclassName='group peer hidden text-sidebar-foreground md:block'\n\t\t\tdata-state={state}\n\t\t\tdata-collapsible={state === 'collapsed' ? collapsible : ''}\n\t\t\tdata-variant={variant}\n\t\t\tdata-side={side}\n\t\t\tdata-slot='sidebar'\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-gap'\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none',\n\t\t\t\t\t'group-data-[collapsible=offcanvas]:w-0',\n\t\t\t\t\t'group-data-[side=right]:rotate-180',\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n\t\t\t\t\t\t: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',\n\t\t\t\t)}\n\t\t\t/>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-container'\n\t\t\t\tdata-side={side}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`fixed inset-y-0 z-10 hidden h-dvh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear\n\t\t\t\t\tdata-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tdata-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tmotion-reduce:transition-none md:flex`,\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n\t\t\t\t\t\t: `group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r\n\t\t\t\t\t\t\tgroup-data-[side=right]:border-l`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar-inner'\n\t\t\t\t\tclassName='flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg\n\t\t\t\t\t\tgroup-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1\n\t\t\t\t\t\tgroup-data-[variant=floating]:ring-sidebar-border'\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nfunction SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>) {\n\tconst { isMobile, open, openMobile, sidebarId, toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<Button\n\t\t\taria-controls={sidebarId}\n\t\t\taria-expanded={isMobile ? openMobile : open}\n\t\t\tdata-sidebar='trigger'\n\t\t\tdata-slot='sidebar-trigger'\n\t\t\tvariant='ghost'\n\t\t\tsize='icon-sm'\n\t\t\tclassName={cn(className)}\n\t\t\tonClick={(event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\ttoggleSidebar();\n\t\t\t}}\n\t\t\t{...props}\n\t\t>\n\t\t\t<PanelLeftIcon />\n\t\t\t<span className='sr-only'>Toggle Sidebar</span>\n\t\t</Button>\n\t);\n}\n\nfunction SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<button\n\t\t\ttype='button'\n\t\t\tdata-sidebar='rail'\n\t\t\tdata-slot='sidebar-rail'\n\t\t\taria-label='Toggle Sidebar'\n\t\t\ttabIndex={-1}\n\t\t\tonClick={toggleSidebar}\n\t\t\ttitle='Toggle Sidebar'\n\t\t\tclassName={cn(\n\t\t\t\t`absolute inset-y-0 z-20 hidden w-4 transition-[transform,background-color] duration-200 ease-linear group-data-[side=left]:-right-4\n\t\t\t\tgroup-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-px\n\t\t\t\thover:after:bg-sidebar-border motion-reduce:transition-none sm:flex ltr:-translate-x-1/2 rtl:translate-x-1/2`,\n\t\t\t\t'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',\n\t\t\t\t`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize\n\t\t\t\t[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,\n\t\t\t\t`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full\n\t\t\t\thover:group-data-[collapsible=offcanvas]:bg-sidebar`,\n\t\t\t\t'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',\n\t\t\t\t'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {\n\treturn (\n\t\t<main\n\t\t\tdata-slot='sidebar-inset'\n\t\t\tclassName={cn(\n\t\t\t\t`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2\n\t\t\t\tmd:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl\n\t\t\t\tmd:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n\treturn (\n\t\t<Input\n\t\t\tdata-slot='sidebar-input'\n\t\t\tdata-sidebar='input'\n\t\t\tclassName={cn('h-8 w-full bg-background shadow-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-header'\n\t\t\tdata-sidebar='header'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-footer'\n\t\t\tdata-sidebar='footer'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tdata-slot='sidebar-separator'\n\t\t\tdata-sidebar='separator'\n\t\t\tclassName={cn('mx-2 w-auto bg-sidebar-border', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-content'\n\t\t\tdata-sidebar='content'\n\t\t\tclassName={cn(\n\t\t\t\t'scrollbar-hide flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group'\n\t\t\tdata-sidebar='group'\n\t\t\tclassName={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroupLabel({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'div'> & React.ComponentProps<'div'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tprops: mergeProps<'div'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70\n\t\t\t\t\tring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear\n\t\t\t\t\tgroup-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2\n\t\t\t\t\tmotion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-label',\n\t\t\tsidebar: 'group-label',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupAction({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'button'> & React.ComponentProps<'button'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-action',\n\t\t\tsidebar: 'group-action',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group-content'\n\t\t\tdata-sidebar='group-content'\n\t\t\tclassName={cn('w-full text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu'\n\t\t\tdata-sidebar='menu'\n\t\t\tclassName={cn('flex w-full min-w-0 flex-col gap-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-item'\n\t\t\tdata-sidebar='menu-item'\n\t\t\tclassName={cn('group/menu-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst sidebarMenuButtonVariants = cva(\n\t`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm\n\tring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8\n\tgroup-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent\n\thover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\tactive:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50\n\taria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent\n\tdata-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium\n\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0\n\t[&>span:last-child]:truncate`,\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n\t\t\t\toutline:\n\t\t\t\t\t'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-8 text-sm',\n\t\t\t\tsm: 'h-7 text-xs',\n\t\t\t\tlg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\n\nfunction SidebarMenuButton({\n\trender,\n\tisActive = false,\n\tvariant = 'default',\n\tsize = 'default',\n\ttooltip,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tisActive?: boolean;\n\t\ttooltip?: string | React.ComponentProps<typeof TooltipContent>;\n\t} & VariantProps<typeof sidebarMenuButtonVariants>) {\n\tconst { isMobile, state } = useSidebar();\n\tconst component = useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(sidebarMenuButtonVariants({ variant, size }), className),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender: !tooltip ? render : <TooltipTrigger render={render} />,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-button',\n\t\t\tsidebar: 'menu-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n\n\tif (!tooltip) {\n\t\treturn component;\n\t}\n\n\tconst tooltipProps = typeof tooltip === 'string' ? { children: tooltip } : tooltip;\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t{component}\n\t\t\t<TooltipContent side='right' align='center' hidden={state !== 'collapsed' || isMobile} {...tooltipProps} />\n\t\t</Tooltip>\n\t);\n}\n\nfunction SidebarMenuAction({\n\tclassName,\n\trender,\n\tshowOnHover = false,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tshowOnHover?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground\n\t\t\t\t\tpeer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5\n\t\t\t\t\tpeer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tshowOnHover &&\n\t\t\t\t\t\t`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100\n\t\t\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-action',\n\t\t\tsidebar: 'menu-action',\n\t\t},\n\t});\n}\n\nfunction SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-badge'\n\t\t\tdata-sidebar='menu-badge'\n\t\t\tclassName={cn(\n\t\t\t\t`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1\n\t\t\t\ttext-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden\n\t\t\t\tpeer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5\n\t\t\t\tpeer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1\n\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSkeleton({\n\tclassName,\n\tshowIcon = false,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tshowIcon?: boolean;\n}) {\n\tconst id = React.useId();\n\tconst width = React.useMemo(() => {\n\t\tlet hash = 0;\n\t\tfor (const character of id) {\n\t\t\thash = (hash * 31 + character.charCodeAt(0)) >>> 0;\n\t\t}\n\t\treturn `${50 + (hash % 40)}%`;\n\t}, [id]);\n\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-skeleton'\n\t\t\tdata-sidebar='menu-skeleton'\n\t\t\tclassName={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{showIcon && <Skeleton className='size-4 rounded-md' data-sidebar='menu-skeleton-icon' />}\n\t\t\t<Skeleton\n\t\t\t\tclassName='h-4 max-w-(--skeleton-width) flex-1'\n\t\t\t\tdata-sidebar='menu-skeleton-text'\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t'--skeleton-width': width,\n\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu-sub'\n\t\t\tdata-sidebar='menu-sub'\n\t\t\tclassName={cn(\n\t\t\t\t`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\n\t\t\t\tgroup-data-[collapsible=icon]:hidden`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-sub-item'\n\t\t\tdata-sidebar='menu-sub-item'\n\t\t\tclassName={cn('group/menu-sub-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubButton({\n\trender,\n\tsize = 'md',\n\tisActive = false,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'a'> &\n\tReact.ComponentProps<'a'> & {\n\t\tsize?: 'sm' | 'md';\n\t\tisActive?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'a',\n\t\tprops: mergeProps<'a'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden\n\t\t\t\t\thover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\t\t\t\t\tactive:text-sidebar-accent-foreground aria-disabled:pointer-events-none aria-disabled:opacity-50\n\t\t\t\t\tdata-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent\n\t\t\t\t\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 [&>span:last-child]:truncate [&>svg]:size-4\n\t\t\t\t\t[&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-sub-button',\n\t\t\tsidebar: 'menu-sub-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n}\n\nexport {\n\tSidebar,\n\tSidebarContent,\n\tSidebarFooter,\n\tSidebarGroup,\n\tSidebarGroupAction,\n\tSidebarGroupContent,\n\tSidebarGroupLabel,\n\tSidebarHeader,\n\tSidebarInput,\n\tSidebarInset,\n\tSidebarMenu,\n\tSidebarMenuAction,\n\tSidebarMenuBadge,\n\tSidebarMenuButton,\n\tSidebarMenuItem,\n\tSidebarMenuSkeleton,\n\tSidebarMenuSub,\n\tSidebarMenuSubButton,\n\tSidebarMenuSubItem,\n\tSidebarProvider,\n\tSidebarRail,\n\tSidebarSeparator,\n\tSidebarTrigger,\n\tuseSidebar,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAEA,MAAM,oBAAoB;AAE1B,SAAgB,cAAc;CAE7B,MAAM,CAAC,UAAU,eAAeA,MAAM,SAAS,KAAK;CAEpD,MAAM,gBAAgB;EACrB,MAAM,MAAM,OAAO,WAAW,eAAe,oBAAoB,EAAE,IAAI;EACvE,MAAM,iBAAiB;GACtB,YAAY,OAAO,aAAa,iBAAiB;EAClD;EACA,IAAI,iBAAiB,UAAU,QAAQ;EACvC,YAAY,OAAO,aAAa,iBAAiB;EACjD,aAAa,IAAI,oBAAoB,UAAU,QAAQ;CACxD,GAAG,CAAC,CAAC;CAEL,OAAO;AACR;;;;ACFA,MAAM,sBAAsB;AAC5B,MAAM,yBAAyB,OAAU,KAAK;AAC9C,MAAM,gBAAgB;AACtB,MAAM,uBAAuB;AAC7B,MAAM,qBAAqB;AAC3B,MAAM,4BAA4B;AAalC,MAAM,iBAAiBC,MAAM,cAA0C,IAAI;AAE3E,SAAS,aAAa;CACrB,MAAM,UAAUA,MAAM,WAAW,cAAc;CAC/C,IAAI,CAAC,SACJ,MAAM,IAAI,MAAM,mDAAmD;CAGpE,OAAO;AACR;AAEA,SAAS,gBAAgB,EACxB,cAAc,MACd,MAAM,UACN,cAAc,aACd,WACA,OACA,UACA,GAAG,SAKD;CACF,MAAM,WAAW,YAAY;CAC7B,MAAM,YAAYA,MAAM,MAAM;CAC9B,MAAM,CAAC,YAAY,iBAAiBA,MAAM,SAAS,KAAK;CACxD,MAAM,CAAC,OAAO,YAAYA,MAAM,SAAS,WAAW;CACpD,MAAM,OAAO,YAAY;CACzB,MAAM,UAAUA,MAAM,aACpB,UAAmD;EACnD,MAAM,YA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AAsB,IACxF,2CAACA,sCAAD;GACC,WAAU;GACV,gBAAa;GACb,OACC,EACC,oBAAoB,MACrB;EAED,EACG;;AAEP;AAEA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAqC;CAC5E,OACC,2CAAC,MAAD;EACC,aAAU;EACV,gBAAa;EACb,WAAWb,iBACV;2CAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAqC;CAChF,OACC,2CAAC,MAAD;EACC,aAAU;EACV,gBAAa;EACb,WAAWA,iBAAG,gCAAgC,SAAS;EACvD,GAAI;CACJ;AAEH;AAEA,SAAS,qBAAqB,EAC7B,QACA,OAAO,MACP,WAAW,OACX,WACA,GAAG,SAKA;CACH,gDAAiB;EAChB,gBAAgB;EAChB,kDACC,EACC,WAAWA,iBACV;;;;;;+DAOA,SACD,EACD,GACA,KACD;EACA;EACA,OAAO;GACN,MAAM;GACN,SAAS;GACT;GACA,QAAQ;EACT;CACD,CAAC;AACF"}
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as cn } from "./utils-BkMLyah9.js";
|
|
3
|
+
import { a as SheetDescription, d as SheetTitle, i as SheetContent, n as Sheet, s as SheetHeader } from "./sheet-BLHnhLRH.js";
|
|
4
|
+
import { Button } from "./components/button.js";
|
|
5
|
+
import { Skeleton } from "./components/skeleton.js";
|
|
6
|
+
import { Separator } from "./components/separator.js";
|
|
7
|
+
import { Input } from "./components/input.js";
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.js";
|
|
9
|
+
import * as React$1 from "react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
import { PanelLeftIcon } from "lucide-react";
|
|
13
|
+
import { mergeProps } from "@base-ui/react/merge-props";
|
|
14
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
15
|
+
|
|
16
|
+
//#region src/lib/use-mobile.ts
|
|
17
|
+
const MOBILE_BREAKPOINT = 768;
|
|
18
|
+
function useIsMobile() {
|
|
19
|
+
const [isMobile, setIsMobile] = React$1.useState(false);
|
|
20
|
+
React$1.useEffect(() => {
|
|
21
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
22
|
+
const onChange = () => {
|
|
23
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
24
|
+
};
|
|
25
|
+
mql.addEventListener("change", onChange);
|
|
26
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
27
|
+
return () => mql.removeEventListener("change", onChange);
|
|
28
|
+
}, []);
|
|
29
|
+
return isMobile;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/sidebar.tsx
|
|
34
|
+
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
35
|
+
const SIDEBAR_COOKIE_MAX_AGE = 3600 * 24 * 7;
|
|
36
|
+
const SIDEBAR_WIDTH = "16rem";
|
|
37
|
+
const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
38
|
+
const SIDEBAR_WIDTH_ICON = "3rem";
|
|
39
|
+
const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
40
|
+
const SidebarContext = React$1.createContext(null);
|
|
41
|
+
function useSidebar() {
|
|
42
|
+
const context = React$1.useContext(SidebarContext);
|
|
43
|
+
if (!context) throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
44
|
+
return context;
|
|
45
|
+
}
|
|
46
|
+
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }) {
|
|
47
|
+
const isMobile = useIsMobile();
|
|
48
|
+
const sidebarId = React$1.useId();
|
|
49
|
+
const [openMobile, setOpenMobile] = React$1.useState(false);
|
|
50
|
+
const [_open, _setOpen] = React$1.useState(defaultOpen);
|
|
51
|
+
const open = openProp ?? _open;
|
|
52
|
+
const setOpen = React$1.useCallback((value) => {
|
|
53
|
+
const openState = typeof value === "function" ? value(open) : value;
|
|
54
|
+
if (setOpenProp) setOpenProp(openState);
|
|
55
|
+
else _setOpen(openState);
|
|
56
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
57
|
+
}, [open, setOpenProp]);
|
|
58
|
+
const toggleSidebar = React$1.useCallback(() => {
|
|
59
|
+
return isMobile ? setOpenMobile((currentOpen) => !currentOpen) : setOpen((currentOpen) => !currentOpen);
|
|
60
|
+
}, [isMobile, setOpen]);
|
|
61
|
+
React$1.useEffect(() => {
|
|
62
|
+
const handleKeyDown = (event) => {
|
|
63
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
toggleSidebar();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
69
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
70
|
+
}, [toggleSidebar]);
|
|
71
|
+
const state = open ? "expanded" : "collapsed";
|
|
72
|
+
const contextValue = React$1.useMemo(() => ({
|
|
73
|
+
sidebarId,
|
|
74
|
+
state,
|
|
75
|
+
open,
|
|
76
|
+
setOpen,
|
|
77
|
+
isMobile,
|
|
78
|
+
openMobile,
|
|
79
|
+
setOpenMobile,
|
|
80
|
+
toggleSidebar
|
|
81
|
+
}), [
|
|
82
|
+
sidebarId,
|
|
83
|
+
state,
|
|
84
|
+
open,
|
|
85
|
+
setOpen,
|
|
86
|
+
isMobile,
|
|
87
|
+
openMobile,
|
|
88
|
+
toggleSidebar
|
|
89
|
+
]);
|
|
90
|
+
return /* @__PURE__ */ jsx(SidebarContext.Provider, {
|
|
91
|
+
value: contextValue,
|
|
92
|
+
children: /* @__PURE__ */ jsx(TooltipProvider, {
|
|
93
|
+
delay: 0,
|
|
94
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
95
|
+
"data-slot": "sidebar-wrapper",
|
|
96
|
+
style: {
|
|
97
|
+
"--sidebar-width": SIDEBAR_WIDTH,
|
|
98
|
+
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
99
|
+
...style
|
|
100
|
+
},
|
|
101
|
+
className: cn("group/sidebar-wrapper flex min-h-dvh w-full has-data-[variant=inset]:bg-sidebar", className),
|
|
102
|
+
...props,
|
|
103
|
+
children
|
|
104
|
+
})
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, dir, ...props }) {
|
|
109
|
+
const { isMobile, sidebarId, state, openMobile, setOpenMobile } = useSidebar();
|
|
110
|
+
if (collapsible === "none") return /* @__PURE__ */ jsx("div", {
|
|
111
|
+
id: sidebarId,
|
|
112
|
+
"data-slot": "sidebar",
|
|
113
|
+
className: cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground", className),
|
|
114
|
+
...props,
|
|
115
|
+
children
|
|
116
|
+
});
|
|
117
|
+
if (isMobile) return /* @__PURE__ */ jsx(Sheet, {
|
|
118
|
+
open: openMobile,
|
|
119
|
+
onOpenChange: setOpenMobile,
|
|
120
|
+
...props,
|
|
121
|
+
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
122
|
+
id: sidebarId,
|
|
123
|
+
dir,
|
|
124
|
+
"data-sidebar": "sidebar",
|
|
125
|
+
"data-slot": "sidebar",
|
|
126
|
+
"data-mobile": "true",
|
|
127
|
+
className: `w-(--sidebar-width) bg-sidebar pt-[env(safe-area-inset-top)]
|
|
128
|
+
pb-[env(safe-area-inset-bottom)] text-sidebar-foreground [&_[data-sidebar=header]]:pr-12
|
|
129
|
+
[&>[data-slot=sheet-close]]:top-[calc(env(safe-area-inset-top)+0.5rem)]
|
|
130
|
+
[&>[data-slot=sheet-close]]:right-2 [&>[data-slot=sheet-close]]:flex
|
|
131
|
+
[&>[data-slot=sheet-close]]:size-10 [&>[data-slot=sheet-close]]:items-center
|
|
132
|
+
[&>[data-slot=sheet-close]]:justify-center [&>[data-slot=sheet-close]]:rounded-lg
|
|
133
|
+
[&>[data-slot=sheet-close]]:opacity-100 pointer-coarse:[&>[data-slot=sheet-close]]:size-11`,
|
|
134
|
+
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
135
|
+
side,
|
|
136
|
+
children: [/* @__PURE__ */ jsxs(SheetHeader, {
|
|
137
|
+
className: "sr-only",
|
|
138
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }), /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })]
|
|
139
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
140
|
+
className: "flex h-full w-full flex-col",
|
|
141
|
+
children
|
|
142
|
+
})]
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
146
|
+
id: sidebarId,
|
|
147
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
148
|
+
"data-state": state,
|
|
149
|
+
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
150
|
+
"data-variant": variant,
|
|
151
|
+
"data-side": side,
|
|
152
|
+
"data-slot": "sidebar",
|
|
153
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
154
|
+
"data-slot": "sidebar-gap",
|
|
155
|
+
className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
156
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
157
|
+
"data-slot": "sidebar-container",
|
|
158
|
+
"data-side": side,
|
|
159
|
+
className: cn(`fixed inset-y-0 z-10 hidden h-dvh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear
|
|
160
|
+
data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]
|
|
161
|
+
data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]
|
|
162
|
+
motion-reduce:transition-none md:flex`, variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : `group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r
|
|
163
|
+
group-data-[side=right]:border-l`, className),
|
|
164
|
+
...props,
|
|
165
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
166
|
+
"data-sidebar": "sidebar",
|
|
167
|
+
"data-slot": "sidebar-inner",
|
|
168
|
+
className: "flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg\n group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1\n group-data-[variant=floating]:ring-sidebar-border",
|
|
169
|
+
children
|
|
170
|
+
})
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function SidebarTrigger({ className, onClick, ...props }) {
|
|
175
|
+
const { isMobile, open, openMobile, sidebarId, toggleSidebar } = useSidebar();
|
|
176
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
177
|
+
"aria-controls": sidebarId,
|
|
178
|
+
"aria-expanded": isMobile ? openMobile : open,
|
|
179
|
+
"data-sidebar": "trigger",
|
|
180
|
+
"data-slot": "sidebar-trigger",
|
|
181
|
+
variant: "ghost",
|
|
182
|
+
size: "icon-sm",
|
|
183
|
+
className: cn(className),
|
|
184
|
+
onClick: (event) => {
|
|
185
|
+
onClick?.(event);
|
|
186
|
+
toggleSidebar();
|
|
187
|
+
},
|
|
188
|
+
...props,
|
|
189
|
+
children: [/* @__PURE__ */ jsx(PanelLeftIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
190
|
+
className: "sr-only",
|
|
191
|
+
children: "Toggle Sidebar"
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
function SidebarRail({ className, ...props }) {
|
|
196
|
+
const { toggleSidebar } = useSidebar();
|
|
197
|
+
return /* @__PURE__ */ jsx("button", {
|
|
198
|
+
type: "button",
|
|
199
|
+
"data-sidebar": "rail",
|
|
200
|
+
"data-slot": "sidebar-rail",
|
|
201
|
+
"aria-label": "Toggle Sidebar",
|
|
202
|
+
tabIndex: -1,
|
|
203
|
+
onClick: toggleSidebar,
|
|
204
|
+
title: "Toggle Sidebar",
|
|
205
|
+
className: cn(`absolute inset-y-0 z-20 hidden w-4 transition-[transform,background-color] duration-200 ease-linear group-data-[side=left]:-right-4
|
|
206
|
+
group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-px
|
|
207
|
+
hover:after:bg-sidebar-border motion-reduce:transition-none sm:flex ltr:-translate-x-1/2 rtl:translate-x-1/2`, "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", `[[data-side=left][data-state=collapsed]_&]:cursor-e-resize
|
|
208
|
+
[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`, `group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full
|
|
209
|
+
hover:group-data-[collapsible=offcanvas]:bg-sidebar`, "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className),
|
|
210
|
+
...props
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function SidebarInset({ className, ...props }) {
|
|
214
|
+
return /* @__PURE__ */ jsx("main", {
|
|
215
|
+
"data-slot": "sidebar-inset",
|
|
216
|
+
className: cn(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2
|
|
217
|
+
md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl
|
|
218
|
+
md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`, className),
|
|
219
|
+
...props
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
function SidebarInput({ className, ...props }) {
|
|
223
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
224
|
+
"data-slot": "sidebar-input",
|
|
225
|
+
"data-sidebar": "input",
|
|
226
|
+
className: cn("h-8 w-full bg-background shadow-none", className),
|
|
227
|
+
...props
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function SidebarHeader({ className, ...props }) {
|
|
231
|
+
return /* @__PURE__ */ jsx("div", {
|
|
232
|
+
"data-slot": "sidebar-header",
|
|
233
|
+
"data-sidebar": "header",
|
|
234
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
235
|
+
...props
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
function SidebarFooter({ className, ...props }) {
|
|
239
|
+
return /* @__PURE__ */ jsx("div", {
|
|
240
|
+
"data-slot": "sidebar-footer",
|
|
241
|
+
"data-sidebar": "footer",
|
|
242
|
+
className: cn("flex flex-col gap-2 p-2", className),
|
|
243
|
+
...props
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
function SidebarSeparator({ className, ...props }) {
|
|
247
|
+
return /* @__PURE__ */ jsx(Separator, {
|
|
248
|
+
"data-slot": "sidebar-separator",
|
|
249
|
+
"data-sidebar": "separator",
|
|
250
|
+
className: cn("mx-2 w-auto bg-sidebar-border", className),
|
|
251
|
+
...props
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
function SidebarContent({ className, ...props }) {
|
|
255
|
+
return /* @__PURE__ */ jsx("div", {
|
|
256
|
+
"data-slot": "sidebar-content",
|
|
257
|
+
"data-sidebar": "content",
|
|
258
|
+
className: cn("scrollbar-hide flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
259
|
+
...props
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
function SidebarGroup({ className, ...props }) {
|
|
263
|
+
return /* @__PURE__ */ jsx("div", {
|
|
264
|
+
"data-slot": "sidebar-group",
|
|
265
|
+
"data-sidebar": "group",
|
|
266
|
+
className: cn("relative flex w-full min-w-0 flex-col p-2", className),
|
|
267
|
+
...props
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
function SidebarGroupLabel({ className, render, ...props }) {
|
|
271
|
+
return useRender({
|
|
272
|
+
defaultTagName: "div",
|
|
273
|
+
props: mergeProps({ className: cn(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70
|
|
274
|
+
ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear
|
|
275
|
+
group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2
|
|
276
|
+
motion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0`, className) }, props),
|
|
277
|
+
render,
|
|
278
|
+
state: {
|
|
279
|
+
slot: "sidebar-group-label",
|
|
280
|
+
sidebar: "group-label"
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
function SidebarGroupAction({ className, render, ...props }) {
|
|
285
|
+
return useRender({
|
|
286
|
+
defaultTagName: "button",
|
|
287
|
+
props: mergeProps({ className: cn(`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0
|
|
288
|
+
text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform
|
|
289
|
+
group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent
|
|
290
|
+
hover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden
|
|
291
|
+
[&>svg]:size-4 [&>svg]:shrink-0`, className) }, props),
|
|
292
|
+
render,
|
|
293
|
+
state: {
|
|
294
|
+
slot: "sidebar-group-action",
|
|
295
|
+
sidebar: "group-action"
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function SidebarGroupContent({ className, ...props }) {
|
|
300
|
+
return /* @__PURE__ */ jsx("div", {
|
|
301
|
+
"data-slot": "sidebar-group-content",
|
|
302
|
+
"data-sidebar": "group-content",
|
|
303
|
+
className: cn("w-full text-sm", className),
|
|
304
|
+
...props
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
function SidebarMenu({ className, ...props }) {
|
|
308
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
309
|
+
"data-slot": "sidebar-menu",
|
|
310
|
+
"data-sidebar": "menu",
|
|
311
|
+
className: cn("flex w-full min-w-0 flex-col gap-0", className),
|
|
312
|
+
...props
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function SidebarMenuItem({ className, ...props }) {
|
|
316
|
+
return /* @__PURE__ */ jsx("li", {
|
|
317
|
+
"data-slot": "sidebar-menu-item",
|
|
318
|
+
"data-sidebar": "menu-item",
|
|
319
|
+
className: cn("group/menu-item relative", className),
|
|
320
|
+
...props
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
const sidebarMenuButtonVariants = cva(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm
|
|
324
|
+
ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8
|
|
325
|
+
group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent
|
|
326
|
+
hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent
|
|
327
|
+
active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50
|
|
328
|
+
aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent
|
|
329
|
+
data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium
|
|
330
|
+
data-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0
|
|
331
|
+
[&>span:last-child]:truncate`, {
|
|
332
|
+
variants: {
|
|
333
|
+
variant: {
|
|
334
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
335
|
+
outline: "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"
|
|
336
|
+
},
|
|
337
|
+
size: {
|
|
338
|
+
default: "h-8 text-sm",
|
|
339
|
+
sm: "h-7 text-xs",
|
|
340
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
defaultVariants: {
|
|
344
|
+
variant: "default",
|
|
345
|
+
size: "default"
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
function SidebarMenuButton({ render, isActive = false, variant = "default", size = "default", tooltip, className, ...props }) {
|
|
349
|
+
const { isMobile, state } = useSidebar();
|
|
350
|
+
const component = useRender({
|
|
351
|
+
defaultTagName: "button",
|
|
352
|
+
props: mergeProps({ className: cn(sidebarMenuButtonVariants({
|
|
353
|
+
variant,
|
|
354
|
+
size
|
|
355
|
+
}), className) }, props),
|
|
356
|
+
render: !tooltip ? render : /* @__PURE__ */ jsx(TooltipTrigger, { render }),
|
|
357
|
+
state: {
|
|
358
|
+
slot: "sidebar-menu-button",
|
|
359
|
+
sidebar: "menu-button",
|
|
360
|
+
size,
|
|
361
|
+
active: isActive
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
if (!tooltip) return component;
|
|
365
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [component, /* @__PURE__ */ jsx(TooltipContent, {
|
|
366
|
+
side: "right",
|
|
367
|
+
align: "center",
|
|
368
|
+
hidden: state !== "collapsed" || isMobile,
|
|
369
|
+
...typeof tooltip === "string" ? { children: tooltip } : tooltip
|
|
370
|
+
})] });
|
|
371
|
+
}
|
|
372
|
+
function SidebarMenuAction({ className, render, showOnHover = false, ...props }) {
|
|
373
|
+
return useRender({
|
|
374
|
+
defaultTagName: "button",
|
|
375
|
+
props: mergeProps({ className: cn(`absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0
|
|
376
|
+
text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform
|
|
377
|
+
group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground
|
|
378
|
+
peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5
|
|
379
|
+
peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent
|
|
380
|
+
hover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden
|
|
381
|
+
[&>svg]:size-4 [&>svg]:shrink-0`, showOnHover && `group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100
|
|
382
|
+
peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0`, className) }, props),
|
|
383
|
+
render,
|
|
384
|
+
state: {
|
|
385
|
+
slot: "sidebar-menu-action",
|
|
386
|
+
sidebar: "menu-action"
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
function SidebarMenuBadge({ className, ...props }) {
|
|
391
|
+
return /* @__PURE__ */ jsx("div", {
|
|
392
|
+
"data-slot": "sidebar-menu-badge",
|
|
393
|
+
"data-sidebar": "menu-badge",
|
|
394
|
+
className: cn(`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1
|
|
395
|
+
text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden
|
|
396
|
+
peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5
|
|
397
|
+
peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1
|
|
398
|
+
peer-data-active/menu-button:text-sidebar-accent-foreground`, className),
|
|
399
|
+
...props
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
|
|
403
|
+
const id = React$1.useId();
|
|
404
|
+
const width = React$1.useMemo(() => {
|
|
405
|
+
let hash = 0;
|
|
406
|
+
for (const character of id) hash = hash * 31 + character.charCodeAt(0) >>> 0;
|
|
407
|
+
return `${50 + hash % 40}%`;
|
|
408
|
+
}, [id]);
|
|
409
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
410
|
+
"data-slot": "sidebar-menu-skeleton",
|
|
411
|
+
"data-sidebar": "menu-skeleton",
|
|
412
|
+
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
413
|
+
...props,
|
|
414
|
+
children: [showIcon && /* @__PURE__ */ jsx(Skeleton, {
|
|
415
|
+
className: "size-4 rounded-md",
|
|
416
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
417
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
418
|
+
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
419
|
+
"data-sidebar": "menu-skeleton-text",
|
|
420
|
+
style: { "--skeleton-width": width }
|
|
421
|
+
})]
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
function SidebarMenuSub({ className, ...props }) {
|
|
425
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
426
|
+
"data-slot": "sidebar-menu-sub",
|
|
427
|
+
"data-sidebar": "menu-sub",
|
|
428
|
+
className: cn(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5
|
|
429
|
+
group-data-[collapsible=icon]:hidden`, className),
|
|
430
|
+
...props
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
function SidebarMenuSubItem({ className, ...props }) {
|
|
434
|
+
return /* @__PURE__ */ jsx("li", {
|
|
435
|
+
"data-slot": "sidebar-menu-sub-item",
|
|
436
|
+
"data-sidebar": "menu-sub-item",
|
|
437
|
+
className: cn("group/menu-sub-item relative", className),
|
|
438
|
+
...props
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
function SidebarMenuSubButton({ render, size = "md", isActive = false, className, ...props }) {
|
|
442
|
+
return useRender({
|
|
443
|
+
defaultTagName: "a",
|
|
444
|
+
props: mergeProps({ className: cn(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2
|
|
445
|
+
text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden
|
|
446
|
+
hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent
|
|
447
|
+
active:text-sidebar-accent-foreground aria-disabled:pointer-events-none aria-disabled:opacity-50
|
|
448
|
+
data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent
|
|
449
|
+
data-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 [&>span:last-child]:truncate [&>svg]:size-4
|
|
450
|
+
[&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`, className) }, props),
|
|
451
|
+
render,
|
|
452
|
+
state: {
|
|
453
|
+
slot: "sidebar-menu-sub-button",
|
|
454
|
+
sidebar: "menu-sub-button",
|
|
455
|
+
size,
|
|
456
|
+
active: isActive
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
//#endregion
|
|
462
|
+
export { SidebarTrigger as C, SidebarSeparator as S, SidebarMenuSub as _, SidebarGroupAction as a, SidebarProvider as b, SidebarHeader as c, SidebarMenu as d, SidebarMenuAction as f, SidebarMenuSkeleton as g, SidebarMenuItem as h, SidebarGroup as i, SidebarInput as l, SidebarMenuButton as m, SidebarContent as n, SidebarGroupContent as o, SidebarMenuBadge as p, SidebarFooter as r, SidebarGroupLabel as s, Sidebar as t, SidebarInset as u, SidebarMenuSubButton as v, useSidebar as w, SidebarRail as x, SidebarMenuSubItem as y };
|
|
463
|
+
//# sourceMappingURL=sidebar-Cfax0g0_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-Cfax0g0_.js","names":["React","React"],"sources":["../src/lib/use-mobile.ts","../src/components/sidebar.tsx"],"sourcesContent":["import * as React from 'react';\n\nconst MOBILE_BREAKPOINT = 768;\n\nexport function useIsMobile() {\n\t// Default to false on server to avoid hydration mismatch\n\tconst [isMobile, setIsMobile] = React.useState(false);\n\n\tReact.useEffect(() => {\n\t\tconst mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);\n\t\tconst onChange = () => {\n\t\t\tsetIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n\t\t};\n\t\tmql.addEventListener('change', onChange);\n\t\tsetIsMobile(window.innerWidth < MOBILE_BREAKPOINT);\n\t\treturn () => mql.removeEventListener('change', onChange);\n\t}, []);\n\n\treturn isMobile;\n}\n","'use client';\n\nimport * as React from 'react';\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { PanelLeftIcon } from 'lucide-react';\n\nimport { useIsMobile } from '../lib/use-mobile';\nimport { cn } from '../lib/utils';\nimport { Button } from './button';\nimport { Input } from './input';\nimport { Separator } from './separator';\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from './sheet';\nimport { Skeleton } from './skeleton';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar_state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype SidebarContextProps = {\n\tsidebarId: string;\n\tstate: 'expanded' | 'collapsed';\n\topen: boolean;\n\tsetOpen: (open: boolean | ((open: boolean) => boolean)) => void;\n\topenMobile: boolean;\n\tsetOpenMobile: React.Dispatch<React.SetStateAction<boolean>>;\n\tisMobile: boolean;\n\ttoggleSidebar: () => void;\n};\n\nconst SidebarContext = React.createContext<SidebarContextProps | null>(null);\n\nfunction useSidebar() {\n\tconst context = React.useContext(SidebarContext);\n\tif (!context) {\n\t\tthrow new Error('useSidebar must be used within a SidebarProvider.');\n\t}\n\n\treturn context;\n}\n\nfunction SidebarProvider({\n\tdefaultOpen = true,\n\topen: openProp,\n\tonOpenChange: setOpenProp,\n\tclassName,\n\tstyle,\n\tchildren,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tdefaultOpen?: boolean;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n}) {\n\tconst isMobile = useIsMobile();\n\tconst sidebarId = React.useId();\n\tconst [openMobile, setOpenMobile] = React.useState(false);\n\tconst [_open, _setOpen] = React.useState(defaultOpen);\n\tconst open = openProp ?? _open;\n\tconst setOpen = React.useCallback(\n\t\t(value: boolean | ((value: boolean) => boolean)) => {\n\t\t\tconst openState = typeof value === 'function' ? value(open) : value;\n\t\t\tif (setOpenProp) {\n\t\t\t\tsetOpenProp(openState);\n\t\t\t} else {\n\t\t\t\t_setOpen(openState);\n\t\t\t}\n\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t\t[open, setOpenProp],\n\t);\n\n\tconst toggleSidebar = React.useCallback(() => {\n\t\treturn isMobile ? setOpenMobile((currentOpen) => !currentOpen) : setOpen((currentOpen) => !currentOpen);\n\t}, [isMobile, setOpen]);\n\n\tReact.useEffect(() => {\n\t\tconst handleKeyDown = (event: KeyboardEvent) => {\n\t\t\tif (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\ttoggleSidebar();\n\t\t\t}\n\t\t};\n\n\t\twindow.addEventListener('keydown', handleKeyDown);\n\t\treturn () => window.removeEventListener('keydown', handleKeyDown);\n\t}, [toggleSidebar]);\n\n\tconst state = open ? 'expanded' : 'collapsed';\n\tconst contextValue = React.useMemo<SidebarContextProps>(\n\t\t() => ({\n\t\t\tsidebarId,\n\t\t\tstate,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\tisMobile,\n\t\t\topenMobile,\n\t\t\tsetOpenMobile,\n\t\t\ttoggleSidebar,\n\t\t}),\n\t\t[sidebarId, state, open, setOpen, isMobile, openMobile, toggleSidebar],\n\t);\n\n\treturn (\n\t\t<SidebarContext.Provider value={contextValue}>\n\t\t\t<TooltipProvider delay={0}>\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='sidebar-wrapper'\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH,\n\t\t\t\t\t\t\t'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n\t\t\t\t\t\t\t...style,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tclassName={cn('group/sidebar-wrapper flex min-h-dvh w-full has-data-[variant=inset]:bg-sidebar', className)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</TooltipProvider>\n\t\t</SidebarContext.Provider>\n\t);\n}\n\nfunction Sidebar({\n\tside = 'left',\n\tvariant = 'sidebar',\n\tcollapsible = 'offcanvas',\n\tclassName,\n\tchildren,\n\tdir,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tside?: 'left' | 'right';\n\tvariant?: 'sidebar' | 'floating' | 'inset';\n\tcollapsible?: 'offcanvas' | 'icon' | 'none';\n}) {\n\tconst { isMobile, sidebarId, state, openMobile, setOpenMobile } = useSidebar();\n\n\tif (collapsible === 'none') {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tid={sidebarId}\n\t\t\t\tdata-slot='sidebar'\n\t\t\t\tclassName={cn('flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground', className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (isMobile) {\n\t\treturn (\n\t\t\t<Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n\t\t\t\t<SheetContent\n\t\t\t\t\tid={sidebarId}\n\t\t\t\t\tdir={dir}\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar'\n\t\t\t\t\tdata-mobile='true'\n\t\t\t\t\tclassName={`w-(--sidebar-width) bg-sidebar pt-[env(safe-area-inset-top)]\n\t\t\t\t\t\tpb-[env(safe-area-inset-bottom)] text-sidebar-foreground [&_[data-sidebar=header]]:pr-12\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:top-[calc(env(safe-area-inset-top)+0.5rem)]\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:right-2 [&>[data-slot=sheet-close]]:flex\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:size-10 [&>[data-slot=sheet-close]]:items-center\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:justify-center [&>[data-slot=sheet-close]]:rounded-lg\n\t\t\t\t\t\t[&>[data-slot=sheet-close]]:opacity-100 pointer-coarse:[&>[data-slot=sheet-close]]:size-11`}\n\t\t\t\t\tstyle={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t'--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n\t\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t\t}\n\t\t\t\t\tside={side}\n\t\t\t\t>\n\t\t\t\t\t<SheetHeader className='sr-only'>\n\t\t\t\t\t\t<SheetTitle>Sidebar</SheetTitle>\n\t\t\t\t\t\t<SheetDescription>Displays the mobile sidebar.</SheetDescription>\n\t\t\t\t\t</SheetHeader>\n\t\t\t\t\t<div className='flex h-full w-full flex-col'>{children}</div>\n\t\t\t\t</SheetContent>\n\t\t\t</Sheet>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tid={sidebarId}\n\t\t\tclassName='group peer hidden text-sidebar-foreground md:block'\n\t\t\tdata-state={state}\n\t\t\tdata-collapsible={state === 'collapsed' ? collapsible : ''}\n\t\t\tdata-variant={variant}\n\t\t\tdata-side={side}\n\t\t\tdata-slot='sidebar'\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-gap'\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear motion-reduce:transition-none',\n\t\t\t\t\t'group-data-[collapsible=offcanvas]:w-0',\n\t\t\t\t\t'group-data-[side=right]:rotate-180',\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n\t\t\t\t\t\t: 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',\n\t\t\t\t)}\n\t\t\t/>\n\t\t\t<div\n\t\t\t\tdata-slot='sidebar-container'\n\t\t\t\tdata-side={side}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`fixed inset-y-0 z-10 hidden h-dvh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear\n\t\t\t\t\tdata-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tdata-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\n\t\t\t\t\tmotion-reduce:transition-none md:flex`,\n\t\t\t\t\tvariant === 'floating' || variant === 'inset'\n\t\t\t\t\t\t? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n\t\t\t\t\t\t: `group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r\n\t\t\t\t\t\t\tgroup-data-[side=right]:border-l`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tdata-sidebar='sidebar'\n\t\t\t\t\tdata-slot='sidebar-inner'\n\t\t\t\t\tclassName='flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg\n\t\t\t\t\t\tgroup-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1\n\t\t\t\t\t\tgroup-data-[variant=floating]:ring-sidebar-border'\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nfunction SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>) {\n\tconst { isMobile, open, openMobile, sidebarId, toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<Button\n\t\t\taria-controls={sidebarId}\n\t\t\taria-expanded={isMobile ? openMobile : open}\n\t\t\tdata-sidebar='trigger'\n\t\t\tdata-slot='sidebar-trigger'\n\t\t\tvariant='ghost'\n\t\t\tsize='icon-sm'\n\t\t\tclassName={cn(className)}\n\t\t\tonClick={(event) => {\n\t\t\t\tonClick?.(event);\n\t\t\t\ttoggleSidebar();\n\t\t\t}}\n\t\t\t{...props}\n\t\t>\n\t\t\t<PanelLeftIcon />\n\t\t\t<span className='sr-only'>Toggle Sidebar</span>\n\t\t</Button>\n\t);\n}\n\nfunction SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {\n\tconst { toggleSidebar } = useSidebar();\n\n\treturn (\n\t\t<button\n\t\t\ttype='button'\n\t\t\tdata-sidebar='rail'\n\t\t\tdata-slot='sidebar-rail'\n\t\t\taria-label='Toggle Sidebar'\n\t\t\ttabIndex={-1}\n\t\t\tonClick={toggleSidebar}\n\t\t\ttitle='Toggle Sidebar'\n\t\t\tclassName={cn(\n\t\t\t\t`absolute inset-y-0 z-20 hidden w-4 transition-[transform,background-color] duration-200 ease-linear group-data-[side=left]:-right-4\n\t\t\t\tgroup-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-px\n\t\t\t\thover:after:bg-sidebar-border motion-reduce:transition-none sm:flex ltr:-translate-x-1/2 rtl:translate-x-1/2`,\n\t\t\t\t'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',\n\t\t\t\t`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize\n\t\t\t\t[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,\n\t\t\t\t`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full\n\t\t\t\thover:group-data-[collapsible=offcanvas]:bg-sidebar`,\n\t\t\t\t'[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',\n\t\t\t\t'[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {\n\treturn (\n\t\t<main\n\t\t\tdata-slot='sidebar-inset'\n\t\t\tclassName={cn(\n\t\t\t\t`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2\n\t\t\t\tmd:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl\n\t\t\t\tmd:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {\n\treturn (\n\t\t<Input\n\t\t\tdata-slot='sidebar-input'\n\t\t\tdata-sidebar='input'\n\t\t\tclassName={cn('h-8 w-full bg-background shadow-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-header'\n\t\t\tdata-sidebar='header'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-footer'\n\t\t\tdata-sidebar='footer'\n\t\t\tclassName={cn('flex flex-col gap-2 p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {\n\treturn (\n\t\t<Separator\n\t\t\tdata-slot='sidebar-separator'\n\t\t\tdata-sidebar='separator'\n\t\t\tclassName={cn('mx-2 w-auto bg-sidebar-border', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-content'\n\t\t\tdata-sidebar='content'\n\t\t\tclassName={cn(\n\t\t\t\t'scrollbar-hide flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group'\n\t\t\tdata-sidebar='group'\n\t\t\tclassName={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarGroupLabel({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'div'> & React.ComponentProps<'div'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'div',\n\t\tprops: mergeProps<'div'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70\n\t\t\t\t\tring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear\n\t\t\t\t\tgroup-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2\n\t\t\t\t\tmotion-reduce:transition-none [&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-label',\n\t\t\tsidebar: 'group-label',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupAction({\n\tclassName,\n\trender,\n\t...props\n}: useRender.ComponentProps<'button'> & React.ComponentProps<'button'>) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-group-action',\n\t\t\tsidebar: 'group-action',\n\t\t},\n\t});\n}\n\nfunction SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-group-content'\n\t\t\tdata-sidebar='group-content'\n\t\t\tclassName={cn('w-full text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu'\n\t\t\tdata-sidebar='menu'\n\t\t\tclassName={cn('flex w-full min-w-0 flex-col gap-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-item'\n\t\t\tdata-sidebar='menu-item'\n\t\t\tclassName={cn('group/menu-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nconst sidebarMenuButtonVariants = cva(\n\t`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm\n\tring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8\n\tgroup-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent\n\thover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\tactive:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50\n\taria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent\n\tdata-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium\n\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 motion-reduce:transition-none [&_svg]:size-4 [&_svg]:shrink-0\n\t[&>span:last-child]:truncate`,\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n\t\t\t\toutline:\n\t\t\t\t\t'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: 'h-8 text-sm',\n\t\t\t\tsm: 'h-7 text-xs',\n\t\t\t\tlg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: 'default',\n\t\t\tsize: 'default',\n\t\t},\n\t},\n);\n\nfunction SidebarMenuButton({\n\trender,\n\tisActive = false,\n\tvariant = 'default',\n\tsize = 'default',\n\ttooltip,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tisActive?: boolean;\n\t\ttooltip?: string | React.ComponentProps<typeof TooltipContent>;\n\t} & VariantProps<typeof sidebarMenuButtonVariants>) {\n\tconst { isMobile, state } = useSidebar();\n\tconst component = useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(sidebarMenuButtonVariants({ variant, size }), className),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender: !tooltip ? render : <TooltipTrigger render={render} />,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-button',\n\t\t\tsidebar: 'menu-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n\n\tif (!tooltip) {\n\t\treturn component;\n\t}\n\n\tconst tooltipProps = typeof tooltip === 'string' ? { children: tooltip } : tooltip;\n\n\treturn (\n\t\t<Tooltip>\n\t\t\t{component}\n\t\t\t<TooltipContent side='right' align='center' hidden={state !== 'collapsed' || isMobile} {...tooltipProps} />\n\t\t</Tooltip>\n\t);\n}\n\nfunction SidebarMenuAction({\n\tclassName,\n\trender,\n\tshowOnHover = false,\n\t...props\n}: useRender.ComponentProps<'button'> &\n\tReact.ComponentProps<'button'> & {\n\t\tshowOnHover?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'button',\n\t\tprops: mergeProps<'button'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform\n\t\t\t\t\tgroup-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground\n\t\t\t\t\tpeer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5\n\t\t\t\t\tpeer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent\n\t\t\t\t\thover:text-sidebar-accent-foreground focus-visible:ring-2 motion-reduce:transition-none md:after:hidden\n\t\t\t\t\t[&>svg]:size-4 [&>svg]:shrink-0`,\n\t\t\t\t\tshowOnHover &&\n\t\t\t\t\t\t`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100\n\t\t\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-action',\n\t\t\tsidebar: 'menu-action',\n\t\t},\n\t});\n}\n\nfunction SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-badge'\n\t\t\tdata-sidebar='menu-badge'\n\t\t\tclassName={cn(\n\t\t\t\t`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1\n\t\t\t\ttext-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden\n\t\t\t\tpeer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5\n\t\t\t\tpeer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1\n\t\t\t\tpeer-data-active/menu-button:text-sidebar-accent-foreground`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSkeleton({\n\tclassName,\n\tshowIcon = false,\n\t...props\n}: React.ComponentProps<'div'> & {\n\tshowIcon?: boolean;\n}) {\n\tconst id = React.useId();\n\tconst width = React.useMemo(() => {\n\t\tlet hash = 0;\n\t\tfor (const character of id) {\n\t\t\thash = (hash * 31 + character.charCodeAt(0)) >>> 0;\n\t\t}\n\t\treturn `${50 + (hash % 40)}%`;\n\t}, [id]);\n\n\treturn (\n\t\t<div\n\t\t\tdata-slot='sidebar-menu-skeleton'\n\t\t\tdata-sidebar='menu-skeleton'\n\t\t\tclassName={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{showIcon && <Skeleton className='size-4 rounded-md' data-sidebar='menu-skeleton-icon' />}\n\t\t\t<Skeleton\n\t\t\t\tclassName='h-4 max-w-(--skeleton-width) flex-1'\n\t\t\t\tdata-sidebar='menu-skeleton-text'\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t'--skeleton-width': width,\n\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>) {\n\treturn (\n\t\t<ul\n\t\t\tdata-slot='sidebar-menu-sub'\n\t\t\tdata-sidebar='menu-sub'\n\t\t\tclassName={cn(\n\t\t\t\t`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\n\t\t\t\tgroup-data-[collapsible=icon]:hidden`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>) {\n\treturn (\n\t\t<li\n\t\t\tdata-slot='sidebar-menu-sub-item'\n\t\t\tdata-sidebar='menu-sub-item'\n\t\t\tclassName={cn('group/menu-sub-item relative', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction SidebarMenuSubButton({\n\trender,\n\tsize = 'md',\n\tisActive = false,\n\tclassName,\n\t...props\n}: useRender.ComponentProps<'a'> &\n\tReact.ComponentProps<'a'> & {\n\t\tsize?: 'sm' | 'md';\n\t\tisActive?: boolean;\n\t}) {\n\treturn useRender({\n\t\tdefaultTagName: 'a',\n\t\tprops: mergeProps<'a'>(\n\t\t\t{\n\t\t\t\tclassName: cn(\n\t\t\t\t\t`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2\n\t\t\t\t\ttext-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden\n\t\t\t\t\thover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent\n\t\t\t\t\tactive:text-sidebar-accent-foreground aria-disabled:pointer-events-none aria-disabled:opacity-50\n\t\t\t\t\tdata-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent\n\t\t\t\t\tdata-active:text-sidebar-accent-foreground pointer-coarse:min-h-11 [&>span:last-child]:truncate [&>svg]:size-4\n\t\t\t\t\t[&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tprops,\n\t\t),\n\t\trender,\n\t\tstate: {\n\t\t\tslot: 'sidebar-menu-sub-button',\n\t\t\tsidebar: 'menu-sub-button',\n\t\t\tsize,\n\t\t\tactive: isActive,\n\t\t},\n\t});\n}\n\nexport {\n\tSidebar,\n\tSidebarContent,\n\tSidebarFooter,\n\tSidebarGroup,\n\tSidebarGroupAction,\n\tSidebarGroupContent,\n\tSidebarGroupLabel,\n\tSidebarHeader,\n\tSidebarInput,\n\tSidebarInset,\n\tSidebarMenu,\n\tSidebarMenuAction,\n\tSidebarMenuBadge,\n\tSidebarMenuButton,\n\tSidebarMenuItem,\n\tSidebarMenuSkeleton,\n\tSidebarMenuSub,\n\tSidebarMenuSubButton,\n\tSidebarMenuSubItem,\n\tSidebarProvider,\n\tSidebarRail,\n\tSidebarSeparator,\n\tSidebarTrigger,\n\tuseSidebar,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAM,oBAAoB;AAE1B,SAAgB,cAAc;CAE7B,MAAM,CAAC,UA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