@atlaskit/tokens 1.1.0 → 1.2.1

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/dist/cjs/artifacts/palettes-raw/shape-palette.js +134 -0
  3. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +29 -243
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +41 -41
  5. package/dist/cjs/artifacts/theme-import-map.js +6 -1
  6. package/dist/cjs/artifacts/themes/atlassian-shape.js +13 -0
  7. package/dist/cjs/artifacts/token-default-values.js +9 -1
  8. package/dist/cjs/artifacts/token-names.js +9 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-shape.js +190 -0
  10. package/dist/cjs/entry-points/tokens-raw.js +8 -1
  11. package/dist/cjs/get-token-value.js +1 -1
  12. package/dist/cjs/get-token.js +1 -1
  13. package/dist/cjs/palettes/shape-palette.js +70 -0
  14. package/dist/cjs/palettes/spacing-scale.js +14 -17
  15. package/dist/cjs/palettes/typography-palette.js +20 -20
  16. package/dist/cjs/theme-config.js +9 -1
  17. package/dist/cjs/tokens/atlassian-shape/shape.js +44 -0
  18. package/dist/cjs/tokens/default/shape/shape.js +80 -0
  19. package/dist/cjs/version.json +1 -1
  20. package/dist/es2019/artifacts/palettes-raw/shape-palette.js +127 -0
  21. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +29 -243
  22. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +41 -41
  23. package/dist/es2019/artifacts/theme-import-map.js +4 -2
  24. package/dist/es2019/artifacts/themes/atlassian-shape.js +17 -0
  25. package/dist/es2019/artifacts/token-default-values.js +9 -1
  26. package/dist/es2019/artifacts/token-names.js +9 -1
  27. package/dist/es2019/artifacts/tokens-raw/atlassian-shape.js +183 -0
  28. package/dist/es2019/entry-points/tokens-raw.js +2 -1
  29. package/dist/es2019/get-token-value.js +1 -1
  30. package/dist/es2019/get-token.js +1 -1
  31. package/dist/es2019/palettes/shape-palette.js +63 -0
  32. package/dist/es2019/palettes/spacing-scale.js +14 -17
  33. package/dist/es2019/palettes/typography-palette.js +20 -20
  34. package/dist/es2019/theme-config.js +9 -1
  35. package/dist/es2019/tokens/atlassian-shape/shape.js +37 -0
  36. package/dist/es2019/tokens/default/shape/shape.js +73 -0
  37. package/dist/es2019/version.json +1 -1
  38. package/dist/esm/artifacts/palettes-raw/shape-palette.js +127 -0
  39. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +29 -243
  40. package/dist/esm/artifacts/palettes-raw/typography-palette.js +41 -41
  41. package/dist/esm/artifacts/theme-import-map.js +5 -1
  42. package/dist/esm/artifacts/themes/atlassian-shape.js +6 -0
  43. package/dist/esm/artifacts/token-default-values.js +9 -1
  44. package/dist/esm/artifacts/token-names.js +9 -1
  45. package/dist/esm/artifacts/tokens-raw/atlassian-shape.js +183 -0
  46. package/dist/esm/entry-points/tokens-raw.js +2 -1
  47. package/dist/esm/get-token-value.js +1 -1
  48. package/dist/esm/get-token.js +1 -1
  49. package/dist/esm/palettes/shape-palette.js +63 -0
  50. package/dist/esm/palettes/spacing-scale.js +14 -17
  51. package/dist/esm/palettes/typography-palette.js +20 -20
  52. package/dist/esm/theme-config.js +9 -1
  53. package/dist/esm/tokens/atlassian-shape/shape.js +37 -0
  54. package/dist/esm/tokens/default/shape/shape.js +73 -0
  55. package/dist/esm/version.json +1 -1
  56. package/dist/types/artifacts/palettes-raw/shape-palette.d.ts +22 -0
  57. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  58. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  59. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  60. package/dist/types/artifacts/themes/atlassian-shape.d.ts +7 -0
  61. package/dist/types/artifacts/token-default-values.d.ts +9 -1
  62. package/dist/types/artifacts/token-names.d.ts +17 -1
  63. package/dist/types/artifacts/tokens-raw/atlassian-shape.d.ts +29 -0
  64. package/dist/types/entry-points/tokens-raw.d.ts +1 -0
  65. package/dist/types/palettes/shape-palette.d.ts +61 -0
  66. package/dist/types/palettes/spacing-scale.d.ts +14 -14
  67. package/dist/types/theme-config.d.ts +5 -7
  68. package/dist/types/tokens/atlassian-shape/shape.d.ts +7 -0
  69. package/dist/types/tokens/default/shape/shape.d.ts +3 -0
  70. package/dist/types/types.d.ts +32 -13
  71. package/figma/atlassian-shape.json +78 -0
  72. package/package.json +1 -1
  73. package/report.api.md +23 -4
  74. package/tmp/api-report-tmp.d.ts +23 -6
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /**
8
+ * Types are inferred from the base tokens below
9
+ */
10
+
11
+ var baseSizeTokens = {
12
+ Size050: {
13
+ value: '0.0625rem',
14
+ attributes: {
15
+ group: 'shape'
16
+ }
17
+ },
18
+ Size100: {
19
+ value: '0.125rem',
20
+ attributes: {
21
+ group: 'shape'
22
+ }
23
+ }
24
+ };
25
+ var baseRadiusTokens = {
26
+ Radius050: {
27
+ value: '0.125rem',
28
+ attributes: {
29
+ group: 'shape'
30
+ }
31
+ },
32
+ Radius100: {
33
+ value: '0.25rem',
34
+ attributes: {
35
+ group: 'shape'
36
+ }
37
+ },
38
+ Radius200: {
39
+ value: '0.5rem',
40
+ attributes: {
41
+ group: 'shape'
42
+ }
43
+ },
44
+ Radius300: {
45
+ value: '0.75rem',
46
+ attributes: {
47
+ group: 'shape'
48
+ }
49
+ },
50
+ Radius400: {
51
+ value: '1rem',
52
+ attributes: {
53
+ group: 'shape'
54
+ }
55
+ },
56
+ RadiusCircle: {
57
+ value: '50%',
58
+ attributes: {
59
+ group: 'shape'
60
+ }
61
+ }
62
+ };
63
+ var shapePalette = {
64
+ border: {
65
+ radius: baseRadiusTokens,
66
+ width: baseSizeTokens
67
+ }
68
+ };
69
+ var _default = shapePalette;
70
+ exports.default = _default;
@@ -12,94 +12,91 @@ var baseSpacingTokens = {
12
12
  Space0: {
13
13
  value: '0',
14
14
  attributes: {
15
- group: 'scale'
15
+ group: 'spacing'
16
16
  }
17
17
  },
18
18
  Space025: {
19
19
  value: '0.125rem',
20
20
  attributes: {
21
- group: 'scale'
21
+ group: 'spacing'
22
22
  }
23
23
  },
24
24
  Space050: {
25
25
  value: '0.25rem',
26
26
  attributes: {
27
- group: 'scale'
27
+ group: 'spacing'
28
28
  }
29
29
  },
30
30
  Space075: {
31
31
  value: '0.375rem',
32
32
  attributes: {
33
- group: 'scale'
33
+ group: 'spacing'
34
34
  }
35
35
  },
36
36
  Space100: {
37
37
  value: '0.5rem',
38
38
  attributes: {
39
- group: 'scale'
39
+ group: 'spacing'
40
40
  }
41
41
  },
42
42
  Space150: {
43
43
  value: '0.75rem',
44
44
  attributes: {
45
- group: 'scale'
45
+ group: 'spacing'
46
46
  }
47
47
  },
48
48
  Space200: {
49
49
  value: '1rem',
50
50
  attributes: {
51
- group: 'scale'
51
+ group: 'spacing'
52
52
  }
53
53
  },
54
54
  Space250: {
55
55
  value: '1.25rem',
56
56
  attributes: {
57
- group: 'scale'
57
+ group: 'spacing'
58
58
  }
59
59
  },
60
60
  Space300: {
61
61
  value: '1.5rem',
62
62
  attributes: {
63
- group: 'scale'
63
+ group: 'spacing'
64
64
  }
65
65
  },
66
66
  Space400: {
67
67
  value: '2rem',
68
68
  attributes: {
69
- group: 'scale'
69
+ group: 'spacing'
70
70
  }
71
71
  },
72
72
  Space500: {
73
73
  value: '2.5rem',
74
74
  attributes: {
75
- group: 'scale'
75
+ group: 'spacing'
76
76
  }
77
77
  },
78
78
  Space600: {
79
79
  value: '3rem',
80
80
  attributes: {
81
- group: 'scale'
81
+ group: 'spacing'
82
82
  }
83
83
  },
84
84
  Space800: {
85
85
  value: '4rem',
86
86
  attributes: {
87
- group: 'scale'
87
+ group: 'spacing'
88
88
  },
89
89
  pixelValue: '64px'
90
90
  },
91
91
  Space1000: {
92
92
  value: '5rem',
93
93
  attributes: {
94
- group: 'scale'
94
+ group: 'spacing'
95
95
  },
96
96
  pixelValue: '80px'
97
97
  }
98
98
  };
