dso-toolkit 62.17.0 → 62.19.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/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": "62.17.0",
5
+ "version": "62.19.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "homepage": "https://www.dso-toolkit.nl/",
29
29
  "devDependencies": {
30
- "@prettier/plugin-xml": "^3.2.2",
31
- "@storybook/addon-actions": "7.5.3",
32
- "@storybook/addons": "7.5.3",
33
- "@storybook/client-api": "7.5.3",
34
- "@storybook/types": "7.5.3",
30
+ "@prettier/plugin-xml": "^3.4.1",
31
+ "@storybook/addon-actions": "7.6.17",
32
+ "@storybook/addons": "7.6.17",
33
+ "@storybook/client-api": "7.6.17",
34
+ "@storybook/types": "7.6.17",
35
35
  "@types/css": "^0.0.37",
36
36
  "@types/gulp": "^4.0.17",
37
37
  "@types/gulp-cheerio": "^0.0.38",
@@ -43,7 +43,7 @@
43
43
  "@types/through2": "^2.0.41",
44
44
  "concurrently": "^8.2.2",
45
45
  "css": "^3.0.0",
46
- "cssnano": "^6.0.1",
46
+ "cssnano": "^6.1.2",
47
47
  "del": "^7.1.0",
48
48
  "escape-string-regexp": "^5.0.0",
49
49
  "gulp": "^4.0.2",
@@ -56,13 +56,13 @@
56
56
  "gulp-svgstore": "^9.0.0",
57
57
  "gulp-typescript": "^6.0.0-alpha.1",
58
58
  "list-stream": "^2.1.0",
59
- "markdown-to-jsx": "^7.3.2",
59
+ "markdown-to-jsx": "^7.4.5",
60
60
  "plugin-error": "^2.0.1",
61
- "postcss": "^8.4.31",
62
- "prettier": "^3.1.0",
61
+ "postcss": "^8.4.38",
62
+ "prettier": "^3.2.5",
63
63
  "react": "^18.2.0",
64
64
  "react-dom": "^18.2.0",
65
- "sass": "^1.69.5",
65
+ "sass": "^1.74.1",
66
66
  "through2": "^4.0.2",
67
67
  "typescript": "<5.3.0",
68
68
  "uuid": "^9.0.1",
@@ -50,26 +50,22 @@
50
50
  text-decoration: none;
51
51
  }
52
52
  }
53
+ }
53
54
 
54
- &.alert-success,
55
- &[status="success"] {
56
- @include set-colors.apply(alert-variables.$success-bg, alert-variables.$success-border);
57
- }
55
+ @mixin status-success() {
56
+ @include set-colors.apply(alert-variables.$success-bg, alert-variables.$success-border);
57
+ }
58
58
 
59
- &.alert-error,
60
- &[status="error"] {
61
- @include set-colors.apply(alert-variables.$danger-bg, alert-variables.$danger-border);
62
- }
59
+ @mixin status-error() {
60
+ @include set-colors.apply(alert-variables.$danger-bg, alert-variables.$danger-border);
61
+ }
63
62
 
64
- &.alert-warning,
65
- &[status="warning"] {
66
- @include set-colors.apply(alert-variables.$warning-bg, alert-variables.$warning-border);
67
- }
63
+ @mixin status-warning() {
64
+ @include set-colors.apply(alert-variables.$warning-bg, alert-variables.$warning-border);
65
+ }
68
66
 
69
- &.alert-info,
70
- &[status="info"] {
71
- @include set-colors.apply(alert-variables.$info-bg, alert-variables.$info-border);
72
- }
67
+ @mixin status-info() {
68
+ @include set-colors.apply(alert-variables.$info-bg, alert-variables.$info-border);
73
69
  }
74
70
 
75
71
  @mixin root() {
@@ -15,24 +15,32 @@
15
15
  }
16
16
 
17
17
  &.alert-success {
18
+ @include alert.status-success();
19
+
18
20
  &::before {
19
21
  @include di.base("status-success", alert.$icon-size);
20
22
  }
21
23
  }
22
24
 
23
25
  &.alert-error {
26
+ @include alert.status-error();
27
+
24
28
  &::before {
25
29
  @include di.base("status-error", alert.$icon-size);
26
30
  }
27
31
  }
28
32
 
29
33
  &.alert-warning {
34
+ @include alert.status-warning();
35
+
30
36
  &::before {
31
37
  @include di.base("status-warning", alert.$icon-size);
32
38
  }
33
39
  }
34
40
 
