@norges-domstoler/dds-components 0.0.0-dev-20261007132152 → 0.0.0-dev-20261008114725

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
@@ -4878,10 +4878,6 @@
4878
4878
  @media (prefers-reduced-motion: no-preference) {
4879
4879
  transition: all var(--dds-motion-micro-state);
4880
4880
  }
4881
-
4882
- &:active:enabled {
4883
- scale: 0.95;
4884
- }
4885
4881
  }
4886
4882
 
4887
4883
  .dds-Button-module__button--is-loading {
@@ -5074,13 +5070,16 @@
5074
5070
  color: var(--dds-color-text-on-action);
5075
5071
  }
5076
5072
  }
5077
-
5078
- .dds-Button-module__badge {
5073
+ .dds-common-module__badge--on-corner {
5079
5074
  position: absolute;
5080
5075
  top: 0;
5081
5076
  right: 0;
5082
5077
  transform: translate(50%, -50%);
5083
5078
  }
5079
+
5080
+ .dds-common-module__button:active:enabled {
5081
+ transform: scale(0.95);
5082
+ }
5084
5083
  .dds-OverflowMenu-module__container {
5085
5084
  box-sizing: border-box;
5086
5085
  }
@@ -5526,6 +5525,13 @@
5526
5525
  }
5527
5526
  }
5528
5527
 
