@teseor/css 1.11.0 → 1.13.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.
Files changed (52) hide show
  1. package/dist/compiled.css +1 -1
  2. package/dist/index.css +7 -6
  3. package/package.json +1 -1
  4. package/src/components/content/scroll-area/index.scss +1 -1
  5. package/src/components/content/scroll-area/scroll-area.api.json +1 -1
  6. package/src/components/data-display/card/card-visual.png +0 -0
  7. package/src/components/data-display/card/card.api.json +7 -0
  8. package/src/components/data-display/card/card.docs.json +118 -16
  9. package/src/components/data-display/card/index.scss +27 -0
  10. package/src/components/feedback/skeleton/skeleton-visual.png +0 -0
  11. package/src/components/feedback/skeleton/skeleton.docs.json +16 -0
  12. package/src/components/feedback/toast/toast-visual.png +0 -0
  13. package/src/components/feedback/toast/toast.docs.json +137 -0
  14. package/src/components/forms/checkbox/checkbox.docs.json +1 -6
  15. package/src/components/forms/field/field-visual.png +0 -0
  16. package/src/components/forms/field/field.api.json +3 -0
  17. package/src/components/forms/field/field.docs.json +98 -12
  18. package/src/components/forms/field/index.scss +29 -0
  19. package/src/components/forms/input/input.api.json +21 -1
  20. package/src/components/forms/radio/radio.docs.json +3 -8
  21. package/src/components/forms/textarea/index.scss +8 -0
  22. package/src/components/forms/textarea/textarea-visual.png +0 -0
  23. package/src/components/forms/textarea/textarea.api.json +3 -0
  24. package/src/components/forms/textarea/textarea.docs.json +33 -1
  25. package/src/components/navigation/breadcrumb/breadcrumb-visual.png +0 -0
  26. package/src/components/navigation/breadcrumb/breadcrumb.docs.json +70 -0
  27. package/src/components/navigation/nav/nav.api.json +10 -1
  28. package/src/components/navigation/tabs/tabs.api.json +14 -2
  29. package/src/components/overlays/drawer/drawer-visual.png +0 -0
  30. package/src/components/overlays/drawer/drawer.docs.json +25 -0
  31. package/src/components/overlays/modal/modal-visual.png +0 -0
  32. package/src/components/overlays/modal/modal.docs.json +89 -0
  33. package/src/components/overlays/popover/popover-visual.png +0 -0
  34. package/src/components/overlays/popover/popover.docs.json +46 -3
  35. package/src/config/tokens/semantic/colors/index.scss +20 -44
  36. package/src/config/tokens/theming.docs.json +135 -26
  37. package/src/layout/center/center.api.json +5 -1
  38. package/src/layout/center/index.scss +1 -0
  39. package/src/layout/column/column-visual.png +0 -0
  40. package/src/layout/column/column.docs.json +26 -0
  41. package/src/layout/grid/grid-visual.png +0 -0
  42. package/src/layout/grid/grid.api.json +9 -0
  43. package/src/layout/grid/grid.docs.json +378 -1
  44. package/src/layout/grid/index.scss +30 -0
  45. package/src/layout/row/row-visual.png +0 -0
  46. package/src/layout/row/row.docs.json +108 -0
  47. package/src/layout/sidebar-nav/sidebar-nav.docs.json +9 -3
  48. package/src/utilities/container/container.api.json +6 -0
  49. package/src/utilities/container/container.docs.json +121 -0
  50. package/src/utilities/container/index.scss +18 -0
  51. package/src/utilities/index.scss +1 -0
  52. package/src/utilities/scroll-snap/scroll-snap.docs.json +193 -4
@@ -2,7 +2,7 @@
2
2
  "id": "grid-primitive",
3
3
  "type": "primitive",
4
4
  "title": "Grid",
5
- "description": "CSS Grid with column variants.",
5
+ "description": "CSS Grid with column variants, subgrid support, and span utilities.",
6
6
  "api": "grid.api.json",
7
7
  "sections": [
8
8
  {
@@ -109,6 +109,383 @@
109
109
  ]
110
110
  }
111
111
  ]
