@hsafa/ui-sdk 0.6.1 → 0.6.2
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/DOCUMENTATION.md +17 -0
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/docs/README.md +22 -3
- package/package.json +1 -1
package/DOCUMENTATION.md
CHANGED
|
@@ -87,12 +87,29 @@ You can customize the appearance by:
|
|
|
87
87
|
1. **Using component props** (recommended):
|
|
88
88
|
```tsx
|
|
89
89
|
<HsafaChat
|
|
90
|
+
// Base colors
|
|
90
91
|
primaryColor="#3b82f6"
|
|
91
92
|
backgroundColor="#ffffff"
|
|
92
93
|
borderColor="#e5e7eb"
|
|
94
|
+
textColor="#111827"
|
|
95
|
+
accentColor="#F9FAFB"
|
|
96
|
+
// Status colors (v0.6.2+)
|
|
97
|
+
errorColor="#ef4444"
|
|
98
|
+
errorColorLight="#fef2f2"
|
|
99
|
+
successColor="#10b981"
|
|
100
|
+
warningColor="#eab308"
|
|
101
|
+
infoColor="#3b82f6"
|
|
102
|
+
dangerColor="#dc2626"
|
|
93
103
|
/>
|
|
94
104
|
```
|
|
95
105
|
|
|
106
|
+
**Status Colors (v0.6.2+)**: All status colors are now fully customizable:
|
|
107
|
+
- `errorColor`, `errorColorLight`, `errorColorDark` - Error states and validation
|
|
108
|
+
- `successColor`, `successColorLight` - Success notifications and completed tools
|
|
109
|
+
- `warningColor`, `warningColorLight` - Warning states
|
|
110
|
+
- `infoColor`, `infoColorLight` - Info messages and running tools
|
|
111
|
+
- `dangerColor`, `dangerColorLight`, `dangerColorDark` - Delete actions and stop buttons
|
|
112
|
+
|
|
96
113
|
2. **CSS custom properties**:
|
|
97
114
|
```css
|
|
98
115
|
.my-chat {
|