@norges-domstoler/dds-components 24.1.0 → 24.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 CHANGED
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- */
4
-
5
- /**
3
+ *//**
6
4
  * Do not edit directly, this file was auto-generated.
7
5
  */
8
6
 
@@ -377,6 +375,7 @@
377
375
  --dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
378
376
  --dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
379
377
  }
378
+
380
379
  /**
381
380
  * Do not edit directly, this file was auto-generated.
382
381
  */
@@ -752,6 +751,7 @@
752
751
  --dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
753
752
  --dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
754
753
  }
754
+
755
755
  /**
756
756
  * Do not edit directly, this file was auto-generated.
757
757
  */
@@ -1127,6 +1127,7 @@
1127
1127
  --dds-size-height-input-small: 2.5rem; /* Brukes i input og buttons */
1128
1128
  --dds-size-height-input-xsmall: 1.8125rem; /* Brukes i input og buttons */
1129
1129
  }
1130
+
1130
1131
  /**
1131
1132
  * Do not edit directly, this file was auto-generated.
1132
1133
  */
@@ -1502,6 +1503,7 @@
1502
1503
  --dds-size-height-input-small: 2.5rem; /* Brukes i input og buttons */
1503
1504
  --dds-size-height-input-xsmall: 1.8125rem; /* Brukes i input og buttons */
1504
1505
  }
1506
+
1505
1507
  /**
1506
1508
  * Do not edit directly, this file was auto-generated.
1507
1509
  */
@@ -1877,6 +1879,7 @@
1877
1879
  --dds-font-body-short-xsmall-letter-spacing: 0.01em;
1878
1880
  --dds-font-body-short-xsmall-paragraph-spacing: 1em;
1879
1881
  }
1882
+
1880
1883
  /**
1881
1884
  * Do not edit directly, this file was auto-generated.
1882
1885
  */
@@ -3039,15 +3042,6 @@
3039
3042
  color: var(--dds-color-text-requiredfield);
3040
3043
  }
3041
3044
  .dds-Backdrop-module__backdrop {
3042
- position: fixed;
3043
- display: flex;
3044
- align-items: center;
3045
- justify-content: center;
3046
- overflow-y: auto;
3047
- top: 0;
3048
- right: 0;
3049
- bottom: 0;
3050
- left: 0;
3051
3045
  background-color: var(--dds-color-surface-backdrop-default);
3052
3046
 
3053
3047
  @media (prefers-reduced-motion: no-preference) {
@@ -3055,14 +3049,6 @@
3055
3049
  }
3056
3050
  }
3057
3051
 
3058
- .dds-Backdrop-module__drawer {
3059
- z-index: var(--dds-zindex-drawer-backdrop);
3060
- }
3061
-
3062
- .dds-Backdrop-module__modal {
3063
- z-index: var(--dds-zindex-modal-backdrop);
3064
- }
3065
-
3066
3052
  .dds-Backdrop-module__backdrop--visible {
3067
3053
  opacity: 1;
3068
3054
  }
@@ -3070,42 +3056,6 @@
3070
3056
  .dds-Backdrop-module__backdrop--hidden {
3071
3057
  opacity: 0;
3072
3058
  }
3073
- .dds-DropdownItem-module__item {
3074
- box-sizing: border-box;
3075
- background-color: inherit;
3076
- text-decoration: none;
3077
-
3078
- &.dds-DropdownItem-module__default {
3079
- color: var(--dds-color-text-default);
3080
- }
3081
-
3082
- &.dds-DropdownItem-module__danger {
3083
- color: var(--dds-color-text-danger);
3084
- }
3085
- }
3086
-
3087
- .dds-DropdownItem-module__item--interactive {
3088
- text-align: left;
3089
- -webkit-user-select: text;
3090
- user-select: text;
3091
- border: none;
3092
- cursor: pointer;
3093
- outline: inherit;
3094
- width: 100%;
3095
- @media (prefers-reduced-motion: no-preference) {
3096
- transition: background-color var(--dds-motion-micro-state);
3097
- }
3098
-
3099
- &:hover,
3100
- &:active {
3101
- background-color: var(--dds-color-surface-hover-default);
3102
- }
3103
- }
3104
-
3105
- .dds-DropdownItem-module__item--loading {
3106
- cursor: not-allowed;
3107
- position: relative;
3108
- }
3109
3059
  /* Primitives */
3110
3060
 
3111
3061
  .dds-layout-module__dds-p {
@@ -3233,8 +3183,18 @@
3233
3183
  word-break: var(--dds-r-word-break, initial);
3234
3184
  }
3235
3185
 
