@linaria/atomic 4.2.8 → 4.2.10
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -27,7 +27,11 @@ __export(src_exports, {
|
|
|
27
27
|
module.exports = __toCommonJS(src_exports);
|
|
28
28
|
|
|
29
29
|
// src/css.ts
|
|
30
|
+
var idx = 0;
|
|
30
31
|
var css = () => {
|
|
32
|
+
if (process.env.NODE_ENV === "test") {
|
|
33
|
+
return `mocked-atomic-css-${idx++}`;
|
|
34
|
+
}
|
|
31
35
|
throw new Error(
|
|
32
36
|
'Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'
|
|
33
37
|
);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/css.ts"],"sourcesContent":["export { default as css } from './css';\nexport { styled } from '@linaria/react';\nexport { cx } from '@linaria/core';\n\nexport type { CSSProperties } from './CSSProperties';\n","import type { LinariaClassName } from '@linaria/core';\n\nimport type { CSSProperties } from './CSSProperties';\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => LinariaClassName;\n\nexport const css: CSS = () => {\n throw new Error(\n 'Using the \"css\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'\n );\n};\n\nexport default css;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/css.ts"],"sourcesContent":["export { default as css } from './css';\nexport { styled } from '@linaria/react';\nexport { cx } from '@linaria/core';\n\nexport type { CSSProperties } from './CSSProperties';\n","import type { LinariaClassName } from '@linaria/core';\n\nimport type { CSSProperties } from './CSSProperties';\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => LinariaClassName;\n\nlet idx = 0;\n\nexport const css: CSS = () => {\n if (process.env.NODE_ENV === 'test') {\n // eslint-disable-next-line no-plusplus\n return `mocked-atomic-css-${idx++}` as LinariaClassName;\n }\n\n throw new Error(\n 'Using the \"css\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'\n );\n};\n\nexport default css;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSA,IAAI,MAAM;AAEH,IAAM,MAAW,MAAM;AAC5B,MAAI,QAAQ,IAAI,aAAa,QAAQ;AAEnC,WAAO,qBAAqB;AAAA,EAC9B;AAEA,QAAM,IAAI;AAAA,IACR;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;;;ADrBf,mBAAuB;AACvB,kBAAmB;","names":[]}
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/css.ts","../src/index.ts"],"sourcesContent":["import type { LinariaClassName } from '@linaria/core';\n\nimport type { CSSProperties } from './CSSProperties';\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => LinariaClassName;\n\nexport const css: CSS = () => {\n throw new Error(\n 'Using the \"css\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'\n );\n};\n\nexport default css;\n","export { default as css } from './css';\nexport { styled } from '@linaria/react';\nexport { cx } from '@linaria/core';\n\nexport type { CSSProperties } from './CSSProperties';\n"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/css.ts","../src/index.ts"],"sourcesContent":["import type { LinariaClassName } from '@linaria/core';\n\nimport type { CSSProperties } from './CSSProperties';\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => LinariaClassName;\n\nlet idx = 0;\n\nexport const css: CSS = () => {\n if (process.env.NODE_ENV === 'test') {\n // eslint-disable-next-line no-plusplus\n return `mocked-atomic-css-${idx++}` as LinariaClassName;\n }\n\n throw new Error(\n 'Using the \"css\" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'\n );\n};\n\nexport default css;\n","export { default as css } from './css';\nexport { styled } from '@linaria/react';\nexport { cx } from '@linaria/core';\n\nexport type { CSSProperties } from './CSSProperties';\n"],"mappings":";AASA,IAAI,MAAM;AAEH,IAAM,MAAW,MAAM;AAC5B,MAAI,QAAQ,IAAI,aAAa,QAAQ;AAEnC,WAAO,qBAAqB;AAAA,EAC9B;AAEA,QAAM,IAAI;AAAA,IACR;AAAA,EACF;AACF;AAEA,IAAO,cAAQ;;;ACrBf,SAAS,cAAc;AACvB,SAAS,UAAU;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linaria/atomic",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"description": "Blazing fast zero-runtime CSS in JS library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -46,14 +46,15 @@
|
|
|
46
46
|
"postcss": "^8.3.11",
|
|
47
47
|
"stylis": "^3.5.4",
|
|
48
48
|
"ts-invariant": "^0.10.3",
|
|
49
|
-
"@linaria/core": "^4.2.
|
|
49
|
+
"@linaria/core": "^4.2.10",
|
|
50
50
|
"@linaria/logger": "^4.0.0",
|
|
51
|
-
"@linaria/react": "^4.3.
|
|
52
|
-
"@linaria/tags": "^4.3.
|
|
53
|
-
"@linaria/utils": "^4.3.
|
|
51
|
+
"@linaria/react": "^4.3.8",
|
|
52
|
+
"@linaria/tags": "^4.3.5",
|
|
53
|
+
"@linaria/utils": "^4.3.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.20.2"
|
|
56
|
+
"@babel/types": "^7.20.2",
|
|
57
|
+
"@types/node": "^17.0.39"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"react": ">=16"
|