@atlaskit/primitives 0.5.0 → 0.7.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.
Files changed (72) hide show
  1. package/.eslintrc.js +3 -0
  2. package/CHANGELOG.md +14 -0
  3. package/dist/cjs/components/box.js +3 -40
  4. package/dist/cjs/components/inline.partial.js +24 -91
  5. package/dist/cjs/components/internal/base-box.js +61 -0
  6. package/dist/cjs/components/stack.partial.js +24 -47
  7. package/dist/cjs/internal/style-maps.partial.js +370 -0
  8. package/dist/cjs/internal/xcss.js +17 -7
  9. package/dist/cjs/version.json +1 -1
  10. package/dist/es2019/components/box.js +1 -37
  11. package/dist/es2019/components/inline.partial.js +20 -63
  12. package/dist/es2019/components/internal/base-box.js +52 -0
  13. package/dist/es2019/components/stack.partial.js +20 -19
  14. package/dist/es2019/internal/style-maps.partial.js +341 -0
  15. package/dist/es2019/internal/xcss.js +13 -7
  16. package/dist/es2019/version.json +1 -1
  17. package/dist/esm/components/box.js +2 -40
  18. package/dist/esm/components/inline.partial.js +23 -91
  19. package/dist/esm/components/internal/base-box.js +53 -0
  20. package/dist/esm/components/stack.partial.js +23 -47
  21. package/dist/esm/internal/style-maps.partial.js +340 -0
  22. package/dist/esm/internal/xcss.js +17 -7
  23. package/dist/esm/version.json +1 -1
  24. package/dist/types/components/box.d.ts +2 -3
  25. package/dist/types/components/inline.partial.d.ts +23 -37
  26. package/dist/types/components/internal/base-box.d.ts +83 -0
  27. package/dist/types/components/stack.partial.d.ts +21 -19
  28. package/dist/types/components/types.d.ts +1 -47
  29. package/dist/types/internal/style-maps.partial.d.ts +396 -0
  30. package/dist/types/internal/xcss.d.ts +5 -5
  31. package/package.json +3 -3
  32. package/report.api.md +228 -394
  33. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +313 -363
  34. package/scripts/border-codegen-template.tsx +79 -0
  35. package/scripts/codegen-file-templates/align-self.tsx +9 -0
  36. package/scripts/codegen-file-templates/border-style.tsx +6 -0
  37. package/scripts/codegen-file-templates/dimensions.tsx +17 -0
  38. package/scripts/codegen-file-templates/display.tsx +6 -0
  39. package/scripts/codegen-file-templates/flex-grow.tsx +6 -0
  40. package/scripts/codegen-file-templates/flex-shrink.tsx +6 -0
  41. package/scripts/codegen-file-templates/flex.tsx +5 -0
  42. package/scripts/codegen-file-templates/layer.tsx +13 -0
  43. package/scripts/codegen-file-templates/overflow.tsx +20 -0
  44. package/scripts/codegen-file-templates/position.tsx +8 -0
  45. package/scripts/codegen-styles.tsx +80 -120
  46. package/scripts/color-codegen-template.tsx +9 -19
  47. package/scripts/misc-codegen-template.tsx +20 -40
  48. package/scripts/spacing-codegen-template.tsx +22 -29
  49. package/scripts/utils.tsx +15 -4
  50. package/tmp/api-report-tmp.d.ts +223 -381
  51. package/dist/cjs/components/internal/base-box.partial.js +0 -843
  52. package/dist/cjs/components/internal/types.js +0 -8
  53. package/dist/cjs/components/internal/utils.js +0 -16
  54. package/dist/cjs/internal/color-map.js +0 -42
  55. package/dist/cjs/internal/style-maps.js +0 -130
  56. package/dist/es2019/components/internal/base-box.partial.js +0 -838
  57. package/dist/es2019/components/internal/types.js +0 -1
  58. package/dist/es2019/components/internal/utils.js +0 -2
  59. package/dist/es2019/internal/color-map.js +0 -35
  60. package/dist/es2019/internal/style-maps.js +0 -117
  61. package/dist/esm/components/internal/base-box.partial.js +0 -838
  62. package/dist/esm/components/internal/types.js +0 -1
  63. package/dist/esm/components/internal/utils.js +0 -7
  64. package/dist/esm/internal/color-map.js +0 -35
  65. package/dist/esm/internal/style-maps.js +0 -117
  66. package/dist/types/components/internal/base-box.partial.d.ts +0 -522
  67. package/dist/types/components/internal/types.d.ts +0 -8
  68. package/dist/types/components/internal/utils.d.ts +0 -3
  69. package/dist/types/internal/color-map.d.ts +0 -36
  70. package/dist/types/internal/style-maps.d.ts +0 -151
  71. package/scripts/color-map-template.tsx +0 -52
  72. package/scripts/dimension-codegen-template.tsx +0 -75
