dso-toolkit 65.0.1 → 66.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/dist/index.js CHANGED
@@ -24,6 +24,7 @@ export * from "./components/date-picker";
24
24
  export * from "./components/date-picker-legacy";
25
25
  export * from "./components/definition-list";
26
26
  export * from "./components/description";
27
+ export * from "./components/document-card";
27
28
  export * from "./components/document-component";
28
29
  export * from "./components/document-header";
29
30
  export * from "./components/document-list";
@@ -58,6 +59,7 @@ export * from "./components/ozon-content";
58
59
  export * from "./components/pagination";
59
60
  export * from "./components/panel";
60
61
  export * from "./components/paragraph";
62
+ export * from "./components/plekinfo-card";
61
63
  export * from "./components/progress-bar";
62
64
  export * from "./components/progress-indicator";
63
65
  export * from "./components/project-item";
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": "65.0.1",
5
+ "version": "66.0.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -32,7 +32,7 @@
32
32
  "@storybook/addons": "7.6.20",
33
33
  "@storybook/client-api": "7.6.20",
34
34
  "@storybook/types": "7.6.20",
35
- "@types/css": "^0.0.37",
35
+ "@types/css": "^0.0.38",
36
36
  "@types/gulp": "^4.0.17",
37
37
  "@types/gulp-cheerio": "^0.0.38",
38
38
  "@types/gulp-filter": "^3.0.39",
@@ -41,9 +41,9 @@
41
41
  "@types/gulp-rename": "^2.0.6",
42
42
  "@types/list-stream": "^1.0.3",
43
43
  "@types/through2": "^2.0.41",
44
- "concurrently": "^8.2.2",
44
+ "concurrently": "^9.0.1",
45
45
  "css": "^3.0.0",
46
- "cssnano": "^7.0.5",
46
+ "cssnano": "^7.0.6",
47
47
  "del": "^7.1.0",
48
48
  "escape-string-regexp": "^5.0.0",
49
49
  "gulp": "^5.0.0",
@@ -58,11 +58,11 @@
58
58
  "list-stream": "^2.1.0",
59
59
  "markdown-to-jsx": "^7.5.0",
60
60
  "plugin-error": "^2.0.1",
61
- "postcss": "^8.4.44",
61
+ "postcss": "^8.4.47",
62
62
  "prettier": "^3.3.3",
63
63
  "react": "^18.3.1",
64
64
  "react-dom": "^18.3.1",
65
- "sass": "^1.77.8",
65
+ "sass": "1.79.4",
66
66
  "through2": "^4.0.2",
67
67
  "typescript": "^5.5.4",
68
68
  "uuid": "^10.0.0",
@@ -453,31 +453,16 @@
453
453
  }
454
454
  }
455
455
 
456
- @mixin map-focus() {
457
- $focus-map: (
458
- "background-color": button-variables.$secondary-hover-background-color,
459
- "border-color": button-variables.$secondary-hover-background-color,
460
- "color": colors.$wit,
461
- "type-download-di": "download-wit",
462
- "type-extern-di": "external-link-wit",
463
- );
464
-
465
- &:focus-visible {
466
- @include _shared-variant($focus-map);
467
-
468
- outline: none;
469
- }
470
- }
471
-
472
456
  @mixin map() {
473
457
  @include secondary($modifiers: false);
474
- @include map-focus();
475
-
476
- border: 0;
477
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
478
- font-weight: 600;
479
- margin-inline-end: units.$u2;
480
- padding-block: units.$u1;
481
- padding-inline: units.$u2;
482
- white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- No word wrapping in buttons on maps
458
+
459
+ & {
460
+ border: 0;
461
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);
462
+ font-weight: 600;
463
+ margin-inline-end: units.$u2;
464
+ padding-block: units.$u1;
465
+ padding-inline: units.$u2;
466
+ white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- No word wrapping in buttons on maps
467
+ }
483
468
  }
@@ -1,2 +1 @@
1
- @forward "card.mixins";
2
1
  @forward "card.variables";
@@ -2,56 +2,64 @@
2
2
  @use "../../variables/media-query-breakpoints";
