@atlaskit/button 16.1.2 → 16.1.6

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.
@@ -1,5 +1,4 @@
1
1
  import * as colors from '@atlaskit/theme/colors';
2
- import { token } from '@atlaskit/tokens';
3
2
  // Hard coding the active rgba color value rather than using a helper to convert it
4
3
  // With helper it would be: hex2rgba(colors.B75, 0.6)
5
4
  var fadedB75 = 'rgba(179, 212, 255, 0.6)';
@@ -8,106 +7,106 @@ var values = {
8
7
  background: {
9
8
  default: {
10
9
  default: {
11
- light: token('color.background.subtleNeutral.resting', colors.N20A),
12
- dark: token('color.background.subtleNeutral.resting', colors.DN70)
10
+ light: "var(--ds-background-neutral, ".concat(colors.N20A, ")"),
11
+ dark: "var(--ds-background-neutral, ".concat(colors.DN70, ")")
13
12
  },
14
13
  hover: {
15
- light: token('color.background.subtleNeutral.hover', colors.N30A),
16
- dark: token('color.background.subtleNeutral.hover', colors.DN60)
14
+ light: "var(--ds-background-neutral-hovered, ".concat(colors.N30A, ")"),
15
+ dark: "var(--ds-background-neutral-hovered, ".concat(colors.DN60, ")")
17
16
  },
18
17
  active: {
19
- light: token('color.background.subtleNeutral.pressed', fadedB75),
20
- dark: token('color.background.subtleNeutral.pressed', colors.B75)
18
+ light: "var(--ds-background-neutral-pressed, ".concat(fadedB75, ")"),
19
+ dark: "var(--ds-background-neutral-pressed, ".concat(colors.B75, ")")
21
20
  },
22
21
  disabled: {
23
- light: token('color.background.disabled', colors.N20A),
24
- dark: token('color.background.disabled', colors.DN70)
22
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
23
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
25
24
  },
26
25
  selected: {
27
- light: token('color.background.selected.resting', colors.N700),
28
- dark: token('color.background.selected.resting', colors.DN0)
26
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
27
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
29
28
  },
30
29
  focusSelected: {
31
- light: token('color.background.selected.resting', colors.N700),
32
- dark: token('color.background.selected.resting', colors.DN0)
30
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
31
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
33
32
  }
34
33
  },
35
34
  primary: {
36
35
  default: {
37
- light: token('color.background.boldBrand.resting', colors.B400),
38
- dark: token('color.background.boldBrand.resting', colors.B100)
36
+ light: "var(--ds-background-brand-bold, ".concat(colors.B400, ")"),
37
+ dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
39
38
  },
40
39
  hover: {
41
- light: token('color.background.boldBrand.hover', colors.B300),
42
- dark: token('color.background.boldBrand.hover', colors.B75)
40
+ light: "var(--ds-background-brand-bold-hovered, ".concat(colors.B300, ")"),
41
+ dark: "var(--ds-background-brand-bold-hovered, ".concat(colors.B75, ")")
43
42
  },
44
43
  active: {
45
- light: token('color.background.boldBrand.pressed', colors.B500),
46
- dark: token('color.background.boldBrand.pressed', colors.B200)
44
+ light: "var(--ds-background-brand-bold-pressed, ".concat(colors.B500, ")"),
45
+ dark: "var(--ds-background-brand-bold-pressed, ".concat(colors.B200, ")")
47
46
  },
48
47
  disabled: {
49
- light: token('color.background.disabled', colors.N20A),
50
- dark: token('color.background.disabled', colors.DN70)
48
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
49
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
51
50
  },
52
51
  selected: {
53
- light: token('color.background.selected.resting', colors.N700),
54
- dark: token('color.background.selected.resting', colors.DN0)
52
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
53
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
55
54
  },
56
55
  focusSelected: {
57
- light: token('color.background.selected.resting', colors.N700),
58
- dark: token('color.background.selected.resting', colors.DN0)
56
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
57
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
59
58
  }
60
59
  },
61
60
  warning: {
62
61
  default: {
63
- light: token('color.background.boldWarning.resting', colors.Y300),
64
- dark: token('color.background.boldWarning.resting', colors.Y300)
62
+ light: "var(--ds-background-warning-bold, ".concat(colors.Y300, ")"),
63
+ dark: "var(--ds-background-warning-bold, ".concat(colors.Y300, ")")
65
64
  },
66
65
  hover: {
67
- light: token('color.background.boldWarning.hover', colors.Y200),
68
- dark: token('color.background.boldWarning.hover', colors.Y200)
66
+ light: "var(--ds-background-warning-bold-hovered, ".concat(colors.Y200, ")"),
67
+ dark: "var(--ds-background-warning-bold-hovered, ".concat(colors.Y200, ")")
69
68
  },
70
69
  active: {
71
- light: token('color.background.boldWarning.pressed', colors.Y400),
72
- dark: token('color.background.boldWarning.pressed', colors.Y400)
70
+ light: "var(--ds-background-warning-bold-pressed, ".concat(colors.Y400, ")"),
71
+ dark: "var(--ds-background-warning-bold-pressed, ".concat(colors.Y400, ")")
73
72
  },
74
73
  disabled: {
75
- light: token('color.background.disabled', colors.N20A),
76
- dark: token('color.background.disabled', colors.DN70)
74
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
75
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
77
76
  },
78
77
  selected: {
79
- light: token('color.background.selected.resting', colors.Y400),
80
- dark: token('color.background.selected.resting', colors.Y400)
78
+ light: "var(--ds-background-brand, ".concat(colors.Y400, ")"),
79
+ dark: "var(--ds-background-brand, ".concat(colors.Y400, ")")
81
80
  },
82
81
  focusSelected: {
83
- light: token('color.background.selected.resting', colors.Y400),
84
- dark: token('color.background.selected.resting', colors.Y400)
82
+ light: "var(--ds-background-brand, ".concat(colors.Y400, ")"),
83
+ dark: "var(--ds-background-brand, ".concat(colors.Y400, ")")
85
84
  }
86
85
  },
87
86
  danger: {
88
87
  default: {
89
- light: token('color.background.boldDanger.resting', colors.R400),
90
- dark: token('color.background.boldDanger.resting', colors.R400)
88
+ light: "var(--ds-background-danger-bold, ".concat(colors.R400, ")"),
89
+ dark: "var(--ds-background-danger-bold, ".concat(colors.R400, ")")
91
90
  },
92
91
  hover: {
93
- light: token('color.background.boldDanger.hover', colors.R300),
94
- dark: token('color.background.boldDanger.hover', colors.R300)
92
+ light: "var(--ds-background-danger-bold-hovered, ".concat(colors.R300, ")"),
93
+ dark: "var(--ds-background-danger-bold-hovered, ".concat(colors.R300, ")")
95
94
  },
96
95
  active: {
97
- light: token('color.background.boldDanger.pressed', colors.R500),
98
- dark: token('color.background.boldDanger.pressed', colors.R500)
96
+ light: "var(--ds-background-danger-bold-pressed, ".concat(colors.R500, ")"),
97
+ dark: "var(--ds-background-danger-bold-pressed, ".concat(colors.R500, ")")
99
98
  },
100
99
  disabled: {
101
- light: token('color.background.disabled', colors.N20A),
102
- dark: token('color.background.disabled', colors.DN70)
100
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
101
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
103
102
  },
104
103
  selected: {
105
- light: token('color.background.selected.resting', colors.R500),
106
- dark: token('color.background.selected.resting', colors.R500)
104
+ light: "var(--ds-background-brand, ".concat(colors.R500, ")"),
105
+ dark: "var(--ds-background-brand, ".concat(colors.R500, ")")
107
106
  },
108
107
  focusSelected: {
109
- light: token('color.background.selected.resting', colors.R500),
110
- dark: token('color.background.selected.resting', colors.R500)
108
+ light: "var(--ds-background-brand, ".concat(colors.R500, ")"),
109
+ dark: "var(--ds-background-brand, ".concat(colors.R500, ")")
111
110
  }
112
111
  },
113
112
  link: {
@@ -116,12 +115,12 @@ var values = {
116
115
  dark: 'none'
117
116
  },
118
117
  selected: {
119
- light: token('color.background.selected.resting', colors.N700),
120
- dark: token('color.background.selected.resting', colors.N20)
118
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
119
+ dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
121
120
  },
122
121
  focusSelected: {
123
- light: token('color.background.selected.resting', colors.N700),
124
- dark: token('color.background.selected.resting', colors.N20)
122
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
123
+ dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
125
124
  }
126
125
  },
127
126
  subtle: {
@@ -130,24 +129,24 @@ var values = {
130
129
  dark: 'none'
131
130
  },
132
131
  hover: {
133
- light: token('color.background.transparentNeutral.hover', colors.N30A),
134
- dark: token('color.background.transparentNeutral.hover', colors.DN60)
132
+ light: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30A, ")"),
133
+ dark: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.DN60, ")")
135
134
  },
136
135
  active: {
137
- light: token('color.background.transparentNeutral.pressed', fadedB75),
138
- dark: token('color.background.transparentNeutral.pressed', colors.B75)
136
+ light: "var(--ds-background-neutral-subtle-pressed, ".concat(fadedB75, ")"),
137
+ dark: "var(--ds-background-neutral-subtle-pressed, ".concat(colors.B75, ")")
139
138
  },
140
139
  disabled: {
141
140
  light: 'none',
142
141
  dark: 'none'
143
142
  },
144
143
  selected: {
145
- light: token('color.background.selected.resting', colors.N700),
146
- dark: token('color.background.selected.resting', colors.DN0)
144
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
145
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
147
146
  },
148
147
  focusSelected: {
149
- light: token('color.background.selected.resting', colors.N700),
150
- dark: token('color.background.selected.resting', colors.DN0)
148
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
149
+ dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
151
150
  }
152
151
  },