99
99
  var spacingPalette = {
100
- spacing: {
101
- scale: baseSpacingTokens
102
- },
103
100
  space: baseSpacingTokens
104
101
  };
105
102
  var _default = spacingPalette;
@@ -13,37 +13,37 @@ var lineHeightScale = {
13
13
  LineHeight100: {
14
14
  value: '16px',
15
15
  attributes: {
16
- group: 'scale'
16
+ group: 'typography'
17
17
  }
18
18
  },
19
19
  LineHeight200: {
20
20
  value: '20px',
21
21
  attributes: {
22
- group: 'scale'
22
+ group: 'typography'
23
23
  }
24
24
  },
25
25
  LineHeight300: {
26
26
  value: '24px',
27
27
  attributes: {
28
- group: 'scale'
28
+ group: 'typography'
29
29
  }
30
30
  },
31
31
  LineHeight400: {
32
32
  value: '28px',
33
33
  attributes: {
34
- group: 'scale'
34
+ group: 'typography'
35
35
  }
36
36
  },
37
37
  LineHeight500: {
38
38
  value: '32px',
39
39
  attributes: {
40
- group: 'scale'
40
+ group: 'typography'
41
41
  }
42
42
  },
43
43
  LineHeight600: {
44
44
  value: '40px',
45
45
  attributes: {
46
- group: 'scale'
46
+ group: 'typography'
47
47
  }
48
48
  }
49
49
  }
