@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 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"popover.cjs","names":["PopoverPrimitive","React","cn"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,2CAACA,+BAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,+BAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,8EAA8C;CAEjE,OACC,2CAACA,+BAAiB,QAAlB;EAAoC;YACnC,2CAACA,+BAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,4CAACA,+BAAiB,OAAlB;IACC,aAAU;IACV,WAAWE,iBACV;;;;;;wFAOA,SACD;IACA,GAAI;cAZL,CAcE,UACA,aACA,2CAACF,+BAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,2CAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,2CAACA,+BAAiB,OAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,4BAA4B,SAAS;EACnD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,2CAACF,+BAAiB,aAAlB;EACC,aAAU;EACV,WAAWE,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Popover as Popover$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): React.JSX.Element;
|
|
5
|
-
type PopoverTriggerProps = React.ComponentProps<typeof Popover$1.Trigger> & {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
3
|
+
//#region src/components/popover.d.ts
|
|
4
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): React$1.JSX.Element;
|
|
5
|
+
type PopoverTriggerProps = React$1.ComponentProps<typeof Popover$1.Trigger> & {
|
|
6
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
7
|
+
asChild?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare function PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps): React.JSX.Element;
|
|
10
|
-
type PopoverCloseProps = React.ComponentProps<typeof Popover$1.Close> & {
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
declare function PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps): React$1.JSX.Element;
|
|
10
|
+
type PopoverCloseProps = React$1.ComponentProps<typeof Popover$1.Close> & {
|
|
11
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
12
|
+
asChild?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare function PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps): React.JSX.Element;
|
|
15
|
-
type PopoverContentProps = React.ComponentProps<typeof Popover$1.Popup> & {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
declare function PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps): React$1.JSX.Element;
|
|
15
|
+
type PopoverContentProps = React$1.ComponentProps<typeof Popover$1.Popup> & {
|
|
16
|
+
align?: 'start' | 'center' | 'end';
|
|
17
|
+
sideOffset?: number;
|
|
18
|
+
showArrow?: boolean;
|
|
19
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
20
|
+
/** @deprecated Base UI uses different focus management */
|
|
21
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
22
|
+
/** @deprecated Base UI uses different focus management */
|
|
23
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
24
|
+
/** @deprecated Use onOpenChange on Root instead */
|
|
25
|
+
onFocusOutside?: (e: Event) => void;
|
|
26
|
+
/** @deprecated Use onOpenChange on Root instead */
|
|
27
|
+
onEscapeKeyDown?: () => void;
|
|
28
28
|
};
|
|
29
|
-
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): React.JSX.Element;
|
|
29
|
+
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): React$1.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* PopoverAnchor - placeholder for positioning anchor.
|
|
32
32
|
* @deprecated Base UI Popover positions relative to Trigger by default.
|
|
33
33
|
* For custom anchoring, use Popover.Positioner with anchor prop.
|
|
34
34
|
*/
|
|
35
|
-
declare function PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
36
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<typeof Popover$1.Title>): React.JSX.Element;
|
|
37
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<typeof Popover$1.Description>): React.JSX.Element;
|
|
38
|
-
|
|
35
|
+
declare function PopoverAnchor({ ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
36
|
+
declare function PopoverTitle({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Title>): React$1.JSX.Element;
|
|
37
|
+
declare function PopoverDescription({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Description>): React$1.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
39
|
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger };
|
|
40
|
+
//# sourceMappingURL=popover.d.cts.map
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Popover as Popover$1 } from
|
|
3
|
-
|
|
4
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof Popover$1.Root>): React.JSX.Element;
|
|
5
|
-
type PopoverTriggerProps = React.ComponentProps<typeof Popover$1.Trigger> & {
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
3
|
+
//#region src/components/popover.d.ts
|
|
4
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): React$1.JSX.Element;
|
|
5
|
+
type PopoverTriggerProps = React$1.ComponentProps<typeof Popover$1.Trigger> & {
|
|
6
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
7
|
+
asChild?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare function PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps): React.JSX.Element;
|
|
10
|
-
type PopoverCloseProps = React.ComponentProps<typeof Popover$1.Close> & {
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
declare function PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps): React$1.JSX.Element;
|
|
10
|
+
type PopoverCloseProps = React$1.ComponentProps<typeof Popover$1.Close> & {
|
|
11
|
+
/** When true, merges props onto the child element instead of rendering a button */
|
|
12
|
+
asChild?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare function PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps): React.JSX.Element;
|
|
15
|
-
type PopoverContentProps = React.ComponentProps<typeof Popover$1.Popup> & {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
declare function PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps): React$1.JSX.Element;
|
|
15
|
+
type PopoverContentProps = React$1.ComponentProps<typeof Popover$1.Popup> & {
|
|
16
|
+
align?: 'start' | 'center' | 'end';
|
|
17
|
+
sideOffset?: number;
|
|
18
|
+
showArrow?: boolean;
|
|
19
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
20
|
+
/** @deprecated Base UI uses different focus management */
|
|
21
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
22
|
+
/** @deprecated Base UI uses different focus management */
|
|
23
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
24
|
+
/** @deprecated Use onOpenChange on Root instead */
|
|
25
|
+
onFocusOutside?: (e: Event) => void;
|
|
26
|
+
/** @deprecated Use onOpenChange on Root instead */
|
|
27
|
+
onEscapeKeyDown?: () => void;
|
|
28
28
|
};
|
|
29
|
-
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): React.JSX.Element;
|
|
29
|
+
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): React$1.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* PopoverAnchor - placeholder for positioning anchor.
|
|
32
32
|
* @deprecated Base UI Popover positions relative to Trigger by default.
|
|
33
33
|
* For custom anchoring, use Popover.Positioner with anchor prop.
|
|
34
34
|
*/
|
|
35
|
-
declare function PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
36
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<typeof Popover$1.Title>): React.JSX.Element;
|
|
37
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<typeof Popover$1.Description>): React.JSX.Element;
|
|
38
|
-
|
|
35
|
+
declare function PopoverAnchor({ ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
36
|
+
declare function PopoverTitle({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Title>): React$1.JSX.Element;
|
|
37
|
+
declare function PopoverDescription({ className, ...props }: React$1.ComponentProps<typeof Popover$1.Description>): React$1.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
39
|
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger };
|
|
40
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1,112 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
4
|
-
import { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';
|
|
5
|
-
import { clsx } from 'clsx';
|
|
6
|
-
import { twMerge } from 'tailwind-merge';
|
|
7
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useFloatingOverlayPortalProps } from "@constructive-io/ui/portal";
|
|
7
|
+
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
8
|
+
|
|
9
|
+
//#region src/components/popover.tsx
|
|
12
10
|
function Popover({ ...props }) {
|
|
13
|
-
|
|
11
|
+
return /* @__PURE__ */ jsx(Popover$1.Root, {
|
|
12
|
+
"data-slot": "popover",
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
14
15
|
}
|
|
15
16
|
function PopoverTrigger({ asChild, children, render, nativeButton, ...props }) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
children: childRender ? void 0 : children
|
|
25
|
-
}
|
|
26
|
-
);
|
|
17
|
+
const childRender = render === void 0 && asChild && React$1.isValidElement(children) ? children : void 0;
|
|
18
|
+
return /* @__PURE__ */ jsx(Popover$1.Trigger, {
|
|
19
|
+
"data-slot": "popover-trigger",
|
|
20
|
+
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
21
|
+
render: render ?? childRender,
|
|
22
|
+
...props,
|
|
23
|
+
children: childRender ? void 0 : children
|
|
24
|
+
});
|
|
27
25
|
}
|
|
28
26
|
function PopoverClose({ asChild, children, render, nativeButton, ...props }) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: childRender ? void 0 : children
|
|
38
|
-
}
|
|
39
|
-
);
|
|
27
|
+
const childRender = render === void 0 && asChild && React$1.isValidElement(children) ? children : void 0;
|
|
28
|
+
return /* @__PURE__ */ jsx(Popover$1.Close, {
|
|
29
|
+
"data-slot": "popover-close",
|
|
30
|
+
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
31
|
+
render: render ?? childRender,
|
|
32
|
+
...props,
|
|
33
|
+
children: childRender ? void 0 : children
|
|
34
|
+
});
|
|
40
35
|
}
|
|
41
|
-
function PopoverContent({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}) {
|
|
54
|
-
const { container, zIndexClass } = useFloatingOverlayPortalProps();
|
|
55
|
-
return /* @__PURE__ */ jsx(Popover$1.Portal, { container, children: /* @__PURE__ */ jsx(
|
|
56
|
-
Popover$1.Positioner,
|
|
57
|
-
{
|
|
58
|
-
side,
|
|
59
|
-
align,
|
|
60
|
-
sideOffset,
|
|
61
|
-
className: zIndexClass,
|
|
62
|
-
children: /* @__PURE__ */ jsxs(
|
|
63
|
-
Popover$1.Popup,
|
|
64
|
-
{
|
|
65
|
-
"data-slot": "popover-content",
|
|
66
|
-
className: cn(
|
|
67
|
-
`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden
|
|
36
|
+
function PopoverContent({ className, align = "center", sideOffset = 4, showArrow = false, side = "bottom", children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }) {
|
|
37
|
+
const { container, zIndexClass } = useFloatingOverlayPortalProps();
|
|
38
|
+
return /* @__PURE__ */ jsx(Popover$1.Portal, {
|
|
39
|
+
container,
|
|
40
|
+
children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
|
|
41
|
+
side,
|
|
42
|
+
align,
|
|
43
|
+
sideOffset,
|
|
44
|
+
className: zIndexClass,
|
|
45
|
+
children: /* @__PURE__ */ jsxs(Popover$1.Popup, {
|
|
46
|
+
"data-slot": "popover-content",
|
|
47
|
+
className: cn(`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden
|
|
68
48
|
transition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95
|
|
69
49
|
data-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0
|
|
70
50
|
data-[side=bottom]:data-starting-style:-translate-y-2
|
|
71
51
|
data-[side=left]:data-starting-style:translate-x-2
|
|
72
52
|
data-[side=right]:data-starting-style:-translate-x-2
|
|
73
|
-
data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
showArrow && /* @__PURE__ */ jsx(Popover$1.Arrow, { className: "fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]" })
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
}
|
|
84
|
-
) });
|
|
53
|
+
data-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`, className),
|
|
54
|
+
...props,
|
|
55
|
+
children: [children, showArrow && /* @__PURE__ */ jsx(Popover$1.Arrow, { className: "fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]" })]
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
85
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* PopoverAnchor - placeholder for positioning anchor.
|
|
62
|
+
* @deprecated Base UI Popover positions relative to Trigger by default.
|
|
63
|
+
* For custom anchoring, use Popover.Positioner with anchor prop.
|
|
64
|
+
*/
|
|
86
65
|
function PopoverAnchor({ ...props }) {
|
|
87
|
-
|
|
66
|
+
return /* @__PURE__ */ jsx("div", {
|
|
67
|
+
"data-slot": "popover-anchor",
|
|
68
|
+
...props
|
|
69
|
+
});
|
|
88
70
|
}
|
|
89
71
|
function PopoverTitle({ className, ...props }) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
...props
|
|
96
|
-
}
|
|
97
|
-
);
|
|
72
|
+
return /* @__PURE__ */ jsx(Popover$1.Title, {
|
|
73
|
+
"data-slot": "popover-title",
|
|
74
|
+
className: cn("font-medium leading-none", className),
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
98
77
|
}
|
|
99
78
|
function PopoverDescription({ className, ...props }) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
...props
|
|
106
|
-
}
|
|
107
|
-
);
|
|
79
|
+
return /* @__PURE__ */ jsx(Popover$1.Description, {
|
|
80
|
+
"data-slot": "popover-description",
|
|
81
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
108
84
|
}
|
|
109
85
|
|
|
86
|
+
//#endregion
|
|
110
87
|
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger };
|
|
111
|
-
//# sourceMappingURL=popover.js.map
|
|
112
88
|
//# sourceMappingURL=popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"popover.js","names":["PopoverPrimitive","React"],"sources":["../../src/components/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as PopoverPrimitive } from '@base-ui/react/popover';\n\nimport { useFloatingOverlayPortalProps } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\ntype PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverTrigger({ asChild, children, render, nativeButton, ...props }: PopoverTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Trigger\n\t\t\tdata-slot=\"popover-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Trigger>\n\t);\n}\n\ntype PopoverCloseProps = React.ComponentProps<typeof PopoverPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction PopoverClose({ asChild, children, render, nativeButton, ...props }: PopoverCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<PopoverPrimitive.Close\n\t\t\tdata-slot=\"popover-close\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</PopoverPrimitive.Close>\n\t);\n}\n\ntype PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Popup> & {\n\talign?: 'start' | 'center' | 'end';\n\tsideOffset?: number;\n\tshowArrow?: boolean;\n\tside?: 'top' | 'bottom' | 'left' | 'right';\n\t/** @deprecated Base UI uses different focus management */\n\tonOpenAutoFocus?: (e: Event) => void;\n\t/** @deprecated Base UI uses different focus management */\n\tonCloseAutoFocus?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonFocusOutside?: (e: Event) => void;\n\t/** @deprecated Use onOpenChange on Root instead */\n\tonEscapeKeyDown?: () => void;\n};\n\nfunction PopoverContent({\n\tclassName,\n\talign = 'center',\n\tsideOffset = 4,\n\tshowArrow = false,\n\tside = 'bottom',\n\tchildren,\n\tonOpenAutoFocus: _onOpenAutoFocus,\n\tonCloseAutoFocus: _onCloseAutoFocus,\n\tonFocusOutside: _onFocusOutside,\n\tonEscapeKeyDown: _onEscapeKeyDown,\n\t...props\n}: PopoverContentProps) {\n\tconst { container, zIndexClass } = useFloatingOverlayPortalProps();\n\n\treturn (\n\t\t<PopoverPrimitive.Portal container={container}>\n\t\t\t<PopoverPrimitive.Positioner\n\t\t\t\tside={side}\n\t\t\t\talign={align}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={zIndexClass}\n\t\t\t>\n\t\t\t\t<PopoverPrimitive.Popup\n\t\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t`bg-popover text-popover-foreground origin-(--transform-origin) w-72 rounded-md border p-4 shadow-md outline-hidden\n\t\t\t\t\t\ttransition-[scale,opacity,translate] duration-150 ease-out data-starting-style:scale-95\n\t\t\t\t\t\tdata-ending-style:scale-95 data-starting-style:opacity-0 data-ending-style:opacity-0\n\t\t\t\t\t\tdata-[side=bottom]:data-starting-style:-translate-y-2\n\t\t\t\t\t\tdata-[side=left]:data-starting-style:translate-x-2\n\t\t\t\t\t\tdata-[side=right]:data-starting-style:-translate-x-2\n\t\t\t\t\t\tdata-[side=top]:data-starting-style:translate-y-2 motion-reduce:transition-none`,\n\t\t\t\t\t\tclassName,\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t\t{showArrow && (\n\t\t\t\t\t\t<PopoverPrimitive.Arrow className='fill-popover -my-px drop-shadow-[0_1px_0_var(--border)]' />\n\t\t\t\t\t)}\n\t\t\t\t</PopoverPrimitive.Popup>\n\t\t\t</PopoverPrimitive.Positioner>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\n/**\n * PopoverAnchor - placeholder for positioning anchor.\n * @deprecated Base UI Popover positions relative to Trigger by default.\n * For custom anchoring, use Popover.Positioner with anchor prop.\n */\nfunction PopoverAnchor({ ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn <div data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Title>) {\n\treturn (\n\t\t<PopoverPrimitive.Title\n\t\t\tdata-slot=\"popover-title\"\n\t\t\tclassName={cn('font-medium leading-none', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<typeof PopoverPrimitive.Description>) {\n\treturn (\n\t\t<PopoverPrimitive.Description\n\t\t\tdata-slot=\"popover-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tPopover,\n\tPopoverAnchor,\n\tPopoverClose,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,QAAQ,EAAE,GAAG,SAA6D;CAClF,OAAO,oBAACA,UAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ;AAC/D;AAOA,SAAS,eAAe,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA8B;CACnG,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,SAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACF;AAE5B;AAOA,SAAS,aAAa,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAA4B;CAC/F,MAAM,cAAc,WAAW,UAAa,WAAWC,QAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,oBAACD,UAAiB,OAAlB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACJ;AAE1B;AAiBA,SAAS,eAAe,EACvB,WACA,QAAQ,UACR,aAAa,GACb,YAAY,OACZ,OAAO,UACP,UACA,iBAAiB,kBACjB,kBAAkB,mBAClB,gBAAgB,iBAChB,iBAAiB,kBACjB,GAAG,SACoB;CACvB,MAAM,EAAE,WAAW,gBAAgB,8BAA8B;CAEjE,OACC,oBAACA,UAAiB,QAAlB;EAAoC;YACnC,oBAACA,UAAiB,YAAlB;GACO;GACC;GACK;GACZ,WAAW;aAEX,qBAACA,UAAiB,OAAlB;IACC,aAAU;IACV,WAAW,GACV;;;;;;wFAOA,SACD;IACA,GAAI;cAZL,CAcE,UACA,aACA,oBAACA,UAAiB,OAAlB,EAAwB,WAAU,0DAA2D,EAEvE;;EACI;CACL;AAE3B;;;;;;AAOA,SAAS,cAAc,EAAE,GAAG,SAA+C;CAC1E,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAiB,GAAI;CAAQ;AACpD;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA8D;CACnG,OACC,oBAACA,UAAiB,OAAlB;EACC,aAAU;EACV,WAAW,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoE;CAC/G,OACC,oBAACA,UAAiB,aAAlB;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH"}
|
|
@@ -1,102 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
'use strict';
|
|
1
|
+
'use client';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n.default = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
-
|
|
27
|
-
var PORTAL_ROOT_ID = "portal-root";
|
|
28
|
-
var PortalContext = React__namespace.createContext({
|
|
29
|
-
layer: "base",
|
|
30
|
-
depth: 0,
|
|
31
|
-
floatingPortalStrategy: "root",
|
|
32
|
-
floatingZIndex: "default"
|
|
9
|
+
//#region src/components/portal.tsx
|
|
10
|
+
const PORTAL_ROOT_ID = "portal-root";
|
|
11
|
+
const PortalContext = react.createContext({
|
|
12
|
+
layer: "base",
|
|
13
|
+
depth: 0,
|
|
14
|
+
floatingPortalStrategy: "root",
|
|
15
|
+
floatingZIndex: "default"
|
|
33
16
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Provider for modal overlays (Dialog, Sheet, Drawer, etc.)
|
|
19
|
+
*
|
|
20
|
+
* Wraps modal content to:
|
|
21
|
+
* 1. Create a scoped portal container for nested floating elements
|
|
22
|
+
* 2. Track the overlay layer (so floating elements know to use elevated z-index)
|
|
23
|
+
* 3. Track nesting depth for stacked modals
|
|
24
|
+
*
|
|
25
|
+
* Usage:
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <DialogPopup>
|
|
28
|
+
* <ModalPortalScope>
|
|
29
|
+
* {children} // Popovers inside here will render in the scoped container
|
|
30
|
+
* </ModalPortalScope>
|
|
31
|
+
* </DialogPopup>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
function ModalPortalScope({ children, floatingPortalStrategy = "nested", floatingZIndex = "default", floatingContainer }) {
|
|
35
|
+
const parentContext = react.useContext(PortalContext);
|
|
36
|
+
const depth = parentContext.layer === "modal" ? parentContext.depth + 1 : 0;
|
|
37
|
+
const value = react.useMemo(() => ({
|
|
38
|
+
layer: "modal",
|
|
39
|
+
depth,
|
|
40
|
+
floatingPortalStrategy,
|
|
41
|
+
floatingZIndex,
|
|
42
|
+
floatingContainer: floatingContainer ?? void 0
|
|
43
|
+
}), [
|
|
44
|
+
depth,
|
|
45
|
+
floatingContainer,
|
|
46
|
+
floatingPortalStrategy,
|
|
47
|
+
floatingZIndex
|
|
48
|
+
]);
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalContext.Provider, {
|
|
50
|
+
value,
|
|
51
|
+
children
|
|
52
|
+
});
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Get the current portal context value.
|
|
56
|
+
* Used internally by other hooks.
|
|
57
|
+
*/
|
|
54
58
|
function usePortalContext() {
|
|
55
|
-
|
|
59
|
+
return react.useContext(PortalContext);
|
|
56
60
|
}
|
|
57
61
|
function useInModalOverlay() {
|
|
58
|
-
|
|
62
|
+
return react.useContext(PortalContext).layer === "modal";
|
|
59
63
|
}
|
|
60
64
|
function getPortalRootElement() {
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
if (typeof document === "undefined") return null;
|
|
66
|
+
return document.getElementById(PORTAL_ROOT_ID);
|
|
63
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Get the root portal container element.
|
|
70
|
+
* Used by modal components (Dialog, Sheet, etc.) to render their portals.
|
|
71
|
+
*
|
|
72
|
+
* Reads `#portal-root` synchronously on the client so mount-on-open overlays
|
|
73
|
+
* (menus, selects, popovers, tooltips) get a real container on their first
|
|
74
|
+
* paint. A null→element handoff after layout effect is too late for Base UI
|
|
75
|
+
* portals that only mount while open — they stay empty forever.
|
|
76
|
+
*
|
|
77
|
+
* @returns The root portal container, or null during SSR / when unmounted
|
|
78
|
+
*/
|
|
64
79
|
function useRootPortalContainer() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
80
|
+
const [container, setContainer] = react.useState(getPortalRootElement);
|
|
81
|
+
react.useLayoutEffect(() => {
|
|
82
|
+
setContainer(getPortalRootElement());
|
|
83
|
+
}, []);
|
|
84
|
+
return container;
|
|
70
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Centralized portal + z-index policy for floating overlays.
|
|
88
|
+
*
|
|
89
|
+
* - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal
|
|
90
|
+
* into the nearest Base UI portal node (so dialog "inert" behavior includes it).
|
|
91
|
+
* - When it's 'root', we portal into #portal-root.
|
|
92
|
+
* - When the root is not ready yet, pass `undefined` (not `null`) so Base UI
|
|
93
|
+
* falls back to `document.body` instead of rendering into a dead portal.
|
|
94
|
+
*/
|
|
71
95
|
function useFloatingOverlayPortalProps() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
96
|
+
const rootContainer = useRootPortalContainer();
|
|
97
|
+
const { floatingContainer, floatingPortalStrategy, floatingZIndex } = react.useContext(PortalContext);
|
|
98
|
+
return {
|
|
99
|
+
container: floatingContainer ?? (floatingPortalStrategy === "nested" ? void 0 : rootContainer ?? void 0),
|
|
100
|
+
zIndexClass: floatingZIndex === "elevated" ? "z-[var(--z-layer-floating-elevated)]" : "z-[var(--z-layer-floating)]"
|
|
101
|
+
};
|
|
77
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Portal root component to render in app layout.
|
|
105
|
+
* All overlay components will render their portals inside this container.
|
|
106
|
+
*
|
|
107
|
+
* Usage in layout.tsx:
|
|
108
|
+
* ```tsx
|
|
109
|
+
* import { PortalRoot } from '@/components/ui/portal';
|
|
110
|
+
*
|
|
111
|
+
* export default function RootLayout({ children }) {
|
|
112
|
+
* return (
|
|
113
|
+
* <html>
|
|
114
|
+
* <body>
|
|
115
|
+
* {children}
|
|
116
|
+
* <PortalRoot />
|
|
117
|
+
* </body>
|
|
118
|
+
* </html>
|
|
119
|
+
* );
|
|
120
|
+
* }
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
78
123
|
function PortalRoot() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// Children (portal contents) will have pointer-events: auto
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
);
|
|
124
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
125
|
+
id: PORTAL_ROOT_ID,
|
|
126
|
+
"data-slot": "portal-root",
|
|
127
|
+
style: {
|
|
128
|
+
position: "fixed",
|
|
129
|
+
inset: 0,
|
|
130
|
+
zIndex: "var(--z-layer-portal-root)",
|
|
131
|
+
pointerEvents: "none"
|
|
132
|
+
}
|
|
133
|
+
});
|
|
93
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Hook to get the portal container element for rendering floating UI elements.
|
|
137
|
+
* Returns the element with id="portal-root" if it exists in the DOM.
|
|
138
|
+
*
|
|
139
|
+
* @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead
|
|
140
|
+
*/
|
|
94
141
|
function usePortalContainer() {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
142
|
+
if (typeof document === "undefined") return void 0;
|
|
143
|
+
const el = document.getElementById(PORTAL_ROOT_ID);
|
|
144
|
+
return el instanceof HTMLElement ? el : void 0;
|
|
98
145
|
}
|
|
99
146
|
|
|
147
|
+
//#endregion
|
|
100
148
|
exports.ModalPortalScope = ModalPortalScope;
|
|
101
149
|
exports.PORTAL_ROOT_ID = PORTAL_ROOT_ID;
|
|
102
150
|
exports.PortalRoot = PortalRoot;
|
|
@@ -105,5 +153,4 @@ exports.useInModalOverlay = useInModalOverlay;
|
|
|
105
153
|
exports.usePortalContainer = usePortalContainer;
|
|
106
154
|
exports.usePortalContext = usePortalContext;
|
|
107
155
|
exports.useRootPortalContainer = useRootPortalContainer;
|
|
108
|
-
//# sourceMappingURL=portal.cjs.map
|
|
109
156
|
//# sourceMappingURL=portal.cjs.map
|