@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.
- package/.eslintrc.js +3 -0
- package/CHANGELOG.md +14 -0
- package/dist/cjs/components/box.js +3 -40
- package/dist/cjs/components/inline.partial.js +24 -91
- package/dist/cjs/components/internal/base-box.js +61 -0
- package/dist/cjs/components/stack.partial.js +24 -47
- package/dist/cjs/internal/style-maps.partial.js +370 -0
- package/dist/cjs/internal/xcss.js +17 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.js +1 -37
- package/dist/es2019/components/inline.partial.js +20 -63
- package/dist/es2019/components/internal/base-box.js +52 -0
- package/dist/es2019/components/stack.partial.js +20 -19
- package/dist/es2019/internal/style-maps.partial.js +341 -0
- package/dist/es2019/internal/xcss.js +13 -7
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.js +2 -40
- package/dist/esm/components/inline.partial.js +23 -91
- package/dist/esm/components/internal/base-box.js +53 -0
- package/dist/esm/components/stack.partial.js +23 -47
- package/dist/esm/internal/style-maps.partial.js +340 -0
- package/dist/esm/internal/xcss.js +17 -7
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.d.ts +2 -3
- package/dist/types/components/inline.partial.d.ts +23 -37
- package/dist/types/components/internal/base-box.d.ts +83 -0
- package/dist/types/components/stack.partial.d.ts +21 -19
- package/dist/types/components/types.d.ts +1 -47
- package/dist/types/internal/style-maps.partial.d.ts +396 -0
- package/dist/types/internal/xcss.d.ts +5 -5
- package/package.json +3 -3
- package/report.api.md +228 -394
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +313 -363
- package/scripts/border-codegen-template.tsx +79 -0
- package/scripts/codegen-file-templates/align-self.tsx +9 -0
- package/scripts/codegen-file-templates/border-style.tsx +6 -0
- package/scripts/codegen-file-templates/dimensions.tsx +17 -0
- package/scripts/codegen-file-templates/display.tsx +6 -0
- package/scripts/codegen-file-templates/flex-grow.tsx +6 -0
- package/scripts/codegen-file-templates/flex-shrink.tsx +6 -0
- package/scripts/codegen-file-templates/flex.tsx +5 -0
- package/scripts/codegen-file-templates/layer.tsx +13 -0
- package/scripts/codegen-file-templates/overflow.tsx +20 -0
- package/scripts/codegen-file-templates/position.tsx +8 -0
- package/scripts/codegen-styles.tsx +80 -120
- package/scripts/color-codegen-template.tsx +9 -19
- package/scripts/misc-codegen-template.tsx +20 -40
- package/scripts/spacing-codegen-template.tsx +22 -29
- package/scripts/utils.tsx +15 -4
- package/tmp/api-report-tmp.d.ts +223 -381
- package/dist/cjs/components/internal/base-box.partial.js +0 -843
- package/dist/cjs/components/internal/types.js +0 -8
- package/dist/cjs/components/internal/utils.js +0 -16
- package/dist/cjs/internal/color-map.js +0 -42
- package/dist/cjs/internal/style-maps.js +0 -130
- package/dist/es2019/components/internal/base-box.partial.js +0 -838
- package/dist/es2019/components/internal/types.js +0 -1
- package/dist/es2019/components/internal/utils.js +0 -2
- package/dist/es2019/internal/color-map.js +0 -35
- package/dist/es2019/internal/style-maps.js +0 -117
- package/dist/esm/components/internal/base-box.partial.js +0 -838
- package/dist/esm/components/internal/types.js +0 -1
- package/dist/esm/components/internal/utils.js +0 -7
- package/dist/esm/internal/color-map.js +0 -35
- package/dist/esm/internal/style-maps.js +0 -117
- package/dist/types/components/internal/base-box.partial.d.ts +0 -522
- package/dist/types/components/internal/types.d.ts +0 -8
- package/dist/types/components/internal/utils.d.ts +0 -3
- package/dist/types/internal/color-map.d.ts +0 -36
- package/dist/types/internal/style-maps.d.ts +0 -151
- package/scripts/color-map-template.tsx +0 -52
- 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':
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'accent.red.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'accent.yellow.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'accent.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'accent.green.bolder':
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
'accent.teal.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'accent.blue.subtler':
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
'accent.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
'accent.purple.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
'accent.magenta.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
'accent.gray.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
'
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
neutral:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
'neutral.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
'
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
'
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
'
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
'
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
'
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
'
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
'
|
|
204
|
-
|
|
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':
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
'accent.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
'accent.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
'accent.
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
'
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
'
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
'
|
|
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':
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
'accent.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
'accent.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
'accent.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
'accent.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
'accent.
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
'accent.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
'
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
'
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
'
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
'
|
|
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;
|