@istmx/ui 0.1.12 → 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.
Files changed (55) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +533 -469
  3. package/bin/istmx.mjs +481 -318
  4. package/package.json +27 -27
  5. package/registry/accordion.tsx +186 -0
  6. package/registry/ai-chat-block/ai-chat-block.tsx +456 -460
  7. package/registry/ai-chat-block/ai-chat-input.tsx +694 -694
  8. package/registry/ai-chat-block/attachment.tsx +466 -466
  9. package/registry/ai-chat-block/chat-code-block.tsx +50 -50
  10. package/registry/ai-chat-block/chat-composer.tsx +51 -51
  11. package/registry/ai-chat-block/chat-logo.tsx +18 -18
  12. package/registry/ai-chat-block/chat-message.tsx +161 -161
  13. package/registry/ai-chat-block/chat-sidebar.tsx +273 -273
  14. package/registry/ai-chat-block/chat-user-avatar.tsx +9 -9
  15. package/registry/ai-chat-block/code-highlighter.tsx +342 -357
  16. package/registry/ai-chat-block/default-attachments.tsx +42 -42
  17. package/registry/ai-chat-block/index.ts +30 -30
  18. package/registry/ai-chat-block/message-content.tsx +287 -287
  19. package/registry/ai-chat-block/message-list.tsx +93 -93
  20. package/registry/ai-chat-block/send-button.tsx +102 -102
  21. package/registry/ai-chat-block/types.ts +70 -71
  22. package/registry/ai-chat-block/utils.ts +6 -6
  23. package/registry/ai-chat-block/voice-button.tsx +66 -66
  24. package/registry/alert-dialog.tsx +229 -0
  25. package/registry/alert.tsx +188 -0
  26. package/registry/animated-text.tsx +228 -225
  27. package/registry/aspect-ratio.tsx +32 -0
  28. package/registry/avatar-group.tsx +66 -0
  29. package/registry/avatar.tsx +121 -0
  30. package/registry/badge.tsx +52 -0
  31. package/registry/bento-grid.tsx +438 -433
  32. package/registry/button.tsx +156 -237
  33. package/registry/carousel.tsx +184 -0
  34. package/registry/dock-navigation.tsx +200 -198
  35. package/registry/drift-canvas.tsx +383 -0
  36. package/registry/drift-wall.tsx +361 -0
  37. package/registry/flex-carousel.tsx +1430 -0
  38. package/registry/guided-gallery.tsx +1506 -0
  39. package/registry/image-accordion.tsx +306 -302
  40. package/registry/image-trail.tsx +126 -121
  41. package/registry/infinite-image-canvas.tsx +268 -263
  42. package/registry/input-otp.tsx +332 -0
  43. package/registry/list-card.tsx +130 -0
  44. package/registry/mobile-menu-dock.tsx +216 -211
  45. package/registry/morph-slider.tsx +756 -0
  46. package/registry/pixel-cat.tsx +972 -1020
  47. package/registry/scroll-canvas-cards.tsx +643 -640
  48. package/registry/scroll-parallax-hero.tsx +566 -565
  49. package/registry/scroll-story-cards.tsx +443 -438
  50. package/registry/slider.tsx +163 -0
  51. package/registry/spotlight-grid.tsx +226 -0
  52. package/registry/streaming-text.tsx +269 -278
  53. package/registry/text-reveal.tsx +311 -307
  54. package/registry/user-avatar.tsx +99 -0
  55. 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'