@fusion.dev/helix-styles 0.183.0 → 0.185.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/elements.css CHANGED
@@ -343,37 +343,96 @@ helix-data-table:not(:defined):has(> helix-table-row) {
343
343
  overflow-x: auto;
344
344
  }
345
345
  helix-data-table:not(:defined) {
346
- --data-table-template: repeat(var(--_data-table-count, 1), minmax(max-content, 1fr));
346
+ --data-table-template: var(--_data-table-lead,) repeat(var(--_table-count, 1), minmax(max-content, 1fr));
347
347
  }
348
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(1):last-of-type) {
349
- --_data-table-count: 1;
348
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(1):last-of-type) {
349
+ --_table-count: 1;
350
350
  }
351
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(2):last-of-type) {
352
- --_data-table-count: 2;
351
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(2):last-of-type) {
352
+ --_table-count: 2;
353
353
  }
354
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(3):last-of-type) {
355
- --_data-table-count: 3;
354
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(3):last-of-type) {
355
+ --_table-count: 3;
356
356
  }
357
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(4):last-of-type) {
358
- --_data-table-count: 4;
357
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(4):last-of-type) {
358
+ --_table-count: 4;
359
359
  }
360
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(5):last-of-type) {
361
- --_data-table-count: 5;
360
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(5):last-of-type) {
361
+ --_table-count: 5;
362
362
  }
363
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(6):last-of-type) {
364
- --_data-table-count: 6;
363
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(6):last-of-type) {
364
+ --_table-count: 6;
365
365
  }
366
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(7):last-of-type) {
367
- --_data-table-count: 7;
366
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(7):last-of-type) {
367
+ --_table-count: 7;
368
368
  }
369
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(8):last-of-type) {
370
- --_data-table-count: 8;
369
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(8):last-of-type) {
370
+ --_table-count: 8;
371
371
  }
372
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(9):last-of-type) {
373
- --_data-table-count: 9;
372
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(9):last-of-type) {
373
+ --_table-count: 9;
374
374
  }
