@dlightjs/emotion
Advanced tools
Comparing version 0.7.7 to 0.7.9
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 = (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 = {}; | ||
var a = (n, e, o) => e in n ? l(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o; | ||
var $ = (n, e, o) => (a(n, typeof e != "symbol" ? e + "" : e, o), o); | ||
import h, { View as f } from "@dlightjs/dlight"; | ||
import { css as y } from "@emotion/css"; | ||
import { css as N } from "@emotion/css"; | ||
const m = (n) => function(e, ...o) { | ||
const i = (c, _) => { | ||
const t = [...new Set(Object.getOwnPropertyNames(_).filter((r) => _[r] === "prop").map((r) => r.replace(/^_\$\$\$/, "")))]; | ||
c._$addProp("className", () => { | ||
const r = {}; | ||
for (const s of t) | ||
n[s] = $[`_$$${s}`]; | ||
let _ = ""; | ||
r[s] = _[`_$$${s}`]; | ||
let d = ""; | ||
const p = Math.max(e.length, o.length); | ||
for (const s of [...Array(p).keys()]) | ||
e[s] && (_ += e[s]), o[s] && (typeof o[s] == "function" ? _ += o[s](n) : _ += o[s]); | ||
return a`${_}`; | ||
}, $, t); | ||
e[s] && (d += e[s]), o[s] && (typeof o[s] == "function" ? d += o[s](r) : d += o[s]); | ||
return y`${d}`; | ||
}, _, t); | ||
}; | ||
return typeof r == "string" ? class extends d { | ||
return typeof n == "string" ? class extends f { | ||
constructor() { | ||
super(...arguments); | ||
c(this, "_$deps", { | ||
$(this, "_$deps", { | ||
_$content: /* @__PURE__ */ new Map() | ||
}); | ||
c(this, "_$forwardProps", !0); | ||
$(this, "_$derivedPairs", { | ||
_$content: [], | ||
_$forwardProps: [] | ||
}); | ||
$(this, "_$forwardProps", () => !0); | ||
// @ts-ignore | ||
c(this, "_$$$_$content", "prop"); | ||
c(this, "_$$_$content"); | ||
$(this, "_$$$_$content", "prop"); | ||
$(this, "_$$_$content", () => { | ||
}); | ||
} | ||
@@ -42,16 +47,19 @@ get _$content() { | ||
Body() { | ||
const t = new y.HtmlNode(r); | ||
return t._$addProp("innerText", () => this._$content, this, ["_$content"]), this.forwardProps(t), ((n) => { | ||
i(n, this); | ||
const t = new h.HtmlNode(n); | ||
return t._$addProp("innerText", () => this._$content, this, ["_$content"]), this.forwardProps(t), ((r) => { | ||
i(r, this); | ||
})(t), [t]; | ||
} | ||
} : class extends d { | ||
} : class extends f { | ||
constructor() { | ||
super(...arguments); | ||
c(this, "_$forwardProps", !0); | ||
$(this, "_$derivedPairs", { | ||
_$forwardProps: [] | ||
}); | ||
$(this, "_$forwardProps", () => !0); | ||
} | ||
Body() { | ||
const t = new r(); | ||
return this.forwardProps(t), ((n) => { | ||
i(n, this); | ||
const t = new n(); | ||
return this.forwardProps(t), ((r) => { | ||
i(r, this); | ||
})(t), [t]; | ||
@@ -62,4 +70,4 @@ } | ||
export { | ||
O as css, | ||
P as styled | ||
N as css, | ||
m as styled | ||
}; |
{ | ||
"name": "@dlightjs/emotion", | ||
"version": "0.7.7", | ||
"version": "0.7.9", | ||
"type": "module", | ||
@@ -15,7 +15,7 @@ "files": [ | ||
"vite-plugin-dts": "^1.7.1", | ||
"vite-plugin-dlight": "0.7.7" | ||
"vite-plugin-dlight": "0.7.10" | ||
}, | ||
"dependencies": { | ||
"@emotion/css": "^11.10.6", | ||
"@dlightjs/dlight": "0.7.7", | ||
"@dlightjs/dlight": "0.7.9", | ||
"@dlightjs/types": "0.7.2" | ||
@@ -22,0 +22,0 @@ }, |
Sorry, the diff of this file is not supported yet
5963
87
+ Added@dlightjs/dlight@0.7.9(transitive)
- Removed@dlightjs/dlight@0.7.7(transitive)
Updated@dlightjs/dlight@0.7.9