@bgord/design 0.27.42 → 0.27.43
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 +53 -2
- 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 +53 -2
- package/dist/design.esm.js.map +1 -1
- package/dist/generator.d.ts +2 -1
- package/dist/main.css +18 -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/pointer-events-generator.d.ts +7 -0
- package/dist/tokens.d.ts +2 -0
- package/package.json +1 -1
- package/src/generate-css.ts +4 -0
- package/src/generator.ts +2 -0
- package/src/pointer-events-generator.ts +34 -0
- package/src/tokens.ts +7 -0
|
@@ -2243,6 +2243,52 @@ var CursorsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
|
2243
2243
|
return CursorsGenerator;
|
|
2244
2244
|
}(AbstractGenerator);
|
|
2245
2245
|
|
|
2246
|
+
var PointerEventsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2247
|
+
_inheritsLoose(PointerEventsGenerator, _AbstractGenerator);
|
|
2248
|
+
|
|
2249
|
+
function PointerEventsGenerator(config) {
|
|
2250
|
+
var _this;
|
|
2251
|
+
|
|
2252
|
+
_this = _AbstractGenerator.call(this, 'Cursors') || this;
|
|
2253
|
+
_this.pointerEvents = config.pointerEvents;
|
|
2254
|
+
_this.breakpoints = config.breakpoints;
|
|
2255
|
+
return _this;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
var _proto = PointerEventsGenerator.prototype;
|
|
2259
|
+
|
|
2260
|
+
_proto.generateCss = function generateCss() {
|
|
2261
|
+
var output = ''; // Regular display: data-pointer-events="*"
|
|
2262
|
+
|
|
2263
|
+
for (var _i = 0, _Object$entries = Object.entries(this.pointerEvents); _i < _Object$entries.length; _i++) {
|
|
2264
|
+
var _Object$entries$_i = _Object$entries[_i],
|
|
2265
|
+
key = _Object$entries$_i[0],
|
|
2266
|
+
value = _Object$entries$_i[1];
|
|
2267
|
+
output += "*[data-pointer-events='" + key + "'] {\n pointer-events: " + value + ";\n}\n";
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
for (var _i2 = 0, _Object$entries2 = Object.entries(this.breakpoints); _i2 < _Object$entries2.length; _i2++) {
|
|
2271
|
+
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
2272
|
+
name = _Object$entries2$_i[0],
|
|
2273
|
+
_value = _Object$entries2$_i[1];
|
|
2274
|
+
output += "@media (max-width: " + _value + "px) {\n";
|
|
2275
|
+
|
|
2276
|
+
for (var _i3 = 0, _Object$entries3 = Object.entries(this.pointerEvents); _i3 < _Object$entries3.length; _i3++) {
|
|
2277
|
+
var _Object$entries3$_i = _Object$entries3[_i3],
|
|
2278
|
+
_key = _Object$entries3$_i[0],
|
|
2279
|
+
_value2 = _Object$entries3$_i[1];
|
|
2280
|
+
output += " *[data-" + name + "-pointer-events='" + _key + "'] {\n pointer-events: " + _value2 + ";\n }\n";
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
output += "}\n";
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
return output;
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
return PointerEventsGenerator;
|
|
2290
|
+
}(AbstractGenerator);
|
|
2291
|
+
|
|
2246
2292
|
var Spacing = {
|
|
2247
2293
|
'0': '0',
|
|
2248
2294
|
'3': '3px',
|
|
@@ -2434,6 +2480,10 @@ var Cursors = {
|
|
|
2434
2480
|
pointer: 'pointer',
|
|
2435
2481
|
'not-allowed': 'not-allowed'
|
|
2436
2482
|
};
|
|
2483
|
+
var PointerEvents = {
|
|
2484
|
+
none: 'none',
|
|
2485
|
+
auto: 'auto'
|
|
2486
|
+
};
|
|
2437
2487
|
|
|
2438
2488
|
var GeneratorProcessor = /*#__PURE__*/function () {
|
|
2439
2489
|
function GeneratorProcessor() {}
|
|
@@ -2581,10 +2631,11 @@ function _main() {
|
|
|
2581
2631
|
transforms: Transforms,
|
|
2582
2632
|
overflows: Overflows,
|
|
2583
2633
|
heights: Heights,
|
|
2584
|
-
cursors: Cursors
|
|
2634
|
+
cursors: Cursors,
|
|
2635
|
+
pointerEvents: PointerEvents
|
|
2585
2636
|
};
|
|
2586
2637
|
_context2.next = 3;
|
|
2587
|
-
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 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(), new HeightsGenerator(config), new CursorsGenerator(config)]);
|
|
2638
|
+
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 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(), new HeightsGenerator(config), new CursorsGenerator(config), new PointerEventsGenerator(config)]);
|
|
2588
2639
|
|
|
2589
2640
|
case 3:
|
|
2590
2641
|
case "end":
|