@bgord/design 0.27.42 → 0.27.44

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.
@@ -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',
@@ -2382,7 +2428,9 @@ var LetterSpacings = {
2382
2428
  '0.5': 0.5,
2383
2429
  '1': 1,
2384
2430
  '1.5': 1.5,
2385
- '2': 2
2431
+ '2': 2,
2432
+ '4': 4,
2433
+ '6': 6
2386
2434
  };
2387
2435
  var FlexGrows = {
2388
2436
  '1': '1',
@@ -2434,6 +2482,10 @@ var Cursors = {
2434
2482
  pointer: 'pointer',
2435
2483
  'not-allowed': 'not-allowed'
2436
2484
  };
2485
+ var PointerEvents = {
2486
+ none: 'none',
2487
+ auto: 'auto'
2488
+ };
2437
2489
 
2438
2490
  var GeneratorProcessor = /*#__PURE__*/function () {
2439
2491
  function GeneratorProcessor() {}
@@ -2581,10 +2633,11 @@ function _main() {
2581
2633
  transforms: Transforms,
2582
2634
  overflows: Overflows,
2583
2635
  heights: Heights,
2584
- cursors: Cursors
2636
+ cursors: Cursors,
2637
+ pointerEvents: PointerEvents
2585
2638
  };
2586
2639
  _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)]);
2640
+ 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
2641
 
2589
2642
  case 3:
2590
2643
  case "end":