@atlaskit/tokens 0.10.31 → 0.10.33
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/CHANGELOG.md +12 -0
- package/css/atlassian-dark.css +5 -1
- package/css/atlassian-legacy-dark.css +5 -1
- package/css/atlassian-legacy-light.css +17 -13
- package/css/atlassian-light.css +7 -3
- package/css/atlassian-spacing.css +77 -77
- package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +25 -25
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +49 -7
- package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +77 -77
- package/dist/cjs/artifacts/typescript/atlassian-dark-token-names.js +3 -1
- package/dist/cjs/artifacts/typescript/atlassian-legacy-dark-token-names.js +3 -1
- package/dist/cjs/artifacts/typescript/atlassian-legacy-light-token-names.js +3 -1
- package/dist/cjs/artifacts/typescript/atlassian-light-token-default-values.js +4 -2
- package/dist/cjs/artifacts/typescript/atlassian-light-token-names.js +3 -1
- package/dist/cjs/artifacts/typescript/atlassian-spacing-token-default-values.js +77 -77
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/palettes/spacing-scale.js +12 -12
- package/dist/cjs/tokens/atlassian-dark/elevation/shadow.js +31 -21
- package/dist/cjs/tokens/atlassian-legacy-dark/elevation/shadow.js +31 -21
- package/dist/cjs/tokens/atlassian-legacy-light/elevation/shadow.js +27 -17
- package/dist/cjs/tokens/atlassian-light/elevation/shadow.js +27 -17
- package/dist/cjs/tokens/default/elevation/shadow.js +23 -5
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +25 -25
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +49 -7
- package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +77 -77
- package/dist/es2019/artifacts/typescript/atlassian-dark-token-names.js +3 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-dark-token-names.js +3 -1
- package/dist/es2019/artifacts/typescript/atlassian-legacy-light-token-names.js +3 -1
- package/dist/es2019/artifacts/typescript/atlassian-light-token-default-values.js +4 -2
- package/dist/es2019/artifacts/typescript/atlassian-light-token-names.js +3 -1
- package/dist/es2019/artifacts/typescript/atlassian-spacing-token-default-values.js +77 -77
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/palettes/spacing-scale.js +12 -12
- package/dist/es2019/tokens/atlassian-dark/elevation/shadow.js +31 -21
- package/dist/es2019/tokens/atlassian-legacy-dark/elevation/shadow.js +31 -21
- package/dist/es2019/tokens/atlassian-legacy-light/elevation/shadow.js +27 -17
- package/dist/es2019/tokens/atlassian-light/elevation/shadow.js +27 -17
- package/dist/es2019/tokens/default/elevation/shadow.js +23 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/palettes-raw/spacing-scale.js +25 -25
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +45 -3
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +49 -7
- package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +77 -77
- package/dist/esm/artifacts/typescript/atlassian-dark-token-names.js +3 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-dark-token-names.js +3 -1
- package/dist/esm/artifacts/typescript/atlassian-legacy-light-token-names.js +3 -1
- package/dist/esm/artifacts/typescript/atlassian-light-token-default-values.js +4 -2
- package/dist/esm/artifacts/typescript/atlassian-light-token-names.js +3 -1
- package/dist/esm/artifacts/typescript/atlassian-spacing-token-default-values.js +77 -77
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/palettes/spacing-scale.js +12 -12
- package/dist/esm/tokens/atlassian-dark/elevation/shadow.js +31 -21
- package/dist/esm/tokens/atlassian-legacy-dark/elevation/shadow.js +31 -21
- package/dist/esm/tokens/atlassian-legacy-light/elevation/shadow.js +27 -17
- package/dist/esm/tokens/atlassian-light/elevation/shadow.js +27 -17
- package/dist/esm/tokens/default/elevation/shadow.js +23 -5
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
- package/dist/types/artifacts/token-default-values.d.ts +79 -77
- package/dist/types/artifacts/token-names.d.ts +2 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
- package/dist/types/artifacts/typescript/atlassian-dark-token-names.d.ts +5 -1
- package/dist/types/artifacts/typescript/atlassian-dark-types-internal.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-dark-types.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +5 -1
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-legacy-dark-types.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +5 -1
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-legacy-light-types.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-light-token-default-values.d.ts +4 -2
- package/dist/types/artifacts/typescript/atlassian-light-token-names.d.ts +5 -1
- package/dist/types/artifacts/typescript/atlassian-light-types-internal.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-light-types.d.ts +2 -2
- package/dist/types/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +77 -77
- package/dist/types/types.d.ts +5 -1
- package/dist/types-ts4.0/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/token-default-values.d.ts +79 -77
- package/dist/types-ts4.0/artifacts/token-names.d.ts +2 -0
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-token-names.d.ts +5 -1
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types-internal.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-dark-types.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-token-names.d.ts +5 -1
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types-internal.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-dark-types.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-token-names.d.ts +5 -1
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types-internal.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-legacy-light-types.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-default-values.d.ts +4 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-token-names.d.ts +5 -1
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types-internal.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-light-types.d.ts +2 -2
- package/dist/types-ts4.0/artifacts/typescript/atlassian-spacing-token-default-values.d.ts +77 -77
- package/dist/types-ts4.0/types.d.ts +5 -1
- package/package.json +1 -1
- package/report.api.md +4 -0
- package/tmp/api-report-tmp.d.ts +4 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::83290a114618bdfa1ff9d24e32a6f1b1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -280,6 +280,8 @@ const tokens = {
|
|
|
280
280
|
'shadow.overlay': '--ds-overlay',
|
|
281
281
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
282
282
|
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
283
|
+
'elevation.shadow.overflow.spread': '--ds-shadow-overflow-spread',
|
|
284
|
+
'elevation.shadow.overflow.perimeter': '--ds-shadow-overflow-perimeter',
|
|
283
285
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
284
286
|
'elevation.surface': '--ds-surface',
|
|
285
287
|
'elevation.surface.hovered': '--ds-surface-hovered',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::83290a114618bdfa1ff9d24e32a6f1b1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -280,6 +280,8 @@ const tokens = {
|
|
|
280
280
|
'shadow.overlay': '--ds-overlay',
|
|
281
281
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
282
282
|
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
283
|
+
'elevation.shadow.overflow.spread': '--ds-shadow-overflow-spread',
|
|
284
|
+
'elevation.shadow.overflow.perimeter': '--ds-shadow-overflow-perimeter',
|
|
283
285
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
284
286
|
'elevation.surface': '--ds-surface',
|
|
285
287
|
'elevation.surface.hovered': '--ds-surface-hovered',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::ef6186f17dafc7e13af4096ad3cf41bb>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
const defaultTokenValues = {
|
|
@@ -283,7 +283,9 @@ const defaultTokenValues = {
|
|
|
283
283
|
'shadow.card': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
284
284
|
'shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
285
285
|
'elevation.shadow.raised': '0px 1px 1px #091E4240, 0px 0px 1px #091E424F',
|
|
286
|
-
'elevation.shadow.overflow': '0px
|
|
286
|
+
'elevation.shadow.overflow': '0px 0px 8px #091E4229, 0px 0px 1px #091E421F',
|
|
287
|
+
'elevation.shadow.overflow.spread': '#091e4229',
|
|
288
|
+
'elevation.shadow.overflow.perimeter': '#091e421f',
|
|
287
289
|
'elevation.shadow.overlay': '0px 8px 12px #091E4226, 0px 0px 1px #091E424F',
|
|
288
290
|
'elevation.surface': '#FFFFFF',
|
|
289
291
|
'elevation.surface.hovered': '#F1F2F4',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::83290a114618bdfa1ff9d24e32a6f1b1>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = {
|
|
@@ -280,6 +280,8 @@ const tokens = {
|
|
|
280
280
|
'shadow.overlay': '--ds-overlay',
|
|
281
281
|
'elevation.shadow.raised': '--ds-shadow-raised',
|
|
282
282
|
'elevation.shadow.overflow': '--ds-shadow-overflow',
|
|
283
|
+
'elevation.shadow.overflow.spread': '--ds-shadow-overflow-spread',
|
|
284
|
+
'elevation.shadow.overflow.perimeter': '--ds-shadow-overflow-perimeter',
|
|
283
285
|
'elevation.shadow.overlay': '--ds-shadow-overlay',
|
|
284
286
|
'elevation.surface': '--ds-surface',
|
|
285
287
|
'elevation.surface.hovered': '--ds-surface-hovered',
|
|
@@ -4,85 +4,85 @@
|
|
|
4
4
|
* Token names mapped to their value in the default Atlassian themes ('light spacing').
|
|
5
5
|
* These default values are used by the Babel plugin to optionally provide automatic fallbacks.
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::070fc18ba91d3a0673dcabb4f936f8d9>>
|
|
8
8
|
* @codegenCommand yarn build tokens
|
|
9
9
|
*/
|
|
10
10
|
const defaultTokenValues = {
|
|
11
|
-
'spacing.scale.0': '
|
|
12
|
-
'spacing.scale.100': '
|
|
13
|
-
'spacing.scale.150': '
|
|
14
|
-
'spacing.scale.200': '
|
|
15
|
-
'spacing.scale.250': '
|
|
16
|
-
'spacing.scale.300': '
|
|
17
|
-
'spacing.scale.400': '
|
|
18
|
-
'spacing.scale.500': '
|
|
19
|
-
'spacing.scale.600': '
|
|
20
|
-
'spacing.scale.025': '
|
|
21
|
-
'spacing.scale.050': '
|
|
22
|
-
'spacing.scale.075': '
|
|
23
|
-
'spacing.scaleLinear.0': '
|
|
24
|
-
'spacing.scaleLinear.100': '
|
|
25
|
-
'spacing.scaleLinear.200': '
|
|
26
|
-
'spacing.scaleLinear.300': '
|
|
27
|
-
'spacing.scaleLinear.400': '
|
|
28
|
-
'spacing.scaleLinear.500': '
|
|
29
|
-
'spacing.scaleLinear.600': '
|
|
30
|
-
'spacing.scaleLinear.700': '
|
|
31
|
-
'spacing.scaleLinear.800': '
|
|
32
|
-
'spacing.scaleLinear.900': '
|
|
33
|
-
'spacing.scaleLinear.1000': '
|
|
34
|
-
'spacing.scaleLinear.1100': '
|
|
35
|
-
'spacing.pixel.0': '
|
|
36
|
-
'spacing.pixel.2': '
|
|
37
|
-
'spacing.pixel.4': '
|
|
38
|
-
'spacing.pixel.6': '
|
|
39
|
-
'spacing.pixel.8': '
|
|
40
|
-
'spacing.pixel.12': '
|
|
41
|
-
'spacing.pixel.16': '
|
|
42
|
-
'spacing.pixel.20': '
|
|
43
|
-
'spacing.pixel.24': '
|
|
44
|
-
'spacing.pixel.32': '
|
|
45
|
-
'spacing.pixel.40': '
|
|
46
|
-
'spacing.pixel.48': '
|
|
47
|
-
'spacing.size.none': '
|
|
48
|
-
'spacing.size.xxxxSmall': '
|
|
49
|
-
'spacing.size.xxxSmall': '
|
|
50
|
-
'spacing.size.xxSmall': '
|
|
51
|
-
'spacing.size.xsmall': '
|
|
52
|
-
'spacing.size.small': '
|
|
53
|
-
'spacing.size.medium': '
|
|
54
|
-
'spacing.size.large': '
|
|
55
|
-
'spacing.size.xlarge': '
|
|
56
|
-
'spacing.size.xxlarge': '
|
|
57
|
-
'spacing.size.xxxlarge': '
|
|
58
|
-
'spacing.size.xxxxlarge': '
|
|
59
|
-
'spacing.ecl.element.2': '
|
|
60
|
-
'spacing.ecl.element.4': '
|
|
61
|
-
'spacing.ecl.element.6': '
|
|
62
|
-
'spacing.ecl.element.8': '
|
|
63
|
-
'spacing.ecl.container.12': '
|
|
64
|
-
'spacing.ecl.container.16': '
|
|
65
|
-
'spacing.ecl.container.20': '
|
|
66
|
-
'spacing.ecl.container.24': '
|
|
67
|
-
'spacing.ecl.layout.32': '
|
|
68
|
-
'spacing.ecl.layout.40': '
|
|
69
|
-
'spacing.ecl.layout.64': '
|
|
70
|
-
'spacing.ccc.component.2': '
|
|
71
|
-
'spacing.ccc.component.4': '
|
|
72
|
-
'spacing.ccc.component.6': '
|
|
73
|
-
'spacing.ccc.component.8': '
|
|
74
|
-
'spacing.ccc.content.12': '
|
|
75
|
-
'spacing.ccc.content.16': '
|
|
76
|
-
'spacing.ccc.content.20': '
|
|
77
|
-
'spacing.ccc.content.24': '
|
|
78
|
-
'spacing.ccc.container.32': '
|
|
79
|
-
'spacing.ccc.container.40': '
|
|
80
|
-
'spacing.ccc.container.48': '
|
|
81
|
-
'spacing.gap.100': '
|
|
82
|
-
'spacing.gap.200': '
|
|
83
|
-
'spacing.gap.300': '
|
|
84
|
-
'spacing.inset.100': '
|
|
85
|
-
'spacing.inset.200': '
|
|
86
|
-
'spacing.inset.300': '
|
|
11
|
+
'spacing.scale.0': '0',
|
|
12
|
+
'spacing.scale.100': '0.5rem',
|
|
13
|
+
'spacing.scale.150': '0.75rem',
|
|
14
|
+
'spacing.scale.200': '1rem',
|
|
15
|
+
'spacing.scale.250': '1.25rem',
|
|
16
|
+
'spacing.scale.300': '1.5rem',
|
|
17
|
+
'spacing.scale.400': '2rem',
|
|
18
|
+
'spacing.scale.500': '2.5rem',
|
|
19
|
+
'spacing.scale.600': '3rem',
|
|
20
|
+
'spacing.scale.025': '0.125rem',
|
|
21
|
+
'spacing.scale.050': '0.25rem',
|
|
22
|
+
'spacing.scale.075': '0.375rem',
|
|
23
|
+
'spacing.scaleLinear.0': '0',
|
|
24
|
+
'spacing.scaleLinear.100': '0.125rem',
|
|
25
|
+
'spacing.scaleLinear.200': '0.25rem',
|
|
26
|
+
'spacing.scaleLinear.300': '0.375rem',
|
|
27
|
+
'spacing.scaleLinear.400': '0.5rem',
|
|
28
|
+
'spacing.scaleLinear.500': '0.75rem',
|
|
29
|
+
'spacing.scaleLinear.600': '1rem',
|
|
30
|
+
'spacing.scaleLinear.700': '1.25rem',
|
|
31
|
+
'spacing.scaleLinear.800': '1.5rem',
|
|
32
|
+
'spacing.scaleLinear.900': '2rem',
|
|
33
|
+
'spacing.scaleLinear.1000': '2.5rem',
|
|
34
|
+
'spacing.scaleLinear.1100': '3rem',
|
|
35
|
+
'spacing.pixel.0': '0',
|
|
36
|
+
'spacing.pixel.2': '0.125rem',
|
|
37
|
+
'spacing.pixel.4': '0.25rem',
|
|
38
|
+
'spacing.pixel.6': '0.375rem',
|
|
39
|
+
'spacing.pixel.8': '0.5rem',
|
|
40
|
+
'spacing.pixel.12': '0.75rem',
|
|
41
|
+
'spacing.pixel.16': '1rem',
|
|
42
|
+
'spacing.pixel.20': '1.25rem',
|
|
43
|
+
'spacing.pixel.24': '1.5rem',
|
|
44
|
+
'spacing.pixel.32': '2rem',
|
|
45
|
+
'spacing.pixel.40': '2.5rem',
|
|
46
|
+
'spacing.pixel.48': '3rem',
|
|
47
|
+
'spacing.size.none': '0',
|
|
48
|
+
'spacing.size.xxxxSmall': '0.125rem',
|
|
49
|
+
'spacing.size.xxxSmall': '0.25rem',
|
|
50
|
+
'spacing.size.xxSmall': '0.375rem',
|
|
51
|
+
'spacing.size.xsmall': '0.5rem',
|
|
52
|
+
'spacing.size.small': '0.75rem',
|
|
53
|
+
'spacing.size.medium': '1rem',
|
|
54
|
+
'spacing.size.large': '1.25rem',
|
|
55
|
+
'spacing.size.xlarge': '1.5rem',
|
|
56
|
+
'spacing.size.xxlarge': '2rem',
|
|
57
|
+
'spacing.size.xxxlarge': '2.5rem',
|
|
58
|
+
'spacing.size.xxxxlarge': '3rem',
|
|
59
|
+
'spacing.ecl.element.2': '0.125rem',
|
|
60
|
+
'spacing.ecl.element.4': '0.25rem',
|
|
61
|
+
'spacing.ecl.element.6': '0.375rem',
|
|
62
|
+
'spacing.ecl.element.8': '0.5rem',
|
|
63
|
+
'spacing.ecl.container.12': '0.75rem',
|
|
64
|
+
'spacing.ecl.container.16': '1rem',
|
|
65
|
+
'spacing.ecl.container.20': '1.25rem',
|
|
66
|
+
'spacing.ecl.container.24': '1.5rem',
|
|
67
|
+
'spacing.ecl.layout.32': '2rem',
|
|
68
|
+
'spacing.ecl.layout.40': '2.5rem',
|
|
69
|
+
'spacing.ecl.layout.64': '3rem',
|
|
70
|
+
'spacing.ccc.component.2': '0.125rem',
|
|
71
|
+
'spacing.ccc.component.4': '0.25rem',
|
|
72
|
+
'spacing.ccc.component.6': '0.375rem',
|
|
73
|
+
'spacing.ccc.component.8': '0.5rem',
|
|
74
|
+
'spacing.ccc.content.12': '0.75rem',
|
|
75
|
+
'spacing.ccc.content.16': '1rem',
|
|
76
|
+
'spacing.ccc.content.20': '1.25rem',
|
|
77
|
+
'spacing.ccc.content.24': '1.5rem',
|
|
78
|
+
'spacing.ccc.container.32': '2rem',
|
|
79
|
+
'spacing.ccc.container.40': '2.5rem',
|
|
80
|
+
'spacing.ccc.container.48': '3rem',
|
|
81
|
+
'spacing.gap.100': '0.5rem',
|
|
82
|
+
'spacing.gap.200': '1rem',
|
|
83
|
+
'spacing.gap.300': '1.5rem',
|
|
84
|
+
'spacing.inset.100': '0.5rem',
|
|
85
|
+
'spacing.inset.200': '1rem',
|
|
86
|
+
'spacing.inset.300': '1.5rem'
|
|
87
87
|
};
|
|
88
88
|
export default defaultTokenValues;
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
|
|
|
2
2
|
import tokens from './artifacts/token-names';
|
|
3
3
|
import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
|
|
4
4
|
const name = "@atlaskit/tokens";
|
|
5
|
-
const version = "0.10.
|
|
5
|
+
const version = "0.10.33";
|
|
6
6
|
|
|
7
7
|
function token(path, fallback) {
|
|
8
8
|
let token = tokens[path];
|
|
@@ -2,73 +2,73 @@ const scale = {
|
|
|
2
2
|
spacing: {
|
|
3
3
|
scale: {
|
|
4
4
|
Space0: {
|
|
5
|
-
value: '
|
|
5
|
+
value: '0',
|
|
6
6
|
attributes: {
|
|
7
7
|
group: 'scale'
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
Space025: {
|
|
11
|
-
value: '
|
|
11
|
+
value: '0.125rem',
|
|
12
12
|
attributes: {
|
|
13
13
|
group: 'scale'
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
Space050: {
|
|
17
|
-
value: '
|
|
17
|
+
value: '0.25rem',
|
|
18
18
|
attributes: {
|
|
19
19
|
group: 'scale'
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
Space075: {
|
|
23
|
-
value: '
|
|
23
|
+
value: '0.375rem',
|
|
24
24
|
attributes: {
|
|
25
25
|
group: 'scale'
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
Space100: {
|
|
29
|
-
value: '
|
|
29
|
+
value: '0.5rem',
|
|
30
30
|
attributes: {
|
|
31
31
|
group: 'scale'
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
Space150: {
|
|
35
|
-
value: '
|
|
35
|
+
value: '0.75rem',
|
|
36
36
|
attributes: {
|
|
37
37
|
group: 'scale'
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
Space200: {
|
|
41
|
-
value: '
|
|
41
|
+
value: '1rem',
|
|
42
42
|
attributes: {
|
|
43
43
|
group: 'scale'
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
Space250: {
|
|
47
|
-
value: '
|
|
47
|
+
value: '1.25rem',
|
|
48
48
|
attributes: {
|
|
49
49
|
group: 'scale'
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
Space300: {
|
|
53
|
-
value: '
|
|
53
|
+
value: '1.5rem',
|
|
54
54
|
attributes: {
|
|
55
55
|
group: 'scale'
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
Space400: {
|
|
59
|
-
value: '
|
|
59
|
+
value: '2rem',
|
|
60
60
|
attributes: {
|
|
61
61
|
group: 'scale'
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
Space500: {
|
|
65
|
-
value: '
|
|
65
|
+
value: '2.5rem',
|
|
66
66
|
attributes: {
|
|
67
67
|
group: 'scale'
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
Space600: {
|
|
71
|
-
value: '
|
|
71
|
+
value: '3rem',
|
|
72
72
|
attributes: {
|
|
73
73
|
group: 'scale'
|
|
74
74
|
}
|
|
@@ -35,27 +35,37 @@ const shadow = {
|
|
|
35
35
|
}]
|
|
36
36
|
},
|
|
37
37
|
overflow: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
'[default]': {
|
|
39
|
+
value: [{
|
|
40
|
+
radius: 12,
|
|
41
|
+
offset: {
|
|
42
|
+
x: 0,
|
|
43
|
+
y: 0
|
|
44
|
+
},
|
|
45
|
+
// @ts-ignore no current palette colour for this yet
|
|
46
|
+
color: '#030404',
|
|
47
|
+
// This opacity overrides the color alpha.
|
|
48
|
+
opacity: 0.56
|
|
49
|
+
}, {
|
|
50
|
+
radius: 1,
|
|
51
|
+
offset: {
|
|
52
|
+
x: 0,
|
|
53
|
+
y: 0
|
|
54
|
+
},
|
|
55
|
+
// @ts-ignore no current palette colour for this yet
|
|
56
|
+
color: '#030404',
|
|
57
|
+
// This opacity overrides the color alpha.
|
|
58
|
+
opacity: 0.5
|
|
59
|
+
}]
|
|
60
|
+
},
|
|
61
|
+
// @ts-ignore no current palette colour for this yet
|
|
62
|
+
spread: {
|
|
63
|
+
value: '#0304048f'
|
|
64
|
+
},
|
|
65
|
+
// @ts-ignore no current palette colour for this yet
|
|
66
|
+
perimeter: {
|
|
67
|
+
value: '#03040480'
|
|
68
|
+
}
|
|
59
69
|
},
|
|
60
70
|
overlay: {
|
|
61
71
|
value: [{
|
|
@@ -35,27 +35,37 @@ const shadow = {
|
|
|
35
35
|
}]
|
|
36
36
|
},
|
|
37
37
|
overflow: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
'[default]': {
|
|
39
|
+
value: [{
|
|
40
|
+
radius: 12,
|
|
41
|
+
offset: {
|
|
42
|
+
x: 0,
|
|
43
|
+
y: 0
|
|
44
|
+
},
|
|
45
|
+
// @ts-ignore no current palette colour for this yet
|
|
46
|
+
color: '#030404',
|
|
47
|
+
// This opacity overrides the color alpha.
|
|
48
|
+
opacity: 0.56
|
|
49
|
+
}, {
|
|
50
|
+
radius: 1,
|
|
51
|
+
offset: {
|
|
52
|
+
x: 0,
|
|
53
|
+
y: 0
|
|
54
|
+
},
|
|
55
|
+
// @ts-ignore no current palette colour for this yet
|
|
56
|
+
color: '#030404',
|
|
57
|
+
// This opacity overrides the color alpha.
|
|
58
|
+
opacity: 0.5
|
|
59
|
+
}]
|
|
60
|
+
},
|
|
61
|
+
// @ts-ignore no current palette colour for this yet
|
|
62
|
+
spread: {
|
|
63
|
+
value: '#0304048f'
|
|
64
|
+
},
|
|
65
|
+
// @ts-ignore no current palette colour for this yet
|
|
66
|
+
perimeter: {
|
|
67
|
+
value: '#03040480'
|
|
68
|
+
}
|
|
59
69
|
},
|
|
60
70
|
overlay: {
|
|
61
71
|
value: [{
|
|
@@ -21,23 +21,33 @@ const shadow = {
|
|
|
21
21
|
}]
|
|
22
22
|
},
|
|
23
23
|
overflow: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
'[default]': {
|
|
25
|
+
value: [{
|
|
26
|
+
radius: 8,
|
|
27
|
+
offset: {
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0
|
|
30
|
+
},
|
|
31
|
+
color: 'N50A',
|
|
32
|
+
opacity: 0.16
|
|
33
|
+
}, {
|
|
34
|
+
radius: 1,
|
|
35
|
+
offset: {
|
|
36
|
+
x: 0,
|
|
37
|
+
y: 0
|
|
38
|
+
},
|
|
39
|
+
color: 'N60A',
|
|
40
|
+
opacity: 0.12
|
|
41
|
+
}]
|
|
42
|
+
},
|
|
43
|
+
// @ts-ignore no current palette colour for this yet
|
|
44
|
+
spread: {
|
|
45
|
+
value: '#091e4229'
|
|
46
|
+
},
|
|
47
|
+
// @ts-ignore no current palette colour for this yet
|
|
48
|
+
perimeter: {
|
|
49
|
+
value: '#091e421f'
|
|
50
|
+
}
|
|
41
51
|
},
|
|
42
52
|
overlay: {
|
|
43
53
|
value: [{
|
|
@@ -21,23 +21,33 @@ const shadow = {
|
|
|
21
21
|
}]
|
|
22
22
|
},
|
|
23
23
|
overflow: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
'[default]': {
|
|
25
|
+
value: [{
|
|
26
|
+
radius: 8,
|
|
27
|
+
offset: {
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0
|
|
30
|
+
},
|
|
31
|
+
color: 'Neutral1100',
|
|
32
|
+
opacity: 0.16
|
|
33
|
+
}, {
|
|
34
|
+
radius: 1,
|
|
35
|
+
offset: {
|
|
36
|
+
x: 0,
|
|
37
|
+
y: 0
|
|
38
|
+
},
|
|
39
|
+
color: 'Neutral1100',
|
|
40
|
+
opacity: 0.12
|
|
41
|
+
}]
|
|
42
|
+
},
|
|
43
|
+
// @ts-ignore no current palette colour for this yet
|
|
44
|
+
spread: {
|
|
45
|
+
value: '#091e4229'
|
|
46
|
+
},
|
|
47
|
+
// @ts-ignore no current palette colour for this yet
|
|
48
|
+
perimeter: {
|
|
49
|
+
value: '#091e421f'
|
|
50
|
+
}
|
|
41
51
|
},
|
|
42
52
|
overlay: {
|
|
43
53
|
value: [{
|
|
@@ -10,11 +10,29 @@ const shadow = {
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
overflow: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
'[default]': {
|
|
14
|
+
attributes: {
|
|
15
|
+
group: 'shadow',
|
|
16
|
+
state: 'active',
|
|
17
|
+
introduced: '0.6.0',
|
|
18
|
+
description: `Use to create a shadow when content scrolls under other content.`
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
spread: {
|
|
22
|
+
attributes: {
|
|
23
|
+
group: 'paint',
|
|
24
|
+
state: 'active',
|
|
25
|
+
introduced: '0.10.32',
|
|
26
|
+
description: 'Use only when elevation.shadow.overflow is not technically feasible to implement. Pair with elevation.shadow.overflow.perimeter to replicate the overflow shadow.'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
perimeter: {
|
|
30
|
+
attributes: {
|
|
31
|
+
group: 'paint',
|
|
32
|
+
state: 'active',
|
|
33
|
+
introduced: '0.10.32',
|
|
34
|
+
description: 'Use only when elevation.shadow.overflow is not technically feasible to implement. Pair with elevation.shadow.overflow.spread to replicate the overflow shadow.'
|
|
35
|
+
}
|
|
18
36
|
}
|
|
19
37
|
},
|
|
20
38
|
overlay: {
|