153
152
  'subtle-link': {
@@ -156,236 +155,236 @@ var values = {
156
155
  dark: 'none'
157
156
  },
158
157
  selected: {
159
- light: token('color.background.selected.resting', colors.N700),
160
- dark: token('color.background.selected.resting', colors.N20)
158
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
159
+ dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
161
160
  },
162
161
  focusSelected: {
163
- light: token('color.background.selected.resting', colors.N700),
164
- dark: token('color.background.selected.resting', colors.N20)
162
+ light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
163
+ dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
165
164
  }
166
165
  }
167
166
  },
168
167
  boxShadowColor: {
169
168
  default: {
170
169
  focus: {
171
- light: token('color.border.focus', colors.B100),
172
- dark: token('color.border.focus', colors.B75)
170
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
171
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
173
172
  },
174
173
  focusSelected: {
175
- light: token('color.border.focus', colors.B100),
176
- dark: token('color.border.focus', colors.B75)
174
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
175
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
177
176
  }
178
177
  },
179
178
  primary: {
180
179
  focus: {
181
- light: token('color.border.focus', colors.B100),
182
- dark: token('color.border.focus', colors.B75)
180
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
181
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
183
182
  },
184
183
  focusSelected: {
185
- light: token('color.border.focus', colors.B100),
186
- dark: token('color.border.focus', colors.B75)
184
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
185
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
187
186
  }
188
187
  },
189
188
  warning: {
190
189
  focus: {
191
- light: token('color.border.focus', colors.Y500),
192
- dark: token('color.border.focus', colors.Y500)
190
+ light: "var(--ds-border-focused, ".concat(colors.Y500, ")"),
191
+ dark: "var(--ds-border-focused, ".concat(colors.Y500, ")")
193
192
  },
194
193
  focusSelected: {
195
- light: token('color.border.focus', colors.Y500),
196
- dark: token('color.border.focus', colors.Y500)
194
+ light: "var(--ds-border-focused, ".concat(colors.Y500, ")"),
195
+ dark: "var(--ds-border-focused, ".concat(colors.Y500, ")")
197
196
  }
198
197
  },
199
198
  danger: {
200
199
  focus: {
201
- light: token('color.border.focus', colors.R100),
202
- dark: token('color.border.focus', colors.R100)
200
+ light: "var(--ds-border-focused, ".concat(colors.R100, ")"),
201
+ dark: "var(--ds-border-focused, ".concat(colors.R100, ")")
203
202
  },
204
203
  focusSelected: {
205
- light: token('color.border.focus', colors.R100),
206
- dark: token('color.border.focus', colors.R100)
204
+ light: "var(--ds-border-focused, ".concat(colors.R100, ")"),
205
+ dark: "var(--ds-border-focused, ".concat(colors.R100, ")")
207
206
  }
208
207
  },
209
208
  link: {
210
209
  focus: {
211
- light: token('color.border.focus', colors.B100),
212
- dark: token('color.border.focus', colors.B75)
210
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
211
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
213
212
  },
214
213
  focusSelected: {
215
- light: token('color.border.focus', colors.B100),
216
- dark: token('color.border.focus', colors.B75)
214
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
215
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
217
216
  }
218
217
  },
219
218
  subtle: {
220
219
  focus: {
221
- light: token('color.border.focus', colors.B100),
222
- dark: token('color.border.focus', colors.B75)
220
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
221
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
223
222
  },
224
223
  focusSelected: {
225
- light: token('color.border.focus', colors.B100),
226
- dark: token('color.border.focus', colors.B75)
224
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
225
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
227
226
  }
228
227
  },
229
228
  'subtle-link': {
230
229
  focus: {
231
- light: token('color.border.focus', colors.B100),
232
- dark: token('color.border.focus', colors.B75)
230
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
231
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
233
232
  },
234
233
  focusSelected: {
235
- light: token('color.border.focus', colors.B100),
236
- dark: token('color.border.focus', colors.B75)
234
+ light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
235
+ dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
237
236
  }
238
237
  }
239
238
  },
