@norges-domstoler/dds-components 21.9.2 → 21.11.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 +54 -66
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +331 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +300 -248
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.css
CHANGED
|
@@ -347,6 +347,9 @@
|
|
|
347
347
|
:where(.typographyStyles_legend) {
|
|
348
348
|
padding-inline: 0;
|
|
349
349
|
}
|
|
350
|
+
:where(.typographyStyles_caption) {
|
|
351
|
+
text-align: left;
|
|
352
|
+
}
|
|
350
353
|
:where(.typographyStyles_caption--withMargins) {
|
|
351
354
|
display: table-caption;
|
|
352
355
|
}
|
|
@@ -2223,20 +2226,17 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2223
2226
|
display: inline-flex;
|
|
2224
2227
|
flex-direction: row;
|
|
2225
2228
|
align-items: center;
|
|
2226
|
-
gap: var(--dds-spacing-x0-
|
|
2227
|
-
}
|
|
2228
|
-
.DateInput_date-input--medium {
|
|
2229
|
-
padding-inline-start: var(--dds-spacing-x0-5);
|
|
2230
|
-
padding-inline-end: var(--dds-spacing-x1);
|
|
2229
|
+
gap: var(--dds-spacing-x0-5);
|
|
2231
2230
|
}
|
|
2232
|
-
.DateInput_date-input--
|
|
2233
|
-
padding-inline-
|
|
2234
|
-
padding-inline-end: var(--dds-spacing-x0-75);
|
|
2231
|
+
.DateInput_date-input--medium--clearable {
|
|
2232
|
+
padding-inline-end: var(--dds-spacing-x0-5);
|
|
2235
2233
|
}
|
|
2236
|
-
.DateInput_date-input--
|
|
2237
|
-
padding-inline-start: var(--dds-spacing-x0-25);
|
|
2234
|
+
.DateInput_date-input--small--clearable {
|
|
2238
2235
|
padding-inline-end: var(--dds-spacing-x0-5);
|
|
2239
2236
|
}
|
|
2237
|
+
.DateInput_date-input--xsmall--clearable {
|
|
2238
|
+
padding-inline-end: var(--dds-spacing-x0-25);
|
|
2239
|
+
}
|
|
2240
2240
|
.DateInput_date-segment-container {
|
|
2241
2241
|
display: flex;
|
|
2242
2242
|
flex-direction: row;
|
|
@@ -2248,6 +2248,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2248
2248
|
width: max-content;
|
|
2249
2249
|
font-variant-numeric: tabular-nums;
|
|
2250
2250
|
outline: none;
|
|
2251
|
+
font-family: var(--dds-font-family-monospace);
|
|
2251
2252
|
&:focus {
|
|
2252
2253
|
background-color: var(--dds-color-surface-action-selected);
|
|
2253
2254
|
color: var(--dds-color-text-on-action);
|
|
@@ -2258,6 +2259,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2258
2259
|
width: 100%;
|
|
2259
2260
|
font-variant-numeric: tabular-nums;
|
|
2260
2261
|
pointer-events: none;
|
|
2262
|
+
font-family: var(--dds-font-family-monospace);
|
|
2261
2263
|
.DateInput_segment:focus & {
|
|
2262
2264
|
color: var(--dds-color-text-on-action);
|
|
2263
2265
|
}
|
|
@@ -2267,45 +2269,27 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2267
2269
|
height: 0;
|
|
2268
2270
|
width: 0;
|
|
2269
2271
|
}
|
|
2270
|
-
.
|
|
2271
|
-
|
|
2272
|
-
align-items: center;
|
|
2273
|
-
justify-content: center;
|
|
2274
|
-
padding: var(--dds-spacing-x0-25);
|
|
2275
|
-
color: var(--dds-color-icon-default);
|
|
2272
|
+
.DateInput_clear-button {
|
|
2273
|
+
align-self: center;
|
|
2276
2274
|
}
|
|
2277
|
-
.
|
|
2278
|
-
|
|
2275
|
+
.DateInput_clear-button--inactive {
|
|
2276
|
+
visibility: hidden;
|
|
2279
2277
|
}
|
|
2280
|
-
.DateInput_icon
|
|
2281
|
-
|
|
2278
|
+
.DateInput_icon,
|
|
2279
|
+
.DateInput_popover-button {
|
|
2280
|
+
margin-block: -3px;
|
|
2282
2281
|
}
|
|
2283
|
-
.DateInput_icon-wrapper--
|
|
2284
|
-
|
|
2282
|
+
.DateInput_icon-wrapper--disabled,
|
|
2283
|
+
.DateInput_popover-button:disabled {
|
|
2284
|
+
color: var(--dds-color-icon-subtle);
|
|
2285
2285
|
}
|
|
2286
|
-
.DateInput_icon-wrapper--
|
|
2287
|
-
|
|
2286
|
+
.DateInput_icon-wrapper--readonly,
|
|
2287
|
+
.DateInput_popover-button--readonly:disabled {
|
|
2288
|
+
color: var(--dds-color-icon-medium);
|
|
2288
2289
|
}
|
|
2289
2290
|
.DateInput_popover-button {
|
|
2290
|
-
|
|
2291
|
-
|
|
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);
|
|
2291
|
+
padding: 1px;
|
|
2292
|
+
margin-inline-start: -1px;
|
|
2309
2293
|
}
|
|
2310
2294
|
.DateInput_popover {
|
|
2311
2295
|
z-index: var(--dds-zindex-popover);
|
|
@@ -2377,6 +2361,29 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2377
2361
|
text-decoration: underline line-through;
|
|
2378
2362
|
}
|
|
2379
2363
|
|
|
2364
|
+
/* src/components/helpers/InlineIconButton/InlineIconButton.module.css */
|
|
2365
|
+
.InlineIconButton_button {
|
|
2366
|
+
display: inline-flex;
|
|
2367
|
+
border-radius: var(--dds-border-radius-button);
|
|
2368
|
+
color: var(--dds-color-icon-default);
|
|
2369
|
+
&:hover:not(:disabled) {
|
|
2370
|
+
background-color: var(--dds-color-surface-hover-default);
|
|
2371
|
+
color: var(--dds-color-icon-action-hover);
|
|
2372
|
+
}
|
|
2373
|
+
&:not(:focus-visible) {
|
|
2374
|
+
outline: none;
|
|
2375
|
+
}
|
|
2376
|
+
&:disabled {
|
|
2377
|
+
cursor: not-allowed;
|
|
2378
|
+
}
|
|
2379
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2380
|
+
transition:
|
|
2381
|
+
background-color 0.2s,
|
|
2382
|
+
color 0.2s,
|
|
2383
|
+
var(--dds-focus-transition);
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2380
2387
|
/* src/components/helpers/Input/Input.module.css */
|
|
2381
2388
|
.Input_container {
|
|
2382
2389
|
position: relative;
|
|
@@ -2493,7 +2500,7 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2493
2500
|
:where(.Input_input-group__absolute-element) {
|
|
2494
2501
|
position: absolute;
|
|
2495
2502
|
top: 50%;
|
|
2496
|
-
transform:
|
|
2503
|
+
transform: translateY(-50%);
|
|
2497
2504
|
z-index: var(--dds-zindex-absolute-element);
|
|
2498
2505
|
color: var(--dds-color-icon-default);
|
|
2499
2506
|
}
|
|
@@ -2762,23 +2769,6 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2762
2769
|
margin-left: auto;
|
|
2763
2770
|
}
|
|
2764
2771
|
|
|
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
2772
|
/* src/components/Tooltip/Tooltip.module.css */
|
|
2783
2773
|
.Tooltip_container {
|
|
2784
2774
|
width: -moz-fit-content;
|
|
@@ -3334,17 +3324,15 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
3334
3324
|
padding-right: var(--dds-spacing-x4);
|
|
3335
3325
|
}
|
|
3336
3326
|
.NativeSelect_icon {
|
|
3337
|
-
|
|
3338
|
-
top: 50%;
|
|
3339
|
-
transform: translate(-150%, -50%);
|
|
3327
|
+
right: var(--dds-spacing-x0-5);
|
|
3340
3328
|
align-self: center;
|
|
3341
3329
|
pointer-events: none;
|
|
3342
3330
|
}
|
|
3343
3331
|
.NativeSelect_clear-button--small {
|
|
3344
|
-
right: calc(var(--dds-spacing-x0-
|
|
3332
|
+
right: calc(var(--dds-spacing-x0-5) + var(--dds-icon-size-small));
|
|
3345
3333
|
}
|
|
3346
3334
|
.NativeSelect_clear-button--medium {
|
|
3347
|
-
right: calc(var(--dds-spacing-x0-
|
|
3335
|
+
right: calc(var(--dds-spacing-x0-5) + var(--dds-icon-size-medium));
|
|
3348
3336
|
}
|
|
3349
3337
|
|
|
3350
3338
|
/* src/components/PhoneInput/PhoneInput.module.css */
|