@linaria/core
Advanced tools
Comparing version 4.5.4 to 5.0.0
@@ -28,2 +28,9 @@ "use strict"; | ||
var CssProcessor = class extends import_tags.TaggedTemplateProcessor { | ||
get asSelector() { | ||
return this.className; | ||
} | ||
get value() { | ||
return this.astService.stringLiteral(this.className); | ||
} | ||
// eslint-disable-next-line class-methods-use-this | ||
addInterpolation(node, precedingCss, source) { | ||
@@ -47,15 +54,7 @@ throw new Error( | ||
displayName: this.displayName, | ||
start: (loc == null ? void 0 : loc.start) ?? null | ||
start: loc?.start ?? null | ||
}; | ||
return rules; | ||
} | ||
get asSelector() { | ||
return this.className; | ||
} | ||
get value() { | ||
return this.astService.stringLiteral(this.className); | ||
} | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = {}); | ||
//# sourceMappingURL=css.js.map |
{ | ||
"name": "@linaria/core", | ||
"version": "4.5.4", | ||
"version": "5.0.0", | ||
"description": "Blazing fast zero-runtime CSS in JS library", | ||
@@ -51,15 +51,15 @@ "keywords": [ | ||
"dependencies": { | ||
"@linaria/logger": "^4.5.0", | ||
"@linaria/tags": "^4.5.4", | ||
"@linaria/utils": "^4.5.3" | ||
"@linaria/logger": "^5.0.0", | ||
"@linaria/tags": "^5.0.0", | ||
"@linaria/utils": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/traverse": "^7.22.8", | ||
"@babel/types": "^7.22.5", | ||
"@types/babel__core": "^7.1.19", | ||
"@types/babel__traverse": "^7.17.1", | ||
"@babel/traverse": "^7.22.15", | ||
"@babel/types": "^7.22.15", | ||
"@types/babel__core": "^7.20.1", | ||
"@types/babel__traverse": "^7.20.1", | ||
"@types/node": "^17.0.39" | ||
}, | ||
"engines": { | ||
"node": "^12.16.0 || >=13.7.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -66,0 +66,0 @@ "publishConfig": { |
import type { StyledMeta } from '@linaria/utils'; | ||
import type { CSSProperties } from './CSSProperties'; | ||
import type { LinariaClassName } from './cx'; | ||
declare type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => LinariaClassName; | ||
type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => LinariaClassName; | ||
declare const css: CSS; | ||
export default css; |
@@ -1,3 +0,3 @@ | ||
export declare type CSSProperties = { | ||
export type CSSProperties = { | ||
[key: string]: string | number | CSSProperties; | ||
}; |
@@ -1,5 +0,5 @@ | ||
export declare type LinariaClassName = string & { | ||
export type LinariaClassName = string & { | ||
__linariaClassName: true; | ||
}; | ||
export declare type ClassName<T = string> = T | false | void | null | 0 | ''; | ||
export type ClassName<T = string> = T | false | void | null | 0 | ''; | ||
interface ICX { | ||
@@ -6,0 +6,0 @@ (...classNames: ClassName<LinariaClassName>[]): LinariaClassName; |
@@ -5,2 +5,4 @@ import type { SourceLocation, StringLiteral } from '@babel/types'; | ||
export default class CssProcessor extends TaggedTemplateProcessor { | ||
get asSelector(): string; | ||
get value(): StringLiteral; | ||
addInterpolation(node: unknown, precedingCss: string, source: string): string; | ||
@@ -10,4 +12,2 @@ doEvaltimeReplacement(): void; | ||
extractRules(valueCache: ValueCache, cssText: string, loc?: SourceLocation | null): Rules; | ||
get asSelector(): string; | ||
get value(): StringLiteral; | ||
} |
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
24386
+ Added@linaria/logger@5.0.0(transitive)
+ Added@linaria/tags@5.0.2(transitive)
+ Added@linaria/utils@5.0.2(transitive)
+ Addedcaniuse-lite@1.0.30001618(transitive)
+ Addedelectron-to-chromium@1.4.769(transitive)
+ Addedpicocolors@1.0.1(transitive)
+ Addedupdate-browserslist-db@1.0.16(transitive)
- Removed@babel/plugin-proposal-export-namespace-from@7.18.9(transitive)
- Removed@babel/plugin-syntax-dynamic-import@7.8.3(transitive)
- Removed@babel/plugin-syntax-export-namespace-from@7.8.3(transitive)
- Removed@linaria/logger@4.5.0(transitive)
- Removed@linaria/tags@4.5.4(transitive)
- Removed@linaria/utils@4.5.3(transitive)
- Removedcaniuse-lite@1.0.30001616(transitive)
- Removedelectron-to-chromium@1.4.761(transitive)
- Removedpicocolors@1.0.0(transitive)
- Removedupdate-browserslist-db@1.0.15(transitive)
Updated@linaria/logger@^5.0.0
Updated@linaria/tags@^5.0.0
Updated@linaria/utils@^5.0.0