@domql/emotion 1.0.2 → 1.3.7
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/.parcel-cache/3085beb0745a2550.txt +2 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/LICENSE +21 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/index.js +1 -3
- package/package.json +8 -7
|
Binary file
|
|
Binary file
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 rackai
|
|
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/dist/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var $klFNZ$domqldefine = require("@domql/define");
|
|
2
|
+
var $klFNZ$domqlutils = require("@domql/utils");
|
|
3
|
+
var $klFNZ$domqlmixins = require("@domql/mixins");
|
|
4
|
+
var $klFNZ$emotioncss = require("@emotion/css");
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
'use strict';
|
|
11
|
+
const $4fa0c73a46e81912$var$style = (params, element, node)=>{
|
|
12
|
+
const execPareams = $klFNZ$domqlutils.exec(params, element);
|
|
13
|
+
if (params) {
|
|
14
|
+
if ($klFNZ$domqlutils.isObjectLike(element.class)) element.class.style = execPareams;
|
|
15
|
+
else element.class = {
|
|
16
|
+
style: execPareams
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
$4fa0c73a46e81912$var$classf(element.class, element, node);
|
|
20
|
+
};
|
|
21
|
+
const $4fa0c73a46e81912$var$classf = (params, element, node)=>{
|
|
22
|
+
if ($klFNZ$domqlutils.isObjectLike(params)) {
|
|
23
|
+
const classObjHelper = {
|
|
24
|
+
};
|
|
25
|
+
for(const key in params){
|
|
26
|
+
const prop = $klFNZ$domqlutils.exec(params[key], element);
|
|
27
|
+
const CSSed = $klFNZ$emotioncss.css(prop);
|
|
28
|
+
classObjHelper[key] = CSSed;
|
|
29
|
+
}
|
|
30
|
+
$klFNZ$domqlmixins.classList(classObjHelper, element, node);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
$klFNZ$domqldefine.define({
|
|
34
|
+
style: $4fa0c73a46e81912$var$style,
|
|
35
|
+
class: $4fa0c73a46e81912$var$classf
|
|
36
|
+
}, {
|
|
37
|
+
overwrite: true
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;AAAA,CAAY;AAQZ,KAAK,CAAC,2BAAK,IAAI,MAAM,EAAE,OAAO,EAAE,IAAI,GAAK,CAAC;IACxC,KAAK,CAAC,WAAW,GAAG,sBAAI,CAAC,MAAM,EAAE,OAAO;IACxC,EAAE,EAAE,MAAM;QACR,EAAE,EAAE,8BAAY,CAAC,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW;aAC7D,OAAO,CAAC,KAAK,GAAG,CAAC;YAAC,KAAK,EAAE,WAAW;QAAC,CAAC;;IAE7C,4BAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI;AACrC,CAAC;AAED,KAAK,CAAC,4BAAM,IAAI,MAAM,EAAE,OAAO,EAAE,IAAI,GAAK,CAAC;IACzC,EAAE,EAAE,8BAAY,CAAC,MAAM,GAAG,CAAC;QACzB,KAAK,CAAC,cAAc,GAAG,CAAC;QAAA,CAAC;QACzB,GAAG,CAAE,KAAK,CAAC,GAAG,IAAI,MAAM,CAAE,CAAC;YACzB,KAAK,CAAC,IAAI,GAAG,sBAAI,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO;YACtC,KAAK,CAAC,KAAK,GAAG,qBAAG,CAAC,IAAI;YACtB,cAAc,CAAC,GAAG,IAAI,KAAK;QAC7B,CAAC;QACD,4BAAS,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI;IACzC,CAAC;AACH,CAAC;AAED,yBAAM,CAAC,CAAC;WACN,2BAAK;IACL,KAAK,EAAE,4BAAM;AACf,CAAC,EAAE,CAAC;IAAC,SAAS,EAAE,IAAI;AAAC,CAAC","sources":["index.js"],"sourcesContent":["'use strict'\n\nimport { define } from '@domql/define'\nimport { isObjectLike, exec } from '@domql/utils'\nimport { classList } from '@domql/mixins'\n\nimport { css } from '@emotion/css'\n\nconst style = (params, element, node) => {\n const execPareams = exec(params, element)\n if (params) {\n if (isObjectLike(element.class)) element.class.style = execPareams\n else element.class = { style: execPareams }\n }\n classf(element.class, element, node)\n}\n\nconst classf = (params, element, node) => {\n if (isObjectLike(params)) {\n const classObjHelper = {}\n for (const key in params) {\n const prop = exec(params[key], element)\n const CSSed = css(prop)\n classObjHelper[key] = CSSed\n }\n classList(classObjHelper, element, node)\n }\n}\n\ndefine({\n style,\n class: classf\n}, { overwrite: true })\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/emotion",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"main": "index.js",
|
|
3
|
+
"version": "1.3.7",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@
|
|
8
|
-
"@domql/
|
|
9
|
-
"@domql/
|
|
10
|
-
"@
|
|
7
|
+
"@domql/define": "latest",
|
|
8
|
+
"@domql/mixins": "latest",
|
|
9
|
+
"@domql/utils": "latest",
|
|
10
|
+
"@emotion/css": "^11.5.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"vpatch": "npm version patch && npm publish --access public"
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"gitHead": "15bc4d5f593f7f976b06f94e14fdea3d1424c213"
|
|
15
16
|
}
|