@norges-domstoler/dds-components 18.2.0 → 19.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/README.md +2 -2
- package/dist/IBMPlexSans-Medium-F6RY5FT3.woff +0 -0
- package/dist/IBMPlexSans-Medium-GPYSN6WY.woff2 +0 -0
- package/dist/IBMPlexSans-MediumItalic-HYTLJOHM.woff +0 -0
- package/dist/IBMPlexSans-MediumItalic-NOK4NVHM.woff2 +0 -0
- package/dist/index.css +143 -51
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +129 -165
- package/dist/index.d.ts +129 -165
- package/dist/index.js +1150 -953
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1237 -1039
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @norges-domstoler/dds-components
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+
[](https://www.npmjs.com/package/@norges-domstoler/dds-components) 
|
|
4
4
|
|
|
5
5
|
React UI komponenter til bruk i domstolenes tjenester.
|
|
6
6
|
|
|
7
|
-
Sjekk ut [Elsa - domstolenes designsystem](https://design.domstol.no/) og [Elsa Storybook](https://domstolene.github.io/designsystem) for
|
|
7
|
+
Sjekk ut [Elsa - domstolenes designsystem](https://design.domstol.no/) og [Elsa Storybook](https://domstolene.github.io/designsystem) for dokumentasjon og demoer.
|
|
8
8
|
|
|
9
9
|
## 📦 Installasjon
|
|
10
10
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.css
CHANGED
|
@@ -48,6 +48,28 @@
|
|
|
48
48
|
url("./IBMPlexSans-LightItalic-HGYKQIYJ.woff2") format("woff2"),
|
|
49
49
|
url("./IBMPlexSans-LightItalic-DGDYT5M4.woff") format("woff");
|
|
50
50
|
}
|
|
51
|
+
@font-face {
|
|
52
|
+
font-family: IBM Plex Sans;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
font-display: swap;
|
|
56
|
+
src:
|
|
57
|
+
local("IBM Plex Sans Medium"),
|
|
58
|
+
local("IBMPlexSans-Medium"),
|
|
59
|
+
url("./IBMPlexSans-Medium-GPYSN6WY.woff2") format("woff2"),
|
|
60
|
+
url("./IBMPlexSans-Medium-F6RY5FT3.woff") format("woff");
|
|
61
|
+
}
|
|
62
|
+
@font-face {
|
|
63
|
+
font-family: IBM Plex Sans;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-display: swap;
|
|
67
|
+
src:
|
|
68
|
+
local("IBM Plex Sans Medium Italic"),
|
|
69
|
+
local("IBMPlexSans-MediumItalic"),
|
|
70
|
+
url("./IBMPlexSans-MediumItalic-NOK4NVHM.woff2") format("woff2"),
|
|
71
|
+
url("./IBMPlexSans-MediumItalic-HYTLJOHM.woff") format("woff");
|
|
72
|
+
}
|
|
51
73
|
@font-face {
|
|
52
74
|
font-family: IBM Plex Sans;
|
|
53
75
|
font-style: normal;
|
|
@@ -434,12 +456,17 @@
|
|
|
434
456
|
right: 0;
|
|
435
457
|
bottom: 0;
|
|
436
458
|
left: 0;
|
|
437
|
-
z-index: 200;
|
|
438
459
|
background-color: var(--dds-color-surface-backdrop-default);
|
|
439
460
|
@media (prefers-reduced-motion: no-preference) {
|
|
440
461
|
transition: opacity 0.2s;
|
|
441
462
|
}
|
|
442
463
|
}
|
|
464
|
+
.Backdrop_drawer {
|
|
465
|
+
z-index: var(--dds-zindex-drawer-backdrop);
|
|
466
|
+
}
|
|
467
|
+
.Backdrop_modal {
|
|
468
|
+
z-index: var(--dds-zindex-modal-backdrop);
|
|
469
|
+
}
|
|
443
470
|
.Backdrop_backdrop--visible {
|
|
444
471
|
opacity: 1;
|
|
445
472
|
}
|
|
@@ -611,7 +638,7 @@
|
|
|
611
638
|
position: absolute;
|
|
612
639
|
top: 50%;
|
|
613
640
|
transform: translate(0, -50%);
|
|
614
|
-
z-index:
|
|
641
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
615
642
|
color: var(--dds-color-icon-default);
|
|
616
643
|
}
|
|
617
644
|
|
|
@@ -1049,7 +1076,7 @@
|
|
|
1049
1076
|
/* src/components/OverflowMenu/OverflowMenu.module.css */
|
|
1050
1077
|
.OverflowMenu_container {
|
|
1051
1078
|
box-sizing: border-box;
|
|
1052
|
-
z-index:
|
|
1079
|
+
z-index: var(--dds-zindex-overflowmenu);
|
|
1053
1080
|
overflow-y: auto;
|
|
1054
1081
|
min-width: 180px;
|
|
1055
1082
|
max-width: 300px;
|
|
@@ -1062,11 +1089,16 @@
|
|
|
1062
1089
|
display: flex;
|
|
1063
1090
|
box-sizing: border-box;
|
|
1064
1091
|
align-items: center;
|
|
1065
|
-
color: var(--dds-color-text-default);
|
|
1066
1092
|
background-color: var(--dds-color-surface-default);
|
|
1067
1093
|
text-decoration: none;
|
|
1068
1094
|
padding: var(--dds-spacing-x0-75);
|
|
1069
1095
|
gap: var(--dds-spacing-x0-25);
|
|
1096
|
+
&.OverflowMenu_default {
|
|
1097
|
+
color: var(--dds-color-text-default);
|
|
1098
|
+
}
|
|
1099
|
+
&.OverflowMenu_danger {
|
|
1100
|
+
color: var(--dds-color-text-danger);
|
|
1101
|
+
}
|
|
1070
1102
|
}
|
|
1071
1103
|
.OverflowMenu_list__item--link {
|
|
1072
1104
|
text-align: left;
|
|
@@ -1120,7 +1152,7 @@
|
|
|
1120
1152
|
/* src/components/ButtonGroup/ButtonGroup.module.css */
|
|
1121
1153
|
.ButtonGroup_group > *:focus-visible {
|
|
1122
1154
|
position: relative;
|
|
1123
|
-
z-index:
|
|
1155
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
1124
1156
|
}
|
|
1125
1157
|
.ButtonGroup_group--column {
|
|
1126
1158
|
display: flex;
|
|
@@ -1330,18 +1362,67 @@
|
|
|
1330
1362
|
color: var(--dds-color-text-medium);
|
|
1331
1363
|
}
|
|
1332
1364
|
.DateInput_popover {
|
|
1333
|
-
z-index:
|
|
1334
|
-
border-radius: var(--dds-border-radius-surface);
|
|
1335
|
-
background-color: var(--dds-color-surface-default);
|
|
1336
|
-
border: 1px solid var(--dds-color-border-default);
|
|
1365
|
+
z-index: var(--dds-zindex-popover);
|
|
1337
1366
|
padding: var(--dds-spacing-x0-5);
|
|
1338
|
-
|
|
1339
|
-
|
|
1367
|
+
}
|
|
1368
|
+
.DateInput_popover--large-screen-hide-xs {
|
|
1369
|
+
@media only screen and (max-width: 600px) {
|
|
1370
|
+
display: none;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
.DateInput_popover--large-screen-hide-sm {
|
|
1374
|
+
@media only screen and (max-width: 960px) {
|
|
1375
|
+
display: none;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
.DateInput_popover--large-screen-hide-md {
|
|
1379
|
+
@media only screen and (max-width: 1280px) {
|
|
1380
|
+
display: none;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
.DateInput_popover--large-screen-hide-lg {
|
|
1384
|
+
@media only screen and (max-width: 1920px) {
|
|
1385
|
+
display: none;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
.DateInput_popover--large-screen-hide-xl {
|
|
1389
|
+
display: none;
|
|
1390
|
+
}
|
|
1391
|
+
.DateInput_modal {
|
|
1392
|
+
display: none;
|
|
1393
|
+
}
|
|
1394
|
+
.DateInput_modal--small-screen-show-xs {
|
|
1395
|
+
@media only screen and (max-width: 600px) {
|
|
1396
|
+
display: block;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
.DateInput_modal--small-screen-show-sm {
|
|
1400
|
+
@media only screen and (max-width: 960px) {
|
|
1401
|
+
display: block;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
.DateInput_modal--small-screen-show-md {
|
|
1405
|
+
@media only screen and (max-width: 1280px) {
|
|
1406
|
+
display: block;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
.DateInput_modal--small-screen-show-lg {
|
|
1410
|
+
@media only screen and (max-width: 1920px) {
|
|
1411
|
+
display: block;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
.DateInput_modal--small-screen-show-xl {
|
|
1415
|
+
display: block;
|
|
1416
|
+
}
|
|
1417
|
+
.DateInput_modal-close-button-wrapper {
|
|
1418
|
+
display: flex;
|
|
1419
|
+
justify-content: right;
|
|
1340
1420
|
}
|
|
1341
1421
|
.DateInput_calendar {
|
|
1342
1422
|
display: flex;
|
|
1343
1423
|
flex-direction: column;
|
|
1344
1424
|
gap: 1rem;
|
|
1425
|
+
height: 327px;
|
|
1345
1426
|
}
|
|
1346
1427
|
.DateInput_calendar__header {
|
|
1347
1428
|
display: flex;
|
|
@@ -1405,6 +1486,30 @@
|
|
|
1405
1486
|
text-decoration: underline line-through;
|
|
1406
1487
|
}
|
|
1407
1488
|
|
|
1489
|
+
/* src/components/ThemeProvider/ThemeProvider.module.css */
|
|
1490
|
+
.ThemeProvider_global-variables {
|
|
1491
|
+
--dds-color-text-body: var(--dds-color-text-default);
|
|
1492
|
+
--dds-color-text-body-subtle: var(--dds-color-text-subtle);
|
|
1493
|
+
--dds-color-text-link: var(--dds-color-text-action-resting);
|
|
1494
|
+
--dds-color-text-link-visited: var(--dds-color-text-action-visited);
|
|
1495
|
+
--dds-color-text-label: var(--dds-color-text-medium);
|
|
1496
|
+
--dds-color-text-placeholder: var(--dds-color-text-subtle);
|
|
1497
|
+
--dds-color-text-helper: var(--dds-color-text-subtle);
|
|
1498
|
+
--dds-color-icon-link: var(--dds-color-text-action-resting);
|
|
1499
|
+
--dds-focus-outline: var(--dds-color-focus-outside) 2px solid;
|
|
1500
|
+
--dds-focus-outline-offset: var(--dds-spacing-x0-125);
|
|
1501
|
+
--dds-focus-outline-inset: calc(0px - var(--dds-spacing-x0-25));
|
|
1502
|
+
--dds-focus-box-shadow: 0 0 0 2px var(--dds-color-focus-inside);
|
|
1503
|
+
--dds-focus-transition: outline-offset 0.2s;
|
|
1504
|
+
--dds-input-default-width: 320px;
|
|
1505
|
+
--dds-transition-duration-surface-move: 0.5s;
|
|
1506
|
+
}
|
|
1507
|
+
.ThemeProvider_global-styles {
|
|
1508
|
+
font: var(--dds-font-body-medium);
|
|
1509
|
+
letter-spacing: var(--dds-font-body-medium-letter-spacing);
|
|
1510
|
+
color: var(--dds-color-text-default);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1408
1513
|
/* src/components/InputMessage/InputMessage.module.css */
|
|
1409
1514
|
.InputMessage_container {
|
|
1410
1515
|
display: flex;
|
|
@@ -1544,7 +1649,7 @@
|
|
|
1544
1649
|
flex-direction: column-reverse;
|
|
1545
1650
|
justify-content: flex-end;
|
|
1546
1651
|
min-width: 300px;
|
|
1547
|
-
z-index:
|
|
1652
|
+
z-index: var(--dds-zindex-drawer);
|
|
1548
1653
|
border-radius: 0;
|
|
1549
1654
|
padding: var(--dds-drawer-container-padding);
|
|
1550
1655
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -1588,30 +1693,6 @@
|
|
|
1588
1693
|
align-self: flex-end;
|
|
1589
1694
|
}
|
|
1590
1695
|
|
|
1591
|
-
/* src/components/ThemeProvider/ThemeProvider.module.css */
|
|
1592
|
-
.ThemeProvider_global-variables {
|
|
1593
|
-
--dds-color-text-body: var(--dds-color-text-default);
|
|
1594
|
-
--dds-color-text-body-subtle: var(--dds-color-text-subtle);
|
|
1595
|
-
--dds-color-text-link: var(--dds-color-text-action-resting);
|
|
1596
|
-
--dds-color-text-link-visited: var(--dds-color-text-action-visited);
|
|
1597
|
-
--dds-color-text-label: var(--dds-color-text-medium);
|
|
1598
|
-
--dds-color-text-placeholder: var(--dds-color-text-subtle);
|
|
1599
|
-
--dds-color-text-helper: var(--dds-color-text-subtle);
|
|
1600
|
-
--dds-color-icon-link: var(--dds-color-text-action-resting);
|
|
1601
|
-
--dds-focus-outline: var(--dds-color-focus-outside) 2px solid;
|
|
1602
|
-
--dds-focus-outline-offset: var(--dds-spacing-x0-125);
|
|
1603
|
-
--dds-focus-outline-inset: calc(0px - var(--dds-spacing-x0-25));
|
|
1604
|
-
--dds-focus-box-shadow: 0 0 0 2px var(--dds-color-focus-inside);
|
|
1605
|
-
--dds-focus-transition: outline-offset 0.2s;
|
|
1606
|
-
--dds-input-default-width: 320px;
|
|
1607
|
-
--dds-transition-duration-surface-move: 0.5s;
|
|
1608
|
-
}
|
|
1609
|
-
.ThemeProvider_global-styles {
|
|
1610
|
-
font: var(--dds-font-body-medium);
|
|
1611
|
-
letter-spacing: var(--dds-font-body-medium-letter-spacing);
|
|
1612
|
-
color: var(--dds-color-text-default);
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
1696
|
/* src/components/EmptyContent/EmptyContent.module.css */
|
|
1616
1697
|
.EmptyContent_containter {
|
|
1617
1698
|
display: flex;
|
|
@@ -1849,7 +1930,7 @@
|
|
|
1849
1930
|
width: -moz-fit-content;
|
|
1850
1931
|
width: fit-content;
|
|
1851
1932
|
position: absolute;
|
|
1852
|
-
z-index:
|
|
1933
|
+
z-index: var(--dds-zindex-tooltip);
|
|
1853
1934
|
text-align: center;
|
|
1854
1935
|
padding: var(--dds-spacing-x0-75);
|
|
1855
1936
|
}
|
|
@@ -2140,7 +2221,7 @@
|
|
|
2140
2221
|
position: absolute;
|
|
2141
2222
|
top: var(--dds-spacing-x0-5);
|
|
2142
2223
|
left: var(--dds-spacing-x0-5);
|
|
2143
|
-
z-index:
|
|
2224
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
2144
2225
|
&:hover {
|
|
2145
2226
|
cursor: text;
|
|
2146
2227
|
}
|
|
@@ -2816,9 +2897,9 @@
|
|
|
2816
2897
|
}
|
|
2817
2898
|
.PhoneInput_select:focus-visible,
|
|
2818
2899
|
.PhoneInput_select:hover {
|
|
2819
|
-
z-index:
|
|
2900
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
2820
2901
|
& ~ svg {
|
|
2821
|
-
z-index:
|
|
2902
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
2822
2903
|
}
|
|
2823
2904
|
}
|
|
2824
2905
|
.PhoneInput_calling-code {
|
|
@@ -2830,13 +2911,13 @@
|
|
|
2830
2911
|
position: absolute;
|
|
2831
2912
|
width: -moz-fit-content;
|
|
2832
2913
|
width: fit-content;
|
|
2833
|
-
z-index:
|
|
2914
|
+
z-index: var(--dds-zindex-popover);
|
|
2834
2915
|
padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5) var(--dds-spacing-x1);
|
|
2835
2916
|
}
|
|
2836
|
-
.Popover_content--closable--no-
|
|
2917
|
+
.Popover_content--closable--no-header {
|
|
2837
2918
|
margin-top: var(--dds-spacing-x2);
|
|
2838
2919
|
}
|
|
2839
|
-
.
|
|
2920
|
+
.Popover_header {
|
|
2840
2921
|
margin-right: var(--dds-spacing-x2);
|
|
2841
2922
|
}
|
|
2842
2923
|
.Popover_close-button {
|
|
@@ -2921,7 +3002,7 @@
|
|
|
2921
3002
|
display: flex;
|
|
2922
3003
|
align-items: center;
|
|
2923
3004
|
justify-content: center;
|
|
2924
|
-
z-index:
|
|
3005
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
2925
3006
|
font-weight: 600;
|
|
2926
3007
|
border: 2px solid;
|
|
2927
3008
|
height: var(--dds-progress-tracker-item-number-size);
|
|
@@ -3070,7 +3151,7 @@
|
|
|
3070
3151
|
top: 100%;
|
|
3071
3152
|
width: 100%;
|
|
3072
3153
|
max-height: 300px;
|
|
3073
|
-
z-index:
|
|
3154
|
+
z-index: var(--dds-zindex-dropdown);
|
|
3074
3155
|
overflow-y: scroll;
|
|
3075
3156
|
margin-top: var(--dds-spacing-x0-25);
|
|
3076
3157
|
}
|
|
@@ -3265,7 +3346,7 @@
|
|
|
3265
3346
|
height: auto;
|
|
3266
3347
|
overflow: auto;
|
|
3267
3348
|
width: 100%;
|
|
3268
|
-
z-index:
|
|
3349
|
+
z-index: var(--dds-zindex-skiptocontent);
|
|
3269
3350
|
opacity: 1;
|
|
3270
3351
|
}
|
|
3271
3352
|
|
|
@@ -3319,7 +3400,7 @@
|
|
|
3319
3400
|
tr th {
|
|
3320
3401
|
position: sticky;
|
|
3321
3402
|
top: 0;
|
|
3322
|
-
z-index:
|
|
3403
|
+
z-index: var(--dds-zindex-sticky);
|
|
3323
3404
|
}
|
|
3324
3405
|
}
|
|
3325
3406
|
.Table_table--small {
|
|
@@ -3640,7 +3721,7 @@
|
|
|
3640
3721
|
display: flex;
|
|
3641
3722
|
align-items: center;
|
|
3642
3723
|
pointer-events: none;
|
|
3643
|
-
z-index:
|
|
3724
|
+
z-index: var(--dds-zindex-absolute-element);
|
|
3644
3725
|
}
|
|
3645
3726
|
.TextInput_prefix {
|
|
3646
3727
|
left: 0;
|
|
@@ -3957,8 +4038,6 @@
|
|
|
3957
4038
|
width: fit-content;
|
|
3958
4039
|
border: 1px solid var(--dds-color-border-default);
|
|
3959
4040
|
border-radius: var(--dds-border-radius-rounded);
|
|
3960
|
-
gap: var(--dds-spacing-x0-25);
|
|
3961
|
-
padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1);
|
|
3962
4041
|
background-color: var(--dds-color-surface-default);
|
|
3963
4042
|
color: var(--dds-color-text-default);
|
|
3964
4043
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -3972,8 +4051,21 @@
|
|
|
3972
4051
|
background-color: var(--dds-color-surface-hover-default);
|
|
3973
4052
|
}
|
|
3974
4053
|
}
|
|
4054
|
+
.ToggleButton_small {
|
|
4055
|
+
gap: var(--dds-spacing-x0-25);
|
|
4056
|
+
padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1);
|
|
4057
|
+
}
|
|
4058
|
+
.ToggleButton_xsmall {
|
|
4059
|
+
gap: var(--dds-spacing-x0-125);
|
|
4060
|
+
padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
|
|
4061
|
+
}
|
|
3975
4062
|
.ToggleButton_content--with-icon {
|
|
3976
|
-
|
|
4063
|
+
&.ToggleButton_small {
|
|
4064
|
+
padding-inline-start: var(--dds-spacing-x0-75);
|
|
4065
|
+
}
|
|
4066
|
+
&.ToggleButton_xsmall {
|
|
4067
|
+
padding-inline-start: var(--dds-spacing-x0-25);
|
|
4068
|
+
}
|
|
3977
4069
|
}
|
|
3978
4070
|
input:checked + .ToggleButton_content {
|
|
3979
4071
|
color: var(--dds-color-text-on-action);
|