@@ -53,25 +53,25 @@ var fontWeightScale = {
53
53
  FontWeightRegular: {
54
54
  value: '400',
55
55
  attributes: {
56
- group: 'scale'
56
+ group: 'typography'
57
57
  }
58
58
  },
59
59
  FontWeightMedium: {
60
60
  value: '500',
61
61
  attributes: {
62
- group: 'scale'
62
+ group: 'typography'
63
63
  }
64
64
  },
65
65
  FontWeightSemiBold: {
66
66
  value: '600',
67
67
  attributes: {
68
- group: 'scale'
68
+ group: 'typography'
69
69
  }
70
70
  },
71
71
  FontWeightBold: {
72
72
  value: '700',
73
73
  attributes: {
74
- group: 'scale'
74
+ group: 'typography'
75
75
  }
76
76
  }
77
77
  }
@@ -81,13 +81,13 @@ var fontFamilyPalette = {
81
81
  FontFamilySans: {
82
82
  value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
83
83
  attributes: {
84
- group: 'scale'
84
+ group: 'typography'
85
85
  }
86
86
  },
87
87
  FontFamilyMonospace: {
88
88
  value: "\"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace",
89
89
  attributes: {
90
- group: 'scale'
90
+ group: 'typography'
91
91
  }
92
92
  }
93
93
  }
@@ -97,49 +97,49 @@ var fontSizeScale = {
97
97
  FontSize050: {
98
98
  value: '11px',
99
99
  attributes: {
100
- group: 'scale'
100
+ group: 'typography'
101
101
  }
102
102
  },
103
103
  FontSize075: {
104
104
  value: '12px',
105
105
  attributes: {
106
- group: 'scale'
106
+ group: 'typography'
107
107
  }
108
108
  },
109
109
  FontSize100: {
110
110
  value: '14px',
111
111
  attributes: {
112
- group: 'scale'
112
+ group: 'typography'
113
113
  }
114
114
  },
115
115
  FontSize200: {
116
116
  value: '16px',
117
117
  attributes: {
118
- group: 'scale'
118
+ group: 'typography'
119
119
  }
120
120
  },
121
121
  FontSize300: {
122
122
  value: '20px',
123
123
  attributes: {
124
- group: 'scale'
124
+ group: 'typography'
125
125
  }
126
126
  },
127
127
  FontSize400: {
128
128
  value: '24px',
129
129
  attributes: {
130
- group: 'scale'
130
+ group: 'typography'
131
131
  }
132
132
  },
133
133
  FontSize500: {
134
134
  value: '29px',
135
135
  attributes: {
136
- group: 'scale'
136
+ group: 'typography'
137
137
  }
138
138
  },
139
139
  FontSize600: {
140
140
  value: '35px',
141
141
  attributes: {
142
- group: 'scale'
142
+ group: 'typography'
143
143
  }
144
144
  }
145
145
  }
