@rijkshuisstijl-community/components-css 8.0.1 → 9.0.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/index.scss CHANGED
@@ -13,6 +13,7 @@
13
13
  @use "src/card-as-link/index" as cardAsLink;
14
14
  @use "src/card/index" as card;
15
15
  @use "src/checkbox/index" as checkbox;
16
+ @use "src/checkbox-group/index" as checkboxGroup;
16
17
  @use "src/code-input/index" as codeInput;
17
18
  @use "src/code-input-group/index" as codeInputGroup;
18
19
  @use "src/data-badge-button/index" as dataBadgeButton;
@@ -41,6 +42,7 @@
41
42
  @use "src/pre-heading/index" as preHeading;
42
43
  @use "src/radio/index" as radio;
43
44
  @use "src/radio-group/index" as radioGroup;
45
+ @use "src/rounded-corner/index" as roundedCorner;
44
46
  @use "src/select/index" as select;
45
47
  @use "src/separator/index" as separator;
46
48
  @use "src/side-nav/index" as sideNav;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rijkshuisstijl-community/components-css",
3
- "version": "8.0.1",
3
+ "version": "9.0.0",
4
4
  "type": "module",
5
5
  "author": "Community for NL Design System",
6
6
  "description": "CSS Components for a design system based on the NL Design System architecture",
@@ -1,8 +1,8 @@
1
1
  // if needed add styles here for the Article components.
2
2
 
3
3
  .utrecht-article {
4
- font-family: var(--rhc-font-family-primary, inherit);
5
- font-size: var(--rhc-font-size-xs-desktop, inherit);
6
- font-weight: var(--rhc-font-weight-regular, inherit);
7
- line-height: var(--rhc-line-height-md, inherit);
4
+ font-family: var(--rhc-text-font-family-default, inherit);
5
+ font-size: var(--rhc-text-font-size-max-md, inherit);
6
+ font-weight: var(--rhc-text-font-weight-regular, inherit);
7
+ line-height: var(--rhc-text-line-height-md, inherit);
8
8
  }
@@ -5,10 +5,10 @@
5
5
  column-gap: var(--rhc-card-column-gap, 16px);
6
6
  display: inline-flex;
7
7
  flex-direction: column;
8
- font-family: var(--rhc-font-family-primary, inherit);
9
- font-size: var(--rhc-font-size-xs-desktop, inherit);
8
+ font-family: var(--rhc-text-font-family-default, inherit);
9
+ font-size: var(--rhc-text-font-size-max-md, inherit);
10
10
  inline-size: var(--rhc-card-inline-size, 328px);
11
- line-height: var(--rhc-line-height-md, inherit);
11
+ line-height: var(--rhc-text-line-height-md, inherit);
12
12
  position: relative;
13
13
  text-decoration: none;
14
14
  }
@@ -63,7 +63,7 @@
63
63
  @mixin rhc-card__subheading {
64
64
  align-items: center;
65
65
  display: flex;
66
- font-size: var(--rhc-font-size-lg);
66
+ font-size: var(--rhc-text-font-size-lg);
67
67
  text-decoration: none;
68
68
  }
69
69
 
@@ -5,10 +5,10 @@
5
5
  column-gap: var(--rhc-card-as-link-column-gap, 16px);
6
6
  display: inline-flex;
7
7
  flex-direction: column;
8
- font-family: var(--rhc-font-family-primary, inherit);
9
- font-size: var(--rhc-font-size-xs-desktop, inherit);
8
+ font-family: var(--rhc-text-font-family-default, inherit);
9
+ font-size: var(--rhc-text-font-size-max-md, inherit);
10
10
  inline-size: 100%;
11
- line-height: var(--rhc-line-height-md, inherit);
11
+ line-height: var(--rhc-text-line-height-md, inherit);
12
12
  position: relative;
13
13
  text-decoration: none;
14
14
  }
@@ -24,11 +24,3 @@
24
24
  .utrecht-checkbox--custom.utrecht-checkbox--html-input[aria-invalid="true"]:hover {
25
25
  @include mixin.utrecht-checkbox--invalid;
26
26
  }
27
-
28
- .rhc-checkbox-group {
29
- display: flex;
30
- flex-direction: column;
31
- padding-block-end: var(--rhc-checkbox-group-padding-block-end);
32
- padding-block-start: var(--rhc-checkbox-group-padding-block-start);
33
- row-gap: var(--rhc-checkbox-group-row-gap);
34
- }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .rhc-checkbox-group {
7
+ display: flex;
8
+ flex-direction: column;
9
+ padding-block-end: var(--rhc-checkbox-group-padding-block-end);
10
+ padding-block-start: var(--rhc-checkbox-group-padding-block-start);
11
+ row-gap: var(--rhc-checkbox-group-row-gap);
12
+ }
@@ -10,15 +10,12 @@
10
10
  border-start-start-radius: var(--utrecht-figure-img-border-start-start-radius);