240
239
  color: {
241
240
  default: {
242
241
  default: {
243
- light: token('color.text.highEmphasis', colors.N500),
244
- dark: token('color.text.highEmphasis', colors.DN400)
242
+ light: "var(--ds-text, ".concat(colors.N500, ")"),
243
+ dark: "var(--ds-text, ".concat(colors.DN400, ")")
245
244
  },
246
245
  active: {
247
- light: token('color.text.highEmphasis', colors.B400),
248
- dark: token('color.text.highEmphasis', colors.B400)
246
+ light: "var(--ds-text, ".concat(colors.B400, ")"),
247
+ dark: "var(--ds-text, ".concat(colors.B400, ")")
249
248
  },
250
249
  disabled: {
251
- light: token('color.text.disabled', colors.N70),
252
- dark: token('color.text.disabled', colors.DN30)
250
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
251
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
253
252
  },
254
253
  selected: {
255
- light: token('color.text.selected', colors.N20),
256
- dark: token('color.text.selected', colors.DN400)
254
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
255
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
257
256
  },
258
257
  focusSelected: {
259
- light: token('color.text.selected', colors.N20),
260
- dark: token('color.text.selected', colors.DN400)
258
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
259
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
261
260
  }
262
261
  },
263
262
  primary: {
264
263
  default: {
265
- light: token('color.text.onBold', colors.N0),
266
- dark: token('color.text.onBold', colors.DN30)
264
+ light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
265
+ dark: "var(--ds-text-inverse, ".concat(colors.DN30, ")")
267
266
  },
268
267
  disabled: {
269
- light: token('color.text.disabled', colors.N70),
270
- dark: token('color.text.disabled', colors.DN30)
268
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
269
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
271
270
  },
272
271
  selected: {
273
- light: token('color.text.selected', colors.N20),
274
- dark: token('color.text.selected', colors.DN400)
272
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
273
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
275
274
  },
276
275
  focusSelected: {
277
- light: token('color.text.selected', colors.N20),
278
- dark: token('color.text.selected', colors.DN400)
276
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
277
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
279
278
  }
280
279
  },
281
280
  warning: {
282
281
  default: {
283
- light: token('color.text.onBoldWarning', colors.N800),
284
- dark: token('color.text.onBoldWarning', colors.N800)
282
+ light: "var(--ds-text-warning-inverse, ".concat(colors.N800, ")"),
283
+ dark: "var(--ds-text-warning-inverse, ".concat(colors.N800, ")")
285
284
  },
286
285
  disabled: {
287
- light: token('color.text.disabled', colors.N70),
288
- dark: token('color.text.disabled', colors.DN30)
286
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
287
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
289
288
  },
290
289
  selected: {
291
- light: token('color.text.selected', colors.N800),
292
- dark: token('color.text.selected', colors.N800)
290
+ light: "var(--ds-text-brand, ".concat(colors.N800, ")"),
291
+ dark: "var(--ds-text-brand, ".concat(colors.N800, ")")
293
292
  },
294
293
  focusSelected: {
295
- light: token('color.text.selected', colors.N800),
296
- dark: token('color.text.selected', colors.N800)
294
+ light: "var(--ds-text-brand, ".concat(colors.N800, ")"),
295
+ dark: "var(--ds-text-brand, ".concat(colors.N800, ")")
297
296
  }
298
297
  },
299
298
  danger: {
300
299
  default: {
301
- light: token('color.text.onBold', colors.N0),
302
- dark: token('color.text.onBold', colors.N0)
300
+ light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
301
+ dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
303
302
  },
304
303
  disabled: {
305
- light: token('color.text.disabled', colors.N70),
306
- dark: token('color.text.disabled', colors.DN30)
304
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
305
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
307
306
  },
308
307
  selected: {
309
- light: token('color.text.selected', colors.N0),
310
- dark: token('color.text.selected', colors.N0)
308
+ light: "var(--ds-text-brand, ".concat(colors.N0, ")"),
309
+ dark: "var(--ds-text-brand, ".concat(colors.N0, ")")
311
310
  },
312
311
  focusSelected: {
313
- light: token('color.text.selected', colors.N0),
314
- dark: token('color.text.selected', colors.N0)
312
+ light: "var(--ds-text-brand, ".concat(colors.N0, ")"),
313
+ dark: "var(--ds-text-brand, ".concat(colors.N0, ")")
315
314
  }
316
315
  },
317
316
  link: {
318
317
  default: {
319
- light: token('color.text.link.resting', colors.B400),
320
- dark: token('color.text.link.resting', colors.B100)
318
+ light: "var(--ds-link, ".concat(colors.B400, ")"),
319
+ dark: "var(--ds-link, ".concat(colors.B100, ")")
321
320
  },
322
321
  hover: {
323
- light: token('color.text.link.resting', colors.B300),
324
- dark: token('color.text.link.resting', colors.B75)
322
+ light: "var(--ds-link, ".concat(colors.B300, ")"),
323
+ dark: "var(--ds-link, ".concat(colors.B75, ")")
325
324
  },
326
325
  active: {
327
- light: token('color.text.link.pressed', colors.B500),
328
- dark: token('color.text.link.pressed', colors.B200)
326
+ light: "var(--ds-link-pressed, ".concat(colors.B500, ")"),
327
+ dark: "var(--ds-link-pressed, ".concat(colors.B200, ")")
329
328
  },
330
329
  disabled: {
331
- light: token('color.text.disabled', colors.N70),
332
- dark: token('color.text.disabled', colors.DN100)
330
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
331
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
333
332
  },
334
333
  selected: {
335
- light: token('color.text.selected', colors.N20),
336
- dark: token('color.text.selected', colors.N700)
334
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
335
+ dark: "var(--ds-text-brand, ".concat(colors.N700, ")")
337
336
  },
338
337
  focusSelected: {
339
- light: token('color.text.selected', colors.N20),
340
- dark: token('color.text.selected', colors.N700)
338
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
339
+ dark: "var(--ds-text-brand, ".concat(colors.N700, ")")
341
340
  }
342
341
  },
343
342
  subtle: {
344
343
  default: {
345
- light: token('color.text.highEmphasis', colors.N500),
346
- dark: token('color.text.highEmphasis', colors.DN400)
344
+ light: "var(--ds-text, ".concat(colors.N500, ")"),
345
+ dark: "var(--ds-text, ".concat(colors.DN400, ")")
347
346
  },
348
347
  active: {
349
- light: token('color.text.highEmphasis', colors.B400),
350
- dark: token('color.text.highEmphasis', colors.B400)
348
+ light: "var(--ds-text, ".concat(colors.B400, ")"),
349
+ dark: "var(--ds-text, ".concat(colors.B400, ")")
351
350
  },
352
351
  disabled: {
353
- light: token('color.text.disabled', colors.N70),
354
- dark: token('color.text.disabled', colors.DN100)
352
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
353
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
355
354
  },
356
355
  selected: {
357
- light: token('color.text.selected', colors.N20),
358
- dark: token('color.text.selected', colors.DN400)
356
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
357
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
359
358
  },
360
359
  focusSelected: {
361
- light: token('color.text.selected', colors.N20),
362
- dark: token('color.text.selected', colors.DN400)
360
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
361
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
363
362
  }
364
363
  },
365
364
  'subtle-link': {
366
365
  default: {
367
- light: token('color.text.mediumEmphasis', colors.N200),
368
- dark: token('color.text.mediumEmphasis', colors.DN400)
366
+ light: "var(--ds-text-subtle, ".concat(colors.N200, ")"),
367
+ dark: "var(--ds-text-subtle, ".concat(colors.DN400, ")")
369
368
  },
370
369
  hover: {
371
- light: token('color.text.mediumEmphasis', colors.N90),
372
- dark: token('color.text.mediumEmphasis', colors.B50)
370
+ light: "var(--ds-text-subtle, ".concat(colors.N90, ")"),
371
+ dark: "var(--ds-text-subtle, ".concat(colors.B50, ")")
373
372
  },
374
373
  active: {
375
- light: token('color.text.highEmphasis', colors.N400),
376
- dark: token('color.text.highEmphasis', colors.DN300)
374
+ light: "var(--ds-text, ".concat(colors.N400, ")"),
375
+ dark: "var(--ds-text, ".concat(colors.DN300, ")")
377
376
  },
378
377
  disabled: {
379
- light: token('color.text.disabled', colors.N70),
380
- dark: token('color.text.disabled', colors.DN100)
378
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
379
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
381
380
  },
382
381
  selected: {
383
- light: token('color.text.selected', colors.N20),
384
- dark: token('color.text.selected', colors.DN400)
382
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
383
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
385
384
  },
386
385
  focusSelected: {
387
- light: token('color.text.selected', colors.N20),
388
- dark: token('color.text.selected', colors.DN400)
386
+ light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
387
+ dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
389
388
  }
390
389
  }
391
390
  }
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
 
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
 
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
 
