@atlaskit/button 16.1.1 → 16.1.5

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.
@@ -9,121 +9,118 @@ exports.default = void 0;
9
9
 
10
10
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
11
11
 
12
- var _tokens = require("@atlaskit/tokens");
13
-
14
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
13
 
16
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
15
 
18
16
  // Hard coding the active rgba color value rather than using a helper to convert it
19
17
  // With helper it would be: hex2rgba(colors.B75, 0.6)
20
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
21
18
  var fadedB75 = 'rgba(179, 212, 255, 0.6)';
22
19
  var values = {
23
20
  // Default appearance
24
21
  background: {
25
22
  default: {
26
23
  default: {
27
- light: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.N20A),
28
- dark: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.DN70)
24
+ light: "var(--ds-background-subtleNeutral-resting, ".concat(colors.N20A, ")"),
25
+ dark: "var(--ds-background-subtleNeutral-resting, ".concat(colors.DN70, ")")
29
26
  },
30
27
  hover: {
31
- light: (0, _tokens.token)('color.background.subtleNeutral.hover', colors.N30A),
32
- dark: (0, _tokens.token)('color.background.subtleNeutral.hover', colors.DN60)
28
+ light: "var(--ds-background-subtleNeutral-hover, ".concat(colors.N30A, ")"),
29
+ dark: "var(--ds-background-subtleNeutral-hover, ".concat(colors.DN60, ")")
33
30
  },
34
31
  active: {
35
- light: (0, _tokens.token)('color.background.subtleNeutral.pressed', fadedB75),
36
- dark: (0, _tokens.token)('color.background.subtleNeutral.pressed', colors.B75)
32
+ light: "var(--ds-background-subtleNeutral-pressed, ".concat(fadedB75, ")"),
33
+ dark: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.B75, ")")
37
34
  },
38
35
  disabled: {
39
- light: (0, _tokens.token)('color.background.disabled', colors.N20A),
40
- dark: (0, _tokens.token)('color.background.disabled', colors.DN70)
36
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
37
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
41
38
  },
42
39
  selected: {
43
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
44
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
40
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
41
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
45
42
  },
46
43
  focusSelected: {
47
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
48
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
44
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
45
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
49
46
  }
50
47
  },
51
48
  primary: {
52
49
  default: {
53
- light: (0, _tokens.token)('color.background.boldBrand.resting', colors.B400),
54
- dark: (0, _tokens.token)('color.background.boldBrand.resting', colors.B100)
50
+ light: "var(--ds-background-boldBrand-resting, ".concat(colors.B400, ")"),
51
+ dark: "var(--ds-background-boldBrand-resting, ".concat(colors.B100, ")")
55
52
  },
56
53
  hover: {
57
- light: (0, _tokens.token)('color.background.boldBrand.hover', colors.B300),
58
- dark: (0, _tokens.token)('color.background.boldBrand.hover', colors.B75)
54
+ light: "var(--ds-background-boldBrand-hover, ".concat(colors.B300, ")"),
55
+ dark: "var(--ds-background-boldBrand-hover, ".concat(colors.B75, ")")
59
56
  },
60
57
  active: {
61
- light: (0, _tokens.token)('color.background.boldBrand.pressed', colors.B500),
62
- dark: (0, _tokens.token)('color.background.boldBrand.pressed', colors.B200)
58
+ light: "var(--ds-background-boldBrand-pressed, ".concat(colors.B500, ")"),
59
+ dark: "var(--ds-background-boldBrand-pressed, ".concat(colors.B200, ")")
63
60
  },
64
61
  disabled: {
65
- light: (0, _tokens.token)('color.background.disabled', colors.N20A),
66
- dark: (0, _tokens.token)('color.background.disabled', colors.DN70)
62
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
63
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
67
64
  },
68
65
  selected: {
69
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
70
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
66
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
67
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
71
68
  },
72
69
  focusSelected: {
73
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
74
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
70
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
71
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
75
72
  }
76
73
  },
