dso-toolkit 65.0.2 → 66.1.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/CHANGELOG.md +21 -0
- package/dist/dso.css +81 -215
- package/dist/dso.css.map +1 -1
- package/dist/dso.min.css +1 -1
- package/dist/dso.min.css.map +1 -1
- package/dist/index.js +7 -5
- package/package.json +4 -4
- package/src/components/card/_index.scss +0 -1
- package/src/components/card/card.scss +89 -76
- package/src/components/card/card.variables.scss +3 -0
- package/src/components/document-card/_index.scss +1 -0
- package/src/components/document-card/document-card.variables.scss +8 -0
- package/src/components/info-button/info-button.mixins.scss +1 -1
- package/src/components/plekinfo-card/_index.scss +1 -0
- package/src/components/plekinfo-card/plekinfo-card.variables.scss +12 -0
- package/src/components/rich-content/rich-content.mixins.scss +1 -1
- package/src/components/rich-content/rich-content.scss +2 -2
- package/src/variables/colors.scss +4 -0
- package/src/components/card/card.mixins.scss +0 -80
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";
|
|
@@ -49,22 +50,23 @@ export * from "./components/legend-item";
|
|
|
49
50
|
export * from "./components/link-list";
|
|
50
51
|
export * from "./components/list";
|
|
51
52
|
export * from "./components/list-button";
|
|
52
|
-
export
|
|
53
|
+
export * from "./components/logo";
|
|
54
|
+
export * from "./components/map-controls";
|
|
53
55
|
export * from "./components/mark-bar";
|
|
54
56
|
export * from "./components/modal";
|
|
55
|
-
export
|
|
56
|
-
export { storiesOfNavbar } from "./components/navbar/navbar.stories-of.js";
|
|
57
|
+
export * from "./components/navbar";
|
|
57
58
|
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";
|
|
64
66
|
export * from "./components/input-range";
|
|
65
67
|
export * from "./components/renvooi";
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
+
export * from "./components/responsive-element";
|
|
69
|
+
export * from "./components/rich-content";
|
|
68
70
|
export { storiesOfRowEqualHeights, } from "./components/row-equal-heights/row-equal-heights.stories-of.js";
|
|
69
71
|
export { storiesOfScrollable } from "./components/scrollable/scrollable.stories-of.js";
|
|
70
72
|
export { storiesOfSearchBar } from "./components/search-bar/search-bar.stories-of.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": "
|
|
5
|
+
"version": "66.1.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "gulp"
|
|
8
8
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"concurrently": "^9.0.1",
|
|
45
45
|
"css": "^3.0.0",
|
|
46
46
|
"cssnano": "^7.0.6",
|
|
47
|
-
"del": "^
|
|
47
|
+
"del": "^8.0.0",
|
|
48
48
|
"escape-string-regexp": "^5.0.0",
|
|
49
49
|
"gulp": "^5.0.0",
|
|
50
50
|
"gulp-cheerio": "^1.0.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"prettier": "^3.3.3",
|
|
63
63
|
"react": "^18.3.1",
|
|
64
64
|
"react-dom": "^18.3.1",
|
|
65
|
-
"sass": "1.79.
|
|
65
|
+
"sass": "1.79.5",
|
|
66
66
|
"through2": "^4.0.2",
|
|
67
|
-
"typescript": "
|
|
67
|
+
"typescript": "~5.5.4",
|
|
68
68
|
"uuid": "^10.0.0",
|
|
69
69
|
"vinyl-sourcemaps-apply": "^0.2.1"
|
|
70
70
|
},
|
|
@@ -2,56 +2,68 @@
|
|
|
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
|
-
|
|
12
|
-
|
|
10
|
+
&:has(.dso-card-heading a:is(:hover, :focus-visible)) {
|
|
11
|
+
background-color: colors.$grijs-5;
|
|
13
12
|
|
|
14
|
-
dso-card {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
.dso-card-heading a:hover {
|
|
14
|
+
color: card-variables.$heading-anchor-hover-color;
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
&.dso-is-selectable {
|
|
20
|
+
.dso-card-container {
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: 1fr minmax(0, 100%);
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
.dso-card-heading,
|
|
25
|
+
.dso-card-content {
|
|
26
|
+
grid-column: 2 /-1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dso-rich-content.dso-rich-content {
|
|
32
|
+
:first-child {
|
|
33
|
+
margin-block-start: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:last-child {
|
|
37
|
+
margin-block-end: 0;
|
|
25
38
|
}
|
|
26
39
|
}
|
|
27
40
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
.dso-selectable {
|
|
42
|
+
label {
|
|
43
|
+
font-size: 0;
|
|
44
|
+
}
|
|
31
45
|
}
|
|
32
46
|
}
|
|
33
47
|
|
|
34
|
-
.dso-card,
|
|
35
48
|
dso-card {
|
|
36
|
-
|
|
49
|
+
.dso-card-heading a {
|
|
50
|
+
text-decoration: none;
|
|
37
51
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
dso-icon:last-child {
|
|
53
|
+
align-self: flex-start;
|
|
54
|
+
}
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
h2[slot="heading"],
|
|
44
58
|
h3[slot="heading"],
|
|
45
59
|
h4[slot="heading"],
|
|
46
60
|
h5[slot="heading"] {
|
|
47
|
-
align-items: center;
|
|
48
|
-
display: flex;
|
|
49
61
|
font-size: 1.125em;
|
|
50
62
|
margin-block-end: 0;
|
|
51
63
|
margin-block-start: 0;
|
|
52
64
|
|
|
53
65
|
span {
|
|
54
|
-
margin-inline-end: units.$u1;
|
|
66
|
+
margin-inline-end: units.$u1 * 0.5;
|
|
55
67
|
|
|
56
68
|
+ dso-icon,
|
|
57
69
|
+ svg.di {
|
|
@@ -61,79 +73,80 @@ dso-card {
|
|
|
61
73
|
}
|
|
62
74
|
}
|
|
63
75
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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;
|
|
76
|
+
div[slot="content"] {
|
|
77
|
+
--_dt-rich-content-margin-block: #{units.$u1};
|
|
78
|
+
--_dt-rich-content-margin-block-end: 0;
|
|
79
|
+
--_dt-rich-content-margin-block-start: 0;
|
|
80
|
+
}
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
position: relative;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
82
|
+
dso-selectable {
|
|
83
|
+
label {
|
|
84
|
+
font-size: 0;
|
|
85
85
|
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
86
88
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
&#{button.$not-dso-buttons}:visited,
|
|
92
|
-
&:active,
|
|
93
|
-
&:focus {
|
|
94
|
-
color: card-variables.$heading-anchor-color;
|
|
95
|
-
}
|
|
89
|
+
.dso-card-container {
|
|
90
|
+
padding-block: units.$u2;
|
|
91
|
+
padding-inline: units.$u2;
|
|
92
|
+
inline-size: 100%;
|
|
96
93
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
text-decoration: underline;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
94
|
+
&.dso-card-active {
|
|
95
|
+
background-color: card-variables.$background-color-active;
|
|
102
96
|
}
|
|
103
97
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
margin-inline-end: units.$u1;
|
|
98
|
+
.dso-card-selectable {
|
|
99
|
+
grid-row: span 2;
|
|
107
100
|
}
|
|
101
|
+
}
|
|
108
102
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
.dso-card-heading {
|
|
104
|
+
align-items: center;
|
|
105
|
+
display: flex;
|
|
106
|
+
margin-block-end: units.$u1;
|
|
107
|
+
|
|
108
|
+
h2:first-child,
|
|
109
|
+
h3:first-child,
|
|
110
|
+
h4:first-child,
|
|
111
|
+
h5:first-child {
|
|
112
|
+
align-items: center;
|
|
113
|
+
display: flex;
|
|
114
|
+
font-size: 1.125em;
|
|
115
|
+
margin-block-end: 0;
|
|
116
|
+
margin-block-start: 0;
|
|
117
|
+
|
|
118
|
+
span {
|
|
119
|
+
margin-inline-end: units.$u1 * 0.5;
|
|
120
|
+
|
|
121
|
+
+ dso-icon,
|
|
122
|
+
+ svg.di {
|
|
123
|
+
flex-shrink: 0;
|
|
124
|
+
position: relative;
|
|
125
|
+
}
|
|
112
126
|
}
|
|
113
127
|
}
|
|
114
128
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
@include card-mixins.selectable();
|
|
118
|
-
}
|
|
129
|
+
a {
|
|
130
|
+
text-decoration: none;
|
|
119
131
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
132
|
+
&,
|
|
133
|
+
&#{button.$not-dso-buttons}:visited,
|
|
134
|
+
&:active,
|
|
135
|
+
&:focus-visible {
|
|
136
|
+
color: card-variables.$heading-anchor-color;
|
|
137
|
+
}
|
|
125
138
|
}
|
|
126
139
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
block-size: 26px;
|
|
130
|
-
inline-size: 30px;
|
|
140
|
+
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
141
|
+
flex-wrap: wrap;
|
|
131
142
|
}
|
|
132
143
|
}
|
|
133
144
|
|
|
134
145
|
.dso-card-interactions,
|
|
135
146
|
[slot="interactions"] {
|
|
136
|
-
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
margin-inline-start: auto;
|
|
137
150
|
|
|
138
151
|
.dso-card-interaction {
|
|
139
152
|
align-items: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "document-card.variables";
|
|
@@ -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;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
@include rich-content.children();
|
|
5
5
|
|
|
6
6
|
> :first-child:not(hr, .dso-button-row) {
|
|
7
|
-
margin-block-start: rich-content.$margin-block-start * 0.5;
|
|
7
|
+
margin-block-start: var(--_dt-rich-content-margin-block-start, rich-content.$margin-block-start * 0.5);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
> :last-child:not(hr, .dso-button-row) {
|
|
11
|
-
margin-block-end: rich-content.$margin-block-end * 0.5;
|
|
11
|
+
margin-block-end: var(--_dt-rich-content-margin-block-end, rich-content.$margin-block-end * 0.5);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -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
|
-
}
|