@govbr-ds/tokens 4.0.0-next.12 → 4.0.0-next.13

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 (38) hide show
  1. package/dist/css/component/button.css +57 -0
  2. package/dist/css/component/icon.css +35 -0
  3. package/dist/css/component/text.css +17 -0
  4. package/dist/css/themes/dark.css +10 -10
  5. package/dist/css/themes/light.css +10 -10
  6. package/dist/css/tokens.css +101 -96
  7. package/dist/js/component/button.js +56 -0
  8. package/dist/js/component/icon.js +33 -0
  9. package/dist/js/component/text.js +15 -0
  10. package/dist/js/themes/dark.js +10 -10
  11. package/dist/js/themes/light.js +10 -10
  12. package/dist/js/tokens.js +101 -96
  13. package/dist/json/component/button.json +1447 -0
  14. package/dist/json/component/icon.json +911 -0
  15. package/dist/json/component/text.json +455 -0
  16. package/dist/json/themes/dark.json +170 -170
  17. package/dist/json/themes/light.json +168 -168
  18. package/dist/json/tokens.json +782 -625
  19. package/dist/scss/component/button.scss +55 -0
  20. package/dist/scss/component/icon.scss +33 -0
  21. package/dist/scss/component/text.scss +15 -0
  22. package/dist/scss/themes/dark.scss +10 -10
  23. package/dist/scss/themes/light.scss +10 -10
  24. package/dist/scss/tokens.scss +101 -96
  25. package/dist/tokens-studio/tokens.json +412 -236
  26. package/package.json +1 -1
  27. package/src/figma/component/button.json +266 -0
  28. package/src/figma/component/icon.json +50 -110
  29. package/src/figma/component/manifest.json +3 -1
  30. package/src/figma/dark.json +2 -2
  31. package/src/figma/iconography.json +68 -68
  32. package/src/figma/light.json +2 -2
  33. package/src/figma/state.json +30 -2
  34. package/src/temp/component.json +307 -159
  35. package/src/temp/core.json +105 -77
  36. package/src/temp/dark.json +1 -1
  37. package/src/temp/light.json +1 -1
  38. package/src/tokens.json +412 -236
@@ -193,212 +193,360 @@
193
193
  "$value": "1.25"
194
194
  },