375
- helix-data-table:not(:defined):has(> helix-table-column:nth-of-type(10):last-of-type) {
376
- --_data-table-count: 10;
375
+ :is(helix-data-table, helix-table):not(:defined):has(> helix-table-column:nth-of-type(10):last-of-type) {
376
+ --_table-count: 10;
377
+ }
378
+ @supports (grid-template-columns: attr(columns type(*))) {
379
+ helix-data-table:not(:defined)[columns] {
380
+ --data-table-template: var(--_data-table-lead,) attr(columns type(*));
381
+ }
382
+ }
383
+ helix-data-table:not(:defined):is([selectable], [reorderable-rows]:not([child-field])) {
384
+ --_data-table-lead: max-content;
385
+ }
386
+ helix-data-table:not(:defined)[selectable][reorderable-rows]:not([child-field]) {
387
+ --_data-table-lead: calc(1em + 2 * var(--data-table-padding-inline, var(--helix-space-sm)))
388
+ calc(var(--checkbox-size, var(--helix-size-checkbox)) + 2 * var(--data-table-padding-inline, var(--helix-space-sm)));
389
+ }
390
+ helix-data-table:not(:defined):has(> helix-table-row):is([selectable], [reorderable-rows]:not([child-field]))::before,
391
+ helix-data-table:is([selectable], [reorderable-rows]:not([child-field])) > helix-table-row:not([hidden])::before {
392
+ border-block-end: var(--helix-border-thin) solid
393
+ var(--data-table-rule-color, var(--helix-color-border));
394
+ content: '';
395
+ grid-column: 1;
396
+ }
397
+ helix-data-table:is([selectable], [reorderable-rows]:not([child-field])) > helix-table-row:last-of-type::before {
398
+ border-block-end-color: transparent;
399
+ }
400
+ helix-data-table:where([selectable], [reorderable-rows]:not([child-field])) > helix-table-row:not([hidden])::before {
401
+ block-size: 1em;
402
+ box-sizing: content-box;
403
+ inline-size: 1em;
404
+ padding-block: var(--data-table-padding-block, var(--helix-space-sm));
405
+ padding-inline: var(--data-table-padding-inline, var(--helix-space-sm));
406
+ }
407
+ helix-data-table[selectable] > helix-table-row:not([hidden])::before {
408
+ block-size: var(--checkbox-size, var(--helix-size-checkbox));
409
+ inline-size: var(--checkbox-size, var(--helix-size-checkbox));
410
+ }
411
+ helix-data-table:not(:defined):has(> helix-table-row)[selectable][reorderable-rows]:not([child-field])::before,
412
+ helix-data-table[selectable][reorderable-rows]:not([child-field]) > helix-table-row:not([hidden])::before {
413
+ grid-column: 1 / span 2;
414
+ inline-size: auto;
415
+ }
416
+ helix-table:not(:defined):has(> helix-table-column) {
417
+ --table-template: var(--_table-lead,) repeat(var(--_table-count, 1), minmax(max-content, 1fr));
418
+ }
419
+ helix-table:not(:defined)[reorderable] {
420
+ --_table-lead: calc(var(--helix-space-2xs) + 1em + var(--helix-space-sm));
421
+ }
422
+ helix-table:not(:defined)[selectable] {
423
+ --_table-lead: calc(var(--checkbox-size, var(--helix-size-checkbox)) + var(--helix-space-md));
424
+ }
425
+ helix-table:not(:defined)[reorderable][selectable] {
426
+ --_table-lead: calc(var(--helix-space-2xs) + 1em + var(--helix-space-sm))
427
+ calc(var(--checkbox-size, var(--helix-size-checkbox)) + var(--helix-space-md));
428
+ }
429
+ helix-table:not(:defined):is([reorderable], [selectable]) > helix-table-row:not([hidden])::before {
430
+ border-block-end: var(--helix-border-thin) solid var(--helix-color-border);
431
+ content: '';
432
+ grid-column: 1;
433
+ }
434
+ helix-table:not(:defined)[reorderable][selectable] > helix-table-row:not([hidden])::before {
435
+ grid-column: 1 / span 2;
377
436
  }
378
437
  helix-data-table:not(:defined):has(> helix-table-row) > helix-table-column:not([hidden]) {
379
438
  align-items: center;
@@ -434,10 +493,12 @@ helix-data-table:has(> helix-table-column:nth-of-type(9)[text-align="end"]) > he
434
493
  helix-data-table:has(> helix-table-column:nth-of-type(10)[text-align="end"]) > helix-table-row > :nth-child(10) {
435
494
  text-align: end;
436
495
  }
437
- helix-data-table:defined:is([selectable], [reorderable-rows]) > helix-table-row > :first-child {
496
+ helix-data-table:not(:defined):has(> helix-table-row):is([selectable], [reorderable-rows]:not([child-field])) > helix-table-column:first-of-type,
497
+ helix-data-table:is([selectable], [reorderable-rows]:not([child-field])) > helix-table-row > :first-child {
438
498
  grid-column-start: 2;
439
499
  }
440
- helix-data-table:defined[selectable][reorderable-rows] > helix-table-row > :first-child {
500
+ helix-data-table:not(:defined):has(> helix-table-row)[selectable][reorderable-rows]:not([child-field]) > helix-table-column:first-of-type,
501
+ helix-data-table[selectable][reorderable-rows]:not([child-field]) > helix-table-row > :first-child {
441
502
  grid-column-start: 3;
442
503
  }
443
504
  helix-data-table:not(:defined):has(> helix-table-row) > [slot="toolbar"] {
@@ -456,6 +517,17 @@ helix-data-table:not(:defined):has(> helix-table-row) > [slot="footer"] {
456
517
  helix-data-table:not(:defined):has(> helix-table-row):has(> [slot="footer"])::part(footer) {
457
518
  padding-block-start: 0;
458
519
  }
520
+ helix-data-table:not(:defined):has(> helix-table-row):is([page-size]:not([page-size="0"]), [paginated]):not(:has(> [slot="footer"]))::after {
521
+ block-size: var(--pagination-size, var(--helix-size-control-tight));
522
+ content: '';
523
+ grid-column: 1 / -1;
524
+ margin-block-start: var(--data-table-footer-gap, var(--helix-space-sm));
525
+ order: 1;
526
+ }
527
+ helix-data-table:not(:defined):has(> helix-table-row):is([page-size]:not([page-size="0"]), [paginated]) > [slot="footer"] {
528
+ align-content: center;
529
+ min-block-size: var(--pagination-size, var(--helix-size-control-tight));
530
+ }
459
531
  helix-data-table:not(:defined):has(> helix-table-row) > :is([slot="empty"], [slot="error"], [slot="loading"]) {
460
532
  display: none;
461
533
  }
@@ -122,7 +122,7 @@
122
122
  --_helix-size-18: 1.125rem;
123
123
  --_helix-size-24: 1.5rem;
124
124
  --_helix-size-32: 2rem;
125
- --_helix-size-44: 2.75rem;
125
+ --_helix-size-42: 2.625rem;
126
126
  --_helix-ms-120: 120ms;
127
127
  --_helix-ms-200: 200ms;
128
128
  --_helix-ms-320: 320ms;
package/dist/tokens.css CHANGED
@@ -453,7 +453,7 @@
453
453
  --helix-text-lg: var(--_helix-size-18);
454
454
  --helix-text-xl: var(--_helix-size-24);
455
455
  --helix-text-2xl: var(--_helix-size-32);
456
- --helix-text-3xl: var(--_helix-size-44);
456
+ --helix-text-3xl: var(--_helix-size-42);
457
457
  --helix-weight-regular: 400;
458
458
  --helix-weight-medium: 500;
459
459
  --helix-weight-semibold: 600;
package/dist/tokens.json CHANGED
@@ -583,7 +583,7 @@
583
583
  {
584
584
  "category": "text",
585
585
  "name": "--helix-text-3xl",
586
- "value": "var(--_helix-size-44)"
586
+ "value": "var(--_helix-size-42)"
587
587
  },
588
588
  {
589
589
  "category": "weight",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-styles",
3
3
  "description": "Design tokens and base layer. Pure CSS, no JavaScript.",
4
- "version": "0.183.0",
4
+ "version": "0.185.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {