@constructive-io/ui 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button-D4vqTxhp.d.cts +20 -0
- package/dist/button-D4vqTxhp.d.ts +20 -0
- package/dist/components/alert-dialog.cjs +98 -302
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +22 -21
- package/dist/components/alert-dialog.d.ts +22 -21
- package/dist/components/alert-dialog.js +96 -281
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +51 -108
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +13 -13
- package/dist/components/alert.d.ts +13 -13
- package/dist/components/alert.js +49 -87
- package/dist/components/alert.js.map +1 -1
- package/dist/components/app-bar.cjs +73 -359
- package/dist/components/app-bar.cjs.map +1 -1
- package/dist/components/app-bar.d.cts +21 -20
- package/dist/components/app-bar.d.ts +21 -20
- package/dist/components/app-bar.js +71 -338
- package/dist/components/app-bar.js.map +1 -1
- package/dist/components/app-shell.cjs +252 -1777
- package/dist/components/app-shell.cjs.map +1 -1
- package/dist/components/app-shell.d.cts +77 -85
- package/dist/components/app-shell.d.ts +77 -85
- package/dist/components/app-shell.js +249 -1756
- package/dist/components/app-shell.js.map +1 -1
- package/dist/components/autocomplete.cjs +146 -397
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.d.cts +24 -24
- package/dist/components/autocomplete.d.ts +24 -24
- package/dist/components/autocomplete.js +146 -376
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +26 -38
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +11 -10
- package/dist/components/avatar.d.ts +11 -10
- package/dist/components/avatar.js +24 -37
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +42 -60
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +13 -13
- package/dist/components/badge.d.ts +13 -13
- package/dist/components/badge.js +39 -38
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +65 -94
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.d.cts +14 -13
- package/dist/components/breadcrumb.d.ts +14 -13
- package/dist/components/breadcrumb.js +63 -73
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +68 -162
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +2 -20
- package/dist/components/button.d.ts +2 -20
- package/dist/components/button.js +65 -140
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +49 -62
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.d.cts +8 -8
- package/dist/components/calendar-rac.d.ts +8 -8
- package/dist/components/calendar-rac.js +49 -61
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +61 -74
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +15 -16
- package/dist/components/card.d.ts +15 -16
- package/dist/components/card.js +58 -72
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +12 -11
- package/dist/components/checkbox-group.cjs.map +1 -1
- package/dist/components/checkbox-group.d.cts +5 -5
- package/dist/components/checkbox-group.d.ts +5 -5
- package/dist/components/checkbox-group.js +12 -10
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.cjs +60 -114
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.d.cts +6 -6
- package/dist/components/checkbox.d.ts +6 -6
- package/dist/components/checkbox.js +58 -93
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +76 -113
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.d.cts +16 -15
- package/dist/components/collapsible.d.ts +16 -15
- package/dist/components/collapsible.js +74 -92
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +213 -507
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +36 -35
- package/dist/components/combobox.d.ts +36 -35
- package/dist/components/combobox.js +229 -504
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +102 -199
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +22 -21
- package/dist/components/command.d.ts +22 -21
- package/dist/components/command.js +100 -198
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +110 -402
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +27 -26
- package/dist/components/dialog.d.ts +27 -26
- package/dist/components/dialog.js +107 -380
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +80 -111
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +25 -25
- package/dist/components/dock.d.ts +25 -25
- package/dist/components/dock.js +78 -106
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +77 -111
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.d.cts +15 -14
- package/dist/components/drawer.d.ts +15 -14
- package/dist/components/drawer.js +75 -90
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +163 -238
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +44 -43
- package/dist/components/dropdown-menu.d.ts +44 -43
- package/dist/components/dropdown-menu.js +161 -217
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +51 -85
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.d.cts +13 -13
- package/dist/components/empty.d.ts +13 -13
- package/dist/components/empty.js +48 -83
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +150 -259
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +39 -39
- package/dist/components/field.d.ts +39 -39
- package/dist/components/field.js +148 -238
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +143 -166
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.d.cts +14 -13
- package/dist/components/flickering-grid.d.ts +14 -13
- package/dist/components/flickering-grid.js +141 -161
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +56 -188
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +9 -9
- package/dist/components/flow-zoom-panel.d.ts +9 -9
- package/dist/components/flow-zoom-panel.js +56 -168
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +58 -186
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.d.cts +11 -10
- package/dist/components/form-control.d.ts +11 -10
- package/dist/components/form-control.js +56 -165
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +78 -184
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.d.cts +2 -36
- package/dist/components/form.d.ts +2 -36
- package/dist/components/form.js +76 -163
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +51 -165
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +14 -15
- package/dist/components/input-group.d.ts +14 -15
- package/dist/components/input-group.js +51 -164
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.cjs +30 -55
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +2 -10
- package/dist/components/input.d.ts +2 -10
- package/dist/components/input.js +30 -54
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.cjs +133 -337
- package/dist/components/json-input.cjs.map +1 -1
- package/dist/components/json-input.d.cts +20 -19
- package/dist/components/json-input.d.ts +20 -19
- package/dist/components/json-input.js +132 -317
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/label.cjs +19 -21
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.d.cts +6 -5
- package/dist/components/label.d.ts +6 -5
- package/dist/components/label.js +17 -20
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +61 -101
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.d.cts +15 -14
- package/dist/components/motion-grid.d.ts +15 -14
- package/dist/components/motion-grid.js +59 -80
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +563 -786
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.d.cts +173 -173
- package/dist/components/multi-select.d.ts +173 -173
- package/dist/components/multi-select.js +561 -765
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +24 -13
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.d.cts +11 -11
- package/dist/components/page-header.d.ts +11 -11
- package/dist/components/page-header.js +23 -11
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +72 -272
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +15 -16
- package/dist/components/pagination.d.ts +15 -16
- package/dist/components/pagination.js +69 -250
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.cjs +68 -111
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.d.cts +31 -30
- package/dist/components/popover.d.ts +31 -30
- package/dist/components/popover.js +66 -90
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.cjs +128 -81
- package/dist/components/portal.cjs.map +1 -1
- package/dist/components/portal.d.cts +24 -23
- package/dist/components/portal.d.ts +24 -23
- package/dist/components/portal.js +126 -60
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.cjs +23 -24
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +8 -7
- package/dist/components/progress.d.ts +8 -7
- package/dist/components/progress.js +21 -23
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +70 -138
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +19 -19
- package/dist/components/progressive-blur-scroll-container.d.ts +19 -19
- package/dist/components/progressive-blur-scroll-container.js +70 -137
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +40 -64
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.d.cts +15 -14
- package/dist/components/progressive-blur.d.ts +15 -14
- package/dist/components/progressive-blur.js +38 -63
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +28 -42
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.d.cts +8 -8
- package/dist/components/radio-group.d.ts +8 -8
- package/dist/components/radio-group.js +28 -41
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +6 -418
- package/dist/components/record-picker.d.cts +13 -13
- package/dist/components/record-picker.d.ts +13 -13
- package/dist/components/record-picker.js +5 -397
- package/dist/components/resizable.cjs +32 -58
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.d.cts +10 -9
- package/dist/components/resizable.d.ts +10 -9
- package/dist/components/resizable.js +29 -37
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +50 -61
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -7
- package/dist/components/responsive-diagram.d.ts +7 -7
- package/dist/components/responsive-diagram.js +50 -60
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +37 -83
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.d.cts +9 -8
- package/dist/components/scroll-area.d.ts +9 -8
- package/dist/components/scroll-area.js +35 -62
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +175 -300
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +36 -35
- package/dist/components/select.d.ts +36 -35
- package/dist/components/select.js +172 -278
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +16 -19
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +2 -10
- package/dist/components/separator.d.ts +2 -10
- package/dist/components/separator.js +14 -18
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +17 -487
- package/dist/components/sheet.d.cts +85 -85
- package/dist/components/sheet.d.ts +85 -85
- package/dist/components/sheet.js +3 -453
- package/dist/components/sidebar.cjs +27 -1298
- package/dist/components/sidebar.d.cts +62 -65
- package/dist/components/sidebar.d.ts +62 -65
- package/dist/components/sidebar.js +3 -1254
- package/dist/components/skeleton.cjs +18 -30
- package/dist/components/skeleton.cjs.map +1 -1
- package/dist/components/skeleton.d.cts +6 -5
- package/dist/components/skeleton.d.ts +6 -5
- package/dist/components/skeleton.js +15 -28
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/sonner.cjs +17 -19
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +7 -7
- package/dist/components/sonner.d.ts +7 -7
- package/dist/components/sonner.js +17 -18
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/stack/index.cjs +43 -1515
- package/dist/components/stack/index.d.cts +2 -672
- package/dist/components/stack/index.d.ts +2 -672
- package/dist/components/stack/index.js +3 -1455
- package/dist/components/stepper.cjs +131 -285
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +27 -26
- package/dist/components/stepper.d.ts +27 -26
- package/dist/components/stepper.js +130 -265
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +21 -32
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.d.cts +7 -6
- package/dist/components/switch.d.ts +7 -6
- package/dist/components/switch.js +19 -31
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +58 -106
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +17 -16
- package/dist/components/table.d.ts +17 -16
- package/dist/components/table.js +55 -104
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +31 -35
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +9 -8
- package/dist/components/tabs.d.ts +9 -8
- package/dist/components/tabs.js +29 -34
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +114 -433
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +24 -28
- package/dist/components/tags.d.ts +24 -28
- package/dist/components/tags.js +114 -413
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +27 -49
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.d.cts +8 -7
- package/dist/components/textarea.d.ts +8 -7
- package/dist/components/textarea.js +27 -48
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +9 -612
- package/dist/components/toast/index.d.cts +2 -52
- package/dist/components/toast/index.d.ts +2 -52
- package/dist/components/toast/index.js +3 -586
- package/dist/components/tooltip.cjs +47 -72
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +2 -28
- package/dist/components/tooltip.d.ts +2 -28
- package/dist/components/tooltip.js +45 -51
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +19 -192
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +11 -11
- package/dist/components/unlink-button.d.ts +11 -11
- package/dist/components/unlink-button.js +18 -170
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/form-DgRTv7O7.d.ts +54 -0
- package/dist/form-DoZEWSzb.d.cts +54 -0
- package/dist/index-CjA4CENl.d.cts +684 -0
- package/dist/index-CjA4CENl.d.ts +684 -0
- package/dist/index-UnM04j0t.d.cts +58 -0
- package/dist/index-UnM04j0t.d.ts +58 -0
- package/dist/index.cjs +408 -8697
- package/dist/index.d.cts +224 -2136
- package/dist/index.d.ts +224 -2136
- package/dist/index.js +65 -8350
- package/dist/input-CBrCuMH8.d.cts +11 -0
- package/dist/input-CBrCuMH8.d.ts +11 -0
- package/dist/motion-config-COCFHq1L.cjs +271 -0
- package/dist/motion-config-COCFHq1L.cjs.map +1 -0
- package/dist/motion-config-COsZ6azM.js +241 -0
- package/dist/motion-config-COsZ6azM.js.map +1 -0
- package/dist/record-picker-BbxngCeV.js +162 -0
- package/dist/record-picker-BbxngCeV.js.map +1 -0
- package/dist/record-picker-Bz4FApxD.cjs +167 -0
- package/dist/record-picker-Bz4FApxD.cjs.map +1 -0
- package/dist/rolldown-runtime-D_qnwXdH.cjs +35 -0
- package/dist/separator-BQEsr0Rc.d.cts +11 -0
- package/dist/separator-BQEsr0Rc.d.ts +11 -0
- package/dist/sheet-BLHnhLRH.js +425 -0
- package/dist/sheet-BLHnhLRH.js.map +1 -0
- package/dist/sheet-BdA0rfIz.cjs +515 -0
- package/dist/sheet-BdA0rfIz.cjs.map +1 -0
- package/dist/sidebar-CPy_fibW.cjs +608 -0
- package/dist/sidebar-CPy_fibW.cjs.map +1 -0
- package/dist/sidebar-Cfax0g0_.js +463 -0
- package/dist/sidebar-Cfax0g0_.js.map +1 -0
- package/dist/slot-C-jEfihz.cjs +122 -0
- package/dist/slot-C-jEfihz.cjs.map +1 -0
- package/dist/slot-EL8zfLG0.js +97 -0
- package/dist/slot-EL8zfLG0.js.map +1 -0
- package/dist/stack-DKdvlOM6.cjs +1771 -0
- package/dist/stack-DKdvlOM6.cjs.map +1 -0
- package/dist/stack-jMdxDrex.js +1531 -0
- package/dist/stack-jMdxDrex.js.map +1 -0
- package/dist/toast-D6MqijT2.cjs +316 -0
- package/dist/toast-D6MqijT2.cjs.map +1 -0
- package/dist/toast-D_BOLzm3.js +287 -0
- package/dist/toast-D_BOLzm3.js.map +1 -0
- package/dist/tooltip-CTRQoN1A.d.cts +29 -0
- package/dist/tooltip-CTRQoN1A.d.ts +29 -0
- package/dist/utils-BkMLyah9.js +12 -0
- package/dist/utils-BkMLyah9.js.map +1 -0
- package/dist/utils-CzTQ3-VI.cjs +17 -0
- package/dist/utils-CzTQ3-VI.cjs.map +1 -0
- package/package.json +5 -5
- package/dist/components/record-picker.cjs.map +0 -1
- package/dist/components/record-picker.js.map +0 -1
- package/dist/components/sheet.cjs.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.cjs.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/stack/index.cjs.map +0 -1
- package/dist/components/stack/index.js.map +0 -1
- package/dist/components/toast/index.cjs.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,51 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
1
|
+
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 _base_ui_react_avatar = require("@base-ui/react/avatar");
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
11
|
-
}
|
|
11
|
+
//#region src/components/avatar.tsx
|
|
12
12
|
function Avatar({ className, ...props }) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
);
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Root, {
|
|
14
|
+
"data-slot": "avatar",
|
|
15
|
+
className: require_utils.cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
21
18
|
}
|
|
22
19
|
function AvatarImage({ className, ...props }) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10",
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
...props
|
|
32
|
-
}
|
|
33
|
-
);
|
|
20
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Image, {
|
|
21
|
+
"data-slot": "avatar-image",
|
|
22
|
+
className: require_utils.cn("aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10", className),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
34
25
|
}
|
|
35
26
|
function AvatarFallback({ className, delayMs, delay, ...props }) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
...props
|
|
43
|
-
}
|
|
44
|
-
);
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_avatar.Avatar.Fallback, {
|
|
28
|
+
"data-slot": "avatar-fallback",
|
|
29
|
+
delay: delay ?? delayMs,
|
|
30
|
+
className: require_utils.cn("bg-secondary flex size-full items-center justify-center rounded-[inherit] text-xs", className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
45
33
|
}
|
|
46
34
|
|
|
35
|
+
//#endregion
|
|
47
36
|
exports.Avatar = Avatar;
|
|
48
37
|
exports.AvatarFallback = AvatarFallback;
|
|
49
38
|
exports.AvatarImage = AvatarImage;
|
|
50
|
-
//# sourceMappingURL=avatar.cjs.map
|
|
51
39
|
//# sourceMappingURL=avatar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"avatar.cjs","names":["AvatarPrimitive","cn"],"sources":["../../src/components/avatar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';\n\nimport { cn } from '../lib/utils';\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n\treturn (\n\t\t<AvatarPrimitive.Root\n\t\t\tdata-slot=\"avatar\"\n\t\t\tclassName={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n\treturn (\n\t\t<AvatarPrimitive.Image\n\t\t\tdata-slot=\"avatar-image\"\n\t\t\tclassName={cn(\n\t\t\t\t'aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AvatarFallbackProps = React.ComponentProps<typeof AvatarPrimitive.Fallback> & {\n\t/** @deprecated Use delay prop instead */\n\tdelayMs?: number;\n};\n\nfunction AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps) {\n\treturn (\n\t\t<AvatarPrimitive.Fallback\n\t\t\tdata-slot=\"avatar-fallback\"\n\t\t\tdelay={delay ?? delayMs}\n\t\t\tclassName={cn('bg-secondary flex size-full items-center justify-center rounded-[inherit] text-xs', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"],"mappings":";;;;;;;;;;;AAOA,SAAS,OAAO,EAAE,WAAW,GAAG,SAA4D;CAC3F,OACC,2CAACA,6BAAgB,MAAjB;EACC,aAAU;EACV,WAAWC,iBAAG,8DAA8D,SAAS;EACrF,GAAI;CACJ;AAEH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,2CAACD,6BAAgB,OAAjB;EACC,aAAU;EACV,WAAWC,iBACV,sGACA,SACD;EACA,GAAI;CACJ;AAEH;AAOA,SAAS,eAAe,EAAE,WAAW,SAAS,OAAO,GAAG,SAA8B;CACrF,OACC,2CAACD,6BAAgB,UAAjB;EACC,aAAU;EACV,OAAO,SAAS;EAChB,WAAWC,iBAAG,qFAAqF,SAAS;EAC5G,GAAI;CACJ;AAEH"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Avatar as Avatar$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Avatar({ className, ...props }: React.ComponentProps<typeof Avatar$1.Root>): React.JSX.Element;
|
|
5
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): React.JSX.Element;
|
|
6
|
-
type AvatarFallbackProps = React.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
3
|
+
//#region src/components/avatar.d.ts
|
|
4
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): React$1.JSX.Element;
|
|
5
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): React$1.JSX.Element;
|
|
6
|
+
type AvatarFallbackProps = React$1.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
7
|
+
/** @deprecated Use delay prop instead */
|
|
8
|
+
delayMs?: number;
|
|
9
9
|
};
|
|
10
|
-
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): React.JSX.Element;
|
|
11
|
-
|
|
10
|
+
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): React$1.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
12
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
13
|
+
//# sourceMappingURL=avatar.d.cts.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Avatar as Avatar$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Avatar({ className, ...props }: React.ComponentProps<typeof Avatar$1.Root>): React.JSX.Element;
|
|
5
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof Avatar$1.Image>): React.JSX.Element;
|
|
6
|
-
type AvatarFallbackProps = React.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
3
|
+
//#region src/components/avatar.d.ts
|
|
4
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): React$1.JSX.Element;
|
|
5
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): React$1.JSX.Element;
|
|
6
|
+
type AvatarFallbackProps = React$1.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
7
|
+
/** @deprecated Use delay prop instead */
|
|
8
|
+
delayMs?: number;
|
|
9
9
|
};
|
|
10
|
-
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): React.JSX.Element;
|
|
11
|
-
|
|
10
|
+
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): React$1.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
12
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
13
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import { twMerge } from 'tailwind-merge';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
7
|
+
|
|
8
|
+
//#region src/components/avatar.tsx
|
|
10
9
|
function Avatar({ className, ...props }) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
...props
|
|
17
|
-
}
|
|
18
|
-
);
|
|
10
|
+
return /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
11
|
+
"data-slot": "avatar",
|
|
12
|
+
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
19
15
|
}
|
|
20
16
|
function AvatarImage({ className, ...props }) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10",
|
|
27
|
-
className
|
|
28
|
-
),
|
|
29
|
-
...props
|
|
30
|
-
}
|
|
31
|
-
);
|
|
17
|
+
return /* @__PURE__ */ jsx(Avatar$1.Image, {
|
|
18
|
+
"data-slot": "avatar-image",
|
|
19
|
+
className: cn("aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10", className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
32
22
|
}
|
|
33
23
|
function AvatarFallback({ className, delayMs, delay, ...props }) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...props
|
|
41
|
-
}
|
|
42
|
-
);
|
|
24
|
+
return /* @__PURE__ */ jsx(Avatar$1.Fallback, {
|
|
25
|
+
"data-slot": "avatar-fallback",
|
|
26
|
+
delay: delay ?? delayMs,
|
|
27
|
+
className: cn("bg-secondary flex size-full items-center justify-center rounded-[inherit] text-xs", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
43
30
|
}
|
|
44
31
|
|
|
32
|
+
//#endregion
|
|
45
33
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
46
|
-
//# sourceMappingURL=avatar.js.map
|
|
47
34
|
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"avatar.js","names":["AvatarPrimitive"],"sources":["../../src/components/avatar.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';\n\nimport { cn } from '../lib/utils';\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n\treturn (\n\t\t<AvatarPrimitive.Root\n\t\t\tdata-slot=\"avatar\"\n\t\t\tclassName={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n\treturn (\n\t\t<AvatarPrimitive.Image\n\t\t\tdata-slot=\"avatar-image\"\n\t\t\tclassName={cn(\n\t\t\t\t'aspect-square size-full outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AvatarFallbackProps = React.ComponentProps<typeof AvatarPrimitive.Fallback> & {\n\t/** @deprecated Use delay prop instead */\n\tdelayMs?: number;\n};\n\nfunction AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps) {\n\treturn (\n\t\t<AvatarPrimitive.Fallback\n\t\t\tdata-slot=\"avatar-fallback\"\n\t\t\tdelay={delay ?? delayMs}\n\t\t\tclassName={cn('bg-secondary flex size-full items-center justify-center rounded-[inherit] text-xs', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"],"mappings":";;;;;;;;AAOA,SAAS,OAAO,EAAE,WAAW,GAAG,SAA4D;CAC3F,OACC,oBAACA,SAAgB,MAAjB;EACC,aAAU;EACV,WAAW,GAAG,8DAA8D,SAAS;EACrF,GAAI;CACJ;AAEH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAA6D;CACjG,OACC,oBAACA,SAAgB,OAAjB;EACC,aAAU;EACV,WAAW,GACV,sGACA,SACD;EACA,GAAI;CACJ;AAEH;AAOA,SAAS,eAAe,EAAE,WAAW,SAAS,OAAO,GAAG,SAA8B;CACrF,OACC,oBAACA,SAAgB,UAAjB;EACC,aAAU;EACV,OAAO,SAAS;EAChB,WAAW,GAAG,qFAAqF,SAAS;EAC5G,GAAI;CACJ;AAEH"}
|
|
@@ -1,66 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
'
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
4
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let class_variance_authority = require("class-variance-authority");
|
|
3
9
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
size: "default",
|
|
39
|
-
variant: "default"
|
|
40
|
-
},
|
|
41
|
-
variants: {
|
|
42
|
-
size: {
|
|
43
|
-
default: "px-[calc(--spacing(1)-1px)] text-xs",
|
|
44
|
-
lg: "px-[calc(--spacing(1.5)-1px)] text-sm",
|
|
45
|
-
sm: "rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]"
|
|
46
|
-
},
|
|
47
|
-
variant: {
|
|
48
|
-
default: "bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90",
|
|
49
|
-
destructive: "bg-destructive text-white [button,a&]:hover:bg-destructive/90",
|
|
50
|
-
error: "bg-destructive/8 text-destructive dark:bg-destructive/16",
|
|
51
|
-
info: "bg-info/8 text-info-foreground dark:bg-info/16",
|
|
52
|
-
outline: "border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48",
|
|
53
|
-
secondary: "bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90",
|
|
54
|
-
success: "bg-success/8 text-success-foreground dark:bg-success/16",
|
|
55
|
-
warning: "bg-warning/8 text-warning-foreground dark:bg-warning/16"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
var Badge = React__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("span", { ref, "data-slot": "badge", className: cn(badgeVariants({ variant, size }), className), ...props }));
|
|
10
|
+
//#region src/components/badge.tsx
|
|
11
|
+
const badgeVariants = (0, class_variance_authority.cva)("relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button,a&]:cursor-pointer [button,a&]:pointer-coarse:min-h-11 [button,a&]:pointer-coarse:min-w-11", {
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
size: "default",
|
|
14
|
+
variant: "default"
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
size: {
|
|
18
|
+
default: "px-[calc(--spacing(1)-1px)] text-xs",
|
|
19
|
+
lg: "px-[calc(--spacing(1.5)-1px)] text-sm",
|
|
20
|
+
sm: "rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]"
|
|
21
|
+
},
|
|
22
|
+
variant: {
|
|
23
|
+
default: "bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90",
|
|
24
|
+
destructive: "bg-destructive text-white [button,a&]:hover:bg-destructive/90",
|
|
25
|
+
error: "bg-destructive/8 text-destructive dark:bg-destructive/16",
|
|
26
|
+
info: "bg-info/8 text-info-foreground dark:bg-info/16",
|
|
27
|
+
outline: "border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48",
|
|
28
|
+
secondary: "bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90",
|
|
29
|
+
success: "bg-success/8 text-success-foreground dark:bg-success/16",
|
|
30
|
+
warning: "bg-warning/8 text-warning-foreground dark:bg-warning/16"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const Badge = react.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "badge",
|
|
37
|
+
className: require_utils.cn(badgeVariants({
|
|
38
|
+
variant,
|
|
39
|
+
size
|
|
40
|
+
}), className),
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
61
43
|
Badge.displayName = "Badge";
|
|
62
44
|
|
|
45
|
+
//#endregion
|
|
63
46
|
exports.Badge = Badge;
|
|
64
47
|
exports.badgeVariants = badgeVariants;
|
|
65
|
-
//# sourceMappingURL=badge.cjs.map
|
|
66
48
|
//# sourceMappingURL=badge.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"badge.cjs","names":["React","cn"],"sources":["../../src/components/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst badgeVariants = cva(\n\t\"relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button,a&]:cursor-pointer [button,a&]:pointer-coarse:min-h-11 [button,a&]:pointer-coarse:min-w-11\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tvariant: 'default',\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault: 'px-[calc(--spacing(1)-1px)] text-xs',\n\t\t\t\tlg: 'px-[calc(--spacing(1.5)-1px)] text-sm',\n\t\t\t\tsm: 'rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90',\n\t\t\t\tdestructive: 'bg-destructive text-white [button,a&]:hover:bg-destructive/90',\n\t\t\t\terror: 'bg-destructive/8 text-destructive dark:bg-destructive/16',\n\t\t\t\tinfo: 'bg-info/8 text-info-foreground dark:bg-info/16',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48',\n\t\t\t\tsecondary: 'bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90',\n\t\t\t\tsuccess: 'bg-success/8 text-success-foreground dark:bg-success/16',\n\t\t\t\twarning: 'bg-warning/8 text-warning-foreground dark:bg-warning/16',\n\t\t\t},\n\t\t},\n\t},\n);\n\ntype BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(({ className, variant, size, ...props }, ref) => (\n\t<span ref={ref} data-slot=\"badge\" className={cn(badgeVariants({ variant, size }), className)} {...props} />\n));\n\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\nexport type { BadgeProps };\n"],"mappings":";;;;;;;;;;AAKA,MAAM,kDACL,yfACA;CACC,iBAAiB;EAChB,MAAM;EACN,SAAS;CACV;CACA,UAAU;EACT,MAAM;GACL,SAAS;GACT,IAAI;GACJ,IAAI;EACL;EACA,SAAS;GACR,SAAS;GACT,aAAa;GACb,OAAO;GACP,MAAM;GACN,SACC;GACD,WAAW;GACX,SAAS;GACT,SAAS;EACV;CACD;AACD,CACD;AAIA,MAAM,QAAQA,MAAM,YAAyC,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACpG,2CAAC,QAAD;CAAW;CAAK,aAAU;CAAQ,WAAWC,iBAAG,cAAc;EAAE;EAAS;CAAK,CAAC,GAAG,SAAS;CAAG,GAAI;AAAQ,EAC1G;AAED,MAAM,cAAc"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
//#region src/components/badge.d.ts
|
|
5
4
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} &
|
|
9
|
-
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
10
|
-
declare const Badge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} &
|
|
14
|
-
|
|
5
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
6
|
+
variant?: "default" | "destructive" | "error" | "info" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type BadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
9
|
+
declare const Badge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
10
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
+
variant?: "default" | "destructive" | "error" | "info" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
//#endregion
|
|
15
14
|
export { Badge, type BadgeProps, badgeVariants };
|
|
15
|
+
//# sourceMappingURL=badge.d.cts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
//#region src/components/badge.d.ts
|
|
5
4
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} &
|
|
9
|
-
type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
10
|
-
declare const Badge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} &
|
|
14
|
-
|
|
5
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
6
|
+
variant?: "default" | "destructive" | "error" | "info" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type BadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
9
|
+
declare const Badge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
10
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
11
|
+
variant?: "default" | "destructive" | "error" | "info" | "outline" | "secondary" | "success" | "warning" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
//#endregion
|
|
15
14
|
export { Badge, type BadgeProps, badgeVariants };
|
|
15
|
+
//# sourceMappingURL=badge.d.ts.map
|
package/dist/components/badge.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
7
|
+
//#region src/components/badge.tsx
|
|
8
|
+
const badgeVariants = cva("relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button,a&]:cursor-pointer [button,a&]:pointer-coarse:min-h-11 [button,a&]:pointer-coarse:min-w-11", {
|
|
9
|
+
defaultVariants: {
|
|
10
|
+
size: "default",
|
|
11
|
+
variant: "default"
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
default: "px-[calc(--spacing(1)-1px)] text-xs",
|
|
16
|
+
lg: "px-[calc(--spacing(1.5)-1px)] text-sm",
|
|
17
|
+
sm: "rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]"
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
default: "bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90",
|
|
21
|
+
destructive: "bg-destructive text-white [button,a&]:hover:bg-destructive/90",
|
|
22
|
+
error: "bg-destructive/8 text-destructive dark:bg-destructive/16",
|
|
23
|
+
info: "bg-info/8 text-info-foreground dark:bg-info/16",
|
|
24
|
+
outline: "border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48",
|
|
25
|
+
secondary: "bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90",
|
|
26
|
+
success: "bg-success/8 text-success-foreground dark:bg-success/16",
|
|
27
|
+
warning: "bg-warning/8 text-warning-foreground dark:bg-warning/16"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const Badge = React$1.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx("span", {
|
|
32
|
+
ref,
|
|
33
|
+
"data-slot": "badge",
|
|
34
|
+
className: cn(badgeVariants({
|
|
35
|
+
variant,
|
|
36
|
+
size
|
|
37
|
+
}), className),
|
|
38
|
+
...props
|
|
39
|
+
}));
|
|
39
40
|
Badge.displayName = "Badge";
|
|
40
41
|
|
|
42
|
+
//#endregion
|
|
41
43
|
export { Badge, badgeVariants };
|
|
42
|
-
//# sourceMappingURL=badge.js.map
|
|
43
44
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"badge.js","names":["React"],"sources":["../../src/components/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '../lib/utils';\n\nconst badgeVariants = cva(\n\t\"relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button,a&]:cursor-pointer [button,a&]:pointer-coarse:min-h-11 [button,a&]:pointer-coarse:min-w-11\",\n\t{\n\t\tdefaultVariants: {\n\t\t\tsize: 'default',\n\t\t\tvariant: 'default',\n\t\t},\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tdefault: 'px-[calc(--spacing(1)-1px)] text-xs',\n\t\t\t\tlg: 'px-[calc(--spacing(1.5)-1px)] text-sm',\n\t\t\t\tsm: 'rounded-[calc(var(--radius-sm)-2px)] px-[calc(--spacing(1)-1px)] text-[.625rem]',\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: 'bg-primary text-primary-foreground [button,a&]:hover:bg-primary/90',\n\t\t\t\tdestructive: 'bg-destructive text-white [button,a&]:hover:bg-destructive/90',\n\t\t\t\terror: 'bg-destructive/8 text-destructive dark:bg-destructive/16',\n\t\t\t\tinfo: 'bg-info/8 text-info-foreground dark:bg-info/16',\n\t\t\t\toutline:\n\t\t\t\t\t'border-border/60 bg-transparent dark:bg-input/32 [button,a&]:hover:bg-accent/50 dark:[button,a&]:hover:bg-input/48',\n\t\t\t\tsecondary: 'bg-secondary text-secondary-foreground [button,a&]:hover:bg-secondary/90',\n\t\t\t\tsuccess: 'bg-success/8 text-success-foreground dark:bg-success/16',\n\t\t\t\twarning: 'bg-warning/8 text-warning-foreground dark:bg-warning/16',\n\t\t\t},\n\t\t},\n\t},\n);\n\ntype BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(({ className, variant, size, ...props }, ref) => (\n\t<span ref={ref} data-slot=\"badge\" className={cn(badgeVariants({ variant, size }), className)} {...props} />\n));\n\nBadge.displayName = 'Badge';\n\nexport { Badge, badgeVariants };\nexport type { BadgeProps };\n"],"mappings":";;;;;;;AAKA,MAAM,gBAAgB,IACrB,yfACA;CACC,iBAAiB;EAChB,MAAM;EACN,SAAS;CACV;CACA,UAAU;EACT,MAAM;GACL,SAAS;GACT,IAAI;GACJ,IAAI;EACL;EACA,SAAS;GACR,SAAS;GACT,aAAa;GACb,OAAO;GACP,MAAM;GACN,SACC;GACD,WAAW;GACX,SAAS;GACT,SAAS;EACV;CACD;AACD,CACD;AAIA,MAAM,QAAQA,QAAM,YAAyC,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACpG,oBAAC,QAAD;CAAW;CAAK,aAAU;CAAQ,WAAW,GAAG,cAAc;EAAE;EAAS;CAAK,CAAC,GAAG,SAAS;CAAG,GAAI;AAAQ,EAC1G;AAED,MAAM,cAAc"}
|