@utrecht/component-library-css 1.0.0-alpha.533 → 1.0.0-alpha.535

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
@@ -4562,6 +4562,64 @@ however browsers don't seem to have implemented great looking supixel tweening y
4562
4562
  outline-style: revert;
4563
4563
  }
4564
4564
 
4565
+ /**
4566
+ * @license EUPL-1.2
4567
+ * Copyright (c) 2021 The Knights Who Say NIH! B.V.
4568
+ * Copyright (c) 2021 Gemeente Utrecht
4569
+ */
4570
+ /**
4571
+ * @license EUPL-1.2
4572
+ * Copyright (c) 2021 Gemeente Utrecht
4573
+ * Copyright (c) 2021 Robbert Broersma
4574
+ */
4575
+ .utrecht-data-placeholder {
4576
+ background-color: var(--utrecht-data-placeholder-background-color, currentColor);
4577
+ block-size: 1em;
4578
+ display: inline-block;
4579
+ inline-size: min(100%, var(--utrecht-data-placeholder-max-inline-size));
4580
+ max-inline-size: var(--utrecht-data-placeholder-max-inline-size);
4581
+ min-inline-size: var(--utrecht-data-placeholder-min-inline-size, 10ch);
4582
+ vertical-align: -0.1em;
4583
+ }
4584
+ @media print {
4585
+ .utrecht-data-placeholder {
4586
+ outline-color: currentColor;
4587
+ outline-style: dashed;
4588
+ outline-width: 0.1em;
4589
+ }
4590
+ }
4591
+ @media screen and (prefers-contrast: more) {
4592
+ .utrecht-data-placeholder {
4593
+ background-color: var(--utrecht-data-placeholder-high-contrast-background-color, var(--utrecht-data-placeholder-background-color, currentColor));
4594
+ }
4595
+ }
4596
+ @media screen and (forced-colors: active) {
4597
+ .utrecht-data-placeholder {
4598
+ background-color: GrayText;
4599
+ }
4600
+ }
4601
+
4602
+ .utrecht-data-placeholder--loading {
4603
+ cursor: var(--utrecht-action-busy-cursor, busy);
4604
+ }
4605
+
4606
+ /* class name available only for Storybook */
4607
+ .utrecht-data-placeholder--print {
4608
+ outline-color: currentColor;
4609
+ outline-style: dashed;
4610
+ outline-width: 0.1em;
4611
+ }
4612
+
4613
+ /* class name available only for Storybook */
4614
+ .utrecht-data-placeholder--forced-colors {
4615
+ background-color: GrayText;
4616
+ }
4617
+
4618
+ /* class name available only for Storybook */
4619
+ .utrecht-data-placeholder--high-contrast {
4620
+ cursor: var(--utrecht-action-busy-cursor, busy);
4621
+ }
4622
+
4565
4623
  /**
4566
4624
  * @license EUPL-1.2
4567
4625
  * Copyright (c) 2021 The Knights Who Say NIH! B.V.
@@ -5335,8 +5393,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
5335
5393
  /* stylelint-disable-next-line block-no-empty */
5336
5394
  /* stylelint-disable-next-line block-no-empty */
