@norges-domstoler/dds-components 22.0.0 → 22.2.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 +29 -38
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +88 -10
- package/dist/index.d.ts +88 -10
- package/dist/index.js +1489 -1088
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1473 -1088
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
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;
|
|
@@ -2567,6 +2552,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2567
2552
|
width: max-content;
|
|
2568
2553
|
font-variant-numeric: tabular-nums;
|
|
2569
2554
|
outline: none;
|
|
2555
|
+
font-family: var(--dds-font-family-monospace);
|
|
2570
2556
|
&:focus {
|
|
2571
2557
|
background-color: var(--dds-color-surface-action-selected);
|
|
2572
2558
|
color: var(--dds-color-text-on-action);
|
|
@@ -2586,9 +2572,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2586
2572
|
height: 0;
|
|
2587
2573
|
width: 0;
|
|
2588
2574
|
}
|
|
2589
|
-
.DateInput_clear-button {
|
|
2590
|
-
align-self: center;
|
|
2591
|
-
}
|
|
2592
2575
|
.DateInput_clear-button--inactive {
|
|
2593
2576
|
visibility: hidden;
|
|
2594
2577
|
}
|
|
@@ -2683,6 +2666,14 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2683
2666
|
}
|
|
2684
2667
|
.Input_input-group {
|
|
2685
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);
|
|
2686
2677
|
}
|
|
2687
2678
|
:where(.Input_input) {
|
|
2688
2679
|
position: relative;
|
|
@@ -2788,40 +2779,40 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2788
2779
|
padding: var(--dds-spacing-x0-25);
|
|
2789
2780
|
}
|
|
2790
2781
|
.Input_input-with-icon--large {
|
|
2791
|
-
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));
|
|
2792
2783
|
}
|
|
2793
2784
|
.Input_input-with-icon--medium {
|
|
2794
|
-
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));
|
|
2795
2786
|
}
|
|
2796
2787
|
.Input_input-with-icon--small {
|
|
2797
|
-
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));
|
|
2798
2789
|
}
|
|
2799
2790
|
.Input_input-with-icon--xsmall {
|
|
2800
|
-
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));
|
|
2801
2792
|
}
|
|
2802
2793
|
.Input_input-with-el-right--large {
|
|
2803
|
-
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));
|
|
2804
2795
|
}
|
|
2805
2796
|
.Input_input-with-el-right--medium {
|
|
2806
|
-
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));
|
|
2807
2798
|
}
|
|
2808
2799
|
.Input_input-with-el-right--small {
|
|
2809
|
-
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));
|
|
2810
2801
|
}
|
|
2811
2802
|
.Input_input-with-el-right--xsmall {
|
|
2812
|
-
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));
|
|
2813
2804
|
}
|
|
2814
|
-
.
|
|
2815
|
-
right: var(--dds-
|
|
2805
|
+
.Input_input-group__absolute-el-right--large {
|
|
2806
|
+
right: var(--dds-input-absolute-el-left-large);
|
|
2816
2807
|
}
|
|
2817
|
-
.
|
|
2818
|
-
right: var(--dds-
|
|
2808
|
+
.Input_input-group__absolute-el-right--medium {
|
|
2809
|
+
right: var(--dds-input-absolute-el-left-medium);
|
|
2819
2810
|
}
|
|
2820
|
-
.
|
|
2821
|
-
right: var(--dds-
|
|
2811
|
+
.Input_input-group__absolute-el-right--small {
|
|
2812
|
+
right: var(--dds-input-absolute-el-left-small);
|
|
2822
2813
|
}
|
|
2823
|
-
.
|
|
2824
|
-
right: var(--dds-
|
|
2814
|
+
.Input_input-group__absolute-el-right--xsmall {
|
|
2815
|
+
right: var(--dds-input-absolute-el-left-xsmall);
|
|
2825
2816
|
}
|
|
2826
2817
|
:where(.Input_input--with-affix) {
|
|
2827
2818
|
gap: var(--dds-spacing-x1);
|
|
@@ -2834,16 +2825,16 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2834
2825
|
color: var(--dds-color-icon-default);
|
|
2835
2826
|
}
|
|
2836
2827
|
:where(.Input_input-group__absolute-el--large) {
|
|
2837
|
-
left: var(--dds-
|
|
2828
|
+
left: var(--dds-input-absolute-el-left-large);
|
|
2838
2829
|
}
|
|
2839
2830
|
:where(.Input_input-group__absolute-el--medium) {
|
|
2840
|
-
left: var(--dds-
|
|
2831
|
+
left: var(--dds-input-absolute-el-left-medium);
|
|
2841
2832
|
}
|
|
2842
2833
|
:where(.Input_input-group__absolute-el--small) {
|
|
2843
|
-
left: var(--dds-
|
|
2834
|
+
left: var(--dds-input-absolute-el-left-small);
|
|
2844
2835
|
}
|
|
2845
2836
|
:where(.Input_input-group__absolute-el--xsmall) {
|
|
2846
|
-
left: var(--dds-
|
|
2837
|
+
left: var(--dds-input-absolute-el-left-xsmall);
|
|
2847
2838
|
}
|
|
2848
2839
|
|
|
2849
2840
|
/* src/components/DescriptionList/DescriptionList.module.css */
|