77
74
  warning: {
78
75
  default: {
79
- light: (0, _tokens.token)('color.background.boldWarning.resting', colors.Y300),
80
- dark: (0, _tokens.token)('color.background.boldWarning.resting', colors.Y300)
76
+ light: "var(--ds-background-boldWarning-resting, ".concat(colors.Y300, ")"),
77
+ dark: "var(--ds-background-boldWarning-resting, ".concat(colors.Y300, ")")
81
78
  },
82
79
  hover: {
83
- light: (0, _tokens.token)('color.background.boldWarning.hover', colors.Y200),
84
- dark: (0, _tokens.token)('color.background.boldWarning.hover', colors.Y200)
80
+ light: "var(--ds-background-boldWarning-hover, ".concat(colors.Y200, ")"),
81
+ dark: "var(--ds-background-boldWarning-hover, ".concat(colors.Y200, ")")
85
82
  },
86
83
  active: {
87
- light: (0, _tokens.token)('color.background.boldWarning.pressed', colors.Y400),
88
- dark: (0, _tokens.token)('color.background.boldWarning.pressed', colors.Y400)
84
+ light: "var(--ds-background-boldWarning-pressed, ".concat(colors.Y400, ")"),
85
+ dark: "var(--ds-background-boldWarning-pressed, ".concat(colors.Y400, ")")
89
86
  },
90
87
  disabled: {
91
- light: (0, _tokens.token)('color.background.disabled', colors.N20A),
92
- dark: (0, _tokens.token)('color.background.disabled', colors.DN70)
88
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
89
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
93
90
  },
94
91
  selected: {
95
- light: (0, _tokens.token)('color.background.selected.resting', colors.Y400),
96
- dark: (0, _tokens.token)('color.background.selected.resting', colors.Y400)
92
+ light: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")"),
93
+ dark: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")")
97
94
  },
98
95
  focusSelected: {
99
- light: (0, _tokens.token)('color.background.selected.resting', colors.Y400),
100
- dark: (0, _tokens.token)('color.background.selected.resting', colors.Y400)
96
+ light: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")"),
97
+ dark: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")")
101
98
  }
102
99
  },
103
100
  danger: {
104
101
  default: {
105
- light: (0, _tokens.token)('color.background.boldDanger.resting', colors.R400),
106
- dark: (0, _tokens.token)('color.background.boldDanger.resting', colors.R400)
102
+ light: "var(--ds-background-boldDanger-resting, ".concat(colors.R400, ")"),
103
+ dark: "var(--ds-background-boldDanger-resting, ".concat(colors.R400, ")")
107
104
  },
108
105
  hover: {
109
- light: (0, _tokens.token)('color.background.boldDanger.hover', colors.R300),
110
- dark: (0, _tokens.token)('color.background.boldDanger.hover', colors.R300)
106
+ light: "var(--ds-background-boldDanger-hover, ".concat(colors.R300, ")"),
107
+ dark: "var(--ds-background-boldDanger-hover, ".concat(colors.R300, ")")
111
108
  },
112
109
  active: {
113
- light: (0, _tokens.token)('color.background.boldDanger.pressed', colors.R500),
114
- dark: (0, _tokens.token)('color.background.boldDanger.pressed', colors.R500)
110
+ light: "var(--ds-background-boldDanger-pressed, ".concat(colors.R500, ")"),
111
+ dark: "var(--ds-background-boldDanger-pressed, ".concat(colors.R500, ")")
115
112
  },
116
113
  disabled: {
117
- light: (0, _tokens.token)('color.background.disabled', colors.N20A),
118
- dark: (0, _tokens.token)('color.background.disabled', colors.DN70)
114
+ light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
115
+ dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
119
116
  },
120
117
  selected: {
121
- light: (0, _tokens.token)('color.background.selected.resting', colors.R500),
122
- dark: (0, _tokens.token)('color.background.selected.resting', colors.R500)
118
+ light: "var(--ds-background-selected-resting, ".concat(colors.R500, ")"),
119
+ dark: "var(--ds-background-selected-resting, ".concat(colors.R500, ")")
123
120
  },
124
121
  focusSelected: {
125
- light: (0, _tokens.token)('color.background.selected.resting', colors.R500),
126
- dark: (0, _tokens.token)('color.background.selected.resting', colors.R500)
122
+ light: "var(--ds-background-selected-resting, ".concat(colors.R500, ")"),
123
+ dark: "var(--ds-background-selected-resting, ".concat(colors.R500, ")")
127
124
  }
128
125
  },
