@norges-domstoler/dds-components 0.0.0-dev-20250410075453 → 0.0.0-dev-20250423101101

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 CHANGED
@@ -2190,6 +2190,7 @@
2190
2190
  --dds-focus-box-shadow: 0 0 0 2px var(--dds-color-focus-inside);
2191
2191
  --dds-focus-transition: outline-offset 0.2s;
2192
2192
  --dds-input-default-width: 320px;
2193
+ --dds-input-default-width-xsmall: 210px;
2193
2194
  --dds-transition-duration-surface-move: 0.5s;
2194
2195
  }
2195
2196
  .ThemeProvider_global-styles {
@@ -2462,16 +2463,11 @@
2462
2463
 
2463
2464
  /* src/components/TextArea/TextArea.module.css */
2464
2465
  .TextArea_textarea {
2465
- width: var(--dds-text-area-width);
2466
2466
  height: auto;
2467
2467
  resize: vertical;
2468
2468
  vertical-align: bottom;
2469
2469
  padding-bottom: var(--dds-spacing-x0-5);
2470
2470
  }
2471
- .TextArea_message-container {
2472
- display: flex;
2473
- justify-content: space-between;
2474
- }
2475
2471
 
2476
2472
  /* src/components/Tooltip/Tooltip.module.css */
2477
2473
  .Tooltip_container {
@@ -2502,20 +2498,12 @@
2502
2498
  }
2503
2499
 
2504
2500
  /* src/components/FileUploader/FileUploader.module.css */
2505
- .FileUploader_container {
2506
- width: var(--dds-input-default-width);
2507
- }
2508
2501
  .FileUploader_input-container {
2509
2502
  box-sizing: border-box;
2510
- border: 2px solid;
2511
- border-style: dashed;
2512
- display: flex;
2513
- flex-direction: column;
2514
- gap: var(--dds-spacing-x1);
2503
+ border: 2px dashed;
2515
2504
  border-color: var(--dds-color-border-default);
2516
2505
  background-color: var(--dds-color-surface-default);
2517
2506
  border-radius: var(--dds-border-radius-surface);
2518
- padding: var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x2) var(--dds-spacing-x1-5);
2519
2507
  @media (prefers-reduced-motion: no-preference) {
2520
2508
  transition: background-color 0.2s, border-color 0.2s;
2521
2509
  }
@@ -2530,19 +2518,7 @@
2530
2518
  .FileUploader_input-container--no-drag-zone {
2531
2519
  padding: var(--dds-spacing-x0-5) 0;
2532
2520
  }
2533
- .FileUploader_file {
2534
- display: flex;
2535
- justify-content: space-between;
2536
- align-items: center;
2537
- gap: var(--dds-spacing-x0-75);
2538
- padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1);
2539
- margin-top: var(--dds-spacing-x0-5);
2540
- background-color: var(--dds-color-surface-subtle);
2541
- border-radius: var(--dds-border-radius-surface);
2542
- border: 1px solid var(--dds-color-border-default);
2543
- }
2544
2521
  .FileUploader_file--invalid {
2545
- border: 1px solid var(--dds-color-border-danger);
2546
2522
  box-shadow: inset 0 0 0 1px var(--dds-color-border-danger);
2547
2523
  }
2548
2524
  .FileUploader_file__icon--invalid {
@@ -2638,9 +2614,6 @@
2638
2614
  }
2639
2615
 
2640
2616
  /* src/components/InlineEdit/InlineEdit.module.css */
