@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluid-highlight-DxWeZ7iu.js","names":[],"sources":["../src/lib/motion/fluid-highlight.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useState } from 'react';\nimport { motion, useReducedMotion } from 'motion/react';\n\nimport { cn } from '../utils';\nimport { useSpringTiers } from './tuning';\n\ninterface Rect {\n\ttop: number;\n\tleft: number;\n\twidth: number;\n\theight: number;\n}\n\n/**\n * Base UI toggles a bare `data-highlighted` attribute; cmdk uses\n * `data-selected=\"true\"`; Toggle/ToggleGroup mark the active item with\n * `data-pressed`. The `:not([...=\"false\"])` guards cover components\n * like multi-select that render the attribute explicitly as \"false\".\n */\nconst TARGET_SELECTOR =\n\t'[data-highlighted]:not([data-highlighted=\"false\"]), [data-selected=\"true\"], [data-pressed]:not([data-pressed=\"false\"])';\nconst OBSERVED_ATTRIBUTES = ['data-highlighted', 'data-selected', 'data-pressed'];\n\n/**\n * Track the highlighted descendant of `container` and return its rect in the\n * container's padding-box coordinates. Updates on highlight changes, DOM\n * mutations, and any nested scroll (scroll doesn't bubble, so capture).\n */\nfunction useFluidHighlight(container: HTMLElement | null): { rect: Rect; visible: boolean } | null {\n\tconst [state, setState] = useState<{ rect: Rect; visible: boolean } | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!container) return;\n\n\t\tconst update = () => {\n\t\t\tconst target = container.querySelector<HTMLElement>(TARGET_SELECTOR);\n\t\t\tif (!target) {\n\t\t\t\tsetState((s) => (s ? { ...s, visible: false } : s));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst t = target.getBoundingClientRect();\n\t\t\tconst c = container.getBoundingClientRect();\n\t\t\tsetState({\n\t\t\t\trect: {\n\t\t\t\t\ttop: t.top - c.top - container.clientTop + container.scrollTop,\n\t\t\t\t\tleft: t.left - c.left - container.clientLeft,\n\t\t\t\t\twidth: t.width,\n\t\t\t\t\theight: t.height,\n\t\t\t\t},\n\t\t\t\tvisible: true,\n\t\t\t});\n\t\t};\n\n\t\tupdate();\n\t\tconst observer = new MutationObserver(update);\n\t\tobserver.observe(container, {\n\t\t\tattributes: true,\n\t\t\tattributeFilter: OBSERVED_ATTRIBUTES,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t});\n\t\t// Re-measure on resize too — items can reflow without attribute changes.\n\t\t// ResizeObserver is absent in jsdom and some embedded webviews.\n\t\tconst resizeObserver =\n\t\t\ttypeof ResizeObserver === 'undefined' ? null : new ResizeObserver(update);\n\t\tresizeObserver?.observe(container);\n\t\tcontainer.addEventListener('scroll', update, { capture: true, passive: true });\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t\tresizeObserver?.disconnect();\n\t\t\tcontainer.removeEventListener('scroll', update, { capture: true });\n\t\t};\n\t}, [container]);\n\n\treturn state;\n}\n\n/**\n * Traveling highlight for menu/list popups — slides under whichever item is\n * `[data-highlighted]` (Base UI) or `[data-selected=\"true\"]` (cmdk) instead of\n * flashing a per-item background. Render as the first child of a `relative`\n * container; positioned siblings paint on top. No props needed — it locates\n * its own parent as the tracking container.\n *\n * Appears/fades instantly at the target; travel uses the dial-tunable fast\n * spring tier. Reduced-motion renders an untransitioned fill.\n */\nexport function FluidHighlight({ className, inset = 0 }: { className?: string; inset?: number }) {\n\t// offsetParent is the containing block this span is positioned against —\n\t// measuring the target in the same coordinate space keeps rect math exact\n\t// whether the container itself scrolls or sits inside scrolled content.\n\tconst [container, setContainer] = useState<HTMLElement | null>(null);\n\tconst state = useFluidHighlight(container);\n\tconst reduce = useReducedMotion();\n\tconst tier = useSpringTiers().fast;\n\n\tconst mountRef = (el: HTMLElement | null) => {\n\t\tsetContainer((el?.offsetParent as HTMLElement | null) ?? el?.parentElement ?? null);\n\t};\n\n\tconst rect = state\n\t\t? {\n\t\t\t\ttop: state.rect.top + inset,\n\t\t\t\tleft: state.rect.left + inset,\n\t\t\t\twidth: state.rect.width - inset * 2,\n\t\t\t\theight: state.rect.height - inset * 2,\n\t\t\t}\n\t\t: null;\n\n\treturn (\n\t\t// Remount on idle→tracking so the pill fades in at the target instead of\n\t\t// sliding from (0,0) — `initial` only applies on mount.\n\t\t<motion.span\n\t\t\tkey={state ? 'tracking' : 'idle'}\n\t\t\tref={mountRef}\n\t\t\taria-hidden\n\t\t\tclassName={cn('pointer-events-none absolute rounded-sm bg-accent', className)}\n\t\t\tinitial={rect ? { ...rect, opacity: 0 } : false}\n\t\t\tanimate={rect ? { ...rect, opacity: state?.visible ? 1 : 0 } : { opacity: 0 }}\n\t\t\ttransition={\n\t\t\t\treduce ? { duration: 0 } : { type: 'spring', visualDuration: tier.duration, bounce: tier.bounce }\n\t\t\t}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;AAqBA,MAAM,kBACL;AACD,MAAM,sBAAsB;CAAC;CAAoB;CAAiB;AAAc;;;;;;AAOhF,SAAS,kBAAkB,WAAwE;CAClG,MAAM,CAAC,OAAO,YAAY,SAAkD,IAAI;CAEhF,gBAAgB;EACf,IAAI,CAAC,WAAW;EAEhB,MAAM,eAAe;GACpB,MAAM,SAAS,UAAU,cAA2B,eAAe;GACnE,IAAI,CAAC,QAAQ;IACZ,UAAU,MAAO,IAAI;KAAE,GAAG;KAAG,SAAS;IAAM,IAAI,CAAE;IAClD;GACD;GACA,MAAM,IAAI,OAAO,sBAAsB;GACvC,MAAM,IAAI,UAAU,sBAAsB;GAC1C,SAAS;IACR,MAAM;KACL,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,YAAY,UAAU;KACrD,MAAM,EAAE,OAAO,EAAE,OAAO,UAAU;KAClC,OAAO,EAAE;KACT,QAAQ,EAAE;IACX;IACA,SAAS;GACV,CAAC;EACF;EAEA,OAAO;EACP,MAAM,WAAW,IAAI,iBAAiB,MAAM;EAC5C,SAAS,QAAQ,WAAW;GAC3B,YAAY;GACZ,iBAAiB;GACjB,WAAW;GACX,SAAS;EACV,CAAC;EAGD,MAAM,iBACL,OAAO,mBAAmB,cAAc,OAAO,IAAI,eAAe,MAAM;EACzE,gBAAgB,QAAQ,SAAS;EACjC,UAAU,iBAAiB,UAAU,QAAQ;GAAE,SAAS;GAAM,SAAS;EAAK,CAAC;EAC7E,aAAa;GACZ,SAAS,WAAW;GACpB,gBAAgB,WAAW;GAC3B,UAAU,oBAAoB,UAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;EAClE;CACD,GAAG,CAAC,SAAS,CAAC;CAEd,OAAO;AACR;;;;;;;;;;;AAYA,SAAgB,eAAe,EAAE,WAAW,QAAQ,KAA6C;CAIhG,MAAM,CAAC,WAAW,gBAAgB,SAA6B,IAAI;CACnE,MAAM,QAAQ,kBAAkB,SAAS;CACzC,MAAM,SAAS,iBAAiB;CAChC,MAAM,OAAO,eAAe,CAAC,CAAC;CAE9B,MAAM,YAAY,OAA2B;EAC5C,aAAc,IAAI,gBAAuC,IAAI,iBAAiB,IAAI;CACnF;CAEA,MAAM,OAAO,QACV;EACA,KAAK,MAAM,KAAK,MAAM;EACtB,MAAM,MAAM,KAAK,OAAO;EACxB,OAAO,MAAM,KAAK,QAAQ,QAAQ;EAClC,QAAQ,MAAM,KAAK,SAAS,QAAQ;CACrC,IACC;CAEH,OAGC,oBAAC,OAAO,MAAR;EAEC,KAAK;EACL;EACA,WAAW,GAAG,qDAAqD,SAAS;EAC5E,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS;EAAE,IAAI;EAC1C,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS,OAAO,UAAU,IAAI;EAAE,IAAI,EAAE,SAAS,EAAE;EAC5E,YACC,SAAS,EAAE,UAAU,EAAE,IAAI;GAAE,MAAM;GAAU,gBAAgB,KAAK;GAAU,QAAQ,KAAK;EAAO;CAEjG,GATK,QAAQ,aAAa,MAS1B;AAEH"}
|
|
@@ -361,7 +361,7 @@ declare function useCardReady(): {
|
|
|
361
361
|
};
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/stack/stack-viewport.d.ts
|
|
364
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> |
|
|
364
|
+
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | React$2.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/stack/stack-backdrop.d.ts
|
|
367
367
|
type StackBackdropProps = {
|
|
@@ -510,7 +510,7 @@ interface DeferredCardContentProps {
|
|
|
510
510
|
* </DeferredCardContent>
|
|
511
511
|
* ```
|
|
512
512
|
*/
|
|
513
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined
|
|
513
|
+
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/stack/use-stack-responsive.d.ts
|
|
516
516
|
type UseStackResponsiveOptions = MobileConfig;
|
|
@@ -690,4 +690,4 @@ declare function createReducedMotionVariants(): Variants;
|
|
|
690
690
|
declare const reducedMotionBackdropVariants: Variants;
|
|
691
691
|
//#endregion
|
|
692
692
|
export { useStackLayoutMode as $, useIsMobile as A, StackHeaderSlot as B, isCardVisible as C, UsePeekGesturesResult as D, UsePeekGesturesOptions as E, StackCardProps as F, CardStackProvider as G, StackBackdrop as H, UseStackGesturesResult as I, useCardReady as J, useCardIndex as K, useStackGestures as L, DeferredCardContent as M, DeferredCardContentProps as N, usePeekGestures as O, StackCard as P, useStackContext as Q, StackHeader as R, getVisibleCardIndices as S, parseWidthToPixels as T, StackBackdropProps as U, StackHeaderSlotProps as V, CardStackViewport as W, useIsTopCard as X, useCardStack as Y, useStackCards as Z, getCardOffset as _, PushOptions as _t, createExitTransition as a, CardPushOptions as at, getResponsiveCardOffset as b, StackState as bt, peekDragSpring as c, CardSpec as ct, reducedMotionBackdropVariants as d, CardStackViewportProps as dt, AnimationConfig as et, snapBackSpring as f, DismissOptions as ft, calculateResponsiveOffset as g, PeekGestureConfig as gt, ResponsiveOffsetResult as h, MobileConfig as ht, createEnterTransition as i, CardInjectedProps as it, useStackResponsive as j, UseStackResponsiveResult as k, peekHoverSpring as l, CardStackApi as lt, ResponsiveOffsetConfig as m, LayoutMode as mt, backdropVariants as n, CardComponent as nt, createOffsetTransition as o, CardRouteDefinition as ot, swipeDismissTransition as p, GestureConfig as pt, useCardInjectedProps as q, createCardVariants as r, CardId as rt, createReducedMotionVariants as s, CardRouteMap as st, DEFAULT_ANIMATION_CONFIG as t, BackdropConfig as tt, peekSlideSpring as u, CardStackProviderProps as ut, getCardZIndex as v, StackAction as vt, normalizeWidth as w, getSideBySideOffset as x, getCascadeOffset as y, StackContextValue as yt, StackHeaderProps as z };
|
|
693
|
-
//# sourceMappingURL=index-
|
|
693
|
+
//# sourceMappingURL=index-B7cT7gZU.d.cts.map
|
|
@@ -361,7 +361,7 @@ declare function useCardReady(): {
|
|
|
361
361
|
};
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/stack/stack-viewport.d.ts
|
|
364
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> |
|
|
364
|
+
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | React$2.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/stack/stack-backdrop.d.ts
|
|
367
367
|
type StackBackdropProps = {
|
|
@@ -510,7 +510,7 @@ interface DeferredCardContentProps {
|
|
|
510
510
|
* </DeferredCardContent>
|
|
511
511
|
* ```
|
|
512
512
|
*/
|
|
513
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined
|
|
513
|
+
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/stack/use-stack-responsive.d.ts
|
|
516
516
|
type UseStackResponsiveOptions = MobileConfig;
|
|
@@ -690,4 +690,4 @@ declare function createReducedMotionVariants(): Variants;
|
|
|
690
690
|
declare const reducedMotionBackdropVariants: Variants;
|
|
691
691
|
//#endregion
|
|
692
692
|
export { useStackLayoutMode as $, useIsMobile as A, StackHeaderSlot as B, isCardVisible as C, UsePeekGesturesResult as D, UsePeekGesturesOptions as E, StackCardProps as F, CardStackProvider as G, StackBackdrop as H, UseStackGesturesResult as I, useCardReady as J, useCardIndex as K, useStackGestures as L, DeferredCardContent as M, DeferredCardContentProps as N, usePeekGestures as O, StackCard as P, useStackContext as Q, StackHeader as R, getVisibleCardIndices as S, parseWidthToPixels as T, StackBackdropProps as U, StackHeaderSlotProps as V, CardStackViewport as W, useIsTopCard as X, useCardStack as Y, useStackCards as Z, getCardOffset as _, PushOptions as _t, createExitTransition as a, CardPushOptions as at, getResponsiveCardOffset as b, StackState as bt, peekDragSpring as c, CardSpec as ct, reducedMotionBackdropVariants as d, CardStackViewportProps as dt, AnimationConfig as et, snapBackSpring as f, DismissOptions as ft, calculateResponsiveOffset as g, PeekGestureConfig as gt, ResponsiveOffsetResult as h, MobileConfig as ht, createEnterTransition as i, CardInjectedProps as it, useStackResponsive as j, UseStackResponsiveResult as k, peekHoverSpring as l, CardStackApi as lt, ResponsiveOffsetConfig as m, LayoutMode as mt, backdropVariants as n, CardComponent as nt, createOffsetTransition as o, CardRouteDefinition as ot, swipeDismissTransition as p, GestureConfig as pt, useCardInjectedProps as q, createCardVariants as r, CardId as rt, createReducedMotionVariants as s, CardRouteMap as st, DEFAULT_ANIMATION_CONFIG as t, BackdropConfig as tt, peekSlideSpring as u, CardStackProviderProps as ut, getCardZIndex as v, StackAction as vt, normalizeWidth as w, getSideBySideOffset as x, getCascadeOffset as y, StackContextValue as yt, StackHeaderProps as z };
|
|
693
|
-
//# sourceMappingURL=index-
|
|
693
|
+
//# sourceMappingURL=index-B7cT7gZU.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
//#region src/components/toast/toast-
|
|
2
|
-
|
|
1
|
+
//#region src/components/toast/toast-card.d.ts
|
|
2
|
+
/** What every toast variant takes: `toast.error(props)`, `toast.success(props)` and so on. */
|
|
3
|
+
interface ToastProps {
|
|
3
4
|
message: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
action?: {
|
|
@@ -8,42 +9,21 @@ interface ToastErrorProps {
|
|
|
8
9
|
};
|
|
9
10
|
onDismiss?: () => void;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/toast-error.d.ts
|
|
14
|
+
type ToastErrorProps = ToastProps;
|
|
11
15
|
declare function showErrorToast(props: ToastErrorProps): string | number;
|
|
12
16
|
//#endregion
|
|
13
17
|
//#region src/components/toast/toast-info.d.ts
|
|
14
|
-
|
|
15
|
-
message: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
action?: {
|
|
18
|
-
label: string;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
};
|
|
21
|
-
onDismiss?: () => void;
|
|
22
|
-
}
|
|
18
|
+
type ToastInfoProps = ToastProps;
|
|
23
19
|
declare function showInfoToast(props: ToastInfoProps): string | number;
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/components/toast/toast-success.d.ts
|
|
26
|
-
|
|
27
|
-
message: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
action?: {
|
|
30
|
-
label: string;
|
|
31
|
-
onClick: () => void;
|
|
32
|
-
};
|
|
33
|
-
onDismiss?: () => void;
|
|
34
|
-
}
|
|
22
|
+
type ToastSuccessProps = ToastProps;
|
|
35
23
|
declare function showSuccessToast(props: ToastSuccessProps): string | number;
|
|
36
24
|
//#endregion
|
|
37
25
|
//#region src/components/toast/toast-warning.d.ts
|
|
38
|
-
|
|
39
|
-
message: string;
|
|
40
|
-
description?: string;
|
|
41
|
-
action?: {
|
|
42
|
-
label: string;
|
|
43
|
-
onClick: () => void;
|
|
44
|
-
};
|
|
45
|
-
onDismiss?: () => void;
|
|
46
|
-
}
|
|
26
|
+
type ToastWarningProps = ToastProps;
|
|
47
27
|
declare function showWarningToast(props: ToastWarningProps): string | number;
|
|
48
28
|
//#endregion
|
|
49
29
|
//#region src/components/toast/index.d.ts
|
|
@@ -54,5 +34,5 @@ declare const toast: {
|
|
|
54
34
|
warning: typeof showWarningToast;
|
|
55
35
|
};
|
|
56
36
|
//#endregion
|
|
57
|
-
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t };
|
|
58
|
-
//# sourceMappingURL=index-
|
|
37
|
+
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t, ToastProps as u };
|
|
38
|
+
//# sourceMappingURL=index-BQZxmMpw.d.cts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
//#region src/components/toast/toast-
|
|
2
|
-
|
|
1
|
+
//#region src/components/toast/toast-card.d.ts
|
|
2
|
+
/** What every toast variant takes: `toast.error(props)`, `toast.success(props)` and so on. */
|
|
3
|
+
interface ToastProps {
|
|
3
4
|
message: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
action?: {
|
|
@@ -8,42 +9,21 @@ interface ToastErrorProps {
|
|
|
8
9
|
};
|
|
9
10
|
onDismiss?: () => void;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/toast-error.d.ts
|
|
14
|
+
type ToastErrorProps = ToastProps;
|
|
11
15
|
declare function showErrorToast(props: ToastErrorProps): string | number;
|
|
12
16
|
//#endregion
|
|
13
17
|
//#region src/components/toast/toast-info.d.ts
|
|
14
|
-
|
|
15
|
-
message: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
action?: {
|
|
18
|
-
label: string;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
};
|
|
21
|
-
onDismiss?: () => void;
|
|
22
|
-
}
|
|
18
|
+
type ToastInfoProps = ToastProps;
|
|
23
19
|
declare function showInfoToast(props: ToastInfoProps): string | number;
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/components/toast/toast-success.d.ts
|
|
26
|
-
|
|
27
|
-
message: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
action?: {
|
|
30
|
-
label: string;
|
|
31
|
-
onClick: () => void;
|
|
32
|
-
};
|
|
33
|
-
onDismiss?: () => void;
|
|
34
|
-
}
|
|
22
|
+
type ToastSuccessProps = ToastProps;
|
|
35
23
|
declare function showSuccessToast(props: ToastSuccessProps): string | number;
|
|
36
24
|
//#endregion
|
|
37
25
|
//#region src/components/toast/toast-warning.d.ts
|
|
38
|
-
|
|
39
|
-
message: string;
|
|
40
|
-
description?: string;
|
|
41
|
-
action?: {
|
|
42
|
-
label: string;
|
|
43
|
-
onClick: () => void;
|
|
44
|
-
};
|
|
45
|
-
onDismiss?: () => void;
|
|
46
|
-
}
|
|
26
|
+
type ToastWarningProps = ToastProps;
|
|
47
27
|
declare function showWarningToast(props: ToastWarningProps): string | number;
|
|
48
28
|
//#endregion
|
|
49
29
|
//#region src/components/toast/index.d.ts
|
|
@@ -54,5 +34,5 @@ declare const toast: {
|
|
|
54
34
|
warning: typeof showWarningToast;
|
|
55
35
|
};
|
|
56
36
|
//#endregion
|
|
57
|
-
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t };
|
|
58
|
-
//# sourceMappingURL=index-
|
|
37
|
+
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t, ToastProps as u };
|
|
38
|
+
//# sourceMappingURL=index-BQZxmMpw.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Tooltip } from "./tooltip-
|
|
2
|
-
import { t as Alert } from "./alert-
|
|
1
|
+
import { t as Tooltip } from "./tooltip-Fqb4JK-g.cjs";
|
|
2
|
+
import { t as Alert } from "./alert-CJ4Qyk6W.cjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
//#region src/components/ai/text-shimmer.d.ts
|
|
5
5
|
type TextShimmerProps = React$1.ComponentProps<'span'> & {
|
|
@@ -29,8 +29,8 @@ type AgentLoaderProps = {
|
|
|
29
29
|
text?: string;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Agent loading indicator. Pixel variants (drive / dots / orbit)
|
|
33
|
-
*
|
|
32
|
+
* Agent loading indicator. Pixel variants (drive / dots / orbit) give the
|
|
33
|
+
* agent a distinct presence; simple variants cover common chat spinners.
|
|
34
34
|
*/
|
|
35
35
|
declare function AgentLoader({ variant, label, showElapsed, elapsedMs, size, className, text }: AgentLoaderProps): React$1.JSX.Element;
|
|
36
36
|
/** @deprecated Prefer AgentLoader — alias kept for prompt-kit familiarity. */
|
|
@@ -116,9 +116,10 @@ type MarkdownProps = React$1.ComponentProps<'div'> & {
|
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* Lightweight markdown → HTML without hard deps.
|
|
119
|
-
* Handles paragraphs
|
|
120
|
-
*
|
|
121
|
-
*
|
|
119
|
+
* Handles paragraphs (consecutive lines stay together, joined with line
|
|
120
|
+
* breaks), headings, bold, italic, inline code, fenced code, links, lists.
|
|
121
|
+
* Tables and footnotes are outside this subset: hosts that need full GFM wrap
|
|
122
|
+
* their own marked+DOMPurify pipeline.
|
|
122
123
|
*/
|
|
123
124
|
declare function renderBasicMarkdown(source: string): string;
|
|
124
125
|
/**
|
|
@@ -303,7 +304,7 @@ type ThinkingTraceProps = {
|
|
|
303
304
|
visibleCount?: number;
|
|
304
305
|
};
|
|
305
306
|
/**
|
|
306
|
-
*
|
|
307
|
+
* Expandable agent trace with mode variants.
|
|
307
308
|
* Production hosts pass rows + streaming; demos can drive visibleCount.
|
|
308
309
|
*/
|
|
309
310
|
declare function ThinkingTrace({ mode, activeLabel, doneLabel, durationMs, isStreaming, rows, query, open: openProp, onOpenChange, className, visibleCount }: ThinkingTraceProps): React$1.JSX.Element;
|
|
@@ -459,9 +460,11 @@ type SourceProps = {
|
|
|
459
460
|
description?: string;
|
|
460
461
|
favicon?: string;
|
|
461
462
|
domain?: string;
|
|
463
|
+
/** Shows the title instead of the host. `Sources` sets it when several chips share a host. */
|
|
464
|
+
showTitle?: boolean;
|
|
462
465
|
className?: string;
|
|
463
466
|
};
|
|
464
|
-
declare function Source({ href, title, description, favicon, domain, className }: SourceProps): React$1.JSX.Element;
|
|
467
|
+
declare function Source({ href, title, description, favicon, domain, showTitle, className }: SourceProps): React$1.JSX.Element;
|
|
465
468
|
type SourcesProps = {
|
|
466
469
|
children: React$1.ReactNode;
|
|
467
470
|
className?: string;
|
|
@@ -469,6 +472,12 @@ type SourcesProps = {
|
|
|
469
472
|
};
|
|
470
473
|
declare function Sources({ children, className, label }: SourcesProps): React$1.JSX.Element;
|
|
471
474
|
//#endregion
|
|
475
|
+
//#region src/components/ai/line-diff.d.ts
|
|
476
|
+
type DiffLine = {
|
|
477
|
+
type: 'context' | 'add' | 'del';
|
|
478
|
+
text: string;
|
|
479
|
+
};
|
|
480
|
+
//#endregion
|
|
472
481
|
//#region src/components/ai/inline-diff.d.ts
|
|
473
482
|
type InlineDiffProps = {
|
|
474
483
|
source: InlineDiffSource;
|
|
@@ -476,11 +485,14 @@ type InlineDiffProps = {
|
|
|
476
485
|
/** Max lines shown before collapse. */
|
|
477
486
|
maxLines?: number;
|
|
478
487
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
488
|
+
/**
|
|
489
|
+
* Line diff between two texts, in order: unchanged lines as `context`, removed
|
|
490
|
+
* lines as `del`, new lines as `add`. A line that also appears elsewhere is
|
|
491
|
+
* matched by position, so a repeated line is shown as added or removed rather
|
|
492
|
+
* than hidden. The common head and tail are trimmed before the comparison, and
|
|
493
|
+
* a long file is compared by its edits rather than by a table of every pair of
|
|
494
|
+
* lines, so a few edits stay cheap however far apart they are.
|
|
495
|
+
*/
|
|
484
496
|
declare function lineDiff(before: string, after: string): DiffLine[];
|
|
485
497
|
declare function InlineDiff({ source, className, maxLines }: InlineDiffProps): React$1.JSX.Element;
|
|
486
498
|
//#endregion
|
|
@@ -585,6 +597,7 @@ type ContextRingProps = {
|
|
|
585
597
|
stroke?: number;
|
|
586
598
|
className?: string;
|
|
587
599
|
};
|
|
600
|
+
/** `1048576` is "1M", `999500` is "999.5K" and `9960` is "10K": rounding rolls up to the next unit instead of printing "1000K" or "10.0K". */
|
|
588
601
|
declare function formatCompact(n: number): string;
|
|
589
602
|
/**
|
|
590
603
|
* Compact context-window meter: linear segmented bar, bent into a ring.
|
|
@@ -706,8 +719,8 @@ type FileUploadProps = {
|
|
|
706
719
|
accept?: string;
|
|
707
720
|
disabled?: boolean;
|
|
708
721
|
className?: string;
|
|
709
|
-
/**
|
|
710
|
-
variant?: 'dropzone' | 'button';
|
|
722
|
+
/** `compact` renders a single-row dropzone; `button` renders a trigger only. */
|
|
723
|
+
variant?: 'dropzone' | 'compact' | 'button';
|
|
711
724
|
children?: React$1.ReactNode;
|
|
712
725
|
};
|
|
713
726
|
/**
|
|
@@ -729,9 +742,312 @@ type AiImageProps = Omit<React$1.ComponentProps<'img'>, 'src'> & {
|
|
|
729
742
|
*/
|
|
730
743
|
declare function AiImage({ data, mimeType, src, bytes, alt, className, ...props }: AiImageProps): React$1.JSX.Element | null;
|
|
731
744
|
//#endregion
|
|
745
|
+
//#region src/components/ai/mark-tile.d.ts
|
|
746
|
+
type MarkTileProps = React$1.ComponentProps<'span'> & {
|
|
747
|
+
/** 16px (trace rows), 24px (lists), or 32px (prompts and dialogs). */
|
|
748
|
+
size?: 'xs' | 'sm' | 'md';
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* Square tile that frames an app mark or glyph. The edge is an inset outline
|
|
752
|
+
* rather than a border, so pale marks keep a shape on any surface without the
|
|
753
|
+
* tile growing.
|
|
754
|
+
*/
|
|
755
|
+
declare function MarkTile({ size, className, children, ...props }: MarkTileProps): React$1.JSX.Element;
|
|
756
|
+
/**
|
|
757
|
+
* Enter treatment for icons that appear on a state change (a check replacing a
|
|
758
|
+
* spinner, a settled chip). Uses `@starting-style` so it needs no keyframes.
|
|
759
|
+
*/
|
|
760
|
+
declare const iconEnterClass = "transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] starting:scale-25 starting:opacity-0 starting:blur-[4px] motion-reduce:transition-none";
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region src/components/ai/tool-trace.d.ts
|
|
763
|
+
type ToolTraceStatus = 'pending' | 'running' | 'done';
|
|
764
|
+
type ToolTraceStep = {
|
|
765
|
+
id: string;
|
|
766
|
+
label: React$1.ReactNode;
|
|
767
|
+
/** Brand or tool mark rendered inside a 16px tile. */
|
|
768
|
+
icon?: React$1.ReactNode;
|
|
769
|
+
status?: ToolTraceStatus;
|
|
770
|
+
};
|
|
771
|
+
type ToolTraceProps = React$1.ComponentProps<'ol'> & {
|
|
772
|
+
/** Group heading, e.g. "Read tools". */
|
|
773
|
+
title?: React$1.ReactNode;
|
|
774
|
+
/** Heading glyph; defaults to an open book. */
|
|
775
|
+
icon?: React$1.ReactNode;
|
|
776
|
+
steps: ToolTraceStep[];
|
|
777
|
+
};
|
|
778
|
+
/**
|
|
779
|
+
* Quiet tool-call trace: a heading row followed by one row per call, joined by
|
|
780
|
+
* short connectors. Each row morphs from spinner to check as the call settles.
|
|
781
|
+
*/
|
|
782
|
+
declare function ToolTrace({ title, icon, steps, className, ...props }: ToolTraceProps): React$1.JSX.Element;
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region src/components/ai/thinking-status.d.ts
|
|
785
|
+
type ThinkingStatusProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
786
|
+
label?: React$1.ReactNode;
|
|
787
|
+
/** Seconds already elapsed when the status mounts. */
|
|
788
|
+
elapsedSeconds?: number;
|
|
789
|
+
/** Token count already spent when the status mounts. */
|
|
790
|
+
tokens?: number;
|
|
791
|
+
/**
|
|
792
|
+
* When true (default), the timer counts up from `elapsedSeconds` every
|
|
793
|
+
* second. Pass false to render exactly the host's `elapsedSeconds` / `tokens`.
|
|
794
|
+
*/
|
|
795
|
+
live?: boolean;
|
|
796
|
+
/** Simulated token growth per tick for demos; the host normally streams real counts. */
|
|
797
|
+
tokensPerTick?: number;
|
|
798
|
+
};
|
|
799
|
+
declare function formatElapsed(totalSeconds: number): string;
|
|
800
|
+
/**
|
|
801
|
+
* Compact in-flight status: pulsing glyph, label, elapsed time, and token
|
|
802
|
+
* spend. Digits are tabular so the row never jitters while it ticks.
|
|
803
|
+
*/
|
|
804
|
+
declare function ThinkingStatus({ label, elapsedSeconds, tokens, live, tokensPerTick, className, ...props }: ThinkingStatusProps): React$1.JSX.Element;
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region src/components/ai/prompt-input-tray.d.ts
|
|
807
|
+
type PromptInputTrayTone = 'neutral' | 'info' | 'warning' | 'danger';
|
|
808
|
+
type PromptInputTrayProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
809
|
+
tone?: PromptInputTrayTone;
|
|
810
|
+
/** Row above the composer: usage, errors, a reply target, the active agent. */
|
|
811
|
+
header?: React$1.ReactNode;
|
|
812
|
+
/** Row below the composer: disclaimers, keyboard hints, sync status. */
|
|
813
|
+
footer?: React$1.ReactNode;
|
|
814
|
+
/** Usually a `PromptInput`. */
|
|
815
|
+
children: React$1.ReactNode;
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* Tinted shell that docks status rows onto a composer so the two read as one
|
|
819
|
+
* surface. The tray is 18px with a 4px inset, so the composer inside is
|
|
820
|
+
* rounded to 14px (concentric). Tone tints the tray, its edge, and the icon in
|
|
821
|
+
* each row; text stays at full contrast. Renders the composer alone when there
|
|
822
|
+
* is nothing to dock.
|
|
823
|
+
*/
|
|
824
|
+
declare function PromptInputTray({ tone, header, footer, children, className, style, ...props }: PromptInputTrayProps): React$1.JSX.Element;
|
|
825
|
+
type PromptInputTrayRowProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
826
|
+
icon?: React$1.ReactNode;
|
|
827
|
+
children: React$1.ReactNode;
|
|
828
|
+
/** Trailing controls, e.g. an action link or a dismiss button. */
|
|
829
|
+
actions?: React$1.ReactNode;
|
|
830
|
+
};
|
|
831
|
+
/** One line inside a tray: tone-colored icon, text, and trailing actions. */
|
|
832
|
+
declare function PromptInputTrayRow({ icon, children, actions, className, ...props }: PromptInputTrayRowProps): React$1.JSX.Element;
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region src/components/ai/usage-notice.d.ts
|
|
835
|
+
/** Tray tone for a budget share: calm below 75%, warning to 90%, danger beyond. */
|
|
836
|
+
declare function usageTone(percent: number): PromptInputTrayTone;
|
|
837
|
+
type UsageNoticeProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
838
|
+
/** Share of the plan budget already spent, 0-100. */
|
|
839
|
+
percent: number;
|
|
840
|
+
/** Overrides the default "You've used N% of your tokens." sentence. */
|
|
841
|
+
message?: React$1.ReactNode;
|
|
842
|
+
actionLabel?: React$1.ReactNode;
|
|
843
|
+
actionHref?: string;
|
|
844
|
+
onAction?: () => void;
|
|
845
|
+
onDismiss?: () => void;
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* Plan-budget line for the header of a `PromptInputTray`:
|
|
849
|
+
*
|
|
850
|
+
* ```tsx
|
|
851
|
+
* <PromptInputTray tone={usageTone(80)} header={<UsageNotice percent={80} onDismiss={dismiss} />}>
|
|
852
|
+
* <PromptInput … />
|
|
853
|
+
* </PromptInputTray>
|
|
854
|
+
* ```
|
|
855
|
+
*/
|
|
856
|
+
declare function UsageNotice({ percent, message, actionLabel, actionHref, onAction, onDismiss, ...props }: UsageNoticeProps): React$1.JSX.Element;
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region src/components/ai/model-selector.d.ts
|
|
859
|
+
/** Prices in currency units per one million tokens. */
|
|
860
|
+
type AiModelPricing = {
|
|
861
|
+
input: number;
|
|
862
|
+
output: number;
|
|
863
|
+
cachedInput?: number;
|
|
864
|
+
/** ISO 4217 code. Defaults to USD. */
|
|
865
|
+
currency?: string;
|
|
866
|
+
};
|
|
867
|
+
type AiModelLevel = {
|
|
868
|
+
id: string;
|
|
869
|
+
/** Short name shown beside the model, e.g. "Medium" or "High thinking". */
|
|
870
|
+
label: string;
|
|
871
|
+
description?: string;
|
|
872
|
+
/** Overrides the model's pricing when this level bills differently. */
|
|
873
|
+
pricing?: AiModelPricing;
|
|
874
|
+
};
|
|
875
|
+
type AiModelTag = 'new' | 'free' | 'beta' | 'preview' | 'deprecated';
|
|
876
|
+
type AiModel = {
|
|
877
|
+
id: string;
|
|
878
|
+
name: string;
|
|
879
|
+
/** Provider or family name; used for grouping and search. */
|
|
880
|
+
provider: string;
|
|
881
|
+
/** Provider mark or model glyph. */
|
|
882
|
+
icon?: React$1.ReactNode;
|
|
883
|
+
description?: string;
|
|
884
|
+
/** Reasoning or effort levels, in ascending order. */
|
|
885
|
+
levels?: AiModelLevel[];
|
|
886
|
+
defaultLevel?: string;
|
|
887
|
+
pricing?: AiModelPricing;
|
|
888
|
+
contextWindow?: number;
|
|
889
|
+
tags?: AiModelTag[];
|
|
890
|
+
disabled?: boolean;
|
|
891
|
+
/** Why the model can't be chosen, e.g. "Requires the Team plan". */
|
|
892
|
+
disabledReason?: string;
|
|
893
|
+
};
|
|
894
|
+
type ModelSelection = {
|
|
895
|
+
modelId: string;
|
|
896
|
+
levelId?: string;
|
|
897
|
+
};
|
|
898
|
+
type ModelSelectorProps = {
|
|
899
|
+
models: AiModel[];
|
|
900
|
+
value: ModelSelection;
|
|
901
|
+
onValueChange: (value: ModelSelection) => void;
|
|
902
|
+
/** Routers or defaults listed first, without a heading (e.g. "Auto"). */
|
|
903
|
+
pinnedIds?: string[];
|
|
904
|
+
recentIds?: string[];
|
|
905
|
+
recommendedIds?: string[];
|
|
906
|
+
/** How cost appears in each row. `meter` shows relative cost; `price` shows input and output per million. */
|
|
907
|
+
priceDisplay?: 'meter' | 'price' | 'none';
|
|
908
|
+
/** Lets people switch between meter and price from the search row. Defaults to true when any model has pricing. */
|
|
909
|
+
allowPriceToggle?: boolean;
|
|
910
|
+
disabled?: boolean;
|
|
911
|
+
align?: 'start' | 'center' | 'end';
|
|
912
|
+
side?: 'top' | 'bottom';
|
|
913
|
+
triggerClassName?: string;
|
|
914
|
+
contentClassName?: string;
|
|
915
|
+
/** Accessible label prefix for the trigger. Defaults to "Model". */
|
|
916
|
+
label?: string;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Relative cost as a row of building blocks: one to four filled in the accent
|
|
920
|
+
* color, stepping up in height like a stack being built. Discrete tiers read
|
|
921
|
+
* faster than a continuous bar and keep the list calm while scanning.
|
|
922
|
+
*/
|
|
923
|
+
declare function CostBlocks({ tier }: {
|
|
924
|
+
tier: number;
|
|
925
|
+
}): React$1.JSX.Element;
|
|
926
|
+
/**
|
|
927
|
+
* Model picker for composers: searchable list with pinned routers, recent and
|
|
928
|
+
* recommended sections, per-provider groups, reasoning levels, relative cost
|
|
929
|
+
* or per-million pricing, tags, and a side card for the highlighted model
|
|
930
|
+
* with its reasoning levels.
|
|
931
|
+
* Controlled: the host owns the selection and persists recents.
|
|
932
|
+
*/
|
|
933
|
+
declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
|
|
934
|
+
//#endregion
|
|
935
|
+
//#region src/components/ai/prompt-input-attachment.d.ts
|
|
936
|
+
type PromptInputAttachmentStatus = 'uploading' | 'ready' | 'error';
|
|
937
|
+
type PromptInputAttachmentProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
938
|
+
name: string;
|
|
939
|
+
/** Secondary line, e.g. "PDF · 2.4 MB" or an error reason. */
|
|
940
|
+
meta?: React$1.ReactNode;
|
|
941
|
+
/** Image preview URL. Falls back to `icon`, then a document glyph. */
|
|
942
|
+
previewUrl?: string;
|
|
943
|
+
icon?: React$1.ReactNode;
|
|
944
|
+
status?: PromptInputAttachmentStatus;
|
|
945
|
+
onRemove?: () => void;
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* Staged file chip shown inside a composer before sending: thumbnail or icon,
|
|
949
|
+
* name, meta, upload state, and remove.
|
|
950
|
+
*/
|
|
951
|
+
declare function PromptInputAttachment({ name, meta, previewUrl, icon, status, onRemove, className, ...props }: PromptInputAttachmentProps): React$1.JSX.Element;
|
|
952
|
+
type PromptInputAttachmentsProps = React$1.ComponentProps<'div'>;
|
|
953
|
+
/** Wrapping row of attachment chips, placed above the textarea. */
|
|
954
|
+
declare function PromptInputAttachments({ className, ...props }: PromptInputAttachmentsProps): React$1.JSX.Element;
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region src/components/ai/ask-card.d.ts
|
|
957
|
+
type AskOption = {
|
|
958
|
+
id: string;
|
|
959
|
+
label: React$1.ReactNode;
|
|
960
|
+
};
|
|
961
|
+
type AskQuestion = {
|
|
962
|
+
id: string;
|
|
963
|
+
question: React$1.ReactNode;
|
|
964
|
+
options: AskOption[];
|
|
965
|
+
/** Adds a free-text "Something else" row. Defaults to true. */
|
|
966
|
+
allowOther?: boolean;
|
|
967
|
+
};
|
|
968
|
+
type AskChoice = {
|
|
969
|
+
option: string;
|
|
970
|
+
} | {
|
|
971
|
+
other: string;
|
|
972
|
+
};
|
|
973
|
+
type AskAnswer = {
|
|
974
|
+
choices: Record<string, AskChoice>;
|
|
975
|
+
} | {
|
|
976
|
+
skipped: true;
|
|
977
|
+
};
|
|
978
|
+
type AskCardProps = Omit<React$1.ComponentProps<'div'>, 'onSubmit'> & {
|
|
979
|
+
questions: AskQuestion[];
|
|
980
|
+
/** Settled answer. When set, the card collapses to a read-only summary. */
|
|
981
|
+
answer?: AskAnswer;
|
|
982
|
+
onSubmit?: (choices: Record<string, AskChoice>) => void;
|
|
983
|
+
onSkip?: () => void;
|
|
984
|
+
continueLabel?: React$1.ReactNode;
|
|
985
|
+
skipLabel?: React$1.ReactNode;
|
|
986
|
+
/** Name and placeholder of the free-text row. */
|
|
987
|
+
otherLabel?: string;
|
|
988
|
+
disabled?: boolean;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Inline clarifying questions from an agent. Each question offers lettered
|
|
992
|
+
* options plus a free-text row; the card settles into a one-line summary per
|
|
993
|
+
* question once answered or skipped.
|
|
994
|
+
*/
|
|
995
|
+
declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region src/components/ai/connect-prompt.d.ts
|
|
998
|
+
type ConnectPromptStatus = 'idle' | 'connecting' | 'connected' | 'skipped';
|
|
999
|
+
type ConnectPromptProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
1000
|
+
/** App mark rendered inside a 32px tile. */
|
|
1001
|
+
icon?: React$1.ReactNode;
|
|
1002
|
+
name: React$1.ReactNode;
|
|
1003
|
+
description?: React$1.ReactNode;
|
|
1004
|
+
status?: ConnectPromptStatus;
|
|
1005
|
+
connectLabel?: React$1.ReactNode;
|
|
1006
|
+
/** Continue-without label, e.g. "Zendesk only for now". Hidden when omitted. */
|
|
1007
|
+
skipLabel?: React$1.ReactNode;
|
|
1008
|
+
onConnect?: () => void;
|
|
1009
|
+
onSkip?: () => void;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Inline request from an agent to connect a missing app before it continues.
|
|
1013
|
+
* Settles into a quiet "Connected" or "Skipped" chip.
|
|
1014
|
+
*/
|
|
1015
|
+
declare function ConnectPrompt({ icon, name, description, status, connectLabel, skipLabel, onConnect, onSkip, className, ...props }: ConnectPromptProps): React$1.JSX.Element;
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/components/ai/agent-draft-card.d.ts
|
|
1018
|
+
type AgentDraftTool = {
|
|
1019
|
+
id: string;
|
|
1020
|
+
label: string;
|
|
1021
|
+
icon?: React$1.ReactNode;
|
|
1022
|
+
};
|
|
1023
|
+
type AgentDraftAction = {
|
|
1024
|
+
id: string;
|
|
1025
|
+
label: React$1.ReactNode;
|
|
1026
|
+
/** Label shown in the settled chip once this action is chosen. */
|
|
1027
|
+
chosenLabel?: React$1.ReactNode;
|
|
1028
|
+
variant?: 'default' | 'outline';
|
|
1029
|
+
};
|
|
1030
|
+
type AgentDraftCardProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
1031
|
+
name: React$1.ReactNode;
|
|
1032
|
+
badge?: React$1.ReactNode;
|
|
1033
|
+
schedule?: React$1.ReactNode;
|
|
1034
|
+
tools?: AgentDraftTool[];
|
|
1035
|
+
steps?: React$1.ReactNode[];
|
|
1036
|
+
actions?: AgentDraftAction[];
|
|
1037
|
+
/** Settled action id; replaces the action row with a summary chip. */
|
|
1038
|
+
chosenActionId?: string;
|
|
1039
|
+
onAction?: (actionId: string) => void;
|
|
1040
|
+
defaultOpen?: boolean;
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* Proposed agent spec an assistant drafts in chat: schedule, tools, and the
|
|
1044
|
+
* ordered steps it will run. Nothing runs until the host handles an action.
|
|
1045
|
+
*/
|
|
1046
|
+
declare function AgentDraftCard({ name, badge, schedule, tools, steps, actions, chosenActionId, onAction, defaultOpen, className, ...props }: AgentDraftCardProps): React$1.JSX.Element;
|
|
1047
|
+
//#endregion
|
|
732
1048
|
//#region src/components/ai/format-duration.d.ts
|
|
733
1049
|
/** Format elapsed ms for "Thought for …" / "Worked for …" labels. */
|
|
734
1050
|
declare function formatDuration(ms: number): string;
|
|
735
1051
|
//#endregion
|
|
736
|
-
export {
|
|
737
|
-
//# sourceMappingURL=index-
|
|
1052
|
+
export { PromptSuggestionsProps as $, PromptInputProps as $n, PlanStepStatus as $t, usageTone as A, ResponseStreamProps as An, InlineDiff as At, ToolTraceProps as B, MessageActionsProps as Bn, ApprovalQuestion as Bt, AiModelTag as C, ChatContainer as Cn, DiffTableColumn as Ct, ModelSelectorProps as D, useChatContainer as Dn, StreamingText as Dt, ModelSelector as E, ChatContainerProps as En, StreamToken as Et, PromptInputTrayTone as F, renderBasicMarkdown as Fn, Sources as Ft, iconEnterClass as G, MessageProps as Gn, ToolProps as Gt, ToolTraceStep as H, MessageAvatarProps as Hn, Tool as Ht, ThinkingStatus as I, Message as In, SourcesProps as It, FileUpload as J, PromptInputActionProps as Jn, DiffFileChip as Jt, AiImage as K, PromptInput as Kn, ToolVariant as Kt, ThinkingStatusProps as L, MessageAction as Ln, ApprovalCard as Lt, PromptInputTrayProps as M, CodeBlockProps as Mn, lineDiff as Mt, PromptInputTrayRow as N, Markdown as Nn, Source as Nt, UsageNotice as O, ResponseStream as On, StreamingTextProps as Ot, PromptInputTrayRowProps as P, MarkdownProps as Pn, SourceProps as Pt, PromptSuggestions as Q, PromptInputBodyProps as Qn, PlanStep as Qt, formatElapsed as R, MessageActionProps as Rn, ApprovalCardProps as Rt, AiModelPricing as S, ScrollButtonProps as Sn, DiffTableAddedRow as St, ModelSelection as T, ChatContainerContentProps as Tn, DiffTableRowBase as Tt, MarkTile as U, MessageContent as Un, ToolGroup as Ut, ToolTraceStatus as V, MessageAvatar as Vn, StatusIcon as Vt, MarkTileProps as W, MessageContentProps as Wn, ToolGroupProps as Wt, PromptSuggestion as X, PromptInputActionsProps as Xn, NormalizedToolStatus as Xt, FileUploadProps as Y, PromptInputActions as Yn, InlineDiffSource as Yt, PromptSuggestionProps as Z, PromptInputBody as Zn, Plan as Zt, PromptInputAttachmentStatus as _, STREAM_THROTTLE_MS as _n, ContextRingProps as _t, AgentDraftTool as a, StepProps as an, AgentLoaderVariant as ar, RecommendationOption as at, AiModel as b, SystemMessageProps as bn, PlanTrackerProps as bt, ConnectPromptStatus as c, StepsProps as cn, SimpleVariant as cr, ContextCards as ct, AskCardProps as d, ThinkingTraceProps as dn, TaskList as dt, ToolStatus as en, PromptInputTextarea as er, FeedbackBar as et, AskChoice as f, ThinkingTraceRow as fn, TaskListProps as ft, PromptInputAttachmentProps as g, ThinkingBarProps as gn, ContextRing as gt, PromptInputAttachment as h, ThinkingBar as hn, TaskStatus as ht, AgentDraftCardProps as i, Step as in, AgentLoaderProps as ir, RecommendationCardProps as it, PromptInputTray as j, CodeBlock as jn, InlineDiffProps as jt, UsageNoticeProps as k, ResponseStreamMode as kn, StreamingTextSource as kt, AskAnswer as l, ThinkingTrace as ln, TextShimmer as lr, ContextCardsProps as lt, AskQuestion as m, ReasoningProps as mn, TaskRowProps as mt, AgentDraftAction as n, ChainOfThought as nn, usePromptInput as nr, FeedbackValue as nt, ConnectPrompt as o, StepStatus as on, Loader as or, ContextCard as ot, AskOption as p, Reasoning as pn, TaskRow as pt, AiImageProps as q, PromptInputAction as qn, ContextUsage as qt, AgentDraftCard as r, ChainOfThoughtStep as rn, AgentLoader as rr, RecommendationCard as rt, ConnectPromptProps as s, Steps as sn, PixelVariant as sr, ContextCardProps as st, formatDuration as t, normalizeToolStatus as tn, PromptInputTextareaProps as tr, FeedbackBarProps as tt, AskCard as u, ThinkingTraceMode as un, TextShimmerProps as ur, TaskDetail as ut, PromptInputAttachments as v, useThrottledText as vn, formatCompact as vt, CostBlocks as w, ChatContainerContent as wn, DiffTableProps as wt, AiModelLevel as x, ScrollButton as xn, DiffTable as xt, PromptInputAttachmentsProps as y, SystemMessage as yn, PlanTracker as yt, ToolTrace as z, MessageActions as zn, ApprovalOption as zt };
|
|
1053
|
+
//# sourceMappingURL=index-CiO-3M_X.d.cts.map
|