@constructive-io/ui 0.4.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -22
- package/dist/button-D4vqTxhp.d.cts +20 -0
- package/dist/button-D4vqTxhp.d.ts +20 -0
- package/dist/components/alert-dialog.cjs +129 -0
- package/dist/components/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog.d.cts +33 -0
- package/dist/components/alert-dialog.d.ts +23 -21
- package/dist/components/alert-dialog.js +98 -296
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +62 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.d.cts +19 -0
- package/dist/components/alert.d.ts +18 -13
- package/dist/components/alert.js +49 -31
- package/dist/components/alert.js.map +1 -1
- package/dist/components/app-bar.cjs +81 -0
- package/dist/components/app-bar.cjs.map +1 -0
- package/dist/components/app-bar.d.cts +27 -0
- package/dist/components/app-bar.d.ts +27 -0
- package/dist/components/app-bar.js +77 -0
- package/dist/components/app-bar.js.map +1 -0
- package/dist/components/app-shell.cjs +267 -0
- package/dist/components/app-shell.cjs.map +1 -0
- package/dist/components/app-shell.d.cts +98 -0
- package/dist/components/app-shell.d.ts +98 -0
- package/dist/components/app-shell.js +264 -0
- package/dist/components/app-shell.js.map +1 -0
- package/dist/components/autocomplete.cjs +167 -0
- package/dist/components/autocomplete.cjs.map +1 -0
- package/dist/components/autocomplete.d.cts +28 -0
- package/dist/components/autocomplete.d.ts +24 -24
- package/dist/components/autocomplete.js +146 -397
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +39 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.d.cts +13 -0
- package/dist/components/avatar.d.ts +11 -11
- package/dist/components/avatar.js +24 -27
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +48 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.d.cts +15 -0
- 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 +89 -0
- package/dist/components/breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb.d.cts +15 -0
- package/dist/components/breadcrumb.d.ts +14 -13
- package/dist/components/breadcrumb.js +63 -137
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +75 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.d.cts +2 -0
- package/dist/components/button.d.ts +2 -17
- package/dist/components/button.js +66 -57
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +72 -0
- package/dist/components/calendar-rac.cjs.map +1 -0
- package/dist/components/calendar-rac.d.cts +13 -0
- 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 +86 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.d.cts +17 -0
- package/dist/components/card.d.ts +15 -17
- package/dist/components/card.js +58 -57
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +19 -0
- package/dist/components/checkbox-group.cjs.map +1 -0
- package/dist/components/checkbox-group.d.cts +7 -0
- 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 +67 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.d.cts +8 -0
- package/dist/components/checkbox.d.ts +6 -6
- package/dist/components/checkbox.js +58 -61
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +90 -0
- package/dist/components/collapsible.cjs.map +1 -0
- package/dist/components/collapsible.d.cts +45 -0
- package/dist/components/collapsible.d.ts +19 -28
- package/dist/components/collapsible.js +74 -112
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +257 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.d.cts +44 -0
- package/dist/components/combobox.d.ts +36 -36
- package/dist/components/combobox.js +229 -515
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +139 -0
- package/dist/components/command.cjs.map +1 -0
- package/dist/components/command.d.cts +24 -0
- package/dist/components/command.d.ts +22 -22
- package/dist/components/command.js +109 -240
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +139 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.d.cts +31 -0
- package/dist/components/dialog.d.ts +27 -31
- package/dist/components/dialog.js +112 -429
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +90 -0
- package/dist/components/dock.cjs.map +1 -0
- package/dist/components/dock.d.cts +30 -0
- package/dist/components/dock.d.ts +25 -26
- package/dist/components/dock.js +78 -104
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +115 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.d.cts +16 -0
- package/dist/components/drawer.d.ts +15 -15
- package/dist/components/drawer.js +77 -121
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +217 -0
- package/dist/components/dropdown-menu.cjs.map +1 -0
- package/dist/components/dropdown-menu.d.cts +53 -0
- package/dist/components/dropdown-menu.d.ts +49 -46
- package/dist/components/dropdown-menu.js +177 -357
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +72 -0
- package/dist/components/empty.cjs.map +1 -0
- package/dist/components/empty.d.cts +15 -0
- package/dist/components/empty.d.ts +15 -0
- package/dist/components/empty.js +64 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.cjs +186 -0
- package/dist/components/field.cjs.map +1 -0
- package/dist/components/field.d.cts +46 -0
- package/dist/components/field.d.ts +44 -49
- package/dist/components/field.js +166 -108
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +153 -0
- package/dist/components/flickering-grid.cjs.map +1 -0
- package/dist/components/flickering-grid.d.cts +16 -0
- package/dist/components/flickering-grid.d.ts +14 -13
- package/dist/components/flickering-grid.js +144 -141
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +62 -0
- package/dist/components/flow-zoom-panel.cjs.map +1 -0
- package/dist/components/flow-zoom-panel.d.cts +12 -0
- package/dist/components/flow-zoom-panel.d.ts +12 -0
- package/dist/components/flow-zoom-panel.js +61 -0
- package/dist/components/flow-zoom-panel.js.map +1 -0
- package/dist/components/form-control.cjs +65 -0
- package/dist/components/form-control.cjs.map +1 -0
- package/dist/components/form-control.d.cts +15 -0
- package/dist/components/form-control.d.ts +11 -11
- package/dist/components/form-control.js +56 -167
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +102 -0
- package/dist/components/form.cjs.map +1 -0
- package/dist/components/form.d.cts +2 -0
- package/dist/components/form.d.ts +2 -37
- package/dist/components/form.js +76 -163
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +70 -0
- package/dist/components/input-group.cjs.map +1 -0
- package/dist/components/input-group.d.cts +16 -0
- package/dist/components/input-group.d.ts +14 -16
- package/dist/components/input-group.js +51 -163
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.cjs +37 -0
- package/dist/components/input.cjs.map +1 -0
- package/dist/components/input.d.cts +2 -0
- package/dist/components/input.d.ts +2 -11
- package/dist/components/input.js +30 -54
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.cjs +147 -0
- package/dist/components/json-input.cjs.map +1 -0
- package/dist/components/json-input.d.cts +26 -0
- package/dist/components/json-input.d.ts +20 -19
- package/dist/components/json-input.js +132 -340
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/label.cjs +27 -0
- package/dist/components/label.cjs.map +1 -0
- package/dist/components/label.d.cts +11 -0
- package/dist/components/label.d.ts +6 -6
- package/dist/components/label.js +17 -20
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +68 -0
- package/dist/components/motion-grid.cjs.map +1 -0
- package/dist/components/motion-grid.d.cts +20 -0
- package/dist/components/motion-grid.d.ts +15 -15
- package/dist/components/motion-grid.js +59 -75
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +573 -0
- package/dist/components/multi-select.cjs.map +1 -0
- package/dist/components/multi-select.d.cts +198 -0
- package/dist/components/multi-select.d.ts +173 -173
- package/dist/components/multi-select.js +562 -874
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +30 -0
- package/dist/components/page-header.cjs.map +1 -0
- package/dist/components/page-header.d.cts +17 -0
- 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 +95 -0
- package/dist/components/pagination.cjs.map +1 -0
- package/dist/components/pagination.d.cts +17 -0
- package/dist/components/pagination.d.ts +15 -17
- package/dist/components/pagination.js +70 -128
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.cjs +97 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.d.cts +40 -0
- package/dist/components/popover.d.ts +33 -28
- package/dist/components/popover.js +78 -178
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.cjs +156 -0
- package/dist/components/portal.cjs.map +1 -0
- package/dist/components/portal.d.cts +118 -0
- package/dist/components/portal.d.ts +33 -23
- package/dist/components/portal.js +128 -57
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.cjs +30 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.d.cts +10 -0
- package/dist/components/progress.d.ts +8 -8
- package/dist/components/progress.js +21 -24
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +76 -0
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -0
- package/dist/components/progressive-blur-scroll-container.d.cts +25 -0
- 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 +46 -0
- package/dist/components/progressive-blur.cjs.map +1 -0
- package/dist/components/progressive-blur.d.cts +17 -0
- 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 +38 -0
- package/dist/components/radio-group.cjs.map +1 -0
- package/dist/components/radio-group.d.cts +10 -0
- package/dist/components/radio-group.d.ts +8 -8
- package/dist/components/radio-group.js +28 -30
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +8 -0
- package/dist/components/record-picker.d.cts +16 -0
- package/dist/components/record-picker.d.ts +13 -13
- package/dist/components/record-picker.js +5 -364
- package/dist/components/resizable.cjs +50 -0
- package/dist/components/resizable.cjs.map +1 -0
- package/dist/components/resizable.d.cts +11 -0
- package/dist/components/resizable.d.ts +10 -10
- package/dist/components/resizable.js +29 -37
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +56 -0
- package/dist/components/responsive-diagram.cjs.map +1 -0
- package/dist/components/responsive-diagram.d.cts +10 -0
- 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 +46 -0
- package/dist/components/scroll-area.cjs.map +1 -0
- package/dist/components/scroll-area.d.cts +12 -0
- package/dist/components/scroll-area.d.ts +11 -11
- package/dist/components/scroll-area.js +35 -62
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +204 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.d.cts +47 -0
- package/dist/components/select.d.ts +38 -38
- package/dist/components/select.js +172 -269
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +23 -0
- package/dist/components/separator.cjs.map +1 -0
- package/dist/components/separator.d.cts +2 -0
- package/dist/components/separator.d.ts +2 -11
- package/dist/components/separator.js +14 -18
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +19 -0
- package/dist/components/sheet.d.cts +107 -0
- package/dist/components/sheet.d.ts +85 -90
- package/dist/components/sheet.js +3 -598
- package/dist/components/sidebar.cjs +29 -0
- package/dist/components/sidebar.d.cts +67 -0
- package/dist/components/sidebar.d.ts +63 -73
- package/dist/components/sidebar.js +3 -1215
- package/dist/components/skeleton.cjs +24 -0
- package/dist/components/skeleton.cjs.map +1 -0
- package/dist/components/skeleton.d.cts +11 -0
- package/dist/components/skeleton.d.ts +10 -6
- package/dist/components/skeleton.js +15 -10
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/sonner.cjs +23 -0
- package/dist/components/sonner.cjs.map +1 -0
- package/dist/components/sonner.d.cts +10 -0
- 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 +44 -0
- package/dist/components/stack/index.d.cts +2 -0
- package/dist/components/stack/index.d.ts +2 -674
- package/dist/components/stack/index.js +3 -1444
- package/dist/components/stepper.cjs +160 -0
- package/dist/components/stepper.cjs.map +1 -0
- package/dist/components/stepper.d.cts +32 -0
- package/dist/components/stepper.d.ts +27 -25
- package/dist/components/stepper.js +133 -261
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +35 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.d.cts +8 -0
- package/dist/components/switch.d.ts +7 -7
- package/dist/components/switch.js +26 -34
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +85 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.d.cts +23 -0
- package/dist/components/table.d.ts +23 -15
- package/dist/components/table.js +56 -46
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +49 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.d.cts +10 -0
- package/dist/components/tabs.d.ts +9 -9
- package/dist/components/tabs.js +31 -36
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +132 -0
- package/dist/components/tags.cjs.map +1 -0
- package/dist/components/tags.d.cts +36 -0
- package/dist/components/tags.d.ts +24 -28
- package/dist/components/tags.js +114 -438
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +34 -0
- package/dist/components/textarea.cjs.map +1 -0
- package/dist/components/textarea.d.cts +10 -0
- package/dist/components/textarea.d.ts +8 -8
- package/dist/components/textarea.js +27 -48
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +9 -0
- package/dist/components/toast/index.d.cts +2 -0
- package/dist/components/toast/index.d.ts +2 -52
- package/dist/components/toast/index.js +3 -623
- package/dist/components/tooltip.cjs +67 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.d.cts +2 -0
- package/dist/components/tooltip.d.ts +2 -29
- package/dist/components/tooltip.js +53 -166
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +24 -0
- package/dist/components/unlink-button.cjs.map +1 -0
- package/dist/components/unlink-button.d.cts +14 -0
- package/dist/components/unlink-button.d.ts +11 -11
- package/dist/components/unlink-button.js +18 -86
- 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 -9346
- package/dist/index.d.cts +224 -2548
- package/dist/index.d.ts +224 -2548
- package/dist/index.js +65 -9022
- package/dist/input-CBrCuMH8.d.cts +11 -0
- package/dist/input-CBrCuMH8.d.ts +11 -0
- package/dist/motion-config-COCFHq1L.cjs +271 -0
- package/dist/motion-config-COCFHq1L.cjs.map +1 -0
- package/dist/motion-config-COsZ6azM.js +241 -0
- package/dist/motion-config-COsZ6azM.js.map +1 -0
- package/dist/record-picker-BbxngCeV.js +162 -0
- package/dist/record-picker-BbxngCeV.js.map +1 -0
- package/dist/record-picker-Bz4FApxD.cjs +167 -0
- package/dist/record-picker-Bz4FApxD.cjs.map +1 -0
- package/dist/rolldown-runtime-D_qnwXdH.cjs +35 -0
- package/dist/separator-BQEsr0Rc.d.cts +11 -0
- package/dist/separator-BQEsr0Rc.d.ts +11 -0
- package/dist/sheet-BLHnhLRH.js +425 -0
- package/dist/sheet-BLHnhLRH.js.map +1 -0
- package/dist/sheet-BdA0rfIz.cjs +515 -0
- package/dist/sheet-BdA0rfIz.cjs.map +1 -0
- package/dist/sidebar-CPy_fibW.cjs +608 -0
- package/dist/sidebar-CPy_fibW.cjs.map +1 -0
- package/dist/sidebar-Cfax0g0_.js +463 -0
- package/dist/sidebar-Cfax0g0_.js.map +1 -0
- package/dist/slot-C-jEfihz.cjs +122 -0
- package/dist/slot-C-jEfihz.cjs.map +1 -0
- package/dist/slot-EL8zfLG0.js +97 -0
- package/dist/slot-EL8zfLG0.js.map +1 -0
- package/dist/stack-DKdvlOM6.cjs +1771 -0
- package/dist/stack-DKdvlOM6.cjs.map +1 -0
- package/dist/stack-jMdxDrex.js +1531 -0
- package/dist/stack-jMdxDrex.js.map +1 -0
- package/dist/toast-D6MqijT2.cjs +316 -0
- package/dist/toast-D6MqijT2.cjs.map +1 -0
- package/dist/toast-D_BOLzm3.js +287 -0
- package/dist/toast-D_BOLzm3.js.map +1 -0
- package/dist/tooltip-CTRQoN1A.d.cts +29 -0
- package/dist/tooltip-CTRQoN1A.d.ts +29 -0
- package/dist/utils-BkMLyah9.js +12 -0
- package/dist/utils-BkMLyah9.js.map +1 -0
- package/dist/utils-CzTQ3-VI.cjs +17 -0
- package/dist/utils-CzTQ3-VI.cjs.map +1 -0
- package/package.json +288 -47
- package/src/styles/globals.css +155 -203
- package/dist/components/org-chart/index.d.ts +0 -54
- package/dist/components/org-chart/index.js +0 -861
- package/dist/components/org-chart/index.js.map +0 -1
- package/dist/components/record-picker.js.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/stack/index.js.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
5
|
+
const require_components_button = require('./button.cjs');
|
|
6
|
+
const require_components_badge = require('./badge.cjs');
|
|
7
|
+
const require_components_popover = require('./popover.cjs');
|
|
8
|
+
const require_components_command = require('./command.cjs');
|
|
9
|
+
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
let lucide_react = require("lucide-react");
|
|
12
|
+
|
|
13
|
+
//#region src/components/tags.tsx
|
|
14
|
+
const TagsContext = (0, react.createContext)({
|
|
15
|
+
value: void 0,
|
|
16
|
+
setValue: void 0,
|
|
17
|
+
open: false,
|
|
18
|
+
onOpenChange: () => {},
|
|
19
|
+
width: void 0,
|
|
20
|
+
setWidth: void 0
|
|
21
|
+
});
|
|
22
|
+
const useTagsContext = () => {
|
|
23
|
+
const context = (0, react.useContext)(TagsContext);
|
|
24
|
+
if (!context) throw new Error("useTagsContext must be used within a TagsProvider");
|
|
25
|
+
return context;
|
|
26
|
+
};
|
|
27
|
+
const Tags = ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className }) => {
|
|
28
|
+
const [uncontrolledOpen, setUncontrolledOpen] = (0, react.useState)(false);
|
|
29
|
+
const [width, setWidth] = (0, react.useState)();
|
|
30
|
+
const ref = (0, react.useRef)(null);
|
|
31
|
+
const open = controlledOpen ?? uncontrolledOpen;
|
|
32
|
+
const onOpenChange = controlledOnOpenChange ?? setUncontrolledOpen;
|
|
33
|
+
(0, react.useEffect)(() => {
|
|
34
|
+
if (!ref.current) return;
|
|
35
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
36
|
+
setWidth(entries[0].contentRect.width);
|
|
37
|
+
});
|
|
38
|
+
resizeObserver.observe(ref.current);
|
|
39
|
+
return () => {
|
|
40
|
+
resizeObserver.disconnect();
|
|
41
|
+
};
|
|
42
|
+
}, []);
|
|
43
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TagsContext.Provider, {
|
|
44
|
+
value: {
|
|
45
|
+
value,
|
|
46
|
+
setValue,
|
|
47
|
+
open,
|
|
48
|
+
onOpenChange,
|
|
49
|
+
width,
|
|
50
|
+
setWidth
|
|
51
|
+
},
|
|
52
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_popover.Popover, {
|
|
53
|
+
onOpenChange,
|
|
54
|
+
open,
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
56
|
+
className: require_utils.cn("relative w-full", className),
|
|
57
|
+
ref,
|
|
58
|
+
children
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const TagsTrigger = ({ className, children, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_popover.PopoverTrigger, {
|
|
64
|
+
asChild: true,
|
|
65
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_button.Button, {
|
|
66
|
+
className: require_utils.cn("h-auto w-full justify-between p-2", className),
|
|
67
|
+
role: "combobox",
|
|
68
|
+
variant: "outline",
|
|
69
|
+
...props,
|
|
70
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
71
|
+
className: "flex flex-wrap items-center gap-1",
|
|
72
|
+
children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
73
|
+
className: "text-muted-foreground px-2 py-px",
|
|
74
|
+
children: "Select a tag..."
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
const TagsValue = ({ className, children, onRemove, ...props }) => {
|
|
80
|
+
const handleRemove = (event) => {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
event.stopPropagation();
|
|
83
|
+
onRemove?.();
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_badge.Badge, {
|
|
86
|
+
className: require_utils.cn("flex items-center gap-2", className),
|
|
87
|
+
...props,
|
|
88
|
+
children: [children, onRemove && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
89
|
+
className: "hover:text-muted-foreground size-auto cursor-pointer",
|
|
90
|
+
onClick: handleRemove,
|
|
91
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.XIcon, { size: 12 })
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
const TagsContent = ({ className, children, ...props }) => {
|
|
96
|
+
const { width } = useTagsContext();
|
|
97
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_popover.PopoverContent, {
|
|
98
|
+
className: require_utils.cn("p-0", className),
|
|
99
|
+
style: { width },
|
|
100
|
+
...props,
|
|
101
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_command.Command, { children })
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
const TagsInput = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_command.CommandInput, {
|
|
105
|
+
className: require_utils.cn("h-9", className),
|
|
106
|
+
...props
|
|
107
|
+
});
|
|
108
|
+
const TagsList = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_command.CommandList, {
|
|
109
|
+
className: require_utils.cn("max-h-[200px]", className),
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
const TagsEmpty = ({ children, className: _className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_command.CommandEmpty, {
|
|
113
|
+
...props,
|
|
114
|
+
children: children ?? "No tags found."
|
|
115
|
+
});
|
|
116
|
+
const TagsGroup = require_components_command.CommandGroup;
|
|
117
|
+
const TagsItem = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_command.CommandItem, {
|
|
118
|
+
className: require_utils.cn("cursor-pointer items-center justify-between", className),
|
|
119
|
+
...props
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
//#endregion
|
|
123
|
+
exports.Tags = Tags;
|
|
124
|
+
exports.TagsContent = TagsContent;
|
|
125
|
+
exports.TagsEmpty = TagsEmpty;
|
|
126
|
+
exports.TagsGroup = TagsGroup;
|
|
127
|
+
exports.TagsInput = TagsInput;
|
|
128
|
+
exports.TagsItem = TagsItem;
|
|
129
|
+
exports.TagsList = TagsList;
|
|
130
|
+
exports.TagsTrigger = TagsTrigger;
|
|
131
|
+
exports.TagsValue = TagsValue;
|
|
132
|
+
//# sourceMappingURL=tags.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.cjs","names":["Popover","cn","PopoverTrigger","Button","Badge","XIcon","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","CommandItem"],"sources":["../../src/components/tags.tsx"],"sourcesContent":["'use client';\n\nimport {\n\tcreateContext,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n\ttype ComponentProps,\n\ttype MouseEventHandler,\n\ttype ReactNode,\n} from 'react';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\nimport { Badge } from './badge';\nimport { Button } from './button';\nimport { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from './command';\nimport { Popover, PopoverContent, PopoverTrigger } from './popover';\n\ntype TagsContextType = {\n\tvalue?: string;\n\tsetValue?: (value: string) => void;\n\topen: boolean;\n\tonOpenChange: (open: boolean) => void;\n\twidth?: number;\n\tsetWidth?: (width: number) => void;\n};\n\nconst TagsContext = createContext<TagsContextType>({\n\tvalue: undefined,\n\tsetValue: undefined,\n\topen: false,\n\tonOpenChange: () => {},\n\twidth: undefined,\n\tsetWidth: undefined,\n});\n\nconst useTagsContext = () => {\n\tconst context = useContext(TagsContext);\n\n\tif (!context) {\n\t\tthrow new Error('useTagsContext must be used within a TagsProvider');\n\t}\n\n\treturn context;\n};\n\nexport type TagsProps = {\n\tvalue?: string;\n\tsetValue?: (value: string) => void;\n\topen?: boolean;\n\tonOpenChange?: (open: boolean) => void;\n\tchildren?: ReactNode;\n\tclassName?: string;\n};\n\nexport const Tags = ({\n\tvalue,\n\tsetValue,\n\topen: controlledOpen,\n\tonOpenChange: controlledOnOpenChange,\n\tchildren,\n\tclassName,\n}: TagsProps) => {\n\tconst [uncontrolledOpen, setUncontrolledOpen] = useState(false);\n\tconst [width, setWidth] = useState<number>();\n\tconst ref = useRef<HTMLDivElement>(null);\n\n\tconst open = controlledOpen ?? uncontrolledOpen;\n\tconst onOpenChange = controlledOnOpenChange ?? setUncontrolledOpen;\n\n\tuseEffect(() => {\n\t\tif (!ref.current) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst resizeObserver = new ResizeObserver((entries) => {\n\t\t\tsetWidth(entries[0].contentRect.width);\n\t\t});\n\n\t\tresizeObserver.observe(ref.current);\n\n\t\treturn () => {\n\t\t\tresizeObserver.disconnect();\n\t\t};\n\t}, []);\n\n\treturn (\n\t\t<TagsContext.Provider value={{ value, setValue, open, onOpenChange, width, setWidth }}>\n\t\t\t<Popover onOpenChange={onOpenChange} open={open}>\n\t\t\t\t<div className={cn('relative w-full', className)} ref={ref}>\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</Popover>\n\t\t</TagsContext.Provider>\n\t);\n};\n\nexport type TagsTriggerProps = ComponentProps<typeof Button>;\n\nexport const TagsTrigger = ({ className, children, ...props }: TagsTriggerProps) => (\n\t<PopoverTrigger asChild>\n\t\t<Button\n\t\t\tclassName={cn('h-auto w-full justify-between p-2', className)}\n\t\t\t// biome-ignore lint/a11y/useSemanticElements: \"Required\"\n\t\t\trole='combobox'\n\t\t\tvariant='outline'\n\t\t\t{...props}\n\t\t>\n\t\t\t<div className='flex flex-wrap items-center gap-1'>\n\t\t\t\t{children}\n\t\t\t\t<span className='text-muted-foreground px-2 py-px'>Select a tag...</span>\n\t\t\t</div>\n\t\t</Button>\n\t</PopoverTrigger>\n);\n\nexport type TagsValueProps = ComponentProps<typeof Badge>;\n\nexport const TagsValue = ({ className, children, onRemove, ...props }: TagsValueProps & { onRemove?: () => void }) => {\n\tconst handleRemove: MouseEventHandler<HTMLDivElement> = (event) => {\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\tonRemove?.();\n\t};\n\n\treturn (\n\t\t<Badge className={cn('flex items-center gap-2', className)} {...props}>\n\t\t\t{children}\n\t\t\t{onRemove && (\n\t\t\t\t// biome-ignore lint/a11y/noStaticElementInteractions: \"This is a clickable badge\"\n\t\t\t\t// biome-ignore lint/a11y/useKeyWithClickEvents: \"This is a clickable badge\"\n\t\t\t\t<div className='hover:text-muted-foreground size-auto cursor-pointer' onClick={handleRemove}>\n\t\t\t\t\t<XIcon size={12} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</Badge>\n\t);\n};\n\nexport type TagsContentProps = ComponentProps<typeof PopoverContent>;\n\nexport const TagsContent = ({ className, children, ...props }: TagsContentProps) => {\n\tconst { width } = useTagsContext();\n\n\treturn (\n\t\t<PopoverContent className={cn('p-0', className)} style={{ width }} {...props}>\n\t\t\t<Command>{children}</Command>\n\t\t</PopoverContent>\n\t);\n};\n\nexport type TagsInputProps = ComponentProps<typeof CommandInput>;\n\nexport const TagsInput = ({ className, ...props }: TagsInputProps) => (\n\t<CommandInput className={cn('h-9', className)} {...props} />\n);\n\nexport type TagsListProps = ComponentProps<typeof CommandList>;\n\nexport const TagsList = ({ className, ...props }: TagsListProps) => (\n\t<CommandList className={cn('max-h-[200px]', className)} {...props} />\n);\n\nexport type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;\n\nexport const TagsEmpty = ({ children, className: _className, ...props }: TagsEmptyProps) => (\n\t<CommandEmpty {...props}>{children ?? 'No tags found.'}</CommandEmpty>\n);\n\nexport type TagsGroupProps = ComponentProps<typeof CommandGroup>;\n\nexport const TagsGroup = CommandGroup;\n\nexport type TagsItemProps = ComponentProps<typeof CommandItem>;\n\nexport const TagsItem = ({ className, ...props }: TagsItemProps) => (\n\t<CommandItem className={cn('cursor-pointer items-center justify-between', className)} {...props} />\n);\n"],"mappings":";;;;;;;;;;;;;AA6BA,MAAM,uCAA6C;CAClD,OAAO;CACP,UAAU;CACV,MAAM;CACN,oBAAoB,CAAC;CACrB,OAAO;CACP,UAAU;AACX,CAAC;AAED,MAAM,uBAAuB;CAC5B,MAAM,gCAAqB,WAAW;CAEtC,IAAI,CAAC,SACJ,MAAM,IAAI,MAAM,mDAAmD;CAGpE,OAAO;AACR;AAWA,MAAa,QAAQ,EACpB,OACA,UACA,MAAM,gBACN,cAAc,wBACd,UACA,gBACgB;CAChB,MAAM,CAAC,kBAAkB,2CAAgC,KAAK;CAC9D,MAAM,CAAC,OAAO,gCAA6B;CAC3C,MAAM,wBAA6B,IAAI;CAEvC,MAAM,OAAO,kBAAkB;CAC/B,MAAM,eAAe,0BAA0B;CAE/C,2BAAgB;EACf,IAAI,CAAC,IAAI,SACR;EAGD,MAAM,iBAAiB,IAAI,gBAAgB,YAAY;GACtD,SAAS,QAAQ,EAAE,CAAC,YAAY,KAAK;EACtC,CAAC;EAED,eAAe,QAAQ,IAAI,OAAO;EAElC,aAAa;GACZ,eAAe,WAAW;EAC3B;CACD,GAAG,CAAC,CAAC;CAEL,OACC,2CAAC,YAAY,UAAb;EAAsB,OAAO;GAAE;GAAO;GAAU;GAAM;GAAc;GAAO;EAAS;YACnF,2CAACA,oCAAD;GAAuB;GAAoB;aAC1C,2CAAC,OAAD;IAAK,WAAWC,iBAAG,mBAAmB,SAAS;IAAQ;IACrD;GACG;EACG;CACY;AAExB;AAIA,MAAa,eAAe,EAAE,WAAW,UAAU,GAAG,YACrD,2CAACC,2CAAD;CAAgB;WACf,2CAACC,kCAAD;EACC,WAAWF,iBAAG,qCAAqC,SAAS;EAE5D,MAAK;EACL,SAAQ;EACR,GAAI;YAEJ,4CAAC,OAAD;GAAK,WAAU;aAAf,CACE,UACD,2CAAC,QAAD;IAAM,WAAU;cAAmC;GAAqB,EACpE;;CACE;AACO;AAKjB,MAAa,aAAa,EAAE,WAAW,UAAU,UAAU,GAAG,YAAwD;CACrH,MAAM,gBAAmD,UAAU;EAClE,MAAM,eAAe;EACrB,MAAM,gBAAgB;EACtB,WAAW;CACZ;CAEA,OACC,4CAACG,gCAAD;EAAO,WAAWH,iBAAG,2BAA2B,SAAS;EAAG,GAAI;YAAhE,CACE,UACA,YAGA,2CAAC,OAAD;GAAK,WAAU;GAAuD,SAAS;aAC9E,2CAACI,oBAAD,EAAO,MAAM,GAAK;EACd,EAEA;;AAET;AAIA,MAAa,eAAe,EAAE,WAAW,UAAU,GAAG,YAA8B;CACnF,MAAM,EAAE,UAAU,eAAe;CAEjC,OACC,2CAACC,2CAAD;EAAgB,WAAWL,iBAAG,OAAO,SAAS;EAAG,OAAO,EAAE,MAAM;EAAG,GAAI;YACtE,2CAACM,oCAAD,EAAU,SAAkB;CACb;AAElB;AAIA,MAAa,aAAa,EAAE,WAAW,GAAG,YACzC,2CAACC,yCAAD;CAAc,WAAWP,iBAAG,OAAO,SAAS;CAAG,GAAI;AAAQ;AAK5D,MAAa,YAAY,EAAE,WAAW,GAAG,YACxC,2CAACQ,wCAAD;CAAa,WAAWR,iBAAG,iBAAiB,SAAS;CAAG,GAAI;AAAQ;AAKrE,MAAa,aAAa,EAAE,UAAU,WAAW,YAAY,GAAG,YAC/D,2CAACS,yCAAD;CAAc,GAAI;WAAQ,YAAY;AAA+B;AAKtE,MAAa,YAAYC;AAIzB,MAAa,YAAY,EAAE,WAAW,GAAG,YACxC,2CAACC,wCAAD;CAAa,WAAWX,iBAAG,+CAA+C,SAAS;CAAG,GAAI;AAAQ"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as Button } from "../button-D4vqTxhp.cjs";
|
|
2
|
+
import { Badge } from "./badge.cjs";
|
|
3
|
+
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./command.cjs";
|
|
4
|
+
import { PopoverContent } from "./popover.cjs";
|
|
5
|
+
import { ComponentProps, ReactNode } from "react";
|
|
6
|
+
//#region src/components/tags.d.ts
|
|
7
|
+
type TagsProps = {
|
|
8
|
+
value?: string;
|
|
9
|
+
setValue?: (value: string) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className }: TagsProps) => import("react").JSX.Element;
|
|
16
|
+
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
17
|
+
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) => import("react").JSX.Element;
|
|
18
|
+
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
19
|
+
declare const TagsValue: ({ className, children, onRemove, ...props }: TagsValueProps & {
|
|
20
|
+
onRemove?: () => void;
|
|
21
|
+
}) => import("react").JSX.Element;
|
|
22
|
+
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
23
|
+
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) => import("react").JSX.Element;
|
|
24
|
+
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
25
|
+
declare const TagsInput: ({ className, ...props }: TagsInputProps) => import("react").JSX.Element;
|
|
26
|
+
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
27
|
+
declare const TagsList: ({ className, ...props }: TagsListProps) => import("react").JSX.Element;
|
|
28
|
+
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
29
|
+
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) => import("react").JSX.Element;
|
|
30
|
+
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
31
|
+
declare const TagsGroup: typeof CommandGroup;
|
|
32
|
+
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
33
|
+
declare const TagsItem: ({ className, ...props }: TagsItemProps) => import("react").JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps };
|
|
36
|
+
//# sourceMappingURL=tags.d.cts.map
|
|
@@ -1,40 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import 'class-variance-authority/types';
|
|
8
|
-
import 'class-variance-authority';
|
|
9
|
-
import 'cmdk';
|
|
10
|
-
import '@base-ui/react/popover';
|
|
11
|
-
|
|
1
|
+
import { t as Button } from "../button-D4vqTxhp.js";
|
|
2
|
+
import { Badge } from "./badge.js";
|
|
3
|
+
import { CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./command.js";
|
|
4
|
+
import { PopoverContent } from "./popover.js";
|
|
5
|
+
import { ComponentProps, ReactNode } from "react";
|
|
6
|
+
//#region src/components/tags.d.ts
|
|
12
7
|
type TagsProps = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
value?: string;
|
|
9
|
+
setValue?: (value: string) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
className?: string;
|
|
19
14
|
};
|
|
20
|
-
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className
|
|
15
|
+
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className }: TagsProps) => import("react").JSX.Element;
|
|
21
16
|
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
22
|
-
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) =>
|
|
17
|
+
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) => import("react").JSX.Element;
|
|
23
18
|
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
24
19
|
declare const TagsValue: ({ className, children, onRemove, ...props }: TagsValueProps & {
|
|
25
|
-
|
|
26
|
-
}) =>
|
|
20
|
+
onRemove?: () => void;
|
|
21
|
+
}) => import("react").JSX.Element;
|
|
27
22
|
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
28
|
-
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) =>
|
|
23
|
+
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) => import("react").JSX.Element;
|
|
29
24
|
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
30
|
-
declare const TagsInput: ({ className, ...props }: TagsInputProps) =>
|
|
25
|
+
declare const TagsInput: ({ className, ...props }: TagsInputProps) => import("react").JSX.Element;
|
|
31
26
|
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
32
|
-
declare const TagsList: ({ className, ...props }: TagsListProps) =>
|
|
27
|
+
declare const TagsList: ({ className, ...props }: TagsListProps) => import("react").JSX.Element;
|
|
33
28
|
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
34
|
-
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) =>
|
|
29
|
+
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) => import("react").JSX.Element;
|
|
35
30
|
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
36
31
|
declare const TagsGroup: typeof CommandGroup;
|
|
37
32
|
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
38
|
-
declare const TagsItem: ({ className, ...props }: TagsItemProps) =>
|
|
39
|
-
|
|
40
|
-
export { Tags, TagsContent,
|
|
33
|
+
declare const TagsItem: ({ className, ...props }: TagsItemProps) => import("react").JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps };
|
|
36
|
+
//# sourceMappingURL=tags.d.ts.map
|