2641
- .InlineEdit_container {
2642
- position: relative;
2643
- }
2644
2617
  .InlineEdit_inline-input {
2645
2618
  width: 100%;
2646
2619
  padding: var(--dds-spacing-x0-25);
@@ -2670,9 +2643,6 @@
2670
2643
  .InlineEdit_inline-input--with-icon {
2671
2644
  padding-left: var(--dds-spacing-x2);
2672
2645
  }
2673
- .InlineEdit_inline-input--with-icon--is-editing {
2674
- padding-left: var(--dds-spacing-x0-25);
2675
- }
2676
2646
  .InlineEdit_inline-textarea {
2677
2647
  resize: vertical;
2678
2648
  }
@@ -2808,11 +2778,7 @@
2808
2778
  .LocalMessage_container {
2809
2779
  border: 1px solid;
2810
2780
  box-sizing: border-box;
2811
- display: grid;
2812
- align-items: center;
2813
2781
  border-radius: var(--dds-border-radius-surface);
2814
- padding: var(--dds-spacing-x0-75);
2815
- gap: var(--dds-spacing-x0-5);
2816
2782
  }
2817
2783
  .LocalMessage_container--info {
2818
2784
  border-color: var(--dds-color-border-info);
@@ -2930,11 +2896,6 @@
2930
2896
  }
2931
2897
 
2932
2898
  /* src/components/Select/Select.module.css */
2933
- .Select_container {
2934
- margin: 0;
2935
- position: relative;
2936
- width: var(--dds-select-width);
2937
- }
2938
2899
  .Select_container--disabled {
2939
2900
  cursor: not-allowed;
2940
2901
  }
@@ -2971,17 +2932,12 @@
2971
2932
  }
2972
2933
 
2973
2934
  /* src/components/Select/NativeSelect/NativeSelect.module.css */
