dso-toolkit 62.18.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.18.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.
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";