@norges-domstoler/dds-components 17.2.2 → 17.3.1
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.css +99 -81
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +43 -11
- package/dist/index.d.ts +43 -11
- package/dist/index.js +1782 -1501
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1680 -1398
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.css
CHANGED
|
@@ -116,19 +116,24 @@
|
|
|
116
116
|
/* src/components/Typography/typographyStyles.module.css */
|
|
117
117
|
:root {
|
|
118
118
|
--dds-color-text-body: var(--dds-color-text-default);
|
|
119
|
+
--dds-color-text-body-subtle: var(--dds-color-text-subtle);
|
|
119
120
|
--dds-color-text-link: var(--dds-color-text-action-resting);
|
|
120
121
|
--dds-color-text-link-visited: var(--dds-color-text-action-visited);
|
|
121
122
|
--dds-color-text-label: var(--dds-color-text-medium);
|
|
122
123
|
--dds-color-text-placeholder: var(--dds-color-text-subtle);
|
|
123
124
|
--dds-color-text-helper: var(--dds-color-text-subtle);
|
|
125
|
+
--dds-color-icon-link: var(--dds-color-text-action-resting);
|
|
124
126
|
}
|
|
125
127
|
.typographyStyles_contrast {
|
|
126
128
|
--dds-color-text-body: var(--dds-color-text-on-inverse);
|
|
129
|
+
--dds-color-text-body-subtle: var(--dds-color-text-on-inverse);
|
|
127
130
|
--dds-color-text-link: var(--dds-color-text-on-inverse);
|
|
128
131
|
--dds-color-text-link-visited: var( --dds-color-text-action-visited-on-inverse );
|
|
129
132
|
--dds-color-text-label: var(--dds-color-text-on-inverse);
|
|
130
133
|
--dds-color-text-helper: var(--dds-color-text-on-inverse);
|
|
131
134
|
--dds-color-text-placeholder: var(--dds-color-text-subtle);
|
|
135
|
+
--dds-color-icon-link: var(--dds-color-text-on-inverse);
|
|
136
|
+
color: var(--dds-color-text-on-inverse);
|
|
132
137
|
}
|
|
133
138
|
:where(.typographyStyles_a) {
|
|
134
139
|
font: inherit;
|
|
@@ -843,6 +848,70 @@
|
|
|
843
848
|
border: 1px solid var(--dds-color-border-inverse);
|
|
844
849
|
}
|
|
845
850
|
|
|
851
|
+
/* src/components/Accordion/Accordion.module.css */
|
|
852
|
+
:where(.Accordion_container) {
|
|
853
|
+
border-bottom: 1px solid var(--dds-color-border-default);
|
|
854
|
+
}
|
|
855
|
+
:where(.Accordion_container:first-child) {
|
|
856
|
+
border-top: 1px solid var(--dds-color-border-default);
|
|
857
|
+
}
|
|
858
|
+
:where(.Accordion_header-button) {
|
|
859
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
860
|
+
transition: background-color 0.2s, var(--dds-focus-transition);
|
|
861
|
+
}
|
|
862
|
+
&:hover {
|
|
863
|
+
background-color: var(--dds-color-surface-hover-default);
|
|
864
|
+
color: var(--dds-color-text-action-hover);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
.Accordion_header-container {
|
|
868
|
+
padding: var(--dds-spacing-x1) var(--dds-spacing-x1-5) var(--dds-spacing-x1) var(--dds-spacing-x1);
|
|
869
|
+
}
|
|
870
|
+
.Accordion_body {
|
|
871
|
+
height: var(--dds-card-accordion-body-height);
|
|
872
|
+
}
|
|
873
|
+
.Accordion_body__content {
|
|
874
|
+
padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1-5) var(--dds-spacing-x2) var(--dds-spacing-x1);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/* src/components/helpers/AccordionBase/AccordionBase.module.css */
|
|
878
|
+
:where(.AccordionBase_header-button) {
|
|
879
|
+
-webkit-user-select: text;
|
|
880
|
+
-moz-user-select: text;
|
|
881
|
+
user-select: text;
|
|
882
|
+
position: relative;
|
|
883
|
+
cursor: pointer;
|
|
884
|
+
display: block;
|
|
885
|
+
width: 100%;
|
|
886
|
+
}
|
|
887
|
+
.AccordionBase_header-container {
|
|
888
|
+
display: flex;
|
|
889
|
+
justify-content: space-between;
|
|
890
|
+
align-items: center;
|
|
891
|
+
}
|
|
892
|
+
.AccordionBase_header__content {
|
|
893
|
+
text-align: left;
|
|
894
|
+
}
|
|
895
|
+
.AccordionBase_header__chevron {
|
|
896
|
+
display: flex;
|
|
897
|
+
align-items: center;
|
|
898
|
+
justify-content: center;
|
|
899
|
+
height: var(--dds-icon-size-medium);
|
|
900
|
+
width: var(--dds-icon-size-medium);
|
|
901
|
+
margin-left: var(--dds-spacing-x0-5);
|
|
902
|
+
}
|
|
903
|
+
.AccordionBase_body {
|
|
904
|
+
overflow: hidden;
|
|
905
|
+
}
|
|
906
|
+
.AccordionBase_body--animated {
|
|
907
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
908
|
+
transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
.AccordionBase_body--hidden {
|
|
912
|
+
display: none;
|
|
913
|
+
}
|
|
914
|
+
|
|
846
915
|
/* src/components/BackLink/BackLink.module.css */
|
|
847
916
|
.BackLink_icon {
|
|
848
917
|
display: inline;
|
|
@@ -917,7 +986,7 @@
|
|
|
917
986
|
padding: var(--dds-spacing-x0-125) 0;
|
|
918
987
|
}
|
|
919
988
|
.Breadcrumbs_icon {
|
|
920
|
-
color: var(--dds-color-icon-
|
|
989
|
+
color: var(--dds-color-icon-link);
|
|
921
990
|
}
|
|
922
991
|
|
|
923
992
|
/* src/components/Button/Button.module.css */
|
|
@@ -1213,57 +1282,34 @@
|
|
|
1213
1282
|
.ButtonGroup_group--column > *:first-child {
|
|
1214
1283
|
border-bottom-left-radius: 0;
|
|
1215
1284
|
border-bottom-right-radius: 0;
|
|
1285
|
+
margin-block-end: -1px;
|
|
1216
1286
|
}
|
|
1217
1287
|
.ButtonGroup_group--column > *:last-child {
|
|
1218
1288
|
border-top-left-radius: 0;
|
|
1219
1289
|
border-top-right-radius: 0;
|
|
1220
|
-
&:not(:active) {
|
|
1221
|
-
border-top-color: transparent;
|
|
1222
|
-
}
|
|
1223
1290
|
}
|
|
1224
1291
|
.ButtonGroup_group--column > *:not(:first-child):not(:last-child) {
|
|
1225
1292
|
border-radius: 0;
|
|
1226
|
-
|
|
1227
|
-
border-top-color: transparent;
|
|
1228
|
-
}
|
|
1229
|
-
&:active + * {
|
|
1230
|
-
border-top-color: initial;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
.ButtonGroup_group--column > *:first-child:not(:last-child) {
|
|
1234
|
-
&:active + * {
|
|
1235
|
-
border-top-color: initial;
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
.ButtonGroup_group--row > *:not(:first-child):not(:last-child) {
|
|
1239
|
-
border-radius: 0;
|
|
1240
|
-
&:not(:active) {
|
|
1241
|
-
border-left-color: transparent;
|
|
1242
|
-
}
|
|
1243
|
-
&:active + * {
|
|
1244
|
-
border-left-color: initial;
|
|
1245
|
-
}
|
|
1293
|
+
margin-block-end: -1px;
|
|
1246
1294
|
}
|
|
1247
1295
|
.ButtonGroup_group--row > *:first-child {
|
|
1248
1296
|
border-top-right-radius: 0;
|
|
1249
1297
|
border-bottom-right-radius: 0;
|
|
1250
|
-
|
|
1251
|
-
.ButtonGroup_group--row > *:first-child:not(:last-child) {
|
|
1252
|
-
&:active + * {
|
|
1253
|
-
border-left-color: initial;
|
|
1254
|
-
}
|
|
1298
|
+
margin-inline-end: -1px;
|
|
1255
1299
|
}
|
|
1256
1300
|
.ButtonGroup_group--row > *:last-child {
|
|
1257
1301
|
border-top-left-radius: 0;
|
|
1258
1302
|
border-bottom-left-radius: 0;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1303
|
+
}
|
|
1304
|
+
.ButtonGroup_group--row > *:not(:first-child):not(:last-child) {
|
|
1305
|
+
border-radius: 0;
|
|
1306
|
+
margin-inline-end: -1px;
|
|
1262
1307
|
}
|
|
1263
1308
|
|
|
1264
1309
|
/* src/components/Card/Card.module.css */
|
|
1265
1310
|
.Card_container {
|
|
1266
1311
|
border: 1px solid;
|
|
1312
|
+
border-radius: var(--dds-border-radius-surface);
|
|
1267
1313
|
@media (prefers-reduced-motion: no-preference) {
|
|
1268
1314
|
transition: box-shadow 0.2s, border-color 0.2s;
|
|
1269
1315
|
}
|
|
@@ -1294,13 +1340,6 @@
|
|
|
1294
1340
|
|
|
1295
1341
|
/* src/components/Card/CardAccordion/CardAccordion.module.css */
|
|
1296
1342
|
.CardAccordion_header-button {
|
|
1297
|
-
-webkit-user-select: text;
|
|
1298
|
-
-moz-user-select: text;
|
|
1299
|
-
user-select: text;
|
|
1300
|
-
position: relative;
|
|
1301
|
-
cursor: pointer;
|
|
1302
|
-
display: block;
|
|
1303
|
-
width: 100%;
|
|
1304
1343
|
@media (prefers-reduced-motion: no-preference) {
|
|
1305
1344
|
transition: box-shadow 0.2s, var(--dds-focus-transition);
|
|
1306
1345
|
}
|
|
@@ -1309,40 +1348,17 @@
|
|
|
1309
1348
|
}
|
|
1310
1349
|
}
|
|
1311
1350
|
.CardAccordion_header-container {
|
|
1312
|
-
display: flex;
|
|
1313
|
-
justify-content: space-between;
|
|
1314
|
-
align-items: center;
|
|
1315
1351
|
padding: var(--dds-card-accordion-header-container-padding);
|
|
1316
1352
|
@media (prefers-reduced-motion: no-preference) {
|
|
1317
1353
|
transition: box-shadow 0.2s;
|
|
1318
1354
|
}
|
|
1319
1355
|
}
|
|
1320
|
-
.CardAccordion_header__content {
|
|
1321
|
-
text-align: left;
|
|
1322
|
-
}
|
|
1323
|
-
.CardAccordion_header__chevron {
|
|
1324
|
-
display: flex;
|
|
1325
|
-
align-items: center;
|
|
1326
|
-
justify-content: center;
|
|
1327
|
-
height: var(--dds-icon-size-medium);
|
|
1328
|
-
width: var(--dds-icon-size-medium);
|
|
1329
|
-
margin-left: var(--dds-spacing-x0-5);
|
|
1330
|
-
}
|
|
1331
1356
|
.CardAccordion_body {
|
|
1332
|
-
overflow: hidden;
|
|
1333
1357
|
height: var(--dds-card-accordion-body-height);
|
|
1334
1358
|
}
|
|
1335
1359
|
.CardAccordion_body__content {
|
|
1336
1360
|
padding: var(--dds-card-accordion-body-content-padding);
|
|
1337
1361
|
}
|
|
1338
|
-
.CardAccordion_body--animated {
|
|
1339
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1340
|
-
transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
.CardAccordion_body--hidden {
|
|
1344
|
-
display: none;
|
|
1345
|
-
}
|
|
1346
1362
|
|
|
1347
1363
|
/* src/components/Chip/Chip.module.css */
|
|
1348
1364
|
.Chip_container {
|
|
@@ -1360,6 +1376,11 @@
|
|
|
1360
1376
|
gap: var(--dds-spacing-x0-75);
|
|
1361
1377
|
}
|
|
1362
1378
|
|
|
1379
|
+
/* src/components/Contrast/Contrast.module.css */
|
|
1380
|
+
:where(.Contrast_container) {
|
|
1381
|
+
background-color: var(--dds-color-surface-inverse-default);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1363
1384
|
/* src/components/date-inputs/common/DateInput.module.css */
|
|
1364
1385
|
.DateInput_date-input {
|
|
1365
1386
|
display: inline-flex;
|
|
@@ -1456,6 +1477,7 @@
|
|
|
1456
1477
|
border: 1px solid var(--dds-color-border-default);
|
|
1457
1478
|
padding: var(--dds-spacing-x0-5);
|
|
1458
1479
|
box-shadow: var(--dds-shadow-2);
|
|
1480
|
+
height: 347px;
|
|
1459
1481
|
}
|
|
1460
1482
|
.DateInput_calendar {
|
|
1461
1483
|
display: flex;
|
|
@@ -1565,13 +1587,13 @@
|
|
|
1565
1587
|
}
|
|
1566
1588
|
.DescriptionList_list--default {
|
|
1567
1589
|
dt {
|
|
1568
|
-
color: var(--dds-color-text-
|
|
1590
|
+
color: var(--dds-color-text-body);
|
|
1569
1591
|
font-weight: 600;
|
|
1570
1592
|
}
|
|
1571
1593
|
}
|
|
1572
1594
|
.DescriptionList_list--subtle {
|
|
1573
1595
|
dt {
|
|
1574
|
-
color: var(--dds-color-text-subtle);
|
|
1596
|
+
color: var(--dds-color-text-body-subtle);
|
|
1575
1597
|
}
|
|
1576
1598
|
}
|
|
1577
1599
|
.DescriptionList_list--row {
|
|
@@ -1589,7 +1611,7 @@
|
|
|
1589
1611
|
align-items: center;
|
|
1590
1612
|
display: flex;
|
|
1591
1613
|
gap: var(--dds-spacing-x0-25);
|
|
1592
|
-
color: var(--dds-color-text-
|
|
1614
|
+
color: var(--dds-color-text-body);
|
|
1593
1615
|
}
|
|
1594
1616
|
.DescriptionList_group {
|
|
1595
1617
|
margin: var(--dds-spacing-x2);
|
|
@@ -2004,7 +2026,6 @@
|
|
|
2004
2026
|
|
|
2005
2027
|
/* src/components/Footer/Footer.module.css */
|
|
2006
2028
|
.Footer_container {
|
|
2007
|
-
background-color: var(--dds-color-brand-primary-default);
|
|
2008
2029
|
padding-block-start: var(--dds-spacing-x3);
|
|
2009
2030
|
padding-block-end: var(--dds-spacing-x6);
|
|
2010
2031
|
@media only screen and (min-width: 960px) {
|
|
@@ -2407,7 +2428,7 @@
|
|
|
2407
2428
|
|
|
2408
2429
|
/* src/components/List/List.module.css */
|
|
2409
2430
|
.List_list {
|
|
2410
|
-
color: var(--dds-color-text-
|
|
2431
|
+
color: var(--dds-color-text-body);
|
|
2411
2432
|
margin: var(--dds-spacing-x1) 0;
|
|
2412
2433
|
ul,
|
|
2413
2434
|
ol {
|
|
@@ -2432,15 +2453,21 @@
|
|
|
2432
2453
|
position: absolute;
|
|
2433
2454
|
top: calc((2.5em / 2) - 0.5em);
|
|
2434
2455
|
left: 0;
|
|
2435
|
-
background
|
|
2436
|
-
|
|
2437
|
-
|
|
2456
|
+
background: var(--dds-color-text-body);
|
|
2457
|
+
-webkit-mask-size: 100%;
|
|
2458
|
+
mask-size: 100%;
|
|
2459
|
+
-webkit-mask-repeat: no-repeat;
|
|
2460
|
+
mask-repeat: no-repeat;
|
|
2461
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="6.7085" cy="6.7085" r="2.625" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2462
|
+
mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="6.7085" cy="6.7085" r="2.625" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2438
2463
|
}
|
|
2439
2464
|
ul > li:before {
|
|
2440
|
-
|
|
2465
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect x="3.04346" y="6.08691" width="7.30435" height="1.82609" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2466
|
+
mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect x="3.04346" y="6.08691" width="7.30435" height="1.82609" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2441
2467
|
}
|
|
2442
2468
|
ul > li > ul > li:before {
|
|
2443
|
-
|
|
2469
|
+
-webkit-mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M6.70817 9.33333C8.80225 9.33333 10.4998 7.50516 10.4998 5.25H2.9165C2.9165 7.50516 4.61409 9.33333 6.70817 9.33333Z" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2470
|
+
mask-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M6.70817 9.33333C8.80225 9.33333 10.4998 7.50516 10.4998 5.25H2.9165C2.9165 7.50516 4.61409 9.33333 6.70817 9.33333Z" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
2444
2471
|
}
|
|
2445
2472
|
}
|
|
2446
2473
|
}
|
|
@@ -3187,7 +3214,6 @@
|
|
|
3187
3214
|
|
|
3188
3215
|
/* src/components/SkipToContent/SkipToContent.module.css */
|
|
3189
3216
|
.SkipToContent_wrapper {
|
|
3190
|
-
background-color: var(--dds-color-surface-inverse-default);
|
|
3191
3217
|
padding: var(--dds-spacing-x0-25);
|
|
3192
3218
|
box-sizing: border-box;
|
|
3193
3219
|
position: absolute;
|
|
@@ -3210,11 +3236,6 @@
|
|
|
3210
3236
|
z-index: 250;
|
|
3211
3237
|
opacity: 1;
|
|
3212
3238
|
}
|
|
3213
|
-
.SkipToContent_link,
|
|
3214
|
-
.SkipToContent_link:hover {
|
|
3215
|
-
text-decoration: none;
|
|
3216
|
-
color: var(--dds-color-text-on-inverse);
|
|
3217
|
-
}
|
|
3218
3239
|
|
|
3219
3240
|
/* src/components/SplitButton/SplitButton.module.css */
|
|
3220
3241
|
.SplitButton_container {
|
|
@@ -3444,9 +3465,6 @@
|
|
|
3444
3465
|
.Tabs_tab-panel {
|
|
3445
3466
|
padding: var(--dds-spacing-x0-25);
|
|
3446
3467
|
}
|
|
3447
|
-
.Tabs_tab-panel--inactive {
|
|
3448
|
-
display: none;
|
|
3449
|
-
}
|
|
3450
3468
|
|
|
3451
3469
|
/* src/components/Tag/Tag.module.css */
|
|
3452
3470
|
.Tag_container {
|