@norges-domstoler/dds-components 23.2.0 → 23.2.2

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
@@ -63,10 +63,6 @@
63
63
  }
64
64
 
65
65
  /* src/styles/selection.css */
66
- *::-moz-selection {
67
- background-color: var(--dds-color-surface-highlighted-default);
68
- color: var(--dds-color-text-default);
69
- }
70
66
  *::selection {
71
67
  background-color: var(--dds-color-surface-highlighted-default);
72
68
  color: var(--dds-color-text-default);
@@ -121,7 +117,6 @@
121
117
  :where(.typographyStyles_a--nested__parent .typographyStyles_a--nested__child) {
122
118
  font: inherit;
123
119
  color: var(--dds-color-text-link);
124
- width: -moz-fit-content;
125
120
  width: fit-content;
126
121
  text-decoration: underline;
127
122
  text-decoration-thickness: max(1px, 0.0625rem);
@@ -586,7 +581,6 @@
586
581
  /* src/components/helpers/AccordionBase/AccordionBase.module.css */
587
582
  :where(.AccordionBase_header-button) {
588
583
  -webkit-user-select: text;
589
- -moz-user-select: text;
590
584
  user-select: text;
591
585
  position: relative;
592
586
  cursor: pointer;
@@ -660,7 +654,6 @@
660
654
  .DropdownItem_item--interactive {
661
655
  text-align: left;
662
656
  -webkit-user-select: text;
663
- -moz-user-select: text;
664
657
  user-select: text;
665
658
  border: none;
666
659
  cursor: pointer;
@@ -790,7 +783,6 @@
790
783
  }
791
784
  .layout_dds-c-gap {
792
785
  --dds-r-c-gap: var(--dds-r-xs-c-gap);
793
- -moz-column-gap: var(--dds-r-c-gap, initial);
794
786
  column-gap: var(--dds-r-c-gap, initial);
795
787
  }
796
788
  .layout_dds-r-gap {
@@ -1972,7 +1964,6 @@
1972
1964
  /* src/components/Typography/Typography/Typography.module.css */
1973
1965
  .Typography_container {
1974
1966
  -webkit-user-select: text;
1975
- -moz-user-select: text;
1976
1967
  user-select: text;
1977
1968
  }
1978
1969
 
@@ -2001,12 +1992,10 @@
2001
1992
  /* src/components/Button/Button.module.css */
2002
1993
  :where(.Button_button) {
2003
1994
  -webkit-user-select: text;
2004
- -moz-user-select: text;
2005
1995
  user-select: text;
2006
1996
  display: inline-flex;
2007
1997
  align-items: center;
2008
1998
  justify-content: center;
2009
- width: -moz-fit-content;
2010
1999
  width: fit-content;
2011
2000
  cursor: pointer;
2012
2001
  box-shadow: none;
@@ -2055,7 +2044,6 @@
2055
2044
  padding-inline: var(--dds-spacing-x0-25);
2056
2045
  }
2057
2046
  &.Button_clear {
2058
- min-height: -moz-fit-content;
2059
2047
  min-height: fit-content;
2060
2048
  padding: var(--dds-spacing-x0-125);
2061
2049
  }
@@ -2196,7 +2184,6 @@
2196
2184
  cursor: pointer;
2197
2185
  display: flex;
2198
2186
  align-items: center;
2199
- width: -moz-fit-content;
2200
2187
  width: fit-content;
2201
2188
  gap: var(--dds-spacing-x0-25);
2202
2189
  --dds-toggle-medium-thumb-spacing-inline: var(--dds-spacing-x0-125);
@@ -2569,7 +2556,6 @@
2569
2556
  .SelectionControl_label {
2570
2557
  cursor: pointer;
2571
2558
  -webkit-user-select: none;
2572
- -moz-user-select: none;
2573
2559
  user-select: none;
2574
2560
  &:not(:hover) input[aria-invalid]:enabled:not([aria-readonly=true]):not(:focus-visible):not(:checked) ~ .SelectionControl_selection-control {
2575
2561
  background-color: var(--dds-color-surface-danger-default);
@@ -2707,10 +2693,19 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2707
2693
  }
2708
2694
 
2709
2695
  /* src/components/date-inputs/common/DateInput.module.css */
2696
+ .DateInput_date-group {
2697
+ pointer-events: none;
2698
+ label,
2699
+ .DateInput_input-group {
2700
+ pointer-events: auto;
2701
+ }
2702
+ }
2710
2703
  .DateInput_date-segment-container {
2711
2704
  display: flex;
2712
2705
  flex-direction: row;
2713
2706
  font-family: var(--dds-font-family-monospace);
2707
+ -webkit-user-select: none;
2708
+ user-select: none;
2714
2709
  }
2715
2710
  .DateInput_segment {
2716
2711
  font-variant-numeric: tabular-nums;
@@ -2765,7 +2760,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2765
2760
  }
2766
2761
  .DateInput_calendar__month-button {
2767
2762
  -webkit-user-select: none;
2768
- -moz-user-select: none;
2769
2763
  user-select: none;
2770
2764
  }
2771
2765
  .DateInput_calendar__grid-element {
@@ -2897,10 +2891,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2897
2891
  &[type=datetime-local] {
2898
2892
  -webkit-appearance: none;
2899
2893
  }
2900
- &:hover:enabled:-moz-read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
2901
- border-color: var(--dds-color-border-action-hover);
2902
- box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
2903
- }
2904
2894
  &:hover:enabled:read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
2905
2895
  border-color: var(--dds-color-border-action-hover);
2906
2896
  box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
@@ -2908,13 +2898,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2908
2898
  }
2909
2899
  :where(.Input_input--stateful) {
2910
2900
  -webkit-appearance: textfield;
2911
- &:enabled:-moz-read-only {
2912
- box-shadow: none;
2913
- border: 1px solid var(--dds-color-border-default);
2914
- background-color: var(--dds-color-surface-field-disabled);
2915
- color: var(--dds-color-text-medium);
2916
- cursor: default;
2917
- }
2918
2901
  &:not(.Input_disabled).Input_read-only,
2919
2902
  &:enabled:read-only {
2920
2903
  box-shadow: none;
@@ -2939,20 +2922,11 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2939
2922
  :where(.Input_input--stateful-danger) {
2940
2923
  border-color: var(--dds-color-border-danger);
2941
2924
  box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2942
- &:hover:enabled:-moz-read-write:not(:focus-within) {
2943
- border-color: var(--dds-color-border-danger);
2944
- box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2945
- }
2946
2925
  &:not(.Input_disabled):hover:not(:focus-within),
2947
2926
  &:hover:enabled:read-write:not(:focus-within) {
2948
2927
  border-color: var(--dds-color-border-danger);
2949
2928
  box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2950
2929
  }
2951
- &:focus-within:enabled:-moz-read-write,
2952
- &:hover:focus-within:enabled:-moz-read-write,
2953
- &:active:enabled:-moz-read-write {
2954
- border-color: 1px solid var(--dds-color-border-default);
2955
- }
2956
2930
  &:not(.Input_disabled):focus-within,
2957
2931
  &:focus-within:enabled:read-write,
2958
2932
  &:hover:focus-within:enabled:read-write,
@@ -3301,7 +3275,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
3301
3275
  .Table_sort-button {
3302
3276
  gap: var(--dds-spacing-x0-5);
3303
3277
  -webkit-user-select: text;
3304
- -moz-user-select: text;
3305
3278
  user-select: text;
3306
3279
  display: flex;
3307
3280
  align-items: center;
@@ -3399,19 +3372,14 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
3399
3372
  top: calc((var(--dds-font-lineheight-x1) * 1em) / 2 - var(--dds-list-bullet-size) / 2);
3400
3373
  left: 0;
3401
3374
  background: var(--dds-color-text-body);
3402
- -webkit-mask-size: 100%;
3403
3375
  mask-size: 100%;
3404
- -webkit-mask-repeat: no-repeat;
3405
3376
  mask-repeat: no-repeat;
3406
- -webkit-mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="12" cy="12" r="6" fill="%230B0D0E"/>%0A</svg>%0A');
3407
3377
  mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="12" cy="12" r="6" fill="%230B0D0E"/>%0A</svg>%0A');
3408
3378
  }
3409
3379
  ul > li:before {
3410
- -webkit-mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect x="4" y="10" width="15.65" height="3.9125" fill="%230B0D0E"/>%0A</svg>%0A');
3411
3380
  mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect x="4" y="10" width="15.65" height="3.9125" fill="%230B0D0E"/>%0A</svg>%0A');
3412
3381
  }
3413
3382
  ul > li > ul > li:before {
3414
- -webkit-mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z" fill="%230B0D0E"/>%0A</svg>%0A');
3415
3383
  mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z" fill="%230B0D0E"/>%0A</svg>%0A');
3416
3384
  }
3417
3385
  }
@@ -3707,17 +3675,10 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
3707
3675
  }
3708
3676
  }
3709
3677
  .InlineEdit_inline-select {
3710
- -webkit-appearance: none;
3711
- -moz-appearance: none;
3712
3678
  appearance: none;
3713
3679
  text-overflow: ellipsis;
3714
3680
  cursor: pointer;
3715
3681
  }
3716
- .InlineEdit_inline-input:hover:enabled:-moz-read-write:not(:focus) {
3717
- border-color: transparent;
3718
- box-shadow: none;
3719
- background-color: var(--dds-color-surface-hover-default);
3720
- }
3721
3682
  .InlineEdit_inline-input:hover:enabled:read-write:not(:focus),
3722
3683
  .InlineEdit_inline-select:hover:enabled:not(:focus) {
3723
3684
  border-color: transparent;
@@ -3861,7 +3822,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
3861
3822
  .NewsPopover_img-wrapper img {
3862
3823
  width: 100%;
3863
3824
  height: 100%;
3864
- -o-object-fit: contain;
3865
3825
  object-fit: contain;
3866
3826
  }
3867
3827
 
@@ -3900,8 +3860,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
3900
3860
 
3901
3861
  /* src/components/Select/NativeSelect/NativeSelect.module.css */
3902
3862
  .NativeSelect_select {
3903
- -webkit-appearance: none;
3904
- -moz-appearance: none;
3905
3863
  appearance: none;
3906
3864
  text-overflow: ellipsis;
3907
3865
  font: inherit;
@@ -4043,7 +4001,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
4043
4001
  /* src/components/Popover/Popover.module.css */
4044
4002
  .Popover_container {
4045
4003
  position: absolute;
4046
- width: -moz-fit-content;
4047
4004
  width: fit-content;
4048
4005
  z-index: var(--dds-zindex-popover);
4049
4006
  padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5) var(--dds-spacing-x1);
@@ -4279,7 +4236,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
4279
4236
  .Tabs_tab {
4280
4237
  border: none;
4281
4238
  -webkit-user-select: text;
4282
- -moz-user-select: text;
4283
4239
  user-select: text;
4284
4240
  display: flex;
4285
4241
  align-items: center;