@sero-ai/ui 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ai-elements/agent.cjs +89 -0
- package/dist/components/ai-elements/agent.d.cts +32 -0
- package/dist/components/ai-elements/agent.d.ts +32 -0
- package/dist/components/ai-elements/agent.js +89 -0
- package/dist/components/ai-elements/artifact.cjs +121 -0
- package/dist/components/ai-elements/artifact.d.cts +29 -0
- package/dist/components/ai-elements/artifact.d.ts +29 -0
- package/dist/components/ai-elements/artifact.js +121 -0
- package/dist/components/ai-elements/attachments.cjs +283 -0
- package/dist/components/ai-elements/attachments.d.cts +60 -0
- package/dist/components/ai-elements/attachments.d.ts +60 -0
- package/dist/components/ai-elements/attachments.js +283 -0
- package/dist/components/ai-elements/audio-player.cjs +174 -0
- package/dist/components/ai-elements/audio-player.d.cts +33 -0
- package/dist/components/ai-elements/audio-player.d.ts +33 -0
- package/dist/components/ai-elements/audio-player.js +174 -0
- package/dist/components/ai-elements/canvas.cjs +23 -0
- package/dist/components/ai-elements/canvas.d.cts +10 -0
- package/dist/components/ai-elements/canvas.d.ts +10 -0
- package/dist/components/ai-elements/canvas.js +23 -0
- package/dist/components/ai-elements/chain-of-thought.cjs +170 -0
- package/dist/components/ai-elements/chain-of-thought.d.cts +37 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +37 -0
- package/dist/components/ai-elements/chain-of-thought.js +170 -0
- package/dist/components/ai-elements/checkpoint.cjs +49 -0
- package/dist/components/ai-elements/checkpoint.d.cts +18 -0
- package/dist/components/ai-elements/checkpoint.d.ts +18 -0
- package/dist/components/ai-elements/checkpoint.js +49 -0
- package/dist/components/ai-elements/code-block.cjs +380 -0
- package/dist/components/ai-elements/code-block.d.cts +51 -0
- package/dist/components/ai-elements/code-block.d.ts +51 -0
- package/dist/components/ai-elements/code-block.js +380 -0
- package/dist/components/ai-elements/commit.cjs +337 -0
- package/dist/components/ai-elements/commit.d.cts +71 -0
- package/dist/components/ai-elements/commit.d.ts +71 -0
- package/dist/components/ai-elements/commit.js +337 -0
- package/dist/components/ai-elements/confirmation.cjs +82 -0
- package/dist/components/ai-elements/confirmation.d.cts +54 -0
- package/dist/components/ai-elements/confirmation.d.ts +54 -0
- package/dist/components/ai-elements/confirmation.js +82 -0
- package/dist/components/ai-elements/connection.cjs +33 -0
- package/dist/components/ai-elements/connection.d.cts +5 -0
- package/dist/components/ai-elements/connection.d.ts +5 -0
- package/dist/components/ai-elements/connection.js +33 -0
- package/dist/components/ai-elements/context.cjs +329 -0
- package/dist/components/ai-elements/context.d.cts +39 -0
- package/dist/components/ai-elements/context.d.ts +39 -0
- package/dist/components/ai-elements/context.js +329 -0
- package/dist/components/ai-elements/controls.cjs +18 -0
- package/dist/components/ai-elements/controls.d.cts +8 -0
- package/dist/components/ai-elements/controls.d.ts +8 -0
- package/dist/components/ai-elements/controls.js +18 -0
- package/dist/components/ai-elements/conversation.cjs +124 -0
- package/dist/components/ai-elements/conversation.d.cts +32 -0
- package/dist/components/ai-elements/conversation.d.ts +32 -0
- package/dist/components/ai-elements/conversation.js +124 -0
- package/dist/components/ai-elements/edge.cjs +116 -0
- package/dist/components/ai-elements/edge.d.cts +9 -0
- package/dist/components/ai-elements/edge.d.ts +9 -0
- package/dist/components/ai-elements/edge.js +116 -0
- package/dist/components/ai-elements/environment-variables.cjs +227 -0
- package/dist/components/ai-elements/environment-variables.d.cts +45 -0
- package/dist/components/ai-elements/environment-variables.d.ts +45 -0
- package/dist/components/ai-elements/environment-variables.js +227 -0
- package/dist/components/ai-elements/file-tree.cjs +217 -0
- package/dist/components/ai-elements/file-tree.d.cts +30 -0
- package/dist/components/ai-elements/file-tree.d.ts +30 -0
- package/dist/components/ai-elements/file-tree.js +217 -0
- package/dist/components/ai-elements/image.cjs +22 -0
- package/dist/components/ai-elements/image.d.cts +10 -0
- package/dist/components/ai-elements/image.d.ts +10 -0
- package/dist/components/ai-elements/image.js +22 -0
- package/dist/components/ai-elements/inline-citation.cjs +223 -0
- package/dist/components/ai-elements/inline-citation.d.cts +47 -0
- package/dist/components/ai-elements/inline-citation.d.ts +47 -0
- package/dist/components/ai-elements/inline-citation.js +223 -0
- package/dist/components/ai-elements/jsx-preview.cjs +176 -0
- package/dist/components/ai-elements/jsx-preview.d.cts +31 -0
- package/dist/components/ai-elements/jsx-preview.d.ts +31 -0
- package/dist/components/ai-elements/jsx-preview.js +176 -0
- package/dist/components/ai-elements/message.cjs +287 -0
- package/dist/components/ai-elements/message.d.cts +46 -0
- package/dist/components/ai-elements/message.d.ts +46 -0
- package/dist/components/ai-elements/message.js +287 -0
- package/dist/components/ai-elements/mic-selector.cjs +275 -0
- package/dist/components/ai-elements/mic-selector.d.cts +54 -0
- package/dist/components/ai-elements/mic-selector.d.ts +54 -0
- package/dist/components/ai-elements/mic-selector.js +275 -0
- package/dist/components/ai-elements/model-selector.cjs +100 -0
- package/dist/components/ai-elements/model-selector.d.cts +41 -0
- package/dist/components/ai-elements/model-selector.d.ts +41 -0
- package/dist/components/ai-elements/model-selector.js +100 -0
- package/dist/components/ai-elements/node.cjs +54 -0
- package/dist/components/ai-elements/node.d.cts +25 -0
- package/dist/components/ai-elements/node.d.ts +25 -0
- package/dist/components/ai-elements/node.js +54 -0
- package/dist/components/ai-elements/open-in-chat.cjs +353 -0
- package/dist/components/ai-elements/open-in-chat.d.cts +33 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +33 -0
- package/dist/components/ai-elements/open-in-chat.js +353 -0
- package/dist/components/ai-elements/package-info.cjs +171 -0
- package/dist/components/ai-elements/package-info.d.cts +32 -0
- package/dist/components/ai-elements/package-info.d.ts +32 -0
- package/dist/components/ai-elements/package-info.js +171 -0
- package/dist/components/ai-elements/panel.cjs +16 -0
- package/dist/components/ai-elements/panel.d.cts +8 -0
- package/dist/components/ai-elements/panel.d.ts +8 -0
- package/dist/components/ai-elements/panel.js +16 -0
- package/dist/components/ai-elements/persona.cjs +202 -0
- package/dist/components/ai-elements/persona.d.cts +50 -0
- package/dist/components/ai-elements/persona.d.ts +50 -0
- package/dist/components/ai-elements/persona.js +202 -0
- package/dist/components/ai-elements/plan.cjs +90 -0
- package/dist/components/ai-elements/plan.d.cts +30 -0
- package/dist/components/ai-elements/plan.d.ts +30 -0
- package/dist/components/ai-elements/plan.js +90 -0
- package/dist/components/ai-elements/prompt-input-context.cjs +161 -0
- package/dist/components/ai-elements/prompt-input-context.d.cts +58 -0
- package/dist/components/ai-elements/prompt-input-context.d.ts +58 -0
- package/dist/components/ai-elements/prompt-input-context.js +161 -0
- package/dist/components/ai-elements/prompt-input-elements.cjs +246 -0
- package/dist/components/ai-elements/prompt-input-elements.d.cts +88 -0
- package/dist/components/ai-elements/prompt-input-elements.d.ts +88 -0
- package/dist/components/ai-elements/prompt-input-elements.js +246 -0
- package/dist/components/ai-elements/prompt-input-textarea.cjs +89 -0
- package/dist/components/ai-elements/prompt-input-textarea.d.cts +11 -0
- package/dist/components/ai-elements/prompt-input-textarea.d.ts +11 -0
- package/dist/components/ai-elements/prompt-input-textarea.js +89 -0
- package/dist/components/ai-elements/prompt-input.cjs +306 -0
- package/dist/components/ai-elements/prompt-input.d.cts +39 -0
- package/dist/components/ai-elements/prompt-input.d.ts +39 -0
- package/dist/components/ai-elements/prompt-input.js +306 -0
- package/dist/components/ai-elements/queue.cjs +193 -0
- package/dist/components/ai-elements/queue.d.cts +68 -0
- package/dist/components/ai-elements/queue.d.ts +68 -0
- package/dist/components/ai-elements/queue.js +193 -0
- package/dist/components/ai-elements/reasoning.cjs +178 -0
- package/dist/components/ai-elements/reasoning.d.cts +31 -0
- package/dist/components/ai-elements/reasoning.d.ts +31 -0
- package/dist/components/ai-elements/reasoning.js +178 -0
- package/dist/components/ai-elements/sandbox.cjs +114 -0
- package/dist/components/ai-elements/sandbox.d.cts +31 -0
- package/dist/components/ai-elements/sandbox.d.ts +31 -0
- package/dist/components/ai-elements/sandbox.js +114 -0
- package/dist/components/ai-elements/schema-display.cjs +330 -0
- package/dist/components/ai-elements/schema-display.d.cts +61 -0
- package/dist/components/ai-elements/schema-display.d.ts +61 -0
- package/dist/components/ai-elements/schema-display.js +330 -0
- package/dist/components/ai-elements/shimmer.cjs +55 -0
- package/dist/components/ai-elements/shimmer.d.cts +14 -0
- package/dist/components/ai-elements/shimmer.d.ts +14 -0
- package/dist/components/ai-elements/shimmer.js +55 -0
- package/dist/components/ai-elements/snippet.cjs +105 -0
- package/dist/components/ai-elements/snippet.d.cts +25 -0
- package/dist/components/ai-elements/snippet.d.ts +25 -0
- package/dist/components/ai-elements/snippet.js +105 -0
- package/dist/components/ai-elements/sources.cjs +70 -0
- package/dist/components/ai-elements/sources.d.cts +17 -0
- package/dist/components/ai-elements/sources.d.ts +17 -0
- package/dist/components/ai-elements/sources.js +70 -0
- package/dist/components/ai-elements/speech-input.cjs +207 -0
- package/dist/components/ai-elements/speech-input.d.cts +59 -0
- package/dist/components/ai-elements/speech-input.d.ts +59 -0
- package/dist/components/ai-elements/speech-input.js +207 -0
- package/dist/components/ai-elements/stack-trace.cjs +403 -0
- package/dist/components/ai-elements/stack-trace.d.cts +45 -0
- package/dist/components/ai-elements/stack-trace.d.ts +45 -0
- package/dist/components/ai-elements/stack-trace.js +403 -0
- package/dist/components/ai-elements/suggestion.cjs +46 -0
- package/dist/components/ai-elements/suggestion.d.cts +17 -0
- package/dist/components/ai-elements/suggestion.d.ts +17 -0
- package/dist/components/ai-elements/suggestion.js +46 -0
- package/dist/components/ai-elements/task.cjs +62 -0
- package/dist/components/ai-elements/task.d.cts +19 -0
- package/dist/components/ai-elements/task.d.ts +19 -0
- package/dist/components/ai-elements/task.js +62 -0
- package/dist/components/ai-elements/terminal.cjs +220 -0
- package/dist/components/ai-elements/terminal.d.cts +33 -0
- package/dist/components/ai-elements/terminal.d.ts +33 -0
- package/dist/components/ai-elements/terminal.js +220 -0
- package/dist/components/ai-elements/test-results.cjs +376 -0
- package/dist/components/ai-elements/test-results.d.cts +62 -0
- package/dist/components/ai-elements/test-results.d.ts +62 -0
- package/dist/components/ai-elements/test-results.js +376 -0
- package/dist/components/ai-elements/tool.cjs +130 -0
- package/dist/components/ai-elements/tool.d.cts +36 -0
- package/dist/components/ai-elements/tool.d.ts +36 -0
- package/dist/components/ai-elements/tool.js +130 -0
- package/dist/components/ai-elements/toolbar.cjs +17 -0
- package/dist/components/ai-elements/toolbar.d.cts +8 -0
- package/dist/components/ai-elements/toolbar.d.ts +8 -0
- package/dist/components/ai-elements/toolbar.js +17 -0
- package/dist/components/ai-elements/transcription.cjs +92 -0
- package/dist/components/ai-elements/transcription.d.cts +19 -0
- package/dist/components/ai-elements/transcription.d.ts +19 -0
- package/dist/components/ai-elements/transcription.js +92 -0
- package/dist/components/ai-elements/voice-selector-accent.cjs +11 -0
- package/dist/components/ai-elements/voice-selector-accent.d.cts +10 -0
- package/dist/components/ai-elements/voice-selector-accent.d.ts +10 -0
- package/dist/components/ai-elements/voice-selector-accent.js +11 -0
- package/dist/components/ai-elements/voice-selector.cjs +246 -0
- package/dist/components/ai-elements/voice-selector.d.cts +66 -0
- package/dist/components/ai-elements/voice-selector.d.ts +66 -0
- package/dist/components/ai-elements/voice-selector.js +246 -0
- package/dist/components/ai-elements/web-preview.cjs +237 -0
- package/dist/components/ai-elements/web-preview.d.cts +40 -0
- package/dist/components/ai-elements/web-preview.d.ts +40 -0
- package/dist/components/ai-elements/web-preview.js +237 -0
- package/dist/components/model-selection/available-model-picker.cjs +172 -0
- package/dist/components/model-selection/available-model-picker.d.cts +18 -0
- package/dist/components/model-selection/available-model-picker.d.ts +18 -0
- package/dist/components/model-selection/available-model-picker.js +172 -0
- package/dist/components/model-selection/model-warning-list.cjs +24 -0
- package/dist/components/model-selection/model-warning-list.d.cts +10 -0
- package/dist/components/model-selection/model-warning-list.d.ts +10 -0
- package/dist/components/model-selection/model-warning-list.js +24 -0
- package/dist/components/model-selection/thinking-level-picker.cjs +39 -0
- package/dist/components/model-selection/thinking-level-picker.d.cts +14 -0
- package/dist/components/model-selection/thinking-level-picker.d.ts +14 -0
- package/dist/components/model-selection/thinking-level-picker.js +39 -0
- package/dist/components/ui/accordion.cjs +64 -0
- package/dist/components/ui/accordion.d.cts +10 -0
- package/dist/components/ui/accordion.d.ts +10 -0
- package/dist/components/ui/accordion.js +64 -0
- package/dist/components/ui/alert-dialog.cjs +178 -0
- package/dist/components/ui/alert-dialog.d.cts +23 -0
- package/dist/components/ui/alert-dialog.d.ts +23 -0
- package/dist/components/ui/alert-dialog.js +178 -0
- package/dist/components/ui/alert.cjs +66 -0
- package/dist/components/ui/alert.d.cts +13 -0
- package/dist/components/ui/alert.d.ts +13 -0
- package/dist/components/ui/alert.js +66 -0
- package/dist/components/ui/aspect-ratio.cjs +11 -0
- package/dist/components/ui/aspect-ratio.d.cts +6 -0
- package/dist/components/ui/aspect-ratio.d.ts +6 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/avatar.cjs +103 -0
- package/dist/components/ui/avatar.d.cts +14 -0
- package/dist/components/ui/avatar.d.ts +14 -0
- package/dist/components/ui/avatar.js +103 -0
- package/dist/components/ui/badge.cjs +43 -0
- package/dist/components/ui/badge.d.cts +13 -0
- package/dist/components/ui/badge.d.ts +13 -0
- package/dist/components/ui/badge.js +43 -0
- package/dist/components/ui/breadcrumb.cjs +103 -0
- package/dist/components/ui/breadcrumb.d.cts +14 -0
- package/dist/components/ui/breadcrumb.d.ts +14 -0
- package/dist/components/ui/breadcrumb.js +103 -0
- package/dist/components/ui/button-group.cjs +76 -0
- package/dist/components/ui/button-group.d.cts +17 -0
- package/dist/components/ui/button-group.d.ts +17 -0
- package/dist/components/ui/button-group.js +76 -0
- package/dist/components/ui/button.cjs +56 -0
- package/dist/components/ui/button.d.cts +14 -0
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.js +56 -0
- package/dist/components/ui/calendar.cjs +194 -0
- package/dist/components/ui/calendar.d.cts +13 -0
- package/dist/components/ui/calendar.d.ts +13 -0
- package/dist/components/ui/calendar.js +194 -0
- package/dist/components/ui/card.cjs +90 -0
- package/dist/components/ui/card.d.cts +12 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.js +90 -0
- package/dist/components/ui/carousel.cjs +198 -0
- package/dist/components/ui/carousel.d.cts +24 -0
- package/dist/components/ui/carousel.d.ts +24 -0
- package/dist/components/ui/carousel.js +198 -0
- package/dist/components/ui/chart.cjs +242 -0
- package/dist/components/ui/chart.d.cts +43 -0
- package/dist/components/ui/chart.d.ts +43 -0
- package/dist/components/ui/chart.js +242 -0
- package/dist/components/ui/checkbox.cjs +32 -0
- package/dist/components/ui/checkbox.d.cts +7 -0
- package/dist/components/ui/checkbox.d.ts +7 -0
- package/dist/components/ui/checkbox.js +32 -0
- package/dist/components/ui/collapsible.cjs +34 -0
- package/dist/components/ui/collapsible.d.cts +8 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.js +34 -0
- package/dist/components/ui/combobox.cjs +297 -0
- package/dist/components/ui/combobox.d.cts +27 -0
- package/dist/components/ui/combobox.d.ts +27 -0
- package/dist/components/ui/combobox.js +297 -0
- package/dist/components/ui/command.cjs +177 -0
- package/dist/components/ui/command.d.cts +22 -0
- package/dist/components/ui/command.d.ts +22 -0
- package/dist/components/ui/command.js +177 -0
- package/dist/components/ui/context-menu.cjs +224 -0
- package/dist/components/ui/context-menu.d.cts +28 -0
- package/dist/components/ui/context-menu.d.ts +28 -0
- package/dist/components/ui/context-menu.js +224 -0
- package/dist/components/ui/dialog.cjs +147 -0
- package/dist/components/ui/dialog.d.cts +20 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.js +147 -0
- package/dist/components/ui/direction.cjs +15 -0
- package/dist/components/ui/direction.d.cts +10 -0
- package/dist/components/ui/direction.d.ts +10 -0
- package/dist/components/ui/direction.js +15 -0
- package/dist/components/ui/drawer.cjs +128 -0
- package/dist/components/ui/drawer.d.cts +16 -0
- package/dist/components/ui/drawer.d.ts +16 -0
- package/dist/components/ui/drawer.js +128 -0
- package/dist/components/ui/dropdown-menu.cjs +232 -0
- package/dist/components/ui/dropdown-menu.d.cts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.js +232 -0
- package/dist/components/ui/empty.cjs +102 -0
- package/dist/components/ui/empty.d.cts +15 -0
- package/dist/components/ui/empty.d.ts +15 -0
- package/dist/components/ui/empty.js +102 -0
- package/dist/components/ui/field.cjs +230 -0
- package/dist/components/ui/field.d.cts +30 -0
- package/dist/components/ui/field.d.ts +30 -0
- package/dist/components/ui/field.js +230 -0
- package/dist/components/ui/form.cjs +121 -0
- package/dist/components/ui/form.d.cts +27 -0
- package/dist/components/ui/form.d.ts +27 -0
- package/dist/components/ui/form.js +121 -0
- package/dist/components/ui/hover-card.cjs +38 -0
- package/dist/components/ui/hover-card.d.cts +9 -0
- package/dist/components/ui/hover-card.d.ts +9 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/input-group.cjs +154 -0
- package/dist/components/ui/input-group.d.cts +20 -0
- package/dist/components/ui/input-group.d.ts +20 -0
- package/dist/components/ui/input-group.js +154 -0
- package/dist/components/ui/input-otp.cjs +67 -0
- package/dist/components/ui/input-otp.d.cts +14 -0
- package/dist/components/ui/input-otp.d.ts +14 -0
- package/dist/components/ui/input-otp.js +67 -0
- package/dist/components/ui/input.cjs +23 -0
- package/dist/components/ui/input.d.cts +6 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.js +23 -0
- package/dist/components/ui/item.cjs +187 -0
- package/dist/components/ui/item.d.cts +28 -0
- package/dist/components/ui/item.d.ts +28 -0
- package/dist/components/ui/item.js +187 -0
- package/dist/components/ui/kbd.cjs +31 -0
- package/dist/components/ui/kbd.d.cts +6 -0
- package/dist/components/ui/kbd.d.ts +6 -0
- package/dist/components/ui/kbd.js +31 -0
- package/dist/components/ui/label.cjs +22 -0
- package/dist/components/ui/label.d.cts +7 -0
- package/dist/components/ui/label.d.ts +7 -0
- package/dist/components/ui/label.js +22 -0
- package/dist/components/ui/menubar.cjs +252 -0
- package/dist/components/ui/menubar.d.cts +29 -0
- package/dist/components/ui/menubar.d.ts +29 -0
- package/dist/components/ui/menubar.js +252 -0
- package/dist/components/ui/native-select.cjs +63 -0
- package/dist/components/ui/native-select.d.cts +10 -0
- package/dist/components/ui/native-select.d.ts +10 -0
- package/dist/components/ui/native-select.js +63 -0
- package/dist/components/ui/navigation-menu.cjs +170 -0
- package/dist/components/ui/navigation-menu.d.cts +18 -0
- package/dist/components/ui/navigation-menu.d.ts +18 -0
- package/dist/components/ui/navigation-menu.js +170 -0
- package/dist/components/ui/pagination.cjs +122 -0
- package/dist/components/ui/pagination.d.cts +18 -0
- package/dist/components/ui/pagination.d.ts +18 -0
- package/dist/components/ui/pagination.js +122 -0
- package/dist/components/ui/plugin-safety-disclaimer.cjs +26 -0
- package/dist/components/ui/plugin-safety-disclaimer.d.cts +8 -0
- package/dist/components/ui/plugin-safety-disclaimer.d.ts +8 -0
- package/dist/components/ui/plugin-safety-disclaimer.js +26 -0
- package/dist/components/ui/popover.cjs +80 -0
- package/dist/components/ui/popover.d.cts +13 -0
- package/dist/components/ui/popover.d.ts +13 -0
- package/dist/components/ui/popover.js +80 -0
- package/dist/components/ui/progress.cjs +32 -0
- package/dist/components/ui/progress.d.cts +7 -0
- package/dist/components/ui/progress.d.ts +7 -0
- package/dist/components/ui/progress.js +32 -0
- package/dist/components/ui/radio-group.cjs +45 -0
- package/dist/components/ui/radio-group.d.cts +8 -0
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.js +45 -0
- package/dist/components/ui/resizable.cjs +47 -0
- package/dist/components/ui/resizable.d.cts +10 -0
- package/dist/components/ui/resizable.d.ts +10 -0
- package/dist/components/ui/resizable.js +47 -0
- package/dist/components/ui/scroll-area.cjs +60 -0
- package/dist/components/ui/scroll-area.d.cts +8 -0
- package/dist/components/ui/scroll-area.d.ts +8 -0
- package/dist/components/ui/scroll-area.js +60 -0
- package/dist/components/ui/search-input.cjs +39 -0
- package/dist/components/ui/search-input.d.cts +12 -0
- package/dist/components/ui/search-input.d.ts +12 -0
- package/dist/components/ui/search-input.js +39 -0
- package/dist/components/ui/select.cjs +179 -0
- package/dist/components/ui/select.d.cts +18 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/select.js +179 -0
- package/dist/components/ui/separator.cjs +27 -0
- package/dist/components/ui/separator.d.cts +7 -0
- package/dist/components/ui/separator.d.ts +7 -0
- package/dist/components/ui/separator.js +27 -0
- package/dist/components/ui/sheet.cjs +129 -0
- package/dist/components/ui/sheet.d.cts +18 -0
- package/dist/components/ui/sheet.d.ts +18 -0
- package/dist/components/ui/sheet.js +129 -0
- package/dist/components/ui/sidebar.cjs +649 -0
- package/dist/components/ui/sidebar.d.cts +74 -0
- package/dist/components/ui/sidebar.d.ts +74 -0
- package/dist/components/ui/sidebar.js +649 -0
- package/dist/components/ui/skeleton.cjs +15 -0
- package/dist/components/ui/skeleton.d.cts +5 -0
- package/dist/components/ui/skeleton.d.ts +5 -0
- package/dist/components/ui/skeleton.js +15 -0
- package/dist/components/ui/slider.cjs +68 -0
- package/dist/components/ui/slider.d.cts +7 -0
- package/dist/components/ui/slider.d.ts +7 -0
- package/dist/components/ui/slider.js +68 -0
- package/dist/components/ui/sonner.cjs +38 -0
- package/dist/components/ui/sonner.d.cts +6 -0
- package/dist/components/ui/sonner.d.ts +6 -0
- package/dist/components/ui/sonner.js +38 -0
- package/dist/components/ui/spinner.cjs +17 -0
- package/dist/components/ui/spinner.d.cts +5 -0
- package/dist/components/ui/spinner.d.ts +5 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/switch.cjs +33 -0
- package/dist/components/ui/switch.d.cts +9 -0
- package/dist/components/ui/switch.d.ts +9 -0
- package/dist/components/ui/switch.js +33 -0
- package/dist/components/ui/table.cjs +115 -0
- package/dist/components/ui/table.d.cts +13 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/table.js +115 -0
- package/dist/components/ui/tabs.cjs +92 -0
- package/dist/components/ui/tabs.d.cts +15 -0
- package/dist/components/ui/tabs.d.ts +15 -0
- package/dist/components/ui/tabs.js +92 -0
- package/dist/components/ui/textarea.cjs +20 -0
- package/dist/components/ui/textarea.d.cts +6 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.js +20 -0
- package/dist/components/ui/toggle-group.cjs +69 -0
- package/dist/components/ui/toggle-group.d.cts +13 -0
- package/dist/components/ui/toggle-group.d.ts +13 -0
- package/dist/components/ui/toggle-group.js +69 -0
- package/dist/components/ui/toggle.cjs +44 -0
- package/dist/components/ui/toggle.d.cts +13 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.js +44 -0
- package/dist/components/ui/tooltip.cjs +56 -0
- package/dist/components/ui/tooltip.d.cts +10 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.js +56 -0
- package/dist/components/ui/tree.cjs +131 -0
- package/dist/components/ui/tree.d.cts +35 -0
- package/dist/components/ui/tree.d.ts +35 -0
- package/dist/components/ui/tree.js +131 -0
- package/dist/hooks/use-mobile.cjs +16 -0
- package/dist/hooks/use-mobile.d.cts +3 -0
- package/dist/hooks/use-mobile.d.ts +3 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/index.cjs +121 -0
- package/dist/index.d.cts +145 -0
- package/dist/index.d.ts +145 -0
- package/dist/index.js +121 -0
- package/dist/lib/utils.cjs +8 -0
- package/dist/lib/utils.d.cts +5 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +8 -0
- package/dist/theme/apply-theme.cjs +221 -0
- package/dist/theme/apply-theme.d.cts +13 -0
- package/dist/theme/apply-theme.d.ts +13 -0
- package/dist/theme/apply-theme.js +221 -0
- package/dist/theme/index.cjs +2 -0
- package/dist/theme/index.d.cts +2 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +2 -0
- package/dist/theme/types.cjs +90 -0
- package/dist/theme/types.d.cts +133 -0
- package/dist/theme/types.d.ts +133 -0
- package/dist/theme/types.js +90 -0
- package/package.json +17 -10
- package/tsup.config.ts +14 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import {
|
|
4
|
+
Collapsible,
|
|
5
|
+
CollapsibleContent,
|
|
6
|
+
CollapsibleTrigger
|
|
7
|
+
} from "../ui/collapsible";
|
|
8
|
+
import { cn } from "../../lib/utils";
|
|
9
|
+
import {
|
|
10
|
+
ChevronRightIcon,
|
|
11
|
+
FileIcon,
|
|
12
|
+
FolderIcon,
|
|
13
|
+
FolderOpenIcon
|
|
14
|
+
} from "lucide-react";
|
|
15
|
+
import {
|
|
16
|
+
createContext,
|
|
17
|
+
useCallback,
|
|
18
|
+
use,
|
|
19
|
+
useMemo,
|
|
20
|
+
useState
|
|
21
|
+
} from "react";
|
|
22
|
+
const noop = () => {
|
|
23
|
+
};
|
|
24
|
+
const FileTreeContext = createContext({
|
|
25
|
+
// oxlint-disable-next-line eslint-plugin-unicorn(no-new-builtin)
|
|
26
|
+
expandedPaths: /* @__PURE__ */ new Set(),
|
|
27
|
+
togglePath: noop
|
|
28
|
+
});
|
|
29
|
+
const FileTree = ({
|
|
30
|
+
expanded: controlledExpanded,
|
|
31
|
+
defaultExpanded = /* @__PURE__ */ new Set(),
|
|
32
|
+
selectedPath,
|
|
33
|
+
onSelect,
|
|
34
|
+
onExpandedChange,
|
|
35
|
+
className,
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
}) => {
|
|
39
|
+
const [internalExpanded, setInternalExpanded] = useState(defaultExpanded);
|
|
40
|
+
const expandedPaths = controlledExpanded ?? internalExpanded;
|
|
41
|
+
const togglePath = useCallback(
|
|
42
|
+
(path) => {
|
|
43
|
+
const newExpanded = new Set(expandedPaths);
|
|
44
|
+
if (newExpanded.has(path)) {
|
|
45
|
+
newExpanded.delete(path);
|
|
46
|
+
} else {
|
|
47
|
+
newExpanded.add(path);
|
|
48
|
+
}
|
|
49
|
+
setInternalExpanded(newExpanded);
|
|
50
|
+
onExpandedChange?.(newExpanded);
|
|
51
|
+
},
|
|
52
|
+
[expandedPaths, onExpandedChange]
|
|
53
|
+
);
|
|
54
|
+
const contextValue = useMemo(
|
|
55
|
+
() => ({ expandedPaths, onSelect, selectedPath, togglePath }),
|
|
56
|
+
[expandedPaths, onSelect, selectedPath, togglePath]
|
|
57
|
+
);
|
|
58
|
+
return /* @__PURE__ */ jsx(FileTreeContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
className: cn(
|
|
62
|
+
"rounded-lg border bg-background font-mono text-sm",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
role: "tree",
|
|
66
|
+
...props,
|
|
67
|
+
children: /* @__PURE__ */ jsx("div", { className: "p-2", children })
|
|
68
|
+
}
|
|
69
|
+
) });
|
|
70
|
+
};
|
|
71
|
+
const FileTreeFolderContext = createContext({
|
|
72
|
+
isExpanded: false,
|
|
73
|
+
name: "",
|
|
74
|
+
path: ""
|
|
75
|
+
});
|
|
76
|
+
const FileTreeFolder = ({
|
|
77
|
+
path,
|
|
78
|
+
name,
|
|
79
|
+
className,
|
|
80
|
+
children,
|
|
81
|
+
...props
|
|
82
|
+
}) => {
|
|
83
|
+
const { expandedPaths, togglePath, selectedPath, onSelect } = use(FileTreeContext);
|
|
84
|
+
const isExpanded = expandedPaths.has(path);
|
|
85
|
+
const isSelected = selectedPath === path;
|
|
86
|
+
const handleOpenChange = useCallback(() => {
|
|
87
|
+
togglePath(path);
|
|
88
|
+
}, [togglePath, path]);
|
|
89
|
+
const handleSelect = useCallback(() => {
|
|
90
|
+
onSelect?.(path);
|
|
91
|
+
}, [onSelect, path]);
|
|
92
|
+
const folderContextValue = useMemo(
|
|
93
|
+
() => ({ isExpanded, name, path }),
|
|
94
|
+
[isExpanded, name, path]
|
|
95
|
+
);
|
|
96
|
+
return /* @__PURE__ */ jsx(FileTreeFolderContext.Provider, { value: folderContextValue, children: /* @__PURE__ */ jsx(Collapsible, { onOpenChange: handleOpenChange, open: isExpanded, children: /* @__PURE__ */ jsxs(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: cn("", className),
|
|
100
|
+
role: "treeitem",
|
|
101
|
+
tabIndex: 0,
|
|
102
|
+
...props,
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsx(CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
105
|
+
"button",
|
|
106
|
+
{
|
|
107
|
+
className: cn(
|
|
108
|
+
"flex w-full items-center gap-1 rounded px-2 py-1 text-left transition-colors hover:bg-muted/50",
|
|
109
|
+
isSelected && "bg-muted"
|
|
110
|
+
),
|
|
111
|
+
onClick: handleSelect,
|
|
112
|
+
type: "button",
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ jsx(
|
|
115
|
+
ChevronRightIcon,
|
|
116
|
+
{
|
|
117
|
+
className: cn(
|
|
118
|
+
"size-4 shrink-0 text-muted-foreground transition-transform",
|
|
119
|
+
isExpanded && "rotate-90"
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ jsx(FileTreeIcon, { children: isExpanded ? /* @__PURE__ */ jsx(FolderOpenIcon, { className: "size-4 text-blue-500" }) : /* @__PURE__ */ jsx(FolderIcon, { className: "size-4 text-blue-500" }) }),
|
|
124
|
+
/* @__PURE__ */ jsx(FileTreeName, { children: name })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
) }),
|
|
128
|
+
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "ml-4 border-l pl-2", children }) })
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
) }) });
|
|
132
|
+
};
|
|
133
|
+
const FileTreeFileContext = createContext({
|
|
134
|
+
name: "",
|
|
135
|
+
path: ""
|
|
136
|
+
});
|
|
137
|
+
const FileTreeFile = ({
|
|
138
|
+
path,
|
|
139
|
+
name,
|
|
140
|
+
icon,
|
|
141
|
+
className,
|
|
142
|
+
children,
|
|
143
|
+
...props
|
|
144
|
+
}) => {
|
|
145
|
+
const { selectedPath, onSelect } = use(FileTreeContext);
|
|
146
|
+
const isSelected = selectedPath === path;
|
|
147
|
+
const handleClick = useCallback(() => {
|
|
148
|
+
onSelect?.(path);
|
|
149
|
+
}, [onSelect, path]);
|
|
150
|
+
const handleKeyDown = useCallback(
|
|
151
|
+
(e) => {
|
|
152
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
153
|
+
onSelect?.(path);
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[onSelect, path]
|
|
157
|
+
);
|
|
158
|
+
const fileContextValue = useMemo(() => ({ name, path }), [name, path]);
|
|
159
|
+
return /* @__PURE__ */ jsx(FileTreeFileContext.Provider, { value: fileContextValue, children: /* @__PURE__ */ jsx(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
className: cn(
|
|
163
|
+
"flex cursor-pointer items-center gap-1 rounded px-2 py-1 transition-colors hover:bg-muted/50",
|
|
164
|
+
isSelected && "bg-muted",
|
|
165
|
+
className
|
|
166
|
+
),
|
|
167
|
+
onClick: handleClick,
|
|
168
|
+
onKeyDown: handleKeyDown,
|
|
169
|
+
role: "treeitem",
|
|
170
|
+
tabIndex: 0,
|
|
171
|
+
...props,
|
|
172
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
173
|
+
/* @__PURE__ */ jsx("span", { className: "size-4" }),
|
|
174
|
+
/* @__PURE__ */ jsx(FileTreeIcon, { children: icon ?? /* @__PURE__ */ jsx(FileIcon, { className: "size-4 text-muted-foreground" }) }),
|
|
175
|
+
/* @__PURE__ */ jsx(FileTreeName, { children: name })
|
|
176
|
+
] })
|
|
177
|
+
}
|
|
178
|
+
) });
|
|
179
|
+
};
|
|
180
|
+
const FileTreeIcon = ({
|
|
181
|
+
className,
|
|
182
|
+
children,
|
|
183
|
+
...props
|
|
184
|
+
}) => /* @__PURE__ */ jsx("span", { className: cn("shrink-0", className), ...props, children });
|
|
185
|
+
const FileTreeName = ({
|
|
186
|
+
className,
|
|
187
|
+
children,
|
|
188
|
+
...props
|
|
189
|
+
}) => /* @__PURE__ */ jsx("span", { className: cn("truncate", className), ...props, children });
|
|
190
|
+
const stopPropagation = (e) => e.stopPropagation();
|
|
191
|
+
const FileTreeActions = ({
|
|
192
|
+
className,
|
|
193
|
+
children,
|
|
194
|
+
...props
|
|
195
|
+
}) => (
|
|
196
|
+
// biome-ignore lint/a11y/noNoninteractiveElementInteractions: stopPropagation required for nested interactions
|
|
197
|
+
// biome-ignore lint/a11y/useSemanticElements: fieldset doesn't fit this UI pattern
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
className: cn("ml-auto flex items-center gap-1", className),
|
|
202
|
+
onClick: stopPropagation,
|
|
203
|
+
onKeyDown: stopPropagation,
|
|
204
|
+
role: "group",
|
|
205
|
+
...props,
|
|
206
|
+
children
|
|
207
|
+
}
|
|
208
|
+
)
|
|
209
|
+
);
|
|
210
|
+
export {
|
|
211
|
+
FileTree,
|
|
212
|
+
FileTreeActions,
|
|
213
|
+
FileTreeFile,
|
|
214
|
+
FileTreeFolder,
|
|
215
|
+
FileTreeIcon,
|
|
216
|
+
FileTreeName
|
|
217
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _jsxruntime = require('react/jsx-runtime');
|
|
2
|
+
var _utils = require('../../lib/utils');
|
|
3
|
+
const Image = ({
|
|
4
|
+
base64,
|
|
5
|
+
uint8Array: _uint8Array,
|
|
6
|
+
mediaType,
|
|
7
|
+
...props
|
|
8
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9
|
+
"img",
|
|
10
|
+
{
|
|
11
|
+
...props,
|
|
12
|
+
alt: props.alt,
|
|
13
|
+
className: _utils.cn.call(void 0,
|
|
14
|
+
"h-auto max-w-full overflow-hidden rounded-md",
|
|
15
|
+
props.className
|
|
16
|
+
),
|
|
17
|
+
src: `data:${mediaType};base64,${base64}`
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.Image = Image;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Experimental_GeneratedImage } from 'ai';
|
|
3
|
+
|
|
4
|
+
type ImageProps = Experimental_GeneratedImage & {
|
|
5
|
+
className?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Image: ({ base64, uint8Array: _uint8Array, mediaType, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Image, type ImageProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Experimental_GeneratedImage } from 'ai';
|
|
3
|
+
|
|
4
|
+
type ImageProps = Experimental_GeneratedImage & {
|
|
5
|
+
className?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Image: ({ base64, uint8Array: _uint8Array, mediaType, ...props }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Image, type ImageProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/utils";
|
|
3
|
+
const Image = ({
|
|
4
|
+
base64,
|
|
5
|
+
uint8Array: _uint8Array,
|
|
6
|
+
mediaType,
|
|
7
|
+
...props
|
|
8
|
+
}) => /* @__PURE__ */ jsx(
|
|
9
|
+
"img",
|
|
10
|
+
{
|
|
11
|
+
...props,
|
|
12
|
+
alt: props.alt,
|
|
13
|
+
className: cn(
|
|
14
|
+
"h-auto max-w-full overflow-hidden rounded-md",
|
|
15
|
+
props.className
|
|
16
|
+
),
|
|
17
|
+
src: `data:${mediaType};base64,${base64}`
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
Image
|
|
22
|
+
};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
3
|
+
var _badge = require('../ui/badge');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _carousel = require('../ui/carousel');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _hovercard = require('../ui/hover-card');
|
|
14
|
+
var _utils = require('../../lib/utils');
|
|
15
|
+
var _lucidereact = require('lucide-react');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _react = require('react');
|
|
23
|
+
const InlineCitation = ({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
27
|
+
"span",
|
|
28
|
+
{
|
|
29
|
+
className: _utils.cn.call(void 0, "group inline items-center gap-1", className),
|
|
30
|
+
...props
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
const InlineCitationText = ({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
37
|
+
"span",
|
|
38
|
+
{
|
|
39
|
+
className: _utils.cn.call(void 0, "transition-colors group-hover:bg-accent", className),
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const InlineCitationCard = (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _hovercard.HoverCard, { closeDelay: 0, openDelay: 0, ...props });
|
|
44
|
+
const InlineCitationCardTrigger = ({
|
|
45
|
+
sources,
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _hovercard.HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
+
_badge.Badge,
|
|
50
|
+
{
|
|
51
|
+
className: _utils.cn.call(void 0, "ml-1 rounded-full", className),
|
|
52
|
+
variant: "secondary",
|
|
53
|
+
...props,
|
|
54
|
+
children: sources[0] ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
55
|
+
new URL(sources[0]).hostname,
|
|
56
|
+
" ",
|
|
57
|
+
sources.length > 1 && `+${sources.length - 1}`
|
|
58
|
+
] }) : "unknown"
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
61
|
+
const InlineCitationCardBody = ({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _hovercard.HoverCardContent, { className: _utils.cn.call(void 0, "relative w-80 p-0", className), ...props });
|
|
65
|
+
const CarouselApiContext = _react.createContext.call(void 0, void 0);
|
|
66
|
+
const useCarouselApi = () => {
|
|
67
|
+
const context = _react.use.call(void 0, CarouselApiContext);
|
|
68
|
+
return context;
|
|
69
|
+
};
|
|
70
|
+
const InlineCitationCarousel = ({
|
|
71
|
+
className,
|
|
72
|
+
children,
|
|
73
|
+
...props
|
|
74
|
+
}) => {
|
|
75
|
+
const [api, setApi] = _react.useState.call(void 0, );
|
|
76
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CarouselApiContext.Provider, { value: api, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _carousel.Carousel, { className: _utils.cn.call(void 0, "w-full", className), setApi, ...props, children }) });
|
|
77
|
+
};
|
|
78
|
+
const InlineCitationCarouselContent = (props) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _carousel.CarouselContent, { ...props });
|
|
79
|
+
const InlineCitationCarouselItem = ({
|
|
80
|
+
className,
|
|
81
|
+
...props
|
|
82
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
83
|
+
_carousel.CarouselItem,
|
|
84
|
+
{
|
|
85
|
+
className: _utils.cn.call(void 0, "w-full space-y-2 p-4 pl-8", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
const InlineCitationCarouselHeader = ({
|
|
90
|
+
className,
|
|
91
|
+
...props
|
|
92
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: _utils.cn.call(void 0,
|
|
96
|
+
"flex items-center justify-between gap-2 rounded-t-md bg-secondary p-2",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
const InlineCitationCarouselIndex = ({
|
|
103
|
+
children,
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}) => {
|
|
107
|
+
const api = useCarouselApi();
|
|
108
|
+
const [current, setCurrent] = _react.useState.call(void 0, 0);
|
|
109
|
+
const [count, setCount] = _react.useState.call(void 0, 0);
|
|
110
|
+
_react.useEffect.call(void 0, () => {
|
|
111
|
+
if (!api) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
setCount(api.scrollSnapList().length);
|
|
115
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
116
|
+
const handleSelect = () => {
|
|
117
|
+
setCurrent(api.selectedScrollSnap() + 1);
|
|
118
|
+
};
|
|
119
|
+
api.on("select", handleSelect);
|
|
120
|
+
return () => {
|
|
121
|
+
api.off("select", handleSelect);
|
|
122
|
+
};
|
|
123
|
+
}, [api]);
|
|
124
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
125
|
+
"div",
|
|
126
|
+
{
|
|
127
|
+
className: _utils.cn.call(void 0,
|
|
128
|
+
"flex flex-1 items-center justify-end px-3 py-1 text-muted-foreground text-xs",
|
|
129
|
+
className
|
|
130
|
+
),
|
|
131
|
+
...props,
|
|
132
|
+
children: _nullishCoalesce(children, () => ( `${current}/${count}`))
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
const InlineCitationCarouselPrev = ({
|
|
137
|
+
className,
|
|
138
|
+
...props
|
|
139
|
+
}) => {
|
|
140
|
+
const api = useCarouselApi();
|
|
141
|
+
const handleClick = _react.useCallback.call(void 0, () => {
|
|
142
|
+
if (api) {
|
|
143
|
+
api.scrollPrev();
|
|
144
|
+
}
|
|
145
|
+
}, [api]);
|
|
146
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
147
|
+
"button",
|
|
148
|
+
{
|
|
149
|
+
"aria-label": "Previous",
|
|
150
|
+
className: _utils.cn.call(void 0, "shrink-0", className),
|
|
151
|
+
onClick: handleClick,
|
|
152
|
+
type: "button",
|
|
153
|
+
...props,
|
|
154
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowLeftIcon, { className: "size-4 text-muted-foreground" })
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
const InlineCitationCarouselNext = ({
|
|
159
|
+
className,
|
|
160
|
+
...props
|
|
161
|
+
}) => {
|
|
162
|
+
const api = useCarouselApi();
|
|
163
|
+
const handleClick = _react.useCallback.call(void 0, () => {
|
|
164
|
+
if (api) {
|
|
165
|
+
api.scrollNext();
|
|
166
|
+
}
|
|
167
|
+
}, [api]);
|
|
168
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
+
"button",
|
|
170
|
+
{
|
|
171
|
+
"aria-label": "Next",
|
|
172
|
+
className: _utils.cn.call(void 0, "shrink-0", className),
|
|
173
|
+
onClick: handleClick,
|
|
174
|
+
type: "button",
|
|
175
|
+
...props,
|
|
176
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowRightIcon, { className: "size-4 text-muted-foreground" })
|
|
177
|
+
}
|
|
178
|
+
);
|
|
179
|
+
};
|
|
180
|
+
const InlineCitationSource = ({
|
|
181
|
+
title,
|
|
182
|
+
url,
|
|
183
|
+
description,
|
|
184
|
+
className,
|
|
185
|
+
children,
|
|
186
|
+
...props
|
|
187
|
+
}) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _utils.cn.call(void 0, "space-y-1", className), ...props, children: [
|
|
188
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h4", { className: "truncate font-medium text-sm leading-tight", children: title }),
|
|
189
|
+
url && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate break-all text-muted-foreground text-xs", children: url }),
|
|
190
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-3 text-muted-foreground text-sm leading-relaxed", children: description }),
|
|
191
|
+
children
|
|
192
|
+
] });
|
|
193
|
+
const InlineCitationQuote = ({
|
|
194
|
+
children,
|
|
195
|
+
className,
|
|
196
|
+
...props
|
|
197
|
+
}) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
198
|
+
"blockquote",
|
|
199
|
+
{
|
|
200
|
+
className: _utils.cn.call(void 0,
|
|
201
|
+
"border-muted border-l-2 pl-3 text-muted-foreground text-sm italic",
|
|
202
|
+
className
|
|
203
|
+
),
|
|
204
|
+
...props,
|
|
205
|
+
children
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
exports.InlineCitation = InlineCitation; exports.InlineCitationCard = InlineCitationCard; exports.InlineCitationCardBody = InlineCitationCardBody; exports.InlineCitationCardTrigger = InlineCitationCardTrigger; exports.InlineCitationCarousel = InlineCitationCarousel; exports.InlineCitationCarouselContent = InlineCitationCarouselContent; exports.InlineCitationCarouselHeader = InlineCitationCarouselHeader; exports.InlineCitationCarouselIndex = InlineCitationCarouselIndex; exports.InlineCitationCarouselItem = InlineCitationCarouselItem; exports.InlineCitationCarouselNext = InlineCitationCarouselNext; exports.InlineCitationCarouselPrev = InlineCitationCarouselPrev; exports.InlineCitationQuote = InlineCitationQuote; exports.InlineCitationSource = InlineCitationSource; exports.InlineCitationText = InlineCitationText;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Badge } from '../ui/badge.cjs';
|
|
4
|
+
import { Carousel } from '../ui/carousel.cjs';
|
|
5
|
+
import { HoverCard } from '../ui/hover-card.cjs';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
import 'embla-carousel-react';
|
|
9
|
+
import '../ui/button.cjs';
|
|
10
|
+
import 'radix-ui';
|
|
11
|
+
|
|
12
|
+
type InlineCitationProps = ComponentProps<"span">;
|
|
13
|
+
declare const InlineCitation: ({ className, ...props }: InlineCitationProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
type InlineCitationTextProps = ComponentProps<"span">;
|
|
15
|
+
declare const InlineCitationText: ({ className, ...props }: InlineCitationTextProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
type InlineCitationCardProps = ComponentProps<typeof HoverCard>;
|
|
17
|
+
declare const InlineCitationCard: (props: InlineCitationCardProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
type InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {
|
|
19
|
+
sources: string[];
|
|
20
|
+
};
|
|
21
|
+
declare const InlineCitationCardTrigger: ({ sources, className, ...props }: InlineCitationCardTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
type InlineCitationCardBodyProps = ComponentProps<"div">;
|
|
23
|
+
declare const InlineCitationCardBody: ({ className, ...props }: InlineCitationCardBodyProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
type InlineCitationCarouselProps = ComponentProps<typeof Carousel>;
|
|
25
|
+
declare const InlineCitationCarousel: ({ className, children, ...props }: InlineCitationCarouselProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
type InlineCitationCarouselContentProps = ComponentProps<"div">;
|
|
27
|
+
declare const InlineCitationCarouselContent: (props: InlineCitationCarouselContentProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
type InlineCitationCarouselItemProps = ComponentProps<"div">;
|
|
29
|
+
declare const InlineCitationCarouselItem: ({ className, ...props }: InlineCitationCarouselItemProps) => react_jsx_runtime.JSX.Element;
|
|
30
|
+
type InlineCitationCarouselHeaderProps = ComponentProps<"div">;
|
|
31
|
+
declare const InlineCitationCarouselHeader: ({ className, ...props }: InlineCitationCarouselHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
type InlineCitationCarouselIndexProps = ComponentProps<"div">;
|
|
33
|
+
declare const InlineCitationCarouselIndex: ({ children, className, ...props }: InlineCitationCarouselIndexProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
type InlineCitationCarouselPrevProps = ComponentProps<"button">;
|
|
35
|
+
declare const InlineCitationCarouselPrev: ({ className, ...props }: InlineCitationCarouselPrevProps) => react_jsx_runtime.JSX.Element;
|
|
36
|
+
type InlineCitationCarouselNextProps = ComponentProps<"button">;
|
|
37
|
+
declare const InlineCitationCarouselNext: ({ className, ...props }: InlineCitationCarouselNextProps) => react_jsx_runtime.JSX.Element;
|
|
38
|
+
type InlineCitationSourceProps = ComponentProps<"div"> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
url?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
};
|
|
43
|
+
declare const InlineCitationSource: ({ title, url, description, className, children, ...props }: InlineCitationSourceProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
type InlineCitationQuoteProps = ComponentProps<"blockquote">;
|
|
45
|
+
declare const InlineCitationQuote: ({ children, className, ...props }: InlineCitationQuoteProps) => react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { InlineCitation, InlineCitationCard, InlineCitationCardBody, type InlineCitationCardBodyProps, type InlineCitationCardProps, InlineCitationCardTrigger, type InlineCitationCardTriggerProps, InlineCitationCarousel, InlineCitationCarouselContent, type InlineCitationCarouselContentProps, InlineCitationCarouselHeader, type InlineCitationCarouselHeaderProps, InlineCitationCarouselIndex, type InlineCitationCarouselIndexProps, InlineCitationCarouselItem, type InlineCitationCarouselItemProps, InlineCitationCarouselNext, type InlineCitationCarouselNextProps, InlineCitationCarouselPrev, type InlineCitationCarouselPrevProps, type InlineCitationCarouselProps, type InlineCitationProps, InlineCitationQuote, type InlineCitationQuoteProps, InlineCitationSource, type InlineCitationSourceProps, InlineCitationText, type InlineCitationTextProps };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Badge } from '../ui/badge.js';
|
|
4
|
+
import { Carousel } from '../ui/carousel.js';
|
|
5
|
+
import { HoverCard } from '../ui/hover-card.js';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
import 'embla-carousel-react';
|
|
9
|
+
import '../ui/button.js';
|
|
10
|
+
import 'radix-ui';
|
|
11
|
+
|
|
12
|
+
type InlineCitationProps = ComponentProps<"span">;
|
|
13
|
+
declare const InlineCitation: ({ className, ...props }: InlineCitationProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
type InlineCitationTextProps = ComponentProps<"span">;
|
|
15
|
+
declare const InlineCitationText: ({ className, ...props }: InlineCitationTextProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
type InlineCitationCardProps = ComponentProps<typeof HoverCard>;
|
|
17
|
+
declare const InlineCitationCard: (props: InlineCitationCardProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
type InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {
|
|
19
|
+
sources: string[];
|
|
20
|
+
};
|
|
21
|
+
declare const InlineCitationCardTrigger: ({ sources, className, ...props }: InlineCitationCardTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
type InlineCitationCardBodyProps = ComponentProps<"div">;
|
|
23
|
+
declare const InlineCitationCardBody: ({ className, ...props }: InlineCitationCardBodyProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
type InlineCitationCarouselProps = ComponentProps<typeof Carousel>;
|
|
25
|
+
declare const InlineCitationCarousel: ({ className, children, ...props }: InlineCitationCarouselProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
type InlineCitationCarouselContentProps = ComponentProps<"div">;
|
|
27
|
+
declare const InlineCitationCarouselContent: (props: InlineCitationCarouselContentProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
+
type InlineCitationCarouselItemProps = ComponentProps<"div">;
|
|
29
|
+
declare const InlineCitationCarouselItem: ({ className, ...props }: InlineCitationCarouselItemProps) => react_jsx_runtime.JSX.Element;
|
|
30
|
+
type InlineCitationCarouselHeaderProps = ComponentProps<"div">;
|
|
31
|
+
declare const InlineCitationCarouselHeader: ({ className, ...props }: InlineCitationCarouselHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
type InlineCitationCarouselIndexProps = ComponentProps<"div">;
|
|
33
|
+
declare const InlineCitationCarouselIndex: ({ children, className, ...props }: InlineCitationCarouselIndexProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
type InlineCitationCarouselPrevProps = ComponentProps<"button">;
|
|
35
|
+
declare const InlineCitationCarouselPrev: ({ className, ...props }: InlineCitationCarouselPrevProps) => react_jsx_runtime.JSX.Element;
|
|
36
|
+
type InlineCitationCarouselNextProps = ComponentProps<"button">;
|
|
37
|
+
declare const InlineCitationCarouselNext: ({ className, ...props }: InlineCitationCarouselNextProps) => react_jsx_runtime.JSX.Element;
|
|
38
|
+
type InlineCitationSourceProps = ComponentProps<"div"> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
url?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
};
|
|
43
|
+
declare const InlineCitationSource: ({ title, url, description, className, children, ...props }: InlineCitationSourceProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
type InlineCitationQuoteProps = ComponentProps<"blockquote">;
|
|
45
|
+
declare const InlineCitationQuote: ({ children, className, ...props }: InlineCitationQuoteProps) => react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
export { InlineCitation, InlineCitationCard, InlineCitationCardBody, type InlineCitationCardBodyProps, type InlineCitationCardProps, InlineCitationCardTrigger, type InlineCitationCardTriggerProps, InlineCitationCarousel, InlineCitationCarouselContent, type InlineCitationCarouselContentProps, InlineCitationCarouselHeader, type InlineCitationCarouselHeaderProps, InlineCitationCarouselIndex, type InlineCitationCarouselIndexProps, InlineCitationCarouselItem, type InlineCitationCarouselItemProps, InlineCitationCarouselNext, type InlineCitationCarouselNextProps, InlineCitationCarouselPrev, type InlineCitationCarouselPrevProps, type InlineCitationCarouselProps, type InlineCitationProps, InlineCitationQuote, type InlineCitationQuoteProps, InlineCitationSource, type InlineCitationSourceProps, InlineCitationText, type InlineCitationTextProps };
|