@linaria/core
Advanced tools
Comparing version 3.0.0-beta.4 to 3.0.0-beta.13
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.0.0-beta.13](https://github.com/callstack/linaria/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-09-13) | ||
### Bug Fixes | ||
* **core:** return type alias instead of string from `css` and `cx` ([#835](https://github.com/callstack/linaria/issues/835)) ([7eb9d94](https://github.com/callstack/linaria/commit/7eb9d94dc2d9d79f7be0159c43fa5d71c96d7182)) | ||
# [3.0.0-beta.4](https://github.com/callstack/linaria/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-05-07) | ||
@@ -8,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
export {}; | ||
//# sourceMappingURL=CSSProperties.js.map |
const cx = function cx() { | ||
return Array.prototype.slice.call(arguments).filter(Boolean).join(' '); | ||
const result = Array.prototype.slice.call(arguments).filter(Boolean).join(' '); | ||
return result; | ||
}; | ||
@@ -4,0 +5,0 @@ |
@@ -1,2 +0,2 @@ | ||
export {}; | ||
//# sourceMappingURL=StyledMeta.js.map |
@@ -7,3 +7,4 @@ "use strict"; | ||
var cx = function cx() { | ||
return Array.prototype.slice.call(arguments).filter(Boolean).join(' '); | ||
var result = Array.prototype.slice.call(arguments).filter(Boolean).join(' '); | ||
return result; | ||
}; | ||
@@ -10,0 +11,0 @@ |
{ | ||
"name": "@linaria/core", | ||
"version": "3.0.0-beta.4", | ||
"version": "3.0.0-beta.13", | ||
"publishConfig": { | ||
@@ -40,3 +40,3 @@ "access": "public" | ||
}, | ||
"gitHead": "20e1ba5f60d06b2399bd54d723be91364b8acea3" | ||
"gitHead": "c49df269ebbbc956d43720b007a92f9f865662c5" | ||
} |
import type { CSSProperties } from './CSSProperties'; | ||
import type { StyledMeta } from './StyledMeta'; | ||
declare type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => string; | ||
export declare type LinariaClassName = string & { | ||
__linariaClassName: true; | ||
}; | ||
declare type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties | StyledMeta>) => LinariaClassName; | ||
declare const css: CSS; | ||
export default css; |
@@ -1,4 +0,8 @@ | ||
export declare type ClassName = string | false | void | null | 0; | ||
declare type CX = (...classNames: ClassName[]) => string; | ||
declare const cx: CX; | ||
import { LinariaClassName } from './css'; | ||
export declare type ClassName<T = string> = T | false | void | null | 0 | ''; | ||
interface ICX { | ||
(...classNames: ClassName<LinariaClassName>[]): LinariaClassName; | ||
(...classNames: ClassName[]): string; | ||
} | ||
declare const cx: ICX; | ||
export default cx; |
@@ -5,1 +5,2 @@ export { default as css } from './css'; | ||
export type { StyledMeta } from './StyledMeta'; | ||
export type { LinariaClassName } from './css'; |
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
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
11742
70