@rijkshuisstijl-community/components-css 5.0.0 → 7.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
@@ -15,11 +15,11 @@
15
15
  @use "src/button/index" as button;
16
16
  @use "src/card-as-link/index" as cardAsLink;
17
17
  @use "src/card/index" as card;
18
+ @use "src/checkbox/index" as checkbox;
18
19
  @use "src/code-input/index" as codeInput;
19
20
  @use "src/code-input-group/index" as codeInputGroup;
20
21
  @use "src/data-badge-button/index" as dataBadgeButton;
21
22
  @use "src/dot-badge/index" as dotBadge;
22
- @use "src/checkbox/index" as checkbox;
23
23
  @use "src/expandable-checkbox-group/index" as expandableCheckboxGroup;
24
24
  @use "src/figure/index" as figure;
25
25
  @use "src/file/index" as file;
@@ -41,6 +41,7 @@
41
41
  @use "src/number-badge/index" as numberBadge;
42
42
  @use "src/ordered-list/index" as orderedList;
43
43
  @use "src/paragraph/index.scss" as paragraph;
44
+ @use "src/page-number-navigation/index" as pagination;
44
45
  @use "src/pre-heading/index" as preHeading;
45
46
  @use "src/radio/index" as radio;
46
47
  @use "src/radio-group/index" as radioGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rijkshuisstijl-community/components-css",
3
- "version": "5.0.0",
3
+ "version": "7.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",
@@ -24,12 +24,13 @@
24
24
  "vite": "6.3.5"
25
25
  },
26
26
  "dependencies": {
27
+ "@amsterdam/design-system-css": "1.0.1",
27
28
  "@nl-design-system-candidate/heading-css": "1.1.0",
28
29
  "@nl-design-system-candidate/link-css": "2.0.0",
29
30
  "@nl-design-system-candidate/number-badge-css": "1.1.2",
30
31
  "@nl-design-system-candidate/paragraph-css": "2.1.0",
31
32
  "@nl-design-system-candidate/skip-link-css": "1.0.2",
32
- "@utrecht/component-library-css": "7.4.2"
33
+ "@utrecht/component-library-css": "8.0.0"
33
34
  },