@@ -34,7 +34,7 @@ exports.themeColorModes = themeColorModes;
34
34
  *
35
35
  * These ids must be kebab case
36
36
  */
37
- var themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography'];
37
+ var themeIds = ['light', 'dark', 'legacy-light', 'legacy-dark', 'spacing', 'typography', 'shape'];
38
38
  exports.themeIds = themeIds;
39
39
  var themeConfig = {
40
40
  'atlassian-light': {
@@ -88,6 +88,14 @@ var themeConfig = {
88
88
  attributes: {
89
89
  type: 'typography'
90
90
  }
91
+ },
92
+ 'atlassian-shape': {
93
+ id: 'shape',
94
+ displayName: 'Atlassian Shape',
95
+ palette: 'shapePalette',
96
+ attributes: {
97
+ type: 'shape'
98
+ }
91
99
  }
92
100
  };
93
101
  var _default = themeConfig;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /**
8
+ * This is combined with the attribute schema.
9
+ * @link 'file:../default/shape/shape.tsx'
10
+ */
11
+ var shape = {
12
+ border: {
13
+ width: {
14
+ '050': {
15
+ value: 'Size050'
16
+ },
17
+ '100': {
18
+ value: 'Size100'
19
+ }
20
+ },
21
+ radius: {
22
+ '050': {
23
+ value: 'Radius050'
24
+ },
25
+ '100': {
26
+ value: 'Radius100'
27
+ },
28
+ '200': {
29
+ value: 'Radius200'
30
+ },
31
+ '300': {
32
+ value: 'Radius300'
33
+ },
34
+ '400': {
35
+ value: 'Radius400'
36
+ },
37
+ round: {
38
+ value: 'RadiusCircle'
39
+ }
40
+ }
41
+ }
42
+ };
43
+ var _default = shape;
44
+ exports.default = _default;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var shape = {
8
+ border: {
9
+ width: {
10
+ '050': {
11
+ attributes: {
12
+ group: 'shape',
13
+ state: 'experimental',
14
+ introduced: '1.1.0',
15
+ description: 'Experimental, description needs to be amended'
16
+ }
17
+ },
18
+ '100': {
19
+ attributes: {
20
+ group: 'shape',
21
+ state: 'experimental',
22
+ introduced: '1.1.0',
23
+ description: 'Experimental, description needs to be amended'
24
+ }
25
+ }
26
+ },
27
+ radius: {
28
+ '050': {
29
+ attributes: {
30
+ group: 'shape',
31
+ state: 'experimental',
32
+ introduced: '1.1.0',
33
+ description: 'Experimental, description needs to be amended'
34
+ }
35
+ },
36
+ '100': {
37
+ attributes: {
38
+ group: 'shape',
39
+ state: 'experimental',
40
+ introduced: '1.1.0',
41
+ description: 'Experimental, description needs to be amended'
42
+ }
43
+ },
44
+ '200': {
45
+ attributes: {
46
+ group: 'shape',
47
+ state: 'experimental',
48
+ introduced: '1.1.0',
49
+ description: 'Experimental, description needs to be amended'
50
+ }
51
+ },
52
+ '300': {
53
+ attributes: {
54
+ group: 'shape',
55
+ state: 'experimental',
56
+ introduced: '1.1.0',
57
+ description: 'Experimental, description needs to be amended'
58
+ }
59
+ },
60
+ '400': {
61
+ attributes: {
62
+ group: 'shape',
63
+ state: 'experimental',
64
+ introduced: '1.1.0',
65
+ description: 'Experimental, description needs to be amended'
66
+ }
67
+ },
68
+ round: {
69
+ attributes: {
70
+ group: 'shape',
71
+ state: 'experimental',
72
+ introduced: '1.1.0',
73
+ description: 'Experimental, description needs to be amended'
74
+ }
75
+ }
76
+ }
77
+ }
78
+ };
79
+ var _default = shape;
80
+ exports.default = _default;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -0,0 +1,127 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::f260aa650535ab5be564f74e1ff1a157>>
4
+ * @codegenCommand yarn build tokens
5
+ */
6
+ const tokens = [{
7
+ "value": "0.125rem",
8
+ "attributes": {
9
+ "group": "shape"
10
+ },
11
+ "filePath": "src/palettes/shape-palette.tsx",
12
+ "isSource": true,
13
+ "original": {
14
+ "value": "0.125rem",
15
+ "attributes": {
16
+ "group": "shape"
17
+ }
18
+ },
19
+ "name": "border.radius.Radius050",
20
+ "path": ["border", "radius", "Radius050"]
21
+ }, {
22
+ "value": "0.25rem",
23
+ "attributes": {
24
+ "group": "shape"
25
+ },
26
+ "filePath": "src/palettes/shape-palette.tsx",
27
+ "isSource": true,
28
+ "original": {
29
+ "value": "0.25rem",
30
+ "attributes": {
31
+ "group": "shape"
32
+ }
33
+ },
34
+ "name": "border.radius.Radius100",
35
+ "path": ["border", "radius", "Radius100"]
36
+ }, {
37
+ "value": "0.5rem",
38
+ "attributes": {
39
+ "group": "shape"
40
+ },
41
+ "filePath": "src/palettes/shape-palette.tsx",
42
+ "isSource": true,
43
+ "original": {
44
+ "value": "0.5rem",
45
+ "attributes": {
46
+ "group": "shape"
47
+ }
48
+ },
49
+ "name": "border.radius.Radius200",
50
+ "path": ["border", "radius", "Radius200"]
51
+ }, {
52
+ "value": "0.75rem",
53
+ "attributes": {
54
+ "group": "shape"
55
+ },
56
+ "filePath": "src/palettes/shape-palette.tsx",
57
+ "isSource": true,
58
+ "original": {
59
+ "value": "0.75rem",
60
+ "attributes": {
61
+ "group": "shape"
62
+ }
63
+ },
64
+ "name": "border.radius.Radius300",
65
+ "path": ["border", "radius", "Radius300"]
66
+ }, {
67
+ "value": "1rem",
68
+ "attributes": {
69
+ "group": "shape"
70
+ },
71
+ "filePath": "src/palettes/shape-palette.tsx",
72
+ "isSource": true,
73
+ "original": {
74
+ "value": "1rem",
75
+ "attributes": {
76
+ "group": "shape"
77
+ }
78
+ },
79
+ "name": "border.radius.Radius400",
80
+ "path": ["border", "radius", "Radius400"]
81
+ }, {
82
+ "value": "50%",
83
+ "attributes": {
84
+ "group": "shape"
85
+ },
86
+ "filePath": "src/palettes/shape-palette.tsx",
87
+ "isSource": true,
88
+ "original": {
89
+ "value": "50%",
90
+ "attributes": {
91
+ "group": "shape"
92
+ }
93
+ },
94
+ "name": "border.radius.RadiusCircle",
95
+ "path": ["border", "radius", "RadiusCircle"]
96
+ }, {
97
+ "value": "0.0625rem",
98
+ "attributes": {
99
+ "group": "shape"
100
+ },
101
+ "filePath": "src/palettes/shape-palette.tsx",
102
+ "isSource": true,
103
+ "original": {
104
+ "value": "0.0625rem",
105
+ "attributes": {
106
+ "group": "shape"
107
+ }
108
+ },
109
+ "name": "border.width.Size050",
110
+ "path": ["border", "width", "Size050"]
111
+ }, {
112
+ "value": "0.125rem",
113
+ "attributes": {
114
+ "group": "shape"
115
+ },
116
+ "filePath": "src/palettes/shape-palette.tsx",
117
+ "isSource": true,
118
+ "original": {
119
+ "value": "0.125rem",
120
+ "attributes": {
121
+ "group": "shape"
122
+ }
123
+ },
124
+ "name": "border.width.Size100",
125
+ "path": ["border", "width", "Size100"]
126
+ }];
127
+ export default tokens;