@dlightjs/emotion
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -1,21 +0,20 @@ | ||
var h = Object.defineProperty; | ||
var b = (s, o, r) => o in s ? h(s, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[o] = r; | ||
var n = (s, o, r) => (b(s, typeof o != "symbol" ? o + "" : o, r), r); | ||
import * as f from "@dlightjs/dlight"; | ||
import { View as m } from "@dlightjs/dlight"; | ||
import { css as $ } from "@emotion/css"; | ||
var b = Object.defineProperty; | ||
var h = (s, e, o) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o; | ||
var l = (s, e, o) => (h(s, typeof e != "symbol" ? e + "" : e, o), o); | ||
import f, { View as m } from "@dlightjs/dlight"; | ||
import { css as y } from "@emotion/css"; | ||
import { css as P } from "@emotion/css"; | ||
const t = (s) => (o, ...r) => { | ||
const t = (s) => (e, ...o) => { | ||
const c = (p, d) => { | ||
const e = [...new Set(Object.getOwnPropertyNames(d).filter((a) => d[a] === "prop").map((a) => a.replace(/^_\$\$\$/, "")))]; | ||
const r = [...new Set(Object.getOwnPropertyNames(d).filter((a) => d[a] === "prop").map((a) => a.replace(/^_\$\$\$/, "")))]; | ||
p._$addProp("className", () => { | ||
const a = {}; | ||
for (const i of e) | ||
for (const i of r) | ||
a[i] = d[`_$$${i}`]; | ||
let l = ""; | ||
const u = Math.max(o.length, r.length); | ||
let n = ""; | ||
const u = Math.max(e.length, o.length); | ||
for (const i of [...Array(u).keys()]) | ||
o[i] && (l += o[i]), r[i] && (typeof r[i] == "function" ? l += r[i](a) : l += r[i]); | ||
return $`${l}`; | ||
}, d, e); | ||
e[i] && (n += e[i]), o[i] && (typeof o[i] == "function" ? n += o[i](a) : n += o[i]); | ||
return y`${n}`; | ||
}, d, r); | ||
}; | ||
@@ -25,16 +24,7 @@ return typeof s == "string" ? class extends m { | ||
super(...arguments); | ||
n(this, "_$deps", { | ||
_$content: /* @__PURE__ */ new Map() | ||
}); | ||
n(this, "_$forwardProps", !0); | ||
l(this, "_$forwardProps", !0); | ||
// @ts-ignore | ||
n(this, "_$$$_$content", "prop"); | ||
n(this, "_$$_$content"); | ||
l(this, "_$$$_$content", "prop"); | ||
l(this, "_$content"); | ||
} | ||
get _$content() { | ||
return this._$$_$content; | ||
} | ||
set _$content(e) { | ||
this._$updateProperty("_$content", e); | ||
} | ||
Afterset() { | ||
@@ -44,6 +34,6 @@ this._$el = this._$el[0]; | ||
Body() { | ||
const e = new f.HtmlNode(s); | ||
return e._$addProp("innerText", () => this._$content, this, ["_$content"]), this.forwardProps(e), ((a) => { | ||
const r = new f.HtmlNode(s); | ||
return r._$addProp("innerText", this._$content), this.forwardProps(r), ((a) => { | ||
c(a, this); | ||
})(e), [e]; | ||
})(r), [r]; | ||
} | ||
@@ -53,9 +43,9 @@ } : class extends m { | ||
super(...arguments); | ||
n(this, "_$forwardProps", !0); | ||
l(this, "_$forwardProps", !0); | ||
} | ||
Body() { | ||
const e = new s(); | ||
return this.forwardProps(e), ((a) => { | ||
const r = new s(); | ||
return this.forwardProps(r), ((a) => { | ||
c(a, this); | ||
})(e), [e]; | ||
})(r), [r]; | ||
} | ||
@@ -62,0 +52,0 @@ }; |
{ | ||
"name": "@dlightjs/emotion", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"type": "module", | ||
@@ -15,8 +15,8 @@ "files": [ | ||
"vite-plugin-dts": "^1.7.1", | ||
"vite-plugin-dlight-transpiler": "0.6.0" | ||
"vite-plugin-dlight": "0.7.0" | ||
}, | ||
"dependencies": { | ||
"@emotion/css": "^11.10.6", | ||
"@dlightjs/dlight": "0.6.0", | ||
"@dlightjs/types": "0.6.1" | ||
"@dlightjs/dlight": "0.7.0", | ||
"@dlightjs/types": "0.6.1-alpha-3" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9169
184
+ Added@dlightjs/dlight@0.7.0(transitive)
+ Added@dlightjs/types@0.6.1-alpha-3(transitive)
- Removed@dlightjs/dlight@0.6.0(transitive)
- Removed@dlightjs/types@0.6.1(transitive)
Updated@dlightjs/dlight@0.7.0