@master/css 2.0.0-rc.21 → 2.0.0-rc.22

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/rule.cjs CHANGED
@@ -5,7 +5,7 @@ var cssEscape = require('./shared/utils/css-escape.cjs');
5
5
  var layer = require('./layer.cjs');
6
6
  var baseUnitRegex = require('./constants/base-unit-regex.cjs');
7
7
 
8
- const atRuleRegExp = /^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/;
8
+ const atRuleRegExp = /^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer|container)(?=\||{|\(|$)/;
9
9
  class Rule {
10
10
  className;
11
11
  css;
@@ -469,9 +469,7 @@ class Rule {
469
469
  const analyzeToken = (typeOrFeatureToken)=>{
470
470
  if (typeOrFeatureToken === 'all' || typeOrFeatureToken === 'print' || typeOrFeatureToken === 'screen' || typeOrFeatureToken === 'speech') {
471
471
  this.media.type = typeOrFeatureToken;
472
- } else if (typeOrFeatureToken === '🖨') {
473
- this.media.type = 'print';
474
- } else {
472
+ } else if (typeOrFeatureToken.startsWith('')) {
475
473
  if (typeOrFeatureToken === 'landscape' || typeOrFeatureToken === 'portrait') {
476
474
  queryTexts.push('(orientation:' + typeOrFeatureToken + ')');
477
475
  } else if (typeOrFeatureToken === 'motion' || typeOrFeatureToken === 'reduced-motion') {
package/dist/rule.mjs CHANGED
@@ -3,7 +3,7 @@ import cssEscape from './shared/utils/css-escape.mjs';
3
3
  import { Layer } from './layer.mjs';
4
4
  import { BASE_UNIT_REGEX } from './constants/base-unit-regex.mjs';
5
5
 
6
- const atRuleRegExp = /^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/;
6
+ const atRuleRegExp = /^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer|container)(?=\||{|\(|$)/;
7
7
  class Rule {
8
8
  className;
9
9
  css;
@@ -467,9 +467,7 @@ class Rule {
467
467
  const analyzeToken = (typeOrFeatureToken)=>{
468
468
  if (typeOrFeatureToken === 'all' || typeOrFeatureToken === 'print' || typeOrFeatureToken === 'screen' || typeOrFeatureToken === 'speech') {
469
469
  this.media.type = typeOrFeatureToken;
470
- } else if (typeOrFeatureToken === '🖨') {
471
- this.media.type = 'print';
472
- } else {
470
+ } else if (typeOrFeatureToken.startsWith('')) {
473
471
  if (typeOrFeatureToken === 'landscape' || typeOrFeatureToken === 'portrait') {
474
472
  queryTexts.push('(orientation:' + typeOrFeatureToken + ')');
475
473
  } else if (typeOrFeatureToken === 'motion' || typeOrFeatureToken === 'reduced-motion') {
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/css"},"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":"rc","@master/normal.css":"^2.0.0-rc.21","@techor/extend":"^3.0.16"},"devDependencies":{"css-shared":"^2.0.0-rc.21","csstype":"^3.1.3"},"version":"2.0.0-rc.21"}
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/css"},"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":"rc","@master/normal.css":"^2.0.0-rc.22","@techor/extend":"^3.0.16"},"devDependencies":{"css-shared":"^2.0.0-rc.22","csstype":"^3.1.3"},"version":"2.0.0-rc.22"}