34
35
  "scripts": {
35
36
  "dev": "vite build --watch",
@@ -2,67 +2,3 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2021 Community for NL Design System
4
4
  */
5
-
6
- .utrecht-accordion {
7
- color: var(--rhc-accordion-color, inherit);
8
- display: flex;
9
- flex-direction: column;
10
- margin-block-end: var(--utrecht-accordion-margin-block-end);
11
- row-gap: var(--utrecht-accordion-row-gap, inherit);
12
- }
13
-
14
- .utrecht-accordion__header {
15
- margin-block-end: var(--rhc-accordion-header-margin-block-end, var(--rhc-accordion-header-margin, inherit));
16
- margin-block-start: var(--rhc-accordion-header-margin-block-start, var(--rhc-accordion-header-margin, inherit));
17
- margin-inline-end: var(--rhc-accordion-header-margin-inline-end, var(--rhc-accordion-header-margin, inherit));
18
- margin-inline-start: var(--rhc-accordion-header-margin-inline-start, var(--rhc-accordion-header-margin, inherit));
19
- }
20
-
21
- .utrecht-accordion__section {
22
- border-block-end-width: var(
23
- --rhc-accordion-section-border-block-end-width,
24
- var(--rhc-accordion-section-border-width, inherit)
25
- );
26
- border-block-start-width: var(
27
- --rhc-accordion-section-border-block-start-width,
28
- var(--rhc-accordion-section-border-width, inherit)
29
- );
30
- border-color: var(--rhc-accordion-section-border-color, inherit);
31
- border-inline-end-width: var(
32
- --rhc-accordion-section-border-inline-end-width,
33
- var(--rhc-accordion-section-border-width, inherit)
34
- );
35
- border-inline-start-width: var(
36
- --rhc-accordion-section-border-inline-start-width,
37
- var(--rhc-accordion-section-border-width, inherit)
38
- );
39
- border-style: solid;
40
- }
41
-
42
- .utrecht-button.utrecht-accordion__button {
43
- --_utrecht-button-appearance-font-weight: var(--rhc-accordion-button-font-weight, inherit);
44
- --utrecht-button-border-radius: var(--rhc-accordion-border-radius, inherit);
45
- --utrecht-button-padding-block-end: var(--rhc-accordion-button-padding-block-end, inherit);
46
- --utrecht-button-padding-block-start: var(--rhc-accordion-button-padding-block-start, inherit);
47
- --utrecht-button-padding-inline-end: var(--rhc-accordion-button-padding-inline-end, inherit);
48
- --utrecht-button-padding-inline-start: var(--rhc-accordion-button-padding-inline-start, inherit);
49
-
50
- align-items: start;
51
- }
52
-
53
- .utrecht-accordion__button-icon {
54
- align-items: center;
55
- block-size: var(--utrecht-accordion-button-icon-size);
56
- display: flex;
57
- fill: var(--utrecht-accordion-button-color, inherit);
58
- inline-size: var(--utrecht-accordion-button-icon-size);
59
- justify-content: center;
60
- margin-block: var(--rhc-accordion-button-icon-margin-block);
61
- }
62
-
63
- .utrecht-accordion__panel {
64
- font-family: var(--rhc-font-family-primary, inherit);
65
- font-size: var(--rhc-font-size-xs-desktop, inherit);
66
- font-weight: var(--rhc-font-weight-regular, inherit);
67
- line-height: var(--rhc-line-height-md, inherit);
68
- }
@@ -0,0 +1,9 @@
1
+ @mixin rhc-alert {
2
+ // As we use the nl paragraph and heading instead of the Utrecht one we need to properly map the alert overwrites
3
+ --nl-heading-level-1-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
4
+ --nl-heading-level-2-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
5
+ --nl-heading-level-3-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
6
+ --nl-heading-level-4-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
7
+ --nl-heading-level-5-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
8
+ --nl-paragraph-color: var(--_utrecht-alert-color, var(--utrecht-alert-color));
9
+ }
@@ -2,41 +2,8 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2021 Community for NL Design System
4
4
  */
5
+ @use "mixin";
5
6
 
6
- .rhc-alert {
7
- --nl-heading-level-1-line-height: var(--utrecht-alert-heading-line-height);
8
- --nl-heading-level-2-line-height: var(--utrecht-alert-heading-line-height);
9
- --nl-heading-level-3-line-height: var(--utrecht-alert-heading-line-height);
10
- --nl-heading-level-4-line-height: var(--utrecht-alert-heading-line-height);
11
- --nl-heading-level-5-line-height: var(--utrecht-alert-heading-line-height);
12
- --nl-heading-level-1-color: var(--utrecht-alert-color);
13
- --nl-heading-level-2-color: var(--utrecht-alert-color);
14
- --nl-heading-level-3-color: var(--utrecht-alert-color);
15
- --nl-heading-level-4-color: var(--utrecht-alert-color);
16
- --nl-heading-level-5-color: var(--utrecht-alert-color);
17
- --utrecht-icon-inset-block-start: var(--utrecht-alert-icon-inset-block-start);
18
- --nl-paragraph-line-height: var(--utrecht-alert-message-line-height);
19
- --nl-paragraph-color: var(--utrecht-alert-color);
20
- }
21
-
22
- .utrecht-alert__message {
23
- column-gap: var(--utrecht-alert-message-column-gap);
24
- display: flex;
25
- }
26
-
27
- .rhc-alert__icon-container {
28
- inline-size: var(--utrecht-alert-icon-size);
29
- min-inline-size: var(--utrecht-alert-icon-size);
30
- &--ok {
31
- color: var(--rhc-color-feedback-success-default);
32
- }
33
- &--error {
34
- color: var(--rhc-color-feedback-error-default);
35
- }
36
- &--warning {
37
- color: var(--rhc-color-feedback-warning-default);
38
- }
39
- &--info {
40
- color: var(--rhc-color-feedback-info-default);
41
- }
7
+ .utrecht-alert {
8
+ @include mixin.rhc-alert;
42
9
  }
@@ -0,0 +1,2 @@
1
+ @use "@amsterdam/design-system-css/dist/pagination/pagination.css";
2
+ @use "@amsterdam/design-system-css/dist/visually-hidden/visually-hidden.css";
@@ -3,39 +3,3 @@
3
3
  * Copyright (c) 2021 Community for NL Design System
4
4
  */
5
5
  @use "../../node_modules/@nl-design-system-candidate/skip-link-css/dist/skip-link.css";
6
- @use "mixin";
7
-
8
- .rhc-skip-link {
9
- @include mixin.rhc-skip-link;
10
- }
11
-
12
- .rhc-skip-link--hidden,
13
- .rhc-skip-link--visible-on-focus {
14
- inset-block-start: -9999px;
15
- position: fixed;
16
- }
17
-
18
- .rhc-skip-link--focus,
19
- .rhc-skip-link:focus {
20
- @include mixin.rhc-skip-link;
21
-
22
- background-color: var(--nl-skip-link-focus-background-color, inherit);
23
- border-color: var(--nl-skip-link-focus-border-color, inherit);
24
- border-style: var(--nl-skip-link-focus-border-style, inherit);
25
- border-width: var(--nl-skip-link-focus-border-width, inherit);
26
- color: var(--nl-skip-link-focus-color, inherit);
27
- outline: var(--nl-skip-link-focus-outline-color, revert) var(--nl-skip-link-focus-outline-style, revert)
28
- var(--nl-skip-link-focus-outline-width, revert);
29
- outline-offset: var(--nl-skip-link-focus-outline-offset, revert);
30
- position: revert;
31
- text-decoration: var(--nl-skip-link-focus-text-decoration, inherit);
32
- }
33
-
34
- .rhc-skip-link--focus-visible,
35
- .rhc-skip-link:focus-visible {
36
- @include mixin.rhc-skip-link;
37
-
38
- outline: var(--nl-skip-link-focus-visible-outline-color) var(--nl-skip-link-focus-visible-outline-style)
39
- var(--nl-skip-link-focus-visible-outline-width);
40
- outline-offset: var(--nl-skip-link-focus-visible-outline-offset);
41
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2021 Community for NL Design System
4
- */
5
-
6
- @mixin rhc-skip-link {
7
- box-shadow: var(--nl-skip-link-box-block-end-shadow-offset-x) var(--nl-skip-link-box-block-end-shadow-offset-y)
8
- var(--nl-skip-link-box-block-end-shadow-blur-radius) var(--nl-skip-link-box-block-end-shadow-spread-radius)
9
- var(--nl-skip-link-box-block-end-shadow-color);
10
- font-family: var(--rhc-font-family-primary, inherit), serif;
11
- font-size: var(--rhc-font-size-xs-desktop, inherit);
12
- font-weight: var(--nl-skip-link-font-weight, inherit);
13
- line-height: var(--rhc-line-height-md, inherit);
14
- padding-block-end: var(--nl-skip-link-padding-block-end, inherit);
15
- padding-block-start: var(--nl-skip-link-padding-block-start, inherit);
16
- padding-inline-end: var(--nl-skip-link-padding-inline-end, inherit);
17
- padding-inline-start: var(--nl-skip-link-padding-inline-start, inherit);
18
- position: revert;
19
- text-underline-offset: var(--nl-skip-link-text-underline-offset, inherit);
20
- }