@iota-uz/sdk 0.1.1 → 0.3.0
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/dist/bichat/index.cjs +2993 -642
- package/dist/bichat/index.cjs.map +1 -1
- package/dist/bichat/index.css +386 -43
- package/dist/bichat/index.css.map +1 -1
- package/dist/bichat/index.d.cts +1280 -88
- package/dist/bichat/index.d.ts +1280 -88
- package/dist/bichat/index.mjs +2871 -551
- package/dist/bichat/index.mjs.map +1 -1
- package/dist/bichat/styles.css +516 -46
- package/package.json +3 -2
- package/tailwind/compiled.css +1 -1
- package/tailwind/iota.css +0 -1
package/dist/bichat/styles.css
CHANGED
|
@@ -1,39 +1,360 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BI-Chat UI Styles
|
|
3
|
-
* CSS
|
|
3
|
+
* Comprehensive CSS variable system for theming and customization
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/* =============================================================================
|
|
7
|
+
CSS Variables - Design Tokens
|
|
8
|
+
============================================================================= */
|
|
9
|
+
|
|
6
10
|
:root {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--bichat-
|
|
11
|
-
--bichat-
|
|
12
|
-
--bichat-
|
|
11
|
+
/* -------------------------------------------------------------------------
|
|
12
|
+
Spacing Scale
|
|
13
|
+
------------------------------------------------------------------------- */
|
|
14
|
+
--bichat-spacing-0: 0;
|
|
15
|
+
--bichat-spacing-px: 1px;
|
|
16
|
+
--bichat-spacing-0_5: 0.125rem;
|
|
17
|
+
--bichat-spacing-1: 0.25rem;
|
|
18
|
+
--bichat-spacing-1_5: 0.375rem;
|
|
19
|
+
--bichat-spacing-2: 0.5rem;
|
|
20
|
+
--bichat-spacing-2_5: 0.625rem;
|
|
21
|
+
--bichat-spacing-3: 0.75rem;
|
|
22
|
+
--bichat-spacing-3_5: 0.875rem;
|
|
23
|
+
--bichat-spacing-4: 1rem;
|
|
24
|
+
--bichat-spacing-5: 1.25rem;
|
|
25
|
+
--bichat-spacing-6: 1.5rem;
|
|
26
|
+
--bichat-spacing-7: 1.75rem;
|
|
27
|
+
--bichat-spacing-8: 2rem;
|
|
28
|
+
--bichat-spacing-9: 2.25rem;
|
|
29
|
+
--bichat-spacing-10: 2.5rem;
|
|
30
|
+
--bichat-spacing-12: 3rem;
|
|
31
|
+
--bichat-spacing-14: 3.5rem;
|
|
32
|
+
--bichat-spacing-16: 4rem;
|
|
33
|
+
|
|
34
|
+
/* Semantic spacing aliases */
|
|
35
|
+
--bichat-spacing-xs: var(--bichat-spacing-1);
|
|
36
|
+
--bichat-spacing-sm: var(--bichat-spacing-2);
|
|
37
|
+
--bichat-spacing-md: var(--bichat-spacing-4);
|
|
38
|
+
--bichat-spacing-lg: var(--bichat-spacing-6);
|
|
39
|
+
--bichat-spacing-xl: var(--bichat-spacing-8);
|
|
40
|
+
--bichat-spacing-2xl: var(--bichat-spacing-12);
|
|
41
|
+
|
|
42
|
+
/* -------------------------------------------------------------------------
|
|
43
|
+
Color Palette - Gray Scale
|
|
44
|
+
------------------------------------------------------------------------- */
|
|
45
|
+
--bichat-color-gray-50: #f9fafb;
|
|
46
|
+
--bichat-color-gray-100: #f3f4f6;
|
|
47
|
+
--bichat-color-gray-200: #e5e7eb;
|
|
48
|
+
--bichat-color-gray-300: #d1d5db;
|
|
49
|
+
--bichat-color-gray-400: #9ca3af;
|
|
50
|
+
--bichat-color-gray-500: #6b7280;
|
|
51
|
+
--bichat-color-gray-600: #4b5563;
|
|
52
|
+
--bichat-color-gray-700: #374151;
|
|
53
|
+
--bichat-color-gray-800: #1f2937;
|
|
54
|
+
--bichat-color-gray-900: #111827;
|
|
55
|
+
--bichat-color-gray-950: #030712;
|
|
56
|
+
|
|
57
|
+
/* -------------------------------------------------------------------------
|
|
58
|
+
Color Palette - Primary (Blue)
|
|
59
|
+
------------------------------------------------------------------------- */
|
|
60
|
+
--bichat-color-primary-50: #eff6ff;
|
|
61
|
+
--bichat-color-primary-100: #dbeafe;
|
|
62
|
+
--bichat-color-primary-200: #bfdbfe;
|
|
63
|
+
--bichat-color-primary-300: #93c5fd;
|
|
64
|
+
--bichat-color-primary-400: #60a5fa;
|
|
65
|
+
--bichat-color-primary-500: #3b82f6;
|
|
66
|
+
--bichat-color-primary-600: #2563eb;
|
|
67
|
+
--bichat-color-primary-700: #1d4ed8;
|
|
68
|
+
--bichat-color-primary-800: #1e40af;
|
|
69
|
+
--bichat-color-primary-900: #1e3a8a;
|
|
70
|
+
--bichat-color-primary-950: #172554;
|
|
71
|
+
|
|
72
|
+
/* -------------------------------------------------------------------------
|
|
73
|
+
Color Palette - Semantic Colors
|
|
74
|
+
------------------------------------------------------------------------- */
|
|
75
|
+
--bichat-color-success-50: #f0fdf4;
|
|
76
|
+
--bichat-color-success-500: #22c55e;
|
|
77
|
+
--bichat-color-success-600: #16a34a;
|
|
78
|
+
--bichat-color-success-700: #15803d;
|
|
79
|
+
|
|
80
|
+
--bichat-color-error-50: #fef2f2;
|
|
81
|
+
--bichat-color-error-500: #ef4444;
|
|
82
|
+
--bichat-color-error-600: #dc2626;
|
|
83
|
+
--bichat-color-error-700: #b91c1c;
|
|
84
|
+
|
|
85
|
+
--bichat-color-warning-50: #fffbeb;
|
|
86
|
+
--bichat-color-warning-500: #f59e0b;
|
|
87
|
+
--bichat-color-warning-600: #d97706;
|
|
88
|
+
--bichat-color-warning-700: #b45309;
|
|
89
|
+
|
|
90
|
+
--bichat-color-info-50: #eff6ff;
|
|
91
|
+
--bichat-color-info-500: #3b82f6;
|
|
92
|
+
--bichat-color-info-600: #2563eb;
|
|
93
|
+
--bichat-color-info-700: #1d4ed8;
|
|
94
|
+
|
|
95
|
+
/* -------------------------------------------------------------------------
|
|
96
|
+
Semantic Color Tokens (Light Mode)
|
|
97
|
+
------------------------------------------------------------------------- */
|
|
98
|
+
--bichat-color-bg: var(--bichat-color-gray-50);
|
|
99
|
+
--bichat-color-bg-subtle: var(--bichat-color-gray-100);
|
|
100
|
+
--bichat-color-bg-muted: var(--bichat-color-gray-200);
|
|
101
|
+
|
|
102
|
+
--bichat-color-surface: #ffffff;
|
|
103
|
+
--bichat-color-surface-raised: #ffffff;
|
|
104
|
+
--bichat-color-surface-overlay: rgba(255, 255, 255, 0.9);
|
|
105
|
+
|
|
106
|
+
--bichat-color-text: var(--bichat-color-gray-900);
|
|
107
|
+
--bichat-color-text-secondary: var(--bichat-color-gray-600);
|
|
108
|
+
--bichat-color-text-muted: var(--bichat-color-gray-500);
|
|
109
|
+
--bichat-color-text-disabled: var(--bichat-color-gray-400);
|
|
110
|
+
--bichat-color-text-inverse: #ffffff;
|
|
111
|
+
|
|
112
|
+
--bichat-color-border: var(--bichat-color-gray-200);
|
|
113
|
+
--bichat-color-border-subtle: var(--bichat-color-gray-100);
|
|
114
|
+
--bichat-color-border-strong: var(--bichat-color-gray-300);
|
|
115
|
+
|
|
116
|
+
--bichat-color-accent: var(--bichat-color-primary-600);
|
|
117
|
+
--bichat-color-accent-hover: var(--bichat-color-primary-700);
|
|
118
|
+
--bichat-color-accent-muted: var(--bichat-color-primary-100);
|
|
119
|
+
|
|
120
|
+
/* Chat-specific semantic tokens */
|
|
121
|
+
--bichat-color-user-bubble-bg: var(--bichat-color-primary-600);
|
|
122
|
+
--bichat-color-user-bubble-text: #ffffff;
|
|
123
|
+
--bichat-color-user-bubble-border: transparent;
|
|
124
|
+
|
|
125
|
+
--bichat-color-assistant-bubble-bg: var(--bichat-color-surface);
|
|
126
|
+
--bichat-color-assistant-bubble-text: var(--bichat-color-text);
|
|
127
|
+
--bichat-color-assistant-bubble-border: var(--bichat-color-border);
|
|
128
|
+
|
|
129
|
+
--bichat-color-system-bubble-bg: var(--bichat-color-bg-subtle);
|
|
130
|
+
--bichat-color-system-bubble-text: var(--bichat-color-text-secondary);
|
|
131
|
+
|
|
132
|
+
--bichat-color-input-bg: var(--bichat-color-surface);
|
|
133
|
+
--bichat-color-input-text: var(--bichat-color-text);
|
|
134
|
+
--bichat-color-input-border: var(--bichat-color-border);
|
|
135
|
+
--bichat-color-input-focus-border: var(--bichat-color-accent);
|
|
136
|
+
--bichat-color-input-placeholder: var(--bichat-color-text-muted);
|
|
137
|
+
|
|
138
|
+
/* -------------------------------------------------------------------------
|
|
139
|
+
Typography
|
|
140
|
+
------------------------------------------------------------------------- */
|
|
141
|
+
--bichat-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
|
|
142
|
+
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
143
|
+
sans-serif;
|
|
144
|
+
--bichat-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo,
|
|
145
|
+
Consolas, 'Liberation Mono', monospace;
|
|
146
|
+
|
|
147
|
+
--bichat-font-size-xs: 0.75rem;
|
|
148
|
+
--bichat-font-size-sm: 0.875rem;
|
|
149
|
+
--bichat-font-size-base: 1rem;
|
|
150
|
+
--bichat-font-size-lg: 1.125rem;
|
|
151
|
+
--bichat-font-size-xl: 1.25rem;
|
|
152
|
+
--bichat-font-size-2xl: 1.5rem;
|
|
153
|
+
--bichat-font-size-3xl: 1.875rem;
|
|
154
|
+
|
|
155
|
+
--bichat-font-weight-normal: 400;
|
|
156
|
+
--bichat-font-weight-medium: 500;
|
|
157
|
+
--bichat-font-weight-semibold: 600;
|
|
158
|
+
--bichat-font-weight-bold: 700;
|
|
159
|
+
|
|
160
|
+
--bichat-line-height-tight: 1.25;
|
|
161
|
+
--bichat-line-height-normal: 1.5;
|
|
162
|
+
--bichat-line-height-relaxed: 1.625;
|
|
163
|
+
|
|
164
|
+
--bichat-letter-spacing-tight: -0.025em;
|
|
165
|
+
--bichat-letter-spacing-normal: 0;
|
|
166
|
+
--bichat-letter-spacing-wide: 0.025em;
|
|
167
|
+
|
|
168
|
+
/* -------------------------------------------------------------------------
|
|
169
|
+
Border Radius
|
|
170
|
+
------------------------------------------------------------------------- */
|
|
171
|
+
--bichat-radius-none: 0;
|
|
172
|
+
--bichat-radius-sm: 0.125rem;
|
|
173
|
+
--bichat-radius-default: 0.25rem;
|
|
174
|
+
--bichat-radius-md: 0.375rem;
|
|
175
|
+
--bichat-radius-lg: 0.5rem;
|
|
176
|
+
--bichat-radius-xl: 0.75rem;
|
|
177
|
+
--bichat-radius-2xl: 1rem;
|
|
178
|
+
--bichat-radius-3xl: 1.5rem;
|
|
179
|
+
--bichat-radius-full: 9999px;
|
|
180
|
+
|
|
181
|
+
/* Semantic radius aliases */
|
|
182
|
+
--bichat-radius-bubble: var(--bichat-radius-2xl);
|
|
183
|
+
--bichat-radius-bubble-tail: var(--bichat-radius-sm);
|
|
184
|
+
--bichat-radius-button: var(--bichat-radius-md);
|
|
185
|
+
--bichat-radius-input: var(--bichat-radius-lg);
|
|
186
|
+
--bichat-radius-card: var(--bichat-radius-xl);
|
|
187
|
+
--bichat-radius-modal: var(--bichat-radius-2xl);
|
|
188
|
+
|
|
189
|
+
/* -------------------------------------------------------------------------
|
|
190
|
+
Shadows
|
|
191
|
+
------------------------------------------------------------------------- */
|
|
192
|
+
--bichat-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
193
|
+
--bichat-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
194
|
+
--bichat-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
195
|
+
--bichat-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
196
|
+
--bichat-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
|
197
|
+
--bichat-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
198
|
+
--bichat-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
|
|
199
|
+
--bichat-shadow-none: 0 0 #0000;
|
|
200
|
+
|
|
201
|
+
/* Focus ring */
|
|
202
|
+
--bichat-ring-width: 2px;
|
|
203
|
+
--bichat-ring-offset: 2px;
|
|
204
|
+
--bichat-ring-color: rgba(59, 130, 246, 0.5);
|
|
205
|
+
|
|
206
|
+
/* -------------------------------------------------------------------------
|
|
207
|
+
Transitions & Animation
|
|
208
|
+
------------------------------------------------------------------------- */
|
|
209
|
+
--bichat-transition-fast: 100ms;
|
|
210
|
+
--bichat-transition-normal: 150ms;
|
|
211
|
+
--bichat-transition-slow: 200ms;
|
|
212
|
+
--bichat-transition-slower: 300ms;
|
|
213
|
+
|
|
214
|
+
--bichat-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
|
|
215
|
+
--bichat-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
216
|
+
--bichat-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
217
|
+
--bichat-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
218
|
+
--bichat-ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
219
|
+
|
|
220
|
+
/* -------------------------------------------------------------------------
|
|
221
|
+
Z-Index Scale
|
|
222
|
+
------------------------------------------------------------------------- */
|
|
223
|
+
--bichat-z-base: 0;
|
|
224
|
+
--bichat-z-dropdown: 10;
|
|
225
|
+
--bichat-z-sticky: 20;
|
|
226
|
+
--bichat-z-overlay: 30;
|
|
227
|
+
--bichat-z-modal: 40;
|
|
228
|
+
--bichat-z-popover: 50;
|
|
229
|
+
--bichat-z-toast: 60;
|
|
230
|
+
--bichat-z-tooltip: 70;
|
|
231
|
+
|
|
232
|
+
/* -------------------------------------------------------------------------
|
|
233
|
+
Component-Specific Sizes
|
|
234
|
+
------------------------------------------------------------------------- */
|
|
235
|
+
--bichat-avatar-size-sm: 1.5rem;
|
|
236
|
+
--bichat-avatar-size-md: 2rem;
|
|
237
|
+
--bichat-avatar-size-lg: 2.5rem;
|
|
238
|
+
--bichat-avatar-size-xl: 3rem;
|
|
239
|
+
|
|
240
|
+
--bichat-bubble-max-width: 75%;
|
|
241
|
+
--bichat-bubble-assistant-max-width: 85%;
|
|
242
|
+
|
|
243
|
+
--bichat-input-min-height: 2.5rem;
|
|
244
|
+
--bichat-input-max-height: 12rem;
|
|
245
|
+
|
|
246
|
+
/* Legacy compatibility (keep for backward compat) */
|
|
247
|
+
--bichat-primary: var(--bichat-color-primary-500);
|
|
248
|
+
--bichat-bg: var(--bichat-color-bg);
|
|
249
|
+
--bichat-text: var(--bichat-color-text);
|
|
250
|
+
--bichat-border: var(--bichat-color-border);
|
|
251
|
+
--bichat-bubble-user: var(--bichat-color-user-bubble-bg);
|
|
252
|
+
--bichat-bubble-assistant: var(--bichat-color-assistant-bubble-bg);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* =============================================================================
|
|
256
|
+
Dark Mode Overrides
|
|
257
|
+
============================================================================= */
|
|
258
|
+
|
|
259
|
+
/* Class-based dark mode (for Tailwind .dark class) */
|
|
260
|
+
.dark,
|
|
261
|
+
[data-theme="dark"] {
|
|
262
|
+
--bichat-color-bg: var(--bichat-color-gray-900);
|
|
263
|
+
--bichat-color-bg-subtle: var(--bichat-color-gray-800);
|
|
264
|
+
--bichat-color-bg-muted: var(--bichat-color-gray-700);
|
|
265
|
+
|
|
266
|
+
--bichat-color-surface: var(--bichat-color-gray-800);
|
|
267
|
+
--bichat-color-surface-raised: var(--bichat-color-gray-750, #2d3748);
|
|
268
|
+
--bichat-color-surface-overlay: rgba(31, 41, 55, 0.9);
|
|
269
|
+
|
|
270
|
+
--bichat-color-text: var(--bichat-color-gray-100);
|
|
271
|
+
--bichat-color-text-secondary: var(--bichat-color-gray-300);
|
|
272
|
+
--bichat-color-text-muted: var(--bichat-color-gray-400);
|
|
273
|
+
--bichat-color-text-disabled: var(--bichat-color-gray-500);
|
|
274
|
+
|
|
275
|
+
--bichat-color-border: var(--bichat-color-gray-700);
|
|
276
|
+
--bichat-color-border-subtle: var(--bichat-color-gray-800);
|
|
277
|
+
--bichat-color-border-strong: var(--bichat-color-gray-600);
|
|
278
|
+
|
|
279
|
+
--bichat-color-accent-muted: var(--bichat-color-primary-900);
|
|
280
|
+
|
|
281
|
+
/* Chat-specific dark mode */
|
|
282
|
+
--bichat-color-user-bubble-bg: var(--bichat-color-primary-700);
|
|
283
|
+
--bichat-color-assistant-bubble-bg: var(--bichat-color-gray-800);
|
|
284
|
+
--bichat-color-assistant-bubble-border: var(--bichat-color-gray-700);
|
|
285
|
+
--bichat-color-system-bubble-bg: var(--bichat-color-gray-800);
|
|
286
|
+
|
|
287
|
+
--bichat-color-input-bg: var(--bichat-color-gray-800);
|
|
288
|
+
--bichat-color-input-border: var(--bichat-color-gray-700);
|
|
289
|
+
|
|
290
|
+
/* Legacy compatibility */
|
|
291
|
+
--bichat-bg: var(--bichat-color-bg);
|
|
292
|
+
--bichat-text: var(--bichat-color-text);
|
|
293
|
+
--bichat-border: var(--bichat-color-border);
|
|
294
|
+
--bichat-bubble-assistant: var(--bichat-color-assistant-bubble-bg);
|
|
295
|
+
|
|
296
|
+
/* Adjust shadows for dark mode */
|
|
297
|
+
--bichat-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
|
|
298
|
+
--bichat-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
|
|
299
|
+
--bichat-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
|
|
13
300
|
}
|
|
14
301
|
|
|
15
|
-
/*
|
|
302
|
+
/* System preference dark mode */
|
|
16
303
|
@media (prefers-color-scheme: dark) {
|
|
17
|
-
:root {
|
|
18
|
-
--bichat-bg:
|
|
19
|
-
--bichat-
|
|
20
|
-
--bichat-
|
|
21
|
-
|
|
304
|
+
:root:not([data-theme="light"]) {
|
|
305
|
+
--bichat-color-bg: var(--bichat-color-gray-900);
|
|
306
|
+
--bichat-color-bg-subtle: var(--bichat-color-gray-800);
|
|
307
|
+
--bichat-color-bg-muted: var(--bichat-color-gray-700);
|
|
308
|
+
|
|
309
|
+
--bichat-color-surface: var(--bichat-color-gray-800);
|
|
310
|
+
--bichat-color-surface-raised: var(--bichat-color-gray-750, #2d3748);
|
|
311
|
+
--bichat-color-surface-overlay: rgba(31, 41, 55, 0.9);
|
|
312
|
+
|
|
313
|
+
--bichat-color-text: var(--bichat-color-gray-100);
|
|
314
|
+
--bichat-color-text-secondary: var(--bichat-color-gray-300);
|
|
315
|
+
--bichat-color-text-muted: var(--bichat-color-gray-400);
|
|
316
|
+
--bichat-color-text-disabled: var(--bichat-color-gray-500);
|
|
317
|
+
|
|
318
|
+
--bichat-color-border: var(--bichat-color-gray-700);
|
|
319
|
+
--bichat-color-border-subtle: var(--bichat-color-gray-800);
|
|
320
|
+
--bichat-color-border-strong: var(--bichat-color-gray-600);
|
|
321
|
+
|
|
322
|
+
--bichat-color-accent-muted: var(--bichat-color-primary-900);
|
|
323
|
+
|
|
324
|
+
--bichat-color-user-bubble-bg: var(--bichat-color-primary-700);
|
|
325
|
+
--bichat-color-assistant-bubble-bg: var(--bichat-color-gray-800);
|
|
326
|
+
--bichat-color-assistant-bubble-border: var(--bichat-color-gray-700);
|
|
327
|
+
--bichat-color-system-bubble-bg: var(--bichat-color-gray-800);
|
|
328
|
+
|
|
329
|
+
--bichat-color-input-bg: var(--bichat-color-gray-800);
|
|
330
|
+
--bichat-color-input-border: var(--bichat-color-gray-700);
|
|
331
|
+
|
|
332
|
+
/* Legacy compatibility */
|
|
333
|
+
--bichat-bg: var(--bichat-color-bg);
|
|
334
|
+
--bichat-text: var(--bichat-color-text);
|
|
335
|
+
--bichat-border: var(--bichat-color-border);
|
|
336
|
+
--bichat-bubble-assistant: var(--bichat-color-assistant-bubble-bg);
|
|
22
337
|
}
|
|
23
338
|
}
|
|
24
339
|
|
|
25
|
-
/*
|
|
340
|
+
/* =============================================================================
|
|
341
|
+
Base Styles
|
|
342
|
+
============================================================================= */
|
|
343
|
+
|
|
26
344
|
.bichat-session {
|
|
27
|
-
background-color: var(--bichat-bg);
|
|
28
|
-
color: var(--bichat-text);
|
|
29
|
-
font-family: -
|
|
30
|
-
|
|
31
|
-
|
|
345
|
+
background-color: var(--bichat-color-bg);
|
|
346
|
+
color: var(--bichat-color-text);
|
|
347
|
+
font-family: var(--bichat-font-family);
|
|
348
|
+
font-size: var(--bichat-font-size-base);
|
|
349
|
+
line-height: var(--bichat-line-height-normal);
|
|
32
350
|
-webkit-font-smoothing: antialiased;
|
|
33
351
|
-moz-osx-font-smoothing: grayscale;
|
|
34
352
|
}
|
|
35
353
|
|
|
36
|
-
/*
|
|
354
|
+
/* =============================================================================
|
|
355
|
+
Scrollbar Styles
|
|
356
|
+
============================================================================= */
|
|
357
|
+
|
|
37
358
|
.bichat-messages::-webkit-scrollbar {
|
|
38
359
|
width: 8px;
|
|
39
360
|
}
|
|
@@ -43,16 +364,27 @@
|
|
|
43
364
|
}
|
|
44
365
|
|
|
45
366
|
.bichat-messages::-webkit-scrollbar-thumb {
|
|
46
|
-
background:
|
|
47
|
-
border-radius:
|
|
367
|
+
background: var(--bichat-color-gray-300);
|
|
368
|
+
border-radius: var(--bichat-radius-full);
|
|
48
369
|
}
|
|
49
370
|
|
|
50
371
|
.bichat-messages::-webkit-scrollbar-thumb:hover {
|
|
51
|
-
background:
|
|
372
|
+
background: var(--bichat-color-gray-400);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.dark .bichat-messages::-webkit-scrollbar-thumb {
|
|
376
|
+
background: var(--bichat-color-gray-600);
|
|
52
377
|
}
|
|
53
378
|
|
|
54
|
-
|
|
55
|
-
|
|
379
|
+
.dark .bichat-messages::-webkit-scrollbar-thumb:hover {
|
|
380
|
+
background: var(--bichat-color-gray-500);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* =============================================================================
|
|
384
|
+
Animations
|
|
385
|
+
============================================================================= */
|
|
386
|
+
|
|
387
|
+
@keyframes bichat-pulse {
|
|
56
388
|
0%, 100% {
|
|
57
389
|
opacity: 1;
|
|
58
390
|
}
|
|
@@ -61,13 +393,82 @@
|
|
|
61
393
|
}
|
|
62
394
|
}
|
|
63
395
|
|
|
396
|
+
@keyframes bichat-bounce {
|
|
397
|
+
0%, 100% {
|
|
398
|
+
transform: translateY(0);
|
|
399
|
+
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
|
400
|
+
}
|
|
401
|
+
50% {
|
|
402
|
+
transform: translateY(-25%);
|
|
403
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@keyframes bichat-spin {
|
|
408
|
+
from {
|
|
409
|
+
transform: rotate(0deg);
|
|
410
|
+
}
|
|
411
|
+
to {
|
|
412
|
+
transform: rotate(360deg);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
@keyframes bichat-fade-in {
|
|
417
|
+
from {
|
|
418
|
+
opacity: 0;
|
|
419
|
+
}
|
|
420
|
+
to {
|
|
421
|
+
opacity: 1;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
@keyframes bichat-slide-up {
|
|
426
|
+
from {
|
|
427
|
+
opacity: 0;
|
|
428
|
+
transform: translateY(10px);
|
|
429
|
+
}
|
|
430
|
+
to {
|
|
431
|
+
opacity: 1;
|
|
432
|
+
transform: translateY(0);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
64
436
|
.animate-pulse {
|
|
65
|
-
animation: pulse 1s
|
|
437
|
+
animation: bichat-pulse 1s var(--bichat-ease-in-out) infinite;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.animate-bounce {
|
|
441
|
+
animation: bichat-bounce 1s infinite;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.animate-spin {
|
|
445
|
+
animation: bichat-spin 1s linear infinite;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.animate-fade-in {
|
|
449
|
+
animation: bichat-fade-in var(--bichat-transition-normal) var(--bichat-ease-out);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.animate-slide-up {
|
|
453
|
+
animation: bichat-slide-up var(--bichat-transition-slow) var(--bichat-ease-out);
|
|
66
454
|
}
|
|
67
455
|
|
|
68
|
-
/*
|
|
456
|
+
/* =============================================================================
|
|
457
|
+
Prose / Markdown Styles
|
|
458
|
+
============================================================================= */
|
|
459
|
+
|
|
69
460
|
.prose {
|
|
70
|
-
color: var(--bichat-text);
|
|
461
|
+
color: var(--bichat-color-text);
|
|
462
|
+
font-size: var(--bichat-font-size-base);
|
|
463
|
+
line-height: var(--bichat-line-height-relaxed);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.prose > :first-child {
|
|
467
|
+
margin-top: 0;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.prose > :last-child {
|
|
471
|
+
margin-bottom: 0;
|
|
71
472
|
}
|
|
72
473
|
|
|
73
474
|
.prose h1,
|
|
@@ -76,44 +477,62 @@
|
|
|
76
477
|
.prose h4,
|
|
77
478
|
.prose h5,
|
|
78
479
|
.prose h6 {
|
|
79
|
-
color: var(--bichat-text);
|
|
80
|
-
font-weight:
|
|
480
|
+
color: var(--bichat-color-text);
|
|
481
|
+
font-weight: var(--bichat-font-weight-semibold);
|
|
81
482
|
margin-top: 1.5em;
|
|
82
483
|
margin-bottom: 0.5em;
|
|
484
|
+
line-height: var(--bichat-line-height-tight);
|
|
83
485
|
}
|
|
84
486
|
|
|
487
|
+
.prose h1 { font-size: var(--bichat-font-size-2xl); }
|
|
488
|
+
.prose h2 { font-size: var(--bichat-font-size-xl); }
|
|
489
|
+
.prose h3 { font-size: var(--bichat-font-size-lg); }
|
|
490
|
+
.prose h4 { font-size: var(--bichat-font-size-base); }
|
|
491
|
+
|
|
85
492
|
.prose p {
|
|
86
493
|
margin-top: 0.75em;
|
|
87
494
|
margin-bottom: 0.75em;
|
|
88
495
|
}
|
|
89
496
|
|
|
497
|
+
.prose strong {
|
|
498
|
+
font-weight: var(--bichat-font-weight-semibold);
|
|
499
|
+
color: var(--bichat-color-text);
|
|
500
|
+
}
|
|
501
|
+
|
|
90
502
|
.prose code {
|
|
91
|
-
background-color:
|
|
92
|
-
|
|
93
|
-
|
|
503
|
+
background-color: var(--bichat-color-bg-subtle);
|
|
504
|
+
color: var(--bichat-color-text);
|
|
505
|
+
padding: 0.125em 0.375em;
|
|
506
|
+
border-radius: var(--bichat-radius-default);
|
|
507
|
+
font-family: var(--bichat-font-family-mono);
|
|
94
508
|
font-size: 0.875em;
|
|
95
509
|
}
|
|
96
510
|
|
|
97
511
|
.prose pre {
|
|
98
|
-
background-color:
|
|
99
|
-
color:
|
|
100
|
-
padding:
|
|
101
|
-
border-radius:
|
|
512
|
+
background-color: var(--bichat-color-gray-900);
|
|
513
|
+
color: var(--bichat-color-gray-100);
|
|
514
|
+
padding: var(--bichat-spacing-4);
|
|
515
|
+
border-radius: var(--bichat-radius-lg);
|
|
102
516
|
overflow-x: auto;
|
|
103
517
|
margin-top: 1em;
|
|
104
518
|
margin-bottom: 1em;
|
|
519
|
+
font-family: var(--bichat-font-family-mono);
|
|
520
|
+
font-size: var(--bichat-font-size-sm);
|
|
521
|
+
line-height: var(--bichat-line-height-relaxed);
|
|
105
522
|
}
|
|
106
523
|
|
|
107
524
|
.prose pre code {
|
|
108
525
|
background-color: transparent;
|
|
109
526
|
padding: 0;
|
|
110
527
|
color: inherit;
|
|
111
|
-
font-size:
|
|
528
|
+
font-size: inherit;
|
|
529
|
+
border-radius: 0;
|
|
112
530
|
}
|
|
113
531
|
|
|
114
532
|
.prose a {
|
|
115
|
-
color: var(--bichat-
|
|
533
|
+
color: var(--bichat-color-accent);
|
|
116
534
|
text-decoration: none;
|
|
535
|
+
font-weight: var(--bichat-font-weight-medium);
|
|
117
536
|
}
|
|
118
537
|
|
|
119
538
|
.prose a:hover {
|
|
@@ -127,17 +546,37 @@
|
|
|
127
546
|
padding-left: 1.5em;
|
|
128
547
|
}
|
|
129
548
|
|
|
549
|
+
.prose ul {
|
|
550
|
+
list-style-type: disc;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.prose ol {
|
|
554
|
+
list-style-type: decimal;
|
|
555
|
+
}
|
|
556
|
+
|
|
130
557
|
.prose li {
|
|
131
558
|
margin-top: 0.25em;
|
|
132
559
|
margin-bottom: 0.25em;
|
|
133
560
|
}
|
|
134
561
|
|
|
562
|
+
.prose li > ul,
|
|
563
|
+
.prose li > ol {
|
|
564
|
+
margin-top: 0.25em;
|
|
565
|
+
margin-bottom: 0.25em;
|
|
566
|
+
}
|
|
567
|
+
|
|
135
568
|
.prose blockquote {
|
|
136
|
-
border-left: 4px solid var(--bichat-border);
|
|
137
|
-
padding-left:
|
|
569
|
+
border-left: 4px solid var(--bichat-color-border-strong);
|
|
570
|
+
padding-left: var(--bichat-spacing-4);
|
|
138
571
|
margin-left: 0;
|
|
139
572
|
font-style: italic;
|
|
140
|
-
color:
|
|
573
|
+
color: var(--bichat-color-text-secondary);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.prose hr {
|
|
577
|
+
border: 0;
|
|
578
|
+
border-top: 1px solid var(--bichat-color-border);
|
|
579
|
+
margin: 2em 0;
|
|
141
580
|
}
|
|
142
581
|
|
|
143
582
|
.prose table {
|
|
@@ -145,16 +584,47 @@
|
|
|
145
584
|
border-collapse: collapse;
|
|
146
585
|
margin-top: 1em;
|
|
147
586
|
margin-bottom: 1em;
|
|
587
|
+
font-size: var(--bichat-font-size-sm);
|
|
148
588
|
}
|
|
149
589
|
|
|
150
590
|
.prose th,
|
|
151
591
|
.prose td {
|
|
152
|
-
border: 1px solid var(--bichat-border);
|
|
153
|
-
padding:
|
|
592
|
+
border: 1px solid var(--bichat-color-border);
|
|
593
|
+
padding: var(--bichat-spacing-2) var(--bichat-spacing-3);
|
|
154
594
|
text-align: left;
|
|
155
595
|
}
|
|
156
596
|
|
|
157
597
|
.prose th {
|
|
158
|
-
background-color:
|
|
159
|
-
font-weight:
|
|
598
|
+
background-color: var(--bichat-color-bg-subtle);
|
|
599
|
+
font-weight: var(--bichat-font-weight-semibold);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.prose tbody tr:nth-child(even) {
|
|
603
|
+
background-color: var(--bichat-color-bg-subtle);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* =============================================================================
|
|
607
|
+
Focus Styles
|
|
608
|
+
============================================================================= */
|
|
609
|
+
|
|
610
|
+
.bichat-focus-ring:focus-visible {
|
|
611
|
+
outline: none;
|
|
612
|
+
box-shadow: 0 0 0 var(--bichat-ring-offset) var(--bichat-color-bg),
|
|
613
|
+
0 0 0 calc(var(--bichat-ring-offset) + var(--bichat-ring-width)) var(--bichat-ring-color);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* =============================================================================
|
|
617
|
+
Utility Classes
|
|
618
|
+
============================================================================= */
|
|
619
|
+
|
|
620
|
+
.bichat-sr-only {
|
|
621
|
+
position: absolute;
|
|
622
|
+
width: 1px;
|
|
623
|
+
height: 1px;
|
|
624
|
+
padding: 0;
|
|
625
|
+
margin: -1px;
|
|
626
|
+
overflow: hidden;
|
|
627
|
+
clip: rect(0, 0, 0, 0);
|
|
628
|
+
white-space: nowrap;
|
|
629
|
+
border-width: 0;
|
|
160
630
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iota-uz/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "IOTA SDK UI utilities, Tailwind configuration, and React components for building IOTA SDK applets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -43,11 +43,12 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@phosphor-icons/react": "^2.1.0",
|
|
46
|
+
"apexcharts": "^3.45.0",
|
|
46
47
|
"date-fns": "^3.0.0",
|
|
47
48
|
"framer-motion": "^11.0.0",
|
|
49
|
+
"react-apexcharts": "^1.4.1",
|
|
48
50
|
"react-markdown": "^9.0.1",
|
|
49
51
|
"react-syntax-highlighter": "^15.5.0",
|
|
50
|
-
"recharts": "^2.12.0",
|
|
51
52
|
"rehype-sanitize": "^6.0.0",
|
|
52
53
|
"remark-gfm": "^4.0.0"
|
|
53
54
|
},
|