@master/css 2.0.0-rc.36 → 2.0.0-rc.37
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/core.cjs +2 -2
- package/dist/core.mjs +2 -2
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -410,7 +410,7 @@ class MasterCSS {
|
|
|
410
410
|
}
|
|
411
411
|
if (keys.length) {
|
|
412
412
|
EachRule.keys = keys;
|
|
413
|
-
EachRule.matchers.key = new RegExp(`^${keys.length > 1 ? `(${keys.join('|')})` : keys[0]}
|
|
413
|
+
EachRule.matchers.key = new RegExp(`^${keys.length > 1 ? `(${keys.join('|')})` : keys[0]}:.`);
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
}
|
|
@@ -452,7 +452,7 @@ class MasterCSS {
|
|
|
452
452
|
*/ generate(className) {
|
|
453
453
|
return (Object.prototype.hasOwnProperty.call(this.styles, className) ? this.styles[className].map((eachSyntax)=>this.create(eachSyntax)) : [
|
|
454
454
|
this.create(className)
|
|
455
|
-
]).filter((eachRule)=>eachRule && eachRule
|
|
455
|
+
]).filter((eachRule)=>eachRule && eachRule?.text);
|
|
456
456
|
}
|
|
457
457
|
/**
|
|
458
458
|
* Create rule from given syntax
|
package/dist/core.mjs
CHANGED
|
@@ -406,7 +406,7 @@ class MasterCSS {
|
|
|
406
406
|
}
|
|
407
407
|
if (keys.length) {
|
|
408
408
|
EachRule.keys = keys;
|
|
409
|
-
EachRule.matchers.key = new RegExp(`^${keys.length > 1 ? `(${keys.join('|')})` : keys[0]}
|
|
409
|
+
EachRule.matchers.key = new RegExp(`^${keys.length > 1 ? `(${keys.join('|')})` : keys[0]}:.`);
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}
|
|
@@ -448,7 +448,7 @@ class MasterCSS {
|
|
|
448
448
|
*/ generate(className) {
|
|
449
449
|
return (Object.prototype.hasOwnProperty.call(this.styles, className) ? this.styles[className].map((eachSyntax)=>this.create(eachSyntax)) : [
|
|
450
450
|
this.create(className)
|
|
451
|
-
]).filter((eachRule)=>eachRule && eachRule
|
|
451
|
+
]).filter((eachRule)=>eachRule && eachRule?.text);
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
454
|
* Create rule from given syntax
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"The CSS language and framework for rapidly building modern and high-performance websites","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/core"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"bin":"./dist/bin/index.mjs","files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/colors":"^2.0.0","@master/normal.css":"^3.0.0","@techor/extend":"^3.0.22","csstype":"^3.1.3"},"devDependencies":{"@master/css-shared":"^2.0.0-rc.
|
|
1
|
+
{"name":"@master/css","type":"module","scripts":{"build":"techor build \"src/**/*.ts\"","dev":"pnpm build --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"The CSS language and framework for rapidly building modern and high-performance websites","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/core"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"bin":"./dist/bin/index.mjs","files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/colors":"^2.0.0","@master/normal.css":"^3.0.0","@techor/extend":"^3.0.22","csstype":"^3.1.3"},"devDependencies":{"@master/css-shared":"^2.0.0-rc.37"},"version":"2.0.0-rc.37"}
|