@utrecht/component-library-css 1.0.0-alpha.303 → 1.0.0-alpha.306

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
@@ -418,6 +418,7 @@
418
418
  --utrecht-button-border-bottom-width,
419
419
  var(--utrecht-button-border-width, 0)
420
420
  );
421
+ align-items: center;
421
422
  background-color: var(--_utrecht-button-background-color);
422
423
  border-color: var(--_utrecht-button-border-color);
423
424
  border-bottom-color: var(--_utrecht-button-border-bottom-color);
@@ -425,11 +426,14 @@
425
426
  border-style: solid;
426
427
  border-width: var(--_utrecht-button-border-width);
427
428
  border-bottom-width: var(--_utrecht-button-border-bottom-width);
429
+ box-sizing: border-box;
428
430
  color: var(--utrecht-button-color);
431
+ display: inline-flex;
429
432
  font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
430
433
  font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
431
434
  font-weight: var(--utrecht-button-font-weight);
432
435
  inline-size: var(--utrecht-button-inline-size, auto);
436
+ justify-content: center;
433
437
  letter-spacing: var(--utrecht-button-letter-spacing);
434
438
  line-height: var(--utrecht-button-line-height);
435
439
  min-block-size: var(--utrecht-button-min-block-size, 44px);
package/dist/index.css CHANGED
@@ -432,6 +432,7 @@ ol.utrecht-breadcrumb__list {
432
432
  --utrecht-button-border-bottom-width,
433
433
  var(--utrecht-button-border-width, 0)
434
434
  );
435
+ align-items: center;
435
436
  background-color: var(--_utrecht-button-background-color);
436
437
  border-color: var(--_utrecht-button-border-color);
437
438
  border-bottom-color: var(--_utrecht-button-border-bottom-color);
