@norges-domstoler/dds-components 21.2.1 → 21.3.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 +63 -33
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +96 -55
- package/dist/index.d.ts +96 -55
- package/dist/index.js +2051 -1853
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1240 -1042
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.css
CHANGED
|
@@ -1933,7 +1933,10 @@
|
|
|
1933
1933
|
border: 1px solid;
|
|
1934
1934
|
border-radius: var(--dds-border-radius-surface);
|
|
1935
1935
|
@media (prefers-reduced-motion: no-preference) {
|
|
1936
|
-
transition:
|
|
1936
|
+
transition:
|
|
1937
|
+
box-shadow 0.2s,
|
|
1938
|
+
border-color 0.2s,
|
|
1939
|
+
var(--dds-focus-transition);
|
|
1937
1940
|
}
|
|
1938
1941
|
}
|
|
1939
1942
|
.Card_container--filled {
|
|
@@ -1944,14 +1947,46 @@
|
|
|
1944
1947
|
background-color: var(--dds-color-surface-default);
|
|
1945
1948
|
border-color: var(--dds-color-border-subtle);
|
|
1946
1949
|
}
|
|
1947
|
-
.Card_container--navigation
|
|
1948
|
-
|
|
1950
|
+
.Card_container--navigation,
|
|
1951
|
+
.Card_container--selection-control:not(.Card_container--selection-control--disabled):not(.Card_container--selection-control--readonly) {
|
|
1949
1952
|
display: block;
|
|
1950
1953
|
&:hover {
|
|
1951
1954
|
border-color: var(--dds-color-border-action-hover);
|
|
1952
1955
|
box-shadow: inset 0 0 0 1px var(--dds-color-border-action-hover);
|
|
1953
1956
|
}
|
|
1954
1957
|
}
|
|
1958
|
+
.Card_container--selection-control {
|
|
1959
|
+
padding: var(--dds-selection-control-card-padding);
|
|
1960
|
+
display: block;
|
|
1961
|
+
width: 100%;
|
|
1962
|
+
height: 100%;
|
|
1963
|
+
& > span {
|
|
1964
|
+
left: var(--dds-selection-control-card-control-left);
|
|
1965
|
+
top: var(--dds-selection-control-card-control-top);
|
|
1966
|
+
&:focus-visible {
|
|
1967
|
+
outline: none;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
&:has(input:checked) {
|
|
1971
|
+
border-color: var(--dds-color-surface-action-selected);
|
|
1972
|
+
box-shadow: inset 0 0 0 1px var(--dds-color-surface-action-selected);
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
.Card_container--selection-control--error {
|
|
1976
|
+
border-color: var(--dds-color-border-danger);
|
|
1977
|
+
box-shadow: 0 0 0 1px var(--dds-color-border-danger);
|
|
1978
|
+
}
|
|
1979
|
+
.Card_container--selection-control--disabled {
|
|
1980
|
+
background-color: var(--dds-color-surface-field-disabled);
|
|
1981
|
+
border-color: var(--dds-color-surface-field-disabled);
|
|
1982
|
+
}
|
|
1983
|
+
.Card_container--selection-control--readonly {
|
|
1984
|
+
background-color: var(--dds-color-surface-field-disabled);
|
|
1985
|
+
border-color: var(--dds-color-surface-field-disabled);
|
|
1986
|
+
}
|
|
1987
|
+
.Card_container--navigation {
|
|
1988
|
+
text-decoration: none;
|
|
1989
|
+
}
|
|
1955
1990
|
.Card_container--expandable {
|
|
1956
1991
|
width: 100%;
|
|
1957
1992
|
box-sizing: border-box;
|
|
@@ -1989,23 +2024,6 @@
|
|
|
1989
2024
|
padding: var(--dds-card-accordion-body-content-padding);
|
|
1990
2025
|
}
|
|
1991
2026
|
|
|
1992
|
-
/* src/components/Chip/Chip.module.css */
|
|
1993
|
-
.Chip_container {
|
|
1994
|
-
display: inline-flex;
|
|
1995
|
-
align-items: center;
|
|
1996
|
-
max-width: 100%;
|
|
1997
|
-
gap: var(--dds-spacing-x0-25);
|
|
1998
|
-
padding: var(--dds-spacing-x0-125) var(--dds-spacing-x0-25) var(--dds-spacing-x0-125) var(--dds-spacing-x0-5);
|
|
1999
|
-
border: 1px solid var(--dds-color-border-subtle);
|
|
2000
|
-
border-radius: var(--dds-border-radius-chip);
|
|
2001
|
-
background-color: var(--dds-color-surface-subtle);
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
/* src/components/Contrast/Contrast.module.css */
|
|
2005
|
-
:where(.Contrast_container) {
|
|
2006
|
-
background-color: var(--dds-color-surface-inverse-default);
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
2027
|
/* src/components/SelectionControl/SelectionControl.module.css */
|
|
2010
2028
|
.SelectionControl_container {
|
|
2011
2029
|
display: flex;
|
|
@@ -2095,7 +2113,7 @@
|
|
|
2095
2113
|
.SelectionControl_label--disabled {
|
|
2096
2114
|
cursor: not-allowed;
|
|
2097
2115
|
input:disabled ~ .SelectionControl_selection-control {
|
|
2098
|
-
border-color: var(--dds-color-border-
|
|
2116
|
+
border-color: var(--dds-color-border-subtle);
|
|
2099
2117
|
}
|
|
2100
2118
|
input:checked:disabled ~ .SelectionControl_selection-control,
|
|
2101
2119
|
input:disabled[data-indeterminate=true] ~ .SelectionControl_selection-control {
|
|
@@ -2174,9 +2192,26 @@
|
|
|
2174
2192
|
margin-top: calc((var(--dds-font-lineheight-x1) * 1em - var(--dds-icon-size-small)) / 2 - 1px);
|
|
2175
2193
|
}
|
|
2176
2194
|
|
|
2195
|
+
/* src/components/Chip/Chip.module.css */
|
|
2196
|
+
.Chip_container {
|
|
2197
|
+
display: inline-flex;
|
|
2198
|
+
align-items: center;
|
|
2199
|
+
max-width: 100%;
|
|
2200
|
+
gap: var(--dds-spacing-x0-25);
|
|
2201
|
+
padding: var(--dds-spacing-x0-125) var(--dds-spacing-x0-25) var(--dds-spacing-x0-125) var(--dds-spacing-x0-5);
|
|
2202
|
+
border: 1px solid var(--dds-color-border-subtle);
|
|
2203
|
+
border-radius: var(--dds-border-radius-chip);
|
|
2204
|
+
background-color: var(--dds-color-surface-subtle);
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
/* src/components/Contrast/Contrast.module.css */
|
|
2208
|
+
:where(.Contrast_container) {
|
|
2209
|
+
background-color: var(--dds-color-surface-inverse-default);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2177
2212
|
/* src/components/CookieBanner/CookieBanner.module.css */
|
|
2178
2213
|
.CookieBanner_checkbox-label {
|
|
2179
|
-
padding: 0 0 0 calc(
|
|
2214
|
+
padding: 0 0 0 calc(var(--dds-selection-control-height) + var(--dds-spacing-x0-5));
|
|
2180
2215
|
align-items: flex-start;
|
|
2181
2216
|
& > span {
|
|
2182
2217
|
top: calc((var(--dds-font-lineheight-x1) * 1em - var(--dds-icon-size-small)) / 2 - 1px);
|
|
@@ -2258,7 +2293,6 @@
|
|
|
2258
2293
|
transition: 0.2s;
|
|
2259
2294
|
background: transparent;
|
|
2260
2295
|
border-radius: var(--dds-border-radius-button);
|
|
2261
|
-
color: var(--dds-color-icon-default);
|
|
2262
2296
|
&:not(:disabled):not(.DateInput_disabled):hover,
|
|
2263
2297
|
&:not(:disabled):not(.DateInput_disabled):active {
|
|
2264
2298
|
background-color: var(--dds-color-surface-hover-default);
|
|
@@ -2284,13 +2318,8 @@
|
|
|
2284
2318
|
.DateInput_calendar {
|
|
2285
2319
|
display: flex;
|
|
2286
2320
|
flex-direction: column;
|
|
2287
|
-
gap:
|
|
2288
|
-
height:
|
|
2289
|
-
}
|
|
2290
|
-
.DateInput_calendar__header {
|
|
2291
|
-
display: flex;
|
|
2292
|
-
justify-content: space-between;
|
|
2293
|
-
align-items: center;
|
|
2321
|
+
gap: var(--dds-spacing-x0-25);
|
|
2322
|
+
height: 337px;
|
|
2294
2323
|
}
|
|
2295
2324
|
.DateInput_calendar__header__month {
|
|
2296
2325
|
text-transform: capitalize;
|
|
@@ -2300,16 +2329,16 @@
|
|
|
2300
2329
|
-moz-user-select: none;
|
|
2301
2330
|
user-select: none;
|
|
2302
2331
|
}
|
|
2303
|
-
.
|
|
2332
|
+
.DateInput_calendar__grid-element {
|
|
2304
2333
|
width: 40px;
|
|
2305
2334
|
height: 40px;
|
|
2335
|
+
}
|
|
2336
|
+
.DateInput_calendar__week-number {
|
|
2306
2337
|
display: flex;
|
|
2307
2338
|
align-items: center;
|
|
2308
2339
|
justify-content: center;
|
|
2309
2340
|
}
|
|
2310
2341
|
.DateInput_calendar__cell-button {
|
|
2311
|
-
width: 40px;
|
|
2312
|
-
height: 40px;
|
|
2313
2342
|
display: flex;
|
|
2314
2343
|
align-items: center;
|
|
2315
2344
|
justify-content: center;
|
|
@@ -2366,6 +2395,7 @@
|
|
|
2366
2395
|
--dds-focus-transition: outline-offset 0.2s;
|
|
2367
2396
|
--dds-input-default-width: 320px;
|
|
2368
2397
|
--dds-input-default-width-xsmall: 210px;
|
|
2398
|
+
--dds-selection-control-height: 18px;
|
|
2369
2399
|
--dds-transition-duration-surface-move: 0.5s;
|
|
2370
2400
|
}
|
|
2371
2401
|
.ThemeProvider_global-styles {
|