@@ -1,208 +1,264 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`@atlaskit/primitives bg styles are generated correctly 1`] = `
4
- "const backgroundColorMap = {
5
- 'accent.red.subtlest': css({
6
- backgroundColor: token('color.background.accent.red.subtlest', '#FF8F73'),
7
- }),
8
- 'accent.red.subtler': css({
9
- backgroundColor: token('color.background.accent.red.subtler', '#FF7452'),
10
- }),
11
- 'accent.red.subtle': css({
12
- backgroundColor: token('color.background.accent.red.subtle', '#DE350B'),
13
- }),
14
- 'accent.red.bolder': css({
15
- backgroundColor: token('color.background.accent.red.bolder', '#DE350B'),
16
- }),
17
- 'accent.orange.subtlest': css({
18
- backgroundColor: token(
19
- 'color.background.accent.orange.subtlest',
20
- '#F18D13',
21
- ),
22
- }),
23
- 'accent.orange.subtler': css({
24
- backgroundColor: token('color.background.accent.orange.subtler', '#B65C02'),
25
- }),
26
- 'accent.orange.subtle': css({
27
- backgroundColor: token('color.background.accent.orange.subtle', '#5F3811'),
28
- }),
29
- 'accent.orange.bolder': css({
30
- backgroundColor: token('color.background.accent.orange.bolder', '#43290F'),
31
- }),
32
- 'accent.yellow.subtlest': css({
33
- backgroundColor: token(
34
- 'color.background.accent.yellow.subtlest',
35
- '#FFE380',
36
- ),
37
- }),
38
- 'accent.yellow.subtler': css({
39
- backgroundColor: token('color.background.accent.yellow.subtler', '#FFC400'),
40
- }),
41
- 'accent.yellow.subtle': css({
42
- backgroundColor: token('color.background.accent.yellow.subtle', '#FF991F'),
43
- }),
44
- 'accent.yellow.bolder': css({
45
- backgroundColor: token('color.background.accent.yellow.bolder', '#FF991F'),
46
- }),
47
- 'accent.green.subtlest': css({
48
- backgroundColor: token('color.background.accent.green.subtlest', '#79F2C0'),
49
- }),
50
- 'accent.green.subtler': css({
51
- backgroundColor: token('color.background.accent.green.subtler', '#57D9A3'),
52
- }),
53
- 'accent.green.subtle': css({
54
- backgroundColor: token('color.background.accent.green.subtle', '#00875A'),
55
- }),
56
- 'accent.green.bolder': css({
57
- backgroundColor: token('color.background.accent.green.bolder', '#00875A'),
58
- }),
59
- 'accent.teal.subtlest': css({
60
- backgroundColor: token('color.background.accent.teal.subtlest', '#79E2F2'),
61
- }),
62
- 'accent.teal.subtler': css({
63
- backgroundColor: token('color.background.accent.teal.subtler', '#00C7E6'),
64
- }),
65
- 'accent.teal.subtle': css({
66
- backgroundColor: token('color.background.accent.teal.subtle', '#00A3BF'),
67
- }),
68
- 'accent.teal.bolder': css({
69
- backgroundColor: token('color.background.accent.teal.bolder', '#00A3BF'),
70
- }),
71
- 'accent.blue.subtlest': css({
72
- backgroundColor: token('color.background.accent.blue.subtlest', '#4C9AFF'),
73
- }),
74
- 'accent.blue.subtler': css({
75
- backgroundColor: token('color.background.accent.blue.subtler', '#2684FF'),
76
- }),
77
- 'accent.blue.subtle': css({
78
- backgroundColor: token('color.background.accent.blue.subtle', '#0052CC'),
79
- }),
80
- 'accent.blue.bolder': css({
81
- backgroundColor: token('color.background.accent.blue.bolder', '#0052CC'),
82
- }),
83
- 'accent.purple.subtlest': css({
84
- backgroundColor: token(
85
- 'color.background.accent.purple.subtlest',
86
- '#998DD9',
87
- ),
88
- }),
89
- 'accent.purple.subtler': css({
90
- backgroundColor: token('color.background.accent.purple.subtler', '#8777D9'),
91
- }),
92
- 'accent.purple.subtle': css({
93
- backgroundColor: token('color.background.accent.purple.subtle', '#5243AA'),
94
- }),
95
- 'accent.purple.bolder': css({
96
- backgroundColor: token('color.background.accent.purple.bolder', '#5243AA'),
97
- }),
98
- 'accent.magenta.subtlest': css({
99
- backgroundColor: token(
100
- 'color.background.accent.magenta.subtlest',
101
- '#E774BB',
102
- ),
103
- }),
104
- 'accent.magenta.subtler': css({
105
- backgroundColor: token(
106
- 'color.background.accent.magenta.subtler',
107
- '#E774BB',
108
- ),
109
- }),
110
- 'accent.magenta.subtle': css({
111
- backgroundColor: token('color.background.accent.magenta.subtle', '#E774BB'),
112
- }),
113
- 'accent.magenta.bolder': css({
114
- backgroundColor: token('color.background.accent.magenta.bolder', '#E774BB'),
115
- }),
116
- 'accent.gray.subtlest': css({
117
- backgroundColor: token('color.background.accent.gray.subtlest', '#6B778C'),
118
- }),
119
- 'accent.gray.subtler': css({
120
- backgroundColor: token('color.background.accent.gray.subtler', '#5E6C84'),
121
- }),
122
- 'accent.gray.subtle': css({
123
- backgroundColor: token('color.background.accent.gray.subtle', '#42526E'),
124
- }),
125
- 'accent.gray.bolder': css({
126
- backgroundColor: token('color.background.accent.gray.bolder', '#505F79'),
127
- }),
128
- disabled: css({
129
- backgroundColor: token('color.background.disabled', '#091e4289'),
130
- }),
131
- input: css({
132
- backgroundColor: token('color.background.input', '#FAFBFC'),
133
- }),
134
- 'inverse.subtle': css({
135
- backgroundColor: token('color.background.inverse.subtle', '#00000029'),
136
- }),
137
- neutral: css({
138
- backgroundColor: token('color.background.neutral', '#DFE1E6'),
139
- }),
140
- 'neutral.subtle': css({
141
- backgroundColor: token('color.background.neutral.subtle', 'transparent'),
142
- }),
143
- 'neutral.bold': css({
144
- backgroundColor: token('color.background.neutral.bold', '#42526E'),
145
- }),
146
- selected: css({
147
- backgroundColor: token('color.background.selected', '#DEEBFF'),
148
- }),
149
- 'selected.bold': css({
150
- backgroundColor: token('color.background.selected.bold', '#0052CC'),
151
- }),
152
- 'brand.bold': css({
153
- backgroundColor: token('color.background.brand.bold', '#0052CC'),
154
- }),
155
- danger: css({
156
- backgroundColor: token('color.background.danger', '#FFEBE6'),
157
- }),
158
- 'danger.bold': css({
159
- backgroundColor: token('color.background.danger.bold', '#DE350B'),
160
- }),
161
- warning: css({
162
- backgroundColor: token('color.background.warning', '#FFFAE6'),
163
- }),
164
- 'warning.bold': css({
165
- backgroundColor: token('color.background.warning.bold', '#FFAB00'),
166
- }),
167
- success: css({
168
- backgroundColor: token('color.background.success', '#E3FCEF'),
169
- }),
170
- 'success.bold': css({
171
- backgroundColor: token('color.background.success.bold', '#00875A'),
172
- }),
173
- discovery: css({
174
- backgroundColor: token('color.background.discovery', '#EAE6FF'),
175
- }),
176
- 'discovery.bold': css({
177
- backgroundColor: token('color.background.discovery.bold', '#5243AA'),
178
- }),
179
- information: css({
180
- backgroundColor: token('color.background.information', '#DEEBFF'),
181
- }),
182
- 'information.bold': css({
183
- backgroundColor: token('color.background.information.bold', '#0052CC'),
184
- }),
185
- 'color.blanket': css({
186
- backgroundColor: token('color.blanket', '#091e4289'),
187
- }),
188
- 'color.blanket.selected': css({
189
- backgroundColor: token('color.blanket.selected', '#388BFF14'),
190
- }),
191
- 'color.blanket.danger': css({
192
- backgroundColor: token('color.blanket.danger', '#EF5C4814'),
193
- }),
194
- 'elevation.surface': css({
195
- backgroundColor: token('elevation.surface', '#FFFFFF'),
196
- }),
197
- 'elevation.surface.overlay': css({
198
- backgroundColor: token('elevation.surface.overlay', '#FFFFFF'),
199
- }),
200
- 'elevation.surface.raised': css({
201
- backgroundColor: token('elevation.surface.raised', '#FFFFFF'),
202
- }),
203
- 'elevation.surface.sunken': css({
204
- backgroundColor: token('elevation.surface.sunken', '#F4F5F7'),
205
- }),
4
+ "export const backgroundColorMap = {
5
+ 'accent.red.subtlest': token(
6
+ 'color.background.accent.red.subtlest',
7
+ '#FF8F73',
8
+ ),
9
+ 'accent.red.subtler': token('color.background.accent.red.subtler', '#FF7452'),
10
+ 'accent.red.subtle': token('color.background.accent.red.subtle', '#DE350B'),
11
+ 'accent.red.bolder': token('color.background.accent.red.bolder', '#DE350B'),
12
+ 'accent.orange.subtlest': token(
13
+ 'color.background.accent.orange.subtlest',
14
+ '#F18D13',
15
+ ),
16
+ 'accent.orange.subtler': token(
17
+ 'color.background.accent.orange.subtler',
18
+ '#B65C02',
19
+ ),
20
+ 'accent.orange.subtle': token(
21
+ 'color.background.accent.orange.subtle',
22
+ '#5F3811',
23
+ ),
24
+ 'accent.orange.bolder': token(
25
+ 'color.background.accent.orange.bolder',
26
+ '#43290F',
27
+ ),
28
+ 'accent.yellow.subtlest': token(
29
+ 'color.background.accent.yellow.subtlest',
30
+ '#FFE380',
31
+ ),
32
+ 'accent.yellow.subtler': token(
33
+ 'color.background.accent.yellow.subtler',
34
+ '#FFC400',
35
+ ),
36
+ 'accent.yellow.subtle': token(
37
+ 'color.background.accent.yellow.subtle',
38
+ '#FF991F',
39
+ ),
40
+ 'accent.yellow.bolder': token(
41
+ 'color.background.accent.yellow.bolder',
42
+ '#FF991F',
43
+ ),
44
+ 'accent.green.subtlest': token(
45
+ 'color.background.accent.green.subtlest',
46
+ '#79F2C0',
47
+ ),
48
+ 'accent.green.subtler': token(
49
+ 'color.background.accent.green.subtler',
50
+ '#57D9A3',
51
+ ),
52
+ 'accent.green.subtle': token(
53
+ 'color.background.accent.green.subtle',
54
+ '#00875A',
55
+ ),
56
+ 'accent.green.bolder': token(
57
+ 'color.background.accent.green.bolder',
58
+ '#00875A',
59
+ ),
60
+ 'accent.teal.subtlest': token(
61
+ 'color.background.accent.teal.subtlest',
62
+ '#79E2F2',
63
+ ),
64
+ 'accent.teal.subtler': token(
65
+ 'color.background.accent.teal.subtler',
66
+ '#00C7E6',
67
+ ),
68
+ 'accent.teal.subtle': token('color.background.accent.teal.subtle', '#00A3BF'),
69
+ 'accent.teal.bolder': token('color.background.accent.teal.bolder', '#00A3BF'),
70
+ 'accent.blue.subtlest': token(
71
+ 'color.background.accent.blue.subtlest',
72
+ '#4C9AFF',
73
+ ),
74
+ 'accent.blue.subtler': token(
75
+ 'color.background.accent.blue.subtler',
76
+ '#2684FF',
77
+ ),
78
+ 'accent.blue.subtle': token('color.background.accent.blue.subtle', '#0052CC'),
79
+ 'accent.blue.bolder': token('color.background.accent.blue.bolder', '#0052CC'),
80
+ 'accent.purple.subtlest': token(
81
+ 'color.background.accent.purple.subtlest',
82
+ '#998DD9',
83
+ ),
84
+ 'accent.purple.subtler': token(
85
+ 'color.background.accent.purple.subtler',
86
+ '#8777D9',
87
+ ),
88
+ 'accent.purple.subtle': token(
89
+ 'color.background.accent.purple.subtle',
90
+ '#5243AA',
91
+ ),
92
+ 'accent.purple.bolder': token(
93
+ 'color.background.accent.purple.bolder',
94
+ '#5243AA',
95
+ ),
96
+ 'accent.magenta.subtlest': token(
97
+ 'color.background.accent.magenta.subtlest',
98
+ '#E774BB',
99
+ ),
100
+ 'accent.magenta.subtler': token(
101
+ 'color.background.accent.magenta.subtler',
102
+ '#E774BB',
103
+ ),
104
+ 'accent.magenta.subtle': token(
105
+ 'color.background.accent.magenta.subtle',
106
+ '#E774BB',
107
+ ),
108
+ 'accent.magenta.bolder': token(
109
+ 'color.background.accent.magenta.bolder',
110
+ '#E774BB',
111
+ ),
112
+ 'accent.gray.subtlest': token(
113
+ 'color.background.accent.gray.subtlest',
114
+ '#6B778C',
115
+ ),
116
+ 'accent.gray.subtler': token(
117
+ 'color.background.accent.gray.subtler',
118
+ '#5E6C84',
119
+ ),
120
+ 'accent.gray.subtle': token('color.background.accent.gray.subtle', '#42526E'),
121
+ 'accent.gray.bolder': token('color.background.accent.gray.bolder', '#505F79'),
122
+ disabled: token('color.background.disabled', '#091e4289'),
123
+ input: token('color.background.input', '#FAFBFC'),
124
+ 'input.hovered': token('color.background.input.hovered', '#EBECF0'),
125
+ 'input.pressed': token('color.background.input.pressed', '#FFFFFF'),
126
+ 'inverse.subtle': token('color.background.inverse.subtle', '#00000029'),
127
+ 'inverse.subtle.hovered': token(
128
+ 'color.background.inverse.subtle.hovered',
129
+ '#0000003D',
130
+ ),
131
+ 'inverse.subtle.pressed': token(
132
+ 'color.background.inverse.subtle.pressed',
133
+ '#00000052',
134
+ ),
135
+ neutral: token('color.background.neutral', '#DFE1E6'),
136
+ 'neutral.hovered': token('color.background.neutral.hovered', '#091e4214'),
137
+ 'neutral.pressed': token('color.background.neutral.pressed', '#B3D4FF'),
138
+ 'neutral.subtle': token('color.background.neutral.subtle', 'transparent'),
139
+ 'neutral.subtle.hovered': token(
140
+ 'color.background.neutral.subtle.hovered',
141
+ '#091e4214',
142
+ ),
143
+ 'neutral.subtle.pressed': token(
144
+ 'color.background.neutral.subtle.pressed',
145
+ '#B3D4FF',
146
+ ),
147
+ 'neutral.bold': token('color.background.neutral.bold', '#42526E'),
148
+ 'neutral.bold.hovered': token(
149
+ 'color.background.neutral.bold.hovered',
150
+ '#505F79',
151
+ ),
152
+ 'neutral.bold.pressed': token(
153
+ 'color.background.neutral.bold.pressed',
154
+ '#344563',
155
+ ),
156
+ selected: token('color.background.selected', '#DEEBFF'),
157
+ 'selected.hovered': token('color.background.selected.hovered', '#B3D4FF'),
158
+ 'selected.pressed': token('color.background.selected.pressed', '#4C9AFF'),
159
+ 'selected.bold': token('color.background.selected.bold', '#0052CC'),
160
+ 'selected.bold.hovered': token(
161
+ 'color.background.selected.bold.hovered',
162
+ '#2684FF',
163
+ ),
164
+ 'selected.bold.pressed': token(
165
+ 'color.background.selected.bold.pressed',
166
+ '#0052CC',
167
+ ),
168
+ 'brand.bold': token('color.background.brand.bold', '#0052CC'),
169
+ 'brand.bold.hovered': token('color.background.brand.bold.hovered', '#0065FF'),
170
+ 'brand.bold.pressed': token('color.background.brand.bold.pressed', '#0747A6'),
171
+ danger: token('color.background.danger', '#FFEBE6'),
172
+ 'danger.hovered': token('color.background.danger.hovered', '#FFBDAD'),
173
+ 'danger.pressed': token('color.background.danger.pressed', '#FF8F73'),
174
+ 'danger.bold': token('color.background.danger.bold', '#DE350B'),
175
+ 'danger.bold.hovered': token(
176
+ 'color.background.danger.bold.hovered',
177
+ '#FF5630',
178
+ ),
179
+ 'danger.bold.pressed': token(
180
+ 'color.background.danger.bold.pressed',
181
+ '#BF2600',
182
+ ),
183
+ warning: token('color.background.warning', '#FFFAE6'),
184
+ 'warning.hovered': token('color.background.warning.hovered', '#FFF0B3'),
185
+ 'warning.pressed': token('color.background.warning.pressed', '#FFE380'),
186
+ 'warning.bold': token('color.background.warning.bold', '#FFAB00'),
187
+ 'warning.bold.hovered': token(
188
+ 'color.background.warning.bold.hovered',
189
+ '#FFC400',
190
+ ),
191
+ 'warning.bold.pressed': token(
192
+ 'color.background.warning.bold.pressed',
193
+ '#FF991F',
194
+ ),
195
+ success: token('color.background.success', '#E3FCEF'),
196
+ 'success.hovered': token('color.background.success.hovered', '#ABF5D1'),
197
+ 'success.pressed': token('color.background.success.pressed', '#79F2C0'),
198
+ 'success.bold': token('color.background.success.bold', '#00875A'),
199
+ 'success.bold.hovered': token(
200
+ 'color.background.success.bold.hovered',
201
+ '#57D9A3',
202
+ ),
203
+ 'success.bold.pressed': token(
204
+ 'color.background.success.bold.pressed',
205
+ '#00875A',
206
+ ),
207
+ discovery: token('color.background.discovery', '#EAE6FF'),
208
+ 'discovery.hovered': token('color.background.discovery.hovered', '#C0B6F2'),
209
+ 'discovery.pressed': token('color.background.discovery.pressed', '#998DD9'),
210
+ 'discovery.bold': token('color.background.discovery.bold', '#5243AA'),
211
+ 'discovery.bold.hovered': token(
212
+ 'color.background.discovery.bold.hovered',
213
+ '#8777D9',
214
+ ),
215
+ 'discovery.bold.pressed': token(
216
+ 'color.background.discovery.bold.pressed',
217
+ '#5243AA',
218
+ ),
219
+ information: token('color.background.information', '#DEEBFF'),
220
+ 'information.hovered': token(
221
+ 'color.background.information.hovered',
222
+ '#B3D4FF',
223
+ ),
224
+ 'information.pressed': token(
225
+ 'color.background.information.pressed',
226
+ '#4C9AFF',
227
+ ),
228
+ 'information.bold': token('color.background.information.bold', '#0052CC'),
229
+ 'information.bold.hovered': token(
230
+ 'color.background.information.bold.hovered',
231
+ '#2684FF',
232
+ ),
233
+ 'information.bold.pressed': token(
234
+ 'color.background.information.bold.pressed',
235
+ '#0052CC',
236
+ ),
237
+ 'color.blanket': token('color.blanket', '#091e4289'),
238
+ 'color.blanket.selected': token('color.blanket.selected', '#388BFF14'),
239
+ 'color.blanket.danger': token('color.blanket.danger', '#EF5C4814'),
240
+ 'elevation.surface': token('elevation.surface', '#FFFFFF'),
241
+ 'elevation.surface.hovered': token('elevation.surface.hovered', '#FAFBFC'),
242
+ 'elevation.surface.pressed': token('elevation.surface.pressed', '#F4F5F7'),
243
+ 'elevation.surface.overlay': token('elevation.surface.overlay', '#FFFFFF'),
244
+ 'elevation.surface.overlay.hovered': token(
245
+ 'elevation.surface.overlay.hovered',
246
+ '#FAFBFC',
247
+ ),
248
+ 'elevation.surface.overlay.pressed': token(
249
+ 'elevation.surface.overlay.pressed',
250
+ '#F4F5F7',
251
+ ),
252
+ 'elevation.surface.raised': token('elevation.surface.raised', '#FFFFFF'),
253
+ 'elevation.surface.raised.hovered': token(
254
+ 'elevation.surface.raised.hovered',
255
+ '#FAFBFC',
256
+ ),
257
+ 'elevation.surface.raised.pressed': token(
258
+ 'elevation.surface.raised.pressed',
259
+ '#F4F5F7',
260
+ ),
261
+ 'elevation.surface.sunken': token('elevation.surface.sunken', '#F4F5F7'),
206
262
  } as const;
207
263
 
208
264
  export type BackgroundColor = keyof typeof backgroundColorMap;
@@ -210,73 +266,29 @@ export type BackgroundColor = keyof typeof backgroundColorMap;
210
266
  `;
