@utrecht/component-library-css 1.0.0-alpha.532 → 1.0.0-alpha.534

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/html.css CHANGED
@@ -1365,8 +1365,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
1365
1365
  --utrecht-space-around: 1;
1366
1366
  }
1367
1367
  .utrecht-html table {
1368
- border-collapse: collapse;
1368
+ /* `border-collapse: collapse` results in a broken border for sticky header and sticky footer.
1369
+ * Therefore we need to use `border-collapse: separate` instead.
1370
+ */
1371
+ border-collapse: separate;
1369
1372
  border-color: var(--utrecht-table-border-color, 0);
1373
+ border-spacing: 0;
1370
1374
  border-style: solid;
1371
1375
  border-width: var(--utrecht-table-border-width, 0);
1372
1376
  font-family: var(--utrecht-table-font-family, var(--utrecht-document-font-family));
@@ -1389,13 +1393,20 @@ however browsers don't seem to have implemented great looking supixel tweening y
1389
1393
  }
1390
1394
  .utrecht-html thead {
1391
1395
  --_utrecht-table-header-cell-vertical-align: bottom;
1396
+ --_utrecht-table-header-cell-z-index: 8;
1392
1397
  background-color: var(--utrecht-table-header-background-color);
1393
1398
  color: var(--utrecht-table-header-color);
1394
1399
  font-weight: var(--utrecht-table-header-font-weight);
1395
1400
  page-break-inside: avoid;
1396
1401
  text-transform: var(--utrecht-table-header-text-transform);
1397
1402
  }
1403
+ .utrecht-html tbody {
1404
+ --_utrecht-table-header-cell-z-index: 2;
1405
+ }
1398
1406
  .utrecht-html th {
1407
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
1408
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
1409
+ block-size: var(--utrecht-table-cell-line-height, 1em);
1399
1410
  line-height: var(--utrecht-table-cell-line-height, inherit);
1400
1411
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
1401
1412
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -1407,9 +1418,13 @@ however browsers don't seem to have implemented great looking supixel tweening y
1407
1418
  font-weight: var(--utrecht-table-header-cell-font-weight, bold);
1408
1419
  text-transform: var(--utrecht-table-header-cell-text-transform);
1409
1420
  vertical-align: var(--_utrecht-table-header-cell-vertical-align, top);
1421
+ z-index: var(--_utrecht-table-header-cell-z-index);
1410
1422
  }
1411
1423
  .utrecht-html th,