3186
+ .dds-layout-module__dds-z-index {
3187
+ --dds-r-z-index: var(--dds-r-xs-z-index);
3188
+ z-index: var(--dds-r-z-index, initial);
3189
+ }
3190
+
3236
3191
  /* Flex */
3237
3192
 
3193
+ .dds-layout-module__dds-flex {
3194
+ --dds-r-flex: var(--dds-r-xs-flex);
3195
+ flex: var(--dds-r-flex, initial);
3196
+ }
3197
+
3238
3198
  .dds-layout-module__dds-flex-dir {
3239
3199
  --dds-r-flex-dir: var(--dds-r-xs-flex-dir);
3240
3200
  flex-direction: var(--dds-r-flex-dir, initial);
@@ -3371,6 +3331,12 @@
3371
3331
  .dds-layout-module__dds-word-break {
3372
3332
  --dds-r-word-break: var(--dds-r-xs-word-break);
3373
3333
  }
3334
+ .dds-layout-module__dds-z-index {
3335
+ --dds-r-z-index: var(--dds-r-xs-z-index);
3336
+ }
3337
+ .dds-layout-module__dds-flex {
3338
+ --dds-r-flex: var(--dds-r-xs-flex);
3339
+ }
3374
3340
  .dds-layout-module__dds-flex-dir {
3375
3341
  --dds-r-flex-dir: var(--dds-r-xs-flex-dir);
3376
3342
  }
@@ -3485,6 +3451,12 @@
3485
3451
  .dds-layout-module__dds-word-break {
3486
3452
  --dds-r-word-break: var(--dds-r-sm-word-break);
3487
3453
  }
3454
+ .dds-layout-module__dds-z-index {
3455
+ --dds-r-z-index: var(--dds-r-sm-z-index);
3456
+ }
3457
+ .dds-layout-module__dds-flex {
3458
+ --dds-r-flex: var(--dds-r-sm-flex);
3459
+ }
3488
3460
  .dds-layout-module__dds-flex-dir {
3489
3461
  --dds-r-flex-dir: var(--dds-r-sm-flex-dir);
3490
3462
  }
@@ -3599,6 +3571,12 @@
3599
3571
  .dds-layout-module__dds-word-break {
3600
3572
  --dds-r-word-break: var(--dds-r-md-word-break);
3601
3573
  }
3574
+ .dds-layout-module__dds-z-index {
3575
+ --dds-r-z-index: var(--dds-r-md-z-index);
3576
+ }
3577
+ .dds-layout-module__dds-flex {
3578
+ --dds-r-flex: var(--dds-r-md-flex);
3579
+ }
3602
3580
  .dds-layout-module__dds-flex-dir {
3603
3581
  --dds-r-flex-dir: var(--dds-r-md-flex-dir);
3604
3582
  }
@@ -3713,6 +3691,12 @@
3713
3691
  .dds-layout-module__dds-word-break {
3714
3692
  --dds-r-word-break: var(--dds-r-lg-word-break);
3715
3693
  }
3694
+ .dds-layout-module__dds-z-index {
3695
+ --dds-r-z-index: var(--dds-r-lg-z-index);
3696
+ }
3697
+ .dds-layout-module__dds-flex {
3698
+ --dds-r-flex: var(--dds-r-lg-flex);
3699
+ }
3716
3700
  .dds-layout-module__dds-flex-dir {
3717
3701
  --dds-r-flex-dir: var(--dds-r-lg-flex-dir);
3718
3702
  }
@@ -3827,6 +3811,12 @@
3827
3811
  .dds-layout-module__dds-word-break {
3828
3812
  --dds-r-word-break: var(--dds-r-xl-word-break);
3829
3813
  }
3814
+ .dds-layout-module__dds-z-index {
3815
+ --dds-r-z-index: var(--dds-r-xl-z-index);
3816
+ }
3817
+ .dds-layout-module__dds-flex {
3818
+ --dds-r-flex: var(--dds-r-xl-flex);
3819
+ }
3830
3820
  .dds-layout-module__dds-flex-dir {
3831
3821
  --dds-r-flex-dir: var(--dds-r-xl-flex-dir);
3832
3822
  }
@@ -4242,6 +4232,42 @@
4242
4232
  :where(.dds-surface-module__border-radius--0) {
4243
4233
  border-radius: 0;
4244
4234
  }
4235
+ .dds-DropdownItem-module__item {
4236
+ box-sizing: border-box;
4237
+ background-color: inherit;
4238
+ text-decoration: none;
4239
+
4240
+ &.dds-DropdownItem-module__default {
4241
+ color: var(--dds-color-text-default);
4242
+ }
4243
+
4244
+ &.dds-DropdownItem-module__danger {
4245
+ color: var(--dds-color-text-danger);
4246
+ }
4247
+ }
4248
+
4249
+ .dds-DropdownItem-module__item--interactive {
4250
+ text-align: left;
4251
+ -webkit-user-select: text;
4252
+ user-select: text;
4253
+ border: none;
4254
+ cursor: pointer;
4255
+ outline: inherit;
4256
+ width: 100%;
4257
+ @media (prefers-reduced-motion: no-preference) {
4258
+ transition: background-color var(--dds-motion-micro-state);
4259
+ }
4260
+
4261
+ &:hover,
4262
+ &:active {
4263
+ background-color: var(--dds-color-surface-hover-default);
4264
+ }
4265
+ }
4266
+
4267
+ .dds-DropdownItem-module__item--loading {
4268
+ cursor: not-allowed;
4269
+ position: relative;
4270
+ }
4245
4271
  .dds-Spinner-module__svg {
4246
4272
  display: block;
4247
4273
  }
@@ -4739,12 +4765,6 @@
4739
4765
  }
