Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@master/css

Package Overview
Dependencies
Maintainers
2
Versions
429
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master/css - npm Package Compare versions

Comparing version 2.0.0-rc.25 to 2.0.0-rc.26

dist/config/queries.cjs

8

dist/config/index.d.ts

@@ -1,2 +0,2 @@

import mediaQueries from './media-queries';
import queries from './queries';
import selectors from './selectors';

@@ -11,3 +11,3 @@ import semantics from './semantics';

declare const config: Config;
export { config, mediaQueries, selectors, semantics, rules, functions, animations, variables };
export { config, queries, selectors, semantics, rules, functions, animations, variables };
export type VariableValue = number | string | Array<number | string>;

@@ -56,3 +56,3 @@ export type VariableDefinition = {

styles?: StyleDefinitions;
mediaQueries?: MediaQueryDefinitions;
queries?: MediaQueryDefinitions;
selectors?: SelectorDefinitions;

@@ -69,3 +69,3 @@ semantics?: SemanticDefinitions;

animations?: AnimationDefinitions;
themeDriver?: 'class' | 'media' | 'host';
modeDriver?: 'class' | 'media' | 'host';
}

@@ -19,4 +19,4 @@ import { Rule, type NativeRule, type RegisteredRule } from './rule';

usage?: number;
themes?: {
[theme: string]: VariableValue;
modes?: {
[mode: string]: VariableValue;
};

@@ -80,3 +80,3 @@ };

handleRuleWithVariableNames(rule: Rule, initializing?: boolean): void;
pushVariableNativeRule(theme: string, variableCSSRule: CSSStyleRule): NativeRule;
pushVariableNativeRule(mode: string, variableCSSRule: CSSStyleRule): NativeRule;
}

@@ -90,3 +90,3 @@ export declare const masterCSSs: MasterCSS[];

variables: Record<string, Variable>;
mediaQueries: Record<string, string | number>;
queries: Record<string, string | number>;
variablesNativeRules: Record<string, NativeRule>;

@@ -93,0 +93,0 @@ hasKeyframesRule: boolean;

export * from './config';
export { Rule } from './rule';
export { Layer } from './layer';
export { default as extend } from '@techor/extend';
export { default as MasterCSS, default } from './core';
export { default as extendConfig } from './functions/extend-config';
export { default as reorderForReadableClasses } from './functions/reorder-for-readable-classes';
export { default as MasterCSS, default } from './core';
export { default as areRuleModesEqual } from './functions/are-rule-modes-equal';
export { default as areRuleQueriesEqual } from './functions/are-rule-queries-equal';
export { default as areRuleSelectorsEqual } from './functions/are-rule-selectors-equal';
export { default as areRuleStatesEqual } from './functions/are-rule-states-equal';
export { default as areRulesDuplicated } from './functions/are-rules-duplicated';
export type { NativeRule, MediaFeatureComponent, MediaQuery } from './rule';

@@ -7,3 +7,3 @@ import MasterCSS, { type Variable } from './core';

css: MasterCSS;
readonly at: Record<string, string>;
readonly at: Record<string, AtComponent[]>;
readonly priority: number;

@@ -13,2 +13,3 @@ readonly natives: NativeRule[];

readonly layer: Layer;
readonly atToken: string;
readonly stateToken: string;

@@ -19,2 +20,3 @@ readonly declarations?: PropertiesHyphen;

constructor(className: string, RegisteredRule: RegisteredRule, css: MasterCSS);
resolveAtComponent(atComponent: AtComponent): string;
resolveValue: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[], bypassParsing: boolean) => string;

@@ -25,2 +27,26 @@ get text(): string;

}
export type AtComponent = AtArbitraryComponent | AtMediaTypeComponent | AtFeatureComponent | AtOperatorComponent;
export interface AtArbitraryComponent {
type: 'arbitrary';
token?: string;
value: string;
}
export interface AtMediaTypeComponent {
type: 'media-type';
token?: string;
value: 'all' | 'print' | 'screen' | 'speech';
}
export interface AtFeatureComponent {
type: 'feature';
token?: string;
name: string;
valueType: 'number' | 'string';
value: string | number;
unit?: string;
}
export interface AtOperatorComponent {
type: 'operator';
token: '&';
value: 'and';
}
export type ValueComponent = StringValueComponent | NumericValueComponent | FunctionValueComponent | VariableValueComponent | SeparatorValueComponent;

@@ -70,5 +96,4 @@ export interface StringValueComponent {

important: boolean;
media: MediaQuery;
direction: string;
theme: string;
mode: string;
unitToken: string;

@@ -75,0 +100,0 @@ hasWhere: boolean;

@@ -1,1 +0,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":"^2.0.0","@master/normal.css":"^2.0.0","@techor/extend":"^3.0.18"},"devDependencies":{"css-shared":"^2.0.0-rc.25","csstype":"^3.1.3"},"version":"2.0.0-rc.25"}
{"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":"^2.0.0","@master/normal.css":"^2.1.0","@techor/extend":"^3.0.18"},"devDependencies":{"css-shared":"^2.0.0-rc.26","csstype":"^3.1.3"},"version":"2.0.0-rc.26"}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc