@constructive-io/ui 0.4.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -22
- package/dist/button-D4vqTxhp.d.cts +20 -0
- package/dist/button-D4vqTxhp.d.ts +20 -0
- package/dist/components/alert-dialog.cjs +129 -0
- package/dist/components/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog.d.cts +33 -0
- package/dist/components/alert-dialog.d.ts +23 -21
- package/dist/components/alert-dialog.js +98 -296
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +62 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.d.cts +19 -0
- package/dist/components/alert.d.ts +18 -13
- package/dist/components/alert.js +49 -31
- package/dist/components/alert.js.map +1 -1
- package/dist/components/app-bar.cjs +81 -0
- package/dist/components/app-bar.cjs.map +1 -0
- package/dist/components/app-bar.d.cts +27 -0
- package/dist/components/app-bar.d.ts +27 -0
- package/dist/components/app-bar.js +77 -0
- package/dist/components/app-bar.js.map +1 -0
- package/dist/components/app-shell.cjs +267 -0
- package/dist/components/app-shell.cjs.map +1 -0
- package/dist/components/app-shell.d.cts +98 -0
- package/dist/components/app-shell.d.ts +98 -0
- package/dist/components/app-shell.js +264 -0
- package/dist/components/app-shell.js.map +1 -0
- package/dist/components/autocomplete.cjs +167 -0
- package/dist/components/autocomplete.cjs.map +1 -0
- package/dist/components/autocomplete.d.cts +28 -0
- package/dist/components/autocomplete.d.ts +24 -24
- package/dist/components/autocomplete.js +146 -397
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +39 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.d.cts +13 -0
- package/dist/components/avatar.d.ts +11 -11
- package/dist/components/avatar.js +24 -27
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +48 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.d.cts +15 -0
- package/dist/components/badge.d.ts +13 -13
- package/dist/components/badge.js +39 -38
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +89 -0
- package/dist/components/breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb.d.cts +15 -0
- package/dist/components/breadcrumb.d.ts +14 -13
- package/dist/components/breadcrumb.js +63 -137
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button.cjs +75 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.d.cts +2 -0
- package/dist/components/button.d.ts +2 -17
- package/dist/components/button.js +66 -57
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +72 -0
- package/dist/components/calendar-rac.cjs.map +1 -0
- package/dist/components/calendar-rac.d.cts +13 -0
- package/dist/components/calendar-rac.d.ts +8 -8
- package/dist/components/calendar-rac.js +49 -61
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +86 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.d.cts +17 -0
- package/dist/components/card.d.ts +15 -17
- package/dist/components/card.js +58 -57
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox-group.cjs +19 -0
- package/dist/components/checkbox-group.cjs.map +1 -0
- package/dist/components/checkbox-group.d.cts +7 -0
- package/dist/components/checkbox-group.d.ts +5 -5
- package/dist/components/checkbox-group.js +12 -10
- package/dist/components/checkbox-group.js.map +1 -1
- package/dist/components/checkbox.cjs +67 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.d.cts +8 -0
- package/dist/components/checkbox.d.ts +6 -6
- package/dist/components/checkbox.js +58 -61
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +90 -0
- package/dist/components/collapsible.cjs.map +1 -0
- package/dist/components/collapsible.d.cts +45 -0
- package/dist/components/collapsible.d.ts +19 -28
- package/dist/components/collapsible.js +74 -112
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +257 -0
- package/dist/components/combobox.cjs.map +1 -0
- package/dist/components/combobox.d.cts +44 -0
- package/dist/components/combobox.d.ts +36 -36
- package/dist/components/combobox.js +229 -515
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +139 -0
- package/dist/components/command.cjs.map +1 -0
- package/dist/components/command.d.cts +24 -0
- package/dist/components/command.d.ts +22 -22
- package/dist/components/command.js +109 -240
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +139 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.d.cts +31 -0
- package/dist/components/dialog.d.ts +27 -31
- package/dist/components/dialog.js +112 -429
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +90 -0
- package/dist/components/dock.cjs.map +1 -0
- package/dist/components/dock.d.cts +30 -0
- package/dist/components/dock.d.ts +25 -26
- package/dist/components/dock.js +78 -104
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +115 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.d.cts +16 -0
- package/dist/components/drawer.d.ts +15 -15
- package/dist/components/drawer.js +77 -121
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +217 -0
- package/dist/components/dropdown-menu.cjs.map +1 -0
- package/dist/components/dropdown-menu.d.cts +53 -0
- package/dist/components/dropdown-menu.d.ts +49 -46
- package/dist/components/dropdown-menu.js +177 -357
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +72 -0
- package/dist/components/empty.cjs.map +1 -0
- package/dist/components/empty.d.cts +15 -0
- package/dist/components/empty.d.ts +15 -0
- package/dist/components/empty.js +64 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.cjs +186 -0
- package/dist/components/field.cjs.map +1 -0
- package/dist/components/field.d.cts +46 -0
- package/dist/components/field.d.ts +44 -49
- package/dist/components/field.js +166 -108
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +153 -0
- package/dist/components/flickering-grid.cjs.map +1 -0
- package/dist/components/flickering-grid.d.cts +16 -0
- package/dist/components/flickering-grid.d.ts +14 -13
- package/dist/components/flickering-grid.js +144 -141
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +62 -0
- package/dist/components/flow-zoom-panel.cjs.map +1 -0
- package/dist/components/flow-zoom-panel.d.cts +12 -0
- package/dist/components/flow-zoom-panel.d.ts +12 -0
- package/dist/components/flow-zoom-panel.js +61 -0
- package/dist/components/flow-zoom-panel.js.map +1 -0
- package/dist/components/form-control.cjs +65 -0
- package/dist/components/form-control.cjs.map +1 -0
- package/dist/components/form-control.d.cts +15 -0
- package/dist/components/form-control.d.ts +11 -11
- package/dist/components/form-control.js +56 -167
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +102 -0
- package/dist/components/form.cjs.map +1 -0
- package/dist/components/form.d.cts +2 -0
- package/dist/components/form.d.ts +2 -37
- package/dist/components/form.js +76 -163
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +70 -0
- package/dist/components/input-group.cjs.map +1 -0
- package/dist/components/input-group.d.cts +16 -0
- package/dist/components/input-group.d.ts +14 -16
- package/dist/components/input-group.js +51 -163
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input.cjs +37 -0
- package/dist/components/input.cjs.map +1 -0
- package/dist/components/input.d.cts +2 -0
- package/dist/components/input.d.ts +2 -11
- package/dist/components/input.js +30 -54
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-input.cjs +147 -0
- package/dist/components/json-input.cjs.map +1 -0
- package/dist/components/json-input.d.cts +26 -0
- package/dist/components/json-input.d.ts +20 -19
- package/dist/components/json-input.js +132 -340
- package/dist/components/json-input.js.map +1 -1
- package/dist/components/label.cjs +27 -0
- package/dist/components/label.cjs.map +1 -0
- package/dist/components/label.d.cts +11 -0
- package/dist/components/label.d.ts +6 -6
- package/dist/components/label.js +17 -20
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +68 -0
- package/dist/components/motion-grid.cjs.map +1 -0
- package/dist/components/motion-grid.d.cts +20 -0
- package/dist/components/motion-grid.d.ts +15 -15
- package/dist/components/motion-grid.js +59 -75
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +573 -0
- package/dist/components/multi-select.cjs.map +1 -0
- package/dist/components/multi-select.d.cts +198 -0
- package/dist/components/multi-select.d.ts +173 -173
- package/dist/components/multi-select.js +562 -874
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +30 -0
- package/dist/components/page-header.cjs.map +1 -0
- package/dist/components/page-header.d.cts +17 -0
- package/dist/components/page-header.d.ts +11 -11
- package/dist/components/page-header.js +23 -11
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +95 -0
- package/dist/components/pagination.cjs.map +1 -0
- package/dist/components/pagination.d.cts +17 -0
- package/dist/components/pagination.d.ts +15 -17
- package/dist/components/pagination.js +70 -128
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/popover.cjs +97 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.d.cts +40 -0
- package/dist/components/popover.d.ts +33 -28
- package/dist/components/popover.js +78 -178
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal.cjs +156 -0
- package/dist/components/portal.cjs.map +1 -0
- package/dist/components/portal.d.cts +118 -0
- package/dist/components/portal.d.ts +33 -23
- package/dist/components/portal.js +128 -57
- package/dist/components/portal.js.map +1 -1
- package/dist/components/progress.cjs +30 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.d.cts +10 -0
- package/dist/components/progress.d.ts +8 -8
- package/dist/components/progress.js +21 -24
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +76 -0
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -0
- package/dist/components/progressive-blur-scroll-container.d.cts +25 -0
- package/dist/components/progressive-blur-scroll-container.d.ts +19 -19
- package/dist/components/progressive-blur-scroll-container.js +70 -137
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +46 -0
- package/dist/components/progressive-blur.cjs.map +1 -0
- package/dist/components/progressive-blur.d.cts +17 -0
- package/dist/components/progressive-blur.d.ts +15 -14
- package/dist/components/progressive-blur.js +38 -63
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +38 -0
- package/dist/components/radio-group.cjs.map +1 -0
- package/dist/components/radio-group.d.cts +10 -0
- package/dist/components/radio-group.d.ts +8 -8
- package/dist/components/radio-group.js +28 -30
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +8 -0
- package/dist/components/record-picker.d.cts +16 -0
- package/dist/components/record-picker.d.ts +13 -13
- package/dist/components/record-picker.js +5 -364
- package/dist/components/resizable.cjs +50 -0
- package/dist/components/resizable.cjs.map +1 -0
- package/dist/components/resizable.d.cts +11 -0
- package/dist/components/resizable.d.ts +10 -10
- package/dist/components/resizable.js +29 -37
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +56 -0
- package/dist/components/responsive-diagram.cjs.map +1 -0
- package/dist/components/responsive-diagram.d.cts +10 -0
- package/dist/components/responsive-diagram.d.ts +7 -7
- package/dist/components/responsive-diagram.js +50 -60
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +46 -0
- package/dist/components/scroll-area.cjs.map +1 -0
- package/dist/components/scroll-area.d.cts +12 -0
- package/dist/components/scroll-area.d.ts +11 -11
- package/dist/components/scroll-area.js +35 -62
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +204 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.d.cts +47 -0
- package/dist/components/select.d.ts +38 -38
- package/dist/components/select.js +172 -269
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +23 -0
- package/dist/components/separator.cjs.map +1 -0
- package/dist/components/separator.d.cts +2 -0
- package/dist/components/separator.d.ts +2 -11
- package/dist/components/separator.js +14 -18
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +19 -0
- package/dist/components/sheet.d.cts +107 -0
- package/dist/components/sheet.d.ts +85 -90
- package/dist/components/sheet.js +3 -598
- package/dist/components/sidebar.cjs +29 -0
- package/dist/components/sidebar.d.cts +67 -0
- package/dist/components/sidebar.d.ts +63 -73
- package/dist/components/sidebar.js +3 -1215
- package/dist/components/skeleton.cjs +24 -0
- package/dist/components/skeleton.cjs.map +1 -0
- package/dist/components/skeleton.d.cts +11 -0
- package/dist/components/skeleton.d.ts +10 -6
- package/dist/components/skeleton.js +15 -10
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/sonner.cjs +23 -0
- package/dist/components/sonner.cjs.map +1 -0
- package/dist/components/sonner.d.cts +10 -0
- package/dist/components/sonner.d.ts +7 -7
- package/dist/components/sonner.js +17 -18
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/stack/index.cjs +44 -0
- package/dist/components/stack/index.d.cts +2 -0
- package/dist/components/stack/index.d.ts +2 -674
- package/dist/components/stack/index.js +3 -1444
- package/dist/components/stepper.cjs +160 -0
- package/dist/components/stepper.cjs.map +1 -0
- package/dist/components/stepper.d.cts +32 -0
- package/dist/components/stepper.d.ts +27 -25
- package/dist/components/stepper.js +133 -261
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +35 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.d.cts +8 -0
- package/dist/components/switch.d.ts +7 -7
- package/dist/components/switch.js +26 -34
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +85 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.d.cts +23 -0
- package/dist/components/table.d.ts +23 -15
- package/dist/components/table.js +56 -46
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +49 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.d.cts +10 -0
- package/dist/components/tabs.d.ts +9 -9
- package/dist/components/tabs.js +31 -36
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +132 -0
- package/dist/components/tags.cjs.map +1 -0
- package/dist/components/tags.d.cts +36 -0
- package/dist/components/tags.d.ts +24 -28
- package/dist/components/tags.js +114 -438
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +34 -0
- package/dist/components/textarea.cjs.map +1 -0
- package/dist/components/textarea.d.cts +10 -0
- package/dist/components/textarea.d.ts +8 -8
- package/dist/components/textarea.js +27 -48
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +9 -0
- package/dist/components/toast/index.d.cts +2 -0
- package/dist/components/toast/index.d.ts +2 -52
- package/dist/components/toast/index.js +3 -623
- package/dist/components/tooltip.cjs +67 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.d.cts +2 -0
- package/dist/components/tooltip.d.ts +2 -29
- package/dist/components/tooltip.js +53 -166
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +24 -0
- package/dist/components/unlink-button.cjs.map +1 -0
- package/dist/components/unlink-button.d.cts +14 -0
- package/dist/components/unlink-button.d.ts +11 -11
- package/dist/components/unlink-button.js +18 -86
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/form-DgRTv7O7.d.ts +54 -0
- package/dist/form-DoZEWSzb.d.cts +54 -0
- package/dist/index-CjA4CENl.d.cts +684 -0
- package/dist/index-CjA4CENl.d.ts +684 -0
- package/dist/index-UnM04j0t.d.cts +58 -0
- package/dist/index-UnM04j0t.d.ts +58 -0
- package/dist/index.cjs +408 -9346
- package/dist/index.d.cts +224 -2548
- package/dist/index.d.ts +224 -2548
- package/dist/index.js +65 -9022
- package/dist/input-CBrCuMH8.d.cts +11 -0
- package/dist/input-CBrCuMH8.d.ts +11 -0
- package/dist/motion-config-COCFHq1L.cjs +271 -0
- package/dist/motion-config-COCFHq1L.cjs.map +1 -0
- package/dist/motion-config-COsZ6azM.js +241 -0
- package/dist/motion-config-COsZ6azM.js.map +1 -0
- package/dist/record-picker-BbxngCeV.js +162 -0
- package/dist/record-picker-BbxngCeV.js.map +1 -0
- package/dist/record-picker-Bz4FApxD.cjs +167 -0
- package/dist/record-picker-Bz4FApxD.cjs.map +1 -0
- package/dist/rolldown-runtime-D_qnwXdH.cjs +35 -0
- package/dist/separator-BQEsr0Rc.d.cts +11 -0
- package/dist/separator-BQEsr0Rc.d.ts +11 -0
- package/dist/sheet-BLHnhLRH.js +425 -0
- package/dist/sheet-BLHnhLRH.js.map +1 -0
- package/dist/sheet-BdA0rfIz.cjs +515 -0
- package/dist/sheet-BdA0rfIz.cjs.map +1 -0
- package/dist/sidebar-CPy_fibW.cjs +608 -0
- package/dist/sidebar-CPy_fibW.cjs.map +1 -0
- package/dist/sidebar-Cfax0g0_.js +463 -0
- package/dist/sidebar-Cfax0g0_.js.map +1 -0
- package/dist/slot-C-jEfihz.cjs +122 -0
- package/dist/slot-C-jEfihz.cjs.map +1 -0
- package/dist/slot-EL8zfLG0.js +97 -0
- package/dist/slot-EL8zfLG0.js.map +1 -0
- package/dist/stack-DKdvlOM6.cjs +1771 -0
- package/dist/stack-DKdvlOM6.cjs.map +1 -0
- package/dist/stack-jMdxDrex.js +1531 -0
- package/dist/stack-jMdxDrex.js.map +1 -0
- package/dist/toast-D6MqijT2.cjs +316 -0
- package/dist/toast-D6MqijT2.cjs.map +1 -0
- package/dist/toast-D_BOLzm3.js +287 -0
- package/dist/toast-D_BOLzm3.js.map +1 -0
- package/dist/tooltip-CTRQoN1A.d.cts +29 -0
- package/dist/tooltip-CTRQoN1A.d.ts +29 -0
- package/dist/utils-BkMLyah9.js +12 -0
- package/dist/utils-BkMLyah9.js.map +1 -0
- package/dist/utils-CzTQ3-VI.cjs +17 -0
- package/dist/utils-CzTQ3-VI.cjs.map +1 -0
- package/package.json +288 -47
- package/src/styles/globals.css +155 -203
- package/dist/components/org-chart/index.d.ts +0 -54
- package/dist/components/org-chart/index.js +0 -861
- package/dist/components/org-chart/index.js.map +0 -1
- package/dist/components/record-picker.js.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/stack/index.js.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,85 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import {
|
|
42
|
-
|
|
1
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.js";
|
|
2
|
+
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert.js";
|
|
3
|
+
import { AppBar, AppBarProps, AppBreadcrumbItem, AppLinkRenderProps, AppLinkRenderer, createAppLink } from "./components/app-bar.js";
|
|
4
|
+
import { n as ButtonProps, r as buttonVariants, t as Button } from "./button-D4vqTxhp.js";
|
|
5
|
+
import { n as InputProps, t as Input } from "./input-CBrCuMH8.js";
|
|
6
|
+
import { n as SeparatorProps, t as Separator } from "./separator-BQEsr0Rc.js";
|
|
7
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-CTRQoN1A.js";
|
|
8
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.js";
|
|
9
|
+
import { AppAccount, AppAccountAction, AppAccountActionGroup, AppIcon, AppNavigationChild, AppNavigationGroup, AppNavigationItem, AppShell, AppShellBrand, AppShellProps } from "./components/app-shell.js";
|
|
10
|
+
import { Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator } from "./components/autocomplete.js";
|
|
11
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar.js";
|
|
12
|
+
import { Badge, BadgeProps, badgeVariants } from "./components/badge.js";
|
|
13
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/breadcrumb.js";
|
|
14
|
+
import { Calendar, RangeCalendar } from "./components/calendar-rac.js";
|
|
15
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, cardVariants } from "./components/card.js";
|
|
16
|
+
import { CheckboxGroup, CheckboxGroupProps } from "./components/checkbox-group.js";
|
|
17
|
+
import { Checkbox, CheckboxProps } from "./components/checkbox.js";
|
|
18
|
+
import { Collapsible, CollapsibleContent as CollapsiblePanel, CollapsibleTrigger } from "./components/collapsible.js";
|
|
19
|
+
import { Combobox, ComboboxContent, ComboboxContentProps, ComboboxEmpty, ComboboxEmptyProps, ComboboxGroup, ComboboxGroupProps, ComboboxInput, ComboboxInputProps, ComboboxItem, ComboboxItemProps, ComboboxList, ComboboxListProps, ComboboxProps, ComboboxSeparator, ComboboxSeparatorProps, ComboboxTrigger, ComboboxTriggerProps } from "./components/combobox.js";
|
|
20
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./components/command.js";
|
|
21
|
+
import { Dialog, DialogBackdrop, DialogClose, DialogContent as DialogPopup, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger } from "./components/dialog.js";
|
|
22
|
+
import { Dock, DockIcon, dockVariants } from "./components/dock.js";
|
|
23
|
+
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/drawer.js";
|
|
24
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/dropdown-menu.js";
|
|
25
|
+
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./components/empty.js";
|
|
26
|
+
import { Label, LabelProps } from "./components/label.js";
|
|
27
|
+
import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldProps, FieldRow, FieldRowProps, FieldSeparator, FieldSet, FieldTitle, LegacyFieldProps, StructuralFieldProps } from "./components/field.js";
|
|
28
|
+
import { FlickeringGrid } from "./components/flickering-grid.js";
|
|
29
|
+
import { FlowZoomPanel } from "./components/flow-zoom-panel.js";
|
|
30
|
+
import { FormControl as FormControl$1, FormControlLayout } from "./components/form-control.js";
|
|
31
|
+
import { a as FormItem, c as useFormField, d as composeRefs, f as mergeProps, i as FormField, l as Slot, n as FormControl, o as FormLabel, r as FormDescription, s as FormMessage, t as Form, u as Slottable } from "./form-DgRTv7O7.js";
|
|
32
|
+
import { Textarea, TextareaProps } from "./components/textarea.js";
|
|
33
|
+
import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/input-group.js";
|
|
34
|
+
import { JsonEditor, JsonInput, validateJson } from "./components/json-input.js";
|
|
35
|
+
import { Frame, FrameDot, Frames, MotionGrid, MotionGridProps } from "./components/motion-grid.js";
|
|
36
|
+
import { MultiSelect, MultiSelectGroup, MultiSelectOption, MultiSelectProps, MultiSelectRef } from "./components/multi-select.js";
|
|
37
|
+
import { PageHeader } from "./components/page-header.js";
|
|
38
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/pagination.js";
|
|
39
|
+
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "./components/popover.js";
|
|
40
|
+
import { Progress, ProgressProps } from "./components/progress.js";
|
|
41
|
+
import { ProgressiveBlur } from "./components/progressive-blur.js";
|
|
42
|
+
import { ProgressiveBlurScrollContainer } from "./components/progressive-blur-scroll-container.js";
|
|
43
|
+
import { Radio, RadioGroup, RadioGroupProps, RadioProps } from "./components/radio-group.js";
|
|
44
|
+
import { RecordPicker } from "./components/record-picker.js";
|
|
45
|
+
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/resizable.js";
|
|
46
|
+
import { ResponsiveDiagram } from "./components/responsive-diagram.js";
|
|
47
|
+
import { ScrollArea, ScrollBar } from "./components/scroll-area.js";
|
|
48
|
+
import { Select, SelectContent as SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue } from "./components/select.js";
|
|
49
|
+
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./components/sheet.js";
|
|
50
|
+
import { Skeleton, SkeletonProps } from "./components/skeleton.js";
|
|
51
|
+
import { Toaster } from "./components/sonner.js";
|
|
52
|
+
import { $ as BackdropConfig, A as DeferredCardContent, B as StackBackdrop, C as parseWidthToPixels, D as UseStackResponsiveResult, E as usePeekGestures, F as useStackGestures, G as useCardInjectedProps, H as CardStackViewport, I as StackHeader, J as useIsTopCard, K as useCardReady, L as StackHeaderProps, M as StackCard, N as StackCardProps, O as useIsMobile, P as UseStackGesturesResult, Q as AnimationConfig, R as StackHeaderSlot, S as normalizeWidth, T as UsePeekGesturesResult, U as CardStackProvider, V as StackBackdropProps, W as useCardIndex, X as useStackContext, Y as useStackCards, Z as useStackLayoutMode, _ as getCascadeOffset, _t as StackContextValue, a as createReducedMotionVariants, at as CardRouteMap, b as getVisibleCardIndices, c as peekSlideSpring, ct as CardStackProviderProps, d as swipeDismissTransition, dt as GestureConfig, et as CardComponent, f as ResponsiveOffsetConfig, ft as LayoutMode, g as getCardZIndex, gt as StackAction, h as getCardOffset, ht as PushOptions, i as createOffsetTransition, it as CardRouteDefinition, j as DeferredCardContentProps, k as useStackResponsive, l as reducedMotionBackdropVariants, lt as CardStackViewportProps, m as calculateResponsiveOffset, mt as PeekGestureConfig, n as backdropVariants, nt as CardInjectedProps, o as peekDragSpring, ot as CardSpec, p as ResponsiveOffsetResult, pt as MobileConfig, q as useCardStack, r as createCardVariants, rt as CardPushOptions, s as peekHoverSpring, st as CardStackApi, t as DEFAULT_ANIMATION_CONFIG, tt as CardId, u as snapBackSpring, ut as DismissOptions, v as getResponsiveCardOffset, vt as StackState, w as UsePeekGesturesOptions, x as isCardVisible, y as getSideBySideOffset, z as StackHeaderSlotProps } from "./index-CjA4CENl.js";
|
|
53
|
+
import { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger } from "./components/stepper.js";
|
|
54
|
+
import { Switch, SwitchProps } from "./components/switch.js";
|
|
55
|
+
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.js";
|
|
56
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
|
|
57
|
+
import { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps } from "./components/tags.js";
|
|
58
|
+
import { a as showSuccessToast, c as ToastErrorProps, i as ToastSuccessProps, l as showErrorToast, n as ToastWarningProps, o as ToastInfoProps, r as showWarningToast, s as showInfoToast, t as toast } from "./index-UnM04j0t.js";
|
|
59
|
+
import { UnlinkButton } from "./components/unlink-button.js";
|
|
60
|
+
import { ClassValue } from "clsx";
|
|
61
|
+
import { FloatingPortalStrategy, FloatingZIndex, ModalPortalScope, OverlayLayer, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
62
|
+
//#region src/lib/utils.d.ts
|
|
43
63
|
declare function cn(...inputs: ClassValue[]): string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* Merges refs into a single callback ref.
|
|
47
|
-
* React 19 compatible - handles refs as regular props.
|
|
48
|
-
*/
|
|
49
|
-
declare function composeRefs<T>(...refs: (React$1.Ref<T> | undefined)[]): React$1.RefCallback<T>;
|
|
50
|
-
/**
|
|
51
|
-
* Merges props, handling special cases for className, style, and event handlers.
|
|
52
|
-
* Excludes 'ref' from merging as it's handled separately.
|
|
53
|
-
*/
|
|
54
|
-
declare function mergeProps(slotProps: Record<string, unknown>, childProps: Record<string, unknown>): Record<string, unknown>;
|
|
55
|
-
interface SlotProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
56
|
-
children?: React$1.ReactNode;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Slot component - renders its child element with merged props.
|
|
60
|
-
* Used for the `asChild` pattern where parent props are passed to child.
|
|
61
|
-
* React 19 compatible - accesses ref from props instead of element.ref.
|
|
62
|
-
*/
|
|
63
|
-
declare const Slot: React$1.ForwardRefExoticComponent<SlotProps & React$1.RefAttributes<HTMLElement>>;
|
|
64
|
-
/**
|
|
65
|
-
* Slottable component - marks content that should receive slot props.
|
|
66
|
-
* Used when Slot has multiple children and you want to specify which one receives props.
|
|
67
|
-
*/
|
|
68
|
-
declare function Slottable({ children }: {
|
|
69
|
-
children: React$1.ReactNode;
|
|
70
|
-
}): react_jsx_runtime.JSX.Element;
|
|
71
|
-
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/lib/use-controllable-state.d.ts
|
|
72
66
|
type UseControllableStateParams<T> = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
prop?: T;
|
|
68
|
+
defaultProp?: T;
|
|
69
|
+
onChange?: (value: T) => void;
|
|
76
70
|
};
|
|
77
71
|
/**
|
|
78
72
|
* Hook for managing controlled/uncontrolled state.
|
|
79
73
|
* Supports both controlled (prop-driven) and uncontrolled (internal state) patterns.
|
|
80
74
|
*/
|
|
81
|
-
declare function useControllableState<T>({ prop, defaultProp, onChange
|
|
82
|
-
|
|
75
|
+
declare function useControllableState<T>({ prop, defaultProp, onChange }: UseControllableStateParams<T>): [T, (value: T) => void];
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/lib/motion/motion-config.d.ts
|
|
83
78
|
/**
|
|
84
79
|
* Shared motion configuration for consistent animations across the app.
|
|
85
80
|
* Based on practical animation tips from https://emilkowal.ski/ui/7-practical-animation-tips
|
|
@@ -96,2515 +91,196 @@ declare function useControllableState<T>({ prop, defaultProp, onChange, }: UseCo
|
|
|
96
91
|
* Reference: https://easings.co/
|
|
97
92
|
*/
|
|
98
93
|
declare const easings: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
94
|
+
/** Smooth deceleration - good for elements entering the screen */
|
|
95
|
+
readonly easeOut: readonly [0.25, 0.1, 0.25, 1];
|
|
96
|
+
/** Smooth acceleration - good for elements leaving the screen */
|
|
97
|
+
readonly easeIn: readonly [0.42, 0, 1, 1];
|
|
98
|
+
/** Smooth both ways - good for hover states and toggles */
|
|
99
|
+
readonly easeInOut: readonly [0.42, 0, 0.58, 1];
|
|
100
|
+
/** Snappy entrance with soft landing - great for modals/dialogs */
|
|
101
|
+
readonly snappy: readonly [0.2, 0, 0, 1];
|
|
102
|
+
/** Bouncy feel - use sparingly for playful interactions */
|
|
103
|
+
readonly bounce: readonly [0.34, 1.56, 0.64, 1];
|
|
104
|
+
/** Quick start, gradual stop - good for quick feedback */
|
|
105
|
+
readonly emphasized: readonly [0.4, 0, 0.2, 1];
|
|
106
|
+
/** Physical feel for exit animations */
|
|
107
|
+
readonly physicalExit: readonly [0.4, 0, 0.6, 1];
|
|
113
108
|
};
|
|
114
109
|
/**
|
|
115
110
|
* Duration presets in seconds.
|
|
116
111
|
* Rule: UI animations should be under 300ms (0.3s)
|
|
117
112
|
*/
|
|
118
113
|
declare const durations: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
114
|
+
/** Instant feedback (button press, toggle) */
|
|
115
|
+
readonly instant: 0.1;
|
|
116
|
+
/** Quick transitions (tooltips, small elements) */
|
|
117
|
+
readonly fast: 0.15;
|
|
118
|
+
/** Standard UI transitions (modals, panels) */
|
|
119
|
+
readonly normal: 0.2;
|
|
120
|
+
/** Deliberate animations (page transitions, complex reveals) */
|
|
121
|
+
readonly slow: 0.3;
|
|
122
|
+
/** Maximum for UI - use rarely */
|
|
123
|
+
readonly deliberate: 0.4;
|
|
129
124
|
};
|
|
130
125
|
/**
|
|
131
126
|
* Spring configurations for physics-based animations.
|
|
132
127
|
* These create more natural, organic motion.
|
|
133
128
|
*/
|
|
134
129
|
declare const springs: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
130
|
+
/** Snappy spring - good for quick interactions */
|
|
131
|
+
readonly snappy: {
|
|
132
|
+
readonly type: "spring";
|
|
133
|
+
readonly stiffness: 400;
|
|
134
|
+
readonly damping: 30;
|
|
135
|
+
readonly mass: 0.8;
|
|
136
|
+
};
|
|
137
|
+
/** Bouncy spring - good for playful elements */
|
|
138
|
+
readonly bouncy: {
|
|
139
|
+
readonly type: "spring";
|
|
140
|
+
readonly stiffness: 300;
|
|
141
|
+
readonly damping: 20;
|
|
142
|
+
readonly mass: 0.6;
|
|
143
|
+
};
|
|
144
|
+
/** Gentle spring - good for large elements */
|
|
145
|
+
readonly gentle: {
|
|
146
|
+
readonly type: "spring";
|
|
147
|
+
readonly stiffness: 150;
|
|
148
|
+
readonly damping: 25;
|
|
149
|
+
readonly mass: 1;
|
|
150
|
+
};
|
|
151
|
+
/** Stiff spring - good for precise movements */
|
|
152
|
+
readonly stiff: {
|
|
153
|
+
readonly type: "spring";
|
|
154
|
+
readonly stiffness: 500;
|
|
155
|
+
readonly damping: 35;
|
|
156
|
+
readonly mass: 0.5;
|
|
157
|
+
};
|
|
158
|
+
/** Panel/sheet animations */
|
|
159
|
+
readonly panel: {
|
|
160
|
+
readonly type: "spring";
|
|
161
|
+
readonly stiffness: 150;
|
|
162
|
+
readonly damping: 25;
|
|
163
|
+
};
|
|
169
164
|
};
|
|
170
165
|
/**
|
|
171
166
|
* Pre-configured transitions for common animation patterns.
|
|
172
167
|
*/
|
|
173
168
|
declare const transitions: {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
169
|
+
/** Fast fade for overlays and simple elements */
|
|
170
|
+
readonly fade: {
|
|
171
|
+
duration: 0.15;
|
|
172
|
+
ease: readonly [0.25, 0.1, 0.25, 1];
|
|
173
|
+
};
|
|
174
|
+
/** Standard enter/exit for UI elements */
|
|
175
|
+
readonly enterExit: {
|
|
176
|
+
duration: 0.2;
|
|
177
|
+
ease: readonly [0.25, 0.1, 0.25, 1];
|
|
178
|
+
};
|
|
179
|
+
/** Snappy transition for interactive elements */
|
|
180
|
+
readonly snappy: {
|
|
181
|
+
duration: 0.15;
|
|
182
|
+
ease: readonly [0.2, 0, 0, 1];
|
|
183
|
+
};
|
|
184
|
+
/** Panel slide transition */
|
|
185
|
+
readonly panel: {
|
|
186
|
+
type: "spring";
|
|
187
|
+
stiffness: number;
|
|
188
|
+
damping: number;
|
|
189
|
+
};
|
|
190
|
+
/** Exit transition with physical feel */
|
|
191
|
+
readonly exit: {
|
|
192
|
+
type: "tween";
|
|
193
|
+
duration: 0.2;
|
|
194
|
+
ease: readonly [0.4, 0, 0.6, 1];
|
|
195
|
+
};
|
|
196
|
+
/** Layout animations */
|
|
197
|
+
readonly layout: {
|
|
198
|
+
type: "spring";
|
|
199
|
+
stiffness: number;
|
|
200
|
+
damping: number;
|
|
201
|
+
};
|
|
207
202
|
};
|
|
208
203
|
/**
|
|
209
204
|
* Common animation variants for AnimatePresence patterns.
|
|
210
205
|
* Follows the rule: never animate from scale(0), use 0.9+ instead.
|
|
211
206
|
*/
|
|
212
207
|
declare const variants: {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
};
|
|
219
|
-
readonly animate: {
|
|
220
|
-
readonly opacity: 1;
|
|
221
|
-
readonly scale: 1;
|
|
222
|
-
};
|
|
223
|
-
readonly exit: {
|
|
224
|
-
readonly opacity: 0;
|
|
225
|
-
readonly scale: 0.95;
|
|
226
|
-
};
|
|
208
|
+
/** Fade with subtle scale - good for modals, cards */
|
|
209
|
+
readonly fadeScale: {
|
|
210
|
+
readonly initial: {
|
|
211
|
+
readonly opacity: 0;
|
|
212
|
+
readonly scale: 0.95;
|
|
227
213
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
readonly opacity: 0;
|
|
232
|
-
readonly y: 8;
|
|
233
|
-
};
|
|
234
|
-
readonly animate: {
|
|
235
|
-
readonly opacity: 1;
|
|
236
|
-
readonly y: 0;
|
|
237
|
-
};
|
|
238
|
-
readonly exit: {
|
|
239
|
-
readonly opacity: 0;
|
|
240
|
-
readonly y: -8;
|
|
241
|
-
};
|
|
214
|
+
readonly animate: {
|
|
215
|
+
readonly opacity: 1;
|
|
216
|
+
readonly scale: 1;
|
|
242
217
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
readonly opacity: 0;
|
|
247
|
-
readonly y: -8;
|
|
248
|
-
};
|
|
249
|
-
readonly animate: {
|
|
250
|
-
readonly opacity: 1;
|
|
251
|
-
readonly y: 0;
|
|
252
|
-
};
|
|
253
|
-
readonly exit: {
|
|
254
|
-
readonly opacity: 0;
|
|
255
|
-
readonly y: 8;
|
|
256
|
-
};
|
|
218
|
+
readonly exit: {
|
|
219
|
+
readonly opacity: 0;
|
|
220
|
+
readonly scale: 0.95;
|
|
257
221
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
readonly opacity: 1;
|
|
265
|
-
};
|
|
266
|
-
readonly exit: {
|
|
267
|
-
readonly opacity: 0;
|
|
268
|
-
};
|
|
222
|
+
};
|
|
223
|
+
/** Fade with subtle slide up - good for content reveals */
|
|
224
|
+
readonly fadeSlideUp: {
|
|
225
|
+
readonly initial: {
|
|
226
|
+
readonly opacity: 0;
|
|
227
|
+
readonly y: 8;
|
|
269
228
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
readonly opacity: 0;
|
|
274
|
-
readonly y: 8;
|
|
275
|
-
readonly scale: 0.98;
|
|
276
|
-
};
|
|
277
|
-
readonly animate: {
|
|
278
|
-
readonly opacity: 1;
|
|
279
|
-
readonly y: 0;
|
|
280
|
-
readonly scale: 1;
|
|
281
|
-
};
|
|
282
|
-
readonly exit: {
|
|
283
|
-
readonly opacity: 0;
|
|
284
|
-
readonly y: 8;
|
|
285
|
-
readonly scale: 0.98;
|
|
286
|
-
};
|
|
229
|
+
readonly animate: {
|
|
230
|
+
readonly opacity: 1;
|
|
231
|
+
readonly y: 0;
|
|
287
232
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
292
|
-
variant?: "link" | "outline" | "default" | "destructive" | "destructive-outline" | "ghost" | "secondary" | null | undefined;
|
|
293
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
294
|
-
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
295
|
-
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
296
|
-
size?: VariantProps<typeof buttonVariants>['size'];
|
|
297
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
298
|
-
asChild?: boolean;
|
|
299
|
-
}
|
|
300
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
301
|
-
|
|
302
|
-
declare const badgeVariants: (props?: ({
|
|
303
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
304
|
-
variant?: "outline" | "default" | "destructive" | "secondary" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
305
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
306
|
-
type BadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof badgeVariants>;
|
|
307
|
-
declare const Badge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
308
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
309
|
-
variant?: "outline" | "default" | "destructive" | "secondary" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
310
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
311
|
-
|
|
312
|
-
type LabelProps = React$1.ComponentProps<'label'>;
|
|
313
|
-
/**
|
|
314
|
-
* Label component for form controls.
|
|
315
|
-
* Uses a standard HTML label element for maximum compatibility.
|
|
316
|
-
*/
|
|
317
|
-
declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
318
|
-
|
|
319
|
-
type SkeletonProps = React$1.ComponentProps<'div'>;
|
|
320
|
-
declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
321
|
-
|
|
322
|
-
declare const cardVariants: (props?: ({
|
|
323
|
-
variant?: "flat" | "default" | "ghost" | "elevated" | "interactive" | null | undefined;
|
|
324
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
325
|
-
interface CardProps extends React$1.ComponentProps<'div'>, VariantProps<typeof cardVariants> {
|
|
326
|
-
}
|
|
327
|
-
declare function Card({ className, variant, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
328
|
-
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
329
|
-
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
330
|
-
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
331
|
-
declare function CardAction({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
332
|
-
declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
333
|
-
declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
334
|
-
|
|
335
|
-
type SeparatorProps = React$1.ComponentProps<typeof Separator$1> & {
|
|
336
|
-
/** @deprecated Base UI handles accessibility automatically */
|
|
337
|
-
decorative?: boolean;
|
|
338
|
-
};
|
|
339
|
-
declare function Separator({ className, orientation, decorative: _decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
340
|
-
|
|
341
|
-
declare const alertVariants: (props?: ({
|
|
342
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
343
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
344
|
-
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
345
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
346
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
347
|
-
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
348
|
-
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
349
|
-
|
|
350
|
-
type InputProps = Omit<Input$1.Props & React$1.RefAttributes<HTMLInputElement>, 'size'> & {
|
|
351
|
-
size?: 'sm' | 'default' | 'lg' | number;
|
|
352
|
-
unstyled?: boolean;
|
|
353
|
-
};
|
|
354
|
-
declare function Input({ className, size, unstyled, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
355
|
-
|
|
356
|
-
type TextareaProps = React$1.ComponentProps<'textarea'> & {
|
|
357
|
-
size?: 'sm' | 'default' | 'lg' | number;
|
|
358
|
-
unstyled?: boolean;
|
|
359
|
-
};
|
|
360
|
-
declare function Textarea({ className, size, unstyled, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
361
|
-
|
|
362
|
-
type CheckboxProps = Checkbox$1.Root.Props;
|
|
363
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<_base_ui_react_checkbox.CheckboxRootProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
364
|
-
|
|
365
|
-
type CheckboxGroupProps = CheckboxGroup$1.Props;
|
|
366
|
-
declare function CheckboxGroup({ className, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
367
|
-
|
|
368
|
-
type RadioGroupProps = RadioGroup$1.Props;
|
|
369
|
-
type RadioProps = Radio$1.Root.Props;
|
|
370
|
-
declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
371
|
-
declare function Radio({ className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
372
|
-
|
|
373
|
-
type SwitchProps = React$1.ComponentProps<typeof Switch$1.Root>;
|
|
374
|
-
declare function Switch({ className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
375
|
-
|
|
376
|
-
type SelectProps = Omit<Select$1.Root.Props<string>, "onValueChange"> & {
|
|
377
|
-
/** Callback when value changes */
|
|
378
|
-
onValueChange?: (value: string) => void;
|
|
379
|
-
};
|
|
380
|
-
declare function Select({ onValueChange, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
381
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<_base_ui_react_select.SelectTriggerProps & {
|
|
382
|
-
size?: "sm" | "default" | "lg";
|
|
383
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
384
|
-
type SelectValueProps = React$1.ComponentProps<typeof Select$1.Value> & {
|
|
385
|
-
/** Text to display when no value is selected */
|
|
386
|
-
placeholder?: string;
|
|
387
|
-
};
|
|
388
|
-
declare function SelectValue({ className, placeholder, children, ...props }: SelectValueProps): react_jsx_runtime.JSX.Element;
|
|
389
|
-
type SelectPopupProps = Select$1.Popup.Props & {
|
|
390
|
-
sideOffset?: Select$1.Positioner.Props["sideOffset"];
|
|
391
|
-
alignItemWithTrigger?: Select$1.Positioner.Props["alignItemWithTrigger"];
|
|
392
|
-
/** @deprecated Not used in Base UI. Kept for backward compatibility. */
|
|
393
|
-
position?: "item-aligned" | "popper";
|
|
394
|
-
};
|
|
395
|
-
declare function SelectPopup({ className, children, sideOffset, alignItemWithTrigger, position: _position, ...props }: SelectPopupProps): react_jsx_runtime.JSX.Element;
|
|
396
|
-
declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
|
|
397
|
-
declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
|
|
398
|
-
declare function SelectGroup({ ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
|
|
399
|
-
declare function SelectGroupLabel({ ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
|
|
400
|
-
type SelectRichItemProps = Select$1.Item.Props & {
|
|
401
|
-
/** Main label text */
|
|
402
|
-
label?: React$1.ReactNode;
|
|
403
|
-
/** Optional description text below the label */
|
|
404
|
-
description?: React$1.ReactNode;
|
|
405
|
-
/** Optional icon element */
|
|
406
|
-
icon?: React$1.ReactNode;
|
|
407
|
-
};
|
|
408
|
-
declare function SelectRichItem({ className, children, label, description, icon, ...props }: SelectRichItemProps): react_jsx_runtime.JSX.Element;
|
|
409
|
-
type SelectFieldItemProps = Select$1.Item.Props & {
|
|
410
|
-
/** Field name to display */
|
|
411
|
-
name: string;
|
|
412
|
-
/** Field type to display as muted text */
|
|
413
|
-
type?: string;
|
|
414
|
-
};
|
|
415
|
-
declare function SelectFieldItem({ className, name, type, ...props }: SelectFieldItemProps): react_jsx_runtime.JSX.Element;
|
|
416
|
-
|
|
417
|
-
type ProgressProps = Omit<React$1.ComponentProps<typeof Progress$1.Root>, 'children'> & {
|
|
418
|
-
className?: string;
|
|
419
|
-
};
|
|
420
|
-
declare function Progress({ className, value, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
421
|
-
|
|
422
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
423
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
424
|
-
declare const useFormField: () => {
|
|
425
|
-
invalid: boolean;
|
|
426
|
-
isDirty: boolean;
|
|
427
|
-
isTouched: boolean;
|
|
428
|
-
isValidating: boolean;
|
|
429
|
-
error?: react_hook_form.FieldError;
|
|
430
|
-
id: string;
|
|
431
|
-
name: string;
|
|
432
|
-
formItemId: string;
|
|
433
|
-
formDescriptionId: string;
|
|
434
|
-
formMessageId: string;
|
|
435
|
-
};
|
|
436
|
-
declare function FormItem({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
437
|
-
declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
438
|
-
declare function FormControl$1({ ...props }: React$1.ComponentProps<typeof Slot>): react_jsx_runtime.JSX.Element;
|
|
439
|
-
declare function FormDescription({ className, ...props }: React$1.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
440
|
-
declare function FormMessage({ className, ...props }: React$1.ComponentProps<'p'>): react_jsx_runtime.JSX.Element | null;
|
|
441
|
-
|
|
442
|
-
type FormControlLayout = 'stacked' | 'floating';
|
|
443
|
-
interface FormControlProps {
|
|
444
|
-
children: React$1.ReactElement;
|
|
445
|
-
label: string;
|
|
446
|
-
id?: string;
|
|
447
|
-
layout?: FormControlLayout;
|
|
448
|
-
error?: string;
|
|
449
|
-
className?: string;
|
|
450
|
-
}
|
|
451
|
-
declare function FormControl({ children, label, id, layout, error, className }: FormControlProps): react_jsx_runtime.JSX.Element;
|
|
452
|
-
|
|
453
|
-
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
454
|
-
declare const inputGroupAddonVariants: (props?: ({
|
|
455
|
-
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
456
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
457
|
-
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
458
|
-
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
459
|
-
declare function InputGroupInput({ className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
460
|
-
declare function InputGroupTextarea({ className, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
461
|
-
|
|
462
|
-
interface FieldProps {
|
|
463
|
-
/** Field label text */
|
|
464
|
-
label: string;
|
|
465
|
-
/** Optional description text shown below the control */
|
|
466
|
-
description?: string;
|
|
467
|
-
/** Error message - shows in destructive color */
|
|
468
|
-
error?: string;
|
|
469
|
-
/** Shows required indicator (*) after label */
|
|
470
|
-
required?: boolean;
|
|
471
|
-
/** HTML id for the form control - used for label's htmlFor */
|
|
472
|
-
htmlFor?: string;
|
|
473
|
-
/** Additional className for the wrapper */
|
|
474
|
-
className?: string;
|
|
475
|
-
/** The form control (InputGroup, Input, Select, etc.) */
|
|
476
|
-
children: React.ReactNode;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Field wraps a form control with label, description, and error message.
|
|
480
|
-
* Works standalone without any form library dependency.
|
|
481
|
-
*
|
|
482
|
-
* @example
|
|
483
|
-
* ```tsx
|
|
484
|
-
* <Field label="Email" required error={errors.email} htmlFor="email">
|
|
485
|
-
* <InputGroup>
|
|
486
|
-
* <InputGroupAddon><Mail /></InputGroupAddon>
|
|
487
|
-
* <InputGroupInput id="email" type="email" placeholder="name@example.com" />
|
|
488
|
-
* </InputGroup>
|
|
489
|
-
* </Field>
|
|
490
|
-
* ```
|
|
491
|
-
*/
|
|
492
|
-
declare function Field({ label, description, error, required, htmlFor, className, children, }: FieldProps): react_jsx_runtime.JSX.Element;
|
|
493
|
-
/**
|
|
494
|
-
* FieldRow is a horizontal layout variant for inline controls like checkboxes and switches.
|
|
495
|
-
* Places label beside the control instead of above.
|
|
496
|
-
*
|
|
497
|
-
* @example
|
|
498
|
-
* ```tsx
|
|
499
|
-
* <FieldRow label="Enable notifications" description="Receive email updates" htmlFor="notifications">
|
|
500
|
-
* <Switch id="notifications" />
|
|
501
|
-
* </FieldRow>
|
|
502
|
-
* ```
|
|
503
|
-
*/
|
|
504
|
-
interface FieldRowProps extends Omit<FieldProps, 'required'> {
|
|
505
|
-
/** Position of the label relative to the control */
|
|
506
|
-
labelPosition?: 'start' | 'end';
|
|
507
|
-
}
|
|
508
|
-
declare function FieldRow({ label, description, error, labelPosition, htmlFor, className, children, }: FieldRowProps): react_jsx_runtime.JSX.Element;
|
|
509
|
-
|
|
510
|
-
type TooltipProviderProps = React$1.ComponentProps<typeof Tooltip$1.Provider> & {
|
|
511
|
-
/** @deprecated Use delay instead */
|
|
512
|
-
delayDuration?: number;
|
|
513
|
-
};
|
|
514
|
-
declare function TooltipProvider({ delay, delayDuration, ...props }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
515
|
-
type TooltipProps = React$1.ComponentProps<typeof Tooltip$1.Root> & {
|
|
516
|
-
/** @deprecated Use delay on Trigger instead */
|
|
517
|
-
delayDuration?: number;
|
|
518
|
-
};
|
|
519
|
-
declare function Tooltip({ delayDuration: _delayDuration, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
520
|
-
type TooltipTriggerProps = Omit<React$1.ComponentProps<typeof Tooltip$1.Trigger>, 'render'> & {
|
|
521
|
-
delay?: number;
|
|
522
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
523
|
-
asChild?: boolean;
|
|
524
|
-
};
|
|
525
|
-
declare function TooltipTrigger({ delay, asChild, children, ...props }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
|
|
526
|
-
type TooltipContentProps = React$1.ComponentProps<typeof Tooltip$1.Popup> & {
|
|
527
|
-
sideOffset?: number;
|
|
528
|
-
showArrow?: boolean;
|
|
529
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
530
|
-
align?: 'start' | 'center' | 'end';
|
|
531
|
-
};
|
|
532
|
-
declare function TooltipContent({ className, sideOffset, showArrow, side, align, children, ...props }: TooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
533
|
-
|
|
534
|
-
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
|
|
535
|
-
type PopoverTriggerProps = Omit<React$1.ComponentProps<typeof Popover$1.Trigger>, 'render' | 'nativeButton'> & {
|
|
536
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
537
|
-
asChild?: boolean;
|
|
538
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
539
|
-
nativeButton?: boolean;
|
|
540
|
-
};
|
|
541
|
-
declare function PopoverTrigger({ asChild, nativeButton, children, ...props }: PopoverTriggerProps): react_jsx_runtime.JSX.Element;
|
|
542
|
-
type PopoverContentProps = React$1.ComponentProps<typeof Popover$1.Popup> & {
|
|
543
|
-
align?: 'start' | 'center' | 'end';
|
|
544
|
-
sideOffset?: number;
|
|
545
|
-
showArrow?: boolean;
|
|
546
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
547
|
-
/** @deprecated Base UI uses different focus management */
|
|
548
|
-
onOpenAutoFocus?: (e: Event) => void;
|
|
549
|
-
/** @deprecated Base UI uses different focus management */
|
|
550
|
-
onCloseAutoFocus?: (e: Event) => void;
|
|
551
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
552
|
-
onFocusOutside?: (e: Event) => void;
|
|
553
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
554
|
-
onEscapeKeyDown?: () => void;
|
|
555
|
-
};
|
|
556
|
-
declare function PopoverContent({ className, align, sideOffset, showArrow, side, children, onOpenAutoFocus: _onOpenAutoFocus, onCloseAutoFocus: _onCloseAutoFocus, onFocusOutside: _onFocusOutside, onEscapeKeyDown: _onEscapeKeyDown, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
557
|
-
/**
|
|
558
|
-
* PopoverAnchor - placeholder for positioning anchor.
|
|
559
|
-
* @deprecated Base UI Popover positions relative to Trigger by default.
|
|
560
|
-
* For custom anchoring, use Popover.Positioner with anchor prop.
|
|
561
|
-
*/
|
|
562
|
-
declare function PopoverAnchor({ ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
563
|
-
|
|
564
|
-
declare const Dialog: typeof Dialog$1.Root;
|
|
565
|
-
declare function DialogPortal({ keepMounted, ...props }: Dialog$1.Portal.Props): react_jsx_runtime.JSX.Element;
|
|
566
|
-
type DialogTriggerProps = Omit<React$1.ComponentProps<typeof Dialog$1.Trigger>, "render" | "nativeButton"> & {
|
|
567
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
568
|
-
asChild?: boolean;
|
|
569
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
570
|
-
nativeButton?: boolean;
|
|
571
|
-
};
|
|
572
|
-
declare function DialogTrigger({ asChild, nativeButton, children, ...props }: DialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
573
|
-
type DialogCloseProps = Omit<React$1.ComponentProps<typeof Dialog$1.Close>, "render" | "nativeButton"> & {
|
|
574
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
575
|
-
asChild?: boolean;
|
|
576
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
577
|
-
nativeButton?: boolean;
|
|
578
|
-
};
|
|
579
|
-
declare function DialogClose({ asChild, nativeButton, children, ...props }: DialogCloseProps): react_jsx_runtime.JSX.Element;
|
|
580
|
-
declare function DialogBackdrop({ className, ...props }: Dialog$1.Backdrop.Props): react_jsx_runtime.JSX.Element;
|
|
581
|
-
declare function DialogPopup({ className, children, showCloseButton, bottomStickOnMobile, ...props }: Dialog$1.Popup.Props & {
|
|
582
|
-
showCloseButton?: boolean;
|
|
583
|
-
bottomStickOnMobile?: boolean;
|
|
584
|
-
}): react_jsx_runtime.JSX.Element;
|
|
585
|
-
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
586
|
-
declare function DialogFooter({ className, variant, ...props }: React$1.ComponentProps<"div"> & {
|
|
587
|
-
variant?: "default" | "bare";
|
|
588
|
-
}): react_jsx_runtime.JSX.Element;
|
|
589
|
-
declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element;
|
|
590
|
-
declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element;
|
|
591
|
-
|
|
592
|
-
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
593
|
-
type AlertDialogTriggerProps = Omit<React$1.ComponentProps<typeof AlertDialog$1.Trigger>, 'render' | 'nativeButton'> & {
|
|
594
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
595
|
-
asChild?: boolean;
|
|
596
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
597
|
-
nativeButton?: boolean;
|
|
598
|
-
};
|
|
599
|
-
declare function AlertDialogTrigger({ asChild, nativeButton, children, ...props }: AlertDialogTriggerProps): react_jsx_runtime.JSX.Element;
|
|
600
|
-
declare function AlertDialogPortal({ keepMounted, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
601
|
-
declare function AlertDialogContent({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): react_jsx_runtime.JSX.Element;
|
|
602
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
603
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
604
|
-
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
605
|
-
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
606
|
-
/**
|
|
607
|
-
* AlertDialogAction - A button that performs the primary action and closes the dialog.
|
|
608
|
-
* Wraps AlertDialogPrimitive.Close with primary button styling.
|
|
609
|
-
*/
|
|
610
|
-
declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
611
|
-
/**
|
|
612
|
-
* AlertDialogCancel - A button that cancels the action and closes the dialog.
|
|
613
|
-
* Wraps AlertDialogPrimitive.Close with outline button styling.
|
|
614
|
-
*/
|
|
615
|
-
declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
616
|
-
|
|
617
|
-
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof Menu.Root>): react_jsx_runtime.JSX.Element;
|
|
618
|
-
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof Menu.Portal>): react_jsx_runtime.JSX.Element;
|
|
619
|
-
type DropdownMenuTriggerProps = Omit<React$1.ComponentProps<typeof Menu.Trigger>, 'render' | 'nativeButton'> & {
|
|
620
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
621
|
-
asChild?: boolean;
|
|
622
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
623
|
-
nativeButton?: boolean;
|
|
624
|
-
};
|
|
625
|
-
declare function DropdownMenuTrigger({ asChild, nativeButton, children, ...props }: DropdownMenuTriggerProps): react_jsx_runtime.JSX.Element;
|
|
626
|
-
type DropdownMenuContentProps = React$1.ComponentProps<typeof Menu.Popup> & {
|
|
627
|
-
sideOffset?: number;
|
|
628
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
629
|
-
align?: 'start' | 'center' | 'end';
|
|
630
|
-
/** @deprecated Not supported in Base UI */
|
|
631
|
-
onPointerDown?: (e: React$1.PointerEvent) => void;
|
|
632
|
-
/** @deprecated Not supported in Base UI */
|
|
633
|
-
onPointerDownOutside?: (e: Event) => void;
|
|
634
|
-
/** @deprecated Not supported in Base UI */
|
|
635
|
-
onCloseAutoFocus?: (e: Event) => void;
|
|
636
|
-
/** @deprecated Base UI menus mount on open automatically */
|
|
637
|
-
forceMount?: boolean;
|
|
638
|
-
};
|
|
639
|
-
declare function DropdownMenuContent({ className, sideOffset, side, align, onPointerDown: _onPointerDown, onPointerDownOutside: _onPointerDownOutside, onCloseAutoFocus: _onCloseAutoFocus, forceMount: _forceMount, ...props }: DropdownMenuContentProps): react_jsx_runtime.JSX.Element;
|
|
640
|
-
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof Menu.Group>): react_jsx_runtime.JSX.Element;
|
|
641
|
-
type DropdownMenuItemProps = Omit<React$1.ComponentProps<typeof Menu.Item>, 'render'> & {
|
|
642
|
-
inset?: boolean;
|
|
643
|
-
variant?: 'default' | 'destructive';
|
|
644
|
-
/** When true, merges props onto the child element instead of rendering a div */
|
|
645
|
-
asChild?: boolean;
|
|
646
|
-
};
|
|
647
|
-
declare function DropdownMenuItem({ className, inset, variant, asChild, children, onClick, ...props }: DropdownMenuItemProps): react_jsx_runtime.JSX.Element;
|
|
648
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof Menu.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
649
|
-
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof Menu.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
650
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof Menu.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
651
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof Menu.GroupLabel> & {
|
|
652
|
-
inset?: boolean;
|
|
653
|
-
}): react_jsx_runtime.JSX.Element;
|
|
654
|
-
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Menu.Separator>): react_jsx_runtime.JSX.Element;
|
|
655
|
-
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
656
|
-
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof Menu.SubmenuRoot>): react_jsx_runtime.JSX.Element;
|
|
657
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof Menu.SubmenuTrigger> & {
|
|
658
|
-
inset?: boolean;
|
|
659
|
-
}): react_jsx_runtime.JSX.Element;
|
|
660
|
-
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof Menu.Popup>): react_jsx_runtime.JSX.Element;
|
|
661
|
-
|
|
662
|
-
type SheetProps = Omit<React$1.ComponentProps<typeof Dialog$1.Root>, 'onOpenChange'> & {
|
|
663
|
-
/** Unique identifier for this sheet in a stack. Auto-generated if not provided. */
|
|
664
|
-
sheetId?: string;
|
|
665
|
-
/** Callback when open state changes - simplified to just boolean for backwards compatibility */
|
|
666
|
-
onOpenChange?: (open: boolean) => void;
|
|
667
|
-
};
|
|
668
|
-
declare function Sheet({ children, sheetId: providedId, ...props }: SheetProps): react_jsx_runtime.JSX.Element;
|
|
669
|
-
type SheetTriggerProps = Omit<React$1.ComponentProps<typeof Dialog$1.Trigger>, 'render' | 'nativeButton'> & {
|
|
670
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
671
|
-
asChild?: boolean;
|
|
672
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
673
|
-
nativeButton?: boolean;
|
|
674
|
-
};
|
|
675
|
-
declare function SheetTrigger({ asChild, nativeButton, children, ...props }: SheetTriggerProps): react_jsx_runtime.JSX.Element;
|
|
676
|
-
type SheetCloseProps = Omit<React$1.ComponentProps<typeof Dialog$1.Close>, 'render' | 'nativeButton'> & {
|
|
677
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
678
|
-
asChild?: boolean;
|
|
679
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
680
|
-
nativeButton?: boolean;
|
|
681
|
-
};
|
|
682
|
-
declare function SheetClose({ asChild, nativeButton, children, ...props }: SheetCloseProps): react_jsx_runtime.JSX.Element;
|
|
683
|
-
declare const sheetVariants: (props?: ({
|
|
684
|
-
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
685
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
686
|
-
type SheetContentProps = Omit<React$1.ComponentProps<typeof Dialog$1.Popup>, 'children'> & VariantProps<typeof sheetVariants> & HTMLMotionProps<'div'> & {
|
|
687
|
-
transition?: Transition;
|
|
688
|
-
overlay?: boolean;
|
|
689
|
-
/** Whether to show the close button. Defaults to true. */
|
|
690
|
-
showClose?: boolean;
|
|
691
|
-
children?: React$1.ReactNode;
|
|
692
|
-
/** @deprecated Base UI manages mounting automatically */
|
|
693
|
-
forceMount?: boolean;
|
|
694
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
695
|
-
onInteractOutside?: (e: Event) => void;
|
|
696
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
697
|
-
onPointerDownOutside?: (e: Event) => void;
|
|
698
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
699
|
-
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
700
|
-
/** @deprecated Use onOpenChange on Root instead */
|
|
701
|
-
onFocusOutside?: (e: Event) => void;
|
|
702
|
-
};
|
|
703
|
-
declare function SheetContent({ side, className, transition, overlay, showClose, children, forceMount: _forceMount, onInteractOutside: _onInteractOutside, onPointerDownOutside: _onPointerDownOutside, onEscapeKeyDown: _onEscapeKeyDown, onFocusOutside: _onFocusOutside, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
704
|
-
type SheetHeaderProps = React$1.ComponentProps<'div'>;
|
|
705
|
-
declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
|
|
706
|
-
type SheetFooterProps = React$1.ComponentProps<'div'>;
|
|
707
|
-
declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
|
|
708
|
-
type SheetTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
|
|
709
|
-
declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
|
|
710
|
-
type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
|
|
711
|
-
declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
712
|
-
|
|
713
|
-
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
714
|
-
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
715
|
-
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
716
|
-
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
717
|
-
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
718
|
-
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
719
|
-
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
720
|
-
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
721
|
-
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
722
|
-
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
723
|
-
|
|
724
|
-
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime.JSX.Element;
|
|
725
|
-
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime.JSX.Element;
|
|
726
|
-
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Tab>): react_jsx_runtime.JSX.Element;
|
|
727
|
-
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Panel>): react_jsx_runtime.JSX.Element;
|
|
728
|
-
|
|
729
|
-
/**
|
|
730
|
-
* Collapsible Root
|
|
731
|
-
* Container for collapsible content with open/close state management.
|
|
732
|
-
*/
|
|
733
|
-
declare function Collapsible({ className, ...props }: Collapsible$1.Root.Props): react_jsx_runtime.JSX.Element;
|
|
734
|
-
/**
|
|
735
|
-
* CollapsibleTrigger
|
|
736
|
-
* Button that toggles the collapsible open/closed state.
|
|
737
|
-
* Supports asChild pattern for custom trigger elements.
|
|
738
|
-
*/
|
|
739
|
-
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<Omit<_base_ui_react_collapsible.CollapsibleTriggerProps, "render" | "nativeButton"> & {
|
|
740
|
-
/** When true, merges props onto the child element instead of rendering a button */
|
|
741
|
-
asChild?: boolean;
|
|
742
|
-
/** Whether the child renders a native button. Defaults to true when asChild is used. */
|
|
743
|
-
nativeButton?: boolean;
|
|
744
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
745
|
-
/**
|
|
746
|
-
* CollapsiblePanel
|
|
747
|
-
* Animated container for collapsible content.
|
|
748
|
-
* Uses CSS height transitions with Base UI's data attributes.
|
|
749
|
-
*/
|
|
750
|
-
declare const CollapsiblePanel: React$1.ForwardRefExoticComponent<_base_ui_react_collapsible.CollapsiblePanelProps & {
|
|
751
|
-
/** Additional className for the inner content wrapper */
|
|
752
|
-
innerClassName?: string;
|
|
753
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
754
|
-
|
|
755
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<_base_ui_react_scroll_area.ScrollAreaRootProps & {
|
|
756
|
-
scrollFade?: boolean;
|
|
757
|
-
scrollbarGutter?: boolean;
|
|
758
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
759
|
-
declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): react_jsx_runtime.JSX.Element;
|
|
760
|
-
|
|
761
|
-
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
762
|
-
declare function ResizablePanel({ ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
763
|
-
declare function ResizableHandle({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
764
|
-
withHandle?: boolean;
|
|
765
|
-
}): react_jsx_runtime.JSX.Element;
|
|
766
|
-
|
|
767
|
-
declare function Table({ className, ...props }: React$1.ComponentProps<'table'> & {
|
|
768
|
-
containerProps?: React$1.ComponentProps<'div'>;
|
|
769
|
-
}): react_jsx_runtime.JSX.Element;
|
|
770
|
-
declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
|
|
771
|
-
declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
|
|
772
|
-
declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): react_jsx_runtime.JSX.Element;
|
|
773
|
-
declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
|
|
774
|
-
declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
775
|
-
declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
776
|
-
declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): react_jsx_runtime.JSX.Element;
|
|
777
|
-
|
|
778
|
-
declare function Pagination({ className, ...props }: React$1.ComponentProps<'nav'>): react_jsx_runtime.JSX.Element;
|
|
779
|
-
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
780
|
-
declare function PaginationItem({ ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
781
|
-
type PaginationLinkProps = {
|
|
782
|
-
isActive?: boolean;
|
|
783
|
-
isDisabled?: boolean;
|
|
784
|
-
} & Pick<React$1.ComponentProps<typeof Button>, 'size'> & React$1.ComponentProps<'a'>;
|
|
785
|
-
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
786
|
-
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
787
|
-
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
788
|
-
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
789
|
-
|
|
790
|
-
declare function Breadcrumb({ ...props }: React$1.ComponentProps<'nav'>): react_jsx_runtime.JSX.Element;
|
|
791
|
-
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element;
|
|
792
|
-
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
793
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
794
|
-
asChild?: boolean;
|
|
795
|
-
}): react_jsx_runtime.JSX.Element;
|
|
796
|
-
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
797
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
798
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
799
|
-
|
|
800
|
-
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
801
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
802
|
-
type AvatarFallbackProps = React$1.ComponentProps<typeof Avatar$1.Fallback> & {
|
|
803
|
-
/** @deprecated Use delay prop instead */
|
|
804
|
-
delayMs?: number;
|
|
805
|
-
};
|
|
806
|
-
declare function AvatarFallback({ className, delayMs, delay, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
|
|
807
|
-
|
|
808
|
-
declare const Autocomplete: typeof Autocomplete$1.Root;
|
|
809
|
-
declare function AutocompleteInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Autocomplete$1.Input.Props, "size"> & {
|
|
810
|
-
showTrigger?: boolean;
|
|
811
|
-
showClear?: boolean;
|
|
812
|
-
startAddon?: React.ReactNode;
|
|
813
|
-
size?: "sm" | "default" | "lg";
|
|
814
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
815
|
-
}): react_jsx_runtime.JSX.Element;
|
|
816
|
-
declare function AutocompletePopup({ className, children, sideOffset, ...props }: Autocomplete$1.Popup.Props & {
|
|
817
|
-
sideOffset?: number;
|
|
818
|
-
}): react_jsx_runtime.JSX.Element;
|
|
819
|
-
declare function AutocompleteItem({ className, children, ...props }: Autocomplete$1.Item.Props): react_jsx_runtime.JSX.Element;
|
|
820
|
-
declare function AutocompleteSeparator({ className, ...props }: Autocomplete$1.Separator.Props): react_jsx_runtime.JSX.Element;
|
|
821
|
-
declare function AutocompleteEmpty({ className, ...props }: Autocomplete$1.Empty.Props): react_jsx_runtime.JSX.Element;
|
|
822
|
-
|
|
823
|
-
interface FlowZoomPanelProps {
|
|
824
|
-
className?: string;
|
|
825
|
-
position?: PanelPosition;
|
|
826
|
-
fitViewIcon?: React.ReactNode;
|
|
827
|
-
fitViewOptions?: FitViewOptions;
|
|
828
|
-
}
|
|
829
|
-
declare function FlowZoomPanel({ className, position, fitViewIcon, fitViewOptions, }: FlowZoomPanelProps): react_jsx_runtime.JSX.Element;
|
|
830
|
-
|
|
831
|
-
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
832
|
-
declare function CommandInput({ className, placeholder, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
833
|
-
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
834
|
-
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
835
|
-
declare function CommandGroup({ className, heading, children, ...props }: React$1.ComponentProps<typeof Command$1.Group> & {
|
|
836
|
-
heading?: React$1.ReactNode;
|
|
837
|
-
}): react_jsx_runtime.JSX.Element;
|
|
838
|
-
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
839
|
-
|
|
840
|
-
declare function Combobox<ItemValue, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<ItemValue, Multiple>): react_jsx_runtime.JSX.Element;
|
|
841
|
-
declare function ComboboxInput({ className, showTrigger, showClear, startAddon, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
|
|
842
|
-
showTrigger?: boolean;
|
|
843
|
-
showClear?: boolean;
|
|
844
|
-
startAddon?: React$1.ReactNode;
|
|
845
|
-
size?: "sm" | "default" | "lg" | number;
|
|
846
|
-
ref?: React$1.Ref<HTMLInputElement>;
|
|
847
|
-
}): react_jsx_runtime.JSX.Element;
|
|
848
|
-
declare function ComboboxTrigger({ className, ...props }: Combobox$1.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
849
|
-
declare function ComboboxPopup({ className, children, sideOffset, ...props }: Combobox$1.Popup.Props & {
|
|
850
|
-
sideOffset?: number;
|
|
851
|
-
}): react_jsx_runtime.JSX.Element;
|
|
852
|
-
declare function ComboboxItem({ className, children, ...props }: Combobox$1.Item.Props): react_jsx_runtime.JSX.Element;
|
|
853
|
-
declare function ComboboxSeparator({ className, ...props }: Combobox$1.Separator.Props): react_jsx_runtime.JSX.Element;
|
|
854
|
-
declare function ComboboxGroup({ className, ...props }: Combobox$1.Group.Props): react_jsx_runtime.JSX.Element;
|
|
855
|
-
declare function ComboboxEmpty({ className, ...props }: Combobox$1.Empty.Props): react_jsx_runtime.JSX.Element;
|
|
856
|
-
declare function ComboboxList({ className, ...props }: Combobox$1.List.Props): react_jsx_runtime.JSX.Element;
|
|
857
|
-
declare const ComboboxContent: typeof ComboboxPopup;
|
|
858
|
-
type ComboboxProps<ItemValue = unknown, Multiple extends boolean | undefined = false> = Combobox$1.Root.Props<ItemValue, Multiple>;
|
|
859
|
-
type ComboboxTriggerProps = Combobox$1.Trigger.Props;
|
|
860
|
-
type ComboboxContentProps = React$1.ComponentProps<typeof ComboboxPopup>;
|
|
861
|
-
type ComboboxInputProps = React$1.ComponentProps<typeof ComboboxInput>;
|
|
862
|
-
type ComboboxListProps = React$1.ComponentProps<typeof ComboboxList>;
|
|
863
|
-
type ComboboxEmptyProps = React$1.ComponentProps<typeof ComboboxEmpty>;
|
|
864
|
-
type ComboboxGroupProps = React$1.ComponentProps<typeof ComboboxGroup>;
|
|
865
|
-
type ComboboxItemProps = React$1.ComponentProps<typeof ComboboxItem>;
|
|
866
|
-
type ComboboxSeparatorProps = React$1.ComponentProps<typeof ComboboxSeparator>;
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Variants for the multi-select component to handle different styles.
|
|
870
|
-
* Uses class-variance-authority (cva) to define different styles based on "variant" prop.
|
|
871
|
-
*/
|
|
872
|
-
declare const multiSelectVariants: (props?: ({
|
|
873
|
-
variant?: "default" | "destructive" | "secondary" | "inverted" | null | undefined;
|
|
874
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
875
|
-
/**
|
|
876
|
-
* Option interface for MultiSelect component
|
|
877
|
-
*/
|
|
878
|
-
interface MultiSelectOption {
|
|
879
|
-
/** The text to display for the option. */
|
|
880
|
-
label: string;
|
|
881
|
-
/** The unique value associated with the option. */
|
|
882
|
-
value: string;
|
|
883
|
-
/** Optional description shown in dropdown but not in selected badge. */
|
|
884
|
-
description?: string | null;
|
|
885
|
-
/** Optional icon component to display alongside the option. */
|
|
886
|
-
icon?: React$1.ComponentType<{
|
|
887
|
-
className?: string;
|
|
888
|
-
}>;
|
|
889
|
-
/** Whether this option is disabled */
|
|
890
|
-
disabled?: boolean;
|
|
891
|
-
/** Custom styling for the option */
|
|
892
|
-
style?: {
|
|
893
|
-
/** Custom badge color */
|
|
894
|
-
badgeColor?: string;
|
|
895
|
-
/** Custom icon color */
|
|
896
|
-
iconColor?: string;
|
|
897
|
-
/** Gradient background for badge */
|
|
898
|
-
gradient?: string;
|
|
233
|
+
readonly exit: {
|
|
234
|
+
readonly opacity: 0;
|
|
235
|
+
readonly y: -8;
|
|
899
236
|
};
|
|
900
|
-
}
|
|
901
|
-
/**
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
heading: string;
|
|
907
|
-
/** Options in this group */
|
|
908
|
-
options: MultiSelectOption[];
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* Props for MultiSelect component
|
|
912
|
-
*/
|
|
913
|
-
interface MultiSelectProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof multiSelectVariants> {
|
|
914
|
-
/**
|
|
915
|
-
* An array of option objects or groups to be displayed in the multi-select component.
|
|
916
|
-
*/
|
|
917
|
-
options: MultiSelectOption[] | MultiSelectGroup[];
|
|
918
|
-
/**
|
|
919
|
-
* Callback function triggered when the selected values change.
|
|
920
|
-
* Receives an array of the new selected values.
|
|
921
|
-
*/
|
|
922
|
-
onValueChange: (value: string[]) => void;
|
|
923
|
-
/** The default selected values when the component mounts. */
|
|
924
|
-
defaultValue?: string[];
|
|
925
|
-
/**
|
|
926
|
-
* Placeholder text to be displayed when no values are selected.
|
|
927
|
-
* Optional, defaults to "Select options".
|
|
928
|
-
*/
|
|
929
|
-
placeholder?: string;
|
|
930
|
-
/**
|
|
931
|
-
* Maximum number of items to display. Extra selected items will be summarized.
|
|
932
|
-
* Optional, defaults to 3.
|
|
933
|
-
*/
|
|
934
|
-
maxCount?: number;
|
|
935
|
-
/**
|
|
936
|
-
* If true, shows search functionality in the popover.
|
|
937
|
-
* If false, hides the search input completely.
|
|
938
|
-
* Optional, defaults to true.
|
|
939
|
-
*/
|
|
940
|
-
searchable?: boolean;
|
|
941
|
-
/**
|
|
942
|
-
* Custom empty state message when no options match search.
|
|
943
|
-
* Optional, defaults to "No results found."
|
|
944
|
-
*/
|
|
945
|
-
emptyIndicator?: React$1.ReactNode;
|
|
946
|
-
/**
|
|
947
|
-
* If true, allows the component to grow and shrink with its content.
|
|
948
|
-
* If false, uses fixed width behavior.
|
|
949
|
-
* Optional, defaults to false.
|
|
950
|
-
*/
|
|
951
|
-
autoSize?: boolean;
|
|
952
|
-
/**
|
|
953
|
-
* If true, shows badges in a single line with horizontal scroll.
|
|
954
|
-
* If false, badges wrap to multiple lines.
|
|
955
|
-
* Optional, defaults to false.
|
|
956
|
-
*/
|
|
957
|
-
singleLine?: boolean;
|
|
958
|
-
/**
|
|
959
|
-
* Custom CSS class for the popover content.
|
|
960
|
-
* Optional, can be used to customize popover appearance.
|
|
961
|
-
*/
|
|
962
|
-
popoverClassName?: string;
|
|
963
|
-
/**
|
|
964
|
-
* If true, disables the component completely.
|
|
965
|
-
* Optional, defaults to false.
|
|
966
|
-
*/
|
|
967
|
-
disabled?: boolean;
|
|
968
|
-
/**
|
|
969
|
-
* Responsive configuration for different screen sizes.
|
|
970
|
-
* Allows customizing maxCount and other properties based on viewport.
|
|
971
|
-
* Can be boolean true for default responsive behavior or an object for custom configuration.
|
|
972
|
-
*/
|
|
973
|
-
responsive?: boolean | {
|
|
974
|
-
/** Configuration for mobile devices (< 640px) */
|
|
975
|
-
mobile?: {
|
|
976
|
-
maxCount?: number;
|
|
977
|
-
hideIcons?: boolean;
|
|
978
|
-
compactMode?: boolean;
|
|
979
|
-
};
|
|
980
|
-
/** Configuration for tablet devices (640px - 1024px) */
|
|
981
|
-
tablet?: {
|
|
982
|
-
maxCount?: number;
|
|
983
|
-
hideIcons?: boolean;
|
|
984
|
-
compactMode?: boolean;
|
|
985
|
-
};
|
|
986
|
-
/** Configuration for desktop devices (> 1024px) */
|
|
987
|
-
desktop?: {
|
|
988
|
-
maxCount?: number;
|
|
989
|
-
hideIcons?: boolean;
|
|
990
|
-
compactMode?: boolean;
|
|
991
|
-
};
|
|
237
|
+
};
|
|
238
|
+
/** Fade with subtle slide down - good for dropdowns */
|
|
239
|
+
readonly fadeSlideDown: {
|
|
240
|
+
readonly initial: {
|
|
241
|
+
readonly opacity: 0;
|
|
242
|
+
readonly y: -8;
|
|
992
243
|
};
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
* When set, component will not shrink below this width.
|
|
997
|
-
*/
|
|
998
|
-
minWidth?: string;
|
|
999
|
-
/**
|
|
1000
|
-
* Maximum width for the component.
|
|
1001
|
-
* Optional, defaults to 100% of container.
|
|
1002
|
-
* Component will not exceed container boundaries.
|
|
1003
|
-
*/
|
|
1004
|
-
maxWidth?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* Maximum height for the dropdown list area.
|
|
1007
|
-
* Optional, defaults to responsive viewport-based heights.
|
|
1008
|
-
*/
|
|
1009
|
-
dropdownMaxHeight?: string;
|
|
1010
|
-
/**
|
|
1011
|
-
* If true, automatically removes duplicate options based on their value.
|
|
1012
|
-
* Optional, defaults to false (shows warning in dev mode instead).
|
|
1013
|
-
*/
|
|
1014
|
-
deduplicateOptions?: boolean;
|
|
1015
|
-
/**
|
|
1016
|
-
* If true, the component will reset its internal state when defaultValue changes.
|
|
1017
|
-
* Useful for React Hook Form integration and form reset functionality.
|
|
1018
|
-
* Optional, defaults to true.
|
|
1019
|
-
*/
|
|
1020
|
-
resetOnDefaultValueChange?: boolean;
|
|
1021
|
-
/**
|
|
1022
|
-
* If true, automatically closes the popover after selecting an option.
|
|
1023
|
-
* Useful for single-selection-like behavior or mobile UX.
|
|
1024
|
-
* Optional, defaults to false.
|
|
1025
|
-
*/
|
|
1026
|
-
closeOnSelect?: boolean;
|
|
1027
|
-
/**
|
|
1028
|
-
* Custom footer content to display at the bottom of the dropdown.
|
|
1029
|
-
* Useful for adding action buttons like "Add new item".
|
|
1030
|
-
* Optional.
|
|
1031
|
-
*/
|
|
1032
|
-
footerContent?: React$1.ReactNode;
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Imperative methods exposed through ref
|
|
1036
|
-
*/
|
|
1037
|
-
interface MultiSelectRef {
|
|
1038
|
-
/**
|
|
1039
|
-
* Programmatically reset the component to its default value
|
|
1040
|
-
*/
|
|
1041
|
-
reset: () => void;
|
|
1042
|
-
/**
|
|
1043
|
-
* Get current selected values
|
|
1044
|
-
*/
|
|
1045
|
-
getSelectedValues: () => string[];
|
|
1046
|
-
/**
|
|
1047
|
-
* Set selected values programmatically
|
|
1048
|
-
*/
|
|
1049
|
-
setSelectedValues: (values: string[]) => void;
|
|
1050
|
-
/**
|
|
1051
|
-
* Clear all selected values
|
|
1052
|
-
*/
|
|
1053
|
-
clear: () => void;
|
|
1054
|
-
/**
|
|
1055
|
-
* Focus the component
|
|
1056
|
-
*/
|
|
1057
|
-
focus: () => void;
|
|
1058
|
-
}
|
|
1059
|
-
declare const MultiSelect: React$1.ForwardRefExoticComponent<MultiSelectProps & React$1.RefAttributes<MultiSelectRef>>;
|
|
1060
|
-
|
|
1061
|
-
type TagsProps = {
|
|
1062
|
-
value?: string;
|
|
1063
|
-
setValue?: (value: string) => void;
|
|
1064
|
-
open?: boolean;
|
|
1065
|
-
onOpenChange?: (open: boolean) => void;
|
|
1066
|
-
children?: ReactNode;
|
|
1067
|
-
className?: string;
|
|
1068
|
-
};
|
|
1069
|
-
declare const Tags: ({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className, }: TagsProps) => react_jsx_runtime.JSX.Element;
|
|
1070
|
-
type TagsTriggerProps = ComponentProps<typeof Button>;
|
|
1071
|
-
declare const TagsTrigger: ({ className, children, ...props }: TagsTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1072
|
-
type TagsValueProps = ComponentProps<typeof Badge>;
|
|
1073
|
-
declare const TagsValue: ({ className, children, onRemove, ...props }: TagsValueProps & {
|
|
1074
|
-
onRemove?: () => void;
|
|
1075
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1076
|
-
type TagsContentProps = ComponentProps<typeof PopoverContent>;
|
|
1077
|
-
declare const TagsContent: ({ className, children, ...props }: TagsContentProps) => react_jsx_runtime.JSX.Element;
|
|
1078
|
-
type TagsInputProps = ComponentProps<typeof CommandInput>;
|
|
1079
|
-
declare const TagsInput: ({ className, ...props }: TagsInputProps) => react_jsx_runtime.JSX.Element;
|
|
1080
|
-
type TagsListProps = ComponentProps<typeof CommandList>;
|
|
1081
|
-
declare const TagsList: ({ className, ...props }: TagsListProps) => react_jsx_runtime.JSX.Element;
|
|
1082
|
-
type TagsEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
1083
|
-
declare const TagsEmpty: ({ children, className: _className, ...props }: TagsEmptyProps) => react_jsx_runtime.JSX.Element;
|
|
1084
|
-
type TagsGroupProps = ComponentProps<typeof CommandGroup>;
|
|
1085
|
-
declare const TagsGroup: typeof CommandGroup;
|
|
1086
|
-
type TagsItemProps = ComponentProps<typeof CommandItem>;
|
|
1087
|
-
declare const TagsItem: ({ className, ...props }: TagsItemProps) => react_jsx_runtime.JSX.Element;
|
|
1088
|
-
|
|
1089
|
-
interface RecordPickerProps {
|
|
1090
|
-
records: any[];
|
|
1091
|
-
linkedRecordIds: Set<string>;
|
|
1092
|
-
onLink: (record: any) => void;
|
|
1093
|
-
isLinking: boolean;
|
|
1094
|
-
getRecordLabel: (record: any) => string;
|
|
1095
|
-
getRecordId: (record: any) => string;
|
|
1096
|
-
searchFields?: string[];
|
|
1097
|
-
placeholder?: string;
|
|
1098
|
-
maxHeight?: string;
|
|
1099
|
-
}
|
|
1100
|
-
declare function RecordPicker({ records, linkedRecordIds, onLink, isLinking, getRecordLabel, getRecordId, searchFields, placeholder, maxHeight, }: RecordPickerProps): react_jsx_runtime.JSX.Element;
|
|
1101
|
-
|
|
1102
|
-
interface StepperProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1103
|
-
defaultValue?: number;
|
|
1104
|
-
value?: number;
|
|
1105
|
-
onValueChange?: (value: number) => void;
|
|
1106
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1107
|
-
}
|
|
1108
|
-
declare function Stepper({ defaultValue, value, onValueChange, orientation, className, ...props }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1109
|
-
interface StepperItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1110
|
-
step: number;
|
|
1111
|
-
completed?: boolean;
|
|
1112
|
-
disabled?: boolean;
|
|
1113
|
-
loading?: boolean;
|
|
1114
|
-
}
|
|
1115
|
-
declare function StepperItem({ step, completed, disabled, loading, className, children, ...props }: StepperItemProps): react_jsx_runtime.JSX.Element;
|
|
1116
|
-
interface StepperTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1117
|
-
asChild?: boolean;
|
|
1118
|
-
}
|
|
1119
|
-
declare function StepperTrigger({ asChild, className, children, ...props }: StepperTriggerProps): react_jsx_runtime.JSX.Element;
|
|
1120
|
-
interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1121
|
-
asChild?: boolean;
|
|
1122
|
-
}
|
|
1123
|
-
declare function StepperIndicator({ asChild, className, children, ...props }: StepperIndicatorProps): react_jsx_runtime.JSX.Element;
|
|
1124
|
-
declare function StepperTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
1125
|
-
declare function StepperDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
1126
|
-
declare function StepperSeparator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1127
|
-
|
|
1128
|
-
type SidebarContextProps = {
|
|
1129
|
-
state: 'expanded' | 'collapsed';
|
|
1130
|
-
open: boolean;
|
|
1131
|
-
setOpen: (open: boolean) => void;
|
|
1132
|
-
openMobile: boolean;
|
|
1133
|
-
setOpenMobile: (open: boolean) => void;
|
|
1134
|
-
isMobile: boolean;
|
|
1135
|
-
toggleSidebar: () => void;
|
|
1136
|
-
isHovered: boolean;
|
|
1137
|
-
setIsHovered: (hovered: boolean) => void;
|
|
1138
|
-
};
|
|
1139
|
-
declare function useSidebar(): SidebarContextProps;
|
|
1140
|
-
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1141
|
-
defaultOpen?: boolean;
|
|
1142
|
-
open?: boolean;
|
|
1143
|
-
onOpenChange?: (open: boolean) => void;
|
|
1144
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1145
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1146
|
-
side?: 'left' | 'right';
|
|
1147
|
-
variant?: 'sidebar' | 'floating' | 'inset';
|
|
1148
|
-
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
1149
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1150
|
-
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
1151
|
-
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): react_jsx_runtime.JSX.Element;
|
|
1152
|
-
declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
1153
|
-
declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1154
|
-
declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1155
|
-
declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1156
|
-
declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1157
|
-
declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1158
|
-
declare function SidebarGroupLabel({ className, asChild, ...props }: React$1.ComponentProps<'div'> & {
|
|
1159
|
-
asChild?: boolean;
|
|
1160
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1161
|
-
declare function SidebarGroupAction({ className, asChild, ...props }: React$1.ComponentProps<'button'> & {
|
|
1162
|
-
asChild?: boolean;
|
|
1163
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1164
|
-
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1165
|
-
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1166
|
-
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1167
|
-
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1168
|
-
variant?: "outline" | "default" | null | undefined;
|
|
1169
|
-
size?: "default" | "lg" | "sm" | null | undefined;
|
|
1170
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1171
|
-
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React$1.ComponentProps<'button'> & {
|
|
1172
|
-
asChild?: boolean;
|
|
1173
|
-
isActive?: boolean;
|
|
1174
|
-
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
1175
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
1176
|
-
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React$1.ComponentProps<'button'> & {
|
|
1177
|
-
asChild?: boolean;
|
|
1178
|
-
showOnHover?: boolean;
|
|
1179
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1180
|
-
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1181
|
-
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
1182
|
-
showIcon?: boolean;
|
|
1183
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1184
|
-
declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1185
|
-
declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1186
|
-
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
1187
|
-
asChild?: boolean;
|
|
1188
|
-
size?: 'sm' | 'md';
|
|
1189
|
-
isActive?: boolean;
|
|
1190
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1191
|
-
|
|
1192
|
-
interface BaseCalendarProps {
|
|
1193
|
-
className?: string;
|
|
1194
|
-
}
|
|
1195
|
-
type CalendarProps = ComponentProps<typeof Calendar$1> & BaseCalendarProps;
|
|
1196
|
-
type RangeCalendarProps = ComponentProps<typeof RangeCalendar$1> & BaseCalendarProps;
|
|
1197
|
-
declare function Calendar({ className, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1198
|
-
declare function RangeCalendar({ className, ...props }: RangeCalendarProps): react_jsx_runtime.JSX.Element;
|
|
1199
|
-
|
|
1200
|
-
type JsonInputProps = {
|
|
1201
|
-
value: string;
|
|
1202
|
-
setValue: (value: string) => void;
|
|
1203
|
-
minLines?: number;
|
|
1204
|
-
className?: string;
|
|
1205
|
-
/** Theme for the editor: 'light' or 'dark'. Defaults to 'light'. */
|
|
1206
|
-
theme?: 'light' | 'dark';
|
|
1207
|
-
};
|
|
1208
|
-
declare const JsonInput: ({ value, setValue, minLines, className, theme }: JsonInputProps) => react_jsx_runtime.JSX.Element;
|
|
1209
|
-
type JsonEditorProps = {
|
|
1210
|
-
value: string;
|
|
1211
|
-
lines: number;
|
|
1212
|
-
setValue?: (value: string) => void;
|
|
1213
|
-
readOnly?: boolean;
|
|
1214
|
-
isValid?: boolean;
|
|
1215
|
-
enableFolding?: boolean;
|
|
1216
|
-
/** Theme for the editor: 'light' or 'dark'. Defaults to 'light'. */
|
|
1217
|
-
theme?: 'light' | 'dark';
|
|
1218
|
-
};
|
|
1219
|
-
declare const JsonEditor: ({ value, setValue, lines, readOnly, isValid, enableFolding, theme, }: JsonEditorProps) => react_jsx_runtime.JSX.Element;
|
|
1220
|
-
declare const validateJson: (text: string) => string | null;
|
|
1221
|
-
|
|
1222
|
-
type ToasterComponentProps = ToasterProps & {
|
|
1223
|
-
/** Theme for the toaster. Pass from your app's theme context. Defaults to 'system'. */
|
|
1224
|
-
theme?: 'light' | 'dark' | 'system';
|
|
1225
|
-
};
|
|
1226
|
-
declare const Toaster: ({ theme, ...props }: ToasterComponentProps) => react_jsx_runtime.JSX.Element;
|
|
1227
|
-
|
|
1228
|
-
interface DockProps extends VariantProps<typeof dockVariants> {
|
|
1229
|
-
className?: string;
|
|
1230
|
-
iconSize?: number;
|
|
1231
|
-
iconMagnification?: number;
|
|
1232
|
-
iconDistance?: number;
|
|
1233
|
-
direction?: 'top' | 'middle' | 'bottom';
|
|
1234
|
-
children: React__default.ReactNode;
|
|
1235
|
-
}
|
|
1236
|
-
declare const dockVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
1237
|
-
declare const Dock: React__default.ForwardRefExoticComponent<DockProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1238
|
-
interface DockIconProps extends Omit<MotionProps & React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1239
|
-
size?: number;
|
|
1240
|
-
magnification?: number;
|
|
1241
|
-
distance?: number;
|
|
1242
|
-
mouseX?: MotionValue<number>;
|
|
1243
|
-
className?: string;
|
|
1244
|
-
children?: React__default.ReactNode;
|
|
1245
|
-
props?: PropsWithChildren;
|
|
1246
|
-
}
|
|
1247
|
-
declare const DockIcon: {
|
|
1248
|
-
({ size, magnification, distance, mouseX, className, children, ...props }: DockIconProps): react_jsx_runtime.JSX.Element;
|
|
1249
|
-
displayName: string;
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
interface PageHeaderProps {
|
|
1253
|
-
/** Page title */
|
|
1254
|
-
title: string;
|
|
1255
|
-
/** Optional description */
|
|
1256
|
-
description?: string;
|
|
1257
|
-
/** Optional actions to display on the right */
|
|
1258
|
-
actions?: ReactNode;
|
|
1259
|
-
}
|
|
1260
|
-
/**
|
|
1261
|
-
* Consistent page header component
|
|
1262
|
-
*/
|
|
1263
|
-
declare function PageHeader({ title, description, actions }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1264
|
-
|
|
1265
|
-
interface FlickeringGridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1266
|
-
squareSize?: number;
|
|
1267
|
-
gridGap?: number;
|
|
1268
|
-
flickerChance?: number;
|
|
1269
|
-
color?: string;
|
|
1270
|
-
width?: number;
|
|
1271
|
-
height?: number;
|
|
1272
|
-
className?: string;
|
|
1273
|
-
maxOpacity?: number;
|
|
1274
|
-
}
|
|
1275
|
-
declare const FlickeringGrid: React__default.FC<FlickeringGridProps>;
|
|
1276
|
-
|
|
1277
|
-
type FrameDot = [number, number];
|
|
1278
|
-
type Frame = FrameDot[];
|
|
1279
|
-
type Frames = Frame[];
|
|
1280
|
-
type MotionGridProps = {
|
|
1281
|
-
gridSize: [number, number];
|
|
1282
|
-
/** Duration in milliseconds for each frame of the animation */
|
|
1283
|
-
duration?: number;
|
|
1284
|
-
animate?: boolean;
|
|
1285
|
-
cellClassName?: string;
|
|
1286
|
-
cellProps?: HTMLMotionProps<'div'>;
|
|
1287
|
-
cellActiveClassName?: string;
|
|
1288
|
-
cellInactiveClassName?: string;
|
|
1289
|
-
} & React$1.ComponentProps<'div'>;
|
|
1290
|
-
declare const MotionGrid: ({ gridSize, duration, animate, cellClassName, cellProps, cellActiveClassName, cellInactiveClassName, className, style, ...props }: MotionGridProps) => react_jsx_runtime.JSX.Element;
|
|
1291
|
-
|
|
1292
|
-
interface ProgressiveBlurProps {
|
|
1293
|
-
className?: string;
|
|
1294
|
-
height?: string;
|
|
1295
|
-
position?: 'top' | 'bottom' | 'both';
|
|
1296
|
-
/** Strength of the blur kernel in pixels (simpler, fewer artifacts) */
|
|
1297
|
-
blurPx?: number;
|
|
1298
|
-
surface?: 'background' | 'card' | 'sidebar';
|
|
1299
|
-
intensity?: number;
|
|
1300
|
-
/** Optional horizontal inset to avoid edge bleeding (e.g. '0.5rem') */
|
|
1301
|
-
insetX?: string;
|
|
1302
|
-
}
|
|
1303
|
-
declare function ProgressiveBlur({ className, height, position, blurPx, surface, intensity, insetX, }: ProgressiveBlurProps): react_jsx_runtime.JSX.Element;
|
|
1304
|
-
|
|
1305
|
-
interface ProgressiveBlurScrollContainerProps {
|
|
1306
|
-
children: ReactNode;
|
|
1307
|
-
className?: string;
|
|
1308
|
-
/** Class name for the scrollable inner div */
|
|
1309
|
-
scrollClassName?: string;
|
|
1310
|
-
/** Minimum number of items to show blur (prevents blur on sparse content) */
|
|
1311
|
-
minItemsForBlur?: number;
|
|
1312
|
-
/** Current item count for minItemsForBlur check */
|
|
1313
|
-
itemCount?: number;
|
|
1314
|
-
/** Props to pass to ProgressiveBlur */
|
|
1315
|
-
blurProps?: Partial<ProgressiveBlurProps>;
|
|
1316
|
-
/** Whether to show blur (in addition to overflow check) */
|
|
1317
|
-
showBlur?: boolean;
|
|
1318
|
-
}
|
|
1319
|
-
/**
|
|
1320
|
-
* A scrollable container that shows progressive blur effects at the top and bottom
|
|
1321
|
-
* when content overflows. Top blur appears when scrolled, bottom blur when more content below.
|
|
1322
|
-
*/
|
|
1323
|
-
declare function ProgressiveBlurScrollContainer({ children, className, scrollClassName, minItemsForBlur, itemCount, blurProps, showBlur, }: ProgressiveBlurScrollContainerProps): react_jsx_runtime.JSX.Element;
|
|
1324
|
-
|
|
1325
|
-
interface ResponsiveDiagramProps {
|
|
1326
|
-
children: React.ReactNode;
|
|
1327
|
-
targetRatio?: number;
|
|
1328
|
-
className?: string;
|
|
1329
|
-
}
|
|
1330
|
-
declare function ResponsiveDiagram({ children, targetRatio, className }: ResponsiveDiagramProps): react_jsx_runtime.JSX.Element;
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Overlay layer type:
|
|
1334
|
-
* - 'base': Root level (page content, base floating elements)
|
|
1335
|
-
* - 'modal': Inside a modal overlay (dialog, sheet, drawer)
|
|
1336
|
-
*/
|
|
1337
|
-
type OverlayLayer = 'base' | 'modal';
|
|
1338
|
-
/**
|
|
1339
|
-
* Where floating overlays should portal:
|
|
1340
|
-
* - 'root': always portal into #portal-root
|
|
1341
|
-
* - 'nested': let Base UI nest portals into the nearest Base UI portal node
|
|
1342
|
-
*/
|
|
1343
|
-
type FloatingPortalStrategy = 'root' | 'nested';
|
|
1344
|
-
/**
|
|
1345
|
-
* Z-index mode for floating overlays.
|
|
1346
|
-
* - 'default': --z-layer-floating
|
|
1347
|
-
* - 'elevated': --z-layer-floating-elevated
|
|
1348
|
-
*/
|
|
1349
|
-
type FloatingZIndex = 'default' | 'elevated';
|
|
1350
|
-
interface PortalContextValue {
|
|
1351
|
-
/** Current overlay layer */
|
|
1352
|
-
layer: OverlayLayer;
|
|
1353
|
-
/** Modal nesting depth (0 for first modal, 1 for nested, etc.) */
|
|
1354
|
-
depth: number;
|
|
1355
|
-
/** Strategy for where floating overlays should portal */
|
|
1356
|
-
floatingPortalStrategy: FloatingPortalStrategy;
|
|
1357
|
-
/** Z-index mode for floating overlays */
|
|
1358
|
-
floatingZIndex: FloatingZIndex;
|
|
1359
|
-
}
|
|
1360
|
-
declare const PORTAL_ROOT_ID = "portal-root";
|
|
1361
|
-
/**
|
|
1362
|
-
* Provider for modal overlays (Dialog, Sheet, Drawer, etc.)
|
|
1363
|
-
*
|
|
1364
|
-
* Wraps modal content to:
|
|
1365
|
-
* 1. Create a scoped portal container for nested floating elements
|
|
1366
|
-
* 2. Track the overlay layer (so floating elements know to use elevated z-index)
|
|
1367
|
-
* 3. Track nesting depth for stacked modals
|
|
1368
|
-
*
|
|
1369
|
-
* Usage:
|
|
1370
|
-
* ```tsx
|
|
1371
|
-
* <DialogPopup>
|
|
1372
|
-
* <ModalPortalScope>
|
|
1373
|
-
* {children} // Popovers inside here will render in the scoped container
|
|
1374
|
-
* </ModalPortalScope>
|
|
1375
|
-
* </DialogPopup>
|
|
1376
|
-
* ```
|
|
1377
|
-
*/
|
|
1378
|
-
declare function ModalPortalScope({ children, floatingPortalStrategy, floatingZIndex, }: {
|
|
1379
|
-
children: React$1.ReactNode;
|
|
1380
|
-
floatingPortalStrategy?: FloatingPortalStrategy;
|
|
1381
|
-
floatingZIndex?: FloatingZIndex;
|
|
1382
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1383
|
-
/**
|
|
1384
|
-
* Get the current portal context value.
|
|
1385
|
-
* Used internally by other hooks.
|
|
1386
|
-
*/
|
|
1387
|
-
declare function usePortalContext(): PortalContextValue;
|
|
1388
|
-
declare function useInModalOverlay(): boolean;
|
|
1389
|
-
/**
|
|
1390
|
-
* Get the root portal container element.
|
|
1391
|
-
* Used by modal components (Dialog, Sheet, etc.) to render their portals.
|
|
1392
|
-
*
|
|
1393
|
-
* @returns The root portal container, or null during SSR/before mount
|
|
1394
|
-
*/
|
|
1395
|
-
declare function useRootPortalContainer(): HTMLElement | null;
|
|
1396
|
-
/**
|
|
1397
|
-
* Centralized portal + z-index policy for floating overlays.
|
|
1398
|
-
*
|
|
1399
|
-
* - When `floatingPortalStrategy` is 'nested', Base UI will automatically portal
|
|
1400
|
-
* into the nearest Base UI portal node (so dialog "inert" behavior includes it).
|
|
1401
|
-
* - When it's 'root', we portal into #portal-root.
|
|
1402
|
-
*/
|
|
1403
|
-
declare function useFloatingOverlayPortalProps(): {
|
|
1404
|
-
container?: HTMLElement | null;
|
|
1405
|
-
zIndexClass: string;
|
|
1406
|
-
};
|
|
1407
|
-
/**
|
|
1408
|
-
* Portal root component to render in app layout.
|
|
1409
|
-
* All overlay components will render their portals inside this container.
|
|
1410
|
-
*
|
|
1411
|
-
* Usage in layout.tsx:
|
|
1412
|
-
* ```tsx
|
|
1413
|
-
* import { PortalRoot } from '@constructive-io/ui/portal';
|
|
1414
|
-
*
|
|
1415
|
-
* export default function RootLayout({ children }) {
|
|
1416
|
-
* return (
|
|
1417
|
-
* <html>
|
|
1418
|
-
* <body>
|
|
1419
|
-
* {children}
|
|
1420
|
-
* <PortalRoot />
|
|
1421
|
-
* </body>
|
|
1422
|
-
* </html>
|
|
1423
|
-
* );
|
|
1424
|
-
* }
|
|
1425
|
-
* ```
|
|
1426
|
-
*/
|
|
1427
|
-
declare function PortalRoot(): react_jsx_runtime.JSX.Element;
|
|
1428
|
-
/**
|
|
1429
|
-
* Hook to get the portal container element for rendering floating UI elements.
|
|
1430
|
-
* Returns the element with id="portal-root" if it exists in the DOM.
|
|
1431
|
-
*
|
|
1432
|
-
* @deprecated Use useRootPortalContainer or useFloatingOverlayPortalProps instead
|
|
1433
|
-
*/
|
|
1434
|
-
declare function usePortalContainer(): HTMLElement | undefined;
|
|
1435
|
-
|
|
1436
|
-
interface UnlinkButtonProps {
|
|
1437
|
-
onUnlink: () => void;
|
|
1438
|
-
isUnlinking?: boolean;
|
|
1439
|
-
disabled?: boolean;
|
|
1440
|
-
size?: 'sm' | 'xs';
|
|
1441
|
-
variant?: 'destructive' | 'ghost';
|
|
1442
|
-
className?: string;
|
|
1443
|
-
'aria-label'?: string;
|
|
1444
|
-
}
|
|
1445
|
-
declare function UnlinkButton({ onUnlink, isUnlinking, disabled, size, variant, className, 'aria-label': ariaLabel, }: UnlinkButtonProps): react_jsx_runtime.JSX.Element;
|
|
1446
|
-
|
|
1447
|
-
type CardId = string;
|
|
1448
|
-
type CardComponent<P = unknown> = ComponentType<P & CardInjectedProps>;
|
|
1449
|
-
/** Configuration for the stack backdrop overlay */
|
|
1450
|
-
type BackdropConfig = {
|
|
1451
|
-
/** Enable backdrop blur effect (default: false) */
|
|
1452
|
-
blur?: boolean;
|
|
1453
|
-
/** Custom class name for full styling control */
|
|
1454
|
-
className?: string;
|
|
1455
|
-
};
|
|
1456
|
-
/** Props injected into every card component */
|
|
1457
|
-
type CardInjectedProps = {
|
|
1458
|
-
card: {
|
|
1459
|
-
id: CardId;
|
|
1460
|
-
/**
|
|
1461
|
-
* Push a new card from this card.
|
|
1462
|
-
* Default: replaces all cards above this card, then pushes the new card.
|
|
1463
|
-
* Use { append: true } to just push on top of the entire stack.
|
|
1464
|
-
*/
|
|
1465
|
-
push: <P>(card: Omit<CardSpec<P>, 'id'> & {
|
|
1466
|
-
id?: CardId;
|
|
1467
|
-
}, options?: CardPushOptions) => CardId;
|
|
1468
|
-
close: () => void;
|
|
1469
|
-
setTitle: (title?: string) => void;
|
|
1470
|
-
setDescription: (description?: string) => void;
|
|
1471
|
-
setWidth: (width?: string | number) => void;
|
|
1472
|
-
setDismissable: (dismissable: boolean) => void;
|
|
1473
|
-
updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
|
|
244
|
+
readonly animate: {
|
|
245
|
+
readonly opacity: 1;
|
|
246
|
+
readonly y: 0;
|
|
1474
247
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
id: CardId;
|
|
1479
|
-
/** Display title in card header */
|
|
1480
|
-
title?: string;
|
|
1481
|
-
/** Display description/subtitle in card header */
|
|
1482
|
-
description?: string;
|
|
1483
|
-
/** Header size variant - controls title/description size, weight, and height */
|
|
1484
|
-
headerSize?: 'sm' | 'md' | 'lg';
|
|
1485
|
-
/** React component to render */
|
|
1486
|
-
Component: CardComponent<P>;
|
|
1487
|
-
/** Props passed to Component (excluding injected card props) */
|
|
1488
|
-
props?: P;
|
|
1489
|
-
/** Width override (CSS value) - default: 480px */
|
|
1490
|
-
width?: string | number;
|
|
1491
|
-
/** Custom peek offset for this card when cards stack above it (default: 24px) */
|
|
1492
|
-
peekOffset?: number;
|
|
1493
|
-
/**
|
|
1494
|
-
* When true, this card can be fully covered by cards above it (no guaranteed peek).
|
|
1495
|
-
* Use this escape hatch for cards where visibility isn't required when buried in stack.
|
|
1496
|
-
* Default: false (card always peeks past cards above it)
|
|
1497
|
-
*/
|
|
1498
|
-
allowCover?: boolean;
|
|
1499
|
-
/**
|
|
1500
|
-
* Show backdrop behind the stack when this card is the first card.
|
|
1501
|
-
* Default: inherits from CardStackViewport's backdrop prop (true).
|
|
1502
|
-
* Set to false for panel/sidebar-like cards that shouldn't obscure background.
|
|
1503
|
-
* Pass an object to configure blur and styling.
|
|
1504
|
-
*/
|
|
1505
|
-
backdrop?: boolean | BackdropConfig;
|
|
1506
|
-
/** Whether user interactions (close button, Escape, backdrop click, gestures) can dismiss this card.
|
|
1507
|
-
* Programmatic dismissal via card.close() / api.dismiss() always works. Default: true */
|
|
1508
|
-
dismissable?: boolean;
|
|
1509
|
-
/**
|
|
1510
|
-
* Callback fired when this card is removed from the stack.
|
|
1511
|
-
* Fires regardless of how the card was closed (swipe, backdrop, escape, api.dismiss, etc.)
|
|
1512
|
-
*/
|
|
1513
|
-
onClose?: () => void;
|
|
1514
|
-
/** Arbitrary metadata for analytics/debugging */
|
|
1515
|
-
meta?: Record<string, unknown>;
|
|
1516
|
-
};
|
|
1517
|
-
type CardRouteDefinition<P = unknown> = {
|
|
1518
|
-
/** Component to render for this route */
|
|
1519
|
-
Component: CardComponent<P>;
|
|
1520
|
-
/** Generate unique ID from props (default: route key) */
|
|
1521
|
-
getId?: (props?: P) => CardId;
|
|
1522
|
-
/** Default title for cards opened via this route */
|
|
1523
|
-
defaultTitle?: string;
|
|
1524
|
-
/** Default width for cards opened via this route */
|
|
1525
|
-
defaultWidth?: string | number;
|
|
1526
|
-
/** Default peek offset for cards opened via this route */
|
|
1527
|
-
defaultPeekOffset?: number;
|
|
1528
|
-
};
|
|
1529
|
-
type CardRouteMap = Record<string, CardRouteDefinition<unknown>>;
|
|
1530
|
-
type LayoutMode = 'cascade' | 'side-by-side';
|
|
1531
|
-
/** Options for dismiss operation */
|
|
1532
|
-
type DismissOptions = {
|
|
1533
|
-
/**
|
|
1534
|
-
* When true (default), dismissing a card also dismisses all cards above it.
|
|
1535
|
-
* When false, only the specified card is removed (escape hatch).
|
|
1536
|
-
*/
|
|
1537
|
-
cascade?: boolean;
|
|
1538
|
-
};
|
|
1539
|
-
/** Options for push operation */
|
|
1540
|
-
type PushOptions = {
|
|
1541
|
-
/**
|
|
1542
|
-
* If provided, removes all cards above this card ID before pushing.
|
|
1543
|
-
* Used internally by card.push() to implement replace-from-current behavior.
|
|
1544
|
-
*/
|
|
1545
|
-
replaceFrom?: CardId;
|
|
1546
|
-
};
|
|
1547
|
-
/** Options for push from within a card (injected card.push) */
|
|
1548
|
-
type CardPushOptions = {
|
|
1549
|
-
/**
|
|
1550
|
-
* When true, just push on top of the entire stack (escape hatch).
|
|
1551
|
-
* When false (default), replace cards above the current card first.
|
|
1552
|
-
*/
|
|
1553
|
-
append?: boolean;
|
|
1554
|
-
};
|
|
1555
|
-
type CardStackApi = {
|
|
1556
|
-
/** Get the topmost card spec, or null if empty */
|
|
1557
|
-
top: () => CardSpec | null;
|
|
1558
|
-
/** Get the ID of the topmost card, or null if empty */
|
|
1559
|
-
currentId: () => CardId | null;
|
|
1560
|
-
/** Check if stack has cards that can be popped */
|
|
1561
|
-
canPop: () => boolean;
|
|
1562
|
-
/** Get total number of cards in stack */
|
|
1563
|
-
size: () => number;
|
|
1564
|
-
/** Get a specific card by ID, or null if not found */
|
|
1565
|
-
get: (id: CardId) => CardSpec | null;
|
|
1566
|
-
/** Get all cards in stack (bottom to top order) */
|
|
1567
|
-
getAll: () => CardSpec[];
|
|
1568
|
-
/** Check if a specific card exists in the stack */
|
|
1569
|
-
has: (id: CardId) => boolean;
|
|
1570
|
-
/**
|
|
1571
|
-
* Push a new card onto the stack. Returns the card ID.
|
|
1572
|
-
* Use { replaceFrom: cardId } to remove cards above that card first.
|
|
1573
|
-
*/
|
|
1574
|
-
push: <P>(card: CardSpec<P>, options?: PushOptions) => CardId;
|
|
1575
|
-
/** Push a card by registered route key. Returns the card ID. */
|
|
1576
|
-
pushRoute: <P>(route: string, props?: P, opts?: {
|
|
1577
|
-
id?: CardId;
|
|
1578
|
-
title?: string;
|
|
1579
|
-
width?: string | number;
|
|
1580
|
-
}) => CardId;
|
|
1581
|
-
/** Pop one or more cards from the stack */
|
|
1582
|
-
pop: (count?: number) => void;
|
|
1583
|
-
/** Pop cards until the specified ID is on top */
|
|
1584
|
-
popTo: (id: CardId) => void;
|
|
1585
|
-
/** Replace the top card with a new one. Returns the new card ID. */
|
|
1586
|
-
replaceTop: <P>(card: CardSpec<P>) => CardId;
|
|
1587
|
-
/** Reset the entire stack to a specific set of cards */
|
|
1588
|
-
reset: (cards: CardSpec[]) => void;
|
|
1589
|
-
/** Clear all cards from the stack */
|
|
1590
|
-
clear: () => void;
|
|
1591
|
-
/** Update props for a specific card */
|
|
1592
|
-
updateProps: <P>(id: CardId, patch: Partial<P> | ((prev: P) => P)) => void;
|
|
1593
|
-
/** Update the title for a specific card */
|
|
1594
|
-
setTitle: (id: CardId, title?: string) => void;
|
|
1595
|
-
/** Update the description for a specific card */
|
|
1596
|
-
setDescription: (id: CardId, description?: string) => void;
|
|
1597
|
-
/** Update the width for a specific card */
|
|
1598
|
-
setWidth: (id: CardId, width?: string | number) => void;
|
|
1599
|
-
/** Update the dismissable state for a specific card */
|
|
1600
|
-
setDismissable: (id: CardId, dismissable: boolean) => void;
|
|
1601
|
-
/**
|
|
1602
|
-
* Remove a card from the stack.
|
|
1603
|
-
* By default (cascade: true), also removes all cards above it.
|
|
1604
|
-
* Use { cascade: false } to remove only the specified card.
|
|
1605
|
-
*/
|
|
1606
|
-
dismiss: (id: CardId, options?: DismissOptions) => void;
|
|
1607
|
-
/** Insert a card at a specific index (0 = bottom) */
|
|
1608
|
-
insertAt: <P>(index: number, card: CardSpec<P>) => CardId;
|
|
1609
|
-
};
|
|
1610
|
-
type CardStackProviderProps = {
|
|
1611
|
-
children: React.ReactNode;
|
|
1612
|
-
/** Route registry for string-based navigation */
|
|
1613
|
-
routes?: CardRouteMap;
|
|
1614
|
-
/** Initial stack state */
|
|
1615
|
-
initial?: CardSpec[];
|
|
1616
|
-
/** Callback when stack changes */
|
|
1617
|
-
onChange?: (stack: CardSpec[]) => void;
|
|
1618
|
-
/** Z-index base for the stack (default: 100) */
|
|
1619
|
-
zIndexBase?: number;
|
|
1620
|
-
/**
|
|
1621
|
-
* Layout mode for visible cards:
|
|
1622
|
-
* - 'cascade': Cards peek behind each other with offset (default)
|
|
1623
|
-
* - 'side-by-side': Second card pushed fully left, creating master-detail layout
|
|
1624
|
-
*/
|
|
1625
|
-
layoutMode?: LayoutMode;
|
|
1626
|
-
/** Default peek offset in pixels (default: 24) */
|
|
1627
|
-
defaultPeekOffset?: number;
|
|
1628
|
-
/** Default card width (default: 480) */
|
|
1629
|
-
defaultWidth?: string | number;
|
|
1630
|
-
};
|
|
1631
|
-
type AnimationConfig = {
|
|
1632
|
-
/** Entry/exit duration in seconds (default: 0.2) */
|
|
1633
|
-
duration?: number;
|
|
1634
|
-
/** Entry easing (default: [0.32, 0.72, 0, 1]) */
|
|
1635
|
-
enterEase?: number[];
|
|
1636
|
-
/** Exit easing (default: [0.4, 0, 0.6, 1]) */
|
|
1637
|
-
exitEase?: number[];
|
|
1638
|
-
};
|
|
1639
|
-
type GestureConfig = {
|
|
1640
|
-
/** Enable swipe-right-to-pop gesture (default: true on mobile) */
|
|
1641
|
-
swipeToPop?: boolean;
|
|
1642
|
-
/** Minimum swipe distance to trigger pop (default: 35% of viewport width, min 120px) */
|
|
1643
|
-
swipeThreshold?: number;
|
|
1644
|
-
/** Velocity threshold for quick swipe (default: 600px/s, requires minimum distance) */
|
|
1645
|
-
velocityThreshold?: number;
|
|
1646
|
-
/** Auto-dismiss X position while dragging (default: 80% of viewport width) */
|
|
1647
|
-
autoDismissThreshold?: number;
|
|
1648
|
-
};
|
|
1649
|
-
type PeekGestureConfig = {
|
|
1650
|
-
/** Enable peek zone interactions (default: true) */
|
|
1651
|
-
enabled?: boolean;
|
|
1652
|
-
/** Enable drag-to-dismiss on peek zone (default: true) */
|
|
1653
|
-
dragToDismiss?: boolean;
|
|
1654
|
-
/** Hover expansion in pixels (default: 48) */
|
|
1655
|
-
hoverExpansion?: number;
|
|
1656
|
-
/** Minimum drag distance to trigger dismiss (default: 80px) */
|
|
1657
|
-
dragThreshold?: number;
|
|
1658
|
-
/** Velocity threshold for quick drag dismiss (default: 400px/s) */
|
|
1659
|
-
dragVelocityThreshold?: number;
|
|
1660
|
-
};
|
|
1661
|
-
type MobileConfig = {
|
|
1662
|
-
/** Breakpoint for mobile behavior in pixels (default: 768) */
|
|
1663
|
-
breakpoint?: number;
|
|
1664
|
-
/** Force full-screen cards on mobile (default: true) */
|
|
1665
|
-
fullScreen?: boolean;
|
|
1666
|
-
/** Gesture configuration for mobile */
|
|
1667
|
-
gestures?: GestureConfig;
|
|
1668
|
-
};
|
|
1669
|
-
type CardStackViewportProps = {
|
|
1670
|
-
/** Show backdrop behind first card (default: true). Pass object to configure blur/styling. */
|
|
1671
|
-
backdrop?: boolean | BackdropConfig;
|
|
1672
|
-
/** Custom backdrop element */
|
|
1673
|
-
renderBackdrop?: () => React.ReactNode;
|
|
1674
|
-
/** Custom header renderer per card */
|
|
1675
|
-
renderHeader?: (card: CardSpec, api: CardStackApi) => React.ReactNode;
|
|
1676
|
-
/** Custom empty state when stack is empty */
|
|
1677
|
-
renderEmpty?: () => React.ReactNode;
|
|
1678
|
-
/** Number of previous cards to render for peek effect (default: 2) */
|
|
1679
|
-
peekDepth?: number;
|
|
1680
|
-
/** Animation configuration */
|
|
1681
|
-
animation?: AnimationConfig;
|
|
1682
|
-
/** Mobile-specific configuration */
|
|
1683
|
-
mobile?: MobileConfig;
|
|
1684
|
-
/** Peek zone gesture configuration */
|
|
1685
|
-
peekGestures?: PeekGestureConfig;
|
|
1686
|
-
/** Additional class for viewport container */
|
|
1687
|
-
className?: string;
|
|
1688
|
-
};
|
|
1689
|
-
type StackState = {
|
|
1690
|
-
cards: CardSpec[];
|
|
1691
|
-
};
|
|
1692
|
-
type StackAction = {
|
|
1693
|
-
type: 'PUSH';
|
|
1694
|
-
card: CardSpec;
|
|
1695
|
-
} | {
|
|
1696
|
-
type: 'POP';
|
|
1697
|
-
count: number;
|
|
1698
|
-
} | {
|
|
1699
|
-
type: 'POP_TO';
|
|
1700
|
-
id: CardId;
|
|
1701
|
-
} | {
|
|
1702
|
-
type: 'REPLACE_TOP';
|
|
1703
|
-
card: CardSpec;
|
|
1704
|
-
} | {
|
|
1705
|
-
type: 'RESET';
|
|
1706
|
-
cards: CardSpec[];
|
|
1707
|
-
} | {
|
|
1708
|
-
type: 'CLEAR';
|
|
1709
|
-
} | {
|
|
1710
|
-
type: 'UPDATE_PROPS';
|
|
1711
|
-
id: CardId;
|
|
1712
|
-
patch: unknown;
|
|
1713
|
-
} | {
|
|
1714
|
-
type: 'SET_TITLE';
|
|
1715
|
-
id: CardId;
|
|
1716
|
-
title?: string;
|
|
1717
|
-
} | {
|
|
1718
|
-
type: 'SET_DESCRIPTION';
|
|
1719
|
-
id: CardId;
|
|
1720
|
-
description?: string;
|
|
1721
|
-
} | {
|
|
1722
|
-
type: 'SET_WIDTH';
|
|
1723
|
-
id: CardId;
|
|
1724
|
-
width?: string | number;
|
|
1725
|
-
} | {
|
|
1726
|
-
type: 'SET_DISMISSABLE';
|
|
1727
|
-
id: CardId;
|
|
1728
|
-
dismissable: boolean;
|
|
1729
|
-
} | {
|
|
1730
|
-
type: 'DISMISS';
|
|
1731
|
-
id: CardId;
|
|
1732
|
-
cascade: boolean;
|
|
1733
|
-
} | {
|
|
1734
|
-
type: 'INSERT_AT';
|
|
1735
|
-
index: number;
|
|
1736
|
-
card: CardSpec;
|
|
1737
|
-
};
|
|
1738
|
-
type StackContextValue = {
|
|
1739
|
-
state: StackState;
|
|
1740
|
-
api: CardStackApi;
|
|
1741
|
-
config: {
|
|
1742
|
-
routes: CardRouteMap;
|
|
1743
|
-
zIndexBase: number;
|
|
1744
|
-
layoutMode: LayoutMode;
|
|
1745
|
-
defaultPeekOffset: number;
|
|
1746
|
-
defaultWidth: string | number;
|
|
248
|
+
readonly exit: {
|
|
249
|
+
readonly opacity: 0;
|
|
250
|
+
readonly y: 8;
|
|
1747
251
|
};
|
|
1748
|
-
};
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
/** Hook to get current layout mode */
|
|
1754
|
-
declare function useStackLayoutMode(): LayoutMode;
|
|
1755
|
-
/** Hook to get stack cards (triggers re-render on change) */
|
|
1756
|
-
declare function useStackCards(): CardSpec[];
|
|
1757
|
-
/** Hook to check if a card is the top card */
|
|
1758
|
-
declare function useIsTopCard(id: CardId): boolean;
|
|
1759
|
-
/** Hook to get card index in stack */
|
|
1760
|
-
declare function useCardIndex(id: CardId): number;
|
|
1761
|
-
/** Create injected card props for a specific card */
|
|
1762
|
-
declare function useCardInjectedProps(id: CardId): {
|
|
1763
|
-
card: {
|
|
1764
|
-
id: string;
|
|
1765
|
-
push: <P>(card: Omit<CardSpec<P>, "id"> & {
|
|
1766
|
-
id?: CardId;
|
|
1767
|
-
}, options?: CardPushOptions) => CardId;
|
|
1768
|
-
close: () => void;
|
|
1769
|
-
setTitle: (title?: string) => void;
|
|
1770
|
-
setDescription: (description?: string) => void;
|
|
1771
|
-
setWidth: (width?: string | number) => void;
|
|
1772
|
-
setDismissable: (dismissable: boolean) => void;
|
|
1773
|
-
updateProps: <P>(patch: Partial<P> | ((prev: P) => P)) => void;
|
|
252
|
+
};
|
|
253
|
+
/** Simple fade - for overlays */
|
|
254
|
+
readonly fade: {
|
|
255
|
+
readonly initial: {
|
|
256
|
+
readonly opacity: 0;
|
|
1774
257
|
};
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
* Hook to check if the card's enter animation is complete.
|
|
1778
|
-
* Use this to defer data fetching until after the slide-in animation.
|
|
1779
|
-
*
|
|
1780
|
-
* @example
|
|
1781
|
-
* ```tsx
|
|
1782
|
-
* function MyCard() {
|
|
1783
|
-
* const { isReady } = useCardReady();
|
|
1784
|
-
*
|
|
1785
|
-
* // Data query that only runs after animation completes
|
|
1786
|
-
* const { data, isLoading } = useQuery({
|
|
1787
|
-
* queryKey: ['myData'],
|
|
1788
|
-
* queryFn: fetchData,
|
|
1789
|
-
* enabled: isReady, // Don't fetch until animation done
|
|
1790
|
-
* });
|
|
1791
|
-
*
|
|
1792
|
-
* return (
|
|
1793
|
-
* <Select disabled={isLoading || !isReady}>
|
|
1794
|
-
* {data?.map(item => <SelectItem key={item.id}>{item.name}</SelectItem>)}
|
|
1795
|
-
* </Select>
|
|
1796
|
-
* );
|
|
1797
|
-
* }
|
|
1798
|
-
* ```
|
|
1799
|
-
*/
|
|
1800
|
-
declare function useCardReady(): {
|
|
1801
|
-
isReady: boolean;
|
|
1802
|
-
};
|
|
1803
|
-
|
|
1804
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className, }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1805
|
-
|
|
1806
|
-
type StackBackdropProps = {
|
|
1807
|
-
/** Additional class names */
|
|
1808
|
-
className?: string;
|
|
1809
|
-
/** Click handler (typically closes the stack) */
|
|
1810
|
-
onClick?: () => void;
|
|
1811
|
-
/** Backdrop configuration (blur, custom className) */
|
|
1812
|
-
config?: BackdropConfig;
|
|
1813
|
-
};
|
|
1814
|
-
declare function StackBackdrop({ className, onClick, config: backdropConfig }: StackBackdropProps): react_jsx_runtime.JSX.Element;
|
|
1815
|
-
|
|
1816
|
-
type StackHeaderProps = {
|
|
1817
|
-
/** The card spec */
|
|
1818
|
-
card: CardSpec;
|
|
1819
|
-
/** Close handler */
|
|
1820
|
-
onClose: () => void;
|
|
1821
|
-
/** Additional class names */
|
|
1822
|
-
className?: string;
|
|
1823
|
-
/** Custom title renderer */
|
|
1824
|
-
renderTitle?: (card: CardSpec) => React$1.ReactNode;
|
|
1825
|
-
};
|
|
1826
|
-
declare function StackHeader({ card, onClose, className, renderTitle }: StackHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1827
|
-
type StackHeaderSlotProps = {
|
|
1828
|
-
/** Additional class names */
|
|
1829
|
-
className?: string;
|
|
1830
|
-
children: React$1.ReactNode;
|
|
1831
|
-
};
|
|
1832
|
-
/** Slot for custom header content */
|
|
1833
|
-
declare function StackHeaderSlot({ className, children }: StackHeaderSlotProps): react_jsx_runtime.JSX.Element;
|
|
1834
|
-
|
|
1835
|
-
type StackCardProps = {
|
|
1836
|
-
/** The card specification */
|
|
1837
|
-
card: CardSpec;
|
|
1838
|
-
/** Index of this card in the stack */
|
|
1839
|
-
index: number;
|
|
1840
|
-
/** Total number of cards in the stack */
|
|
1841
|
-
totalCards: number;
|
|
1842
|
-
/** Width of the top card (for side-by-side calculations) */
|
|
1843
|
-
topCardWidth: number;
|
|
1844
|
-
/** Animation configuration */
|
|
1845
|
-
animation?: AnimationConfig;
|
|
1846
|
-
/** Whether this is a mobile viewport */
|
|
1847
|
-
isMobile?: boolean;
|
|
1848
|
-
/** Gesture configuration for mobile */
|
|
1849
|
-
gestureConfig?: GestureConfig;
|
|
1850
|
-
/** Peek gesture configuration */
|
|
1851
|
-
peekGestureConfig?: PeekGestureConfig;
|
|
1852
|
-
/** Custom header renderer */
|
|
1853
|
-
renderHeader?: (card: CardSpec, api: CardStackApi) => React$1.ReactNode;
|
|
1854
|
-
/** Compression ratio for responsive offset (1 = full, 0 = collapsed) */
|
|
1855
|
-
compressionRatio?: number;
|
|
1856
|
-
/** Adjusted peek offset after compression */
|
|
1857
|
-
adjustedPeekOffset?: number;
|
|
1858
|
-
/** Drag state from gesture hook (for top card swipe-to-dismiss) */
|
|
1859
|
-
dragX?: number;
|
|
1860
|
-
/** Gesture bind from @use-gesture/react */
|
|
1861
|
-
gestureBind?: ReturnType<typeof _use_gesture_react.useDrag>;
|
|
1862
|
-
/** Whether this card's peek zone is hovered (viewport-coordinated) */
|
|
1863
|
-
isPeekHovered?: boolean;
|
|
1864
|
-
/** Callback when peek hover starts */
|
|
1865
|
-
onPeekHoverStart?: (cardIndex: number) => void;
|
|
1866
|
-
/** Callback when peek hover ends */
|
|
1867
|
-
onPeekHoverEnd?: (cardIndex: number) => void;
|
|
1868
|
-
/** Peek drag offset applied to this card (when cards above are being dragged via peek zone) */
|
|
1869
|
-
peekDragOffset?: number;
|
|
1870
|
-
/** Callback when peek drag starts on this card's peek zone */
|
|
1871
|
-
onPeekDragStart?: (cardIndex: number) => void;
|
|
1872
|
-
/** Callback during peek drag on this card's peek zone */
|
|
1873
|
-
onPeekDrag?: (cardIndex: number, offset: number) => void;
|
|
1874
|
-
/** Callback when peek drag ends on this card's peek zone */
|
|
1875
|
-
onPeekDragEnd?: (cardIndex: number, shouldDismiss: boolean) => void;
|
|
1876
|
-
/** Whether this is the last card (for exit animation with fade) */
|
|
1877
|
-
isLastCard?: boolean;
|
|
1878
|
-
/** Additional class name for the card */
|
|
1879
|
-
className?: string;
|
|
1880
|
-
};
|
|
1881
|
-
declare function StackCardInner({ card, index, totalCards, topCardWidth, animation, isMobile, renderHeader, peekGestureConfig, compressionRatio, adjustedPeekOffset, dragX, gestureBind, isPeekHovered, onPeekHoverStart, onPeekHoverEnd, peekDragOffset, onPeekDragStart, onPeekDrag, onPeekDragEnd, isLastCard, className, }: StackCardProps): react_jsx_runtime.JSX.Element;
|
|
1882
|
-
declare const StackCard: React$1.MemoExoticComponent<typeof StackCardInner>;
|
|
1883
|
-
|
|
1884
|
-
interface DeferredCardContentProps {
|
|
1885
|
-
children: React.ReactNode;
|
|
1886
|
-
/** Custom placeholder while waiting for animation to complete */
|
|
1887
|
-
placeholder?: React.ReactNode;
|
|
1888
|
-
/** Delay in ms before showing content (default: 220, slightly after 200ms animation) */
|
|
1889
|
-
delay?: number;
|
|
1890
|
-
/** Whether to show content immediately (useful for edit mode where data is cached) */
|
|
1891
|
-
immediate?: boolean;
|
|
1892
|
-
/**
|
|
1893
|
-
* Priority level for scheduling content render:
|
|
1894
|
-
* - 'high': Uses half the delay for faster content display
|
|
1895
|
-
* - 'normal': Standard delay with rAF (default)
|
|
1896
|
-
* - 'low': Uses requestIdleCallback when available for non-critical content
|
|
1897
|
-
*/
|
|
1898
|
-
priority?: 'high' | 'normal' | 'low';
|
|
1899
|
-
/** Callback when content becomes ready to render */
|
|
1900
|
-
onReady?: () => void;
|
|
1901
|
-
}
|
|
1902
|
-
/**
|
|
1903
|
-
* Defers rendering of heavy content until after Stack card animation completes.
|
|
1904
|
-
* This prevents layout thrashing and dropped frames during the slide-in animation.
|
|
1905
|
-
*
|
|
1906
|
-
* Usage:
|
|
1907
|
-
* ```tsx
|
|
1908
|
-
* <DeferredCardContent placeholder={<MySkeleton />}>
|
|
1909
|
-
* <HeavyContent />
|
|
1910
|
-
* </DeferredCardContent>
|
|
1911
|
-
* ```
|
|
1912
|
-
*
|
|
1913
|
-
* With priority:
|
|
1914
|
-
* ```tsx
|
|
1915
|
-
* <DeferredCardContent priority="low" placeholder={<MySkeleton />}>
|
|
1916
|
-
* <NonCriticalContent />
|
|
1917
|
-
* </DeferredCardContent>
|
|
1918
|
-
* ```
|
|
1919
|
-
*/
|
|
1920
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady, }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element;
|
|
1921
|
-
|
|
1922
|
-
type UseStackResponsiveOptions = MobileConfig;
|
|
1923
|
-
type UseStackResponsiveResult = {
|
|
1924
|
-
/** Whether the current viewport is mobile-sized */
|
|
1925
|
-
isMobile: boolean;
|
|
1926
|
-
/** Current viewport width */
|
|
1927
|
-
viewportWidth: number;
|
|
1928
|
-
/** The breakpoint being used */
|
|
1929
|
-
breakpoint: number;
|
|
1930
|
-
};
|
|
1931
|
-
/**
|
|
1932
|
-
* Hook to detect mobile viewport and provide responsive information.
|
|
1933
|
-
*/
|
|
1934
|
-
declare function useStackResponsive(options?: UseStackResponsiveOptions): UseStackResponsiveResult;
|
|
1935
|
-
/**
|
|
1936
|
-
* Simple hook to just get isMobile boolean.
|
|
1937
|
-
*/
|
|
1938
|
-
declare function useIsMobile(breakpoint?: number): boolean;
|
|
1939
|
-
|
|
1940
|
-
type UseStackGesturesOptions = GestureConfig & {
|
|
1941
|
-
/** Whether gestures are enabled */
|
|
1942
|
-
enabled?: boolean;
|
|
1943
|
-
/** Callback when swipe completes and should dismiss */
|
|
1944
|
-
onDismiss: () => void;
|
|
1945
|
-
};
|
|
1946
|
-
type UseStackGesturesResult = {
|
|
1947
|
-
/** Current drag X offset */
|
|
1948
|
-
dragX: number;
|
|
1949
|
-
/** Whether currently dragging */
|
|
1950
|
-
isDragging: boolean;
|
|
1951
|
-
/** Bind function to attach to the draggable element */
|
|
1952
|
-
bind: ReturnType<typeof useDrag>;
|
|
1953
|
-
};
|
|
1954
|
-
/**
|
|
1955
|
-
* Hook for swipe-to-dismiss gesture on stack cards using @use-gesture/react.
|
|
1956
|
-
*
|
|
1957
|
-
* Features:
|
|
1958
|
-
* - Only allows swiping to the right (positive X direction)
|
|
1959
|
-
* - Ignores touches near left edge (avoids iOS Safari back gesture conflict)
|
|
1960
|
-
* - Requires horizontal intent before activating (won't interfere with scroll)
|
|
1961
|
-
* - Dismisses on release after distance or velocity threshold
|
|
1962
|
-
* - Auto-dismisses near the end of the drag (configurable)
|
|
1963
|
-
* - 1:1 finger tracking for responsive feel
|
|
1964
|
-
*/
|
|
1965
|
-
declare function useStackGestures(options: UseStackGesturesOptions): UseStackGesturesResult;
|
|
1966
|
-
|
|
1967
|
-
type UsePeekGesturesOptions = PeekGestureConfig & {
|
|
1968
|
-
/** Card index in the stack */
|
|
1969
|
-
cardIndex: number;
|
|
1970
|
-
/** Total cards in stack */
|
|
1971
|
-
totalCards: number;
|
|
1972
|
-
/** Callback when click on peek zone (dismiss cards above) */
|
|
1973
|
-
onPeekClick: () => void;
|
|
1974
|
-
/** Callback when drag completes dismiss threshold */
|
|
1975
|
-
onPeekDragDismiss: () => void;
|
|
1976
|
-
/** Callback during drag to update multi-card offset */
|
|
1977
|
-
onPeekDrag?: (dragOffset: number) => void;
|
|
1978
|
-
/** Callback when drag ends without dismiss */
|
|
1979
|
-
onPeekDragCancel?: () => void;
|
|
1980
|
-
};
|
|
1981
|
-
type UsePeekGesturesResult = {
|
|
1982
|
-
/** Whether peek zone is hovered */
|
|
1983
|
-
isHovered: boolean;
|
|
1984
|
-
/** Whether actively dragging */
|
|
1985
|
-
isDragging: boolean;
|
|
1986
|
-
/** Current drag offset (positive = dragging right/dismiss direction) */
|
|
1987
|
-
dragOffset: number;
|
|
1988
|
-
/** Hover expansion amount in px */
|
|
1989
|
-
hoverExpansion: number;
|
|
1990
|
-
/** Handlers for the peek zone element */
|
|
1991
|
-
handlers: {
|
|
1992
|
-
onMouseEnter: () => void;
|
|
1993
|
-
onMouseLeave: () => void;
|
|
1994
|
-
onClick: (e: React.MouseEvent) => void;
|
|
1995
|
-
onPointerDown: (e: React.PointerEvent) => void;
|
|
1996
|
-
onPointerMove: (e: React.PointerEvent) => void;
|
|
1997
|
-
onPointerUp: (e: React.PointerEvent) => void;
|
|
1998
|
-
onPointerCancel: (e: React.PointerEvent) => void;
|
|
258
|
+
readonly animate: {
|
|
259
|
+
readonly opacity: 1;
|
|
1999
260
|
};
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
* Hook for peek zone interactions: hover expansion, click-to-dismiss, drag-to-dismiss.
|
|
2003
|
-
* Works on both mobile and desktop.
|
|
2004
|
-
*/
|
|
2005
|
-
declare function usePeekGestures(options: UsePeekGesturesOptions): UsePeekGesturesResult;
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* Calculate the X offset for a card in cascade mode.
|
|
2009
|
-
* Cards below the top are pushed left by (cardsAbove * peekOffset).
|
|
2010
|
-
*/
|
|
2011
|
-
declare function getCascadeOffset(cardIndex: number, totalCards: number, cards: CardSpec[], defaultPeekOffset: number): number;
|
|
2012
|
-
/**
|
|
2013
|
-
* Calculate the X offset for a card in side-by-side mode.
|
|
2014
|
-
* - Top card: no offset
|
|
2015
|
-
* - Second card: pushed by top card's width (fully visible side-by-side)
|
|
2016
|
-
* - Deeper cards: cascade further with peekOffset increments
|
|
2017
|
-
*/
|
|
2018
|
-
declare function getSideBySideOffset(cardIndex: number, totalCards: number, topCardWidth: number, defaultPeekOffset: number): number;
|
|
2019
|
-
/**
|
|
2020
|
-
* Get the offset for a card based on layout mode.
|
|
2021
|
-
*/
|
|
2022
|
-
declare function getCardOffset(cardIndex: number, totalCards: number, cards: CardSpec[], layoutMode: LayoutMode, topCardWidth: number, defaultPeekOffset: number): number;
|
|
2023
|
-
type ResponsiveOffsetConfig = {
|
|
2024
|
-
viewportWidth: number;
|
|
2025
|
-
topCardWidth: number;
|
|
2026
|
-
secondCardWidth: number;
|
|
2027
|
-
totalCards: number;
|
|
2028
|
-
defaultPeekOffset: number;
|
|
2029
|
-
layoutMode: LayoutMode;
|
|
2030
|
-
};
|
|
2031
|
-
type ResponsiveOffsetResult = {
|
|
2032
|
-
/** Compression ratio (1 = full, 0 = fully compressed) */
|
|
2033
|
-
compressionRatio: number;
|
|
2034
|
-
/** Whether cards should collapse to mobile/single-card mode */
|
|
2035
|
-
shouldCollapse: boolean;
|
|
2036
|
-
/** Adjusted peek offset after compression */
|
|
2037
|
-
adjustedPeekOffset: number;
|
|
2038
|
-
/** Available space for peek offsets */
|
|
2039
|
-
availableSpace: number;
|
|
2040
|
-
};
|
|
2041
|
-
/**
|
|
2042
|
-
* Calculate responsive offset compression based on viewport width.
|
|
2043
|
-
* As viewport shrinks, offsets compress until hitting mobile breakpoint.
|
|
2044
|
-
*
|
|
2045
|
-
* The algorithm:
|
|
2046
|
-
* 1. Calculate space needed: topCardWidth + secondCardWidth (for side-by-side)
|
|
2047
|
-
* 2. Calculate available space: viewportWidth - padding
|
|
2048
|
-
* 3. If not enough space, compress the second card's offset
|
|
2049
|
-
* 4. When compression reaches threshold, trigger collapse to mobile
|
|
2050
|
-
*/
|
|
2051
|
-
declare function calculateResponsiveOffset(config: ResponsiveOffsetConfig): ResponsiveOffsetResult;
|
|
2052
|
-
/**
|
|
2053
|
-
* Get responsive card offset that compresses based on viewport.
|
|
2054
|
-
* Ensures every card has at least MIN_VISIBLE_PEEK visible past cards above it.
|
|
2055
|
-
*/
|
|
2056
|
-
declare function getResponsiveCardOffset(cardIndex: number, totalCards: number, cards: CardSpec[], layoutMode: LayoutMode, topCardWidth: number, adjustedPeekOffset: number, compressionRatio: number, defaultWidth?: number): number;
|
|
2057
|
-
/**
|
|
2058
|
-
* Normalize width to CSS value.
|
|
2059
|
-
*/
|
|
2060
|
-
declare function normalizeWidth(width: string | number | undefined, defaultWidth: string | number): string;
|
|
2061
|
-
/**
|
|
2062
|
-
* Parse width to pixels (for offset calculations).
|
|
2063
|
-
* Returns undefined if width cannot be parsed to pixels.
|
|
2064
|
-
*/
|
|
2065
|
-
declare function parseWidthToPixels(width: string | number | undefined): number | undefined;
|
|
2066
|
-
/**
|
|
2067
|
-
* Calculate z-index for a card based on its position in the stack.
|
|
2068
|
-
*/
|
|
2069
|
-
declare function getCardZIndex(cardIndex: number, zIndexBase: number): number;
|
|
2070
|
-
/**
|
|
2071
|
-
* Determine which cards should be rendered based on peekDepth.
|
|
2072
|
-
* Returns indices of cards that should be rendered (from bottom to top).
|
|
2073
|
-
*/
|
|
2074
|
-
declare function getVisibleCardIndices(totalCards: number, peekDepth: number): number[];
|
|
2075
|
-
/**
|
|
2076
|
-
* Check if a card should be rendered based on peekDepth.
|
|
2077
|
-
*/
|
|
2078
|
-
declare function isCardVisible(cardIndex: number, totalCards: number, peekDepth: number): boolean;
|
|
2079
|
-
|
|
2080
|
-
declare const DEFAULT_ANIMATION_CONFIG: Required<AnimationConfig>;
|
|
2081
|
-
/**
|
|
2082
|
-
* Create motion variants for card enter/exit animations.
|
|
2083
|
-
* Uses transform-only properties for GPU compositing.
|
|
2084
|
-
*/
|
|
2085
|
-
declare function createCardVariants(config?: AnimationConfig): Variants;
|
|
2086
|
-
/**
|
|
2087
|
-
* Create transition for offset animations (when cards above change).
|
|
2088
|
-
* Uses spring for playful slide-back feel when cards are dismissed.
|
|
2089
|
-
*/
|
|
2090
|
-
declare function createOffsetTransition(_config?: AnimationConfig): Transition;
|
|
2091
|
-
declare const backdropVariants: Variants;
|
|
2092
|
-
/**
|
|
2093
|
-
* Create spring config for snap-back animation after cancelled swipe.
|
|
2094
|
-
*/
|
|
2095
|
-
declare const snapBackSpring: Transition;
|
|
2096
|
-
/**
|
|
2097
|
-
* Create transition for swipe-to-dismiss.
|
|
2098
|
-
*/
|
|
2099
|
-
declare const swipeDismissTransition: Transition;
|
|
2100
|
-
/** Spring config for peek hover expansion - playful and bouncy */
|
|
2101
|
-
declare const peekHoverSpring: Transition;
|
|
2102
|
-
/** Spring config for peek drag - responsive during interaction */
|
|
2103
|
-
declare const peekDragSpring: Transition;
|
|
2104
|
-
/** Spring config for multi-card slide during peek drag */
|
|
2105
|
-
declare const peekSlideSpring: Transition;
|
|
2106
|
-
/**
|
|
2107
|
-
* Create variants with reduced motion support.
|
|
2108
|
-
* Instant transitions when user prefers reduced motion.
|
|
2109
|
-
*/
|
|
2110
|
-
declare function createReducedMotionVariants(): Variants;
|
|
2111
|
-
declare const reducedMotionBackdropVariants: Variants;
|
|
2112
|
-
|
|
2113
|
-
interface ToastErrorProps {
|
|
2114
|
-
message: string;
|
|
2115
|
-
description?: string;
|
|
2116
|
-
action?: {
|
|
2117
|
-
label: string;
|
|
2118
|
-
onClick: () => void;
|
|
261
|
+
readonly exit: {
|
|
262
|
+
readonly opacity: 0;
|
|
2119
263
|
};
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
action?: {
|
|
2128
|
-
label: string;
|
|
2129
|
-
onClick: () => void;
|
|
264
|
+
};
|
|
265
|
+
/** Dock/floating element - scales from bottom */
|
|
266
|
+
readonly floatUp: {
|
|
267
|
+
readonly initial: {
|
|
268
|
+
readonly opacity: 0;
|
|
269
|
+
readonly y: 8;
|
|
270
|
+
readonly scale: 0.98;
|
|
2130
271
|
};
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
interface ToastSuccessProps {
|
|
2136
|
-
message: string;
|
|
2137
|
-
description?: string;
|
|
2138
|
-
action?: {
|
|
2139
|
-
label: string;
|
|
2140
|
-
onClick: () => void;
|
|
272
|
+
readonly animate: {
|
|
273
|
+
readonly opacity: 1;
|
|
274
|
+
readonly y: 0;
|
|
275
|
+
readonly scale: 1;
|
|
2141
276
|
};
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
interface ToastWarningProps {
|
|
2147
|
-
message: string;
|
|
2148
|
-
description?: string;
|
|
2149
|
-
action?: {
|
|
2150
|
-
label: string;
|
|
2151
|
-
onClick: () => void;
|
|
277
|
+
readonly exit: {
|
|
278
|
+
readonly opacity: 0;
|
|
279
|
+
readonly y: 8;
|
|
280
|
+
readonly scale: 0.98;
|
|
2152
281
|
};
|
|
2153
|
-
|
|
2154
|
-
}
|
|
2155
|
-
declare function showWarningToast(props: ToastWarningProps): string | number;
|
|
2156
|
-
|
|
2157
|
-
declare const toast: {
|
|
2158
|
-
error: typeof showErrorToast;
|
|
2159
|
-
info: typeof showInfoToast;
|
|
2160
|
-
success: typeof showSuccessToast;
|
|
2161
|
-
warning: typeof showWarningToast;
|
|
2162
|
-
};
|
|
2163
|
-
|
|
2164
|
-
/** A single edge in the org chart — represents a person and their reporting relationship */
|
|
2165
|
-
interface OrgChartEdge {
|
|
2166
|
-
/** Person ID (used as the React Flow node id) */
|
|
2167
|
-
id: string;
|
|
2168
|
-
/** ID of the person this edge reports to (null = root) */
|
|
2169
|
-
parentId: string | null;
|
|
2170
|
-
displayName: string | null;
|
|
2171
|
-
avatarUrl: string | null;
|
|
2172
|
-
positionTitle: string | null;
|
|
2173
|
-
}
|
|
2174
|
-
/** Data carried by each React Flow node */
|
|
2175
|
-
interface OrgChartNodeData extends OrgChartEdge {
|
|
2176
|
-
childCount: number;
|
|
2177
|
-
isRoot: boolean;
|
|
2178
|
-
[key: string]: unknown;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
|
-
interface OrgChartPropsBase {
|
|
2182
|
-
/** Additional classes for the chart container (e.g. `"h-full"` to fill parent). Default height: 600px. */
|
|
2183
|
-
className?: string;
|
|
2184
|
-
/** Whether data is still loading */
|
|
2185
|
-
isLoading?: boolean;
|
|
2186
|
-
/** Whether the current user can manage the chart (drag, edit, remove) */
|
|
2187
|
-
editable?: boolean;
|
|
2188
|
-
/** Called when a node is dragged onto a new parent. In uncontrolled mode, the component updates visually first — if this throws, it reverts. */
|
|
2189
|
-
onReparent?: (childId: string, newParentId: string, preserve: {
|
|
2190
|
-
positionTitle?: string | null;
|
|
2191
|
-
}) => void | Promise<void>;
|
|
2192
|
-
/** Called when the "Add to Chart" button is clicked (empty state) */
|
|
2193
|
-
onAddToChart?: () => void;
|
|
2194
|
-
/** Called when "Edit Position" is selected from the node menu */
|
|
2195
|
-
onEditNode?: (nodeData: OrgChartNodeData) => void;
|
|
2196
|
-
/** Called when "Remove from Chart" is selected from the node menu */
|
|
2197
|
-
onRemoveNode?: (nodeData: OrgChartNodeData) => void;
|
|
2198
|
-
/** Toast handler for reparent success/error messages. If not provided, no toasts are shown. */
|
|
2199
|
-
onReparentSuccess?: (childName: string, parentName: string) => void;
|
|
2200
|
-
onReparentError?: (message: string) => void;
|
|
2201
|
-
}
|
|
2202
|
-
/** Controlled mode — consumer owns edge state */
|
|
2203
|
-
interface OrgChartControlledProps extends OrgChartPropsBase {
|
|
2204
|
-
edges: OrgChartEdge[];
|
|
2205
|
-
defaultEdges?: never;
|
|
2206
|
-
}
|
|
2207
|
-
/** Uncontrolled mode — component manages edge state internally with optimistic reparent */
|
|
2208
|
-
interface OrgChartUncontrolledProps extends OrgChartPropsBase {
|
|
2209
|
-
edges?: never;
|
|
2210
|
-
defaultEdges: OrgChartEdge[];
|
|
2211
|
-
}
|
|
2212
|
-
type OrgChartProps = OrgChartControlledProps | OrgChartUncontrolledProps;
|
|
2213
|
-
declare function OrgChart(props: OrgChartProps): react_jsx_runtime.JSX.Element;
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* Domain types for the Storage UI kit.
|
|
2217
|
-
*
|
|
2218
|
-
* These mirror the real Storage GraphQL schema so wiring a data layer
|
|
2219
|
-
* (Phase 2) is a matter of mapping query results onto these shapes — no
|
|
2220
|
-
* component prop changes required.
|
|
2221
|
-
*/
|
|
2222
|
-
type BucketVisibility = 'public' | 'private' | 'temp';
|
|
2223
|
-
interface StorageBucket {
|
|
2224
|
-
id: string;
|
|
2225
|
-
key: string;
|
|
2226
|
-
visibility: BucketVisibility;
|
|
2227
|
-
isPublic: boolean;
|
|
2228
|
-
allowCustomKeys: boolean;
|
|
2229
|
-
allowedMimeTypes?: string[];
|
|
2230
|
-
maxFileSize?: number | null;
|
|
2231
|
-
allowedOrigins?: string[];
|
|
2232
|
-
description?: string | null;
|
|
2233
|
-
provisioned?: boolean;
|
|
2234
|
-
objectCount?: number | null;
|
|
2235
|
-
createdAt?: string;
|
|
2236
|
-
}
|
|
2237
|
-
type StorageObjectStatus = 'requested' | 'uploaded' | 'processed';
|
|
2238
|
-
interface StorageObject {
|
|
2239
|
-
id: string;
|
|
2240
|
-
bucketId: string;
|
|
2241
|
-
key: string;
|
|
2242
|
-
filename: string | null;
|
|
2243
|
-
mimeType: string;
|
|
2244
|
-
size: number;
|
|
2245
|
-
isPublic: boolean;
|
|
2246
|
-
status?: StorageObjectStatus;
|
|
2247
|
-
createdAt: string;
|
|
2248
|
-
updatedAt?: string;
|
|
2249
|
-
downloadUrl?: string | null;
|
|
2250
|
-
}
|
|
2251
|
-
type UploadStatus = 'queued' | 'uploading' | 'done' | 'error';
|
|
2252
|
-
interface UploadItem {
|
|
2253
|
-
id: string;
|
|
2254
|
-
filename: string;
|
|
2255
|
-
size: number;
|
|
2256
|
-
progress: number;
|
|
2257
|
-
status: UploadStatus;
|
|
2258
|
-
error?: string;
|
|
2259
|
-
}
|
|
2260
|
-
type ObjectSortColumn = 'filename' | 'size' | 'createdAt' | 'mimeType';
|
|
2261
|
-
type ObjectSort = {
|
|
2262
|
-
column: ObjectSortColumn;
|
|
2263
|
-
direction: 'asc' | 'desc';
|
|
282
|
+
};
|
|
2264
283
|
};
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
*
|
|
2269
|
-
* No side effects, no I/O — safe to import anywhere (including non-'use client'
|
|
2270
|
-
* leaf components).
|
|
2271
|
-
*/
|
|
2272
|
-
|
|
2273
|
-
/** Humanize a byte count, e.g. 1536 -> "1.5 KB". */
|
|
2274
|
-
declare function humanizeBytes(bytes: number | null | undefined): string;
|
|
2275
|
-
/** Format an ISO timestamp as a compact, locale date — e.g. "Jun 24, 2026". */
|
|
2276
|
-
declare function formatDate(iso: string | null | undefined): string;
|
|
2277
|
-
/** Format an ISO timestamp with date + time — used in the detail sheet. */
|
|
2278
|
-
declare function formatDateTime(iso: string | null | undefined): string;
|
|
2279
|
-
/**
|
|
2280
|
-
* Short, human-friendly label for a MIME type — e.g.
|
|
2281
|
-
* "image/png" -> "PNG", "application/pdf" -> "PDF",
|
|
2282
|
-
* "application/vnd.openxmlformats-officedocument.wordprocessingml.document" -> "DOCX".
|
|
2283
|
-
*/
|
|
2284
|
-
declare function shortMimeLabel(mimeType: string | null | undefined): string;
|
|
2285
|
-
/** Best display name for an object: filename, falling back to its key. */
|
|
2286
|
-
declare function objectDisplayName(object: Pick<StorageObject, 'filename' | 'key'>): string;
|
|
2287
|
-
/** Best display name for a bucket: its key (buckets have no separate label). */
|
|
2288
|
-
declare function bucketDisplayName(bucket: Pick<StorageBucket, 'key'>): string;
|
|
2289
|
-
|
|
2290
|
-
interface FileTypeIconProps {
|
|
2291
|
-
/** The object's MIME type, e.g. "image/png". */
|
|
2292
|
-
mimeType: string | null | undefined;
|
|
2293
|
-
className?: string;
|
|
2294
|
-
/** Forwarded to the underlying svg as the accessible label, if any. */
|
|
2295
|
-
'aria-label'?: string;
|
|
2296
|
-
}
|
|
2297
|
-
/**
|
|
2298
|
-
* `FileTypeIcon` — a single lucide glyph chosen from a file's MIME type.
|
|
2299
|
-
* Defaults to a muted foreground tint; override via `className`.
|
|
2300
|
-
*/
|
|
2301
|
-
declare function FileTypeIcon({ mimeType, className, ...props }: FileTypeIconProps): react_jsx_runtime.JSX.Element;
|
|
2302
|
-
|
|
2303
|
-
interface VisibilityBadgeProps {
|
|
2304
|
-
visibility: BucketVisibility;
|
|
2305
|
-
size?: BadgeProps['size'];
|
|
2306
|
-
className?: string;
|
|
2307
|
-
/** Hide the leading icon (e.g. in very dense rows). */
|
|
2308
|
-
hideIcon?: boolean;
|
|
2309
|
-
}
|
|
2310
|
-
/**
|
|
2311
|
-
* `VisibilityBadge` — neutral-by-default badge for a bucket's visibility.
|
|
2312
|
-
* Pure render. Public/private stay neutral; `temp` opts into the warning tone
|
|
2313
|
-
* since it signals expiring content.
|
|
2314
|
-
*/
|
|
2315
|
-
declare function VisibilityBadge({ visibility, size, className, hideIcon }: VisibilityBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2316
|
-
interface ObjectStatusBadgeProps {
|
|
2317
|
-
status: StorageObjectStatus;
|
|
2318
|
-
size?: BadgeProps['size'];
|
|
2319
|
-
className?: string;
|
|
2320
|
-
}
|
|
2321
|
-
/**
|
|
2322
|
-
* `ObjectStatusBadge` — lifecycle status for a stored object. Neutral until
|
|
2323
|
-
* `processed`, which opts into the success tone.
|
|
2324
|
-
*/
|
|
2325
|
-
declare function ObjectStatusBadge({ status, size, className }: ObjectStatusBadgeProps): react_jsx_runtime.JSX.Element;
|
|
2326
|
-
|
|
2327
|
-
interface BucketRailProps {
|
|
2328
|
-
buckets: StorageBucket[];
|
|
2329
|
-
selectedBucketId?: string | null;
|
|
2330
|
-
onSelectBucket: (bucketId: string) => void;
|
|
2331
|
-
onNewBucket?: () => void;
|
|
2332
|
-
className?: string;
|
|
2333
|
-
}
|
|
2334
|
-
/**
|
|
2335
|
-
* `BucketRail` — a vertical, scrollable list of buckets with a pinned
|
|
2336
|
-
* "New bucket" action at the bottom. Stateless: selection is controlled via
|
|
2337
|
-
* `selectedBucketId` + `onSelectBucket`.
|
|
2338
|
-
*/
|
|
2339
|
-
declare function BucketRail({ buckets, selectedBucketId, onSelectBucket, onNewBucket, className }: BucketRailProps): react_jsx_runtime.JSX.Element;
|
|
2340
|
-
|
|
2341
|
-
/** A single path segment inside a bucket (folder-style). */
|
|
2342
|
-
interface StorageBreadcrumbSegment {
|
|
2343
|
-
/** Label rendered for the segment. */
|
|
2344
|
-
label: string;
|
|
2345
|
-
/** Full prefix path this segment navigates to (e.g. "images/avatars/"). */
|
|
2346
|
-
path: string;
|
|
2347
|
-
}
|
|
2348
|
-
interface StorageBreadcrumbProps {
|
|
2349
|
-
/** The bucket name shown as the root crumb. */
|
|
2350
|
-
bucketKey: string;
|
|
2351
|
-
/** Folder segments after the bucket root. Empty = just the bucket. */
|
|
2352
|
-
segments?: StorageBreadcrumbSegment[];
|
|
2353
|
-
/**
|
|
2354
|
-
* Navigate callback. `path` is the segment's prefix, or `null` for the
|
|
2355
|
-
* bucket root crumb.
|
|
2356
|
-
*/
|
|
2357
|
-
onNavigate?: (path: string | null) => void;
|
|
2358
|
-
className?: string;
|
|
2359
|
-
}
|
|
2360
|
-
/**
|
|
2361
|
-
* `StorageBreadcrumb` — bucket root plus optional folder segments. Pure render;
|
|
2362
|
-
* the final crumb is the current location and is not a link.
|
|
2363
|
-
*/
|
|
2364
|
-
declare function StorageBreadcrumb({ bucketKey, segments, onNavigate, className }: StorageBreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
2365
|
-
|
|
2366
|
-
interface ObjectToolbarProps {
|
|
2367
|
-
query: string;
|
|
2368
|
-
onQueryChange: (query: string) => void;
|
|
2369
|
-
sort: ObjectSort;
|
|
2370
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2371
|
-
onUpload?: () => void;
|
|
2372
|
-
/** Number of currently selected objects. >0 swaps to the selection bar. */
|
|
2373
|
-
selectedCount?: number;
|
|
2374
|
-
/** Signals intent to delete the selection; the parent binds the ids + confirms. */
|
|
2375
|
-
onBulkDelete?: () => void;
|
|
2376
|
-
/**
|
|
2377
|
-
* Progress for an in-flight bulk delete: while set, the Delete button shows a
|
|
2378
|
-
* "Deleting N/M" count and is disabled; any failed ids surface as a note.
|
|
2379
|
-
*/
|
|
2380
|
-
bulkDeleteProgress?: {
|
|
2381
|
-
done: number;
|
|
2382
|
-
total: number;
|
|
2383
|
-
failed: string[];
|
|
2384
|
-
};
|
|
2385
|
-
onClearSelection?: () => void;
|
|
2386
|
-
className?: string;
|
|
2387
|
-
}
|
|
2388
|
-
/**
|
|
2389
|
-
* `ObjectToolbar` — search + sort + upload. When `selectedCount > 0` it swaps to
|
|
2390
|
-
* a selection action bar (count, destructive Delete, Clear). Fully controlled.
|
|
2391
|
-
*
|
|
2392
|
-
* The destructive Delete here only signals intent via `onBulkDelete`; the parent
|
|
2393
|
-
* is expected to route it through an AlertDialog confirmation.
|
|
2394
|
-
*/
|
|
2395
|
-
declare function ObjectToolbar({ query, onQueryChange, sort, onSortChange, onUpload, selectedCount, onBulkDelete, bulkDeleteProgress, onClearSelection, className, }: ObjectToolbarProps): react_jsx_runtime.JSX.Element;
|
|
2396
|
-
|
|
2397
|
-
interface ObjectTableProps {
|
|
2398
|
-
objects: StorageObject[];
|
|
2399
|
-
/** Controlled selection — set of selected object ids. */
|
|
2400
|
-
selectedIds: string[];
|
|
2401
|
-
onSelectionChange: (selectedIds: string[]) => void;
|
|
2402
|
-
sort: ObjectSort;
|
|
2403
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2404
|
-
/** Row click (outside the checkbox/menu) opens the object. */
|
|
2405
|
-
onOpenObject?: (object: StorageObject) => void;
|
|
2406
|
-
onDownload?: (object: StorageObject) => void;
|
|
2407
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2408
|
-
onRename?: (object: StorageObject) => void;
|
|
2409
|
-
onDelete?: (object: StorageObject) => void;
|
|
2410
|
-
isLoading?: boolean;
|
|
2411
|
-
/** Message shown in the body when there are no objects (and not loading). */
|
|
2412
|
-
emptyLabel?: string;
|
|
2413
|
-
className?: string;
|
|
2414
|
-
}
|
|
2415
|
-
declare const COLUMN_COUNT = 6;
|
|
2416
|
-
/**
|
|
2417
|
-
* `ObjectTable` — the object browser table. Built on the `Table` primitive with
|
|
2418
|
-
* controlled sort + selection. Row rendering is intentionally flat (no internal
|
|
2419
|
-
* sorting/filtering/data-fetching) so a future data layer can wrap it with
|
|
2420
|
-
* virtualization without changing this API.
|
|
2421
|
-
*/
|
|
2422
|
-
declare function ObjectTable({ objects, selectedIds, onSelectionChange, sort, onSortChange, onOpenObject, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, className, }: ObjectTableProps): react_jsx_runtime.JSX.Element;
|
|
2423
|
-
interface ObjectTableSkeletonProps {
|
|
2424
|
-
/** Number of skeleton rows to render. */
|
|
2425
|
-
rows?: number;
|
|
2426
|
-
className?: string;
|
|
2427
|
-
}
|
|
2428
|
-
/**
|
|
2429
|
-
* `ObjectTableSkeleton` — structural loading placeholder matching the object
|
|
2430
|
-
* table's column layout. Pure render.
|
|
2431
|
-
*/
|
|
2432
|
-
declare function ObjectTableSkeleton({ rows, className }: ObjectTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
2433
|
-
|
|
2434
|
-
interface ObjectDetailSheetProps {
|
|
2435
|
-
object: StorageObject | null;
|
|
2436
|
-
open: boolean;
|
|
2437
|
-
onOpenChange: (open: boolean) => void;
|
|
2438
|
-
onDownload?: (object: StorageObject) => void;
|
|
2439
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2440
|
-
/** Commit a rename. The sheet owns only the draft text field. */
|
|
2441
|
-
onRename?: (id: string, newName: string) => void;
|
|
2442
|
-
onDelete?: (id: string) => void;
|
|
2443
|
-
/**
|
|
2444
|
-
* `downloadUrl` is a per-row signed field that the host fetches lazily when the
|
|
2445
|
-
* sheet opens (it is omitted from list queries). Set this true while that fetch
|
|
2446
|
-
* is in flight so an image preview shows a Skeleton instead of a broken `<img>`.
|
|
2447
|
-
* The host should resolve `object.downloadUrl` before or at open.
|
|
2448
|
-
*/
|
|
2449
|
-
isPreviewLoading?: boolean;
|
|
2450
|
-
}
|
|
2451
|
-
/**
|
|
2452
|
-
* `ObjectDetailSheet` — right-side detail panel for a single object. Image
|
|
2453
|
-
* thumbnail (image MIME + download URL) or large file-type glyph, a metadata
|
|
2454
|
-
* list, and primary actions. Delete is confirmed through an AlertDialog. The
|
|
2455
|
-
* sheet is fully controlled (`open` / `onOpenChange`); rename keeps a local
|
|
2456
|
-
* draft for the text field only.
|
|
2457
|
-
*/
|
|
2458
|
-
declare function ObjectDetailSheet({ object, open, onOpenChange, onDownload, onCopyLink, onRename, onDelete, isPreviewLoading, }: ObjectDetailSheetProps): react_jsx_runtime.JSX.Element;
|
|
2459
|
-
|
|
2460
|
-
interface UploadDropzoneProps {
|
|
2461
|
-
/** Called with the chosen files (from drop or the browse input). */
|
|
2462
|
-
onFiles: (files: FileList) => void;
|
|
2463
|
-
/** Current uploads to display under the dropzone. */
|
|
2464
|
-
uploads?: UploadItem[];
|
|
2465
|
-
/** Cancel an in-flight or queued upload. */
|
|
2466
|
-
onCancel?: (id: string) => void;
|
|
2467
|
-
/** `accept` attribute forwarded to the file input. */
|
|
2468
|
-
accept?: string;
|
|
2469
|
-
/** Max file size in bytes — shown as a hint only (no enforcement here). */
|
|
2470
|
-
maxSize?: number | null;
|
|
2471
|
-
className?: string;
|
|
2472
|
-
}
|
|
2473
|
-
/**
|
|
2474
|
-
* `UploadDropzone` — a presentational drag-target plus a hidden file input
|
|
2475
|
-
* triggered by a "Browse" button. Drag-over highlight is the only local state;
|
|
2476
|
-
* all upload behavior is delegated to the parent via `onFiles`. Never blocks
|
|
2477
|
-
* paste. Renders `uploads` via `UploadProgressList`.
|
|
2478
|
-
*/
|
|
2479
|
-
declare function UploadDropzone({ onFiles, uploads, onCancel, accept, maxSize, className }: UploadDropzoneProps): react_jsx_runtime.JSX.Element;
|
|
2480
|
-
interface UploadProgressListProps {
|
|
2481
|
-
uploads: UploadItem[];
|
|
2482
|
-
onCancel?: (id: string) => void;
|
|
2483
|
-
className?: string;
|
|
2484
|
-
}
|
|
2485
|
-
/**
|
|
2486
|
-
* `UploadProgressList` — rows of in-flight/queued/finished uploads with a
|
|
2487
|
-
* progress bar, status, and a per-item cancel for active uploads. Pure render.
|
|
2488
|
-
*/
|
|
2489
|
-
declare function UploadProgressList({ uploads, onCancel, className }: UploadProgressListProps): react_jsx_runtime.JSX.Element;
|
|
2490
|
-
|
|
2491
|
-
type BucketConfigMode = 'create' | 'edit';
|
|
2492
|
-
/** The editable subset of a bucket, as a flat form value. */
|
|
2493
|
-
interface BucketConfigValue {
|
|
2494
|
-
key: string;
|
|
2495
|
-
visibility: BucketVisibility;
|
|
2496
|
-
allowCustomKeys: boolean;
|
|
2497
|
-
allowedMimeTypes: string[];
|
|
2498
|
-
maxFileSize: number | null;
|
|
2499
|
-
allowedOrigins: string[];
|
|
2500
|
-
description: string;
|
|
2501
|
-
}
|
|
2502
|
-
/**
|
|
2503
|
-
* Which optional bucket controls the host's schema actually supports. Core
|
|
2504
|
-
* fields (key/visibility) always render; each optional control renders only when
|
|
2505
|
-
* its flag is `true`. Omitted/undefined ⇒ render it (back-compat: a host that
|
|
2506
|
-
* doesn't pass this shows everything).
|
|
2507
|
-
*/
|
|
2508
|
-
interface BucketConfigSupportedFields {
|
|
2509
|
-
allowCustomKeys?: boolean;
|
|
2510
|
-
allowedMimeTypes?: boolean;
|
|
2511
|
-
maxFileSize?: boolean;
|
|
2512
|
-
allowedOrigins?: boolean;
|
|
2513
|
-
description?: boolean;
|
|
2514
|
-
}
|
|
2515
|
-
interface BucketConfigSheetProps {
|
|
2516
|
-
mode: BucketConfigMode;
|
|
2517
|
-
/** Seed values (e.g. the bucket being edited). */
|
|
2518
|
-
initial?: Partial<StorageBucket>;
|
|
2519
|
-
open: boolean;
|
|
2520
|
-
onOpenChange: (open: boolean) => void;
|
|
2521
|
-
onSubmit: (value: BucketConfigValue) => void;
|
|
2522
|
-
onCancel?: () => void;
|
|
2523
|
-
/**
|
|
2524
|
-
* Gate optional controls to the host schema's real columns. When omitted, all
|
|
2525
|
-
* controls render (back-compat). Core key/visibility always render.
|
|
2526
|
-
*/
|
|
2527
|
-
supportedFields?: BucketConfigSupportedFields;
|
|
2528
|
-
}
|
|
2529
|
-
/**
|
|
2530
|
-
* `BucketConfigSheet` — create/edit a bucket via a right-side Sheet form. All
|
|
2531
|
-
* inputs are local controlled draft state (no fetching); minimal validation
|
|
2532
|
-
* (key required on create). On submit, emits the flat `BucketConfigValue`.
|
|
2533
|
-
*/
|
|
2534
|
-
declare function BucketConfigSheet({ mode, initial, open, onOpenChange, onSubmit, onCancel, supportedFields, }: BucketConfigSheetProps): react_jsx_runtime.JSX.Element;
|
|
2535
|
-
|
|
2536
|
-
type StorageEmptyStateVariant = 'no-buckets' | 'not-provisioned' | 'empty-bucket' | 'no-access';
|
|
2537
|
-
interface StorageEmptyStateProps {
|
|
2538
|
-
variant: StorageEmptyStateVariant;
|
|
2539
|
-
/** Primary action handler (e.g. create bucket, upload, provision). */
|
|
2540
|
-
onAction?: () => void;
|
|
2541
|
-
/**
|
|
2542
|
-
* Secondary action handler. Only the `no-access` variant renders a
|
|
2543
|
-
* secondary action (refresh / learn more); ignored otherwise.
|
|
2544
|
-
*/
|
|
2545
|
-
onSecondaryAction?: () => void;
|
|
2546
|
-
className?: string;
|
|
2547
|
-
}
|
|
2548
|
-
/**
|
|
2549
|
-
* `StorageEmptyState` — a centered icon, balanced heading, body line, and a
|
|
2550
|
-
* single primary action (except `no-access`, which offers only a secondary
|
|
2551
|
-
* refresh). Pure render, mirrors the stateless `PageHeader` style.
|
|
2552
|
-
*/
|
|
2553
|
-
declare function StorageEmptyState({ variant, onAction, onSecondaryAction, className }: StorageEmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
2554
|
-
|
|
2555
|
-
interface StorageBrowserProps {
|
|
2556
|
-
buckets: StorageBucket[];
|
|
2557
|
-
selectedBucketId?: string | null;
|
|
2558
|
-
onSelectBucket: (bucketId: string) => void;
|
|
2559
|
-
onNewBucket?: () => void;
|
|
2560
|
-
objects: StorageObject[];
|
|
2561
|
-
selectedIds: string[];
|
|
2562
|
-
onSelectionChange: (selectedIds: string[]) => void;
|
|
2563
|
-
sort: ObjectSort;
|
|
2564
|
-
onSortChange: (sort: ObjectSort) => void;
|
|
2565
|
-
query: string;
|
|
2566
|
-
onQueryChange: (query: string) => void;
|
|
2567
|
-
segments?: StorageBreadcrumbSegment[];
|
|
2568
|
-
onNavigate?: (path: string | null) => void;
|
|
2569
|
-
onOpenObject?: (object: StorageObject) => void;
|
|
2570
|
-
onUpload?: () => void;
|
|
2571
|
-
/** Delete the currently selected objects. Receives the selected ids. */
|
|
2572
|
-
onBulkDelete?: (ids: string[]) => void;
|
|
2573
|
-
/**
|
|
2574
|
-
* Progress surface for an in-flight bulk delete: N-of-M + ids that failed.
|
|
2575
|
-
* When set, the toolbar shows a "Deleting N/M" indicator and a partial-failure
|
|
2576
|
-
* note.
|
|
2577
|
-
*/
|
|
2578
|
-
bulkDeleteProgress?: {
|
|
2579
|
-
done: number;
|
|
2580
|
-
total: number;
|
|
2581
|
-
failed: string[];
|
|
2582
|
-
};
|
|
2583
|
-
onClearSelection?: () => void;
|
|
2584
|
-
onDownload?: (object: StorageObject) => void;
|
|
2585
|
-
onCopyLink?: (object: StorageObject) => void;
|
|
2586
|
-
onRename?: (object: StorageObject) => void;
|
|
2587
|
-
onDelete?: (object: StorageObject) => void;
|
|
2588
|
-
isLoading?: boolean;
|
|
2589
|
-
/** Forwarded to the object table's empty body row (e.g. when a search filters all out). */
|
|
2590
|
-
emptyLabel?: string;
|
|
2591
|
-
/**
|
|
2592
|
-
* When set, the right pane shows an empty state instead of the table.
|
|
2593
|
-
* `'empty-bucket'` still renders the toolbar; `'no-access'`/`'not-provisioned'`
|
|
2594
|
-
* take over the whole pane.
|
|
2595
|
-
*/
|
|
2596
|
-
emptyState?: StorageEmptyStateVariant | null;
|
|
2597
|
-
onEmptyStateAction?: () => void;
|
|
2598
|
-
onEmptyStateSecondaryAction?: () => void;
|
|
2599
|
-
className?: string;
|
|
2600
|
-
}
|
|
2601
|
-
/**
|
|
2602
|
-
* `StorageBrowser` — master/detail page composition: a fixed-width `BucketRail`
|
|
2603
|
-
* on the left and an object browser on the right (header + toolbar +
|
|
2604
|
-
* breadcrumb + table / empty state). Owns no data logic; it arranges children
|
|
2605
|
-
* and forwards every callback. The detail sheet and config/upload sheets are
|
|
2606
|
-
* rendered by the host alongside this component.
|
|
2607
|
-
*/
|
|
2608
|
-
declare function StorageBrowser({ buckets, selectedBucketId, onSelectBucket, onNewBucket, objects, selectedIds, onSelectionChange, sort, onSortChange, query, onQueryChange, segments, onNavigate, onOpenObject, onUpload, onBulkDelete, bulkDeleteProgress, onClearSelection, onDownload, onCopyLink, onRename, onDelete, isLoading, emptyLabel, emptyState, onEmptyStateAction, onEmptyStateSecondaryAction, className, }: StorageBrowserProps): react_jsx_runtime.JSX.Element;
|
|
2609
|
-
|
|
2610
|
-
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BucketConfigMode, BucketConfigSheet, type BucketConfigSupportedFields, type BucketConfigValue, BucketRail, type BucketVisibility, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Field, type FieldProps, FieldRow, type FieldRowProps, FileTypeIcon, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl$1 as FormControl, FormControl as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, COLUMN_COUNT as OBJECT_TABLE_COLUMN_COUNT, ObjectDetailSheet, type ObjectSort, type ObjectSortColumn, ObjectStatusBadge, ObjectTable, ObjectTableSkeleton, ObjectToolbar, OrgChart, type OrgChartEdge, type OrgChartNodeData, type OrgChartProps, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, RadioGroup, Radio as RadioGroupItem, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectGroupLabel as SelectLabel, SelectPopup, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, StorageBreadcrumb, type StorageBreadcrumbSegment, StorageBrowser, type StorageBucket, StorageEmptyState, type StorageEmptyStateVariant, type StorageObject, type StorageObjectStatus, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UploadDropzone, type UploadItem, UploadProgressList, type UploadStatus, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, VisibilityBadge, alertVariants, backdropVariants, badgeVariants, bucketDisplayName, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatDate, formatDateTime, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, humanizeBytes, isCardVisible, mergeProps, normalizeWidth, objectDisplayName, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, shortMimeLabel, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
284
|
+
//#endregion
|
|
285
|
+
export { Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, ScrollArea, ScrollBar, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SkeletonProps, Slot, Slottable, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, type StructuralFieldProps, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, Textarea, type TextareaProps, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, mergeProps, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, validateJson, variants };
|
|
286
|
+
//# sourceMappingURL=index.d.ts.map
|