@archieai/ui 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -25
- package/dist/components/molecules/ChatFile/FileIcon.d.ts +2 -1
- package/dist/components/molecules/ChatFile/FileIcon.d.ts.map +1 -1
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2525 -3063
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/dist/components/organisms/ChatInput/ChatInput.d.ts +0 -79
- package/dist/components/organisms/ChatInput/ChatInput.d.ts.map +0 -1
- package/dist/components/organisms/ChatInput/ChatInput.figma.d.ts +0 -2
- package/dist/components/organisms/ChatInput/ChatInput.figma.d.ts.map +0 -1
- package/dist/components/organisms/ChatInput/ChatInput.styles.d.ts +0 -55
- package/dist/components/organisms/ChatInput/ChatInput.styles.d.ts.map +0 -1
- package/dist/components/organisms/ChatInput/HighlightBackdrop.d.ts +0 -28
- package/dist/components/organisms/ChatInput/HighlightBackdrop.d.ts.map +0 -1
- package/dist/components/organisms/ChatInput/index.d.ts +0 -3
- package/dist/components/organisms/ChatInput/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ A comprehensive React component library built with TypeScript, featuring 287+ cu
|
|
|
9
9
|
|
|
10
10
|
- 🎨 **287+ Custom Icons** - Beautiful SVG icons with customizable size and color
|
|
11
11
|
- 🧩 **Production-Ready Components** - Button, Input, Checkbox, Toast, Tabs, and more
|
|
12
|
-
- 💬 **Chat Components** - MessageBubble,
|
|
12
|
+
- 💬 **Chat Components** - MessageBubble, MarkdownRenderer for AI/chat UIs (chat input is provided by the platform)
|
|
13
13
|
- 🎯 **TypeScript First** - Fully typed components with excellent IntelliSense
|
|
14
14
|
- 🎨 **Modern Design System** - Built with Tailwind CSS v4 and CSS variables
|
|
15
15
|
- ♿ **Accessible** - Built with Radix UI primitives following WCAG guidelines
|
|
@@ -663,30 +663,6 @@ import { LoadingSpinner } from '@archieai/ui';
|
|
|
663
663
|
|
|
664
664
|
### Organisms
|
|
665
665
|
|
|
666
|
-
#### ChatInput
|
|
667
|
-
|
|
668
|
-
Rich chat input with file upload support.
|
|
669
|
-
|
|
670
|
-
```tsx
|
|
671
|
-
import { ChatInput } from '@archieai/ui';
|
|
672
|
-
|
|
673
|
-
<ChatInput
|
|
674
|
-
placeholder="Type a message..."
|
|
675
|
-
onSend={(message, files) => {
|
|
676
|
-
console.log('Message:', message);
|
|
677
|
-
console.log('Files:', files);
|
|
678
|
-
}}
|
|
679
|
-
onFileSelect={(files) => console.log('Files selected:', files)}
|
|
680
|
-
/>;
|
|
681
|
-
```
|
|
682
|
-
|
|
683
|
-
**Props:**
|
|
684
|
-
|
|
685
|
-
- `placeholder`: Input placeholder text
|
|
686
|
-
- `onSend`: Callback with message and files
|
|
687
|
-
- `onFileSelect`: Callback when files are selected
|
|
688
|
-
- All standard textarea HTML attributes
|
|
689
|
-
|
|
690
666
|
#### ConversationHeader
|
|
691
667
|
|
|
692
668
|
Header component for chat conversations with breadcrumbs, tags, and collaborators.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* Configuration for a file type including its background color and icon component.
|
|
3
|
+
* Configuration for a file type including its background color, icon color, and icon component.
|
|
4
4
|
*/
|
|
5
5
|
export interface FileTypeConfig {
|
|
6
6
|
background: string;
|
|
7
|
+
iconColor: string;
|
|
7
8
|
icon: React.FC<{
|
|
8
9
|
size?: number | string;
|
|
9
10
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ChatFile/FileIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B;;GAEG;AACH,MAAM,WAAW,c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