@norges-domstoler/dds-design-tokens 9.1.0 → 9.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/README.md +12 -12
- package/dist/cjs/generated-tokens/js/core-dark/ddsTokens.d.ts +10 -1
- package/dist/cjs/generated-tokens/js/core-light/ddsTokens.d.ts +10 -1
- package/dist/cjs/generated-tokens/js/public-dark/ddsTokens.d.ts +10 -1
- package/dist/cjs/generated-tokens/js/public-light/ddsTokens.d.ts +10 -1
- package/dist/cjs/index.js +80 -8
- package/dist/cjs/src/index.d.ts +40 -4
- package/dist/css/ddsTokens-core-dark.css +5 -1
- package/dist/css/ddsTokens-core-light.css +5 -1
- package/dist/css/ddsTokens-public-dark.css +5 -1
- package/dist/css/ddsTokens-public-light.css +5 -1
- package/dist/generated-tokens/js/core-dark/ddsTokens.d.ts +10 -1
- package/dist/generated-tokens/js/core-dark/ddsTokens.js +11 -2
- package/dist/generated-tokens/js/core-light/ddsTokens.d.ts +10 -1
- package/dist/generated-tokens/js/core-light/ddsTokens.js +11 -2
- package/dist/generated-tokens/js/public-dark/ddsTokens.d.ts +10 -1
- package/dist/generated-tokens/js/public-dark/ddsTokens.js +11 -2
- package/dist/generated-tokens/js/public-light/ddsTokens.d.ts +10 -1
- package/dist/generated-tokens/js/public-light/ddsTokens.js +11 -2
- package/dist/scss/_ddsTokens.scss +6 -2
- package/dist/src/index.d.ts +40 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Biblioteket inneholder design tokens brukt i [Elsa - domstolenes designsystem](https://design.domstol.no/): farger, typografi, osv. Design tokens kan brukes i domstolenes tjenester i bl.a. global styling og custom elementer. Ellers er det obligatorisk å bruke komponentbiblioteket [dds-components](https://www.npmjs.com/package/@norges-domstoler/dds-components) i domstolenes applikasjoner.
|
|
6
6
|
|
|
7
|
-
Design tokens kommer i
|
|
7
|
+
Design tokens kommer i flere temaer. Valg av tema styres med `<DdsProvider>` komponent som ligger i `dds-components`.
|
|
8
8
|
|
|
9
9
|
## 🔍 Oversikt
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ pnpm add @norges-domstoler/dds-design-tokens
|
|
|
26
26
|
|
|
27
27
|
## 🔨 Bruk
|
|
28
28
|
|
|
29
|
-
Design tokens er eksportert som JS-konstanter, CSS-variabler og SCSS-variabler. De brukes i kombinasjon med `<
|
|
29
|
+
Design tokens er eksportert som JS-konstanter, CSS-variabler og SCSS-variabler. De brukes i kombinasjon med `<DdsProvider>` komponent fra `@norges-domstoler/dds-components` biblioteket for å sette riktig tema. CSS-variabler brukes direkte fra `@norges-domstoler/dds-components` - se [README](https://github.com/domstolene/designsystem/blob/main/packages/components/README.md).
|
|
30
30
|
|
|
31
31
|
### CSS
|
|
32
32
|
|
|
@@ -42,16 +42,16 @@ Design tokens er eksportert som JS-konstanter, CSS-variabler og SCSS-variabler.
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
```
|
|
46
|
-
import {
|
|
45
|
+
```jsx
|
|
46
|
+
import { DdsProvider } from '@norges-domstoler/dds-components';
|
|
47
47
|
import './styles.css';
|
|
48
48
|
|
|
49
49
|
const Panel = <div className="panel"> tekst </div>;
|
|
50
50
|
|
|
51
51
|
const App = () => (
|
|
52
|
-
<
|
|
52
|
+
<DdsProvider>
|
|
53
53
|
<Panel />;
|
|
54
|
-
</
|
|
54
|
+
</DdsProvider>
|
|
55
55
|
);
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -60,7 +60,7 @@ const App = () => (
|
|
|
60
60
|
```js
|
|
61
61
|
import * as React from 'react';
|
|
62
62
|
import { ddsTokens } from '@norges-domstoler/dds-design-tokens';
|
|
63
|
-
import {
|
|
63
|
+
import { DdsProvider, useTheme } from '@norges-domstoler/dds-components';
|
|
64
64
|
|
|
65
65
|
const { theme } = useTheme();
|
|
66
66
|
|
|
@@ -70,9 +70,9 @@ const style = {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
const App = () => (
|
|
73
|
-
<
|
|
73
|
+
<DdsProvider>
|
|
74
74
|
<div style={style}>Tekst</div>;
|
|
75
|
-
</
|
|
75
|
+
</DdsProvider>
|
|
76
76
|
);
|
|
77
77
|
```
|
|
78
78
|
|
|
@@ -91,14 +91,14 @@ SCSS-variabler refererer til CSS-variabler; theming skjer dermed utenfor SCSS. D
|
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
```js
|
|
94
|
-
import {
|
|
94
|
+
import { DdsProvider } from '@norges-domstoler/dds-components';
|
|
95
95
|
import './_styles.scss';
|
|
96
96
|
|
|
97
97
|
const Panel = <div className="panel"> tekst </div>;
|
|
98
98
|
|
|
99
99
|
const App = () => (
|
|
100
|
-
<
|
|
100
|
+
<DdsProvider>
|
|
101
101
|
<Panel />;
|
|
102
|
-
</
|
|
102
|
+
</DdsProvider>
|
|
103
103
|
);
|
|
104
104
|
```
|
|
@@ -29,7 +29,6 @@ export declare const ddsFontWeightBold = "600";
|
|
|
29
29
|
export declare const ddsFontLineheightX1 = 1.5;
|
|
30
30
|
export declare const ddsFontLineheightX3 = 1.2;
|
|
31
31
|
export declare const ddsFontLineheightX2 = 1.3;
|
|
32
|
-
export declare const ddsFontLineheightList = 2;
|
|
33
32
|
export declare const ddsFontLetterSpacingTight = "-0.01em";
|
|
34
33
|
export declare const ddsFontLetterSpacingNormal = "0em";
|
|
35
34
|
export declare const ddsFontLetterSpacingLoose = "0.01em";
|
|
@@ -39,6 +38,8 @@ export declare const ddsFontParagraphSpacingMedium = "0.66em";
|
|
|
39
38
|
export declare const ddsFontParagraphSpacingMediumNumberEm = 0.66;
|
|
40
39
|
export declare const ddsFontParagraphSpacingLarge = "0.5em";
|
|
41
40
|
export declare const ddsFontParagraphSpacingLargeNumberEm = 0.5;
|
|
41
|
+
export declare const ddsFontParagraphSpacingList = "0.5em";
|
|
42
|
+
export declare const ddsFontParagraphSpacingListNumberEm = 0.5;
|
|
42
43
|
export declare const ddsFontParagraphSpacingHeading = "0.4em";
|
|
43
44
|
export declare const ddsFontParagraphSpacingHeadingNumberEm = 0.4;
|
|
44
45
|
export declare const ddsFontStyleUnderline = "underline";
|
|
@@ -425,3 +426,11 @@ export declare const ddsFontBodyShortSmallParagraphSpacingNumberEm = 1;
|
|
|
425
426
|
export declare const ddsFontBodyShortXsmallLetterSpacing = "0.01em";
|
|
426
427
|
export declare const ddsFontBodyShortXsmallParagraphSpacing = "1em";
|
|
427
428
|
export declare const ddsFontBodyShortXsmallParagraphSpacingNumberEm = 1;
|
|
429
|
+
export declare const ddsSizeHeightInputLarge = "3.625rem";
|
|
430
|
+
export declare const ddsSizeHeightInputLargeNumberRem = 3.625;
|
|
431
|
+
export declare const ddsSizeHeightInputMedium = "3rem";
|
|
432
|
+
export declare const ddsSizeHeightInputMediumNumberRem = 3;
|
|
433
|
+
export declare const ddsSizeHeightInputSmall = "2.187rem";
|
|
434
|
+
export declare const ddsSizeHeightInputSmallNumberRem = 2.187;
|
|
435
|
+
export declare const ddsSizeHeightInputXsmall = "1.5625rem";
|
|
436
|
+
export declare const ddsSizeHeightInputXsmallNumberRem = 1.5625;
|
|
@@ -29,7 +29,6 @@ export declare const ddsFontWeightBold = "600";
|
|
|
29
29
|
export declare const ddsFontLineheightX1 = 1.5;
|
|
30
30
|
export declare const ddsFontLineheightX3 = 1.2;
|
|
31
31
|
export declare const ddsFontLineheightX2 = 1.3;
|
|
32
|
-
export declare const ddsFontLineheightList = 2;
|
|
33
32
|
export declare const ddsFontLetterSpacingTight = "-0.01em";
|
|
34
33
|
export declare const ddsFontLetterSpacingNormal = "0em";
|
|
35
34
|
export declare const ddsFontLetterSpacingLoose = "0.01em";
|
|
@@ -39,6 +38,8 @@ export declare const ddsFontParagraphSpacingMedium = "0.66em";
|
|
|
39
38
|
export declare const ddsFontParagraphSpacingMediumNumberEm = 0.66;
|
|
40
39
|
export declare const ddsFontParagraphSpacingLarge = "0.5em";
|
|
41
40
|
export declare const ddsFontParagraphSpacingLargeNumberEm = 0.5;
|
|
41
|
+
export declare const ddsFontParagraphSpacingList = "0.5em";
|
|
42
|
+
export declare const ddsFontParagraphSpacingListNumberEm = 0.5;
|
|
42
43
|
export declare const ddsFontParagraphSpacingHeading = "0.4em";
|
|
43
44
|
export declare const ddsFontParagraphSpacingHeadingNumberEm = 0.4;
|
|
44
45
|
export declare const ddsFontStyleUnderline = "underline";
|
|
@@ -425,3 +426,11 @@ export declare const ddsFontBodyShortSmallParagraphSpacingNumberEm = 1;
|
|
|
425
426
|
export declare const ddsFontBodyShortXsmallLetterSpacing = "0.01em";
|
|
426
427
|
export declare const ddsFontBodyShortXsmallParagraphSpacing = "1em";
|
|
427
428
|
export declare const ddsFontBodyShortXsmallParagraphSpacingNumberEm = 1;
|
|
429
|
+
export declare const ddsSizeHeightInputLarge = "3.625rem";
|
|
430
|
+
export declare const ddsSizeHeightInputLargeNumberRem = 3.625;
|
|
431
|
+
export declare const ddsSizeHeightInputMedium = "3rem";
|
|
432
|
+
export declare const ddsSizeHeightInputMediumNumberRem = 3;
|
|
433
|
+
export declare const ddsSizeHeightInputSmall = "2.187rem";
|
|
434
|
+
export declare const ddsSizeHeightInputSmallNumberRem = 2.187;
|
|
435
|
+
export declare const ddsSizeHeightInputXsmall = "1.5625rem";
|
|
436
|
+
export declare const ddsSizeHeightInputXsmallNumberRem = 1.5625;
|
|
@@ -29,7 +29,6 @@ export declare const ddsFontWeightBold = "600";
|
|
|
29
29
|
export declare const ddsFontLineheightX1 = 1.5;
|
|
30
30
|
export declare const ddsFontLineheightX3 = 1.2;
|
|
31
31
|
export declare const ddsFontLineheightX2 = 1.3;
|
|
32
|
-
export declare const ddsFontLineheightList = 2;
|
|
33
32
|
export declare const ddsFontLetterSpacingTight = "-0.01em";
|
|
34
33
|
export declare const ddsFontLetterSpacingNormal = "0em";
|
|
35
34
|
export declare const ddsFontLetterSpacingLoose = "0.01em";
|
|
@@ -39,6 +38,8 @@ export declare const ddsFontParagraphSpacingMedium = "0.66em";
|
|
|
39
38
|
export declare const ddsFontParagraphSpacingMediumNumberEm = 0.66;
|
|
40
39
|
export declare const ddsFontParagraphSpacingLarge = "0.5em";
|
|
41
40
|
export declare const ddsFontParagraphSpacingLargeNumberEm = 0.5;
|
|
41
|
+
export declare const ddsFontParagraphSpacingList = "0.5em";
|
|
42
|
+
export declare const ddsFontParagraphSpacingListNumberEm = 0.5;
|
|
42
43
|
export declare const ddsFontParagraphSpacingHeading = "0.4em";
|
|
43
44
|
export declare const ddsFontParagraphSpacingHeadingNumberEm = 0.4;
|
|
44
45
|
export declare const ddsFontStyleUnderline = "underline";
|
|
@@ -425,3 +426,11 @@ export declare const ddsFontBodyShortSmallParagraphSpacingNumberEm = 1;
|
|
|
425
426
|
export declare const ddsFontBodyShortXsmallLetterSpacing = "0.01em";
|
|
426
427
|
export declare const ddsFontBodyShortXsmallParagraphSpacing = "1em";
|
|
427
428
|
export declare const ddsFontBodyShortXsmallParagraphSpacingNumberEm = 1;
|
|
429
|
+
export declare const ddsSizeHeightInputLarge = "3.8125rem";
|
|
430
|
+
export declare const ddsSizeHeightInputLargeNumberRem = 3.8125;
|
|
431
|
+
export declare const ddsSizeHeightInputMedium = "3.125rem";
|
|
432
|
+
export declare const ddsSizeHeightInputMediumNumberRem = 3.125;
|
|
433
|
+
export declare const ddsSizeHeightInputSmall = "2.5rem";
|
|
434
|
+
export declare const ddsSizeHeightInputSmallNumberRem = 2.5;
|
|
435
|
+
export declare const ddsSizeHeightInputXsmall = "1.8125rem";
|
|
436
|
+
export declare const ddsSizeHeightInputXsmallNumberRem = 1.8125;
|
|
@@ -29,7 +29,6 @@ export declare const ddsFontWeightBold = "600";
|
|
|
29
29
|
export declare const ddsFontLineheightX1 = 1.5;
|
|
30
30
|
export declare const ddsFontLineheightX3 = 1.2;
|
|
31
31
|
export declare const ddsFontLineheightX2 = 1.3;
|
|
32
|
-
export declare const ddsFontLineheightList = 2;
|
|
33
32
|
export declare const ddsFontLetterSpacingTight = "-0.01em";
|
|
34
33
|
export declare const ddsFontLetterSpacingNormal = "0em";
|
|
35
34
|
export declare const ddsFontLetterSpacingLoose = "0.01em";
|
|
@@ -39,6 +38,8 @@ export declare const ddsFontParagraphSpacingMedium = "0.66em";
|
|
|
39
38
|
export declare const ddsFontParagraphSpacingMediumNumberEm = 0.66;
|
|
40
39
|
export declare const ddsFontParagraphSpacingLarge = "0.5em";
|
|
41
40
|
export declare const ddsFontParagraphSpacingLargeNumberEm = 0.5;
|
|
41
|
+
export declare const ddsFontParagraphSpacingList = "0.5em";
|
|
42
|
+
export declare const ddsFontParagraphSpacingListNumberEm = 0.5;
|
|
42
43
|
export declare const ddsFontParagraphSpacingHeading = "0.4em";
|
|
43
44
|
export declare const ddsFontParagraphSpacingHeadingNumberEm = 0.4;
|
|
44
45
|
export declare const ddsFontStyleUnderline = "underline";
|
|
@@ -425,3 +426,11 @@ export declare const ddsFontBodyShortSmallParagraphSpacingNumberEm = 1;
|
|
|
425
426
|
export declare const ddsFontBodyShortXsmallLetterSpacing = "0.01em";
|
|
426
427
|
export declare const ddsFontBodyShortXsmallParagraphSpacing = "1em";
|
|
427
428
|
export declare const ddsFontBodyShortXsmallParagraphSpacingNumberEm = 1;
|
|
429
|
+
export declare const ddsSizeHeightInputLarge = "3.8125rem";
|
|
430
|
+
export declare const ddsSizeHeightInputLargeNumberRem = 3.8125;
|
|
431
|
+
export declare const ddsSizeHeightInputMedium = "3.125rem";
|
|
432
|
+
export declare const ddsSizeHeightInputMediumNumberRem = 3.125;
|
|
433
|
+
export declare const ddsSizeHeightInputSmall = "2.5rem";
|
|
434
|
+
export declare const ddsSizeHeightInputSmallNumberRem = 2.5;
|
|
435
|
+
export declare const ddsSizeHeightInputXsmall = "1.8125rem";
|
|
436
|
+
export declare const ddsSizeHeightInputXsmallNumberRem = 1.8125;
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,7 +32,6 @@ const ddsFontWeightBold$3 = "600";
|
|
|
32
32
|
const ddsFontLineheightX1$3 = 1.5; // Brukes på mengetekst og artikler
|
|
33
33
|
const ddsFontLineheightX3$3 = 1.2;
|
|
34
34
|
const ddsFontLineheightX2$3 = 1.3; // Brukes i komponenter og overskrifter
|
|
35
|
-
const ddsFontLineheightList$3 = 2; // Brukes på lister
|
|
36
35
|
const ddsFontLetterSpacingTight$3 = "-0.01em"; // Brukes på str ×2.5 og større
|
|
37
36
|
const ddsFontLetterSpacingNormal$3 = "0em"; // Brukes på str ×1 og opp til og med ×2
|
|
38
37
|
const ddsFontLetterSpacingLoose$3 = "0.01em"; // Brukes på størrelser under ×1
|
|
@@ -42,6 +41,8 @@ const ddsFontParagraphSpacingMedium$3 = "0.66em";
|
|
|
42
41
|
const ddsFontParagraphSpacingMediumNumberEm$3 = 0.66; // Brukes på str x1.5, ×2 og ×3
|
|
43
42
|
const ddsFontParagraphSpacingLarge$3 = "0.5em";
|
|
44
43
|
const ddsFontParagraphSpacingLargeNumberEm$3 = 0.5; // Brukes på str ×3 og større
|
|
44
|
+
const ddsFontParagraphSpacingList$3 = "0.5em";
|
|
45
|
+
const ddsFontParagraphSpacingListNumberEm$3 = 0.5; // Brukes mellom kulepunkter i lister
|
|
45
46
|
const ddsFontParagraphSpacingHeading$3 = "0.4em";
|
|
46
47
|
const ddsFontParagraphSpacingHeadingNumberEm$3 = 0.4; // Brukes på på alle headere (bottom)
|
|
47
48
|
const ddsFontStyleUnderline$3 = "underline";
|
|
@@ -428,6 +429,14 @@ const ddsFontBodyShortSmallParagraphSpacingNumberEm$3 = 1;
|
|
|
428
429
|
const ddsFontBodyShortXsmallLetterSpacing$3 = "0.01em";
|
|
429
430
|
const ddsFontBodyShortXsmallParagraphSpacing$3 = "1em";
|
|
430
431
|
const ddsFontBodyShortXsmallParagraphSpacingNumberEm$3 = 1;
|
|
432
|
+
const ddsSizeHeightInputLarge$3 = "3.625rem";
|
|
433
|
+
const ddsSizeHeightInputLargeNumberRem$3 = 3.625; // Brukes i input og buttons
|
|
434
|
+
const ddsSizeHeightInputMedium$3 = "3rem";
|
|
435
|
+
const ddsSizeHeightInputMediumNumberRem$3 = 3; // Brukes i input og buttons
|
|
436
|
+
const ddsSizeHeightInputSmall$3 = "2.187rem";
|
|
437
|
+
const ddsSizeHeightInputSmallNumberRem$3 = 2.187; // Brukes i input og buttons
|
|
438
|
+
const ddsSizeHeightInputXsmall$3 = "1.5625rem";
|
|
439
|
+
const ddsSizeHeightInputXsmallNumberRem$3 = 1.5625; // Brukes i input og buttons
|
|
431
440
|
|
|
432
441
|
var ddsTokensCoreLight = /*#__PURE__*/Object.freeze({
|
|
433
442
|
__proto__: null,
|
|
@@ -749,7 +758,6 @@ var ddsTokensCoreLight = /*#__PURE__*/Object.freeze({
|
|
|
749
758
|
ddsFontLetterSpacingLoose: ddsFontLetterSpacingLoose$3,
|
|
750
759
|
ddsFontLetterSpacingNormal: ddsFontLetterSpacingNormal$3,
|
|
751
760
|
ddsFontLetterSpacingTight: ddsFontLetterSpacingTight$3,
|
|
752
|
-
ddsFontLineheightList: ddsFontLineheightList$3,
|
|
753
761
|
ddsFontLineheightX1: ddsFontLineheightX1$3,
|
|
754
762
|
ddsFontLineheightX2: ddsFontLineheightX2$3,
|
|
755
763
|
ddsFontLineheightX3: ddsFontLineheightX3$3,
|
|
@@ -757,6 +765,8 @@ var ddsTokensCoreLight = /*#__PURE__*/Object.freeze({
|
|
|
757
765
|
ddsFontParagraphSpacingHeadingNumberEm: ddsFontParagraphSpacingHeadingNumberEm$3,
|
|
758
766
|
ddsFontParagraphSpacingLarge: ddsFontParagraphSpacingLarge$3,
|
|
759
767
|
ddsFontParagraphSpacingLargeNumberEm: ddsFontParagraphSpacingLargeNumberEm$3,
|
|
768
|
+
ddsFontParagraphSpacingList: ddsFontParagraphSpacingList$3,
|
|
769
|
+
ddsFontParagraphSpacingListNumberEm: ddsFontParagraphSpacingListNumberEm$3,
|
|
760
770
|
ddsFontParagraphSpacingMedium: ddsFontParagraphSpacingMedium$3,
|
|
761
771
|
ddsFontParagraphSpacingMediumNumberEm: ddsFontParagraphSpacingMediumNumberEm$3,
|
|
762
772
|
ddsFontParagraphSpacingSmall: ddsFontParagraphSpacingSmall$3,
|
|
@@ -812,6 +822,14 @@ var ddsTokensCoreLight = /*#__PURE__*/Object.freeze({
|
|
|
812
822
|
ddsShadowLarge: ddsShadowLarge$3,
|
|
813
823
|
ddsShadowMedium: ddsShadowMedium$3,
|
|
814
824
|
ddsShadowSmall: ddsShadowSmall$3,
|
|
825
|
+
ddsSizeHeightInputLarge: ddsSizeHeightInputLarge$3,
|
|
826
|
+
ddsSizeHeightInputLargeNumberRem: ddsSizeHeightInputLargeNumberRem$3,
|
|
827
|
+
ddsSizeHeightInputMedium: ddsSizeHeightInputMedium$3,
|
|
828
|
+
ddsSizeHeightInputMediumNumberRem: ddsSizeHeightInputMediumNumberRem$3,
|
|
829
|
+
ddsSizeHeightInputSmall: ddsSizeHeightInputSmall$3,
|
|
830
|
+
ddsSizeHeightInputSmallNumberRem: ddsSizeHeightInputSmallNumberRem$3,
|
|
831
|
+
ddsSizeHeightInputXsmall: ddsSizeHeightInputXsmall$3,
|
|
832
|
+
ddsSizeHeightInputXsmallNumberRem: ddsSizeHeightInputXsmallNumberRem$3,
|
|
815
833
|
ddsSizeIconComponent: ddsSizeIconComponent$3,
|
|
816
834
|
ddsSizeIconComponentNumberEm: ddsSizeIconComponentNumberEm$3,
|
|
817
835
|
ddsSizeIconLarge: ddsSizeIconLarge$3,
|
|
@@ -892,7 +910,6 @@ const ddsFontWeightBold$2 = "600";
|
|
|
892
910
|
const ddsFontLineheightX1$2 = 1.5; // Brukes på mengetekst og artikler
|
|
893
911
|
const ddsFontLineheightX3$2 = 1.2;
|
|
894
912
|
const ddsFontLineheightX2$2 = 1.3; // Brukes i komponenter og overskrifter
|
|
895
|
-
const ddsFontLineheightList$2 = 2; // Brukes på lister
|
|
896
913
|
const ddsFontLetterSpacingTight$2 = "-0.01em"; // Brukes på str ×2.5 og større
|
|
897
914
|
const ddsFontLetterSpacingNormal$2 = "0em"; // Brukes på str ×1 og opp til og med ×2
|
|
898
915
|
const ddsFontLetterSpacingLoose$2 = "0.01em"; // Brukes på størrelser under ×1
|
|
@@ -902,6 +919,8 @@ const ddsFontParagraphSpacingMedium$2 = "0.66em";
|
|
|
902
919
|
const ddsFontParagraphSpacingMediumNumberEm$2 = 0.66; // Brukes på str x1.5, ×2 og ×3
|
|
903
920
|
const ddsFontParagraphSpacingLarge$2 = "0.5em";
|
|
904
921
|
const ddsFontParagraphSpacingLargeNumberEm$2 = 0.5; // Brukes på str ×3 og større
|
|
922
|
+
const ddsFontParagraphSpacingList$2 = "0.5em";
|
|
923
|
+
const ddsFontParagraphSpacingListNumberEm$2 = 0.5; // Brukes mellom kulepunkter i lister
|
|
905
924
|
const ddsFontParagraphSpacingHeading$2 = "0.4em";
|
|
906
925
|
const ddsFontParagraphSpacingHeadingNumberEm$2 = 0.4; // Brukes på på alle headere (bottom)
|
|
907
926
|
const ddsFontStyleUnderline$2 = "underline";
|
|
@@ -1288,6 +1307,14 @@ const ddsFontBodyShortSmallParagraphSpacingNumberEm$2 = 1;
|
|
|
1288
1307
|
const ddsFontBodyShortXsmallLetterSpacing$2 = "0.01em";
|
|
1289
1308
|
const ddsFontBodyShortXsmallParagraphSpacing$2 = "1em";
|
|
1290
1309
|
const ddsFontBodyShortXsmallParagraphSpacingNumberEm$2 = 1;
|
|
1310
|
+
const ddsSizeHeightInputLarge$2 = "3.625rem";
|
|
1311
|
+
const ddsSizeHeightInputLargeNumberRem$2 = 3.625; // Brukes i input og buttons
|
|
1312
|
+
const ddsSizeHeightInputMedium$2 = "3rem";
|
|
1313
|
+
const ddsSizeHeightInputMediumNumberRem$2 = 3; // Brukes i input og buttons
|
|
1314
|
+
const ddsSizeHeightInputSmall$2 = "2.187rem";
|
|
1315
|
+
const ddsSizeHeightInputSmallNumberRem$2 = 2.187; // Brukes i input og buttons
|
|
1316
|
+
const ddsSizeHeightInputXsmall$2 = "1.5625rem";
|
|
1317
|
+
const ddsSizeHeightInputXsmallNumberRem$2 = 1.5625; // Brukes i input og buttons
|
|
1291
1318
|
|
|
1292
1319
|
var ddsTokensCoreDark = /*#__PURE__*/Object.freeze({
|
|
1293
1320
|
__proto__: null,
|
|
@@ -1609,7 +1636,6 @@ var ddsTokensCoreDark = /*#__PURE__*/Object.freeze({
|
|
|
1609
1636
|
ddsFontLetterSpacingLoose: ddsFontLetterSpacingLoose$2,
|
|
1610
1637
|
ddsFontLetterSpacingNormal: ddsFontLetterSpacingNormal$2,
|
|
1611
1638
|
ddsFontLetterSpacingTight: ddsFontLetterSpacingTight$2,
|
|
1612
|
-
ddsFontLineheightList: ddsFontLineheightList$2,
|
|
1613
1639
|
ddsFontLineheightX1: ddsFontLineheightX1$2,
|
|
1614
1640
|
ddsFontLineheightX2: ddsFontLineheightX2$2,
|
|
1615
1641
|
ddsFontLineheightX3: ddsFontLineheightX3$2,
|
|
@@ -1617,6 +1643,8 @@ var ddsTokensCoreDark = /*#__PURE__*/Object.freeze({
|
|
|
1617
1643
|
ddsFontParagraphSpacingHeadingNumberEm: ddsFontParagraphSpacingHeadingNumberEm$2,
|
|
1618
1644
|
ddsFontParagraphSpacingLarge: ddsFontParagraphSpacingLarge$2,
|
|
1619
1645
|
ddsFontParagraphSpacingLargeNumberEm: ddsFontParagraphSpacingLargeNumberEm$2,
|
|
1646
|
+
ddsFontParagraphSpacingList: ddsFontParagraphSpacingList$2,
|
|
1647
|
+
ddsFontParagraphSpacingListNumberEm: ddsFontParagraphSpacingListNumberEm$2,
|
|
1620
1648
|
ddsFontParagraphSpacingMedium: ddsFontParagraphSpacingMedium$2,
|
|
1621
1649
|
ddsFontParagraphSpacingMediumNumberEm: ddsFontParagraphSpacingMediumNumberEm$2,
|
|
1622
1650
|
ddsFontParagraphSpacingSmall: ddsFontParagraphSpacingSmall$2,
|
|
@@ -1672,6 +1700,14 @@ var ddsTokensCoreDark = /*#__PURE__*/Object.freeze({
|
|
|
1672
1700
|
ddsShadowLarge: ddsShadowLarge$2,
|
|
1673
1701
|
ddsShadowMedium: ddsShadowMedium$2,
|
|
1674
1702
|
ddsShadowSmall: ddsShadowSmall$2,
|
|
1703
|
+
ddsSizeHeightInputLarge: ddsSizeHeightInputLarge$2,
|
|
1704
|
+
ddsSizeHeightInputLargeNumberRem: ddsSizeHeightInputLargeNumberRem$2,
|
|
1705
|
+
ddsSizeHeightInputMedium: ddsSizeHeightInputMedium$2,
|
|
1706
|
+
ddsSizeHeightInputMediumNumberRem: ddsSizeHeightInputMediumNumberRem$2,
|
|
1707
|
+
ddsSizeHeightInputSmall: ddsSizeHeightInputSmall$2,
|
|
1708
|
+
ddsSizeHeightInputSmallNumberRem: ddsSizeHeightInputSmallNumberRem$2,
|
|
1709
|
+
ddsSizeHeightInputXsmall: ddsSizeHeightInputXsmall$2,
|
|
1710
|
+
ddsSizeHeightInputXsmallNumberRem: ddsSizeHeightInputXsmallNumberRem$2,
|
|
1675
1711
|
ddsSizeIconComponent: ddsSizeIconComponent$2,
|
|
1676
1712
|
ddsSizeIconComponentNumberEm: ddsSizeIconComponentNumberEm$2,
|
|
1677
1713
|
ddsSizeIconLarge: ddsSizeIconLarge$2,
|
|
@@ -1752,7 +1788,6 @@ const ddsFontWeightBold$1 = "600";
|
|
|
1752
1788
|
const ddsFontLineheightX1$1 = 1.5; // Brukes på mengetekst og artikler
|
|
1753
1789
|
const ddsFontLineheightX3$1 = 1.2;
|
|
1754
1790
|
const ddsFontLineheightX2$1 = 1.3; // Brukes i komponenter og overskrifter
|
|
1755
|
-
const ddsFontLineheightList$1 = 2; // Brukes på lister
|
|
1756
1791
|
const ddsFontLetterSpacingTight$1 = "-0.01em"; // Brukes på str ×2.5 og større
|
|
1757
1792
|
const ddsFontLetterSpacingNormal$1 = "0em"; // Brukes på str ×1 og opp til og med ×2
|
|
1758
1793
|
const ddsFontLetterSpacingLoose$1 = "0.01em"; // Brukes på størrelser under ×1
|
|
@@ -1762,6 +1797,8 @@ const ddsFontParagraphSpacingMedium$1 = "0.66em";
|
|
|
1762
1797
|
const ddsFontParagraphSpacingMediumNumberEm$1 = 0.66; // Brukes på str x1.5, ×2 og ×3
|
|
1763
1798
|
const ddsFontParagraphSpacingLarge$1 = "0.5em";
|
|
1764
1799
|
const ddsFontParagraphSpacingLargeNumberEm$1 = 0.5; // Brukes på str ×3 og større
|
|
1800
|
+
const ddsFontParagraphSpacingList$1 = "0.5em";
|
|
1801
|
+
const ddsFontParagraphSpacingListNumberEm$1 = 0.5; // Brukes mellom kulepunkter i lister
|
|
1765
1802
|
const ddsFontParagraphSpacingHeading$1 = "0.4em";
|
|
1766
1803
|
const ddsFontParagraphSpacingHeadingNumberEm$1 = 0.4; // Brukes på på alle headere (bottom)
|
|
1767
1804
|
const ddsFontStyleUnderline$1 = "underline";
|
|
@@ -2148,6 +2185,14 @@ const ddsFontBodyShortSmallParagraphSpacingNumberEm$1 = 1;
|
|
|
2148
2185
|
const ddsFontBodyShortXsmallLetterSpacing$1 = "0.01em";
|
|
2149
2186
|
const ddsFontBodyShortXsmallParagraphSpacing$1 = "1em";
|
|
2150
2187
|
const ddsFontBodyShortXsmallParagraphSpacingNumberEm$1 = 1;
|
|
2188
|
+
const ddsSizeHeightInputLarge$1 = "3.8125rem";
|
|
2189
|
+
const ddsSizeHeightInputLargeNumberRem$1 = 3.8125; // Brukes i input og buttons
|
|
2190
|
+
const ddsSizeHeightInputMedium$1 = "3.125rem";
|
|
2191
|
+
const ddsSizeHeightInputMediumNumberRem$1 = 3.125; // Brukes i input og buttons
|
|
2192
|
+
const ddsSizeHeightInputSmall$1 = "2.5rem";
|
|
2193
|
+
const ddsSizeHeightInputSmallNumberRem$1 = 2.5; // Brukes i input og buttons
|
|
2194
|
+
const ddsSizeHeightInputXsmall$1 = "1.8125rem";
|
|
2195
|
+
const ddsSizeHeightInputXsmallNumberRem$1 = 1.8125; // Brukes i input og buttons
|
|
2151
2196
|
|
|
2152
2197
|
var ddsTokensPublicLight = /*#__PURE__*/Object.freeze({
|
|
2153
2198
|
__proto__: null,
|
|
@@ -2469,7 +2514,6 @@ var ddsTokensPublicLight = /*#__PURE__*/Object.freeze({
|
|
|
2469
2514
|
ddsFontLetterSpacingLoose: ddsFontLetterSpacingLoose$1,
|
|
2470
2515
|
ddsFontLetterSpacingNormal: ddsFontLetterSpacingNormal$1,
|
|
2471
2516
|
ddsFontLetterSpacingTight: ddsFontLetterSpacingTight$1,
|
|
2472
|
-
ddsFontLineheightList: ddsFontLineheightList$1,
|
|
2473
2517
|
ddsFontLineheightX1: ddsFontLineheightX1$1,
|
|
2474
2518
|
ddsFontLineheightX2: ddsFontLineheightX2$1,
|
|
2475
2519
|
ddsFontLineheightX3: ddsFontLineheightX3$1,
|
|
@@ -2477,6 +2521,8 @@ var ddsTokensPublicLight = /*#__PURE__*/Object.freeze({
|
|
|
2477
2521
|
ddsFontParagraphSpacingHeadingNumberEm: ddsFontParagraphSpacingHeadingNumberEm$1,
|
|
2478
2522
|
ddsFontParagraphSpacingLarge: ddsFontParagraphSpacingLarge$1,
|
|
2479
2523
|
ddsFontParagraphSpacingLargeNumberEm: ddsFontParagraphSpacingLargeNumberEm$1,
|
|
2524
|
+
ddsFontParagraphSpacingList: ddsFontParagraphSpacingList$1,
|
|
2525
|
+
ddsFontParagraphSpacingListNumberEm: ddsFontParagraphSpacingListNumberEm$1,
|
|
2480
2526
|
ddsFontParagraphSpacingMedium: ddsFontParagraphSpacingMedium$1,
|
|
2481
2527
|
ddsFontParagraphSpacingMediumNumberEm: ddsFontParagraphSpacingMediumNumberEm$1,
|
|
2482
2528
|
ddsFontParagraphSpacingSmall: ddsFontParagraphSpacingSmall$1,
|
|
@@ -2532,6 +2578,14 @@ var ddsTokensPublicLight = /*#__PURE__*/Object.freeze({
|
|
|
2532
2578
|
ddsShadowLarge: ddsShadowLarge$1,
|
|
2533
2579
|
ddsShadowMedium: ddsShadowMedium$1,
|
|
2534
2580
|
ddsShadowSmall: ddsShadowSmall$1,
|
|
2581
|
+
ddsSizeHeightInputLarge: ddsSizeHeightInputLarge$1,
|
|
2582
|
+
ddsSizeHeightInputLargeNumberRem: ddsSizeHeightInputLargeNumberRem$1,
|
|
2583
|
+
ddsSizeHeightInputMedium: ddsSizeHeightInputMedium$1,
|
|
2584
|
+
ddsSizeHeightInputMediumNumberRem: ddsSizeHeightInputMediumNumberRem$1,
|
|
2585
|
+
ddsSizeHeightInputSmall: ddsSizeHeightInputSmall$1,
|
|
2586
|
+
ddsSizeHeightInputSmallNumberRem: ddsSizeHeightInputSmallNumberRem$1,
|
|
2587
|
+
ddsSizeHeightInputXsmall: ddsSizeHeightInputXsmall$1,
|
|
2588
|
+
ddsSizeHeightInputXsmallNumberRem: ddsSizeHeightInputXsmallNumberRem$1,
|
|
2535
2589
|
ddsSizeIconComponent: ddsSizeIconComponent$1,
|
|
2536
2590
|
ddsSizeIconComponentNumberEm: ddsSizeIconComponentNumberEm$1,
|
|
2537
2591
|
ddsSizeIconLarge: ddsSizeIconLarge$1,
|
|
@@ -2612,7 +2666,6 @@ const ddsFontWeightBold = "600";
|
|
|
2612
2666
|
const ddsFontLineheightX1 = 1.5; // Brukes på mengetekst og artikler
|
|
2613
2667
|
const ddsFontLineheightX3 = 1.2;
|
|
2614
2668
|
const ddsFontLineheightX2 = 1.3; // Brukes i komponenter og overskrifter
|
|
2615
|
-
const ddsFontLineheightList = 2; // Brukes på lister
|
|
2616
2669
|
const ddsFontLetterSpacingTight = "-0.01em"; // Brukes på str ×2.5 og større
|
|
2617
2670
|
const ddsFontLetterSpacingNormal = "0em"; // Brukes på str ×1 og opp til og med ×2
|
|
2618
2671
|
const ddsFontLetterSpacingLoose = "0.01em"; // Brukes på størrelser under ×1
|
|
@@ -2622,6 +2675,8 @@ const ddsFontParagraphSpacingMedium = "0.66em";
|
|
|
2622
2675
|
const ddsFontParagraphSpacingMediumNumberEm = 0.66; // Brukes på str x1.5, ×2 og ×3
|
|
2623
2676
|
const ddsFontParagraphSpacingLarge = "0.5em";
|
|
2624
2677
|
const ddsFontParagraphSpacingLargeNumberEm = 0.5; // Brukes på str ×3 og større
|
|
2678
|
+
const ddsFontParagraphSpacingList = "0.5em";
|
|
2679
|
+
const ddsFontParagraphSpacingListNumberEm = 0.5; // Brukes mellom kulepunkter i lister
|
|
2625
2680
|
const ddsFontParagraphSpacingHeading = "0.4em";
|
|
2626
2681
|
const ddsFontParagraphSpacingHeadingNumberEm = 0.4; // Brukes på på alle headere (bottom)
|
|
2627
2682
|
const ddsFontStyleUnderline = "underline";
|
|
@@ -3008,6 +3063,14 @@ const ddsFontBodyShortSmallParagraphSpacingNumberEm = 1;
|
|
|
3008
3063
|
const ddsFontBodyShortXsmallLetterSpacing = "0.01em";
|
|
3009
3064
|
const ddsFontBodyShortXsmallParagraphSpacing = "1em";
|
|
3010
3065
|
const ddsFontBodyShortXsmallParagraphSpacingNumberEm = 1;
|
|
3066
|
+
const ddsSizeHeightInputLarge = "3.8125rem";
|
|
3067
|
+
const ddsSizeHeightInputLargeNumberRem = 3.8125; // Brukes i input og buttons
|
|
3068
|
+
const ddsSizeHeightInputMedium = "3.125rem";
|
|
3069
|
+
const ddsSizeHeightInputMediumNumberRem = 3.125; // Brukes i input og buttons
|
|
3070
|
+
const ddsSizeHeightInputSmall = "2.5rem";
|
|
3071
|
+
const ddsSizeHeightInputSmallNumberRem = 2.5; // Brukes i input og buttons
|
|
3072
|
+
const ddsSizeHeightInputXsmall = "1.8125rem";
|
|
3073
|
+
const ddsSizeHeightInputXsmallNumberRem = 1.8125; // Brukes i input og buttons
|
|
3011
3074
|
|
|
3012
3075
|
var ddsTokensPublicDark = /*#__PURE__*/Object.freeze({
|
|
3013
3076
|
__proto__: null,
|
|
@@ -3329,7 +3392,6 @@ var ddsTokensPublicDark = /*#__PURE__*/Object.freeze({
|
|
|
3329
3392
|
ddsFontLetterSpacingLoose: ddsFontLetterSpacingLoose,
|
|
3330
3393
|
ddsFontLetterSpacingNormal: ddsFontLetterSpacingNormal,
|
|
3331
3394
|
ddsFontLetterSpacingTight: ddsFontLetterSpacingTight,
|
|
3332
|
-
ddsFontLineheightList: ddsFontLineheightList,
|
|
3333
3395
|
ddsFontLineheightX1: ddsFontLineheightX1,
|
|
3334
3396
|
ddsFontLineheightX2: ddsFontLineheightX2,
|
|
3335
3397
|
ddsFontLineheightX3: ddsFontLineheightX3,
|
|
@@ -3337,6 +3399,8 @@ var ddsTokensPublicDark = /*#__PURE__*/Object.freeze({
|
|
|
3337
3399
|
ddsFontParagraphSpacingHeadingNumberEm: ddsFontParagraphSpacingHeadingNumberEm,
|
|
3338
3400
|
ddsFontParagraphSpacingLarge: ddsFontParagraphSpacingLarge,
|
|
3339
3401
|
ddsFontParagraphSpacingLargeNumberEm: ddsFontParagraphSpacingLargeNumberEm,
|
|
3402
|
+
ddsFontParagraphSpacingList: ddsFontParagraphSpacingList,
|
|
3403
|
+
ddsFontParagraphSpacingListNumberEm: ddsFontParagraphSpacingListNumberEm,
|
|
3340
3404
|
ddsFontParagraphSpacingMedium: ddsFontParagraphSpacingMedium,
|
|
3341
3405
|
ddsFontParagraphSpacingMediumNumberEm: ddsFontParagraphSpacingMediumNumberEm,
|
|
3342
3406
|
ddsFontParagraphSpacingSmall: ddsFontParagraphSpacingSmall,
|
|
@@ -3392,6 +3456,14 @@ var ddsTokensPublicDark = /*#__PURE__*/Object.freeze({
|
|
|
3392
3456
|
ddsShadowLarge: ddsShadowLarge,
|
|
3393
3457
|
ddsShadowMedium: ddsShadowMedium,
|
|
3394
3458
|
ddsShadowSmall: ddsShadowSmall,
|
|
3459
|
+
ddsSizeHeightInputLarge: ddsSizeHeightInputLarge,
|
|
3460
|
+
ddsSizeHeightInputLargeNumberRem: ddsSizeHeightInputLargeNumberRem,
|
|
3461
|
+
ddsSizeHeightInputMedium: ddsSizeHeightInputMedium,
|
|
3462
|
+
ddsSizeHeightInputMediumNumberRem: ddsSizeHeightInputMediumNumberRem,
|
|
3463
|
+
ddsSizeHeightInputSmall: ddsSizeHeightInputSmall,
|
|
3464
|
+
ddsSizeHeightInputSmallNumberRem: ddsSizeHeightInputSmallNumberRem,
|
|
3465
|
+
ddsSizeHeightInputXsmall: ddsSizeHeightInputXsmall,
|
|
3466
|
+
ddsSizeHeightInputXsmallNumberRem: ddsSizeHeightInputXsmallNumberRem,
|
|
3395
3467
|
ddsSizeIconComponent: ddsSizeIconComponent,
|
|
3396
3468
|
ddsSizeIconComponentNumberEm: ddsSizeIconComponentNumberEm,
|
|
3397
3469
|
ddsSizeIconLarge: ddsSizeIconLarge,
|
package/dist/cjs/src/index.d.ts
CHANGED
|
@@ -31,7 +31,6 @@ export declare const ddsTokens: {
|
|
|
31
31
|
ddsFontLineheightX1: 1.5;
|
|
32
32
|
ddsFontLineheightX3: 1.2;
|
|
33
33
|
ddsFontLineheightX2: 1.3;
|
|
34
|
-
ddsFontLineheightList: 2;
|
|
35
34
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
36
35
|
ddsFontLetterSpacingNormal: "0em";
|
|
37
36
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -41,6 +40,8 @@ export declare const ddsTokens: {
|
|
|
41
40
|
ddsFontParagraphSpacingMediumNumberEm: 0.66;
|
|
42
41
|
ddsFontParagraphSpacingLarge: "0.5em";
|
|
43
42
|
ddsFontParagraphSpacingLargeNumberEm: 0.5;
|
|
43
|
+
ddsFontParagraphSpacingList: "0.5em";
|
|
44
|
+
ddsFontParagraphSpacingListNumberEm: 0.5;
|
|
44
45
|
ddsFontParagraphSpacingHeading: "0.4em";
|
|
45
46
|
ddsFontParagraphSpacingHeadingNumberEm: 0.4;
|
|
46
47
|
ddsFontStyleUnderline: "underline";
|
|
@@ -427,6 +428,14 @@ export declare const ddsTokens: {
|
|
|
427
428
|
ddsFontBodyShortXsmallLetterSpacing: "0.01em";
|
|
428
429
|
ddsFontBodyShortXsmallParagraphSpacing: "1em";
|
|
429
430
|
ddsFontBodyShortXsmallParagraphSpacingNumberEm: 1;
|
|
431
|
+
ddsSizeHeightInputLarge: "3.625rem";
|
|
432
|
+
ddsSizeHeightInputLargeNumberRem: 3.625;
|
|
433
|
+
ddsSizeHeightInputMedium: "3rem";
|
|
434
|
+
ddsSizeHeightInputMediumNumberRem: 3;
|
|
435
|
+
ddsSizeHeightInputSmall: "2.187rem";
|
|
436
|
+
ddsSizeHeightInputSmallNumberRem: 2.187;
|
|
437
|
+
ddsSizeHeightInputXsmall: "1.5625rem";
|
|
438
|
+
ddsSizeHeightInputXsmallNumberRem: 1.5625;
|
|
430
439
|
};
|
|
431
440
|
'core-dark': {
|
|
432
441
|
ddsFontFamilySans: "'IBM Plex Sans', Arial, sans-serif";
|
|
@@ -460,7 +469,6 @@ export declare const ddsTokens: {
|
|
|
460
469
|
ddsFontLineheightX1: 1.5;
|
|
461
470
|
ddsFontLineheightX3: 1.2;
|
|
462
471
|
ddsFontLineheightX2: 1.3;
|
|
463
|
-
ddsFontLineheightList: 2;
|
|
464
472
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
465
473
|
ddsFontLetterSpacingNormal: "0em";
|
|
466
474
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -470,6 +478,8 @@ export declare const ddsTokens: {
|
|
|
470
478
|
ddsFontParagraphSpacingMediumNumberEm: 0.66;
|
|
471
479
|
ddsFontParagraphSpacingLarge: "0.5em";
|
|
472
480
|
ddsFontParagraphSpacingLargeNumberEm: 0.5;
|
|
481
|
+
ddsFontParagraphSpacingList: "0.5em";
|
|
482
|
+
ddsFontParagraphSpacingListNumberEm: 0.5;
|
|
473
483
|
ddsFontParagraphSpacingHeading: "0.4em";
|
|
474
484
|
ddsFontParagraphSpacingHeadingNumberEm: 0.4;
|
|
475
485
|
ddsFontStyleUnderline: "underline";
|
|
@@ -856,6 +866,14 @@ export declare const ddsTokens: {
|
|
|
856
866
|
ddsFontBodyShortXsmallLetterSpacing: "0.01em";
|
|
857
867
|
ddsFontBodyShortXsmallParagraphSpacing: "1em";
|
|
858
868
|
ddsFontBodyShortXsmallParagraphSpacingNumberEm: 1;
|
|
869
|
+
ddsSizeHeightInputLarge: "3.625rem";
|
|
870
|
+
ddsSizeHeightInputLargeNumberRem: 3.625;
|
|
871
|
+
ddsSizeHeightInputMedium: "3rem";
|
|
872
|
+
ddsSizeHeightInputMediumNumberRem: 3;
|
|
873
|
+
ddsSizeHeightInputSmall: "2.187rem";
|
|
874
|
+
ddsSizeHeightInputSmallNumberRem: 2.187;
|
|
875
|
+
ddsSizeHeightInputXsmall: "1.5625rem";
|
|
876
|
+
ddsSizeHeightInputXsmallNumberRem: 1.5625;
|
|
859
877
|
};
|
|
860
878
|
'public-light': {
|
|
861
879
|
ddsFontFamilySans: "'IBM Plex Sans', Arial, sans-serif";
|
|
@@ -889,7 +907,6 @@ export declare const ddsTokens: {
|
|
|
889
907
|
ddsFontLineheightX1: 1.5;
|
|
890
908
|
ddsFontLineheightX3: 1.2;
|
|
891
909
|
ddsFontLineheightX2: 1.3;
|
|
892
|
-
ddsFontLineheightList: 2;
|
|
893
910
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
894
911
|
ddsFontLetterSpacingNormal: "0em";
|
|
895
912
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -899,6 +916,8 @@ export declare const ddsTokens: {
|
|
|
899
916
|
ddsFontParagraphSpacingMediumNumberEm: 0.66;
|
|
900
917
|
ddsFontParagraphSpacingLarge: "0.5em";
|
|
901
918
|
ddsFontParagraphSpacingLargeNumberEm: 0.5;
|
|
919
|
+
ddsFontParagraphSpacingList: "0.5em";
|
|
920
|
+
ddsFontParagraphSpacingListNumberEm: 0.5;
|
|
902
921
|
ddsFontParagraphSpacingHeading: "0.4em";
|
|
903
922
|
ddsFontParagraphSpacingHeadingNumberEm: 0.4;
|
|
904
923
|
ddsFontStyleUnderline: "underline";
|
|
@@ -1285,6 +1304,14 @@ export declare const ddsTokens: {
|
|
|
1285
1304
|
ddsFontBodyShortXsmallLetterSpacing: "0.01em";
|
|
1286
1305
|
ddsFontBodyShortXsmallParagraphSpacing: "1em";
|
|
1287
1306
|
ddsFontBodyShortXsmallParagraphSpacingNumberEm: 1;
|
|
1307
|
+
ddsSizeHeightInputLarge: "3.8125rem";
|
|
1308
|
+
ddsSizeHeightInputLargeNumberRem: 3.8125;
|
|
1309
|
+
ddsSizeHeightInputMedium: "3.125rem";
|
|
1310
|
+
ddsSizeHeightInputMediumNumberRem: 3.125;
|
|
1311
|
+
ddsSizeHeightInputSmall: "2.5rem";
|
|
1312
|
+
ddsSizeHeightInputSmallNumberRem: 2.5;
|
|
1313
|
+
ddsSizeHeightInputXsmall: "1.8125rem";
|
|
1314
|
+
ddsSizeHeightInputXsmallNumberRem: 1.8125;
|
|
1288
1315
|
};
|
|
1289
1316
|
'public-dark': {
|
|
1290
1317
|
ddsFontFamilySans: "'IBM Plex Sans', Arial, sans-serif";
|
|
@@ -1318,7 +1345,6 @@ export declare const ddsTokens: {
|
|
|
1318
1345
|
ddsFontLineheightX1: 1.5;
|
|
1319
1346
|
ddsFontLineheightX3: 1.2;
|
|
1320
1347
|
ddsFontLineheightX2: 1.3;
|
|
1321
|
-
ddsFontLineheightList: 2;
|
|
1322
1348
|
ddsFontLetterSpacingTight: "-0.01em";
|
|
1323
1349
|
ddsFontLetterSpacingNormal: "0em";
|
|
1324
1350
|
ddsFontLetterSpacingLoose: "0.01em";
|
|
@@ -1328,6 +1354,8 @@ export declare const ddsTokens: {
|
|
|
1328
1354
|
ddsFontParagraphSpacingMediumNumberEm: 0.66;
|
|
1329
1355
|
ddsFontParagraphSpacingLarge: "0.5em";
|
|
1330
1356
|
ddsFontParagraphSpacingLargeNumberEm: 0.5;
|
|
1357
|
+
ddsFontParagraphSpacingList: "0.5em";
|
|
1358
|
+
ddsFontParagraphSpacingListNumberEm: 0.5;
|
|
1331
1359
|
ddsFontParagraphSpacingHeading: "0.4em";
|
|
1332
1360
|
ddsFontParagraphSpacingHeadingNumberEm: 0.4;
|
|
1333
1361
|
ddsFontStyleUnderline: "underline";
|
|
@@ -1714,5 +1742,13 @@ export declare const ddsTokens: {
|
|
|
1714
1742
|
ddsFontBodyShortXsmallLetterSpacing: "0.01em";
|
|
1715
1743
|
ddsFontBodyShortXsmallParagraphSpacing: "1em";
|
|
1716
1744
|
ddsFontBodyShortXsmallParagraphSpacingNumberEm: 1;
|
|
1745
|
+
ddsSizeHeightInputLarge: "3.8125rem";
|
|
1746
|
+
ddsSizeHeightInputLargeNumberRem: 3.8125;
|
|
1747
|
+
ddsSizeHeightInputMedium: "3.125rem";
|
|
1748
|
+
ddsSizeHeightInputMediumNumberRem: 3.125;
|
|
1749
|
+
ddsSizeHeightInputSmall: "2.5rem";
|
|
1750
|
+
ddsSizeHeightInputSmallNumberRem: 2.5;
|
|
1751
|
+
ddsSizeHeightInputXsmall: "1.8125rem";
|
|
1752
|
+
ddsSizeHeightInputXsmallNumberRem: 1.8125;
|
|
1717
1753
|
};
|
|
1718
1754
|
};
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
--dds-font-lineheight-x1: 1.5; /* Brukes på mengetekst og artikler */
|
|
24
24
|
--dds-font-lineheight-x3: 1.2;
|
|
25
25
|
--dds-font-lineheight-x2: 1.3; /* Brukes i komponenter og overskrifter */
|
|
26
|
-
--dds-font-lineheight-list: 2; /* Brukes på lister */
|
|
27
26
|
--dds-font-letter-spacing-tight: -0.01em; /* Brukes på str ×2.5 og større */
|
|
28
27
|
--dds-font-letter-spacing-normal: 0em; /* Brukes på str ×1 og opp til og med ×2 */
|
|
29
28
|
--dds-font-letter-spacing-loose: 0.01em; /* Brukes på størrelser under ×1 */
|
|
30
29
|
--dds-font-paragraph-spacing-small: 1em; /* Brukes på str ×1_25 og mindre */
|
|
31
30
|
--dds-font-paragraph-spacing-medium: 0.66em; /* Brukes på str x1.5, ×2 og ×3 */
|
|
32
31
|
--dds-font-paragraph-spacing-large: 0.5em; /* Brukes på str ×3 og større */
|
|
32
|
+
--dds-font-paragraph-spacing-list: 0.5em; /* Brukes mellom kulepunkter i lister */
|
|
33
33
|
--dds-font-paragraph-spacing-heading: 0.4em; /* Brukes på på alle headere (bottom) */
|
|
34
34
|
--dds-font-style-underline: underline;
|
|
35
35
|
--dds-font-style-normal: none;
|
|
@@ -364,4 +364,8 @@
|
|
|
364
364
|
--dds-font-body-short-small-paragraph-spacing: 1em;
|
|
365
365
|
--dds-font-body-short-xsmall-letter-spacing: 0.01em;
|
|
366
366
|
--dds-font-body-short-xsmall-paragraph-spacing: 1em;
|
|
367
|
+
--dds-size-height-input-large: 3.625rem; /* Brukes i input og buttons */
|
|
368
|
+
--dds-size-height-input-medium: 3rem; /* Brukes i input og buttons */
|
|
369
|
+
--dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
|
|
370
|
+
--dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
|
|
367
371
|
}
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
--dds-font-lineheight-x1: 1.5; /* Brukes på mengetekst og artikler */
|
|
24
24
|
--dds-font-lineheight-x3: 1.2;
|
|
25
25
|
--dds-font-lineheight-x2: 1.3; /* Brukes i komponenter og overskrifter */
|
|
26
|
-
--dds-font-lineheight-list: 2; /* Brukes på lister */
|
|
27
26
|
--dds-font-letter-spacing-tight: -0.01em; /* Brukes på str ×2.5 og større */
|
|
28
27
|
--dds-font-letter-spacing-normal: 0em; /* Brukes på str ×1 og opp til og med ×2 */
|
|
29
28
|
--dds-font-letter-spacing-loose: 0.01em; /* Brukes på størrelser under ×1 */
|
|
30
29
|
--dds-font-paragraph-spacing-small: 1em; /* Brukes på str ×1_25 og mindre */
|
|
31
30
|
--dds-font-paragraph-spacing-medium: 0.66em; /* Brukes på str x1.5, ×2 og ×3 */
|
|
32
31
|
--dds-font-paragraph-spacing-large: 0.5em; /* Brukes på str ×3 og større */
|
|
32
|
+
--dds-font-paragraph-spacing-list: 0.5em; /* Brukes mellom kulepunkter i lister */
|
|
33
33
|
--dds-font-paragraph-spacing-heading: 0.4em; /* Brukes på på alle headere (bottom) */
|
|
34
34
|
--dds-font-style-underline: underline;
|
|
35
35
|
--dds-font-style-normal: none;
|
|
@@ -364,4 +364,8 @@
|
|
|
364
364
|
--dds-font-body-short-small-paragraph-spacing: 1em;
|
|
365
365
|
--dds-font-body-short-xsmall-letter-spacing: 0.01em;
|
|
366
366
|
--dds-font-body-short-xsmall-paragraph-spacing: 1em;
|
|
367
|
+
--dds-size-height-input-large: 3.625rem; /* Brukes i input og buttons */
|
|
368
|
+
--dds-size-height-input-medium: 3rem; /* Brukes i input og buttons */
|
|
369
|
+
--dds-size-height-input-small: 2.187rem; /* Brukes i input og buttons */
|
|
370
|
+
--dds-size-height-input-xsmall: 1.5625rem; /* Brukes i input og buttons */
|
|
367
371
|
}
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
--dds-font-lineheight-x1: 1.5; /* Brukes på mengetekst og artikler */
|
|
24
24
|
--dds-font-lineheight-x3: 1.2;
|
|
25
25
|
--dds-font-lineheight-x2: 1.3; /* Brukes i komponenter og overskrifter */
|
|
26
|
-
--dds-font-lineheight-list: 2; /* Brukes på lister */
|
|
27
26
|
--dds-font-letter-spacing-tight: -0.01em; /* Brukes på str ×2.5 og større */
|
|
28
27
|
--dds-font-letter-spacing-normal: 0em; /* Brukes på str ×1 og opp til og med ×2 */
|
|
29
28
|
--dds-font-letter-spacing-loose: 0.01em; /* Brukes på størrelser under ×1 */
|
|
30
29
|
--dds-font-paragraph-spacing-small: 1em; /* Brukes på str ×1_25 og mindre */
|
|
31
30
|
--dds-font-paragraph-spacing-medium: 0.66em; /* Brukes på str x1.5, ×2 og ×3 */
|
|
32
31
|
--dds-font-paragraph-spacing-large: 0.5em; /* Brukes på str ×3 og større */
|
|
32
|
+
--dds-font-paragraph-spacing-list: 0.5em; /* Brukes mellom kulepunkter i lister */
|
|
33
33
|
--dds-font-paragraph-spacing-heading: 0.4em; /* Brukes på på alle headere (bottom) */
|
|
34
34
|
--dds-font-style-underline: underline;
|
|
35
35
|
--dds-font-style-normal: none;
|
|
@@ -364,4 +364,8 @@
|
|
|
364
364
|
--dds-font-body-short-small-paragraph-spacing: 1em;
|
|
365
365
|
--dds-font-body-short-xsmall-letter-spacing: 0.01em;
|
|
366
366
|
--dds-font-body-short-xsmall-paragraph-spacing: 1em;
|
|
367
|
+
--dds-size-height-input-large: 3.8125rem; /* Brukes i input og buttons */
|
|
368
|
+
--dds-size-height-input-medium: 3.125rem; /* Brukes i input og buttons */
|
|
369
|
+
--dds-size-height-input-small: 2.5rem; /* Brukes i input og buttons */
|
|
370
|
+
--dds-size-height-input-xsmall: 1.8125rem; /* Brukes i input og buttons */
|
|
367
371
|
}
|