@atlaskit/tokens 7.0.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 7.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`df9a060fe8b7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df9a060fe8b7f) -
8
+ Adds the native `@atlaspack/transformer-tokens` plugin for Atlassian Studio builds.
9
+
10
+ ## 7.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`c4860e82c9f41`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4860e82c9f41) -
15
+ Introduced new color stops across our base color ramps, namely 250 and 850, to support better
16
+ hover/pressed state contrast. New 250/850 base tokens are:
17
+ - Blue250
18
+ - Blue850
19
+ - Magenta250
20
+ - Magenta850
21
+ - Yellow250
22
+ - Yellow850
23
+ - Orange250
24
+ - Orange850
25
+ - Lime250
26
+ - Lime850
27
+ - Green250
28
+ - Green850
29
+ - Teal250
30
+ - Teal850
31
+ - Red250
32
+ - Red850
33
+ - Purple250
34
+ - Purple850
35
+
3
36
  ## 7.0.0
4
37
 
5
38
  ### Major Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  /**
8
8
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- * @codegen <<SignedSource::48b1ab9881aaa7ef53aff6c97ebfc413>>
9
+ * @codegen <<SignedSource::f849f805d616c9bf8df9d8ec6afa5b0c>>
10
10
  * @codegenCommand yarn build tokens
11
11
  */
12
12
 
@@ -44,6 +44,23 @@ var tokens = [{
44
44
  },
45
45
  "name": "color.palette.Lime200",
46
46
  "path": ["color", "palette", "Lime200"]
47
+ }, {
48
+ "value": "#BDE97C",
49
+ "attributes": {
50
+ "group": "palette",
51
+ "category": "lime"
52
+ },
53
+ "filePath": "schema/palettes/palette.tsx",
54
+ "isSource": true,
55
+ "original": {
56
+ "value": "#BDE97C",
57
+ "attributes": {
58
+ "group": "palette",
59
+ "category": "lime"
60
+ }
61
+ },
62
+ "name": "color.palette.Lime250",
63
+ "path": ["color", "palette", "Lime250"]
47
64
  }, {
48
65
  "value": "#B3DF72",
49
66
  "attributes": {
@@ -146,6 +163,23 @@ var tokens = [{
146
163
  },
147
164
  "name": "color.palette.Lime800",
148
165
  "path": ["color", "palette", "Lime800"]
166
+ }, {
167
+ "value": "#3F5224",
168
+ "attributes": {
169
+ "group": "palette",
170
+ "category": "lime"
171
+ },
172
+ "filePath": "schema/palettes/palette.tsx",
173
+ "isSource": true,
174
+ "original": {
175
+ "value": "#3F5224",
176
+ "attributes": {
177
+ "group": "palette",
178
+ "category": "lime"
179
+ }
180
+ },
181
+ "name": "color.palette.Lime850",
182
+ "path": ["color", "palette", "Lime850"]
149
183
  }, {
150
184
  "value": "#37471F",
151
185
  "attributes": {
@@ -214,6 +248,23 @@ var tokens = [{
214
248
  },
215
249
  "name": "color.palette.Red200",
216
250
  "path": ["color", "palette", "Red200"]
251
+ }, {
252
+ "value": "#FFB8B2",
253
+ "attributes": {
254
+ "group": "palette",
255
+ "category": "red"
256
+ },
257
+ "filePath": "schema/palettes/palette.tsx",
258
+ "isSource": true,
259
+ "original": {
260
+ "value": "#FFB8B2",
261
+ "attributes": {
262
+ "group": "palette",
263
+ "category": "red"
264
+ }
265
+ },
266
+ "name": "color.palette.Red250",
267
+ "path": ["color", "palette", "Red250"]
217
268
  }, {
218
269
  "value": "#FD9891",
219
270
  "attributes": {
@@ -316,6 +367,23 @@ var tokens = [{
316
367
  },
317
368
  "name": "color.palette.Red800",
318
369
  "path": ["color", "palette", "Red800"]
370
+ }, {
371
+ "value": "#872821",
372
+ "attributes": {
373
+ "group": "palette",
374
+ "category": "red"
375
+ },
376
+ "filePath": "schema/palettes/palette.tsx",
377
+ "isSource": true,
378
+ "original": {
379
+ "value": "#872821",
380
+ "attributes": {
381
+ "group": "palette",
382
+ "category": "red"
383
+ }
384
+ },
385
+ "name": "color.palette.Red850",
386
+ "path": ["color", "palette", "Red850"]
319
387
  }, {
320
388
  "value": "#5D1F1A",
321
389
  "attributes": {
@@ -384,6 +452,23 @@ var tokens = [{
384
452
  },
385
453
  "name": "color.palette.Orange200",
386
454
  "path": ["color", "palette", "Orange200"]
455
+ }, {
456
+ "value": "#FBD779",
457
+ "attributes": {
458
+ "group": "palette",
459
+ "category": "orange"
460
+ },
461
+ "filePath": "schema/palettes/palette.tsx",
462
+ "isSource": true,
463
+ "original": {
464
+ "value": "#FBD779",
465
+ "attributes": {
466
+ "group": "palette",
467
+ "category": "orange"
468
+ }
469
+ },
470
+ "name": "color.palette.Orange250",
471
+ "path": ["color", "palette", "Orange250"]
387
472
  }, {
388
473
  "value": "#FEC195",
389
474
  "attributes": {
@@ -486,6 +571,23 @@ var tokens = [{
486
571
  },
487
572
  "name": "color.palette.Orange800",
488
573
  "path": ["color", "palette", "Orange800"]
574
+ }, {
575
+ "value": "#7A3B00",
576
+ "attributes": {
577
+ "group": "palette",
578
+ "category": "orange"
579
+ },
580
+ "filePath": "schema/palettes/palette.tsx",
581
+ "isSource": true,
582
+ "original": {
583
+ "value": "#7A3B00",
584
+ "attributes": {
585
+ "group": "palette",
586
+ "category": "orange"
587
+ }
588
+ },
589
+ "name": "color.palette.Orange850",
590
+ "path": ["color", "palette", "Orange850"]
489
591
  }, {
490
592
  "value": "#702E00",
491
593
  "attributes": {
@@ -554,6 +656,23 @@ var tokens = [{
554
656
  },
555
657
  "name": "color.palette.Yellow200",
556
658
  "path": ["color", "palette", "Yellow200"]
659
+ }, {
660
+ "value": "#EFDD4E",
661
+ "attributes": {
662
+ "group": "palette",
663
+ "category": "yellow"
664
+ },
665
+ "filePath": "schema/palettes/palette.tsx",
666
+ "isSource": true,
667
+ "original": {
668
+ "value": "#EFDD4E",
669
+ "attributes": {
670
+ "group": "palette",
671
+ "category": "yellow"
672
+ }
673
+ },
674
+ "name": "color.palette.Yellow250",
675
+ "path": ["color", "palette", "Yellow250"]
557
676
  }, {
558
677
  "value": "#F5CD47",
559
678
  "attributes": {
@@ -656,6 +775,23 @@ var tokens = [{
656
775
  },
657
776
  "name": "color.palette.Yellow800",
658
777
  "path": ["color", "palette", "Yellow800"]
778
+ }, {
779
+ "value": "#614A05",
780
+ "attributes": {
781
+ "group": "palette",
782
+ "category": "yellow"
783
+ },
784
+ "filePath": "schema/palettes/palette.tsx",
785
+ "isSource": true,
786
+ "original": {
787
+ "value": "#614A05",
788
+ "attributes": {
789
+ "group": "palette",
790
+ "category": "yellow"
791
+ }
792
+ },
793
+ "name": "color.palette.Yellow850",
794
+ "path": ["color", "palette", "Yellow850"]
659
795
  }, {
660
796
  "value": "#533F04",
661
797
  "attributes": {
@@ -724,6 +860,23 @@ var tokens = [{
724
860
  },
725
861
  "name": "color.palette.Green200",
726
862
  "path": ["color", "palette", "Green200"]
863
+ }, {
864
+ "value": "#97EDC9",
865
+ "attributes": {
866
+ "group": "palette",
867
+ "category": "green"
868
+ },
869
+ "filePath": "schema/palettes/palette.tsx",
870
+ "isSource": true,
871
+ "original": {
872
+ "value": "#97EDC9",
873
+ "attributes": {
874
+ "group": "palette",
875
+ "category": "green"
876
+ }
877
+ },
878
+ "name": "color.palette.Green250",
879
+ "path": ["color", "palette", "Green250"]
727
880
  }, {
728
881
  "value": "#7EE2B8",
729
882
  "attributes": {
@@ -826,6 +979,23 @@ var tokens = [{
826
979
  },
827
980
  "name": "color.palette.Green800",
828
981
  "path": ["color", "palette", "Green800"]
982
+ }, {
983
+ "value": "#19573D",
984
+ "attributes": {
985
+ "group": "palette",
986
+ "category": "green"
987
+ },
988
+ "filePath": "schema/palettes/palette.tsx",
989
+ "isSource": true,
990
+ "original": {
991
+ "value": "#19573D",
992
+ "attributes": {
993
+ "group": "palette",
994
+ "category": "green"
995
+ }
996
+ },
997
+ "name": "color.palette.Green850",
998
+ "path": ["color", "palette", "Green850"]
829
999
  }, {
830
1000
  "value": "#164B35",
831
1001
  "attributes": {
@@ -894,6 +1064,23 @@ var tokens = [{
894
1064
  },
895
1065
  "name": "color.palette.Teal200",
896
1066
  "path": ["color", "palette", "Teal200"]
1067
+ }, {
1068
+ "value": "#B1E4F7",
1069
+ "attributes": {
1070
+ "group": "palette",
1071
+ "category": "teal"
1072
+ },
1073
+ "filePath": "schema/palettes/palette.tsx",
1074
+ "isSource": true,
1075
+ "original": {
1076
+ "value": "#B1E4F7",
1077
+ "attributes": {
1078
+ "group": "palette",
1079
+ "category": "teal"
1080
+ }
1081
+ },
1082
+ "name": "color.palette.Teal250",
1083
+ "path": ["color", "palette", "Teal250"]
897
1084
  }, {
898
1085
  "value": "#9DD9EE",
899
1086
  "attributes": {
@@ -996,6 +1183,23 @@ var tokens = [{
996
1183
  },
997
1184
  "name": "color.palette.Teal800",
998
1185
  "path": ["color", "palette", "Teal800"]
1186
+ }, {
1187
+ "value": "#1A5265",
1188
+ "attributes": {
1189
+ "group": "palette",
1190
+ "category": "teal"
1191
+ },
1192
+ "filePath": "schema/palettes/palette.tsx",
1193
+ "isSource": true,
1194
+ "original": {
1195
+ "value": "#1A5265",
1196
+ "attributes": {
1197
+ "group": "palette",
1198
+ "category": "teal"
1199
+ }
1200
+ },
1201
+ "name": "color.palette.Teal850",
1202
+ "path": ["color", "palette", "Teal850"]
999
1203
  }, {
1000
1204
  "value": "#164555",
1001
1205
  "attributes": {
@@ -1064,6 +1268,23 @@ var tokens = [{
1064
1268
  },
1065
1269
  "name": "color.palette.Blue200",
1066
1270
  "path": ["color", "palette", "Blue200"]
1271
+ }, {
1272
+ "value": "#ADCBFB",
1273
+ "attributes": {
1274
+ "group": "palette",
1275
+ "category": "blue"
1276
+ },
1277
+ "filePath": "schema/palettes/palette.tsx",
1278
+ "isSource": true,
1279
+ "original": {
1280
+ "value": "#ADCBFB",
1281
+ "attributes": {
1282
+ "group": "palette",
1283
+ "category": "blue"
1284
+ }
1285
+ },
1286
+ "name": "color.palette.Blue250",
1287
+ "path": ["color", "palette", "Blue250"]
1067
1288
  }, {
1068
1289
  "value": "#85B8FF",
1069
1290
  "attributes": {
@@ -1166,6 +1387,23 @@ var tokens = [{
1166
1387
  },
1167
1388
  "name": "color.palette.Blue800",
1168
1389
  "path": ["color", "palette", "Blue800"]
1390
+ }, {
1391
+ "value": "#144794",
1392
+ "attributes": {
1393
+ "group": "palette",
1394
+ "category": "blue"
1395
+ },
1396
+ "filePath": "schema/palettes/palette.tsx",
1397
+ "isSource": true,
1398
+ "original": {
1399
+ "value": "#144794",
1400
+ "attributes": {
1401
+ "group": "palette",
1402
+ "category": "blue"
1403
+ }
1404
+ },
1405
+ "name": "color.palette.Blue850",
1406
+ "path": ["color", "palette", "Blue850"]
1169
1407
  }, {
1170
1408
  "value": "#09326C",
1171
1409
  "attributes": {
@@ -1234,6 +1472,23 @@ var tokens = [{
1234
1472
  },
1235
1473
  "name": "color.palette.Purple200",
1236
1474
  "path": ["color", "palette", "Purple200"]
1475
+ }, {
1476
+ "value": "#E3BDFA",
1477
+ "attributes": {
1478
+ "group": "palette",
1479
+ "category": "purple"
1480
+ },
1481
+ "filePath": "schema/palettes/palette.tsx",
1482
+ "isSource": true,
1483
+ "original": {
1484
+ "value": "#E3BDFA",
1485
+ "attributes": {
1486
+ "group": "palette",
1487
+ "category": "purple"
1488
+ }
1489
+ },
1490
+ "name": "color.palette.Purple250",
1491
+ "path": ["color", "palette", "Purple250"]
1237
1492
  }, {
1238
1493
  "value": "#B8ACF6",
1239
1494
  "attributes": {
@@ -1336,6 +1591,23 @@ var tokens = [{
1336
1591
  },
1337
1592
  "name": "color.palette.Purple800",
1338
1593
  "path": ["color", "palette", "Purple800"]
1594
+ }, {
1595
+ "value": "#673286",
1596
+ "attributes": {
1597
+ "group": "palette",
1598
+ "category": "purple"
1599
+ },
1600
+ "filePath": "schema/palettes/palette.tsx",
1601
+ "isSource": true,
1602
+ "original": {
1603
+ "value": "#673286",
1604
+ "attributes": {
1605
+ "group": "palette",
1606
+ "category": "purple"
1607
+ }
1608
+ },
1609
+ "name": "color.palette.Purple850",
1610
+ "path": ["color", "palette", "Purple850"]
1339
1611
  }, {
1340
1612
  "value": "#352C63",
1341
1613
  "attributes": {
@@ -1404,6 +1676,23 @@ var tokens = [{
1404
1676
  },
1405
1677
  "name": "color.palette.Magenta200",
1406
1678
  "path": ["color", "palette", "Magenta200"]
1679
+ }, {
1680
+ "value": "#FCB6E1",
1681
+ "attributes": {
1682
+ "group": "palette",
1683
+ "category": "magenta"
1684
+ },
1685
+ "filePath": "schema/palettes/palette.tsx",
1686
+ "isSource": true,
1687
+ "original": {
1688
+ "value": "#FCB6E1",
1689
+ "attributes": {
1690
+ "group": "palette",
1691
+ "category": "magenta"
1692
+ }
1693
+ },
1694
+ "name": "color.palette.Magenta250",
1695
+ "path": ["color", "palette", "Magenta250"]
1407
1696
  }, {
1408
1697
  "value": "#F797D2",
1409
1698
  "attributes": {
@@ -1506,6 +1795,23 @@ var tokens = [{
1506
1795
  },
1507
1796
  "name": "color.palette.Magenta800",
1508
1797
  "path": ["color", "palette", "Magenta800"]
1798
+ }, {
1799
+ "value": "#77325B",
1800
+ "attributes": {
1801
+ "group": "palette",
1802
+ "category": "magenta"
1803
+ },
1804
+ "filePath": "schema/palettes/palette.tsx",
1805
+ "isSource": true,
1806
+ "original": {
1807
+ "value": "#77325B",
1808
+ "attributes": {
1809
+ "group": "palette",
1810
+ "category": "magenta"
1811
+ }
1812
+ },
1813
+ "name": "color.palette.Magenta850",
1814
+ "path": ["color", "palette", "Magenta850"]
1509
1815
  }, {
1510
1816
  "value": "#50253F",
1511
1817
  "attributes": {
@@ -81,6 +81,14 @@ var getThemeValues = function getThemeValues(theme) {
81
81
  }, {});
82
82
  };
83
83
  function plugin() {
84
+ // If the `TOKENS_SKIP_BABEL` environment variable is set, skip this
85
+ // plugin entirely. This will be enabled when the native Tokens transformer is enabled.
86
+ // This allows us to control this based on rollout gates.
87
+ if (process.env.TOKENS_SKIP_BABEL === 'true') {
88
+ return {
89
+ visitor: {}
90
+ };
91
+ }
84
92
  return {
85
93
  visitor: {
86
94
  Program: {
@@ -4,6 +4,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
+ Object.defineProperty(exports, "brandRefreshPalette", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _paletteBrandRefresh.default;
11
+ }
12
+ });
7
13
  Object.defineProperty(exports, "default", {
8
14
  enumerable: true,
9
15
  get: function get() {
@@ -17,4 +23,5 @@ Object.defineProperty(exports, "typographyPalette", {
17
23
  }
18
24
  });
19
25
  var _palette = _interopRequireDefault(require("../artifacts/palettes-raw/palette"));
26
+ var _paletteBrandRefresh = _interopRequireDefault(require("../artifacts/palettes-raw/palette-brand-refresh"));
20
27
  var _typographyPalette = _interopRequireDefault(require("../artifacts/palettes-raw/typography-palette"));