3
3
  @use "../../variables/units";
4
4
 
5
- @use "card.mixins" as card-mixins;
6
5
  @use "card.variables" as card-variables;
7
6
 
8
7
  @use "../button";
9
8
 
10
9
  .dso-card {
11
- @include card-mixins.root();
12
- }
10
+ &:has(.dso-card-heading a:is(:hover, :focus-visible)) {
11
+ background-color: colors.$grijs-5;
13
12
 
14
- dso-card {
15
- &[is-selectable],
16
- &[has-image] {
17
- @extend %card-grid;
13
+ .dso-card-heading a:hover {
14
+ color: card-variables.$heading-anchor-hover-color;
15
+ text-decoration: underline;
16
+ }
18
17
  }
19
18
 
20
- a[slot="heading"] {
21
- text-decoration: none;
19
+ &.dso-is-selectable {
20
+ .dso-card-container {
21
+ display: grid;
22
+ grid-template-columns: 1fr minmax(0, 100%);
22
23
 
23
- dso-icon:last-child {
24
- align-self: flex-start;
24
+ .dso-card-heading,
25
+ .dso-card-content {
26
+ grid-column: 2 /-1;
27
+ }
25
28
  }
26
29
  }
27
30
 
28
- &:hover a[slot="heading"] {
29
- color: card-variables.$heading-anchor-hover-color;
30
- text-decoration: underline;
31
+ .dso-rich-content.dso-rich-content {
32
+ :first-child {
33
+ margin-block-start: 0;
34
+ }
35
+ }
36
+
37
+ .dso-selectable {
38
+ label {
39
+ font-size: 0;
40
+ }
31
41
  }
32
42
  }
33
43
 
34
- .dso-card,
35
44
  dso-card {
36
- @include card-mixins.base();
45
+ .dso-card-heading a {
46
+ text-decoration: none;
37
47
 
38
- &.dso-is-selectable,
39
- &.dso-has-image {
40
- @extend %card-grid;
48
+ dso-icon:last-child {
49
+ align-self: flex-start;
50
+ }
41
51
  }
42
52
 
43
53
  h2[slot="heading"],
44
54
  h3[slot="heading"],
45
55
  h4[slot="heading"],
46
56
  h5[slot="heading"] {
47
- align-items: center;
48
- display: flex;
49
57
  font-size: 1.125em;
50
58
  margin-block-end: 0;
51
59
  margin-block-start: 0;
52
60
 
53
61
  span {
54
- margin-inline-end: units.$u1;
62
+ margin-inline-end: units.$u1 * 0.5;
55
63
 
56
64
  + dso-icon,
57
65
  + svg.di {
@@ -61,79 +69,74 @@ dso-card {
61
69
  }
62
70
  }
63
71
 
64
- .dso-card-heading,
65
- *[slot="heading"] {
66
- h2:first-child,
67
- h3:first-child,
68
- h4:first-child,
69
- h5:first-child {
70
- align-items: center;
71
- display: flex;
72
- font-size: 1.125em;
73
- margin-block-end: 0;
74
- margin-block-start: 0;
75
-
76
- span {
77
- margin-inline-end: units.$u1;
78
-
79
- + dso-icon,
80
- + svg.di {
81
- flex-shrink: 0;
82
- position: relative;
83
- }
84
- }
72
+ dso-selectable {
73
+ label {
74
+ font-size: 0;
85
75
  }
76
+ }
77
+ }
86
78
 
87
- > a {
88
- text-decoration: none;
89
-
90
- &,
91
- &#{button.$not-dso-buttons}:visited,
92
- &:active,
93
- &:focus {
94
- color: card-variables.$heading-anchor-color;
95
- }
79
+ .dso-card-container {
80
+ padding-block: units.$u2 units.$u1;
81
+ padding-inline: units.$u2;
82
+ inline-size: 100%;
96
83
 
97
- &:hover {
98
- color: card-variables.$heading-anchor-color;
99
- text-decoration: underline;
100
- }
101
- }
84
+ &.dso-card-active {
85
+ background-color: card-variables.$background-color-active;
102
86
  }
103
87
 
104
- *[slot="addon"] {
105
- margin-inline-start: units.$u2;
106
- margin-inline-end: units.$u1;
88
+ .dso-card-selectable {
89
+ grid-row: span 2;
107
90
  }
91
+ }
108
92
 
109
- .dso-rich-content.dso-rich-content {
110
- :first-child {
111
- margin-block-start: 0;
93
+ .dso-card-heading {
94
+ align-items: center;
95
+ display: flex;
96
+ margin-block-end: units.$u1;
97
+
98
+ h2:first-child,
99
+ h3:first-child,
100
+ h4:first-child,
101
+ h5:first-child {
102
+ align-items: center;
103
+ display: flex;
104
+ font-size: 1.125em;
105
+ margin-block-end: 0;
106
+ margin-block-start: 0;
107
+
108
+ span {
109
+ margin-inline-end: units.$u1 * 0.5;
110
+
111
+ + dso-icon,
112
+ + svg.di {
113
+ flex-shrink: 0;
114
+ position: relative;
115
+ }
112
116
  }
113
117
  }
114
118
 
115
- .dso-selectable,
116
- dso-selectable {
117
- @include card-mixins.selectable();
118
- }
119
+ a {
120
+ text-decoration: none;
119
121
 
120
- img {
121
- display: flex;
122
- block-size: units.$u3;
123
- inline-size: units.$u3;
124
- max-inline-size: unset;
122
+ &,
123
+ &#{button.$not-dso-buttons}:visited,
124
+ &:active,
125
+ &:focus-visible {
126
+ color: card-variables.$heading-anchor-color;
127
+ }
125
128
  }
126
129
 
127
- &.dso-wide-image img,
128
- &[image-shape="wide"] img {
129
- block-size: 26px;
130
- inline-size: 30px;
130
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
131
+ flex-wrap: wrap;
131
132
  }
132
133
  }
133
134
 
134
135
  .dso-card-interactions,
135
136
  [slot="interactions"] {
136
- @include card-mixins.interactions();
137
+ display: flex;
138
+ justify-content: space-between;
139
+ margin-inline-start: auto;
137
140
 
138
141
  .dso-card-interaction {
139
142
  align-items: center;
@@ -1,4 +1,7 @@
1
1
  @use "../../variables/colors";
2
2
 
3
+ $background-color-hover: colors.$grijs-5;
4
+ $background-color-active: colors.$grijs-10;
5
+
3
6
  $heading-anchor-color: colors.$bosgroen;
4
7
  $heading-anchor-hover-color: colors.$bosgroen;
@@ -0,0 +1 @@
1
+ @forward "document-card.variables";
@@ -0,0 +1,8 @@
1
+ @use "../../variables/colors";
2
+
3
+ $background-color-hover: colors.$grijs-5;
4
+
5
+ $background-color-active: colors.$grijs-10;
6
+
7
+ $heading-anchor-color: colors.$bosgroen;
8
+ $heading-anchor-hover-color: colors.$bosgroen;
@@ -7,7 +7,7 @@
7
7
  background-color: transparent;
8
8
  color: colors.$grasgroen;
9
9
  border: 0;
10
- margin-inline-start: units.$u1;
10
+ margin-inline-start: var(--_dt-info-button-margin-inline-start, units.$u1);
11
11
  padding: 0;
12
12
  }
13
13
 
@@ -1,3 +1,5 @@
1
+ @use "sass:color";
2
+
1
3
  @use "../../variables/colors";
2
4
  @use "../../variables/media-query-breakpoints";
3
5
  @use "../../variables/units";
@@ -27,7 +29,7 @@
27
29
  border: 0;
28
30
 
29
31
  &::backdrop {
30
- background-color: fade-out(modal-variables.$backdrop-bg, modal-variables.$backdrop-opacity);
32
+ background-color: color.scale(modal-variables.$backdrop-bg, $alpha: modal-variables.$backdrop-opacity);
31
33
  }
32
34
 
33
35
  .dso-dialog {
@@ -8,7 +8,7 @@ $small-modal-vh: 380px;
8
8
  $min-modal-block-size: 216px;
9
9
 
10
10
  $backdrop-bg: colors.$wit;
11
- $backdrop-opacity: 0.2;
11
+ $backdrop-opacity: -20%;
12
12
  $content-bg: colors.$wit;
13
13
  $border-color: colors.$grijs-20;
14
14
 
@@ -0,0 +1 @@
1
+ @forward "plekinfo-card.variables";
@@ -0,0 +1,12 @@
1
+ @use "../../variables/colors";
2
+
3
+ $background-color-hover: colors.$grijs-5;
4
+ $background-color-hover-voegtoe: colors.$lime-20-5;
5
+ $background-color-hover-verwijder: colors.$rood-20-5;
6
+
7
+ $background-color-active: colors.$grijs-10;
8
+ $background-color-active-voegtoe: colors.$lime-20-10;
9
+ $background-color-active-verwijder: colors.$rood-20-10;
10
+
11
+ $heading-anchor-color: colors.$bosgroen;
12
+ $heading-anchor-hover-color: colors.$bosgroen;
@@ -33,9 +33,13 @@ $wit: #fff;
33
33
 
34
34
  $lime: #79b929; // 100% tint
35
35
  $lime-20: #e4f1d4; // 20% tint
36
+ $lime-20-5: #d8e5c9; // 20% tint 5% zwart
37
+ $lime-20-10: #ced9bf; // 20% tint 10% zwart
36
38
  $rood: #ce3f51; // 100% tint
37
39
  $rood-110: #b62f41; // 110% tint
38
40
  $rood-20: #f5d8dc; // 20% tint
41
+ $rood-20-5: #e9cdd1; // 20% tint 5% zwart
42
+ $rood-20-10: #ddc3c6; // 20% tint 10% zwart
39
43
  $geel: #dcd400; // 100% tint
40
44
  $geel-20: #f8f6cc; // 20% tint
41
45
  $lichtblauw: #6ca4d9; // 100% tint
@@ -1,80 +0,0 @@
1
- @use "../../variables/units";
2
- @use "../../variables/colors";
3
- @use "../../variables/media-query-breakpoints";
4
- @use "../../components/button";
5
-
6
- %card-grid {
7
- display: grid;
8
- grid-template-columns: 1fr minmax(0, 100%);
9
-
10
- .dso-card-heading,
11
- .dso-card-content {
12
- grid-column: 2 /-1;
13
- }
14
- }
15
-
16
- %card-grid-addon {
17
- grid-row: span 2;
18
- }
19
-
20
- @mixin base() {
21
- padding-block: units.$u2 units.$u1;
22
- padding-inline: units.$u2;
23
- inline-size: 100%;
24
-
25
- &:hover {
26
- background-color: colors.$grijs-5;
27
- cursor: pointer;
28
-
29
- .dso-card-heading > a {
30
- text-decoration: underline;
31
- }
32
- }
33
-
34
- &:not([href]):not([clickable]),
35
- &:not([href])[clickable="false"],
36
- &.dso-not-clickable {
37
- > h2,
38
- :not(a) > h2 {
39
- color: colors.$zwart;
40
- }
41
-
42
- &:hover {
43
- cursor: initial;
44
- }
45
- }
46
- }
47
-
48
- @mixin root() {
49
- .dso-card-heading {
50
- align-items: center;
51
- display: flex;
52
- margin-block-end: units.$u1;
53
-
54
- @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
55
- flex-wrap: wrap;
56
- }
57
- }
58
-
59
- .dso-card-selectable {
60
- @extend %card-grid-addon;
61
- }
62
-
63
- .dso-card-image {
64
- @extend %card-grid-addon;
65
-
66
- margin-inline-end: units.$u1;
67
- }
68
- }
69
-
70
- @mixin selectable() {
71
- label {
72
- font-size: 0;
73
- }
74
- }
75
-
76
- @mixin interactions() {
77
- display: flex;
78
- justify-content: space-between;
79
- margin-inline-start: auto;
80
- }