7
7
  import { borderRadius as getBorderRadius, fontSize as getFontSize, gridSize as getGridSize } from '@atlaskit/theme/constants';
8
8
  import colors from './colors';
@@ -1,4 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
+ var _excluded = ["spacing"];
2
3
  import React from 'react';
3
4
  import Spinner from '@atlaskit/spinner';
4
5
 
@@ -25,7 +26,7 @@ function getSpinnerAppearance(_ref) {
25
26
  export default function LoadingSpinner(_ref2) {
26
27
  var _ref2$spacing = _ref2.spacing,
27
28
  spacing = _ref2$spacing === void 0 ? 'default' : _ref2$spacing,
28
- rest = _objectWithoutProperties(_ref2, ["spacing"]);
29
+ rest = _objectWithoutProperties(_ref2, _excluded);
29
30
 
30
31
  var size = spacing === 'default' ? 'medium' : 'small';
31
32
  return /*#__PURE__*/React.createElement(Spinner, {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/button",
3
- "version": "16.1.2",
3
+ "version": "16.1.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BaseProps } from '../types';
2
3
  declare type Props = Pick<BaseProps, 'appearance' | 'isDisabled' | 'isSelected' | 'spacing'>;
3
4
  export default function LoadingSpinner({ spacing, ...rest }: Props): JSX.Element;