@norges-domstoler/dds-components 0.0.0-dev-20250822131606 → 0.0.0-dev-20250828071225

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
@@ -2223,20 +2223,17 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2223
2223
  display: inline-flex;
2224
2224
  flex-direction: row;
2225
2225
  align-items: center;
2226
- gap: var(--dds-spacing-x0-25);
2227
- }
2228
- .DateInput_date-input--medium {
2229
- padding-inline-start: var(--dds-spacing-x0-5);
2230
- padding-inline-end: var(--dds-spacing-x1);
2226
+ gap: var(--dds-spacing-x0-5);
2231
2227
  }
2232
- .DateInput_date-input--small {
2233
- padding-inline-start: var(--dds-spacing-x0-5);
2234
- padding-inline-end: var(--dds-spacing-x0-75);
2228
+ .DateInput_date-input--medium--clearable {
2229
+ padding-inline-end: var(--dds-spacing-x0-5);
2235
2230
  }
2236
- .DateInput_date-input--xsmall {
2237
- padding-inline-start: var(--dds-spacing-x0-25);
2231
+ .DateInput_date-input--small--clearable {
2238
2232
  padding-inline-end: var(--dds-spacing-x0-5);
2239
2233
  }
2234
+ .DateInput_date-input--xsmall--clearable {
2235
+ padding-inline-end: var(--dds-spacing-x0-25);
2236
+ }
2240
2237
  .DateInput_date-segment-container {
2241
2238
  display: flex;
2242
2239
  flex-direction: row;
@@ -2248,6 +2245,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2248
2245
  width: max-content;
2249
2246
  font-variant-numeric: tabular-nums;
2250
2247
  outline: none;
2248
+ font-family: var(--dds-font-family-monospace);
2251
2249
  &:focus {
2252
2250
  background-color: var(--dds-color-surface-action-selected);
2253
2251
  color: var(--dds-color-text-on-action);
@@ -2258,6 +2256,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2258
2256
  width: 100%;
2259
2257
  font-variant-numeric: tabular-nums;
2260
2258
  pointer-events: none;
2259
+ font-family: var(--dds-font-family-monospace);
2261
2260
  .DateInput_segment:focus & {
2262
2261
  color: var(--dds-color-text-on-action);
2263
2262
  }
@@ -2267,45 +2266,27 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2267
2266
  height: 0;
2268
2267
  width: 0;
2269
2268
  }
2270
- .DateInput_icon-wrapper {
2271
- display: flex;
2272
- align-items: center;
2273
- justify-content: center;
2274
- padding: var(--dds-spacing-x0-25);
2275
- color: var(--dds-color-icon-default);
2269
+ .DateInput_clear-button {
2270
+ align-self: center;
2276
2271
  }
2277
- .DateInput_icon-wrapper--disabled {
2278
- color: var(--dds-color-icon-subtle);
2272
+ .DateInput_clear-button--inactive {
2273
+ visibility: hidden;
2279
2274
  }
2280
- .DateInput_icon-wrapper--readonly {
2281
- color: var(--dds-color-icon-medium);
2275
+ .DateInput_icon,
2276
+ .DateInput_popover-button {
2277
+ margin-block: -3px;
2282
2278
  }
2283
- .DateInput_icon-wrapper--small {
2284
- margin-block: calc(0px - var(--dds-icon-size-medium));
2279
+ .DateInput_icon-wrapper--disabled,
2280
+ .DateInput_popover-button:disabled {
2281
+ color: var(--dds-color-icon-subtle);
2285
2282
  }
2286
- .DateInput_icon-wrapper--medium {
2287
- margin-block: calc(0px - var(--dds-icon-size-small));
2283
+ .DateInput_icon-wrapper--readonly,
2284
+ .DateInput_popover-button--readonly:disabled {
2285
+ color: var(--dds-color-icon-medium);
2288
2286
  }
2289
2287
  .DateInput_popover-button {
2290
- cursor: pointer;
2291
- border: 0;
2292
- transition: 0.2s;
2293
- background: transparent;
2294
- border-radius: var(--dds-border-radius-button);
2295
- &:not(:disabled):not(.DateInput_disabled):hover,
2296
- &:not(:disabled):not(.DateInput_disabled):active {
2297
- background-color: var(--dds-color-surface-hover-default);
2298
- color: var(--dds-color-icon-action-hover);
2299
- }
2300
- &:disabled,
2301
- &.DateInput_disabled {
2302
- cursor: not-allowed;
2303
- outline: none;
2304
- color: var(--dds-color-text-subtle);
2305
- }
2306
- }
2307
- .DateInput_popover-button--readonly:disabled {
2308
- color: var(--dds-color-text-medium);
2288
+ padding: 1px;
2289
+ margin-inline-start: -1px;
2309
2290
  }
2310
2291
  .DateInput_popover {
2311
2292
  z-index: var(--dds-zindex-popover);
@@ -2377,6 +2358,29 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2377
2358
  text-decoration: underline line-through;
2378
2359
  }
2379
2360
 
2361
+ /* src/components/helpers/InlineIconButton/InlineIconButton.module.css */
2362
+ .InlineIconButton_button {
2363
+ display: inline-flex;
2364
+ border-radius: var(--dds-border-radius-button);
2365
+ color: var(--dds-color-icon-default);
2366
+ &:hover:not(:disabled) {
2367
+ background-color: var(--dds-color-surface-hover-default);
2368
+ color: var(--dds-color-icon-action-hover);
2369
+ }
2370
+ &:not(:focus-visible) {
2371
+ outline: none;
2372
+ }
2373
+ &:disabled {
2374
+ cursor: not-allowed;
2375
+ }
2376
+ @media (prefers-reduced-motion: no-preference) {
2377
+ transition:
2378
+ background-color 0.2s,
2379
+ color 0.2s,
2380
+ var(--dds-focus-transition);
2381
+ }
2382
+ }
2383
+
2380
2384
  /* src/components/helpers/Input/Input.module.css */
2381
2385
  .Input_container {
2382
2386
  position: relative;
@@ -2762,23 +2766,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2762
2766
  margin-left: auto;
2763
2767
  }
2764
2768
 
2765
- /* src/components/helpers/InlineIconButton/InlineIconButton.module.css */
2766
- .InlineIconButton_button {
2767
- display: inline-flex;
2768
- border-radius: var(--dds-border-radius-button);
2769
- color: var(--dds-color-icon-default);
2770
- &:hover {
2771
- background-color: var(--dds-color-surface-hover-default);
2772
- color: var(--dds-color-icon-action-hover);
2773
- }
2774
- @media (prefers-reduced-motion: no-preference) {
2775
- transition:
2776
- background-color 0.2s,
2777
- color 0.2s,
2778
- var(--dds-focus-transition);
2779
- }
2780
- }
2781
-
2782
2769
  /* src/components/Tooltip/Tooltip.module.css */
2783
2770
  .Tooltip_container {
2784
2771
  width: -moz-fit-content;