@vanilla-extract/css
Advanced tools
Comparing version 0.0.0-create-compiler-api-2023264641 to 0.0.0-create-compiler-api-20232723636
@@ -181,4 +181,4 @@ import { AtRule, Properties } from 'csstype'; | ||
appendCss: (css: CSS, fileScope: FileScope) => void; | ||
registerClassName: (className: string) => void; | ||
registerComposition: (composition: Composition) => void; | ||
registerClassName: (className: string, fileScope: FileScope) => void; | ||
registerComposition: (composition: Composition, fileScope: FileScope) => void; | ||
markCompositionUsed: (identifier: string) => void; | ||
@@ -185,0 +185,0 @@ onEndFileScope: (fileScope: FileScope) => void; |
@@ -309,3 +309,3 @@ 'use strict'; | ||
var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1); | ||
@@ -318,3 +318,3 @@ return vars ? [themeClassName, vars] : themeClassName; | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var classList = []; | ||
@@ -335,3 +335,3 @@ var styleRules = []; | ||
classList: result | ||
}); | ||
}, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
if (styleRules.length > 0) { | ||
@@ -361,3 +361,3 @@ // If there are styles attached to this composition then it is | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
adapter_dist_vanillaExtractCssAdapter.appendCss({ | ||
@@ -364,0 +364,0 @@ type: 'local', |
@@ -297,3 +297,3 @@ import { injectStyles } from '../injectStyles/dist/vanilla-extract-css-injectStyles.browser.esm.js'; | ||
var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2); | ||
registerClassName(themeClassName); | ||
registerClassName(themeClassName, getFileScope()); | ||
var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1); | ||
@@ -306,3 +306,3 @@ return vars ? [themeClassName, vars] : themeClassName; | ||
var className = generateIdentifier(debugId); | ||
registerClassName(className); | ||
registerClassName(className, getFileScope()); | ||
var classList = []; | ||
@@ -323,3 +323,3 @@ var styleRules = []; | ||
classList: result | ||
}); | ||
}, getFileScope()); | ||
if (styleRules.length > 0) { | ||
@@ -349,3 +349,3 @@ // If there are styles attached to this composition then it is | ||
var className = generateIdentifier(debugId); | ||
registerClassName(className); | ||
registerClassName(className, getFileScope()); | ||
appendCss({ | ||
@@ -352,0 +352,0 @@ type: 'local', |
@@ -189,4 +189,4 @@ import { Properties, AtRule } from 'csstype'; | ||
appendCss: (css: CSS, fileScope: FileScope) => void; | ||
registerClassName: (className: string) => void; | ||
registerComposition: (composition: Composition) => void; | ||
registerClassName: (className: string, fileScope: FileScope) => void; | ||
registerComposition: (composition: Composition, fileScope: FileScope) => void; | ||
markCompositionUsed: (identifier: string) => void; | ||
@@ -193,0 +193,0 @@ onEndFileScope: (fileScope: FileScope) => void; |
@@ -309,3 +309,3 @@ 'use strict'; | ||
var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1); | ||
@@ -318,3 +318,3 @@ return vars ? [themeClassName, vars] : themeClassName; | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var classList = []; | ||
@@ -335,3 +335,3 @@ var styleRules = []; | ||
classList: result | ||
}); | ||
}, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
if (styleRules.length > 0) { | ||
@@ -361,3 +361,3 @@ // If there are styles attached to this composition then it is | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
adapter_dist_vanillaExtractCssAdapter.appendCss({ | ||
@@ -364,0 +364,0 @@ type: 'local', |
@@ -309,3 +309,3 @@ 'use strict'; | ||
var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(themeClassName, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1); | ||
@@ -318,3 +318,3 @@ return vars ? [themeClassName, vars] : themeClassName; | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
var classList = []; | ||
@@ -335,3 +335,3 @@ var styleRules = []; | ||
classList: result | ||
}); | ||
}, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
if (styleRules.length > 0) { | ||
@@ -361,3 +361,3 @@ // If there are styles attached to this composition then it is | ||
var className = generateIdentifier(debugId); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className); | ||
adapter_dist_vanillaExtractCssAdapter.registerClassName(className, fileScope_dist_vanillaExtractCssFileScope.getFileScope()); | ||
adapter_dist_vanillaExtractCssAdapter.appendCss({ | ||
@@ -364,0 +364,0 @@ type: 'local', |
@@ -297,3 +297,3 @@ import { injectStyles } from '../injectStyles/dist/vanilla-extract-css-injectStyles.esm.js'; | ||
var themeClassName = generateIdentifier(typeof arg2 === 'object' ? arg3 : arg2); | ||
registerClassName(themeClassName); | ||
registerClassName(themeClassName, getFileScope()); | ||
var vars = typeof arg2 === 'object' ? createGlobalTheme(themeClassName, arg1, arg2) : createGlobalTheme(themeClassName, arg1); | ||
@@ -306,3 +306,3 @@ return vars ? [themeClassName, vars] : themeClassName; | ||
var className = generateIdentifier(debugId); | ||
registerClassName(className); | ||
registerClassName(className, getFileScope()); | ||
var classList = []; | ||
@@ -323,3 +323,3 @@ var styleRules = []; | ||
classList: result | ||
}); | ||
}, getFileScope()); | ||
if (styleRules.length > 0) { | ||
@@ -349,3 +349,3 @@ // If there are styles attached to this composition then it is | ||
var className = generateIdentifier(debugId); | ||
registerClassName(className); | ||
registerClassName(className, getFileScope()); | ||
appendCss({ | ||
@@ -352,0 +352,0 @@ type: 'local', |
{ | ||
"name": "@vanilla-extract/css", | ||
"version": "0.0.0-create-compiler-api-2023264641", | ||
"version": "0.0.0-create-compiler-api-20232723636", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299364