dso-toolkit 51.2.1 → 51.4.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.
Files changed (32) hide show
  1. package/dist/dso-icons.svg +253 -211
  2. package/dist/dso.css +220 -186
  3. package/dist/index.js +3 -0
  4. package/package.json +1 -1
  5. package/src/components/accordion/accordion-theme-conclusion.scss +40 -34
  6. package/src/components/accordion/accordion.variables.scss +1 -1
  7. package/src/components/alert/alert.mixins.scss +2 -3
  8. package/src/components/annotation/readme.md +24 -0
  9. package/src/components/badge/badge.mixins.scss +8 -2
  10. package/src/components/badge/badge.variables.scss +1 -0
  11. package/src/components/banner/banner.mixins.scss +1 -2
  12. package/src/components/card/card.mixins.scss +11 -1
  13. package/src/components/card/card.scss +26 -0
  14. package/src/components/document-header/document-header.scss +1 -0
  15. package/src/components/document-list/document-list.scss +1 -0
  16. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +2 -13
  17. package/src/components/dropdown-menu/dropdown-menu.scss +14 -5
  18. package/src/components/expandable-heading/_index.scss +0 -0
  19. package/src/components/expandable-heading/expandable-heading.scss +7 -0
  20. package/src/components/expandable-heading/readme.md +1 -0
  21. package/src/components/footer/footer.scss +7 -6
  22. package/src/components/grid/grid.scss +1 -0
  23. package/src/components/highlight-box/highlight-box.mixins.scss +3 -12
  24. package/src/components/highlight-box/highlight-box.scss +6 -6
  25. package/src/components/info/info.mixins.scss +2 -2
  26. package/src/components/info/info.scss +1 -1
  27. package/src/components/label/label.mixins.scss +12 -11
  28. package/src/components/label/label.variables.scss +5 -2
  29. package/src/components/link-list/link-list.mixins.scss +2 -2
  30. package/src/components/shopping-cart/shopping-cart.scss +1 -0
  31. package/src/dso.scss +1 -0
  32. package/src/variables/states.scss +5 -5
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export { AlertType } from "./components/alert/alert.models.js";
6
6
  export { storiesOfAlert } from "./components/alert/alert.stories-of.js";
7
7
  export { storiesOfAnchor } from "./components/anchor/anchor.stories-of.js";
8
8
  export { storiesOfApplicationHeading, } from "./components/application-heading/application-heading.stories-of.js";
9
+ export { storiesOfAnnotation } from "./components/annotation/annotation.stories-of.js";
9
10
  export { storiesOfAttachmentsCounter, } from "./components/attachments-counter/attachments-counter.stories-of.js";
10
11
  export { storiesOfAutosuggest } from "./components/autosuggest/autosuggest.stories-of.js";
11
12
  export { storiesOfBadge } from "./components/badge/badge.stories-of.js";
@@ -25,6 +26,7 @@ export { storiesOfDescription } from "./components/description/description.stori
25
26
  export { storiesOfDocumentHeader, } from "./components/document-header/document-header.stories-of.js";
26
27
  export { storiesOfDocumentList } from "./components/document-list/document-list.stories-of.js";
27
28
  export { storiesOfDropdownMenu } from "./components/dropdown-menu/dropdown-menu.stories-of.js";
29
+ export { storiesOfExpandableHeading, } from "./components/expandable-heading/expandable-heading.stories-of.js";
28
30
  export { storiesOfFootnotes } from "./components/footnotes/footnotes.stories-of.js";
29
31
  export { storiesOfForm } from "./components/form/form.stories-of.js";
30
32
  export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
@@ -38,6 +40,7 @@ export { storiesOfInfoButton } from "./components/info-button/info-button.storie
38
40
  export { storiesOfInfo } from "./components/info/info.stories-of.js";
39
41
  export { storiesOfInputNumber } from "./components/input-number/input-number.stories-of.js";
40
42
  export { storiesOfJustifyFormGroups, } from "./components/justify-form-groups/justify-form-groups.stories-of.js";