195
195
  "size": {
196
- "min": {
197
- "default": {
196
+ "default": {
197
+ "$type": "dimension",
198
+ "$value": "{icon.fontSize.default} * {icon.ratio}"
199
+ },
200
+ "up": {
201
+ "01": {
198
202
  "$type": "dimension",
199
- "$value": "{icon.fontSize.default}"
203
+ "$value": "{icon.fontSize.up.01} * {icon.ratio}"
200
204
  },
201
- "up": {
202
- "01": {
203
- "$type": "dimension",
204
- "$value": "{icon.fontSize.up.01}"
205
- },
206
- "02": {
207
- "$type": "dimension",
208
- "$value": "{icon.fontSize.up.02}"
209
- },
210
- "03": {
211
- "$type": "dimension",
212
- "$value": "{icon.fontSize.up.03}"
213
- },
214
- "04": {
215
- "$type": "dimension",
216
- "$value": "{icon.fontSize.up.04}"
217
- },
218
- "05": {
219
- "$type": "dimension",
220
- "$value": "{icon.fontSize.up.05}"
221
- },
222
- "06": {
223
- "$type": "dimension",
224
- "$value": "{icon.fontSize.up.06}"
225
- },
226
- "07": {
227
- "$type": "dimension",
228
- "$value": "{icon.fontSize.up.07}"
229
- },
230
- "08": {
231
- "$type": "dimension",
232
- "$value": "{icon.fontSize.up.08}"
233
- }
205
+ "02": {
206
+ "$type": "dimension",
207
+ "$value": "{icon.fontSize.up.02} * {icon.ratio}"
234
208
  },
235
- "down": {
236
- "01": {
237
- "$type": "dimension",
238
- "$value": "{icon.fontSize.down.01}"
239
- },
240
- "02": {
241
- "$type": "dimension",
242
- "$value": "{icon.fontSize.down.02}"
243
- },
244
- "03": {
245
- "$type": "dimension",
246
- "$value": "{icon.fontSize.down.03}"
247
- },
248
- "04": {
249
- "$type": "dimension",
250
- "$value": "{icon.fontSize.down.04}"
251
- }
209
+ "03": {
210
+ "$type": "dimension",
211
+ "$value": "{icon.fontSize.up.03} * {icon.ratio}"
212
+ },
213
+ "04": {
214
+ "$type": "dimension",
215
+ "$value": "{icon.fontSize.up.04} * {icon.ratio}"
216
+ },
217
+ "05": {
218
+ "$type": "dimension",
219
+ "$value": "{icon.fontSize.up.05} * {icon.ratio}"
220
+ },
221
+ "06": {
222
+ "$type": "dimension",
223
+ "$value": "{icon.fontSize.up.06} * {icon.ratio}"
224
+ },
225
+ "07": {
226
+ "$type": "dimension",
227
+ "$value": "{icon.fontSize.up.07} * {icon.ratio}"
228
+ },
229
+ "08": {
230
+ "$type": "dimension",
231
+ "$value": "{icon.fontSize.up.08} * {icon.ratio}"
252
232
  }
253
233
  },
254
- "max": {
255
- "default": {
234
+ "down": {
235
+ "01": {
256
236
  "$type": "dimension",
257
- "$value": "{icon.fontSize.default} * {icon.ratio}"
237
+ "$value": "{icon.fontSize.down.01} * {icon.ratio}"
258
238
  },
259
- "up": {
260
- "01": {
261
- "$type": "dimension",
262
- "$value": "{icon.fontSize.up.01} * {icon.ratio}"
263
- },
264
- "02": {
265
- "$type": "dimension",
266
- "$value": "{icon.fontSize.up.02} * {icon.ratio}"
239
+ "02": {
240
+ "$type": "dimension",
241
+ "$value": "{icon.fontSize.down.02} * {icon.ratio}"
242
+ },
243
+ "03": {
244
+ "$type": "dimension",
245
+ "$value": "{icon.fontSize.down.03} * {icon.ratio}"
246
+ },
247
+ "04": {
248
+ "$type": "dimension",
249
+ "$value": "{icon.fontSize.down.04} * {icon.ratio}"
250
+ }
251
+ }
252
+ }
253
+ },
254
+ "button": {
255
+ "rounder": {
256
+ "$type": "borderRadius",
257
+ "$value": "{surface.rounder.full}"
258
+ },
259
+ "spacing": {
260
+ "gap": {
261
+ "$type": "spacing",
262
+ "$value": "{spacing.layout.01}"
263
+ },
264
+ "padding": {
265
+ "$type": "spacing",
266
+ "$value": "{spacing.layout.02}"
267
+ }
268
+ },
269
+ "density": {
270
+ "compact": {
271
+ "$type": "spacing",
272
+ "$value": "{spacing.adjust.01}"
273
+ },
274
+ "regular": {
275
+ "$type": "spacing",
276
+ "$value": "{spacing.layout.01}"
277
+ },
278
+ "spacious": {
279
+ "$type": "spacing",
280
+ "$value": "{spacing.adjust.02}"
281
+ }
282
+ },
283
+ "color": {
284
+ "read": {
285
+ "main": {
286
+ "primary": {
287
+ "$type": "color",
288
+ "$value": "{state.interactive.color.read.main}"
267
289
  },
268
- "03": {
269
- "$type": "dimension",
270
- "$value": "{icon.fontSize.up.03} * {icon.ratio}"
290
+ "secondary": {
291
+ "$type": "color",
292
+ "$value": "{state.interactive.color.main}"
271
293
  },
272
- "04": {
273
- "$type": "dimension",
274
- "$value": "{icon.fontSize.up.04} * {icon.ratio}"
294
+ "tertiary": {
295
+ "$type": "color",
296
+ "$value": "{state.interactive.color.main}"
297
+ }
298
+ },
299
+ "contrast": {
300
+ "primary": {
301
+ "$type": "color",
302
+ "$value": "{state.interactive.color.read.contrast}"
275
303
  },
276
- "05": {
277
- "$type": "dimension",
278
- "$value": "{icon.fontSize.up.05} * {icon.ratio}"
304
+ "secondary": {
305
+ "$type": "color",
306
+ "$value": "{state.interactive.color.contrast}"
279
307
  },
280
- "06": {
281
- "$type": "dimension",
282
- "$value": "{icon.fontSize.up.06} * {icon.ratio}"
308
+ "tertiary": {
309
+ "$type": "color",
310
+ "$value": "{state.interactive.color.contrast}"
311
+ }
312
+ }
313
+ },
314
+ "surface": {
315
+ "main": {
316
+ "primary": {
317
+ "$type": "color",
318
+ "$value": "{state.interactive.color.main}"
283
319
  },
284
- "07": {
285
- "$type": "dimension",
286
- "$value": "{icon.fontSize.up.07} * {icon.ratio}"
320
+ "secondary": {
321
+ "$type": "color",
322
+ "$value": "transparent"
287
323
  },
288
- "08": {
289
- "$type": "dimension",
290
- "$value": "{icon.fontSize.up.08} * {icon.ratio}"
324
+ "tertiary": {
325
+ "$type": "color",
326
+ "$value": "transparent"
291
327
  }
292
328
  },
293
- "down": {
294
- "01": {
295
- "$type": "dimension",
296
- "$value": "{icon.fontSize.down.01} * {icon.ratio}"
297
- },
298
- "02": {
299
- "$type": "dimension",
300
- "$value": "{icon.fontSize.down.02} * {icon.ratio}"
329
+ "contrast": {
330
+ "primary": {
331
+ "$type": "color",
332
+ "$value": "{state.interactive.color.contrast}"
301
333
  },
302
- "03": {
303
- "$type": "dimension",
304
- "$value": "{icon.fontSize.down.03} * {icon.ratio}"
334
+ "secondary": {
335
+ "$type": "color",
336
+ "$value": "transparent"
305
337
  },
306
- "04": {
307
- "$type": "dimension",
308
- "$value": "{icon.fontSize.down.04} * {icon.ratio}"
338
+ "tertiary": {
339
+ "$type": "color",
340
+ "$value": "transparent"
309
341
  }
310
342
  }
311
343
  }
312
- }
313
- },
314
- "button": {
315
- "iconStyle": {
316
- "$type": "typography",
317
- "$value": "{iconography.iconStyle.solid}"
318
- },
319
- "rounder": {
320
- "$type": "borderRadius",
321
- "$value": "{surface.rounder.full}"
322
344
  },
323
- "gap": {
324
- "$type": "spacing",
325
- "$value": "{spacing.layout.01}"
326
- },
327
- "dimension": {
328
- "icon": {
329
- "$type": "dimension",
330
- "$value": "20"
345
+ "borderStyle": {
346
+ "main": {
347
+ "secondary": {
348
+ "$type": "border",
349
+ "$value": {
350
+ "color": "{button.color.read.main.secondary}",
351
+ "width": "{surface.borderWidth.small}",
352
+ "style": "solid"
353
+ }
354
+ }
355
+ },
356
+ "contrast": {
357
+ "secondary": {
358
+ "$type": "border",
359
+ "$value": {
360
+ "color": "{button.color.read.contrast.secondary}",
361
+ "width": "{surface.borderWidth.small}",
362
+ "style": "solid"
363
+ }
364
+ }
331
365
  }
332
366
  },
333
- "primary": {
367
+ "cta": {
334
368
  "color": {
335
- "read": {
369
+ "main": {
336
370
  "$type": "color",
337
- "$value": "{state.interactive.color.read.main}"
371
+ "$value": "{state.cta.color.main}"
338
372
  },
339
- "surface": {
373
+ "contrast": {
340
374
  "$type": "color",
341
- "$value": "{state.interactive.color.main}"
375
+ "$value": "{state.cta.color.contrast}"
376
+ },
377
+ "read": {
378
+ "main": {
379
+ "$type": "color",
380
+ "$value": "{state.cta.color.read.main}"
381
+ },
382
+ "contrast": {
383
+ "$type": "color",
384
+ "$value": "{state.cta.color.read.contrast}"
385
+ }
342
386
  }
343
387
  }
344
388
  },
345
- "secondary": {
389
+ "disabled": {
346
390
  "color": {
347
- "read": {
391
+ "main": {
348
392
  "$type": "color",
349
- "$value": "{state.interactive.color.main}"
393
+ "$value": "{state.disabled.color.main}"
394
+ },
395
+ "contrast": {
396
+ "$type": "color",
397
+ "$value": "{state.disabled.color.contrast}"
350
398
  }
351
399
  },
352
- "borderStyle": {
353
- "$type": "border",
354
- "$value": {
355
- "color": "{state.interactive.color.main}",
356
- "width": "{surface.borderWidth.small}",
357
- "style": "solid"
358
- }
400
+ "opacity": {
401
+ "$type": "opacity",
402
+ "$value": "{state.disabled.opacity}"
359
403
  }
360
404
  },
361
- "tertiary": {
405
+ "hover": {
362
406
  "color": {
363
- "read": {
364
- "$type": "color",
365
- "$value": "{state.interactive.color.main}"
407
+ "main": {
408
+ "surface": {
409
+ "$type": "color",
410
+ "$value": "{state.hover.color.main.surface}"
411
+ },
412
+ "read": {
413
+ "$type": "color",
414
+ "$value": "{state.hover.color.main.read}"
415
+ }
416
+ },
417
+ "contrast": {
418
+ "surface": {
419
+ "$type": "color",
420
+ "$value": "{state.hover.color.contrast.surface}"
421
+ },
422
+ "read": {
423
+ "$type": "color",
424
+ "$value": "{state.hover.color.contrast.read}"
425
+ }
426
+ }
427
+ },
428
+ "easing": {
429
+ "in": {
430
+ "$type": "easing",
431
+ "$value": "{state.hover.easing.in}"
432
+ },
433
+ "out": {
434
+ "$type": "easing",
435
+ "$value": "{state.hover.easing.out}"
436
+ }
437
+ },
438
+ "duration": {
439
+ "in": {
440
+ "$type": "duration",
441
+ "$value": "{state.hover.duration.in}"
442
+ },
443
+ "out": {
444
+ "$type": "duration",
445
+ "$value": "{state.hover.duration.out}"
366
446
  }
367
447
  }
368
448
  },
369
- "density": {
370
- "regular": {
371
- "$type": "spacing",
372
- "$value": "{spacing.layout.01}"
449
+ "pressed": {
450
+ "shadowStyle": {
451
+ "$type": "boxShadow",
452
+ "$value": "{state.pressed.shadowStyle}"
373
453
  },
374
- "compact": {
375
- "$type": "spacing",
376
- "$value": "{spacing.adjust.01}"
454
+ "easing": {
455
+ "in": {
456
+ "$type": "easing",
457
+ "$value": "{state.pressed.easing.in}"
458
+ },
459
+ "out": {
460
+ "$type": "easing",
461
+ "$value": "{state.pressed.easing.out}"
462
+ }
377
463
  },
378
- "spacious": {
464
+ "duration": {
465
+ "in": {
466
+ "$type": "duration",
467
+ "$value": "{state.pressed.duration.in}"
468
+ },
469
+ "out": {
470
+ "$type": "duration",
471
+ "$value": "{state.pressed.duration.out}"
472
+ }
473
+ }
474
+ },
475
+ "focus": {
476
+ "spacing": {
379
477
  "$type": "spacing",
380
- "$value": "{spacing.layout.02}"
478
+ "$value": "{state.focus.spacing}"
479
+ },
480
+ "borderStyle": {
481
+ "main": {
482
+ "$type": "border",
483
+ "$value": "{state.focus.borderStyle.high.main}"
484
+ },
485
+ "contrast": {
486
+ "$type": "border",
487
+ "$value": "{state.focus.borderStyle.high.contrast}"
488
+ }
489
+ },
490
+ "easing": {
491
+ "in": {
492
+ "$type": "easing",
493
+ "$value": "{state.focus.easing.in}"
494
+ },
495
+ "out": {
496
+ "$type": "easing",
497
+ "$value": "{state.focus.easing.out}"
498
+ }
499
+ },
500
+ "duration": {
501
+ "in": {
502
+ "$type": "duration",
503
+ "$value": "{state.focus.duration.in}"
504
+ },
505
+ "out": {
506
+ "$type": "duration",
507
+ "$value": "{state.focus.duration.out}"
508
+ }
381
509
  }
382
510
  },
383
- "padding": {
384
- "textual": {
385
- "vertical": {
386
- "$type": "spacing",
387
- "$value": "{button.density.regular}"
388
- },
389
- "horizontal": {
390
- "$type": "spacing",
391
- "$value": "{spacing.layout.02}"
511
+ "active": {
512
+ "color": {
513
+ "main": {
514
+ "$type": "color",
515
+ "$value": "{state.active.color.main}"
516
+ },
517
+ "contrast": {
518
+ "$type": "color",
519
+ "$value": "{state.active.color.contrast}"
520
+ },
521
+ "read": {
522
+ "main": {
523
+ "$type": "color",
524
+ "$value": "{state.active.color.read.main}"
525
+ },
526
+ "contrast": {
527
+ "$type": "color",
528
+ "$value": "{state.active.color.read.contrast}"
529
+ }
392
530
  }
393
531
  },
394
- "iconic": {
395
- "vertical": {
396
- "$type": "spacing",
397
- "$value": "{button.density.regular}"
398
- },
399
- "horizontal": {
400
- "$type": "spacing",
401
- "$value": "{button.density.regular}"
532
+ "easing": {
533
+ "in": {
534
+ "$type": "easing",
535
+ "$value": "{state.active.easing.in}"
536
+ },
537
+ "out": {
538
+ "$type": "easing",
539
+ "$value": "{state.active.easing.out}"
540
+ }
541
+ },
542
+ "duration": {
543
+ "in": {
544
+ "$type": "duration",
545
+ "$value": "{state.active.duration.in}"
546
+ },
547
+ "out": {
548
+ "$type": "duration",
549
+ "$value": "{state.active.duration.out}"
402
550
  }
403
551
  }
404
552
  }