@norges-domstoler/dds-components 17.3.0 → 17.4.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 CHANGED
@@ -560,6 +560,35 @@
560
560
  visibility: hidden;
561
561
  }
562
562
 
563
+ /* src/components/helpers/Backdrop/Backdrop.module.css */
564
+ .Backdrop_backdrop {
565
+ position: fixed;
566
+ display: flex;
567
+ align-items: center;
568
+ justify-content: center;
569
+ overflow-y: auto;
570
+ top: 0;
571
+ right: 0;
572
+ bottom: 0;
573
+ left: 0;
574
+ z-index: 200;
575
+ background-color: var(--dds-color-surface-backdrop-default);
576
+ @media (prefers-reduced-motion: no-preference) {
577
+ transition: opacity 0.2s;
578
+ }
579
+ }
580
+ .Backdrop_backdrop--visible {
581
+ opacity: 1;
582
+ }
583
+ .Backdrop_backdrop--hidden {
584
+ opacity: 0;
585
+ }
586
+
587
+ /* src/utils/RequiredMarker/RequiredMarker.module.css */
588
+ .RequiredMarker_wrapper {
589
+ color: var(--dds-color-text-requiredfield);
590
+ }
591
+
563
592
  /* src/components/helpers/Chevron/Chevron.module.css */
564
593
  :root {
565
594
  --dds-chevron-transition: transform 0.2s linear;
@@ -601,11 +630,6 @@
601
630
  transform: rotate(0) translateY(0);
602
631
  }
603
632
 
604
- /* src/utils/RequiredMarker/RequiredMarker.module.css */
605
- .RequiredMarker_wrapper {
606
- color: var(--dds-color-text-requiredfield);
607
- }
608
-
609
633
  /* src/components/helpers/Input/Input.module.css */
610
634
  :root {
611
635
  --dds-input-default-width: 320px;
@@ -1282,52 +1306,28 @@
1282
1306
  .ButtonGroup_group--column > *:first-child {
1283
1307
  border-bottom-left-radius: 0;
1284
1308
  border-bottom-right-radius: 0;
1309
+ margin-block-end: -1px;
1285
1310
  }
1286
1311
  .ButtonGroup_group--column > *:last-child {
1287
1312
  border-top-left-radius: 0;
1288
1313
  border-top-right-radius: 0;
1289
- &:not(:active) {
1290
- border-top-color: transparent;
1291
- }
1292
1314
  }
1293
1315
  .ButtonGroup_group--column > *:not(:first-child):not(:last-child) {
1294
1316
  border-radius: 0;
1295
- &:not(:active) {
1296
- border-top-color: transparent;
1297
- }
1298
- &:active + * {
1299
- border-top-color: initial;
1300
- }
1301
- }
1302
- .ButtonGroup_group--column > *:first-child:not(:last-child) {
1303
- &:active + * {
1304
- border-top-color: initial;
1305
- }
1306
- }
1307
- .ButtonGroup_group--row > *:not(:first-child):not(:last-child) {
1308
- border-radius: 0;
1309
- &:not(:active) {
1310
- border-left-color: transparent;
1311
- }
1312
- &:active + * {
1313
- border-left-color: initial;
1314
- }
1317
+ margin-block-end: -1px;
1315
1318
  }
1316
1319
  .ButtonGroup_group--row > *:first-child {
1317
1320
  border-top-right-radius: 0;
1318
1321
  border-bottom-right-radius: 0;
1319
- }
1320
- .ButtonGroup_group--row > *:first-child:not(:last-child) {
1321
- &:active + * {
1322
- border-left-color: initial;
1323
- }
1322
+ margin-inline-end: -1px;
1324
1323
  }
1325
1324
  .ButtonGroup_group--row > *:last-child {
1326
1325
  border-top-left-radius: 0;
1327
1326
  border-bottom-left-radius: 0;
1328
- &:not(:active) {
1329
- border-left-color: transparent;
1330
- }
1327
+ }
1328
+ .ButtonGroup_group--row > *:not(:first-child):not(:last-child) {
1329
+ border-radius: 0;
1330
+ margin-inline-end: -1px;
1331
1331
  }
1332
1332
 
1333
1333
  /* src/components/Card/Card.module.css */
@@ -1501,6 +1501,7 @@
1501
1501
  border: 1px solid var(--dds-color-border-default);
1502
1502
  padding: var(--dds-spacing-x0-5);
1503
1503
  box-shadow: var(--dds-shadow-2);
1504
+ height: 347px;
1504
1505
  }
1505
1506
  .DateInput_calendar {
1506
1507
  display: flex;
@@ -1839,7 +1840,7 @@
1839
1840
  }
1840
1841
  .Feedback_button {
1841
1842
  border-radius: var(--dds-border-radius-button);
1842
- color: var(--dds-color-text-default);
1843
+ color: var(--dds-color-icon-medium);
1843
1844
  &:hover {
1844
1845
  background-color: var(--dds-color-surface-hover-default);
1845
1846
  color: var(--dds-color-icon-action-hover);
@@ -2504,7 +2505,7 @@
2504
2505
  }
2505
2506
  }
