@constructive-io/ui 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{ai-CiaH2sfF.js → ai-B7XNnqYL.js} +1674 -228
- package/dist/ai-B7XNnqYL.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-DJ-YPj8c.cjs} +1768 -226
- package/dist/ai-DJ-YPj8c.cjs.map +1 -0
- package/dist/{alert-BXuP0ayz.d.ts → alert-CJ4Qyk6W.d.cts} +4 -2
- package/dist/{alert-BXuP0ayz.d.cts → alert-CJ4Qyk6W.d.ts} +4 -2
- package/dist/components/accordion.cjs +60 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.d.cts +14 -0
- package/dist/components/accordion.d.ts +14 -0
- package/dist/components/accordion.js +54 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/ai/index.cjs +17 -1
- package/dist/components/ai/index.d.cts +2 -2
- package/dist/components/ai/index.d.ts +2 -2
- package/dist/components/ai/index.js +2 -2
- package/dist/components/alert-dialog.cjs +17 -8
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +17 -8
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +18 -8
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +2 -2
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/alert.js +18 -9
- package/dist/components/alert.js.map +1 -1
- package/dist/components/autocomplete.cjs +9 -5
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.js +9 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +9 -3
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +6 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/avatar.js +9 -3
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +25 -18
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +2 -2
- package/dist/components/badge.d.ts +2 -2
- package/dist/components/badge.js +25 -18
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +9 -6
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.js +9 -6
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button-group.cjs +57 -0
- package/dist/components/button-group.cjs.map +1 -0
- package/dist/components/button-group.d.cts +16 -0
- package/dist/components/button-group.d.ts +16 -0
- package/dist/components/button-group.js +51 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.cjs +59 -15
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +32 -2
- package/dist/components/button.d.ts +32 -2
- package/dist/components/button.js +59 -15
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +14 -8
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.js +14 -8
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +35 -23
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +2 -1
- package/dist/components/card.d.ts +2 -1
- package/dist/components/card.js +35 -23
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.cjs +5 -5
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +5 -5
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +3 -3
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.js +3 -3
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +24 -12
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +2 -1
- package/dist/components/combobox.d.ts +2 -1
- package/dist/components/combobox.js +24 -12
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +25 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +6 -2
- package/dist/components/command.d.ts +6 -2
- package/dist/components/command.js +25 -14
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +22 -12
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +5 -2
- package/dist/components/dialog.d.ts +5 -2
- package/dist/components/dialog.js +22 -12
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +50 -27
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +1 -1
- package/dist/components/dock.d.ts +1 -1
- package/dist/components/dock.js +51 -28
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +22 -14
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +22 -14
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +34 -28
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +2 -2
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +52 -46
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +4 -4
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.js +4 -4
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +33 -33
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.js +34 -34
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +1 -1
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.js +1 -1
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +10 -5
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +8 -1
- package/dist/components/flow-zoom-panel.d.ts +8 -1
- package/dist/components/flow-zoom-panel.js +10 -5
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +12 -8
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.js +12 -8
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +5 -5
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +5 -5
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +13 -7
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +2 -2
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +11 -7
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.cjs +252 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.d.cts +44 -0
- package/dist/components/input-otp.d.ts +44 -0
- package/dist/components/input-otp.js +251 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.cjs +10 -4
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +11 -2
- package/dist/components/input.d.ts +11 -2
- package/dist/components/input.js +10 -4
- package/dist/components/input.js.map +1 -1
- package/dist/components/item.cjs +151 -0
- package/dist/components/item.cjs.map +1 -0
- package/dist/components/item.d.cts +37 -0
- package/dist/components/item.d.ts +37 -0
- package/dist/components/item.js +137 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/json-input.cjs +4 -143
- package/dist/components/json-input.d.cts +6 -4
- package/dist/components/json-input.d.ts +6 -4
- package/dist/components/json-input.js +2 -140
- package/dist/components/kbd.cjs +35 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.d.cts +16 -0
- package/dist/components/kbd.d.ts +16 -0
- package/dist/components/kbd.js +31 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.cjs +3 -3
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +20 -8
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.js +20 -8
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +77 -67
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.js +77 -67
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +12 -9
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.js +12 -9
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +10 -4
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +10 -4
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/phone-input.cjs +228 -0
- package/dist/components/phone-input.cjs.map +1 -0
- package/dist/components/phone-input.d.cts +42 -0
- package/dist/components/phone-input.d.ts +42 -0
- package/dist/components/phone-input.js +220 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/popover.cjs +5 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.js +5 -4
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.cjs +20 -3
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +20 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +2 -2
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +1 -1
- package/dist/components/progressive-blur-scroll-container.d.ts +1 -1
- package/dist/components/progressive-blur-scroll-container.js +2 -2
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +3 -2
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.js +3 -2
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +2 -2
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +1 -1
- package/dist/components/record-picker.js +1 -1
- package/dist/components/resizable.cjs +2 -2
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.js +2 -2
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +43 -21
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -1
- package/dist/components/responsive-diagram.d.ts +7 -1
- package/dist/components/responsive-diagram.js +43 -21
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +2 -2
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +84 -20
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +12 -7
- package/dist/components/select.d.ts +12 -7
- package/dist/components/select.js +84 -20
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +11 -2
- package/dist/components/separator.d.ts +11 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +11 -5
- package/dist/components/sheet.d.ts +12 -6
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +2 -1
- package/dist/components/sidebar.d.cts +7 -6
- package/dist/components/sidebar.d.ts +7 -6
- package/dist/components/sidebar.js +2 -1
- package/dist/components/slider.cjs +47 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.d.cts +8 -0
- package/dist/components/slider.d.ts +8 -0
- package/dist/components/slider.js +44 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.cjs +15 -4
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +10 -1
- package/dist/components/sonner.d.ts +10 -1
- package/dist/components/sonner.js +16 -5
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.cjs +25 -0
- package/dist/components/spinner.cjs.map +1 -0
- package/dist/components/spinner.d.cts +16 -0
- package/dist/components/spinner.d.ts +16 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stack/index.cjs +1 -1
- package/dist/components/stack/index.d.cts +1 -1
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stepper.cjs +23 -17
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +2 -2
- package/dist/components/stepper.d.ts +2 -2
- package/dist/components/stepper.js +23 -17
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +5 -5
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.js +5 -5
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +26 -7
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +20 -2
- package/dist/components/table.d.ts +20 -2
- package/dist/components/table.js +26 -8
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +61 -8
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +13 -2
- package/dist/components/tabs.d.ts +13 -2
- package/dist/components/tabs.js +63 -11
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +10 -5
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +1 -1
- package/dist/components/tags.d.ts +1 -1
- package/dist/components/tags.js +10 -5
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +5 -4
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.js +5 -4
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle-group.cjs +69 -0
- package/dist/components/toggle-group.cjs.map +1 -0
- package/dist/components/toggle-group.d.cts +27 -0
- package/dist/components/toggle-group.d.ts +27 -0
- package/dist/components/toggle-group.js +65 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.cjs +54 -0
- package/dist/components/toggle.cjs.map +1 -0
- package/dist/components/toggle.d.cts +13 -0
- package/dist/components/toggle.d.ts +13 -0
- package/dist/components/toggle.js +50 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.cjs +18 -6
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +18 -6
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +2 -2
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +1 -0
- package/dist/components/unlink-button.d.ts +1 -0
- package/dist/components/unlink-button.js +2 -2
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/components/workspace-kit/index.cjs +1477 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +716 -0
- package/dist/components/workspace-kit/index.d.ts +716 -0
- package/dist/components/workspace-kit/index.js +1410 -0
- package/dist/components/workspace-kit/index.js.map +1 -0
- package/dist/compose-refs-Mbma1O3M.js +47 -0
- package/dist/compose-refs-Mbma1O3M.js.map +1 -0
- package/dist/compose-refs-uPrvNoiU.cjs +52 -0
- package/dist/compose-refs-uPrvNoiU.cjs.map +1 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs +124 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs.map +1 -0
- package/dist/fluid-highlight-DxWeZ7iu.js +119 -0
- package/dist/fluid-highlight-DxWeZ7iu.js.map +1 -0
- package/dist/{index-BzLmDsId.d.cts → index-B7cT7gZU.d.cts} +3 -3
- package/dist/{index-BzLmDsId.d.ts → index-B7cT7gZU.d.ts} +3 -3
- package/dist/{index-UnM04j0t.d.ts → index-BQZxmMpw.d.cts} +11 -31
- package/dist/{index-UnM04j0t.d.cts → index-BQZxmMpw.d.ts} +11 -31
- package/dist/{index-B0wXxIAb.d.ts → index-CiO-3M_X.d.cts} +334 -18
- package/dist/{index-CyaFaZe2.d.cts → index-z3LqQ5L5.d.ts} +334 -18
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +64 -14
- package/dist/index.d.ts +64 -14
- package/dist/index.js +27 -14
- package/dist/initial-focus-B8RLtyOZ.cjs +67 -0
- package/dist/initial-focus-B8RLtyOZ.cjs.map +1 -0
- package/dist/initial-focus-j2E0EnIx.js +61 -0
- package/dist/initial-focus-j2E0EnIx.js.map +1 -0
- package/dist/initials-DSkWTOb0.cjs +127 -0
- package/dist/initials-DSkWTOb0.cjs.map +1 -0
- package/dist/initials-kCcHgrSy.js +97 -0
- package/dist/initials-kCcHgrSy.js.map +1 -0
- package/dist/json-input-CH5aEmoA.js +293 -0
- package/dist/json-input-CH5aEmoA.js.map +1 -0
- package/dist/json-input-D8yM578l.cjs +311 -0
- package/dist/json-input-D8yM578l.cjs.map +1 -0
- package/dist/{motion-config-COCFHq1L.cjs → motion-config-DZ7w5Uhq.cjs} +32 -2
- package/dist/motion-config-DZ7w5Uhq.cjs.map +1 -0
- package/dist/{motion-config-COsZ6azM.js → motion-config-DoFp4I8f.js} +21 -3
- package/dist/motion-config-DoFp4I8f.js.map +1 -0
- package/dist/{record-picker-Bz4FApxD.cjs → record-picker-BQ1-Vx0g.cjs} +23 -8
- package/dist/record-picker-BQ1-Vx0g.cjs.map +1 -0
- package/dist/{record-picker-BbxngCeV.js → record-picker-DSRo4RXV.js} +23 -8
- package/dist/record-picker-DSRo4RXV.js.map +1 -0
- package/dist/{sheet-BdA0rfIz.cjs → sheet-OxWlnT_G.cjs} +25 -32
- package/dist/sheet-OxWlnT_G.cjs.map +1 -0
- package/dist/{sheet-BLHnhLRH.js → sheet-wPF_l9Cn.js} +25 -32
- package/dist/sheet-wPF_l9Cn.js.map +1 -0
- package/dist/{sidebar-BavjjJp0.cjs → sidebar-BEEWmJwC.cjs} +74 -57
- package/dist/sidebar-BEEWmJwC.cjs.map +1 -0
- package/dist/{sidebar-DeoL2ttp.js → sidebar-DWl1Azyv.js} +74 -57
- package/dist/sidebar-DWl1Azyv.js.map +1 -0
- package/dist/{stack-ci2lkfkr.cjs → stack-CEvmUSwF.cjs} +12 -10
- package/dist/stack-CEvmUSwF.cjs.map +1 -0
- package/dist/{stack-C9GROTGA.js → stack-Kqu7YaR0.js} +12 -10
- package/dist/stack-Kqu7YaR0.js.map +1 -0
- package/dist/text-runs-CdmlS5C7.cjs +52 -0
- package/dist/text-runs-CdmlS5C7.cjs.map +1 -0
- package/dist/text-runs-DqcEO8L_.js +45 -0
- package/dist/text-runs-DqcEO8L_.js.map +1 -0
- package/dist/theme-DTTTlylA.d.cts +520 -0
- package/dist/theme-DTTTlylA.d.ts +520 -0
- package/dist/theme-dials-config.cjs +273 -0
- package/dist/theme-dials-config.cjs.map +1 -0
- package/dist/theme-dials-config.d.cts +95 -0
- package/dist/theme-dials-config.d.ts +95 -0
- package/dist/theme-dials-config.js +269 -0
- package/dist/theme-dials-config.js.map +1 -0
- package/dist/theme-presets.cjs +922 -0
- package/dist/theme-presets.cjs.map +1 -0
- package/dist/theme-presets.d.cts +89 -0
- package/dist/theme-presets.d.ts +89 -0
- package/dist/theme-presets.js +912 -0
- package/dist/theme-presets.js.map +1 -0
- package/dist/theme-tuning-DjgDvV8V.d.ts +158 -0
- package/dist/theme-tuning-TJ76tnxZ.d.cts +158 -0
- package/dist/theme-tuning.cjs +349 -0
- package/dist/theme-tuning.cjs.map +1 -0
- package/dist/theme-tuning.d.cts +2 -0
- package/dist/theme-tuning.d.ts +2 -0
- package/dist/theme-tuning.js +333 -0
- package/dist/theme-tuning.js.map +1 -0
- package/dist/theme.cjs +432 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +430 -0
- package/dist/theme.js.map +1 -0
- package/dist/toast-08jF1DBQ.cjs +193 -0
- package/dist/toast-08jF1DBQ.cjs.map +1 -0
- package/dist/toast-CVW5XY4u.js +164 -0
- package/dist/toast-CVW5XY4u.js.map +1 -0
- package/dist/toast-details-BdxxSLlN.cjs +209 -0
- package/dist/toast-details-BdxxSLlN.cjs.map +1 -0
- package/dist/toast-details-CfsB1Vxb.js +198 -0
- package/dist/toast-details-CfsB1Vxb.js.map +1 -0
- package/dist/{tooltip-CTRQoN1A.d.ts → tooltip-Fqb4JK-g.d.cts} +2 -2
- package/dist/{tooltip-CTRQoN1A.d.cts → tooltip-Fqb4JK-g.d.ts} +2 -2
- package/dist/tuning-BKVFsxLr.js +48 -0
- package/dist/tuning-BKVFsxLr.js.map +1 -0
- package/dist/tuning-BRPG7U1U.cjs +71 -0
- package/dist/tuning-BRPG7U1U.cjs.map +1 -0
- package/dist/use-document-theme-BSEuNsEE.cjs +43 -0
- package/dist/use-document-theme-BSEuNsEE.cjs.map +1 -0
- package/dist/use-document-theme-Ch_PqxZz.js +38 -0
- package/dist/use-document-theme-Ch_PqxZz.js.map +1 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs +79 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs.map +1 -0
- package/dist/use-scroll-fade-ilq-o00-.js +72 -0
- package/dist/use-scroll-fade-ilq-o00-.js.map +1 -0
- package/package.json +163 -27
- package/src/styles/globals.css +176 -97
- package/dist/ai-CiaH2sfF.js.map +0 -1
- package/dist/ai-lAkichk8.cjs.map +0 -1
- package/dist/button-Bvh83YGs.d.cts +0 -20
- package/dist/button-Bvh83YGs.d.ts +0 -20
- package/dist/components/app-bar.cjs +0 -81
- package/dist/components/app-bar.cjs.map +0 -1
- package/dist/components/app-bar.d.cts +0 -27
- package/dist/components/app-bar.d.ts +0 -27
- package/dist/components/app-bar.js +0 -77
- package/dist/components/app-bar.js.map +0 -1
- package/dist/components/app-shell.cjs +0 -267
- package/dist/components/app-shell.cjs.map +0 -1
- package/dist/components/app-shell.d.cts +0 -98
- package/dist/components/app-shell.d.ts +0 -98
- package/dist/components/app-shell.js +0 -264
- package/dist/components/app-shell.js.map +0 -1
- package/dist/components/json-input.cjs.map +0 -1
- package/dist/components/json-input.js.map +0 -1
- package/dist/input-CBrCuMH8.d.cts +0 -11
- package/dist/input-CBrCuMH8.d.ts +0 -11
- package/dist/motion-config-COCFHq1L.cjs.map +0 -1
- package/dist/motion-config-COsZ6azM.js.map +0 -1
- package/dist/record-picker-BbxngCeV.js.map +0 -1
- package/dist/record-picker-Bz4FApxD.cjs.map +0 -1
- package/dist/separator-BQEsr0Rc.d.cts +0 -11
- package/dist/separator-BQEsr0Rc.d.ts +0 -11
- package/dist/sheet-BLHnhLRH.js.map +0 -1
- package/dist/sheet-BdA0rfIz.cjs.map +0 -1
- package/dist/sidebar-BavjjJp0.cjs.map +0 -1
- package/dist/sidebar-DeoL2ttp.js.map +0 -1
- package/dist/stack-C9GROTGA.js.map +0 -1
- package/dist/stack-ci2lkfkr.cjs.map +0 -1
- package/dist/toast-D6MqijT2.cjs +0 -316
- package/dist/toast-D6MqijT2.cjs.map +0 -1
- package/dist/toast-D_BOLzm3.js +0 -287
- package/dist/toast-D_BOLzm3.js.map +0 -1
|
@@ -14,6 +14,8 @@ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
16
16
|
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/** Row for a button or link under the text, aligned with the title (not the icon). */
|
|
18
|
+
declare const AlertAction: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
19
|
//#endregion
|
|
18
|
-
export {
|
|
19
|
-
//# sourceMappingURL=alert-
|
|
20
|
+
export { AlertTitle as a, AlertProps as i, AlertAction as n, alertVariants as o, AlertDescription as r, Alert as t };
|
|
21
|
+
//# sourceMappingURL=alert-CJ4Qyk6W.d.cts.map
|
|
@@ -14,6 +14,8 @@ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
16
16
|
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/** Row for a button or link under the text, aligned with the title (not the icon). */
|
|
18
|
+
declare const AlertAction: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
17
19
|
//#endregion
|
|
18
|
-
export {
|
|
19
|
-
//# sourceMappingURL=alert-
|
|
20
|
+
export { AlertTitle as a, AlertProps as i, AlertAction as n, alertVariants as o, AlertDescription as r, Alert as t };
|
|
21
|
+
//# sourceMappingURL=alert-CJ4Qyk6W.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let lucide_react = require("lucide-react");
|
|
10
|
+
let _base_ui_react_accordion = require("@base-ui/react/accordion");
|
|
11
|
+
|
|
12
|
+
//#region src/components/accordion.tsx
|
|
13
|
+
function Accordion({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Root, {
|
|
15
|
+
"data-slot": "accordion",
|
|
16
|
+
className: require_utils.cn("flex w-full flex-col", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function AccordionItem({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Item, {
|
|
22
|
+
"data-slot": "accordion-item",
|
|
23
|
+
className: require_utils.cn("border-b border-border last:border-b-0", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Header, {
|
|
29
|
+
className: "flex",
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_accordion.Accordion.Trigger, {
|
|
31
|
+
"data-slot": "accordion-trigger",
|
|
32
|
+
className: require_utils.cn("group/accordion-trigger flex w-full flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start text-sm font-medium outline-none [overflow-wrap:anywhere]", "hover:text-foreground", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:opacity-64", className),
|
|
33
|
+
...props,
|
|
34
|
+
children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, {
|
|
35
|
+
"data-slot": "accordion-trigger-icon",
|
|
36
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-(--duration-moderate) ease-out group-data-[panel-open]/accordion-trigger:rotate-180 motion-reduce:transition-none",
|
|
37
|
+
"aria-hidden": true
|
|
38
|
+
})]
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function AccordionContent({ className, children, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Panel, {
|
|
44
|
+
"data-slot": "accordion-content",
|
|
45
|
+
className: require_utils.cn("h-[var(--accordion-panel-height)] overflow-hidden", "transition-[height] duration-(--duration-moderate) ease-out motion-reduce:transition-none", "data-[ending-style]:h-0 data-[starting-style]:h-0", className),
|
|
46
|
+
...props,
|
|
47
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
48
|
+
"data-slot": "accordion-content-inner",
|
|
49
|
+
className: "pb-3 text-[0.8125rem] leading-5 text-muted-foreground [overflow-wrap:anywhere]",
|
|
50
|
+
children
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.Accordion = Accordion;
|
|
57
|
+
exports.AccordionContent = AccordionContent;
|
|
58
|
+
exports.AccordionItem = AccordionItem;
|
|
59
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
60
|
+
//# sourceMappingURL=accordion.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.cjs","names":["AccordionPrimitive","cn","ChevronDown"],"sources":["../../src/components/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';\nimport { ChevronDown } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\ntype AccordionProps = React.ComponentProps<typeof AccordionPrimitive.Root>;\n\nfunction Accordion({ className, ...props }: AccordionProps) {\n\treturn (\n\t\t<AccordionPrimitive.Root\n\t\t\tdata-slot=\"accordion\"\n\t\t\tclassName={cn('flex w-full flex-col', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AccordionItemProps = React.ComponentProps<typeof AccordionPrimitive.Item>;\n\nfunction AccordionItem({ className, ...props }: AccordionItemProps) {\n\treturn (\n\t\t<AccordionPrimitive.Item\n\t\t\tdata-slot=\"accordion-item\"\n\t\t\tclassName={cn('border-b border-border last:border-b-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AccordionTriggerProps = React.ComponentProps<typeof AccordionPrimitive.Trigger>;\n\nfunction AccordionTrigger({ className, children, ...props }: AccordionTriggerProps) {\n\treturn (\n\t\t<AccordionPrimitive.Header className=\"flex\">\n\t\t\t<AccordionPrimitive.Trigger\n\t\t\t\tdata-slot=\"accordion-trigger\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/accordion-trigger flex w-full flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start text-sm font-medium outline-none [overflow-wrap:anywhere]',\n\t\t\t\t\t'hover:text-foreground',\n\t\t\t\t\t'focus-visible:ring-[3px] focus-visible:ring-ring/50',\n\t\t\t\t\t'disabled:pointer-events-none disabled:opacity-64',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<ChevronDown\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclassName=\"size-4 shrink-0 text-muted-foreground transition-transform duration-(--duration-moderate) ease-out group-data-[panel-open]/accordion-trigger:rotate-180 motion-reduce:transition-none\"\n\t\t\t\t\taria-hidden\n\t\t\t\t/>\n\t\t\t</AccordionPrimitive.Trigger>\n\t\t</AccordionPrimitive.Header>\n\t);\n}\n\ntype AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Panel>;\n\nfunction AccordionContent({ className, children, ...props }: AccordionContentProps) {\n\treturn (\n\t\t<AccordionPrimitive.Panel\n\t\t\tdata-slot=\"accordion-content\"\n\t\t\tclassName={cn(\n\t\t\t\t'h-[var(--accordion-panel-height)] overflow-hidden',\n\t\t\t\t'transition-[height] duration-(--duration-moderate) ease-out motion-reduce:transition-none',\n\t\t\t\t'data-[ending-style]:h-0 data-[starting-style]:h-0',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<div data-slot=\"accordion-content-inner\" className=\"pb-3 text-[0.8125rem] leading-5 text-muted-foreground [overflow-wrap:anywhere]\">\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</AccordionPrimitive.Panel>\n\t);\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\nexport type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps };\n"],"mappings":";;;;;;;;;;;;AAUA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAyB;CAC3D,OACC,2CAACA,mCAAmB,MAApB;EACC,aAAU;EACV,WAAWC,iBAAG,wBAAwB,SAAS;EAC/C,GAAI;CACJ;AAEH;AAIA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA6B;CACnE,OACC,2CAACD,mCAAmB,MAApB;EACC,aAAU;EACV,WAAWC,iBAAG,0CAA0C,SAAS;EACjE,GAAI;CACJ;AAEH;AAIA,SAAS,iBAAiB,EAAE,WAAW,UAAU,GAAG,SAAgC;CACnF,OACC,2CAACD,mCAAmB,QAApB;EAA2B,WAAU;YACpC,4CAACA,mCAAmB,SAApB;GACC,aAAU;GACV,WAAWC,iBACV,0KACA,yBACA,uDACA,oDACA,SACD;GACA,GAAI;aATL,CAWE,UACD,2CAACC,0BAAD;IACC,aAAU;IACV,WAAU;IACV;GACA,EAC0B;;CACF;AAE7B;AAIA,SAAS,iBAAiB,EAAE,WAAW,UAAU,GAAG,SAAgC;CACnF,OACC,2CAACF,mCAAmB,OAApB;EACC,aAAU;EACV,WAAWC,iBACV,qDACA,6FACA,qDACA,SACD;EACA,GAAI;YAEJ,2CAAC,OAAD;GAAK,aAAU;GAA0B,WAAU;GACjD;EACG;CACoB;AAE5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
3
|
+
//#region src/components/accordion.d.ts
|
|
4
|
+
type AccordionProps = React$1.ComponentProps<typeof Accordion$1.Root>;
|
|
5
|
+
declare function Accordion({ className, ...props }: AccordionProps): React$1.JSX.Element;
|
|
6
|
+
type AccordionItemProps = React$1.ComponentProps<typeof Accordion$1.Item>;
|
|
7
|
+
declare function AccordionItem({ className, ...props }: AccordionItemProps): React$1.JSX.Element;
|
|
8
|
+
type AccordionTriggerProps = React$1.ComponentProps<typeof Accordion$1.Trigger>;
|
|
9
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): React$1.JSX.Element;
|
|
10
|
+
type AccordionContentProps = React$1.ComponentProps<typeof Accordion$1.Panel>;
|
|
11
|
+
declare function AccordionContent({ className, children, ...props }: AccordionContentProps): React$1.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
|
|
14
|
+
//# sourceMappingURL=accordion.d.cts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
3
|
+
//#region src/components/accordion.d.ts
|
|
4
|
+
type AccordionProps = React$1.ComponentProps<typeof Accordion$1.Root>;
|
|
5
|
+
declare function Accordion({ className, ...props }: AccordionProps): React$1.JSX.Element;
|
|
6
|
+
type AccordionItemProps = React$1.ComponentProps<typeof Accordion$1.Item>;
|
|
7
|
+
declare function AccordionItem({ className, ...props }: AccordionItemProps): React$1.JSX.Element;
|
|
8
|
+
type AccordionTriggerProps = React$1.ComponentProps<typeof Accordion$1.Trigger>;
|
|
9
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): React$1.JSX.Element;
|
|
10
|
+
type AccordionContentProps = React$1.ComponentProps<typeof Accordion$1.Panel>;
|
|
11
|
+
declare function AccordionContent({ className, children, ...props }: AccordionContentProps): React$1.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
|
|
14
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronDown } from "lucide-react";
|
|
7
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
8
|
+
|
|
9
|
+
//#region src/components/accordion.tsx
|
|
10
|
+
function Accordion({ className, ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(Accordion$1.Root, {
|
|
12
|
+
"data-slot": "accordion",
|
|
13
|
+
className: cn("flex w-full flex-col", className),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function AccordionItem({ className, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Accordion$1.Item, {
|
|
19
|
+
"data-slot": "accordion-item",
|
|
20
|
+
className: cn("border-b border-border last:border-b-0", className),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
26
|
+
className: "flex",
|
|
27
|
+
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
28
|
+
"data-slot": "accordion-trigger",
|
|
29
|
+
className: cn("group/accordion-trigger flex w-full flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start text-sm font-medium outline-none [overflow-wrap:anywhere]", "hover:text-foreground", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "disabled:pointer-events-none disabled:opacity-64", className),
|
|
30
|
+
...props,
|
|
31
|
+
children: [children, /* @__PURE__ */ jsx(ChevronDown, {
|
|
32
|
+
"data-slot": "accordion-trigger-icon",
|
|
33
|
+
className: "size-4 shrink-0 text-muted-foreground transition-transform duration-(--duration-moderate) ease-out group-data-[panel-open]/accordion-trigger:rotate-180 motion-reduce:transition-none",
|
|
34
|
+
"aria-hidden": true
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function AccordionContent({ className, children, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx(Accordion$1.Panel, {
|
|
41
|
+
"data-slot": "accordion-content",
|
|
42
|
+
className: cn("h-[var(--accordion-panel-height)] overflow-hidden", "transition-[height] duration-(--duration-moderate) ease-out motion-reduce:transition-none", "data-[ending-style]:h-0 data-[starting-style]:h-0", className),
|
|
43
|
+
...props,
|
|
44
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
45
|
+
"data-slot": "accordion-content-inner",
|
|
46
|
+
className: "pb-3 text-[0.8125rem] leading-5 text-muted-foreground [overflow-wrap:anywhere]",
|
|
47
|
+
children
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
54
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","names":["AccordionPrimitive"],"sources":["../../src/components/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';\nimport { ChevronDown } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\ntype AccordionProps = React.ComponentProps<typeof AccordionPrimitive.Root>;\n\nfunction Accordion({ className, ...props }: AccordionProps) {\n\treturn (\n\t\t<AccordionPrimitive.Root\n\t\t\tdata-slot=\"accordion\"\n\t\t\tclassName={cn('flex w-full flex-col', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AccordionItemProps = React.ComponentProps<typeof AccordionPrimitive.Item>;\n\nfunction AccordionItem({ className, ...props }: AccordionItemProps) {\n\treturn (\n\t\t<AccordionPrimitive.Item\n\t\t\tdata-slot=\"accordion-item\"\n\t\t\tclassName={cn('border-b border-border last:border-b-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\ntype AccordionTriggerProps = React.ComponentProps<typeof AccordionPrimitive.Trigger>;\n\nfunction AccordionTrigger({ className, children, ...props }: AccordionTriggerProps) {\n\treturn (\n\t\t<AccordionPrimitive.Header className=\"flex\">\n\t\t\t<AccordionPrimitive.Trigger\n\t\t\t\tdata-slot=\"accordion-trigger\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'group/accordion-trigger flex w-full flex-1 cursor-pointer items-center justify-between gap-4 py-3 text-start text-sm font-medium outline-none [overflow-wrap:anywhere]',\n\t\t\t\t\t'hover:text-foreground',\n\t\t\t\t\t'focus-visible:ring-[3px] focus-visible:ring-ring/50',\n\t\t\t\t\t'disabled:pointer-events-none disabled:opacity-64',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<ChevronDown\n\t\t\t\t\tdata-slot=\"accordion-trigger-icon\"\n\t\t\t\t\tclassName=\"size-4 shrink-0 text-muted-foreground transition-transform duration-(--duration-moderate) ease-out group-data-[panel-open]/accordion-trigger:rotate-180 motion-reduce:transition-none\"\n\t\t\t\t\taria-hidden\n\t\t\t\t/>\n\t\t\t</AccordionPrimitive.Trigger>\n\t\t</AccordionPrimitive.Header>\n\t);\n}\n\ntype AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Panel>;\n\nfunction AccordionContent({ className, children, ...props }: AccordionContentProps) {\n\treturn (\n\t\t<AccordionPrimitive.Panel\n\t\t\tdata-slot=\"accordion-content\"\n\t\t\tclassName={cn(\n\t\t\t\t'h-[var(--accordion-panel-height)] overflow-hidden',\n\t\t\t\t'transition-[height] duration-(--duration-moderate) ease-out motion-reduce:transition-none',\n\t\t\t\t'data-[ending-style]:h-0 data-[starting-style]:h-0',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<div data-slot=\"accordion-content-inner\" className=\"pb-3 text-[0.8125rem] leading-5 text-muted-foreground [overflow-wrap:anywhere]\">\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</AccordionPrimitive.Panel>\n\t);\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\nexport type { AccordionProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps };\n"],"mappings":";;;;;;;;;AAUA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAyB;CAC3D,OACC,oBAACA,YAAmB,MAApB;EACC,aAAU;EACV,WAAW,GAAG,wBAAwB,SAAS;EAC/C,GAAI;CACJ;AAEH;AAIA,SAAS,cAAc,EAAE,WAAW,GAAG,SAA6B;CACnE,OACC,oBAACA,YAAmB,MAApB;EACC,aAAU;EACV,WAAW,GAAG,0CAA0C,SAAS;EACjE,GAAI;CACJ;AAEH;AAIA,SAAS,iBAAiB,EAAE,WAAW,UAAU,GAAG,SAAgC;CACnF,OACC,oBAACA,YAAmB,QAApB;EAA2B,WAAU;YACpC,qBAACA,YAAmB,SAApB;GACC,aAAU;GACV,WAAW,GACV,0KACA,yBACA,uDACA,oDACA,SACD;GACA,GAAI;aATL,CAWE,UACD,oBAAC,aAAD;IACC,aAAU;IACV,WAAU;IACV;GACA,EAC0B;;CACF;AAE7B;AAIA,SAAS,iBAAiB,EAAE,WAAW,UAAU,GAAG,SAAgC;CACnF,OACC,oBAACA,YAAmB,OAApB;EACC,aAAU;EACV,WAAW,GACV,qDACA,6FACA,qDACA,SACD;EACA,GAAI;YAEJ,oBAAC,OAAD;GAAK,aAAU;GAA0B,WAAU;GACjD;EACG;CACoB;AAE5B"}
|
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_ai = require('../../ai-
|
|
3
|
+
const require_ai = require('../../ai-DJ-YPj8c.cjs');
|
|
4
4
|
|
|
5
|
+
exports.AgentDraftCard = require_ai.AgentDraftCard;
|
|
5
6
|
exports.AgentLoader = require_ai.AgentLoader;
|
|
6
7
|
exports.AiImage = require_ai.AiImage;
|
|
7
8
|
exports.ApprovalCard = require_ai.ApprovalCard;
|
|
9
|
+
exports.AskCard = require_ai.AskCard;
|
|
8
10
|
exports.ChainOfThought = require_ai.ChainOfThought;
|
|
9
11
|
exports.ChainOfThoughtStep = require_ai.ChainOfThoughtStep;
|
|
10
12
|
exports.ChatContainer = require_ai.ChatContainer;
|
|
11
13
|
exports.ChatContainerContent = require_ai.ChatContainerContent;
|
|
12
14
|
exports.CodeBlock = require_ai.CodeBlock;
|
|
15
|
+
exports.ConnectPrompt = require_ai.ConnectPrompt;
|
|
13
16
|
exports.ContextCard = require_ai.ContextCard;
|
|
14
17
|
exports.ContextCards = require_ai.ContextCards;
|
|
15
18
|
exports.ContextRing = require_ai.ContextRing;
|
|
19
|
+
exports.CostBlocks = require_ai.CostBlocks;
|
|
16
20
|
exports.DiffTable = require_ai.DiffTable;
|
|
17
21
|
exports.FeedbackBar = require_ai.FeedbackBar;
|
|
18
22
|
exports.FileUpload = require_ai.FileUpload;
|
|
19
23
|
exports.InlineDiff = require_ai.InlineDiff;
|
|
20
24
|
exports.Loader = require_ai.Loader;
|
|
25
|
+
exports.MarkTile = require_ai.MarkTile;
|
|
21
26
|
exports.Markdown = require_ai.Markdown;
|
|
22
27
|
exports.Message = require_ai.Message;
|
|
23
28
|
exports.MessageAction = require_ai.MessageAction;
|
|
24
29
|
exports.MessageActions = require_ai.MessageActions;
|
|
25
30
|
exports.MessageAvatar = require_ai.MessageAvatar;
|
|
26
31
|
exports.MessageContent = require_ai.MessageContent;
|
|
32
|
+
exports.ModelSelector = require_ai.ModelSelector;
|
|
27
33
|
exports.PlanTracker = require_ai.PlanTracker;
|
|
28
34
|
exports.PromptInput = require_ai.PromptInput;
|
|
29
35
|
exports.PromptInputAction = require_ai.PromptInputAction;
|
|
30
36
|
exports.PromptInputActions = require_ai.PromptInputActions;
|
|
37
|
+
exports.PromptInputAttachment = require_ai.PromptInputAttachment;
|
|
38
|
+
exports.PromptInputAttachments = require_ai.PromptInputAttachments;
|
|
31
39
|
exports.PromptInputBody = require_ai.PromptInputBody;
|
|
32
40
|
exports.PromptInputTextarea = require_ai.PromptInputTextarea;
|
|
41
|
+
exports.PromptInputTray = require_ai.PromptInputTray;
|
|
42
|
+
exports.PromptInputTrayRow = require_ai.PromptInputTrayRow;
|
|
33
43
|
exports.PromptSuggestion = require_ai.PromptSuggestion;
|
|
34
44
|
exports.PromptSuggestions = require_ai.PromptSuggestions;
|
|
35
45
|
exports.Reasoning = require_ai.Reasoning;
|
|
@@ -48,14 +58,20 @@ exports.TaskList = require_ai.TaskList;
|
|
|
48
58
|
exports.TaskRow = require_ai.TaskRow;
|
|
49
59
|
exports.TextShimmer = require_ai.TextShimmer;
|
|
50
60
|
exports.ThinkingBar = require_ai.ThinkingBar;
|
|
61
|
+
exports.ThinkingStatus = require_ai.ThinkingStatus;
|
|
51
62
|
exports.ThinkingTrace = require_ai.ThinkingTrace;
|
|
52
63
|
exports.Tool = require_ai.Tool;
|
|
53
64
|
exports.ToolGroup = require_ai.ToolGroup;
|
|
65
|
+
exports.ToolTrace = require_ai.ToolTrace;
|
|
66
|
+
exports.UsageNotice = require_ai.UsageNotice;
|
|
54
67
|
exports.formatCompact = require_ai.formatCompact;
|
|
55
68
|
exports.formatDuration = require_ai.formatDuration;
|
|
69
|
+
exports.formatElapsed = require_ai.formatElapsed;
|
|
70
|
+
exports.iconEnterClass = require_ai.iconEnterClass;
|
|
56
71
|
exports.lineDiff = require_ai.lineDiff;
|
|
57
72
|
exports.normalizeToolStatus = require_ai.normalizeToolStatus;
|
|
58
73
|
exports.renderBasicMarkdown = require_ai.renderBasicMarkdown;
|
|
74
|
+
exports.usageTone = require_ai.usageTone;
|
|
59
75
|
exports.useChatContainer = require_ai.useChatContainer;
|
|
60
76
|
exports.usePromptInput = require_ai.usePromptInput;
|
|
61
77
|
exports.useThrottledText = require_ai.useThrottledText;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
1
|
+
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-CiO-3M_X.cjs";
|
|
2
|
+
export { type AgentDraftAction, AgentDraftCard, type AgentDraftCardProps, type AgentDraftTool, AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, type AiModel, type AiModelLevel, type AiModelPricing, type AiModelTag, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, type AskAnswer, AskCard, type AskCardProps, type AskChoice, type AskOption, type AskQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ConnectPrompt, type ConnectPromptProps, type ConnectPromptStatus, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, CostBlocks, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, MarkTile, type MarkTileProps, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type ModelSelection, ModelSelector, type ModelSelectorProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputAttachment, type PromptInputAttachmentProps, type PromptInputAttachmentStatus, PromptInputAttachments, type PromptInputAttachmentsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTray, type PromptInputTrayProps, PromptInputTrayRow, type PromptInputTrayRowProps, type PromptInputTrayTone, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingStatus, type ThinkingStatusProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, ToolTrace, type ToolTraceProps, type ToolTraceStatus, type ToolTraceStep, type ToolVariant, UsageNotice, type UsageNoticeProps, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
1
|
+
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "../../index-z3LqQ5L5.js";
|
|
2
|
+
export { type AgentDraftAction, AgentDraftCard, type AgentDraftCardProps, type AgentDraftTool, AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, type AiModel, type AiModelLevel, type AiModelPricing, type AiModelTag, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, type AskAnswer, AskCard, type AskCardProps, type AskChoice, type AskOption, type AskQuestion, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, CodeBlock, type CodeBlockProps, ConnectPrompt, type ConnectPromptProps, type ConnectPromptStatus, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, CostBlocks, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, FeedbackBar, type FeedbackBarProps, type FeedbackValue, FileUpload, type FileUploadProps, InlineDiff, type InlineDiffProps, type InlineDiffSource, Loader, MarkTile, type MarkTileProps, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type ModelSelection, ModelSelector, type ModelSelectorProps, type NormalizedToolStatus, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputAttachment, type PromptInputAttachmentProps, type PromptInputAttachmentStatus, PromptInputAttachments, type PromptInputAttachmentsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTray, type PromptInputTrayProps, PromptInputTrayRow, type PromptInputTrayRowProps, type PromptInputTrayTone, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, STREAM_THROTTLE_MS, ScrollButton, type ScrollButtonProps, type SimpleVariant, Source, type SourceProps, Sources, type SourcesProps, StatusIcon, Step, type StepProps, type StepStatus, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, SystemMessage, type SystemMessageProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, ThinkingBar, type ThinkingBarProps, ThinkingStatus, type ThinkingStatusProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, ToolTrace, type ToolTraceProps, type ToolTraceStatus, type ToolTraceStep, type ToolVariant, UsageNotice, type UsageNoticeProps, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "../../ai-B7XNnqYL.js";
|
|
3
3
|
|
|
4
|
-
export { AgentLoader, AiImage, ApprovalCard, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, CodeBlock, ContextCard, ContextCards, ContextRing, DiffTable, FeedbackBar, FileUpload, InlineDiff, Loader, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, PlanTracker, PromptInput, PromptInputAction, PromptInputActions, PromptInputBody, PromptInputTextarea, PromptSuggestion, PromptSuggestions, Reasoning, RecommendationCard, ResponseStream, STREAM_THROTTLE_MS, ScrollButton, Source, Sources, StatusIcon, Step, Steps, StreamingText, SystemMessage, TaskList, TaskRow, TextShimmer, ThinkingBar, ThinkingTrace, Tool, ToolGroup, formatCompact, formatDuration, lineDiff, normalizeToolStatus, renderBasicMarkdown, useChatContainer, usePromptInput, useThrottledText };
|
|
4
|
+
export { AgentDraftCard, AgentLoader, AiImage, ApprovalCard, AskCard, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, CodeBlock, ConnectPrompt, ContextCard, ContextCards, ContextRing, CostBlocks, DiffTable, FeedbackBar, FileUpload, InlineDiff, Loader, MarkTile, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, ModelSelector, PlanTracker, PromptInput, PromptInputAction, PromptInputActions, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputTextarea, PromptInputTray, PromptInputTrayRow, PromptSuggestion, PromptSuggestions, Reasoning, RecommendationCard, ResponseStream, STREAM_THROTTLE_MS, ScrollButton, Source, Sources, StatusIcon, Step, Steps, StreamingText, SystemMessage, TaskList, TaskRow, TextShimmer, ThinkingBar, ThinkingStatus, ThinkingTrace, Tool, ToolGroup, ToolTrace, UsageNotice, formatCompact, formatDuration, formatElapsed, iconEnterClass, lineDiff, normalizeToolStatus, renderBasicMarkdown, usageTone, useChatContainer, usePromptInput, useThrottledText };
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
5
|
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
6
|
const require_components_button = require('./button.cjs');
|
|
7
|
+
const require_compose_refs = require('../compose-refs-uPrvNoiU.cjs');
|
|
8
|
+
const require_initial_focus = require('../initial-focus-B8RLtyOZ.cjs');
|
|
7
9
|
let react = require("react");
|
|
8
10
|
react = require_rolldown_runtime.__toESM(react, 1);
|
|
9
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -44,32 +46,36 @@ function AlertDialogPortal({ container: containerProp, ...props }) {
|
|
|
44
46
|
function AlertDialogOverlay({ className, ...props }) {
|
|
45
47
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Backdrop, {
|
|
46
48
|
"data-slot": "alert-dialog-overlay",
|
|
47
|
-
className: require_utils.cn("fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/
|
|
49
|
+
className: require_utils.cn("fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm transition-opacity duration-(--duration-slow) data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", className),
|
|
48
50
|
...props
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
function AlertDialogContent({ className, children, ...props }) {
|
|
53
|
+
function AlertDialogContent({ className, children, initialFocus, ...props }) {
|
|
54
|
+
const popupRef = react.useRef(null);
|
|
55
|
+
const ref = require_compose_refs.useMergedRefs(popupRef, props.ref);
|
|
52
56
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AlertDialogPortal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogOverlay, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Popup, {
|
|
53
57
|
"data-slot": "alert-dialog-content",
|
|
54
58
|
className: require_utils.cn(`bg-background fixed top-1/2 left-1/2 z-[var(--z-layer-modal-content)] grid max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)]
|
|
55
|
-
-translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border p-6 shadow-lg
|
|
56
|
-
transition-[opacity,scale] duration-
|
|
59
|
+
-translate-x-1/2 -translate-y-1/2 grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto overscroll-contain rounded-xl border p-6 shadow-lg outline-hidden [overflow-wrap:break-word]
|
|
60
|
+
transition-[opacity,scale] duration-(--duration-slow) data-[ending-style]:scale-95 data-[starting-style]:scale-95
|
|
57
61
|
data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 sm:max-w-100`, className),
|
|
62
|
+
initialFocus: initialFocus ?? require_initial_focus.scrollSafeInitialFocus(() => popupRef.current),
|
|
58
63
|
...props,
|
|
64
|
+
ref,
|
|
59
65
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_constructive_io_ui_portal.ModalPortalScope, { children })
|
|
60
66
|
})] });
|
|
61
67
|
}
|
|
62
68
|
function AlertDialogHeader({ className, ...props }) {
|
|
63
69
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
64
70
|
"data-slot": "alert-dialog-header",
|
|
65
|
-
className: require_utils.cn("flex flex-col gap-1 text-center sm:text-
|
|
71
|
+
className: require_utils.cn("flex flex-col gap-1 text-center sm:text-start", className),
|
|
66
72
|
...props
|
|
67
73
|
});
|
|
68
74
|
}
|
|
69
75
|
function AlertDialogFooter({ className, ...props }) {
|
|
70
76
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
71
77
|
"data-slot": "alert-dialog-footer",
|
|
72
|
-
className: require_utils.cn("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end", className),
|
|
78
|
+
className: require_utils.cn("flex flex-col-reverse gap-3 sm:flex-row sm:flex-wrap sm:justify-end", className),
|
|
73
79
|
...props
|
|
74
80
|
});
|
|
75
81
|
}
|
|
@@ -91,7 +97,7 @@ function AlertDialogAction({ asChild, children, render, nativeButton, className,
|
|
|
91
97
|
const childRender = render === void 0 && asChild && react.isValidElement(children) ? children : void 0;
|
|
92
98
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Close, {
|
|
93
99
|
"data-slot": "alert-dialog-action",
|
|
94
|
-
className: require_utils.cn(require_components_button.buttonVariants(), className),
|
|
100
|
+
className: require_utils.cn(require_components_button.buttonVariants({ wrap: true }), className),
|
|
95
101
|
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
96
102
|
render: render ?? childRender,
|
|
97
103
|
...props,
|
|
@@ -106,7 +112,10 @@ function AlertDialogCancel({ asChild, children, render, nativeButton, className,
|
|
|
106
112
|
const childRender = render === void 0 && asChild && react.isValidElement(children) ? children : void 0;
|
|
107
113
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Close, {
|
|
108
114
|
"data-slot": "alert-dialog-cancel",
|
|
109
|
-
className: require_utils.cn(require_components_button.buttonVariants({
|
|
115
|
+
className: require_utils.cn(require_components_button.buttonVariants({
|
|
116
|
+
variant: "outline",
|
|
117
|
+
wrap: true
|
|
118
|
+
}), className),
|
|
110
119
|
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
111
120
|
render: render ?? childRender,
|
|
112
121
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.cjs","names":["AlertDialogPrimitive","React","cn","ModalPortalScope","buttonVariants"],"sources":["../../src/components/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\ntype AlertDialogTriggerProps = React.ComponentProps<typeof AlertDialogPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction AlertDialogTrigger({ asChild, children, render, nativeButton, ...props }: AlertDialogTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Trigger\n\t\t\tdata-slot=\"alert-dialog-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</AlertDialogPrimitive.Trigger>\n\t);\n}\n\nfunction AlertDialogPortal({\n\tcontainer: containerProp,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\n\tconst style = {\n\t\t...(props.style ?? {}),\n\t\t['--z-layer-floating' as any]: 'var(--z-layer-floating-elevated)',\n\t} satisfies React.CSSProperties;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Portal\n\t\t\tdata-slot=\"alert-dialog-portal\"\n\t\t\tcontainer={container}\n\t\t\t{...props}\n\t\t\tstyle={style}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Backdrop>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Backdrop\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t'fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/
|
|
1
|
+
{"version":3,"file":"alert-dialog.cjs","names":["AlertDialogPrimitive","React","cn","useMergedRefs","scrollSafeInitialFocus","ModalPortalScope","buttonVariants"],"sources":["../../src/components/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';\n\nimport { ModalPortalScope, useRootPortalContainer } from '@constructive-io/ui/portal';\nimport { useMergedRefs } from '../lib/compose-refs';\nimport { scrollSafeInitialFocus } from '../lib/initial-focus';\nimport { cn } from '../lib/utils';\nimport { buttonVariants } from './button';\n\nfunction AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {\n\treturn <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\ntype AlertDialogTriggerProps = React.ComponentProps<typeof AlertDialogPrimitive.Trigger> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction AlertDialogTrigger({ asChild, children, render, nativeButton, ...props }: AlertDialogTriggerProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Trigger\n\t\t\tdata-slot=\"alert-dialog-trigger\"\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</AlertDialogPrimitive.Trigger>\n\t);\n}\n\nfunction AlertDialogPortal({\n\tcontainer: containerProp,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {\n\tconst rootContainer = useRootPortalContainer();\n\tconst container = containerProp === undefined ? (rootContainer ?? undefined) : containerProp;\n\n\tconst style = {\n\t\t...(props.style ?? {}),\n\t\t['--z-layer-floating' as any]: 'var(--z-layer-floating-elevated)',\n\t} satisfies React.CSSProperties;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Portal\n\t\t\tdata-slot=\"alert-dialog-portal\"\n\t\t\tcontainer={container}\n\t\t\t{...props}\n\t\t\tstyle={style}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Backdrop>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Backdrop\n\t\t\tdata-slot=\"alert-dialog-overlay\"\n\t\t\tclassName={cn(\n\t\t\t\t'fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm transition-opacity duration-(--duration-slow) data-[ending-style]:opacity-0 data-[starting-style]:opacity-0',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogContent({ className, children, initialFocus, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Popup>) {\n\tconst popupRef = React.useRef<HTMLDivElement>(null);\n\tconst ref = useMergedRefs(popupRef, props.ref);\n\treturn (\n\t\t<AlertDialogPortal>\n\t\t\t<AlertDialogOverlay />\n\t\t\t<AlertDialogPrimitive.Popup\n\t\t\t\tdata-slot=\"alert-dialog-content\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`bg-background fixed top-1/2 left-1/2 z-[var(--z-layer-modal-content)] grid max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)]\n\t\t\t\t\t-translate-x-1/2 -translate-y-1/2 grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto overscroll-contain rounded-xl border p-6 shadow-lg outline-hidden [overflow-wrap:break-word]\n\t\t\t\t\ttransition-[opacity,scale] duration-(--duration-slow) data-[ending-style]:scale-95 data-[starting-style]:scale-95\n\t\t\t\t\tdata-[ending-style]:opacity-0 data-[starting-style]:opacity-0 sm:max-w-100`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t// A popup that scrolls opens at its top, not scrolled to the footer button that is first in tab order.\n\t\t\t\t// Leaving `initialFocus` out and passing `undefined` are the same thing: both get this default.\n\t\t\t\tinitialFocus={initialFocus ?? scrollSafeInitialFocus(() => popupRef.current)}\n\t\t\t\t{...props}\n\t\t\t\tref={ref}\n\t\t\t>\n\t\t\t\t{/* ModalPortalScope creates a scoped portal container for floating elements inside */}\n\t\t\t\t<ModalPortalScope>\n\t\t\t\t\t{children}\n\t\t\t\t</ModalPortalScope>\n\t\t\t</AlertDialogPrimitive.Popup>\n\t\t</AlertDialogPortal>\n\t);\n}\n\nfunction AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-header\"\n\t\t\tclassName={cn('flex flex-col gap-1 text-center sm:text-start', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"alert-dialog-footer\"\n\t\t\tclassName={cn('flex flex-col-reverse gap-3 sm:flex-row sm:flex-wrap sm:justify-end', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Title\n\t\t\tdata-slot=\"alert-dialog-title\"\n\t\t\tclassName={cn('text-lg font-semibold', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction AlertDialogDescription({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {\n\treturn (\n\t\t<AlertDialogPrimitive.Description\n\t\t\tdata-slot=\"alert-dialog-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\n/**\n * AlertDialogAction - A button that performs the primary action and closes the dialog.\n * Wraps AlertDialogPrimitive.Close with primary button styling.\n */\ntype AlertDialogCloseProps = React.ComponentProps<typeof AlertDialogPrimitive.Close> & {\n\t/** When true, merges props onto the child element instead of rendering a button */\n\tasChild?: boolean;\n};\n\nfunction AlertDialogAction({\n\tasChild,\n\tchildren,\n\trender,\n\tnativeButton,\n\tclassName,\n\t...props\n}: AlertDialogCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Close\n\t\t\tdata-slot=\"alert-dialog-action\"\n\t\t\t// Confirm and cancel labels are often long once translated, so they wrap rather than spill out of the dialog.\n\t\t\tclassName={cn(buttonVariants({ wrap: true }), className)}\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</AlertDialogPrimitive.Close>\n\t);\n}\n\n/**\n * AlertDialogCancel - A button that cancels the action and closes the dialog.\n * Wraps AlertDialogPrimitive.Close with outline button styling.\n */\nfunction AlertDialogCancel({\n\tasChild,\n\tchildren,\n\trender,\n\tnativeButton,\n\tclassName,\n\t...props\n}: AlertDialogCloseProps) {\n\tconst childRender = render === undefined && asChild && React.isValidElement(children) ? children : undefined;\n\n\treturn (\n\t\t<AlertDialogPrimitive.Close\n\t\t\tdata-slot=\"alert-dialog-cancel\"\n\t\t\tclassName={cn(buttonVariants({ variant: 'outline', wrap: true }), className)}\n\t\t\tnativeButton={nativeButton ?? (childRender ? true : undefined)}\n\t\t\trender={render ?? childRender}\n\t\t\t{...props}\n\t\t>\n\t\t\t{childRender ? undefined : children}\n\t\t</AlertDialogPrimitive.Close>\n\t);\n}\n\nexport {\n\tAlertDialog,\n\tAlertDialogAction,\n\tAlertDialogCancel,\n\tAlertDialogContent,\n\tAlertDialogDescription,\n\tAlertDialogFooter,\n\tAlertDialogHeader,\n\tAlertDialogOverlay,\n\tAlertDialogPortal,\n\tAlertDialogTitle,\n\tAlertDialogTrigger,\n};\n"],"mappings":";;;;;;;;;;;;;;;AAWA,SAAS,YAAY,EAAE,GAAG,SAAiE;CAC1F,OAAO,2CAACA,wCAAqB,MAAtB;EAA2B,aAAU;EAAe,GAAI;CAAQ;AACxE;AAOA,SAAS,mBAAmB,EAAE,SAAS,UAAU,QAAQ,cAAc,GAAG,SAAkC;CAC3G,MAAM,cAAc,WAAW,UAAa,WAAWC,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,wCAAqB,SAAtB;EACC,aAAU;EACV,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACE;AAEhC;AAEA,SAAS,kBAAkB,EAC1B,WAAW,eACX,GAAG,SACyD;CAC5D,MAAM,uEAAuC;CAC7C,MAAM,YAAY,kBAAkB,SAAa,iBAAiB,SAAa;CAE/E,MAAM,QAAQ;EACb,GAAI,MAAM,SAAS,CAAC;GACnB,uBAA8B;CAChC;CAEA,OACC,2CAACA,wCAAqB,QAAtB;EACC,aAAU;EACC;EACX,GAAI;EACG;CACP;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAqE;CAChH,OACC,2CAACA,wCAAqB,UAAtB;EACC,aAAU;EACV,WAAWE,iBACV,4LACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,mBAAmB,EAAE,WAAW,UAAU,cAAc,GAAG,SAAkE;CACrI,MAAM,WAAWD,MAAM,OAAuB,IAAI;CAClD,MAAM,MAAME,mCAAc,UAAU,MAAM,GAAG;CAC7C,OACC,4CAAC,mBAAD,aACC,2CAAC,oBAAD,CAAqB,IACrB,2CAACH,wCAAqB,OAAtB;EACC,aAAU;EACV,WAAWE,iBACV;;;kFAIA,SACD;EAGA,cAAc,gBAAgBE,mDAA6B,SAAS,OAAO;EAC3E,GAAI;EACC;YAGL,2CAACC,6CAAD,EACE,SACgB;CACS,EACV;AAErB;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAsC;CAChF,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWH,iBAAG,iDAAiD,SAAS;EACxE,GAAI;CACJ;AAEH;AAEA,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAsC;CAChF,OACC,2CAAC,OAAD;EACC,aAAU;EACV,WAAWA,iBAAG,uEAAuE,SAAS;EAC9F,GAAI;CACJ;AAEH;AAEA,SAAS,iBAAiB,EAAE,WAAW,GAAG,SAAkE;CAC3G,OACC,2CAACF,wCAAqB,OAAtB;EACC,aAAU;EACV,WAAWE,iBAAG,yBAAyB,SAAS;EAChD,GAAI;CACJ;AAEH;AAEA,SAAS,uBAAuB,EAC/B,WACA,GAAG,SAC8D;CACjE,OACC,2CAACF,wCAAqB,aAAtB;EACC,aAAU;EACV,WAAWE,iBAAG,iCAAiC,SAAS;EACxD,GAAI;CACJ;AAEH;AAWA,SAAS,kBAAkB,EAC1B,SACA,UACA,QACA,cACA,WACA,GAAG,SACsB;CACzB,MAAM,cAAc,WAAW,UAAa,WAAWD,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,wCAAqB,OAAtB;EACC,aAAU;EAEV,WAAWE,iBAAGI,yCAAe,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS;EACvD,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACA;AAE9B;;;;;AAMA,SAAS,kBAAkB,EAC1B,SACA,UACA,QACA,cACA,WACA,GAAG,SACsB;CACzB,MAAM,cAAc,WAAW,UAAa,WAAWL,MAAM,eAAe,QAAQ,IAAI,WAAW;CAEnG,OACC,2CAACD,wCAAqB,OAAtB;EACC,aAAU;EACV,WAAWE,iBAAGI,yCAAe;GAAE,SAAS;GAAW,MAAM;EAAK,CAAC,GAAG,SAAS;EAC3E,cAAc,iBAAiB,cAAc,OAAO;EACpD,QAAQ,UAAU;EAClB,GAAI;YAEH,cAAc,SAAY;CACA;AAE9B"}
|
|
@@ -9,7 +9,7 @@ type AlertDialogTriggerProps = React$1.ComponentProps<typeof AlertDialog$1.Trigg
|
|
|
9
9
|
declare function AlertDialogTrigger({ asChild, children, render, nativeButton, ...props }: AlertDialogTriggerProps): React$1.JSX.Element;
|
|
10
10
|
declare function AlertDialogPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): React$1.JSX.Element;
|
|
11
11
|
declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Backdrop>): React$1.JSX.Element;
|
|
12
|
-
declare function AlertDialogContent({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): React$1.JSX.Element;
|
|
12
|
+
declare function AlertDialogContent({ className, children, initialFocus, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): React$1.JSX.Element;
|
|
13
13
|
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
14
14
|
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
15
15
|
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): React$1.JSX.Element;
|
|
@@ -9,7 +9,7 @@ type AlertDialogTriggerProps = React$1.ComponentProps<typeof AlertDialog$1.Trigg
|
|
|
9
9
|
declare function AlertDialogTrigger({ asChild, children, render, nativeButton, ...props }: AlertDialogTriggerProps): React$1.JSX.Element;
|
|
10
10
|
declare function AlertDialogPortal({ container: containerProp, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): React$1.JSX.Element;
|
|
11
11
|
declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Backdrop>): React$1.JSX.Element;
|
|
12
|
-
declare function AlertDialogContent({ className, children, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): React$1.JSX.Element;
|
|
12
|
+
declare function AlertDialogContent({ className, children, initialFocus, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Popup>): React$1.JSX.Element;
|
|
13
13
|
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
14
14
|
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
15
15
|
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): React$1.JSX.Element;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
4
|
import { buttonVariants } from "./button.js";
|
|
5
|
+
import { t as useMergedRefs } from "../compose-refs-Mbma1O3M.js";
|
|
6
|
+
import { t as scrollSafeInitialFocus } from "../initial-focus-j2E0EnIx.js";
|
|
5
7
|
import * as React$1 from "react";
|
|
6
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
9
|
import { ModalPortalScope, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
@@ -41,32 +43,36 @@ function AlertDialogPortal({ container: containerProp, ...props }) {
|
|
|
41
43
|
function AlertDialogOverlay({ className, ...props }) {
|
|
42
44
|
return /* @__PURE__ */ jsx(AlertDialog$1.Backdrop, {
|
|
43
45
|
"data-slot": "alert-dialog-overlay",
|
|
44
|
-
className: cn("fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/
|
|
46
|
+
className: cn("fixed inset-0 z-[var(--z-layer-modal-backdrop)] bg-black/32 backdrop-blur-sm transition-opacity duration-(--duration-slow) data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", className),
|
|
45
47
|
...props
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
|
-
function AlertDialogContent({ className, children, ...props }) {
|
|
50
|
+
function AlertDialogContent({ className, children, initialFocus, ...props }) {
|
|
51
|
+
const popupRef = React$1.useRef(null);
|
|
52
|
+
const ref = useMergedRefs(popupRef, props.ref);
|
|
49
53
|
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialog$1.Popup, {
|
|
50
54
|
"data-slot": "alert-dialog-content",
|
|
51
55
|
className: cn(`bg-background fixed top-1/2 left-1/2 z-[var(--z-layer-modal-content)] grid max-h-[calc(100%-2rem)] w-full max-w-[calc(100%-2rem)]
|
|
52
|
-
-translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border p-6 shadow-lg
|
|
53
|
-
transition-[opacity,scale] duration-
|
|
56
|
+
-translate-x-1/2 -translate-y-1/2 grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto overscroll-contain rounded-xl border p-6 shadow-lg outline-hidden [overflow-wrap:break-word]
|
|
57
|
+
transition-[opacity,scale] duration-(--duration-slow) data-[ending-style]:scale-95 data-[starting-style]:scale-95
|
|
54
58
|
data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 sm:max-w-100`, className),
|
|
59
|
+
initialFocus: initialFocus ?? scrollSafeInitialFocus(() => popupRef.current),
|
|
55
60
|
...props,
|
|
61
|
+
ref,
|
|
56
62
|
children: /* @__PURE__ */ jsx(ModalPortalScope, { children })
|
|
57
63
|
})] });
|
|
58
64
|
}
|
|
59
65
|
function AlertDialogHeader({ className, ...props }) {
|
|
60
66
|
return /* @__PURE__ */ jsx("div", {
|
|
61
67
|
"data-slot": "alert-dialog-header",
|
|
62
|
-
className: cn("flex flex-col gap-1 text-center sm:text-
|
|
68
|
+
className: cn("flex flex-col gap-1 text-center sm:text-start", className),
|
|
63
69
|
...props
|
|
64
70
|
});
|
|
65
71
|
}
|
|
66
72
|
function AlertDialogFooter({ className, ...props }) {
|
|
67
73
|
return /* @__PURE__ */ jsx("div", {
|
|
68
74
|
"data-slot": "alert-dialog-footer",
|
|
69
|
-
className: cn("flex flex-col-reverse gap-3 sm:flex-row sm:justify-end", className),
|
|
75
|
+
className: cn("flex flex-col-reverse gap-3 sm:flex-row sm:flex-wrap sm:justify-end", className),
|
|
70
76
|
...props
|
|
71
77
|
});
|
|
72
78
|
}
|
|
@@ -88,7 +94,7 @@ function AlertDialogAction({ asChild, children, render, nativeButton, className,
|
|
|
88
94
|
const childRender = render === void 0 && asChild && React$1.isValidElement(children) ? children : void 0;
|
|
89
95
|
return /* @__PURE__ */ jsx(AlertDialog$1.Close, {
|
|
90
96
|
"data-slot": "alert-dialog-action",
|
|
91
|
-
className: cn(buttonVariants(), className),
|
|
97
|
+
className: cn(buttonVariants({ wrap: true }), className),
|
|
92
98
|
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
93
99
|
render: render ?? childRender,
|
|
94
100
|
...props,
|
|
@@ -103,7 +109,10 @@ function AlertDialogCancel({ asChild, children, render, nativeButton, className,
|
|
|
103
109
|
const childRender = render === void 0 && asChild && React$1.isValidElement(children) ? children : void 0;
|
|
104
110
|
return /* @__PURE__ */ jsx(AlertDialog$1.Close, {
|
|
105
111
|
"data-slot": "alert-dialog-cancel",
|
|
106
|
-
className: cn(buttonVariants({
|
|
112
|
+
className: cn(buttonVariants({
|
|
113
|
+
variant: "outline",
|
|
114
|
+
wrap: true
|
|
115
|
+
}), className),
|
|
107
116
|
nativeButton: nativeButton ?? (childRender ? true : void 0),
|
|
108
117
|
render: render ?? childRender,
|
|
109
118
|
...props,
|