@bgord/design 0.27.2 → 0.27.7
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 +47 -4
- 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 +47 -4
- package/dist/design.esm.js.map +1 -1
- package/dist/generator.d.ts +2 -1
- package/dist/main.css +70 -0
- package/dist/main.min.css +1 -1
- package/dist/main.min.css.br +0 -0
- package/dist/main.min.css.gz +0 -0
- package/dist/normalize.css +27 -5
- package/dist/normalize.min.css +1 -1
- package/dist/normalize.min.css.br +0 -0
- package/dist/normalize.min.css.gz +0 -0
- package/dist/overflows-generator.d.ts +8 -0
- package/dist/tokens.d.ts +2 -0
- package/package.json +2 -1
- package/src/generate-css.ts +5 -0
- package/src/generator.ts +2 -0
- package/src/normalize.css +14 -0
- package/src/overflows-generator.ts +28 -0
- package/src/tokens.ts +8 -0
- package/src/ui/checkbox.css +50 -0
|
@@ -1967,6 +1967,37 @@ var TransformsGenerator = /*#__PURE__*/function () {
|
|
|
1967
1967
|
return TransformsGenerator;
|
|
1968
1968
|
}();
|
|
1969
1969
|
|
|
1970
|
+
var OverflowsGenerator = /*#__PURE__*/function () {
|
|
1971
|
+
function OverflowsGenerator(config) {
|
|
1972
|
+
this.overflows = config.overflows;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
var _proto = OverflowsGenerator.prototype;
|
|
1976
|
+
|
|
1977
|
+
_proto.generateHeader = function generateHeader() {
|
|
1978
|
+
return '/* Overflows */\n\n';
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
_proto.generateCss = function generateCss() {
|
|
1982
|
+
var output = ''; // Regular display: data-overflow="*"
|
|
1983
|
+
|
|
1984
|
+
for (var _i = 0, _Object$entries = Object.entries(this.overflows); _i < _Object$entries.length; _i++) {
|
|
1985
|
+
var _Object$entries$_i = _Object$entries[_i],
|
|
1986
|
+
key = _Object$entries$_i[0],
|
|
1987
|
+
value = _Object$entries$_i[1];
|
|
1988
|
+
output += "*[data-overflow='" + key + "'] {\n overflow: " + value + ";\n}\n";
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
return output;
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
_proto.generateFooter = function generateFooter() {
|
|
1995
|
+
return '/* ===================== */\n\n';
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
return OverflowsGenerator;
|
|
1999
|
+
}();
|
|
2000
|
+
|
|
1970
2001
|
var Spacing = {
|
|
1971
2002
|
'0': '0',
|
|
1972
2003
|
'3': '3px',
|
|
@@ -2132,6 +2163,11 @@ var Transforms = {
|
|
|
2132
2163
|
capitalize: 'capitalize',
|
|
2133
2164
|
none: 'none'
|
|
2134
2165
|
};
|
|
2166
|
+
var Overflows = {
|
|
2167
|
+
auto: 'auto',
|
|
2168
|
+
scroll: 'scroll',
|
|
2169
|
+
hidden: 'hidden'
|
|
2170
|
+
};
|
|
2135
2171
|
|
|
2136
2172
|
var GeneratorProcessor = /*#__PURE__*/function () {
|
|
2137
2173
|
function GeneratorProcessor() {}
|
|
@@ -2185,10 +2221,16 @@ var GeneratorProcessor = /*#__PURE__*/function () {
|
|
|
2185
2221
|
|
|
2186
2222
|
case 21:
|
|
2187
2223
|
output = _context.t4 += _context.sent;
|
|
2188
|
-
_context.
|
|
2224
|
+
_context.t5 = output;
|
|
2225
|
+
_context.next = 25;
|
|
2226
|
+
return new File('src/ui/checkbox.css').read();
|
|
2227
|
+
|
|
2228
|
+
case 25:
|
|
2229
|
+
output = _context.t5 += _context.sent;
|
|
2230
|
+
_context.next = 28;
|
|
2189
2231
|
return new File('dist/main.css').save(output);
|
|
2190
2232
|
|
|
2191
|
-
case
|
|
2233
|
+
case 28:
|
|
2192
2234
|
case "end":
|
|
2193
2235
|
return _context.stop();
|
|
2194
2236
|
}
|
|
@@ -2240,10 +2282,11 @@ function _main() {
|
|
|
2240
2282
|
borderColors: BorderColors,
|
|
2241
2283
|
borderRadiuses: BorderRadiuses,
|
|
2242
2284
|
maxWidths: MaxWidths,
|
|
2243
|
-
transforms: Transforms
|
|
2285
|
+
transforms: Transforms,
|
|
2286
|
+
overflows: Overflows
|
|
2244
2287
|
};
|
|
2245
2288
|
_context2.next = 3;
|
|
2246
|
-
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 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)]);
|
|
2289
|
+
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 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)]);
|
|
2247
2290
|
|
|
2248
2291
|
case 3:
|
|
2249
2292
|
case "end":
|