@leitware/composables 0.2.0 → 1.0.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/README.md +186 -49
- package/dist/presets/brutalist.css +53 -39
- package/dist/presets/default.css +52 -38
- package/dist/presets/signal-pop.css +51 -37
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +500 -0
- package/package.json +9 -31
- package/rules/composables.md +22 -26
- package/skills/use-composables/SKILL.md +42 -0
- package/skills/use-composables/agents/openai.yaml +4 -0
- package/skills/use-composables/references/optional-dependencies.md +76 -0
- package/skills/use-composables/references/public-api.md +23 -0
- package/skills/use-composables/references/semantic-styling.md +134 -0
- package/skills/use-composables/references/semantic-utilities.md +131 -0
- package/src/styles/composable.css +7 -1
- package/src/styles/presets/brutalist.css +53 -39
- package/src/styles/presets/default.css +52 -38
- package/src/styles/presets/signal-pop.css +51 -37
- package/src/styles/presets-data/brutalist.ts +19 -41
- package/src/styles/presets-data/default.ts +18 -40
- package/src/styles/presets-data/signal-pop.ts +17 -39
- package/src/styles/tokens/registry.ts +126 -18
- package/src/styles/tokens/semantic-utilities.css +503 -0
- package/src/styles/tokens/semantic.css +46 -32
- package/src/styles/tokens/tailwind-color-adapter.css +91 -0
- package/src/styles/tokens/tailwind-public-utilities.css +500 -0
- package/src/styles/tokens/tailwind-theme.css +0 -100
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
Generated Public Tailwind Utilities
|
|
3
|
+
============================================================================
|
|
4
|
+
Optional Tailwind v4 adapter for variants of every guaranteed public class.
|
|
5
|
+
Import this after Tailwind in a consuming application's CSS entrypoint.
|
|
6
|
+
|
|
7
|
+
To regenerate: bun scripts/generate-css.ts
|
|
8
|
+
============================================================================ */
|
|
9
|
+
|
|
10
|
+
@utility bg-default {
|
|
11
|
+
background-color: var(--bg-default);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility bg-inverse {
|
|
15
|
+
background-color: var(--bg-inverse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@utility bg-muted {
|
|
19
|
+
background-color: var(--bg-muted);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@utility bg-surface-default {
|
|
23
|
+
background-color: var(--bg-surface-default);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@utility bg-surface-popover {
|
|
27
|
+
background-color: var(--bg-surface-popover);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@utility bg-surface-accent {
|
|
31
|
+
background-color: var(--bg-surface-accent);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@utility bg-surface-info {
|
|
35
|
+
background-color: var(--bg-surface-info);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@utility bg-surface-success {
|
|
39
|
+
background-color: var(--bg-surface-success);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@utility bg-surface-warning {
|
|
43
|
+
background-color: var(--bg-surface-warning);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@utility bg-surface-critical {
|
|
47
|
+
background-color: var(--bg-surface-critical);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@utility bg-surface-emphasis {
|
|
51
|
+
background-color: var(--bg-surface-emphasis);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility bg-surface-inverse {
|
|
55
|
+
background-color: var(--bg-surface-inverse);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@utility bg-surface-transparent {
|
|
59
|
+
background-color: var(--bg-surface-transparent);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@utility bg-overlay {
|
|
63
|
+
background-color: var(--bg-overlay);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility bg-surface-brand {
|
|
67
|
+
background-color: var(--bg-surface-brand);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@utility bg-surface-brand-2 {
|
|
71
|
+
background-color: var(--bg-surface-brand-2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@utility bg-surface-brand-3 {
|
|
75
|
+
background-color: var(--bg-surface-brand-3);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@utility bg-surface-brand-4 {
|
|
79
|
+
background-color: var(--bg-surface-brand-4);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@utility bg-surface-brand-5 {
|
|
83
|
+
background-color: var(--bg-surface-brand-5);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@utility bg-surface-hover {
|
|
87
|
+
background-color: var(--bg-surface-hover);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@utility bg-fill-default {
|
|
91
|
+
background-color: var(--bg-fill-default);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@utility bg-fill-primary {
|
|
95
|
+
background-color: var(--bg-fill-primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@utility bg-fill-brand {
|
|
99
|
+
background-color: var(--bg-fill-brand);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@utility bg-fill-brand-2 {
|
|
103
|
+
background-color: var(--bg-fill-brand-2);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@utility bg-fill-brand-3 {
|
|
107
|
+
background-color: var(--bg-fill-brand-3);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@utility bg-fill-brand-4 {
|
|
111
|
+
background-color: var(--bg-fill-brand-4);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@utility bg-fill-brand-5 {
|
|
115
|
+
background-color: var(--bg-fill-brand-5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@utility bg-fill-info {
|
|
119
|
+
background-color: var(--bg-fill-info);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@utility bg-fill-success {
|
|
123
|
+
background-color: var(--bg-fill-success);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@utility bg-fill-warning {
|
|
127
|
+
background-color: var(--bg-fill-warning);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@utility bg-fill-critical {
|
|
131
|
+
background-color: var(--bg-fill-critical);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@utility bg-fill-emphasis {
|
|
135
|
+
background-color: var(--bg-fill-emphasis);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@utility bg-fill-transparent {
|
|
139
|
+
background-color: var(--bg-fill-transparent);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@utility bg-fill-secondary {
|
|
143
|
+
background-color: var(--bg-fill-secondary);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@utility bg-fill-secondary-inverse {
|
|
147
|
+
background-color: var(--bg-fill-secondary-inverse);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@utility text-default {
|
|
151
|
+
color: var(--text-default);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@utility text-content-secondary {
|
|
155
|
+
color: var(--text-secondary);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@utility text-content-muted {
|
|
159
|
+
color: var(--text-muted);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@utility text-disabled {
|
|
163
|
+
color: var(--text-disabled);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@utility text-inverse {
|
|
167
|
+
color: var(--text-inverse);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@utility text-on-fill-primary {
|
|
171
|
+
color: var(--text-on-fill-primary);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@utility text-on-fill-secondary {
|
|
175
|
+
color: var(--text-on-fill-secondary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@utility text-on-surface-accent {
|
|
179
|
+
color: var(--text-on-surface-accent);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@utility text-info {
|
|
183
|
+
color: var(--text-info);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@utility text-success {
|
|
187
|
+
color: var(--text-success);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@utility text-warning {
|
|
191
|
+
color: var(--text-warning);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility text-critical {
|
|
195
|
+
color: var(--text-critical);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@utility text-emphasis {
|
|
199
|
+
color: var(--text-emphasis);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility text-brand {
|
|
203
|
+
color: var(--text-brand);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility text-brand-2 {
|
|
207
|
+
color: var(--text-brand-2);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@utility text-brand-3 {
|
|
211
|
+
color: var(--text-brand-3);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@utility text-brand-4 {
|
|
215
|
+
color: var(--text-brand-4);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility text-brand-5 {
|
|
219
|
+
color: var(--text-brand-5);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@utility text-link {
|
|
223
|
+
color: var(--text-link);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility text-icon-default {
|
|
227
|
+
color: var(--icon-default);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@utility fill-icon-default {
|
|
231
|
+
fill: var(--icon-default);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@utility stroke-icon-default {
|
|
235
|
+
stroke: var(--icon-default);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@utility text-icon-secondary {
|
|
239
|
+
color: var(--icon-secondary);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@utility fill-icon-secondary {
|
|
243
|
+
fill: var(--icon-secondary);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility stroke-icon-secondary {
|
|
247
|
+
stroke: var(--icon-secondary);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@utility text-icon-disabled {
|
|
251
|
+
color: var(--icon-disabled);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@utility fill-icon-disabled {
|
|
255
|
+
fill: var(--icon-disabled);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@utility stroke-icon-disabled {
|
|
259
|
+
stroke: var(--icon-disabled);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@utility text-icon-inverse {
|
|
263
|
+
color: var(--icon-inverse);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@utility fill-icon-inverse {
|
|
267
|
+
fill: var(--icon-inverse);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@utility stroke-icon-inverse {
|
|
271
|
+
stroke: var(--icon-inverse);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@utility text-icon-info {
|
|
275
|
+
color: var(--icon-info);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@utility fill-icon-info {
|
|
279
|
+
fill: var(--icon-info);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility stroke-icon-info {
|
|
283
|
+
stroke: var(--icon-info);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@utility text-icon-success {
|
|
287
|
+
color: var(--icon-success);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@utility fill-icon-success {
|
|
291
|
+
fill: var(--icon-success);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@utility stroke-icon-success {
|
|
295
|
+
stroke: var(--icon-success);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility text-icon-warning {
|
|
299
|
+
color: var(--icon-warning);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@utility fill-icon-warning {
|
|
303
|
+
fill: var(--icon-warning);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@utility stroke-icon-warning {
|
|
307
|
+
stroke: var(--icon-warning);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@utility text-icon-critical {
|
|
311
|
+
color: var(--icon-critical);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@utility fill-icon-critical {
|
|
315
|
+
fill: var(--icon-critical);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@utility stroke-icon-critical {
|
|
319
|
+
stroke: var(--icon-critical);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@utility text-icon-emphasis {
|
|
323
|
+
color: var(--icon-emphasis);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@utility fill-icon-emphasis {
|
|
327
|
+
fill: var(--icon-emphasis);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@utility stroke-icon-emphasis {
|
|
331
|
+
stroke: var(--icon-emphasis);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@utility text-icon-brand {
|
|
335
|
+
color: var(--icon-brand);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility fill-icon-brand {
|
|
339
|
+
fill: var(--icon-brand);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@utility stroke-icon-brand {
|
|
343
|
+
stroke: var(--icon-brand);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@utility text-icon-brand-2 {
|
|
347
|
+
color: var(--icon-brand-2);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility fill-icon-brand-2 {
|
|
351
|
+
fill: var(--icon-brand-2);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@utility stroke-icon-brand-2 {
|
|
355
|
+
stroke: var(--icon-brand-2);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@utility text-icon-brand-3 {
|
|
359
|
+
color: var(--icon-brand-3);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@utility fill-icon-brand-3 {
|
|
363
|
+
fill: var(--icon-brand-3);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@utility stroke-icon-brand-3 {
|
|
367
|
+
stroke: var(--icon-brand-3);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@utility text-icon-brand-4 {
|
|
371
|
+
color: var(--icon-brand-4);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@utility fill-icon-brand-4 {
|
|
375
|
+
fill: var(--icon-brand-4);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
@utility stroke-icon-brand-4 {
|
|
379
|
+
stroke: var(--icon-brand-4);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
@utility text-icon-brand-5 {
|
|
383
|
+
color: var(--icon-brand-5);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@utility fill-icon-brand-5 {
|
|
387
|
+
fill: var(--icon-brand-5);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@utility stroke-icon-brand-5 {
|
|
391
|
+
stroke: var(--icon-brand-5);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
@utility border-stroke-default {
|
|
395
|
+
border-color: var(--border-default);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@utility border-stroke-secondary {
|
|
399
|
+
border-color: var(--border-secondary);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@utility border-stroke-input {
|
|
403
|
+
border-color: var(--border-input);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@utility border-stroke-tertiary {
|
|
407
|
+
border-color: var(--border-tertiary);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@utility border-stroke-disabled {
|
|
411
|
+
border-color: var(--border-disabled);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@utility border-stroke-inverse {
|
|
415
|
+
border-color: var(--border-inverse);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@utility border-stroke-focus {
|
|
419
|
+
border-color: var(--border-focus);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@utility border-stroke-brand {
|
|
423
|
+
border-color: var(--border-brand);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@utility border-stroke-brand-2 {
|
|
427
|
+
border-color: var(--border-brand-2);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@utility border-stroke-brand-3 {
|
|
431
|
+
border-color: var(--border-brand-3);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@utility border-stroke-brand-4 {
|
|
435
|
+
border-color: var(--border-brand-4);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@utility border-stroke-brand-5 {
|
|
439
|
+
border-color: var(--border-brand-5);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
@utility border-stroke-info {
|
|
443
|
+
border-color: var(--border-info);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@utility border-stroke-success {
|
|
447
|
+
border-color: var(--border-success);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@utility border-stroke-warning {
|
|
451
|
+
border-color: var(--border-warning);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
@utility border-stroke-critical {
|
|
455
|
+
border-color: var(--border-critical);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
@utility border-stroke-emphasis {
|
|
459
|
+
border-color: var(--border-emphasis);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
@utility fill-chart-1 {
|
|
463
|
+
fill: var(--chart-1);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@utility stroke-chart-1 {
|
|
467
|
+
stroke: var(--chart-1);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@utility fill-chart-2 {
|
|
471
|
+
fill: var(--chart-2);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
@utility stroke-chart-2 {
|
|
475
|
+
stroke: var(--chart-2);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
@utility fill-chart-3 {
|
|
479
|
+
fill: var(--chart-3);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@utility stroke-chart-3 {
|
|
483
|
+
stroke: var(--chart-3);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
@utility fill-chart-4 {
|
|
487
|
+
fill: var(--chart-4);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
@utility stroke-chart-4 {
|
|
491
|
+
stroke: var(--chart-4);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
@utility fill-chart-5 {
|
|
495
|
+
fill: var(--chart-5);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@utility stroke-chart-5 {
|
|
499
|
+
stroke: var(--chart-5);
|
|
500
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitware/composables",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
14
|
"rules",
|
|
15
|
+
"skills",
|
|
15
16
|
"src"
|
|
16
17
|
],
|
|
17
18
|
"exports": {
|
|
18
19
|
".": "./src/index.ts",
|
|
19
20
|
"./ai": "./src/opinionated/ai/index.ts",
|
|
20
21
|
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./tailwind.css": "./dist/tailwind.css",
|
|
21
23
|
"./presets/*": "./dist/presets/*"
|
|
22
24
|
},
|
|
23
25
|
"scripts": {
|
|
@@ -43,8 +45,14 @@
|
|
|
43
45
|
"@base-ui/react": "^1.6.0",
|
|
44
46
|
"class-variance-authority": "^0.7.1",
|
|
45
47
|
"clsx": "^2.1.1",
|
|
48
|
+
"embla-carousel-react": "^8.6.0",
|
|
46
49
|
"lucide-react": "^1.23.0",
|
|
47
50
|
"radix-ui": "^1.0.0",
|
|
51
|
+
"react-colorful": "^5.7.0",
|
|
52
|
+
"react-day-picker": "^10.0.1",
|
|
53
|
+
"react-dropzone": "^15.0.0",
|
|
54
|
+
"react-resizable-panels": "^4.12.0",
|
|
55
|
+
"sonner": "^2.0.7",
|
|
48
56
|
"tailwind-merge": "^3.6.0"
|
|
49
57
|
},
|
|
50
58
|
"peerDependencies": {
|
|
@@ -70,13 +78,7 @@
|
|
|
70
78
|
"use-stick-to-bottom": "^1.0.0",
|
|
71
79
|
"nanoid": "^5.0.0",
|
|
72
80
|
"@radix-ui/react-use-controllable-state": "^1.0.0",
|
|
73
|
-
"react-day-picker": "^9.0.0 || ^10.0.0",
|
|
74
|
-
"react-dropzone": "^15.0.0",
|
|
75
|
-
"embla-carousel-react": "^8.0.0",
|
|
76
|
-
"react-resizable-panels": "^4.0.0",
|
|
77
|
-
"sonner": "^2.0.0",
|
|
78
81
|
"cmdk": "^1.0.0",
|
|
79
|
-
"react-colorful": "^5.0.0",
|
|
80
82
|
"motion": "^12.0.0"
|
|
81
83
|
},
|
|
82
84
|
"peerDependenciesMeta": {
|
|
@@ -140,27 +142,9 @@
|
|
|
140
142
|
"@radix-ui/react-use-controllable-state": {
|
|
141
143
|
"optional": true
|
|
142
144
|
},
|
|
143
|
-
"react-day-picker": {
|
|
144
|
-
"optional": true
|
|
145
|
-
},
|
|
146
|
-
"react-dropzone": {
|
|
147
|
-
"optional": true
|
|
148
|
-
},
|
|
149
|
-
"embla-carousel-react": {
|
|
150
|
-
"optional": true
|
|
151
|
-
},
|
|
152
|
-
"react-resizable-panels": {
|
|
153
|
-
"optional": true
|
|
154
|
-
},
|
|
155
|
-
"sonner": {
|
|
156
|
-
"optional": true
|
|
157
|
-
},
|
|
158
145
|
"cmdk": {
|
|
159
146
|
"optional": true
|
|
160
147
|
},
|
|
161
|
-
"react-colorful": {
|
|
162
|
-
"optional": true
|
|
163
|
-
},
|
|
164
148
|
"motion": {
|
|
165
149
|
"optional": true
|
|
166
150
|
}
|
|
@@ -191,20 +175,14 @@
|
|
|
191
175
|
"@vitejs/plugin-react": "^6.0.3",
|
|
192
176
|
"ai": "^7.0.14",
|
|
193
177
|
"cmdk": "^1.1.1",
|
|
194
|
-
"embla-carousel-react": "^8.6.0",
|
|
195
178
|
"motion": "^12.42.2",
|
|
196
179
|
"nanoid": "^5.1.16",
|
|
197
180
|
"oxfmt": "^0.57.0",
|
|
198
181
|
"oxlint": "^1.72.0",
|
|
199
182
|
"react": "^19.2.7",
|
|
200
|
-
"react-colorful": "^5.7.0",
|
|
201
|
-
"react-day-picker": "^10.0.1",
|
|
202
183
|
"react-dom": "^19.2.7",
|
|
203
|
-
"react-dropzone": "^15.0.0",
|
|
204
|
-
"react-resizable-panels": "^4.12.0",
|
|
205
184
|
"shadcn": "^4.13.0",
|
|
206
185
|
"shiki": "^4.3.0",
|
|
207
|
-
"sonner": "^2.0.7",
|
|
208
186
|
"streamdown": "^2.5.0",
|
|
209
187
|
"tailwindcss": "^4.3.2",
|
|
210
188
|
"tw-animate-css": "^1.4.0",
|
package/rules/composables.md
CHANGED
|
@@ -10,9 +10,9 @@ Generated by `bun scripts/generate-rules.ts`. Do not hand-edit this file.
|
|
|
10
10
|
- Import `@leitware/composables/styles.css` once in root/global CSS before using components.
|
|
11
11
|
- Import at most one preset after the base styles, for example `@leitware/composables/presets/brutalist.css`.
|
|
12
12
|
- Prefer `Form*` components when building labeled fields with description, validation, or error text.
|
|
13
|
-
- Prefer array APIs where provided, such as `Tabs`, `Breadcrumb`, `Pagination`, `Accordion`,
|
|
13
|
+
- Prefer array APIs where provided, such as `Tabs`, `Breadcrumb`, `Pagination`, `Accordion`, and form selects.
|
|
14
14
|
- Do not import from `src/_internal` or package-internal file paths in downstream apps.
|
|
15
|
-
- Use semantic
|
|
15
|
+
- Use only semantic color utilities listed in the generated skill manifest rather than arbitrary colors or inferred token/property combinations.
|
|
16
16
|
- Use `cn` from the package when composing class names.
|
|
17
17
|
|
|
18
18
|
## Required CSS
|
|
@@ -24,28 +24,24 @@ Generated by `bun scripts/generate-rules.ts`. Do not hand-edit this file.
|
|
|
24
24
|
@import '@leitware/composables/presets/brutalist.css';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
Tailwind v4 consumers that need state or responsive variants of exact public semantic classes must import `@leitware/composables/tailwind.css` after Tailwind and before `@leitware/composables/styles.css`.
|
|
28
|
+
|
|
27
29
|
## Entrypoints
|
|
28
30
|
|
|
29
|
-
| Import
|
|
30
|
-
|
|
|
31
|
-
| `@leitware/composables`
|
|
32
|
-
| `@leitware/composables/ai`
|
|
33
|
-
| `@leitware/composables/styles.css`
|
|
34
|
-
| `@leitware/composables/
|
|
31
|
+
| Import | Source |
|
|
32
|
+
| ------------------------------------ | ------------------------------- |
|
|
33
|
+
| `@leitware/composables` | `./src/index.ts` |
|
|
34
|
+
| `@leitware/composables/ai` | `./src/opinionated/ai/index.ts` |
|
|
35
|
+
| `@leitware/composables/styles.css` | `./dist/styles.css` |
|
|
36
|
+
| `@leitware/composables/tailwind.css` | `./dist/tailwind.css` |
|
|
37
|
+
| `@leitware/composables/presets/*` | `./dist/presets/*` |
|
|
35
38
|
|
|
36
39
|
## Optional Dependencies
|
|
37
40
|
|
|
38
|
-
| Install when using…
|
|
39
|
-
|
|
|
40
|
-
| `
|
|
41
|
-
|
|
|
42
|
-
| `Dropzone`, `FormDropzone`, `FormMultiDropzone` | `react-dropzone` |
|
|
43
|
-
| `ResizablePanels` | `react-resizable-panels` |
|
|
44
|
-
| `Sonner` (toasts) | `sonner` |
|
|
45
|
-
| AI elements from `@leitware/composables/ai` | `ai`, `shiki`, `streamdown`, `@streamdown/cjk`, `@streamdown/code`, `@streamdown/math`, `@streamdown/mermaid`, `use-stick-to-bottom`, `nanoid`, `@radix-ui/react-use-controllable-state` |
|
|
46
|
-
| `ThemeInjector` / `TokenConfigPanel` | `react-colorful` |
|
|
47
|
-
| Default preset fonts | `@fontsource-variable/inter` |
|
|
48
|
-
| Brutalist preset fonts | `@fontsource-variable/space-grotesk`, `@fontsource-variable/jetbrains-mono` |
|
|
41
|
+
| Install when using… | Import from | Optional packages |
|
|
42
|
+
| ------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
|
+
| AI elements | `@leitware/composables/ai` | `ai`, `shiki`, `streamdown`, `@streamdown/cjk`, `@streamdown/code`, `@streamdown/math`, `@streamdown/mermaid`, `use-stick-to-bottom`, `nanoid`, `@radix-ui/react-use-controllable-state`, `cmdk`, `motion` |
|
|
44
|
+
| Preset typography | CSS or application entrypoint | The Fontsource packages listed below |
|
|
49
45
|
|
|
50
46
|
## Component Catalog
|
|
51
47
|
|
|
@@ -61,11 +57,11 @@ Use this catalog to choose public exports. The `Source module` column is for mai
|
|
|
61
57
|
|
|
62
58
|
### Hooks
|
|
63
59
|
|
|
64
|
-
| Module | Source module
|
|
65
|
-
| -------------------- |
|
|
66
|
-
| `use-mobile` | `./hooks/use-mobile`
|
|
67
|
-
| `use-numeric-input` | `./hooks/use-numeric-input`
|
|
68
|
-
| `direction-provider` |
|
|
60
|
+
| Module | Source module | Import from | Public values | Public types | Description |
|
|
61
|
+
| -------------------- | ----------------------------------- | ----------------------- | ----------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
|
62
|
+
| `use-mobile` | `./hooks/use-mobile` | `@leitware/composables` | `useIsMobile` | - | Hook to detect mobile viewport breakpoint |
|
|
63
|
+
| `use-numeric-input` | `./hooks/use-numeric-input` | `@leitware/composables` | `useNumericInput` | `NumericInputOptions`, `UseNumericInputOptions`, `UseNumericInputReturn` | Hook for numeric input handling with sanitization and parsing |
|
|
64
|
+
| `direction-provider` | `@base-ui/react/direction-provider` | `@leitware/composables` | - | - | Base UI reading-direction provider with `useDirection` |
|
|
69
65
|
|
|
70
66
|
### Layout
|
|
71
67
|
|
|
@@ -152,7 +148,7 @@ Use this catalog to choose public exports. The `Source module` column is for mai
|
|
|
152
148
|
| `form-calendar-popover` | `./opinionated/form-calendar-popover` | `@leitware/composables` | `FormCalendarPopover` | `FormCalendarPopoverProps` | Date picker field with calendar popover |
|
|
153
149
|
| `form-date-of-birth` | `./opinionated/form-date-of-birth` | `@leitware/composables` | `FormDateOfBirth` | `DateOfBirthValue`, `FormDateOfBirthProps` | Three-field date of birth input with auto-advance |
|
|
154
150
|
| `form-dropzone` | `./opinionated/form-dropzone` | `@leitware/composables` | `ACCEPT_PRESETS`, `FormDropZone` | `FormDropZoneProps` | Single file upload field with drag-and-drop |
|
|
155
|
-
| `form-multi-dropzone` | `./opinionated/form-multi-dropzone` | `@leitware/composables` | `FormMultiDropZone`
|
|
151
|
+
| `form-multi-dropzone` | `./opinionated/form-multi-dropzone` | `@leitware/composables` | `ACCEPT_PRESETS`, `FormMultiDropZone` | `FormMultiDropZoneProps` | Multi-file upload field with drag-and-drop |
|
|
156
152
|
|
|
157
153
|
### Interactive
|
|
158
154
|
|
|
@@ -168,7 +164,7 @@ Use this catalog to choose public exports. The `Source module` column is for mai
|
|
|
168
164
|
| `combobox` | `./opinionated/combobox` | `@leitware/composables` | `Combobox`, `ComboboxChip`, `ComboboxChips`, `ComboboxChipsInput`, `ComboboxCollection`, `ComboboxContent`, `ComboboxEmpty`, `ComboboxGroup`, `ComboboxInput`, `ComboboxItem`, `ComboboxLabel`, `ComboboxList`, `ComboboxSeparator`, `ComboboxTrigger`, `ComboboxValue` | `ComboboxOption`, `ComboboxProps` | Searchable select dropdown with autocomplete |
|
|
169
165
|
| `select` | `./opinionated/select` | `@leitware/composables` | `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectTrigger`, `SelectValue` | `SelectOption`, `SelectProps` | Dropdown select menu with scrollable options |
|
|
170
166
|
| `calendar` | `./opinionated/calendar` | `@leitware/composables` | `Calendar`, `CalendarDayButton` | - | Date picker calendar powered by react-day-picker |
|
|
171
|
-
| `dropzone` | `./opinionated/dropzone` | `@leitware/composables` | `DropZone`, `DropZoneFile`
|
|
167
|
+
| `dropzone` | `./opinionated/dropzone` | `@leitware/composables` | `ACCEPT_PRESETS`, `DropZone`, `DropZoneFile` | - | Drag-and-drop file upload area |
|
|
172
168
|
|
|
173
169
|
### Tooling Components
|
|
174
170
|
|