dso-toolkit 66.3.0 → 67.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/CHANGELOG.md +18 -0
- package/dist/dso.css +22 -261
- 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 +1 -2
- package/package.json +6 -5
- package/src/components/form/form.scss +0 -1
- package/src/components/info/info.mixins.scss +2 -0
- package/src/dso.scss +0 -2
- package/src/components/form/form-groups/input-number/form-group-input-number.scss +0 -20
- package/src/components/input-number/_index.scss +0 -1
- package/src/components/input-number/input-number.mixins.scss +0 -40
- package/src/components/input-number/input-number.scss +0 -5
- package/src/components/input-number/readme.md +0 -1
- package/src/components/list-button/_index.scss +0 -2
- package/src/components/list-button/list-button.mixins.scss +0 -213
- package/src/components/list-button/list-button.scss +0 -50
- package/src/components/list-button/list-button.variables.scss +0 -4
package/dist/index.js
CHANGED
|
@@ -42,7 +42,6 @@ export * from "./components/image";
|
|
|
42
42
|
export * from "./components/image-overlay";
|
|
43
43
|
export * from "./components/info";
|
|
44
44
|
export * from "./components/info-button";
|
|
45
|
-
export * from "./components/input-number";
|
|
46
45
|
export { storiesOfJustifyFormGroups, } from "./components/justify-form-groups/justify-form-groups.stories-of.js";
|
|
47
46
|
export * from "./components/label";
|
|
48
47
|
export * from "./components/label-group";
|
|
@@ -77,7 +76,7 @@ export * from "./components/slide-toggle";
|
|
|
77
76
|
export { storiesOfTable } from "./components/table/table.stories-of.js";
|
|
78
77
|
export * from "./components/tabs";
|
|
79
78
|
export * from "./components/tile";
|
|
80
|
-
export
|
|
79
|
+
export * from "./components/tile-grid";
|
|
81
80
|
export * from "./components/toggletip";
|
|
82
81
|
export * from "./components/tooltip";
|
|
83
82
|
export * from "./components/tree-view";
|
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": "67.0.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "gulp"
|
|
8
8
|
},
|
|
@@ -53,19 +53,20 @@
|
|
|
53
53
|
"gulp-postcss": "^10.0.0",
|
|
54
54
|
"gulp-prettier": "^6.0.0",
|
|
55
55
|
"gulp-rename": "^2.0.0",
|
|
56
|
+
"gulp-stylelint-esm": "^3.0.0",
|
|
56
57
|
"gulp-svgstore": "^9.0.0",
|
|
57
58
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
58
59
|
"list-stream": "^2.1.0",
|
|
59
|
-
"markdown-to-jsx": "^7.
|
|
60
|
+
"markdown-to-jsx": "^7.6.2",
|
|
60
61
|
"plugin-error": "^2.0.1",
|
|
61
|
-
"postcss": "^8.4.
|
|
62
|
+
"postcss": "^8.4.49",
|
|
62
63
|
"prettier": "^3.3.3",
|
|
63
64
|
"react": "^18.3.1",
|
|
64
65
|
"react-dom": "^18.3.1",
|
|
65
|
-
"sass": "1.
|
|
66
|
+
"sass": "1.81.0",
|
|
66
67
|
"through2": "^4.0.2",
|
|
67
68
|
"typescript": "~5.5.4",
|
|
68
|
-
"uuid": "^11.0.
|
|
69
|
+
"uuid": "^11.0.3",
|
|
69
70
|
"vinyl-sourcemaps-apply": "^0.2.1"
|
|
70
71
|
},
|
|
71
72
|
"nx": {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
@use "form-groups/confirm/form-group-confirm";
|
|
9
9
|
@use "form-groups/files/form-group-files";
|
|
10
10
|
@use "form-groups/input/form-group-input";
|
|
11
|
-
@use "form-groups/input-number/form-group-input-number";
|
|
12
11
|
@use "form-groups/radios/form-group-radios";
|
|
13
12
|
@use "form-groups/search-bar/form-group-search-bar";
|
|
14
13
|
@use "form-groups/select/form-group-select";
|
package/src/dso.scss
CHANGED
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
@use "components/info/info";
|
|
52
52
|
@use "components/info-button/info-button";
|
|
53
53
|
@use "components/input/input";
|
|
54
|
-
@use "components/input-number/input-number";
|
|
55
54
|
@use "components/insert/insert";
|
|
56
55
|
@use "components/justify-form-groups/justify-form-groups";
|
|
57
56
|
@use "components/label/label";
|
|
@@ -59,7 +58,6 @@
|
|
|
59
58
|
@use "components/legend-item/legend-item";
|
|
60
59
|
@use "components/link-list/link-list";
|
|
61
60
|
@use "components/list/list";
|
|
62
|
-
@use "components/list-button/list-button";
|
|
63
61
|
@use "components/map-controls/map-controls";
|
|
64
62
|
@use "components/mark/mark";
|
|
65
63
|
@use "components/modal/modal";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@use "../../../../variables/units";
|
|
2
|
-
@use "../../../../variables/media-query-breakpoints";
|
|
3
|
-
|
|
4
|
-
@use "../../form.mixins" as css-form-mixins;
|
|
5
|
-
|
|
6
|
-
.form-group.dso-input-number {
|
|
7
|
-
&.dso-required {
|
|
8
|
-
.control-label::after {
|
|
9
|
-
@include css-form-mixins.form-group-required();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
|
|
14
|
-
.form-horizontal & {
|
|
15
|
-
.dso-field-container {
|
|
16
|
-
padding-block-start: #{units.$padding-base-block + 1};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "input-number.mixins";
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
|
|
3
|
-
@mixin root() {
|
|
4
|
-
&:not(.form-group) {
|
|
5
|
-
align-items: center;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
label {
|
|
11
|
-
inline-size: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.dso-input-step-counter {
|
|
15
|
-
align-self: center;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
border: 0;
|
|
18
|
-
display: inline-block;
|
|
19
|
-
block-size: units.$ru3;
|
|
20
|
-
text-align: center;
|
|
21
|
-
inline-size: units.$ru3;
|
|
22
|
-
|
|
23
|
-
&:focus,
|
|
24
|
-
&:active {
|
|
25
|
-
outline: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Chrome, Safari, Edge, Opera
|
|
29
|
-
&::-webkit-outer-spin-button,
|
|
30
|
-
&::-webkit-inner-spin-button {
|
|
31
|
-
-webkit-appearance: none;
|
|
32
|
-
margin: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Firefox
|
|
36
|
-
&[type="number"] {
|
|
37
|
-
-moz-appearance: textfield;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# `.dso-input-number`
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../../variables/colors";
|
|
3
|
-
@use "../../variables/media-query-breakpoints";
|
|
4
|
-
@use "../button";
|
|
5
|
-
|
|
6
|
-
@use "list-button.variables" as list-button-variables;
|
|
7
|
-
|
|
8
|
-
@mixin _state-styling($background-color: inherit, $border-color: inherit, $color: inherit) {
|
|
9
|
-
& {
|
|
10
|
-
background-color: $background-color;
|
|
11
|
-
border-color: $border-color;
|
|
12
|
-
color: $color;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin button-group($input-number-selector, $list-button-selector) {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
|
|
20
|
-
&.dso-disabled {
|
|
21
|
-
> * {
|
|
22
|
-
@include _state-styling(colors.$wit, colors.$grijs-10, colors.$grijs-60);
|
|
23
|
-
|
|
24
|
-
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
25
|
-
& {
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> * {
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
|
|
34
|
-
&:first-child {
|
|
35
|
-
border-radius: list-button-variables.$border-radius 0 0 list-button-variables.$border-radius;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:not(:first-child) {
|
|
39
|
-
border-inline-start-style: none !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:last-child {
|
|
43
|
-
border-radius: 0 list-button-variables.$border-radius list-button-variables.$border-radius 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:only-child {
|
|
47
|
-
border-radius: list-button-variables.$border-radius;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
> #{$input-number-selector} {
|
|
52
|
-
@include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-90);
|
|
53
|
-
|
|
54
|
-
& {
|
|
55
|
-
border-style: solid;
|
|
56
|
-
border-width: 1px;
|
|
57
|
-
flex-wrap: nowrap;
|
|
58
|
-
padding-block: 0;
|
|
59
|
-
padding-inline: units.$u2;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
|
|
63
|
-
justify-content: center;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
> *:hover + #{$input-number-selector},
|
|
68
|
-
> *:focus + #{$input-number-selector} {
|
|
69
|
-
@include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
> *.dso-selected + #{$input-number-selector} {
|
|
73
|
-
@include _state-styling(colors.$wit, button.$secondary-border-color, colors.$grijs-90);
|
|
74
|
-
|
|
75
|
-
& {
|
|
76
|
-
box-shadow:
|
|
77
|
-
inset 0 -1px 0 0 button.$secondary-border-color,
|
|
78
|
-
inset 0 1px 0 0 button.$secondary-border-color,
|
|
79
|
-
inset -1px 0 0 0 button.$secondary-border-color;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
> *:active + #{$input-number-selector},
|
|
84
|
-
> *.active + #{$input-number-selector} {
|
|
85
|
-
&,
|
|
86
|
-
&:hover {
|
|
87
|
-
@include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
> *.disabled + #{$input-number-selector},
|
|
92
|
-
> *[disabled] + #{$input-number-selector} {
|
|
93
|
-
&,
|
|
94
|
-
&:hover {
|
|
95
|
-
@include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-60);
|
|
96
|
-
|
|
97
|
-
& {
|
|
98
|
-
opacity: 1;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
#{$list-button-selector} {
|
|
104
|
-
padding-inline-end: #{units.$u2 - 1};
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@mixin root() {
|
|
109
|
-
@include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-90);
|
|
110
|
-
|
|
111
|
-
& {
|
|
112
|
-
border-radius: button.$border-radius;
|
|
113
|
-
border-width: 1px;
|
|
114
|
-
border-style: solid;
|
|
115
|
-
font-weight: 600;
|
|
116
|
-
padding-block: #{units.$u2 - 1};
|
|
117
|
-
padding-inline: #{units.$u2 - 1} #{units.$u6 - 1};
|
|
118
|
-
position: relative;
|
|
119
|
-
text-align: start;
|
|
120
|
-
white-space: normal;
|
|
121
|
-
inline-size: 100%;
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:hover,
|
|
126
|
-
&:focus {
|
|
127
|
-
@include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&:active,
|
|
131
|
-
&.active {
|
|
132
|
-
&,
|
|
133
|
-
&:hover {
|
|
134
|
-
@include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.disabled,
|
|
139
|
-
&[disabled] {
|
|
140
|
-
&,
|
|
141
|
-
&:hover {
|
|
142
|
-
@include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-60);
|
|
143
|
-
|
|
144
|
-
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
145
|
-
& {
|
|
146
|
-
opacity: 1;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&.dso-selected {
|
|
152
|
-
border-color: colors.$grasgroen;
|
|
153
|
-
border-width: 1px;
|
|
154
|
-
box-shadow:
|
|
155
|
-
inset 0px 0px 0px 1px colors.$grasgroen,
|
|
156
|
-
inset -1px 0px 0px 0px colors.$grasgroen;
|
|
157
|
-
|
|
158
|
-
&.dso-single-count {
|
|
159
|
-
@media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
|
|
160
|
-
border-inline-end: 0;
|
|
161
|
-
box-shadow:
|
|
162
|
-
colors.$grasgroen 0px 1px 0px 0px inset,
|
|
163
|
-
colors.$grasgroen 1px 0px 0px 0px inset,
|
|
164
|
-
colors.$grasgroen 0px -1px 0px 0px inset;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
label {
|
|
170
|
-
cursor: inherit;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
> span {
|
|
174
|
-
display: block;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.dso-sublabel {
|
|
178
|
-
font-weight: 400;
|
|
179
|
-
inline-size: 100%;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
dso-icon,
|
|
183
|
-
svg.di,
|
|
184
|
-
.dso-count {
|
|
185
|
-
block-size: units.$u3;
|
|
186
|
-
position: absolute;
|
|
187
|
-
inset-inline-end: #{units.$u2 - 1};
|
|
188
|
-
inset-block-start: #{units.$u2 - 1};
|
|
189
|
-
inline-size: units.$u3;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
dso-icon,
|
|
193
|
-
svg.di {
|
|
194
|
-
color: colors.$grasgroen;
|
|
195
|
-
page-break-before: always;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.dso-count {
|
|
199
|
-
font-weight: 700;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
|
|
203
|
-
&.dso-selected.dso-single-count {
|
|
204
|
-
&::after {
|
|
205
|
-
inline-size: 0;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@mixin sibling() {
|
|
212
|
-
margin-block-start: list-button-variables.$margin-gap;
|
|
213
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
@use "../button";
|
|
2
|
-
@use "../list-button";
|
|
3
|
-
@use "../selectable";
|
|
4
|
-
@use "../../variables/colors";
|
|
5
|
-
@use "../../variables/units";
|
|
6
|
-
|
|
7
|
-
.dso-button-group {
|
|
8
|
-
@include list-button.button-group(".dso-input-number", ".dso-list-button");
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dso-list-button {
|
|
12
|
-
@include button.base($modifiers: false);
|
|
13
|
-
@include list-button.root();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.dso-list-button,
|
|
17
|
-
.dso-button-group {
|
|
18
|
-
+ .dso-list-button,
|
|
19
|
-
+ .dso-button-group {
|
|
20
|
-
@include list-button.sibling();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dso-list-button .dso-subcontent,
|
|
25
|
-
dso-list-button > [slot="subcontent"] {
|
|
26
|
-
color: colors.$grijs-60;
|
|
27
|
-
font-weight: 400;
|
|
28
|
-
padding-block: units.$u2 0;
|
|
29
|
-
padding-inline: units.$u2 0;
|
|
30
|
-
|
|
31
|
-
mark {
|
|
32
|
-
background-color: transparent;
|
|
33
|
-
color: colors.$grijs-60;
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
padding: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
dso-list-button > [slot="subcontent"] {
|
|
40
|
-
padding-inline-start: selectable.$size + units.$u3;
|
|
41
|
-
padding-block-start: units.$u1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
dso-list-button + dso-list-button {
|
|
45
|
-
@include list-button.sibling();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
dso-list-button > input[slot="counter"] {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|