Skip to content

Commit 935d04a

Browse files
authored
Merge pull request #64 from jakobhoeg/feat/shared-package
chore: add sharedd ui package
2 parents ca0e960 + 729b895 commit 935d04a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+434
-721
lines changed

.github/workflows/build-and-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
branches:
66
- master
77
paths:
8-
- 'apps/www/public/registry/index.json'
9-
- 'packages/cli/**'
8+
- "apps/www/public/registry/index.json"
9+
- "packages/cli/**"
10+
- "packages/ui/**"
1011

1112
permissions:
1213
contents: write
@@ -26,8 +27,8 @@ jobs:
2627
- name: Setup Node.js
2728
uses: actions/setup-node@v4
2829
with:
29-
node-version: '20'
30-
registry-url: 'https://registry.npmjs.org'
30+
node-version: "20"
31+
registry-url: "https://registry.npmjs.org"
3132

3233
- name: Install dependencies
3334
run: npm ci
@@ -42,4 +43,4 @@ jobs:
4243
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4344
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4445
run: npx semantic-release
45-
working-directory: packages/cli
46+
working-directory: packages/cli

apps/docs/components/preview/chat-bubble-ai-layout-example.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import {
44
ChatBubbleAvatar,
55
ChatBubbleMessage,
66
ChatBubbleAction,
7-
} from "../../components/ui/chat/chat-bubble";
8-
import { ChatMessageList } from "../../components/ui/chat/chat-message-list";
7+
} from "@shadcn-chat/ui";
8+
import { ChatMessageList } from "@shadcn-chat/ui";
99

10-
export const ChatBubbleAILayoutExampleCode = `import { ChatBubble, ChatBubbleAvatar, ChatBubbleMessage, ChatBubbleAction } from '@/components/ui/chat/chat-bubble'
11-
import { ChatMessageList } from '@/components/ui/chat/chat-message-list'
10+
export const ChatBubbleAILayoutExampleCode = `import { ChatBubble, ChatBubbleAvatar, ChatBubbleMessage, ChatBubbleAction } from '@shadcn-chat/ui'
11+
import { ChatMessageList } from '@shadcn-chat/ui'
1212
1313
const messages = [
1414
{
@@ -94,7 +94,7 @@ export default function ChatBubbleAILayoutExample() {
9494
icon={<Icon className="size-3" />}
9595
onClick={() =>
9696
console.log(
97-
"Action " + type + " clicked for message " + index,
97+
"Action " + type + " clicked for message " + index
9898
)
9999
}
100100
/>

apps/docs/components/preview/chat-bubble-example.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import {
66
ChatBubbleMessage,
77
ChatBubbleAction,
88
ChatBubbleActionWrapper,
9-
} from "../../components/ui/chat/chat-bubble";
10-
import { ChatMessageList } from "../../components/ui/chat/chat-message-list";
9+
} from "@shadcn-chat/ui";
10+
import { ChatMessageList } from "@shadcn-chat/ui";
1111

12-
export const ChatBubbleExampleCode = `import { ChatBubble, ChatBubbleAvatar, ChatBubbleMessage, ChatBubbleAction, ChatBubbleActionWrapper } from '@/components/ui/chat/chat-bubble'
13-
import { ChatMessageList } from '@/components/ui/chat/chat-message-list'
12+
export const ChatBubbleExampleCode = `import { ChatBubble, ChatBubbleAvatar, ChatBubbleMessage, ChatBubbleAction, ChatBubbleActionWrapper } from '@shadcn-chat/ui'
13+
import { ChatMessageList } from '@shadcn-chat/ui'
1414
1515
const messages = [
1616
{
@@ -105,7 +105,7 @@ export default function ChatBubbleExample() {
105105
icon={<Icon className="size-4" />}
106106
onClick={() =>
107107
console.log(
108-
"Action " + type + " clicked for message " + index,
108+
"Action " + type + " clicked for message " + index
109109
)
110110
}
111111
/>

apps/docs/components/preview/chat-bubble-preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
ChatBubbleMessage,
55
ChatBubbleAction,
66
ChatBubbleActionWrapper,
7-
} from "../../components/ui/chat/chat-bubble";
8-
import { ChatMessageList } from "../../components/ui/chat/chat-message-list";
7+
} from "@shadcn-chat/ui";
8+
import { ChatMessageList } from "@shadcn-chat/ui";
99

1010
export const ChatBubblePreviewCode = `// Wrap with ChatMessageList
1111
<ChatMessageList>

apps/docs/components/preview/chat-input-example.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CornerDownLeft, Mic, Paperclip } from "lucide-react";
22
import { Button } from "../ui/button";
3-
import { ChatInput } from "../ui/chat/chat-input";
3+
import { ChatInput } from "@shadcn-chat/ui";
44

5-
export const ChatInputExampleCode = `import { ChatInput } from "@/components/ui/chat/chat-input"
5+
export const ChatInputExampleCode = `import { ChatInput } from "@shadcn-chat/ui"
66
77
<form
88
className="relative rounded-lg border bg-background focus-within:ring-1 focus-within:ring-ring p-1"

apps/docs/components/preview/chat-input-preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { CornerDownLeft, Mic, Paperclip } from "lucide-react";
22
import { Button } from "../ui/button";
3-
import { ChatInput } from "../ui/chat/chat-input";
3+
import { ChatInput } from "@shadcn-chat/ui";
44

5-
export const ChatInputPreviewCode = `import { ChatInput } from "@/components/ui/chat/chat-input"
5+
export const ChatInputPreviewCode = `import { ChatInput } from "@shadcn-chat/ui"
66
77
<ChatInput
88
placeholder="Type your message here..."

apps/docs/components/preview/expandable-chat-preview.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import {
33
ExpandableChatBody,
44
ExpandableChatFooter,
55
ExpandableChatHeader,
6-
} from "../ui/chat/expandable-chat";
7-
import { ChatMessageList } from "../ui/chat/chat-message-list";
6+
} from "@shadcn-chat/ui";
7+
import { ChatMessageList } from "@shadcn-chat/ui";
88
import { Button } from "../ui/button";
99
import {
1010
ChatBubble,
1111
ChatBubbleAvatar,
1212
ChatBubbleMessage,
13-
} from "../ui/chat/chat-bubble";
14-
import { ChatInput } from "../ui/chat/chat-input";
13+
} from "@shadcn-chat/ui";
14+
import { ChatInput } from "@shadcn-chat/ui";
1515
import { Send } from "lucide-react";
1616

1717
export const ExpandableChatPreviewCode = `<ExpandableChat

apps/docs/components/ui/chat/chat-bubble.tsx

Lines changed: 0 additions & 203 deletions
This file was deleted.

apps/docs/components/ui/chat/chat-input.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)