@bgord/design 0.27.67 → 0.27.68
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/dist/design.cjs.development.js +299 -675
- package/dist/design.cjs.development.js.map +1 -1
- package/dist/design.cjs.production.min.js +1 -1
- package/dist/design.cjs.production.min.js.map +1 -1
- package/dist/design.esm.js +299 -675
- package/dist/design.esm.js.map +1 -1
- package/dist/main.css +24 -89
- package/dist/main.min.css +1 -1
- package/dist/main.min.css.br +0 -0
- package/dist/main.min.css.gz +0 -0
- package/package.json +9 -17
|
@@ -13,68 +13,54 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
13
13
|
reject(error);
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
16
|
if (info.done) {
|
|
18
17
|
resolve(value);
|
|
19
18
|
} else {
|
|
20
19
|
Promise.resolve(value).then(_next, _throw);
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
function _asyncToGenerator(fn) {
|
|
25
23
|
return function () {
|
|
26
24
|
var self = this,
|
|
27
|
-
|
|
25
|
+
args = arguments;
|
|
28
26
|
return new Promise(function (resolve, reject) {
|
|
29
27
|
var gen = fn.apply(self, args);
|
|
30
|
-
|
|
31
28
|
function _next(value) {
|
|
32
29
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
33
30
|
}
|
|
34
|
-
|
|
35
31
|
function _throw(err) {
|
|
36
32
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
37
33
|
}
|
|
38
|
-
|
|
39
34
|
_next(undefined);
|
|
40
35
|
});
|
|
41
36
|
};
|
|
42
37
|
}
|
|
43
|
-
|
|
44
38
|
function _extends() {
|
|
45
|
-
_extends = Object.assign
|
|
39
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
46
40
|
for (var i = 1; i < arguments.length; i++) {
|
|
47
41
|
var source = arguments[i];
|
|
48
|
-
|
|
49
42
|
for (var key in source) {
|
|
50
43
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
51
44
|
target[key] = source[key];
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
47
|
}
|
|
55
|
-
|
|
56
48
|
return target;
|
|
57
49
|
};
|
|
58
|
-
|
|
59
50
|
return _extends.apply(this, arguments);
|
|
60
51
|
}
|
|
61
|
-
|
|
62
52
|
function _inheritsLoose(subClass, superClass) {
|
|
63
53
|
subClass.prototype = Object.create(superClass.prototype);
|
|
64
54
|
subClass.prototype.constructor = subClass;
|
|
65
|
-
|
|
66
55
|
_setPrototypeOf(subClass, superClass);
|
|
67
56
|
}
|
|
68
|
-
|
|
69
57
|
function _setPrototypeOf(o, p) {
|
|
70
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
58
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
71
59
|
o.__proto__ = p;
|
|
72
60
|
return o;
|
|
73
61
|
};
|
|
74
|
-
|
|
75
62
|
return _setPrototypeOf(o, p);
|
|
76
63
|
}
|
|
77
|
-
|
|
78
64
|
function _unsupportedIterableToArray(o, minLen) {
|
|
79
65
|
if (!o) return;
|
|
80
66
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -83,19 +69,14 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
83
69
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
84
70
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
85
71
|
}
|
|
86
|
-
|
|
87
72
|
function _arrayLikeToArray(arr, len) {
|
|
88
73
|
if (len == null || len > arr.length) len = arr.length;
|
|
89
|
-
|
|
90
74
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
91
|
-
|
|
92
75
|
return arr2;
|
|
93
76
|
}
|
|
94
|
-
|
|
95
77
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
96
78
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
97
79
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
98
|
-
|
|
99
80
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
100
81
|
if (it) o = it;
|
|
101
82
|
var i = 0;
|
|
@@ -109,7 +90,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
109
90
|
};
|
|
110
91
|
};
|
|
111
92
|
}
|
|
112
|
-
|
|
113
93
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
114
94
|
}
|
|
115
95
|
|
|
@@ -871,9 +851,7 @@ var File = /*#__PURE__*/function () {
|
|
|
871
851
|
function File(path) {
|
|
872
852
|
this.path = path;
|
|
873
853
|
}
|
|
874
|
-
|
|
875
854
|
var _proto = File.prototype;
|
|
876
|
-
|
|
877
855
|
_proto.save = /*#__PURE__*/function () {
|
|
878
856
|
var _save = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(content) {
|
|
879
857
|
return runtime_1.wrap(function _callee$(_context) {
|
|
@@ -881,7 +859,6 @@ var File = /*#__PURE__*/function () {
|
|
|
881
859
|
switch (_context.prev = _context.next) {
|
|
882
860
|
case 0:
|
|
883
861
|
return _context.abrupt("return", fs.promises.writeFile(this.path, content));
|
|
884
|
-
|
|
885
862
|
case 1:
|
|
886
863
|
case "end":
|
|
887
864
|
return _context.stop();
|
|
@@ -889,14 +866,11 @@ var File = /*#__PURE__*/function () {
|
|
|
889
866
|
}
|
|
890
867
|
}, _callee, this);
|
|
891
868
|
}));
|
|
892
|
-
|
|
893
869
|
function save(_x) {
|
|
894
870
|
return _save.apply(this, arguments);
|
|
895
871
|
}
|
|
896
|
-
|
|
897
872
|
return save;
|
|
898
873
|
}();
|
|
899
|
-
|
|
900
874
|
_proto.read = /*#__PURE__*/function () {
|
|
901
875
|
var _read = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
902
876
|
var result;
|
|
@@ -907,16 +881,13 @@ var File = /*#__PURE__*/function () {
|
|
|
907
881
|
_context2.prev = 0;
|
|
908
882
|
_context2.next = 3;
|
|
909
883
|
return fs.promises.readFile(this.path);
|
|
910
|
-
|
|
911
884
|
case 3:
|
|
912
885
|
result = _context2.sent;
|
|
913
886
|
return _context2.abrupt("return", result.toString());
|
|
914
|
-
|
|
915
887
|
case 7:
|
|
916
888
|
_context2.prev = 7;
|
|
917
889
|
_context2.t0 = _context2["catch"](0);
|
|
918
890
|
return _context2.abrupt("return", null);
|
|
919
|
-
|
|
920
891
|
case 10:
|
|
921
892
|
case "end":
|
|
922
893
|
return _context2.stop();
|
|
@@ -924,14 +895,11 @@ var File = /*#__PURE__*/function () {
|
|
|
924
895
|
}
|
|
925
896
|
}, _callee2, this, [[0, 7]]);
|
|
926
897
|
}));
|
|
927
|
-
|
|
928
898
|
function read() {
|
|
929
899
|
return _read.apply(this, arguments);
|
|
930
900
|
}
|
|
931
|
-
|
|
932
901
|
return read;
|
|
933
902
|
}();
|
|
934
|
-
|
|
935
903
|
return File;
|
|
936
904
|
}();
|
|
937
905
|
|
|
@@ -939,974 +907,791 @@ var AbstractGenerator = /*#__PURE__*/function () {
|
|
|
939
907
|
function AbstractGenerator(name) {
|
|
940
908
|
this.name = name;
|
|
941
909
|
}
|
|
942
|
-
|
|
943
910
|
var _proto = AbstractGenerator.prototype;
|
|
944
|
-
|
|
945
911
|
_proto.generateHeader = function generateHeader() {
|
|
946
912
|
return "/* " + this.name + " */\n\n";
|
|
947
913
|
};
|
|
948
|
-
|
|
949
914
|
_proto.generateFooter = function generateFooter() {
|
|
950
915
|
return '/* ===================== */\n\n';
|
|
951
916
|
};
|
|
952
|
-
|
|
953
917
|
return AbstractGenerator;
|
|
954
918
|
}();
|
|
955
919
|
|
|
956
920
|
var Margins = /*#__PURE__*/function (_AbstractGenerator) {
|
|
957
921
|
_inheritsLoose(Margins, _AbstractGenerator);
|
|
958
|
-
|
|
959
922
|
function Margins(config) {
|
|
960
923
|
var _this;
|
|
961
|
-
|
|
962
924
|
_this = _AbstractGenerator.call(this, 'Margins') || this;
|
|
963
925
|
_this.spacing = config.spacing;
|
|
964
926
|
_this.breakpoints = config.breakpoints;
|
|
965
927
|
return _this;
|
|
966
928
|
}
|
|
967
|
-
|
|
968
929
|
var _proto = Margins.prototype;
|
|
969
|
-
|
|
970
930
|
_proto.generateCss = function generateCss() {
|
|
971
931
|
var output = '';
|
|
972
|
-
|
|
973
932
|
for (var _i = 0, _Object$entries = Object.entries(this.spacing); _i < _Object$entries.length; _i++) {
|
|
974
933
|
var _Object$entries$_i = _Object$entries[_i],
|
|
975
|
-
|
|
976
|
-
|
|
934
|
+
key = _Object$entries$_i[0],
|
|
935
|
+
value = _Object$entries$_i[1];
|
|
977
936
|
output += "*[data-m='" + key + "'] {\n margin: " + value + ";\n}\n";
|
|
978
937
|
}
|
|
979
|
-
|
|
980
938
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.spacing); _i2 < _Object$entries2.length; _i2++) {
|
|
981
939
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
982
|
-
|
|
983
|
-
|
|
940
|
+
_key = _Object$entries2$_i[0],
|
|
941
|
+
_value = _Object$entries2$_i[1];
|
|
984
942
|
output += "*[data-mx='" + _key + "'] {\n margin-left: " + _value + ";\n margin-right: " + _value + ";\n}\n";
|
|
985
943
|
}
|
|
986
|
-
|
|
987
944
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.spacing); _i3 < _Object$entries3.length; _i3++) {
|
|
988
945
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
989
|
-
|
|
990
|
-
|
|
946
|
+
_key2 = _Object$entries3$_i[0],
|
|
947
|
+
_value2 = _Object$entries3$_i[1];
|
|
991
948
|
output += "*[data-my='" + _key2 + "'] {\n margin-top: " + _value2 + ";\n margin-bottom: " + _value2 + ";\n}\n";
|
|
992
949
|
}
|
|
993
|
-
|
|
994
950
|
for (var _i4 = 0, _Object$entries4 = Object.entries(this.spacing); _i4 < _Object$entries4.length; _i4++) {
|
|
995
951
|
var _Object$entries4$_i = _Object$entries4[_i4],
|
|
996
|
-
|
|
997
|
-
|
|
952
|
+
_key3 = _Object$entries4$_i[0],
|
|
953
|
+
_value3 = _Object$entries4$_i[1];
|
|
998
954
|
output += "*[data-mt='" + _key3 + "'] {\n margin-top: " + _value3 + ";\n}\n";
|
|
999
955
|
}
|
|
1000
|
-
|
|
1001
956
|
for (var _i5 = 0, _Object$entries5 = Object.entries(this.spacing); _i5 < _Object$entries5.length; _i5++) {
|
|
1002
957
|
var _Object$entries5$_i = _Object$entries5[_i5],
|
|
1003
|
-
|
|
1004
|
-
|
|
958
|
+
_key4 = _Object$entries5$_i[0],
|
|
959
|
+
_value4 = _Object$entries5$_i[1];
|
|
1005
960
|
output += "*[data-mr='" + _key4 + "'] {\n margin-right: " + _value4 + ";\n}\n";
|
|
1006
961
|
}
|
|
1007
|
-
|
|
1008
962
|
for (var _i6 = 0, _Object$entries6 = Object.entries(this.spacing); _i6 < _Object$entries6.length; _i6++) {
|
|
1009
963
|
var _Object$entries6$_i = _Object$entries6[_i6],
|
|
1010
|
-
|
|
1011
|
-
|
|
964
|
+
_key5 = _Object$entries6$_i[0],
|
|
965
|
+
_value5 = _Object$entries6$_i[1];
|
|
1012
966
|
output += "*[data-mb='" + _key5 + "'] {\n margin-bottom: " + _value5 + ";\n}\n";
|
|
1013
967
|
}
|
|
1014
|
-
|
|
1015
968
|
for (var _i7 = 0, _Object$entries7 = Object.entries(this.spacing); _i7 < _Object$entries7.length; _i7++) {
|
|
1016
969
|
var _Object$entries7$_i = _Object$entries7[_i7],
|
|
1017
|
-
|
|
1018
|
-
|
|
970
|
+
_key6 = _Object$entries7$_i[0],
|
|
971
|
+
_value6 = _Object$entries7$_i[1];
|
|
1019
972
|
output += "*[data-ml='" + _key6 + "'] {\n margin-left: " + _value6 + ";\n}\n";
|
|
1020
973
|
}
|
|
1021
|
-
|
|
1022
974
|
for (var _i8 = 0, _Object$entries8 = Object.entries(this.breakpoints); _i8 < _Object$entries8.length; _i8++) {
|
|
1023
975
|
var _Object$entries8$_i = _Object$entries8[_i8],
|
|
1024
|
-
|
|
1025
|
-
|
|
976
|
+
name = _Object$entries8$_i[0],
|
|
977
|
+
_value7 = _Object$entries8$_i[1];
|
|
1026
978
|
output += "@media (max-width: " + _value7 + "px) {\n";
|
|
1027
|
-
|
|
1028
979
|
for (var _i9 = 0, _Object$entries9 = Object.entries(this.spacing); _i9 < _Object$entries9.length; _i9++) {
|
|
1029
980
|
var _Object$entries9$_i = _Object$entries9[_i9],
|
|
1030
|
-
|
|
1031
|
-
|
|
981
|
+
_key7 = _Object$entries9$_i[0],
|
|
982
|
+
_value8 = _Object$entries9$_i[1];
|
|
1032
983
|
output += " *[data-" + name + "-m='" + _key7 + "'] {\n margin: " + _value8 + ";\n }\n";
|
|
1033
984
|
}
|
|
1034
|
-
|
|
1035
985
|
for (var _i10 = 0, _Object$entries10 = Object.entries(this.spacing); _i10 < _Object$entries10.length; _i10++) {
|
|
1036
986
|
var _Object$entries10$_i = _Object$entries10[_i10],
|
|
1037
|
-
|
|
1038
|
-
|
|
987
|
+
_key8 = _Object$entries10$_i[0],
|
|
988
|
+
_value9 = _Object$entries10$_i[1];
|
|
1039
989
|
output += " *[data-" + name + "-mx='" + _key8 + "'] {\n margin-left: " + _value9 + ";\n margin-right: " + _value9 + ";\n }\n";
|
|
1040
990
|
}
|
|
1041
|
-
|
|
1042
991
|
for (var _i11 = 0, _Object$entries11 = Object.entries(this.spacing); _i11 < _Object$entries11.length; _i11++) {
|
|
1043
992
|
var _Object$entries11$_i = _Object$entries11[_i11],
|
|
1044
|
-
|
|
1045
|
-
|
|
993
|
+
_key9 = _Object$entries11$_i[0],
|
|
994
|
+
_value10 = _Object$entries11$_i[1];
|
|
1046
995
|
output += " *[data-" + name + "-my='" + _key9 + "'] {\n margin-top: " + _value10 + ";\n margin-bottom: " + _value10 + ";\n }\n";
|
|
1047
996
|
}
|
|
1048
|
-
|
|
1049
997
|
for (var _i12 = 0, _Object$entries12 = Object.entries(this.spacing); _i12 < _Object$entries12.length; _i12++) {
|
|
1050
998
|
var _Object$entries12$_i = _Object$entries12[_i12],
|
|
1051
|
-
|
|
1052
|
-
|
|
999
|
+
_key10 = _Object$entries12$_i[0],
|
|
1000
|
+
_value11 = _Object$entries12$_i[1];
|
|
1053
1001
|
output += " *[data-" + name + "-mt='" + _key10 + "'] {\n margin-top: " + _value11 + ";\n }\n";
|
|
1054
1002
|
}
|
|
1055
|
-
|
|
1056
1003
|
for (var _i13 = 0, _Object$entries13 = Object.entries(this.spacing); _i13 < _Object$entries13.length; _i13++) {
|
|
1057
1004
|
var _Object$entries13$_i = _Object$entries13[_i13],
|
|
1058
|
-
|
|
1059
|
-
|
|
1005
|
+
_key11 = _Object$entries13$_i[0],
|
|
1006
|
+
_value12 = _Object$entries13$_i[1];
|
|
1060
1007
|
output += " *[data-" + name + "-mr='" + _key11 + "'] {\n margin-right: " + _value12 + ";\n }\n";
|
|
1061
1008
|
}
|
|
1062
|
-
|
|
1063
1009
|
for (var _i14 = 0, _Object$entries14 = Object.entries(this.spacing); _i14 < _Object$entries14.length; _i14++) {
|
|
1064
1010
|
var _Object$entries14$_i = _Object$entries14[_i14],
|
|
1065
|
-
|
|
1066
|
-
|
|
1011
|
+
_key12 = _Object$entries14$_i[0],
|
|
1012
|
+
_value13 = _Object$entries14$_i[1];
|
|
1067
1013
|
output += " *[data-" + name + "-mb='" + _key12 + "'] {\n margin-bottom: " + _value13 + ";\n }\n";
|
|
1068
1014
|
}
|
|
1069
|
-
|
|
1070
1015
|
for (var _i15 = 0, _Object$entries15 = Object.entries(this.spacing); _i15 < _Object$entries15.length; _i15++) {
|
|
1071
1016
|
var _Object$entries15$_i = _Object$entries15[_i15],
|
|
1072
|
-
|
|
1073
|
-
|
|
1017
|
+
_key13 = _Object$entries15$_i[0],
|
|
1018
|
+
_value14 = _Object$entries15$_i[1];
|
|
1074
1019
|
output += " *[data-" + name + "-ml='" + _key13 + "'] {\n margin-left: " + _value14 + ";\n }\n";
|
|
1075
1020
|
}
|
|
1076
|
-
|
|
1077
1021
|
output += "}\n";
|
|
1078
1022
|
}
|
|
1079
|
-
|
|
1080
1023
|
return output;
|
|
1081
1024
|
};
|
|
1082
|
-
|
|
1083
1025
|
return Margins;
|
|
1084
1026
|
}(AbstractGenerator);
|
|
1085
1027
|
|
|
1086
1028
|
var Paddings = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1087
1029
|
_inheritsLoose(Paddings, _AbstractGenerator);
|
|
1088
|
-
|
|
1089
1030
|
function Paddings(config) {
|
|
1090
1031
|
var _this;
|
|
1091
|
-
|
|
1092
1032
|
_this = _AbstractGenerator.call(this, 'Paddings') || this;
|
|
1093
1033
|
_this.spacing = config.spacing;
|
|
1094
1034
|
_this.breakpoints = config.breakpoints;
|
|
1095
1035
|
return _this;
|
|
1096
1036
|
}
|
|
1097
|
-
|
|
1098
1037
|
var _proto = Paddings.prototype;
|
|
1099
|
-
|
|
1100
1038
|
_proto.generateCss = function generateCss() {
|
|
1101
|
-
var output = '';
|
|
1102
|
-
|
|
1039
|
+
var output = '';
|
|
1040
|
+
// Regular padding: data-p="*"
|
|
1103
1041
|
for (var _i = 0, _Object$entries = Object.entries(this.spacing); _i < _Object$entries.length; _i++) {
|
|
1104
1042
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1105
|
-
|
|
1106
|
-
|
|
1043
|
+
key = _Object$entries$_i[0],
|
|
1044
|
+
value = _Object$entries$_i[1];
|
|
1107
1045
|
output += "*[data-p='" + key + "'] {\n padding: " + value + ";\n}\n";
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1046
|
+
}
|
|
1047
|
+
// Horizontal padding: data-px="*"
|
|
1111
1048
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.spacing); _i2 < _Object$entries2.length; _i2++) {
|
|
1112
1049
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1113
|
-
|
|
1114
|
-
|
|
1050
|
+
_key = _Object$entries2$_i[0],
|
|
1051
|
+
_value = _Object$entries2$_i[1];
|
|
1115
1052
|
output += "*[data-px='" + _key + "'] {\n padding-left: " + _value + ";\n padding-right: " + _value + ";\n}\n";
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1053
|
+
}
|
|
1054
|
+
// Vertical padding: data-py="*"
|
|
1119
1055
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.spacing); _i3 < _Object$entries3.length; _i3++) {
|
|
1120
1056
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1121
|
-
|
|
1122
|
-
|
|
1057
|
+
_key2 = _Object$entries3$_i[0],
|
|
1058
|
+
_value2 = _Object$entries3$_i[1];
|
|
1123
1059
|
output += "*[data-py='" + _key2 + "'] {\n padding-top: " + _value2 + ";\n padding-bottom: " + _value2 + ";\n}\n";
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
|
|
1060
|
+
}
|
|
1061
|
+
// Top padding: data-pt="*"
|
|
1127
1062
|
for (var _i4 = 0, _Object$entries4 = Object.entries(this.spacing); _i4 < _Object$entries4.length; _i4++) {
|
|
1128
1063
|
var _Object$entries4$_i = _Object$entries4[_i4],
|
|
1129
|
-
|
|
1130
|
-
|
|
1064
|
+
_key3 = _Object$entries4$_i[0],
|
|
1065
|
+
_value3 = _Object$entries4$_i[1];
|
|
1131
1066
|
output += "*[data-pt='" + _key3 + "'] {\n padding-top: " + _value3 + ";\n}\n";
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1067
|
+
}
|
|
1068
|
+
// Right padding: data-pr="*"
|
|
1135
1069
|
for (var _i5 = 0, _Object$entries5 = Object.entries(this.spacing); _i5 < _Object$entries5.length; _i5++) {
|
|
1136
1070
|
var _Object$entries5$_i = _Object$entries5[_i5],
|
|
1137
|
-
|
|
1138
|
-
|
|
1071
|
+
_key4 = _Object$entries5$_i[0],
|
|
1072
|
+
_value4 = _Object$entries5$_i[1];
|
|
1139
1073
|
output += "*[data-pr='" + _key4 + "'] {\n padding-right: " + _value4 + ";\n}\n";
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
|
|
1074
|
+
}
|
|
1075
|
+
// Bottom padding: data-pb="*"
|
|
1143
1076
|
for (var _i6 = 0, _Object$entries6 = Object.entries(this.spacing); _i6 < _Object$entries6.length; _i6++) {
|
|
1144
1077
|
var _Object$entries6$_i = _Object$entries6[_i6],
|
|
1145
|
-
|
|
1146
|
-
|
|
1078
|
+
_key5 = _Object$entries6$_i[0],
|
|
1079
|
+
_value5 = _Object$entries6$_i[1];
|
|
1147
1080
|
output += "*[data-pb='" + _key5 + "'] {\n padding-bottom: " + _value5 + ";\n}\n";
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1081
|
+
}
|
|
1082
|
+
// Left padding: data-pl="*"
|
|
1151
1083
|
for (var _i7 = 0, _Object$entries7 = Object.entries(this.spacing); _i7 < _Object$entries7.length; _i7++) {
|
|
1152
1084
|
var _Object$entries7$_i = _Object$entries7[_i7],
|
|
1153
|
-
|
|
1154
|
-
|
|
1085
|
+
_key6 = _Object$entries7$_i[0],
|
|
1086
|
+
_value6 = _Object$entries7$_i[1];
|
|
1155
1087
|
output += "*[data-pl='" + _key6 + "'] {\n padding-left: " + _value6 + ";\n}\n";
|
|
1156
1088
|
}
|
|
1157
|
-
|
|
1158
1089
|
for (var _i8 = 0, _Object$entries8 = Object.entries(this.breakpoints); _i8 < _Object$entries8.length; _i8++) {
|
|
1159
1090
|
var _Object$entries8$_i = _Object$entries8[_i8],
|
|
1160
|
-
|
|
1161
|
-
|
|
1091
|
+
name = _Object$entries8$_i[0],
|
|
1092
|
+
_value7 = _Object$entries8$_i[1];
|
|
1162
1093
|
output += "@media (max-width: " + _value7 + "px) {\n";
|
|
1163
|
-
|
|
1164
1094
|
for (var _i9 = 0, _Object$entries9 = Object.entries(this.spacing); _i9 < _Object$entries9.length; _i9++) {
|
|
1165
1095
|
var _Object$entries9$_i = _Object$entries9[_i9],
|
|
1166
|
-
|
|
1167
|
-
|
|
1096
|
+
_key7 = _Object$entries9$_i[0],
|
|
1097
|
+
_value8 = _Object$entries9$_i[1];
|
|
1168
1098
|
output += " *[data-" + name + "-p='" + _key7 + "'] {\n padding: " + _value8 + ";\n }\n";
|
|
1169
1099
|
}
|
|
1170
|
-
|
|
1171
1100
|
for (var _i10 = 0, _Object$entries10 = Object.entries(this.spacing); _i10 < _Object$entries10.length; _i10++) {
|
|
1172
1101
|
var _Object$entries10$_i = _Object$entries10[_i10],
|
|
1173
|
-
|
|
1174
|
-
|
|
1102
|
+
_key8 = _Object$entries10$_i[0],
|
|
1103
|
+
_value9 = _Object$entries10$_i[1];
|
|
1175
1104
|
output += " *[data-" + name + "-px='" + _key8 + "'] {\n padding-left: " + _value9 + ";\n padding-right: " + _value9 + ";\n }\n";
|
|
1176
1105
|
}
|
|
1177
|
-
|
|
1178
1106
|
for (var _i11 = 0, _Object$entries11 = Object.entries(this.spacing); _i11 < _Object$entries11.length; _i11++) {
|
|
1179
1107
|
var _Object$entries11$_i = _Object$entries11[_i11],
|
|
1180
|
-
|
|
1181
|
-
|
|
1108
|
+
_key9 = _Object$entries11$_i[0],
|
|
1109
|
+
_value10 = _Object$entries11$_i[1];
|
|
1182
1110
|
output += " *[data-" + name + "-py='" + _key9 + "'] {\n padding-top: " + _value10 + ";\n padding-bottom: " + _value10 + ";\n }\n";
|
|
1183
1111
|
}
|
|
1184
|
-
|
|
1185
1112
|
for (var _i12 = 0, _Object$entries12 = Object.entries(this.spacing); _i12 < _Object$entries12.length; _i12++) {
|
|
1186
1113
|
var _Object$entries12$_i = _Object$entries12[_i12],
|
|
1187
|
-
|
|
1188
|
-
|
|
1114
|
+
_key10 = _Object$entries12$_i[0],
|
|
1115
|
+
_value11 = _Object$entries12$_i[1];
|
|
1189
1116
|
output += " *[data-" + name + "-pt='" + _key10 + "'] {\n padding-top: " + _value11 + ";\n }\n";
|
|
1190
1117
|
}
|
|
1191
|
-
|
|
1192
1118
|
for (var _i13 = 0, _Object$entries13 = Object.entries(this.spacing); _i13 < _Object$entries13.length; _i13++) {
|
|
1193
1119
|
var _Object$entries13$_i = _Object$entries13[_i13],
|
|
1194
|
-
|
|
1195
|
-
|
|
1120
|
+
_key11 = _Object$entries13$_i[0],
|
|
1121
|
+
_value12 = _Object$entries13$_i[1];
|
|
1196
1122
|
output += " *[data-" + name + "-pr='" + _key11 + "'] {\n padding-right: " + _value12 + ";\n }\n";
|
|
1197
1123
|
}
|
|
1198
|
-
|
|
1199
1124
|
for (var _i14 = 0, _Object$entries14 = Object.entries(this.spacing); _i14 < _Object$entries14.length; _i14++) {
|
|
1200
1125
|
var _Object$entries14$_i = _Object$entries14[_i14],
|
|
1201
|
-
|
|
1202
|
-
|
|
1126
|
+
_key12 = _Object$entries14$_i[0],
|
|
1127
|
+
_value13 = _Object$entries14$_i[1];
|
|
1203
1128
|
output += " *[data-" + name + "-pb='" + _key12 + "'] {\n padding-bottom: " + _value13 + ";\n }\n";
|
|
1204
1129
|
}
|
|
1205
|
-
|
|
1206
1130
|
for (var _i15 = 0, _Object$entries15 = Object.entries(this.spacing); _i15 < _Object$entries15.length; _i15++) {
|
|
1207
1131
|
var _Object$entries15$_i = _Object$entries15[_i15],
|
|
1208
|
-
|
|
1209
|
-
|
|
1132
|
+
_key13 = _Object$entries15$_i[0],
|
|
1133
|
+
_value14 = _Object$entries15$_i[1];
|
|
1210
1134
|
output += " *[data-" + name + "-pl='" + _key13 + "'] {\n padding-left: " + _value14 + ";\n }\n";
|
|
1211
1135
|
}
|
|
1212
|
-
|
|
1213
1136
|
output += "}\n";
|
|
1214
1137
|
}
|
|
1215
|
-
|
|
1216
1138
|
return output;
|
|
1217
1139
|
};
|
|
1218
|
-
|
|
1219
1140
|
return Paddings;
|
|
1220
1141
|
}(AbstractGenerator);
|
|
1221
1142
|
|
|
1222
1143
|
var DisplaysGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1223
1144
|
_inheritsLoose(DisplaysGenerator, _AbstractGenerator);
|
|
1224
|
-
|
|
1225
1145
|
function DisplaysGenerator(config) {
|
|
1226
1146
|
var _this;
|
|
1227
|
-
|
|
1228
1147
|
_this = _AbstractGenerator.call(this, 'Displays') || this;
|
|
1229
1148
|
_this.displays = config.displays;
|
|
1230
1149
|
_this.breakpoints = config.breakpoints;
|
|
1231
1150
|
return _this;
|
|
1232
1151
|
}
|
|
1233
|
-
|
|
1234
1152
|
var _proto = DisplaysGenerator.prototype;
|
|
1235
|
-
|
|
1236
1153
|
_proto.generateCss = function generateCss() {
|
|
1237
|
-
var output = '';
|
|
1238
|
-
|
|
1154
|
+
var output = '';
|
|
1155
|
+
// Regular display: data-display="*"
|
|
1239
1156
|
for (var _i = 0, _Object$entries = Object.entries(this.displays); _i < _Object$entries.length; _i++) {
|
|
1240
1157
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1158
|
+
key = _Object$entries$_i[0],
|
|
1159
|
+
value = _Object$entries$_i[1];
|
|
1244
1160
|
if (value === 'flex') {
|
|
1245
1161
|
output += "*[data-display='" + key + "'] {\n display: " + value + ";\nflex-wrap: wrap;\n}\n";
|
|
1246
1162
|
} else {
|
|
1247
1163
|
output += "*[data-display='" + key + "'] {\n display: " + value + ";\n}\n";
|
|
1248
1164
|
}
|
|
1249
1165
|
}
|
|
1250
|
-
|
|
1251
1166
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1252
1167
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1253
|
-
|
|
1254
|
-
|
|
1168
|
+
name = _Object$entries2$_i[0],
|
|
1169
|
+
_value = _Object$entries2$_i[1];
|
|
1255
1170
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1256
|
-
|
|
1257
1171
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.displays); _i3 < _Object$entries3.length; _i3++) {
|
|
1258
1172
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1173
|
+
_key = _Object$entries3$_i[0],
|
|
1174
|
+
_value2 = _Object$entries3$_i[1];
|
|
1262
1175
|
if (_value2 === 'flex') {
|
|
1263
1176
|
output += "*[data-" + name + "-display='" + _key + "'] {\n display: " + _value2 + ";\nflex-wrap: wrap;\n}\n";
|
|
1264
1177
|
} else {
|
|
1265
1178
|
output += "*[data-" + name + "-display='" + _key + "'] {\n display: " + _value2 + ";\n}\n";
|
|
1266
1179
|
}
|
|
1267
1180
|
}
|
|
1268
|
-
|
|
1269
1181
|
output += "}\n";
|
|
1270
1182
|
}
|
|
1271
|
-
|
|
1272
1183
|
return output;
|
|
1273
1184
|
};
|
|
1274
|
-
|
|
1275
1185
|
return DisplaysGenerator;
|
|
1276
1186
|
}(AbstractGenerator);
|
|
1277
1187
|
|
|
1278
1188
|
var AxisPlacementsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1279
1189
|
_inheritsLoose(AxisPlacementsGenerator, _AbstractGenerator);
|
|
1280
|
-
|
|
1281
1190
|
function AxisPlacementsGenerator(config) {
|
|
1282
1191
|
var _this;
|
|
1283
|
-
|
|
1284
1192
|
_this = _AbstractGenerator.call(this, 'Axis placements') || this;
|
|
1285
1193
|
_this.axisPlacements = config.axisPlacements;
|
|
1286
1194
|
_this.breakpoints = config.breakpoints;
|
|
1287
1195
|
return _this;
|
|
1288
1196
|
}
|
|
1289
|
-
|
|
1290
1197
|
var _proto = AxisPlacementsGenerator.prototype;
|
|
1291
|
-
|
|
1292
1198
|
_proto.generateCss = function generateCss() {
|
|
1293
|
-
var output = '';
|
|
1294
|
-
|
|
1199
|
+
var output = '';
|
|
1200
|
+
// Main axis placement: data-main="*"
|
|
1295
1201
|
for (var _i = 0, _Object$entries = Object.entries(this.axisPlacements); _i < _Object$entries.length; _i++) {
|
|
1296
1202
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1297
|
-
|
|
1298
|
-
|
|
1203
|
+
key = _Object$entries$_i[0],
|
|
1204
|
+
value = _Object$entries$_i[1];
|
|
1299
1205
|
output += "*[data-main='" + key + "'] {\n justify-content: " + value + ";\n}\n";
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
|
|
1206
|
+
}
|
|
1207
|
+
// Cross axis placement: data-cross="*"
|
|
1303
1208
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.axisPlacements); _i2 < _Object$entries2.length; _i2++) {
|
|
1304
1209
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1305
|
-
|
|
1306
|
-
|
|
1210
|
+
_key = _Object$entries2$_i[0],
|
|
1211
|
+
_value = _Object$entries2$_i[1];
|
|
1307
1212
|
output += "*[data-cross='" + _key + "'] {\n align-items: " + _value + ";\n}\n";
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
|
|
1213
|
+
}
|
|
1214
|
+
// Self placement alongside the cross axis: data-self="*"
|
|
1311
1215
|
for (var _i3 = 0, _Object$entries3 = Object.entries(pick(this.axisPlacements, ['start', 'end', 'center', 'baseline'])); _i3 < _Object$entries3.length; _i3++) {
|
|
1312
1216
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1313
|
-
|
|
1314
|
-
|
|
1217
|
+
_key2 = _Object$entries3$_i[0],
|
|
1218
|
+
_value2 = _Object$entries3$_i[1];
|
|
1315
1219
|
output += "*[data-self='" + _key2 + "'] {\n align-self: " + _value2 + ";\n}\n";
|
|
1316
1220
|
}
|
|
1317
|
-
|
|
1318
1221
|
for (var _i4 = 0, _Object$entries4 = Object.entries(this.breakpoints); _i4 < _Object$entries4.length; _i4++) {
|
|
1319
1222
|
var _Object$entries4$_i = _Object$entries4[_i4],
|
|
1320
|
-
|
|
1321
|
-
|
|
1223
|
+
name = _Object$entries4$_i[0],
|
|
1224
|
+
_value3 = _Object$entries4$_i[1];
|
|
1322
1225
|
output += "@media (max-width: " + _value3 + "px) {\n";
|
|
1323
|
-
|
|
1324
1226
|
for (var _i5 = 0, _Object$entries5 = Object.entries(this.axisPlacements); _i5 < _Object$entries5.length; _i5++) {
|
|
1325
1227
|
var _Object$entries5$_i = _Object$entries5[_i5],
|
|
1326
|
-
|
|
1327
|
-
|
|
1228
|
+
_key3 = _Object$entries5$_i[0],
|
|
1229
|
+
_value4 = _Object$entries5$_i[1];
|
|
1328
1230
|
output += " *[data-" + name + "-main='" + _key3 + "'] {\n justify-content: " + _value4 + ";\n }\n";
|
|
1329
1231
|
}
|
|
1330
|
-
|
|
1331
1232
|
for (var _i6 = 0, _Object$entries6 = Object.entries(this.axisPlacements); _i6 < _Object$entries6.length; _i6++) {
|
|
1332
1233
|
var _Object$entries6$_i = _Object$entries6[_i6],
|
|
1333
|
-
|
|
1334
|
-
|
|
1234
|
+
_key4 = _Object$entries6$_i[0],
|
|
1235
|
+
_value5 = _Object$entries6$_i[1];
|
|
1335
1236
|
output += " *[data-" + name + "-cross='" + _key4 + "'] {\n align-items: " + _value5 + ";\n }\n";
|
|
1336
1237
|
}
|
|
1337
|
-
|
|
1338
1238
|
for (var _i7 = 0, _Object$entries7 = Object.entries(pick(this.axisPlacements, ['start', 'end', 'center', 'baseline'])); _i7 < _Object$entries7.length; _i7++) {
|
|
1339
1239
|
var _Object$entries7$_i = _Object$entries7[_i7],
|
|
1340
|
-
|
|
1341
|
-
|
|
1240
|
+
_key5 = _Object$entries7$_i[0],
|
|
1241
|
+
_value6 = _Object$entries7$_i[1];
|
|
1342
1242
|
output += " *[data-" + name + "-self='" + _key5 + "'] {\n align-self: " + _value6 + ";\n }\n";
|
|
1343
1243
|
}
|
|
1344
|
-
|
|
1345
1244
|
output += "}\n";
|
|
1346
1245
|
}
|
|
1347
|
-
|
|
1348
1246
|
return output;
|
|
1349
1247
|
};
|
|
1350
|
-
|
|
1351
1248
|
return AxisPlacementsGenerator;
|
|
1352
1249
|
}(AbstractGenerator);
|
|
1353
1250
|
|
|
1354
1251
|
var PositionsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1355
1252
|
_inheritsLoose(PositionsGenerator, _AbstractGenerator);
|
|
1356
|
-
|
|
1357
1253
|
function PositionsGenerator(config) {
|
|
1358
1254
|
var _this;
|
|
1359
|
-
|
|
1360
1255
|
_this = _AbstractGenerator.call(this, 'Positions') || this;
|
|
1361
1256
|
_this.positions = config.positions;
|
|
1362
1257
|
return _this;
|
|
1363
1258
|
}
|
|
1364
|
-
|
|
1365
1259
|
var _proto = PositionsGenerator.prototype;
|
|
1366
|
-
|
|
1367
1260
|
_proto.generateCss = function generateCss() {
|
|
1368
|
-
var output = '';
|
|
1369
|
-
|
|
1261
|
+
var output = '';
|
|
1262
|
+
// Regular display: data-position="*"
|
|
1370
1263
|
for (var _i = 0, _Object$entries = Object.entries(this.positions); _i < _Object$entries.length; _i++) {
|
|
1371
1264
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1372
|
-
|
|
1373
|
-
|
|
1265
|
+
key = _Object$entries$_i[0],
|
|
1266
|
+
value = _Object$entries$_i[1];
|
|
1374
1267
|
output += "*[data-position='" + key + "'] {\n position: " + value + ";\n}\n";
|
|
1375
1268
|
}
|
|
1376
|
-
|
|
1377
1269
|
return output;
|
|
1378
1270
|
};
|
|
1379
|
-
|
|
1380
1271
|
return PositionsGenerator;
|
|
1381
1272
|
}(AbstractGenerator);
|
|
1382
1273
|
|
|
1383
1274
|
var FlexWrapGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1384
1275
|
_inheritsLoose(FlexWrapGenerator, _AbstractGenerator);
|
|
1385
|
-
|
|
1386
1276
|
function FlexWrapGenerator(config) {
|
|
1387
1277
|
var _this;
|
|
1388
|
-
|
|
1389
1278
|
_this = _AbstractGenerator.call(this, 'Flex wraps') || this;
|
|
1390
1279
|
_this.flexWraps = config.flexWraps;
|
|
1391
1280
|
_this.breakpoints = config.breakpoints;
|
|
1392
1281
|
return _this;
|
|
1393
1282
|
}
|
|
1394
|
-
|
|
1395
1283
|
var _proto = FlexWrapGenerator.prototype;
|
|
1396
|
-
|
|
1397
1284
|
_proto.generateCss = function generateCss() {
|
|
1398
|
-
var output = '';
|
|
1399
|
-
|
|
1285
|
+
var output = '';
|
|
1286
|
+
// Regular display: data-wrap="*"
|
|
1400
1287
|
for (var _i = 0, _Object$entries = Object.entries(this.flexWraps); _i < _Object$entries.length; _i++) {
|
|
1401
1288
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1402
|
-
|
|
1403
|
-
|
|
1289
|
+
key = _Object$entries$_i[0],
|
|
1290
|
+
value = _Object$entries$_i[1];
|
|
1404
1291
|
output += "*[data-wrap='" + key + "'] {\n flex-wrap: " + value + ";\n}\n";
|
|
1405
1292
|
}
|
|
1406
|
-
|
|
1407
1293
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1408
1294
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1409
|
-
|
|
1410
|
-
|
|
1295
|
+
name = _Object$entries2$_i[0],
|
|
1296
|
+
_value = _Object$entries2$_i[1];
|
|
1411
1297
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1412
|
-
|
|
1413
1298
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.flexWraps); _i3 < _Object$entries3.length; _i3++) {
|
|
1414
1299
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1415
|
-
|
|
1416
|
-
|
|
1300
|
+
_key = _Object$entries3$_i[0],
|
|
1301
|
+
_value2 = _Object$entries3$_i[1];
|
|
1417
1302
|
output += " *[data-" + name + "-wrap='" + _key + "'] {\n flex-wrap: " + _value2 + ";\n }\n";
|
|
1418
1303
|
}
|
|
1419
|
-
|
|
1420
1304
|
output += "}\n";
|
|
1421
1305
|
}
|
|
1422
|
-
|
|
1423
1306
|
return output;
|
|
1424
1307
|
};
|
|
1425
|
-
|
|
1426
1308
|
return FlexWrapGenerator;
|
|
1427
1309
|
}(AbstractGenerator);
|
|
1428
1310
|
|
|
1429
1311
|
var ZIndexGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1430
1312
|
_inheritsLoose(ZIndexGenerator, _AbstractGenerator);
|
|
1431
|
-
|
|
1432
1313
|
function ZIndexGenerator(config) {
|
|
1433
1314
|
var _this;
|
|
1434
|
-
|
|
1435
1315
|
_this = _AbstractGenerator.call(this, 'Z indexes') || this;
|
|
1436
1316
|
_this.zIndexes = config.zIndexes;
|
|
1437
1317
|
return _this;
|
|
1438
1318
|
}
|
|
1439
|
-
|
|
1440
1319
|
var _proto = ZIndexGenerator.prototype;
|
|
1441
|
-
|
|
1442
1320
|
_proto.generateCss = function generateCss() {
|
|
1443
|
-
var output = '';
|
|
1444
|
-
|
|
1321
|
+
var output = '';
|
|
1322
|
+
// Regular display: data-z="*"
|
|
1445
1323
|
for (var _i = 0, _Object$entries = Object.entries(this.zIndexes); _i < _Object$entries.length; _i++) {
|
|
1446
1324
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1447
|
-
|
|
1448
|
-
|
|
1325
|
+
key = _Object$entries$_i[0],
|
|
1326
|
+
value = _Object$entries$_i[1];
|
|
1449
1327
|
output += "*[data-z='" + key + "'] {\n z-index: " + value + ";\n}\n";
|
|
1450
1328
|
}
|
|
1451
|
-
|
|
1452
1329
|
return output;
|
|
1453
1330
|
};
|
|
1454
|
-
|
|
1455
1331
|
return ZIndexGenerator;
|
|
1456
1332
|
}(AbstractGenerator);
|
|
1457
1333
|
|
|
1458
1334
|
var WidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1459
1335
|
_inheritsLoose(WidthsGenerator, _AbstractGenerator);
|
|
1460
|
-
|
|
1461
1336
|
function WidthsGenerator(config) {
|
|
1462
1337
|
var _this;
|
|
1463
|
-
|
|
1464
1338
|
_this = _AbstractGenerator.call(this, 'Widths') || this;
|
|
1465
1339
|
_this.widths = config.widths;
|
|
1466
1340
|
_this.breakpoints = config.breakpoints;
|
|
1467
1341
|
return _this;
|
|
1468
1342
|
}
|
|
1469
|
-
|
|
1470
1343
|
var _proto = WidthsGenerator.prototype;
|
|
1471
|
-
|
|
1472
1344
|
_proto.generateCss = function generateCss() {
|
|
1473
|
-
var output = '';
|
|
1474
|
-
|
|
1345
|
+
var output = '';
|
|
1346
|
+
// Regular display: data-width="*"
|
|
1475
1347
|
for (var _i = 0, _Object$entries = Object.entries(this.widths); _i < _Object$entries.length; _i++) {
|
|
1476
1348
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1477
|
-
|
|
1478
|
-
|
|
1349
|
+
key = _Object$entries$_i[0],
|
|
1350
|
+
value = _Object$entries$_i[1];
|
|
1479
1351
|
output += "*[data-width='" + key + "'] {\n width: " + value + ";\n}\n";
|
|
1480
1352
|
}
|
|
1481
|
-
|
|
1482
1353
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1483
1354
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1484
|
-
|
|
1485
|
-
|
|
1355
|
+
name = _Object$entries2$_i[0],
|
|
1356
|
+
_value = _Object$entries2$_i[1];
|
|
1486
1357
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1487
|
-
|
|
1488
1358
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.widths); _i3 < _Object$entries3.length; _i3++) {
|
|
1489
1359
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1490
|
-
|
|
1491
|
-
|
|
1360
|
+
_key = _Object$entries3$_i[0],
|
|
1361
|
+
_value2 = _Object$entries3$_i[1];
|
|
1492
1362
|
output += " *[data-" + name + "-width='" + _key + "'] {\n width: " + _value2 + ";\n }\n";
|
|
1493
1363
|
}
|
|
1494
|
-
|
|
1495
1364
|
output += "}\n";
|
|
1496
1365
|
}
|
|
1497
|
-
|
|
1498
1366
|
return output;
|
|
1499
1367
|
};
|
|
1500
|
-
|
|
1501
1368
|
return WidthsGenerator;
|
|
1502
1369
|
}(AbstractGenerator);
|
|
1503
1370
|
|
|
1504
1371
|
var FontSizeGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1505
1372
|
_inheritsLoose(FontSizeGenerator, _AbstractGenerator);
|
|
1506
|
-
|
|
1507
1373
|
function FontSizeGenerator(config) {
|
|
1508
1374
|
var _this;
|
|
1509
|
-
|
|
1510
1375
|
_this = _AbstractGenerator.call(this, 'Font sizes') || this;
|
|
1511
1376
|
_this.fontSizes = config.fontSizes;
|
|
1512
1377
|
_this.breakpoints = config.breakpoints;
|
|
1513
1378
|
return _this;
|
|
1514
1379
|
}
|
|
1515
|
-
|
|
1516
1380
|
var _proto = FontSizeGenerator.prototype;
|
|
1517
|
-
|
|
1518
1381
|
_proto.generateCss = function generateCss() {
|
|
1519
|
-
var output = '';
|
|
1520
|
-
|
|
1382
|
+
var output = '';
|
|
1383
|
+
// Regular display: data-fs="*"
|
|
1521
1384
|
for (var _i = 0, _Object$entries = Object.entries(this.fontSizes); _i < _Object$entries.length; _i++) {
|
|
1522
1385
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1523
|
-
|
|
1524
|
-
|
|
1386
|
+
key = _Object$entries$_i[0],
|
|
1387
|
+
value = _Object$entries$_i[1];
|
|
1525
1388
|
output += "*[data-fs='" + key + "'] {\n font-size: " + value + "px;\n}\n";
|
|
1526
1389
|
}
|
|
1527
|
-
|
|
1528
1390
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1529
1391
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1530
|
-
|
|
1531
|
-
|
|
1392
|
+
name = _Object$entries2$_i[0],
|
|
1393
|
+
_value = _Object$entries2$_i[1];
|
|
1532
1394
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1533
|
-
|
|
1534
1395
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.fontSizes); _i3 < _Object$entries3.length; _i3++) {
|
|
1535
1396
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1536
|
-
|
|
1537
|
-
|
|
1397
|
+
_key = _Object$entries3$_i[0],
|
|
1398
|
+
_value2 = _Object$entries3$_i[1];
|
|
1538
1399
|
output += " *[data-" + name + "-fs='" + _key + "'] {\n font-size: " + _value2 + "px;\n }\n";
|
|
1539
1400
|
}
|
|
1540
|
-
|
|
1541
1401
|
output += "}\n";
|
|
1542
1402
|
}
|
|
1543
|
-
|
|
1544
1403
|
return output;
|
|
1545
1404
|
};
|
|
1546
|
-
|
|
1547
1405
|
return FontSizeGenerator;
|
|
1548
1406
|
}(AbstractGenerator);
|
|
1549
1407
|
|
|
1550
1408
|
var FontWeightGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1551
1409
|
_inheritsLoose(FontWeightGenerator, _AbstractGenerator);
|
|
1552
|
-
|
|
1553
1410
|
function FontWeightGenerator(config) {
|
|
1554
1411
|
var _this;
|
|
1555
|
-
|
|
1556
1412
|
_this = _AbstractGenerator.call(this, 'Font weights') || this;
|
|
1557
1413
|
_this.fontWeights = config.fontWeights;
|
|
1558
1414
|
return _this;
|
|
1559
1415
|
}
|
|
1560
|
-
|
|
1561
1416
|
var _proto = FontWeightGenerator.prototype;
|
|
1562
|
-
|
|
1563
1417
|
_proto.generateCss = function generateCss() {
|
|
1564
|
-
var output = '';
|
|
1565
|
-
|
|
1418
|
+
var output = '';
|
|
1419
|
+
// Regular display: data-fw="*"
|
|
1566
1420
|
for (var _i = 0, _Object$entries = Object.entries(this.fontWeights); _i < _Object$entries.length; _i++) {
|
|
1567
1421
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1568
|
-
|
|
1569
|
-
|
|
1422
|
+
key = _Object$entries$_i[0],
|
|
1423
|
+
value = _Object$entries$_i[1];
|
|
1570
1424
|
output += "*[data-fw='" + key + "'] {\n font-weight: " + value + ";\n}\n";
|
|
1571
1425
|
}
|
|
1572
|
-
|
|
1573
1426
|
return output;
|
|
1574
1427
|
};
|
|
1575
|
-
|
|
1576
1428
|
return FontWeightGenerator;
|
|
1577
1429
|
}(AbstractGenerator);
|
|
1578
1430
|
|
|
1579
1431
|
var LineHeightsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1580
1432
|
_inheritsLoose(LineHeightsGenerator, _AbstractGenerator);
|
|
1581
|
-
|
|
1582
1433
|
function LineHeightsGenerator(config) {
|
|
1583
1434
|
var _this;
|
|
1584
|
-
|
|
1585
1435
|
_this = _AbstractGenerator.call(this, 'Line heights') || this;
|
|
1586
1436
|
_this.lineHeights = config.lineHeights;
|
|
1587
1437
|
return _this;
|
|
1588
1438
|
}
|
|
1589
|
-
|
|
1590
1439
|
var _proto = LineHeightsGenerator.prototype;
|
|
1591
|
-
|
|
1592
1440
|
_proto.generateCss = function generateCss() {
|
|
1593
|
-
var output = '';
|
|
1594
|
-
|
|
1441
|
+
var output = '';
|
|
1442
|
+
// Regular display: data-lh="*"
|
|
1595
1443
|
for (var _i = 0, _Object$entries = Object.entries(this.lineHeights); _i < _Object$entries.length; _i++) {
|
|
1596
1444
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1597
|
-
|
|
1598
|
-
|
|
1445
|
+
key = _Object$entries$_i[0],
|
|
1446
|
+
value = _Object$entries$_i[1];
|
|
1599
1447
|
output += "*[data-lh='" + key + "'] {\n line-height: " + value + "px;\n}\n";
|
|
1600
1448
|
}
|
|
1601
|
-
|
|
1602
1449
|
return output;
|
|
1603
1450
|
};
|
|
1604
|
-
|
|
1605
1451
|
return LineHeightsGenerator;
|
|
1606
1452
|
}(AbstractGenerator);
|
|
1607
1453
|
|
|
1608
1454
|
var FlexDirectionsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1609
1455
|
_inheritsLoose(FlexDirectionsGenerator, _AbstractGenerator);
|
|
1610
|
-
|
|
1611
1456
|
function FlexDirectionsGenerator(config) {
|
|
1612
1457
|
var _this;
|
|
1613
|
-
|
|
1614
1458
|
_this = _AbstractGenerator.call(this, 'Flex directions') || this;
|
|
1615
1459
|
_this.flexDirections = config.flexDirections;
|
|
1616
1460
|
_this.breakpoints = config.breakpoints;
|
|
1617
1461
|
return _this;
|
|
1618
1462
|
}
|
|
1619
|
-
|
|
1620
1463
|
var _proto = FlexDirectionsGenerator.prototype;
|
|
1621
|
-
|
|
1622
1464
|
_proto.generateCss = function generateCss() {
|
|
1623
1465
|
var output = '';
|
|
1624
|
-
|
|
1625
1466
|
for (var _i = 0, _Object$entries = Object.entries(this.flexDirections); _i < _Object$entries.length; _i++) {
|
|
1626
1467
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1627
|
-
|
|
1628
|
-
|
|
1468
|
+
key = _Object$entries$_i[0],
|
|
1469
|
+
value = _Object$entries$_i[1];
|
|
1629
1470
|
output += "*[data-direction='" + key + "'] {\n flex-direction: " + value + ";\n}\n";
|
|
1630
1471
|
}
|
|
1631
|
-
|
|
1632
1472
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1633
1473
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1634
|
-
|
|
1635
|
-
|
|
1474
|
+
name = _Object$entries2$_i[0],
|
|
1475
|
+
_value = _Object$entries2$_i[1];
|
|
1636
1476
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1637
|
-
|
|
1638
1477
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.flexDirections); _i3 < _Object$entries3.length; _i3++) {
|
|
1639
1478
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1640
|
-
|
|
1641
|
-
|
|
1479
|
+
_key = _Object$entries3$_i[0],
|
|
1480
|
+
_value2 = _Object$entries3$_i[1];
|
|
1642
1481
|
output += " *[data-" + name + "-direction='" + _key + "'] {\n flex-direction: " + _value2 + ";\n }\n";
|
|
1643
1482
|
}
|
|
1644
|
-
|
|
1645
1483
|
output += "}\n";
|
|
1646
1484
|
}
|
|
1647
|
-
|
|
1648
1485
|
return output;
|
|
1649
1486
|
};
|
|
1650
|
-
|
|
1651
1487
|
return FlexDirectionsGenerator;
|
|
1652
1488
|
}(AbstractGenerator);
|
|
1653
1489
|
|
|
1654
1490
|
var BackgroundsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1655
1491
|
_inheritsLoose(BackgroundsGenerator, _AbstractGenerator);
|
|
1656
|
-
|
|
1657
1492
|
function BackgroundsGenerator(config) {
|
|
1658
1493
|
var _this;
|
|
1659
|
-
|
|
1660
1494
|
_this = _AbstractGenerator.call(this, 'Backgrounds') || this;
|
|
1661
1495
|
_this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
|
|
1662
1496
|
return _this;
|
|
1663
1497
|
}
|
|
1664
|
-
|
|
1665
1498
|
var _proto = BackgroundsGenerator.prototype;
|
|
1666
|
-
|
|
1667
1499
|
_proto.generateCss = function generateCss() {
|
|
1668
|
-
var output = '';
|
|
1669
|
-
|
|
1500
|
+
var output = '';
|
|
1501
|
+
// Regular display: data-bg="*"
|
|
1670
1502
|
for (var _i = 0, _Object$entries = Object.entries(this.colors); _i < _Object$entries.length; _i++) {
|
|
1671
1503
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1672
|
-
|
|
1673
|
-
|
|
1504
|
+
key = _Object$entries$_i[0],
|
|
1505
|
+
value = _Object$entries$_i[1];
|
|
1674
1506
|
output += "*[data-bg='" + key + "'] {\n background-color: " + value + ";\n}\n";
|
|
1675
1507
|
}
|
|
1676
|
-
|
|
1677
1508
|
return output;
|
|
1678
1509
|
};
|
|
1679
|
-
|
|
1680
1510
|
return BackgroundsGenerator;
|
|
1681
1511
|
}(AbstractGenerator);
|
|
1682
1512
|
|
|
1683
1513
|
var FontColorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1684
1514
|
_inheritsLoose(FontColorsGenerator, _AbstractGenerator);
|
|
1685
|
-
|
|
1686
1515
|
function FontColorsGenerator(config) {
|
|
1687
1516
|
var _this;
|
|
1688
|
-
|
|
1689
1517
|
_this = _AbstractGenerator.call(this, 'Font colors') || this;
|
|
1690
1518
|
_this.colors = _extends({}, config.grayscale, config.greens, config.reds, config.oranges);
|
|
1691
1519
|
return _this;
|
|
1692
1520
|
}
|
|
1693
|
-
|
|
1694
1521
|
var _proto = FontColorsGenerator.prototype;
|
|
1695
|
-
|
|
1696
1522
|
_proto.generateCss = function generateCss() {
|
|
1697
|
-
var output = '';
|
|
1698
|
-
|
|
1523
|
+
var output = '';
|
|
1524
|
+
// Regular display: data-color="*"
|
|
1699
1525
|
for (var _i = 0, _Object$entries = Object.entries(this.colors); _i < _Object$entries.length; _i++) {
|
|
1700
1526
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1701
|
-
|
|
1702
|
-
|
|
1527
|
+
key = _Object$entries$_i[0],
|
|
1528
|
+
value = _Object$entries$_i[1];
|
|
1703
1529
|
output += "*[data-color='" + key + "'] {\n color: " + value + ";\n}\n";
|
|
1704
1530
|
}
|
|
1705
|
-
|
|
1706
1531
|
return output;
|
|
1707
1532
|
};
|
|
1708
|
-
|
|
1709
1533
|
return FontColorsGenerator;
|
|
1710
1534
|
}(AbstractGenerator);
|
|
1711
1535
|
|
|
1712
1536
|
var LetterSpacingsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1713
1537
|
_inheritsLoose(LetterSpacingsGenerator, _AbstractGenerator);
|
|
1714
|
-
|
|
1715
1538
|
function LetterSpacingsGenerator(config) {
|
|
1716
1539
|
var _this;
|
|
1717
|
-
|
|
1718
1540
|
_this = _AbstractGenerator.call(this, 'Letter spacings') || this;
|
|
1719
1541
|
_this.letterSpacings = config.letterSpacings;
|
|
1720
1542
|
return _this;
|
|
1721
1543
|
}
|
|
1722
|
-
|
|
1723
1544
|
var _proto = LetterSpacingsGenerator.prototype;
|
|
1724
|
-
|
|
1725
1545
|
_proto.generateCss = function generateCss() {
|
|
1726
|
-
var output = '';
|
|
1727
|
-
|
|
1546
|
+
var output = '';
|
|
1547
|
+
// Regular display: data-ls="*"
|
|
1728
1548
|
for (var _i = 0, _Object$entries = Object.entries(this.letterSpacings); _i < _Object$entries.length; _i++) {
|
|
1729
1549
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1730
|
-
|
|
1731
|
-
|
|
1550
|
+
key = _Object$entries$_i[0],
|
|
1551
|
+
value = _Object$entries$_i[1];
|
|
1732
1552
|
output += "*[data-ls='" + key + "'] {\n letter-spacing: " + value + "px;\n}\n";
|
|
1733
1553
|
}
|
|
1734
|
-
|
|
1735
1554
|
return output;
|
|
1736
1555
|
};
|
|
1737
|
-
|
|
1738
1556
|
return LetterSpacingsGenerator;
|
|
1739
1557
|
}(AbstractGenerator);
|
|
1740
1558
|
|
|
1741
1559
|
var FlexGrowsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1742
1560
|
_inheritsLoose(FlexGrowsGenerator, _AbstractGenerator);
|
|
1743
|
-
|
|
1744
1561
|
function FlexGrowsGenerator(config) {
|
|
1745
1562
|
var _this;
|
|
1746
|
-
|
|
1747
1563
|
_this = _AbstractGenerator.call(this, 'Flex grows') || this;
|
|
1748
1564
|
_this.flexGrows = config.flexGrows;
|
|
1749
1565
|
_this.breakpoints = config.breakpoints;
|
|
1750
1566
|
return _this;
|
|
1751
1567
|
}
|
|
1752
|
-
|
|
1753
1568
|
var _proto = FlexGrowsGenerator.prototype;
|
|
1754
|
-
|
|
1755
1569
|
_proto.generateCss = function generateCss() {
|
|
1756
|
-
var output = '';
|
|
1757
|
-
|
|
1570
|
+
var output = '';
|
|
1571
|
+
// Regular display: data-grow="*"
|
|
1758
1572
|
for (var _i = 0, _Object$entries = Object.entries(this.flexGrows); _i < _Object$entries.length; _i++) {
|
|
1759
1573
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1760
|
-
|
|
1761
|
-
|
|
1574
|
+
key = _Object$entries$_i[0],
|
|
1575
|
+
value = _Object$entries$_i[1];
|
|
1762
1576
|
output += "*[data-grow='" + key + "'] {\n flex-grow: " + value + ";\n}\n";
|
|
1763
1577
|
}
|
|
1764
|
-
|
|
1765
1578
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1766
1579
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1767
|
-
|
|
1768
|
-
|
|
1580
|
+
name = _Object$entries2$_i[0],
|
|
1581
|
+
_value = _Object$entries2$_i[1];
|
|
1769
1582
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1770
|
-
|
|
1771
1583
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.flexGrows); _i3 < _Object$entries3.length; _i3++) {
|
|
1772
1584
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1773
|
-
|
|
1774
|
-
|
|
1585
|
+
_key = _Object$entries3$_i[0],
|
|
1586
|
+
_value2 = _Object$entries3$_i[1];
|
|
1775
1587
|
output += " *[data-" + name + "-grow='" + _key + "'] {\n flex-grow: " + _value2 + ";\n }\n";
|
|
1776
1588
|
}
|
|
1777
|
-
|
|
1778
1589
|
output += "}\n";
|
|
1779
1590
|
}
|
|
1780
|
-
|
|
1781
1591
|
return output;
|
|
1782
1592
|
};
|
|
1783
|
-
|
|
1784
1593
|
return FlexGrowsGenerator;
|
|
1785
1594
|
}(AbstractGenerator);
|
|
1786
1595
|
|
|
1787
1596
|
var FlexShrinksGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1788
1597
|
_inheritsLoose(FlexShrinksGenerator, _AbstractGenerator);
|
|
1789
|
-
|
|
1790
1598
|
function FlexShrinksGenerator(config) {
|
|
1791
1599
|
var _this;
|
|
1792
|
-
|
|
1793
1600
|
_this = _AbstractGenerator.call(this, 'Flex shrinks') || this;
|
|
1794
1601
|
_this.flexShrinks = config.flexShrinks;
|
|
1795
1602
|
_this.breakpoints = config.breakpoints;
|
|
1796
1603
|
return _this;
|
|
1797
1604
|
}
|
|
1798
|
-
|
|
1799
1605
|
var _proto = FlexShrinksGenerator.prototype;
|
|
1800
|
-
|
|
1801
1606
|
_proto.generateCss = function generateCss() {
|
|
1802
|
-
var output = '';
|
|
1803
|
-
|
|
1607
|
+
var output = '';
|
|
1608
|
+
// Regular display: data-shrink="*"
|
|
1804
1609
|
for (var _i = 0, _Object$entries = Object.entries(this.flexShrinks); _i < _Object$entries.length; _i++) {
|
|
1805
1610
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1806
|
-
|
|
1807
|
-
|
|
1611
|
+
key = _Object$entries$_i[0],
|
|
1612
|
+
value = _Object$entries$_i[1];
|
|
1808
1613
|
output += "*[data-shrink='" + key + "'] {\n flex-shrink: " + value + ";\n}\n";
|
|
1809
1614
|
}
|
|
1810
|
-
|
|
1811
1615
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
1812
1616
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1813
|
-
|
|
1814
|
-
|
|
1617
|
+
name = _Object$entries2$_i[0],
|
|
1618
|
+
_value = _Object$entries2$_i[1];
|
|
1815
1619
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
1816
|
-
|
|
1817
1620
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.flexShrinks); _i3 < _Object$entries3.length; _i3++) {
|
|
1818
1621
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1819
|
-
|
|
1820
|
-
|
|
1622
|
+
_key = _Object$entries3$_i[0],
|
|
1623
|
+
_value2 = _Object$entries3$_i[1];
|
|
1821
1624
|
output += " *[data-" + name + "-shrink='" + _key + "'] {\n flex-shrink: " + _value2 + ";\n }\n";
|
|
1822
1625
|
}
|
|
1823
|
-
|
|
1824
1626
|
output += "}\n";
|
|
1825
1627
|
}
|
|
1826
|
-
|
|
1827
1628
|
return output;
|
|
1828
1629
|
};
|
|
1829
|
-
|
|
1830
1630
|
return FlexShrinksGenerator;
|
|
1831
1631
|
}(AbstractGenerator);
|
|
1832
1632
|
|
|
1833
1633
|
var BorderWidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1834
1634
|
_inheritsLoose(BorderWidthsGenerator, _AbstractGenerator);
|
|
1835
|
-
|
|
1836
1635
|
function BorderWidthsGenerator(config) {
|
|
1837
1636
|
var _this;
|
|
1838
|
-
|
|
1839
1637
|
_this = _AbstractGenerator.call(this, 'Border widths') || this;
|
|
1840
1638
|
_this.borderWidths = config.borderWidths;
|
|
1841
1639
|
return _this;
|
|
1842
1640
|
}
|
|
1843
|
-
|
|
1844
1641
|
var _proto = BorderWidthsGenerator.prototype;
|
|
1845
|
-
|
|
1846
1642
|
_proto.generateCss = function generateCss() {
|
|
1847
1643
|
var output = '';
|
|
1848
|
-
|
|
1849
1644
|
for (var _i = 0, _Object$entries = Object.entries(this.borderWidths); _i < _Object$entries.length; _i++) {
|
|
1850
1645
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1851
|
-
|
|
1852
|
-
|
|
1646
|
+
key = _Object$entries$_i[0],
|
|
1647
|
+
value = _Object$entries$_i[1];
|
|
1853
1648
|
output += "*[data-bw='" + key + "'] {\n border-width: " + value + "px;\n}\n";
|
|
1854
1649
|
}
|
|
1855
|
-
|
|
1856
1650
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.borderWidths); _i2 < _Object$entries2.length; _i2++) {
|
|
1857
1651
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1858
|
-
|
|
1859
|
-
|
|
1652
|
+
_key = _Object$entries2$_i[0],
|
|
1653
|
+
_value = _Object$entries2$_i[1];
|
|
1860
1654
|
output += "*[data-bwx='" + _key + "'] {\n border-left-width: " + _value + "px;\n border-right-width: " + _value + "px;\n}\n";
|
|
1861
1655
|
}
|
|
1862
|
-
|
|
1863
1656
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.borderWidths); _i3 < _Object$entries3.length; _i3++) {
|
|
1864
1657
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1865
|
-
|
|
1866
|
-
|
|
1658
|
+
_key2 = _Object$entries3$_i[0],
|
|
1659
|
+
_value2 = _Object$entries3$_i[1];
|
|
1867
1660
|
output += "*[data-bwy='" + _key2 + "'] {\n border-top-width: " + _value2 + "px;\n border-bottom-width: " + _value2 + "px;\n}\n";
|
|
1868
1661
|
}
|
|
1869
|
-
|
|
1870
1662
|
for (var _i4 = 0, _Object$entries4 = Object.entries(this.borderWidths); _i4 < _Object$entries4.length; _i4++) {
|
|
1871
1663
|
var _Object$entries4$_i = _Object$entries4[_i4],
|
|
1872
|
-
|
|
1873
|
-
|
|
1664
|
+
_key3 = _Object$entries4$_i[0],
|
|
1665
|
+
_value3 = _Object$entries4$_i[1];
|
|
1874
1666
|
output += "*[data-bwt='" + _key3 + "'] {\n border-top-width: " + _value3 + "px;\n}\n";
|
|
1875
1667
|
}
|
|
1876
|
-
|
|
1877
1668
|
for (var _i5 = 0, _Object$entries5 = Object.entries(this.borderWidths); _i5 < _Object$entries5.length; _i5++) {
|
|
1878
1669
|
var _Object$entries5$_i = _Object$entries5[_i5],
|
|
1879
|
-
|
|
1880
|
-
|
|
1670
|
+
_key4 = _Object$entries5$_i[0],
|
|
1671
|
+
_value4 = _Object$entries5$_i[1];
|
|
1881
1672
|
output += "*[data-bwr='" + _key4 + "'] {\n border-right-width: " + _value4 + "px;\n}\n";
|
|
1882
1673
|
}
|
|
1883
|
-
|
|
1884
1674
|
for (var _i6 = 0, _Object$entries6 = Object.entries(this.borderWidths); _i6 < _Object$entries6.length; _i6++) {
|
|
1885
1675
|
var _Object$entries6$_i = _Object$entries6[_i6],
|
|
1886
|
-
|
|
1887
|
-
|
|
1676
|
+
_key5 = _Object$entries6$_i[0],
|
|
1677
|
+
_value5 = _Object$entries6$_i[1];
|
|
1888
1678
|
output += "*[data-bwb='" + _key5 + "'] {\n border-bottom-width: " + _value5 + "px;\n}\n";
|
|
1889
1679
|
}
|
|
1890
|
-
|
|
1891
1680
|
for (var _i7 = 0, _Object$entries7 = Object.entries(this.borderWidths); _i7 < _Object$entries7.length; _i7++) {
|
|
1892
1681
|
var _Object$entries7$_i = _Object$entries7[_i7],
|
|
1893
|
-
|
|
1894
|
-
|
|
1682
|
+
_key6 = _Object$entries7$_i[0],
|
|
1683
|
+
_value6 = _Object$entries7$_i[1];
|
|
1895
1684
|
output += "*[data-bwl='" + _key6 + "'] {\n border-left-width: " + _value6 + "px;\n}\n";
|
|
1896
1685
|
}
|
|
1897
|
-
|
|
1898
1686
|
return output;
|
|
1899
1687
|
};
|
|
1900
|
-
|
|
1901
1688
|
return BorderWidthsGenerator;
|
|
1902
1689
|
}(AbstractGenerator);
|
|
1903
1690
|
|
|
1904
1691
|
var BorderColorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1905
1692
|
_inheritsLoose(BorderColorsGenerator, _AbstractGenerator);
|
|
1906
|
-
|
|
1907
1693
|
function BorderColorsGenerator(config) {
|
|
1908
1694
|
var _this;
|
|
1909
|
-
|
|
1910
1695
|
_this = _AbstractGenerator.call(this, 'Border colors') || this;
|
|
1911
1696
|
_this.borderColors = config.borderColors;
|
|
1912
1697
|
_this.greens = config.greens;
|
|
@@ -1914,669 +1699,537 @@ var BorderColorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
|
1914
1699
|
_this.reds = config.reds;
|
|
1915
1700
|
return _this;
|
|
1916
1701
|
}
|
|
1917
|
-
|
|
1918
1702
|
var _proto = BorderColorsGenerator.prototype;
|
|
1919
|
-
|
|
1920
1703
|
_proto.generateCss = function generateCss() {
|
|
1921
1704
|
var output = '';
|
|
1922
|
-
|
|
1923
1705
|
for (var _i = 0, _Object$entries = Object.entries(_extends({}, this.borderColors, this.greens, this.oranges, this.reds)); _i < _Object$entries.length; _i++) {
|
|
1924
1706
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1925
|
-
|
|
1926
|
-
|
|
1707
|
+
key = _Object$entries$_i[0],
|
|
1708
|
+
value = _Object$entries$_i[1];
|
|
1927
1709
|
output += "*[data-bc='" + key + "'] {\n border-color: " + value + ";\n border-style: solid;\n}\n";
|
|
1928
1710
|
}
|
|
1929
|
-
|
|
1930
1711
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.borderColors); _i2 < _Object$entries2.length; _i2++) {
|
|
1931
1712
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1932
|
-
|
|
1933
|
-
|
|
1713
|
+
_key = _Object$entries2$_i[0],
|
|
1714
|
+
_value = _Object$entries2$_i[1];
|
|
1934
1715
|
output += "*[data-bcx='" + _key + "'] {\n border-right-color: " + _value + ";\n border-left-color: " + _value + ";\n border-right-style: solid;\n border-left-style: solid;\n}\n";
|
|
1935
1716
|
}
|
|
1936
|
-
|
|
1937
1717
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.borderColors); _i3 < _Object$entries3.length; _i3++) {
|
|
1938
1718
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
1939
|
-
|
|
1940
|
-
|
|
1719
|
+
_key2 = _Object$entries3$_i[0],
|
|
1720
|
+
_value2 = _Object$entries3$_i[1];
|
|
1941
1721
|
output += "*[data-bcy='" + _key2 + "'] {\n border-top-color: " + _value2 + ";\n border-bottom-color: " + _value2 + ";\n border-top-style: solid;\n border-bottom-style: solid;\n}\n";
|
|
1942
1722
|
}
|
|
1943
|
-
|
|
1944
1723
|
for (var _i4 = 0, _Object$entries4 = Object.entries(this.borderColors); _i4 < _Object$entries4.length; _i4++) {
|
|
1945
1724
|
var _Object$entries4$_i = _Object$entries4[_i4],
|
|
1946
|
-
|
|
1947
|
-
|
|
1725
|
+
_key3 = _Object$entries4$_i[0],
|
|
1726
|
+
_value3 = _Object$entries4$_i[1];
|
|
1948
1727
|
output += "*[data-bct='" + _key3 + "'] {\n border-top-color: " + _value3 + ";\n border-top-style: solid;\n}\n";
|
|
1949
1728
|
}
|
|
1950
|
-
|
|
1951
1729
|
for (var _i5 = 0, _Object$entries5 = Object.entries(this.borderColors); _i5 < _Object$entries5.length; _i5++) {
|
|
1952
1730
|
var _Object$entries5$_i = _Object$entries5[_i5],
|
|
1953
|
-
|
|
1954
|
-
|
|
1731
|
+
_key4 = _Object$entries5$_i[0],
|
|
1732
|
+
_value4 = _Object$entries5$_i[1];
|
|
1955
1733
|
output += "*[data-bcr='" + _key4 + "'] {\n border-right-color: " + _value4 + ";\n border-right-style: solid;\n}\n";
|
|
1956
1734
|
}
|
|
1957
|
-
|
|
1958
1735
|
for (var _i6 = 0, _Object$entries6 = Object.entries(this.borderColors); _i6 < _Object$entries6.length; _i6++) {
|
|
1959
1736
|
var _Object$entries6$_i = _Object$entries6[_i6],
|
|
1960
|
-
|
|
1961
|
-
|
|
1737
|
+
_key5 = _Object$entries6$_i[0],
|
|
1738
|
+
_value5 = _Object$entries6$_i[1];
|
|
1962
1739
|
output += "*[data-bcb='" + _key5 + "'] {\n border-bottom-color: " + _value5 + ";\n border-bottom-style: solid;\n}\n";
|
|
1963
1740
|
}
|
|
1964
|
-
|
|
1965
1741
|
for (var _i7 = 0, _Object$entries7 = Object.entries(this.borderColors); _i7 < _Object$entries7.length; _i7++) {
|
|
1966
1742
|
var _Object$entries7$_i = _Object$entries7[_i7],
|
|
1967
|
-
|
|
1968
|
-
|
|
1743
|
+
_key6 = _Object$entries7$_i[0],
|
|
1744
|
+
_value6 = _Object$entries7$_i[1];
|
|
1969
1745
|
output += "*[data-bcl='" + _key6 + "'] {\n border-left-color: " + _value6 + ";\n border-left-style: solid;\n}\n";
|
|
1970
1746
|
}
|
|
1971
|
-
|
|
1972
1747
|
return output;
|
|
1973
1748
|
};
|
|
1974
|
-
|
|
1975
1749
|
return BorderColorsGenerator;
|
|
1976
1750
|
}(AbstractGenerator);
|
|
1977
1751
|
|
|
1978
1752
|
var BorderRadiusesGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
1979
1753
|
_inheritsLoose(BorderRadiusesGenerator, _AbstractGenerator);
|
|
1980
|
-
|
|
1981
1754
|
function BorderRadiusesGenerator(config) {
|
|
1982
1755
|
var _this;
|
|
1983
|
-
|
|
1984
1756
|
_this = _AbstractGenerator.call(this, 'Border radiuses') || this;
|
|
1985
1757
|
_this.borderRadiuses = config.borderRadiuses;
|
|
1986
1758
|
return _this;
|
|
1987
1759
|
}
|
|
1988
|
-
|
|
1989
1760
|
var _proto = BorderRadiusesGenerator.prototype;
|
|
1990
|
-
|
|
1991
1761
|
_proto.generateCss = function generateCss() {
|
|
1992
1762
|
var output = '';
|
|
1993
|
-
|
|
1994
1763
|
for (var _i = 0, _Object$entries = Object.entries(this.borderRadiuses); _i < _Object$entries.length; _i++) {
|
|
1995
1764
|
var _Object$entries$_i = _Object$entries[_i],
|
|
1996
|
-
|
|
1997
|
-
|
|
1765
|
+
key = _Object$entries$_i[0],
|
|
1766
|
+
value = _Object$entries$_i[1];
|
|
1998
1767
|
output += "*[data-br='" + key + "'] {\n border-radius: " + value + ";\n}\n";
|
|
1999
1768
|
}
|
|
2000
|
-
|
|
2001
1769
|
return output;
|
|
2002
1770
|
};
|
|
2003
|
-
|
|
2004
1771
|
return BorderRadiusesGenerator;
|
|
2005
1772
|
}(AbstractGenerator);
|
|
2006
1773
|
|
|
2007
1774
|
var MaxWidthsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2008
1775
|
_inheritsLoose(MaxWidthsGenerator, _AbstractGenerator);
|
|
2009
|
-
|
|
2010
1776
|
function MaxWidthsGenerator(config) {
|
|
2011
1777
|
var _this;
|
|
2012
|
-
|
|
2013
1778
|
_this = _AbstractGenerator.call(this, 'Max widths') || this;
|
|
2014
1779
|
_this.maxWidths = config.maxWidths;
|
|
2015
1780
|
_this.breakpoints = config.breakpoints;
|
|
2016
1781
|
return _this;
|
|
2017
1782
|
}
|
|
2018
|
-
|
|
2019
1783
|
var _proto = MaxWidthsGenerator.prototype;
|
|
2020
|
-
|
|
2021
1784
|
_proto.generateCss = function generateCss() {
|
|
2022
|
-
var output = '';
|
|
2023
|
-
|
|
1785
|
+
var output = '';
|
|
1786
|
+
// Regular display: data-max-width="*"
|
|
2024
1787
|
for (var _i = 0, _Object$entries = Object.entries(this.maxWidths); _i < _Object$entries.length; _i++) {
|
|
2025
1788
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2026
|
-
|
|
2027
|
-
|
|
1789
|
+
key = _Object$entries$_i[0],
|
|
1790
|
+
value = _Object$entries$_i[1];
|
|
2028
1791
|
output += "*[data-max-width='" + key + "'] {\n max-width: " + value + ";\n}\n";
|
|
2029
1792
|
}
|
|
2030
|
-
|
|
2031
1793
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2032
1794
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2033
|
-
|
|
2034
|
-
|
|
1795
|
+
name = _Object$entries2$_i[0],
|
|
1796
|
+
_value = _Object$entries2$_i[1];
|
|
2035
1797
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2036
|
-
|
|
2037
1798
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.maxWidths); _i3 < _Object$entries3.length; _i3++) {
|
|
2038
1799
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2039
|
-
|
|
2040
|
-
|
|
1800
|
+
_key = _Object$entries3$_i[0],
|
|
1801
|
+
_value2 = _Object$entries3$_i[1];
|
|
2041
1802
|
output += "*[data-" + name + "-max-width='" + _key + "'] {\n max-width: " + _value2 + ";\n}\n";
|
|
2042
1803
|
}
|
|
2043
|
-
|
|
2044
1804
|
output += "}\n";
|
|
2045
1805
|
}
|
|
2046
|
-
|
|
2047
1806
|
return output;
|
|
2048
1807
|
};
|
|
2049
|
-
|
|
2050
1808
|
return MaxWidthsGenerator;
|
|
2051
1809
|
}(AbstractGenerator);
|
|
2052
1810
|
|
|
2053
1811
|
var TransformsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2054
1812
|
_inheritsLoose(TransformsGenerator, _AbstractGenerator);
|
|
2055
|
-
|
|
2056
1813
|
function TransformsGenerator(config) {
|
|
2057
1814
|
var _this;
|
|
2058
|
-
|
|
2059
1815
|
_this = _AbstractGenerator.call(this, 'Transforms') || this;
|
|
2060
1816
|
_this.transforms = config.transforms;
|
|
2061
1817
|
return _this;
|
|
2062
1818
|
}
|
|
2063
|
-
|
|
2064
1819
|
var _proto = TransformsGenerator.prototype;
|
|
2065
|
-
|
|
2066
1820
|
_proto.generateCss = function generateCss() {
|
|
2067
|
-
var output = '';
|
|
2068
|
-
|
|
1821
|
+
var output = '';
|
|
1822
|
+
// Regular display: data-transform~="*"
|
|
2069
1823
|
for (var _i = 0, _Object$entries = Object.entries(this.transforms); _i < _Object$entries.length; _i++) {
|
|
2070
1824
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
1825
|
+
key = _Object$entries$_i[0],
|
|
1826
|
+
value = _Object$entries$_i[1];
|
|
2074
1827
|
if (key === 'truncate') {
|
|
2075
1828
|
output += "*[data-transform~='" + key + "'] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n";
|
|
2076
1829
|
continue;
|
|
2077
1830
|
}
|
|
2078
|
-
|
|
2079
1831
|
if (key === 'center') {
|
|
2080
1832
|
output += "*[data-transform~='" + key + "'] {\n text-align: center;\n}\n";
|
|
2081
1833
|
continue;
|
|
2082
1834
|
}
|
|
2083
|
-
|
|
2084
1835
|
if (key === 'upper-first') {
|
|
2085
1836
|
output += "*[data-transform~='upper-first']:first-letter {\n text-transform: uppercase;\n}\n";
|
|
2086
1837
|
continue;
|
|
2087
1838
|
}
|
|
2088
|
-
|
|
2089
1839
|
if (key === 'nowrap') {
|
|
2090
1840
|
output += "*[data-transform~='nowrap'] {\n white-space: nowrap;\n}\n";
|
|
2091
1841
|
continue;
|
|
2092
1842
|
}
|
|
2093
|
-
|
|
2094
1843
|
output += "*[data-transform~='" + key + "'] {\n text-transform: " + value + ";\n}\n";
|
|
2095
1844
|
}
|
|
2096
|
-
|
|
2097
1845
|
return output;
|
|
2098
1846
|
};
|
|
2099
|
-
|
|
2100
1847
|
return TransformsGenerator;
|
|
2101
1848
|
}(AbstractGenerator);
|
|
2102
1849
|
|
|
2103
1850
|
var OverflowsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2104
1851
|
_inheritsLoose(OverflowsGenerator, _AbstractGenerator);
|
|
2105
|
-
|
|
2106
1852
|
function OverflowsGenerator(config) {
|
|
2107
1853
|
var _this;
|
|
2108
|
-
|
|
2109
1854
|
_this = _AbstractGenerator.call(this, 'Overflows') || this;
|
|
2110
1855
|
_this.overflows = config.overflows;
|
|
2111
1856
|
return _this;
|
|
2112
1857
|
}
|
|
2113
|
-
|
|
2114
1858
|
var _proto = OverflowsGenerator.prototype;
|
|
2115
|
-
|
|
2116
1859
|
_proto.generateCss = function generateCss() {
|
|
2117
|
-
var output = '';
|
|
2118
|
-
|
|
1860
|
+
var output = '';
|
|
1861
|
+
// Regular display: data-overflow="*"
|
|
2119
1862
|
for (var _i = 0, _Object$entries = Object.entries(this.overflows); _i < _Object$entries.length; _i++) {
|
|
2120
1863
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2121
|
-
|
|
2122
|
-
|
|
1864
|
+
key = _Object$entries$_i[0],
|
|
1865
|
+
value = _Object$entries$_i[1];
|
|
2123
1866
|
output += "*[data-overflow='" + key + "'] {\n overflow: " + value + ";\n}\n";
|
|
2124
1867
|
}
|
|
2125
|
-
|
|
2126
1868
|
return output;
|
|
2127
1869
|
};
|
|
2128
|
-
|
|
2129
1870
|
return OverflowsGenerator;
|
|
2130
1871
|
}(AbstractGenerator);
|
|
2131
1872
|
|
|
2132
1873
|
var PositionersGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2133
1874
|
_inheritsLoose(PositionersGenerator, _AbstractGenerator);
|
|
2134
|
-
|
|
2135
1875
|
function PositionersGenerator(config) {
|
|
2136
1876
|
var _this;
|
|
2137
|
-
|
|
2138
1877
|
_this = _AbstractGenerator.call(this, 'Positioners') || this;
|
|
2139
1878
|
_this.spacing = config.spacing;
|
|
2140
1879
|
_this.breakpoints = config.breakpoints;
|
|
2141
1880
|
return _this;
|
|
2142
1881
|
}
|
|
2143
|
-
|
|
2144
1882
|
var _proto = PositionersGenerator.prototype;
|
|
2145
|
-
|
|
2146
1883
|
_proto.generateCss = function generateCss() {
|
|
2147
1884
|
var output = '';
|
|
2148
|
-
|
|
2149
1885
|
for (var _i = 0, _Object$entries = Object.entries(this.spacing); _i < _Object$entries.length; _i++) {
|
|
2150
1886
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2151
|
-
|
|
2152
|
-
|
|
1887
|
+
key = _Object$entries$_i[0],
|
|
1888
|
+
value = _Object$entries$_i[1];
|
|
2153
1889
|
output += "*[data-top='" + key + "'] {\n top: " + value + ";\n}\n";
|
|
2154
1890
|
output += "*[data-right='" + key + "'] {\n right: " + value + ";\n}\n";
|
|
2155
1891
|
output += "*[data-bottom='" + key + "'] {\n bottom: " + value + ";\n}\n";
|
|
2156
1892
|
output += "*[data-left='" + key + "'] {\n left: " + value + ";\n}\n";
|
|
2157
1893
|
output += "*[data-inset='" + key + "'] {\n inset: " + value + ";\n}\n";
|
|
2158
1894
|
}
|
|
2159
|
-
|
|
2160
1895
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2161
1896
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2162
|
-
|
|
2163
|
-
|
|
1897
|
+
name = _Object$entries2$_i[0],
|
|
1898
|
+
_value = _Object$entries2$_i[1];
|
|
2164
1899
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2165
|
-
|
|
2166
1900
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.spacing); _i3 < _Object$entries3.length; _i3++) {
|
|
2167
1901
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2168
|
-
|
|
2169
|
-
|
|
1902
|
+
_key = _Object$entries3$_i[0],
|
|
1903
|
+
_value2 = _Object$entries3$_i[1];
|
|
2170
1904
|
output += "*[data-" + name + "-top='" + _key + "'] {\n top: " + _value2 + ";\n}\n";
|
|
2171
1905
|
output += "*[data-" + name + "-right='" + _key + "'] {\n right: " + _value2 + ";\n}\n";
|
|
2172
1906
|
output += "*[data-" + name + "-bottom='" + _key + "'] {\n bottom: " + _value2 + ";\n}\n";
|
|
2173
1907
|
output += "*[data-" + name + "-left='" + _key + "'] {\n left: " + _value2 + ";\n}\n";
|
|
2174
1908
|
output += "*[data-" + name + "-inset='" + _key + "'] {\n inset: " + _value2 + ";\n}\n";
|
|
2175
1909
|
}
|
|
2176
|
-
|
|
2177
1910
|
output += "}\n";
|
|
2178
1911
|
}
|
|
2179
|
-
|
|
2180
1912
|
return output;
|
|
2181
1913
|
};
|
|
2182
|
-
|
|
2183
1914
|
return PositionersGenerator;
|
|
2184
1915
|
}(AbstractGenerator);
|
|
2185
1916
|
|
|
2186
1917
|
var HeightsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2187
1918
|
_inheritsLoose(HeightsGenerator, _AbstractGenerator);
|
|
2188
|
-
|
|
2189
1919
|
function HeightsGenerator(config) {
|
|
2190
1920
|
var _this;
|
|
2191
|
-
|
|
2192
1921
|
_this = _AbstractGenerator.call(this, 'Heights') || this;
|
|
2193
1922
|
_this.heights = config.heights;
|
|
2194
1923
|
_this.breakpoints = config.breakpoints;
|
|
2195
1924
|
return _this;
|
|
2196
1925
|
}
|
|
2197
|
-
|
|
2198
1926
|
var _proto = HeightsGenerator.prototype;
|
|
2199
|
-
|
|
2200
1927
|
_proto.generateCss = function generateCss() {
|
|
2201
|
-
var output = '';
|
|
2202
|
-
|
|
1928
|
+
var output = '';
|
|
1929
|
+
// Regular display: data-height="*"
|
|
2203
1930
|
for (var _i = 0, _Object$entries = Object.entries(this.heights); _i < _Object$entries.length; _i++) {
|
|
2204
1931
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2205
|
-
|
|
2206
|
-
|
|
1932
|
+
key = _Object$entries$_i[0],
|
|
1933
|
+
value = _Object$entries$_i[1];
|
|
2207
1934
|
output += "*[data-height='" + key + "'] {\n height: " + value + ";\n}\n";
|
|
2208
1935
|
}
|
|
2209
|
-
|
|
2210
1936
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2211
1937
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2212
|
-
|
|
2213
|
-
|
|
1938
|
+
name = _Object$entries2$_i[0],
|
|
1939
|
+
_value = _Object$entries2$_i[1];
|
|
2214
1940
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2215
|
-
|
|
2216
1941
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.heights); _i3 < _Object$entries3.length; _i3++) {
|
|
2217
1942
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2218
|
-
|
|
2219
|
-
|
|
1943
|
+
_key = _Object$entries3$_i[0],
|
|
1944
|
+
_value2 = _Object$entries3$_i[1];
|
|
2220
1945
|
output += " *[data-" + name + "-height='" + _key + "'] {\n height: " + _value2 + ";\n }\n";
|
|
2221
1946
|
}
|
|
2222
|
-
|
|
2223
1947
|
output += "}\n";
|
|
2224
1948
|
}
|
|
2225
|
-
|
|
2226
1949
|
return output;
|
|
2227
1950
|
};
|
|
2228
|
-
|
|
2229
1951
|
return HeightsGenerator;
|
|
2230
1952
|
}(AbstractGenerator);
|
|
2231
1953
|
|
|
2232
1954
|
var GapGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2233
1955
|
_inheritsLoose(GapGenerator, _AbstractGenerator);
|
|
2234
|
-
|
|
2235
1956
|
function GapGenerator(config) {
|
|
2236
1957
|
var _this;
|
|
2237
|
-
|
|
2238
1958
|
_this = _AbstractGenerator.call(this, 'Gaps') || this;
|
|
2239
1959
|
_this.spacing = config.spacing;
|
|
2240
1960
|
_this.breakpoints = config.breakpoints;
|
|
2241
1961
|
return _this;
|
|
2242
1962
|
}
|
|
2243
|
-
|
|
2244
1963
|
var _proto = GapGenerator.prototype;
|
|
2245
|
-
|
|
2246
1964
|
_proto.generateCss = function generateCss() {
|
|
2247
|
-
var output = '';
|
|
2248
|
-
|
|
1965
|
+
var output = '';
|
|
1966
|
+
// Regular gap: data-gap="*"
|
|
2249
1967
|
for (var _i = 0, _Object$entries = Object.entries(this.spacing); _i < _Object$entries.length; _i++) {
|
|
2250
1968
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2251
|
-
|
|
2252
|
-
|
|
1969
|
+
key = _Object$entries$_i[0],
|
|
1970
|
+
value = _Object$entries$_i[1];
|
|
2253
1971
|
output += "*[data-gap='" + key + "'] {\n gap: " + value + ";\n}\n";
|
|
2254
1972
|
}
|
|
2255
|
-
|
|
2256
1973
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2257
1974
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2258
|
-
|
|
2259
|
-
|
|
1975
|
+
name = _Object$entries2$_i[0],
|
|
1976
|
+
_value = _Object$entries2$_i[1];
|
|
2260
1977
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2261
|
-
|
|
2262
1978
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.spacing); _i3 < _Object$entries3.length; _i3++) {
|
|
2263
1979
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2264
|
-
|
|
2265
|
-
|
|
1980
|
+
_key = _Object$entries3$_i[0],
|
|
1981
|
+
_value2 = _Object$entries3$_i[1];
|
|
2266
1982
|
output += " *[data-" + name + "-gap='" + _key + "'] {\n gap: " + _value2 + ";\n }\n";
|
|
2267
1983
|
}
|
|
2268
|
-
|
|
2269
1984
|
output += "}\n";
|
|
2270
1985
|
}
|
|
2271
|
-
|
|
2272
1986
|
return output;
|
|
2273
1987
|
};
|
|
2274
|
-
|
|
2275
1988
|
return GapGenerator;
|
|
2276
1989
|
}(AbstractGenerator);
|
|
2277
1990
|
|
|
2278
1991
|
var CursorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2279
1992
|
_inheritsLoose(CursorsGenerator, _AbstractGenerator);
|
|
2280
|
-
|
|
2281
1993
|
function CursorsGenerator(config) {
|
|
2282
1994
|
var _this;
|
|
2283
|
-
|
|
2284
1995
|
_this = _AbstractGenerator.call(this, 'Cursors') || this;
|
|
2285
1996
|
_this.cursors = config.cursors;
|
|
2286
1997
|
_this.breakpoints = config.breakpoints;
|
|
2287
1998
|
return _this;
|
|
2288
1999
|
}
|
|
2289
|
-
|
|
2290
2000
|
var _proto = CursorsGenerator.prototype;
|
|
2291
|
-
|
|
2292
2001
|
_proto.generateCss = function generateCss() {
|
|
2293
|
-
var output = '';
|
|
2294
|
-
|
|
2002
|
+
var output = '';
|
|
2003
|
+
// Regular display: data-cursor="*"
|
|
2295
2004
|
for (var _i = 0, _Object$entries = Object.entries(this.cursors); _i < _Object$entries.length; _i++) {
|
|
2296
2005
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2297
|
-
|
|
2298
|
-
|
|
2006
|
+
key = _Object$entries$_i[0],
|
|
2007
|
+
value = _Object$entries$_i[1];
|
|
2299
2008
|
output += "*[data-cursor='" + key + "'] {\n cursor: " + value + ";\n}\n";
|
|
2300
2009
|
}
|
|
2301
|
-
|
|
2302
2010
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2303
2011
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2304
|
-
|
|
2305
|
-
|
|
2012
|
+
name = _Object$entries2$_i[0],
|
|
2013
|
+
_value = _Object$entries2$_i[1];
|
|
2306
2014
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2307
|
-
|
|
2308
2015
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.cursors); _i3 < _Object$entries3.length; _i3++) {
|
|
2309
2016
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2310
|
-
|
|
2311
|
-
|
|
2017
|
+
_key = _Object$entries3$_i[0],
|
|
2018
|
+
_value2 = _Object$entries3$_i[1];
|
|
2312
2019
|
output += " *[data-" + name + "-cursor='" + _key + "'] {\n cursor: " + _value2 + ";\n }\n";
|
|
2313
2020
|
}
|
|
2314
|
-
|
|
2315
2021
|
output += "}\n";
|
|
2316
2022
|
}
|
|
2317
|
-
|
|
2318
2023
|
return output;
|
|
2319
2024
|
};
|
|
2320
|
-
|
|
2321
2025
|
return CursorsGenerator;
|
|
2322
2026
|
}(AbstractGenerator);
|
|
2323
2027
|
|
|
2324
2028
|
var PointerEventsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2325
2029
|
_inheritsLoose(PointerEventsGenerator, _AbstractGenerator);
|
|
2326
|
-
|
|
2327
2030
|
function PointerEventsGenerator(config) {
|
|
2328
2031
|
var _this;
|
|
2329
|
-
|
|
2330
2032
|
_this = _AbstractGenerator.call(this, 'Pointer events') || this;
|
|
2331
2033
|
_this.pointerEvents = config.pointerEvents;
|
|
2332
2034
|
_this.breakpoints = config.breakpoints;
|
|
2333
2035
|
return _this;
|
|
2334
2036
|
}
|
|
2335
|
-
|
|
2336
2037
|
var _proto = PointerEventsGenerator.prototype;
|
|
2337
|
-
|
|
2338
2038
|
_proto.generateCss = function generateCss() {
|
|
2339
|
-
var output = '';
|
|
2340
|
-
|
|
2039
|
+
var output = '';
|
|
2040
|
+
// Regular display: data-pointer-events="*"
|
|
2341
2041
|
for (var _i = 0, _Object$entries = Object.entries(this.pointerEvents); _i < _Object$entries.length; _i++) {
|
|
2342
2042
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2343
|
-
|
|
2344
|
-
|
|
2043
|
+
key = _Object$entries$_i[0],
|
|
2044
|
+
value = _Object$entries$_i[1];
|
|
2345
2045
|
output += "*[data-pointer-events='" + key + "'] {\n pointer-events: " + value + ";\n}\n";
|
|
2346
2046
|
}
|
|
2347
|
-
|
|
2348
2047
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2349
2048
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2350
|
-
|
|
2351
|
-
|
|
2049
|
+
name = _Object$entries2$_i[0],
|
|
2050
|
+
_value = _Object$entries2$_i[1];
|
|
2352
2051
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2353
|
-
|
|
2354
2052
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.pointerEvents); _i3 < _Object$entries3.length; _i3++) {
|
|
2355
2053
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2356
|
-
|
|
2357
|
-
|
|
2054
|
+
_key = _Object$entries3$_i[0],
|
|
2055
|
+
_value2 = _Object$entries3$_i[1];
|
|
2358
2056
|
output += " *[data-" + name + "-pointer-events='" + _key + "'] {\n pointer-events: " + _value2 + ";\n }\n";
|
|
2359
2057
|
}
|
|
2360
|
-
|
|
2361
2058
|
output += "}\n";
|
|
2362
2059
|
}
|
|
2363
|
-
|
|
2364
2060
|
return output;
|
|
2365
2061
|
};
|
|
2366
|
-
|
|
2367
2062
|
return PointerEventsGenerator;
|
|
2368
2063
|
}(AbstractGenerator);
|
|
2369
2064
|
|
|
2370
2065
|
var BackdropsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2371
2066
|
_inheritsLoose(BackdropsGenerator, _AbstractGenerator);
|
|
2372
|
-
|
|
2373
2067
|
function BackdropsGenerator(config) {
|
|
2374
2068
|
var _this;
|
|
2375
|
-
|
|
2376
2069
|
_this = _AbstractGenerator.call(this, 'Backdrops') || this;
|
|
2377
2070
|
_this.backdrops = config.backdrops;
|
|
2378
2071
|
return _this;
|
|
2379
2072
|
}
|
|
2380
|
-
|
|
2381
2073
|
var _proto = BackdropsGenerator.prototype;
|
|
2382
|
-
|
|
2383
2074
|
_proto.generateCss = function generateCss() {
|
|
2384
|
-
var output = '';
|
|
2385
|
-
|
|
2075
|
+
var output = '';
|
|
2076
|
+
// Regular display: data-backdrop="*"
|
|
2386
2077
|
for (var _i = 0, _Object$entries = Object.entries(this.backdrops); _i < _Object$entries.length; _i++) {
|
|
2387
2078
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2388
|
-
|
|
2389
|
-
|
|
2079
|
+
key = _Object$entries$_i[0],
|
|
2080
|
+
value = _Object$entries$_i[1];
|
|
2390
2081
|
output += "*[data-backdrop='" + key + "']::backdrop {\n background: " + value + ";\n}\n";
|
|
2391
2082
|
}
|
|
2392
|
-
|
|
2393
2083
|
return output;
|
|
2394
2084
|
};
|
|
2395
|
-
|
|
2396
2085
|
return BackdropsGenerator;
|
|
2397
2086
|
}(AbstractGenerator);
|
|
2398
2087
|
|
|
2399
2088
|
var ObjectFitsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2400
2089
|
_inheritsLoose(ObjectFitsGenerator, _AbstractGenerator);
|
|
2401
|
-
|
|
2402
2090
|
function ObjectFitsGenerator(config) {
|
|
2403
2091
|
var _this;
|
|
2404
|
-
|
|
2405
2092
|
_this = _AbstractGenerator.call(this, 'Object fits') || this;
|
|
2406
2093
|
_this.objectFits = config.objectFits;
|
|
2407
2094
|
_this.breakpoints = config.breakpoints;
|
|
2408
2095
|
return _this;
|
|
2409
2096
|
}
|
|
2410
|
-
|
|
2411
2097
|
var _proto = ObjectFitsGenerator.prototype;
|
|
2412
|
-
|
|
2413
2098
|
_proto.generateCss = function generateCss() {
|
|
2414
|
-
var output = '';
|
|
2415
|
-
|
|
2099
|
+
var output = '';
|
|
2100
|
+
// Regular display: data-object-fit="*"
|
|
2416
2101
|
for (var _i = 0, _Object$entries = Object.entries(this.objectFits); _i < _Object$entries.length; _i++) {
|
|
2417
2102
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2418
|
-
|
|
2419
|
-
|
|
2103
|
+
key = _Object$entries$_i[0],
|
|
2104
|
+
value = _Object$entries$_i[1];
|
|
2420
2105
|
output += "*[data-object-fit='" + key + "'] {\n object-fit: " + value + ";\n}\n";
|
|
2421
2106
|
}
|
|
2422
|
-
|
|
2423
2107
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2424
2108
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2425
|
-
|
|
2426
|
-
|
|
2109
|
+
name = _Object$entries2$_i[0],
|
|
2110
|
+
_value = _Object$entries2$_i[1];
|
|
2427
2111
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2428
|
-
|
|
2429
2112
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.objectFits); _i3 < _Object$entries3.length; _i3++) {
|
|
2430
2113
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2431
|
-
|
|
2432
|
-
|
|
2114
|
+
_key = _Object$entries3$_i[0],
|
|
2115
|
+
_value2 = _Object$entries3$_i[1];
|
|
2433
2116
|
output += " *[data-" + name + "-object-fit='" + _key + "'] {\n object-fit: " + _value2 + ";\n }\n";
|
|
2434
2117
|
}
|
|
2435
|
-
|
|
2436
2118
|
output += "}\n";
|
|
2437
2119
|
}
|
|
2438
|
-
|
|
2439
2120
|
return output;
|
|
2440
2121
|
};
|
|
2441
|
-
|
|
2442
2122
|
return ObjectFitsGenerator;
|
|
2443
2123
|
}(AbstractGenerator);
|
|
2444
2124
|
|
|
2445
2125
|
var ObjectPositionsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2446
2126
|
_inheritsLoose(ObjectPositionsGenerator, _AbstractGenerator);
|
|
2447
|
-
|
|
2448
2127
|
function ObjectPositionsGenerator(config) {
|
|
2449
2128
|
var _this;
|
|
2450
|
-
|
|
2451
2129
|
_this = _AbstractGenerator.call(this, 'Object positions') || this;
|
|
2452
2130
|
_this.objectPositions = config.objectPositions;
|
|
2453
2131
|
_this.breakpoints = config.breakpoints;
|
|
2454
2132
|
return _this;
|
|
2455
2133
|
}
|
|
2456
|
-
|
|
2457
2134
|
var _proto = ObjectPositionsGenerator.prototype;
|
|
2458
|
-
|
|
2459
2135
|
_proto.generateCss = function generateCss() {
|
|
2460
|
-
var output = '';
|
|
2461
|
-
|
|
2136
|
+
var output = '';
|
|
2137
|
+
// Regular display: data-object-position="*"
|
|
2462
2138
|
for (var _i = 0, _Object$entries = Object.entries(this.objectPositions); _i < _Object$entries.length; _i++) {
|
|
2463
2139
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2464
|
-
|
|
2465
|
-
|
|
2140
|
+
key = _Object$entries$_i[0],
|
|
2141
|
+
value = _Object$entries$_i[1];
|
|
2466
2142
|
output += "*[data-object-position='" + key + "'] {\n object-position: " + value + ";\n}\n";
|
|
2467
2143
|
}
|
|
2468
|
-
|
|
2469
2144
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2470
2145
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2471
|
-
|
|
2472
|
-
|
|
2146
|
+
name = _Object$entries2$_i[0],
|
|
2147
|
+
_value = _Object$entries2$_i[1];
|
|
2473
2148
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2474
|
-
|
|
2475
2149
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.objectPositions); _i3 < _Object$entries3.length; _i3++) {
|
|
2476
2150
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2477
|
-
|
|
2478
|
-
|
|
2151
|
+
_key = _Object$entries3$_i[0],
|
|
2152
|
+
_value2 = _Object$entries3$_i[1];
|
|
2479
2153
|
output += " *[data-" + name + "-object-position='" + _key + "'] {\n object-position: " + _value2 + ";\n }\n";
|
|
2480
2154
|
}
|
|
2481
|
-
|
|
2482
2155
|
output += "}\n";
|
|
2483
2156
|
}
|
|
2484
|
-
|
|
2485
2157
|
return output;
|
|
2486
2158
|
};
|
|
2487
|
-
|
|
2488
2159
|
return ObjectPositionsGenerator;
|
|
2489
2160
|
}(AbstractGenerator);
|
|
2490
2161
|
|
|
2491
2162
|
var RotatesGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2492
2163
|
_inheritsLoose(RotatesGenerator, _AbstractGenerator);
|
|
2493
|
-
|
|
2494
2164
|
function RotatesGenerator(config) {
|
|
2495
2165
|
var _this;
|
|
2496
|
-
|
|
2497
2166
|
_this = _AbstractGenerator.call(this, 'Rotates') || this;
|
|
2498
2167
|
_this.rotates = config.rotates;
|
|
2499
2168
|
_this.breakpoints = config.breakpoints;
|
|
2500
2169
|
return _this;
|
|
2501
2170
|
}
|
|
2502
|
-
|
|
2503
2171
|
var _proto = RotatesGenerator.prototype;
|
|
2504
|
-
|
|
2505
2172
|
_proto.generateCss = function generateCss() {
|
|
2506
|
-
var output = '';
|
|
2507
|
-
|
|
2173
|
+
var output = '';
|
|
2174
|
+
// Regular display: data-rotate="*"
|
|
2508
2175
|
for (var _i = 0, _Object$entries = Object.entries(this.rotates); _i < _Object$entries.length; _i++) {
|
|
2509
2176
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2510
|
-
|
|
2511
|
-
|
|
2177
|
+
key = _Object$entries$_i[0],
|
|
2178
|
+
value = _Object$entries$_i[1];
|
|
2512
2179
|
output += "*[data-rotate='" + key + "'] {\n transform: rotate(" + value + "deg);\n}\n";
|
|
2513
2180
|
}
|
|
2514
|
-
|
|
2515
2181
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2516
2182
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2517
|
-
|
|
2518
|
-
|
|
2183
|
+
name = _Object$entries2$_i[0],
|
|
2184
|
+
_value = _Object$entries2$_i[1];
|
|
2519
2185
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2520
|
-
|
|
2521
2186
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.rotates); _i3 < _Object$entries3.length; _i3++) {
|
|
2522
2187
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2523
|
-
|
|
2524
|
-
|
|
2188
|
+
_key = _Object$entries3$_i[0],
|
|
2189
|
+
_value2 = _Object$entries3$_i[1];
|
|
2525
2190
|
output += " *[data-" + name + "-rotate='" + _key + "'] {\n transform: rotate(" + _value2 + "deg);\n }\n";
|
|
2526
2191
|
}
|
|
2527
|
-
|
|
2528
2192
|
output += "}\n";
|
|
2529
2193
|
}
|
|
2530
|
-
|
|
2531
2194
|
return output;
|
|
2532
2195
|
};
|
|
2533
|
-
|
|
2534
2196
|
return RotatesGenerator;
|
|
2535
2197
|
}(AbstractGenerator);
|
|
2536
2198
|
|
|
2537
2199
|
var MaxHeightsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2538
2200
|
_inheritsLoose(MaxHeightsGenerator, _AbstractGenerator);
|
|
2539
|
-
|
|
2540
2201
|
function MaxHeightsGenerator(config) {
|
|
2541
2202
|
var _this;
|
|
2542
|
-
|
|
2543
2203
|
_this = _AbstractGenerator.call(this, 'Max heights') || this;
|
|
2544
2204
|
_this.maxHeights = config.maxHeights;
|
|
2545
2205
|
_this.breakpoints = config.breakpoints;
|
|
2546
2206
|
return _this;
|
|
2547
2207
|
}
|
|
2548
|
-
|
|
2549
2208
|
var _proto = MaxHeightsGenerator.prototype;
|
|
2550
|
-
|
|
2551
2209
|
_proto.generateCss = function generateCss() {
|
|
2552
|
-
var output = '';
|
|
2553
|
-
|
|
2210
|
+
var output = '';
|
|
2211
|
+
// Regular display: data-max-height="*"
|
|
2554
2212
|
for (var _i = 0, _Object$entries = Object.entries(this.maxHeights); _i < _Object$entries.length; _i++) {
|
|
2555
2213
|
var _Object$entries$_i = _Object$entries[_i],
|
|
2556
|
-
|
|
2557
|
-
|
|
2214
|
+
key = _Object$entries$_i[0],
|
|
2215
|
+
value = _Object$entries$_i[1];
|
|
2558
2216
|
output += "*[data-max-height='" + key + "'] {\n max-height: " + value + ";\n}\n";
|
|
2559
2217
|
}
|
|
2560
|
-
|
|
2561
2218
|
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2562
2219
|
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2563
|
-
|
|
2564
|
-
|
|
2220
|
+
name = _Object$entries2$_i[0],
|
|
2221
|
+
_value = _Object$entries2$_i[1];
|
|
2565
2222
|
output += "@media (max-width: " + _value + "px) {\n";
|
|
2566
|
-
|
|
2567
2223
|
for (var _i3 = 0, _Object$entries3 = Object.entries(this.maxHeights); _i3 < _Object$entries3.length; _i3++) {
|
|
2568
2224
|
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2569
|
-
|
|
2570
|
-
|
|
2225
|
+
_key = _Object$entries3$_i[0],
|
|
2226
|
+
_value2 = _Object$entries3$_i[1];
|
|
2571
2227
|
output += "*[data-" + name + "-max-height='" + _key + "'] {\n max-height: " + _value2 + ";\n}\n";
|
|
2572
2228
|
}
|
|
2573
|
-
|
|
2574
2229
|
output += "}\n";
|
|
2575
2230
|
}
|
|
2576
|
-
|
|
2577
2231
|
return output;
|
|
2578
2232
|
};
|
|
2579
|
-
|
|
2580
2233
|
return MaxHeightsGenerator;
|
|
2581
2234
|
}(AbstractGenerator);
|
|
2582
2235
|
|
|
@@ -2814,13 +2467,10 @@ var Rotates = {
|
|
|
2814
2467
|
|
|
2815
2468
|
var GeneratorProcessor = /*#__PURE__*/function () {
|
|
2816
2469
|
function GeneratorProcessor() {}
|
|
2817
|
-
|
|
2818
2470
|
var _proto = GeneratorProcessor.prototype;
|
|
2819
|
-
|
|
2820
2471
|
_proto.process = /*#__PURE__*/function () {
|
|
2821
2472
|
var _process = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(generators) {
|
|
2822
2473
|
var output, _iterator, _step, generator;
|
|
2823
|
-
|
|
2824
2474
|
return runtime_1.wrap(function _callee$(_context) {
|
|
2825
2475
|
while (1) {
|
|
2826
2476
|
switch (_context.prev = _context.next) {
|
|
@@ -2829,116 +2479,96 @@ var GeneratorProcessor = /*#__PURE__*/function () {
|
|
|
2829
2479
|
_context.t0 = output;
|
|
2830
2480
|
_context.next = 4;
|
|
2831
2481
|
return new File('src/ui/button.css').read();
|
|
2832
|
-
|
|
2833
2482
|
case 4:
|
|
2834
2483
|
output = _context.t0 += _context.sent;
|
|
2835
2484
|
_context.t1 = output;
|
|
2836
2485
|
_context.next = 8;
|
|
2837
2486
|
return new File('src/ui/input.css').read();
|
|
2838
|
-
|
|
2839
2487
|
case 8:
|
|
2840
2488
|
output = _context.t1 += _context.sent;
|
|
2841
2489
|
_context.t2 = output;
|
|
2842
2490
|
_context.next = 12;
|
|
2843
2491
|
return new File('src/ui/label.css').read();
|
|
2844
|
-
|
|
2845
2492
|
case 12:
|
|
2846
2493
|
output = _context.t2 += _context.sent;
|
|
2847
2494
|
_context.t3 = output;
|
|
2848
2495
|
_context.next = 16;
|
|
2849
2496
|
return new File('src/ui/link.css').read();
|
|
2850
|
-
|
|
2851
2497
|
case 16:
|
|
2852
2498
|
output = _context.t3 += _context.sent;
|
|
2853
2499
|
_context.t4 = output;
|
|
2854
2500
|
_context.next = 20;
|
|
2855
2501
|
return new File('src/ui/select.css').read();
|
|
2856
|
-
|
|
2857
2502
|
case 20:
|
|
2858
2503
|
output = _context.t4 += _context.sent;
|
|
2859
2504
|
_context.t5 = output;
|
|
2860
2505
|
_context.next = 24;
|
|
2861
2506
|
return new File('src/ui/checkbox.css').read();
|
|
2862
|
-
|
|
2863
2507
|
case 24:
|
|
2864
2508
|
output = _context.t5 += _context.sent;
|
|
2865
2509
|
_context.t6 = output;
|
|
2866
2510
|
_context.next = 28;
|
|
2867
2511
|
return new File('src/ui/textarea.css').read();
|
|
2868
|
-
|
|
2869
2512
|
case 28:
|
|
2870
2513
|
output = _context.t6 += _context.sent;
|
|
2871
2514
|
_context.t7 = output;
|
|
2872
2515
|
_context.next = 32;
|
|
2873
2516
|
return new File('src/ui/anima.css').read();
|
|
2874
|
-
|
|
2875
2517
|
case 32:
|
|
2876
2518
|
output = _context.t7 += _context.sent;
|
|
2877
2519
|
_context.t8 = output;
|
|
2878
2520
|
_context.next = 36;
|
|
2879
2521
|
return new File('src/ui/range.css').read();
|
|
2880
|
-
|
|
2881
2522
|
case 36:
|
|
2882
2523
|
output = _context.t8 += _context.sent;
|
|
2883
2524
|
_context.t9 = output;
|
|
2884
2525
|
_context.next = 40;
|
|
2885
2526
|
return new File('src/ui/badge.css').read();
|
|
2886
|
-
|
|
2887
2527
|
case 40:
|
|
2888
2528
|
output = _context.t9 += _context.sent;
|
|
2889
2529
|
_context.t10 = output;
|
|
2890
2530
|
_context.next = 44;
|
|
2891
2531
|
return new File('src/ui/file-explorer.css').read();
|
|
2892
|
-
|
|
2893
2532
|
case 44:
|
|
2894
2533
|
output = _context.t10 += _context.sent;
|
|
2895
2534
|
_context.t11 = output;
|
|
2896
2535
|
_context.next = 48;
|
|
2897
2536
|
return new File('src/ui/visually-hidden.css').read();
|
|
2898
|
-
|
|
2899
2537
|
case 48:
|
|
2900
2538
|
output = _context.t11 += _context.sent;
|
|
2901
2539
|
_context.t12 = output;
|
|
2902
2540
|
_context.next = 52;
|
|
2903
2541
|
return new File('src/ui/switch.css').read();
|
|
2904
|
-
|
|
2905
2542
|
case 52:
|
|
2906
2543
|
output = _context.t12 += _context.sent;
|
|
2907
2544
|
_context.t13 = output;
|
|
2908
2545
|
_context.next = 56;
|
|
2909
2546
|
return new File('src/rules/title-truncate.css').read();
|
|
2910
|
-
|
|
2911
2547
|
case 56:
|
|
2912
2548
|
output = _context.t13 += _context.sent;
|
|
2913
2549
|
_context.t14 = output;
|
|
2914
2550
|
_context.next = 60;
|
|
2915
2551
|
return new File('src/rules/target-blank-referer.css').read();
|
|
2916
|
-
|
|
2917
2552
|
case 60:
|
|
2918
2553
|
output = _context.t14 += _context.sent;
|
|
2919
2554
|
_context.t15 = output;
|
|
2920
2555
|
_context.next = 64;
|
|
2921
2556
|
return new File('src/rules/image-alt.css').read();
|
|
2922
|
-
|
|
2923
2557
|
case 64:
|
|
2924
2558
|
output = _context.t15 += _context.sent;
|
|
2925
2559
|
_context.t16 = output;
|
|
2926
2560
|
_context.next = 68;
|
|
2927
2561
|
return new File('src/rules/button-icon-title.css').read();
|
|
2928
|
-
|
|
2929
2562
|
case 68:
|
|
2930
2563
|
output = _context.t16 += _context.sent;
|
|
2931
|
-
|
|
2932
2564
|
for (_iterator = _createForOfIteratorHelperLoose(generators); !(_step = _iterator()).done;) {
|
|
2933
2565
|
generator = _step.value;
|
|
2934
2566
|
output += generator.generateHeader();
|
|
2935
2567
|
output += generator.generateCss();
|
|
2936
2568
|
output += generator.generateFooter();
|
|
2937
2569
|
}
|
|
2938
|
-
|
|
2939
2570
|
_context.next = 72;
|
|
2940
2571
|
return new File('dist/main.css').save(output);
|
|
2941
|
-
|
|
2942
2572
|
case 72:
|
|
2943
2573
|
case "end":
|
|
2944
2574
|
return _context.stop();
|
|
@@ -2946,21 +2576,16 @@ var GeneratorProcessor = /*#__PURE__*/function () {
|
|
|
2946
2576
|
}
|
|
2947
2577
|
}, _callee);
|
|
2948
2578
|
}));
|
|
2949
|
-
|
|
2950
2579
|
function process(_x) {
|
|
2951
2580
|
return _process.apply(this, arguments);
|
|
2952
2581
|
}
|
|
2953
|
-
|
|
2954
2582
|
return process;
|
|
2955
2583
|
}();
|
|
2956
|
-
|
|
2957
2584
|
return GeneratorProcessor;
|
|
2958
2585
|
}();
|
|
2959
|
-
|
|
2960
2586
|
function main() {
|
|
2961
2587
|
return _main.apply(this, arguments);
|
|
2962
2588
|
}
|
|
2963
|
-
|
|
2964
2589
|
function _main() {
|
|
2965
2590
|
_main = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
2966
2591
|
var config;
|
|
@@ -3005,7 +2630,6 @@ function _main() {
|
|
|
3005
2630
|
};
|
|
3006
2631
|
_context2.next = 3;
|
|
3007
2632
|
return new GeneratorProcessor().process([new Margins(config), new Paddings(config), new DisplaysGenerator(config), new AxisPlacementsGenerator(config), new FlexWrapGenerator(config), new FlexDirectionsGenerator(config), new FlexGrowsGenerator(config), new FlexShrinksGenerator(config), new GapGenerator(config), new WidthsGenerator(config), new PositionsGenerator(config), new ZIndexGenerator(config), new FontSizeGenerator(config), new FontWeightGenerator(config), new FontColorsGenerator(config), new LineHeightsGenerator(config), new LetterSpacingsGenerator(config), new BackgroundsGenerator(config), new BorderWidthsGenerator(config), new BorderColorsGenerator(config), new BorderRadiusesGenerator(config), new MaxWidthsGenerator(config), new TransformsGenerator(config), new OverflowsGenerator(config), new PositionersGenerator(config), new HeightsGenerator(config), new CursorsGenerator(config), new PointerEventsGenerator(config), new BackdropsGenerator(config), new ObjectFitsGenerator(config), new ObjectPositionsGenerator(config), new RotatesGenerator(config), new MaxHeightsGenerator(config)]);
|
|
3008
|
-
|
|
3009
2633
|
case 3:
|
|
3010
2634
|
case "end":
|
|
3011
2635
|
return _context2.stop();
|