43
+ export { isLabelInterface } from "./components/label/label.models.js";
41
44
  export { storiesOfLabel } from "./components/label/label.stories-of.js";
42
45
  export { storiesOfLabelGroup } from "./components/label-group/label-group.stories-of.js";
43
46
  export { LinkListType } from "./components/link-list/link-list.models.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dso-toolkit",
3
3
  "description": "DSO Toolkit",
4
4
  "license": "SEE LICENSE IN DISCLAIMER.txt",
5
- "version": "51.2.1",
5
+ "version": "51.4.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -9,7 +9,7 @@
9
9
  a,
10
10
  button {
11
11
  &::before {
12
- @include di.base("chevron-down-grijs90");
12
+ @include di.base("chevron-down-zwart");
13
13
  }
14
14
  }
15
15
  }
@@ -21,7 +21,7 @@
21
21
  a,
22
22
  button {
23
23
  &::before {
24
- @include di.base("chevron-up-grijs90");
24
+ @include di.base("chevron-up-zwart");
25
25
  }
26
26
  }
27
27
  }
@@ -32,7 +32,7 @@
32
32
  a,
33
33
  button {
34
34
  &::before {
35
- @include di.variant("chevron-down-grijs90");
35
+ @include di.variant("chevron-down-zwart");
36
36
  }
37
37
  }
38
38
  }
@@ -41,28 +41,27 @@
41
41
  }
42
42
  }
43
43
 
