@linaria/atomic 3.0.0-beta.15

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/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # [3.0.0-beta.15](https://github.com/callstack/linaria/compare/v3.0.0-beta.14...v3.0.0-beta.15) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **atomic:** create an atomic package for the css API ([#867](https://github.com/callstack/linaria/issues/867)) ([4773bcf](https://github.com/callstack/linaria/commit/4773bcf4b14f08cdc4d2b612654b962cdfc97eaa))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Callstack
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ <p align="center">
2
+ <img alt="Linaria" src="https://raw.githubusercontent.com/callstack/linaria/HEAD/website/assets/linaria-logo@2x.png" width="496">
3
+ </p>
4
+
5
+ <p align="center">
6
+ Zero-runtime CSS in JS library.
7
+ </p>
8
+
9
+ ---
10
+
11
+ ### 📖 Please refer to the [GitHub](https://github.com/callstack/linaria#readme) for full documentation.
12
+
13
+ ## Features
14
+
15
+ - Write CSS in JS, but with **zero runtime**, CSS is extracted to CSS files during build
16
+ - Familiar **CSS syntax** with Sass like nesting
17
+ - Use **dynamic prop based styles** with the React bindings, uses CSS variables behind the scenes
18
+ - Easily find where the style was defined with **CSS sourcemaps**
19
+ - **Lint your CSS** in JS with [stylelint](https://github.com/stylelint/stylelint)
20
+ - Use **JavaScript for logic**, no CSS preprocessor needed
21
+ - Optionally use any **CSS preprocessor** such as Sass or PostCSS
22
+
23
+ **[Why use Linaria](../../docs/BENEFITS.md)**
24
+
25
+ ## Installation
26
+
27
+ ```sh
28
+ npm install @linaria/core @linaria/react @linaria/babel-preset @linaria/shaker
29
+ ```
30
+
31
+ or
32
+
33
+ ```sh
34
+ yarn add @linaria/core @linaria/react @linaria/babel-preset @linaria/shaker
35
+ ```
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CSSProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"CSSProperties.js"}
package/esm/atomize.js ADDED
@@ -0,0 +1,37 @@
1
+ import postcss from 'postcss';
2
+ import { slugify } from '@linaria/utils';
3
+ export default function atomize(cssText) {
4
+ const atomicRules = [];
5
+ const stylesheet = postcss.parse(cssText);
6
+ stylesheet.walkDecls(decl => {
7
+ const parent = decl.parent;
8
+
9
+ if (parent === stylesheet) {
10
+ const line = `${decl.prop}: ${decl.value};`;
11
+ const className = `atm_${slugify(line)}`;
12
+ atomicRules.push({
13
+ property: decl.prop,
14
+ className,
15
+ cssText: line
16
+ });
17
+ }
18
+ }); // Things like @media rules
19
+
20
+ stylesheet.walkAtRules(atRule => {
21
+ atRule.walkDecls(decl => {
22
+ const slug = slugify([atRule.name, atRule.params, decl.prop, decl.value].join(';'));
23
+ const className = `atm_${slug}`;
24
+ atomicRules.push({
25
+ // For @ rules we want the unique property we do merging on to contain
26
+ // the atrule params, eg. `media only screen and (max-width: 600px)`
27
+ // But not the value. That way, our hashes will match when the media rule +
28
+ // the declaration property match, and we can merge atomic media rules
29
+ property: [atRule.name, atRule.params, decl.prop].join(' '),
30
+ className,
31
+ cssText: `@${atRule.name} ${atRule.params} { .${className} { ${decl.prop}: ${decl.value}; } }`
32
+ });
33
+ });
34
+ });
35
+ return atomicRules;
36
+ }
37
+ //# sourceMappingURL=atomize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atomize.ts"],"names":["postcss","slugify","atomize","cssText","atomicRules","stylesheet","parse","walkDecls","decl","parent","line","prop","value","className","push","property","walkAtRules","atRule","slug","name","params","join"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,SAApB;AACA,SAASC,OAAT,QAAwB,gBAAxB;AAEA,eAAe,SAASC,OAAT,CAAiBC,OAAjB,EAAkC;AAC/C,QAAMC,WAIH,GAAG,EAJN;AAMA,QAAMC,UAAU,GAAGL,OAAO,CAACM,KAAR,CAAcH,OAAd,CAAnB;AAEAE,EAAAA,UAAU,CAACE,SAAX,CAAsBC,IAAD,IAAU;AAC7B,UAAMC,MAAM,GAAGD,IAAI,CAACC,MAApB;;AACA,QAAIA,MAAM,KAAKJ,UAAf,EAA2B;AACzB,YAAMK,IAAI,GAAI,GAAEF,IAAI,CAACG,IAAK,KAAIH,IAAI,CAACI,KAAM,GAAzC;AACA,YAAMC,SAAS,GAAI,OAAMZ,OAAO,CAACS,IAAD,CAAO,EAAvC;AACAN,MAAAA,WAAW,CAACU,IAAZ,CAAiB;AACfC,QAAAA,QAAQ,EAAEP,IAAI,CAACG,IADA;AAEfE,QAAAA,SAFe;AAGfV,QAAAA,OAAO,EAAEO;AAHM,OAAjB;AAKD;AACF,GAXD,EAT+C,CAqB/C;;AACAL,EAAAA,UAAU,CAACW,WAAX,CAAwBC,MAAD,IAAY;AACjCA,IAAAA,MAAM,CAACV,SAAP,CAAkBC,IAAD,IAAU;AACzB,YAAMU,IAAI,GAAGjB,OAAO,CAClB,CAACgB,MAAM,CAACE,IAAR,EAAcF,MAAM,CAACG,MAArB,EAA6BZ,IAAI,CAACG,IAAlC,EAAwCH,IAAI,CAACI,KAA7C,EAAoDS,IAApD,CAAyD,GAAzD,CADkB,CAApB;AAGA,YAAMR,SAAS,GAAI,OAAMK,IAAK,EAA9B;AACAd,MAAAA,WAAW,CAACU,IAAZ,CAAiB;AACf;AACA;AACA;AACA;AACAC,QAAAA,QAAQ,EAAE,CAACE,MAAM,CAACE,IAAR,EAAcF,MAAM,CAACG,MAArB,EAA6BZ,IAAI,CAACG,IAAlC,EAAwCU,IAAxC,CAA6C,GAA7C,CALK;AAMfR,QAAAA,SANe;AAOfV,QAAAA,OAAO,EAAG,IAAGc,MAAM,CAACE,IAAK,IAAGF,MAAM,CAACG,MAAO,OAAMP,SAAU,MAAKL,IAAI,CAACG,IAAK,KAAIH,IAAI,CAACI,KAAM;AAPzE,OAAjB;AASD,KAdD;AAeD,GAhBD;AAkBA,SAAOR,WAAP;AACD","sourcesContent":["import postcss from 'postcss';\nimport { slugify } from '@linaria/utils';\n\nexport default function atomize(cssText: string) {\n const atomicRules: {\n className: string;\n cssText: string;\n property: string;\n }[] = [];\n\n const stylesheet = postcss.parse(cssText);\n\n stylesheet.walkDecls((decl) => {\n const parent = decl.parent;\n if (parent === stylesheet) {\n const line = `${decl.prop}: ${decl.value};`;\n const className = `atm_${slugify(line)}`;\n atomicRules.push({\n property: decl.prop,\n className,\n cssText: line,\n });\n }\n });\n // Things like @media rules\n stylesheet.walkAtRules((atRule) => {\n atRule.walkDecls((decl) => {\n const slug = slugify(\n [atRule.name, atRule.params, decl.prop, decl.value].join(';')\n );\n const className = `atm_${slug}`;\n atomicRules.push({\n // For @ rules we want the unique property we do merging on to contain\n // the atrule params, eg. `media only screen and (max-width: 600px)`\n // But not the value. That way, our hashes will match when the media rule +\n // the declaration property match, and we can merge atomic media rules\n property: [atRule.name, atRule.params, decl.prop].join(' '),\n className,\n cssText: `@${atRule.name} ${atRule.params} { .${className} { ${decl.prop}: ${decl.value}; } }`,\n });\n });\n });\n\n return atomicRules;\n}\n"],"file":"atomize.js"}
package/esm/css.js ADDED
@@ -0,0 +1,5 @@
1
+ export const css = () => {
2
+ throw new Error('Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.');
3
+ };
4
+ export default css;
5
+ //# sourceMappingURL=css.js.map
package/esm/css.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/css.ts"],"names":["css","Error"],"mappings":"AAWA,OAAO,MAAMA,GAAQ,GAAG,MAAM;AAC5B,QAAM,IAAIC,KAAJ,CACJ,wGADI,CAAN;AAGD,CAJM;AAMP,eAAeD,GAAf","sourcesContent":["import type { CSSProperties } from './CSSProperties';\n\nexport interface StyleCollectionObject {\n [key: string]: string;\n}\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => StyleCollectionObject;\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"],"file":"css.js"}
package/esm/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { default as css } from './css';
2
+ export { default as atomize } from './atomize';
3
+ export { cx } from '@linaria/utils';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":["default","css","atomize","cx"],"mappings":"AAAA,SAASA,OAAO,IAAIC,GAApB,QAA+B,OAA/B;AACA,SAASD,OAAO,IAAIE,OAApB,QAAmC,WAAnC;AACA,SAASC,EAAT,QAAmB,gBAAnB","sourcesContent":["export { default as css } from './css';\nexport { default as atomize } from './atomize';\nexport { cx } from '@linaria/utils';\n\nexport type { CSSProperties } from './CSSProperties';\nexport type { StyleCollectionObject } from './css';\n"],"file":"index.js"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=CSSProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"CSSProperties.js"}
package/lib/atomize.js ADDED
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = atomize;
7
+
8
+ var _postcss = _interopRequireDefault(require("postcss"));
9
+
10
+ var _utils = require("@linaria/utils");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ function atomize(cssText) {
15
+ const atomicRules = [];
16
+
17
+ const stylesheet = _postcss.default.parse(cssText);
18
+
19
+ stylesheet.walkDecls(decl => {
20
+ const parent = decl.parent;
21
+
22
+ if (parent === stylesheet) {
23
+ const line = `${decl.prop}: ${decl.value};`;
24
+ const className = `atm_${(0, _utils.slugify)(line)}`;
25
+ atomicRules.push({
26
+ property: decl.prop,
27
+ className,
28
+ cssText: line
29
+ });
30
+ }
31
+ }); // Things like @media rules
32
+
33
+ stylesheet.walkAtRules(atRule => {
34
+ atRule.walkDecls(decl => {
35
+ const slug = (0, _utils.slugify)([atRule.name, atRule.params, decl.prop, decl.value].join(';'));
36
+ const className = `atm_${slug}`;
37
+ atomicRules.push({
38
+ // For @ rules we want the unique property we do merging on to contain
39
+ // the atrule params, eg. `media only screen and (max-width: 600px)`
40
+ // But not the value. That way, our hashes will match when the media rule +
41
+ // the declaration property match, and we can merge atomic media rules
42
+ property: [atRule.name, atRule.params, decl.prop].join(' '),
43
+ className,
44
+ cssText: `@${atRule.name} ${atRule.params} { .${className} { ${decl.prop}: ${decl.value}; } }`
45
+ });
46
+ });
47
+ });
48
+ return atomicRules;
49
+ }
50
+ //# sourceMappingURL=atomize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atomize.ts"],"names":["atomize","cssText","atomicRules","stylesheet","postcss","parse","walkDecls","decl","parent","line","prop","value","className","push","property","walkAtRules","atRule","slug","name","params","join"],"mappings":";;;;;;;AAAA;;AACA;;;;AAEe,SAASA,OAAT,CAAiBC,OAAjB,EAAkC;AAC/C,QAAMC,WAIH,GAAG,EAJN;;AAMA,QAAMC,UAAU,GAAGC,iBAAQC,KAAR,CAAcJ,OAAd,CAAnB;;AAEAE,EAAAA,UAAU,CAACG,SAAX,CAAsBC,IAAD,IAAU;AAC7B,UAAMC,MAAM,GAAGD,IAAI,CAACC,MAApB;;AACA,QAAIA,MAAM,KAAKL,UAAf,EAA2B;AACzB,YAAMM,IAAI,GAAI,GAAEF,IAAI,CAACG,IAAK,KAAIH,IAAI,CAACI,KAAM,GAAzC;AACA,YAAMC,SAAS,GAAI,OAAM,oBAAQH,IAAR,CAAc,EAAvC;AACAP,MAAAA,WAAW,CAACW,IAAZ,CAAiB;AACfC,QAAAA,QAAQ,EAAEP,IAAI,CAACG,IADA;AAEfE,QAAAA,SAFe;AAGfX,QAAAA,OAAO,EAAEQ;AAHM,OAAjB;AAKD;AACF,GAXD,EAT+C,CAqB/C;;AACAN,EAAAA,UAAU,CAACY,WAAX,CAAwBC,MAAD,IAAY;AACjCA,IAAAA,MAAM,CAACV,SAAP,CAAkBC,IAAD,IAAU;AACzB,YAAMU,IAAI,GAAG,oBACX,CAACD,MAAM,CAACE,IAAR,EAAcF,MAAM,CAACG,MAArB,EAA6BZ,IAAI,CAACG,IAAlC,EAAwCH,IAAI,CAACI,KAA7C,EAAoDS,IAApD,CAAyD,GAAzD,CADW,CAAb;AAGA,YAAMR,SAAS,GAAI,OAAMK,IAAK,EAA9B;AACAf,MAAAA,WAAW,CAACW,IAAZ,CAAiB;AACf;AACA;AACA;AACA;AACAC,QAAAA,QAAQ,EAAE,CAACE,MAAM,CAACE,IAAR,EAAcF,MAAM,CAACG,MAArB,EAA6BZ,IAAI,CAACG,IAAlC,EAAwCU,IAAxC,CAA6C,GAA7C,CALK;AAMfR,QAAAA,SANe;AAOfX,QAAAA,OAAO,EAAG,IAAGe,MAAM,CAACE,IAAK,IAAGF,MAAM,CAACG,MAAO,OAAMP,SAAU,MAAKL,IAAI,CAACG,IAAK,KAAIH,IAAI,CAACI,KAAM;AAPzE,OAAjB;AASD,KAdD;AAeD,GAhBD;AAkBA,SAAOT,WAAP;AACD","sourcesContent":["import postcss from 'postcss';\nimport { slugify } from '@linaria/utils';\n\nexport default function atomize(cssText: string) {\n const atomicRules: {\n className: string;\n cssText: string;\n property: string;\n }[] = [];\n\n const stylesheet = postcss.parse(cssText);\n\n stylesheet.walkDecls((decl) => {\n const parent = decl.parent;\n if (parent === stylesheet) {\n const line = `${decl.prop}: ${decl.value};`;\n const className = `atm_${slugify(line)}`;\n atomicRules.push({\n property: decl.prop,\n className,\n cssText: line,\n });\n }\n });\n // Things like @media rules\n stylesheet.walkAtRules((atRule) => {\n atRule.walkDecls((decl) => {\n const slug = slugify(\n [atRule.name, atRule.params, decl.prop, decl.value].join(';')\n );\n const className = `atm_${slug}`;\n atomicRules.push({\n // For @ rules we want the unique property we do merging on to contain\n // the atrule params, eg. `media only screen and (max-width: 600px)`\n // But not the value. That way, our hashes will match when the media rule +\n // the declaration property match, and we can merge atomic media rules\n property: [atRule.name, atRule.params, decl.prop].join(' '),\n className,\n cssText: `@${atRule.name} ${atRule.params} { .${className} { ${decl.prop}: ${decl.value}; } }`,\n });\n });\n });\n\n return atomicRules;\n}\n"],"file":"atomize.js"}
package/lib/css.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.css = void 0;
7
+
8
+ const css = () => {
9
+ throw new Error('Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.');
10
+ };
11
+
12
+ exports.css = css;
13
+ var _default = css;
14
+ exports.default = _default;
15
+ //# sourceMappingURL=css.js.map
package/lib/css.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/css.ts"],"names":["css","Error"],"mappings":";;;;;;;AAWO,MAAMA,GAAQ,GAAG,MAAM;AAC5B,QAAM,IAAIC,KAAJ,CACJ,wGADI,CAAN;AAGD,CAJM;;;eAMQD,G","sourcesContent":["import type { CSSProperties } from './CSSProperties';\n\nexport interface StyleCollectionObject {\n [key: string]: string;\n}\n\ntype CSS = (\n strings: TemplateStringsArray,\n ...exprs: Array<string | number | CSSProperties>\n) => StyleCollectionObject;\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"],"file":"css.js"}
package/lib/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "css", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _css.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "atomize", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _atomize.default;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "cx", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _utils.cx;
22
+ }
23
+ });
24
+
25
+ var _css = _interopRequireDefault(require("./css"));
26
+
27
+ var _atomize = _interopRequireDefault(require("./atomize"));
28
+
29
+ var _utils = require("@linaria/utils");
30
+
31
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA","sourcesContent":["export { default as css } from './css';\nexport { default as atomize } from './atomize';\nexport { cx } from '@linaria/utils';\n\nexport type { CSSProperties } from './CSSProperties';\nexport type { StyleCollectionObject } from './css';\n"],"file":"index.js"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@linaria/atomic",
3
+ "version": "3.0.0-beta.15",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Blazing fast zero-runtime CSS in JS library",
8
+ "sideEffects": false,
9
+ "main": "lib/index.js",
10
+ "module": "esm/index.js",
11
+ "types": "types/index.d.ts",
12
+ "files": [
13
+ "types/",
14
+ "lib/",
15
+ "esm/"
16
+ ],
17
+ "license": "MIT",
18
+ "repository": "git@github.com:callstack/linaria.git",
19
+ "bugs": {
20
+ "url": "https://github.com/callstack/linaria/issues"
21
+ },
22
+ "homepage": "https://github.com/callstack/linaria#readme",
23
+ "keywords": [
24
+ "react",
25
+ "linaria",
26
+ "css",
27
+ "css-in-js",
28
+ "styled-components"
29
+ ],
30
+ "scripts": {
31
+ "build:lib": "cross-env NODE_ENV=legacy babel src --out-dir lib --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start",
32
+ "build:esm": "babel src --out-dir esm --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start",
33
+ "build": "yarn build:lib && yarn build:esm",
34
+ "build:declarations": "tsc --emitDeclarationOnly --outDir types",
35
+ "prepare": "yarn build && yarn build:declarations",
36
+ "typecheck": "tsc --noEmit --composite false",
37
+ "watch": "yarn build --watch"
38
+ },
39
+ "dependencies": {
40
+ "@linaria/utils": "^3.0.0-beta.15",
41
+ "postcss": "^8.3.11"
42
+ },
43
+ "gitHead": "a8ada3794c6e13231f70711d92b516d57677a5b1"
44
+ }
@@ -0,0 +1,3 @@
1
+ export declare type CSSProperties = {
2
+ [key: string]: string | number | CSSProperties;
3
+ };
@@ -0,0 +1,5 @@
1
+ export default function atomize(cssText: string): {
2
+ className: string;
3
+ cssText: string;
4
+ property: string;
5
+ }[];
package/types/css.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { CSSProperties } from './CSSProperties';
2
+ export interface StyleCollectionObject {
3
+ [key: string]: string;
4
+ }
5
+ declare type CSS = (strings: TemplateStringsArray, ...exprs: Array<string | number | CSSProperties>) => StyleCollectionObject;
6
+ export declare const css: CSS;
7
+ export default css;
@@ -0,0 +1,5 @@
1
+ export { default as css } from './css';
2
+ export { default as atomize } from './atomize';
3
+ export { cx } from '@linaria/utils';
4
+ export type { CSSProperties } from './CSSProperties';
5
+ export type { StyleCollectionObject } from './css';