@bgord/design 0.27.21 → 0.27.25

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 (64) hide show
  1. package/dist/axis-placements-generator.d.ts +2 -4
  2. package/dist/backgrounds-generator.d.ts +2 -4
  3. package/dist/border-colors-generator.d.ts +2 -4
  4. package/dist/border-radiuses-generator.d.ts +2 -4
  5. package/dist/border-widths-generator.d.ts +2 -4
  6. package/dist/design.cjs.development.js +271 -267
  7. package/dist/design.cjs.development.js.map +1 -1
  8. package/dist/design.cjs.production.min.js +1 -1
  9. package/dist/design.cjs.production.min.js.map +1 -1
  10. package/dist/design.esm.js +271 -267
  11. package/dist/design.esm.js.map +1 -1
  12. package/dist/displays-generator.d.ts +2 -4
  13. package/dist/flex-directions-generator.d.ts +2 -4
  14. package/dist/flex-grows-generator.d.ts +2 -4
  15. package/dist/flex-wraps-generator.d.ts +2 -4
  16. package/dist/font-colors-generator.d.ts +2 -4
  17. package/dist/font-size-generator.d.ts +2 -4
  18. package/dist/font-weight-generator.d.ts +2 -4
  19. package/dist/generator.d.ts +4 -2
  20. package/dist/letter-spacings-generator.d.ts +2 -4
  21. package/dist/line-height-generator.d.ts +2 -4
  22. package/dist/main.css +53 -2
  23. package/dist/main.min.css +1 -1
  24. package/dist/main.min.css.br +0 -0
  25. package/dist/main.min.css.gz +0 -0
  26. package/dist/margins-generator.d.ts +2 -4
  27. package/dist/max-widths-generator.d.ts +2 -4
  28. package/dist/overflows-generator.d.ts +2 -4
  29. package/dist/paddings-generator.d.ts +2 -4
  30. package/dist/positioners-generator.d.ts +3 -4
  31. package/dist/postions-generator.d.ts +2 -4
  32. package/dist/tokens.d.ts +1 -1
  33. package/dist/transforms-generator.d.ts +2 -4
  34. package/dist/widhts-generator.d.ts +2 -4
  35. package/dist/z-index-generator.d.ts +2 -4
  36. package/package.json +1 -1
  37. package/src/axis-placements-generator.ts +4 -10
  38. package/src/backgrounds-generator.ts +4 -10
  39. package/src/border-colors-generator.ts +4 -10
  40. package/src/border-radiuses-generator.ts +3 -10
  41. package/src/border-widths-generator.ts +4 -10
  42. package/src/displays-generator.ts +4 -10
  43. package/src/flex-directions-generator.ts +4 -10
  44. package/src/flex-grows-generator.ts +4 -10
  45. package/src/flex-wraps-generator.ts +4 -10
  46. package/src/font-colors-generator.ts +4 -10
  47. package/src/font-size-generator.ts +4 -10
  48. package/src/font-weight-generator.ts +4 -10
  49. package/src/generate-css.ts +4 -2
  50. package/src/generator.ts +15 -4
  51. package/src/letter-spacings-generator.ts +4 -10
  52. package/src/line-height-generator.ts +4 -10
  53. package/src/margins-generator.ts +4 -10
  54. package/src/max-widths-generator.ts +4 -10
  55. package/src/overflows-generator.ts +4 -10
  56. package/src/paddings-generator.ts +4 -10
  57. package/src/positioners-generator.ts +4 -8
  58. package/src/postions-generator.ts +4 -10
  59. package/src/rules/target-blank-referer.css +10 -0
  60. package/src/tokens.ts +2 -0
  61. package/src/transforms-generator.ts +10 -10
  62. package/src/ui/anima.css +29 -0
  63. package/src/widhts-generator.ts +4 -10
  64. package/src/z-index-generator.ts +3 -10
@@ -56,6 +56,22 @@ function _extends() {
56
56
  return _extends.apply(this, arguments);
57
57
  }
58
58
 