4740
4766
  .dds-OverflowMenu-module__container {
4741
4767
  box-sizing: border-box;
4742
- z-index: var(--dds-zindex-overflowmenu);
4743
- }
4744
-
4745
- .dds-OverflowMenu-module__list {
4746
- display: flex;
4747
- flex-direction: column;
4748
4768
  }
4749
4769
  :where(.dds-Toggle-module__label) {
4750
4770
  cursor: pointer;
@@ -4983,8 +5003,7 @@
4983
5003
  border: 0;
4984
5004
  background-color: transparent;
4985
5005
  border-top: 1px solid;
4986
- margin-top: var(--dds-spacing-x1);
4987
- margin-bottom: var(--dds-spacing-x1);
5006
+ margin-block: var(--dds-spacing-x1);
4988
5007
  }
4989
5008
 
4990
5009
  .dds-Divider-module__divider--default {
@@ -5340,8 +5359,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5340
5359
  }
5341
5360
  }
5342
5361
  .dds-DateInput-module__date-segment-container {
5343
- display: flex;
5344
- flex-direction: row;
5345
5362
  font-family: var(--dds-font-family-monospace);
5346
5363
  -webkit-user-select: none;
5347
5364
  user-select: none;
@@ -5399,20 +5416,10 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5399
5416
  margin-left: -3px;
5400
5417
  }
5401
5418
 
5402
- .dds-DateInput-module__popover {
5403
- z-index: var(--dds-zindex-popover);
5404
- }
5405
-
5406
- .dds-DateInput-module__modal-close-button-wrapper {
5407
- display: flex;
5408
- justify-content: right;
5409
- }
5410
-
5411
- .dds-DateInput-module__calendar {
5412
- display: flex;
5413
- flex-direction: column;
5414
- gap: var(--dds-spacing-x0-25);
5415
- height: 337px;
5419
+ .dds-DateInput-module__popover th,
5420
+ .dds-DateInput-module__popover td {
5421
+ height: 40px;
5422
+ width: 40px;
5416
5423
  }
5417
5424
 
5418
5425
  .dds-DateInput-module__calendar__header__month {
@@ -5424,25 +5431,11 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5424
5431
  user-select: none;
5425
5432
  }
5426
5433
 
5427
- .dds-DateInput-module__calendar__grid-element {
5428
- width: 40px;
5429
- height: 40px;
5430
- }
5431
-
5432
5434
  .dds-DateInput-module__calendar__th {
5433
5435
  font-weight: normal;
5434
5436
  }
5435
5437
 
5436
- .dds-DateInput-module__calendar__week-number {
5437
- display: flex;
5438
- align-items: center;
5439
- justify-content: center;
5440
- }
5441
-
5442
5438
  .dds-DateInput-module__calendar__cell-button {
5443
- display: flex;
5444
- align-items: center;
5445
- justify-content: center;
5446
5439
  cursor: pointer;
5447
5440
  border: 1px solid;
5448
5441
  border-color: transparent;
@@ -5860,10 +5853,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5860
5853
  }
5861
5854
 
5862
5855
  .dds-DescriptionList-module__desc {
5863
- margin-inline-start: 0;
5864
- align-items: center;
5865
- display: flex;
5866
- gap: var(--dds-spacing-x0-25);
5867
5856
  color: var(--dds-color-text-body);
5868
5857
  }
5869
5858
 
@@ -6132,8 +6121,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6132
6121
  calc(var(--dds-spacing-x1) - var(--dds-drawer-content-container-padding))
6133
6122
  calc(var(--dds-spacing-x1-5) - var(--dds-drawer-content-container-padding));
6134
6123
 
6135
- z-index: var(--dds-zindex-drawer);
6136
-
6137
6124
  @media (prefers-reduced-motion: no-preference) {
6138
6125
  transition: transform var(--dds-motion-surface);
6139
6126
  }
@@ -6366,9 +6353,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6366
6353
  :where(.dds-CharCounter-module__container) {
6367
6354
  margin-left: auto;
6368
6355
  }
6369
- .dds-Tooltip-module__paper {
6370
- z-index: var(--dds-zindex-tooltip);
6371
- }
6372
6356
  .dds-Fieldset-module__container {
6373
6357
  padding-block: 0;
6374
6358
  padding-inline: 0;
@@ -6420,43 +6404,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6420
6404
  transition: var(--dds-focus-transition);
6421
6405
  }
6422
6406
  }