11
11
  }
12
12
 
13
- .utrecht-figure {
14
- font-size: var(--rhc-font-size-xs-desktop, inherit);
15
- line-height: var(--rhc-line-height-md, inherit);
13
+ /* Inline behaviour for rounded-corner to fix cornering on block elements */
14
+ .utrecht-figure .rhc-rounded-corner {
15
+ display: inline-block;
16
+ vertical-align: top;
16
17
  }
17
18
 
18
- .utrecht-figure__caption {
19
- border-inline-start: var(--utrecht-figure-caption-border-width) solid var(--utrecht-figure-caption-border-color);
20
- font-family: var(--rhc-font-family-primary, inherit);
21
- padding-block-end: var(--utrecht-figure-caption-padding-block-end);
22
- padding-block-start: var(--utrecht-figure-caption-padding-block-start);
23
- padding-inline-start: var(--utrecht-figure-caption-padding-inline-start);
19
+ .utrecht-figure .rhc-rounded-corner img {
20
+ border-radius: inherit;
24
21
  }
@@ -1,8 +1,8 @@
1
1
  .rhc-file-input {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- font-family: var(--rhc-font-family-primary, inherit);
5
- line-height: var(--rhc-line-height-md, inherit);
4
+ font-family: var(--rhc-text-font-family-default, inherit);
5
+ line-height: var(--rhc-text-line-height-md, inherit);
6
6
  row-gap: var(--rhc-file-input-row-gap);
7
7
  }
8
8
 
@@ -75,7 +75,7 @@
75
75
  .rhc-page-footer__section,
76
76
  .rhc-page-footer__title {
77
77
  break-inside: avoid;
78
- line-height: var(--rhc-line-height-md, inherit);
78
+ line-height: var(--rhc-text-line-height-md, inherit);
79
79
  padding-block-end: var(--rhc-page-footer-padding-block-end);
80
80
  }
81
81
 
@@ -134,7 +134,7 @@
134
134
  }
135
135
 
136
136
  .rhc-page-prefooter__content {
137
- font-family: var(--rhc-font-family-secondary);
137
+ font-family: var(--rhc-text-font-family-serif);
138
138
  inset: 0% 50% auto auto;
139
139
  line-height: 100%;
140
140
  margin-inline-end: -2rem;
@@ -1,5 +1,5 @@
1
1
  .rhc-form-label--checkbox .utrecht-form-field__label--checkbox {
2
- --utrecht-form-label-font-weight: var(--rhc-font-weight-regular, 400);
2
+ --utrecht-form-label-font-weight: var(--rhc-text-font-weight-regular, 400);
3
3
 
4
4
  align-items: flex-start;
5
5
  display: flex;
@@ -3,8 +3,8 @@
3
3
  * Copyright (c) 2021 Community for NL Design System
4
4
  */
5
5
  .utrecht-form-field {
6
- font-size: var(--rhc-font-size-xs-desktop, inherit);
7
- line-height: var(--rhc-line-height-md, inherit);
6
+ font-size: var(--rhc-text-font-size-max-md, inherit);
7
+ line-height: var(--rhc-text-line-height-md, inherit);
8
8
  }
9
9
 
10
10
  .utrecht-rich-text .utrecht-form-field {
@@ -15,3 +15,7 @@
15
15
  margin-block-end: var(--rhc-space-100, 0.5rem);
16
16
  margin-block-start: var(--rhc-space-100, 0.5rem);
17
17
  }
18
+
19
+ .utrecht-form-field__description {
20
+ --utrecht-form-field-description-margin-block-start: calc(-1 * var(--rhc-space-100));
21
+ }
@@ -13,10 +13,10 @@
13
13
 
14
14
  .utrecht-link-list__item {
15
15
  display: inline-flex;
16
- font-family: var(--rhc-font-family-primary, inherit);
17
- font-size: var(--rhc-font-size-xs-desktop, inherit);
16
+ font-family: var(--rhc-text-font-family-default, inherit);
17
+ font-size: var(--rhc-text-font-size-max-md, inherit);
18
18
  }
19
19
 
20
20
  .utrecht-link-list__item .utrecht-link:any-link {
21
- line-height: var(--rhc-line-height-md, inherit);
21
+ line-height: var(--rhc-text-line-height-md, inherit);
22
22
  }
@@ -68,14 +68,14 @@
68
68
  margin-block: 0;
69
69
  }
70
70
  @mixin rhc-message-list__item__description {
71
- --nl-paragraph-color: var(--rhc-color-foreground-subdued, inherit);
71
+ --nl-paragraph-color: var(--rhc-color-foreground-subtle, inherit);
72
72
  --nl-paragraph-font-size: var(--rhc-message-list-item-content-font-size);
73
73
 
74
74
  grid-area: description;
75
75
  margin-block: 0;
76
76
  }
77
77
  @mixin rhc-message-list__item__meta-data {
78
- --nl-paragraph-color: var(--rhc-color-foreground-subdued, inherit);
78
+ --nl-paragraph-color: var(--rhc-color-foreground-subtle, inherit);
79
79
  --nl-paragraph-font-size: var(--rhc-message-list-item-content-font-size);
80
80
 
81
81
  grid-area: meta;
@@ -85,5 +85,5 @@
85
85
  --utrecht-icon-color: var(--rhc-color-foreground-lint, inherit);
86
86
 
87
87
  grid-area: icon;
88
- min-block-size: var(--rhc-message-list-item-icon-font-size);
88
+ min-block-size: var(--rhc-message-list-item-icon-size);
89
89
  }
@@ -16,7 +16,7 @@
16
16
  column-gap: var(--rhc-nav-bar-content-column-gap);
17
17
  display: flex;
18
18
  flex: 1;
19
- font-family: var(--rhc-font-family-primary, inherit);
19
+ font-family: var(--rhc-text-font-family-default, inherit);
20
20
  justify-content: space-between;
21
21
  max-inline-size: var(--rhc-nav-bar-max-inline-size);
22
22
  row-gap: var(--rhc-nav-bar-content-row-gap);
@@ -16,14 +16,14 @@
16
16
  }
17
17
  @mixin rhc-navigation-list__item {
18
18
  align-items: center;
19
- background-color: var(--rhc-navigation-list-item-background-color, var(--rhc-color-canvas));
19
+ background-color: var(--rhc-navigation-list-item-background-color, var(--rhc-color-bg-document));
20
20
  border-block-end-color: var(--rhc-navigation-list-item-border-color, var(--rhc-color-grijs-300));
21
21
  border-block-end-style: solid;
22
22
  border-block-end-width: var(--rhc-navigation-list-item-border-width, var(--rhc-border-width-default));
23
- color: var(--rhc-navigation-list-item-color, var(--rhc-color-foreground-subdued));
23
+ color: var(--rhc-navigation-list-item-color, var(--rhc-color-foreground-subtle));
24
24
  column-gap: var(--rhc-navigation-list-item-column-gap, var(--rhc-space-100));
25
25
  display: flex;
26
- min-block-size: var(--rhc-navigation-list-item-min-height, var(--rhc-size-target));
26
+ min-block-size: var(--rhc-navigation-list-item-min-height, var(--rhc-size-pointer-target));
27
27
  padding-block: var(--rhc-navigation-list-item-padding-block, var(--rhc-space-100));
28
28
  padding-inline: var(--rhc-navigation-list-item-padding-inline, var(--rhc-space-200));
29
29
  position: relative;
@@ -43,12 +43,12 @@
43
43
  }
44
44
 
45
45
  @mixin rhc-navigation-list__item__start-icon {
46
- --utrecht-icon-color: var(--rhc-navigation-list-icon-color, var(--rhc-color-foreground-subdued));
46
+ --utrecht-icon-color: var(--rhc-navigation-list-icon-color, var(--rhc-color-foreground-subtle));
47
47
 
48
48
  background-color: var(--rhc-navigation-list-icon-background-color, var(--rhc-color-wit));
49
49
  block-size: var(--rhc-navigation-list-item-icon-size);
50
50
  border-radius: var(--rhc-navigation-list-icon-border-radius, var(--rhc-border-radius-circle));
51
- color: var(--rhc-navigation-list-icon-color, var(--rhc-color-foreground-subdued));
51
+ color: var(--rhc-navigation-list-icon-color, var(--rhc-color-foreground-subtle));
52
52
  grid-area: start-icon;
53
53
  min-inline-size: var(--rhc-navigation-list-item-icon-size);
54
54
  padding-block: var(--rhc-navigation-list-item-icon-padding-block);
@@ -68,18 +68,18 @@
68
68
  }
69
69
 
70
70
  @mixin rhc-navigation-list__item__label {
71
- --nl-paragraph-font-size: var(--rhc-navigation-list-item-label-font-size, var(--rhc-font-size-md-desktop));
72
- --nl-paragraph-font-weight: var(--rhc-navigation-list-item-label-font-weight, var(--rhc-font-weight-bold));
73
- --nl-paragraph-line-height: var(--rhc-navigation-list-item-label-line-height, var(--rhc-line-height-md));
71
+ --nl-paragraph-font-size: var(--rhc-navigation-list-item-label-font-size, var(--rhc-text-font-size-max-xl));
72
+ --nl-paragraph-font-weight: var(--rhc-navigation-list-item-label-font-weight, var(--rhc-text-font-weight-bold));
73
+ --nl-paragraph-line-height: var(--rhc-navigation-list-item-label-line-height, var(--rhc-text-line-height-md));
74
74
 
75
75
  color: var(--rhc-navigation-list-item-heading-color, var(--rhc-color-foreground-lint));
76
- font-family: var(--rhc-navigation-list-item-label-font-family, var(--rhc-font-family-primary)), sans-serif;
76
+ font-family: var(--rhc-navigation-list-item-label-font-family, var(--rhc-text-font-family-default)), sans-serif;
77
77
  grid-area: label;
78
78
  margin-block: 0;
79
79
  }
80
80
  @mixin rhc-navigation-list__item__description {
81
- --nl-paragraph-color: var(--rhc-color-foreground-subdued);
82
- --nl-paragraph-font-size: var(--rhc-navigation-list-item-content-font-size, var(--rhc-font-size-sm-desktop));
81
+ --nl-paragraph-color: var(--rhc-color-foreground-subtle);
82
+ --nl-paragraph-font-size: var(--rhc-navigation-list-item-content-font-size, var(--rhc-text-font-size-max-lg));
83
83
 
84
84
  grid-area: content;
85
85
  margin-block: 0;
@@ -10,5 +10,5 @@
10
10
  }
11
11
 
12
12
  .utrecht-form-label {
13
- line-height: var(--rhc-line-height-md, inherit);
13
+ line-height: var(--rhc-text-line-height-md, inherit);
14
14
  }
@@ -0,0 +1,15 @@
1
+ @use "sass:map";
2
+
3
+ $rhc-rounded-corner-positions: ("start-start", "start-end", "end-start", "end-end") !default;
4
+ $rhc-rounded-corner-sizes: ("sm", "md", "lg") !default;
5
+
6
+ @mixin rhc-rounded-corner {
7
+ overflow: var(--rhc-rounded-corner-overflow);
8
+ }
9
+
10
+ @mixin rhc-reset-border-radius {
11
+ border-end-end-radius: 0;
12
+ border-end-start-radius: 0;
13
+ border-start-end-radius: 0;
14
+ border-start-start-radius: 0;
15
+ }
@@ -0,0 +1,26 @@
1
+ @use "mixin";
2
+
3
+ .rhc-rounded-corner {
4
+ --_rhc-rounded-corner-border-radius: var(
5
+ --rhc-rounded-corner-border-radius,
6
+ var(--rhc-rounded-corner-md-border-radius)
7
+ );
8
+ @include mixin.rhc-rounded-corner;
9
+ @include mixin.rhc-reset-border-radius;
10
+
11
+ &.rhc-rounded-corner--size {
12
+ @each $size in mixin.$rhc-rounded-corner-sizes {
13
+ &-#{$size} {
14
+ --_rhc-rounded-corner-border-radius: var(--rhc-rounded-corner-#{$size}-border-radius);
15
+ }
16
+ }
17
+ }
18
+
19
+ &.rhc-rounded-corner--position {
20
+ @each $position in mixin.$rhc-rounded-corner-positions {
21
+ &-#{$position} {
22
+ border-#{$position}-radius: var(--_rhc-rounded-corner-border-radius);
23
+ }
24
+ }
25
+ }
26
+ }
@@ -35,11 +35,11 @@
35
35
  }
36
36
 
37
37
  &-cell {
38
- --utrecht-table-cell-line-height: var(--rhc-line-height-md, inherit);
38
+ --utrecht-table-cell-line-height: var(--rhc-text-line-height-md, inherit);
39
39
  }
40
40
 
41
41
  &--cell {
42
- --utrecht-table-cell-line-height: var(--rhc-line-height-md, inherit);
42
+ --utrecht-table-cell-line-height: var(--rhc-text-line-height-md, inherit);
43
43
 
44
44
  &-row {
45
45
  --utrecht-table-header-cell-font-weight: --utrecht-table-row-border-block-end-width;
@@ -1,6 +1,6 @@
1
1
  .utrecht-textarea {
2
2
  &:focus {
3
- border-width: var(--utrecht-textarea-focus-border-width, var(--rhc-border-width-m, 2px));
3
+ border-width: var(--rhc-textarea-focus-border-width, var(--rhc-border-width-m, 2px));
4
4
  }
5
5
  &--html-textarea:read-only {
6
6
  --utrecht-textarea-read-only-border: var(--utrecht-textarea-read-only-background-color, --rhc-color-grijs-100);