129
126
  link: {
@@ -132,12 +129,12 @@ var values = {
132
129
  dark: 'none'
133
130
  },
134
131
  selected: {
135
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
136
- dark: (0, _tokens.token)('color.background.selected.resting', colors.N20)
132
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
133
+ dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
137
134
  },
138
135
  focusSelected: {
139
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
140
- dark: (0, _tokens.token)('color.background.selected.resting', colors.N20)
136
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
137
+ dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
141
138
  }
142
139
  },
143
140
  subtle: {
@@ -146,24 +143,24 @@ var values = {
146
143
  dark: 'none'
147
144
  },
148
145
  hover: {
149
- light: (0, _tokens.token)('color.background.transparentNeutral.hover', colors.N30A),
150
- dark: (0, _tokens.token)('color.background.transparentNeutral.hover', colors.DN60)
146
+ light: "var(--ds-background-transparentNeutral-hover, ".concat(colors.N30A, ")"),
147
+ dark: "var(--ds-background-transparentNeutral-hover, ".concat(colors.DN60, ")")
151
148
  },
152
149
  active: {
153
- light: (0, _tokens.token)('color.background.transparentNeutral.pressed', fadedB75),
154
- dark: (0, _tokens.token)('color.background.transparentNeutral.pressed', colors.B75)
150
+ light: "var(--ds-background-transparentNeutral-pressed, ".concat(fadedB75, ")"),
151
+ dark: "var(--ds-background-transparentNeutral-pressed, ".concat(colors.B75, ")")
155
152
  },
156
153
  disabled: {
157
154
  light: 'none',
158
155
  dark: 'none'
159
156
  },
160
157
  selected: {
161
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
162
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
158
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
159
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
163
160
  },
164
161
  focusSelected: {
165
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
166
- dark: (0, _tokens.token)('color.background.selected.resting', colors.DN0)
162
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
163
+ dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
167
164
  }
168
165
  },
169
166
  'subtle-link': {
@@ -172,236 +169,236 @@ var values = {
172
169
  dark: 'none'
173
170
  },
174
171
  selected: {
175
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
176
- dark: (0, _tokens.token)('color.background.selected.resting', colors.N20)
172
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
173
+ dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
177
174
  },
178
175
  focusSelected: {
179
- light: (0, _tokens.token)('color.background.selected.resting', colors.N700),
180
- dark: (0, _tokens.token)('color.background.selected.resting', colors.N20)
176
+ light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
177
+ dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
181
178
  }
182
179
  }
183
180
  },