112
+ },
113
+ {
114
+ "items": [
115
+ {
116
+ "tag": "div",
117
+ "class": "ui-grid ui-grid--auto",
118
+ "children": [
119
+ {
120
+ "tag": "div",
121
+ "text": "Auto",
122
+ "style": {
123
+ "background": "var(--ui-color-bg-muted)",
124
+ "padding": "var(--ui-space-2)"
125
+ }
126
+ },
127
+ {
128
+ "tag": "div",
129
+ "text": "Auto",
130
+ "style": {
131
+ "background": "var(--ui-color-bg-muted)",
132
+ "padding": "var(--ui-space-2)"
133
+ }
134
+ },
135
+ {
136
+ "tag": "div",
137
+ "text": "Auto",
138
+ "style": {
139
+ "background": "var(--ui-color-bg-muted)",
140
+ "padding": "var(--ui-space-2)"
141
+ }
142
+ }
143
+ ]
144
+ }
145
+ ]
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "title": "Subgrid",
151
+ "description": "Children inherit parent grid tracks for cross-item alignment.",
152
+ "examples": [
153
+ {
154
+ "title": "Column subgrid",
155
+ "items": [
156
+ {
157
+ "tag": "div",
158
+ "class": "ui-grid ui-grid--3",
159
+ "children": [
160
+ {
161
+ "tag": "div",
162
+ "class": "ui-grid--subgrid",
163
+ "style": {
164
+ "grid-column": "span 3"
165
+ },
166
+ "children": [
167
+ {
168
+ "tag": "div",
169
+ "text": "Subgrid child 1",
170
+ "style": {
171
+ "background": "var(--ui-color-bg-muted)",
172
+ "padding": "var(--ui-space-2)"
173
+ }
174
+ },
175
+ {
176
+ "tag": "div",
177
+ "text": "Subgrid child 2",
178
+ "style": {
179
+ "background": "var(--ui-color-bg-muted)",
180
+ "padding": "var(--ui-space-2)"
181
+ }
182
+ },
183
+ {
184
+ "tag": "div",
185
+ "text": "Subgrid child 3",
186
+ "style": {
187
+ "background": "var(--ui-color-bg-muted)",
188
+ "padding": "var(--ui-space-2)"
189
+ }
190
+ }
191
+ ]
192
+ }
193
+ ]
194
+ }
195
+ ],
196
+ "code": "<div class=\"ui-grid ui-grid--3\">\n <div class=\"ui-grid--subgrid\" style=\"grid-column: span 3\">\n <div>Subgrid child 1</div>\n <div>Subgrid child 2</div>\n <div>Subgrid child 3</div>\n </div>\n</div>"
197
+ },
198
+ {
199
+ "title": "Row subgrid (aligned cards)",
200
+ "items": [
201
+ {
202
+ "tag": "div",
203
+ "class": "ui-grid ui-grid--3",
204
+ "style": {
205
+ "grid-template-rows": "auto 1fr auto"
206
+ },
207
+ "children": [
208
+ {
209
+ "tag": "div",
210
+ "class": "ui-grid--subgrid-rows",
211
+ "style": {
212
+ "grid-row": "span 3",
213
+ "border": "1px solid var(--ui-color-border)",
214
+ "padding": "var(--ui-space-2)"
215
+ },
216
+ "children": [
217
+ {
218
+ "tag": "strong",
219
+ "text": "Card A"
220
+ },
221
+ {
222
+ "tag": "p",
223
+ "text": "Short content."
224
+ },
225
+ {
226
+ "tag": "span",
227
+ "text": "Footer",
228
+ "style": {
229
+ "color": "var(--ui-color-text-muted)"
230
+ }
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "tag": "div",
236
+ "class": "ui-grid--subgrid-rows",
237
+ "style": {
238
+ "grid-row": "span 3",
239
+ "border": "1px solid var(--ui-color-border)",
240
+ "padding": "var(--ui-space-2)"
241
+ },
242
+ "children": [
243
+ {
244
+ "tag": "strong",
245
+ "text": "Card B"
246
+ },
247
+ {
248
+ "tag": "p",
249
+ "text": "Longer content that wraps to multiple lines to demonstrate row alignment."
250
+ },
251
+ {
252
+ "tag": "span",
253
+ "text": "Footer",
254
+ "style": {
255
+ "color": "var(--ui-color-text-muted)"
256
+ }
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "tag": "div",
262
+ "class": "ui-grid--subgrid-rows",
263
+ "style": {
264
+ "grid-row": "span 3",
265
+ "border": "1px solid var(--ui-color-border)",
266
+ "padding": "var(--ui-space-2)"
267
+ },
268
+ "children": [
269
+ {
270
+ "tag": "strong",
271
+ "text": "Card C"
272
+ },
273
+ {
274
+ "tag": "p",
275
+ "text": "Medium text."
276
+ },
277
+ {
278
+ "tag": "span",
279
+ "text": "Footer",
280
+ "style": {
281
+ "color": "var(--ui-color-text-muted)"
282
+ }
283
+ }
284
+ ]
285
+ }
286
+ ]
287
+ }
288
+ ],
289
+ "code": "<div class=\"ui-grid ui-grid--3\" style=\"grid-template-rows: auto 1fr auto\">\n <div class=\"ui-grid--subgrid-rows\" style=\"grid-row: span 3\">\n <strong>Title</strong>\n <p>Content</p>\n <span>Footer</span>\n </div>\n</div>"
290
+ },
291
+ {
292
+ "title": "Both axes subgrid",
293
+ "items": [
294
+ {
295
+ "tag": "div",
296
+ "class": "ui-grid ui-grid--3",
297
+ "style": {
298
+ "grid-template-rows": "auto auto"
299
+ },
300
+ "children": [
301
+ {
302
+ "tag": "div",
303
+ "class": "ui-grid--subgrid-both",
304
+ "style": {
305
+ "grid-column": "span 3",
306
+ "grid-row": "span 2"
307
+ },
308
+ "children": [
309
+ {
310
+ "tag": "div",
311
+ "text": "A1",
312
+ "style": {
313
+ "background": "var(--ui-color-bg-muted)",
314
+ "padding": "var(--ui-space-2)"
315
+ }
316
+ },
317
+ {
318
+ "tag": "div",
319
+ "text": "A2",
320
+ "style": {
321
+ "background": "var(--ui-color-bg-muted)",
322
+ "padding": "var(--ui-space-2)"
323
+ }
324
+ },
325
+ {
326
+ "tag": "div",
327
+ "text": "A3",
328
+ "style": {
329
+ "background": "var(--ui-color-bg-muted)",
330
+ "padding": "var(--ui-space-2)"
331
+ }
332
+ },
333
+ {
334
+ "tag": "div",
335
+ "text": "B1",
336
+ "style": {
337
+ "background": "var(--ui-color-bg-subtle)",
338
+ "padding": "var(--ui-space-2)"
339
+ }
340
+ },
341
+ {
342
+ "tag": "div",
343
+ "text": "B2",
344
+ "style": {
345
+ "background": "var(--ui-color-bg-subtle)",
346
+ "padding": "var(--ui-space-2)"
347
+ }
348
+ },
349
+ {
350
+ "tag": "div",
351
+ "text": "B3",
352
+ "style": {
353
+ "background": "var(--ui-color-bg-subtle)",
354
+ "padding": "var(--ui-space-2)"
355
+ }
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ }
361
+ ],
362
+ "code": "<div class=\"ui-grid ui-grid--3\" style=\"grid-template-rows: auto auto\">\n <div class=\"ui-grid--subgrid-both\" style=\"grid-column: span 3; grid-row: span 2\">\n <div>A1</div><div>A2</div><div>A3</div>\n <div>B1</div><div>B2</div><div>B3</div>\n </div>\n</div>"
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "title": "Column Span",
368
+ "description": "Span multiple columns with .ui-grid-col-span-{2,3,4,full} utilities.",
369
+ "examples": [
370
+ {
371
+ "items": [
372
+ {
373
+ "tag": "div",
374
+ "class": "ui-grid ui-grid--4",
375
+ "children": [
376
+ {
377
+ "tag": "div",
378
+ "text": "Span 2",
379
+ "style": {
380
+ "grid-column": "span 2",
381
+ "background": "var(--ui-color-bg-muted)",
382
+ "padding": "var(--ui-space-2)"
383
+ }
384
+ },
385
+ {
386
+ "tag": "div",
387
+ "text": "1",
388
+ "style": {
389
+ "background": "var(--ui-color-bg-subtle)",
390
+ "padding": "var(--ui-space-2)"
391
+ }
392
+ },
393
+ {
394
+ "tag": "div",
395
+ "text": "1",
396
+ "style": {
397
+ "background": "var(--ui-color-bg-subtle)",
398
+ "padding": "var(--ui-space-2)"
399
+ }
400
+ },
401
+ {
402
+ "tag": "div",
403
+ "text": "1",
404
+ "style": {
405
+ "background": "var(--ui-color-bg-subtle)",
406
+ "padding": "var(--ui-space-2)"
407
+ }
408
+ },
409
+ {
410
+ "tag": "div",
411
+ "text": "Span 3",
412
+ "style": {
413
+ "grid-column": "span 3",
414
+ "background": "var(--ui-color-bg-muted)",
415
+ "padding": "var(--ui-space-2)"
416
+ }
417
+ },
418
+ {
419
+ "tag": "div",
420
+ "text": "Span full",
421
+ "style": {
422
+ "grid-column": "1 / -1",
423
+ "background": "var(--ui-color-bg-muted)",
424
+ "padding": "var(--ui-space-2)"
425
+ }
426
+ }
427
+ ]
428
+ }
429
+ ],
430
+ "code": "{% set spans = ['2', '3', '4', 'full'] %}<div class=\"ui-grid ui-grid--4\">\n{% for s in spans %} <div class=\"ui-grid-col-span-{{ s }}\">Span {{ s }}</div>\n{% endfor %}</div>"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "title": "Row Span",
436
+ "description": "Span multiple rows with .ui-grid-row-span-{2,3,full} utilities.",
437
+ "examples": [
438
+ {
439
+ "items": [
440
+ {
441
+ "tag": "div",
442
+ "class": "ui-grid ui-grid--3",
443
+ "children": [
444
+ {
445
+ "tag": "div",
446
+ "text": "Row span 2",
447
+ "style": {
448
+ "grid-row": "span 2",
449
+ "background": "var(--ui-color-bg-muted)",
450
+ "padding": "var(--ui-space-2)"
451
+ }
452
+ },
453
+ {
454
+ "tag": "div",
455
+ "text": "1",
456
+ "style": {
457
+ "background": "var(--ui-color-bg-subtle)",
458
+ "padding": "var(--ui-space-2)"
459
+ }
460
+ },
461
+ {
462
+ "tag": "div",
463
+ "text": "2",
464
+ "style": {
465
+ "background": "var(--ui-color-bg-subtle)",
466
+ "padding": "var(--ui-space-2)"
467
+ }
468
+ },
469
+ {
470
+ "tag": "div",
471
+ "text": "3",
472
+ "style": {
473
+ "background": "var(--ui-color-bg-subtle)",
474
+ "padding": "var(--ui-space-2)"
475
+ }
476
+ },
477
+ {
478
+ "tag": "div",
479
+ "text": "4",
480
+ "style": {
481
+ "background": "var(--ui-color-bg-subtle)",
482
+ "padding": "var(--ui-space-2)"
483
+ }
484
+ }
485
+ ]
486
+ }
487
+ ],
488
+ "code": "{% set spans = ['2', '3', 'full'] %}<div class=\"ui-grid ui-grid--3\">\n{% for s in spans %} <div class=\"ui-grid-row-span-{{ s }}\">Row span {{ s }}</div>\n{% endfor %}</div>"
112
489
  }
113
490
  ]
114
491
  }
@@ -17,4 +17,34 @@
17
17
  .grid--auto {
18
18
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 16rem), 1fr));
19
19
  }
20
+
21
+ // @modifier boolean subgrid
22
+ .grid--subgrid {
23
+ display: grid;
24
+ grid-template-columns: subgrid;
25
+ }
26
+
27
+ // @modifier boolean subgrid-rows
28
+ .grid--subgrid-rows {
29
+ display: grid;
30
+ grid-template-rows: subgrid;
31
+ }
32
+
33
+ // @modifier boolean subgrid-both
34
+ .grid--subgrid-both {
35
+ display: grid;
36
+ grid-template-columns: subgrid;
37
+ grid-template-rows: subgrid;
38
+ }
39
+
40
+ // Column spanning
41
+ .grid-col-span-2 { grid-column: span 2; }
42
+ .grid-col-span-3 { grid-column: span 3; }
43
+ .grid-col-span-4 { grid-column: span 4; }
44
+ .grid-col-span-full { grid-column: 1 / -1; }
45
+
46
+ // Row spanning
47
+ .grid-row-span-2 { grid-row: span 2; }
48
+ .grid-row-span-3 { grid-row: span 3; }
49
+ .grid-row-span-full { grid-row: 1 / -1; }
20
50
  }
Binary file
@@ -122,6 +122,114 @@
122
122
  ]
123
123
  }
124
124
  ]
125
+ },
126
+ {
127
+ "items": [
128
+ {
129
+ "tag": "div",
130
+ "class": "ui-row ui-row--sm",
131
+ "children": [
132
+ {
133
+ "tag": "div",
134
+ "text": "sm",
135
+ "style": {
136
+ "background": "var(--ui-color-bg-muted)",
137
+ "padding": "var(--ui-space-1)"
138
+ }
139
+ },
140
+ {
141
+ "tag": "div",
142
+ "text": "sm",
143
+ "style": {
144
+ "background": "var(--ui-color-bg-muted)",
145
+ "padding": "var(--ui-space-1)"
146
+ }
147
+ },
148
+ {
149
+ "tag": "div",
150
+ "text": "sm",
151
+ "style": {
152
+ "background": "var(--ui-color-bg-muted)",
153
+ "padding": "var(--ui-space-1)"
154
+ }
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "title": "Alignment",
164
+ "examples": [
165
+ {
166
+ "items": [
167
+ {
168
+ "tag": "div",
169
+ "class": "ui-row ui-row--start",
170
+ "style": { "background": "var(--ui-color-bg-muted)" },
171
+ "children": [
172
+ {
173
+ "tag": "div",
174
+ "text": "Start",
175
+ "style": { "background": "var(--ui-color-bg)", "padding": "var(--ui-space-2)" }
176
+ }
177
+ ]
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "items": [
183
+ {
184
+ "tag": "div",
185
+ "class": "ui-row ui-row--center",
186
+ "style": { "background": "var(--ui-color-bg-muted)" },
187
+ "children": [
188
+ {
189
+ "tag": "div",
190
+ "text": "Center",
191
+ "style": { "background": "var(--ui-color-bg)", "padding": "var(--ui-space-2)" }
192
+ }
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "items": [
199
+ {
200
+ "tag": "div",
201
+ "class": "ui-row ui-row--end",
202
+ "style": { "background": "var(--ui-color-bg-muted)" },
203
+ "children": [
204
+ {
205
+ "tag": "div",
206
+ "text": "End",
207
+ "style": { "background": "var(--ui-color-bg)", "padding": "var(--ui-space-2)" }
208
+ }
209
+ ]
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "items": [
215
+ {
216
+ "tag": "div",
217
+ "class": "ui-row ui-row--between",
218
+ "style": { "background": "var(--ui-color-bg-muted)" },
219
+ "children": [
220
+ {
221
+ "tag": "div",
222
+ "text": "Between A",
223
+ "style": { "background": "var(--ui-color-bg)", "padding": "var(--ui-space-2)" }
224
+ },
225
+ {
226
+ "tag": "div",
227
+ "text": "Between B",
228
+ "style": { "background": "var(--ui-color-bg)", "padding": "var(--ui-space-2)" }
229
+ }
230
+ ]
231
+ }
232
+ ]
125
233
  }
126
234
  ]
127
235
  }
@@ -495,9 +495,15 @@
495
495
  "tag": "li",
496
496
  "children": [
497
497
  {
498
- "tag": "span",
499
- "class": "ui-sidebar-nav__subgroup-label",
500
- "text": "Actions"
498
+ "tag": "div",
499
+ "class": "ui-sidebar-nav__subgroup",
500
+ "children": [
501
+ {
502
+ "tag": "span",
503
+ "class": "ui-sidebar-nav__subgroup-label",
504
+ "text": "Actions"
505
+ }
506
+ ]
501
507
  }
502
508
  ]
503
509
  },
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "container",
3
+ "type": "utility",
4
+ "utilities": ["container-inline", "container-size", "container-normal"],
5
+ "cssVars": []
6
+ }