2974
- .NativeSelect_container {
2975
- position: relative;
2976
- width: -moz-fit-content;
2977
- width: fit-content;
2978
- }
2979
2935
  .NativeSelect_select {
2980
2936
  -webkit-appearance: none;
2981
2937
  -moz-appearance: none;
2982
2938
  appearance: none;
2983
- width: var(--dds-native-select-width);
2984
2939
  text-overflow: ellipsis;
2940
+ width: 100%;
2985
2941
  &:hover:not(:disabled):not(.NativeSelect_select--readonly) {
2986
2942
  border-color: var(--dds-color-border-action-hover);
2987
2943
  box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
@@ -3050,93 +3006,75 @@
3050
3006
  .PhoneInput_input {
3051
3007
  border-top-left-radius: 0;
3052
3008
  border-bottom-left-radius: 0;
3053
- width: var(--dds-phone-input-width);
3054
3009
  }
3055
- .PhoneInput_select {
3056
- width: 8rem;
3010
+ select {
3057
3011
  border-top-right-radius: 0;
3058
3012
  border-bottom-right-radius: 0;
3059
- margin-right: -1px;
3060
3013
  }
3061
- .PhoneInput_select--xsmall {
3062
- width: 5rem;
3014
+ .PhoneInput_select > div {
3015
+ margin-right: -1px;
3063
3016
  }
3064
3017
  }
3065
3018
  .PhoneInput_inputs-container--small-screen-xs {
3066
3019
  @media only screen and (max-width: 600px) {
3067
- width: var(--dds-phone-input-width);
3068
3020
  .PhoneInput_input {
3069
3021
  border-top-right-radius: 0;
3070
- width: 100%;
3071
3022
  }
3072
- .PhoneInput_select {
3023
+ select {
3073
3024
  border-bottom-left-radius: 0;
3074
3025
  border-bottom-right-radius: 0;
3075
- width: 100%;
3076
3026
  margin-bottom: -1px;
3077
3027
  }
3078
3028
  }
3079
3029
  }
3080
3030
  .PhoneInput_inputs-container--small-screen-sm {
3081
3031
  @media only screen and (max-width: 960px) {
3082
- width: var(--dds-phone-input-width);
3083
3032
  .PhoneInput_input {
3084
3033
  border-top-right-radius: 0;
3085
- width: 100%;
3086
3034
  }
3087
- .PhoneInput_select {
3035
+ select {
3088
3036
  border-bottom-left-radius: 0;
3089
3037
  border-bottom-right-radius: 0;
3090
- width: 100%;
3091
3038
  margin-bottom: -1px;
3092
3039
  }
3093
3040
  }
3094
3041
  }
3095
3042
  .PhoneInput_inputs-container--small-screen-md {
3096
3043
  @media only screen and (max-width: 1280px) {
3097
- width: var(--dds-phone-input-width);
3098
3044
  .PhoneInput_input {
3099
3045
  border-top-right-radius: 0;
3100
- width: 100%;
3101
3046
  }
3102
- .PhoneInput_select {
3047
+ select {
3103
3048
  border-bottom-left-radius: 0;
3104
3049
  border-bottom-right-radius: 0;
3105
- width: 100%;
3106
3050
  margin-bottom: -1px;
3107
3051
  }
3108
3052
  }
3109
3053
  }
3110
3054
  .PhoneInput_inputs-container--small-screen-lg {
3111
3055
  @media only screen and (max-width: 1920px) {
3112
- width: var(--dds-phone-input-width);
3113
3056
  .PhoneInput_input {
3114
3057
  border-top-right-radius: 0;
3115
- width: 100%;
3116
3058
  }
3117
- .PhoneInput_select {
3059
+ select {
3118
3060
  border-bottom-left-radius: 0;
3119
3061
  border-bottom-right-radius: 0;
3120
- width: 100%;
3121
3062
  margin-bottom: -1px;
3122
3063
  }
3123
3064
  }
3124
3065
  }
3125
3066
  .PhoneInput_inputs-container--small-screen-xl {
3126
- width: var(--dds-phone-input-width);
3127
3067
  .PhoneInput_input {
3128
3068
  border-top-right-radius: 0;
3129
- width: 100%;
3130
3069
  }
3131
- .PhoneInput_select {
3070
+ select {
3132
3071
  border-bottom-left-radius: 0;
3133
3072
  border-bottom-right-radius: 0;
3134
- width: 100%;
3135
3073
  margin-bottom: -1px;
3136
3074
  }
3137
3075
  }
3138
- .PhoneInput_select:focus-visible,
3139
- .PhoneInput_select:hover {
3076
+ select:focus-visible,
3077
+ select:hover {
3140
3078
  z-index: var(--dds-zindex-absolute-element);
3141
3079
  & ~ svg {
3142
3080
  z-index: var(--dds-zindex-absolute-element);
@@ -3292,25 +3230,12 @@
3292
3230
  }
3293
3231
 
3294
3232
  /* src/components/ProgressBar/ProgressBar.module.css */
3295
- .ProgressBar_container {
3296
- width: 100%;
3297
- }
3298
3233
  .ProgressBar_progress {
3299
- width: var(--dds-progressbar-width);
3300
- height: 48px;
3301
3234
  background-color: var(--dds-color-surface-medium);
3302
3235
  border: 1px solid var(--dds-color-border-default);
3303
3236
  border-radius: var(--dds-border-radius-surface);
3304
3237
  }
3305
- .ProgressBar_progress--small {
3306
- height: var(--dds-spacing-x0-75);
3307
- }
3308
- .ProgressBar_progress--medium {
3309
- height: var(--dds-spacing-x1-5);
3310
- }
3311
3238
  .ProgressBar_fill {
3312
- height: 100%;
3313
- width: var(--dds-progressbar-fill-width);
3314
3239
  background-color: var(--dds-color-surface-action-resting);
3315
3240
  @media (prefers-reduced-motion: no-preference) {
3316
3241
  transition: width 0.2s, background-color 0.2s;
@@ -3323,7 +3248,6 @@
3323
3248
  background-color: var(--dds-color-surface-action-danger-resting);
3324
3249
  }
3325
3250
  .ProgressBar_fill--indeterminate {
3326
- width: 25%;
3327
3251
  animation: ProgressBar_indeterminate 2s infinite linear;
3328
3252
  }
3329
3253
  @keyframes ProgressBar_indeterminate {
@@ -4144,11 +4068,6 @@
4144
4068
  }
4145
4069
 
4146
4070
  /* src/components/ToggleBar/ToggleBar.module.css */
4147
- .ToggleBar_container {
4148
- display: flex;
4149
- flex-direction: column;
4150
- gap: var(--dds-spacing-x0-125);
4151
- }
4152
4071
  .ToggleBar_bar {
4153
4072
  display: grid;
4154
4073
  grid-auto-flow: column;