@atlaskit/ds-explorations 3.5.1 → 4.0.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 (55) hide show
  1. package/CHANGELOG.md +371 -143
  2. package/dist/cjs/components/interaction-surface.partial.js +2 -2
  3. package/dist/cjs/index.js +0 -7
  4. package/dist/cjs/internal/color-map.js +2 -2
  5. package/dist/es2019/components/interaction-surface.partial.js +2 -2
  6. package/dist/es2019/index.js +0 -1
  7. package/dist/es2019/internal/color-map.js +2 -2
  8. package/dist/esm/components/interaction-surface.partial.js +2 -2
  9. package/dist/esm/index.js +0 -1
  10. package/dist/esm/internal/color-map.js +2 -2
  11. package/dist/types/components/interaction-surface.partial.d.ts +2 -2
  12. package/dist/types/index.d.ts +0 -2
  13. package/dist/types/internal/color-map.d.ts +2 -2
  14. package/dist/types-ts4.5/components/interaction-surface.partial.d.ts +2 -2
  15. package/dist/types-ts4.5/index.d.ts +0 -2
  16. package/dist/types-ts4.5/internal/color-map.d.ts +2 -2
  17. package/examples/99-interactions.tsx +3 -6
  18. package/package.json +8 -9
  19. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +540 -754
  20. package/scripts/codegen-styles.tsx +3 -65
  21. package/scripts/color-codegen-template.tsx +4 -11
  22. package/scripts/color-map-template.tsx +3 -10
  23. package/scripts/dimension-codegen-template.tsx +3 -9
  24. package/scripts/interaction-codegen.tsx +3 -11
  25. package/scripts/misc-codegen-template.tsx +4 -10
  26. package/src/components/__tests__/unit/interaction-suface.test.tsx +1 -2
  27. package/src/components/interaction-surface.partial.tsx +382 -596
  28. package/src/index.tsx +0 -2
  29. package/src/internal/color-map.tsx +29 -29
  30. package/tsconfig.app.json +3 -0
  31. package/tsconfig.dev.json +1 -10
  32. package/dist/cjs/components/text.partial.js +0 -280
  33. package/dist/cjs/internal/spacing-scale.js +0 -15
  34. package/dist/es2019/components/text.partial.js +0 -271
  35. package/dist/es2019/internal/spacing-scale.js +0 -9
  36. package/dist/esm/components/text.partial.js +0 -274
  37. package/dist/esm/internal/spacing-scale.js +0 -9
  38. package/dist/types/components/text.partial.d.ts +0 -157
  39. package/dist/types/internal/spacing-scale.d.ts +0 -9
  40. package/dist/types-ts4.5/components/text.partial.d.ts +0 -162
  41. package/dist/types-ts4.5/internal/spacing-scale.d.ts +0 -24
  42. package/examples/02-text-advanced.tsx +0 -30
  43. package/examples/02-text.tsx +0 -110
  44. package/examples/06-section-message.tsx +0 -82
  45. package/examples/07-comment.tsx +0 -51
  46. package/examples/08-lozenge.tsx +0 -34
  47. package/scripts/spacing-codegen-template.tsx +0 -74
  48. package/scripts/spacing-scale-template.tsx +0 -31
  49. package/scripts/typography-codegen-template.tsx +0 -80
  50. package/src/components/__tests__/unit/text.test.tsx +0 -64
  51. package/src/components/__tests__/vr-tests/__snapshots__/text-snapshot-test/text--default.png +0 -0
  52. package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +0 -6
  53. package/src/components/text.partial.tsx +0 -375
  54. package/src/internal/spacing-scale.tsx +0 -24
  55. package/text/package.json +0 -15
@@ -1,12 +1,12 @@
1
1
  /** @jsx jsx */
2
- import { Fragment, ReactNode, useContext } from 'react';
2
+ import { Fragment, type ReactNode, useContext } from 'react';
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
5
 
6
6
  import { token } from '@atlaskit/tokens';
7
7
 
8
8
  import { SurfaceContext } from './surface-provider';
9
- import { BasePrimitiveProps } from './types';
9
+ import { type BasePrimitiveProps } from './types';
10
10
 