1412
1424
  .utrecht-html td {
1425
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
1426
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
1427
+ block-size: var(--utrecht-table-cell-line-height, 1em);
1413
1428
  line-height: var(--utrecht-table-cell-line-height, inherit);
1414
1429
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
1415
1430
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -1437,12 +1452,14 @@ however browsers don't seem to have implemented great looking supixel tweening y
1437
1452
  .utrecht-html thead > tr > th.numeric,
1438
1453
  .utrecht-html tfoot > tr > th.numeric,
1439
1454
  .utrecht-html th[scope=column].numeric {
1455
+ --_utrecht-table-cell-text-align: right;
1440
1456
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
1441
- text-align: right;
1457
+ text-align: var(--_utrecht-table-cell-text-align);
1442
1458
  }
1443
1459
  .utrecht-html td.numeric {
1460
+ --_utrecht-table-cell-text-align: right;
1444
1461
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
1445
- text-align: right;
1462
+ text-align: var(--_utrecht-table-cell-text-align);
1446
1463
  font-variant-numeric: lining-nums tabular-nums;
1447
1464
  }
1448
1465
  .utrecht-html table.alternate-row-color > tr:nth-child(even) > td, .utrecht-html table.alternate-row-color > tr:nth-child(even) > th {
package/dist/index.css CHANGED
@@ -4368,14 +4368,6 @@ however browsers don't seem to have implemented great looking supixel tweening y
4368
4368
  padding-inline-start: var(--utrecht-page-footer-padding-inline-start);
4369
4369
  }
4370
4370
 
4371
- .utrecht-page-footer .utrecht-link--telephone {
4372
- color: #fff;
4373
- }
4374
-
4375
- .utrecht-page-footer .utrecht-paragraph {
4376
- color: #fff;
4377
- }
4378
-
4379
4371
  .utrecht-page-footer__address--reset-address {
4380
4372
  /* reset <address> */
4381
4373
  font-style: inherit;
@@ -5343,8 +5335,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
5343
5335
  /* stylelint-disable-next-line block-no-empty */
5344
5336
  /* stylelint-disable-next-line block-no-empty */
5345
5337
  .utrecht-table {
5346
- border-collapse: collapse;
5338
+ /* `border-collapse: collapse` results in a broken border for sticky header and sticky footer.
5339
+ * Therefore we need to use `border-collapse: separate` instead.
5340
+ */
5341
+ border-collapse: separate;
5347
5342
  border-color: var(--utrecht-table-border-color, 0);
5343
+ border-spacing: 0;
5348
5344
  border-style: solid;
5349
5345
  border-width: var(--utrecht-table-border-width, 0);
5350
5346
  font-family: var(--utrecht-table-font-family, var(--utrecht-document-font-family));
@@ -5374,6 +5370,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
5374
5370
  .utrecht-table--html-table > thead,
5375
5371
  .utrecht-table__header {
5376
5372
  --_utrecht-table-header-cell-vertical-align: bottom;
5373
+ --_utrecht-table-header-cell-z-index: 8;
5377
5374
  background-color: var(--utrecht-table-header-background-color);
5378
5375
  color: var(--utrecht-table-header-color);
5379
5376
  font-weight: var(--utrecht-table-header-font-weight);
@@ -5381,11 +5378,52 @@ however browsers don't seem to have implemented great looking supixel tweening y
5381
5378
  text-transform: var(--utrecht-table-header-text-transform);
5382
5379
  }
5383
5380
 
5384
- .utrecht-table--html-table > thead > tr:last-of-type,
5385
- .utrecht-table__cell--last-header-row {
5386
- border-block-end-color: var(--utrecht-table-header-border-block-end-color, transparent);
5381
+ .utrecht-table__header--sticky th {
5382
+ background-color: var(--utrecht-table-header-sticky-background-color);
5383
+ color: var(--utrecht-table-header-sticky-color);
5384
+ inset-block-start: 0;
5385
+ position: sticky;
5386
+ }
5387
+ .utrecht-table__header--sticky tr:last-child > th {
5388
+ border-block-end-color: var(--utrecht-table-header-sticky-border-block-end-color, var(--utrecht-table-header-border-block-end-color, transparent));
5387
5389
  border-block-end-style: solid;
5388
- border-block-end-width: var(--utrecht-table-header-border-block-end-width, 0);
5390
+ border-block-end-width: var(--utrecht-table-header-sticky-border-block-end-width, var(--utrecht-table-header-border-block-end-width, 0));
5391
+ }
5392
+
5393
+ .utrecht-table__footer {
5394
+ --_utrecht-table-header-cell-z-index: 5;
5395
+ z-index: 3;
5396
+ }
5397
+
5398
+ .utrecht-table__footer--sticky {
5399
+ background-color: var(--utrecht-table-footer-sticky-background-color, var(--utrecht-table-footer-background-color));
5400
+ color: var(--utrecht-table-footer-sticky-color, var(--utrecht-table-footer-color));
5401
+ inset-block-end: 0;
5402
+ position: sticky;
5403
+ }
5404
+ .utrecht-table__footer--sticky tr:first-child > th,
5405
+ .utrecht-table__footer--sticky tr:first-child > td {
5406
+ border-block-start-color: var(--utrecht-table-header-sticky-border-block-start-color, var(--utrecht-table-header-border-block-start-color, transparent));
5407
+ border-block-start-style: solid;
5408
+ border-block-start-width: var(--utrecht-table-header-sticky-border-block-start-width, var(--utrecht-table-header-border-block-start-width, 0));
5409
+ }
5410
+
5411
+ .utrecht-table--html-table > tbody,
5412
+ .utrecht-table__body {
5413
+ --_utrecht-table-header-cell-z-index: 2;
5414
+ }
5415
+
5416
+ .utrecht-table--fixed {
5417
+ inline-size: fit-content;
5418
+ table-layout: fixed;
5419
+ }
5420
+
5421
+ .utrecht-table--fixed th,
5422
+ .utrecht-table--oneline th,
5423
+ .utrecht-table--oneline td {
5424
+ overflow: hidden;
5425
+ text-overflow: ellipsis;
5426
+ white-space: nowrap;
5389
5427
  }
5390
5428
 
5391
5429
  /* `.utrecht-table--html-table` should not affect nested tables.
@@ -5409,6 +5447,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
5409
5447
  .utrecht-table--html-table > tbody > tr > th,
5410
5448
  .utrecht-table--html-table > tfoot > tr > th,
5411
5449
  .utrecht-table__header-cell {
5450
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
5451
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
5452
+ block-size: var(--utrecht-table-cell-line-height, 1em);
5412
5453
  line-height: var(--utrecht-table-cell-line-height, inherit);
5413
5454
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
5414
5455
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -5420,6 +5461,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
5420
5461
  font-weight: var(--utrecht-table-header-cell-font-weight, bold);
5421
5462
  text-transform: var(--utrecht-table-header-cell-text-transform);
5422
5463
  vertical-align: var(--_utrecht-table-header-cell-vertical-align, top);
5464
+ z-index: var(--_utrecht-table-header-cell-z-index);
5423
5465
  }
5424
5466
 
5425
5467
  .utrecht-table__header-cell--selected {
@@ -5427,11 +5469,30 @@ however browsers don't seem to have implemented great looking supixel tweening y
5427
5469
  color: var(--utrecht-table-cell-selected-color, highlightText);
5428
5470
  }
5429
5471
 
5472
+ .utrecht-table__header-cell--sticky-block {
5473
+ background-color: #eee;
5474
+ color: black;
5475
+ inset-block-start: 0;
5476
+ position: sticky;
5477
+ z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 2);
5478
+ }
5479
+
5480
+ .utrecht-table__header-cell--sticky-inline {
5481
+ background-color: #eee;
5482
+ color: black;
5483
+ inset-inline-start: 0;
5484
+ position: sticky;
5485
+ z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 1);
5486
+ }
5487
+
5430
5488
  .utrecht-table--html-table > tr > td,
5431
5489
  .utrecht-table--html-table > thead > tr > td,
5432
5490
  .utrecht-table--html-table > tbody > tr > td,
5433
5491
  .utrecht-table--html-table > tfoot > tr > td,
5434
5492
  .utrecht-table__cell {
5493
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
5494
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
5495
+ block-size: var(--utrecht-table-cell-line-height, 1em);
5435
5496
  line-height: var(--utrecht-table-cell-line-height, inherit);
5436
5497
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
5437
5498
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -5468,8 +5529,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
5468
5529
  /* stylelint-enable no-descending-specificity */
5469
5530
  .utrecht-table__header-cell--numeric-column,
5470
5531
  .utrecht-table__cell--numeric-column {
5532
+ --_utrecht-table-cell-text-align: right;
5471
5533
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
5472
- text-align: right;
5534
+ text-align: var(--_utrecht-table-cell-text-align);
5473
5535
  }
5474
5536
 
5475
5537
  .utrecht-table__cell--numeric-data {
@@ -5486,6 +5548,85 @@ however browsers don't seem to have implemented great looking supixel tweening y
5486
5548
  color: var(--utrecht-table-row-alternate-even-color);
5487
5549
  }
5488
5550
 
5551
+ .utrecht-table__header-cell {
5552
+ --utrecht-button-font-size: inherit;
5553
+ --utrecht-button-font-weight: inherit;
5554
+ --utrecht-button-padding-inline-start: var(--utrecht-table-cell-padding-inline-start);
5555
+ --utrecht-button-padding-inline-end: var(--utrecht-table-cell-padding-inline-end);
5556
+ --utrecht-button-padding-block-start: var(--utrecht-table-cell-padding-block-start);
5557
+ --utrecht-button-padding-block-end: var(--utrecht-table-cell-padding-block-end);
5558
+ --utrecht-button-hover-scale: 1;
5559
+ --utrecht-button-focus-scale: 1;
5560
+ --utrecht-button-min-block-size: 100%;
5561
+ --utrecht-button-min-inline-size: 100%;
5562
+ --utrecht-button-border-color: transparent;
5563
+ --utrecht-button-border-size: 1px;
5564
+ }
5565
+
5566
+ .utrecht-table__header-cell:has(.utrecht-button) {
5567
+ padding-block-end: 0;
5568
+ padding-block-start: 0;
5569
+ padding-inline-end: 0;
5570
+ padding-inline-start: 0;
5571
+ }
5572
+
5573
+ .utrecht-table__header-cell-button {
5574
+ justify-content: var(--_utrecht-table-cell-text-align, start);
5575
+ }
5576
+
5577
+ /* stylelint-disable-next-line block-no-empty */
5578
+ .utrecht-table__data--truncate {
5579
+ display: block;
5580
+ max-inline-size: 100%;
5581
+ overflow: hidden;
5582
+ text-overflow: ellipsis;
5583
+ white-space: nowrap;
5584
+ }
5585
+
5586
+ .utrecht-table__container {
5587
+ max-inline-size: 100%;
5588
+ overflow-inline: scroll;
5589
+ }
5590
+
5591
+ .utrecht-table__header--hidden {
5592
+ block-size: 1px;
5593
+ border: 0 solid silver;
5594
+ clip: rect(1px, 1px, 1px, 1px);
5595
+ clip-path: inset(50%);
5596
+ inline-size: 1px;
5597
+ outline: 1px solid red;
5598
+ overflow: hidden;
5599
+ /* stylelint-disable-next-line property-disallowed-list */
5600
+ padding: 0;
5601
+ position: absolute;
5602
+ white-space: nowrap;
5603
+ }
5604
+
5605
+ .utrecht-table--busy {
5606
+ cursor: var(--utrecht-action-busy-cursor, busy);
5607
+ }
5608
+
5609
+ .utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(odd) {
5610
+ background-color: var(--utrecht-table-row-alternate-odd-background-color);
5611
+ color: var(--utrecht-table-row-alternate-odd-color);
5612
+ }
5613
+ .utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(even) {
5614
+ background-color: var(--utrecht-table-row-alternate-even-background-color);
5615
+ color: var(--utrecht-table-row-alternate-even-color);
5616
+ }
5617
+
5618
+ .utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__header-cell,
5619
+ .utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__cell {
5620
+ background-color: papayawhip;
5621
+ color: maroon;
5622
+ }
5623
+
5624
+ .utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__header-cell,
5625
+ .utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__cell {
5626
+ background-color: papayawhip;
5627
+ color: maroon;
5628
+ }
5629
+
5489
5630
  /**
5490
5631
  * @license EUPL-1.2
5491
5632
  * Copyright (c) 2021 Robbert Broersma
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.532",
2
+ "version": "1.0.0-alpha.534",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -26,5 +26,5 @@
26
26
  "clean": "rimraf dist/"
27
27
  },
28
28
  "main": "dist/index.css",
29
- "gitHead": "46ae469ab508c5ff04cf4ca0c5c373c1b3151d49"
29
+ "gitHead": "c3bb0bc7cd9fc4dc420dc12f66eb52ac9301c383"
30
30
  }