59
+ function _inheritsLoose(subClass, superClass) {
60
+ subClass.prototype = Object.create(superClass.prototype);
61
+ subClass.prototype.constructor = subClass;
62
+
63
+ _setPrototypeOf(subClass, superClass);
64
+ }
65
+
66
+ function _setPrototypeOf(o, p) {
67
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
68
+ o.__proto__ = p;
69
+ return o;
70
+ };
71
+
72
+ return _setPrototypeOf(o, p);
73
+ }
74
+
59
75
  function _unsupportedIterableToArray(o, minLen) {
60
76
  if (!o) return;
61
77
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -916,18 +932,38 @@ var File = /*#__PURE__*/function () {
916
932
  return File;
917
933
  }();
918
934
 
919
- var Margins = /*#__PURE__*/function () {
920
- function Margins(config) {
921
- this.spacing = config.spacing;
922
- this.breakpoints = config.breakpoints;
935
+ var AbstractGenerator = /*#__PURE__*/function () {
936
+ function AbstractGenerator(name) {
937
+ this.name = name;
923
938
  }
924
939
 
925
- var _proto = Margins.prototype;
940
+ var _proto = AbstractGenerator.prototype;
926
941
 
927
942
  _proto.generateHeader = function generateHeader() {
928
- return '/* Margins */\n\n';
943
+ return "/* " + this.name + " */\n\n";
944
+ };
945
+
946
+ _proto.generateFooter = function generateFooter() {
947
+ return '/* ===================== */\n\n';
929
948
  };
930
949
 
950
+ return AbstractGenerator;
951
+ }();
952
+
953
+ var Margins = /*#__PURE__*/function (_AbstractGenerator) {
954
+ _inheritsLoose(Margins, _AbstractGenerator);
955
+
956
+ function Margins(config) {
957
+ var _this;
958
+
959
+ _this = _AbstractGenerator.call(this, 'Margins') || this;
960
+ _this.spacing = config.spacing;
961
+ _this.breakpoints = config.breakpoints;
962
+ return _this;
963
+ }
964
+
965
+ var _proto = Margins.prototype;
966
+
931
967
  _proto.generateCss = function generateCss() {
932
968
  var output = '';
933
969
 
@@ -1041,25 +1077,23 @@ var Margins = /*#__PURE__*/function () {
1041
1077
  return output;
1042
1078
  };
1043
1079
 
1044
- _proto.generateFooter = function generateFooter() {
1045
- return '/* ===================== */\n\n';
1046
- };
1047
-
1048
1080
  return Margins;
1049
- }();
1081
+ }(AbstractGenerator);
1082
+
1083
+ var Paddings = /*#__PURE__*/function (_AbstractGenerator) {
1084
+ _inheritsLoose(Paddings, _AbstractGenerator);
1050
1085
 
1051
- var Paddings = /*#__PURE__*/function () {
1052
1086
  function Paddings(config) {
1053
- this.spacing = config.spacing;
1054
- this.breakpoints = config.breakpoints;
1087
+ var _this;
1088
+
1089
+ _this = _AbstractGenerator.call(this, 'Paddings') || this;
1090
+ _this.spacing = config.spacing;
1091
+ _this.breakpoints = config.breakpoints;
1092
+ return _this;
1055
1093
  }
1056
1094
 
1057
1095
  var _proto = Paddings.prototype;
1058
1096
 
1059
- _proto.generateHeader = function generateHeader() {
1060
- return '/* Paddings */\n\n';
1061
- };
1062
-
1063
1097
  _proto.generateCss = function generateCss() {
1064
1098
  var output = ''; // Regular padding: data-p="*"
1065
1099
 
@@ -1179,25 +1213,23 @@ var Paddings = /*#__PURE__*/function () {
1179
1213
  return output;
1180
1214
  };
1181
1215
 
1182
- _proto.generateFooter = function generateFooter() {
1183
- return '/* ===================== */\n\n';
1184
- };
1185
-
1186
1216
  return Paddings;
1187
- }();
1217
+ }(AbstractGenerator);
1218
+
1219
+ var DisplaysGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1220
+ _inheritsLoose(DisplaysGenerator, _AbstractGenerator);
1188
1221
 
1189
- var DisplaysGenerator = /*#__PURE__*/function () {
1190
1222
  function DisplaysGenerator(config) {
1191
- this.displays = config.displays;
1192
- this.breakpoints = config.breakpoints;
1223
+ var _this;
1224
+
1225
+ _this = _AbstractGenerator.call(this, 'Displays') || this;
1226
+ _this.displays = config.displays;
1227
+ _this.breakpoints = config.breakpoints;
1228
+ return _this;
1193
1229
  }
1194
1230
 
1195
1231
  var _proto = DisplaysGenerator.prototype;
1196
1232
 
1197
- _proto.generateHeader = function generateHeader() {
1198
- return '/* Displays */\n\n';
1199
- };
1200
-
1201
1233
  _proto.generateCss = function generateCss() {
1202
1234
  var output = ''; // Regular display: data-display="*"
1203
1235
 
@@ -1237,25 +1269,23 @@ var DisplaysGenerator = /*#__PURE__*/function () {
1237
1269
  return output;
1238
1270
  };
1239
1271
 
1240
- _proto.generateFooter = function generateFooter() {
1241
- return '/* ===================== */\n\n';
1242
- };
1243
-
1244
1272
  return DisplaysGenerator;
1245
- }();
1273
+ }(AbstractGenerator);
1274
+
1275
+ var AxisPlacementsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1276
+ _inheritsLoose(AxisPlacementsGenerator, _AbstractGenerator);
1246
1277
 
1247
- var AxisPlacementsGenerator = /*#__PURE__*/function () {
1248
1278
  function AxisPlacementsGenerator(config) {
1249
- this.axisPlacements = config.axisPlacements;
1250
- this.breakpoints = config.breakpoints;
1279
+ var _this;
1280
+
1281
+ _this = _AbstractGenerator.call(this, 'Axis placements') || this;
1282
+ _this.axisPlacements = config.axisPlacements;
1283
+ _this.breakpoints = config.breakpoints;
1284
+ return _this;
1251
1285
  }
1252
1286
 
1253
1287
  var _proto = AxisPlacementsGenerator.prototype;
1254
1288
 
1255
- _proto.generateHeader = function generateHeader() {
1256
- return '/* Axis placements */\n\n';
1257
- };
1258
-
1259
1289
  _proto.generateCss = function generateCss() {
1260
1290
  var output = ''; // Main axis placement: data-main="*"
1261
1291
 
@@ -1300,24 +1330,22 @@ var AxisPlacementsGenerator = /*#__PURE__*/function () {
1300
1330
  return output;
1301
1331
  };
1302
1332
 
1303
- _proto.generateFooter = function generateFooter() {
1304
- return '/* ===================== */\n\n';
1305
- };
1306
-
1307
1333
  return AxisPlacementsGenerator;
1308
- }();
1334
+ }(AbstractGenerator);
1335
+
1336
+ var PositionsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1337
+ _inheritsLoose(PositionsGenerator, _AbstractGenerator);
1309
1338
 
1310
- var PositionsGenerator = /*#__PURE__*/function () {
1311
1339
  function PositionsGenerator(config) {
1312
- this.positions = config.positions;
1340
+ var _this;
1341
+
1342
+ _this = _AbstractGenerator.call(this, 'Positions') || this;
1343
+ _this.positions = config.positions;
1344
+ return _this;
1313
1345
  }
1314
1346
 
1315
1347
  var _proto = PositionsGenerator.prototype;
1316
1348
 
1317
- _proto.generateHeader = function generateHeader() {
1318
- return '/* Positions */\n\n';
1319
- };
1320
-
1321
1349
  _proto.generateCss = function generateCss() {
1322
1350
  var output = ''; // Regular display: data-position="*"
1323
1351
 
@@ -1331,24 +1359,22 @@ var PositionsGenerator = /*#__PURE__*/function () {
1331
1359
  return output;
1332
1360
  };
1333
1361
 
1334
- _proto.generateFooter = function generateFooter() {
1335
- return '/* ===================== */\n\n';
1336
- };
1337
-
1338
1362
  return PositionsGenerator;
1339
- }();
1363
+ }(AbstractGenerator);
1364
+
1365
+ var FlexWrapGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1366
+ _inheritsLoose(FlexWrapGenerator, _AbstractGenerator);
1340
1367
 
1341
- var FlexWrapGenerator = /*#__PURE__*/function () {
1342
1368
  function FlexWrapGenerator(config) {
1343
- this.flexWraps = config.flexWraps;
1369
+ var _this;
1370
+
1371
+ _this = _AbstractGenerator.call(this, 'Flex wraps') || this;
1372
+ _this.flexWraps = config.flexWraps;
1373
+ return _this;
1344
1374
  }
1345
1375
 
1346
1376
  var _proto = FlexWrapGenerator.prototype;
1347
1377
 
1348
- _proto.generateHeader = function generateHeader() {
1349
- return '/* Flex wraps */\n\n';
1350
- };
1351
-
1352
1378
  _proto.generateCss = function generateCss() {
1353
1379
  var output = ''; // Regular display: data-wrap="*"
1354
1380
 
@@ -1362,24 +1388,22 @@ var FlexWrapGenerator = /*#__PURE__*/function () {
1362
1388
  return output;
1363
1389
  };
1364
1390
 
1365
- _proto.generateFooter = function generateFooter() {
1366
- return '/* ===================== */\n\n';
1367
- };
1368
-
1369
1391
  return FlexWrapGenerator;
1370
- }();
1392
+ }(AbstractGenerator);
1393
+
1394
+ var ZIndexGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1395
+ _inheritsLoose(ZIndexGenerator, _AbstractGenerator);
1371
1396
 
1372
- var ZIndexGenerator = /*#__PURE__*/function () {
1373
1397
  function ZIndexGenerator(config) {
1374
- this.zIndexes = config.zIndexes;
1398
+ var _this;
1399
+
1400
+ _this = _AbstractGenerator.call(this, 'Z indexes') || this;
1401
+ _this.zIndexes = config.zIndexes;
1402
+ return _this;
1375
1403
  }
1376
1404
 
1377
1405
  var _proto = ZIndexGenerator.prototype;
1378
1406
 
1379
- _proto.generateHeader = function generateHeader() {
1380
- return '/* Displays */\n\n';
1381
- };
1382
-
1383
1407
  _proto.generateCss = function generateCss() {
1384
1408
  var output = ''; // Regular display: data-z="*"
1385
1409
 
@@ -1393,25 +1417,23 @@ var ZIndexGenerator = /*#__PURE__*/function () {
1393
1417
  return output;
1394
1418
  };
1395
1419
 
1396
- _proto.generateFooter = function generateFooter() {
1397
- return '/* ===================== */\n\n';
1398
- };
1399
-
1400
1420
  return ZIndexGenerator;
1401
- }();
1421
+ }(AbstractGenerator);
1422
+
1423
+ var WidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1424
+ _inheritsLoose(WidthsGenerator, _AbstractGenerator);
1402
1425
 
1403
- var WidthsGenerator = /*#__PURE__*/function () {
1404
1426
  function WidthsGenerator(config) {
1405
- this.widhts = config.widths;
1406
- this.breakpoints = config.breakpoints;
1427
+ var _this;
1428
+
1429
+ _this = _AbstractGenerator.call(this, 'Widths') || this;
1430
+ _this.widhts = config.widths;
1431
+ _this.breakpoints = config.breakpoints;
1432
+ return _this;
1407
1433
  }
1408
1434
 
1409
1435
  var _proto = WidthsGenerator.prototype;
1410
1436
 
1411
- _proto.generateHeader = function generateHeader() {
1412
- return '/* Widths */\n\n';
1413
- };
1414
-
1415
1437
  _proto.generateCss = function generateCss() {
1416
1438
  var output = ''; // Regular display: data-width="*"
1417
1439
 
@@ -1441,25 +1463,23 @@ var WidthsGenerator = /*#__PURE__*/function () {
1441
1463
  return output;
1442
1464
  };
1443
1465
 
1444
- _proto.generateFooter = function generateFooter() {
1445
- return '/* ===================== */\n\n';
1446
- };
1447
-
1448
1466
  return WidthsGenerator;
1449
- }();
1467
+ }(AbstractGenerator);
1468
+
1469
+ var FontSizeGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1470
+ _inheritsLoose(FontSizeGenerator, _AbstractGenerator);
1450
1471
 
1451
- var FontSizeGenerator = /*#__PURE__*/function () {
1452
1472
  function FontSizeGenerator(config) {
1453
- this.fontSizes = config.fontSizes;
1454
- this.breakpoints = config.breakpoints;
1473
+ var _this;
1474
+
1475
+ _this = _AbstractGenerator.call(this, 'Font sizes') || this;
1476
+ _this.fontSizes = config.fontSizes;
1477
+ _this.breakpoints = config.breakpoints;
1478
+ return _this;
1455
1479
  }
1456
1480
 
1457
1481
  var _proto = FontSizeGenerator.prototype;
1458
1482
 
1459
- _proto.generateHeader = function generateHeader() {
1460
- return '/* Font sizes */\n\n';
1461
- };
1462
-
1463
1483
  _proto.generateCss = function generateCss() {
1464
1484
  var output = ''; // Regular display: data-fs="*"
1465
1485
 
@@ -1489,24 +1509,22 @@ var FontSizeGenerator = /*#__PURE__*/function () {
1489
1509
  return output;
1490
1510
  };
1491
1511
 
1492
- _proto.generateFooter = function generateFooter() {
1493
- return '/* ===================== */\n\n';
1494
- };
1495
-
1496
1512
  return FontSizeGenerator;
1497
- }();
1513
+ }(AbstractGenerator);
1514
+
1515
+ var FontWeightGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1516
+ _inheritsLoose(FontWeightGenerator, _AbstractGenerator);
1498
1517
 
1499
- var FontWeightGenerator = /*#__PURE__*/function () {
1500
1518
  function FontWeightGenerator(config) {
1501
- this.fontWeights = config.fontWeights;
1519
+ var _this;
1520
+
1521
+ _this = _AbstractGenerator.call(this, 'Font sizes') || this;
1522
+ _this.fontWeights = config.fontWeights;
1523
+ return _this;
1502
1524
  }
1503
1525
 
1504
1526
  var _proto = FontWeightGenerator.prototype;
1505
1527
 
1506
- _proto.generateHeader = function generateHeader() {
1507
- return '/* Font sizes */\n\n';
1508
- };
1509
-
1510
1528
  _proto.generateCss = function generateCss() {
1511
1529
  var output = ''; // Regular display: data-fw="*"
1512
1530
 
@@ -1520,24 +1538,22 @@ var FontWeightGenerator = /*#__PURE__*/function () {
1520
1538
  return output;
1521
1539
  };
1522
1540
 
1523
- _proto.generateFooter = function generateFooter() {
1524
- return '/* ===================== */\n\n';
1525
- };
1526
-
1527
1541
  return FontWeightGenerator;
1528
- }();
1542
+ }(AbstractGenerator);
1543
+
1544
+ var LineHeightsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1545
+ _inheritsLoose(LineHeightsGenerator, _AbstractGenerator);
1529
1546
 
1530
- var LineHeightsGenerator = /*#__PURE__*/function () {
1531
1547
  function LineHeightsGenerator(config) {
1532
- this.lineHeights = config.lineHeights;
1548
+ var _this;
1549
+
1550
+ _this = _AbstractGenerator.call(this, 'Line heights') || this;
1551
+ _this.lineHeights = config.lineHeights;
1552
+ return _this;
1533
1553
  }
1534
1554
 
1535
1555
  var _proto = LineHeightsGenerator.prototype;
1536
1556
 
1537
- _proto.generateHeader = function generateHeader() {
1538
- return '/* Line heights */\n\n';
1539
- };
1540
-
1541
1557
  _proto.generateCss = function generateCss() {
1542
1558
  var output = ''; // Regular display: data-lh="*"
1543
1559
 
@@ -1551,25 +1567,23 @@ var LineHeightsGenerator = /*#__PURE__*/function () {
1551
1567
  return output;
1552
1568
  };
1553
1569
 
1554
- _proto.generateFooter = function generateFooter() {
1555
- return '/* ===================== */\n\n';
1556
- };
1557
-
1558
1570
  return LineHeightsGenerator;
1559
- }();
1571
+ }(AbstractGenerator);
1572
+
1573
+ var FlexDirectionsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1574
+ _inheritsLoose(FlexDirectionsGenerator, _AbstractGenerator);
1560
1575
 
1561
- var FlexDirectionsGenerator = /*#__PURE__*/function () {
1562
1576
  function FlexDirectionsGenerator(config) {
1563
- this.flexDirections = config.flexDirections;
1564
- this.breakpoints = config.breakpoints;
1577
+ var _this;
1578
+
1579
+ _this = _AbstractGenerator.call(this, 'Flex directions') || this;
1580
+ _this.flexDirections = config.flexDirections;
1581
+ _this.breakpoints = config.breakpoints;
1582
+ return _this;
1565
1583
  }
1566
1584
 
1567
1585
  var _proto = FlexDirectionsGenerator.prototype;
1568
1586
 
1569
- _proto.generateHeader = function generateHeader() {
1570
- return '/* Flex directions */\n\n';
1571
- };
1572
-
1573
1587
  _proto.generateCss = function generateCss() {
1574
1588
  var output = '';
1575
1589
 
@@ -1599,24 +1613,22 @@ var FlexDirectionsGenerator = /*#__PURE__*/function () {
1599
1613
  return output;
1600
1614
  };
1601
1615
 
1602
- _proto.generateFooter = function generateFooter() {
1603
- return '/* ===================== */\n\n';
1604
- };
1605
-
1606
1616
  return FlexDirectionsGenerator;
1607
- }();
1617
+ }(AbstractGenerator);
1618
+
1619
+ var BackgroundsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1620
+ _inheritsLoose(BackgroundsGenerator, _AbstractGenerator);
1608
1621
 
1609
- var BackgroundsGenerator = /*#__PURE__*/function () {
1610
1622
  function BackgroundsGenerator(config) {
1611
- this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
1623
+ var _this;
1624
+
1625
+ _this = _AbstractGenerator.call(this, 'Backgrounds') || this;
1626
+ _this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
1627
+ return _this;
1612
1628
  }
1613
1629
 
1614
1630
  var _proto = BackgroundsGenerator.prototype;
1615
1631
 
1616
- _proto.generateHeader = function generateHeader() {
1617
- return '/* Backgrounds */\n\n';
1618
- };
1619
-
1620
1632
  _proto.generateCss = function generateCss() {
1621
1633
  var output = ''; // Regular display: data-bg="*"
1622
1634
 
@@ -1630,24 +1642,22 @@ var BackgroundsGenerator = /*#__PURE__*/function () {
1630
1642
  return output;
1631
1643
  };
1632
1644
 
1633
- _proto.generateFooter = function generateFooter() {
1634
- return '/* ===================== */\n\n';
1635
- };
1636
-
1637
1645
  return BackgroundsGenerator;
1638
- }();
1646
+ }(AbstractGenerator);
1647
+
1648
+ var FontColorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1649
+ _inheritsLoose(FontColorsGenerator, _AbstractGenerator);
1639
1650
 
1640
- var FontColorsGenerator = /*#__PURE__*/function () {
1641
1651
  function FontColorsGenerator(config) {
1642
- this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
1652
+ var _this;
1653
+
1654
+ _this = _AbstractGenerator.call(this, 'Font colors') || this;
1655
+ _this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
1656
+ return _this;
1643
1657
  }
1644
1658
 
1645
1659
  var _proto = FontColorsGenerator.prototype;
1646
1660
 
1647
- _proto.generateHeader = function generateHeader() {
1648
- return '/* Font colors */\n\n';
1649
- };
1650
-
1651
1661
  _proto.generateCss = function generateCss() {
1652
1662
  var output = ''; // Regular display: data-color="*"
1653
1663
 
@@ -1661,24 +1671,22 @@ var FontColorsGenerator = /*#__PURE__*/function () {
1661
1671
  return output;
1662
1672
  };
1663
1673
 
1664
- _proto.generateFooter = function generateFooter() {
1665
- return '/* ===================== */\n\n';
1666
- };
1667
-
1668
1674
  return FontColorsGenerator;
1669
- }();
1675
+ }(AbstractGenerator);
1676
+
1677
+ var LetterSpacingsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1678
+ _inheritsLoose(LetterSpacingsGenerator, _AbstractGenerator);
1670
1679
 
1671
- var LetterSpacingsGenerator = /*#__PURE__*/function () {
1672
1680
  function LetterSpacingsGenerator(config) {
1673
- this.letterSpacings = config.letterSpacings;
1681
+ var _this;
1682
+
1683
+ _this = _AbstractGenerator.call(this, 'Letter spacings') || this;
1684
+ _this.letterSpacings = config.letterSpacings;
1685
+ return _this;
1674
1686
  }
1675
1687
 
1676
1688
  var _proto = LetterSpacingsGenerator.prototype;
1677
1689
 
1678
- _proto.generateHeader = function generateHeader() {
1679
- return '/* Font sizes */\n\n';
1680
- };
1681
-
1682
1690
  _proto.generateCss = function generateCss() {
1683
1691
  var output = ''; // Regular display: data-ls="*"
1684
1692
 
@@ -1692,25 +1700,23 @@ var LetterSpacingsGenerator = /*#__PURE__*/function () {
1692
1700
  return output;
1693
1701
  };
1694
1702
 
1695
- _proto.generateFooter = function generateFooter() {
1696
- return '/* ===================== */\n\n';
1697
- };
1698
-
1699
1703
  return LetterSpacingsGenerator;
1700
- }();
1704
+ }(AbstractGenerator);
1705
+
1706
+ var FlexGrowsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1707
+ _inheritsLoose(FlexGrowsGenerator, _AbstractGenerator);
1701
1708
 
1702
- var FlexGrowsGenerator = /*#__PURE__*/function () {
1703
1709
  function FlexGrowsGenerator(config) {
1704
- this.flexGrows = config.flexGrows;
1705
- this.breakpoints = config.breakpoints;
1710
+ var _this;
1711
+
1712
+ _this = _AbstractGenerator.call(this, 'Line heights') || this;
1713
+ _this.flexGrows = config.flexGrows;
1714
+ _this.breakpoints = config.breakpoints;
1715
+ return _this;
1706
1716
  }
1707
1717
 
1708
1718
  var _proto = FlexGrowsGenerator.prototype;
1709
1719
 
1710
- _proto.generateHeader = function generateHeader() {
1711
- return '/* Line heights */\n\n';
1712
- };
1713
-
1714
1720
  _proto.generateCss = function generateCss() {
1715
1721
  var output = ''; // Regular display: data-grow="*"
1716
1722
 
@@ -1740,24 +1746,22 @@ var FlexGrowsGenerator = /*#__PURE__*/function () {
1740
1746
  return output;
1741
1747
  };
1742
1748
 
1743
- _proto.generateFooter = function generateFooter() {
1744
- return '/* ===================== */\n\n';
1745
- };
1746
-
1747
1749
  return FlexGrowsGenerator;
1748
- }();
1750
+ }(AbstractGenerator);
1751
+
1752
+ var BorderWidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1753
+ _inheritsLoose(BorderWidthsGenerator, _AbstractGenerator);
1749
1754
 
1750
- var BorderWidthsGenerator = /*#__PURE__*/function () {
1751
1755
  function BorderWidthsGenerator(config) {
1752
- this.borderWidths = config.borderWidths;
1756
+ var _this;
1757
+
1758
+ _this = _AbstractGenerator.call(this, 'Border widths') || this;
1759
+ _this.borderWidths = config.borderWidths;
1760
+ return _this;
1753
1761
  }
1754
1762
 
1755
1763
  var _proto = BorderWidthsGenerator.prototype;
1756
1764
 
1757
- _proto.generateHeader = function generateHeader() {
1758
- return '/* Border widths */\n\n';
1759
- };
1760
-
1761
1765
  _proto.generateCss = function generateCss() {
1762
1766
  var output = '';
1763
1767
 
@@ -1813,27 +1817,25 @@ var BorderWidthsGenerator = /*#__PURE__*/function () {
1813
1817
  return output;
1814
1818
  };
1815
1819
 
1816
- _proto.generateFooter = function generateFooter() {
1817
- return '/* ===================== */\n\n';
1818
- };
1819
-
1820
1820
  return BorderWidthsGenerator;
1821
- }();
1821
+ }(AbstractGenerator);
1822
+
1823
+ var BorderColorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1824
+ _inheritsLoose(BorderColorsGenerator, _AbstractGenerator);
1822
1825
 
1823
- var BorderColorsGenerator = /*#__PURE__*/function () {
1824
1826
  function BorderColorsGenerator(config) {
1825
- this.borderColors = config.borderColors;
1826
- this.greens = config.greens;
1827
- this.oranges = config.oranges;
1828
- this.reds = config.reds;
1827
+ var _this;
1828
+
1829
+ _this = _AbstractGenerator.call(this, 'Border colors') || this;
1830
+ _this.borderColors = config.borderColors;
1831
+ _this.greens = config.greens;
1832
+ _this.oranges = config.oranges;
1833
+ _this.reds = config.reds;
1834
+ return _this;
1829
1835
  }
1830
1836
 
1831
1837
  var _proto = BorderColorsGenerator.prototype;
1832
1838
 
1833
- _proto.generateHeader = function generateHeader() {
1834
- return '/* Border colors */\n\n';
1835
- };
1836
-
1837
1839
  _proto.generateCss = function generateCss() {
1838
1840
  var output = '';
1839
1841
 
@@ -1889,24 +1891,22 @@ var BorderColorsGenerator = /*#__PURE__*/function () {
1889
1891
  return output;
1890
1892
  };
1891
1893
 
1892
- _proto.generateFooter = function generateFooter() {
1893
- return '/* ===================== */\n\n';
1894
- };
1895
-
1896
1894
  return BorderColorsGenerator;
1897
- }();
1895
+ }(AbstractGenerator);
1896
+
1897
+ var BorderRadiusesGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1898
+ _inheritsLoose(BorderRadiusesGenerator, _AbstractGenerator);
1898
1899
 
1899
- var BorderRadiusesGenerator = /*#__PURE__*/function () {
1900
1900
  function BorderRadiusesGenerator(config) {
1901
- this.borderRadiuses = config.borderRadiuses;
1901
+ var _this;
1902
+
1903
+ _this = _AbstractGenerator.call(this, 'Border radiuses') || this;
1904
+ _this.borderRadiuses = config.borderRadiuses;
1905
+ return _this;
1902
1906
  }
1903
1907
 
1904
1908
  var _proto = BorderRadiusesGenerator.prototype;
1905
1909
 
1906
- _proto.generateHeader = function generateHeader() {
1907
- return '/* Border radiuses */\n\n';
1908
- };
1909
-
1910
1910
  _proto.generateCss = function generateCss() {
1911
1911
  var output = '';
1912
1912
 
@@ -1920,25 +1920,23 @@ var BorderRadiusesGenerator = /*#__PURE__*/function () {
1920
1920
  return output;
1921
1921
  };
1922
1922
 
1923
- _proto.generateFooter = function generateFooter() {
1924
- return '/* ===================== */\n\n';
1925
- };
1926
-
1927
1923
  return BorderRadiusesGenerator;
1928
- }();
1924
+ }(AbstractGenerator);
1925
+
1926
+ var MaxWidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1927
+ _inheritsLoose(MaxWidthsGenerator, _AbstractGenerator);
1929
1928
 
1930
- var MaxWidthsGenerator = /*#__PURE__*/function () {
1931
1929
  function MaxWidthsGenerator(config) {
1932
- this.maxWidths = config.maxWidths;
1933
- this.breakpoints = config.breakpoints;
1930
+ var _this;
1931
+
1932
+ _this = _AbstractGenerator.call(this, 'Max widths') || this;
1933
+ _this.maxWidths = config.maxWidths;
1934
+ _this.breakpoints = config.breakpoints;
1935
+ return _this;
1934
1936
  }
1935
1937
 
1936
1938
  var _proto = MaxWidthsGenerator.prototype;
1937
1939
 
1938
- _proto.generateHeader = function generateHeader() {
1939
- return '/* Max widths */\n\n';
1940
- };
1941
-
1942
1940
  _proto.generateCss = function generateCss() {
1943
1941
  var output = ''; // Regular display: data-max-width="*"
1944
1942
 
@@ -1968,24 +1966,22 @@ var MaxWidthsGenerator = /*#__PURE__*/function () {
1968
1966
  return output;
1969
1967
  };
1970
1968
 
1971
- _proto.generateFooter = function generateFooter() {
1972
- return '/* ===================== */\n\n';
1973
- };
1974
-
1975
1969
  return MaxWidthsGenerator;
1976
- }();
1970
+ }(AbstractGenerator);
1971
+
1972
+ var TransformsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
1973
+ _inheritsLoose(TransformsGenerator, _AbstractGenerator);
1977
1974
 
1978
- var TransformsGenerator = /*#__PURE__*/function () {
1979
1975
  function TransformsGenerator(config) {
1980
- this.transforms = config.transforms;
1976
+ var _this;
1977
+
1978
+ _this = _AbstractGenerator.call(this, 'Transforms') || this;
1979
+ _this.transforms = config.transforms;
1980
+ return _this;
1981
1981
  }
1982
1982
 
1983
1983
  var _proto = TransformsGenerator.prototype;
1984
1984
 
1985
- _proto.generateHeader = function generateHeader() {
1986
- return '/* Transforms */\n\n';
1987
- };
1988
-
1989
1985
  _proto.generateCss = function generateCss() {
1990
1986
  var output = ''; // Regular display: data-transform="*"
1991
1987
 
@@ -1999,30 +1995,33 @@ var TransformsGenerator = /*#__PURE__*/function () {
1999
1995
  continue;
2000
1996
  }
2001
1997
 
1998
+ if (key === 'center') {
1999
+ output += "*[data-transform='" + key + "'] {\n text-align: center;\n}\n";
2000
+ continue;
2001
+ }
2002
+
2002
2003
  output += "*[data-transform='" + key + "'] {\n text-transform: " + value + ";\n}\n";
2003
2004
  }
2004
2005
 
2005
2006
  return output;
2006
2007
  };
2007
2008
 
2008
- _proto.generateFooter = function generateFooter() {
2009
- return '/* ===================== */\n\n';
2010
- };
2011
-
2012
2009
  return TransformsGenerator;
2013
- }();
2010
+ }(AbstractGenerator);
2011
+
2012
+ var OverflowsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
2013
+ _inheritsLoose(OverflowsGenerator, _AbstractGenerator);
2014
2014
 
2015
- var OverflowsGenerator = /*#__PURE__*/function () {
2016
2015
  function OverflowsGenerator(config) {
2017
- this.overflows = config.overflows;
2016
+ var _this;
2017
+
2018
+ _this = _AbstractGenerator.call(this, 'Overflows') || this;
2019
+ _this.overflows = config.overflows;
2020
+ return _this;
2018
2021
  }
2019
2022
 
2020
2023
  var _proto = OverflowsGenerator.prototype;
2021
2024
 
2022
- _proto.generateHeader = function generateHeader() {
2023
- return '/* Overflows */\n\n';
2024
- };
2025
-
2026
2025
  _proto.generateCss = function generateCss() {
2027
2026
  var output = ''; // Regular display: data-overflow="*"
2028
2027
 
@@ -2036,21 +2035,17 @@ var OverflowsGenerator = /*#__PURE__*/function () {
2036
2035
  return output;
2037
2036
  };
2038
2037
 
2039
- _proto.generateFooter = function generateFooter() {
2040
- return '/* ===================== */\n\n';
2041
- };
2042
-
2043
2038
  return OverflowsGenerator;
2044
- }();
2039
+ }(AbstractGenerator);
2045
2040
 
2046
- var PositionersGenerator = /*#__PURE__*/function () {
2047
- function PositionersGenerator() {}
2041
+ var PositionersGenerator = /*#__PURE__*/function (_AbstractGenerator) {
2042
+ _inheritsLoose(PositionersGenerator, _AbstractGenerator);
2048
2043
 
2049
- var _proto = PositionersGenerator.prototype;
2044
+ function PositionersGenerator() {
2045
+ return _AbstractGenerator.call(this, 'Positioners') || this;
2046
+ }
2050
2047
 
2051
- _proto.generateHeader = function generateHeader() {
2052
- return '/* Positioners */\n\n';
2053
- };
2048
+ var _proto = PositionersGenerator.prototype;
2054
2049
 
2055
2050
  _proto.generateCss = function generateCss() {
2056
2051
  var output = '';
@@ -2062,12 +2057,8 @@ var PositionersGenerator = /*#__PURE__*/function () {
2062
2057
  return output;
2063
2058
  };
2064
2059
 
2065
- _proto.generateFooter = function generateFooter() {
2066
- return '/* ===================== */\n\n';
2067
- };
2068
-
2069
2060
  return PositionersGenerator;
2070
- }();
2061
+ }(AbstractGenerator);
2071
2062
 
2072
2063
  var Spacing = {
2073
2064
  '0': '0',
@@ -2236,6 +2227,7 @@ var Transforms = {
2236
2227
  lowercase: 'lowercase',
2237
2228
  capitalize: 'capitalize',
2238
2229
  truncate: 'truncate',
2230
+ center: 'center',
2239
2231
  none: 'none'
2240
2232
  };
2241
2233
  var Overflows = {
@@ -2304,14 +2296,26 @@ var GeneratorProcessor = /*#__PURE__*/function () {
2304
2296
  output = _context.t5 += _context.sent;
2305
2297
  _context.t6 = output;
2306
2298
  _context.next = 29;
2307
- return new File('src/rules/title-truncate.css').read();
2299
+ return new File('src/ui/anima.css').read();
2308
2300
 
2309
2301
  case 29:
2310
2302
  output = _context.t6 += _context.sent;
2311
- _context.next = 32;
2303
+ _context.t7 = output;
2304
+ _context.next = 33;
2305
+ return new File('src/rules/title-truncate.css').read();
2306
+
2307
+ case 33:
2308
+ output = _context.t7 += _context.sent;
2309
+ _context.t8 = output;
2310
+ _context.next = 37;
2311
+ return new File('src/rules/target-blank-referer.css').read();
2312
+
2313
+ case 37:
2314
+ output = _context.t8 += _context.sent;
2315
+ _context.next = 40;
2312
2316
  return new File('dist/main.css').save(output);
2313
2317
 
2314
- case 32:
2318
+ case 40:
2315
2319
  case "end":
2316
2320
  return _context.stop();
2317
2321
  }