11
11
  const baseStyles = css({
12
12
  position: 'absolute',
@@ -70,608 +70,394 @@ export default InteractionSurface;
70
70
 
71
71
  /**
72
72
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
73
- * @codegen <<SignedSource::89bd3320fce21de26499baab1e0904c8>>
73
+ * @codegen <<SignedSource::700f09143685cc887dba88cc11533b9c>>
74
74
  * @codegenId interactions
75
75
  * @codegenCommand yarn codegen-styles
76
76
  * @codegenParams ["background"]
77
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
77
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
78
78
  */
79
79
  const backgroundActiveColorMap = {
80
- 'accent.lime.subtlest': css({
81
- ':active': {
82
- backgroundColor: token('color.background.accent.lime.subtlest.pressed'),
83
- },
84
- }),
85
- 'accent.lime.subtler': css({
86
- ':active': {
87
- backgroundColor: token('color.background.accent.lime.subtler.pressed'),
88
- },
89
- }),
90
- 'accent.lime.subtle': css({
91
- ':active': {
92
- backgroundColor: token('color.background.accent.lime.subtle.pressed'),
93
- },
94
- }),
95
- 'accent.lime.bolder': css({
96
- ':active': {
97
- backgroundColor: token('color.background.accent.lime.bolder.pressed'),
98
- },
99
- }),
100
- 'accent.red.subtlest': css({
101
- ':active': {
102
- backgroundColor: token('color.background.accent.red.subtlest.pressed'),
103
- },
104
- }),
105
- 'accent.red.subtler': css({
106
- ':active': {
107
- backgroundColor: token('color.background.accent.red.subtler.pressed'),
108
- },
109
- }),
110
- 'accent.red.subtle': css({
111
- ':active': {
112
- backgroundColor: token('color.background.accent.red.subtle.pressed'),
113
- },
114
- }),
115
- 'accent.red.bolder': css({
116
- ':active': {
117
- backgroundColor: token('color.background.accent.red.bolder.pressed'),
118
- },
119
- }),
120
- 'accent.orange.subtlest': css({
121
- ':active': {
122
- backgroundColor: token('color.background.accent.orange.subtlest.pressed'),
123
- },
124
- }),
125
- 'accent.orange.subtler': css({
126
- ':active': {
127
- backgroundColor: token('color.background.accent.orange.subtler.pressed'),
128
- },
129
- }),
130
- 'accent.orange.subtle': css({
131
- ':active': {
132
- backgroundColor: token('color.background.accent.orange.subtle.pressed'),
133
- },
134
- }),
135
- 'accent.orange.bolder': css({
136
- ':active': {
137
- backgroundColor: token('color.background.accent.orange.bolder.pressed'),
138
- },
139
- }),
140
- 'accent.yellow.subtlest': css({
141
- ':active': {
142
- backgroundColor: token('color.background.accent.yellow.subtlest.pressed'),
143
- },
144
- }),
145
- 'accent.yellow.subtler': css({
146
- ':active': {
147
- backgroundColor: token('color.background.accent.yellow.subtler.pressed'),
148
- },
149
- }),
150
- 'accent.yellow.subtle': css({
151
- ':active': {
152
- backgroundColor: token('color.background.accent.yellow.subtle.pressed'),
153
- },
154
- }),
155
- 'accent.yellow.bolder': css({
156
- ':active': {
157
- backgroundColor: token('color.background.accent.yellow.bolder.pressed'),
158
- },
159
- }),
160
- 'accent.green.subtlest': css({
161
- ':active': {
162
- backgroundColor: token('color.background.accent.green.subtlest.pressed'),
163
- },
164
- }),
165
- 'accent.green.subtler': css({
166
- ':active': {
167
- backgroundColor: token('color.background.accent.green.subtler.pressed'),
168
- },
169
- }),
170
- 'accent.green.subtle': css({
171
- ':active': {
172
- backgroundColor: token('color.background.accent.green.subtle.pressed'),
173
- },
174
- }),
175
- 'accent.green.bolder': css({
176
- ':active': {
177
- backgroundColor: token('color.background.accent.green.bolder.pressed'),
178
- },
179
- }),
180
- 'accent.teal.subtlest': css({
181
- ':active': {
182
- backgroundColor: token('color.background.accent.teal.subtlest.pressed'),
183
- },
184
- }),
185
- 'accent.teal.subtler': css({
186
- ':active': {
187
- backgroundColor: token('color.background.accent.teal.subtler.pressed'),
188
- },
189
- }),
190
- 'accent.teal.subtle': css({
191
- ':active': {
192
- backgroundColor: token('color.background.accent.teal.subtle.pressed'),
193
- },
194
- }),
195
- 'accent.teal.bolder': css({
196
- ':active': {
197
- backgroundColor: token('color.background.accent.teal.bolder.pressed'),
198
- },
199
- }),
200
- 'accent.blue.subtlest': css({
201
- ':active': {
202
- backgroundColor: token('color.background.accent.blue.subtlest.pressed'),
203
- },
204
- }),
205
- 'accent.blue.subtler': css({
206
- ':active': {
207
- backgroundColor: token('color.background.accent.blue.subtler.pressed'),
208
- },
209
- }),
210
- 'accent.blue.subtle': css({
211
- ':active': {
212
- backgroundColor: token('color.background.accent.blue.subtle.pressed'),
213
- },
214
- }),
215
- 'accent.blue.bolder': css({
216
- ':active': {
217
- backgroundColor: token('color.background.accent.blue.bolder.pressed'),
218
- },
219
- }),
220
- 'accent.purple.subtlest': css({
221
- ':active': {
222
- backgroundColor: token('color.background.accent.purple.subtlest.pressed'),
223
- },
224
- }),
225
- 'accent.purple.subtler': css({
226
- ':active': {
227
- backgroundColor: token('color.background.accent.purple.subtler.pressed'),
228
- },
229
- }),
230
- 'accent.purple.subtle': css({
231
- ':active': {
232
- backgroundColor: token('color.background.accent.purple.subtle.pressed'),
233
- },
234
- }),
235
- 'accent.purple.bolder': css({
236
- ':active': {
237
- backgroundColor: token('color.background.accent.purple.bolder.pressed'),
238
- },
239
- }),
240
- 'accent.magenta.subtlest': css({
241
- ':active': {
242
- backgroundColor: token(
243
- 'color.background.accent.magenta.subtlest.pressed',
244
- ),
245
- },
246
- }),
247
- 'accent.magenta.subtler': css({
248
- ':active': {
249
- backgroundColor: token('color.background.accent.magenta.subtler.pressed'),
250
- },
251
- }),
252
- 'accent.magenta.subtle': css({
253
- ':active': {
254
- backgroundColor: token('color.background.accent.magenta.subtle.pressed'),
255
- },
256
- }),
257
- 'accent.magenta.bolder': css({
258
- ':active': {
259
- backgroundColor: token('color.background.accent.magenta.bolder.pressed'),
260
- },
261
- }),
262
- 'accent.gray.subtlest': css({
263
- ':active': {
264
- backgroundColor: token('color.background.accent.gray.subtlest.pressed'),
265
- },
266
- }),
267
- 'accent.gray.subtler': css({
268
- ':active': {
269
- backgroundColor: token('color.background.accent.gray.subtler.pressed'),
270
- },
271
- }),
272
- 'accent.gray.subtle': css({
273
- ':active': {
274
- backgroundColor: token('color.background.accent.gray.subtle.pressed'),
275
- },
276
- }),
277
- 'accent.gray.bolder': css({
278
- ':active': {
279
- backgroundColor: token('color.background.accent.gray.bolder.pressed'),
280
- },
281
- }),
282
- input: css({
283
- ':active': { backgroundColor: token('color.background.input.pressed') },
284
- }),
285
- 'inverse.subtle': css({
286
- ':active': {
287
- backgroundColor: token('color.background.inverse.subtle.pressed'),
288
- },
289
- }),
290
- neutral: css({
291
- ':active': { backgroundColor: token('color.background.neutral.pressed') },
292
- }),
293
- 'neutral.subtle': css({
294
- ':active': {
295
- backgroundColor: token('color.background.neutral.subtle.pressed'),
296
- },
297
- }),
298
- 'neutral.bold': css({
299
- ':active': {
300
- backgroundColor: token('color.background.neutral.bold.pressed'),
301
- },
302
- }),
303
- selected: css({
304
- ':active': { backgroundColor: token('color.background.selected.pressed') },
305
- }),
306
- 'selected.bold': css({
307
- ':active': {
308
- backgroundColor: token('color.background.selected.bold.pressed'),
309
- },
310
- }),
311
- 'brand.subtlest': css({
312
- ':active': {
313
- backgroundColor: token('color.background.brand.subtlest.pressed'),
314
- },
315
- }),
316
- 'brand.bold': css({
317
- ':active': {
318
- backgroundColor: token('color.background.brand.bold.pressed'),
319
- },
320
- }),
321
- 'brand.boldest': css({
322
- ':active': {
323
- backgroundColor: token('color.background.brand.boldest.pressed'),
324
- },
325
- }),
326
- danger: css({
327
- ':active': { backgroundColor: token('color.background.danger.pressed') },
328
- }),
329
- 'danger.bold': css({
330
- ':active': {
331
- backgroundColor: token('color.background.danger.bold.pressed'),
332
- },
333
- }),
334
- warning: css({
335
- ':active': { backgroundColor: token('color.background.warning.pressed') },
336
- }),
337
- 'warning.bold': css({
338
- ':active': {
339
- backgroundColor: token('color.background.warning.bold.pressed'),
340
- },
341
- }),
342
- success: css({
343
- ':active': { backgroundColor: token('color.background.success.pressed') },
344
- }),
345
- 'success.bold': css({
346
- ':active': {
347
- backgroundColor: token('color.background.success.bold.pressed'),
348
- },
349
- }),
350
- discovery: css({
351
- ':active': { backgroundColor: token('color.background.discovery.pressed') },
352
- }),
353
- 'discovery.bold': css({
354
- ':active': {
355
- backgroundColor: token('color.background.discovery.bold.pressed'),
356
- },
357
- }),
358
- information: css({
359
- ':active': {
360
- backgroundColor: token('color.background.information.pressed'),
361
- },
362
- }),
363
- 'information.bold': css({
364
- ':active': {
365
- backgroundColor: token('color.background.information.bold.pressed'),
366
- },
367
- }),
368
- 'elevation.surface': css({
369
- ':active': { backgroundColor: token('elevation.surface.pressed') },
370
- }),
371
- 'elevation.surface.overlay': css({
372
- ':active': { backgroundColor: token('elevation.surface.overlay.pressed') },
373
- }),
374
- 'elevation.surface.raised': css({
375
- ':active': { backgroundColor: token('elevation.surface.raised.pressed') },
376
- }),
80
+ 'accent.lime.subtlest': css({
81
+ ':active': { backgroundColor: token('color.background.accent.lime.subtlest.pressed') },
82
+ }),
83
+ 'accent.lime.subtler': css({
84
+ ':active': { backgroundColor: token('color.background.accent.lime.subtler.pressed') },
85
+ }),
86
+ 'accent.lime.subtle': css({
87
+ ':active': { backgroundColor: token('color.background.accent.lime.subtle.pressed') },
88
+ }),
89
+ 'accent.lime.bolder': css({
90
+ ':active': { backgroundColor: token('color.background.accent.lime.bolder.pressed') },
91
+ }),
92
+ 'accent.red.subtlest': css({
93
+ ':active': { backgroundColor: token('color.background.accent.red.subtlest.pressed') },
94
+ }),
95
+ 'accent.red.subtler': css({
96
+ ':active': { backgroundColor: token('color.background.accent.red.subtler.pressed') },
97
+ }),
98
+ 'accent.red.subtle': css({
99
+ ':active': { backgroundColor: token('color.background.accent.red.subtle.pressed') },
100
+ }),
101
+ 'accent.red.bolder': css({
102
+ ':active': { backgroundColor: token('color.background.accent.red.bolder.pressed') },
103
+ }),
104
+ 'accent.orange.subtlest': css({
105
+ ':active': { backgroundColor: token('color.background.accent.orange.subtlest.pressed') },
106
+ }),
107
+ 'accent.orange.subtler': css({
108
+ ':active': { backgroundColor: token('color.background.accent.orange.subtler.pressed') },
109
+ }),
110
+ 'accent.orange.subtle': css({
111
+ ':active': { backgroundColor: token('color.background.accent.orange.subtle.pressed') },
112
+ }),
113
+ 'accent.orange.bolder': css({
114
+ ':active': { backgroundColor: token('color.background.accent.orange.bolder.pressed') },
115
+ }),
116
+ 'accent.yellow.subtlest': css({
117
+ ':active': { backgroundColor: token('color.background.accent.yellow.subtlest.pressed') },
118
+ }),
119
+ 'accent.yellow.subtler': css({
120
+ ':active': { backgroundColor: token('color.background.accent.yellow.subtler.pressed') },
121
+ }),
122
+ 'accent.yellow.subtle': css({
123
+ ':active': { backgroundColor: token('color.background.accent.yellow.subtle.pressed') },
124
+ }),
125
+ 'accent.yellow.bolder': css({
126
+ ':active': { backgroundColor: token('color.background.accent.yellow.bolder.pressed') },
127
+ }),
128
+ 'accent.green.subtlest': css({
129
+ ':active': { backgroundColor: token('color.background.accent.green.subtlest.pressed') },
130
+ }),
131
+ 'accent.green.subtler': css({
132
+ ':active': { backgroundColor: token('color.background.accent.green.subtler.pressed') },
133
+ }),
134
+ 'accent.green.subtle': css({
135
+ ':active': { backgroundColor: token('color.background.accent.green.subtle.pressed') },
136
+ }),
137
+ 'accent.green.bolder': css({
138
+ ':active': { backgroundColor: token('color.background.accent.green.bolder.pressed') },
139
+ }),
140
+ 'accent.teal.subtlest': css({
141
+ ':active': { backgroundColor: token('color.background.accent.teal.subtlest.pressed') },
142
+ }),
143
+ 'accent.teal.subtler': css({
144
+ ':active': { backgroundColor: token('color.background.accent.teal.subtler.pressed') },
145
+ }),
146
+ 'accent.teal.subtle': css({
147
+ ':active': { backgroundColor: token('color.background.accent.teal.subtle.pressed') },
148
+ }),
149
+ 'accent.teal.bolder': css({
150
+ ':active': { backgroundColor: token('color.background.accent.teal.bolder.pressed') },
151
+ }),
152
+ 'accent.blue.subtlest': css({
153
+ ':active': { backgroundColor: token('color.background.accent.blue.subtlest.pressed') },
154
+ }),
155
+ 'accent.blue.subtler': css({
156
+ ':active': { backgroundColor: token('color.background.accent.blue.subtler.pressed') },
157
+ }),
158
+ 'accent.blue.subtle': css({
159
+ ':active': { backgroundColor: token('color.background.accent.blue.subtle.pressed') },
160
+ }),
161
+ 'accent.blue.bolder': css({
162
+ ':active': { backgroundColor: token('color.background.accent.blue.bolder.pressed') },
163
+ }),
164
+ 'accent.purple.subtlest': css({
165
+ ':active': { backgroundColor: token('color.background.accent.purple.subtlest.pressed') },
166
+ }),
167
+ 'accent.purple.subtler': css({
168
+ ':active': { backgroundColor: token('color.background.accent.purple.subtler.pressed') },
169
+ }),
170
+ 'accent.purple.subtle': css({
171
+ ':active': { backgroundColor: token('color.background.accent.purple.subtle.pressed') },
172
+ }),
173
+ 'accent.purple.bolder': css({
174
+ ':active': { backgroundColor: token('color.background.accent.purple.bolder.pressed') },
175
+ }),
176
+ 'accent.magenta.subtlest': css({
177
+ ':active': { backgroundColor: token('color.background.accent.magenta.subtlest.pressed') },
178
+ }),
179
+ 'accent.magenta.subtler': css({
180
+ ':active': { backgroundColor: token('color.background.accent.magenta.subtler.pressed') },
181
+ }),
182
+ 'accent.magenta.subtle': css({
183
+ ':active': { backgroundColor: token('color.background.accent.magenta.subtle.pressed') },
184
+ }),
185
+ 'accent.magenta.bolder': css({
186
+ ':active': { backgroundColor: token('color.background.accent.magenta.bolder.pressed') },
187
+ }),
188
+ 'accent.gray.subtlest': css({
189
+ ':active': { backgroundColor: token('color.background.accent.gray.subtlest.pressed') },
190
+ }),
191
+ 'accent.gray.subtler': css({
192
+ ':active': { backgroundColor: token('color.background.accent.gray.subtler.pressed') },
193
+ }),
194
+ 'accent.gray.subtle': css({
195
+ ':active': { backgroundColor: token('color.background.accent.gray.subtle.pressed') },
196
+ }),
197
+ 'accent.gray.bolder': css({
198
+ ':active': { backgroundColor: token('color.background.accent.gray.bolder.pressed') },
199
+ }),
200
+ input: css({
201
+ ':active': { backgroundColor: token('color.background.input.pressed') },
202
+ }),
203
+ 'inverse.subtle': css({
204
+ ':active': { backgroundColor: token('color.background.inverse.subtle.pressed') },
205
+ }),
206
+ neutral: css({
207
+ ':active': { backgroundColor: token('color.background.neutral.pressed') },
208
+ }),
209
+ 'neutral.subtle': css({
210
+ ':active': { backgroundColor: token('color.background.neutral.subtle.pressed') },
211
+ }),
212
+ 'neutral.bold': css({
213
+ ':active': { backgroundColor: token('color.background.neutral.bold.pressed') },
214
+ }),
215
+ selected: css({
216
+ ':active': { backgroundColor: token('color.background.selected.pressed') },
217
+ }),
218
+ 'selected.bold': css({
219
+ ':active': { backgroundColor: token('color.background.selected.bold.pressed') },
220
+ }),
221
+ 'brand.subtlest': css({
222
+ ':active': { backgroundColor: token('color.background.brand.subtlest.pressed') },
223
+ }),
224
+ 'brand.bold': css({
225
+ ':active': { backgroundColor: token('color.background.brand.bold.pressed') },
226
+ }),
227
+ 'brand.boldest': css({
228
+ ':active': { backgroundColor: token('color.background.brand.boldest.pressed') },
229
+ }),
230
+ danger: css({
231
+ ':active': { backgroundColor: token('color.background.danger.pressed') },
232
+ }),
233
+ 'danger.bold': css({
234
+ ':active': { backgroundColor: token('color.background.danger.bold.pressed') },
235
+ }),
236
+ warning: css({
237
+ ':active': { backgroundColor: token('color.background.warning.pressed') },
238
+ }),
239
+ 'warning.bold': css({
240
+ ':active': { backgroundColor: token('color.background.warning.bold.pressed') },
241
+ }),
242
+ success: css({
243
+ ':active': { backgroundColor: token('color.background.success.pressed') },
244
+ }),
245
+ 'success.bold': css({
246
+ ':active': { backgroundColor: token('color.background.success.bold.pressed') },
247
+ }),
248
+ discovery: css({
249
+ ':active': { backgroundColor: token('color.background.discovery.pressed') },
250
+ }),
251
+ 'discovery.bold': css({
252
+ ':active': { backgroundColor: token('color.background.discovery.bold.pressed') },
253
+ }),
254
+ information: css({
255
+ ':active': { backgroundColor: token('color.background.information.pressed') },
256
+ }),
257
+ 'information.bold': css({
258
+ ':active': { backgroundColor: token('color.background.information.bold.pressed') },
259
+ }),
260
+ 'elevation.surface': css({
261
+ ':active': { backgroundColor: token('elevation.surface.pressed') },
262
+ }),
263
+ 'elevation.surface.overlay': css({
264
+ ':active': { backgroundColor: token('elevation.surface.overlay.pressed') },
265
+ }),
266
+ 'elevation.surface.raised': css({
267
+ ':active': { backgroundColor: token('elevation.surface.raised.pressed') },
268
+ }),
377
269
  };
378
270
 
379
271
  const backgroundHoverColorMap = {
380
- 'accent.lime.subtlest': css({
381
- ':hover': {
382
- backgroundColor: token('color.background.accent.lime.subtlest.hovered'),
383
- },
384
- }),
385
- 'accent.lime.subtler': css({
386
- ':hover': {
387
- backgroundColor: token('color.background.accent.lime.subtler.hovered'),
388
- },
389
- }),
390
- 'accent.lime.subtle': css({
391
- ':hover': {
392
- backgroundColor: token('color.background.accent.lime.subtle.hovered'),
393
- },
394
- }),
395
- 'accent.lime.bolder': css({
396
- ':hover': {
397
- backgroundColor: token('color.background.accent.lime.bolder.hovered'),
398
- },
399
- }),
400
- 'accent.red.subtlest': css({
401
- ':hover': {
402
- backgroundColor: token('color.background.accent.red.subtlest.hovered'),
403
- },
404
- }),
405
- 'accent.red.subtler': css({
406
- ':hover': {
407
- backgroundColor: token('color.background.accent.red.subtler.hovered'),
408
- },
409
- }),
410
- 'accent.red.subtle': css({
411
- ':hover': {
412
- backgroundColor: token('color.background.accent.red.subtle.hovered'),
413
- },
414
- }),
415
- 'accent.red.bolder': css({
416
- ':hover': {
417
- backgroundColor: token('color.background.accent.red.bolder.hovered'),
418
- },
419
- }),
420
- 'accent.orange.subtlest': css({
421
- ':hover': {
422
- backgroundColor: token('color.background.accent.orange.subtlest.hovered'),
423
- },
424
- }),
425
- 'accent.orange.subtler': css({
426
- ':hover': {
427
- backgroundColor: token('color.background.accent.orange.subtler.hovered'),
428
- },
429
- }),
430
- 'accent.orange.subtle': css({
431
- ':hover': {
432
- backgroundColor: token('color.background.accent.orange.subtle.hovered'),
433
- },
434
- }),
435
- 'accent.orange.bolder': css({
436
- ':hover': {
437
- backgroundColor: token('color.background.accent.orange.bolder.hovered'),
438
- },
439
- }),
440
- 'accent.yellow.subtlest': css({
441
- ':hover': {
442
- backgroundColor: token('color.background.accent.yellow.subtlest.hovered'),
443
- },
444
- }),
445
- 'accent.yellow.subtler': css({
446
- ':hover': {
447
- backgroundColor: token('color.background.accent.yellow.subtler.hovered'),
448
- },
449
- }),
450
- 'accent.yellow.subtle': css({
451
- ':hover': {
452
- backgroundColor: token('color.background.accent.yellow.subtle.hovered'),
453
- },
454
- }),
455
- 'accent.yellow.bolder': css({
456
- ':hover': {
457
- backgroundColor: token('color.background.accent.yellow.bolder.hovered'),
458
- },
459
- }),
460
- 'accent.green.subtlest': css({
461
- ':hover': {
462
- backgroundColor: token('color.background.accent.green.subtlest.hovered'),
463
- },
464
- }),
465
- 'accent.green.subtler': css({
466
- ':hover': {
467
- backgroundColor: token('color.background.accent.green.subtler.hovered'),
468
- },
469
- }),
470
- 'accent.green.subtle': css({
471
- ':hover': {
472
- backgroundColor: token('color.background.accent.green.subtle.hovered'),
473
- },
474
- }),
475
- 'accent.green.bolder': css({
476
- ':hover': {
477
- backgroundColor: token('color.background.accent.green.bolder.hovered'),
478
- },
479
- }),
480
- 'accent.teal.subtlest': css({
481
- ':hover': {
482
- backgroundColor: token('color.background.accent.teal.subtlest.hovered'),
483
- },
484
- }),
485
- 'accent.teal.subtler': css({
486
- ':hover': {
487
- backgroundColor: token('color.background.accent.teal.subtler.hovered'),
488
- },
489
- }),
490
- 'accent.teal.subtle': css({
491
- ':hover': {
492
- backgroundColor: token('color.background.accent.teal.subtle.hovered'),
493
- },
494
- }),
495
- 'accent.teal.bolder': css({
496
- ':hover': {
497
- backgroundColor: token('color.background.accent.teal.bolder.hovered'),
498
- },
499
- }),
500
- 'accent.blue.subtlest': css({
501
- ':hover': {
502
- backgroundColor: token('color.background.accent.blue.subtlest.hovered'),
503
- },
504
- }),
505
- 'accent.blue.subtler': css({
506
- ':hover': {
507
- backgroundColor: token('color.background.accent.blue.subtler.hovered'),
508
- },
509
- }),
510
- 'accent.blue.subtle': css({
511
- ':hover': {
512
- backgroundColor: token('color.background.accent.blue.subtle.hovered'),
513
- },
514
- }),
515
- 'accent.blue.bolder': css({
516
- ':hover': {
517
- backgroundColor: token('color.background.accent.blue.bolder.hovered'),
518
- },
519
- }),
520
- 'accent.purple.subtlest': css({
521
- ':hover': {
522
- backgroundColor: token('color.background.accent.purple.subtlest.hovered'),
523
- },
524
- }),
525
- 'accent.purple.subtler': css({
526
- ':hover': {
527
- backgroundColor: token('color.background.accent.purple.subtler.hovered'),
528
- },
529
- }),
530
- 'accent.purple.subtle': css({
531
- ':hover': {
532
- backgroundColor: token('color.background.accent.purple.subtle.hovered'),
533
- },
534
- }),
535
- 'accent.purple.bolder': css({
536
- ':hover': {
537
- backgroundColor: token('color.background.accent.purple.bolder.hovered'),
538
- },
539
- }),
540
- 'accent.magenta.subtlest': css({
541
- ':hover': {
542
- backgroundColor: token(
543
- 'color.background.accent.magenta.subtlest.hovered',
544
- ),
545
- },
546
- }),
547
- 'accent.magenta.subtler': css({
548
- ':hover': {
549
- backgroundColor: token('color.background.accent.magenta.subtler.hovered'),
550
- },
551
- }),
552
- 'accent.magenta.subtle': css({
553
- ':hover': {
554
- backgroundColor: token('color.background.accent.magenta.subtle.hovered'),
555
- },
556
- }),
557
- 'accent.magenta.bolder': css({
558
- ':hover': {
559
- backgroundColor: token('color.background.accent.magenta.bolder.hovered'),
560
- },
561
- }),
562
- 'accent.gray.subtlest': css({
563
- ':hover': {
564
- backgroundColor: token('color.background.accent.gray.subtlest.hovered'),
565
- },
566
- }),
567
- 'accent.gray.subtler': css({
568
- ':hover': {
569
- backgroundColor: token('color.background.accent.gray.subtler.hovered'),
570
- },
571
- }),
572
- 'accent.gray.subtle': css({
573
- ':hover': {
574
- backgroundColor: token('color.background.accent.gray.subtle.hovered'),
575
- },
576
- }),
577
- 'accent.gray.bolder': css({
578
- ':hover': {
579
- backgroundColor: token('color.background.accent.gray.bolder.hovered'),
580
- },
581
- }),
582
- input: css({
583
- ':hover': { backgroundColor: token('color.background.input.hovered') },
584
- }),
585
- 'inverse.subtle': css({
586
- ':hover': {
587
- backgroundColor: token('color.background.inverse.subtle.hovered'),
588
- },
589
- }),
590
- neutral: css({
591
- ':hover': { backgroundColor: token('color.background.neutral.hovered') },
592
- }),
593
- 'neutral.subtle': css({
594
- ':hover': {
595
- backgroundColor: token('color.background.neutral.subtle.hovered'),
596
- },
597
- }),
598
- 'neutral.bold': css({
599
- ':hover': {
600
- backgroundColor: token('color.background.neutral.bold.hovered'),
601
- },
602
- }),
603
- selected: css({
604
- ':hover': { backgroundColor: token('color.background.selected.hovered') },
605
- }),
606
- 'selected.bold': css({
607
- ':hover': {
608
- backgroundColor: token('color.background.selected.bold.hovered'),
609
- },
610
- }),
611
- 'brand.subtlest': css({
612
- ':hover': {
613
- backgroundColor: token('color.background.brand.subtlest.hovered'),
614
- },
615
- }),
616
- 'brand.bold': css({
617
- ':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
618
- }),
619
- 'brand.boldest': css({
620
- ':hover': {
621
- backgroundColor: token('color.background.brand.boldest.hovered'),
622
- },
623
- }),
624
- danger: css({
625
- ':hover': { backgroundColor: token('color.background.danger.hovered') },
626
- }),
627
- 'danger.bold': css({
628
- ':hover': {
629
- backgroundColor: token('color.background.danger.bold.hovered'),
630
- },
631
- }),
632
- warning: css({
633
- ':hover': { backgroundColor: token('color.background.warning.hovered') },
634
- }),
635
- 'warning.bold': css({
636
- ':hover': {
637
- backgroundColor: token('color.background.warning.bold.hovered'),
638
- },
639
- }),
640
- success: css({
641
- ':hover': { backgroundColor: token('color.background.success.hovered') },
642
- }),
643
- 'success.bold': css({
644
- ':hover': {
645
- backgroundColor: token('color.background.success.bold.hovered'),
646
- },
647
- }),
648
- discovery: css({
649
- ':hover': { backgroundColor: token('color.background.discovery.hovered') },
650
- }),
651
- 'discovery.bold': css({
652
- ':hover': {
653
- backgroundColor: token('color.background.discovery.bold.hovered'),
654
- },
655
- }),
656
- information: css({
657
- ':hover': {
658
- backgroundColor: token('color.background.information.hovered'),
659
- },
660
- }),
661
- 'information.bold': css({
662
- ':hover': {
663
- backgroundColor: token('color.background.information.bold.hovered'),
664
- },
665
- }),
666
- 'elevation.surface': css({
667
- ':hover': { backgroundColor: token('elevation.surface.hovered') },
668
- }),
669
- 'elevation.surface.overlay': css({
670
- ':hover': { backgroundColor: token('elevation.surface.overlay.hovered') },
671
- }),
672
- 'elevation.surface.raised': css({
673
- ':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
674
- }),
272
+ 'accent.lime.subtlest': css({
273
+ ':hover': { backgroundColor: token('color.background.accent.lime.subtlest.hovered') },
274
+ }),
275
+ 'accent.lime.subtler': css({
276
+ ':hover': { backgroundColor: token('color.background.accent.lime.subtler.hovered') },
277
+ }),
278
+ 'accent.lime.subtle': css({
279
+ ':hover': { backgroundColor: token('color.background.accent.lime.subtle.hovered') },
280
+ }),
281
+ 'accent.lime.bolder': css({
282
+ ':hover': { backgroundColor: token('color.background.accent.lime.bolder.hovered') },
283
+ }),
284
+ 'accent.red.subtlest': css({
285
+ ':hover': { backgroundColor: token('color.background.accent.red.subtlest.hovered') },
286
+ }),
287
+ 'accent.red.subtler': css({
288
+ ':hover': { backgroundColor: token('color.background.accent.red.subtler.hovered') },
289
+ }),
290
+ 'accent.red.subtle': css({
291
+ ':hover': { backgroundColor: token('color.background.accent.red.subtle.hovered') },
292
+ }),
293
+ 'accent.red.bolder': css({
294
+ ':hover': { backgroundColor: token('color.background.accent.red.bolder.hovered') },
295
+ }),
296
+ 'accent.orange.subtlest': css({
297
+ ':hover': { backgroundColor: token('color.background.accent.orange.subtlest.hovered') },
298
+ }),
299
+ 'accent.orange.subtler': css({
300
+ ':hover': { backgroundColor: token('color.background.accent.orange.subtler.hovered') },
301
+ }),
302
+ 'accent.orange.subtle': css({
303
+ ':hover': { backgroundColor: token('color.background.accent.orange.subtle.hovered') },
304
+ }),
305
+ 'accent.orange.bolder': css({
306
+ ':hover': { backgroundColor: token('color.background.accent.orange.bolder.hovered') },
307
+ }),
308
+ 'accent.yellow.subtlest': css({
309
+ ':hover': { backgroundColor: token('color.background.accent.yellow.subtlest.hovered') },
310
+ }),
311
+ 'accent.yellow.subtler': css({
312
+ ':hover': { backgroundColor: token('color.background.accent.yellow.subtler.hovered') },
313
+ }),
314
+ 'accent.yellow.subtle': css({
315
+ ':hover': { backgroundColor: token('color.background.accent.yellow.subtle.hovered') },
316
+ }),
317
+ 'accent.yellow.bolder': css({
318
+ ':hover': { backgroundColor: token('color.background.accent.yellow.bolder.hovered') },
319
+ }),
320
+ 'accent.green.subtlest': css({
321
+ ':hover': { backgroundColor: token('color.background.accent.green.subtlest.hovered') },
322
+ }),
323
+ 'accent.green.subtler': css({
324
+ ':hover': { backgroundColor: token('color.background.accent.green.subtler.hovered') },
325
+ }),
326
+ 'accent.green.subtle': css({
327
+ ':hover': { backgroundColor: token('color.background.accent.green.subtle.hovered') },
328
+ }),
329
+ 'accent.green.bolder': css({
330
+ ':hover': { backgroundColor: token('color.background.accent.green.bolder.hovered') },
331
+ }),
332
+ 'accent.teal.subtlest': css({
333
+ ':hover': { backgroundColor: token('color.background.accent.teal.subtlest.hovered') },
334
+ }),
335
+ 'accent.teal.subtler': css({
336
+ ':hover': { backgroundColor: token('color.background.accent.teal.subtler.hovered') },
337
+ }),
338
+ 'accent.teal.subtle': css({
339
+ ':hover': { backgroundColor: token('color.background.accent.teal.subtle.hovered') },
340
+ }),
341
+ 'accent.teal.bolder': css({
342
+ ':hover': { backgroundColor: token('color.background.accent.teal.bolder.hovered') },
343
+ }),
344
+ 'accent.blue.subtlest': css({
345
+ ':hover': { backgroundColor: token('color.background.accent.blue.subtlest.hovered') },
346
+ }),
347
+ 'accent.blue.subtler': css({
348
+ ':hover': { backgroundColor: token('color.background.accent.blue.subtler.hovered') },
349
+ }),
350
+ 'accent.blue.subtle': css({
351
+ ':hover': { backgroundColor: token('color.background.accent.blue.subtle.hovered') },
352
+ }),
353
+ 'accent.blue.bolder': css({
354
+ ':hover': { backgroundColor: token('color.background.accent.blue.bolder.hovered') },
355
+ }),
356
+ 'accent.purple.subtlest': css({
357
+ ':hover': { backgroundColor: token('color.background.accent.purple.subtlest.hovered') },
358
+ }),
359
+ 'accent.purple.subtler': css({
360
+ ':hover': { backgroundColor: token('color.background.accent.purple.subtler.hovered') },
361
+ }),
362
+ 'accent.purple.subtle': css({
363
+ ':hover': { backgroundColor: token('color.background.accent.purple.subtle.hovered') },
364
+ }),
365
+ 'accent.purple.bolder': css({
366
+ ':hover': { backgroundColor: token('color.background.accent.purple.bolder.hovered') },
367
+ }),
368
+ 'accent.magenta.subtlest': css({
369
+ ':hover': { backgroundColor: token('color.background.accent.magenta.subtlest.hovered') },
370
+ }),
371
+ 'accent.magenta.subtler': css({
372
+ ':hover': { backgroundColor: token('color.background.accent.magenta.subtler.hovered') },
373
+ }),
374
+ 'accent.magenta.subtle': css({
375
+ ':hover': { backgroundColor: token('color.background.accent.magenta.subtle.hovered') },
376
+ }),
377
+ 'accent.magenta.bolder': css({
378
+ ':hover': { backgroundColor: token('color.background.accent.magenta.bolder.hovered') },
379
+ }),
380
+ 'accent.gray.subtlest': css({
381
+ ':hover': { backgroundColor: token('color.background.accent.gray.subtlest.hovered') },
382
+ }),
383
+ 'accent.gray.subtler': css({
384
+ ':hover': { backgroundColor: token('color.background.accent.gray.subtler.hovered') },
385
+ }),
386
+ 'accent.gray.subtle': css({
387
+ ':hover': { backgroundColor: token('color.background.accent.gray.subtle.hovered') },
388
+ }),
389
+ 'accent.gray.bolder': css({
390
+ ':hover': { backgroundColor: token('color.background.accent.gray.bolder.hovered') },
391
+ }),
392
+ input: css({
393
+ ':hover': { backgroundColor: token('color.background.input.hovered') },
394
+ }),
395
+ 'inverse.subtle': css({
396
+ ':hover': { backgroundColor: token('color.background.inverse.subtle.hovered') },
397
+ }),
398
+ neutral: css({
399
+ ':hover': { backgroundColor: token('color.background.neutral.hovered') },
400
+ }),
401
+ 'neutral.subtle': css({
402
+ ':hover': { backgroundColor: token('color.background.neutral.subtle.hovered') },
403
+ }),
404
+ 'neutral.bold': css({
405
+ ':hover': { backgroundColor: token('color.background.neutral.bold.hovered') },
406
+ }),
407
+ selected: css({
408
+ ':hover': { backgroundColor: token('color.background.selected.hovered') },
409
+ }),
410
+ 'selected.bold': css({
411
+ ':hover': { backgroundColor: token('color.background.selected.bold.hovered') },
412
+ }),
413
+ 'brand.subtlest': css({
414
+ ':hover': { backgroundColor: token('color.background.brand.subtlest.hovered') },
415
+ }),
416
+ 'brand.bold': css({
417
+ ':hover': { backgroundColor: token('color.background.brand.bold.hovered') },
418
+ }),
419
+ 'brand.boldest': css({
420
+ ':hover': { backgroundColor: token('color.background.brand.boldest.hovered') },
421
+ }),
422
+ danger: css({
423
+ ':hover': { backgroundColor: token('color.background.danger.hovered') },
424
+ }),
425
+ 'danger.bold': css({
426
+ ':hover': { backgroundColor: token('color.background.danger.bold.hovered') },
427
+ }),
428
+ warning: css({
429
+ ':hover': { backgroundColor: token('color.background.warning.hovered') },
430
+ }),
431
+ 'warning.bold': css({
432
+ ':hover': { backgroundColor: token('color.background.warning.bold.hovered') },
433
+ }),
434
+ success: css({
435
+ ':hover': { backgroundColor: token('color.background.success.hovered') },
436
+ }),
437
+ 'success.bold': css({
438
+ ':hover': { backgroundColor: token('color.background.success.bold.hovered') },
439
+ }),
440
+ discovery: css({
441
+ ':hover': { backgroundColor: token('color.background.discovery.hovered') },
442
+ }),
443
+ 'discovery.bold': css({
444
+ ':hover': { backgroundColor: token('color.background.discovery.bold.hovered') },
445
+ }),
446
+ information: css({
447
+ ':hover': { backgroundColor: token('color.background.information.hovered') },
448
+ }),
449
+ 'information.bold': css({
450
+ ':hover': { backgroundColor: token('color.background.information.bold.hovered') },
451
+ }),
452
+ 'elevation.surface': css({
453
+ ':hover': { backgroundColor: token('elevation.surface.hovered') },
454
+ }),
455
+ 'elevation.surface.overlay': css({
456
+ ':hover': { backgroundColor: token('elevation.surface.overlay.hovered') },
457
+ }),
458
+ 'elevation.surface.raised': css({
459
+ ':hover': { backgroundColor: token('elevation.surface.raised.hovered') },
460
+ }),
675
461
  };
676
462
 
677
463
  type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;