211
267
 
212
268
  exports[`@atlaskit/primitives border styles are generated correctly 1`] = `
213
- "const borderColorMap = {
214
- 'color.border': css({
215
- borderColor: token('color.border', '#091e4221'),
216
- }),
217
- 'accent.red': css({
218
- borderColor: token('color.border.accent.red', '#FF5630'),
219
- }),
220
- 'accent.orange': css({
221
- borderColor: token('color.border.accent.orange', '#D94008'),
222
- }),
223
- 'accent.yellow': css({
224
- borderColor: token('color.border.accent.yellow', '#FFAB00'),
225
- }),
226
- 'accent.green': css({
227
- borderColor: token('color.border.accent.green', '#36B37E'),
228
- }),
229
- 'accent.teal': css({
230
- borderColor: token('color.border.accent.teal', '#00B8D9'),
231
- }),
232
- 'accent.blue': css({
233
- borderColor: token('color.border.accent.blue', '#0065FF'),
234
- }),
235
- 'accent.purple': css({
236
- borderColor: token('color.border.accent.purple', '#6554C0'),
237
- }),
238
- 'accent.magenta': css({
239
- borderColor: token('color.border.accent.magenta', '#CD519D'),
240
- }),
241
- 'accent.gray': css({
242
- borderColor: token('color.border.accent.gray', '#5E6C84'),
243
- }),
244
- disabled: css({
245
- borderColor: token('color.border.disabled', '#FAFBFC'),
246
- }),
247
- focused: css({
248
- borderColor: token('color.border.focused', '#4C9AFF'),
249
- }),
250
- input: css({
251
- borderColor: token('color.border.input', '#FAFBFC'),
252
- }),
253
- inverse: css({
254
- borderColor: token('color.border.inverse', '#FFFFFF'),
255
- }),
256
- selected: css({
257
- borderColor: token('color.border.selected', '#0052CC'),
258
- }),
259
- brand: css({
260
- borderColor: token('color.border.brand', '#0052CC'),
261
- }),
262
- danger: css({
263
- borderColor: token('color.border.danger', '#FF5630'),
264
- }),
265
- warning: css({
266
- borderColor: token('color.border.warning', '#FFC400'),
267
- }),
268
- success: css({
269
- borderColor: token('color.border.success', '#00875A'),
270
- }),
271
- discovery: css({
272
- borderColor: token('color.border.discovery', '#998DD9'),
273
- }),
274
- information: css({
275
- borderColor: token('color.border.information', '#0065FF'),
276
- }),
277
- bold: css({
278
- borderColor: token('color.border.bold', '#344563'),
279
- }),
269
+ "export const borderColorMap = {
270
+ 'color.border': token('color.border', '#091e4221'),
271
+ 'accent.red': token('color.border.accent.red', '#FF5630'),
272
+ 'accent.orange': token('color.border.accent.orange', '#D94008'),
273
+ 'accent.yellow': token('color.border.accent.yellow', '#FFAB00'),
274
+ 'accent.green': token('color.border.accent.green', '#36B37E'),
275
+ 'accent.teal': token('color.border.accent.teal', '#00B8D9'),
276
+ 'accent.blue': token('color.border.accent.blue', '#0065FF'),
277
+ 'accent.purple': token('color.border.accent.purple', '#6554C0'),
278
+ 'accent.magenta': token('color.border.accent.magenta', '#CD519D'),
279
+ 'accent.gray': token('color.border.accent.gray', '#5E6C84'),
280
+ disabled: token('color.border.disabled', '#FAFBFC'),
281
+ focused: token('color.border.focused', '#4C9AFF'),
282
+ input: token('color.border.input', '#FAFBFC'),
283
+ inverse: token('color.border.inverse', '#FFFFFF'),
284
+ selected: token('color.border.selected', '#0052CC'),
285
+ brand: token('color.border.brand', '#0052CC'),
286
+ danger: token('color.border.danger', '#FF5630'),
287
+ warning: token('color.border.warning', '#FFC400'),
288
+ success: token('color.border.success', '#00875A'),
289
+ discovery: token('color.border.discovery', '#998DD9'),
290
+ information: token('color.border.information', '#0065FF'),
291
+ bold: token('color.border.bold', '#344563'),
280
292
  } as const;
281
293
 
282
294
  export type BorderColor = keyof typeof borderColorMap;
@@ -284,100 +296,38 @@ export type BorderColor = keyof typeof borderColorMap;
284
296
  `;
