@norges-domstoler/dds-components 17.5.3 → 17.6.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/dist/index.css +27 -21
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +1127 -1351
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +699 -923
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -844,31 +844,31 @@
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
/* src/components/helpers/Paper/Paper.module.css */
|
|
847
|
-
.Paper_container {
|
|
847
|
+
:where(.Paper_container) {
|
|
848
848
|
box-sizing: border-box;
|
|
849
849
|
background-color: var(--dds-color-surface-default);
|
|
850
850
|
border-radius: var(--dds-border-radius-surface);
|
|
851
851
|
margin: 0;
|
|
852
852
|
}
|
|
853
|
-
.Paper_shadow--1 {
|
|
853
|
+
:where(.Paper_shadow--1) {
|
|
854
854
|
box-shadow: var(--dds-shadow-1);
|
|
855
855
|
}
|
|
856
|
-
.Paper_shadow--2 {
|
|
856
|
+
:where(.Paper_shadow--2) {
|
|
857
857
|
box-shadow: var(--dds-shadow-2);
|
|
858
858
|
}
|
|
859
|
-
.Paper_shadow--3 {
|
|
859
|
+
:where(.Paper_shadow--3) {
|
|
860
860
|
box-shadow: var(--dds-shadow-3);
|
|
861
861
|
}
|
|
862
|
-
.Paper_shadow--4 {
|
|
862
|
+
:where(.Paper_shadow--4) {
|
|
863
863
|
box-shadow: var(--dds-shadow-4);
|
|
864
864
|
}
|
|
865
|
-
.Paper_border--default {
|
|
865
|
+
:where(.Paper_border--default) {
|
|
866
866
|
border: 1px solid var(--dds-color-border-default);
|
|
867
867
|
}
|
|
868
|
-
.Paper_border--subtle {
|
|
868
|
+
:where(.Paper_border--subtle) {
|
|
869
869
|
border: 1px solid var(--dds-color-border-subtle);
|
|
870
870
|
}
|
|
871
|
-
.Paper_border--on-inverse {
|
|
871
|
+
:where(.Paper_border--on-inverse) {
|
|
872
872
|
border: 1px solid var(--dds-color-border-inverse);
|
|
873
873
|
}
|
|
874
874
|
|
|
@@ -891,6 +891,9 @@
|
|
|
891
891
|
.Accordion_header-container {
|
|
892
892
|
padding: var(--dds-spacing-x1) var(--dds-spacing-x1-5) var(--dds-spacing-x1) var(--dds-spacing-x1);
|
|
893
893
|
}
|
|
894
|
+
.Accordion_header-container__chevron {
|
|
895
|
+
margin-right: var(--dds-spacing-x0-5);
|
|
896
|
+
}
|
|
894
897
|
.Accordion_body {
|
|
895
898
|
height: var(--dds-card-accordion-body-height);
|
|
896
899
|
}
|
|
@@ -911,7 +914,6 @@
|
|
|
911
914
|
}
|
|
912
915
|
.AccordionBase_header-container {
|
|
913
916
|
display: flex;
|
|
914
|
-
justify-content: space-between;
|
|
915
917
|
align-items: center;
|
|
916
918
|
}
|
|
917
919
|
.AccordionBase_header__content {
|
|
@@ -923,7 +925,6 @@
|
|
|
923
925
|
justify-content: center;
|
|
924
926
|
height: var(--dds-icon-size-medium);
|
|
925
927
|
width: var(--dds-icon-size-medium);
|
|
926
|
-
margin-left: var(--dds-spacing-x0-5);
|
|
927
928
|
}
|
|
928
929
|
.AccordionBase_body {
|
|
929
930
|
overflow: hidden;
|
|
@@ -1345,7 +1346,7 @@
|
|
|
1345
1346
|
}
|
|
1346
1347
|
.Card_container--border {
|
|
1347
1348
|
background-color: var(--dds-color-surface-default);
|
|
1348
|
-
border-color: var(--dds-color-border-
|
|
1349
|
+
border-color: var(--dds-color-border-subtle);
|
|
1349
1350
|
}
|
|
1350
1351
|
.Card_container--navigation {
|
|
1351
1352
|
text-decoration: none;
|
|
@@ -1377,10 +1378,14 @@
|
|
|
1377
1378
|
}
|
|
1378
1379
|
.CardAccordion_header-container {
|
|
1379
1380
|
padding: var(--dds-card-accordion-header-container-padding);
|
|
1381
|
+
justify-content: space-between;
|
|
1380
1382
|
@media (prefers-reduced-motion: no-preference) {
|
|
1381
1383
|
transition: box-shadow 0.2s;
|
|
1382
1384
|
}
|
|
1383
1385
|
}
|
|
1386
|
+
.CardAccordion_header-container__chevron {
|
|
1387
|
+
margin-left: var(--dds-spacing-x0-5);
|
|
1388
|
+
}
|
|
1384
1389
|
.CardAccordion_body {
|
|
1385
1390
|
height: var(--dds-card-accordion-body-height);
|
|
1386
1391
|
}
|
|
@@ -1585,6 +1590,8 @@
|
|
|
1585
1590
|
.InputMessage_container--error {
|
|
1586
1591
|
padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
|
|
1587
1592
|
background-color: var(--dds-color-surface-danger-default);
|
|
1593
|
+
border-bottom-left-radius: var(--dds-border-radius-surface);
|
|
1594
|
+
border-bottom-right-radius: var(--dds-border-radius-surface);
|
|
1588
1595
|
gap: var(--dds-spacing-x0-25);
|
|
1589
1596
|
.InputMessage_icon {
|
|
1590
1597
|
color: var(--dds-color-icon-on-danger-default);
|
|
@@ -1706,6 +1713,7 @@
|
|
|
1706
1713
|
justify-content: flex-end;
|
|
1707
1714
|
min-width: 300px;
|
|
1708
1715
|
z-index: 100;
|
|
1716
|
+
border-radius: 0;
|
|
1709
1717
|
padding: var(--dds-drawer-container-padding);
|
|
1710
1718
|
@media (prefers-reduced-motion: no-preference) {
|
|
1711
1719
|
transition: transform var(--dds-transition-duration-drawer-move);
|
|
@@ -1830,11 +1838,11 @@
|
|
|
1830
1838
|
display: flex;
|
|
1831
1839
|
gap: var(--dds-spacing-x1);
|
|
1832
1840
|
}
|
|
1833
|
-
.Feedback_rating-container--
|
|
1841
|
+
.Feedback_rating-container--horizontal {
|
|
1834
1842
|
flex-direction: row;
|
|
1835
1843
|
align-items: center;
|
|
1836
1844
|
}
|
|
1837
|
-
.Feedback_rating-container--
|
|
1845
|
+
.Feedback_rating-container--vertical {
|
|
1838
1846
|
flex-direction: column;
|
|
1839
1847
|
align-items: start;
|
|
1840
1848
|
}
|
|
@@ -2591,10 +2599,14 @@
|
|
|
2591
2599
|
--dds-modal-content-padding: var(--dds-spacing-x0-25);
|
|
2592
2600
|
--dds-modal-container-padding: calc( var(--dds-spacing-x1) - var(--dds-modal-content-padding) ) calc(var(--dds-spacing-x1) - var(--dds-modal-content-padding)) calc(var(--dds-spacing-x1-5) - var(--dds-modal-content-padding)) calc(var(--dds-spacing-x1-5) - var(--dds-modal-content-padding));
|
|
2593
2601
|
display: flex;
|
|
2594
|
-
flex-direction: column
|
|
2602
|
+
flex-direction: column;
|
|
2595
2603
|
min-width: 200px;
|
|
2596
2604
|
padding: var(--dds-modal-container-padding);
|
|
2597
2605
|
}
|
|
2606
|
+
.Modal_container-scrollable {
|
|
2607
|
+
max-height: calc(100vh - var(--dds-spacing-x1));
|
|
2608
|
+
overflow: auto;
|
|
2609
|
+
}
|
|
2598
2610
|
.Modal_content {
|
|
2599
2611
|
display: grid;
|
|
2600
2612
|
padding-right: calc(var(--dds-spacing-x1) - var(--dds-modal-content-padding));
|
|
@@ -2732,7 +2744,7 @@
|
|
|
2732
2744
|
.Select_container {
|
|
2733
2745
|
margin: 0;
|
|
2734
2746
|
position: relative;
|
|
2735
|
-
width: var(--dds-
|
|
2747
|
+
width: var(--dds-select-width);
|
|
2736
2748
|
}
|
|
2737
2749
|
.Select_container--disabled {
|
|
2738
2750
|
cursor: not-allowed;
|
|
@@ -2822,15 +2834,12 @@
|
|
|
2822
2834
|
}
|
|
2823
2835
|
}
|
|
2824
2836
|
.NativeSelect_select--medium {
|
|
2825
|
-
height: calc(1.5em + var(--dds-spacing-x0-75) + var(--dds-spacing-x0-75) + 2px);
|
|
2826
2837
|
padding-right: var(--dds-spacing-x2);
|
|
2827
2838
|
}
|
|
2828
2839
|
.NativeSelect_select--small {
|
|
2829
|
-
height: calc(1.5em + var(--dds-spacing-x0-5) + var(--dds-spacing-x0-5) + 2px);
|
|
2830
2840
|
padding-right: var(--dds-spacing-x2);
|
|
2831
2841
|
}
|
|
2832
2842
|
.NativeSelect_select--tiny {
|
|
2833
|
-
height: calc(1.5em + var(--dds-spacing-x0-25) + var(--dds-spacing-x0-25) + 2px);
|
|
2834
2843
|
padding-right: var(--dds-spacing-x1-5);
|
|
2835
2844
|
}
|
|
2836
2845
|
.NativeSelect_select--multiple {
|
|
@@ -3721,9 +3730,6 @@
|
|
|
3721
3730
|
.TextInput_container--disabled {
|
|
3722
3731
|
color: var(--dds-color-text-subtle);
|
|
3723
3732
|
}
|
|
3724
|
-
.TextInput_container--tiny {
|
|
3725
|
-
width: 210px;
|
|
3726
|
-
}
|
|
3727
3733
|
.TextInput_affix-container {
|
|
3728
3734
|
position: relative;
|
|
3729
3735
|
display: flex;
|