@constructive-io/ui 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-BavjjJp0.cjs +625 -0
- package/dist/sidebar-BavjjJp0.cjs.map +1 -0
- package/dist/sidebar-DeoL2ttp.js +481 -0
- package/dist/sidebar-DeoL2ttp.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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utils.ts","../../src/components/input.tsx","../../src/components/scroll-area.tsx","../../src/components/combobox.tsx"],"names":["InputPrimitive","React","ScrollAreaPrimitive","jsx","ComboboxPrimitive","jsxs"],"mappings":";;;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACOA,SAAS,KAAA,CAAM,EAAE,SAAA,EAAW,IAAA,GAAO,WAAW,QAAA,GAAW,KAAA,EAAO,GAAG,KAAA,EAAM,EAAe;AACvF,EAAA,MAAM,UAAA,GAAa,MAAM,WAAA,KAAgB,GAAA;AAEzC,EAAA,uBACC,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACA,SAAA,EACC,EAAA;AAAA,QACC,CAAC,QAAA,IAAY;AAAA;AAAA,UAEZ,sHAAA;AAAA;AAAA,UAEA,uGAAA;AAAA,UACA,6GAAA;AAAA;AAAA,UAEA,oGAAA;AAAA;AAAA,UAEA,wCAAA;AAAA,UACA,iHAAA;AAAA;AAAA,UAEA,mFAAA;AAAA;AAAA,UAEA,0EAAA;AAAA,UACA,2CAAA;AAAA,UACA;AAAA,SACD;AAAA,QACA;AAAA,OACD,IAAK,MAAA;AAAA,MAEN,WAAA,EAAW,IAAA;AAAA,MACX,WAAA,EAAU,eAAA;AAAA,MAEV,QAAA,kBAAA,GAAA;AAAA,QAACA,OAAA;AAAA,QAAA;AAAA,UACA,SAAA,EAAW,EAAA;AAAA,YACV,kHAAA;AAAA,YACA,aACG,oEAAA,G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ACd;AAAA,MACF,CAAA;AAAA,MACA,GAAA,EAAK,QAAA;AAAA,MACJ,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAA,UAAA,oBACCD,GAAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACC,aAAA,EAAY,MAAA;AAAA,YACZ,SAAA,EAAU,wTAAA;AAAA,YACV,WAAA,EAAU,sBAAA;AAAA,YAET,QAAA,EAAA;AAAA;AAAA,SACH;AAAA,QAED;AAAA;AAAA;AAAA,GACH;AAEJ;AAEA,SAAS,YAAA,CAAa;AAAA,EACpB,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAiC;AAC/B,EAAA,uBACEE,IAAAA;AAAA,IAACD,UAAA,CAAkB,IAAA;AAAA,IAAlB;AAAA,MACC,SAAA,EAAU,kPAAA;AAAA,MACV,WAAA,EAAU,eAAA;AAAA,MACT,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAA,QAAA;AAAA,wBACDD,IAAC,kBAAA,EAAA,EAAmB;AAAA;AAAA;AAAA,GACtB;AAEJ;AAEA,SAAS,kBAAA,CAAmB;AAAA,EAC1B,GAAG;AACL,CAAA,EAAuC;AACrC,EAAA,uBACEA,GAAAA;AAAA,IAACC,UAAA,CAAkB,UAAA;AAAA,IAAlB;AAAA,MACC,YAAA,EAAW,QAAA;AAAA,MACX,SAAA,EAAU,mJAAA;AAAA,MACV,WAAA,EAAU,sBAAA;AAAA,MACT,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAD,IAAC,KAAA,EAAA,EAAM;AAAA;AAAA,GACT;AAEJ;AAEA,IAAM,oBAAoBC,UAAA,CAAkB;AAE5C,IAAM,eAAA,GAAkB","file":"combobox.js","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport { Input as InputPrimitive } from '@base-ui/react/input';\nimport type * as React from 'react';\n\nimport { cn } from '../lib/utils';\n\ntype InputProps = Omit<InputPrimitive.Props & React.RefAttributes<HTMLInputElement>, 'size'> & {\n\tsize?: 'sm' | 'default' | 'lg' | number;\n\tunstyled?: boolean;\n};\n\nfunction Input({ className, size = 'default', unstyled = false, ...props }: InputProps) {\n\tconst isFloating = props.placeholder === ' ';\n\n\treturn (\n\t\t<span\n\t\t\tclassName={\n\t\t\t\tcn(\n\t\t\t\t\t!unstyled && [\n\t\t\t\t\t\t// Base layout\n\t\t\t\t\t\t'relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base transition-shadow',\n\t\t\t\t\t\t// Inner shadow highlight\n\t\t\t\t\t\t'before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]',\n\t\t\t\t\t\t'not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]',\n\t\t\t\t\t\t// Focus state - use primary brand color\n\t\t\t\t\t\t'has-focus-visible:border-primary/60 has-focus-visible:ring-[3px] has-focus-visible:ring-primary/35',\n\t\t\t\t\t\t// Invalid state\n\t\t\t\t\t\t'has-aria-invalid:border-destructive/36',\n\t\t\t\t\t\t'has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16',\n\t\t\t\t\t\t// Disabled state\n\t\t\t\t\t\t'has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none',\n\t\t\t\t\t\t// Dark mode\n\t\t\t\t\t\t'sm:text-sm dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border',\n\t\t\t\t\t\t'dark:has-aria-invalid:ring-destructive/24',\n\t\t\t\t\t\t'dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/8%)]',\n\t\t\t\t\t],\n\t\t\t\t\tclassName,\n\t\t\t\t) || undefined\n\t\t\t}\n\t\t\tdata-size={size}\n\t\t\tdata-slot=\"input-control\"\n\t\t>\n\t\t\t<InputPrimitive\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'w-full min-w-0 rounded-[inherit] bg-transparent px-[calc(--spacing(3)-1px)] outline-none pointer-coarse:min-h-11',\n\t\t\t\t\tisFloating\n\t\t\t\t\t\t? 'h-11 pt-4.5 pb-1 leading-none placeholder:text-transparent sm:h-10'\n\t\t\t\t\t\t: 'h-8.5 leading-8.5 placeholder:text-muted-foreground/72 sm:h-7.5 sm:leading-7.5',\n\t\t\t\t\tsize === 'sm' &&\n\t\t\t\t\t\t(isFloating\n\t\t\t\t\t\t\t? 'h-10 px-[calc(--spacing(2.5)-1px)] pt-4 pb-1 sm:h-9'\n\t\t\t\t\t\t\t: 'h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5'),\n\t\t\t\t\tsize === 'lg' &&\n\t\t\t\t\t\t(isFloating ? 'h-12 pt-5 pb-1.5 sm:h-11' : 'h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5'),\n\t\t\t\t\tprops.type === 'search' &&\n\t\t\t\t\t\t'[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none',\n\t\t\t\t\tprops.type === 'file' &&\n\t\t\t\t\t\t'text-muted-foreground file:me-3 file:bg-transparent file:font-medium file:text-foreground file:text-sm',\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"input\"\n\t\t\t\tsize={typeof size === 'number' ? size : undefined}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</span>\n\t);\n}\n\nexport { Input };\nexport type { InputProps };\n","\"use client\";\n\nimport * as React from \"react\";\nimport { ScrollArea as ScrollAreaPrimitive } from \"@base-ui/react/scroll-area\";\n\nimport { cn } from \"../lib/utils\";\n\ntype ScrollAreaProps = ScrollAreaPrimitive.Root.Props & {\n scrollFade?: boolean;\n scrollbarGutter?: boolean;\n};\n\nconst ScrollArea = React.forwardRef<HTMLDivElement, ScrollAreaProps>(\n (\n { className, children, scrollFade = false, scrollbarGutter = false, ...props },\n ref\n ) => {\n return (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"size-full min-h-0\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n className={cn(\n \"h-full overscroll-contain rounded-[inherit] outline-none transition-shadows focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background\",\n scrollFade &&\n \"mask-t-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-start)))] mask-b-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-end)))] mask-l-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-start)))] mask-r-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-end)))] [--fade-size:1.5rem]\",\n scrollbarGutter &&\n \"data-has-overflow-y:pe-2.5 data-has-overflow-x:pb-2.5\",\n )}\n data-slot=\"scroll-area-viewport\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar orientation=\"vertical\" />\n <ScrollBar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner data-slot=\"scroll-area-corner\" />\n </ScrollAreaPrimitive.Root>\n );\n }\n);\nScrollArea.displayName = \"ScrollArea\";\n\nfunction ScrollBar({\n className,\n orientation = \"vertical\",\n ...props\n}: ScrollAreaPrimitive.Scrollbar.Props) {\n return (\n <ScrollAreaPrimitive.Scrollbar\n className={cn(\n \"m-1 flex opacity-0 transition-opacity delay-300 data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 data-[orientation=horizontal]:flex-col data-hovering:opacity-100 data-scrolling:opacity-100 data-hovering:delay-0 data-scrolling:delay-0 data-hovering:duration-100 data-scrolling:duration-100\",\n className,\n )}\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.Thumb\n className=\"relative flex-1 rounded-full bg-foreground/20\"\n data-slot=\"scroll-area-thumb\"\n />\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n","\"use client\";\n\nimport { Combobox as ComboboxPrimitive } from \"@base-ui/react/combobox\";\nimport { ChevronsUpDownIcon, XIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"../lib/utils\";\nimport { useFloatingOverlayPortalProps } from \"@constructive-io/ui/portal\";\nimport { Input } from \"./input\";\nimport { ScrollArea } from \"./scroll-area\";\n\nconst ComboboxContext = React.createContext<{\n chipsRef: React.RefObject<Element | null> | null;\n multiple: boolean;\n}>({\n chipsRef: null,\n multiple: false,\n});\n\ntype ComboboxRootProps<\n ItemValue,\n Multiple extends boolean | undefined,\n> = Parameters<typeof ComboboxPrimitive.Root<ItemValue, Multiple>>[0];\n\nfunction Combobox<ItemValue, Multiple extends boolean | undefined = false>(\n props: ComboboxPrimitive.Root.Props<ItemValue, Multiple>,\n) {\n const chipsRef = React.useRef<Element | null>(null);\n return (\n <ComboboxContext.Provider value={{ chipsRef, multiple: !!props.multiple }}>\n <ComboboxPrimitive.Root\n {...(props as ComboboxRootProps<ItemValue, Multiple>)}\n />\n </ComboboxContext.Provider>\n );\n}\n\nfunction ComboboxInput({\n className,\n showTrigger = true,\n showClear = false,\n startAddon,\n size,\n ...props\n}: Omit<ComboboxPrimitive.Input.Props, \"size\"> & {\n showTrigger?: boolean;\n showClear?: boolean;\n startAddon?: React.ReactNode;\n size?: \"sm\" | \"default\" | \"lg\" | number;\n ref?: React.Ref<HTMLInputElement>;\n }) {\n const { multiple } = React.useContext(ComboboxContext);\n const sizeValue = (size ?? \"default\") as \"sm\" | \"default\" | \"lg\" | number;\n\n // multiple mode\n if (multiple) {\n return (\n <ComboboxPrimitive.Input\n className={cn(\n \"min-w-12 flex-1 text-base outline-none sm:text-sm [[data-slot=combobox-chip]+&]:ps-0.5\",\n sizeValue === \"sm\" ? \"ps-1.5\" : \"ps-2\",\n className,\n )}\n data-size={typeof sizeValue === \"string\" ? sizeValue : undefined}\n data-slot=\"combobox-input\"\n size={typeof sizeValue === \"number\" ? sizeValue : undefined}\n {...props}\n />\n );\n }\n\n // single mode\n return (\n <div className=\"relative not-has-[>*.w-full]:w-fit w-full has-disabled:opacity-64\">\n {startAddon && (\n <div\n aria-hidden=\"true\"\n className=\"[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:opacity-80\"\n data-slot=\"combobox-start-addon\"\n >\n {startAddon}\n </div>\n )}\n <ComboboxPrimitive.Input\n className={cn(\n startAddon &&\n \"data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=combobox-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=combobox-input]:ps-[calc(--spacing(8)-1px)]\",\n sizeValue === \"sm\"\n ? \"has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-6.5 pointer-coarse:has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-11\"\n : \"has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-7 pointer-coarse:has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-11\",\n className,\n )}\n data-slot=\"combobox-input\"\n render={<Input className=\"has-disabled:opacity-100\" size={sizeValue} />}\n {...props}\n />\n {showTrigger && (\n <ComboboxTrigger\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:size-11 sm:pointer-coarse:size-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <ChevronsUpDownIcon />\n </ComboboxTrigger>\n )}\n {showClear && (\n <ComboboxClear\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:size-11 sm:pointer-coarse:size-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <XIcon />\n </ComboboxClear>\n )}\n </div>\n );\n}\n\nfunction ComboboxTrigger({\n className,\n ...props\n}: ComboboxPrimitive.Trigger.Props) {\n return (\n <ComboboxPrimitive.Trigger\n className={className}\n data-slot=\"combobox-trigger\"\n {...props}\n />\n );\n}\n\nfunction ComboboxPopup({\n className,\n children,\n sideOffset = 4,\n ...props\n}: ComboboxPrimitive.Popup.Props & {\n sideOffset?: number;\n }) {\n const { chipsRef, multiple } = React.useContext(ComboboxContext);\n const { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n return (\n <ComboboxPrimitive.Portal container={container}>\n <ComboboxPrimitive.Positioner\n {...(multiple ? { anchor: chipsRef } : {})}\n className={cn(\"select-none\", zIndexClass)}\n data-slot=\"combobox-positioner\"\n sideOffset={sideOffset}\n >\n <span\n className={cn(\n \"relative flex max-h-full origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]\",\n className,\n )}\n >\n <ComboboxPrimitive.Popup\n className=\"flex max-h-[min(var(--available-height),23rem)] w-(--anchor-width) max-w-(--available-width) flex-col\"\n data-slot=\"combobox-popup\"\n {...props}\n >\n {children}\n </ComboboxPrimitive.Popup>\n </span>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n );\n}\n\nfunction ComboboxItem({\n className,\n children,\n ...props\n}: ComboboxPrimitive.Item.Props) {\n return (\n <ComboboxPrimitive.Item\n className={cn(\n \"grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none pointer-coarse:min-h-11 sm:pointer-coarse:min-h-11 data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"combobox-item\"\n {...props}\n >\n\t\t<ComboboxPrimitive.ItemIndicator\n\t\t\tkeepMounted\n\t\t\tclassName={(state) =>\n\t\t\t\tcn(\n\t\t\t\t\t'col-start-1 transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none',\n\t\t\t\t\tstate.selected ? 'scale-100 opacity-100 blur-0' : 'scale-[0.25] opacity-0 blur-[4px]',\n\t\t\t\t)\n\t\t\t}\n\t\t>\n <svg\n fill=\"none\"\n height=\"24\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"2\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/1500/svg\"\n >\n <path d=\"M5.252 12.7 10.2 18.63 18.748 5.37\" />\n </svg>\n </ComboboxPrimitive.ItemIndicator>\n <div className=\"col-start-2\">{children}</div>\n </ComboboxPrimitive.Item>\n );\n}\n\nfunction ComboboxSeparator({\n className,\n ...props\n}: ComboboxPrimitive.Separator.Props) {\n return (\n <ComboboxPrimitive.Separator\n className={cn(\"mx-2 my-1 h-px bg-border last:hidden\", className)}\n data-slot=\"combobox-separator\"\n {...props}\n />\n );\n}\n\nfunction ComboboxGroup({\n className,\n ...props\n}: ComboboxPrimitive.Group.Props) {\n return (\n <ComboboxPrimitive.Group\n className={cn(\"[[role=group]+&]:mt-1.5\", className)}\n data-slot=\"combobox-group\"\n {...props}\n />\n );\n}\n\nfunction ComboboxGroupLabel({\n className,\n ...props\n}: ComboboxPrimitive.GroupLabel.Props) {\n return (\n <ComboboxPrimitive.GroupLabel\n className={cn(\n \"px-2 py-1.5 font-medium text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"combobox-group-label\"\n {...props}\n />\n );\n}\n\nfunction ComboboxEmpty({\n className,\n ...props\n}: ComboboxPrimitive.Empty.Props) {\n return (\n <ComboboxPrimitive.Empty\n className={cn(\n \"not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm\",\n className,\n )}\n data-slot=\"combobox-empty\"\n {...props}\n />\n );\n}\n\nfunction ComboboxRow({\n className,\n ...props\n}: ComboboxPrimitive.Row.Props) {\n return (\n <ComboboxPrimitive.Row\n className={className}\n data-slot=\"combobox-row\"\n {...props}\n />\n );\n}\n\nfunction ComboboxValue({\n ...props\n}: ComboboxPrimitive.Value.Props) {\n return (\n <ComboboxPrimitive.Value\n data-slot=\"combobox-value\"\n {...props}\n />\n );\n}\n\nfunction ComboboxList({\n className,\n ...props\n}: ComboboxPrimitive.List.Props) {\n return (\n <ScrollArea scrollbarGutter scrollFade>\n <ComboboxPrimitive.List\n className={cn(\n \"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3\",\n className,\n )}\n data-slot=\"combobox-list\"\n {...props}\n />\n </ScrollArea>\n );\n}\n\nfunction ComboboxClear({\n className,\n ...props\n}: ComboboxPrimitive.Clear.Props) {\n return (\n <ComboboxPrimitive.Clear\n className={className}\n data-slot=\"combobox-clear\"\n {...props}\n />\n );\n}\n\nfunction ComboboxStatus({\n className,\n ...props\n}: ComboboxPrimitive.Status.Props) {\n return (\n <ComboboxPrimitive.Status\n className={cn(\n \"px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0\",\n className,\n )}\n data-slot=\"combobox-status\"\n {...props}\n />\n );\n}\n\nfunction ComboboxCollection({\n ...props\n}: ComboboxPrimitive.Collection.Props) {\n return (\n <ComboboxPrimitive.Collection\n data-slot=\"combobox-collection\"\n {...props}\n />\n );\n}\n\nfunction ComboboxChips({\n className,\n children,\n startAddon,\n ...props\n}: ComboboxPrimitive.Chips.Props & {\n startAddon?: React.ReactNode;\n }) {\n const { chipsRef } = React.useContext(ComboboxContext);\n\n return (\n <ComboboxPrimitive.Chips\n className={cn(\n \"relative inline-flex min-h-9 w-full flex-wrap gap-1 rounded-lg border border-input bg-background not-dark:bg-clip-padding p-[calc(--spacing(1)-1px)] text-base outline-none ring-ring/24 transition-shadow *:min-h-7 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/6%)] focus-within:border-ring focus-within:ring-[3px] has-disabled:pointer-events-none has-data-[size=lg]:min-h-10 has-data-[size=sm]:min-h-8 has-aria-invalid:border-destructive/36 has-disabled:opacity-64 has-[:disabled,:focus-within,[aria-invalid]]:shadow-none focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/16 has-data-[size=lg]:*:min-h-8 has-data-[size=sm]:*:min-h-6 sm:min-h-8 sm:text-sm sm:has-data-[size=lg]:min-h-9 sm:has-data-[size=sm]:min-h-7 sm:*:min-h-6 sm:has-data-[size=lg]:*:min-h-7 sm:has-data-[size=sm]:*:min-h-5 dark:not-has-disabled:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]\",\n className,\n )}\n data-slot=\"combobox-chips\"\n onMouseDown={(e) => {\n const target = e.target as HTMLElement;\n const isChip = target.closest('[data-slot=\"combobox-chip\"]');\n if (isChip || !chipsRef?.current) return;\n e.preventDefault();\n const input: HTMLInputElement | null =\n chipsRef.current.querySelector(\"input\");\n if (input && !chipsRef.current.querySelector(\"input:focus\")) {\n input.focus();\n }\n }}\n ref={chipsRef as React.Ref<HTMLDivElement> | null}\n {...props}\n >\n {startAddon && (\n <div\n aria-hidden=\"true\"\n className=\"[&_svg]:-ms-0.5 [&_svg]:-me-1.5 flex shrink-0 items-center ps-2 opacity-80 has-[~[data-size=sm]]:has-[+[data-slot=combobox-chip]]:pe-1.5 has-[~[data-size=sm]]:ps-1.5 has-[+[data-slot=combobox-chip]]:pe-2 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\"\n data-slot=\"combobox-start-addon\"\n >\n {startAddon}\n </div>\n )}\n {children}\n </ComboboxPrimitive.Chips>\n );\n}\n\nfunction ComboboxChip({\n children,\n ...props\n}: ComboboxPrimitive.Chip.Props) {\n return (\n <ComboboxPrimitive.Chip\n className=\"flex items-center rounded-[calc(var(--radius-md)-1px)] bg-accent ps-2 font-medium text-accent-foreground text-sm outline-none sm:text-xs/(--text-xs--line-height) [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5\"\n data-slot=\"combobox-chip\"\n {...props}\n >\n {children}\n <ComboboxChipRemove />\n </ComboboxPrimitive.Chip>\n );\n}\n\nfunction ComboboxChipRemove({\n ...props\n}: ComboboxPrimitive.ChipRemove.Props) {\n return (\n <ComboboxPrimitive.ChipRemove\n aria-label=\"Remove\"\n className=\"h-full shrink-0 cursor-pointer px-1.5 opacity-80 hover:opacity-100 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5\"\n data-slot=\"combobox-chip-remove\"\n {...props}\n >\n <XIcon />\n </ComboboxPrimitive.ChipRemove>\n );\n}\n\nconst useComboboxFilter = ComboboxPrimitive.useFilter;\n\nconst ComboboxContent = ComboboxPopup;\n\ntype ComboboxProps<ItemValue = unknown, Multiple extends boolean | undefined = false> =\n ComboboxPrimitive.Root.Props<ItemValue, Multiple>;\ntype ComboboxTriggerProps = ComboboxPrimitive.Trigger.Props;\ntype ComboboxContentProps = React.ComponentProps<typeof ComboboxPopup>;\ntype ComboboxInputProps = React.ComponentProps<typeof ComboboxInput>;\ntype ComboboxListProps = React.ComponentProps<typeof ComboboxList>;\ntype ComboboxEmptyProps = React.ComponentProps<typeof ComboboxEmpty>;\ntype ComboboxGroupProps = React.ComponentProps<typeof ComboboxGroup>;\ntype ComboboxItemProps = React.ComponentProps<typeof ComboboxItem>;\ntype ComboboxSeparatorProps = React.ComponentProps<typeof ComboboxSeparator>;\n\nexport {\n Combobox,\n ComboboxInput,\n ComboboxTrigger,\n ComboboxContent,\n ComboboxPopup,\n ComboboxItem,\n ComboboxSeparator,\n ComboboxGroup,\n ComboboxGroupLabel,\n ComboboxEmpty,\n ComboboxValue,\n ComboboxList,\n ComboboxClear,\n ComboboxStatus,\n ComboboxRow,\n ComboboxCollection,\n ComboboxChips,\n ComboboxChip,\n useComboboxFilter,\n};\n\nexport type {\n ComboboxProps,\n ComboboxTriggerProps,\n ComboboxContentProps,\n ComboboxInputProps,\n ComboboxListProps,\n ComboboxEmptyProps,\n ComboboxGroupProps,\n ComboboxItemProps,\n ComboboxSeparatorProps,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"combobox.js","names":["React","ComboboxPrimitive"],"sources":["../../src/components/combobox.tsx"],"sourcesContent":["\"use client\";\n\nimport { Combobox as ComboboxPrimitive } from \"@base-ui/react/combobox\";\nimport { ChevronsUpDownIcon, XIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"../lib/utils\";\nimport { useFloatingOverlayPortalProps } from \"@constructive-io/ui/portal\";\nimport { Input } from \"./input\";\nimport { ScrollArea } from \"./scroll-area\";\n\nconst ComboboxContext = React.createContext<{\n chipsRef: React.RefObject<Element | null> | null;\n multiple: boolean;\n}>({\n chipsRef: null,\n multiple: false,\n});\n\ntype ComboboxRootProps<\n ItemValue,\n Multiple extends boolean | undefined,\n> = Parameters<typeof ComboboxPrimitive.Root<ItemValue, Multiple>>[0];\n\nfunction Combobox<ItemValue, Multiple extends boolean | undefined = false>(\n props: ComboboxPrimitive.Root.Props<ItemValue, Multiple>,\n) {\n const chipsRef = React.useRef<Element | null>(null);\n return (\n <ComboboxContext.Provider value={{ chipsRef, multiple: !!props.multiple }}>\n <ComboboxPrimitive.Root\n {...(props as ComboboxRootProps<ItemValue, Multiple>)}\n />\n </ComboboxContext.Provider>\n );\n}\n\nfunction ComboboxInput({\n className,\n showTrigger = true,\n showClear = false,\n startAddon,\n size,\n ...props\n}: Omit<ComboboxPrimitive.Input.Props, \"size\"> & {\n showTrigger?: boolean;\n showClear?: boolean;\n startAddon?: React.ReactNode;\n size?: \"sm\" | \"default\" | \"lg\" | number;\n ref?: React.Ref<HTMLInputElement>;\n }) {\n const { multiple } = React.useContext(ComboboxContext);\n const sizeValue = (size ?? \"default\") as \"sm\" | \"default\" | \"lg\" | number;\n\n // multiple mode\n if (multiple) {\n return (\n <ComboboxPrimitive.Input\n className={cn(\n \"min-w-12 flex-1 text-base outline-none sm:text-sm [[data-slot=combobox-chip]+&]:ps-0.5\",\n sizeValue === \"sm\" ? \"ps-1.5\" : \"ps-2\",\n className,\n )}\n data-size={typeof sizeValue === \"string\" ? sizeValue : undefined}\n data-slot=\"combobox-input\"\n size={typeof sizeValue === \"number\" ? sizeValue : undefined}\n {...props}\n />\n );\n }\n\n // single mode\n return (\n <div className=\"relative not-has-[>*.w-full]:w-fit w-full has-disabled:opacity-64\">\n {startAddon && (\n <div\n aria-hidden=\"true\"\n className=\"[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:opacity-80\"\n data-slot=\"combobox-start-addon\"\n >\n {startAddon}\n </div>\n )}\n <ComboboxPrimitive.Input\n className={cn(\n startAddon &&\n \"data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=combobox-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=combobox-input]:ps-[calc(--spacing(8)-1px)]\",\n sizeValue === \"sm\"\n ? \"has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-6.5 pointer-coarse:has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-11\"\n : \"has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-7 pointer-coarse:has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-11\",\n className,\n )}\n data-slot=\"combobox-input\"\n render={<Input className=\"has-disabled:opacity-100\" size={sizeValue} />}\n {...props}\n />\n {showTrigger && (\n <ComboboxTrigger\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:size-11 sm:pointer-coarse:size-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <ChevronsUpDownIcon />\n </ComboboxTrigger>\n )}\n {showClear && (\n <ComboboxClear\n className={cn(\n \"-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:size-11 sm:pointer-coarse:size-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n sizeValue === \"sm\" ? \"end-0\" : \"end-0.5\",\n )}\n >\n <XIcon />\n </ComboboxClear>\n )}\n </div>\n );\n}\n\nfunction ComboboxTrigger({\n className,\n ...props\n}: ComboboxPrimitive.Trigger.Props) {\n return (\n <ComboboxPrimitive.Trigger\n className={className}\n data-slot=\"combobox-trigger\"\n {...props}\n />\n );\n}\n\nfunction ComboboxPopup({\n className,\n children,\n sideOffset = 4,\n ...props\n}: ComboboxPrimitive.Popup.Props & {\n sideOffset?: number;\n }) {\n const { chipsRef, multiple } = React.useContext(ComboboxContext);\n const { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n return (\n <ComboboxPrimitive.Portal container={container}>\n <ComboboxPrimitive.Positioner\n {...(multiple ? { anchor: chipsRef } : {})}\n className={cn(\"select-none\", zIndexClass)}\n data-slot=\"combobox-positioner\"\n sideOffset={sideOffset}\n >\n <span\n className={cn(\n \"relative flex max-h-full origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/6%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]\",\n className,\n )}\n >\n <ComboboxPrimitive.Popup\n className=\"flex max-h-[min(var(--available-height),23rem)] w-(--anchor-width) max-w-(--available-width) flex-col\"\n data-slot=\"combobox-popup\"\n {...props}\n >\n {children}\n </ComboboxPrimitive.Popup>\n </span>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n );\n}\n\nfunction ComboboxItem({\n className,\n children,\n ...props\n}: ComboboxPrimitive.Item.Props) {\n return (\n <ComboboxPrimitive.Item\n className={cn(\n \"grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none pointer-coarse:min-h-11 sm:pointer-coarse:min-h-11 data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"combobox-item\"\n {...props}\n >\n\t\t<ComboboxPrimitive.ItemIndicator\n\t\t\tkeepMounted\n\t\t\tclassName={(state) =>\n\t\t\t\tcn(\n\t\t\t\t\t'col-start-1 transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none',\n\t\t\t\t\tstate.selected ? 'scale-100 opacity-100 blur-0' : 'scale-[0.25] opacity-0 blur-[4px]',\n\t\t\t\t)\n\t\t\t}\n\t\t>\n <svg\n fill=\"none\"\n height=\"24\"\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"2\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/1500/svg\"\n >\n <path d=\"M5.252 12.7 10.2 18.63 18.748 5.37\" />\n </svg>\n </ComboboxPrimitive.ItemIndicator>\n <div className=\"col-start-2\">{children}</div>\n </ComboboxPrimitive.Item>\n );\n}\n\nfunction ComboboxSeparator({\n className,\n ...props\n}: ComboboxPrimitive.Separator.Props) {\n return (\n <ComboboxPrimitive.Separator\n className={cn(\"mx-2 my-1 h-px bg-border last:hidden\", className)}\n data-slot=\"combobox-separator\"\n {...props}\n />\n );\n}\n\nfunction ComboboxGroup({\n className,\n ...props\n}: ComboboxPrimitive.Group.Props) {\n return (\n <ComboboxPrimitive.Group\n className={cn(\"[[role=group]+&]:mt-1.5\", className)}\n data-slot=\"combobox-group\"\n {...props}\n />\n );\n}\n\nfunction ComboboxGroupLabel({\n className,\n ...props\n}: ComboboxPrimitive.GroupLabel.Props) {\n return (\n <ComboboxPrimitive.GroupLabel\n className={cn(\n \"px-2 py-1.5 font-medium text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"combobox-group-label\"\n {...props}\n />\n );\n}\n\nfunction ComboboxEmpty({\n className,\n ...props\n}: ComboboxPrimitive.Empty.Props) {\n return (\n <ComboboxPrimitive.Empty\n className={cn(\n \"not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm\",\n className,\n )}\n data-slot=\"combobox-empty\"\n {...props}\n />\n );\n}\n\nfunction ComboboxRow({\n className,\n ...props\n}: ComboboxPrimitive.Row.Props) {\n return (\n <ComboboxPrimitive.Row\n className={className}\n data-slot=\"combobox-row\"\n {...props}\n />\n );\n}\n\nfunction ComboboxValue({\n ...props\n}: ComboboxPrimitive.Value.Props) {\n return (\n <ComboboxPrimitive.Value\n data-slot=\"combobox-value\"\n {...props}\n />\n );\n}\n\nfunction ComboboxList({\n className,\n ...props\n}: ComboboxPrimitive.List.Props) {\n return (\n <ScrollArea scrollbarGutter scrollFade>\n <ComboboxPrimitive.List\n className={cn(\n \"not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3\",\n className,\n )}\n data-slot=\"combobox-list\"\n {...props}\n />\n </ScrollArea>\n );\n}\n\nfunction ComboboxClear({\n className,\n ...props\n}: ComboboxPrimitive.Clear.Props) {\n return (\n <ComboboxPrimitive.Clear\n className={className}\n data-slot=\"combobox-clear\"\n {...props}\n />\n );\n}\n\nfunction ComboboxStatus({\n className,\n ...props\n}: ComboboxPrimitive.Status.Props) {\n return (\n <ComboboxPrimitive.Status\n className={cn(\n \"px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0\",\n className,\n )}\n data-slot=\"combobox-status\"\n {...props}\n />\n );\n}\n\nfunction ComboboxCollection({\n ...props\n}: ComboboxPrimitive.Collection.Props) {\n return (\n <ComboboxPrimitive.Collection\n data-slot=\"combobox-collection\"\n {...props}\n />\n );\n}\n\nfunction ComboboxChips({\n className,\n children,\n startAddon,\n ...props\n}: ComboboxPrimitive.Chips.Props & {\n startAddon?: React.ReactNode;\n }) {\n const { chipsRef } = React.useContext(ComboboxContext);\n\n return (\n <ComboboxPrimitive.Chips\n className={cn(\n \"relative inline-flex min-h-9 w-full flex-wrap gap-1 rounded-lg border border-input bg-background not-dark:bg-clip-padding p-[calc(--spacing(1)-1px)] text-base outline-none ring-ring/24 transition-shadow *:min-h-7 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/6%)] focus-within:border-ring focus-within:ring-[3px] has-disabled:pointer-events-none has-data-[size=lg]:min-h-10 has-data-[size=sm]:min-h-8 has-aria-invalid:border-destructive/36 has-disabled:opacity-64 has-[:disabled,:focus-within,[aria-invalid]]:shadow-none focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/16 has-data-[size=lg]:*:min-h-8 has-data-[size=sm]:*:min-h-6 sm:min-h-8 sm:text-sm sm:has-data-[size=lg]:min-h-9 sm:has-data-[size=sm]:min-h-7 sm:*:min-h-6 sm:has-data-[size=lg]:*:min-h-7 sm:has-data-[size=sm]:*:min-h-5 dark:not-has-disabled:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]\",\n className,\n )}\n data-slot=\"combobox-chips\"\n onMouseDown={(e) => {\n const target = e.target as HTMLElement;\n const isChip = target.closest('[data-slot=\"combobox-chip\"]');\n if (isChip || !chipsRef?.current) return;\n e.preventDefault();\n const input: HTMLInputElement | null =\n chipsRef.current.querySelector(\"input\");\n if (input && !chipsRef.current.querySelector(\"input:focus\")) {\n input.focus();\n }\n }}\n ref={chipsRef as React.Ref<HTMLDivElement> | null}\n {...props}\n >\n {startAddon && (\n <div\n aria-hidden=\"true\"\n className=\"[&_svg]:-ms-0.5 [&_svg]:-me-1.5 flex shrink-0 items-center ps-2 opacity-80 has-[~[data-size=sm]]:has-[+[data-slot=combobox-chip]]:pe-1.5 has-[~[data-size=sm]]:ps-1.5 has-[+[data-slot=combobox-chip]]:pe-2 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\"\n data-slot=\"combobox-start-addon\"\n >\n {startAddon}\n </div>\n )}\n {children}\n </ComboboxPrimitive.Chips>\n );\n}\n\nfunction ComboboxChip({\n children,\n ...props\n}: ComboboxPrimitive.Chip.Props) {\n return (\n <ComboboxPrimitive.Chip\n className=\"flex items-center rounded-[calc(var(--radius-md)-1px)] bg-accent ps-2 font-medium text-accent-foreground text-sm outline-none sm:text-xs/(--text-xs--line-height) [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5\"\n data-slot=\"combobox-chip\"\n {...props}\n >\n {children}\n <ComboboxChipRemove />\n </ComboboxPrimitive.Chip>\n );\n}\n\nfunction ComboboxChipRemove({\n ...props\n}: ComboboxPrimitive.ChipRemove.Props) {\n return (\n <ComboboxPrimitive.ChipRemove\n aria-label=\"Remove\"\n className=\"h-full shrink-0 cursor-pointer px-1.5 opacity-80 hover:opacity-100 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5\"\n data-slot=\"combobox-chip-remove\"\n {...props}\n >\n <XIcon />\n </ComboboxPrimitive.ChipRemove>\n );\n}\n\nconst useComboboxFilter = ComboboxPrimitive.useFilter;\n\nconst ComboboxContent = ComboboxPopup;\n\ntype ComboboxProps<ItemValue = unknown, Multiple extends boolean | undefined = false> =\n ComboboxPrimitive.Root.Props<ItemValue, Multiple>;\ntype ComboboxTriggerProps = ComboboxPrimitive.Trigger.Props;\ntype ComboboxContentProps = React.ComponentProps<typeof ComboboxPopup>;\ntype ComboboxInputProps = React.ComponentProps<typeof ComboboxInput>;\ntype ComboboxListProps = React.ComponentProps<typeof ComboboxList>;\ntype ComboboxEmptyProps = React.ComponentProps<typeof ComboboxEmpty>;\ntype ComboboxGroupProps = React.ComponentProps<typeof ComboboxGroup>;\ntype ComboboxItemProps = React.ComponentProps<typeof ComboboxItem>;\ntype ComboboxSeparatorProps = React.ComponentProps<typeof ComboboxSeparator>;\n\nexport {\n Combobox,\n ComboboxInput,\n ComboboxTrigger,\n ComboboxContent,\n ComboboxPopup,\n ComboboxItem,\n ComboboxSeparator,\n ComboboxGroup,\n ComboboxGroupLabel,\n ComboboxEmpty,\n ComboboxValue,\n ComboboxList,\n ComboboxClear,\n ComboboxStatus,\n ComboboxRow,\n ComboboxCollection,\n ComboboxChips,\n ComboboxChip,\n useComboboxFilter,\n};\n\nexport type {\n ComboboxProps,\n ComboboxTriggerProps,\n ComboboxContentProps,\n ComboboxInputProps,\n ComboboxListProps,\n ComboboxEmptyProps,\n ComboboxGroupProps,\n ComboboxItemProps,\n ComboboxSeparatorProps,\n};\n"],"mappings":";;;;;;;;;;;;AAWA,MAAM,kBAAkBA,QAAM,cAG3B;CACD,UAAU;CACV,UAAU;AACZ,CAAC;AAOD,SAAS,SACP,OACA;CACA,MAAM,WAAWA,QAAM,OAAuB,IAAI;CAClD,OACE,oBAAC,gBAAgB,UAAjB;EAA0B,OAAO;GAAE;GAAU,UAAU,CAAC,CAAC,MAAM;EAAS;YACtE,oBAACC,WAAkB,MAAnB,EACE,GAAK,MACN;CACuB;AAE9B;AAEA,SAAS,cAAc,EACrB,WACA,cAAc,MACd,YAAY,OACZ,YACA,MACA,GAAG,SAOA;CACH,MAAM,E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C;;AAE5B;AAEA,SAAS,mBAAmB,EAC1B,GAAG,SACkC;CACrC,OACE,oBAACA,WAAkB,YAAnB;EACE,cAAW;EACX,WAAU;EACV,aAAU;EACV,GAAI;YAEJ,oBAAC,OAAD,CAAQ;CACoB;AAElC;AAEA,MAAM,oBAAoBA,WAAkB;AAE5C,MAAM,kBAAkB"}
|
|
@@ -1,223 +1,127 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
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 lucide_react = require("lucide-react");
|
|
10
|
+
let _constructive_io_ui_portal = require("@constructive-io/ui/portal");
|
|
11
|
+
let cmdk = require("cmdk");
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
//#region src/components/command.tsx
|
|
14
|
+
function CommandDialog({ className, children, ...props }) {
|
|
15
|
+
const container = (0, _constructive_io_ui_portal.useRootPortalContainer)();
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Dialog, {
|
|
17
|
+
container: container ?? void 0,
|
|
18
|
+
overlayClassName: require_utils.cn("fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none"),
|
|
19
|
+
contentClassName: require_utils.cn("fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg max-sm:right-3 max-sm:left-3 max-sm:w-auto max-sm:translate-x-0 data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]", className),
|
|
20
|
+
loop: true,
|
|
21
|
+
...props,
|
|
22
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, { children })
|
|
23
|
+
});
|
|
13
24
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
cmdk.Command.Dialog,
|
|
22
|
-
{
|
|
23
|
-
container: container ?? void 0,
|
|
24
|
-
overlayClassName: cn(
|
|
25
|
-
"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none"
|
|
26
|
-
),
|
|
27
|
-
contentClassName: cn(
|
|
28
|
-
"fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]",
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
loop: true,
|
|
32
|
-
...props,
|
|
33
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(portal.ModalPortalScope, { children })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
25
|
+
function CommandDialogPopup({ children, className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27
|
+
"data-slot": "command-dialog-popup",
|
|
28
|
+
className,
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
});
|
|
36
32
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
function Command({ className, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command, {
|
|
35
|
+
className: require_utils.cn("flex h-full w-full flex-col overflow-hidden rounded-2xl", className),
|
|
36
|
+
"data-slot": "command",
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
43
39
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
40
|
+
function CommandInput({ className, placeholder, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
42
|
+
className: "px-2.5 py-1.5",
|
|
43
|
+
"data-slot": "command-input-wrapper",
|
|
44
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
45
|
+
className: require_utils.cn("flex items-center gap-2 rounded-lg px-3 text-base", className),
|
|
46
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Input, {
|
|
47
|
+
className: "flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
48
|
+
placeholder,
|
|
49
|
+
"data-slot": "command-input",
|
|
50
|
+
...props
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
});
|
|
59
54
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
className: cn(
|
|
69
|
-
"flex items-center gap-2 rounded-lg px-3 text-base",
|
|
70
|
-
className
|
|
71
|
-
),
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
-
cmdk.Command.Input,
|
|
76
|
-
{
|
|
77
|
-
className: "flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
78
|
-
placeholder,
|
|
79
|
-
"data-slot": "command-input",
|
|
80
|
-
...props
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
) });
|
|
55
|
+
function CommandList({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.List, {
|
|
57
|
+
className: require_utils.cn("not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
58
|
+
"data-slot": "command-list",
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
86
61
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
className: cn("not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
95
|
-
"data-slot": "command-list",
|
|
96
|
-
...props
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
function CommandEmpty({
|
|
101
|
-
className,
|
|
102
|
-
...props
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
105
|
-
cmdk.Command.Empty,
|
|
106
|
-
{
|
|
107
|
-
className: cn("not-empty:py-6", className),
|
|
108
|
-
"data-slot": "command-empty",
|
|
109
|
-
...props
|
|
110
|
-
}
|
|
111
|
-
);
|
|
62
|
+
function CommandEmpty({ className, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Empty, {
|
|
64
|
+
className: require_utils.cn("not-empty:py-6", className),
|
|
65
|
+
"data-slot": "command-empty",
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
112
68
|
}
|
|
113
69
|
function CommandPanel({ className, ...props }) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
className
|
|
120
|
-
),
|
|
121
|
-
"data-slot": "command-panel",
|
|
122
|
-
...props
|
|
123
|
-
}
|
|
124
|
-
);
|
|
70
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
71
|
+
className: require_utils.cn("-mx-px relative min-h-0 rounded-t-xl border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]", className),
|
|
72
|
+
"data-slot": "command-panel",
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
125
75
|
}
|
|
126
|
-
function CommandGroup({
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
{
|
|
135
|
-
className: cn(
|
|
136
|
-
"overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
137
|
-
className
|
|
138
|
-
),
|
|
139
|
-
heading,
|
|
140
|
-
"data-slot": "command-group",
|
|
141
|
-
...props,
|
|
142
|
-
children
|
|
143
|
-
}
|
|
144
|
-
);
|
|
76
|
+
function CommandGroup({ className, heading, children, ...props }) {
|
|
77
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Group, {
|
|
78
|
+
className: require_utils.cn("overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className),
|
|
79
|
+
heading,
|
|
80
|
+
"data-slot": "command-group",
|
|
81
|
+
...props,
|
|
82
|
+
children
|
|
83
|
+
});
|
|
145
84
|
}
|
|
146
|
-
function CommandGroupLabel({
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
{
|
|
153
|
-
className: cn(
|
|
154
|
-
"px-2 py-1.5 text-xs font-medium text-muted-foreground",
|
|
155
|
-
className
|
|
156
|
-
),
|
|
157
|
-
"data-slot": "command-group-label",
|
|
158
|
-
...props
|
|
159
|
-
}
|
|
160
|
-
);
|
|
85
|
+
function CommandGroupLabel({ className, ...props }) {
|
|
86
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
87
|
+
className: require_utils.cn("px-2 py-1.5 text-xs font-medium text-muted-foreground", className),
|
|
88
|
+
"data-slot": "command-group-label",
|
|
89
|
+
...props
|
|
90
|
+
});
|
|
161
91
|
}
|
|
162
92
|
function CommandCollection({ children }) {
|
|
163
|
-
|
|
93
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
164
94
|
}
|
|
165
|
-
function CommandItem({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
{
|
|
172
|
-
className: cn(
|
|
173
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
174
|
-
className
|
|
175
|
-
),
|
|
176
|
-
"data-slot": "command-item",
|
|
177
|
-
...props
|
|
178
|
-
}
|
|
179
|
-
);
|
|
95
|
+
function CommandItem({ className, ...props }) {
|
|
96
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Item, {
|
|
97
|
+
className: require_utils.cn("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50", className),
|
|
98
|
+
"data-slot": "command-item",
|
|
99
|
+
...props
|
|
100
|
+
});
|
|
180
101
|
}
|
|
181
|
-
function CommandSeparator({
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
{
|
|
188
|
-
className: cn("-mx-1 my-2 h-px bg-border", className),
|
|
189
|
-
"data-slot": "command-separator",
|
|
190
|
-
...props
|
|
191
|
-
}
|
|
192
|
-
);
|
|
102
|
+
function CommandSeparator({ className, ...props }) {
|
|
103
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(cmdk.Command.Separator, {
|
|
104
|
+
className: require_utils.cn("-mx-1 my-2 h-px bg-border", className),
|
|
105
|
+
"data-slot": "command-separator",
|
|
106
|
+
...props
|
|
107
|
+
});
|
|
193
108
|
}
|
|
194
109
|
function CommandShortcut({ className, ...props }) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
className
|
|
201
|
-
),
|
|
202
|
-
"data-slot": "command-shortcut",
|
|
203
|
-
...props
|
|
204
|
-
}
|
|
205
|
-
);
|
|
110
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
111
|
+
className: require_utils.cn("ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest", className),
|
|
112
|
+
"data-slot": "command-shortcut",
|
|
113
|
+
...props
|
|
114
|
+
});
|
|
206
115
|
}
|
|
207
116
|
function CommandFooter({ className, ...props }) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
className
|
|
214
|
-
),
|
|
215
|
-
"data-slot": "command-footer",
|
|
216
|
-
...props
|
|
217
|
-
}
|
|
218
|
-
);
|
|
117
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
118
|
+
className: require_utils.cn("flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] px-5 py-3 text-muted-foreground text-xs", className),
|
|
119
|
+
"data-slot": "command-footer",
|
|
120
|
+
...props
|
|
121
|
+
});
|
|
219
122
|
}
|
|
220
123
|
|
|
124
|
+
//#endregion
|
|
221
125
|
exports.Command = Command;
|
|
222
126
|
exports.CommandCollection = CommandCollection;
|
|
223
127
|
exports.CommandDialog = CommandDialog;
|
|
@@ -232,5 +136,4 @@ exports.CommandList = CommandList;
|
|
|
232
136
|
exports.CommandPanel = CommandPanel;
|
|
233
137
|
exports.CommandSeparator = CommandSeparator;
|
|
234
138
|
exports.CommandShortcut = CommandShortcut;
|
|
235
|
-
//# sourceMappingURL=command.cjs.map
|
|
236
139
|
//# sourceMappingURL=command.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utils.ts","../../src/components/command.tsx"],"names":["twMerge","clsx","useRootPortalContainer","jsx","CommandPrimitive","ModalPortalScope","jsxs","SearchIcon"],"mappings":";;;;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACGA,SAAS,aAAA,CAAc;AAAA,EACrB,SAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAyD;AACvD,EAAA,MAAM,YAAYC,6BAAA,EAAuB;AAEzC,EAAA,uBACEC,cAAA;AAAA,IAACC,YAAA,CAAiB,MAAA;AAAA,IAAjB;AAAA,MACC,WAAW,SAAA,IAAa,MAAA;AAAA,MACxB,gBAAA,EAAkB,EAAA;AAAA,QACtB;AAAA,OACI;AAAA,MACA,gBAAA,EAAkB,EAAA;AAAA,QAChB,sqBAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,IAAA,EAAI,IAAA;AAAA,MACH,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAD,cAAA,CAACE,2BAAkB,QAAA,EAAS;AAAA;AAAA,GAC9B;AAEJ;AAEA,SAAS,kBAAA,CAAmB;AAAA,EAC1B,QAAA;AAAA,EACA,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAgC;AAC9B,EAAA,sCACG,KAAA,EAAA,EAAI,WAAA,EAAU,wBAAuB,SAAA,EAAuB,GAAG,OAC7D,QAAA,EACH,CAAA;AAEJ;AAEA,SAAS,OAAA,CAAQ;AAAA,EACf,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAkD;AAChD,EAAA,uBACEF,cAAA;AAAA,IAACC,YAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,yDAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,WAAA,EAA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AAA,GACN;AAEJ;AAEA,SAAS,gBAAA,CAAiB;AAAA,EACxB,SAAA;AAAA,EACA,GAAG;AACL,CAAA,EAA4D;AAC1D,EAAA,uBACED,cAAA;AAAA,IAACC,YAAA,CAAiB,SAAA;AAAA,IAAjB;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,2BAAA,EAA6B,SAAS,CAAA;AAAA,MACpD,WAAA,EAAU,mBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,eAAA,CAAgB,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AAC7E,EAAA,uBACED,cAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,sEAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,WAAA,EAAU,kBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,aAAA,CAAc,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AAC3E,EAAA,uBACEA,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,yHAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,WAAA,EAAU,gBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ","file":"command.cjs","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { ModalPortalScope, useRootPortalContainer } from \"@constructive-io/ui/portal\";\nimport { cn } from \"../lib/utils\";\n\nfunction CommandDialog({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Dialog>) {\n const container = useRootPortalContainer();\n\n return (\n <CommandPrimitive.Dialog\n container={container ?? undefined}\n overlayClassName={cn(\n\t\t\"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none\",\n )}\n contentClassName={cn(\n \"fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n loop\n {...props}\n >\n <ModalPortalScope>{children}</ModalPortalScope>\n </CommandPrimitive.Dialog>\n );\n}\n\nfunction CommandDialogPopup({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"command-dialog-popup\" className={className} {...props}>\n {children}\n </div>\n );\n}\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-2xl\",\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\nfunction CommandInput({\n className,\n placeholder,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div className=\"px-2.5 py-1.5\" data-slot=\"command-input-wrapper\">\n <div\n className={cn(\n \"flex items-center gap-2 rounded-lg px-3 text-base\",\n className,\n )}\n >\n <SearchIcon className=\"size-4 shrink-0 text-muted-foreground\" />\n <CommandPrimitive.Input\n className=\"flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden\", className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"not-empty:py-6\", className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\nfunction CommandPanel({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"-mx-px relative min-h-0 rounded-t-xl border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n data-slot=\"command-panel\"\n {...props}\n />\n );\n}\n\nfunction CommandGroup({\n className,\n heading,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group> & {\n heading?: React.ReactNode;\n}) {\n return (\n <CommandPrimitive.Group\n className={cn(\n \"overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n heading={heading}\n data-slot=\"command-group\"\n {...props}\n >\n {children}\n </CommandPrimitive.Group>\n );\n}\n\nfunction CommandGroupLabel({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"px-2 py-1.5 text-xs font-medium text-muted-foreground\",\n className,\n )}\n data-slot=\"command-group-label\"\n {...props}\n />\n );\n}\n\nfunction CommandCollection({ children }: { children: React.ReactNode }) {\n return <>{children}</>;\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 my-2 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\nfunction CommandFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] px-5 py-3 text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"command-footer\"\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandCollection,\n CommandDialog,\n CommandDialogPopup,\n CommandEmpty,\n CommandFooter,\n CommandGroup,\n CommandGroupLabel,\n CommandInput,\n CommandItem,\n CommandList,\n CommandPanel,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"command.cjs","names":["CommandPrimitive","cn","ModalPortalScope","SearchIcon"],"sources":["../../src/components/command.tsx"],"sourcesContent":["\"use client\";\n\nimport { Command as CommandPrimitive } from \"cmdk\";\nimport { SearchIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { ModalPortalScope, useRootPortalContainer } from \"@constructive-io/ui/portal\";\nimport { cn } from \"../lib/utils\";\n\nfunction CommandDialog({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Dialog>) {\n const container = useRootPortalContainer();\n\n return (\n <CommandPrimitive.Dialog\n container={container ?? undefined}\n overlayClassName={cn(\n\t\t\"fixed inset-0 z-[var(--z-layer-toast)] bg-black/32 backdrop-blur-sm data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_150ms_ease-in] motion-reduce:animate-none\",\n )}\n contentClassName={cn(\n \"fixed left-1/2 top-[max(--spacing(4),4vh)] sm:top-[10vh] z-[var(--z-layer-toast)] -translate-x-1/2 flex max-h-100 min-h-0 w-full min-w-0 max-w-xl flex-col rounded-2xl border bg-popover bg-clip-padding text-popover-foreground shadow-lg max-sm:right-3 max-sm:left-3 max-sm:w-auto max-sm:translate-x-0 data-[state=open]:animate-[command-in_200ms_ease-out] data-[state=closed]:animate-[command-out_150ms_ease-in] motion-reduce:animate-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:bg-muted/50 before:shadow-[0_1px_--theme(--color-black/4%)] **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n loop\n {...props}\n >\n <ModalPortalScope>{children}</ModalPortalScope>\n </CommandPrimitive.Dialog>\n );\n}\n\nfunction CommandDialogPopup({\n children,\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"command-dialog-popup\" className={className} {...props}>\n {children}\n </div>\n );\n}\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n className={cn(\n \"flex h-full w-full flex-col overflow-hidden rounded-2xl\",\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\nfunction CommandInput({\n className,\n placeholder,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input>) {\n return (\n <div className=\"px-2.5 py-1.5\" data-slot=\"command-input-wrapper\">\n <div\n className={cn(\n \"flex items-center gap-2 rounded-lg px-3 text-base\",\n className,\n )}\n >\n <SearchIcon className=\"size-4 shrink-0 text-muted-foreground\" />\n <CommandPrimitive.Input\n className=\"flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder={placeholder}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n </div>\n );\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n className={cn(\"not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden\", className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\nfunction CommandEmpty({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n className={cn(\"not-empty:py-6\", className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\nfunction CommandPanel({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"-mx-px relative min-h-0 rounded-t-xl border bg-popover bg-clip-padding shadow-xs [clip-path:inset(0_1px)] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 dark:bg-clip-border dark:before:shadow-[0_-1px_--theme(--color-white/8%)]\",\n className,\n )}\n data-slot=\"command-panel\"\n {...props}\n />\n );\n}\n\nfunction CommandGroup({\n className,\n heading,\n children,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group> & {\n heading?: React.ReactNode;\n}) {\n return (\n <CommandPrimitive.Group\n className={cn(\n \"overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n className,\n )}\n heading={heading}\n data-slot=\"command-group\"\n {...props}\n >\n {children}\n </CommandPrimitive.Group>\n );\n}\n\nfunction CommandGroupLabel({\n className,\n ...props\n}: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"px-2 py-1.5 text-xs font-medium text-muted-foreground\",\n className,\n )}\n data-slot=\"command-group-label\"\n {...props}\n />\n );\n}\n\nfunction CommandCollection({ children }: { children: React.ReactNode }) {\n return <>{children}</>;\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none pointer-coarse:min-h-11 data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n className={cn(\"-mx-1 my-2 h-px bg-border\", className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\nfunction CommandShortcut({ className, ...props }: React.ComponentProps<\"kbd\">) {\n return (\n <span\n className={cn(\n \"ms-auto font-medium text-muted-foreground/72 text-xs tracking-widest\",\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\nfunction CommandFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] px-5 py-3 text-muted-foreground text-xs\",\n className,\n )}\n data-slot=\"command-footer\"\n {...props}\n />\n );\n}\n\nexport {\n Command,\n CommandCollection,\n CommandDialog,\n CommandDialogPopup,\n CommandEmpty,\n CommandFooter,\n CommandGroup,\n CommandGroupLabel,\n CommandInput,\n CommandItem,\n CommandList,\n CommandPanel,\n CommandSeparator,\n CommandShortcut,\n};\n"],"mappings":";;;;;;;;;;;;;AAQA,SAAS,cAAc,EACrB,WACA,UACA,GAAG,SACoD;CACvD,MAAM,mEAAmC;CAEzC,OACE,2CAACA,aAAiB,QAAlB;EACE,WAAW,aAAa;EACxB,kBAAkBC,iBACtB,wMACI;EACA,kBAAkBA,iBAChB,wuBACA,SACF;EACA;EACA,GAAI;YAEJ,2CAACC,6CAAD,EAAmB,SAA2B;CACvB;AAE7B;AAEA,SAAS,mBAAmB,EAC1B,UACA,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EAAK,aAAU;EAAkC;EAAW,GAAI;EAC7D;CACE;AAET;AAEA,SAAS,QAAQ,EACf,WACA,GAAG,SAC6C;CAChD,OACE,2CAACF,cAAD;EACE,WAAWC,iBACT,2DACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,aACA,GAAG,SACmD;CACtD,OACE,2CAAC,OAAD;EAAK,WAAU;EAAgB,aAAU;YACvC,4CAAC,OAAD;GACE,WAAWA,iBACT,qDACA,SACF;aAJF,CAME,2CAACE,yBAAD,EAAY,WAAU,wCAAyC,IAC/D,2CAACH,aAAiB,OAAlB;IACE,WAAU;IACG;IACb,aAAU;IACV,GAAI;GACL,EACE;;CACF;AAET;AAEA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,2CAACA,aAAiB,MAAlB;EACE,WAAWC,iBAAG,uFAAuF,SAAS;EAC9G,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;CACtD,OACE,2CAACD,aAAiB,OAAlB;EACE,WAAWC,iBAAG,kBAAkB,SAAS;EACzC,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAAsC;CAC1E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yUACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,aAAa,EACpB,WACA,SACA,UACA,GAAG,SAGF;CACD,OACE,2CAACD,aAAiB,OAAlB;EACE,WAAWC,iBACT,sNACA,SACF;EACS;EACT,aAAU;EACV,GAAI;EAEH;CACqB;AAE5B;AAEA,SAAS,kBAAkB,EACzB,WACA,GAAG,SAC2B;CAC9B,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,yDACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,kBAAkB,EAAE,YAA2C;CACtE,OAAO,yEAAG,SAAW;AACvB;AAEA,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;CACrD,OACE,2CAACD,aAAiB,MAAlB;EACE,WAAWC,iBACT,uRACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,iBAAiB,EACxB,WACA,GAAG,SACuD;CAC1D,OACE,2CAACD,aAAiB,WAAlB;EACE,WAAWC,iBAAG,6BAA6B,SAAS;EACpD,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAsC;CAC7E,OACE,2CAAC,QAAD;EACE,WAAWA,iBACT,wEACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL;AAEA,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;CAC3E,OACE,2CAAC,OAAD;EACE,WAAWA,iBACT,2HACA,SACF;EACA,aAAU;EACV,GAAI;CACL;AAEL"}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare function CommandDialog({ className, children, ...props }: React.ComponentProps<typeof Command$1.Dialog>): React.JSX.Element;
|
|
5
|
-
declare function CommandDialogPopup({ children, className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
6
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): React.JSX.Element;
|
|
7
|
-
declare function CommandInput({ className, placeholder, ...props }: React.ComponentProps<typeof Command$1.Input>): React.JSX.Element;
|
|
8
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): React.JSX.Element;
|
|
9
|
-
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof Command$1.Empty>): React.JSX.Element;
|
|
10
|
-
declare function CommandPanel({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
-
declare function CommandGroup({ className, heading, children, ...props }: React.ComponentProps<typeof Command$1.Group> & {
|
|
12
|
-
|
|
13
|
-
}): React.JSX.Element;
|
|
14
|
-
declare function CommandGroupLabel({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Command as Command$1 } from "cmdk";
|
|
3
|
+
//#region src/components/command.d.ts
|
|
4
|
+
declare function CommandDialog({ className, children, ...props }: React$1.ComponentProps<typeof Command$1.Dialog>): React$1.JSX.Element;
|
|
5
|
+
declare function CommandDialogPopup({ children, className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
6
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
7
|
+
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
8
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): React$1.JSX.Element;
|
|
9
|
+
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
10
|
+
declare function CommandPanel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
11
|
+
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|
|
12
|
+
heading?: React$1.ReactNode;
|
|
13
|
+
}): React$1.JSX.Element;
|
|
14
|
+
declare function CommandGroupLabel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
15
15
|
declare function CommandCollection({ children }: {
|
|
16
|
-
|
|
17
|
-
}): React.JSX.Element;
|
|
18
|
-
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
|
|
19
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): React.JSX.Element;
|
|
20
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"kbd">): React.JSX.Element;
|
|
21
|
-
declare function CommandFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
22
|
-
|
|
16
|
+
children: React$1.ReactNode;
|
|
17
|
+
}): React$1.JSX.Element;
|
|
18
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): React$1.JSX.Element;
|
|
19
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): React$1.JSX.Element;
|
|
20
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
21
|
+
declare function CommandFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
23
|
export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
|
|
24
|
+
//# sourceMappingURL=command.d.cts.map
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare function CommandDialog({ className, children, ...props }: React.ComponentProps<typeof Command$1.Dialog>): React.JSX.Element;
|
|
5
|
-
declare function CommandDialogPopup({ children, className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
6
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof Command$1>): React.JSX.Element;
|
|
7
|
-
declare function CommandInput({ className, placeholder, ...props }: React.ComponentProps<typeof Command$1.Input>): React.JSX.Element;
|
|
8
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof Command$1.List>): React.JSX.Element;
|
|
9
|
-
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof Command$1.Empty>): React.JSX.Element;
|
|
10
|
-
declare function CommandPanel({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
-
declare function CommandGroup({ className, heading, children, ...props }: React.ComponentProps<typeof Command$1.Group> & {
|
|
12
|
-
|
|
13
|
-
}): React.JSX.Element;
|
|
14
|
-
declare function CommandGroupLabel({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Command as Command$1 } from "cmdk";
|
|
3
|
+
//#region src/components/command.d.ts
|
|
4
|
+
declare function CommandDialog({ className, children, ...props }: React$1.ComponentProps<typeof Command$1.Dialog>): React$1.JSX.Element;
|
|
5
|
+
declare function CommandDialogPopup({ children, className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
6
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): React$1.JSX.Element;
|
|
7
|
+
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): React$1.JSX.Element;
|
|
8
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): React$1.JSX.Element;
|
|
9
|
+
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): React$1.JSX.Element;
|
|
10
|
+
declare function CommandPanel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
11
|
+
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|
|
12
|
+
heading?: React$1.ReactNode;
|
|
13
|
+
}): React$1.JSX.Element;
|
|
14
|
+
declare function CommandGroupLabel({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
15
15
|
declare function CommandCollection({ children }: {
|
|
16
|
-
|
|
17
|
-
}): React.JSX.Element;
|
|
18
|
-
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof Command$1.Item>): React.JSX.Element;
|
|
19
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof Command$1.Separator>): React.JSX.Element;
|
|
20
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"kbd">): React.JSX.Element;
|
|
21
|
-
declare function CommandFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
22
|
-
|
|
16
|
+
children: React$1.ReactNode;
|
|
17
|
+
}): React$1.JSX.Element;
|
|
18
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): React$1.JSX.Element;
|
|
19
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): React$1.JSX.Element;
|
|
20
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
21
|
+
declare function CommandFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
22
|
+
//#endregion
|
|
23
23
|
export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
|
|
24
|
+
//# sourceMappingURL=command.d.ts.map
|