285
297
 
286
298
  exports[`@atlaskit/primitives text styles are generated correctly 1`] = `
287
- "const textColorMap = {
288
- 'color.text': css({
289
- color: token('color.text', '#172B4D'),
290
- }),
291
- 'accent.red': css({
292
- color: token('color.text.accent.red', '#DE350B'),
293
- }),
294
- 'accent.red.bolder': css({
295
- color: token('color.text.accent.red.bolder', '#BF2600'),
296
- }),
297
- 'accent.orange': css({
298
- color: token('color.text.accent.orange', '#F18D13'),
299
- }),
300
- 'accent.orange.bolder': css({
301
- color: token('color.text.accent.orange.bolder', '#B65C02'),
302
- }),
303
- 'accent.yellow': css({
304
- color: token('color.text.accent.yellow', '#FF991F'),
305
- }),
306
- 'accent.yellow.bolder': css({
307
- color: token('color.text.accent.yellow.bolder', '#FF8B00'),
308
- }),
309
- 'accent.green': css({
310
- color: token('color.text.accent.green', '#00875A'),
311
- }),
312
- 'accent.green.bolder': css({
313
- color: token('color.text.accent.green.bolder', '#006644'),
314
- }),
315
- 'accent.teal': css({
316
- color: token('color.text.accent.teal', '#00A3BF'),
317
- }),
318
- 'accent.teal.bolder': css({
319
- color: token('color.text.accent.teal.bolder', '#008DA6'),
320
- }),
321
- 'accent.blue': css({
322
- color: token('color.text.accent.blue', '#0052CC'),
323
- }),
324
- 'accent.blue.bolder': css({
325
- color: token('color.text.accent.blue.bolder', '#0747A6'),
326
- }),
327
- 'accent.purple': css({
328
- color: token('color.text.accent.purple', '#5243AA'),
329
- }),
330
- 'accent.purple.bolder': css({
331
- color: token('color.text.accent.purple.bolder', '#403294'),
332
- }),
333
- 'accent.magenta': css({
334
- color: token('color.text.accent.magenta', '#E774BB'),
335
- }),
336
- 'accent.magenta.bolder': css({
337
- color: token('color.text.accent.magenta.bolder', '#DA62AC'),
338
- }),
339
- 'accent.gray': css({
340
- color: token('color.text.accent.gray', '#505F79'),
341
- }),
342
- 'accent.gray.bolder': css({
343
- color: token('color.text.accent.gray.bolder', '#172B4D'),
344
- }),
345
- disabled: css({
346
- color: token('color.text.disabled', '#A5ADBA'),
347
- }),
348
- inverse: css({
349
- color: token('color.text.inverse', '#FFFFFF'),
350
- }),
351
- selected: css({
352
- color: token('color.text.selected', '#0052CC'),
353
- }),
354
- brand: css({
355
- color: token('color.text.brand', '#0065FF'),
356
- }),
357
- danger: css({
358
- color: token('color.text.danger', '#DE350B'),
359
- }),
360
- warning: css({
361
- color: token('color.text.warning', '#974F0C'),
362
- }),
363
- 'warning.inverse': css({
364
- color: token('color.text.warning.inverse', '#172B4D'),
365
- }),
366
- success: css({
367
- color: token('color.text.success', '#006644'),
368
- }),
369
- discovery: css({
370
- color: token('color.text.discovery', '#403294'),
371
- }),
372
- information: css({
373
- color: token('color.text.information', '#0052CC'),
374
- }),
375
- subtlest: css({
376
- color: token('color.text.subtlest', '#7A869A'),
377
- }),
378
- subtle: css({
379
- color: token('color.text.subtle', '#42526E'),
380
- }),
299
+ "export const textColorMap = {
300
+ 'color.text': token('color.text', '#172B4D'),
301
+ 'accent.red': token('color.text.accent.red', '#DE350B'),
302
+ 'accent.red.bolder': token('color.text.accent.red.bolder', '#BF2600'),
303
+ 'accent.orange': token('color.text.accent.orange', '#F18D13'),
304
+ 'accent.orange.bolder': token('color.text.accent.orange.bolder', '#B65C02'),
305
+ 'accent.yellow': token('color.text.accent.yellow', '#FF991F'),
306
+ 'accent.yellow.bolder': token('color.text.accent.yellow.bolder', '#FF8B00'),
307
+ 'accent.green': token('color.text.accent.green', '#00875A'),
308
+ 'accent.green.bolder': token('color.text.accent.green.bolder', '#006644'),
309
+ 'accent.teal': token('color.text.accent.teal', '#00A3BF'),
310
+ 'accent.teal.bolder': token('color.text.accent.teal.bolder', '#008DA6'),
311
+ 'accent.blue': token('color.text.accent.blue', '#0052CC'),
312
+ 'accent.blue.bolder': token('color.text.accent.blue.bolder', '#0747A6'),
313
+ 'accent.purple': token('color.text.accent.purple', '#5243AA'),
314
+ 'accent.purple.bolder': token('color.text.accent.purple.bolder', '#403294'),
315
+ 'accent.magenta': token('color.text.accent.magenta', '#E774BB'),
316
+ 'accent.magenta.bolder': token('color.text.accent.magenta.bolder', '#DA62AC'),
317
+ 'accent.gray': token('color.text.accent.gray', '#505F79'),
318
+ 'accent.gray.bolder': token('color.text.accent.gray.bolder', '#172B4D'),
319
+ disabled: token('color.text.disabled', '#A5ADBA'),
320
+ inverse: token('color.text.inverse', '#FFFFFF'),
321
+ selected: token('color.text.selected', '#0052CC'),
322
+ brand: token('color.text.brand', '#0065FF'),
323
+ danger: token('color.text.danger', '#DE350B'),
324
+ warning: token('color.text.warning', '#974F0C'),
325
+ 'warning.inverse': token('color.text.warning.inverse', '#172B4D'),
326
+ success: token('color.text.success', '#006644'),
327
+ discovery: token('color.text.discovery', '#403294'),
328
+ information: token('color.text.information', '#0052CC'),
329
+ subtlest: token('color.text.subtlest', '#7A869A'),
330
+ subtle: token('color.text.subtle', '#42526E'),
381
331
  } as const;
382
332
 
383
333
  export type TextColor = keyof typeof textColorMap;