@dlightjs/emotion
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -1,29 +0,38 @@ | ||
var y = Object.defineProperty; | ||
var _ = (n, t, e) => t in n ? y(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e; | ||
var $ = (n, t, e) => (_(n, typeof t != "symbol" ? t + "" : t, e), e); | ||
import h, { View as l } from "@dlightjs/dlight"; | ||
var l = Object.defineProperty; | ||
var h = (r, e, o) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o; | ||
var c = (r, e, o) => (h(r, typeof e != "symbol" ? e + "" : e, o), o); | ||
import y, { View as d } from "@dlightjs/dlight"; | ||
import { css as a } from "@emotion/css"; | ||
import { css as O } from "@emotion/css"; | ||
const P = (n) => function(t, ...e) { | ||
const i = (d, f) => { | ||
const o = [...new Set(Object.getOwnPropertyNames(f).filter((r) => f[r] === "prop").map((r) => r.replace(/^_\$\$\$/, "")))]; | ||
d._$addProp("className", () => { | ||
const r = {}; | ||
for (const s of o) | ||
r[s] = f[`_$$${s}`]; | ||
let c = ""; | ||
const p = Math.max(t.length, e.length); | ||
const P = (r) => function(e, ...o) { | ||
const i = (f, $) => { | ||
const t = [...new Set(Object.getOwnPropertyNames($).filter((n) => $[n] === "prop").map((n) => n.replace(/^_\$\$\$/, "")))]; | ||
f._$addProp("className", () => { | ||
const n = {}; | ||
for (const s of t) | ||
n[s] = $[`_$$${s}`]; | ||
let _ = ""; | ||
const p = Math.max(e.length, o.length); | ||
for (const s of [...Array(p).keys()]) | ||
t[s] && (c += t[s]), e[s] && (typeof e[s] == "function" ? c += e[s](r) : c += e[s]); | ||
return a`${c}`; | ||
}, f, o); | ||
e[s] && (_ += e[s]), o[s] && (typeof o[s] == "function" ? _ += o[s](n) : _ += o[s]); | ||
return a`${_}`; | ||
}, $, t); | ||
}; | ||
return typeof n == "string" ? class extends l { | ||
return typeof r == "string" ? class extends d { | ||
constructor() { | ||
super(...arguments); | ||
$(this, "_$forwardProps", !0); | ||
c(this, "_$deps", { | ||
_$content: /* @__PURE__ */ new Map() | ||
}); | ||
c(this, "_$forwardProps", !0); | ||
// @ts-ignore | ||
$(this, "_$$$_$content", "prop"); | ||
$(this, "_$content"); | ||
c(this, "_$$$_$content", "prop"); | ||
c(this, "_$$_$content"); | ||
} | ||
get _$content() { | ||
return this._$$_$content; | ||
} | ||
set _$content(t) { | ||
this._$updateProperty("_$content", t); | ||
} | ||
Afterset() { | ||
@@ -33,17 +42,17 @@ this._$el = this._$el[0]; | ||
Body() { | ||
const o = new h.HtmlNode(n); | ||
return o._$addProp("innerText", this._$content), this.forwardProps(o), ((r) => { | ||
i(r, this); | ||
})(o), [o]; | ||
const t = new y.HtmlNode(r); | ||
return t._$addProp("innerText", () => this._$content, this, ["_$content"]), this.forwardProps(t), ((n) => { | ||
i(n, this); | ||
})(t), [t]; | ||
} | ||
} : class extends l { | ||
} : class extends d { | ||
constructor() { | ||
super(...arguments); | ||
$(this, "_$forwardProps", !0); | ||
c(this, "_$forwardProps", !0); | ||
} | ||
Body() { | ||
const o = new n(); | ||
return this.forwardProps(o), ((r) => { | ||
i(r, this); | ||
})(o), [o]; | ||
const t = new r(); | ||
return this.forwardProps(t), ((n) => { | ||
i(n, this); | ||
})(t), [t]; | ||
} | ||
@@ -50,0 +59,0 @@ }; |
{ | ||
"name": "@dlightjs/emotion", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"type": "module", | ||
@@ -15,7 +15,7 @@ "files": [ | ||
"vite-plugin-dts": "^1.7.1", | ||
"vite-plugin-dlight": "0.7.5" | ||
"vite-plugin-dlight": "0.7.7" | ||
}, | ||
"dependencies": { | ||
"@emotion/css": "^11.10.6", | ||
"@dlightjs/dlight": "0.7.4", | ||
"@dlightjs/dlight": "0.7.5", | ||
"@dlightjs/types": "0.7.2" | ||
@@ -22,0 +22,0 @@ }, |
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
5650
79
0
+ Added@dlightjs/dlight@0.7.5(transitive)
- Removed@dlightjs/dlight@0.7.4(transitive)
Updated@dlightjs/dlight@0.7.5