@cossistant/next 0.0.10 → 0.0.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/package.json +2 -3
- package/tailwind.css +0 -410
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cossistant/next",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Cossistant team",
|
|
7
7
|
"description": "Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"import": "./hooks/*.js"
|
|
57
57
|
},
|
|
58
58
|
"./support.css": "./support.css",
|
|
59
|
-
"./tailwind.css": "./tailwind.css",
|
|
60
59
|
"./realtime": {
|
|
61
60
|
"types": "./realtime/index.d.ts",
|
|
62
61
|
"import": "./realtime/index.js"
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"access": "public"
|
|
93
92
|
},
|
|
94
93
|
"dependencies": {
|
|
95
|
-
"@cossistant/react": "0.0.
|
|
94
|
+
"@cossistant/react": "0.0.13",
|
|
96
95
|
"tailwindcss": "^4.1.13"
|
|
97
96
|
},
|
|
98
97
|
"peerDependencies": {
|
package/tailwind.css
DELETED
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
@source "./components";
|
|
2
|
-
@source "./pages";
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
* This indicates to tailwind to
|
|
6
|
-
* compile classes from Cossistant with the host tailwind config
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
@layer base {
|
|
10
|
-
.cossistant {
|
|
11
|
-
@apply border-co-border;
|
|
12
|
-
@apply scroll-smooth;
|
|
13
|
-
|
|
14
|
-
color-scheme: inherit;
|
|
15
|
-
|
|
16
|
-
/* Typeface tokens */
|
|
17
|
-
--co-font-sans: var(
|
|
18
|
-
--co-theme-font-sans,
|
|
19
|
-
var(--font-sans, "Geist", "Inter", sans-serif)
|
|
20
|
-
);
|
|
21
|
-
--co-font-mono: var(
|
|
22
|
-
--co-theme-font-mono,
|
|
23
|
-
var(--font-mono, "Geist Mono", "Inter Mono", monospace)
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
--co-border-color: var(
|
|
27
|
-
--co-theme-border-color,
|
|
28
|
-
var(--color-border, oklch(92.2% 0 0))
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
/* Core surfaces */
|
|
32
|
-
--co-radius: var(--co-theme-radius, var(--radius, 0.625rem));
|
|
33
|
-
--co-background-base: var(
|
|
34
|
-
--co-theme-background,
|
|
35
|
-
var(--background, oklch(99% 0 0))
|
|
36
|
-
);
|
|
37
|
-
--co-foreground-base: var(
|
|
38
|
-
--co-theme-foreground,
|
|
39
|
-
var(--foreground, oklch(14.5% 0 0))
|
|
40
|
-
);
|
|
41
|
-
--co-popover-base: var(
|
|
42
|
-
--co-theme-popover,
|
|
43
|
-
var(--popover, var(--co-background-base))
|
|
44
|
-
);
|
|
45
|
-
--co-popover-foreground-base: var(
|
|
46
|
-
--co-theme-popover-foreground,
|
|
47
|
-
var(--popover-foreground, var(--co-foreground-base))
|
|
48
|
-
);
|
|
49
|
-
--co-primary-base: var(
|
|
50
|
-
--co-theme-primary,
|
|
51
|
-
var(--primary, oklch(20.5% 0 0))
|
|
52
|
-
);
|
|
53
|
-
--co-primary-foreground-base: var(
|
|
54
|
-
--co-theme-primary-foreground,
|
|
55
|
-
var(--primary-foreground, oklch(98.5% 0 0))
|
|
56
|
-
);
|
|
57
|
-
--co-secondary-base: var(
|
|
58
|
-
--co-theme-secondary,
|
|
59
|
-
var(--secondary, oklch(97% 0 0))
|
|
60
|
-
);
|
|
61
|
-
--co-secondary-foreground-base: var(
|
|
62
|
-
--co-theme-secondary-foreground,
|
|
63
|
-
var(--secondary-foreground, oklch(20.5% 0 0))
|
|
64
|
-
);
|
|
65
|
-
--co-border-base: var(--co-theme-border, var(--border, oklch(92.2% 0 0)));
|
|
66
|
-
--co-input-base: var(--co-theme-input, var(--input, oklch(92.2% 0 0)));
|
|
67
|
-
--co-ring-base: var(--co-theme-ring, var(--ring, var(--co-primary-base)));
|
|
68
|
-
--co-accent-base: var(
|
|
69
|
-
--co-theme-accent,
|
|
70
|
-
var(--accent, var(--co-primary-base))
|
|
71
|
-
);
|
|
72
|
-
--co-accent-foreground-base: var(
|
|
73
|
-
--co-theme-accent-foreground,
|
|
74
|
-
var(--accent-foreground, var(--co-primary-foreground-base))
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
/* Neutral shades derived from the background */
|
|
78
|
-
--co-background-50-mix: color-mix(
|
|
79
|
-
in oklch,
|
|
80
|
-
var(--co-background-base) 98%,
|
|
81
|
-
var(--co-foreground-base)
|
|
82
|
-
);
|
|
83
|
-
--co-background-100-mix: color-mix(
|
|
84
|
-
in oklch,
|
|
85
|
-
var(--co-background-base) 97%,
|
|
86
|
-
var(--co-foreground-base)
|
|
87
|
-
);
|
|
88
|
-
--co-background-200-mix: color-mix(
|
|
89
|
-
in oklch,
|
|
90
|
-
var(--co-background-base) 96%,
|
|
91
|
-
var(--co-foreground-base)
|
|
92
|
-
);
|
|
93
|
-
--co-background-300-mix: color-mix(
|
|
94
|
-
in oklch,
|
|
95
|
-
var(--co-background-base) 95%,
|
|
96
|
-
var(--co-foreground-base)
|
|
97
|
-
);
|
|
98
|
-
--co-background-400-mix: color-mix(
|
|
99
|
-
in oklch,
|
|
100
|
-
var(--co-background-base) 94%,
|
|
101
|
-
var(--co-foreground-base)
|
|
102
|
-
);
|
|
103
|
-
--co-background-500-mix: color-mix(
|
|
104
|
-
in oklch,
|
|
105
|
-
var(--co-background-base) 93%,
|
|
106
|
-
var(--co-foreground-base)
|
|
107
|
-
);
|
|
108
|
-
--co-background-600-mix: color-mix(
|
|
109
|
-
in oklch,
|
|
110
|
-
var(--co-background-base) 92%,
|
|
111
|
-
var(--co-foreground-base)
|
|
112
|
-
);
|
|
113
|
-
|
|
114
|
-
/* Muted tones */
|
|
115
|
-
--co-muted-mix: color-mix(
|
|
116
|
-
in oklch,
|
|
117
|
-
var(--co-background-base) 85%,
|
|
118
|
-
var(--co-foreground-base)
|
|
119
|
-
);
|
|
120
|
-
--co-muted-foreground-mix: color-mix(
|
|
121
|
-
in oklch,
|
|
122
|
-
var(--co-foreground-base) 70%,
|
|
123
|
-
white
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
/* Public tokens consumed by Tailwind theme */
|
|
127
|
-
--co-background: var(--co-background-base);
|
|
128
|
-
--co-background-50: var(
|
|
129
|
-
--co-theme-background-50,
|
|
130
|
-
var(--co-background-50-mix, oklch(92% 0 0))
|
|
131
|
-
);
|
|
132
|
-
--co-background-100: var(
|
|
133
|
-
--co-theme-background-100,
|
|
134
|
-
var(--co-background-100-mix, oklch(93% 0 0))
|
|
135
|
-
);
|
|
136
|
-
--co-background-200: var(
|
|
137
|
-
--co-theme-background-200,
|
|
138
|
-
var(--co-background-200-mix, oklch(94% 0 0))
|
|
139
|
-
);
|
|
140
|
-
--co-background-300: var(
|
|
141
|
-
--co-theme-background-300,
|
|
142
|
-
var(--co-background-300-mix, oklch(95% 0 0))
|
|
143
|
-
);
|
|
144
|
-
--co-background-400: var(
|
|
145
|
-
--co-theme-background-400,
|
|
146
|
-
var(--co-background-400-mix, oklch(96% 0 0))
|
|
147
|
-
);
|
|
148
|
-
--co-background-500: var(
|
|
149
|
-
--co-theme-background-500,
|
|
150
|
-
var(--co-background-500-mix, oklch(97% 0 0))
|
|
151
|
-
);
|
|
152
|
-
--co-background-600: var(
|
|
153
|
-
--co-theme-background-600,
|
|
154
|
-
var(--co-background-600-mix, oklch(98% 0 0))
|
|
155
|
-
);
|
|
156
|
-
|
|
157
|
-
--co-foreground: var(--co-foreground-base);
|
|
158
|
-
--co-popover: var(--co-popover-base);
|
|
159
|
-
--co-popover-foreground: var(--co-popover-foreground-base);
|
|
160
|
-
--co-primary: var(--co-primary-base);
|
|
161
|
-
--co-primary-foreground: var(--co-primary-foreground-base);
|
|
162
|
-
--co-secondary: var(--co-secondary-base);
|
|
163
|
-
--co-secondary-foreground: var(--co-secondary-foreground-base);
|
|
164
|
-
--co-muted: var(
|
|
165
|
-
--co-theme-muted,
|
|
166
|
-
var(--muted, var(--co-muted-mix, oklch(97% 0 0)))
|
|
167
|
-
);
|
|
168
|
-
--co-muted-foreground: var(
|
|
169
|
-
--co-theme-muted-foreground,
|
|
170
|
-
var(--muted-foreground, var(--co-muted-foreground-mix, oklch(55.6% 0 0)))
|
|
171
|
-
);
|
|
172
|
-
--co-border: var(--co-border-base);
|
|
173
|
-
--co-input: var(--co-input-base);
|
|
174
|
-
--co-ring: var(--co-ring-base);
|
|
175
|
-
--co-accent: var(--co-accent-base);
|
|
176
|
-
--co-accent-foreground: var(--co-accent-foreground-base);
|
|
177
|
-
|
|
178
|
-
/* Accent palette */
|
|
179
|
-
--co-pink: var(--co-theme-pink, oklch(76.3% 0.152 354));
|
|
180
|
-
--co-yellow: var(--co-theme-yellow, oklch(86.4% 0.144 99));
|
|
181
|
-
--co-blue: var(--co-theme-blue, oklch(72.5% 0.132 241));
|
|
182
|
-
--co-orange: var(--co-theme-orange, oklch(74.5% 0.166 50));
|
|
183
|
-
|
|
184
|
-
/* Status colors */
|
|
185
|
-
--co-destructive: var(--co-theme-destructive, oklch(57.7% 0.245 27.325));
|
|
186
|
-
--co-destructive-foreground: var(
|
|
187
|
-
--co-theme-destructive-foreground,
|
|
188
|
-
oklch(57.7% 0.245 27.325)
|
|
189
|
-
);
|
|
190
|
-
--co-success: var(--co-theme-success, oklch(71.7% 0.18 142));
|
|
191
|
-
--co-success-foreground: var(
|
|
192
|
-
--co-theme-success-foreground,
|
|
193
|
-
oklch(26.5% 0.052 142.7)
|
|
194
|
-
);
|
|
195
|
-
--co-neutral: var(--co-theme-neutral, oklch(60.8% 0 0));
|
|
196
|
-
--co-neutral-foreground: var(
|
|
197
|
-
--co-theme-neutral-foreground,
|
|
198
|
-
oklch(25.6% 0 0)
|
|
199
|
-
);
|
|
200
|
-
--co-warning: var(--co-theme-warning, oklch(86.4% 0.144 99));
|
|
201
|
-
--co-warning-foreground: var(
|
|
202
|
-
--co-theme-warning-foreground,
|
|
203
|
-
oklch(41.4% 0.071 99)
|
|
204
|
-
);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.dark .cossistant,
|
|
208
|
-
.cossistant[data-color-scheme="dark"] {
|
|
209
|
-
/* Provide dark defaults without overriding host tokens */
|
|
210
|
-
--co-background-base: var(
|
|
211
|
-
--co-theme-background,
|
|
212
|
-
var(--background, oklch(15.5% 0 0))
|
|
213
|
-
);
|
|
214
|
-
--co-foreground-base: var(
|
|
215
|
-
--co-theme-foreground,
|
|
216
|
-
var(--foreground, oklch(98.5% 0 0))
|
|
217
|
-
);
|
|
218
|
-
--co-border-color: var(
|
|
219
|
-
--co-theme-border-color,
|
|
220
|
-
var(--color-border, oklch(26.9% 0 0))
|
|
221
|
-
);
|
|
222
|
-
--co-popover-base: var(
|
|
223
|
-
--co-theme-popover,
|
|
224
|
-
var(--popover, oklch(14.5% 0 0))
|
|
225
|
-
);
|
|
226
|
-
--co-popover-foreground-base: var(
|
|
227
|
-
--co-theme-popover-foreground,
|
|
228
|
-
var(--popover-foreground, oklch(98.5% 0 0))
|
|
229
|
-
);
|
|
230
|
-
--co-primary-base: var(
|
|
231
|
-
--co-theme-primary,
|
|
232
|
-
var(--primary, oklch(98.5% 0 0))
|
|
233
|
-
);
|
|
234
|
-
--co-primary-foreground-base: var(
|
|
235
|
-
--co-theme-primary-foreground,
|
|
236
|
-
var(--primary-foreground, oklch(20.5% 0 0))
|
|
237
|
-
);
|
|
238
|
-
--co-secondary-base: var(
|
|
239
|
-
--co-theme-secondary,
|
|
240
|
-
var(--secondary, oklch(26.9% 0 0))
|
|
241
|
-
);
|
|
242
|
-
--co-secondary-foreground-base: var(
|
|
243
|
-
--co-theme-secondary-foreground,
|
|
244
|
-
var(--secondary-foreground, oklch(98.5% 0 0))
|
|
245
|
-
);
|
|
246
|
-
--co-border-base: var(--co-theme-border, var(--border, oklch(26.9% 0 0)));
|
|
247
|
-
--co-input-base: var(--co-theme-input, var(--input, oklch(26.9% 0 0)));
|
|
248
|
-
--co-ring-base: var(--co-theme-ring, var(--ring, var(--co-primary-base)));
|
|
249
|
-
--co-accent-base: var(
|
|
250
|
-
--co-theme-accent,
|
|
251
|
-
var(--accent, var(--co-primary-base))
|
|
252
|
-
);
|
|
253
|
-
--co-accent-foreground-base: var(
|
|
254
|
-
--co-theme-accent-foreground,
|
|
255
|
-
var(--accent-foreground, var(--co-primary-foreground-base))
|
|
256
|
-
);
|
|
257
|
-
|
|
258
|
-
--co-muted-mix: color-mix(
|
|
259
|
-
in oklch,
|
|
260
|
-
var(--co-background-base) 55%,
|
|
261
|
-
var(--co-foreground-base)
|
|
262
|
-
);
|
|
263
|
-
--co-muted-foreground-mix: color-mix(
|
|
264
|
-
in oklch,
|
|
265
|
-
var(--co-foreground-base) 65%,
|
|
266
|
-
white
|
|
267
|
-
);
|
|
268
|
-
|
|
269
|
-
--co-background-50-mix: color-mix(
|
|
270
|
-
in oklch,
|
|
271
|
-
var(--co-background-base) 98%,
|
|
272
|
-
var(--co-foreground-base)
|
|
273
|
-
);
|
|
274
|
-
--co-background-100-mix: color-mix(
|
|
275
|
-
in oklch,
|
|
276
|
-
var(--co-background-base) 96%,
|
|
277
|
-
var(--co-foreground-base)
|
|
278
|
-
);
|
|
279
|
-
--co-background-200-mix: color-mix(
|
|
280
|
-
in oklch,
|
|
281
|
-
var(--co-background-base) 94%,
|
|
282
|
-
var(--co-foreground-base)
|
|
283
|
-
);
|
|
284
|
-
--co-background-300-mix: color-mix(
|
|
285
|
-
in oklch,
|
|
286
|
-
var(--co-background-base) 92%,
|
|
287
|
-
var(--co-foreground-base)
|
|
288
|
-
);
|
|
289
|
-
--co-background-400-mix: color-mix(
|
|
290
|
-
in oklch,
|
|
291
|
-
var(--co-background-base) 90%,
|
|
292
|
-
var(--co-foreground-base)
|
|
293
|
-
);
|
|
294
|
-
--co-background-500-mix: color-mix(
|
|
295
|
-
in oklch,
|
|
296
|
-
var(--co-background-base) 88%,
|
|
297
|
-
var(--co-foreground-base)
|
|
298
|
-
);
|
|
299
|
-
--co-background-600-mix: color-mix(
|
|
300
|
-
in oklch,
|
|
301
|
-
var(--co-background-base) 86%,
|
|
302
|
-
var(--co-foreground-base)
|
|
303
|
-
);
|
|
304
|
-
|
|
305
|
-
--co-pink: var(--co-theme-pink, oklch(84.2% 0.109 354));
|
|
306
|
-
--co-yellow: var(--co-theme-yellow, oklch(90.3% 0.111 99));
|
|
307
|
-
--co-blue: var(--co-theme-blue, oklch(79.8% 0.089 241));
|
|
308
|
-
--co-orange: var(--co-theme-orange, oklch(68.2% 0.194 50));
|
|
309
|
-
|
|
310
|
-
--co-destructive: var(--co-theme-destructive, oklch(39.6% 0.141 25.723));
|
|
311
|
-
--co-destructive-foreground: var(
|
|
312
|
-
--co-theme-destructive-foreground,
|
|
313
|
-
oklch(63.7% 0.237 25.331)
|
|
314
|
-
);
|
|
315
|
-
--co-success: var(--co-theme-success, oklch(60% 0.15 142));
|
|
316
|
-
--co-success-foreground: var(
|
|
317
|
-
--co-theme-success-foreground,
|
|
318
|
-
oklch(85% 0.12 142)
|
|
319
|
-
);
|
|
320
|
-
--co-neutral: var(--co-theme-neutral, oklch(50% 0 0));
|
|
321
|
-
--co-neutral-foreground: var(--co-theme-neutral-foreground, oklch(85% 0 0));
|
|
322
|
-
--co-warning: var(--co-theme-warning, oklch(90.3% 0.111 99));
|
|
323
|
-
--co-warning-foreground: var(
|
|
324
|
-
--co-theme-warning-foreground,
|
|
325
|
-
oklch(85% 0.1 99)
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
@theme inline {
|
|
331
|
-
--font-co-sans: var(--co-font-sans);
|
|
332
|
-
--font-co-mono: var(--co-font-mono);
|
|
333
|
-
--color-co-background: var(--co-background);
|
|
334
|
-
--color-co-background-50: var(--co-background-50);
|
|
335
|
-
--color-co-background-100: var(--co-background-100);
|
|
336
|
-
--color-co-background-200: var(--co-background-200);
|
|
337
|
-
--color-co-background-300: var(--co-background-300);
|
|
338
|
-
--color-co-background-400: var(--co-background-400);
|
|
339
|
-
--color-co-background-500: var(--co-background-500);
|
|
340
|
-
--color-co-background-600: var(--co-background-600);
|
|
341
|
-
|
|
342
|
-
--color-co-foreground: var(--co-foreground);
|
|
343
|
-
|
|
344
|
-
--color-co-primary: var(--co-primary);
|
|
345
|
-
--color-co-primary-foreground: var(--co-primary-foreground);
|
|
346
|
-
--color-co-secondary: var(--co-secondary);
|
|
347
|
-
--color-co-secondary-foreground: var(--co-secondary-foreground);
|
|
348
|
-
--color-co-muted: var(--co-muted);
|
|
349
|
-
--color-co-muted-foreground: var(--co-muted-foreground);
|
|
350
|
-
--color-co-border: var(--co-border);
|
|
351
|
-
--color-co-input: var(--co-input);
|
|
352
|
-
--color-co-ring: var(--co-ring);
|
|
353
|
-
--radius-co: var(--co-radius);
|
|
354
|
-
|
|
355
|
-
/* custom colors */
|
|
356
|
-
--color-co-pink: var(--co-pink);
|
|
357
|
-
--color-co-yellow: var(--co-yellow);
|
|
358
|
-
--color-co-blue: var(--co-blue);
|
|
359
|
-
--color-co-orange: var(--co-orange);
|
|
360
|
-
|
|
361
|
-
/* status colors */
|
|
362
|
-
--color-co-destructive: var(--co-destructive);
|
|
363
|
-
--color-co-destructive-foreground: var(--co-destructive-foreground);
|
|
364
|
-
--color-co-success: var(--co-success);
|
|
365
|
-
--color-co-success-foreground: var(--co-success-foreground);
|
|
366
|
-
--color-co-neutral: var(--co-neutral);
|
|
367
|
-
--color-co-neutral-foreground: var(--co-neutral-foreground);
|
|
368
|
-
--color-co-warning: var(--co-warning);
|
|
369
|
-
--color-co-warning-foreground: var(--co-warning-foreground);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
@layer utilities {
|
|
373
|
-
.cossistant {
|
|
374
|
-
.animation-delay-0 {
|
|
375
|
-
animation-delay: 0ms;
|
|
376
|
-
}
|
|
377
|
-
.animation-delay-200 {
|
|
378
|
-
animation-delay: 200ms;
|
|
379
|
-
}
|
|
380
|
-
.animation-delay-400 {
|
|
381
|
-
animation-delay: 400ms;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
@keyframes bounce-dot {
|
|
385
|
-
0%,
|
|
386
|
-
80%,
|
|
387
|
-
100% {
|
|
388
|
-
transform: translateY(0);
|
|
389
|
-
}
|
|
390
|
-
40% {
|
|
391
|
-
transform: translateY(-6px);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.dot-bounce-1 {
|
|
396
|
-
animation: bounce-dot 1.4s infinite;
|
|
397
|
-
animation-delay: 0s;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.dot-bounce-2 {
|
|
401
|
-
animation: bounce-dot 1.4s infinite;
|
|
402
|
-
animation-delay: 0.16s;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.dot-bounce-3 {
|
|
406
|
-
animation: bounce-dot 1.4s infinite;
|
|
407
|
-
animation-delay: 0.32s;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|