@norges-domstoler/dds-components 17.5.2 → 17.5.4
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 +19 -17
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +774 -1026
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -763
- 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
|
|
|
@@ -1585,6 +1585,8 @@
|
|
|
1585
1585
|
.InputMessage_container--error {
|
|
1586
1586
|
padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
|
|
1587
1587
|
background-color: var(--dds-color-surface-danger-default);
|
|
1588
|
+
border-bottom-left-radius: var(--dds-border-radius-surface);
|
|
1589
|
+
border-bottom-right-radius: var(--dds-border-radius-surface);
|
|
1588
1590
|
gap: var(--dds-spacing-x0-25);
|
|
1589
1591
|
.InputMessage_icon {
|
|
1590
1592
|
color: var(--dds-color-icon-on-danger-default);
|
|
@@ -1695,6 +1697,7 @@
|
|
|
1695
1697
|
|
|
1696
1698
|
/* src/components/Drawer/Drawer.module.css */
|
|
1697
1699
|
.Drawer_container {
|
|
1700
|
+
--dds-transition-duration-drawer-move: 0.2s;
|
|
1698
1701
|
--dds-drawer-content-container-padding: var(--dds-spacing-x0-25);
|
|
1699
1702
|
--dds-drawer-container-padding: calc( var(--dds-spacing-x1) - var(--dds-drawer-content-container-padding) ) calc(var(--dds-spacing-x1) - var(--dds-drawer-content-container-padding)) calc(var(--dds-spacing-x1) - var(--dds-drawer-content-container-padding)) calc(var(--dds-spacing-x1-5) - var(--dds-drawer-content-container-padding));
|
|
1700
1703
|
position: fixed;
|
|
@@ -1705,9 +1708,10 @@
|
|
|
1705
1708
|
justify-content: flex-end;
|
|
1706
1709
|
min-width: 300px;
|
|
1707
1710
|
z-index: 100;
|
|
1711
|
+
border-radius: 0;
|
|
1708
1712
|
padding: var(--dds-drawer-container-padding);
|
|
1709
1713
|
@media (prefers-reduced-motion: no-preference) {
|
|
1710
|
-
transition: transform var(--dds-transition-duration-
|
|
1714
|
+
transition: transform var(--dds-transition-duration-drawer-move);
|
|
1711
1715
|
}
|
|
1712
1716
|
}
|
|
1713
1717
|
.Drawer_container--small {
|
|
@@ -2590,10 +2594,14 @@
|
|
|
2590
2594
|
--dds-modal-content-padding: var(--dds-spacing-x0-25);
|
|
2591
2595
|
--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));
|
|
2592
2596
|
display: flex;
|
|
2593
|
-
flex-direction: column
|
|
2597
|
+
flex-direction: column;
|
|
2594
2598
|
min-width: 200px;
|
|
2595
2599
|
padding: var(--dds-modal-container-padding);
|
|
2596
2600
|
}
|
|
2601
|
+
.Modal_container-scrollable {
|
|
2602
|
+
max-height: calc(100vh - var(--dds-spacing-x1));
|
|
2603
|
+
overflow: auto;
|
|
2604
|
+
}
|
|
2597
2605
|
.Modal_content {
|
|
2598
2606
|
display: grid;
|
|
2599
2607
|
padding-right: calc(var(--dds-spacing-x1) - var(--dds-modal-content-padding));
|
|
@@ -2731,7 +2739,7 @@
|
|
|
2731
2739
|
.Select_container {
|
|
2732
2740
|
margin: 0;
|
|
2733
2741
|
position: relative;
|
|
2734
|
-
width: var(--dds-
|
|
2742
|
+
width: var(--dds-select-width);
|
|
2735
2743
|
}
|
|
2736
2744
|
.Select_container--disabled {
|
|
2737
2745
|
cursor: not-allowed;
|
|
@@ -2821,15 +2829,12 @@
|
|
|
2821
2829
|
}
|
|
2822
2830
|
}
|
|
2823
2831
|
.NativeSelect_select--medium {
|
|
2824
|
-
height: calc(1.5em + var(--dds-spacing-x0-75) + var(--dds-spacing-x0-75) + 2px);
|
|
2825
2832
|
padding-right: var(--dds-spacing-x2);
|
|
2826
2833
|
}
|
|
2827
2834
|
.NativeSelect_select--small {
|
|
2828
|
-
height: calc(1.5em + var(--dds-spacing-x0-5) + var(--dds-spacing-x0-5) + 2px);
|
|
2829
2835
|
padding-right: var(--dds-spacing-x2);
|
|
2830
2836
|
}
|
|
2831
2837
|
.NativeSelect_select--tiny {
|
|
2832
|
-
height: calc(1.5em + var(--dds-spacing-x0-25) + var(--dds-spacing-x0-25) + 2px);
|
|
2833
2838
|
padding-right: var(--dds-spacing-x1-5);
|
|
2834
2839
|
}
|
|
2835
2840
|
.NativeSelect_select--multiple {
|
|
@@ -3720,9 +3725,6 @@
|
|
|
3720
3725
|
.TextInput_container--disabled {
|
|
3721
3726
|
color: var(--dds-color-text-subtle);
|
|
3722
3727
|
}
|
|
3723
|
-
.TextInput_container--tiny {
|
|
3724
|
-
width: 210px;
|
|
3725
|
-
}
|
|
3726
3728
|
.TextInput_affix-container {
|
|
3727
3729
|
position: relative;
|
|
3728
3730
|
display: flex;
|