@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,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
3
|
+
//#region src/components/checkbox.d.ts
|
|
5
4
|
type CheckboxProps = Checkbox$1.Root.Props;
|
|
6
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
|
|
5
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
//#endregion
|
|
8
7
|
export { Checkbox, type CheckboxProps };
|
|
8
|
+
//# sourceMappingURL=checkbox.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
3
|
+
//#region src/components/checkbox.d.ts
|
|
5
4
|
type CheckboxProps = Checkbox$1.Root.Props;
|
|
6
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<
|
|
7
|
-
|
|
5
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
//#endregion
|
|
8
7
|
export { Checkbox, type CheckboxProps };
|
|
8
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,99 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
4
|
-
import { clsx } from 'clsx';
|
|
5
|
-
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
7
2
|
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"span",
|
|
65
|
-
{
|
|
66
|
-
className: cn(
|
|
67
|
-
"absolute inset-0 flex items-center justify-center transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none",
|
|
68
|
-
state.indeterminate ? "scale-[0.25] opacity-0 blur-[4px]" : "scale-100 opacity-100 blur-0"
|
|
69
|
-
),
|
|
70
|
-
children: /* @__PURE__ */ jsx(
|
|
71
|
-
"svg",
|
|
72
|
-
{
|
|
73
|
-
className: "size-3.5 sm:size-3",
|
|
74
|
-
fill: "none",
|
|
75
|
-
height: "24",
|
|
76
|
-
stroke: "currentColor",
|
|
77
|
-
strokeLinecap: "round",
|
|
78
|
-
strokeLinejoin: "round",
|
|
79
|
-
strokeWidth: "3",
|
|
80
|
-
viewBox: "0 0 24 24",
|
|
81
|
-
width: "24",
|
|
82
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
83
|
-
children: /* @__PURE__ */ jsx("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] })
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
);
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
7
|
+
|
|
8
|
+
//#region src/components/checkbox.tsx
|
|
9
|
+
const Checkbox = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
10
|
+
return /* @__PURE__ */ jsxs(Checkbox$1.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
className: cn("relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=checkbox-control]]:border-destructive/36 focus-visible:[&_[data-slot=checkbox-control]]:ring-2 focus-visible:[&_[data-slot=checkbox-control]]:ring-ring focus-visible:[&_[data-slot=checkbox-control]]:ring-offset-1 focus-visible:[&_[data-slot=checkbox-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=checkbox-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=checkbox-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=checkbox-control]]:ring-destructive/24", className),
|
|
13
|
+
"data-slot": "checkbox",
|
|
14
|
+
...props,
|
|
15
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
className: "pointer-events-none absolute size-4.5 rounded-[4px] border border-input bg-background bg-clip-padding shadow-[0_1px_--theme(--color-black/4%)] sm:size-4 dark:bg-input/32 dark:bg-clip-border dark:shadow-[0_-1px_--theme(--color-white/8%)]",
|
|
18
|
+
"data-slot": "checkbox-control"
|
|
19
|
+
}), /* @__PURE__ */ jsx(Checkbox$1.Indicator, {
|
|
20
|
+
keepMounted: true,
|
|
21
|
+
className: "absolute flex size-4.5 items-center justify-center rounded-[4px] text-primary-foreground transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary data-indeterminate:text-foreground motion-reduce:transition-none sm:size-4",
|
|
22
|
+
"data-slot": "checkbox-indicator",
|
|
23
|
+
render: (props, state) => /* @__PURE__ */ jsxs("span", {
|
|
24
|
+
...props,
|
|
25
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
26
|
+
className: cn("absolute inset-0 flex items-center justify-center transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none", state.indeterminate ? "scale-100 opacity-100 blur-0" : "scale-[0.25] opacity-0 blur-[4px]"),
|
|
27
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
28
|
+
className: "size-3.5 sm:size-3",
|
|
29
|
+
fill: "none",
|
|
30
|
+
height: "24",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round",
|
|
34
|
+
strokeWidth: "3",
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
width: "24",
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5.252 12h13.496" })
|
|
39
|
+
})
|
|
40
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
41
|
+
className: cn("absolute inset-0 flex items-center justify-center transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none", state.indeterminate ? "scale-[0.25] opacity-0 blur-[4px]" : "scale-100 opacity-100 blur-0"),
|
|
42
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
43
|
+
className: "size-3.5 sm:size-3",
|
|
44
|
+
fill: "none",
|
|
45
|
+
height: "24",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round",
|
|
49
|
+
strokeWidth: "3",
|
|
50
|
+
viewBox: "0 0 24 24",
|
|
51
|
+
width: "24",
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
children: /* @__PURE__ */ jsx("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
|
|
54
|
+
})
|
|
55
|
+
})]
|
|
56
|
+
})
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
94
59
|
});
|
|
95
60
|
Checkbox.displayName = "Checkbox";
|
|
96
61
|
|
|
62
|
+
//#endregion
|
|
97
63
|
export { Checkbox };
|
|
98
|
-
//# sourceMappingURL=checkbox.js.map
|
|
99
64
|
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"checkbox.js","names":["React","CheckboxPrimitive"],"sources":["../../src/components/checkbox.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';\n\nimport { cn } from '../lib/utils';\n\ntype CheckboxProps = CheckboxPrimitive.Root.Props;\n\nconst Checkbox = React.forwardRef<HTMLButtonElement, CheckboxProps>(({ className, ...props }, ref) => {\n\treturn (\n\t\t<CheckboxPrimitive.Root\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'relative inline-flex size-10 shrink-0 items-center justify-center outline-none transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96] motion-reduce:transition-none pointer-coarse:size-11 data-disabled:cursor-not-allowed data-disabled:opacity-64 aria-invalid:[&_[data-slot=checkbox-control]]:border-destructive/36 focus-visible:[&_[data-slot=checkbox-control]]:ring-2 focus-visible:[&_[data-slot=checkbox-control]]:ring-ring focus-visible:[&_[data-slot=checkbox-control]]:ring-offset-1 focus-visible:[&_[data-slot=checkbox-control]]:ring-offset-background focus-visible:aria-invalid:[&_[data-slot=checkbox-control]]:border-destructive/64 focus-visible:aria-invalid:[&_[data-slot=checkbox-control]]:ring-destructive/48 dark:aria-invalid:[&_[data-slot=checkbox-control]]:ring-destructive/24',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"checkbox\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclassName=\"pointer-events-none absolute size-4.5 rounded-[4px] border border-input bg-background bg-clip-padding shadow-[0_1px_--theme(--color-black/4%)] sm:size-4 dark:bg-input/32 dark:bg-clip-border dark:shadow-[0_-1px_--theme(--color-white/8%)]\"\n\t\t\t\tdata-slot=\"checkbox-control\"\n\t\t\t/>\n\t\t\t<CheckboxPrimitive.Indicator\n\t\t\t\tkeepMounted\n\t\t\t\tclassName=\"absolute flex size-4.5 items-center justify-center rounded-[4px] text-primary-foreground transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] data-unchecked:scale-[0.25] data-unchecked:opacity-0 data-unchecked:blur-[4px] data-checked:bg-primary data-indeterminate:text-foreground motion-reduce:transition-none sm:size-4\"\n\t\t\t\tdata-slot=\"checkbox-indicator\"\n\t\t\t\trender={(props, state) => (\n\t\t\t\t\t<span {...props}>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'absolute inset-0 flex items-center justify-center transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none',\n\t\t\t\t\t\t\t\tstate.indeterminate\n\t\t\t\t\t\t\t\t\t? 'scale-100 opacity-100 blur-0'\n\t\t\t\t\t\t\t\t\t: 'scale-[0.25] opacity-0 blur-[4px]',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\tclassName=\"size-3.5 sm:size-3\"\n\t\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\t\theight=\"24\"\n\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\tstrokeLinejoin=\"round\"\n\t\t\t\t\t\t\t\tstrokeWidth=\"3\"\n\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\twidth=\"24\"\n\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<path d=\"M5.252 12h13.496\" />\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'absolute inset-0 flex items-center justify-center transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none',\n\t\t\t\t\t\t\t\tstate.indeterminate\n\t\t\t\t\t\t\t\t\t? 'scale-[0.25] opacity-0 blur-[4px]'\n\t\t\t\t\t\t\t\t\t: 'scale-100 opacity-100 blur-0',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\t\tclassName=\"size-3.5 sm:size-3\"\n\t\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\t\theight=\"24\"\n\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t\t\tstrokeLinejoin=\"round\"\n\t\t\t\t\t\t\t\tstrokeWidth=\"3\"\n\t\t\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\t\t\twidth=\"24\"\n\t\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<path d=\"M5.252 12.7 10.2 18.63 18.748 5.37\" />\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t/>\n\t\t</CheckboxPrimitive.Root>\n\t);\n});\nCheckbox.displayName = 'Checkbox';\n\nexport { Checkbox };\nexport type { CheckboxProps };\n"],"mappings":";;;;;;;;AASA,MAAM,WAAWA,QAAM,YAA8C,EAAE,WAAW,GAAG,SAAS,QAAQ;CACrG,OACC,qBAACC,WAAkB,MAAnB;EACM;EACL,WAAW,GACV,6zBACA,SACD;EACA,aAAU;EACV,GAAI;YAPL,CASC,oBAAC,QAAD;GACC,eAAY;GACZ,WAAU;GACV,aAAU;EACV,IACD,oBAACA,WAAkB,WAAnB;GACC;GACA,WAAU;GACV,aAAU;GACV,SAAS,OAAO,UACf,qBAAC,QAAD;IAAM,GAAI;cAAV,CACC,oBAAC,QAAD;KACC,WAAW,GACV,iKACA,MAAM,gBACH,iCACA,mCACJ;eAEA,oBAAC,OAAD;MACC,WAAU;MACV,MAAK;MACL,QAAO;MACP,QAAO;MACP,eAAc;MACd,gBAAe;MACf,aAAY;MACZ,SAAQ;MACR,OAAM;MACN,OAAM;gBAEN,oBAAC,QAAD,EAAM,GAAE,mBAAoB;KACxB;IACA,IACN,oBAAC,QAAD;KACC,WAAW,GACV,iKACA,MAAM,gBACH,sCACA,8BACJ;eAEA,oBAAC,OAAD;MACC,WAAU;MACV,MAAK;MACL,QAAO;MACP,QAAO;MACP,eAAc;MACd,gBAAe;MACf,aAAY;MACZ,SAAQ;MACR,OAAM;MACN,OAAM;gBAEN,oBAAC,QAAD,EAAM,GAAE,qCAAsC;KAC1C;IACA,EACD;;EAEP,EACsB;;AAE1B,CAAC;AACD,SAAS,cAAc"}
|
|
@@ -1,127 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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_collapsible = require("@base-ui/react/collapsible");
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
11
|
+
//#region src/components/collapsible.tsx
|
|
12
|
+
/**
|
|
13
|
+
* Collapsible Root
|
|
14
|
+
* Container for collapsible content with open/close state management.
|
|
15
|
+
*/
|
|
16
|
+
function Collapsible({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_collapsible.Collapsible.Root, {
|
|
18
|
+
"data-slot": "collapsible",
|
|
19
|
+
className: require_utils.cn("group/collapsible", className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
26
22
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
var CollapsibleTrigger = React__namespace.forwardRef(({ className, asChild, nativeButton, children, render, ...props }, ref) => {
|
|
47
|
-
const triggerClassName = cn(
|
|
48
|
-
"group/trigger flex w-full cursor-pointer items-center justify-between text-sm font-medium outline-none transition-colors",
|
|
49
|
-
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
|
|
50
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
51
|
-
"[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-200",
|
|
52
|
-
"[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180",
|
|
53
|
-
className
|
|
54
|
-
);
|
|
55
|
-
const childRender = render === void 0 && asChild && React__namespace.isValidElement(children) ? children : void 0;
|
|
56
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
57
|
-
collapsible.Collapsible.Trigger,
|
|
58
|
-
{
|
|
59
|
-
ref,
|
|
60
|
-
"data-slot": "collapsible-trigger",
|
|
61
|
-
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
62
|
-
className: triggerClassName,
|
|
63
|
-
render: render ?? childRender,
|
|
64
|
-
...props,
|
|
65
|
-
children: childRender ? void 0 : children
|
|
66
|
-
}
|
|
67
|
-
);
|
|
23
|
+
/**
|
|
24
|
+
* CollapsibleTrigger
|
|
25
|
+
* Button that toggles the collapsible open/closed state.
|
|
26
|
+
* Supports asChild pattern for custom trigger elements.
|
|
27
|
+
*/
|
|
28
|
+
const CollapsibleTrigger = react.forwardRef(({ className, asChild, nativeButton, children, render, ...props }, ref) => {
|
|
29
|
+
const triggerClassName = require_utils.cn("group/trigger flex w-full cursor-pointer items-center justify-between text-sm font-medium outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background", "disabled:pointer-events-none disabled:opacity-50", "[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-200", "[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180", className);
|
|
30
|
+
const childRender = render === void 0 && asChild && react.isValidElement(children) ? children : void 0;
|
|
31
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_collapsible.Collapsible.Trigger, {
|
|
32
|
+
ref,
|
|
33
|
+
"data-slot": "collapsible-trigger",
|
|
34
|
+
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
35
|
+
className: triggerClassName,
|
|
36
|
+
render: render ?? childRender,
|
|
37
|
+
...props,
|
|
38
|
+
children: childRender ? void 0 : children
|
|
39
|
+
});
|
|
68
40
|
});
|
|
69
41
|
CollapsibleTrigger.displayName = "CollapsibleTrigger";
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
className: cn("py-4", innerClassName),
|
|
89
|
-
children
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
);
|
|
42
|
+
/**
|
|
43
|
+
* CollapsiblePanel
|
|
44
|
+
* Compositor-animated reveal for collapsible content.
|
|
45
|
+
* Geometry snaps to its measured height while opacity/translation carry the state change.
|
|
46
|
+
*/
|
|
47
|
+
const CollapsiblePanel = react.forwardRef(({ className, innerClassName, children, ...props }, ref) => {
|
|
48
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_collapsible.Collapsible.Panel, {
|
|
49
|
+
ref,
|
|
50
|
+
"data-slot": "collapsible-panel",
|
|
51
|
+
className: require_utils.cn("h-[var(--collapsible-panel-height)] overflow-hidden text-sm", "origin-top transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none", "data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0 data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0", className),
|
|
52
|
+
...props,
|
|
53
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
54
|
+
"data-slot": "collapsible-panel-content",
|
|
55
|
+
className: require_utils.cn("py-4", innerClassName),
|
|
56
|
+
children
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
});
|
|
96
60
|
CollapsiblePanel.displayName = "CollapsiblePanel";
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
);
|
|
61
|
+
/**
|
|
62
|
+
* CollapsibleIcon
|
|
63
|
+
* Animated chevron icon that rotates when the collapsible opens/closes.
|
|
64
|
+
* Use this within CollapsibleTrigger for automatic rotation animation.
|
|
65
|
+
*/
|
|
66
|
+
function CollapsibleIcon({ className, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
68
|
+
"data-slot": "collapsible-icon",
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
width: "16",
|
|
71
|
+
height: "16",
|
|
72
|
+
viewBox: "0 0 24 24",
|
|
73
|
+
fill: "none",
|
|
74
|
+
stroke: "currentColor",
|
|
75
|
+
strokeWidth: "2",
|
|
76
|
+
strokeLinecap: "round",
|
|
77
|
+
strokeLinejoin: "round",
|
|
78
|
+
className: require_utils.cn("h-4 w-4 shrink-0 text-muted-foreground", className),
|
|
79
|
+
...props,
|
|
80
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
81
|
+
});
|
|
119
82
|
}
|
|
120
83
|
|
|
84
|
+
//#endregion
|
|
121
85
|
exports.Collapsible = Collapsible;
|
|
122
86
|
exports.CollapsibleContent = CollapsiblePanel;
|
|
123
|
-
exports.CollapsibleIcon = CollapsibleIcon;
|
|
124
87
|
exports.CollapsiblePanel = CollapsiblePanel;
|
|
88
|
+
exports.CollapsibleIcon = CollapsibleIcon;
|
|
125
89
|
exports.CollapsibleTrigger = CollapsibleTrigger;
|
|
126
|
-
//# sourceMappingURL=collapsible.cjs.map
|
|
127
90
|
//# sourceMappingURL=collapsible.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"collapsible.cjs","names":["CollapsiblePrimitive","cn","React"],"sources":["../../src/components/collapsible.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Collapsible as CollapsiblePrimitive } from \"@base-ui/react/collapsible\";\n\nimport { cn } from \"../lib/utils\";\n\n/**\n * Collapsible Root\n * Container for collapsible content with open/close state management.\n */\nfunction Collapsible({\n className,\n ...props\n}: CollapsiblePrimitive.Root.Props) {\n return (\n <CollapsiblePrimitive.Root\n data-slot=\"collapsible\"\n className={cn(\"group/collapsible\", className)}\n {...props}\n />\n );\n}\n\n/**\n * CollapsibleTrigger Props\n */\ntype CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {\n /** When true, merges props onto the child element instead of rendering a button */\n asChild?: boolean;\n /** Whether the child renders a native button. Defaults to true when asChild is used. */\n nativeButton?: boolean;\n};\n\n/**\n * CollapsibleTrigger\n * Button that toggles the collapsible open/closed state.\n * Supports asChild pattern for custom trigger elements.\n */\nconst CollapsibleTrigger = React.forwardRef<\n HTMLButtonElement,\n CollapsibleTriggerProps\n>(({ className, asChild, nativeButton, children, render, ...props }, ref) => {\n const triggerClassName = cn(\n \"group/trigger flex w-full cursor-pointer items-center justify-between text-sm font-medium outline-none transition-colors\",\n \"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n \"[&_[data-slot=collapsible-icon]]:transition-transform [&_[data-slot=collapsible-icon]]:duration-200\",\n \"[&[data-panel-open]_[data-slot=collapsible-icon]]:rotate-180\",\n className\n );\n\n const childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n return (\n <CollapsiblePrimitive.Trigger\n ref={ref}\n data-slot=\"collapsible-trigger\"\n nativeButton={nativeButton ?? (childRender ? true : undefined)}\n className={triggerClassName}\n render={render ?? childRender}\n {...props}\n >\n {childRender ? undefined : children}\n </CollapsiblePrimitive.Trigger>\n );\n});\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\n/**\n * CollapsiblePanel Props\n */\ntype CollapsiblePanelProps = CollapsiblePrimitive.Panel.Props & {\n /** Additional className for the inner content wrapper */\n innerClassName?: string;\n};\n\n/**\n * CollapsiblePanel\n * Compositor-animated reveal for collapsible content.\n * Geometry snaps to its measured height while opacity/translation carry the state change.\n */\nconst CollapsiblePanel = React.forwardRef<HTMLDivElement, CollapsiblePanelProps>(\n ({ className, innerClassName, children, ...props }, ref) => {\n return (\n <CollapsiblePrimitive.Panel\n ref={ref}\n data-slot=\"collapsible-panel\"\n className={cn(\n \"h-[var(--collapsible-panel-height)] overflow-hidden text-sm\",\n \"origin-top transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none\",\n \"data-[ending-style]:translate-y-1 data-[ending-style]:opacity-0 data-[starting-style]:translate-y-1 data-[starting-style]:opacity-0\",\n className\n )}\n {...props}\n >\n <div\n data-slot=\"collapsible-panel-content\"\n className={cn(\"py-4\", innerClassName)}\n >\n {children}\n </div>\n </CollapsiblePrimitive.Panel>\n );\n }\n);\nCollapsiblePanel.displayName = \"CollapsiblePanel\";\n\n/**\n * CollapsibleIcon\n * Animated chevron icon that rotates when the collapsible opens/closes.\n * Use this within CollapsibleTrigger for automatic rotation animation.\n */\nfunction CollapsibleIcon({\n className,\n ...props\n}: React.SVGProps<SVGSVGElement>) {\n return (\n <svg\n data-slot=\"collapsible-icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(\"h-4 w-4 shrink-0 text-muted-foreground\", className)}\n {...props}\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n );\n}\n\nexport {\n Collapsible,\n CollapsibleTrigger,\n CollapsiblePanel,\n CollapsiblePanel as CollapsibleContent,\n CollapsibleIcon,\n type CollapsibleTriggerProps,\n type CollapsiblePanelProps,\n};\n"],"mappings":";;;;;;;;;;;;;;;AAWA,SAAS,YAAY,EACnB,WACA,GAAG,SAC+B;CAClC,OACE,2CAACA,uCAAqB,MAAtB;EACE,aAAU;EACV,WAAWC,iBAAG,qBAAqB,SAAS;EAC5C,GAAI;CACL;AAEL;;;;;;AAiBA,MAAM,qBAAqBC,MAAM,YAG9B,EAAE,WAAW,SAAS,cAAc,UAAU,QAAQ,GAAG,SAAS,QAAQ;CAC3E,MAAM,mBAAmBD,iBACvB,4HACA,iHACA,oDACA,uGACA,gEACA,SACF;CAEA,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACE,2CAACF,uCAAqB,SAAtB;EACO;EACL,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,WAAW;EACX,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACC;AAElC,CAAC;AACD,mBAAmB,cAAc;;;;;;AAejC,MAAM,mBAAmBE,MAAM,YAC5B,EAAE,WAAW,gBAAgB,UAAU,GAAG,SAAS,QAAQ;CAC1D,OACE,2CAACF,uCAAqB,OAAtB;EACO;EACL,aAAU;EACV,WAAWC,iBACT,+DACA,iGACA,uIACA,SACF;EACA,GAAI;YAEJ,2CAAC,OAAD;GACE,aAAU;GACV,WAAWA,iBAAG,QAAQ,cAAc;GAEnC;EACE;CACqB;AAEhC,CACF;AACA,iBAAiB,cAAc;;;;;;AAO/B,SAAS,gBAAgB,EACvB,WACA,GAAG,SAC6B;CAChC,OACE,2CAAC,OAAD;EACE,aAAU;EACV,OAAM;EACN,OAAM;EACN,QAAO;EACP,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAY;EACZ,eAAc;EACd,gBAAe;EACf,WAAWA,iBAAG,0CAA0C,SAAS;EACjE,GAAI;YAEJ,2CAAC,QAAD,EAAM,GAAE,eAAgB;CACrB;AAET"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Collapsible as Collapsible$1 } from
|
|
3
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
3
|
+
//#region src/components/collapsible.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Collapsible Root
|
|
6
6
|
* Container for collapsible content with open/close state management.
|
|
7
7
|
*/
|
|
8
|
-
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): React.JSX.Element;
|
|
8
|
+
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): React$1.JSX.Element;
|
|
9
9
|
/**
|
|
10
10
|
* CollapsibleTrigger Props
|
|
11
11
|
*/
|
|
12
12
|
type CollapsibleTriggerProps = Collapsible$1.Trigger.Props & {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
16
|
+
nativeButton?: boolean;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* CollapsibleTrigger
|
|
20
20
|
* Button that toggles the collapsible open/closed state.
|
|
21
21
|
* Supports asChild pattern for custom trigger elements.
|
|
22
22
|
*/
|
|
23
|
-
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
24
24
|
/**
|
|
25
25
|
* CollapsiblePanel Props
|
|
26
26
|
*/
|
|
27
27
|
type CollapsiblePanelProps = Collapsible$1.Panel.Props & {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
/** Additional className for the inner content wrapper */
|
|
29
|
+
innerClassName?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* CollapsiblePanel
|
|
33
33
|
* Compositor-animated reveal for collapsible content.
|
|
34
34
|
* Geometry snaps to its measured height while opacity/translation carry the state change.
|
|
35
35
|
*/
|
|
36
|
-
declare const CollapsiblePanel: React.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CollapsiblePanel: React$1.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
/**
|
|
38
38
|
* CollapsibleIcon
|
|
39
39
|
* Animated chevron icon that rotates when the collapsible opens/closes.
|
|
40
40
|
* Use this within CollapsibleTrigger for automatic rotation animation.
|
|
41
41
|
*/
|
|
42
|
-
declare function CollapsibleIcon({ className, ...props }: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
43
|
-
|
|
44
|
-
export { Collapsible, CollapsiblePanel as CollapsibleContent,
|
|
42
|
+
declare function CollapsibleIcon({ className, ...props }: React$1.SVGProps<SVGSVGElement>): React$1.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Collapsible, CollapsiblePanel as CollapsibleContent, CollapsiblePanel, CollapsibleIcon, type CollapsiblePanelProps, CollapsibleTrigger, type CollapsibleTriggerProps };
|
|
45
|
+
//# sourceMappingURL=collapsible.d.cts.map
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Collapsible as Collapsible$1 } from
|
|
3
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
3
|
+
//#region src/components/collapsible.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Collapsible Root
|
|
6
6
|
* Container for collapsible content with open/close state management.
|
|
7
7
|
*/
|
|
8
|
-
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): React.JSX.Element;
|
|
8
|
+
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): React$1.JSX.Element;
|
|
9
9
|
/**
|
|
10
10
|
* CollapsibleTrigger Props
|
|
11
11
|
*/
|
|
12
12
|
type CollapsibleTriggerProps = Collapsible$1.Trigger.Props & {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
16
|
+
nativeButton?: boolean;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* CollapsibleTrigger
|
|
20
20
|
* Button that toggles the collapsible open/closed state.
|
|
21
21
|
* Supports asChild pattern for custom trigger elements.
|
|
22
22
|
*/
|
|
23
|
-
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
24
24
|
/**
|
|
25
25
|
* CollapsiblePanel Props
|
|
26
26
|
*/
|
|
27
27
|
type CollapsiblePanelProps = Collapsible$1.Panel.Props & {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
/** Additional className for the inner content wrapper */
|
|
29
|
+
innerClassName?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* CollapsiblePanel
|
|
33
33
|
* Compositor-animated reveal for collapsible content.
|
|
34
34
|
* Geometry snaps to its measured height while opacity/translation carry the state change.
|
|
35
35
|
*/
|
|
36
|
-
declare const CollapsiblePanel: React.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CollapsiblePanel: React$1.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
/**
|
|
38
38
|
* CollapsibleIcon
|
|
39
39
|
* Animated chevron icon that rotates when the collapsible opens/closes.
|
|
40
40
|
* Use this within CollapsibleTrigger for automatic rotation animation.
|
|
41
41
|
*/
|
|
42
|
-
declare function CollapsibleIcon({ className, ...props }: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
43
|
-
|
|
44
|
-
export { Collapsible, CollapsiblePanel as CollapsibleContent,
|
|
42
|
+
declare function CollapsibleIcon({ className, ...props }: React$1.SVGProps<SVGSVGElement>): React$1.JSX.Element;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Collapsible, CollapsiblePanel as CollapsibleContent, CollapsiblePanel, CollapsibleIcon, type CollapsiblePanelProps, CollapsibleTrigger, type CollapsibleTriggerProps };
|
|
45
|
+
//# sourceMappingURL=collapsible.d.ts.map
|