44
- .dso-section-handle {
45
- background-color: accordion.$conclusion-bgcolor;
46
- border: 1px solid accordion.$conclusion-border-color;
44
+ > .dso-accordion-section {
45
+ > .dso-section-handle {
46
+ background-color: accordion.$conclusion-bgcolor;
47
+ border: 1px solid accordion.$conclusion-border-color;
47
48
 
48
- a,
49
- button {
50
- color: accordion.$conclusion-color;
49
+ a,
50
+ button {
51
+ color: accordion.$conclusion-color;
51
52
 
52
- &::before {
53
- @include di.base("chevron-right-grijs90");
54
- }
53
+ &::before {
54
+ @include di.base("chevron-right-zwart");
55
+ }
55
56
 
56
- &:hover,
57
- &:active,
58
- &.active {
59
- background-color: accordion.$conclusion-hover-bgcolor;
60
- color: accordion.$conclusion-color;
57
+ &:hover,
58
+ &:active,
59
+ &.active {
60
+ background-color: accordion.$conclusion-hover-bgcolor;
61
+ }
61
62
  }
62
63
  }
63
- }
64
64
 
65
- .dso-accordion-section {
66
65
  &.dso-open {
67
66
  &:not(.dso-nested-accordion) {
68
67
  > .dso-section-handle {
@@ -73,20 +72,7 @@
73
72
  color: accordion.$conclusion-color;
74
73
 
75
74
  &::before {
76
- @include di.base("chevron-down-grijs90");
77
- }
78
-
79
- dso-attachments-counter {
80
- --dso-attachments-counter-color: #{colors.$grijs-60};
81
- --dso-icon: var(--di-paperclip-grijs);
82
- }
83
-
84
- .dso-attachments {
85
- color: colors.$grijs-60;
86
-
87
- &::after {
88
- @include di.variant("paperclip-grijs");
89
- }
75
+ @include di.base("chevron-down-zwart");
90
76
  }
91
77
  }
92
78
  }
@@ -99,7 +85,27 @@
99
85
  a,
100
86
  button {
101
87
  &::before {
102
- @include di.base("chevron-down-grijs-90");
88
+ @include di.base("chevron-down-zwart");
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ &:not(.dso-nested-accordion) {
96
+ > .dso-section-handle {
97
+ a,
98
+ button {
99
+ dso-attachments-counter {
100
+ --dso-attachments-counter-color: #{colors.$zwart};
101
+ --dso-icon: var(--di-paperclip-zwart);
102
+ }
103
+
104
+ .dso-attachments {
105
+ color: colors.$zwart;
106
+
107
+ &::after {
108
+ @include di.variant("paperclip-zwart");
103
109
  }
104
110
  }
105
111
  }
@@ -9,7 +9,7 @@ $default-nested-body-bgcolor: colors.$grijs-10;
9
9
  $conclusion-bgcolor: colors.$grijs-5;
10
10
  $conclusion-hover-bgcolor: colors.$grijs-10;
11
11
  $conclusion-border-color: colors.$grijs-5;
12
- $conclusion-color: colors.$grijs-90;
12
+ $conclusion-color: colors.$zwart;
13
13
  $conclusion-nested-handle-bgcolor: $conclusion-bgcolor;
14
14
  $conclusion-nested-body-bgcolor: colors.$wit;
15
15
 
@@ -1,6 +1,5 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/colors";
3
- @use "../../variables/scaffolding";
4
3
  @use "../../variables/typography";
5
4
  @use "../../variables/media-query-breakpoints";
6
5
 
@@ -48,14 +47,14 @@
48
47
  a {
49
48
  &,
50
49
  &:not(.btn):visited {
51
- color: scaffolding.$text-color;
50
+ color: colors.$zwart;
52
51
  }
53
52
 
54
53
  &:hover,
55
54
  &:focus,
56
55
  &:active,
57
56
  &:visited {
58
- color: scaffolding.$text-color;
57
+ color: colors.$zwart;
59
58
  }
60
59
 
61
60
  &:active {
@@ -0,0 +1,24 @@
1
+ # `<dso-annotation-button>` & `<dso-annotation-output>`
2
+
3
+ ## Instructies voor afnemers
4
+
5
+ Annotation bestaat uit twee componenten die altijd samen ingezet moeten worden. Een button en een output. Deze moeten dezelfde identifier hebben. Zie voorbeeld hieronder.
6
+
7
+ ```
8
+ <dso-annotation-button identifier="id"></dso-annotation-button>
9
+ <dso-annotation-output identifier="id">
10
+ <h2 slot="title">Annotaties</h2>
11
+ <p>Dit is content die in de output staat</p>
12
+ </dso-annotation-output>
13
+ ```
14
+
15
+ Het is ook mogelijk om in de header van de output html te plaatsen. Dit kan door middel van `slot="addons"`, zoals het voorbeeld hieronder.
16
+
17
+ ```
18
+ <dso-annotation-button identifier="id"></dso-annotation-button>
19
+ <dso-annotation-output identifier="id">
20
+ <h2 slot="title">Annotaties</h2>
21
+ <dso-selectable slot="addons" type="checkbox" identifier="123" value=""></dso-selectable>
22
+ <p>Dit is content die in de output staat</p>
23
+ </dso-annotation-output>
24
+ ```
@@ -18,7 +18,7 @@
18
18
  &.badge-info {
19
19
  background-color: badge-variables.$info-bg-color;
20
20
  border-color: badge-variables.$info-bg-color;
21
- color: colors.$grijs-90;
21
+ color: colors.$zwart;
22
22
  }
23
23
 
24
24
  &.badge-primary {
@@ -36,7 +36,7 @@
36
36
  &.badge-warning {
37
37
  background-color: badge-variables.$warning-bg-color;
38
38
  border-color: badge-variables.$warning-bg-color;
39
- color: colors.$grijs-90;
39
+ color: colors.$zwart;
40
40
  }
41
41
 
42
42
  &.badge-danger {
@@ -56,4 +56,10 @@
56
56
  border-color: colors.$grijs-90;
57
57
  color: colors.$grijs-90;
58
58
  }
59
+
60
+ &.badge-attention {
61
+ background-color: badge-variables.$attention-bg-color;
62
+ border-color: badge-variables.$attention-bg-color;
63
+ color: colors.$wit;
64
+ }
59
65
  }
@@ -7,5 +7,6 @@ $success-bg-color: colors.$success-color;
7
7
  $warning-bg-color: colors.$warning-color;
8
8
  $danger-bg-color: colors.$danger-color;
9
9
  $error-bg-color: colors.$error-color;
10
+ $attention-bg-color: colors.$mauve;
10
11
 
11
12
  $line-height: 1;
@@ -1,6 +1,5 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/colors";
3
- @use "../../variables/scaffolding";
4
3
  @use "../../variables/typography";
5
4
  @use "../../variables/media-query-breakpoints";
6
5
 
@@ -21,7 +20,7 @@
21
20
  &:focus,
22
21
  &:active,
23
22
  &:visited {
24
- color: scaffolding.$text-color;
23
+ color: colors.$zwart;
25
24
  }
26
25
 
27
26
  &:active {
@@ -29,13 +29,22 @@
29
29
  text-decoration: underline;
30
30
  }
31
31
  }
32
+
33
+ &.dso-not-clickable {
34
+ h2 {
35
+ color: colors.$zwart;
36
+ }
37
+
38
+ &:hover {
39
+ cursor: initial;
40
+ }
41
+ }
32
42
  }
33
43
 
34
44
  @mixin root() {
35
45
  .dso-card-heading {
36
46
  align-items: center;
37
47
  display: flex;
38
- justify-content: space-between;
39
48
  margin-bottom: units.$u1;
40
49
 
41
50
  @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
@@ -63,4 +72,5 @@
63
72
  @mixin interactions() {
64
73
  display: flex;
65
74
  justify-content: space-between;
75
+ margin-left: auto;
66
76
  }
@@ -38,6 +38,27 @@ dso-card {
38
38
  @extend %card-grid;
39
39
  }
40
40
 
41
+ h2[slot="heading"],
42
+ h3[slot="heading"],
43
+ h4[slot="heading"],
44
+ h5[slot="heading"] {
45
+ align-items: center;
46
+ display: flex;
47
+ font-size: 1.125em;
48
+ margin-bottom: 0;
49
+ margin-top: 0;
50
+
51
+ span {
52
+ margin-right: units.$u1;
53
+
54
+ + dso-icon,
55
+ + svg.di {
56
+ flex-shrink: 0;
57
+ position: relative;
58
+ }
59
+ }
60
+ }
61
+
41
62
  .dso-card-heading,
42
63
  *[slot="heading"] {
43
64
  h2:first-child,
@@ -78,6 +99,11 @@ dso-card {
78
99
  }
79
100
  }
80
101
 
102
+ *[slot="addon"] {
103
+ margin-left: units.$u2;
104
+ margin-right: units.$u1;
105
+ }
106
+
81
107
  .dso-rich-content.dso-rich-content {
82
108
  :first-child {
83
109
  margin-top: 0;
@@ -11,6 +11,7 @@
11
11
 
12
12
  .dso-document-header {
13
13
  background-color: colors.$grijs-5;
14
+ color: colors.$zwart;
14
15
  padding: grid-variables.$grid-gutter-width * 0.5;
15
16
  margin-left: grid-variables.$grid-gutter-width * -0.5;
16
17
  margin-right: grid-variables.$grid-gutter-width * -0.5;
@@ -32,6 +32,7 @@
32
32
 
33
33
  .dso-document-list-item-heading {
34
34
  background-color: colors.$grijs-5;
35
+ color: colors.$zwart;
35
36
  padding: css-grid-variables.$grid-gutter-width * 0.5;
36
37
  width: 100%;
37
38
 
@@ -4,7 +4,6 @@
4
4
  @use "../../variables/colors";
5
5
  @use "../../variables/scaffolding";
6
6
  @use "../../variables/typography";
7
- @use "../../variables/zindex";
8
7
 
9
8
  @use "../anchor";
10
9
 
@@ -12,7 +11,6 @@
12
11
 
13
12
  @mixin root() {
14
13
  display: inline-block;
15
- position: relative;
16
14
  }
17
15
 
18
16
  @mixin children() {
@@ -21,6 +19,8 @@
21
19
  > .dso-secondary,
22
20
  > .dso-tertiary,
23
21
  > .btn {
22
+ position: relative;
23
+
24
24
  &::after {
25
25
  content: "";
26
26
  display: inline-block;
@@ -62,13 +62,8 @@
62
62
  border: 1px solid dropdown-menu-variables.$border-color;
63
63
  box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.4);
64
64
  font-size: typography.$root-font-size-base;
65
- margin: 2px 0 0;
66
65
  min-width: 160px;
67
66
  padding: 5px 0;
68
- position: absolute;
69
- text-align: left;
70
- top: 100%;
71
- z-index: zindex.$dropdown-options;
72
67
 
73
68
  li {
74
69
  list-style: none;
@@ -135,9 +130,3 @@
135
130
  }
136
131
  }
137
132
  }
138
-
139
- @mixin align-right() {
140
- .dso-dropdown-options {
141
- right: 0;
142
- }
143
- }
@@ -1,5 +1,6 @@
1
1
  @use "../../di";
2
2
  @use "../../variables/units";
3
+ @use "../../variables/zindex";
3
4
 
4
5
  @use "../dropdown-menu";
5
6
 
@@ -81,6 +82,8 @@
81
82
  @include dropdown-menu.children();
82
83
  @include icons();
83
84
 
85
+ position: relative;
86
+
84
87
  &.dso-open {
85
88
  @include icons-open();
86
89
  }
@@ -107,7 +110,17 @@
107
110
  }
108
111
 
109
112
  &.dso-dropdown-align-right {
110
- @include dropdown-menu.align-right();
113
+ .dso-dropdown-options {
114
+ right: 0;
115
+ }
116
+ }
117
+
118
+ .dso-dropdown-options {
119
+ margin: 2px 0 0;
120
+ position: absolute;
121
+ text-align: left;
122
+ top: 100%;
123
+ z-index: zindex.$dropdown-options;
111
124
  }
112
125
  }
113
126
 
@@ -116,10 +129,6 @@ dso-dropdown-menu {
116
129
  @include dropdown-menu.children();
117
130
  @include icons();
118
131
 
119
- &[dropdown-align="right"] {
120
- @include dropdown-menu.align-right();
121
- }
122
-
123
132
  &[open] {
124
133
  @include icons-open();
125
134
  }
File without changes
@@ -0,0 +1,7 @@
1
+ @use "../../variables/units";
2
+
3
+ dso-expandable-heading {
4
+ *[slot="addons-end"] {
5
+ margin-left: units.$u1;
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ # `<dso-expandable-heading>`
@@ -13,6 +13,7 @@ footer {
13
13
 
14
14
  background-color: colors.$grijs-5;
15
15
  border-top: 1px solid css-footer-variables.$border-color;
16
+ color: colors.$zwart;
16
17
  display: block;
17
18
  margin-top: units.$u6;
18
19
  padding-bottom: units.$u6;
@@ -27,19 +28,19 @@ footer {
27
28
  &:focus,
28
29
  &:hover {
29
30
  &::before {
30
- @include di.base("chevron-right-grijs90");
31
+ @include di.base("chevron-right-zwart");
31
32
  }
32
33
  }
33
34
 
34
35
  &.download {
35
36
  &::after {
36
- @include di.base("download-grijs90");
37
+ @include di.base("download-zwart");
37
38
  }
38
39
  }
39
40
 
40
41
  &.extern {
41
42
  &::after {
42
- @include di.base("external-link-grijs90");
43
+ @include di.base("external-link-zwart");
43
44
  }
44
45
  }
45
46
  }
@@ -47,7 +48,7 @@ footer {
47
48
 
48
49
  h2 {
49
50
  border-bottom: 1px solid css-footer-variables.$header-border-color;
50
- color: colors.$grijs-90;
51
+ color: colors.$zwart;
51
52
  font-size: 1.25em;
52
53
  font-weight: 700;
53
54
  margin-bottom: units.$u2;
@@ -61,7 +62,7 @@ footer {
61
62
  &.active,
62
63
  &:active,
63
64
  &:focus {
64
- color: colors.$grijs-90;
65
+ color: colors.$zwart;
65
66
  }
66
67
 
67
68
  &#{button.$not-dso-buttons}:visited {
@@ -70,7 +71,7 @@ footer {
70
71
  &.active,
71
72
  &:active,
72
73
  &:focus {
73
- color: colors.$grijs-90;
74
+ color: colors.$zwart;
74
75
  }
75
76
  }
76
77
  }
@@ -120,6 +120,7 @@ form {
120
120
  @include css-grid-mixins.full-width-row(css-grid-variables.$grid-gutter-width);
121
121
 
122
122
  background-color: css-grid-variables.$featured-background-color;
123
+ color: colors.$zwart;
123
124
  }
124
125
  }
125
126
 
@@ -1,6 +1,5 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/colors";
3
- @use "../../variables/scaffolding";
4
3
 
5
4
  @use "../button";
6
5
  @use "../step-counter";
@@ -9,6 +8,7 @@
9
8
 
10
9
  @mixin root() {
11
10
  background-color: colors.$grijs-5;
11
+ color: colors.$zwart;
12
12
  margin-top: units.$u2;
13
13
  padding: units.$u2;
14
14
  margin-bottom: units.$vertical-spacing-large;
@@ -73,22 +73,13 @@
73
73
  @mixin exoticChildren() {
74
74
  .dso-tertiary:not([disabled]),
75
75
  .btn-link:not([disabled]) {
76
- color: colors.$grijs-90;
77
-
78
- &:hover,
79
- &:focus {
80
- &,
81
- dso-icon,
82
- svg.di {
83
- color: colors.$grijs-60;
84
- }
85
- }
76
+ color: colors.$zwart;
86
77
  }
87
78
 
88
79
  a,
89
80
  a:visited {
90
81
  &#{button.$not-dso-buttons} {
91
- color: scaffolding.$text-color;
82
+ color: colors.$zwart;
92
83
  }
93
84
  }
94
85
  }
@@ -24,19 +24,19 @@
24
24
  &:focus,
25
25
  &:hover {
26
26
  &::before {
27
- @include di.base("chevron-right-grijs90");
27
+ @include di.base("chevron-right-zwart");
28
28
  }
29
29
  }
30
30
 
31
31
  &.download {
32
32
  &::after {
33
- @include di.base("download-grijs90");
33
+ @include di.base("download-zwart");
34
34
  }
35
35
  }
36
36
 
37
37
  &.extern {
38
38
  &::after {
39
- @include di.base("external-link-grijs90");
39
+ @include di.base("external-link-zwart");
40
40
  }
41
41
  }
42
42
  }
@@ -64,19 +64,19 @@ dso-highlight-box {
64
64
  &:focus,
65
65
  &:hover {
66
66
  &::before {
67
- @include di.base("chevron-right-grijs90");
67
+ @include di.base("chevron-right-zwart");
68
68
  }
69
69
  }
70
70
 
71
71
  &.download {
72
72
  &::after {
73
- @include di.base("download-grijs90");
73
+ @include di.base("download-zwart");
74
74
  }
75
75
  }
76
76
 
77
77
  &.extern {
78
78
  &::after {
79
- @include di.base("external-link-grijs90");
79
+ @include di.base("external-link-zwart");
80
80
  }
81
81
  }
82
82
  }
@@ -1,10 +1,10 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/colors";
3
- @use "../../variables/scaffolding";
4
3
  @use "../button";
5
4
 
6
5
  @mixin root() {
7
6
  background-color: colors.$grijs-5;
7
+ color: colors.$zwart;
8
8
  padding: units.$u2 units.$u4 units.$u2 units.$u2;
9
9
  position: relative;
10
10
 
@@ -35,7 +35,7 @@
35
35
  &:focus,
36
36
  &:active,
37
37
  &:visited {
38
- color: scaffolding.$text-color;
38
+ color: colors.$zwart;
39
39
  }
40
40
 
41
41
  &:active {
@@ -9,7 +9,7 @@
9
9
 
10
10
  > button {
11
11
  &::before {
12
- @include di.base("times-grijs90");
12
+ @include di.base("times-zwart");
13
13
 
14
14
  content: "";
15
15
  display: inline-block;