35
41
  &.alert-info {
42
+ @include alert.status-info();
43
+
36
44
  &::before {
37
45
  @include di.base("status-info", alert.$icon-size);
38
46
  }
@@ -1,9 +1,6 @@
1
- @use "../../variables/units";
2
- @use "../list";
3
-
4
1
  @use "document-component.variables" as document-component-variables;
5
2
 
6
- dso-responsive-element {
3
+ dso-responsive-element.dso-document-components {
7
4
  &[small] {
8
5
  dso-document-component {
9
6
  &::part(_annotation-container),
@@ -54,18 +51,6 @@ dso-responsive-element {
54
51
  }
55
52
  }
56
53
 
57
- .dso-document-components {
58
- ul {
59
- @include list.unstyled();
60
-
61
- margin: 0;
62
-
63
- li + li {
64
- margin-top: units.$u1;
65
- }
66
- }
67
- }
68
-
69
54
  dso-document-component[not-applicable] {
70
55
  opacity: 0.6;
71
56
 
@@ -0,0 +1,12 @@
1
+ @use "../../variables/units";
2
+ @use "../list";
3
+
4
+ ul.dso-document-component-list {
5
+ @include list.unstyled();
6
+
7
+ margin: 0;
8
+
9
+ > li + li {
10
+ margin-top: units.$u1;
11
+ }
12
+ }
@@ -60,8 +60,8 @@
60
60
  text-align: left;
61
61
  }
62
62
 
63
- .dso-rich-content {
64
- overflow-x: auto;
63
+ .dso-rich-content:has(table) {
64
+ overflow-x: auto; // facilitate table overflow if needed
65
65
  }
66
66
 
67
67
  legend + .dso-label-container {
@@ -6,18 +6,10 @@
6
6
 
7
7
  @use "../../di";
8
8
 
9
- body.dso-modal-open {
10
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
11
- overflow: hidden;
12
- }
13
-
14
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
15
- .container,
16
- dso-banner,
17
- .dso-banner {
18
- display: none;
19
- }
20
- }
9
+ body:has(dialog[open]),
10
+ body:has(dso-modal.hydrated) {
11
+ // block scrolling of the body when a dialog is open
12
+ overflow: hidden;
21
13
  }
22
14
 
23
15
  .dso-modal {
@@ -1,3 +1,3 @@
1
1
  # `.dso-modal`
2
2
 
3
- Als een modal actief is moet er op `body` een class `.dso-modal-open` worden geplaatst.
3
+ Als een modal actief is zal de `body` dit door middel van CSS automatisch detecteren, en het scrollgedrag 'achter' de modal uitzetten.
@@ -10,3 +10,4 @@ $size: units.$u3;
10
10
  $border-width: 2px;
11
11
  $focus-border-width: 3px;
12
12
  $indeterminate-size: 12px;
13
+ $symbol-indent: units.$u4;
@@ -2,6 +2,22 @@
2
2
 
3
3
  @use "../table";
4
4
 
5
+ @mixin outside-lines-sides() {
6
+ thead {
7
+ border-inline-start: 1px solid table.$th-border-color;
8
+ border-inline-end: 1px solid table.$th-border-color;
9
+ }
10
+ tbody {
11
+ border-inline-start: 1px solid table.$border-color;
12
+ border-inline-end: 1px solid table.$border-color;
13
+ }
14
+ }
15
+
16
+ @mixin outside-lines-topbot() {
17
+ border-block-start: 1px solid table.$th-border-color;
18
+ border-block-end: 1px solid table.$border-color;
19
+ }
20
+
5
21
  @mixin row-variant($state, $background) {
6
22
  // Exact selectors below required to override `.table-striped` and prevent
7
23
  // inheritance to nested tables.
@@ -96,6 +96,67 @@ table.table,
96
96
  }
97
97
  }
98
98
 
99
+ &.dso-table-outside-lines-top {
100
+ border-block-start: 1px solid table.$th-border-color;
101
+ }
102
+
103
+ &.dso-table-outside-lines-bottom {
104
+ border-block-end: 1px solid table.$border-color;
105
+ }
106
+
107
+ &.dso-table-outside-lines-topbot {
108
+ @include css-table-mixins.outside-lines-topbot;
109
+ }
110
+
111
+ &.dso-table-outside-lines-all {
112
+ @include css-table-mixins.outside-lines-topbot;
113
+ @include css-table-mixins.outside-lines-sides;
114
+ }
115
+
116
+ &.dso-table-outside-lines-sides {
117
+ @include css-table-mixins.outside-lines-sides;
118
+ }
119
+
120
+ > thead {
121
+ > tr {
122
+ > td,
123
+ > th {
124
+ &.dso-horizontal-line {
125
+ border-block-end: 1px solid table.$th-border-color;
126
+ }
127
+
128
+ &:not(:last-child) {
129
+ &.dso-vertical-line {
130
+ border-inline-end: 1px solid table.$th-border-color;
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+
137
+ > tbody,
138
+ > tfoot {
139
+ > tr {
140
+ > td,
141
+ > th {
142
+ &:not(:last-child) {
143
+ &.dso-vertical-line {
144
+ border-inline-end: 1px solid table.$border-color;
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
+ > tr:not(:last-child) {
151
+ > td,
152
+ > th {
153
+ &.dso-horizontal-line {
154
+ border-block-end: 1px solid table.$border-color;
155
+ }
156
+ }
157
+ }
158
+ }
159
+
99
160
  th,
100
161
  td {
101
162
  &.dso-text-left {
@@ -128,21 +189,23 @@ table.table,
128
189
  }
129
190
  }
130
191
 
131
- > thead {
132
- > tr {
133
- > td,
134
- > th {
135
- border-bottom: 1px solid table.$th-border-color;
192
+ &:not([class*="dso-table-outside-lines"]) {
193
+ > thead {
194
+ > tr {
195
+ > td,
196
+ > th {
197
+ border-bottom: 1px solid table.$th-border-color;
198
+ }
136
199
  }
137
200
  }
138
- }
139
201
 
140
- > tbody,
141
- > tfoot {
142
- > tr {
143
- > td,
144
- > th {
145
- border-bottom: 1px solid table.$border-color;
202
+ > tbody,
203
+ > tfoot {
204
+ > tr {
205
+ > td,
206
+ > th {
207
+ border-bottom: 1px solid table.$border-color;
208
+ }
146
209
  }
147
210
  }
148
211
  }
package/src/dso.scss CHANGED
@@ -29,6 +29,7 @@
29
29
  @use "components/definition-list/definition-list";
30
30
  @use "components/delete/delete";
31
31
  @use "components/description/description";
32
+ @use "components/document-component-list/document-component-list";
32
33
  @use "components/document-component/document-component";
33
34
  @use "components/document-header/document-header";
34
35
  @use "components/document-list/document-list";