dso-toolkit 58.0.1 → 58.2.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 +26 -0
- package/dist/dso.css +93 -48
- package/package.json +14 -12
- package/src/components/anchor/anchor.mixins.scss +3 -3
- package/src/components/anchor/anchor.variables.scss +2 -1
- package/src/components/banner/banner.mixins.scss +21 -13
- package/src/components/banner/banner.scss +74 -23
- package/src/components/banner/banner.variables.scss +4 -0
- package/src/components/button-row/button-row.scss +4 -0
- package/src/components/tabs/tabs.scss +1 -1
- package/src/components/tooltip/tooltip.mixins.scss +2 -0
- package/src/dso.scss +1 -0
- package/src/global/custom-properties.scss +7 -0
- package/src/variables/scaffolding.scss +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,32 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
5
5
|
|
|
6
6
|
## Next
|
|
7
7
|
|
|
8
|
+
## 58.2.0 - 07-09-2023
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
* Autosuggest: niet gevonden melding en eerste suggestie voorlezen ([#2267](https://github.com/dso-toolkit/dso-toolkit/issues/2267))
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
* Toggletip: Open Toggletip scrolled mee met de pagina ([#2301](https://github.com/dso-toolkit/dso-toolkit/issues/2301))
|
|
15
|
+
* Banner: Tooltip/toggletip verkeerde link-kleur ([#2305](https://github.com/dso-toolkit/dso-toolkit/issues/2305))
|
|
16
|
+
|
|
17
|
+
### Docs
|
|
18
|
+
* Button: Documentatie bijwerken ([#1898](https://github.com/dso-toolkit/dso-toolkit/issues/1898))
|
|
19
|
+
|
|
20
|
+
### Tasks
|
|
21
|
+
* Packages: Dependency updates ([#2241](https://github.com/dso-toolkit/dso-toolkit/issues/2241))
|
|
22
|
+
* Storybook: Lit comments in HTML tab verwijderen ([#1987](https://github.com/dso-toolkit/dso-toolkit/issues/1987))
|
|
23
|
+
* Build: Custom property met toolkit versie ([#2184](https://github.com/dso-toolkit/dso-toolkit/issues/2184))
|
|
24
|
+
|
|
25
|
+
## 58.1.0 - 28-08-2023
|
|
26
|
+
|
|
27
|
+
### Tasks
|
|
28
|
+
* Build: Percy finalize en missende CI_ environment variables ([#2272](https://github.com/dso-toolkit/dso-toolkit/issues/2272))
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
* Banner: Nieuwe variant "info", nieuwe functionaliteit "noIcon" en "compact" ([#2255](https://github.com/dso-toolkit/dso-toolkit/issues/2255))
|
|
32
|
+
* Button Row: Nieuwe optie "no-wrap" ([#2299](https://github.com/dso-toolkit/dso-toolkit/issues/2299))
|
|
33
|
+
|
|
8
34
|
## 58.0.1 - 22-08-2023
|
|
9
35
|
|
|
10
36
|
### Added
|
package/dist/dso.css
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* DSO Toolkit version: 58.2.0 */
|
|
2
|
+
:root { --dso-toolkit-version: 58.2.0 }
|
|
3
|
+
|
|
1
4
|
@font-face {
|
|
2
5
|
font-family: "Asap";
|
|
3
6
|
font-style: normal;
|
|
@@ -46,6 +49,12 @@
|
|
|
46
49
|
font-weight: 700;
|
|
47
50
|
src: local("Asap Bold italic"), local("Asap-Bolditalic"), url("../assets/fonts/Asap/Asap-BoldItalic.woff2") format("woff2"), url("../assets/fonts/Asap/Asap-BoldItalic.woff") format("woff");
|
|
48
51
|
}
|
|
52
|
+
:root {
|
|
53
|
+
--link-color: #39870c;
|
|
54
|
+
--link-hover-color: #676cb0;
|
|
55
|
+
--link-visited-color: #8b4a6a;
|
|
56
|
+
}
|
|
57
|
+
|
|
49
58
|
:where(dso-action-list) + :where(.dso-form-buttons) {
|
|
50
59
|
margin-block-start: 32px;
|
|
51
60
|
}
|
|
@@ -986,18 +995,18 @@ dso-alert a.extern::after {
|
|
|
986
995
|
|
|
987
996
|
a {
|
|
988
997
|
background-color: transparent;
|
|
989
|
-
color:
|
|
998
|
+
color: var(--link-color);
|
|
990
999
|
text-decoration: underline;
|
|
991
1000
|
}
|
|
992
1001
|
a:hover, a:focus {
|
|
993
|
-
color:
|
|
1002
|
+
color: var(--link-hover-color);
|
|
994
1003
|
text-decoration: underline;
|
|
995
1004
|
}
|
|
996
1005
|
a:active {
|
|
997
1006
|
text-decoration: none;
|
|
998
1007
|
}
|
|
999
1008
|
a:visited {
|
|
1000
|
-
color:
|
|
1009
|
+
color: var(--link-visited-color);
|
|
1001
1010
|
}
|
|
1002
1011
|
a.download::after, a.extern::after {
|
|
1003
1012
|
content: "";
|
|
@@ -1124,6 +1133,11 @@ a.extern::after {
|
|
|
1124
1133
|
.dso-banner:not(.row) {
|
|
1125
1134
|
padding: 16px 0;
|
|
1126
1135
|
position: relative;
|
|
1136
|
+
--link-color: #000;
|
|
1137
|
+
}
|
|
1138
|
+
.banner.dso-compact,
|
|
1139
|
+
.dso-banner:not(.row).dso-compact {
|
|
1140
|
+
padding: 12px 0;
|
|
1127
1141
|
}
|
|
1128
1142
|
.banner a,
|
|
1129
1143
|
.dso-banner:not(.row) a {
|
|
@@ -1135,7 +1149,7 @@ a.extern::after {
|
|
|
1135
1149
|
.dso-banner:not(.row) a:focus,
|
|
1136
1150
|
.dso-banner:not(.row) a:active,
|
|
1137
1151
|
.dso-banner:not(.row) a:visited {
|
|
1138
|
-
color:
|
|
1152
|
+
color: var(--link-color);
|
|
1139
1153
|
}
|
|
1140
1154
|
.banner a:active,
|
|
1141
1155
|
.dso-banner:not(.row) a:active {
|
|
@@ -1158,18 +1172,6 @@ a.extern::after {
|
|
|
1158
1172
|
.dso-banner:not(.row) .row > div button svg.di {
|
|
1159
1173
|
color: #000;
|
|
1160
1174
|
}
|
|
1161
|
-
@media screen and (min-width: 481px) {
|
|
1162
|
-
.banner .row > div,
|
|
1163
|
-
.dso-banner:not(.row) .row > div {
|
|
1164
|
-
padding-left: 48px;
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
@media screen and (max-width: 480px) {
|
|
1168
|
-
.banner .row > div,
|
|
1169
|
-
.dso-banner:not(.row) .row > div {
|
|
1170
|
-
padding-top: 39px;
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
1175
|
.banner .row > div > .dso-rich-content,
|
|
1174
1176
|
.dso-banner:not(.row) .row > div > .dso-rich-content {
|
|
1175
1177
|
padding-right: 24px;
|
|
@@ -1232,12 +1234,6 @@ a.extern::after {
|
|
|
1232
1234
|
.dso-banner:not(.row) .row > div > .dso-rich-content *:last-child {
|
|
1233
1235
|
margin-bottom: 0;
|
|
1234
1236
|
}
|
|
1235
|
-
@media screen and (max-width: 480px) {
|
|
1236
|
-
.banner .row > div > .dso-rich-content,
|
|
1237
|
-
.dso-banner:not(.row) .row > div > .dso-rich-content {
|
|
1238
|
-
padding-right: 0;
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
1237
|
.banner .row > div::before,
|
|
1242
1238
|
.dso-banner:not(.row) .row > div::before {
|
|
1243
1239
|
content: "";
|
|
@@ -1246,14 +1242,30 @@ a.extern::after {
|
|
|
1246
1242
|
position: absolute;
|
|
1247
1243
|
top: 0;
|
|
1248
1244
|
}
|
|
1245
|
+
@media screen and (min-width: 480px) {
|
|
1246
|
+
.banner:not(.dso-no-icon) .row > div,
|
|
1247
|
+
.dso-banner:not(.row):not(.dso-no-icon) .row > div {
|
|
1248
|
+
padding-left: 48px;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
@media screen and (max-width: 479.01px) {
|
|
1252
|
+
.banner:not(.dso-no-icon) .row > div,
|
|
1253
|
+
.dso-banner:not(.row):not(.dso-no-icon) .row > div {
|
|
1254
|
+
padding-top: 39px;
|
|
1255
|
+
}
|
|
1256
|
+
.banner:not(.dso-no-icon) .row > div > .dso-rich-content,
|
|
1257
|
+
.dso-banner:not(.row):not(.dso-no-icon) .row > div > .dso-rich-content {
|
|
1258
|
+
padding-right: 0;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1249
1261
|
.banner.alert-danger,
|
|
1250
1262
|
.dso-banner:not(.row).alert-danger {
|
|
1251
1263
|
color: #000;
|
|
1252
1264
|
background-color: #f5d8dc;
|
|
1253
1265
|
border-color: #f5d8dc;
|
|
1254
1266
|
}
|
|
1255
|
-
.banner.alert-danger .row > div::before,
|
|
1256
|
-
.dso-banner:not(.row).alert-danger .row > div::before {
|
|
1267
|
+
.banner.alert-danger:not(.dso-no-icon) .row > div::before,
|
|
1268
|
+
.dso-banner:not(.row).alert-danger:not(.dso-no-icon) .row > div::before {
|
|
1257
1269
|
background: url("./dso-icons.svg#img-status-danger") no-repeat;
|
|
1258
1270
|
background-position: center;
|
|
1259
1271
|
background-size: cover;
|
|
@@ -1267,8 +1279,8 @@ a.extern::after {
|
|
|
1267
1279
|
background-color: #f5d8dc;
|
|
1268
1280
|
border-color: #f5d8dc;
|
|
1269
1281
|
}
|
|
1270
|
-
.banner.alert-error .row > div::before,
|
|
1271
|
-
.dso-banner:not(.row).alert-error .row > div::before {
|
|
1282
|
+
.banner.alert-error:not(.dso-no-icon) .row > div::before,
|
|
1283
|
+
.dso-banner:not(.row).alert-error:not(.dso-no-icon) .row > div::before {
|
|
1272
1284
|
background: url("./dso-icons.svg#img-status-error") no-repeat;
|
|
1273
1285
|
background-position: center;
|
|
1274
1286
|
background-size: cover;
|
|
@@ -1276,14 +1288,29 @@ a.extern::after {
|
|
|
1276
1288
|
vertical-align: top;
|
|
1277
1289
|
width: 24px;
|
|
1278
1290
|
}
|
|
1291
|
+
.banner.alert-info,
|
|
1292
|
+
.dso-banner:not(.row).alert-info {
|
|
1293
|
+
color: #000;
|
|
1294
|
+
background-color: #e1ecf7;
|
|
1295
|
+
border-color: #e1ecf7;
|
|
1296
|
+
}
|
|
1297
|
+
.banner.alert-info:not(.dso-no-icon) .row > div::before,
|
|
1298
|
+
.dso-banner:not(.row).alert-info:not(.dso-no-icon) .row > div::before {
|
|
1299
|
+
background: url("./dso-icons.svg#img-status-info") no-repeat;
|
|
1300
|
+
background-position: center;
|
|
1301
|
+
background-size: cover;
|
|
1302
|
+
height: 24px;
|
|
1303
|
+
vertical-align: top;
|
|
1304
|
+
width: 24px;
|
|
1305
|
+
}
|
|
1279
1306
|
.banner.alert-warning,
|
|
1280
1307
|
.dso-banner:not(.row).alert-warning {
|
|
1281
1308
|
color: #000;
|
|
1282
1309
|
background-color: #f8f6cc;
|
|
1283
1310
|
border-color: #f8f6cc;
|
|
1284
1311
|
}
|
|
1285
|
-
.banner.alert-warning .row > div::before,
|
|
1286
|
-
.dso-banner:not(.row).alert-warning .row > div::before {
|
|
1312
|
+
.banner.alert-warning:not(.dso-no-icon) .row > div::before,
|
|
1313
|
+
.dso-banner:not(.row).alert-warning:not(.dso-no-icon) .row > div::before {
|
|
1287
1314
|
background: url("./dso-icons.svg#img-status-warning") no-repeat;
|
|
1288
1315
|
background-position: center;
|
|
1289
1316
|
background-size: cover;
|
|
@@ -1310,11 +1337,14 @@ a.extern::after {
|
|
|
1310
1337
|
width: 24px;
|
|
1311
1338
|
}
|
|
1312
1339
|
|
|
1340
|
+
dso-banner {
|
|
1341
|
+
--link-color: #000;
|
|
1342
|
+
}
|
|
1313
1343
|
dso-banner a {
|
|
1314
1344
|
text-decoration: underline;
|
|
1315
1345
|
}
|
|
1316
1346
|
dso-banner a, dso-banner a:hover, dso-banner a:focus, dso-banner a:active, dso-banner a:visited {
|
|
1317
|
-
color:
|
|
1347
|
+
color: var(--link-color);
|
|
1318
1348
|
}
|
|
1319
1349
|
dso-banner a:active {
|
|
1320
1350
|
text-decoration: none;
|
|
@@ -1332,16 +1362,6 @@ dso-banner .row > div button dso-icon,
|
|
|
1332
1362
|
dso-banner .row > div button svg.di {
|
|
1333
1363
|
color: #000;
|
|
1334
1364
|
}
|
|
1335
|
-
@media screen and (min-width: 481px) {
|
|
1336
|
-
dso-banner .row > div {
|
|
1337
|
-
padding-left: 48px;
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
@media screen and (max-width: 480px) {
|
|
1341
|
-
dso-banner .row > div {
|
|
1342
|
-
padding-top: 39px;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
1365
|
dso-banner .row > div > .dso-rich-content {
|
|
1346
1366
|
padding-right: 24px;
|
|
1347
1367
|
}
|
|
@@ -1382,11 +1402,6 @@ dso-banner .row > div > .dso-rich-content *:first-child {
|
|
|
1382
1402
|
dso-banner .row > div > .dso-rich-content *:last-child {
|
|
1383
1403
|
margin-bottom: 0;
|
|
1384
1404
|
}
|
|
1385
|
-
@media screen and (max-width: 480px) {
|
|
1386
|
-
dso-banner .row > div > .dso-rich-content {
|
|
1387
|
-
padding-right: 0;
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
1405
|
dso-banner .row > div::before {
|
|
1391
1406
|
content: "";
|
|
1392
1407
|
display: inline-block;
|
|
@@ -1394,12 +1409,25 @@ dso-banner .row > div::before {
|
|
|
1394
1409
|
position: absolute;
|
|
1395
1410
|
top: 0;
|
|
1396
1411
|
}
|
|
1412
|
+
@media screen and (min-width: 480px) {
|
|
1413
|
+
dso-banner:not([no-icon]) .row > div {
|
|
1414
|
+
padding-left: 48px;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
@media screen and (max-width: 479.01px) {
|
|
1418
|
+
dso-banner:not([no-icon]) .row > div {
|
|
1419
|
+
padding-top: 39px;
|
|
1420
|
+
}
|
|
1421
|
+
dso-banner:not([no-icon]) .row > div > .dso-rich-content {
|
|
1422
|
+
padding-right: 0;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1397
1425
|
dso-banner[status=danger] {
|
|
1398
1426
|
color: #000;
|
|
1399
1427
|
background-color: #f5d8dc;
|
|
1400
1428
|
border-color: #f5d8dc;
|
|
1401
1429
|
}
|
|
1402
|
-
dso-banner[status=danger] .row > div::before {
|
|
1430
|
+
dso-banner[status=danger]:not([no-icon]) .row > div::before {
|
|
1403
1431
|
background: url("./dso-icons.svg#img-status-danger") no-repeat;
|
|
1404
1432
|
background-position: center;
|
|
1405
1433
|
background-size: cover;
|
|
@@ -1412,7 +1440,7 @@ dso-banner[status=error] {
|
|
|
1412
1440
|
background-color: #f5d8dc;
|
|
1413
1441
|
border-color: #f5d8dc;
|
|
1414
1442
|
}
|
|
1415
|
-
dso-banner[status=error] .row > div::before {
|
|
1443
|
+
dso-banner[status=error]:not([no-icon]) .row > div::before {
|
|
1416
1444
|
background: url("./dso-icons.svg#img-status-error") no-repeat;
|
|
1417
1445
|
background-position: center;
|
|
1418
1446
|
background-size: cover;
|
|
@@ -1420,12 +1448,25 @@ dso-banner[status=error] .row > div::before {
|
|
|
1420
1448
|
vertical-align: top;
|
|
1421
1449
|
width: 24px;
|
|
1422
1450
|
}
|
|
1451
|
+
dso-banner[status=info] {
|
|
1452
|
+
color: #000;
|
|
1453
|
+
background-color: #e1ecf7;
|
|
1454
|
+
border-color: #e1ecf7;
|
|
1455
|
+
}
|
|
1456
|
+
dso-banner[status=info]:not([no-icon]) .row > div::before {
|
|
1457
|
+
background: url("./dso-icons.svg#img-status-info") no-repeat;
|
|
1458
|
+
background-position: center;
|
|
1459
|
+
background-size: cover;
|
|
1460
|
+
height: 24px;
|
|
1461
|
+
vertical-align: top;
|
|
1462
|
+
width: 24px;
|
|
1463
|
+
}
|
|
1423
1464
|
dso-banner[status=warning] {
|
|
1424
1465
|
color: #000;
|
|
1425
1466
|
background-color: #f8f6cc;
|
|
1426
1467
|
border-color: #f8f6cc;
|
|
1427
1468
|
}
|
|
1428
|
-
dso-banner[status=warning] .row > div::before {
|
|
1469
|
+
dso-banner[status=warning]:not([no-icon]) .row > div::before {
|
|
1429
1470
|
background: url("./dso-icons.svg#img-status-warning") no-repeat;
|
|
1430
1471
|
background-position: center;
|
|
1431
1472
|
background-size: cover;
|
|
@@ -2205,6 +2246,9 @@ a.dso-tertiary, a.dso-tertiary:visited {
|
|
|
2205
2246
|
.dso-button-row.dso-align-center {
|
|
2206
2247
|
justify-content: center;
|
|
2207
2248
|
}
|
|
2249
|
+
.dso-button-row.dso-no-wrap {
|
|
2250
|
+
flex-wrap: nowrap;
|
|
2251
|
+
}
|
|
2208
2252
|
|
|
2209
2253
|
dso-card[is-selectable], dso-card[has-image], .dso-card.dso-is-selectable, .dso-card.dso-has-image,
|
|
2210
2254
|
dso-card.dso-is-selectable,
|
|
@@ -7973,7 +8017,7 @@ dso-table.dso-is-responsive > .table > tfoot > tr > td {
|
|
|
7973
8017
|
}
|
|
7974
8018
|
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
|
|
7975
8019
|
background-color: #e5e5e5;
|
|
7976
|
-
border-color:
|
|
8020
|
+
border-color: var(--link-color);
|
|
7977
8021
|
}
|
|
7978
8022
|
|
|
7979
8023
|
.nav.nav-tabs {
|
|
@@ -8209,6 +8253,7 @@ dso-responsive-element.dso-tile-grid[large] {
|
|
|
8209
8253
|
word-spacing: normal;
|
|
8210
8254
|
word-wrap: normal;
|
|
8211
8255
|
white-space: normal;
|
|
8256
|
+
--link-color: #39870c;
|
|
8212
8257
|
display: block;
|
|
8213
8258
|
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
|
|
8214
8259
|
font-size: 14px;
|
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": "58.0
|
|
5
|
+
"version": "58.2.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "gulp"
|
|
8
8
|
},
|
|
@@ -27,20 +27,21 @@
|
|
|
27
27
|
"homepage": "https://www.dso-toolkit.nl/",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@prettier/plugin-xml": "^2.2.0",
|
|
30
|
-
"@storybook/addon-actions": "7.
|
|
31
|
-
"@storybook/addons": "7.
|
|
32
|
-
"@storybook/client-api": "7.
|
|
33
|
-
"@storybook/types": "7.
|
|
30
|
+
"@storybook/addon-actions": "7.3.2",
|
|
31
|
+
"@storybook/addons": "7.3.2",
|
|
32
|
+
"@storybook/client-api": "7.3.2",
|
|
33
|
+
"@storybook/types": "7.3.2",
|
|
34
34
|
"@types/css": "^0.0.33",
|
|
35
35
|
"@types/fancy-log": "^2.0.0",
|
|
36
|
-
"@types/gulp": "^4.0.
|
|
36
|
+
"@types/gulp": "^4.0.13",
|
|
37
37
|
"@types/gulp-cheerio": "^0.0.35",
|
|
38
38
|
"@types/gulp-filter": "^3.0.36",
|
|
39
|
+
"@types/gulp-header": "^2.0.2",
|
|
39
40
|
"@types/gulp-postcss": "^8.0.3",
|
|
40
41
|
"@types/gulp-rename": "^2.0.2",
|
|
41
42
|
"@types/gulp-sass": "^5.0.1",
|
|
42
43
|
"@types/list-stream": "^1.0.1",
|
|
43
|
-
"concurrently": "^8.2.
|
|
44
|
+
"concurrently": "^8.2.1",
|
|
44
45
|
"css": "^3.0.0",
|
|
45
46
|
"cssnano": "^6.0.1",
|
|
46
47
|
"del": "^7.0.0",
|
|
@@ -48,7 +49,8 @@
|
|
|
48
49
|
"fancy-log": "^2.0.0",
|
|
49
50
|
"gulp": "^4.0.2",
|
|
50
51
|
"gulp-cheerio": "^1.0.0",
|
|
51
|
-
"gulp-filter": "^
|
|
52
|
+
"gulp-filter": "^8.0.0",
|
|
53
|
+
"gulp-header": "^2.0.9",
|
|
52
54
|
"gulp-postcss": "^9.0.1",
|
|
53
55
|
"gulp-prettier": "^4.0.0",
|
|
54
56
|
"gulp-rename": "^2.0.0",
|
|
@@ -56,13 +58,13 @@
|
|
|
56
58
|
"gulp-svgstore": "^9.0.0",
|
|
57
59
|
"gulp-typescript": "^6.0.0-alpha.1",
|
|
58
60
|
"list-stream": "^2.1.0",
|
|
59
|
-
"markdown-to-jsx": "^7.2
|
|
60
|
-
"postcss": "^8.4.
|
|
61
|
+
"markdown-to-jsx": "^7.3.2",
|
|
62
|
+
"postcss": "^8.4.28",
|
|
61
63
|
"prettier": "^2.8.8",
|
|
62
64
|
"react": "^18.2.0",
|
|
63
65
|
"react-dom": "^18.2.0",
|
|
64
|
-
"sass": "^1.
|
|
65
|
-
"typescript": "
|
|
66
|
+
"sass": "^1.66.1",
|
|
67
|
+
"typescript": "~5.1.6",
|
|
66
68
|
"uuid": "^9.0.0"
|
|
67
69
|
},
|
|
68
70
|
"nx": {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@mixin pseudo() {
|
|
6
6
|
&:hover,
|
|
7
7
|
&:focus {
|
|
8
|
-
color:
|
|
8
|
+
color: var(--link-hover-color);
|
|
9
9
|
text-decoration: underline;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
@mixin root($is-html-a-element: true) {
|
|
18
18
|
background-color: transparent;
|
|
19
|
-
color:
|
|
19
|
+
color: var(--link-color);
|
|
20
20
|
text-decoration: underline;
|
|
21
21
|
|
|
22
22
|
@include pseudo();
|
|
23
23
|
|
|
24
24
|
@if ($is-html-a-element) {
|
|
25
25
|
&:visited {
|
|
26
|
-
color:
|
|
26
|
+
color: var(--link-visited-color);
|
|
27
27
|
}
|
|
28
28
|
} @else {
|
|
29
29
|
cursor: pointer;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use "../../variables/typography";
|
|
4
4
|
@use "../../variables/media-query-breakpoints";
|
|
5
5
|
|
|
6
|
+
@use "../../di";
|
|
7
|
+
|
|
6
8
|
@use "banner.variables" as banner-variables;
|
|
7
9
|
|
|
8
10
|
@mixin _variant($background, $border, $text-color) {
|
|
@@ -12,6 +14,8 @@
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
@mixin children() {
|
|
17
|
+
--link-color: #{colors.$zwart};
|
|
18
|
+
|
|
15
19
|
a {
|
|
16
20
|
text-decoration: underline;
|
|
17
21
|
|
|
@@ -20,7 +24,7 @@
|
|
|
20
24
|
&:focus,
|
|
21
25
|
&:active,
|
|
22
26
|
&:visited {
|
|
23
|
-
color:
|
|
27
|
+
color: var(--link-color);
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
&:active {
|
|
@@ -44,14 +48,6 @@
|
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
47
|
-
@media screen and (min-width: #{media-query-breakpoints.$screen-xs-min + 1}) {
|
|
48
|
-
padding-left: banner-variables.$left-padding;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
52
|
-
padding-top: banner-variables.$small-padding-top;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
51
|
> .dso-rich-content {
|
|
56
52
|
padding-right: units.$u3;
|
|
57
53
|
|
|
@@ -87,10 +83,6 @@
|
|
|
87
83
|
*:last-child {
|
|
88
84
|
margin-bottom: 0;
|
|
89
85
|
}
|
|
90
|
-
|
|
91
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
92
|
-
padding-right: 0;
|
|
93
|
-
}
|
|
94
86
|
}
|
|
95
87
|
}
|
|
96
88
|
}
|
|
@@ -104,6 +96,10 @@
|
|
|
104
96
|
@include _variant(banner-variables.$error-bg, banner-variables.$error-border, banner-variables.$error-text);
|
|
105
97
|
}
|
|
106
98
|
|
|
99
|
+
@mixin info() {
|
|
100
|
+
@include _variant(banner-variables.$info-bg, banner-variables.$info-border, banner-variables.$info-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
107
103
|
@mixin warning() {
|
|
108
104
|
@include _variant(banner-variables.$warning-bg, banner-variables.$warning-border, banner-variables.$warning-text);
|
|
109
105
|
}
|
|
@@ -111,4 +107,16 @@
|
|
|
111
107
|
@mixin root() {
|
|
112
108
|
padding: units.$u2 0;
|
|
113
109
|
position: relative;
|
|
110
|
+
|
|
111
|
+
&.dso-compact {
|
|
112
|
+
padding: 12px 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin with-icon($variant) {
|
|
117
|
+
.row > div {
|
|
118
|
+
&::before {
|
|
119
|
+
@include di.base("status-#{$variant}");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
114
122
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
1
|
@use "../../variables/colors";
|
|
2
|
+
@use "../../variables/media-query-breakpoints";
|
|
3
|
+
@use "../../variables/units";
|
|
3
4
|
|
|
4
5
|
@use "../../di";
|
|
5
6
|
|
|
6
|
-
@use "
|
|
7
|
+
@use "banner.mixins" as banner-mixins;
|
|
8
|
+
@use "banner.variables" as banner-variables;
|
|
7
9
|
|
|
8
10
|
.banner {
|
|
9
11
|
background-color: colors.$invalid-color !important;
|
|
@@ -12,8 +14,8 @@
|
|
|
12
14
|
// HTML/CSS
|
|
13
15
|
.banner,
|
|
14
16
|
.dso-banner:not(.row) {
|
|
15
|
-
@include banner.root();
|
|
16
|
-
@include banner.children();
|
|
17
|
+
@include banner-mixins.root();
|
|
18
|
+
@include banner-mixins.children();
|
|
17
19
|
|
|
18
20
|
.row > div::before {
|
|
19
21
|
content: "";
|
|
@@ -23,27 +25,51 @@
|
|
|
23
25
|
top: 0;
|
|
24
26
|
}
|
|
25
27
|
|
|
28
|
+
&:not(.dso-no-icon) {
|
|
29
|
+
.row > div {
|
|
30
|
+
@media screen and (min-width: #{media-query-breakpoints.$screen-xs-min}) {
|
|
31
|
+
padding-left: banner-variables.$left-padding;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media screen and (max-width: #{media-query-breakpoints.$screen-xs-min - 0.99}) {
|
|
35
|
+
padding-top: banner-variables.$small-padding-top;
|
|
36
|
+
|
|
37
|
+
> .dso-rich-content {
|
|
38
|
+
padding-right: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
26
44
|
&.alert-danger {
|
|
27
|
-
@include banner.danger();
|
|
45
|
+
@include banner-mixins.danger();
|
|
28
46
|
|
|
29
|
-
.
|
|
30
|
-
@include
|
|
47
|
+
&:not(.dso-no-icon) {
|
|
48
|
+
@include banner-mixins.with-icon("danger");
|
|
31
49
|
}
|
|
32
50
|
}
|
|
33
51
|
|
|
34
52
|
&.alert-error {
|
|
35
|
-
@include banner.error();
|
|
53
|
+
@include banner-mixins.error();
|
|
54
|
+
|
|
55
|
+
&:not(.dso-no-icon) {
|
|
56
|
+
@include banner-mixins.with-icon("error");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.alert-info {
|
|
61
|
+
@include banner-mixins.info();
|
|
36
62
|
|
|
37
|
-
.
|
|
38
|
-
@include
|
|
63
|
+
&:not(.dso-no-icon) {
|
|
64
|
+
@include banner-mixins.with-icon("info");
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
|
|
42
68
|
&.alert-warning {
|
|
43
|
-
@include banner.warning();
|
|
69
|
+
@include banner-mixins.warning();
|
|
44
70
|
|
|
45
|
-
.
|
|
46
|
-
@include
|
|
71
|
+
&:not(.dso-no-icon) {
|
|
72
|
+
@include banner-mixins.with-icon("warning");
|
|
47
73
|
}
|
|
48
74
|
}
|
|
49
75
|
|
|
@@ -64,37 +90,62 @@
|
|
|
64
90
|
|
|
65
91
|
// Web Component
|
|
66
92
|
dso-banner {
|
|
67
|
-
@include banner.children();
|
|
93
|
+
@include banner-mixins.children();
|
|
68
94
|
|
|
69
95
|
.row > div::before {
|
|
70
96
|
content: "";
|
|
97
|
+
|
|
71
98
|
display: inline-block;
|
|
72
99
|
left: units.$u2;
|
|
73
100
|
position: absolute;
|
|
74
101
|
top: 0;
|
|
75
102
|
}
|
|
76
103
|
|
|
104
|
+
&:not([no-icon]) {
|
|
105
|
+
.row > div {
|
|
106
|
+
@media screen and (min-width: #{media-query-breakpoints.$screen-xs-min}) {
|
|
107
|
+
padding-left: banner-variables.$left-padding;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media screen and (max-width: #{media-query-breakpoints.$screen-xs-min - 0.99}) {
|
|
111
|
+
padding-top: banner-variables.$small-padding-top;
|
|
112
|
+
|
|
113
|
+
> .dso-rich-content {
|
|
114
|
+
padding-right: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
77
120
|
&[status="danger"] {
|
|
78
|
-
@include banner.danger();
|
|
121
|
+
@include banner-mixins.danger();
|
|
79
122
|
|
|
80
|
-
|
|
81
|
-
@include
|
|
123
|
+
&:not([no-icon]) {
|
|
124
|
+
@include banner-mixins.with-icon("danger");
|
|
82
125
|
}
|
|
83
126
|
}
|
|
84
127
|
|
|
85
128
|
&[status="error"] {
|
|
86
|
-
@include banner.error();
|
|
129
|
+
@include banner-mixins.error();
|
|
130
|
+
|
|
131
|
+
&:not([no-icon]) {
|
|
132
|
+
@include banner-mixins.with-icon("error");
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&[status="info"] {
|
|
137
|
+
@include banner-mixins.info();
|
|
87
138
|
|
|
88
|
-
|
|
89
|
-
@include
|
|
139
|
+
&:not([no-icon]) {
|
|
140
|
+
@include banner-mixins.with-icon("info");
|
|
90
141
|
}
|
|
91
142
|
}
|
|
92
143
|
|
|
93
144
|
&[status="warning"] {
|
|
94
|
-
@include banner.warning();
|
|
145
|
+
@include banner-mixins.warning();
|
|
95
146
|
|
|
96
|
-
|
|
97
|
-
@include
|
|
147
|
+
&:not([no-icon]) {
|
|
148
|
+
@include banner-mixins.with-icon("warning");
|
|
98
149
|
}
|
|
99
150
|
}
|
|
100
151
|
|
package/src/dso.scss
CHANGED