@bgord/design 0.27.45 → 0.27.47
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/README.md +11 -0
- package/dist/backdrops-generator.d.ts +6 -0
- package/dist/design.cjs.development.js +36 -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 +36 -2
- package/dist/design.esm.js.map +1 -1
- package/dist/generator.d.ts +2 -1
- package/dist/main.css +29 -4
- 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/tokens.d.ts +2 -0
- package/package.json +1 -1
- package/src/backdrops-generator.ts +22 -0
- package/src/generate-css.ts +4 -0
- package/src/generator.ts +2 -0
- package/src/tokens.ts +7 -0
- package/src/ui/range.css +18 -4
package/README.md
CHANGED
|
@@ -453,3 +453,14 @@ Orange
|
|
|
453
453
|
| auto | auto |
|
|
454
454
|
| pointer | pointer |
|
|
455
455
|
| not-allowed | not-allowed |
|
|
456
|
+
|
|
457
|
+
## Backdrops
|
|
458
|
+
|
|
459
|
+
| Definition | Value |
|
|
460
|
+
| ------------- | -------- |
|
|
461
|
+
| data-backdrop | backdrop |
|
|
462
|
+
|
|
463
|
+
| Key | Value |
|
|
464
|
+
| ----- | :-----------------: |
|
|
465
|
+
| black | rgba(0, 0, 0, 0.75) |
|
|
466
|
+
| none | none |
|
|
@@ -2289,6 +2289,35 @@ var PointerEventsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
|
2289
2289
|
return PointerEventsGenerator;
|
|
2290
2290
|
}(AbstractGenerator);
|
|
2291
2291
|
|
|
2292
|
+
var BackdropsGenerator = /*#__PURE__*/function (_AbstractGenerator) {
|
|
2293
|
+
_inheritsLoose(BackdropsGenerator, _AbstractGenerator);
|
|
2294
|
+
|
|
2295
|
+
function BackdropsGenerator(config) {
|
|
2296
|
+
var _this;
|
|
2297
|
+
|
|
2298
|
+
_this = _AbstractGenerator.call(this, 'Backdrops') || this;
|
|
2299
|
+
_this.backdrops = config.backdrops;
|
|
2300
|
+
return _this;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
var _proto = BackdropsGenerator.prototype;
|
|
2304
|
+
|
|
2305
|
+
_proto.generateCss = function generateCss() {
|
|
2306
|
+
var output = ''; // Regular display: data-backdrop="*"
|
|
2307
|
+
|
|
2308
|
+
for (var _i = 0, _Object$entries = Object.entries(this.backdrops); _i < _Object$entries.length; _i++) {
|
|
2309
|
+
var _Object$entries$_i = _Object$entries[_i],
|
|
2310
|
+
key = _Object$entries$_i[0],
|
|
2311
|
+
value = _Object$entries$_i[1];
|
|
2312
|
+
output += "*[data-backdrop='" + key + "']::backdrop {\n backgound: " + value + ";\n}\n";
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
return output;
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
return BackdropsGenerator;
|
|
2319
|
+
}(AbstractGenerator);
|
|
2320
|
+
|
|
2292
2321
|
var Spacing = {
|
|
2293
2322
|
'0': '0',
|
|
2294
2323
|
'3': '3px',
|
|
@@ -2486,6 +2515,10 @@ var PointerEvents = {
|
|
|
2486
2515
|
none: 'none',
|
|
2487
2516
|
auto: 'auto'
|
|
2488
2517
|
};
|
|
2518
|
+
var Backdrops = {
|
|
2519
|
+
black: 'rgba(0, 0, 0, 0.75)',
|
|
2520
|
+
none: 'none'
|
|
2521
|
+
};
|
|
2489
2522
|
|
|
2490
2523
|
var GeneratorProcessor = /*#__PURE__*/function () {
|
|
2491
2524
|
function GeneratorProcessor() {}
|
|
@@ -2640,10 +2673,11 @@ function _main() {
|
|
|
2640
2673
|
overflows: Overflows,
|
|
2641
2674
|
heights: Heights,
|
|
2642
2675
|
cursors: Cursors,
|
|
2643
|
-
pointerEvents: PointerEvents
|
|
2676
|
+
pointerEvents: PointerEvents,
|
|
2677
|
+
backdrops: Backdrops
|
|
2644
2678
|
};
|
|
2645
2679
|
_context2.next = 3;
|
|
2646
|
-
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)]);
|
|
2680
|
+
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), new BackdropsGenerator(config)]);
|
|
2647
2681
|
|
|
2648
2682
|
case 3:
|
|
2649
2683
|
case "end":
|