@constructive-io/ui 0.12.0 → 0.14.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-4JrVVL3q.js} +1794 -250
- package/dist/ai-4JrVVL3q.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-B08ufcbD.cjs} +1888 -248
- package/dist/ai-B08ufcbD.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 +62 -18
- 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 +62 -18
- 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 +3 -2
- package/dist/components/card.d.ts +3 -2
- 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 +30 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +9 -2
- package/dist/components/command.d.ts +9 -2
- package/dist/components/command.js +30 -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.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 +12 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.d.cts +7 -1
- package/dist/components/popover.d.ts +7 -1
- package/dist/components/popover.js +12 -5
- 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 +8 -7
- package/dist/components/sidebar.d.ts +8 -7
- 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 +64 -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 +66 -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 +1507 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +728 -0
- package/dist/components/workspace-kit/index.d.ts +728 -0
- package/dist/components/workspace-kit/index.js +1440 -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-CNELHV8o.js +134 -0
- package/dist/fluid-highlight-CNELHV8o.js.map +1 -0
- package/dist/fluid-highlight-YWFRZXsw.cjs +145 -0
- package/dist/fluid-highlight-YWFRZXsw.cjs.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-CyaFaZe2.d.cts → index-Cluc_xc5.d.ts} +345 -20
- package/dist/{index-B0wXxIAb.d.ts → index-DXoG0ghv.d.cts} +345 -20
- 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-CKpIa4Fj.d.cts +536 -0
- package/dist/theme-CKpIa4Fj.d.ts +536 -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-CTOHSrsh.d.cts +158 -0
- package/dist/theme-tuning-DOko6Pmy.d.ts +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 +438 -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 +436 -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 +166 -27
- package/src/styles/globals.css +194 -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
|
@@ -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
|
/**
|
|
@@ -203,7 +204,7 @@ type ChatContainerProps = React$1.ComponentProps<'div'> & {
|
|
|
203
204
|
* Scroll region for chat transcripts with stick-to-bottom tracking.
|
|
204
205
|
* Pair with ScrollButton for jump-to-latest.
|
|
205
206
|
*/
|
|
206
|
-
declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ...props }: ChatContainerProps): React$1.JSX.Element;
|
|
207
|
+
declare function ChatContainer({ className, children, bottomThreshold, autoScroll, ref, ...props }: ChatContainerProps): React$1.JSX.Element;
|
|
207
208
|
type ChatContainerContentProps = React$1.ComponentProps<'div'>;
|
|
208
209
|
declare function ChatContainerContent({ className, ...props }: ChatContainerContentProps): React$1.JSX.Element;
|
|
209
210
|
//#endregion
|
|
@@ -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;
|
|
@@ -438,6 +439,8 @@ type ApprovalCardProps = {
|
|
|
438
439
|
destructive?: boolean;
|
|
439
440
|
/** Preview node under the title (tables, diffs, etc.). */
|
|
440
441
|
preview?: React$1.ReactNode;
|
|
442
|
+
/** A small line above the title in single-confirm mode, e.g. why the run paused. */
|
|
443
|
+
eyebrow?: React$1.ReactNode;
|
|
441
444
|
onConfirm?: (payload: {
|
|
442
445
|
answers?: Record<string, string[]>;
|
|
443
446
|
}) => void;
|
|
@@ -450,7 +453,7 @@ type ApprovalCardProps = {
|
|
|
450
453
|
/**
|
|
451
454
|
* Human-in-the-loop approval: simple confirm/skip or multi-question flow.
|
|
452
455
|
*/
|
|
453
|
-
declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
|
|
456
|
+
declare function ApprovalCard({ title, description, questions, confirmLabel, skipLabel, destructive, preview, eyebrow, onConfirm, onSkip, onDismiss, className, defaultSent }: ApprovalCardProps): React$1.JSX.Element;
|
|
454
457
|
//#endregion
|
|
455
458
|
//#region src/components/ai/source.d.ts
|
|
456
459
|
type SourceProps = {
|
|
@@ -459,9 +462,11 @@ type SourceProps = {
|
|
|
459
462
|
description?: string;
|
|
460
463
|
favicon?: string;
|
|
461
464
|
domain?: string;
|
|
465
|
+
/** Shows the title instead of the host. `Sources` sets it when several chips share a host. */
|
|
466
|
+
showTitle?: boolean;
|
|
462
467
|
className?: string;
|
|
463
468
|
};
|
|
464
|
-
declare function Source({ href, title, description, favicon, domain, className }: SourceProps): React$1.JSX.Element;
|
|
469
|
+
declare function Source({ href, title, description, favicon, domain, showTitle, className }: SourceProps): React$1.JSX.Element;
|
|
465
470
|
type SourcesProps = {
|
|
466
471
|
children: React$1.ReactNode;
|
|
467
472
|
className?: string;
|
|
@@ -469,6 +474,12 @@ type SourcesProps = {
|
|
|
469
474
|
};
|
|
470
475
|
declare function Sources({ children, className, label }: SourcesProps): React$1.JSX.Element;
|
|
471
476
|
//#endregion
|
|
477
|
+
//#region src/components/ai/line-diff.d.ts
|
|
478
|
+
type DiffLine = {
|
|
479
|
+
type: 'context' | 'add' | 'del';
|
|
480
|
+
text: string;
|
|
481
|
+
};
|
|
482
|
+
//#endregion
|
|
472
483
|
//#region src/components/ai/inline-diff.d.ts
|
|
473
484
|
type InlineDiffProps = {
|
|
474
485
|
source: InlineDiffSource;
|
|
@@ -476,11 +487,14 @@ type InlineDiffProps = {
|
|
|
476
487
|
/** Max lines shown before collapse. */
|
|
477
488
|
maxLines?: number;
|
|
478
489
|
};
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
490
|
+
/**
|
|
491
|
+
* Line diff between two texts, in order: unchanged lines as `context`, removed
|
|
492
|
+
* lines as `del`, new lines as `add`. A line that also appears elsewhere is
|
|
493
|
+
* matched by position, so a repeated line is shown as added or removed rather
|
|
494
|
+
* than hidden. The common head and tail are trimmed before the comparison, and
|
|
495
|
+
* a long file is compared by its edits rather than by a table of every pair of
|
|
496
|
+
* lines, so a few edits stay cheap however far apart they are.
|
|
497
|
+
*/
|
|
484
498
|
declare function lineDiff(before: string, after: string): DiffLine[];
|
|
485
499
|
declare function InlineDiff({ source, className, maxLines }: InlineDiffProps): React$1.JSX.Element;
|
|
486
500
|
//#endregion
|
|
@@ -585,6 +599,7 @@ type ContextRingProps = {
|
|
|
585
599
|
stroke?: number;
|
|
586
600
|
className?: string;
|
|
587
601
|
};
|
|
602
|
+
/** `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
603
|
declare function formatCompact(n: number): string;
|
|
589
604
|
/**
|
|
590
605
|
* Compact context-window meter: linear segmented bar, bent into a ring.
|
|
@@ -706,8 +721,8 @@ type FileUploadProps = {
|
|
|
706
721
|
accept?: string;
|
|
707
722
|
disabled?: boolean;
|
|
708
723
|
className?: string;
|
|
709
|
-
/**
|
|
710
|
-
variant?: 'dropzone' | 'button';
|
|
724
|
+
/** `compact` renders a single-row dropzone; `button` renders a trigger only. */
|
|
725
|
+
variant?: 'dropzone' | 'compact' | 'button';
|
|
711
726
|
children?: React$1.ReactNode;
|
|
712
727
|
};
|
|
713
728
|
/**
|
|
@@ -729,9 +744,319 @@ type AiImageProps = Omit<React$1.ComponentProps<'img'>, 'src'> & {
|
|
|
729
744
|
*/
|
|
730
745
|
declare function AiImage({ data, mimeType, src, bytes, alt, className, ...props }: AiImageProps): React$1.JSX.Element | null;
|
|
731
746
|
//#endregion
|
|
747
|
+
//#region src/components/ai/mark-tile.d.ts
|
|
748
|
+
type MarkTileProps = React$1.ComponentProps<'span'> & {
|
|
749
|
+
/** 16px (trace rows), 24px (lists), or 32px (prompts and dialogs). */
|
|
750
|
+
size?: 'xs' | 'sm' | 'md';
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* Square tile that frames an app mark or glyph. The edge is an inset outline
|
|
754
|
+
* rather than a border, so pale marks keep a shape on any surface without the
|
|
755
|
+
* tile growing.
|
|
756
|
+
*/
|
|
757
|
+
declare function MarkTile({ size, className, children, ...props }: MarkTileProps): React$1.JSX.Element;
|
|
758
|
+
/**
|
|
759
|
+
* Enter treatment for icons that appear on a state change (a check replacing a
|
|
760
|
+
* spinner, a settled chip). Uses `@starting-style` so it needs no keyframes.
|
|
761
|
+
*/
|
|
762
|
+
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";
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/components/ai/tool-trace.d.ts
|
|
765
|
+
type ToolTraceStatus = 'pending' | 'running' | 'done' | 'error';
|
|
766
|
+
type ToolTraceStep = {
|
|
767
|
+
id: string;
|
|
768
|
+
label: React$1.ReactNode;
|
|
769
|
+
/** Brand or tool mark rendered inside a 16px tile. */
|
|
770
|
+
icon?: React$1.ReactNode;
|
|
771
|
+
status?: ToolTraceStatus;
|
|
772
|
+
};
|
|
773
|
+
type ToolTraceProps = React$1.ComponentProps<'ol'> & {
|
|
774
|
+
/** Group heading, e.g. "Read tools". */
|
|
775
|
+
title?: React$1.ReactNode;
|
|
776
|
+
/** Heading glyph; defaults to an open book. */
|
|
777
|
+
icon?: React$1.ReactNode;
|
|
778
|
+
steps: ToolTraceStep[];
|
|
779
|
+
};
|
|
780
|
+
/**
|
|
781
|
+
* Quiet tool-call trace: a heading row, then one row per call hung from a
|
|
782
|
+
* single rail under the heading glyph. Each row morphs from spinner to check
|
|
783
|
+
* as the call settles, or to an alert when it fails.
|
|
784
|
+
*/
|
|
785
|
+
declare function ToolTrace({ title, icon, steps, className, ...props }: ToolTraceProps): React$1.JSX.Element;
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region src/components/ai/thinking-status.d.ts
|
|
788
|
+
type ThinkingStatusProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
789
|
+
label?: React$1.ReactNode;
|
|
790
|
+
/** Seconds already elapsed when the status mounts. */
|
|
791
|
+
elapsedSeconds?: number;
|
|
792
|
+
/** Token count already spent when the status mounts. */
|
|
793
|
+
tokens?: number;
|
|
794
|
+
/**
|
|
795
|
+
* When true (default), the timer counts up from `elapsedSeconds` every
|
|
796
|
+
* second. Pass false to render exactly the host's `elapsedSeconds` / `tokens`.
|
|
797
|
+
*/
|
|
798
|
+
live?: boolean;
|
|
799
|
+
/** Simulated token growth per tick for demos; the host normally streams real counts. */
|
|
800
|
+
tokensPerTick?: number;
|
|
801
|
+
};
|
|
802
|
+
declare function formatElapsed(totalSeconds: number): string;
|
|
803
|
+
/**
|
|
804
|
+
* Compact in-flight status: pulsing glyph, label, elapsed time, and token
|
|
805
|
+
* spend. Digits are tabular so the row never jitters while it ticks.
|
|
806
|
+
*/
|
|
807
|
+
declare function ThinkingStatus({ label, elapsedSeconds, tokens, live, tokensPerTick, className, ...props }: ThinkingStatusProps): React$1.JSX.Element;
|
|
808
|
+
//#endregion
|
|
809
|
+
//#region src/components/ai/prompt-input-tray.d.ts
|
|
810
|
+
type PromptInputTrayTone = 'neutral' | 'info' | 'warning' | 'danger';
|
|
811
|
+
type PromptInputTrayProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
812
|
+
tone?: PromptInputTrayTone;
|
|
813
|
+
/** Row above the composer: usage, errors, a reply target, the active agent. */
|
|
814
|
+
header?: React$1.ReactNode;
|
|
815
|
+
/** Row below the composer: disclaimers, keyboard hints, sync status. */
|
|
816
|
+
footer?: React$1.ReactNode;
|
|
817
|
+
/** Usually a `PromptInput`. */
|
|
818
|
+
children: React$1.ReactNode;
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* Tinted shell that docks status rows onto a composer so the two read as one
|
|
822
|
+
* surface. The tray is 18px with a 4px inset, so the composer inside is
|
|
823
|
+
* rounded to 14px (concentric). Tone tints the tray, its edge, and the icon in
|
|
824
|
+
* each row; text stays at full contrast. Renders the composer alone when there
|
|
825
|
+
* is nothing to dock.
|
|
826
|
+
*/
|
|
827
|
+
declare function PromptInputTray({ tone, header, footer, children, className, style, ...props }: PromptInputTrayProps): React$1.JSX.Element;
|
|
828
|
+
type PromptInputTrayRowProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
829
|
+
icon?: React$1.ReactNode;
|
|
830
|
+
children: React$1.ReactNode;
|
|
831
|
+
/** Trailing controls, e.g. an action link or a dismiss button. */
|
|
832
|
+
actions?: React$1.ReactNode;
|
|
833
|
+
};
|
|
834
|
+
/** One line inside a tray: tone-colored icon, text, and trailing actions. */
|
|
835
|
+
declare function PromptInputTrayRow({ icon, children, actions, className, ...props }: PromptInputTrayRowProps): React$1.JSX.Element;
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region src/components/ai/usage-notice.d.ts
|
|
838
|
+
/** Tray tone for a budget share: calm below 75%, warning to 90%, danger beyond. */
|
|
839
|
+
declare function usageTone(percent: number): PromptInputTrayTone;
|
|
840
|
+
type UsageNoticeProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
841
|
+
/** Share of the plan budget already spent, 0-100. */
|
|
842
|
+
percent: number;
|
|
843
|
+
/** Overrides the default "You've used N% of your tokens." sentence. */
|
|
844
|
+
message?: React$1.ReactNode;
|
|
845
|
+
actionLabel?: React$1.ReactNode;
|
|
846
|
+
actionHref?: string;
|
|
847
|
+
onAction?: () => void;
|
|
848
|
+
onDismiss?: () => void;
|
|
849
|
+
};
|
|
850
|
+
/**
|
|
851
|
+
* Plan-budget line for the header of a `PromptInputTray`:
|
|
852
|
+
*
|
|
853
|
+
* ```tsx
|
|
854
|
+
* <PromptInputTray tone={usageTone(80)} header={<UsageNotice percent={80} onDismiss={dismiss} />}>
|
|
855
|
+
* <PromptInput … />
|
|
856
|
+
* </PromptInputTray>
|
|
857
|
+
* ```
|
|
858
|
+
*/
|
|
859
|
+
declare function UsageNotice({ percent, message, actionLabel, actionHref, onAction, onDismiss, ...props }: UsageNoticeProps): React$1.JSX.Element;
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/components/ai/model-selector.d.ts
|
|
862
|
+
/** Prices in currency units per one million tokens. */
|
|
863
|
+
type AiModelPricing = {
|
|
864
|
+
input: number;
|
|
865
|
+
output: number;
|
|
866
|
+
cachedInput?: number;
|
|
867
|
+
/** ISO 4217 code. Defaults to USD. */
|
|
868
|
+
currency?: string;
|
|
869
|
+
};
|
|
870
|
+
type AiModelLevel = {
|
|
871
|
+
id: string;
|
|
872
|
+
/** Short name shown beside the model, e.g. "Medium" or "High thinking". */
|
|
873
|
+
label: string;
|
|
874
|
+
description?: string;
|
|
875
|
+
/** Overrides the model's pricing when this level bills differently. */
|
|
876
|
+
pricing?: AiModelPricing;
|
|
877
|
+
};
|
|
878
|
+
type AiModelTag = 'new' | 'free' | 'beta' | 'preview' | 'deprecated';
|
|
879
|
+
type AiModel = {
|
|
880
|
+
id: string;
|
|
881
|
+
name: string;
|
|
882
|
+
/** Provider or family name; used for grouping and search. */
|
|
883
|
+
provider: string;
|
|
884
|
+
/** Provider mark or model glyph. */
|
|
885
|
+
icon?: React$1.ReactNode;
|
|
886
|
+
description?: string;
|
|
887
|
+
/** Reasoning or effort levels, in ascending order. */
|
|
888
|
+
levels?: AiModelLevel[];
|
|
889
|
+
defaultLevel?: string;
|
|
890
|
+
pricing?: AiModelPricing;
|
|
891
|
+
contextWindow?: number;
|
|
892
|
+
tags?: AiModelTag[];
|
|
893
|
+
disabled?: boolean;
|
|
894
|
+
/** Why the model can't be chosen, e.g. "Requires the Team plan". */
|
|
895
|
+
disabledReason?: string;
|
|
896
|
+
};
|
|
897
|
+
type ModelSelection = {
|
|
898
|
+
modelId: string;
|
|
899
|
+
levelId?: string;
|
|
900
|
+
};
|
|
901
|
+
type ModelSelectorProps = {
|
|
902
|
+
models: AiModel[];
|
|
903
|
+
value: ModelSelection;
|
|
904
|
+
onValueChange: (value: ModelSelection) => void;
|
|
905
|
+
/** Routers or defaults listed first, without a heading (e.g. "Auto"). */
|
|
906
|
+
pinnedIds?: string[];
|
|
907
|
+
recentIds?: string[];
|
|
908
|
+
recommendedIds?: string[];
|
|
909
|
+
/** How cost appears in each row. `meter` shows relative cost; `price` shows input and output per million. */
|
|
910
|
+
priceDisplay?: 'meter' | 'price' | 'none';
|
|
911
|
+
/** Lets people switch between meter and price from the search row. Defaults to true when any model has pricing. */
|
|
912
|
+
allowPriceToggle?: boolean;
|
|
913
|
+
disabled?: boolean;
|
|
914
|
+
align?: 'start' | 'center' | 'end';
|
|
915
|
+
side?: 'top' | 'bottom';
|
|
916
|
+
triggerClassName?: string;
|
|
917
|
+
/** Classes for the reasoning level beside the model name, e.g. to hide it when the trigger is narrow. */
|
|
918
|
+
levelClassName?: string;
|
|
919
|
+
contentClassName?: string;
|
|
920
|
+
/** Accessible label prefix for the trigger. Defaults to "Model". */
|
|
921
|
+
label?: string;
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* Relative cost as a row of building blocks: one to four filled, stepping up in height like a stack being built.
|
|
925
|
+
* Discrete tiers read faster than a continuous bar, and the muted fill keeps the list calm while scanning.
|
|
926
|
+
*/
|
|
927
|
+
declare function CostBlocks({ tier }: {
|
|
928
|
+
tier: number;
|
|
929
|
+
}): React$1.JSX.Element;
|
|
930
|
+
/**
|
|
931
|
+
* Model picker for composers: searchable list with pinned routers, recent and
|
|
932
|
+
* recommended sections, per-provider groups, reasoning levels, relative cost
|
|
933
|
+
* or per-million pricing, tags, and a side card for the highlighted model
|
|
934
|
+
* with its reasoning levels.
|
|
935
|
+
* Controlled: the host owns the selection and persists recents.
|
|
936
|
+
*/
|
|
937
|
+
declare function ModelSelector({ models, value, onValueChange, pinnedIds, recentIds, recommendedIds, priceDisplay: priceDisplayProp, allowPriceToggle, disabled, align, side, triggerClassName, levelClassName, contentClassName, label }: ModelSelectorProps): React$1.JSX.Element;
|
|
938
|
+
//#endregion
|
|
939
|
+
//#region src/components/ai/prompt-input-attachment.d.ts
|
|
940
|
+
type PromptInputAttachmentStatus = 'uploading' | 'ready' | 'error';
|
|
941
|
+
type PromptInputAttachmentProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
942
|
+
name: string;
|
|
943
|
+
/** Secondary line, e.g. "PDF · 2.4 MB" or an error reason. */
|
|
944
|
+
meta?: React$1.ReactNode;
|
|
945
|
+
/** Image preview URL. Falls back to `icon`, then a document glyph. */
|
|
946
|
+
previewUrl?: string;
|
|
947
|
+
icon?: React$1.ReactNode;
|
|
948
|
+
status?: PromptInputAttachmentStatus;
|
|
949
|
+
onRemove?: () => void;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Staged file chip shown inside a composer before sending: thumbnail or icon,
|
|
953
|
+
* name, meta, upload state, and remove.
|
|
954
|
+
*/
|
|
955
|
+
declare function PromptInputAttachment({ name, meta, previewUrl, icon, status, onRemove, className, ...props }: PromptInputAttachmentProps): React$1.JSX.Element;
|
|
956
|
+
type PromptInputAttachmentsProps = React$1.ComponentProps<'div'>;
|
|
957
|
+
/** Wrapping row of attachment chips, placed above the textarea. */
|
|
958
|
+
declare function PromptInputAttachments({ className, ...props }: PromptInputAttachmentsProps): React$1.JSX.Element;
|
|
959
|
+
//#endregion
|
|
960
|
+
//#region src/components/ai/ask-card.d.ts
|
|
961
|
+
type AskOption = {
|
|
962
|
+
id: string;
|
|
963
|
+
label: React$1.ReactNode;
|
|
964
|
+
};
|
|
965
|
+
type AskQuestion = {
|
|
966
|
+
id: string;
|
|
967
|
+
question: React$1.ReactNode;
|
|
968
|
+
options: AskOption[];
|
|
969
|
+
/** Adds a free-text "Something else" row. Defaults to true. */
|
|
970
|
+
allowOther?: boolean;
|
|
971
|
+
};
|
|
972
|
+
type AskChoice = {
|
|
973
|
+
option: string;
|
|
974
|
+
} | {
|
|
975
|
+
other: string;
|
|
976
|
+
};
|
|
977
|
+
type AskAnswer = {
|
|
978
|
+
choices: Record<string, AskChoice>;
|
|
979
|
+
} | {
|
|
980
|
+
skipped: true;
|
|
981
|
+
};
|
|
982
|
+
type AskCardProps = Omit<React$1.ComponentProps<'div'>, 'onSubmit'> & {
|
|
983
|
+
questions: AskQuestion[];
|
|
984
|
+
/** Settled answer. When set, the card collapses to a read-only summary. */
|
|
985
|
+
answer?: AskAnswer;
|
|
986
|
+
onSubmit?: (choices: Record<string, AskChoice>) => void;
|
|
987
|
+
onSkip?: () => void;
|
|
988
|
+
continueLabel?: React$1.ReactNode;
|
|
989
|
+
skipLabel?: React$1.ReactNode;
|
|
990
|
+
/** Name and placeholder of the free-text row. */
|
|
991
|
+
otherLabel?: string;
|
|
992
|
+
/** A small line above the question, e.g. who is asking or why the run paused. */
|
|
993
|
+
eyebrow?: React$1.ReactNode;
|
|
994
|
+
/** Glyph beside each question. Defaults to a help circle; `null` leaves the question bare, e.g. under an eyebrow. */
|
|
995
|
+
icon?: React$1.ReactNode;
|
|
996
|
+
disabled?: boolean;
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
* Inline clarifying questions from an agent, one at a time. Each question
|
|
1000
|
+
* offers its options as radio rows plus a free-text row; Continue moves to the
|
|
1001
|
+
* next question and submits after the last. The card settles into a one-line
|
|
1002
|
+
* summary per question once answered or skipped.
|
|
1003
|
+
*/
|
|
1004
|
+
declare function AskCard({ questions, answer, onSubmit, onSkip, continueLabel, skipLabel, otherLabel, eyebrow, icon, disabled, className, ...props }: AskCardProps): React$1.JSX.Element;
|
|
1005
|
+
//#endregion
|
|
1006
|
+
//#region src/components/ai/connect-prompt.d.ts
|
|
1007
|
+
type ConnectPromptStatus = 'idle' | 'connecting' | 'connected' | 'skipped';
|
|
1008
|
+
type ConnectPromptProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
1009
|
+
/** App mark rendered inside a 32px tile. */
|
|
1010
|
+
icon?: React$1.ReactNode;
|
|
1011
|
+
name: React$1.ReactNode;
|
|
1012
|
+
description?: React$1.ReactNode;
|
|
1013
|
+
status?: ConnectPromptStatus;
|
|
1014
|
+
connectLabel?: React$1.ReactNode;
|
|
1015
|
+
/** Continue-without label, e.g. "Zendesk only for now". Hidden when omitted. */
|
|
1016
|
+
skipLabel?: React$1.ReactNode;
|
|
1017
|
+
onConnect?: () => void;
|
|
1018
|
+
onSkip?: () => void;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* Inline request from an agent to connect a missing app before it continues.
|
|
1022
|
+
* Settles into a quiet "Connected" or "Skipped" chip.
|
|
1023
|
+
*/
|
|
1024
|
+
declare function ConnectPrompt({ icon, name, description, status, connectLabel, skipLabel, onConnect, onSkip, className, ...props }: ConnectPromptProps): React$1.JSX.Element;
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region src/components/ai/agent-draft-card.d.ts
|
|
1027
|
+
type AgentDraftTool = {
|
|
1028
|
+
id: string;
|
|
1029
|
+
label: string;
|
|
1030
|
+
icon?: React$1.ReactNode;
|
|
1031
|
+
};
|
|
1032
|
+
type AgentDraftAction = {
|
|
1033
|
+
id: string;
|
|
1034
|
+
label: React$1.ReactNode;
|
|
1035
|
+
/** Label shown in the settled chip once this action is chosen. */
|
|
1036
|
+
chosenLabel?: React$1.ReactNode;
|
|
1037
|
+
variant?: 'default' | 'outline';
|
|
1038
|
+
};
|
|
1039
|
+
type AgentDraftCardProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
1040
|
+
name: React$1.ReactNode;
|
|
1041
|
+
badge?: React$1.ReactNode;
|
|
1042
|
+
schedule?: React$1.ReactNode;
|
|
1043
|
+
tools?: AgentDraftTool[];
|
|
1044
|
+
steps?: React$1.ReactNode[];
|
|
1045
|
+
actions?: AgentDraftAction[];
|
|
1046
|
+
/** Settled action id; replaces the action row with a summary chip. */
|
|
1047
|
+
chosenActionId?: string;
|
|
1048
|
+
onAction?: (actionId: string) => void;
|
|
1049
|
+
defaultOpen?: boolean;
|
|
1050
|
+
};
|
|
1051
|
+
/**
|
|
1052
|
+
* Proposed agent spec an assistant drafts in chat: schedule, tools, and the
|
|
1053
|
+
* ordered steps it will run. Nothing runs until the host handles an action.
|
|
1054
|
+
*/
|
|
1055
|
+
declare function AgentDraftCard({ name, badge, schedule, tools, steps, actions, chosenActionId, onAction, defaultOpen, className, ...props }: AgentDraftCardProps): React$1.JSX.Element;
|
|
1056
|
+
//#endregion
|
|
732
1057
|
//#region src/components/ai/format-duration.d.ts
|
|
733
1058
|
/** Format elapsed ms for "Thought for …" / "Worked for …" labels. */
|
|
734
1059
|
declare function formatDuration(ms: number): string;
|
|
735
1060
|
//#endregion
|
|
736
|
-
export {
|
|
737
|
-
//# sourceMappingURL=index-
|
|
1061
|
+
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 };
|
|
1062
|
+
//# sourceMappingURL=index-DXoG0ghv.d.cts.map
|