184
181
  boxShadowColor: {
185
182
  default: {
186
183
  focus: {
187
- light: (0, _tokens.token)('color.border.focus', colors.B100),
188
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
184
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
185
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
189
186
  },
190
187
  focusSelected: {
191
- light: (0, _tokens.token)('color.border.focus', colors.B100),
192
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
188
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
189
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
193
190
  }
194
191
  },
195
192
  primary: {
196
193
  focus: {
197
- light: (0, _tokens.token)('color.border.focus', colors.B100),
198
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
194
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
195
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
199
196
  },
200
197
  focusSelected: {
201
- light: (0, _tokens.token)('color.border.focus', colors.B100),
202
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
198
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
199
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
203
200
  }
204
201
  },
205
202
  warning: {
206
203
  focus: {
207
- light: (0, _tokens.token)('color.border.focus', colors.Y500),
208
- dark: (0, _tokens.token)('color.border.focus', colors.Y500)
204
+ light: "var(--ds-border-focus, ".concat(colors.Y500, ")"),
205
+ dark: "var(--ds-border-focus, ".concat(colors.Y500, ")")
209
206
  },
210
207
  focusSelected: {
211
- light: (0, _tokens.token)('color.border.focus', colors.Y500),
212
- dark: (0, _tokens.token)('color.border.focus', colors.Y500)
208
+ light: "var(--ds-border-focus, ".concat(colors.Y500, ")"),
209
+ dark: "var(--ds-border-focus, ".concat(colors.Y500, ")")
213
210
  }
214
211
  },
215
212
  danger: {
216
213
  focus: {
217
- light: (0, _tokens.token)('color.border.focus', colors.R100),
218
- dark: (0, _tokens.token)('color.border.focus', colors.R100)
214
+ light: "var(--ds-border-focus, ".concat(colors.R100, ")"),
215
+ dark: "var(--ds-border-focus, ".concat(colors.R100, ")")
219
216
  },
220
217
  focusSelected: {
221
- light: (0, _tokens.token)('color.border.focus', colors.R100),
222
- dark: (0, _tokens.token)('color.border.focus', colors.R100)
218
+ light: "var(--ds-border-focus, ".concat(colors.R100, ")"),
219
+ dark: "var(--ds-border-focus, ".concat(colors.R100, ")")
223
220
  }
224
221
  },
225
222
  link: {
226
223
  focus: {
227
- light: (0, _tokens.token)('color.border.focus', colors.B100),
228
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
224
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
225
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
229
226
  },
230
227
  focusSelected: {
231
- light: (0, _tokens.token)('color.border.focus', colors.B100),
232
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
228
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
229
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
233
230
  }
234
231
  },
235
232
  subtle: {
236
233
  focus: {
237
- light: (0, _tokens.token)('color.border.focus', colors.B100),
238
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
234
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
235
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
239
236
  },
240
237
  focusSelected: {
241
- light: (0, _tokens.token)('color.border.focus', colors.B100),
242
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
238
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
239
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
243
240
  }
244
241
  },
245
242
  'subtle-link': {
246
243
  focus: {
247
- light: (0, _tokens.token)('color.border.focus', colors.B100),
248
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
244
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
245
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
249
246
  },
250
247
  focusSelected: {
251
- light: (0, _tokens.token)('color.border.focus', colors.B100),
252
- dark: (0, _tokens.token)('color.border.focus', colors.B75)
248
+ light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
249
+ dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
253
250
  }
254
251
  }
255
252
  },
256
253
  color: {
257
254
  default: {
258
255
  default: {
259
- light: (0, _tokens.token)('color.text.highEmphasis', colors.N500),
260
- dark: (0, _tokens.token)('color.text.highEmphasis', colors.DN400)
256
+ light: "var(--ds-text-highEmphasis, ".concat(colors.N500, ")"),
257
+ dark: "var(--ds-text-highEmphasis, ".concat(colors.DN400, ")")
261
258
  },
262
259
  active: {
263
- light: (0, _tokens.token)('color.text.highEmphasis', colors.B400),
264
- dark: (0, _tokens.token)('color.text.highEmphasis', colors.B400)
260
+ light: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")"),
261
+ dark: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")")
265
262
  },
266
263
  disabled: {
267
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
268
- dark: (0, _tokens.token)('color.text.disabled', colors.DN30)
264
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
265
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
269
266
  },
270
267
  selected: {
271
- light: (0, _tokens.token)('color.text.selected', colors.N20),
272
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
268
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
269
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
273
270
  },
274
271
  focusSelected: {
275
- light: (0, _tokens.token)('color.text.selected', colors.N20),
276
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
272
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
273
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
277
274
  }
278
275
  },
279
276
  primary: {
280
277
  default: {
281
- light: (0, _tokens.token)('color.text.onBold', colors.N0),
282
- dark: (0, _tokens.token)('color.text.onBold', colors.DN30)
278
+ light: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
279
+ dark: "var(--ds-text-onBold, ".concat(colors.DN30, ")")
283
280
  },
284
281
  disabled: {
285
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
286
- dark: (0, _tokens.token)('color.text.disabled', colors.DN30)
282
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
283
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
287
284
  },
288
285
  selected: {
289
- light: (0, _tokens.token)('color.text.selected', colors.N20),
290
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
286
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
287
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
291
288
  },
292
289
  focusSelected: {
293
- light: (0, _tokens.token)('color.text.selected', colors.N20),
294
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
290
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
291
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
295
292
  }
296
293
  },
