@istmx/ui 0.1.11 → 0.1.13
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/LICENSE +21 -21
- package/README.md +533 -463
- package/bin/istmx.mjs +481 -314
- package/package.json +27 -27
- package/registry/accordion.tsx +186 -0
- package/registry/ai-chat-block/ai-chat-block.tsx +456 -460
- package/registry/ai-chat-block/ai-chat-input.tsx +694 -694
- package/registry/ai-chat-block/attachment.tsx +466 -466
- package/registry/ai-chat-block/chat-code-block.tsx +50 -50
- package/registry/ai-chat-block/chat-composer.tsx +51 -51
- package/registry/ai-chat-block/chat-logo.tsx +18 -18
- package/registry/ai-chat-block/chat-message.tsx +161 -161
- package/registry/ai-chat-block/chat-sidebar.tsx +273 -273
- package/registry/ai-chat-block/chat-user-avatar.tsx +9 -9
- package/registry/ai-chat-block/code-highlighter.tsx +342 -357
- package/registry/ai-chat-block/default-attachments.tsx +42 -42
- package/registry/ai-chat-block/index.ts +30 -30
- package/registry/ai-chat-block/message-content.tsx +287 -287
- package/registry/ai-chat-block/message-list.tsx +93 -93
- package/registry/ai-chat-block/send-button.tsx +102 -102
- package/registry/ai-chat-block/types.ts +70 -71
- package/registry/ai-chat-block/utils.ts +6 -6
- package/registry/ai-chat-block/voice-button.tsx +66 -66
- package/registry/alert-dialog.tsx +229 -0
- package/registry/alert.tsx +188 -0
- package/registry/animated-text.tsx +228 -225
- package/registry/aspect-ratio.tsx +32 -0
- package/registry/avatar-group.tsx +66 -0
- package/registry/avatar.tsx +121 -0
- package/registry/badge.tsx +52 -0
- package/registry/bento-grid.tsx +438 -433
- package/registry/button.tsx +156 -237
- package/registry/carousel.tsx +184 -0
- package/registry/dock-navigation.tsx +200 -198
- package/registry/drift-canvas.tsx +383 -0
- package/registry/drift-wall.tsx +361 -0
- package/registry/flex-carousel.tsx +1430 -0
- package/registry/guided-gallery.tsx +1506 -0
- package/registry/image-accordion.tsx +306 -302
- package/registry/image-trail.tsx +126 -121
- package/registry/infinite-image-canvas.tsx +268 -263
- package/registry/input-otp.tsx +332 -0
- package/registry/list-card.tsx +130 -0
- package/registry/mobile-menu-dock.tsx +216 -211
- package/registry/morph-slider.tsx +756 -0
- package/registry/pixel-cat.tsx +972 -1020
- package/registry/scroll-canvas-cards.tsx +643 -0
- package/registry/scroll-parallax-hero.tsx +566 -565
- package/registry/scroll-story-cards.tsx +443 -438
- package/registry/slider.tsx +163 -0
- package/registry/spotlight-grid.tsx +226 -0
- package/registry/streaming-text.tsx +269 -278
- package/registry/text-reveal.tsx +311 -307
- package/registry/user-avatar.tsx +99 -0
- package/registry/utils.ts +6 -6
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IconFile,
|
|
3
|
-
IconHeadphones,
|
|
4
|
-
IconPhoto,
|
|
5
|
-
IconVideo,
|
|
6
|
-
} from '@tabler/icons-react'
|
|
7
|
-
import type { AttachmentOption } from './types'
|
|
8
|
-
|
|
9
|
-
export const DEFAULT_ATTACHMENT_OPTIONS: readonly AttachmentOption[] = [
|
|
10
|
-
{
|
|
11
|
-
id: 'images',
|
|
12
|
-
label: 'Images',
|
|
13
|
-
description: 'Add photos and images',
|
|
14
|
-
icon: <IconPhoto size={17} stroke={1.7} aria-hidden="true" />,
|
|
15
|
-
accept: 'image/*',
|
|
16
|
-
multiple: true,
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: 'documents',
|
|
20
|
-
label: 'Files and documents',
|
|
21
|
-
description: 'PDF, text, office files, and more',
|
|
22
|
-
icon: <IconFile size={17} stroke={1.7} aria-hidden="true" />,
|
|
23
|
-
accept: '.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx,.ppt,.pptx,application/*,text/*',
|
|
24
|
-
multiple: true,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: 'audio',
|
|
28
|
-
label: 'Audio',
|
|
29
|
-
description: 'Add an audio recording',
|
|
30
|
-
icon: <IconHeadphones size={17} stroke={1.7} aria-hidden="true" />,
|
|
31
|
-
accept: 'audio/*',
|
|
32
|
-
multiple: true,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: 'video',
|
|
36
|
-
label: 'Video',
|
|
37
|
-
description: 'Add a video clip',
|
|
38
|
-
icon: <IconVideo size={17} stroke={1.7} aria-hidden="true" />,
|
|
39
|
-
accept: 'video/*',
|
|
40
|
-
multiple: true,
|
|
41
|
-
},
|
|
42
|
-
]
|
|
1
|
+
import {
|
|
2
|
+
IconFile,
|
|
3
|
+
IconHeadphones,
|
|
4
|
+
IconPhoto,
|
|
5
|
+
IconVideo,
|
|
6
|
+
} from '@tabler/icons-react'
|
|
7
|
+
import type { AttachmentOption } from './types'
|
|
8
|
+
|
|
9
|
+
export const DEFAULT_ATTACHMENT_OPTIONS: readonly AttachmentOption[] = [
|
|
10
|
+
{
|
|
11
|
+
id: 'images',
|
|
12
|
+
label: 'Images',
|
|
13
|
+
description: 'Add photos and images',
|
|
14
|
+
icon: <IconPhoto size={17} stroke={1.7} aria-hidden="true" />,
|
|
15
|
+
accept: 'image/*',
|
|
16
|
+
multiple: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'documents',
|
|
20
|
+
label: 'Files and documents',
|
|
21
|
+
description: 'PDF, text, office files, and more',
|
|
22
|
+
icon: <IconFile size={17} stroke={1.7} aria-hidden="true" />,
|
|
23
|
+
accept: '.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx,.ppt,.pptx,application/*,text/*',
|
|
24
|
+
multiple: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'audio',
|
|
28
|
+
label: 'Audio',
|
|
29
|
+
description: 'Add an audio recording',
|
|
30
|
+
icon: <IconHeadphones size={17} stroke={1.7} aria-hidden="true" />,
|
|
31
|
+
accept: 'audio/*',
|
|
32
|
+
multiple: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'video',
|
|
36
|
+
label: 'Video',
|
|
37
|
+
description: 'Add a video clip',
|
|
38
|
+
icon: <IconVideo size={17} stroke={1.7} aria-hidden="true" />,
|
|
39
|
+
accept: 'video/*',
|
|
40
|
+
multiple: true,
|
|
41
|
+
},
|
|
42
|
+
]
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
export { default as AiChatBlock } from './ai-chat-block'
|
|
4
|
-
export { default as ChatMessage } from './chat-message'
|
|
5
|
-
export { default as ChatComposer } from './chat-composer'
|
|
6
|
-
export { default as MessageList } from './message-list'
|
|
7
|
-
export { default as ChatSidebar } from './chat-sidebar'
|
|
8
|
-
export { default as ChatUserAvatar } from './chat-user-avatar'
|
|
9
|
-
export { default as ChatLogo } from './chat-logo'
|
|
10
|
-
export { default as AttachmentDialog, AttachmentPreview } from './attachment'
|
|
11
|
-
export { DEFAULT_ATTACHMENT_OPTIONS } from './default-attachments'
|
|
12
|
-
export type {
|
|
13
|
-
AttachmentOption,
|
|
14
|
-
ChatAttachment,
|
|
15
|
-
ChatAttachmentKind,
|
|
16
|
-
ChatRequest,
|
|
17
|
-
ChatResponse,
|
|
18
|
-
ChatSendError,
|
|
19
|
-
ChatStreamChunk,
|
|
20
|
-
ChatThread,
|
|
21
|
-
ChatTurn,
|
|
22
|
-
} from './types'
|
|
23
|
-
export type { AiChatBlockProps } from './ai-chat-block'
|
|
24
|
-
export { default as AiChatInput } from './ai-chat-input'
|
|
25
|
-
export type {
|
|
26
|
-
AiChatInputAction,
|
|
27
|
-
AiChatInputAttachment,
|
|
28
|
-
AiChatInputGlow,
|
|
29
|
-
AiChatInputProps,
|
|
30
|
-
} from './ai-chat-input'
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
export { default as AiChatBlock } from './ai-chat-block'
|
|
4
|
+
export { default as ChatMessage } from './chat-message'
|
|
5
|
+
export { default as ChatComposer } from './chat-composer'
|
|
6
|
+
export { default as MessageList } from './message-list'
|
|
7
|
+
export { default as ChatSidebar } from './chat-sidebar'
|
|
8
|
+
export { default as ChatUserAvatar } from './chat-user-avatar'
|
|
9
|
+
export { default as ChatLogo } from './chat-logo'
|
|
10
|
+
export { default as AttachmentDialog, AttachmentPreview } from './attachment'
|
|
11
|
+
export { DEFAULT_ATTACHMENT_OPTIONS } from './default-attachments'
|
|
12
|
+
export type {
|
|
13
|
+
AttachmentOption,
|
|
14
|
+
ChatAttachment,
|
|
15
|
+
ChatAttachmentKind,
|
|
16
|
+
ChatRequest,
|
|
17
|
+
ChatResponse,
|
|
18
|
+
ChatSendError,
|
|
19
|
+
ChatStreamChunk,
|
|
20
|
+
ChatThread,
|
|
21
|
+
ChatTurn,
|
|
22
|
+
} from './types'
|
|
23
|
+
export type { AiChatBlockProps } from './ai-chat-block'
|
|
24
|
+
export { default as AiChatInput } from './ai-chat-input'
|
|
25
|
+
export type {
|
|
26
|
+
AiChatInputAction,
|
|
27
|
+
AiChatInputAttachment,
|
|
28
|
+
AiChatInputGlow,
|
|
29
|
+
AiChatInputProps,
|
|
30
|
+
} from './ai-chat-input'
|