@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
|
@@ -1,140 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
1
|
+
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _constructive_io_ui_portal = require("@constructive-io/ui/portal");
|
|
10
|
+
let vaul = require("vaul");
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
if (e && e.__esModule) return e;
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return e[k]; }
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
|
-
|
|
31
|
-
function cn(...inputs) {
|
|
32
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
33
|
-
}
|
|
12
|
+
//#region src/components/drawer.tsx
|
|
34
13
|
function Drawer({ ...props }) {
|
|
35
|
-
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Root, {
|
|
15
|
+
"data-slot": "drawer",
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
36
18
|
}
|
|
37
19
|
function DrawerTrigger({ ...props }) {
|
|
38
|
-
|
|
20
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Trigger, {
|
|
21
|
+
"data-slot": "drawer-trigger",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
39
24
|
}
|
|
40
25
|
function DrawerPortal({ container: containerProp, ...props }) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
const rootContainer = (0, _constructive_io_ui_portal.useRootPortalContainer)();
|
|
27
|
+
const container = containerProp === void 0 ? rootContainer ?? void 0 : containerProp;
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Portal, {
|
|
29
|
+
"data-slot": "drawer-portal",
|
|
30
|
+
container,
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
44
33
|
}
|
|
45
34
|
function DrawerClose({ ...props }) {
|
|
46
|
-
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Close, {
|
|
36
|
+
"data-slot": "drawer-close",
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
47
39
|
}
|
|
48
40
|
function DrawerOverlay({ className, ...props }) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"data-slot": "drawer-overlay",
|
|
53
|
-
className: cn(
|
|
54
|
-
`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Overlay, {
|
|
42
|
+
"data-slot": "drawer-overlay",
|
|
43
|
+
className: require_utils.cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
|
|
55
44
|
data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]
|
|
56
|
-
motion-reduce:animate-none`,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
...props
|
|
60
|
-
}
|
|
61
|
-
);
|
|
45
|
+
motion-reduce:animate-none`, className),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
62
48
|
}
|
|
63
49
|
function DrawerContent({ className, children, ...props }) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
vaul.Drawer.Content,
|
|
69
|
-
{
|
|
70
|
-
"data-slot": "drawer-content",
|
|
71
|
-
className: cn(
|
|
72
|
-
"group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col",
|
|
73
|
-
`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
|
|
50
|
+
const [floatingContainer, setFloatingContainer] = react.useState(null);
|
|
51
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DrawerPortal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DrawerOverlay, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(vaul.Drawer.Content, {
|
|
52
|
+
"data-slot": "drawer-content",
|
|
53
|
+
className: require_utils.cn("group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col", `data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
|
|
74
54
|
data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]
|
|
75
|
-
data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,
|
|
76
|
-
`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
|
|
55
|
+
data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
|
|
77
56
|
data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]
|
|
78
|
-
data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,
|
|
79
|
-
|
|
80
|
-
data-[vaul-drawer-direction=right]:border-l`,
|
|
81
|
-
`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
|
|
57
|
+
data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
|
|
58
|
+
data-[vaul-drawer-direction=right]:border-l`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
|
|
82
59
|
data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r
|
|
83
|
-
data-[vaul-drawer-direction=left]:sm:max-w-sm`,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
] });
|
|
60
|
+
data-[vaul-drawer-direction=left]:sm:max-w-sm`, className),
|
|
61
|
+
...props,
|
|
62
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
63
|
+
ref: setFloatingContainer,
|
|
64
|
+
"data-slot": "drawer-floating-portal",
|
|
65
|
+
className: "contents",
|
|
66
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, {
|
|
67
|
+
floatingContainer,
|
|
68
|
+
floatingZIndex: "elevated",
|
|
69
|
+
children
|
|
70
|
+
})
|
|
71
|
+
})]
|
|
72
|
+
})] });
|
|
99
73
|
}
|
|
100
74
|
function DrawerHeader({ className, ...props }) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,
|
|
108
|
-
className
|
|
109
|
-
),
|
|
110
|
-
...props
|
|
111
|
-
}
|
|
112
|
-
);
|
|
75
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
76
|
+
"data-slot": "drawer-header",
|
|
77
|
+
className: require_utils.cn(`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
|
|
78
|
+
group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`, className),
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
113
81
|
}
|
|
114
82
|
function DrawerFooter({ className, ...props }) {
|
|
115
|
-
|
|
83
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
84
|
+
"data-slot": "drawer-footer",
|
|
85
|
+
className: require_utils.cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
86
|
+
...props
|
|
87
|
+
});
|
|
116
88
|
}
|
|
117
89
|
function DrawerTitle({ className, ...props }) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
...props
|
|
124
|
-
}
|
|
125
|
-
);
|
|
90
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Title, {
|
|
91
|
+
"data-slot": "drawer-title",
|
|
92
|
+
className: require_utils.cn("text-foreground font-semibold", className),
|
|
93
|
+
...props
|
|
94
|
+
});
|
|
126
95
|
}
|
|
127
96
|
function DrawerDescription({ className, ...props }) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
...props
|
|
134
|
-
}
|
|
135
|
-
);
|
|
97
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(vaul.Drawer.Description, {
|
|
98
|
+
"data-slot": "drawer-description",
|
|
99
|
+
className: require_utils.cn("text-muted-foreground text-sm", className),
|
|
100
|
+
...props
|
|
101
|
+
});
|
|
136
102
|
}
|
|
137
103
|
|
|
104
|
+
//#endregion
|
|
138
105
|
exports.Drawer = Drawer;
|
|
139
106
|
exports.DrawerClose = DrawerClose;
|
|
140
107
|
exports.DrawerContent = DrawerContent;
|
|
@@ -145,5 +112,4 @@ exports.DrawerOverlay = DrawerOverlay;
|
|
|
145
112
|
exports.DrawerPortal = DrawerPortal;
|
|
146
113
|
exports.DrawerTitle = DrawerTitle;
|
|
147
114
|
exports.DrawerTrigger = DrawerTrigger;
|
|
148
|
-
//# sourceMappingURL=drawer.cjs.map
|
|
149
115
|
//# sourceMappingURL=drawer.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"drawer.cjs","names":["DrawerPrimitive","cn","React","ModalPortalScope"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:border-l`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\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\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents'>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,\n\tDrawerOverlay,\n\tDrawerTrigger,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerHeader,\n\tDrawerFooter,\n\tDrawerTitle,\n\tDrawerDescription,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;CAChF,OAAO,2CAACA,YAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ;AAC7D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CAC1F,OAAO,2CAACA,YAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ;AACxE;AAEA,SAAS,aAAa,EAAE,WAAW,eAAe,GAAG,SAA8D;CAClH,MAAM,uEAAuC;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAC/E,OAAO,2CAACA,YAAgB,QAAjB;EAAwB,aAAU;EAA2B;EAAW,GAAI;CAAQ;AAC5F;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CACtF,OAAO,2CAACA,YAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;CAAQ;AACpE;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA+D;CACrG,OACC,2CAACA,YAAgB,SAAjB;EACC,aAAU;EACV,WAAWC,iBACV;;iCAGA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,cAAc,EAAE,WAAW,UAAU,GAAG,SAA+D;CAC/G,MAAM,CAAC,mBAAmB,wBAAwBC,MAAM,SAAgC,IAAI;CAE5F,OACC,4CAAC,cAAD,aACC,2CAAC,eAAD,CAAgB,IAChB,4CAACF,YAAgB,SAAjB;EACC,aAAU;EACV,WAAWC,iBACV,kGACA;;+FAGA;;qGAGA;mDAEA;;qDAGA,SACD;EACA,GAAI;YAjBL,CAmBC,2CAAC,OAAD,EACC,WAAU,yIAEV,IACD,2CAAC,OAAD;GAAK,KAAK;GAAsB,aAAU;GAAyB,WAAU;aAC5E,2CAACE,6CAAD;IAAqC;IAAmB,gBAAe;IACrE;GACgB;EACd,EACmB;GACZ;AAEhB;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWF,iBACV;gGAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAgB,WAAWA,iBAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ;AAChH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,2CAACD,YAAgB,OAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAmE;CAC7G,OACC,2CAACD,YAAgB,aAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Drawer as Drawer$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
5
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): React.JSX.Element;
|
|
6
|
-
declare function DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof Drawer$1.Portal>): React.JSX.Element;
|
|
7
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): React.JSX.Element;
|
|
8
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): React.JSX.Element;
|
|
9
|
-
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): React.JSX.Element;
|
|
10
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
11
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): React.JSX.Element;
|
|
13
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): React.JSX.Element;
|
|
14
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
3
|
+
//#region src/components/drawer.d.ts
|
|
4
|
+
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): React$1.JSX.Element;
|
|
5
|
+
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): React$1.JSX.Element;
|
|
6
|
+
declare function DrawerPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): React$1.JSX.Element;
|
|
7
|
+
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): React$1.JSX.Element;
|
|
8
|
+
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): React$1.JSX.Element;
|
|
9
|
+
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): React$1.JSX.Element;
|
|
10
|
+
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
11
|
+
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
12
|
+
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): React$1.JSX.Element;
|
|
13
|
+
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): React$1.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
15
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
16
|
+
//# sourceMappingURL=drawer.d.cts.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Drawer as Drawer$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
5
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof Drawer$1.Trigger>): React.JSX.Element;
|
|
6
|
-
declare function DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof Drawer$1.Portal>): React.JSX.Element;
|
|
7
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof Drawer$1.Close>): React.JSX.Element;
|
|
8
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Drawer$1.Overlay>): React.JSX.Element;
|
|
9
|
-
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): React.JSX.Element;
|
|
10
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
11
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): React.JSX.Element;
|
|
13
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): React.JSX.Element;
|
|
14
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
3
|
+
//#region src/components/drawer.d.ts
|
|
4
|
+
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): React$1.JSX.Element;
|
|
5
|
+
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): React$1.JSX.Element;
|
|
6
|
+
declare function DrawerPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): React$1.JSX.Element;
|
|
7
|
+
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): React$1.JSX.Element;
|
|
8
|
+
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): React$1.JSX.Element;
|
|
9
|
+
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): React$1.JSX.Element;
|
|
10
|
+
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
11
|
+
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
12
|
+
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): React$1.JSX.Element;
|
|
13
|
+
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): React$1.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
15
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
16
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1,118 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
4
|
-
import { useRootPortalContainer, ModalPortalScope } from '@constructive-io/ui/portal';
|
|
5
|
-
import { clsx } from 'clsx';
|
|
6
|
-
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { ModalPortalScope, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
7
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
8
|
+
|
|
9
|
+
//#region src/components/drawer.tsx
|
|
12
10
|
function Drawer({ ...props }) {
|
|
13
|
-
|
|
11
|
+
return /* @__PURE__ */ jsx(Drawer$1.Root, {
|
|
12
|
+
"data-slot": "drawer",
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
}
|
|
15
16
|
function DrawerTrigger({ ...props }) {
|
|
16
|
-
|
|
17
|
+
return /* @__PURE__ */ jsx(Drawer$1.Trigger, {
|
|
18
|
+
"data-slot": "drawer-trigger",
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
17
21
|
}
|
|
18
22
|
function DrawerPortal({ container: containerProp, ...props }) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
const rootContainer = useRootPortalContainer();
|
|
24
|
+
const container = containerProp === void 0 ? rootContainer ?? void 0 : containerProp;
|
|
25
|
+
return /* @__PURE__ */ jsx(Drawer$1.Portal, {
|
|
26
|
+
"data-slot": "drawer-portal",
|
|
27
|
+
container,
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
22
30
|
}
|
|
23
31
|
function DrawerClose({ ...props }) {
|
|
24
|
-
|
|
32
|
+
return /* @__PURE__ */ jsx(Drawer$1.Close, {
|
|
33
|
+
"data-slot": "drawer-close",
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
25
36
|
}
|
|
26
37
|
function DrawerOverlay({ className, ...props }) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"data-slot": "drawer-overlay",
|
|
31
|
-
className: cn(
|
|
32
|
-
`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
|
|
38
|
+
return /* @__PURE__ */ jsx(Drawer$1.Overlay, {
|
|
39
|
+
"data-slot": "drawer-overlay",
|
|
40
|
+
className: cn(`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50
|
|
33
41
|
data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]
|
|
34
|
-
motion-reduce:animate-none`,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...props
|
|
38
|
-
}
|
|
39
|
-
);
|
|
42
|
+
motion-reduce:animate-none`, className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
40
45
|
}
|
|
41
46
|
function DrawerContent({ className, children, ...props }) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Drawer$1.Content,
|
|
47
|
-
{
|
|
48
|
-
"data-slot": "drawer-content",
|
|
49
|
-
className: cn(
|
|
50
|
-
"group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col",
|
|
51
|
-
`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
|
|
47
|
+
const [floatingContainer, setFloatingContainer] = React$1.useState(null);
|
|
48
|
+
return /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
|
|
49
|
+
"data-slot": "drawer-content",
|
|
50
|
+
className: cn("group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col", `data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0
|
|
52
51
|
data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]
|
|
53
|
-
data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,
|
|
54
|
-
`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
|
|
52
|
+
data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`, `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0
|
|
55
53
|
data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]
|
|
56
|
-
data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,
|
|
57
|
-
|
|
58
|
-
data-[vaul-drawer-direction=right]:border-l`,
|
|
59
|
-
`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
|
|
54
|
+
data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`, `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0
|
|
55
|
+
data-[vaul-drawer-direction=right]:border-l`, `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0
|
|
60
56
|
data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r
|
|
61
|
-
data-[vaul-drawer-direction=left]:sm:max-w-sm`,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
] });
|
|
57
|
+
data-[vaul-drawer-direction=left]:sm:max-w-sm`, className),
|
|
58
|
+
...props,
|
|
59
|
+
children: [/* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), /* @__PURE__ */ jsx("div", {
|
|
60
|
+
ref: setFloatingContainer,
|
|
61
|
+
"data-slot": "drawer-floating-portal",
|
|
62
|
+
className: "contents",
|
|
63
|
+
children: /* @__PURE__ */ jsx(ModalPortalScope, {
|
|
64
|
+
floatingContainer,
|
|
65
|
+
floatingZIndex: "elevated",
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
})] });
|
|
77
70
|
}
|
|
78
71
|
function DrawerHeader({ className, ...props }) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,
|
|
86
|
-
className
|
|
87
|
-
),
|
|
88
|
-
...props
|
|
89
|
-
}
|
|
90
|
-
);
|
|
72
|
+
return /* @__PURE__ */ jsx("div", {
|
|
73
|
+
"data-slot": "drawer-header",
|
|
74
|
+
className: cn(`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center
|
|
75
|
+
group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`, className),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
91
78
|
}
|
|
92
79
|
function DrawerFooter({ className, ...props }) {
|
|
93
|
-
|
|
80
|
+
return /* @__PURE__ */ jsx("div", {
|
|
81
|
+
"data-slot": "drawer-footer",
|
|
82
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
94
85
|
}
|
|
95
86
|
function DrawerTitle({ className, ...props }) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
...props
|
|
102
|
-
}
|
|
103
|
-
);
|
|
87
|
+
return /* @__PURE__ */ jsx(Drawer$1.Title, {
|
|
88
|
+
"data-slot": "drawer-title",
|
|
89
|
+
className: cn("text-foreground font-semibold", className),
|
|
90
|
+
...props
|
|
91
|
+
});
|
|
104
92
|
}
|
|
105
93
|
function DrawerDescription({ className, ...props }) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
...props
|
|
112
|
-
}
|
|
113
|
-
);
|
|
94
|
+
return /* @__PURE__ */ jsx(Drawer$1.Description, {
|
|
95
|
+
"data-slot": "drawer-description",
|
|
96
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
114
99
|
}
|
|
115
100
|
|
|
101
|
+
//#endregion
|
|
116
102
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
117
|
-
//# sourceMappingURL=drawer.js.map
|
|
118
103
|
//# sourceMappingURL=drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"drawer.js","names":["DrawerPrimitive","React"],"sources":["../../src/components/drawer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {\n\treturn <DrawerPrimitive.Root data-slot=\"drawer\" {...props} />;\n}\n\nfunction DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {\n\treturn <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\nfunction DrawerPortal({ container: containerProp, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\treturn <DrawerPrimitive.Portal data-slot=\"drawer-portal\" container={container} {...props} />;\n}\n\nfunction DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {\n\treturn <DrawerPrimitive.Close data-slot=\"drawer-close\" {...props} />;\n}\n\nfunction DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {\n\treturn (\n\t\t<DrawerPrimitive.Overlay\n\t\t\tdata-slot=\"drawer-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t`fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/50\n\t\t\t\tdata-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in]\n\t\t\t\tmotion-reduce:animate-none`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>) {\n\tconst [floatingContainer, setFloatingContainer] = React.useState<HTMLDivElement | null>(null);\n\n\treturn (\n\t\t<DrawerPortal>\n\t\t\t<DrawerOverlay />\n\t\t\t<DrawerPrimitive.Content\n\t\t\t\tdata-slot=\"drawer-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/drawer-content bg-background fixed z-[var(--z-layer-modal-content)] flex h-auto flex-col',\n\t\t\t\t\t`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,\n\t\t\t\t\t`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh]\n\t\t\t\t\tdata-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,\n\t\t\t\t\t`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0\n\t\t\t\t\tdata-[vaul-drawer-direction=right]:border-l`,\n\t\t\t\t\t`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r\n\t\t\t\t\tdata-[vaul-drawer-direction=left]:sm:max-w-sm`,\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\tclassName='bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full\n\t\t\t\t\t\tgroup-data-[vaul-drawer-direction=bottom]/drawer-content:block'\n\t\t\t\t/>\n\t\t\t\t<div ref={setFloatingContainer} data-slot='drawer-floating-portal' className='contents'>\n\t\t\t\t\t<ModalPortalScope floatingContainer={floatingContainer} floatingZIndex='elevated'>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</ModalPortalScope>\n\t\t\t\t</div>\n\t\t\t</DrawerPrimitive.Content>\n\t\t</DrawerPortal>\n\t);\n}\n\nfunction DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"drawer-header\"\n\t\t\tclassName={cn(\n\t\t\t\t`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center\n\t\t\t\tgroup-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"drawer-footer\" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;\n}\n\nfunction DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {\n\treturn (\n\t\t<DrawerPrimitive.Title\n\t\t\tdata-slot=\"drawer-title\"\n\t\t\tclassName={cn('text-foreground font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>) {\n\treturn (\n\t\t<DrawerPrimitive.Description\n\t\t\tdata-slot=\"drawer-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tDrawer,\n\tDrawerPortal,\n\tDrawerOverlay,\n\tDrawerTrigger,\n\tDrawerClose,\n\tDrawerContent,\n\tDrawerHeader,\n\tDrawerFooter,\n\tDrawerTitle,\n\tDrawerDescription,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,OAAO,EAAE,GAAG,SAA4D;CAChF,OAAO,oBAACA,SAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ;AAC7D;AAEA,SAAS,cAAc,EAAE,GAAG,SAA+D;CAC1F,OAAO,oBAACA,SAAgB,SAAjB;EAAyB,aAAU;EAAiB,GAAI;CAAQ;AACxE;AAEA,SAAS,aAAa,EAAE,WAAW,eAAe,GAAG,SAA8D;CAClH,MAAM,gBAAgB,uBAAuB;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAC/E,OAAO,oBAACA,SAAgB,QAAjB;EAAwB,aAAU;EAA2B;EAAW,GAAI;CAAQ;AAC5F;AAEA,SAAS,YAAY,EAAE,GAAG,SAA6D;CACtF,OAAO,oBAACA,SAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;CAAQ;AACpE;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA+D;CACrG,OACC,oBAACA,SAAgB,SAAjB;EACC,aAAU;EACV,WAAW,GACV;;iCAGA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,cAAc,EAAE,WAAW,UAAU,GAAG,SAA+D;CAC/G,MAAM,CAAC,mBAAmB,wBAAwBC,QAAM,SAAgC,IAAI;CAE5F,OACC,qBAAC,cAAD,aACC,oBAAC,eAAD,CAAgB,IAChB,qBAACD,SAAgB,SAAjB;EACC,aAAU;EACV,WAAW,GACV,kGACA;;+FAGA;;qGAGA;mDAEA;;qDAGA,SACD;EACA,GAAI;YAjBL,CAmBC,oBAAC,OAAD,EACC,WAAU,yIAEV,IACD,oBAAC,OAAD;GAAK,KAAK;GAAsB,aAAU;GAAyB,WAAU;aAC5E,oBAAC,kBAAD;IAAqC;IAAmB,gBAAe;IACrE;GACgB;EACd,EACmB;GACZ;AAEhB;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACC,oBAAC,OAAD;EACC,aAAU;EACV,WAAW,GACV;gGAEA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC3E,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAgB,WAAW,GAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ;AAChH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,oBAACA,SAAgB,OAAjB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAmE;CAC7G,OACC,oBAACA,SAAgB,aAAjB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
|