@rijkshuisstijl-community/components-css 1.0.0-alpha.9 → 1.0.0-alpha.90

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.
Files changed (66) hide show
  1. package/dist/index.css +22 -0
  2. package/index.scss +50 -0
  3. package/package.json +21 -11
  4. package/src/accordion/index.scss +68 -0
  5. package/src/action-group/index.scss +11 -0
  6. package/src/alert/index.scss +27 -0
  7. package/src/article/index.scss +1 -0
  8. package/src/badgecounter/index.scss +3 -0
  9. package/src/blockquote/_mixin.scss +85 -0
  10. package/src/blockquote/index.scss +41 -0
  11. package/src/breadcrumb-nav/index.scss +28 -0
  12. package/src/button/_mixin.scss +36 -0
  13. package/src/button/index.scss +18 -0
  14. package/src/card/_mixin.scss +174 -0
  15. package/src/card/index.scss +108 -0
  16. package/src/checkbox/_mixin.scss +103 -0
  17. package/src/checkbox/index.scss +34 -0
  18. package/src/code-input/_mixin.scss +26 -0
  19. package/src/code-input/index.scss +13 -0
  20. package/src/dot-badge/_mixin.scss +12 -0
  21. package/src/dot-badge/index.scss +9 -0
  22. package/src/figure/index.scss +18 -0
  23. package/src/file-input/index.scss +63 -0
  24. package/src/footer/index.scss +71 -0
  25. package/src/form/index.scss +18 -0
  26. package/src/form-field/index.scss +13 -0
  27. package/src/form-field-error-message/index.scss +15 -0
  28. package/src/form-field-radio-option/index.scss +21 -0
  29. package/src/hero/_mixin.scss +103 -0
  30. package/src/hero/index.scss +81 -0
  31. package/src/link/_mixin.scss +38 -0
  32. package/src/link/index.scss +44 -0
  33. package/src/link-list/index.scss +16 -0
  34. package/src/link-list-card/index.scss +10 -0
  35. package/src/logo/_mixin.scss +58 -0
  36. package/src/logo/index.scss +31 -0
  37. package/src/message-list/_mixin.scss +85 -0
  38. package/src/message-list/index.scss +41 -0
  39. package/src/navbar/index.scss +90 -0
  40. package/src/navigation-list/_mixin.scss +94 -0
  41. package/src/navigation-list/index.scss +43 -0
  42. package/src/ordered-list/index.scss +18 -0
  43. package/src/pre-heading/index.scss +22 -0
  44. package/src/radio/index.scss +27 -0
  45. package/src/radio-group/_mixin.scss +12 -0
  46. package/src/radio-group/index.scss +10 -0
  47. package/src/select/index.scss +16 -0
  48. package/src/separator/index.scss +14 -0
  49. package/src/side-nav/index.scss +52 -0
  50. package/src/skip-link/_mixin.scss +13 -0
  51. package/src/skip-link/index.scss +43 -0
  52. package/src/table/index.scss +56 -0
  53. package/src/textarea/index.scss +8 -0
  54. package/src/textbox/index.scss +6 -0
  55. package/src/toggletip/_mixin.scss +59 -0
  56. package/src/toggletip/index.scss +48 -0
  57. package/src/unordered-list/index.scss +27 -0
  58. package/src/visually-hidden/_mixin.scss +19 -0
  59. package/src/visually-hidden/index.scss +5 -0
  60. package/src/wrapper/_mixin.scss +1819 -0
  61. package/src/wrapper/createSpacingCSS.js +69 -0
  62. package/src/wrapper/index.scss +43 -0
  63. package/src/wrapper/spacing-matrix.json +1406 -0
  64. package/vite.config.js +18 -0
  65. package/button/README.md +0 -3
  66. package/button/index.scss +0 -16
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-radio-button {
7
+ --utrecht-radio-button-icon-size: calc(var(--utrecht-radio-button-dot-size) * 0.5);
8
+ }
9
+
10
+ .utrecht-radio-button:focus,
11
+ .utrecht-radio-button--focus {
12
+ --utrecht-radio-button-checked-color: var(--utrecht-radio-button-checked-background-color, inherit);
13
+ }
14
+
15
+ .utrecht-radio-button:disabled,
16
+ .utrecht-radio-button--disabled {
17
+ --utrecht-radio-button-checked-color: var(--utrecht-radio-button-disabled-color, inherit);
18
+ }
19
+
20
+ .utrecht-radio-button:invalid,
21
+ .utrecht-radio-button--invalid {
22
+ --utrecht-radio-button-background-color: var(--utrecht-radio-button-invalid-background-color, inherit);
23
+ &:hover,
24
+ &:focus {
25
+ background-color: var(--utrecht-radio-button-background-color);
26
+ }
27
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @mixin rhc-radio-group {
7
+ display: flex;
8
+ flex-direction: column;
9
+ padding-block-end: var(--rhc-radio-group-padding-block-end, inherit);
10
+ padding-block-start: var(--rhc-radio-group-padding-block-start, inherit);
11
+ row-gap: var(--rhc-radio-group-row-gap, inherit);
12
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @use "mixin";
7
+
8
+ .rhc-radio-group {
9
+ @include mixin.rhc-radio-group;
10
+ }
@@ -0,0 +1,16 @@
1
+ .utrecht-select {
2
+ &--html-select:not([multiple]) {
3
+ // This is an svg of chevron down icon
4
+ --utrecht-select-background-image: url('data:image/svg+xml,<svg width="8" height="3" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L7.70711 7.70711C7.31658 8.09763 6.68342 8.09763 6.29289 7.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z" fill="%23154273"/></svg>');
5
+ --utrecht-select-image-background-position: right 0.5rem center;
6
+
7
+ background-position: var(--utrecht-select-image-background-position);
8
+ background-size: var(--utrecht-select-icon-size);
9
+ }
10
+ &--html-select-rtl:not([multiple]) {
11
+ --utrecht-select-image-background-position: left 0.5rem center;
12
+ }
13
+ &:focus {
14
+ border-width: var(--utrecht-select-focus-border-width, var(--rhc-border-width-m, 2px));
15
+ }
16
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-separator {
7
+ --utrecht-space-around: 1;
8
+
9
+ margin-inline-end: 0;
10
+ margin-inline-start: 0;
11
+ &--invisible {
12
+ --utrecht-separator-color: transparent;
13
+ }
14
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .rhc-side-nav {
7
+ display: var(--rhc-sidenav-display, flex);
8
+ flex-direction: column;
9
+ row-gap: var(--rhc-sidenav-row-gap);
10
+ &__list {
11
+ list-style: none;
12
+ margin-block: 0;
13
+ padding-block: 0;
14
+ padding-inline: 0;
15
+ }
16
+ &__link {
17
+ align-items: center;
18
+ color: var(--rhc-sidenav-link-color);
19
+ column-gap: var(--rhc-sidenav-link-column-gap);
20
+ display: flex;
21
+ font-family: var(--rhc-sidenav-link-font-family), sans-serif;
22
+ font-size: var(--rhc-sidenav-link-font-size);
23
+ font-weight: var(--rhc-sidenav-link-font-weight);
24
+ line-height: var(--rhc-sidenav-link-line-height);
25
+ padding-block-end: var(--rhc-sidenav-link-padding-block-end);
26
+ padding-block-start: var(--rhc-sidenav-link-padding-block-start);
27
+ text-decoration: var(--rhc-sidenav-link-text-decoration);
28
+ &[aria-current="page"] {
29
+ color: var(--rhc-sidenav-link-current-color);
30
+ font-weight: var(--rhc-sidenav-link-current-font-weight);
31
+ }
32
+ &:active {
33
+ color: var(--rhc-sidenav-link-active-color);
34
+ text-decoration: var(--rhc-sidenav-link-active-text-decoration);
35
+ }
36
+ &:focus {
37
+ background-color: var(--rhc-sidenav-link-focus-background-color);
38
+ color: var(--rhc-sidenav-link-focus-color);
39
+ text-decoration: var(--rhc-sidenav-link-focus-text-decoration);
40
+ }
41
+ &:focus-visible {
42
+ border-color: var(--rhc-sidenav-link-focus-border-color);
43
+ border-radius: var(--rhc-sidenav-link-focus-border-radius);
44
+ border-style: var(--rhc-sidenav-link-focus-border-style);
45
+ border-width: var(--rhc-sidenav-link-focus-border-width);
46
+ }
47
+ &:hover {
48
+ color: var(--rhc-sidenav-link-hover-color);
49
+ text-decoration: var(--rhc-sidenav-link-hover-text-decoration);
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,13 @@
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(--utrecht-skip-link-box-block-end-shadow-offset-x)
8
+ var(--utrecht-skip-link-box-block-end-shadow-offset-y) var(--utrecht-skip-link-box-block-end-shadow-blur-radius)
9
+ var(--utrecht-skip-link-box-block-end-shadow-spread-radius) var(--utrecht-skip-link-box-block-end-shadow-color);
10
+ font-weight: var(--utrecht-skip-link-font-weight, inherit);
11
+ position: revert;
12
+ text-underline-offset: var(--utrecht-skip-link-text-underline-offset, inherit);
13
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
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(--utrecht-skip-link-focus-background-color, inherit);
23
+ border-color: var(--utrecht-skip-link-focus-border-color, inherit);
24
+ border-style: var(--utrecht-skip-link-focus-border-style, inherit);
25
+ border-width: var(--utrecht-skip-link-focus-border-width, inherit);
26
+ color: var(--utrecht-skip-link-focus-color, inherit);
27
+ outline-color: var(--utrecht-skip-link-focus-outline-color, revert);
28
+ outline-offset: var(--utrecht-skip-link-focus-outline-offset, revert);
29
+ outline-style: var(--utrecht-skip-link-focus-outline-style, revert);
30
+ outline-width: var(--utrecht-skip-link-focus-outline-width, revert);
31
+ position: revert;
32
+ text-decoration: var(--utrecht-skip-link-focus-text-decoration, inherit);
33
+ }
34
+
35
+ .rhc-skip-link--focus-visible,
36
+ .rhc-skip-link:focus-visible {
37
+ @include mixin.rhc-skip-link;
38
+
39
+ outline-color: var(--utrecht-skip-link-focus-visible-outline-color, var(--utrecht-focus-outline-color));
40
+ outline-offset: var(--utrecht-skip-link-focus-visible-outline-offset, var(--utrecht-focus-outline-offset));
41
+ outline-style: var(--utrecht-skip-link-focus-visible-outline-style, var(--utrecht-focus-outline-style));
42
+ outline-width: var(--utrecht-skip-link-focus-visible-outline-width, var(--utrecht-focus-outline-width));
43
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-table {
7
+ &__caption {
8
+ text-align: start;
9
+ &--rtl {
10
+ text-align: end;
11
+ }
12
+ }
13
+ &__cell {
14
+ color: var(--rhc-color-foreground-lint);
15
+ }
16
+
17
+ &__header {
18
+ tr:last-child > th {
19
+ border-block-end-color: var(--utrecht-table-header-border-block-end-color);
20
+ border-block-end-style: solid;
21
+ border-block-end-width: var(
22
+ --utrecht-table-header-sticky-border-block-end-width,
23
+ var(--utrecht-table-header-border-block-end-width, 0)
24
+ );
25
+ }
26
+
27
+ &--align-right {
28
+ --_utrecht-table-cell-text-align: end;
29
+ }
30
+ &--align-center {
31
+ --_utrecht-table-cell-text-align: center;
32
+ }
33
+ &--align-left {
34
+ --_utrecht-table-cell-text-align: start;
35
+ }
36
+
37
+ &--cell {
38
+ &-row {
39
+ --utrecht-table-header-cell-font-weight: --utrecht-table-row-border-block-end-width;
40
+
41
+ border-block-end-color: var(--utrecht-table-row-border-block-end-color);
42
+ border-block-end-style: solid;
43
+ border-block-end-width: var(--utrecht-table-row-border-block-end-width, 2px);
44
+ }
45
+ }
46
+ }
47
+
48
+ &__footer {
49
+ color: var(--utrecht-table-footer-color);
50
+ td {
51
+ --utrecht-table-footer-font-weight: var(--utrecht-table-footer-font-weight, bold);
52
+
53
+ font-weight: var(--utrecht-table-footer-font-weight, bold);
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,8 @@
1
+ .utrecht-textarea {
2
+ &:focus {
3
+ border-width: var(--utrecht-textarea-focus-border-width, var(--rhc-border-width-m, 2px));
4
+ }
5
+ &--html-textarea:read-only {
6
+ --utrecht-textarea-read-only-border: var(--utrecht-textarea-read-only-background-color, --rhc-color-grijs-100);
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ .utrecht-textbox:focus {
2
+ border-width: var(--utrecht-textbox-focus-border-width, var(--rhc-border-width-m, 2px));
3
+ }
4
+ .utrecht-textbox--invalid:focus {
5
+ border-width: var(--utrecht-textbox-focus-border-width, var(--rhc-border-width-m, 2px));
6
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @mixin rhc-toggletip {
7
+ background-color: transparent;
8
+ border-radius: var(--rhc-toggletip-border-radius);
9
+ display: inline-flex;
10
+ flex-direction: column;
11
+ size: var(--rhc-toggletip-size);
12
+ }
13
+
14
+ @mixin rhc-toggletip__summary {
15
+ cursor: pointer;
16
+ display: inline-flex;
17
+ margin-block-end: var(--rhc-toggletip-gap, 16px);
18
+ max-inline-size: var(--rhc-toggletip-size);
19
+ size: var(--rhc-toggletip-size);
20
+ }
21
+
22
+ @mixin rhc-toggletip__button {
23
+ background-color: var(--rhc-toggletip-background-color);
24
+ border-color: var(--rhc-toggletip-border-color);
25
+ border-radius: var(--rhc-toggletip-border-radius);
26
+ border-width: var(--rhc-toggletip-border-width);
27
+ color: var(--rhc-toggletip-color);
28
+ cursor: pointer;
29
+ display: inline-flex;
30
+ max-inline-size: var(--rhc-toggletip-size);
31
+ padding-block: 0;
32
+ padding-inline: 0;
33
+ size: var(--rhc-toggletip-size);
34
+ }
35
+
36
+ @mixin rhc-toggletip__button--no-pointer-events {
37
+ pointer-events: none;
38
+ }
39
+
40
+ @mixin rhc-toggletip__icon {
41
+ size: var(--rhc-toggletip-icon-size);
42
+ }
43
+
44
+ @mixin rhc-toggletip--active {
45
+ background-color: var(--rhc-toggletip-active-background-color);
46
+ border-color: var(--rhc-toggletip-active-border-color);
47
+ border-style: solid;
48
+ color: var(--rhc-toggletip-active-color);
49
+ }
50
+
51
+ @mixin rhc-toggletip--hover {
52
+ background-color: var(--rhc-toggletip-hover-background-color);
53
+ color: var(--rhc-toggletip-hover-color);
54
+ }
55
+
56
+ @mixin rhc-toggletip--focus {
57
+ background-color: var(--rhc-toggletip-focus-background-color);
58
+ color: var(--rhc-toggletip-focus-color);
59
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @use "mixin";
7
+
8
+ .rhc-toggletip {
9
+ @include mixin.rhc-toggletip;
10
+ }
11
+
12
+ .rhc-toggletip__summary {
13
+ @include mixin.rhc-toggletip__summary;
14
+ }
15
+
16
+ .rhc-toggletip__button {
17
+ @include mixin.rhc-toggletip__button;
18
+ }
19
+
20
+ .rhc-toggletip__summary .rhc-toggletip__button {
21
+ // If button is not used standalone the summary should take precedence
22
+ @include mixin.rhc-toggletip__button--no-pointer-events;
23
+ }
24
+
25
+ .rhc-toggletip__button:focus {
26
+ @include mixin.rhc-toggletip--focus;
27
+ }
28
+
29
+ .rhc-toggletip__button:hover {
30
+ @include mixin.rhc-toggletip--hover;
31
+ }
32
+
33
+ .rhc-toggletip__summary:focus .rhc-toggletip__button {
34
+ @include mixin.rhc-toggletip--focus;
35
+ }
36
+
37
+ .rhc-toggletip__summary:hover .rhc-toggletip__button {
38
+ @include mixin.rhc-toggletip--hover;
39
+ }
40
+
41
+ .rhc-toggletip:active .rhc-toggletip__button,
42
+ .rhc-toggletip[open] .rhc-toggletip__button {
43
+ @include mixin.rhc-toggletip--active;
44
+ }
45
+
46
+ .rhc-toggletip__icon {
47
+ @include mixin.rhc-toggletip__icon;
48
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-unordered-list {
7
+ color: var(--utrecht-unordered-list-color);
8
+ font-family: var(--utrecht-unordered-list-font-family);
9
+ font-size: var(--utrecht-unordered-list-font-size);
10
+ font-weight: var(--utrecht-unordered-list-font-weight);
11
+ line-height: var(--utrecht-unordered-list-line-heigh);
12
+ padding-inline-start: var(--utrecht-unordered-list-padding-inline-start);
13
+ }
14
+
15
+ .utrecht-unordered-list__item {
16
+ margin-block-end: var(--utrecht-unordered-list-item-margin-block-end);
17
+ margin-block-start: var(--utrecht-unordered-list-item-margin-block-start);
18
+ padding-inline-start: var(--utrecht-unordered-list-item-padding-inline-start);
19
+ }
20
+
21
+ .utrecht-unordered-list--nested {
22
+ margin-inline-start: 0;
23
+ }
24
+
25
+ .utrecht-unordered-list--nested > .utrecht-unordered-list__item::marker {
26
+ content: "○";
27
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @mixin rhc-visually-hidden {
7
+ block-size: 1px !important;
8
+ border: 0 !important;
9
+ clip: rect(0, 0, 0, 0) !important;
10
+ inline-size: 1px !important;
11
+ margin-block: -1px !important;
12
+ margin-inline: -1px !important;
13
+ opacity: 0%;
14
+ overflow: hidden !important;
15
+ padding-block: 0 !important;
16
+ padding-inline: 0 !important;
17
+ position: absolute;
18
+ white-space: nowrap !important;
19
+ }
@@ -0,0 +1,5 @@
1
+ @use "mixin";
2
+
3
+ .rhc-visually-hidden {
4
+ @include mixin.rhc-visually-hidden;
5
+ }