@norges-domstoler/dds-components 17.0.0 → 17.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/README.md CHANGED
@@ -54,6 +54,7 @@ Tilgjengelige komponenter:
54
54
  - Chip
55
55
  - DatePicker
56
56
  - DescriptionList
57
+ - DetailList
57
58
  - Divider
58
59
  - Drawer
59
60
  - EmptyContent
@@ -76,6 +77,7 @@ Tilgjengelige komponenter:
76
77
  - RadioButton
77
78
  - Search
78
79
  - Select
80
+ - Skeleton
79
81
  - SkipToContent
80
82
  - Spinner
81
83
  - Stack
package/dist/index.css CHANGED
@@ -717,6 +717,13 @@
717
717
  :where(.Input_char-counter) {
718
718
  margin-left: auto;
719
719
  }
720
+ :where(.Input_icon) {
721
+ position: absolute;
722
+ top: 50%;
723
+ transform: translate(0, -50%);
724
+ z-index: 1;
725
+ color: var(--dds-color-icon-default);
726
+ }
720
727
 
721
728
  /* src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.module.css */
722
729
  .TextOverflowEllipsis_wrapper {
@@ -1584,6 +1591,54 @@
1584
1591
  margin: var(--dds-spacing-x2);
1585
1592
  }
1586
1593
 
1594
+ /* src/components/DetailList/DetailList.module.css */
1595
+ .DetailList_list {
1596
+ display: table;
1597
+ width: 100%;
1598
+ border-spacing: 0;
1599
+ border-collapse: collapse;
1600
+ }
1601
+ .DetailList_list--with-dividers {
1602
+ .DetailList_row {
1603
+ border-bottom: 1px solid var(--dds-color-border-default);
1604
+ }
1605
+ }
1606
+ .DetailList_list--striped {
1607
+ .DetailList_row {
1608
+ &:nth-of-type(even) {
1609
+ background-color: var(--dds-color-surface-default);
1610
+ }
1611
+ &:nth-of-type(odd) {
1612
+ background-color: var(--dds-color-surface-subtle);
1613
+ }
1614
+ }
1615
+ }
1616
+ .DetailList_list--normal {
1617
+ .DetailList_cell {
1618
+ padding-block: var(--dds-spacing-x1-5);
1619
+ padding-inline: var(--dds-spacing-x0-75);
1620
+ }
1621
+ }
1622
+ .DetailList_list--compact {
1623
+ .DetailList_cell {
1624
+ padding: var(--dds-spacing-x0-75);
1625
+ }
1626
+ }
1627
+ .DetailList_list--extra-compact {
1628
+ .DetailList_cell {
1629
+ padding: var(--dds-spacing-x0-5);
1630
+ }
1631
+ }
1632
+ .DetailList_row {
1633
+ display: table-row;
1634
+ }
1635
+ .DetailList_cell {
1636
+ display: table-cell;
1637
+ }
1638
+ .DetailList_term {
1639
+ font-weight: var(--dds-font-weight-bold);
1640
+ }
1641
+
1587
1642
  /* src/components/Drawer/Drawer.module.css */
1588
1643
  .Drawer_container {
1589
1644
  --dds-drawer-content-container-padding: var(--dds-spacing-x0-25);
@@ -2654,9 +2709,14 @@
2654
2709
  box-sizing: border-box;
2655
2710
  max-width: 100%;
2656
2711
  }
2657
- .Select_icon {
2658
- margin-right: var(--dds-spacing-x0-5);
2659
- margin-left: -1px;
2712
+ .Select_icon--medium {
2713
+ left: var(--dds-spacing-x0-75);
2714
+ }
2715
+ .Select_icon--small {
2716
+ left: var(--dds-spacing-x0-75);
2717
+ }
2718
+ .Select_icon--tiny {
2719
+ left: var(--dds-spacing-x0-5);
2660
2720
  }
2661
2721
  .Select_control {
2662
2722
  &:hover:not(.Select_control--readonly) .Select_dropdown-indicator,
@@ -2932,12 +2992,7 @@
2932
2992
  padding-left: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5));
2933
2993
  }
2934
2994
  .Search_search-icon {
2935
- position: absolute;
2936
2995
  left: var(--dds-spacing-x0-75);
2937
- top: 50%;
2938
- transform: translate(0, -50%);
2939
- z-index: 1;
2940
- color: var(--dds-color-icon-default);
2941
2996
  }
2942
2997
  .Search_clear-button {
2943
2998
  position: absolute;
@@ -3112,6 +3167,20 @@
3112
3167
  border-radius: var(--dds-border-radius-rounded);
3113
3168
  }
3114
3169
 
3170
+ /* src/components/Skeleton/Skeleton.module.css */
3171
+ @keyframes Skeleton_ddsSkeletonAnimation {
3172
+ 0% {
3173
+ opacity: 1;
3174
+ }
3175
+ to {
3176
+ opacity: 0.5;
3177
+ }
3178
+ }
3179
+ .Skeleton_container {
3180
+ animation: Skeleton_ddsSkeletonAnimation 0.75s ease-out infinite alternate;
3181
+ background-color: var(--dds-color-surface-skeleton);
3182
+ }
3183
+
3115
3184
  /* src/components/SkipToContent/SkipToContent.module.css */
3116
3185
  .SkipToContent_wrapper {
3117
3186
  background-color: var(--dds-color-surface-inverse-default);
@@ -3218,6 +3287,14 @@
3218
3287
  font: var(--dds-font-body-sans-01);
3219
3288
  font-weight: var(--dds-font-weight-bold);
3220
3289
  }
3290
+ .Table_row--body {
3291
+ &:nth-of-type(odd) {
3292
+ background-color: var(--dds-color-surface-subtle);
3293
+ }
3294
+ &:nth-of-type(even) {
3295
+ background-color: var(--dds-color-surface-default);
3296
+ }
3297
+ }
3221
3298
  }
3222
3299
  .Table_row {
3223
3300
  @media (prefers-reduced-motion: no-preference) {
@@ -3246,9 +3323,9 @@
3246
3323
  &.Table_row--selected:nth-of-type(odd) {
3247
3324
  background-color: var(--dds-color-surface-selected-default);
3248
3325
  }
3249
- }
3250
- .Table_row--hoverable:hover {
3251
- background-color: var(--dds-color-surface-hover-default);
3326
+ &.Table_row--hoverable:hover {
3327
+ background-color: var(--dds-color-surface-hover-default);
3328
+ }
3252
3329
  }
3253
3330
  .Table_cell--head {
3254
3331
  background-color: var(--dds-color-brand-primary-subtle);
@@ -3480,21 +3557,14 @@
3480
3557
  .TextInput_input--extended {
3481
3558
  width: 100%;
3482
3559
  }
3483
- .TextInput_icon {
3484
- position: absolute;
3485
- z-index: 1;
3486
- }
3487
3560
  .TextInput_icon--medium {
3488
3561
  left: var(--dds-spacing-x0-75);
3489
- top: calc(50% - (var(--dds-icon-size-medium) / 2));
3490
3562
  }
3491
3563
  .TextInput_icon--small {
3492
3564
  left: var(--dds-spacing-x0-75);
3493
- top: calc(50% - (var(--dds-icon-size-medium) / 2));
3494
3565
  }
3495
3566
  .TextInput_icon--tiny {
3496
3567
  left: var(--dds-spacing-x0-5);
3497
- top: calc(50% - (var(--dds-icon-size-small) / 2));
3498
3568
  }
3499
3569
  .TextInput_label {
3500
3570
  display: block;