@chatsdk-dev/ui 0.1.2 → 0.2.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/dist/atoms/accordion.d.ts +4 -4
- package/dist/atoms/accordion.d.ts.map +1 -1
- package/dist/atoms/alert-dialog.d.ts +22 -14
- package/dist/atoms/alert-dialog.d.ts.map +1 -1
- package/dist/atoms/alert-dialog.js +13 -8
- package/dist/atoms/alert.d.ts +4 -4
- package/dist/atoms/alert.d.ts.map +1 -1
- package/dist/atoms/attachment.d.ts +24 -0
- package/dist/atoms/attachment.d.ts.map +1 -0
- package/dist/atoms/attachment.js +76 -0
- package/dist/atoms/avatar.d.ts +6 -6
- package/dist/atoms/avatar.d.ts.map +1 -1
- package/dist/atoms/badge.d.ts +1 -1
- package/dist/atoms/bubble.d.ts +17 -0
- package/dist/atoms/bubble.d.ts.map +1 -0
- package/dist/atoms/bubble.js +59 -0
- package/dist/atoms/button-group.d.ts +2 -2
- package/dist/atoms/button-group.d.ts.map +1 -1
- package/dist/atoms/button-loader.d.ts +2 -2
- package/dist/atoms/button-loader.d.ts.map +1 -1
- package/dist/atoms/button.d.ts +2 -2
- package/dist/atoms/button.d.ts.map +1 -1
- package/dist/atoms/button.js +2 -1
- package/dist/atoms/card.d.ts +7 -7
- package/dist/atoms/card.d.ts.map +1 -1
- package/dist/atoms/carousel.d.ts +5 -5
- package/dist/atoms/carousel.d.ts.map +1 -1
- package/dist/atoms/carousel.js +1 -0
- package/dist/atoms/collapsible.d.ts +3 -3
- package/dist/atoms/collapsible.d.ts.map +1 -1
- package/dist/atoms/command.d.ts +9 -9
- package/dist/atoms/command.d.ts.map +1 -1
- package/dist/atoms/container.d.ts +1 -1
- package/dist/atoms/container.d.ts.map +1 -1
- package/dist/atoms/dialog.d.ts +10 -10
- package/dist/atoms/dialog.d.ts.map +1 -1
- package/dist/atoms/dialog.js +4 -2
- package/dist/atoms/dots-loader.d.ts +1 -1
- package/dist/atoms/dots-loader.d.ts.map +1 -1
- package/dist/atoms/drawer.d.ts +10 -10
- package/dist/atoms/drawer.d.ts.map +1 -1
- package/dist/atoms/drawer.js +6 -4
- package/dist/atoms/dropdown-menu.d.ts +15 -15
- package/dist/atoms/dropdown-menu.d.ts.map +1 -1
- package/dist/atoms/dropdown-menu.js +8 -5
- package/dist/atoms/empty.d.ts +6 -6
- package/dist/atoms/empty.d.ts.map +1 -1
- package/dist/atoms/field.d.ts +10 -10
- package/dist/atoms/field.d.ts.map +1 -1
- package/dist/atoms/form.d.ts +6 -6
- package/dist/atoms/form.d.ts.map +1 -1
- package/dist/atoms/form.js +4 -2
- package/dist/atoms/header.d.ts +1 -1
- package/dist/atoms/header.d.ts.map +1 -1
- package/dist/atoms/hover-card.d.ts +3 -3
- package/dist/atoms/hover-card.d.ts.map +1 -1
- package/dist/atoms/hover-card.js +3 -1
- package/dist/atoms/input-group.d.ts +7 -7
- package/dist/atoms/input-group.d.ts.map +1 -1
- package/dist/atoms/input.d.ts +1 -1
- package/dist/atoms/input.d.ts.map +1 -1
- package/dist/atoms/input.js +1 -1
- package/dist/atoms/label.d.ts +1 -1
- package/dist/atoms/label.d.ts.map +1 -1
- package/dist/atoms/logo.d.ts +1 -1
- package/dist/atoms/logo.d.ts.map +1 -1
- package/dist/atoms/marker.d.ts +11 -0
- package/dist/atoms/marker.d.ts.map +1 -0
- package/dist/atoms/marker.js +34 -0
- package/dist/atoms/message-scroller.d.ts +11 -0
- package/dist/atoms/message-scroller.d.ts.map +1 -0
- package/dist/atoms/message-scroller.js +25 -0
- package/dist/atoms/message.d.ts +11 -0
- package/dist/atoms/message.d.ts.map +1 -0
- package/dist/atoms/message.js +21 -0
- package/dist/atoms/number-flow.d.ts +1 -1
- package/dist/atoms/number-flow.d.ts.map +1 -1
- package/dist/atoms/popover.d.ts +6 -6
- package/dist/atoms/popover.d.ts.map +1 -1
- package/dist/atoms/popover.js +3 -1
- package/dist/atoms/progress.d.ts +5 -5
- package/dist/atoms/progress.d.ts.map +1 -1
- package/dist/atoms/radio-group.d.ts +2 -2
- package/dist/atoms/radio-group.d.ts.map +1 -1
- package/dist/atoms/scroll-area.d.ts +2 -2
- package/dist/atoms/scroll-area.d.ts.map +1 -1
- package/dist/atoms/select.d.ts +9 -9
- package/dist/atoms/select.d.ts.map +1 -1
- package/dist/atoms/select.js +5 -3
- package/dist/atoms/separator.d.ts +1 -1
- package/dist/atoms/separator.d.ts.map +1 -1
- package/dist/atoms/sheet.d.ts +8 -8
- package/dist/atoms/sheet.d.ts.map +1 -1
- package/dist/atoms/sheet.js +5 -3
- package/dist/atoms/sidebar.d.ts +19 -19
- package/dist/atoms/sidebar.d.ts.map +1 -1
- package/dist/atoms/sidebar.js +1 -1
- package/dist/atoms/skeleton.d.ts +1 -1
- package/dist/atoms/skeleton.d.ts.map +1 -1
- package/dist/atoms/spinner.d.ts +1 -1
- package/dist/atoms/spinner.d.ts.map +1 -1
- package/dist/atoms/switch.d.ts +1 -1
- package/dist/atoms/switch.d.ts.map +1 -1
- package/dist/atoms/table.d.ts +8 -8
- package/dist/atoms/table.d.ts.map +1 -1
- package/dist/atoms/table.js +1 -1
- package/dist/atoms/tabs.d.ts +8 -5
- package/dist/atoms/tabs.d.ts.map +1 -1
- package/dist/atoms/tabs.js +10 -6
- package/dist/atoms/textarea.d.ts +1 -1
- package/dist/atoms/textarea.d.ts.map +1 -1
- package/dist/atoms/toggle.d.ts +2 -2
- package/dist/atoms/toggle.d.ts.map +1 -1
- package/dist/atoms/toggle.js +1 -0
- package/dist/atoms/tooltip.d.ts +7 -5
- package/dist/atoms/tooltip.d.ts.map +1 -1
- package/dist/atoms/tooltip.js +6 -4
- package/dist/atoms/typography/h1.d.ts +1 -1
- package/dist/atoms/typography/h1.d.ts.map +1 -1
- package/dist/atoms/typography/paragraph.d.ts +1 -1
- package/dist/atoms/typography/paragraph.d.ts.map +1 -1
- package/dist/hooks/use-breakpoint.d.ts.map +1 -1
- package/dist/hooks/use-breakpoint.js +1 -0
- package/dist/hooks/use-controllable-state.js +1 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts +9 -1
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +9 -6
- package/dist/index.css +1693 -996
- package/dist/lib/portal-container.d.ts +12 -0
- package/dist/lib/portal-container.d.ts.map +1 -0
- package/dist/lib/portal-container.js +15 -0
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +27 -0
- package/dist/molecules/ai/action.d.ts +7 -0
- package/dist/molecules/ai/action.d.ts.map +1 -0
- package/dist/molecules/ai/action.js +13 -0
- package/dist/molecules/ai/agent.d.ts +7 -7
- package/dist/molecules/ai/agent.d.ts.map +1 -1
- package/dist/molecules/ai/artifact.d.ts +8 -8
- package/dist/molecules/ai/artifact.d.ts.map +1 -1
- package/dist/molecules/ai/artifact.js +2 -2
- package/dist/molecules/ai/audio-player.d.ts +11 -11
- package/dist/molecules/ai/audio-player.d.ts.map +1 -1
- package/dist/molecules/ai/audio-player.js +1 -3
- package/dist/molecules/ai/canvas.d.ts +1 -2
- package/dist/molecules/ai/canvas.d.ts.map +1 -1
- package/dist/molecules/ai/canvas.js +0 -1
- package/dist/molecules/ai/chain-of-thought.d.ts +7 -7
- package/dist/molecules/ai/chain-of-thought.d.ts.map +1 -1
- package/dist/molecules/ai/checkpoint.d.ts +3 -3
- package/dist/molecules/ai/checkpoint.d.ts.map +1 -1
- package/dist/molecules/ai/code-block.d.ts +13 -13
- package/dist/molecules/ai/code-block.d.ts.map +1 -1
- package/dist/molecules/ai/commit.d.ts +22 -22
- package/dist/molecules/ai/commit.d.ts.map +1 -1
- package/dist/molecules/ai/confirmation.d.ts +4 -12
- package/dist/molecules/ai/confirmation.d.ts.map +1 -1
- package/dist/molecules/ai/context.d.ts +10 -10
- package/dist/molecules/ai/context.d.ts.map +1 -1
- package/dist/molecules/ai/controls.d.ts +1 -1
- package/dist/molecules/ai/controls.d.ts.map +1 -1
- package/dist/molecules/ai/edge.d.ts +2 -2
- package/dist/molecules/ai/environment-variables.d.ts +11 -11
- package/dist/molecules/ai/environment-variables.d.ts.map +1 -1
- package/dist/molecules/ai/file-tree.d.ts +6 -6
- package/dist/molecules/ai/file-tree.d.ts.map +1 -1
- package/dist/molecules/ai/image.d.ts +1 -1
- package/dist/molecules/ai/image.d.ts.map +1 -1
- package/dist/molecules/ai/inline-citation.d.ts +14 -14
- package/dist/molecules/ai/inline-citation.d.ts.map +1 -1
- package/dist/molecules/ai/jsx-preview.d.ts +3 -3
- package/dist/molecules/ai/jsx-preview.d.ts.map +1 -1
- package/dist/molecules/ai/loader.d.ts +1 -1
- package/dist/molecules/ai/loader.d.ts.map +1 -1
- package/dist/molecules/ai/mic-selector.d.ts +9 -9
- package/dist/molecules/ai/mic-selector.d.ts.map +1 -1
- package/dist/molecules/ai/model-selector.d.ts +14 -14
- package/dist/molecules/ai/model-selector.d.ts.map +1 -1
- package/dist/molecules/ai/node.d.ts +7 -7
- package/dist/molecules/ai/node.d.ts.map +1 -1
- package/dist/molecules/ai/open-in-chat.d.ts +12 -12
- package/dist/molecules/ai/open-in-chat.d.ts.map +1 -1
- package/dist/molecules/ai/package-info.d.ts +9 -9
- package/dist/molecules/ai/package-info.d.ts.map +1 -1
- package/dist/molecules/ai/panel.d.ts +1 -1
- package/dist/molecules/ai/panel.d.ts.map +1 -1
- package/dist/molecules/ai/persona.d.ts.map +1 -1
- package/dist/molecules/ai/plan.d.ts +8 -8
- package/dist/molecules/ai/plan.d.ts.map +1 -1
- package/dist/molecules/ai/plan.js +3 -4
- package/dist/molecules/ai/prompt-input.d.ts +35 -35
- package/dist/molecules/ai/prompt-input.d.ts.map +1 -1
- package/dist/molecules/ai/prompt-input.js +5 -15
- package/dist/molecules/ai/queue.d.ts +15 -15
- package/dist/molecules/ai/queue.d.ts.map +1 -1
- package/dist/molecules/ai/reasoning.d.ts +3 -3
- package/dist/molecules/ai/reasoning.d.ts.map +1 -1
- package/dist/molecules/ai/reasoning.js +7 -34
- package/dist/molecules/ai/response.d.ts +3 -4
- package/dist/molecules/ai/response.d.ts.map +1 -1
- package/dist/molecules/ai/response.js +10 -14
- package/dist/molecules/ai/sandbox.d.ts +8 -8
- package/dist/molecules/ai/sandbox.d.ts.map +1 -1
- package/dist/molecules/ai/sandbox.js +1 -1
- package/dist/molecules/ai/schema-display.d.ts +13 -13
- package/dist/molecules/ai/schema-display.d.ts.map +1 -1
- package/dist/molecules/ai/snippet.d.ts +5 -5
- package/dist/molecules/ai/snippet.d.ts.map +1 -1
- package/dist/molecules/ai/sources.d.ts +6 -5
- package/dist/molecules/ai/sources.d.ts.map +1 -1
- package/dist/molecules/ai/sources.js +2 -2
- package/dist/molecules/ai/speech-input.d.ts +1 -1
- package/dist/molecules/ai/speech-input.d.ts.map +1 -1
- package/dist/molecules/ai/stack-trace.d.ts +10 -10
- package/dist/molecules/ai/stack-trace.d.ts.map +1 -1
- package/dist/molecules/ai/stack-trace.js +1 -1
- package/dist/molecules/ai/suggestion.d.ts +2 -2
- package/dist/molecules/ai/suggestion.d.ts.map +1 -1
- package/dist/molecules/ai/task.d.ts +5 -5
- package/dist/molecules/ai/task.d.ts.map +1 -1
- package/dist/molecules/ai/terminal.d.ts +8 -8
- package/dist/molecules/ai/terminal.d.ts.map +1 -1
- package/dist/molecules/ai/test-results.d.ts +17 -17
- package/dist/molecules/ai/test-results.d.ts.map +1 -1
- package/dist/molecules/ai/tool.d.ts +21 -8
- package/dist/molecules/ai/tool.d.ts.map +1 -1
- package/dist/molecules/ai/tool.js +15 -11
- package/dist/molecules/ai/toolbar.d.ts +1 -1
- package/dist/molecules/ai/toolbar.d.ts.map +1 -1
- package/dist/molecules/ai/transcription.d.ts +2 -2
- package/dist/molecules/ai/transcription.d.ts.map +1 -1
- package/dist/molecules/ai/voice-selector.d.ts +19 -19
- package/dist/molecules/ai/voice-selector.d.ts.map +1 -1
- package/dist/molecules/ai/web-preview.d.ts +6 -6
- package/dist/molecules/ai/web-preview.d.ts.map +1 -1
- package/dist/molecules/ai/web-preview.js +2 -2
- package/package.json +27 -27
- package/dist/components/accordion.d.ts +0 -7
- package/dist/components/accordion.d.ts.map +0 -1
- package/dist/components/accordion.js +0 -18
- package/dist/components/alert-dialog.d.ts +0 -19
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js +0 -42
- package/dist/components/alert.d.ts +0 -11
- package/dist/components/alert.d.ts.map +0 -1
- package/dist/components/alert.js +0 -27
- package/dist/components/avatar.d.ts +0 -12
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -23
- package/dist/components/badge.d.ts +0 -8
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -44
- package/dist/components/button-group.d.ts +0 -11
- package/dist/components/button-group.d.ts.map +0 -1
- package/dist/components/button-group.js +0 -36
- package/dist/components/button-loader.d.ts +0 -9
- package/dist/components/button-loader.d.ts.map +0 -1
- package/dist/components/button-loader.js +0 -10
- package/dist/components/button.d.ts +0 -9
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -32
- package/dist/components/card.d.ts +0 -12
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -25
- package/dist/components/carousel.d.ts +0 -29
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js +0 -91
- package/dist/components/collapsible.d.ts +0 -6
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -13
- package/dist/components/command.d.ts +0 -20
- package/dist/components/command.d.ts.map +0 -1
- package/dist/components/command.js +0 -35
- package/dist/components/container.d.ts +0 -8
- package/dist/components/container.d.ts.map +0 -1
- package/dist/components/container.js +0 -5
- package/dist/components/dialog.d.ts +0 -19
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -38
- package/dist/components/dots-loader.d.ts +0 -15
- package/dist/components/dots-loader.d.ts.map +0 -1
- package/dist/components/dots-loader.js +0 -21
- package/dist/components/drawer.d.ts +0 -14
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -35
- package/dist/components/dropdown-menu.d.ts +0 -26
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js +0 -51
- package/dist/components/empty.d.ts +0 -12
- package/dist/components/empty.d.ts.map +0 -1
- package/dist/components/empty.js +0 -33
- package/dist/components/field.d.ts +0 -25
- package/dist/components/field.d.ts.map +0 -1
- package/dist/components/field.js +0 -68
- package/dist/components/form.d.ts +0 -23
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.js +0 -68
- package/dist/components/header.d.ts +0 -6
- package/dist/components/header.d.ts.map +0 -1
- package/dist/components/header.js +0 -6
- package/dist/components/hover-card.d.ts +0 -6
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js +0 -14
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -5
- package/dist/components/input-group.d.ts +0 -19
- package/dist/components/input-group.d.ts.map +0 -1
- package/dist/components/input-group.js +0 -57
- package/dist/components/input.d.ts +0 -7
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -6
- package/dist/components/label.d.ts +0 -3
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js +0 -7
- package/dist/components/logo.d.ts +0 -7
- package/dist/components/logo.d.ts.map +0 -1
- package/dist/components/logo.js +0 -6
- package/dist/components/number-flow.d.ts +0 -3
- package/dist/components/number-flow.d.ts.map +0 -1
- package/dist/components/number-flow.js +0 -6
- package/dist/components/popover.d.ts +0 -10
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js +0 -23
- package/dist/components/progress.d.ts +0 -8
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js +0 -20
- package/dist/components/radio-group.d.ts +0 -6
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js +0 -13
- package/dist/components/responsive-alert-dialog.d.ts +0 -16
- package/dist/components/responsive-alert-dialog.d.ts.map +0 -1
- package/dist/components/responsive-alert-dialog.js +0 -20
- package/dist/components/responsive-dialog.d.ts +0 -11
- package/dist/components/responsive-dialog.d.ts.map +0 -1
- package/dist/components/responsive-dialog.js +0 -21
- package/dist/components/scroll-area.d.ts +0 -5
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js +0 -11
- package/dist/components/select.d.ts +0 -17
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js +0 -34
- package/dist/components/separator.d.ts +0 -3
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -7
- package/dist/components/sheet.d.ts +0 -15
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -37
- package/dist/components/sidebar.d.ts +0 -65
- package/dist/components/sidebar.d.ts.map +0 -1
- package/dist/components/sidebar.js +0 -258
- package/dist/components/skeleton.d.ts +0 -2
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -5
- package/dist/components/spinner.d.ts +0 -3
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/spinner.js +0 -7
- package/dist/components/switch.d.ts +0 -5
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -7
- package/dist/components/table.d.ts +0 -13
- package/dist/components/table.d.ts.map +0 -1
- package/dist/components/table.js +0 -28
- package/dist/components/tabs.d.ts +0 -12
- package/dist/components/tabs.d.ts.map +0 -1
- package/dist/components/tabs.js +0 -32
- package/dist/components/textarea.d.ts +0 -3
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -5
- package/dist/components/toggle.d.ts +0 -9
- package/dist/components/toggle.d.ts.map +0 -1
- package/dist/components/toggle.js +0 -26
- package/dist/components/tooltip.d.ts +0 -7
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -17
- package/dist/components/typography/h1.d.ts +0 -10
- package/dist/components/typography/h1.d.ts.map +0 -1
- package/dist/components/typography/h1.js +0 -6
- package/dist/components/typography/paragraph.d.ts +0 -6
- package/dist/components/typography/paragraph.d.ts.map +0 -1
- package/dist/components/typography/paragraph.js +0 -6
- package/dist/components/typography/text.d.ts +0 -14
- package/dist/components/typography/text.d.ts.map +0 -1
- package/dist/components/typography/text.js +0 -41
- package/dist/molecules/actions.d.ts +0 -10
- package/dist/molecules/actions.d.ts.map +0 -1
- package/dist/molecules/actions.js +0 -13
- package/dist/molecules/agent.d.ts +0 -27
- package/dist/molecules/agent.d.ts.map +0 -1
- package/dist/molecules/agent.js +0 -27
- package/dist/molecules/ai/actions.d.ts +0 -10
- package/dist/molecules/ai/actions.d.ts.map +0 -1
- package/dist/molecules/ai/actions.js +0 -13
- package/dist/molecules/ai/attachments.d.ts +0 -55
- package/dist/molecules/ai/attachments.d.ts.map +0 -1
- package/dist/molecules/ai/attachments.js +0 -125
- package/dist/molecules/ai/conversation.d.ts +0 -24
- package/dist/molecules/ai/conversation.d.ts.map +0 -1
- package/dist/molecules/ai/conversation.js +0 -41
- package/dist/molecules/ai/message.d.ts +0 -38
- package/dist/molecules/ai/message.d.ts.map +0 -1
- package/dist/molecules/ai/message.js +0 -92
- package/dist/molecules/ai/shimmer.d.ts +0 -10
- package/dist/molecules/ai/shimmer.d.ts.map +0 -1
- package/dist/molecules/ai/shimmer.js +0 -28
- package/dist/molecules/artifact.d.ts +0 -24
- package/dist/molecules/artifact.d.ts.map +0 -1
- package/dist/molecules/artifact.js +0 -20
- package/dist/molecules/attachments.d.ts +0 -55
- package/dist/molecules/attachments.d.ts.map +0 -1
- package/dist/molecules/attachments.js +0 -125
- package/dist/molecules/audio-player.d.ts +0 -30
- package/dist/molecules/audio-player.d.ts.map +0 -1
- package/dist/molecules/audio-player.js +0 -43
- package/dist/molecules/canvas.d.ts +0 -9
- package/dist/molecules/canvas.d.ts.map +0 -1
- package/dist/molecules/canvas.js +0 -5
- package/dist/molecules/chain-of-thought.d.ts +0 -30
- package/dist/molecules/chain-of-thought.d.ts.map +0 -1
- package/dist/molecules/chain-of-thought.js +0 -49
- package/dist/molecules/chat-message.d.ts +0 -10
- package/dist/molecules/chat-message.d.ts.map +0 -1
- package/dist/molecules/chat-message.js +0 -53
- package/dist/molecules/checkpoint.d.ts +0 -12
- package/dist/molecules/checkpoint.d.ts.map +0 -1
- package/dist/molecules/checkpoint.js +0 -10
- package/dist/molecules/code-block.d.ts +0 -46
- package/dist/molecules/code-block.d.ts.map +0 -1
- package/dist/molecules/code-block.js +0 -216
- package/dist/molecules/commit.d.ts +0 -65
- package/dist/molecules/commit.d.ts.map +0 -1
- package/dist/molecules/commit.js +0 -95
- package/dist/molecules/confirmation.d.ts +0 -50
- package/dist/molecules/confirmation.d.ts.map +0 -1
- package/dist/molecules/confirmation.js +0 -61
- package/dist/molecules/connection.d.ts +0 -3
- package/dist/molecules/connection.d.ts.map +0 -1
- package/dist/molecules/connection.js +0 -3
- package/dist/molecules/context.d.ts +0 -33
- package/dist/molecules/context.d.ts.map +0 -1
- package/dist/molecules/context.js +0 -164
- package/dist/molecules/controls.d.ts +0 -5
- package/dist/molecules/controls.d.ts.map +0 -1
- package/dist/molecules/controls.js +0 -5
- package/dist/molecules/conversation.d.ts +0 -24
- package/dist/molecules/conversation.d.ts.map +0 -1
- package/dist/molecules/conversation.js +0 -41
- package/dist/molecules/edge.d.ts +0 -6
- package/dist/molecules/edge.d.ts.map +0 -1
- package/dist/molecules/edge.js +0 -87
- package/dist/molecules/environment-variables.d.ts +0 -39
- package/dist/molecules/environment-variables.d.ts.map +0 -1
- package/dist/molecules/environment-variables.js +0 -87
- package/dist/molecules/file-tree.d.ts +0 -27
- package/dist/molecules/file-tree.d.ts.map +0 -1
- package/dist/molecules/file-tree.js +0 -71
- package/dist/molecules/image.d.ts +0 -7
- package/dist/molecules/image.d.ts.map +0 -1
- package/dist/molecules/image.js +0 -3
- package/dist/molecules/inline-citation.d.ts +0 -39
- package/dist/molecules/inline-citation.d.ts.map +0 -1
- package/dist/molecules/inline-citation.js +0 -68
- package/dist/molecules/jsx-preview.d.ts +0 -30
- package/dist/molecules/jsx-preview.d.ts.map +0 -1
- package/dist/molecules/jsx-preview.js +0 -167
- package/dist/molecules/loader.d.ts +0 -6
- package/dist/molecules/loader.d.ts.map +0 -1
- package/dist/molecules/loader.js +0 -4
- package/dist/molecules/message.d.ts +0 -38
- package/dist/molecules/message.d.ts.map +0 -1
- package/dist/molecules/message.js +0 -92
- package/dist/molecules/mic-selector.d.ts +0 -46
- package/dist/molecules/mic-selector.d.ts.map +0 -1
- package/dist/molecules/mic-selector.js +0 -184
- package/dist/molecules/model-selector.d.ts +0 -36
- package/dist/molecules/model-selector.d.ts.map +0 -1
- package/dist/molecules/model-selector.js +0 -18
- package/dist/molecules/node.d.ts +0 -22
- package/dist/molecules/node.d.ts.map +0 -1
- package/dist/molecules/node.js +0 -11
- package/dist/molecules/open-in-chat.d.ts +0 -29
- package/dist/molecules/open-in-chat.d.ts.map +0 -1
- package/dist/molecules/open-in-chat.js +0 -100
- package/dist/molecules/package-info.d.ts +0 -30
- package/dist/molecules/package-info.d.ts.map +0 -1
- package/dist/molecules/package-info.js +0 -50
- package/dist/molecules/panel.d.ts +0 -6
- package/dist/molecules/panel.d.ts.map +0 -1
- package/dist/molecules/panel.js +0 -4
- package/dist/molecules/persona.d.ts +0 -49
- package/dist/molecules/persona.d.ts.map +0 -1
- package/dist/molecules/persona.js +0 -189
- package/dist/molecules/plan.d.ts +0 -26
- package/dist/molecules/plan.d.ts.map +0 -1
- package/dist/molecules/plan.js +0 -34
- package/dist/molecules/prompt-input.d.ts +0 -149
- package/dist/molecules/prompt-input.d.ts.map +0 -1
- package/dist/molecules/prompt-input.js +0 -702
- package/dist/molecules/queue.d.ts +0 -62
- package/dist/molecules/queue.d.ts.map +0 -1
- package/dist/molecules/queue.js +0 -28
- package/dist/molecules/reasoning.d.ts +0 -27
- package/dist/molecules/reasoning.d.ts.map +0 -1
- package/dist/molecules/reasoning.js +0 -95
- package/dist/molecules/response.d.ts +0 -6
- package/dist/molecules/response.d.ts.map +0 -1
- package/dist/molecules/response.js +0 -18
- package/dist/molecules/responsive-alert-dialog.d.ts +0 -16
- package/dist/molecules/responsive-alert-dialog.d.ts.map +0 -1
- package/dist/molecules/responsive-alert-dialog.js +0 -20
- package/dist/molecules/responsive-dialog.d.ts +0 -11
- package/dist/molecules/responsive-dialog.d.ts.map +0 -1
- package/dist/molecules/responsive-dialog.js +0 -21
- package/dist/molecules/sandbox.d.ts +0 -25
- package/dist/molecules/sandbox.d.ts.map +0 -1
- package/dist/molecules/sandbox.js +0 -15
- package/dist/molecules/schema-display.d.ts +0 -56
- package/dist/molecules/schema-display.d.ts.map +0 -1
- package/dist/molecules/schema-display.js +0 -73
- package/dist/molecules/shimmer.d.ts +0 -10
- package/dist/molecules/shimmer.d.ts.map +0 -1
- package/dist/molecules/shimmer.js +0 -28
- package/dist/molecules/snippet.d.ts +0 -19
- package/dist/molecules/snippet.d.ts.map +0 -1
- package/dist/molecules/snippet.js +0 -46
- package/dist/molecules/sources.d.ts +0 -13
- package/dist/molecules/sources.d.ts.map +0 -1
- package/dist/molecules/sources.js +0 -9
- package/dist/molecules/speech-input.d.ts +0 -55
- package/dist/molecules/speech-input.d.ts.map +0 -1
- package/dist/molecules/speech-input.js +0 -187
- package/dist/molecules/stack-trace.d.ts +0 -38
- package/dist/molecules/stack-trace.d.ts.map +0 -1
- package/dist/molecules/stack-trace.js +0 -194
- package/dist/molecules/suggestion.d.ts +0 -11
- package/dist/molecules/suggestion.d.ts.map +0 -1
- package/dist/molecules/suggestion.js +0 -13
- package/dist/molecules/task.d.ts +0 -15
- package/dist/molecules/task.d.ts.map +0 -1
- package/dist/molecules/task.js +0 -10
- package/dist/molecules/terminal.d.ts +0 -28
- package/dist/molecules/terminal.d.ts.map +0 -1
- package/dist/molecules/terminal.js +0 -68
- package/dist/molecules/test-results.d.ts +0 -59
- package/dist/molecules/test-results.d.ts.map +0 -1
- package/dist/molecules/test-results.js +0 -97
- package/dist/molecules/tool.d.ts +0 -32
- package/dist/molecules/tool.d.ts.map +0 -1
- package/dist/molecules/tool.js +0 -49
- package/dist/molecules/toolbar.d.ts +0 -6
- package/dist/molecules/toolbar.d.ts.map +0 -1
- package/dist/molecules/toolbar.js +0 -4
- package/dist/molecules/transcription.d.ts +0 -17
- package/dist/molecules/transcription.d.ts.map +0 -1
- package/dist/molecules/transcription.js +0 -36
- package/dist/molecules/voice-selector.d.ts +0 -64
- package/dist/molecules/voice-selector.d.ts.map +0 -1
- package/dist/molecules/voice-selector.js +0 -224
- package/dist/molecules/web-preview.d.ts +0 -35
- package/dist/molecules/web-preview.d.ts.map +0 -1
- package/dist/molecules/web-preview.js +0 -65
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
4
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
|
-
import { PanelLeftIcon } from "lucide-react";
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { Button } from "@chatsdk-dev/ui/components/button";
|
|
9
|
-
import { Input } from "@chatsdk-dev/ui/components/input";
|
|
10
|
-
import { Separator } from "@chatsdk-dev/ui/components/separator";
|
|
11
|
-
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, } from "@chatsdk-dev/ui/components/sheet";
|
|
12
|
-
import { Skeleton } from "@chatsdk-dev/ui/components/skeleton";
|
|
13
|
-
import { Tooltip, TooltipContent, TooltipTrigger, } from "@chatsdk-dev/ui/components/tooltip";
|
|
14
|
-
import { useIsMobile } from "@chatsdk-dev/ui/hooks/use-breakpoint";
|
|
15
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
16
|
-
const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
17
|
-
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
18
|
-
const SIDEBAR_WIDTH = "14rem";
|
|
19
|
-
const SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
20
|
-
const SIDEBAR_WIDTH_ICON = "4rem";
|
|
21
|
-
const SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
22
|
-
const SidebarContext = React.createContext(null);
|
|
23
|
-
function useSidebar() {
|
|
24
|
-
const context = React.useContext(SidebarContext);
|
|
25
|
-
if (!context) {
|
|
26
|
-
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
27
|
-
}
|
|
28
|
-
return context;
|
|
29
|
-
}
|
|
30
|
-
function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, cookiePrefix = "", ...props }) {
|
|
31
|
-
const isMobile = useIsMobile();
|
|
32
|
-
const [openMobile, setOpenMobile] = React.useState(false);
|
|
33
|
-
// This is the internal state of the sidebar.
|
|
34
|
-
// We use openProp and setOpenProp for control from outside the component.
|
|
35
|
-
const [_open, _setOpen] = React.useState(defaultOpen);
|
|
36
|
-
const open = openProp ?? _open;
|
|
37
|
-
const setOpen = React.useCallback((value) => {
|
|
38
|
-
const openState = typeof value === "function" ? value(open) : value;
|
|
39
|
-
if (setOpenProp) {
|
|
40
|
-
setOpenProp(openState);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
_setOpen(openState);
|
|
44
|
-
}
|
|
45
|
-
// This sets the cookie to keep the sidebar state.
|
|
46
|
-
document.cookie = `${cookiePrefix}${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
47
|
-
}, [setOpenProp, open, cookiePrefix]);
|
|
48
|
-
// Helper to toggle the sidebar.
|
|
49
|
-
const toggleSidebar = React.useCallback(() => {
|
|
50
|
-
return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
|
|
51
|
-
}, [isMobile, setOpen, setOpenMobile]);
|
|
52
|
-
// Adds a keyboard shortcut to toggle the sidebar.
|
|
53
|
-
React.useEffect(() => {
|
|
54
|
-
const handleKeyDown = (event) => {
|
|
55
|
-
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
|
|
56
|
-
(event.metaKey || event.ctrlKey)) {
|
|
57
|
-
event.preventDefault();
|
|
58
|
-
toggleSidebar();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
window.addEventListener("keydown", handleKeyDown);
|
|
62
|
-
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
63
|
-
}, [toggleSidebar]);
|
|
64
|
-
// We add a state so that we can do data-state="expanded" or "collapsed".
|
|
65
|
-
// This makes it easier to style the sidebar with Tailwind classes.
|
|
66
|
-
const state = open ? "expanded" : "collapsed";
|
|
67
|
-
const contextValue = React.useMemo(() => ({
|
|
68
|
-
state,
|
|
69
|
-
open,
|
|
70
|
-
setOpen,
|
|
71
|
-
isMobile,
|
|
72
|
-
openMobile,
|
|
73
|
-
setOpenMobile,
|
|
74
|
-
toggleSidebar,
|
|
75
|
-
}), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
76
|
-
return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx("div", { "data-slot": "sidebar-wrapper", style: {
|
|
77
|
-
"--sidebar-width": SIDEBAR_WIDTH,
|
|
78
|
-
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
79
|
-
...style,
|
|
80
|
-
}, className: cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", className), ...props, children: children }) }));
|
|
81
|
-
}
|
|
82
|
-
function Sidebar({ side = "left", variant = "sidebar", collapsible = "offExamples", className, children, ...props }) {
|
|
83
|
-
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
84
|
-
if (collapsible === "none") {
|
|
85
|
-
return (_jsx("div", { "data-slot": "sidebar", className: cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", className), ...props, children: children }));
|
|
86
|
-
}
|
|
87
|
-
if (isMobile) {
|
|
88
|
-
return (_jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: _jsxs(SheetContent, { "data-sidebar": "sidebar", "data-slot": "sidebar", "data-mobile": "true", className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", style: {
|
|
89
|
-
"--sidebar-width": SIDEBAR_WIDTH_MOBILE,
|
|
90
|
-
}, side: side, children: [_jsxs(SheetHeader, { className: "sr-only", children: [_jsx(SheetTitle, { children: "Sidebar" }), _jsx(SheetDescription, { children: "Displays the mobile sidebar." })] }), _jsx("div", { className: "flex h-full w-full flex-col", children: children })] }) }));
|
|
91
|
-
}
|
|
92
|
-
return (_jsxs("div", { className: "group peer text-sidebar-foreground hidden md:block", "data-state": state, "data-collapsible": state === "collapsed" ? collapsible : "", "data-variant": variant, "data-side": side, "data-slot": "sidebar", children: [_jsx("div", { "data-slot": "sidebar-gap", className: cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-120 ease-out", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", variant === "floating" || variant === "inset"
|
|
93
|
-
? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"
|
|
94
|
-
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon)") }), _jsx("div", { "data-slot": "sidebar-container", className: cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-120 ease-out md:flex", side === "left"
|
|
95
|
-
? "left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]"
|
|
96
|
-
: "right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]",
|
|
97
|
-
// Adjust the padding for floating and inset variants.
|
|
98
|
-
variant === "floating" || variant === "inset"
|
|
99
|
-
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
100
|
-
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", className), ...props, children: _jsx("div", { "data-sidebar": "sidebar", "data-slot": "sidebar-inner", className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm", children: children }) })] }));
|
|
101
|
-
}
|
|
102
|
-
function SidebarTrigger({ className, onClick, ...props }) {
|
|
103
|
-
const { toggleSidebar } = useSidebar();
|
|
104
|
-
return (_jsxs(Button, { "data-sidebar": "trigger", "data-slot": "sidebar-trigger", variant: "ghost", size: "icon", className: cn("size-7", className), onClick: (event) => {
|
|
105
|
-
onClick?.(event);
|
|
106
|
-
toggleSidebar();
|
|
107
|
-
}, ...props, children: [_jsx(PanelLeftIcon, {}), _jsx("span", { className: "sr-only", children: "Toggle Sidebar" })] }));
|
|
108
|
-
}
|
|
109
|
-
function SidebarRail({ className, ...props }) {
|
|
110
|
-
const { toggleSidebar } = useSidebar();
|
|
111
|
-
return (_jsx("button", { "data-sidebar": "rail", "data-slot": "sidebar-rail", "aria-label": "Toggle Sidebar", tabIndex: -1, onClick: toggleSidebar, title: "Toggle Sidebar", className: cn("after:border-transparent absolute inset-y-0 z-[-1] hidden w-4 -translate-x-1/2 transition-[transform] duration-120 ease-out group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[1px] after:border-l after:border-dashed sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "bg-sidebar hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", className), ...props }));
|
|
112
|
-
}
|
|
113
|
-
function SidebarInset({ className, ...props }) {
|
|
114
|
-
return (_jsx("main", { "data-slot": "sidebar-inset", className: cn("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", className), ...props }));
|
|
115
|
-
}
|
|
116
|
-
function SidebarInput({ className, ...props }) {
|
|
117
|
-
return (_jsx(Input, { "data-slot": "sidebar-input", "data-sidebar": "input", className: cn("bg-background h-8 w-full shadow-none", className), ...props }));
|
|
118
|
-
}
|
|
119
|
-
function SidebarHeader({ className, ...props }) {
|
|
120
|
-
return (_jsx("div", { "data-slot": "sidebar-header", "data-sidebar": "header", className: cn("h-14 gap-2 p-2 flex flex-col pt-0", className), ...props }));
|
|
121
|
-
}
|
|
122
|
-
function SidebarFooter({ className, ...props }) {
|
|
123
|
-
return (_jsx("div", { "data-slot": "sidebar-footer", "data-sidebar": "footer", className: cn("gap-2 p-2 flex flex-col", className), ...props }));
|
|
124
|
-
}
|
|
125
|
-
function SidebarSeparator({ className, ...props }) {
|
|
126
|
-
return (_jsx(Separator, { "data-slot": "sidebar-separator", "data-sidebar": "separator", className: cn("bg-sidebar-border mx-2 w-auto", className), ...props }));
|
|
127
|
-
}
|
|
128
|
-
function SidebarContent({ className, ...props }) {
|
|
129
|
-
return (_jsx("div", { "data-slot": "sidebar-content", "data-sidebar": "content", className: cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className), ...props }));
|
|
130
|
-
}
|
|
131
|
-
function SidebarGroup({ className, ...props }) {
|
|
132
|
-
return (_jsx("div", { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn("px-4 py-2 relative flex w-full min-w-0 flex-col", className), ...props }));
|
|
133
|
-
}
|
|
134
|
-
function SidebarGroupLabel({ className, render, ...props }) {
|
|
135
|
-
return useRender({
|
|
136
|
-
defaultTagName: "div",
|
|
137
|
-
props: mergeProps({
|
|
138
|
-
className: cn("text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-sm px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0", className),
|
|
139
|
-
}, props),
|
|
140
|
-
render,
|
|
141
|
-
state: {
|
|
142
|
-
slot: "sidebar-group-label",
|
|
143
|
-
sidebar: "group-label",
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function SidebarGroupAction({ className, render, ...props }) {
|
|
148
|
-
return useRender({
|
|
149
|
-
defaultTagName: "button",
|
|
150
|
-
props: mergeProps({
|
|
151
|
-
className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 w-5 rounded-sm p-0 focus-visible:ring-2 [&>svg]:size-4 flex aspect-square items-center justify-center outline-hidden transition-transform [&>svg]:shrink-0 after:absolute after:-inset-2 md:after:hidden group-data-[collapsible=icon]:hidden", className),
|
|
152
|
-
}, props),
|
|
153
|
-
render,
|
|
154
|
-
state: {
|
|
155
|
-
slot: "sidebar-group-action",
|
|
156
|
-
sidebar: "group-action",
|
|
157
|
-
},
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function SidebarGroupContent({ className, ...props }) {
|
|
161
|
-
return (_jsx("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: cn("text-sm w-full", className), ...props }));
|
|
162
|
-
}
|
|
163
|
-
function SidebarMenu({ className, ...props }) {
|
|
164
|
-
return (_jsx("ul", { "data-slot": "sidebar-menu", "data-sidebar": "menu", className: cn("gap-1 flex w-full min-w-0 flex-col", className), ...props }));
|
|
165
|
-
}
|
|
166
|
-
function SidebarMenuItem({ className, ...props }) {
|
|
167
|
-
return (_jsx("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn("group/menu-item relative", className), ...props }));
|
|
168
|
-
}
|
|
169
|
-
const sidebarMenuButtonVariants = cva("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-sm p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
170
|
-
variants: {
|
|
171
|
-
variant: {
|
|
172
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
173
|
-
outline: "bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
|
|
174
|
-
},
|
|
175
|
-
size: {
|
|
176
|
-
default: "h-8 text-sm",
|
|
177
|
-
sm: "h-7 text-xs",
|
|
178
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
defaultVariants: {
|
|
182
|
-
variant: "default",
|
|
183
|
-
size: "default",
|
|
184
|
-
},
|
|
185
|
-
});
|
|
186
|
-
function SidebarMenuButton({ render, isActive = false, variant = "default", size = "default", tooltip, className, ...props }) {
|
|
187
|
-
const { isMobile, state } = useSidebar();
|
|
188
|
-
const comp = useRender({
|
|
189
|
-
defaultTagName: "button",
|
|
190
|
-
props: mergeProps({
|
|
191
|
-
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
192
|
-
}, props),
|
|
193
|
-
render,
|
|
194
|
-
state: {
|
|
195
|
-
slot: "sidebar-menu-button",
|
|
196
|
-
sidebar: "menu-button",
|
|
197
|
-
size,
|
|
198
|
-
active: isActive,
|
|
199
|
-
},
|
|
200
|
-
});
|
|
201
|
-
if (!tooltip) {
|
|
202
|
-
return comp;
|
|
203
|
-
}
|
|
204
|
-
if (typeof tooltip === "string") {
|
|
205
|
-
tooltip = {
|
|
206
|
-
children: tooltip,
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { className: "w-full", render: comp }), _jsx(TooltipContent, { side: "right", align: "center", hidden: state !== "collapsed" || isMobile, ...tooltip })] }));
|
|
210
|
-
}
|
|
211
|
-
function SidebarMenuAction({ className, render, showOnHover = false, ...props }) {
|
|
212
|
-
return useRender({
|
|
213
|
-
defaultTagName: "button",
|
|
214
|
-
props: mergeProps({
|
|
215
|
-
className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 aspect-square w-5 rounded-sm p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0", showOnHover &&
|
|
216
|
-
"peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-open:opacity-100 md:opacity-0", className),
|
|
217
|
-
}, props),
|
|
218
|
-
render,
|
|
219
|
-
state: {
|
|
220
|
-
slot: "sidebar-menu-action",
|
|
221
|
-
sidebar: "menu-action",
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function SidebarMenuBadge({ className, ...props }) {
|
|
226
|
-
return (_jsx("div", { "data-slot": "sidebar-menu-badge", "data-sidebar": "menu-badge", className: cn("text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-active/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 rounded-sm px-1 text-xs font-medium peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 flex items-center justify-center tabular-nums select-none group-data-[collapsible=icon]:hidden", className), ...props }));
|
|
227
|
-
}
|
|
228
|
-
function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
|
|
229
|
-
// Random width between 50 to 90%.
|
|
230
|
-
const [width] = React.useState(() => {
|
|
231
|
-
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
232
|
-
});
|
|
233
|
-
return (_jsxs("div", { "data-slot": "sidebar-menu-skeleton", "data-sidebar": "menu-skeleton", className: cn("h-8 gap-2 rounded-sm px-2 flex items-center", className), ...props, children: [showIcon && (_jsx(Skeleton, { className: "size-4 rounded-sm", "data-sidebar": "menu-skeleton-icon" })), _jsx(Skeleton, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: {
|
|
234
|
-
"--skeleton-width": width,
|
|
235
|
-
} })] }));
|
|
236
|
-
}
|
|
237
|
-
function SidebarMenuSub({ className, ...props }) {
|
|
238
|
-
return (_jsx("ul", { "data-slot": "sidebar-menu-sub", "data-sidebar": "menu-sub", className: cn("border-sidebar-border mx-3.5 translate-x-px gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden flex min-w-0 flex-col", className), ...props }));
|
|
239
|
-
}
|
|
240
|
-
function SidebarMenuSubItem({ className, ...props }) {
|
|
241
|
-
return (_jsx("li", { "data-slot": "sidebar-menu-sub-item", "data-sidebar": "menu-sub-item", className: cn("group/menu-sub-item relative", className), ...props }));
|
|
242
|
-
}
|
|
243
|
-
function SidebarMenuSubButton({ render, size = "md", isActive = false, className, ...props }) {
|
|
244
|
-
return useRender({
|
|
245
|
-
defaultTagName: "a",
|
|
246
|
-
props: mergeProps({
|
|
247
|
-
className: cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground h-7 gap-2 rounded-sm px-2 focus-visible:ring-2 data-[size=md]:text-sm data-[size=sm]:text-xs [&>svg]:size-4 flex min-w-0 -translate-x-px items-center overflow-hidden outline-hidden group-data-[collapsible=icon]:hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0", className),
|
|
248
|
-
}, props),
|
|
249
|
-
render,
|
|
250
|
-
state: {
|
|
251
|
-
slot: "sidebar-menu-sub-button",
|
|
252
|
-
sidebar: "menu-sub-button",
|
|
253
|
-
size,
|
|
254
|
-
active: isActive,
|
|
255
|
-
},
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
3
|
-
export function Skeleton({ className, ...props }) {
|
|
4
|
-
return (_jsx("div", { "data-slot": "skeleton", className: cn("bg-muted rounded-sm animate-pulse", className), ...props }));
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/components/spinner.tsx"],"names":[],"mappings":"AAGA,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CASpE;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
3
|
-
import { Loader2Icon } from "lucide-react";
|
|
4
|
-
function Spinner({ className, ...props }) {
|
|
5
|
-
return (_jsx(Loader2Icon, { role: "status", "aria-label": "Loading", className: cn("size-4 animate-spin", className), ...props }));
|
|
6
|
-
}
|
|
7
|
-
export { Spinner };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
2
|
-
export declare function Switch({ className, size, ...props }: SwitchPrimitive.Root.Props & {
|
|
3
|
-
size?: "sm" | "default";
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlE,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,GAAG;IAC9B,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,2CAiBA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
4
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
5
|
-
export function Switch({ className, size = "default", ...props }) {
|
|
6
|
-
return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", "data-size": size, className: cn("data-checked:bg-primary data-unchecked:bg-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 dark:data-unchecked:bg-input/80 shrink-0 rounded-full border border-transparent shadow-xs focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] peer group/switch relative inline-flex items-center transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-50", className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground rounded-full group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 pointer-events-none block ring-0 transition-transform" }) }));
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare function Table({ className, containerClassName, ...props }: React.ComponentProps<"table"> & {
|
|
3
|
-
containerClassName?: string;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
13
|
-
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/components/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,2CAajE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
package/dist/components/table.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
4
|
-
function Table({ className, containerClassName, ...props }) {
|
|
5
|
-
return (_jsx("div", { "data-slot": "table-container", className: cn("relative w-full overflow-x-auto", containerClassName), children: _jsx("table", { "data-slot": "table", className: cn("table-fixed w-full caption-bottom text-sm", className), ...props }) }));
|
|
6
|
-
}
|
|
7
|
-
function TableHeader({ className, ...props }) {
|
|
8
|
-
return (_jsx("thead", { "data-slot": "table-header", className: cn("[&_tr]:border-b ", className), ...props }));
|
|
9
|
-
}
|
|
10
|
-
function TableBody({ className, ...props }) {
|
|
11
|
-
return (_jsx("tbody", { "data-slot": "table-body", className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
12
|
-
}
|
|
13
|
-
function TableFooter({ className, ...props }) {
|
|
14
|
-
return (_jsx("tfoot", { "data-slot": "table-footer", className: cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className), ...props }));
|
|
15
|
-
}
|
|
16
|
-
function TableRow({ className, ...props }) {
|
|
17
|
-
return (_jsx("tr", { "data-slot": "table-row", className: cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", className), ...props }));
|
|
18
|
-
}
|
|
19
|
-
function TableHead({ className, ...props }) {
|
|
20
|
-
return (_jsx("th", { "data-slot": "table-head", className: cn("first:pl-4 last:pr-4 text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0", className), ...props }));
|
|
21
|
-
}
|
|
22
|
-
function TableCell({ className, ...props }) {
|
|
23
|
-
return (_jsx("td", { "data-slot": "table-cell", className: cn("first:pl-4 last:pr-4 p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className), ...props }));
|
|
24
|
-
}
|
|
25
|
-
function TableCaption({ className, ...props }) {
|
|
26
|
-
return (_jsx("caption", { "data-slot": "table-caption", className: cn("text-muted-foreground mt-4 text-sm", className), ...props }));
|
|
27
|
-
}
|
|
28
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare const tabsListVariants: (props?: ({
|
|
5
|
-
variant?: "line" | "default" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function TabsIndicator({ className, ...props }: TabsPrimitive.Indicator.Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Tabs, TabsContent, TabsIndicator, TabsList, tabsListVariants, TabsTrigger, };
|
|
12
|
-
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,WAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,2CAY1B;AAED,QAAA,MAAM,gBAAgB;;8EAarB,CAAC;AAEF,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,2CASlE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,GAAG,CAAC,KAAK,2CAcpE;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,2CAY5E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,2CAQtE;AAED,OAAO,EACL,IAAI,EACJ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,WAAW,GACZ,CAAC"}
|
package/dist/components/tabs.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
4
|
-
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
6
|
-
function Tabs({ className, orientation = "horizontal", ...props }) {
|
|
7
|
-
return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", "data-orientation": orientation, className: cn("gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", className), ...props }));
|
|
8
|
-
}
|
|
9
|
-
const tabsListVariants = cva("relative rounded-lg p-[3px] group-data-horizontal/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col", {
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-muted",
|
|
13
|
-
line: "gap-1 bg-transparent",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: "default",
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
function TabsList({ className, variant = "default", ...props }) {
|
|
21
|
-
return (_jsx(TabsPrimitive.List, { "data-slot": "tabs-list", "data-variant": variant, className: cn(tabsListVariants({ variant }), className), ...props }));
|
|
22
|
-
}
|
|
23
|
-
function TabsTrigger({ className, ...props }) {
|
|
24
|
-
return (_jsx(TabsPrimitive.Tab, { "data-slot": "tabs-trigger", className: cn("gap-1.5 rounded-sm border border-transparent px-2 py-1 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:text-foreground dark:data-active:text-foreground", "after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className), ...props }));
|
|
25
|
-
}
|
|
26
|
-
function TabsIndicator({ className, ...props }) {
|
|
27
|
-
return (_jsx(TabsPrimitive.Indicator, { className: cn("absolute rounded-sm bg-background shadow-sm transition-all duration-200", "left-[var(--active-tab-left)] top-[var(--active-tab-top)]", "w-[var(--active-tab-width)] h-[var(--active-tab-height)]", className), ...props }));
|
|
28
|
-
}
|
|
29
|
-
function TabsContent({ className, ...props }) {
|
|
30
|
-
return (_jsx(TabsPrimitive.Panel, { "data-slot": "tabs-content", className: cn("text-sm flex-1 outline-none", className), ...props }));
|
|
31
|
-
}
|
|
32
|
-
export { Tabs, TabsContent, TabsIndicator, TabsList, tabsListVariants, TabsTrigger, };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAWlC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
3
|
-
export function Textarea({ className, ...props }) {
|
|
4
|
-
return (_jsx("textarea", { "data-slot": "textarea", className: cn("border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-sm border bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50", className), ...props }));
|
|
5
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const toggleVariants: (props?: ({
|
|
4
|
-
variant?: "outline" | "default" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function Toggle({ className, variant, size, ...props }: TogglePrimitive.Props & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { Toggle, toggleVariants };
|
|
9
|
-
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EAmBnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,2CAQ7D;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
4
|
-
import { cva } from "class-variance-authority";
|
|
5
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
6
|
-
const toggleVariants = cva("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "bg-transparent",
|
|
10
|
-
outline: "border-input hover:bg-muted border bg-transparent shadow-xs",
|
|
11
|
-
},
|
|
12
|
-
size: {
|
|
13
|
-
default: "h-9 min-w-9 px-2",
|
|
14
|
-
sm: "h-8 min-w-8 px-1.5",
|
|
15
|
-
lg: "h-10 min-w-10 px-2.5",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
variant: "default",
|
|
20
|
-
size: "default",
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
function Toggle({ className, variant = "default", size = "default", ...props }) {
|
|
24
|
-
return (_jsx(TogglePrimitive, { "data-slot": "toggle", className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
25
|
-
}
|
|
26
|
-
export { Toggle, toggleVariants };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
2
|
-
declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
7
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,iBAAS,eAAe,CAAC,EACvB,KAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,QAAQ,CAAC,KAAK,2CAQjC;AAED,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,2CAMzD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,2CAEnE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,IAAY,EACZ,UAAc,EACd,KAAgB,EAChB,WAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,GAC7B,IAAI,CACF,gBAAgB,CAAC,UAAU,CAAC,KAAK,EACjC,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAChD,2CAwBF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
4
|
-
import { cn } from "@chatsdk-dev/ui/lib/utils";
|
|
5
|
-
function TooltipProvider({ delay = 0, ...props }) {
|
|
6
|
-
return (_jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delay: delay, ...props }));
|
|
7
|
-
}
|
|
8
|
-
function Tooltip({ ...props }) {
|
|
9
|
-
return (_jsx(TooltipProvider, { children: _jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) }));
|
|
10
|
-
}
|
|
11
|
-
function TooltipTrigger({ ...props }) {
|
|
12
|
-
return _jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
13
|
-
}
|
|
14
|
-
function TooltipContent({ className, side = "top", sideOffset = 4, align = "center", alignOffset = 0, children, ...props }) {
|
|
15
|
-
return (_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, className: "isolate z-50", children: _jsxs(TooltipPrimitive.Popup, { "data-slot": "tooltip-content", className: cn("data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-sm px-3 py-1.5 text-xs bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin)", className), ...props, children: [children, _jsx(TooltipPrimitive.Arrow, { className: "size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground z-50 data-[side=bottom]:top-1 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })] }) }) }));
|
|
16
|
-
}
|
|
17
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { textVariants } from "./text";
|
|
4
|
-
type H1Props = VariantProps<typeof textVariants> & {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function H1({ children, className, variant }: H1Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=h1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"h1.d.ts","sourceRoot":"","sources":["../../../src/components/typography/h1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,KAAK,OAAO,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IACjD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,EAAE,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAc,EAAE,EAAE,OAAO,2CAIlE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
3
|
-
import { textVariants } from "./text";
|
|
4
|
-
export function H1({ children, className, variant = "h1" }) {
|
|
5
|
-
return (_jsx("h1", { className: cn(textVariants({ variant }), className), children: children }));
|
|
6
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/typography/paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAMA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "../../lib/utils";
|
|
3
|
-
import { textVariants } from "./text";
|
|
4
|
-
export function Paragraph({ children, className, }) {
|
|
5
|
-
return (_jsx("p", { className: cn(textVariants({ variant: "paragraph1" }), className), children: children }));
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
export declare const textVariants: (props?: ({
|
|
4
|
-
variant?: "button" | "h1" | "h2" | "small" | "default" | "paragraph1" | "paragraph2" | "mono" | "tiny" | null | undefined;
|
|
5
|
-
color?: "accent" | "meta" | "popover" | "disabled" | "primary" | "secondary" | "destructive" | "default" | "muted" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export type TextVariants = VariantProps<typeof textVariants>;
|
|
8
|
-
type DefaultTagName = "span" | "p" | "div";
|
|
9
|
-
interface TextProps extends Omit<useRender.ComponentProps<"div">, "color">, TextVariants {
|
|
10
|
-
as?: DefaultTagName;
|
|
11
|
-
}
|
|
12
|
-
export declare function Text({ className, render, as, variant, color, ...props }: TextProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/typography/text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,eAAO,MAAM,YAAY;;;8EA6BvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAE7D,KAAK,cAAc,GAAG,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC;AAE3C,UAAU,SACR,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY;IACpE,EAAE,CAAC,EAAE,cAAc,CAAC;CACrB;AAED,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,MAAM,EACN,EAAU,EACV,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACT,EAAE,SAAS,8FASX"}
|