@@ -439,11 +440,14 @@ ol.utrecht-breadcrumb__list {
439
440
  border-style: solid;
440
441
  border-width: var(--_utrecht-button-border-width);
441
442
  border-bottom-width: var(--_utrecht-button-border-bottom-width);
443
+ box-sizing: border-box;
442
444
  color: var(--utrecht-button-color);
445
+ display: inline-flex;
443
446
  font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
444
447
  font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
445
448
  font-weight: var(--utrecht-button-font-weight);
446
449
  inline-size: var(--utrecht-button-inline-size, auto);
450
+ justify-content: center;
447
451
  letter-spacing: var(--utrecht-button-letter-spacing);
448
452
  line-height: var(--utrecht-button-line-height);
449
453
  min-block-size: var(--utrecht-button-min-block-size, 44px);
@@ -697,6 +701,7 @@ ol.utrecht-breadcrumb__list {
697
701
  --utrecht-button-border-bottom-width,
698
702
  var(--utrecht-button-border-width, 0)
699
703
  );
704
+ align-items: center;
700
705
  background-color: var(--_utrecht-button-background-color);
701
706
  border-color: var(--_utrecht-button-border-color);
702
707
  border-bottom-color: var(--_utrecht-button-border-bottom-color);
@@ -704,11 +709,14 @@ ol.utrecht-breadcrumb__list {
704
709
  border-style: solid;
705
710
  border-width: var(--_utrecht-button-border-width);
706
711
  border-bottom-width: var(--_utrecht-button-border-bottom-width);
712
+ box-sizing: border-box;
707
713
  color: var(--utrecht-button-color);
714
+ display: inline-flex;
708
715
  font-family: var(--utrecht-button-font-family, var(--utrecht-document-font-family));
709
716
  font-size: var(--utrecht-button-font-size, var(--utrecht-document-font-family));
710
717
  font-weight: var(--utrecht-button-font-weight);
711
718
  inline-size: var(--utrecht-button-inline-size, auto);
719
+ justify-content: center;
712
720
  letter-spacing: var(--utrecht-button-letter-spacing);
713
721
  line-height: var(--utrecht-button-line-height);
714
722
  min-block-size: var(--utrecht-button-min-block-size, 44px);
@@ -745,18 +753,18 @@ ol.utrecht-breadcrumb__list {
745
753
  outline-width: var(--utrecht-focus-outline-width, 0);
746
754
  }
747
755
 
748
- .utrecht-button-link--html-button:hover {
756
+ .utrecht-button-link--html-a:hover {
749
757
  background-color: var(--_utrecht-button-hover-background-color);
750
758
  border-color: var(--_utrecht-button-hover-border-color);
751
759
  color: var(--_utrecht-button-hover-color);
752
760
  transform: scale(var(--utrecht-button-focus-transform-scale, 1));
753
761
  }
754
- .utrecht-button-link--html-button:focus {
762
+ .utrecht-button-link--html-a:focus {
755
763
  background-color: var(--_utrecht-button-focus-background-color);
756
764
  border-color: var(--_utrecht-button-focus-border-color);
757
765
  color: var(--_utrecht-button-focus-color);
758
766
  }
759
- .utrecht-button-link--html-button:focus-visible {
767
+ .utrecht-button-link--html-a:focus-visible {
760
768
  /* the pseudo-class for `:focus-visible` is implemented via the mixin */
761
769
  box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
762
770
  outline-color: var(--utrecht-focus-outline-color, transparent);
@@ -765,6 +773,63 @@ ol.utrecht-breadcrumb__list {
765
773
  outline-width: var(--utrecht-focus-outline-width, 0);
766
774
  }
767
775
 
776
+ .utrecht-button-link--primary-action {
777
+ --utrecht-button-active-background-color: var(--utrecht-button-primary-action-active-background-color);
778
+ --utrecht-button-active-border-color: var(--utrecht-button-primary-action-active-border-color);
779
+ --utrecht-button-active-color: var(--utrecht-button-primary-action-active-color);
780
+ --utrecht-button-background-color: var(--utrecht-button-primary-action-background-color);
781
+ --utrecht-button-border-color: var(--utrecht-button-primary-action-border-color);
782
+ --utrecht-button-border-width: var(--utrecht-button-primary-action-border-width);
783
+ --utrecht-button-color: var(--utrecht-button-primary-action-color);
784
+ --utrecht-button-disabled-background-color: var(--utrecht-button-primary-action-disabled-background-color);
785
+ --utrecht-button-disabled-border-color: var(--utrecht-button-primary-action-disabled-border-color);
786
+ --utrecht-button-disabled-color: var(--utrecht-button-primary-action-disabled-color);
787
+ --utrecht-button-focus-background-color: var(--utrecht-button-primary-action-focus-background-color);
788
+ --utrecht-button-focus-border-color: var(--utrecht-button-primary-action-focus-border-color);
789
+ --utrecht-button-focus-color: var(--utrecht-button-primary-action-focus-color);
790
+ --utrecht-button-hover-background-color: var(--utrecht-button-primary-action-hover-background-color);
791
+ --utrecht-button-hover-border-color: var(--utrecht-button-primary-action-hover-border-color);
792
+ --utrecht-button-hover-color: var(--utrecht-button-primary-action-hover-color);
793
+ }
794
+
795
+ .utrecht-button-link--secondary-action {
796
+ --utrecht-button-active-background-color: var(--utrecht-button-secondary-action-active-background-color);
797
+ --utrecht-button-active-border-color: var(--utrecht-button-secondary-action-active-border-color);
798
+ --utrecht-button-active-color: var(--utrecht-button-secondary-action-active-color);
799
+ --utrecht-button-background-color: var(--utrecht-button-secondary-action-background-color);
800
+ --utrecht-button-border-color: var(--utrecht-button-secondary-action-border-color);
801
+ --utrecht-button-border-width: var(--utrecht-button-secondary-action-border-width);
802
+ --utrecht-button-color: var(--utrecht-button-secondary-action-color);
803
+ --utrecht-button-disabled-background-color: var(--utrecht-button-secondary-action-disabled-background-color);
804
+ --utrecht-button-disabled-border-color: var(--utrecht-button-secondary-action-disabled-border-color);
805
+ --utrecht-button-disabled-color: var(--utrecht-button-secondary-action-disabled-color);
806
+ --utrecht-button-focus-background-color: var(--utrecht-button-secondary-action-focus-background-color);
807
+ --utrecht-button-focus-border-color: var(--utrecht-button-secondary-action-focus-border-color);
808
+ --utrecht-button-focus-color: var(--utrecht-button-secondary-action-focus-color);
809
+ --utrecht-button-hover-background-color: var(--utrecht-button-secondary-action-hover-background-color);
810
+ --utrecht-button-hover-border-color: var(--utrecht-button-secondary-action-hover-border-color);
811
+ --utrecht-button-hover-color: var(--utrecht-button-secondary-action-hover-color);
812
+ }
813
+
814
+ .utrecht-button-link--subtle {
815
+ --utrecht-button-active-background-color: var(--utrecht-button-subtle-active-background-color);
816
+ --utrecht-button-active-border-color: var(--utrecht-button-subtle-active-border-color);
817
+ --utrecht-button-active-color: var(--utrecht-button-subtle-active-color);
818
+ --utrecht-button-background-color: var(--utrecht-button-subtle-background-color);
819
+ --utrecht-button-border-color: var(--utrecht-button-subtle-border-color);
820
+ --utrecht-button-border-width: var(--utrecht-button-subtle-border-width);
821
+ --utrecht-button-color: var(--utrecht-button-subtle-color);
822
+ --utrecht-button-disabled-background-color: var(--utrecht-button-subtle-disabled-background-color);
823
+ --utrecht-button-disabled-border-color: var(--utrecht-button-subtle-disabled-border-color);
824
+ --utrecht-button-disabled-color: var(--utrecht-button-subtle-disabled-color);
825
+ --utrecht-button-focus-background-color: var(--utrecht-button-subtle-focus-background-color);
826
+ --utrecht-button-focus-border-color: var(--utrecht-button-subtle-focus-border-color);
827
+ --utrecht-button-focus-color: var(--utrecht-button-subtle-focus-color);
828
+ --utrecht-button-hover-background-color: var(--utrecht-button-subtle-hover-background-color);
829
+ --utrecht-button-hover-border-color: var(--utrecht-button-subtle-hover-border-color);
830
+ --utrecht-button-hover-color: var(--utrecht-button-subtle-hover-color);
831
+ }
832
+
768
833
  /**
769
834
  * @license EUPL-1.2
770
835
  * Copyright (c) 2021 Robbert Broersma
@@ -1215,6 +1280,69 @@ ol.utrecht-breadcrumb__list {
1215
1280
  color: var(--utrecht-custom-radio-button-checked-color, var(--utrecht-custom-radio-button-color));
1216
1281
  }
1217
1282
 
1283
+ /**
1284
+ * @license EUPL-1.2
1285
+ * Copyright (c) 2021-2022 Gemeente Utrecht
1286
+ * Copyright (c) 2021-2022 Frameless B.V.
1287
+ */
1288
+ /**
1289
+ * @license EUPL-1.2
1290
+ * Copyright (c) 2021-2022 Gemeente Utrecht
1291
+ * Copyright (c) 2021-2022 Frameless B.V.
1292
+ */
1293
+ /* stylelint-disable-next-line block-no-empty */
1294
+ .utrecht-data-list {
1295
+ /* also set `margin-block` to reset browser styling of <dl> */
1296
+ display: block;
1297
+ margin-block-end: calc(var(--utrecht-distance, 0) * var(--utrecht-data-list-margin-block-end));
1298
+ margin-block-start: calc(var(--utrecht-distance, 0) * var(--utrecht-data-list-margin-block-start));
1299
+ }
1300
+
1301
+ .utrecht-data-list__item-key {
1302
+ color: var(--utrecht-data-list-item-key-color);
1303
+ font-size: var(--utrecht-data-list-item-key-font-size);
1304
+ font-weight: var(--utrecht-data-list-item-key-font-weight);
1305
+ grid-area: label;
1306
+ line-height: var(--utrecht-data-list-item-key-line-height);
1307
+ }
1308
+
1309
+ .utrecht-data-list__item-value {
1310
+ /* configure `min-block-size` in case the value is empty */
1311
+ color: var(--utrecht-data-list-label-color);
1312
+ font-size: var(--utrecht-data-list-item-value-font-size);
1313
+ font-weight: var(--utrecht-data-list-item-value-font-weight);
1314
+ grid-area: value;
1315
+ line-height: var(--utrecht-data-list-label-line-height);
1316
+ min-block-size: var(--utrecht-data-list-label-line-height);
1317
+ }
1318
+
1319
+ .utrecht-data-list__actions--html-dd,
1320
+ .utrecht-data-list__item-value--html-dd {
1321
+ /* reset browser styling of <dd> */
1322
+ margin-inline-start: 0;
1323
+ }
1324
+
1325
+ .utrecht-data-list__item-value--multiline {
1326
+ white-space: pre-line;
1327
+ }
1328
+
1329
+ .utrecht-data-list--rows .utrecht-data-list__actions {
1330
+ align-items: last baseline;
1331
+ display: flex;
1332
+ justify-content: flex-end;
1333
+ }
1334
+ .utrecht-data-list--rows .utrecht-data-list__item {
1335
+ display: grid;
1336
+ grid-template-areas: "label actions" "value value";
1337
+ margin-block-start: var(--utrecht-data-list-rows-item-margin-block-start);
1338
+ }
1339
+ .utrecht-data-list--rows .utrecht-data-list__item:first-of-type {
1340
+ margin-block-start: 0;
1341
+ }
1342
+ .utrecht-data-list--rows .utrecht-data-list__item-value {
1343
+ margin-block-start: var(--utrecht-data-list-rows-item-value-margin-block-start);
1344
+ }
1345
+
1218
1346
  /**
1219
1347
  * @license EUPL-1.2
1220
1348
  * Copyright (c) 2021 Robbert Broersma
@@ -1955,6 +2083,12 @@ however browsers don't seem to have implemented great looking supixel tweening y
1955
2083
  /* stylelint-disable-next-line block-no-empty */
1956
2084
  /* stylelint-disable-next-line block-no-empty */
1957
2085
  /* stylelint-disable-next-line block-no-empty */
2086
+ /**
2087
+ * @license EUPL-1.2
2088
+ * Copyright (c) 2021 Gemeente Utrecht
2089
+ * Copyright (c) 2021 Robbert Broersma
2090
+ */
2091
+ /* stylelint-disable-next-line block-no-empty */
1958
2092
  .utrecht-link-button {
1959
2093
  color: var(--utrecht-link-color, blue);
1960
2094
  text-decoration: var(--utrecht-link-text-decoration, underline);
@@ -1978,13 +2112,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
1978
2112
  user-select: none;
1979
2113
  }
1980
2114
 
1981
- .utrecht-link-button--html-button {
1982
- background-color: transparent;
1983
- /* reset <button> styling */
1984
- border-width: 0;
1985
- }
1986
-
1987
- .utrecht-link-button--hover {
2115
+ .utrecht-link-button--hover, .utrecht-link-button--html-button:hover {
1988
2116
  color: var(--utrecht-link-hover-color, var(--utrecht-link-color));
1989
2117
  text-decoration: var(--utrecht-link-hover-text-decoration, var(--utrecht-link-text-decoration, underline));
1990
2118
  text-decoration-skip: none;
@@ -1992,11 +2120,11 @@ however browsers don't seem to have implemented great looking supixel tweening y
1992
2120
  text-decoration-thickness: max(var(--utrecht-link-hover-text-decoration-thickness, var(--utrecht-link-text-decoration-thickness)), 1px);
1993
2121
  }
1994
2122
 
1995
- .utrecht-link-button--active {
2123
+ .utrecht-link-button--active, .utrecht-link-button--html-button:active {
1996
2124
  color: var(--utrecht-link-active-color, var(--utrecht-link-color));
1997
2125
  }
1998
2126
 
1999
- .utrecht-link-button--focus {
2127
+ .utrecht-link-button--focus, .utrecht-link-button--html-button:focus {
2000
2128
  background-color: var(--utrecht-link-focus-background-color, transparent);
2001
2129
  color: var(--utrecht-link-focus-color, var(--utrecht-link-color));
2002
2130
  text-decoration: var(--utrecht-link-focus-text-decoration, var(--utrecht-link-text-decoration, underline));
@@ -2005,7 +2133,7 @@ however browsers don't seem to have implemented great looking supixel tweening y
2005
2133
  text-decoration-thickness: max(var(--utrecht-link-focus-text-decoration-thickness, var(--utrecht-link-text-decoration-thickness)), 1px);
2006
2134
  }
2007
2135
 
2008
- .utrecht-link-button--focus-visible {
2136
+ .utrecht-link-button--focus-visible, .utrecht-link-button--html-button:focus-visible {
2009
2137
  box-shadow: 0 0 0 var(--utrecht-focus-box-shadow-spread-radius, 0) var(--utrecht-focus-box-shadow-color, transparent);
2010
2138
  outline-color: var(--utrecht-focus-outline-color, transparent);
2011
2139
  outline-offset: var(--utrecht-focus-outline-offset, 0);
@@ -2013,6 +2141,20 @@ however browsers don't seem to have implemented great looking supixel tweening y
2013
2141
  outline-width: var(--utrecht-focus-outline-width, 0);
2014
2142
  }
2015
2143
 
2144
+ .utrecht-link-button--inline {
2145
+ min-block-size: auto;
2146
+ min-inline-size: auto;
2147
+ padding-block-end: 0;
2148
+ padding-block-start: 0;
2149
+ padding-inline-end: 0;
2150
+ padding-inline-start: 0;
2151
+ }
2152
+
2153
+ .utrecht-link-button--html-button {
2154
+ background-color: transparent;
2155
+ /* reset <button> styling */
2156
+ border-width: 0;
2157
+ }
2016
2158
  /**
2017
2159
  * @license EUPL-1.2
2018
2160
  * Copyright (c) 2021 Gemeente Utrecht
@@ -3610,3 +3752,25 @@ however browsers don't seem to have implemented great looking supixel tweening y
3610
3752
  .utrecht-url {
3611
3753
  font-variant-ligatures: none;
3612
3754
  }
3755
+
3756
+ /**
3757
+ * @license EUPL-1.2
3758
+ * Copyright (c) 2020-2022 Gemeente Utrecht
3759
+ * Copyright (c) 2020-2022 Frameless B.V.
3760
+ */
3761
+ /**
3762
+ * @license EUPL-1.2
3763
+ * Copyright (c) 2020-2022 Gemeente Utrecht
3764
+ * Copyright (c) 2020-2022 Frameless B.V.
3765
+ */
3766
+ .utrecht-value-number {
3767
+ font-variant-numeric: lining-nums tabular-nums;
3768
+ }
3769
+
3770
+ .utrecht-value-number--positive {
3771
+ color: var(--utrecht-value-number-positive-color);
3772
+ }
3773
+
3774
+ .utrecht-value-number--negative {
3775
+ color: var(--utrecht-value-number-negative-color);
3776
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.303",
2
+ "version": "1.0.0-alpha.306",
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",
@@ -16,7 +16,7 @@
16
16
  "url": "git@github.com:nl-design-system/utrecht.git"
17
17
  },
18
18
  "devDependencies": {
19
- "@utrecht/design-tokens": "1.0.0-alpha.296",
19
+ "@utrecht/design-tokens": "1.0.0-alpha.299",
20
20
  "node-sass-package-importer": "5.3.2",
21
21
  "rimraf": "3.0.2",
22
22
  "sass": "1.54.0"
@@ -27,5 +27,5 @@
27
27
  "clean": "rimraf dist/"
28
28
  },
29
29
  "main": "dist/index.css",
30
- "gitHead": "f2853cf7775dc7db3c4ddd39f353e26e0745a91e"
30
+ "gitHead": "ae12cf739f67e52d19785f621a618dc9a1edffdc"
31
31
  }
package/src/index.scss CHANGED
@@ -29,6 +29,7 @@
29
29
  @import "../../../components/checkbox/css";
30
30
  @import "../../../components/custom-checkbox/css";
31
31
  @import "../../../components/custom-radio-button/css";
32
+ @import "../../../components/data-list/css";
32
33
  @import "../../../components/digid-button/css";
33
34
  @import "../../../components/document/css";
34
35
  @import "../../../components/emphasis/css";
@@ -76,3 +77,4 @@
76
77
  @import "../../../components/textbox/css";
77
78
  @import "../../../components/unordered-list/css";
78
79
  @import "../../../components/url/css";
80
+ @import "../../../components/value-number/css";