297
294
  warning: {
298
295
  default: {
299
- light: (0, _tokens.token)('color.text.onBoldWarning', colors.N800),
300
- dark: (0, _tokens.token)('color.text.onBoldWarning', colors.N800)
296
+ light: "var(--ds-text-onBoldWarning, ".concat(colors.N800, ")"),
297
+ dark: "var(--ds-text-onBoldWarning, ".concat(colors.N800, ")")
301
298
  },
302
299
  disabled: {
303
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
304
- dark: (0, _tokens.token)('color.text.disabled', colors.DN30)
300
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
301
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
305
302
  },
306
303
  selected: {
307
- light: (0, _tokens.token)('color.text.selected', colors.N800),
308
- dark: (0, _tokens.token)('color.text.selected', colors.N800)
304
+ light: "var(--ds-text-selected, ".concat(colors.N800, ")"),
305
+ dark: "var(--ds-text-selected, ".concat(colors.N800, ")")
309
306
  },
310
307
  focusSelected: {
311
- light: (0, _tokens.token)('color.text.selected', colors.N800),
312
- dark: (0, _tokens.token)('color.text.selected', colors.N800)
308
+ light: "var(--ds-text-selected, ".concat(colors.N800, ")"),
309
+ dark: "var(--ds-text-selected, ".concat(colors.N800, ")")
313
310
  }
314
311
  },
315
312
  danger: {
316
313
  default: {
317
- light: (0, _tokens.token)('color.text.onBold', colors.N0),
318
- dark: (0, _tokens.token)('color.text.onBold', colors.N0)
314
+ light: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
315
+ dark: "var(--ds-text-onBold, ".concat(colors.N0, ")")
319
316
  },
320
317
  disabled: {
321
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
322
- dark: (0, _tokens.token)('color.text.disabled', colors.DN30)
318
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
319
+ dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
323
320
  },
324
321
  selected: {
325
- light: (0, _tokens.token)('color.text.selected', colors.N0),
326
- dark: (0, _tokens.token)('color.text.selected', colors.N0)
322
+ light: "var(--ds-text-selected, ".concat(colors.N0, ")"),
323
+ dark: "var(--ds-text-selected, ".concat(colors.N0, ")")
327
324
  },
328
325
  focusSelected: {
329
- light: (0, _tokens.token)('color.text.selected', colors.N0),
330
- dark: (0, _tokens.token)('color.text.selected', colors.N0)
326
+ light: "var(--ds-text-selected, ".concat(colors.N0, ")"),
327
+ dark: "var(--ds-text-selected, ".concat(colors.N0, ")")
331
328
  }
332
329
  },
333
330
  link: {
334
331
  default: {
335
- light: (0, _tokens.token)('color.text.link.resting', colors.B400),
336
- dark: (0, _tokens.token)('color.text.link.resting', colors.B100)
332
+ light: "var(--ds-text-link-resting, ".concat(colors.B400, ")"),
333
+ dark: "var(--ds-text-link-resting, ".concat(colors.B100, ")")
337
334
  },
338
335
  hover: {
339
- light: (0, _tokens.token)('color.text.link.resting', colors.B300),
340
- dark: (0, _tokens.token)('color.text.link.resting', colors.B75)
336
+ light: "var(--ds-text-link-resting, ".concat(colors.B300, ")"),
337
+ dark: "var(--ds-text-link-resting, ".concat(colors.B75, ")")
341
338
  },
342
339
  active: {
343
- light: (0, _tokens.token)('color.text.link.pressed', colors.B500),
344
- dark: (0, _tokens.token)('color.text.link.pressed', colors.B200)
340
+ light: "var(--ds-text-link-pressed, ".concat(colors.B500, ")"),
341
+ dark: "var(--ds-text-link-pressed, ".concat(colors.B200, ")")
345
342
  },
346
343
  disabled: {
347
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
348
- dark: (0, _tokens.token)('color.text.disabled', colors.DN100)
344
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
345
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
349
346
  },
350
347
  selected: {
351
- light: (0, _tokens.token)('color.text.selected', colors.N20),
352
- dark: (0, _tokens.token)('color.text.selected', colors.N700)
348
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
349
+ dark: "var(--ds-text-selected, ".concat(colors.N700, ")")
353
350
  },
354
351
  focusSelected: {
355
- light: (0, _tokens.token)('color.text.selected', colors.N20),
356
- dark: (0, _tokens.token)('color.text.selected', colors.N700)
352
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
353
+ dark: "var(--ds-text-selected, ".concat(colors.N700, ")")
357
354
  }
358
355
  },
