@norges-domstoler/dds-components 22.1.0 → 22.3.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 +92 -97
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +57 -3
- package/dist/index.d.ts +57 -3
- package/dist/index.js +1238 -1133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1233 -1133
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
package/dist/index.css
CHANGED
|
@@ -2540,21 +2540,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
|
|
2542
2542
|
/* src/components/date-inputs/common/DateInput.module.css */
|
|
2543
|
-
.DateInput_date-input {
|
|
2544
|
-
display: inline-flex;
|
|
2545
|
-
flex-direction: row;
|
|
2546
|
-
align-items: center;
|
|
2547
|
-
gap: var(--dds-spacing-x0-5);
|
|
2548
|
-
}
|
|
2549
|
-
.DateInput_date-input--medium--clearable {
|
|
2550
|
-
padding-inline-end: var(--dds-spacing-x0-5);
|
|
2551
|
-
}
|
|
2552
|
-
.DateInput_date-input--small--clearable {
|
|
2553
|
-
padding-inline-end: var(--dds-spacing-x0-5);
|
|
2554
|
-
}
|
|
2555
|
-
.DateInput_date-input--xsmall--clearable {
|
|
2556
|
-
padding-inline-end: var(--dds-spacing-x0-25);
|
|
2557
|
-
}
|
|
2558
2543
|
.DateInput_date-segment-container {
|
|
2559
2544
|
display: flex;
|
|
2560
2545
|
flex-direction: row;
|
|
@@ -2587,9 +2572,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2587
2572
|
height: 0;
|
|
2588
2573
|
width: 0;
|
|
2589
2574
|
}
|
|
2590
|
-
.DateInput_clear-button {
|
|
2591
|
-
align-self: center;
|
|
2592
|
-
}
|
|
2593
2575
|
.DateInput_clear-button--inactive {
|
|
2594
2576
|
visibility: hidden;
|
|
2595
2577
|
}
|
|
@@ -2684,6 +2666,14 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2684
2666
|
}
|
|
2685
2667
|
.Input_input-group {
|
|
2686
2668
|
position: relative;
|
|
2669
|
+
--dds-input-absolute-el-left-xsmall: var(--dds-spacing-x0-25);
|
|
2670
|
+
--dds-input-absolute-el-left-small: var(--dds-spacing-x0-5);
|
|
2671
|
+
--dds-input-absolute-el-left-medium: var(--dds-spacing-x0-75);
|
|
2672
|
+
--dds-input-absolute-el-left-large: var(--dds-spacing-x0-75);
|
|
2673
|
+
--dds-input-absolute-el-right-xsmall: var(--dds-spacing-x0-25);
|
|
2674
|
+
--dds-input-absolute-el-right-small: var(--dds-spacing-x0-5);
|
|
2675
|
+
--dds-input-absolute-el-right-medium: var(--dds-spacing-x0-75);
|
|
2676
|
+
--dds-input-absolute-el-right-large: var(--dds-spacing-x0-75);
|
|
2687
2677
|
}
|
|
2688
2678
|
:where(.Input_input) {
|
|
2689
2679
|
position: relative;
|
|
@@ -2789,40 +2779,40 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2789
2779
|
padding: var(--dds-spacing-x0-25);
|
|
2790
2780
|
}
|
|
2791
2781
|
.Input_input-with-icon--large {
|
|
2792
|
-
padding-left: calc(var(--dds-
|
|
2782
|
+
padding-left: calc(var(--dds-input-absolute-el-left-large) + var(--dds-size-icon-component) + var(--dds-spacing-lg-icon-text-gap));
|
|
2793
2783
|
}
|
|
2794
2784
|
.Input_input-with-icon--medium {
|
|
2795
|
-
padding-left: calc(var(--dds-
|
|
2785
|
+
padding-left: calc(var(--dds-input-absolute-el-left-medium) + var(--dds-size-icon-component) + var(--dds-spacing-md-icon-text-gap));
|
|
2796
2786
|
}
|
|
2797
2787
|
.Input_input-with-icon--small {
|
|
2798
|
-
padding-left: calc(var(--dds-
|
|
2788
|
+
padding-left: calc(var(--dds-input-absolute-el-left-small) + var(--dds-size-icon-component) + var(--dds-spacing-sm-icon-text-gap));
|
|
2799
2789
|
}
|
|
2800
2790
|
.Input_input-with-icon--xsmall {
|
|
2801
|
-
padding-left: calc(var(--dds-
|
|
2791
|
+
padding-left: calc(var(--dds-input-absolute-el-left-xsmall) + var(--dds-size-icon-component) + var(--dds-spacing-xs-icon-text-gap));
|
|
2802
2792
|
}
|
|
2803
2793
|
.Input_input-with-el-right--large {
|
|
2804
|
-
padding-inline-end: calc(var(--dds-
|
|
2794
|
+
padding-inline-end: calc(var(--dds-input-absolute-el-right-large) + var(--dds-size-icon-component) + var(--dds-spacing-lg-icon-text-gap));
|
|
2805
2795
|
}
|
|
2806
2796
|
.Input_input-with-el-right--medium {
|
|
2807
|
-
padding-inline-end: calc(var(--dds-
|
|
2797
|
+
padding-inline-end: calc(var(--dds-input-absolute-el-right-medium) + var(--dds-size-icon-component) + var(--dds-spacing-md-icon-text-gap));
|
|
2808
2798
|
}
|
|
2809
2799
|
.Input_input-with-el-right--small {
|
|
2810
|
-
padding-inline-end: calc(var(--dds-
|
|
2800
|
+
padding-inline-end: calc(var(--dds-input-absolute-el-right-small) + var(--dds-size-icon-component) + var(--dds-spacing-sm-icon-text-gap));
|
|
2811
2801
|
}
|
|
2812
2802
|
.Input_input-with-el-right--xsmall {
|
|
2813
|
-
padding-inline-end: calc(var(--dds-
|
|
2803
|
+
padding-inline-end: calc(var(--dds-input-absolute-el-right-xsmall) + var(--dds-size-icon-component) + var(--dds-spacing-xs-icon-text-gap));
|
|
2814
2804
|
}
|
|
2815
|
-
.
|
|
2816
|
-
right: var(--dds-
|
|
2805
|
+
.Input_input-group__absolute-el-right--large {
|
|
2806
|
+
right: var(--dds-input-absolute-el-left-large);
|
|
2817
2807
|
}
|
|
2818
|
-
.
|
|
2819
|
-
right: var(--dds-
|
|
2808
|
+
.Input_input-group__absolute-el-right--medium {
|
|
2809
|
+
right: var(--dds-input-absolute-el-left-medium);
|
|
2820
2810
|
}
|
|
2821
|
-
.
|
|
2822
|
-
right: var(--dds-
|
|
2811
|
+
.Input_input-group__absolute-el-right--small {
|
|
2812
|
+
right: var(--dds-input-absolute-el-left-small);
|
|
2823
2813
|
}
|
|
2824
|
-
.
|
|
2825
|
-
right: var(--dds-
|
|
2814
|
+
.Input_input-group__absolute-el-right--xsmall {
|
|
2815
|
+
right: var(--dds-input-absolute-el-left-xsmall);
|
|
2826
2816
|
}
|
|
2827
2817
|
:where(.Input_input--with-affix) {
|
|
2828
2818
|
gap: var(--dds-spacing-x1);
|
|
@@ -2835,16 +2825,16 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2835
2825
|
color: var(--dds-color-icon-default);
|
|
2836
2826
|
}
|
|
2837
2827
|
:where(.Input_input-group__absolute-el--large) {
|
|
2838
|
-
left: var(--dds-
|
|
2828
|
+
left: var(--dds-input-absolute-el-left-large);
|
|
2839
2829
|
}
|
|
2840
2830
|
:where(.Input_input-group__absolute-el--medium) {
|
|
2841
|
-
left: var(--dds-
|
|
2831
|
+
left: var(--dds-input-absolute-el-left-medium);
|
|
2842
2832
|
}
|
|
2843
2833
|
:where(.Input_input-group__absolute-el--small) {
|
|
2844
|
-
left: var(--dds-
|
|
2834
|
+
left: var(--dds-input-absolute-el-left-small);
|
|
2845
2835
|
}
|
|
2846
2836
|
:where(.Input_input-group__absolute-el--xsmall) {
|
|
2847
|
-
left: var(--dds-
|
|
2837
|
+
left: var(--dds-input-absolute-el-left-xsmall);
|
|
2848
2838
|
}
|
|
2849
2839
|
|
|
2850
2840
|
/* src/components/DescriptionList/DescriptionList.module.css */
|
|
@@ -3007,6 +2997,70 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
3007
2997
|
margin-top: calc(-1 * var(--dds-spacing-x0-125));
|
|
3008
2998
|
}
|
|
3009
2999
|
|
|
3000
|
+
/* src/components/ErrorSummary/ErrorSummary.module.css */
|
|
3001
|
+
.ErrorSummary_container {
|
|
3002
|
+
border: 2px solid var(--dds-color-border-danger);
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
/* src/components/List/List.module.css */
|
|
3006
|
+
.List_list {
|
|
3007
|
+
color: var(--dds-color-text-body);
|
|
3008
|
+
margin: var(--dds-spacing-x1) 0;
|
|
3009
|
+
ul,
|
|
3010
|
+
ol {
|
|
3011
|
+
margin: 0;
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
.List_list--inherit {
|
|
3015
|
+
font: inherit;
|
|
3016
|
+
}
|
|
3017
|
+
.List_list--unordered {
|
|
3018
|
+
--dds-list-ul-li-padding-left: 1em + var(--dds-spacing-x0-25);
|
|
3019
|
+
list-style: none;
|
|
3020
|
+
padding-left: calc(var(--dds-spacing-x2) - (var(--dds-list-ul-li-padding-left)));
|
|
3021
|
+
--dds-list-bullet-size: 1em;
|
|
3022
|
+
li {
|
|
3023
|
+
position: relative;
|
|
3024
|
+
padding-left: calc(var(--dds-list-ul-li-padding-left));
|
|
3025
|
+
&:before {
|
|
3026
|
+
content: "";
|
|
3027
|
+
display: inline-block;
|
|
3028
|
+
height: var(--dds-list-bullet-size);
|
|
3029
|
+
width: var(--dds-list-bullet-size);
|
|
3030
|
+
position: absolute;
|
|
3031
|
+
top: calc((var(--dds-font-lineheight-list) * 1em) / 2 - var(--dds-list-bullet-size) / 2);
|
|
3032
|
+
left: 0;
|
|
3033
|
+
background: var(--dds-color-text-body);
|
|
3034
|
+
-webkit-mask-size: 100%;
|
|
3035
|
+
mask-size: 100%;
|
|
3036
|
+
-webkit-mask-repeat: no-repeat;
|
|
3037
|
+
mask-repeat: no-repeat;
|
|
3038
|
+
-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');
|
|
3039
|
+
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');
|
|
3040
|
+
}
|
|
3041
|
+
ul > li:before {
|
|
3042
|
+
-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');
|
|
3043
|
+
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');
|
|
3044
|
+
}
|
|
3045
|
+
ul > li > ul > li:before {
|
|
3046
|
+
-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');
|
|
3047
|
+
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');
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
.List_list--ordered {
|
|
3052
|
+
padding-left: var(--dds-spacing-x2);
|
|
3053
|
+
& > li > ol {
|
|
3054
|
+
list-style-type: lower-alpha;
|
|
3055
|
+
}
|
|
3056
|
+
& > li > ol > li > ol {
|
|
3057
|
+
list-style-type: lower-roman;
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
.List_li {
|
|
3061
|
+
line-height: var(--dds-font-lineheight-list);
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3010
3064
|
/* src/components/FavStar/FavStar.module.css */
|
|
3011
3065
|
.FavStar_container {
|
|
3012
3066
|
position: relative;
|
|
@@ -3395,65 +3449,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
3395
3449
|
max-height: calc(100vh - 110px);
|
|
3396
3450
|
}
|
|
3397
3451
|
|
|
3398
|
-
/* src/components/List/List.module.css */
|
|
3399
|
-
.List_list {
|
|
3400
|
-
color: var(--dds-color-text-body);
|
|
3401
|
-
margin: var(--dds-spacing-x1) 0;
|
|
3402
|
-
ul,
|
|
3403
|
-
ol {
|
|
3404
|
-
margin: 0;
|
|
3405
|
-
}
|
|
3406
|
-
}
|
|
3407
|
-
.List_list--inherit {
|
|
3408
|
-
font: inherit;
|
|
3409
|
-
}
|
|
3410
|
-
.List_list--unordered {
|
|
3411
|
-
--dds-list-ul-li-padding-left: 1em + var(--dds-spacing-x0-25);
|
|
3412
|
-
list-style: none;
|
|
3413
|
-
padding-left: calc(var(--dds-spacing-x2) - (var(--dds-list-ul-li-padding-left)));
|
|
3414
|
-
--dds-list-bullet-size: 1em;
|
|
3415
|
-
li {
|
|
3416
|
-
position: relative;
|
|
3417
|
-
padding-left: calc(var(--dds-list-ul-li-padding-left));
|
|
3418
|
-
&:before {
|
|
3419
|
-
content: "";
|
|
3420
|
-
display: inline-block;
|
|
3421
|
-
height: var(--dds-list-bullet-size);
|
|
3422
|
-
width: var(--dds-list-bullet-size);
|
|
3423
|
-
position: absolute;
|
|
3424
|
-
top: calc((var(--dds-font-lineheight-list) * 1em) / 2 - var(--dds-list-bullet-size) / 2);
|
|
3425
|
-
left: 0;
|
|
3426
|
-
background: var(--dds-color-text-body);
|
|
3427
|
-
-webkit-mask-size: 100%;
|
|
3428
|
-
mask-size: 100%;
|
|
3429
|
-
-webkit-mask-repeat: no-repeat;
|
|
3430
|
-
mask-repeat: no-repeat;
|
|
3431
|
-
-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');
|
|
3432
|
-
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');
|
|
3433
|
-
}
|
|
3434
|
-
ul > li:before {
|
|
3435
|
-
-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');
|
|
3436
|
-
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');
|
|
3437
|
-
}
|
|
3438
|
-
ul > li > ul > li:before {
|
|
3439
|
-
-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');
|
|
3440
|
-
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');
|
|
3441
|
-
}
|
|
3442
|
-
}
|
|
3443
|
-
}
|
|
3444
|
-
.List_list--ordered {
|
|
3445
|
-
padding-left: var(--dds-spacing-x2);
|
|
3446
|
-
& > li > ol {
|
|
3447
|
-
list-style-type: lower-alpha;
|
|
3448
|
-
}
|
|
3449
|
-
& > li > ol > li > ol {
|
|
3450
|
-
list-style-type: lower-roman;
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
.List_li {
|
|
3454
|
-
line-height: var(--dds-font-lineheight-list);
|
|
3455
|
-
}
|
|
3456
|
-
|
|
3457
3452
|
/* src/components/LocalMessage/LocalMessage.module.css */
|
|
3458
3453
|
.LocalMessage_container {
|
|
3459
3454
|
border: 1px solid;
|