2506
2507
  .List_li {
2507
- line-height: 2.5em;
2508
+ line-height: var(--dds-font-lineheight-list);
2508
2509
  }
2509
2510
 
2510
2511
  /* src/components/LocalMessage/LocalMessage.module.css */
@@ -2581,28 +2582,6 @@
2581
2582
  }
2582
2583
 
2583
2584
  /* src/components/Modal/Modal.module.css */
2584
- .Modal_backdrop {
2585
- position: fixed;
2586
- display: flex;
2587
- align-items: center;
2588
- justify-content: center;
2589
- overflow-y: auto;
2590
- top: 0;
2591
- right: 0;
2592
- bottom: 0;
2593
- left: 0;
2594
- z-index: 200;
2595
- background-color: var(--dds-color-surface-backdrop-default);
2596
- @media (prefers-reduced-motion: no-preference) {
2597
- transition: opacity 0.2s;
2598
- }
2599
- }
2600
- .Modal_backdrop--visible {
2601
- opacity: 1;
2602
- }
2603
- .Modal_backdrop--hidden {
2604
- opacity: 0;
2605
- }
2606
2585
  .Modal_container {
2607
2586
  --dds-modal-content-padding: var(--dds-spacing-x0-25);
2608
2587
  --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));
@@ -3008,6 +2987,53 @@
3008
2987
  text-decoration-color: var(--dds-color-text-medium);
3009
2988
  }
3010
2989
 
2990
+ /* src/components/ProgressBar/ProgressBar.module.css */
2991
+ .ProgressBar_container {
2992
+ width: 100%;
2993
+ }
2994
+ .ProgressBar_progress {
2995
+ width: var(--dds-progressbar-width);
2996
+ height: 48px;
2997
+ background-color: var(--dds-color-surface-medium);
2998
+ border: 1px solid var(--dds-color-border-default);
2999
+ border-radius: var(--dds-border-radius-surface);
3000
+ }
3001
+ .ProgressBar_progress--small {
3002
+ height: var(--dds-spacing-x0-75);
3003
+ }
3004
+ .ProgressBar_progress--medium {
3005
+ height: var(--dds-spacing-x1-5);
3006
+ }
3007
+ .ProgressBar_fill {
3008
+ height: 100%;
3009
+ width: var(--dds-progressbar-fill-width);
3010
+ background-color: var(--dds-color-surface-action-resting);
3011
+ @media (prefers-reduced-motion: no-preference) {
3012
+ transition: width 0.2s, background-color 0.2s;
3013
+ }
3014
+ }
3015
+ .ProgressBar_fill--done {
3016
+ background-color: var(--dds-color-surface-success-strong);
3017
+ }
3018
+ .ProgressBar_fill--error {
3019
+ background-color: var(--dds-color-surface-action-danger-resting);
3020
+ }
3021
+ .ProgressBar_fill--indeterminate {
3022
+ width: 25%;
3023
+ animation: ProgressBar_indeterminate 2s infinite linear;
3024
+ }
3025
+ @keyframes ProgressBar_indeterminate {
3026
+ 0% {
3027
+ transform: translateX(0);
3028
+ }
3029
+ 50% {
3030
+ transform: translateX(300%);
3031
+ }
3032
+ 100% {
3033
+ transform: translateX(0);
3034
+ }
3035
+ }
3036
+
3011
3037
  /* src/components/Search/Search.module.css */
3012
3038
  .Search_container {
3013
3039
  display: flex;
@@ -3488,9 +3514,6 @@
3488
3514
  .Tabs_tab-panel {
3489
3515
  padding: var(--dds-spacing-x0-25);
3490
3516
  }
3491
- .Tabs_tab-panel--inactive {
3492
- display: none;
3493
- }
3494
3517
 
3495
3518
  /* src/components/Tag/Tag.module.css */
3496
3519
  .Tag_container {
@@ -3777,9 +3800,9 @@
3777
3800
  cursor: pointer;
3778
3801
  width: -moz-fit-content;
3779
3802
  width: fit-content;
3780
- border: 1px solid;
3803
+ border: 1px solid var(--dds-color-border-default);
3781
3804
  border-radius: var(--dds-border-radius-rounded);
3782
- gap: var(--dds-spacing-x0-5);
3805
+ gap: var(--dds-spacing-x0-25);
3783
3806
  padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1);
3784
3807
  background-color: var(--dds-color-surface-default);
3785
3808
  color: var(--dds-color-text-default);
@@ -3794,6 +3817,9 @@
3794
3817
  background-color: var(--dds-color-surface-hover-default);
3795
3818
  }
3796
3819
  }
3820
+ .ToggleButton_content--with-icon {
3821
+ padding-inline-start: var(--dds-spacing-x0-75);
3822
+ }
3797
3823
  input:checked + .ToggleButton_content {
3798
3824
  color: var(--dds-color-text-on-action);
3799
3825
  background-color: var(--dds-color-surface-action-resting);