5528
+ :where(.dds-SelectionControl-module__label) {
5529
+ padding-inline: calc(
5530
+ var(--dds-size-icon-component) + var(--dds-spacing-x0-25)
5531
+ )
5532
+ 0;
5533
+ }
5534
+
5529
5535
  .dds-SelectionControl-module__label:has(input:enabled) {
5530
5536
  input[aria-invalid]:not([aria-readonly='true']):not(:focus-visible)
5531
5537
  ~ .dds-SelectionControl-module__selection-control {
@@ -5661,164 +5667,87 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
5661
5667
  .dds-SelectionControl-module__selection-control--radio {
5662
5668
  border-radius: var(--dds-border-radius-rounded);
5663
5669
  }
5664
- .dds-CookieBanner-module__container:focus-visible {
5665
- outline: none;
5666
- }
5667
-
5668
- .dds-CookieBanner-module__checkbox-label {
5669
- padding: 0 0 0 calc(var(--dds-size-icon-component) + var(--dds-spacing-x0-5));
5670
- align-items: flex-start;
5671
- }
5672
- .dds-DateInput-module__date-group {
5673
- pointer-events: none;
5674
- label,
5675
- .dds-DateInput-module__input-group {
5676
- pointer-events: auto;
5670
+ .dds-Chip-module__container {
5671
+ position: relative;
5672
+ color: inherit;
5673
+ @media (prefers-reduced-motion: no-preference) {
5674
+ transition:
5675
+ box-shadow var(--dds-motion-micro-state),
5676
+ border-color var(--dds-motion-micro-state),
5677
+ background-color var(--dds-motion-micro-state),
5678
+ color var(--dds-motion-micro-state),
5679
+ transform var(--dds-motion-micro-state),
5680
+ var(--dds-focus-transition);
5677
5681
  }
5678
- }
5679
- .dds-DateInput-module__date-segment-container {
5680
- font-family: var(--dds-font-family-monospace);
5681
- -webkit-user-select: none;
5682
- user-select: none;
5683
- }
5684
-
5685
- .dds-DateInput-module__segment {
5686
- font-variant-numeric: tabular-nums;
5687
- outline: none;
5688
- font-family: var(--dds-font-family-monospace);
5689
-
5690
- &:focus {
5691
- background-color: var(--dds-color-surface-action-selected);
5692
- color: var(--dds-color-text-on-action);
5682
+ &:is(button),
5683
+ button {
5684
+ cursor: pointer;
5693
5685
  }
5694
- }
5695
5686
 
5696
- .dds-DateInput-module__segment__placeholder {
5697
- display: block;
5698
- width: 100%;
5699
- font-variant-numeric: tabular-nums;
5700
- pointer-events: none;
5687
+ &:is(button) {
5688
+ background: var(--dds-color-surface-default);
5689
+ border-color: var(--dds-color-border-subtle);
5701
5690
 
5702
- .dds-DateInput-module__segment:focus & {
5703
- color: var(--dds-color-text-on-action);
5691
+ &:hover {
5692
+ background: var(--dds-color-surface-hover-default);
5693
+ border-color: var(--dds-color-border-action-hover);
5694
+ }
5704
5695
  }
5705
- }
5706
-
5707
- .dds-DateInput-module__segment__placeholder--invisible {
5708
- visibility: hidden;
5709
- height: 0;
5710
- }
5711
-
5712
- /**------------------------------------------------------------------------
5713
- * Ikon ved siden av input
5714
- * Gjelder både dato og tid
5715
- *------------------------------------------------------------------------*/
5716
5696
 
5717
- .dds-DateInput-module__icon-wrapper--disabled,
5718
- .dds-DateInput-module__popover-button:disabled {
5719
- color: var(--dds-color-icon-subtle);
5720
- }
5721
-
5722
- .dds-DateInput-module__icon-wrapper--readonly,
5723
- .dds-DateInput-module__popover-button--readonly:disabled {
5724
- color: var(--dds-color-icon-medium);
5725
- }
5726
-
5727
- /**------------------------------------------------------------------------
5728
- * Kalender-popover
5729
- *------------------------------------------------------------------------*/
5730
-
5731
- .dds-DateInput-module__popover-button {
5732
- padding: 3px;
5733
- margin-left: -3px;
5734
- }
5735
-
5736
- .dds-DateInput-module__popover th,
5737
- .dds-DateInput-module__popover td {
5738
- height: 40px;
5739
- width: 40px;
5740
- }
5741
-
5742
- .dds-DateInput-module__calendar__header__month {
5743
- text-transform: capitalize;
5744
- }
5745
-
5746
- .dds-DateInput-module__calendar__month-button {
5747
- -webkit-user-select: none;
5748
- user-select: none;
5749
- }
5750
-
5751
- .dds-DateInput-module__calendar__th {
5752
- font-weight: normal;
5753
- }
5754
-
5755
- .dds-DateInput-module__calendar__cell-button {
5756
- cursor: pointer;
5757
- border: 1px solid;
5758
- border-color: transparent;
5759
- border-radius: var(--dds-border-radius-button);
5760
- transition: var(--dds-motion-micro-state);
5761
- }
5762
-
5763
- .dds-DateInput-module__calendar__cell-button--today {
5764
- text-decoration: underline;
5765
- border-color: var(--dds-color-border-default);
5697
+ button {
5698
+ margin-inline-start: var(--dds-spacing-x0-125);
5699
+ }
5766
5700
  }
5767
5701
 
5768
- .dds-DateInput-module__calendar__cell-button--default {
5769
- background-color: transparent;
5770
- color: var(--dds-color-text-default);
5702
+ .dds-Chip-module__selection-control {
5703
+ background: var(--dds-color-surface-default);
5771
5704
 
5772
- &:hover {
5773
- background-color: var(--dds-color-surface-hover-default);
5705
+ &:hover:has(input:enabled) {
5774
5706
  border-color: var(--dds-color-border-action-hover);
5775
- color: var(--dds-color-text-default);
5776
5707
  }
5777
- }
5778
5708
 
5779
- .dds-DateInput-module__calendar__cell-button--unavailable,
5780
- .dds-DateInput-module__calendar__cell-button--unavailable:hover {
5781
- background-color: var(--dds-color-surface-field-disabled);
5782
- border-color: var(--dds-color-surface-field-disabled);
5783
- color: var(--dds-color-text-subtle);
5784
- cursor: not-allowed;
5785
- text-decoration: line-through;
5709
+ &:has(input:disabled) {
5710
+ color: var(--dds-color-text-subtle);
5711
+ background: var(--dds-color-surface-field-disabled);
5712
+ }
5786
5713
  }
5787
5714
 
5788
- .dds-DateInput-module__calendar__cell-button--selected,
5789
- .dds-DateInput-module__calendar__cell-button--selected:hover {
5790
- background-color: var(--dds-color-surface-action-selected);
5791
- border-color: var(--dds-color-surface-action-selected);
5792
- color: var(--dds-color-text-on-action);
5793
- font-weight: var(--dds-font-weight-bold);
5715
+ .dds-Chip-module__removable,
5716
+ .dds-Chip-module__selection-control:has(input:checked) {
5717
+ background: var(--dds-color-surface-selected-default);
5794
5718
  }
5795
5719
 
5796
- .dds-DateInput-module__calendar__cell-button--unavailable--today {
5797
- border-color: var(--dds-color-border-default);
5798
- text-decoration: underline line-through;
5799
- }
5800
- .dds-InlineIconButton-module__button {
5801
- display: inline-flex;
5802
- border-radius: var(--dds-border-radius-button);
5803
- color: var(--dds-color-icon-default);
5720
+ .dds-Chip-module__selection-control-spacing {
5721
+ padding-left: var(--dds-spacing-chip-sl-left);
5722
+ padding-right: var(--dds-spacing-chip-sl-right);
5804
5723
 
5805
- &:hover:not(:disabled) {
5806
- background-color: var(--dds-color-surface-hover-default);
5807
- color: var(--dds-color-icon-action-hover);
5808
- }
5809
- &:not(:focus-visible) {
5810
- outline: none;
5724
+ & > span {
5725
+ --dds-spacing-sl-compact: var(--dds-spacing-x0-125);
5726
+ left: var(--dds-spacing-chip-sl-marker-left);
5727
+ margin: var(--dds-spacing-sl-compact);
5728
+ height: calc(
5729
+ var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
5730
+ );
5731
+ width: calc(
5732
+ var(--dds-size-icon-component) - 2 * var(--dds-spacing-sl-compact)
5733
+ );
5811
5734
  }
5735
+ }
5812
5736
 
5813
- &:disabled {
5814
- cursor: not-allowed;
5737
+ .dds-Chip-module__selection-control--no-indicator {
5738
+ &:hover {
5739
+ background: var(--dds-color-surface-hover-default);
5815
5740
  }
5816
-
5817
- @media (prefers-reduced-motion: no-preference) {
5818
- transition:
5819
- background-color var(--dds-motion-micro-state),
5820
- color var(--dds-motion-micro-state),
5821
- var(--dds-focus-transition);
5741
+ &:has(input:checked) {
5742
+ color: var(--dds-color-text-on-action);
5743
+ background: var(--dds-color-surface-action-resting);
5744
+ border-color: var(--dds-color-border-action-default);
5745
+ &:hover {
5746
+ background: var(--dds-color-surface-action-hover);
5747
+ }
5748
+ }
5749
+ & > span {
5750
+ display: none;
5822
5751
  }
5823
5752
  }
5824
5753
  .dds-Input-module__container {
@@ -6152,6 +6081,166 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6152
6081
  :where(.dds-Input-module__input-group__absolute-el--xsmall) {
6153
6082
  left: var(--dds-input-absolute-el-left-xsmall);
6154
6083
  }
6084
+ .dds-CookieBanner-module__container:focus-visible {
6085
+ outline: none;
6086
+ }
6087
+
6088
+ .dds-CookieBanner-module__checkbox-label {
6089
+ padding: 0 0 0 calc(var(--dds-size-icon-component) + var(--dds-spacing-x0-5));
6090
+ align-items: flex-start;
6091
+ }
6092
+ .dds-DateInput-module__date-group {
6093
+ pointer-events: none;
6094
+ label,
6095
+ .dds-DateInput-module__input-group {
6096
+ pointer-events: auto;
6097
+ }
6098
+ }
6099
+ .dds-DateInput-module__date-segment-container {
6100
+ font-family: var(--dds-font-family-monospace);
6101
+ -webkit-user-select: none;
6102
+ user-select: none;
6103
+ }
6104
+
6105
+ .dds-DateInput-module__segment {
6106
+ font-variant-numeric: tabular-nums;
6107
+ outline: none;
6108
+ font-family: var(--dds-font-family-monospace);
6109
+
6110
+ &:focus {
6111
+ background-color: var(--dds-color-surface-action-selected);
6112
+ color: var(--dds-color-text-on-action);
6113
+ }
6114
+ }
6115
+
6116
+ .dds-DateInput-module__segment__placeholder {
6117
+ display: block;
6118
+ width: 100%;
6119
+ font-variant-numeric: tabular-nums;
6120
+ pointer-events: none;
6121
+
6122
+ .dds-DateInput-module__segment:focus & {
6123
+ color: var(--dds-color-text-on-action);
6124
+ }
6125
+ }
6126
+
6127
+ .dds-DateInput-module__segment__placeholder--invisible {
6128
+ visibility: hidden;
6129
+ height: 0;
6130
+ }
6131
+
6132
+ /**------------------------------------------------------------------------
6133
+ * Ikon ved siden av input
6134
+ * Gjelder både dato og tid
6135
+ *------------------------------------------------------------------------*/
6136
+
6137
+ .dds-DateInput-module__icon-wrapper--disabled,
6138
+ .dds-DateInput-module__popover-button:disabled {
6139
+ color: var(--dds-color-icon-subtle);
6140
+ }
6141
+
6142
+ .dds-DateInput-module__icon-wrapper--readonly,
6143
+ .dds-DateInput-module__popover-button--readonly:disabled {
6144
+ color: var(--dds-color-icon-medium);
6145
+ }
6146
+
6147
+ /**------------------------------------------------------------------------
6148
+ * Kalender-popover
6149
+ *------------------------------------------------------------------------*/
6150
+
6151
+ .dds-DateInput-module__popover-button {
6152
+ padding: 3px;
6153
+ margin-left: -3px;
6154
+ }
6155
+
6156
+ .dds-DateInput-module__popover th,
6157
+ .dds-DateInput-module__popover td {
6158
+ height: 40px;
6159
+ width: 40px;
6160
+ }
6161
+
6162
+ .dds-DateInput-module__calendar__header__month {
6163
+ text-transform: capitalize;
6164
+ }
6165
+
6166
+ .dds-DateInput-module__calendar__month-button {
6167
+ -webkit-user-select: none;
6168
+ user-select: none;
6169
+ }
6170
+
6171
+ .dds-DateInput-module__calendar__th {
6172
+ font-weight: normal;
6173
+ }
6174
+
6175
+ .dds-DateInput-module__calendar__cell-button {
6176
+ cursor: pointer;
6177
+ border: 1px solid;
6178
+ border-color: transparent;
6179
+ border-radius: var(--dds-border-radius-button);
6180
+ transition: var(--dds-motion-micro-state);
6181
+ }
6182
+
6183
+ .dds-DateInput-module__calendar__cell-button--today {
6184
+ text-decoration: underline;
6185
+ border-color: var(--dds-color-border-default);
6186
+ }
6187
+
6188
+ .dds-DateInput-module__calendar__cell-button--default {
6189
+ background-color: transparent;
6190
+ color: var(--dds-color-text-default);
6191
+
6192
+ &:hover {
6193
+ background-color: var(--dds-color-surface-hover-default);
6194
+ border-color: var(--dds-color-border-action-hover);
6195
+ color: var(--dds-color-text-default);
6196
+ }
6197
+ }
6198
+
6199
+ .dds-DateInput-module__calendar__cell-button--unavailable,
6200
+ .dds-DateInput-module__calendar__cell-button--unavailable:hover {
6201
+ background-color: var(--dds-color-surface-field-disabled);
6202
+ border-color: var(--dds-color-surface-field-disabled);
6203
+ color: var(--dds-color-text-subtle);
6204
+ cursor: not-allowed;
6205
+ text-decoration: line-through;
6206
+ }
6207
+
6208
+ .dds-DateInput-module__calendar__cell-button--selected,
6209
+ .dds-DateInput-module__calendar__cell-button--selected:hover {
6210
+ background-color: var(--dds-color-surface-action-selected);
6211
+ border-color: var(--dds-color-surface-action-selected);
6212
+ color: var(--dds-color-text-on-action);
6213
+ font-weight: var(--dds-font-weight-bold);
6214
+ }
6215
+
6216
+ .dds-DateInput-module__calendar__cell-button--unavailable--today {
6217
+ border-color: var(--dds-color-border-default);
6218
+ text-decoration: underline line-through;
6219
+ }
6220
+ .dds-InlineIconButton-module__button {
6221
+ display: inline-flex;
6222
+ border-radius: var(--dds-border-radius-button);
6223
+ color: var(--dds-color-icon-default);
6224
+
6225
+ &:hover:not(:disabled) {
6226
+ background-color: var(--dds-color-surface-hover-default);
6227
+ color: var(--dds-color-icon-action-hover);
6228
+ }
6229
+ &:not(:focus-visible) {
6230
+ outline: none;
6231
+ }
6232
+
6233
+ &:disabled {
6234
+ cursor: not-allowed;
6235
+ }
6236
+
6237
+ @media (prefers-reduced-motion: no-preference) {
6238
+ transition:
6239
+ background-color var(--dds-motion-micro-state),
6240
+ color var(--dds-motion-micro-state),
6241
+ var(--dds-focus-transition);
6242
+ }
6243
+ }
6155
6244
  .dds-DescriptionList-module__list {
6156
6245
  & > dt:first-of-type {
6157
6246
  margin-top: var(--dds-spacing-x1);
@@ -6799,6 +6888,9 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
6799
6888
  &:focus-visible {
6800
6889
  z-index: var(--dds-zindex-absolute-element);
6801
6890
  }
6891
+ &:has(svg) {
6892
+ line-height: 0;
6893
+ }
6802
6894
  }
6803
6895
  .dds-InlineEdit-module__inline-input {
6804
6896
  width: 100%;
@@ -7657,30 +7749,3 @@ input[data-indeterminate='true'] ~ .dds-SelectionControl-module__selection-contr
7657
7749
  background-color: var(--dds-color-surface-selected-default);
7658
7750
  }
7659
7751
  }
7660
- .dds-ToggleButton-module__content {
7661
- box-sizing: border-box;
7662
- cursor: pointer;
7663
-
7664
- @media (prefers-reduced-motion: no-preference) {
7665
- transition:
7666
- border-color var(--dds-motion-micro-state),
7667
- background-color var(--dds-motion-micro-state),
7668
- var(--dds-focus-transition);
7669
- }
7670
-
7671
- &:hover {
7672
- border-color: var(--dds-color-border-action-hover);
7673
- background-color: var(--dds-color-surface-hover-default);
7674
- }
7675
- }
7676
-
7677
- input:checked + .dds-ToggleButton-module__content {
7678
- color: var(--dds-color-text-on-action);
7679
- background-color: var(--dds-color-surface-action-resting);
7680
- border-color: var(--dds-color-surface-action-resting);
7681
- }
7682
-
7683
- input:checked + .dds-ToggleButton-module__content:hover {
7684
- background-color: var(--dds-color-surface-action-hover);
7685
- border-color: var(--dds-color-surface-action-hover);
7686
- }