6423
- .dds-Footer-module__container {
6424
- padding-block-start: var(--dds-spacing-x3);
6425
- padding-block-end: var(--dds-spacing-x6);
6426
-
6427
- @media only screen and (min-width: 960px) {
6428
- padding-block: var(--dds-spacing-x4);
6429
- }
6430
- }
6431
-
6432
- .dds-Footer-module__left {
6433
- display: flex;
6434
- flex-direction: column;
6435
- gap: var(--dds-spacing-x4);
6436
- }
6437
-
6438
- .dds-Footer-module__list {
6439
- display: flex;
6440
- flex-direction: column;
6441
- gap: var(--dds-spacing-x1-5);
6442
- }
6443
-
6444
- .dds-Footer-module__list-group {
6445
- display: flex;
6446
- flex-direction: column;
6447
- gap: var(--dds-spacing-x1-5);
6448
- }
6449
-
6450
- .dds-Footer-module__socials-group {
6451
- display: flex;
6452
- flex-direction: column;
6453
- gap: var(--dds-spacing-x1);
6454
- }
6455
-
6456
- .dds-Footer-module__socials-list {
6457
- display: flex;
6458
- gap: var(--dds-spacing-x1-5);
6459
- }
6460
6407
  .dds-FormSummary-module__dd {
6461
6408
  display: block;
6462
6409
  }
@@ -6476,12 +6423,7 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6476
6423
  }
6477
6424
  .dds-GlobalMessage-module__container {
6478
6425
  border-bottom: 2px solid;
6479
- display: flex;
6480
- align-items: center;
6481
- justify-content: space-between;
6482
6426
  box-sizing: border-box;
6483
- width: 100%;
6484
- padding: 0 var(--dds-spacing-x1);
6485
6427
  }
6486
6428
 
6487
6429
  .dds-GlobalMessage-module__container--info {
@@ -6511,17 +6453,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6511
6453
  }
6512
6454
  }
6513
6455
 
6514
- .dds-GlobalMessage-module__content {
6515
- display: flex;
6516
- align-items: center;
6517
- padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1-5)
6518
- var(--dds-spacing-x0-75) 0;
6519
- }
6520
-
6521
- .dds-GlobalMessage-module__content--closable {
6522
- padding-right: var(--dds-spacing-x0-75);
6523
- }
6524
-
6525
6456
  .dds-GlobalMessage-module__icon {
6526
6457
  margin-right: var(--dds-spacing-x0-75);
6527
6458
  }
@@ -6917,27 +6848,6 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6917
6848
  .dds-PhoneInput-module__calling-code--disabled {
6918
6849
  color: var(--dds-color-text-subtle);
6919
6850
  }
6920
- .dds-Popover-module__container {
6921
- position: absolute;
6922
- width: fit-content;
6923
- z-index: var(--dds-zindex-popover);
6924
- padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1)
6925
- var(--dds-spacing-x1-5) var(--dds-spacing-x1);
6926
- }
6927
-
6928
- .dds-Popover-module__content--closable--no-header {
6929
- margin-top: var(--dds-spacing-x2);
6930
- }
6931
-
6932
- .dds-Popover-module__header {
6933
- margin-right: var(--dds-spacing-x2);
6934
- }
6935
-
6936
- .dds-Popover-module__close-button {
6937
- position: absolute;
6938
- top: var(--dds-spacing-x0-25);
6939
- right: var(--dds-spacing-x0-25);
6940
- }
6941
6851
  .dds-ProgressTracker-module__list {
6942
6852
  --dds-progress-tracker-connector-width: 1px;
6943
6853
  --dds-progress-tracker-item-number-size: 1.75rem;