5337
5395
  .utrecht-table {
5338
- border-collapse: collapse;
5396
+ /* `border-collapse: collapse` results in a broken border for sticky header and sticky footer.
5397
+ * Therefore we need to use `border-collapse: separate` instead.
5398
+ */
5399
+ border-collapse: separate;
5339
5400
  border-color: var(--utrecht-table-border-color, 0);
5401
+ border-spacing: 0;
5340
5402
  border-style: solid;
5341
5403
  border-width: var(--utrecht-table-border-width, 0);
5342
5404
  font-family: var(--utrecht-table-font-family, var(--utrecht-document-font-family));
@@ -5366,6 +5428,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
5366
5428
  .utrecht-table--html-table > thead,
5367
5429
  .utrecht-table__header {
5368
5430
  --_utrecht-table-header-cell-vertical-align: bottom;
5431
+ --_utrecht-table-header-cell-z-index: 8;
5369
5432
  background-color: var(--utrecht-table-header-background-color);
5370
5433
  color: var(--utrecht-table-header-color);
5371
5434
  font-weight: var(--utrecht-table-header-font-weight);
@@ -5373,11 +5436,52 @@ however browsers don't seem to have implemented great looking supixel tweening y
5373
5436
  text-transform: var(--utrecht-table-header-text-transform);
5374
5437
  }
5375
5438
 
5376
- .utrecht-table--html-table > thead > tr:last-of-type,
5377
- .utrecht-table__cell--last-header-row {
5378
- border-block-end-color: var(--utrecht-table-header-border-block-end-color, transparent);
5439
+ .utrecht-table__header--sticky th {
5440
+ background-color: var(--utrecht-table-header-sticky-background-color);
5441
+ color: var(--utrecht-table-header-sticky-color);
5442
+ inset-block-start: 0;
5443
+ position: sticky;
5444
+ }
5445
+ .utrecht-table__header--sticky tr:last-child > th {
5446
+ border-block-end-color: var(--utrecht-table-header-sticky-border-block-end-color, var(--utrecht-table-header-border-block-end-color, transparent));
5379
5447
  border-block-end-style: solid;
5380
- border-block-end-width: var(--utrecht-table-header-border-block-end-width, 0);
5448
+ border-block-end-width: var(--utrecht-table-header-sticky-border-block-end-width, var(--utrecht-table-header-border-block-end-width, 0));
5449
+ }
5450
+
5451
+ .utrecht-table__footer {
5452
+ --_utrecht-table-header-cell-z-index: 5;
5453
+ z-index: 3;
5454
+ }
5455
+
5456
+ .utrecht-table__footer--sticky {
5457
+ background-color: var(--utrecht-table-footer-sticky-background-color, var(--utrecht-table-footer-background-color));
5458
+ color: var(--utrecht-table-footer-sticky-color, var(--utrecht-table-footer-color));
5459
+ inset-block-end: 0;
5460
+ position: sticky;
5461
+ }
5462
+ .utrecht-table__footer--sticky tr:first-child > th,
5463
+ .utrecht-table__footer--sticky tr:first-child > td {
5464
+ border-block-start-color: var(--utrecht-table-header-sticky-border-block-start-color, var(--utrecht-table-header-border-block-start-color, transparent));
5465
+ border-block-start-style: solid;
5466
+ border-block-start-width: var(--utrecht-table-header-sticky-border-block-start-width, var(--utrecht-table-header-border-block-start-width, 0));
5467
+ }
5468
+
5469
+ .utrecht-table--html-table > tbody,
5470
+ .utrecht-table__body {
5471
+ --_utrecht-table-header-cell-z-index: 2;
5472
+ }
5473
+
5474
+ .utrecht-table--fixed {
5475
+ inline-size: fit-content;
5476
+ table-layout: fixed;
5477
+ }
5478
+
5479
+ .utrecht-table--fixed th,
5480
+ .utrecht-table--oneline th,
5481
+ .utrecht-table--oneline td {
5482
+ overflow: hidden;
5483
+ text-overflow: ellipsis;
5484
+ white-space: nowrap;
5381
5485
  }
5382
5486
 
5383
5487
  /* `.utrecht-table--html-table` should not affect nested tables.
@@ -5401,6 +5505,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
5401
5505
  .utrecht-table--html-table > tbody > tr > th,
5402
5506
  .utrecht-table--html-table > tfoot > tr > th,
5403
5507
  .utrecht-table__header-cell {
5508
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
5509
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
5510
+ block-size: var(--utrecht-table-cell-line-height, 1em);
5404
5511
  line-height: var(--utrecht-table-cell-line-height, inherit);
5405
5512
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
5406
5513
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -5412,6 +5519,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
5412
5519
  font-weight: var(--utrecht-table-header-cell-font-weight, bold);
5413
5520
  text-transform: var(--utrecht-table-header-cell-text-transform);
5414
5521
  vertical-align: var(--_utrecht-table-header-cell-vertical-align, top);
5522
+ z-index: var(--_utrecht-table-header-cell-z-index);
5415
5523
  }
5416
5524
 
5417
5525
  .utrecht-table__header-cell--selected {
@@ -5419,11 +5527,30 @@ however browsers don't seem to have implemented great looking supixel tweening y
5419
5527
  color: var(--utrecht-table-cell-selected-color, highlightText);
5420
5528
  }
5421
5529
 
5530
+ .utrecht-table__header-cell--sticky-block {
5531
+ background-color: #eee;
5532
+ color: black;
5533
+ inset-block-start: 0;
5534
+ position: sticky;
5535
+ z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 2);
5536
+ }
5537
+
5538
+ .utrecht-table__header-cell--sticky-inline {
5539
+ background-color: #eee;
5540
+ color: black;
5541
+ inset-inline-start: 0;
5542
+ position: sticky;
5543
+ z-index: calc(var(--_utrecht-table-header-cell-z-index, 0) + 1);
5544
+ }
5545
+
5422
5546
  .utrecht-table--html-table > tr > td,
5423
5547
  .utrecht-table--html-table > thead > tr > td,
5424
5548
  .utrecht-table--html-table > tbody > tr > td,
5425
5549
  .utrecht-table--html-table > tfoot > tr > td,
5426
5550
  .utrecht-table__cell {
5551
+ --utrecht-icon-size: var(--utrecht-table-cell-icon-size);
5552
+ /* In tables `block-size` acts as `min-block-size`, but `min-block-size` is a clearer name for the design token */
5553
+ block-size: var(--utrecht-table-cell-line-height, 1em);
5427
5554
  line-height: var(--utrecht-table-cell-line-height, inherit);
5428
5555
  padding-block-end: var(--utrecht-table-cell-padding-block-end, 0);
5429
5556
  padding-block-start: var(--utrecht-table-cell-padding-block-start, 0);
@@ -5460,8 +5587,9 @@ however browsers don't seem to have implemented great looking supixel tweening y
5460
5587
  /* stylelint-enable no-descending-specificity */
5461
5588
  .utrecht-table__header-cell--numeric-column,
5462
5589
  .utrecht-table__cell--numeric-column {
5590
+ --_utrecht-table-cell-text-align: right;
5463
5591
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
5464
- text-align: right;
5592
+ text-align: var(--_utrecht-table-cell-text-align);
5465
5593
  }
5466
5594
 
5467
5595
  .utrecht-table__cell--numeric-data {
@@ -5478,6 +5606,85 @@ however browsers don't seem to have implemented great looking supixel tweening y
5478
5606
  color: var(--utrecht-table-row-alternate-even-color);
5479
5607
  }
5480
5608
 
5609
+ .utrecht-table__header-cell {
5610
+ --utrecht-button-font-size: inherit;
5611
+ --utrecht-button-font-weight: inherit;
5612
+ --utrecht-button-padding-inline-start: var(--utrecht-table-cell-padding-inline-start);
5613
+ --utrecht-button-padding-inline-end: var(--utrecht-table-cell-padding-inline-end);
5614
+ --utrecht-button-padding-block-start: var(--utrecht-table-cell-padding-block-start);
5615
+ --utrecht-button-padding-block-end: var(--utrecht-table-cell-padding-block-end);
5616
+ --utrecht-button-hover-scale: 1;
5617
+ --utrecht-button-focus-scale: 1;
5618
+ --utrecht-button-min-block-size: 100%;
5619
+ --utrecht-button-min-inline-size: 100%;
5620
+ --utrecht-button-border-color: transparent;
5621
+ --utrecht-button-border-size: 1px;
5622
+ }
5623
+
5624
+ .utrecht-table__header-cell:has(.utrecht-button) {
5625
+ padding-block-end: 0;
5626
+ padding-block-start: 0;
5627
+ padding-inline-end: 0;
5628
+ padding-inline-start: 0;
5629
+ }
5630
+
5631
+ .utrecht-table__header-cell-button {
5632
+ justify-content: var(--_utrecht-table-cell-text-align, start);
5633
+ }
5634
+
5635
+ /* stylelint-disable-next-line block-no-empty */
5636
+ .utrecht-table__data--truncate {
5637
+ display: block;
5638
+ max-inline-size: 100%;
5639
+ overflow: hidden;
5640
+ text-overflow: ellipsis;
5641
+ white-space: nowrap;
5642
+ }
5643
+
5644
+ .utrecht-table__container {
5645
+ max-inline-size: 100%;
5646
+ overflow-inline: scroll;
5647
+ }
5648
+
5649
+ .utrecht-table__header--hidden {
5650
+ block-size: 1px;
5651
+ border: 0 solid silver;
5652
+ clip: rect(1px, 1px, 1px, 1px);
5653
+ clip-path: inset(50%);
5654
+ inline-size: 1px;
5655
+ outline: 1px solid red;
5656
+ overflow: hidden;
5657
+ /* stylelint-disable-next-line property-disallowed-list */
5658
+ padding: 0;
5659
+ position: absolute;
5660
+ white-space: nowrap;
5661
+ }
5662
+
5663
+ .utrecht-table--busy {
5664
+ cursor: var(--utrecht-action-busy-cursor, busy);
5665
+ }
5666
+
5667
+ .utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(odd) {
5668
+ background-color: var(--utrecht-table-row-alternate-odd-background-color);
5669
+ color: var(--utrecht-table-row-alternate-odd-color);
5670
+ }
5671
+ .utrecht-table--alternate-row-color .utrecht-table__body .utrecht-table__row:nth-child(even) {
5672
+ background-color: var(--utrecht-table-row-alternate-even-background-color);
5673
+ color: var(--utrecht-table-row-alternate-even-color);
5674
+ }
5675
+
5676
+ .utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__header-cell,
5677
+ .utrecht-table--row-hover .utrecht-table__body .utrecht-table__row:hover .utrecht-table__cell {
5678
+ background-color: papayawhip;
5679
+ color: maroon;
5680
+ }
5681
+
5682
+ .utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__header-cell,
5683
+ .utrecht-table--row-focus-within .utrecht-table__body .utrecht-table__row:focus-within .utrecht-table__cell {
5684
+ background-color: papayawhip;
5685
+ color: maroon;
5686
+ }
5687
+
5481
5688
  /**
5482
5689
  * @license EUPL-1.2
5483
5690
  * Copyright (c) 2021 Robbert Broersma
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.533",
2
+ "version": "1.0.0-alpha.535",
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": "3763d33cbe7012d05ef9c110a59ea6565d84e380"
29
+ "gitHead": "9a262273ce5029dca33700b49b79b79d9c0eca36"
30
30
  }