359
356
  subtle: {
360
357
  default: {
361
- light: (0, _tokens.token)('color.text.highEmphasis', colors.N500),
362
- dark: (0, _tokens.token)('color.text.highEmphasis', colors.DN400)
358
+ light: "var(--ds-text-highEmphasis, ".concat(colors.N500, ")"),
359
+ dark: "var(--ds-text-highEmphasis, ".concat(colors.DN400, ")")
363
360
  },
364
361
  active: {
365
- light: (0, _tokens.token)('color.text.highEmphasis', colors.B400),
366
- dark: (0, _tokens.token)('color.text.highEmphasis', colors.B400)
362
+ light: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")"),
363
+ dark: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")")
367
364
  },
368
365
  disabled: {
369
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
370
- dark: (0, _tokens.token)('color.text.disabled', colors.DN100)
366
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
367
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
371
368
  },
372
369
  selected: {
373
- light: (0, _tokens.token)('color.text.selected', colors.N20),
374
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
370
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
371
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
375
372
  },
376
373
  focusSelected: {
377
- light: (0, _tokens.token)('color.text.selected', colors.N20),
378
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
374
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
375
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
379
376
  }
380
377
  },
381
378
  'subtle-link': {
382
379
  default: {
383
- light: (0, _tokens.token)('color.text.mediumEmphasis', colors.N200),
384
- dark: (0, _tokens.token)('color.text.mediumEmphasis', colors.DN400)
380
+ light: "var(--ds-text-mediumEmphasis, ".concat(colors.N200, ")"),
381
+ dark: "var(--ds-text-mediumEmphasis, ".concat(colors.DN400, ")")
385
382
  },
386
383
  hover: {
387
- light: (0, _tokens.token)('color.text.mediumEmphasis', colors.N90),
388
- dark: (0, _tokens.token)('color.text.mediumEmphasis', colors.B50)
384
+ light: "var(--ds-text-mediumEmphasis, ".concat(colors.N90, ")"),
385
+ dark: "var(--ds-text-mediumEmphasis, ".concat(colors.B50, ")")
389
386
  },
390
387
  active: {
391
- light: (0, _tokens.token)('color.text.highEmphasis', colors.N400),
392
- dark: (0, _tokens.token)('color.text.highEmphasis', colors.DN300)
388
+ light: "var(--ds-text-highEmphasis, ".concat(colors.N400, ")"),
389
+ dark: "var(--ds-text-highEmphasis, ".concat(colors.DN300, ")")
393
390
  },
394
391
  disabled: {
395
- light: (0, _tokens.token)('color.text.disabled', colors.N70),
396
- dark: (0, _tokens.token)('color.text.disabled', colors.DN100)
392
+ light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
393
+ dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
397
394
  },
398
395
  selected: {
399
- light: (0, _tokens.token)('color.text.selected', colors.N20),
400
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
396
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
397
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
401
398
  },
402
399
  focusSelected: {
403
- light: (0, _tokens.token)('color.text.selected', colors.N20),
404
- dark: (0, _tokens.token)('color.text.selected', colors.DN400)
400
+ light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
401
+ dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
405
402
  }
406
403
  }
407
404
  }
@@ -5,10 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.getCss = getCss;
9
- exports.getIconStyle = getIconStyle;
10
8
  exports.getContentStyle = getContentStyle;
9
+ exports.getCss = getCss;
11
10
  exports.getFadingCss = getFadingCss;
11
+ exports.getIconStyle = getIconStyle;
12
12
  exports.overlayCss = void 0;
13
13
 
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
@@ -17,9 +17,9 @@ var _constants = require("@atlaskit/theme/constants");
17
17
 
18
18
  var _colors = _interopRequireDefault(require("./colors"));
19
19
 
20
- 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; }
20
+ 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; }
21
21
 
22
- 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) { (0, _defineProperty2.default)(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; }
22
+ 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) { (0, _defineProperty2.default)(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; }
23
23
 
24
24
  var borderRadius = (0, _constants.borderRadius)();
25
25
  var gridSize = (0, _constants.gridSize)();