boss-css 0.0.23 → 0.0.24
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/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
- package/dist/_virtual/_rolldown/runtime.mjs +14 -0
- package/dist/ai/server.cjs +15 -16
- package/dist/ai/server.mjs +4 -6
- package/dist/ai/skills.cjs +2 -3
- package/dist/ai/skills.mjs +1 -2
- package/dist/api/browser.cjs +11 -12
- package/dist/api/browser.mjs +1 -3
- package/dist/api/config.cjs +6 -7
- package/dist/api/config.mjs +1 -3
- package/dist/api/css.cjs +1 -3
- package/dist/api/css.mjs +1 -2
- package/dist/api/dictionary.cjs +1 -3
- package/dist/api/dictionary.mjs +1 -2
- package/dist/api/file/dts.cjs +2 -4
- package/dist/api/file/dts.mjs +1 -3
- package/dist/api/file/file.cjs +4 -6
- package/dist/api/file/file.mjs +1 -3
- package/dist/api/file/js.cjs +6 -8
- package/dist/api/file/js.mjs +2 -4
- package/dist/api/file/text.cjs +2 -4
- package/dist/api/file/text.mjs +1 -3
- package/dist/api/names.cjs +1 -3
- package/dist/api/names.mjs +1 -3
- package/dist/api/noopCss.cjs +2 -3
- package/dist/api/noopCss.mjs +1 -2
- package/dist/api/propTree.cjs +1 -3
- package/dist/api/propTree.mjs +1 -2
- package/dist/api/server.cjs +15 -16
- package/dist/api/server.mjs +1 -3
- package/dist/cli/build.cjs +1 -1
- package/dist/cli/build.mjs +2 -3
- package/dist/cli/index.cjs +5 -7
- package/dist/cli/index.mjs +1 -3
- package/dist/cli/tasks/build.cjs +4 -7
- package/dist/cli/tasks/build.mjs +1 -4
- package/dist/cli/tasks/choose.cjs +3 -6
- package/dist/cli/tasks/choose.mjs +1 -4
- package/dist/cli/tasks/compile.cjs +3 -6
- package/dist/cli/tasks/compile.mjs +1 -4
- package/dist/cli/tasks/dev.cjs +8 -11
- package/dist/cli/tasks/dev.mjs +2 -5
- package/dist/cli/tasks/init.cjs +39 -42
- package/dist/cli/tasks/init.mjs +12 -15
- package/dist/cli/tasks/watch.cjs +3 -6
- package/dist/cli/tasks/watch.mjs +1 -4
- package/dist/cli/templates/init.cjs +1 -3
- package/dist/cli/templates/init.mjs +1 -2
- package/dist/cli/types.cjs +2 -4
- package/dist/cli/types.mjs +2 -4
- package/dist/cli/utils.cjs +2 -4
- package/dist/cli/utils.mjs +1 -3
- package/dist/compile/classname-strategy.cjs +3 -5
- package/dist/compile/classname-strategy.mjs +1 -3
- package/dist/compile/classname.cjs +6 -8
- package/dist/compile/classname.mjs +5 -7
- package/dist/compile/index.cjs +18 -20
- package/dist/compile/index.mjs +6 -8
- package/dist/compile/jsx.cjs +8 -10
- package/dist/compile/jsx.mjs +6 -8
- package/dist/compile/prepared.cjs +3 -5
- package/dist/compile/prepared.mjs +1 -3
- package/dist/compile/runtime.cjs +4 -5
- package/dist/compile/runtime.mjs +1 -3
- package/dist/compile/transform.cjs +7 -9
- package/dist/compile/transform.mjs +3 -5
- package/dist/cx/index.cjs +6 -7
- package/dist/cx/index.mjs +3 -5
- package/dist/detect-fw/index.cjs +6 -7
- package/dist/detect-fw/index.mjs +1 -3
- package/dist/dev/client.cjs +2 -3
- package/dist/dev/client.mjs +1 -2
- package/dist/dev/plugin/browser.cjs +2 -3
- package/dist/dev/plugin/browser.mjs +1 -2
- package/dist/dev/plugin/server.cjs +13 -14
- package/dist/dev/plugin/server.mjs +3 -5
- package/dist/dev/port.cjs +3 -5
- package/dist/dev/port.mjs +1 -3
- package/dist/dev/runtime.cjs +3 -5
- package/dist/dev/runtime.mjs +1 -3
- package/dist/dev/server.cjs +12 -13
- package/dist/dev/server.mjs +15 -17
- package/dist/dev/shared.cjs +1 -3
- package/dist/dev/shared.mjs +1 -2
- package/dist/eslint-plugin/index.cjs +10 -13
- package/dist/eslint-plugin/index.mjs +1 -4
- package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
- package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
- package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
- package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
- package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
- package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
- package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
- package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
- package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
- package/dist/eslint-plugin/rules/props-only.cjs +5 -7
- package/dist/eslint-plugin/rules/props-only.mjs +1 -3
- package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
- package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
- package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
- package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
- package/dist/eslint-plugin/utils/api.cjs +3 -5
- package/dist/eslint-plugin/utils/api.mjs +1 -3
- package/dist/eslint-plugin/utils/ast.cjs +1 -3
- package/dist/eslint-plugin/utils/ast.mjs +1 -2
- package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
- package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
- package/dist/eslint-plugin/utils/context.cjs +1 -3
- package/dist/eslint-plugin/utils/context.mjs +1 -2
- package/dist/eslint-plugin/utils/defaults.cjs +1 -3
- package/dist/eslint-plugin/utils/defaults.mjs +1 -2
- package/dist/eslint-plugin/utils/format.cjs +1 -3
- package/dist/eslint-plugin/utils/format.mjs +1 -2
- package/dist/eslint-plugin/utils/order.cjs +3 -5
- package/dist/eslint-plugin/utils/order.mjs +1 -3
- package/dist/eslint-plugin/utils/property-order.cjs +1 -3
- package/dist/eslint-plugin/utils/property-order.mjs +1 -2
- package/dist/eslint-plugin/utils/static.cjs +1 -3
- package/dist/eslint-plugin/utils/static.mjs +1 -2
- package/dist/fontsource/directory.cjs +1 -3
- package/dist/fontsource/directory.mjs +1 -2
- package/dist/fontsource/server.cjs +12 -13
- package/dist/fontsource/server.mjs +2 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +1 -2
- package/dist/log/browser.cjs +2 -4
- package/dist/log/browser.mjs +1 -3
- package/dist/log/server.cjs +6 -8
- package/dist/log/server.mjs +1 -3
- package/dist/merge/index.cjs +8 -9
- package/dist/merge/index.mjs +5 -7
- package/dist/native/browser.cjs +3 -4
- package/dist/native/browser.mjs +1 -3
- package/dist/native/server.cjs +7 -8
- package/dist/native/server.mjs +1 -3
- package/dist/native/styleTypes.cjs +5 -7
- package/dist/native/styleTypes.mjs +1 -3
- package/dist/parser/classname/server.cjs +17 -19
- package/dist/parser/classname/server.mjs +11 -13
- package/dist/parser/jsx/browser.cjs +7 -8
- package/dist/parser/jsx/browser.mjs +1 -3
- package/dist/parser/jsx/extractCode.cjs +2 -4
- package/dist/parser/jsx/extractCode.mjs +2 -3
- package/dist/parser/jsx/extractPrepared.cjs +3 -5
- package/dist/parser/jsx/extractPrepared.mjs +1 -3
- package/dist/parser/jsx/extractProps.cjs +3 -5
- package/dist/parser/jsx/extractProps.mjs +1 -3
- package/dist/parser/jsx/isDOMProp.cjs +3 -5
- package/dist/parser/jsx/isDOMProp.mjs +1 -3
- package/dist/parser/jsx/native.cjs +6 -7
- package/dist/parser/jsx/native.d.cts +2 -2
- package/dist/parser/jsx/native.d.mts +2 -2
- package/dist/parser/jsx/native.mjs +1 -3
- package/dist/parser/jsx/runtime.cjs +3 -3
- package/dist/parser/jsx/runtime.mjs +1 -2
- package/dist/parser/jsx/server.cjs +16 -17
- package/dist/parser/jsx/server.mjs +3 -5
- package/dist/postcss/index.cjs +2 -5
- package/dist/postcss/index.mjs +1 -4
- package/dist/prop/at/runtime-only.cjs +8 -9
- package/dist/prop/at/runtime-only.mjs +6 -8
- package/dist/prop/at/server.cjs +27 -28
- package/dist/prop/at/server.mjs +17 -19
- package/dist/prop/at/shared.cjs +1 -3
- package/dist/prop/at/shared.mjs +1 -2
- package/dist/prop/bosswind/browser.cjs +4 -5
- package/dist/prop/bosswind/browser.mjs +1 -3
- package/dist/prop/bosswind/runtime-only.cjs +4 -5
- package/dist/prop/bosswind/runtime-only.mjs +1 -3
- package/dist/prop/bosswind/selectors.cjs +1 -3
- package/dist/prop/bosswind/selectors.mjs +1 -2
- package/dist/prop/bosswind/server.cjs +12 -12
- package/dist/prop/bosswind/server.mjs +6 -7
- package/dist/prop/bosswind/shared.cjs +59 -9
- package/dist/prop/bosswind/shared.mjs +57 -8
- package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
- package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
- package/dist/prop/child/runtime-only.cjs +2 -3
- package/dist/prop/child/runtime-only.mjs +1 -2
- package/dist/prop/child/server.cjs +10 -11
- package/dist/prop/child/server.mjs +2 -4
- package/dist/prop/css/getDtsTemplate.cjs +7 -6
- package/dist/prop/css/getDtsTemplate.mjs +5 -4
- package/dist/prop/css/runtime-only.cjs +4 -5
- package/dist/prop/css/runtime-only.mjs +1 -3
- package/dist/prop/css/server.cjs +12 -13
- package/dist/prop/css/server.mjs +4 -6
- package/dist/prop/pseudo/runtime-only.cjs +3 -5
- package/dist/prop/pseudo/runtime-only.mjs +1 -3
- package/dist/prop/pseudo/server.cjs +19 -20
- package/dist/prop/pseudo/server.mjs +11 -13
- package/dist/prop/pseudo/shared.cjs +1 -3
- package/dist/prop/pseudo/shared.mjs +1 -2
- package/dist/reset/server.cjs +10 -11
- package/dist/reset/server.mjs +2 -4
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.mjs +1 -3
- package/dist/runtime/preact.cjs +3 -3
- package/dist/runtime/preact.mjs +1 -2
- package/dist/runtime/qwik.cjs +3 -4
- package/dist/runtime/qwik.mjs +1 -3
- package/dist/runtime/react.cjs +3 -3
- package/dist/runtime/react.mjs +1 -2
- package/dist/runtime/solid.cjs +3 -4
- package/dist/runtime/solid.mjs +1 -3
- package/dist/runtime/stencil.cjs +4 -5
- package/dist/runtime/stencil.mjs +1 -3
- package/dist/runtime/style.cjs +2 -3
- package/dist/runtime/style.mjs +1 -2
- package/dist/shared/boundaries.cjs +4 -6
- package/dist/shared/boundaries.mjs +1 -3
- package/dist/shared/customCss.cjs +1 -3
- package/dist/shared/customCss.mjs +1 -2
- package/dist/shared/debug.cjs +2 -4
- package/dist/shared/debug.mjs +2 -3
- package/dist/shared/file.cjs +3 -5
- package/dist/shared/file.mjs +1 -3
- package/dist/shared/framework.cjs +1 -3
- package/dist/shared/framework.mjs +1 -2
- package/dist/shared/json.cjs +1 -3
- package/dist/shared/json.mjs +1 -2
- package/dist/shared/types.cjs +1 -3
- package/dist/shared/types.mjs +1 -2
- package/dist/strategy/classic/runtime-only.cjs +15 -16
- package/dist/strategy/classic/runtime-only.mjs +3 -5
- package/dist/strategy/classname-first/browser.cjs +7 -8
- package/dist/strategy/classname-first/browser.mjs +1 -3
- package/dist/strategy/classname-first/runtime-only.cjs +13 -14
- package/dist/strategy/classname-first/runtime-only.mjs +1 -3
- package/dist/strategy/classname-first/server.cjs +9 -11
- package/dist/strategy/classname-first/server.mjs +3 -5
- package/dist/strategy/classname-only/server.cjs +8 -10
- package/dist/strategy/classname-only/server.mjs +2 -4
- package/dist/strategy/inline-first/browser.cjs +6 -7
- package/dist/strategy/inline-first/browser.mjs +1 -3
- package/dist/strategy/inline-first/runtime-only.cjs +12 -13
- package/dist/strategy/inline-first/runtime-only.mjs +1 -3
- package/dist/strategy/inline-first/server.cjs +9 -11
- package/dist/strategy/inline-first/server.mjs +3 -5
- package/dist/strategy/runtime/runtime-only.cjs +6 -8
- package/dist/strategy/runtime/runtime-only.mjs +1 -4
- package/dist/strategy/runtime/server.cjs +11 -12
- package/dist/strategy/runtime/server.mjs +2 -4
- package/dist/strategy/runtime-only/css.cjs +5 -6
- package/dist/strategy/runtime-only/css.mjs +4 -5
- package/dist/tasks/build.cjs +8 -10
- package/dist/tasks/build.mjs +1 -3
- package/dist/tasks/compile.cjs +2 -4
- package/dist/tasks/compile.mjs +1 -3
- package/dist/tasks/postcss.cjs +11 -13
- package/dist/tasks/postcss.mjs +1 -3
- package/dist/tasks/session.cjs +4 -6
- package/dist/tasks/session.mjs +1 -3
- package/dist/tasks/watch.cjs +7 -9
- package/dist/tasks/watch.mjs +1 -3
- package/dist/transform/cache.cjs +1 -3
- package/dist/transform/cache.mjs +1 -2
- package/dist/transform/processFile.cjs +4 -6
- package/dist/transform/processFile.mjs +1 -3
- package/dist/use/token/browser.cjs +4 -5
- package/dist/use/token/browser.mjs +1 -3
- package/dist/use/token/normalize.cjs +1 -3
- package/dist/use/token/normalize.mjs +1 -2
- package/dist/use/token/propMap.cjs +1 -3
- package/dist/use/token/propMap.mjs +1 -2
- package/dist/use/token/runtime-only.cjs +5 -6
- package/dist/use/token/runtime-only.mjs +1 -3
- package/dist/use/token/server.cjs +13 -14
- package/dist/use/token/server.mjs +4 -6
- package/dist/use/token/vars.cjs +2 -4
- package/dist/use/token/vars.mjs +1 -3
- package/package.json +23 -23
- package/dist/_virtual/rolldown_runtime.mjs +0 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_prop_pseudo_server = require("../pseudo/server.cjs");
|
|
4
4
|
//#region src/prop/child/server.ts
|
|
5
|
-
var server_exports = /* @__PURE__ */
|
|
5
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
6
|
dependencies: () => dependencies,
|
|
7
7
|
name: () => name,
|
|
8
8
|
onBoot: () => onBoot,
|
|
@@ -68,15 +68,14 @@ const onProp = async (api, { prop, contexts, preferVariables, file }) => {
|
|
|
68
68
|
contexts.pop();
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
|
|
72
71
|
//#endregion
|
|
73
72
|
exports.dependencies = dependencies;
|
|
74
73
|
exports.name = name;
|
|
75
74
|
exports.onBoot = onBoot;
|
|
76
75
|
exports.onProp = onProp;
|
|
77
|
-
Object.defineProperty(exports,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
76
|
+
Object.defineProperty(exports, "server_exports", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function() {
|
|
79
|
+
return server_exports;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { dependencies as dependencies$1 } from "../pseudo/server.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/child/server.ts
|
|
5
4
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
6
5
|
dependencies: () => dependencies,
|
|
@@ -68,6 +67,5 @@ const onProp = async (api, { prop, contexts, preferVariables, file }) => {
|
|
|
68
67
|
contexts.pop();
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
|
-
|
|
72
70
|
//#endregion
|
|
73
|
-
export { dependencies, name, onBoot, onProp, server_exports };
|
|
71
|
+
export { dependencies, name, onBoot, onProp, server_exports };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let node_fs_promises = require("node:fs/promises");
|
|
3
|
-
node_fs_promises =
|
|
3
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
4
4
|
let node_module = require("node:module");
|
|
5
|
-
|
|
6
5
|
//#region src/prop/css/getDtsTemplate.ts
|
|
7
6
|
const baseInterfaces = [
|
|
8
7
|
"StandardLonghandProperties",
|
|
@@ -19,6 +18,8 @@ const baseInterfaces = [
|
|
|
19
18
|
"SvgPropertiesHyphen"
|
|
20
19
|
];
|
|
21
20
|
const lcfirst = (str) => str.charAt(0).toLowerCase() + str.slice(1);
|
|
21
|
+
const isIdentifier = (str) => /^[$A-Z_a-z][$\w]*$/.test(str);
|
|
22
|
+
const formatDeclarationName = (str) => isIdentifier(str) ? str : JSON.stringify(str);
|
|
22
23
|
let cachedTemplate = null;
|
|
23
24
|
async function getDtsTemplate() {
|
|
24
25
|
if (cachedTemplate) return cachedTemplate;
|
|
@@ -44,13 +45,14 @@ async function getDtsTemplate() {
|
|
|
44
45
|
if (!match) continue;
|
|
45
46
|
const [, _name, values] = match;
|
|
46
47
|
const name = lcfirst(_name);
|
|
48
|
+
const declarationName = formatDeclarationName(name);
|
|
47
49
|
csstypeObject[name] = {
|
|
48
50
|
description: csstypeObject[name]?.description || comment.join("\n"),
|
|
49
51
|
types: csstypeObject[name]?.types || values.trim().split("|").map((a) => a.trim()).filter((a) => a),
|
|
50
52
|
iface
|
|
51
53
|
};
|
|
52
54
|
csstypeTemplate.push([`css:${name}:description`, ""]);
|
|
53
|
-
csstypeTemplate.push([`css:${name}:declaration`,
|
|
55
|
+
csstypeTemplate.push([`css:${name}:declaration`, ` ${declarationName}?: $$PropValues | ${values.trim()}`]);
|
|
54
56
|
comment = [];
|
|
55
57
|
} else if (csstypeTemplate.at(-1)?.[0] === null) {
|
|
56
58
|
const last = csstypeTemplate.at(-1);
|
|
@@ -60,6 +62,5 @@ async function getDtsTemplate() {
|
|
|
60
62
|
})();
|
|
61
63
|
return cachedTemplate;
|
|
62
64
|
}
|
|
63
|
-
|
|
64
65
|
//#endregion
|
|
65
|
-
exports.default = getDtsTemplate;
|
|
66
|
+
exports.default = getDtsTemplate;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/css/getDtsTemplate.ts
|
|
5
4
|
const baseInterfaces = [
|
|
6
5
|
"StandardLonghandProperties",
|
|
@@ -17,6 +16,8 @@ const baseInterfaces = [
|
|
|
17
16
|
"SvgPropertiesHyphen"
|
|
18
17
|
];
|
|
19
18
|
const lcfirst = (str) => str.charAt(0).toLowerCase() + str.slice(1);
|
|
19
|
+
const isIdentifier = (str) => /^[$A-Z_a-z][$\w]*$/.test(str);
|
|
20
|
+
const formatDeclarationName = (str) => isIdentifier(str) ? str : JSON.stringify(str);
|
|
20
21
|
let cachedTemplate = null;
|
|
21
22
|
async function getDtsTemplate() {
|
|
22
23
|
if (cachedTemplate) return cachedTemplate;
|
|
@@ -42,13 +43,14 @@ async function getDtsTemplate() {
|
|
|
42
43
|
if (!match) continue;
|
|
43
44
|
const [, _name, values] = match;
|
|
44
45
|
const name = lcfirst(_name);
|
|
46
|
+
const declarationName = formatDeclarationName(name);
|
|
45
47
|
csstypeObject[name] = {
|
|
46
48
|
description: csstypeObject[name]?.description || comment.join("\n"),
|
|
47
49
|
types: csstypeObject[name]?.types || values.trim().split("|").map((a) => a.trim()).filter((a) => a),
|
|
48
50
|
iface
|
|
49
51
|
};
|
|
50
52
|
csstypeTemplate.push([`css:${name}:description`, ""]);
|
|
51
|
-
csstypeTemplate.push([`css:${name}:declaration`,
|
|
53
|
+
csstypeTemplate.push([`css:${name}:declaration`, ` ${declarationName}?: $$PropValues | ${values.trim()}`]);
|
|
52
54
|
comment = [];
|
|
53
55
|
} else if (csstypeTemplate.at(-1)?.[0] === null) {
|
|
54
56
|
const last = csstypeTemplate.at(-1);
|
|
@@ -58,6 +60,5 @@ async function getDtsTemplate() {
|
|
|
58
60
|
})();
|
|
59
61
|
return cachedTemplate;
|
|
60
62
|
}
|
|
61
|
-
|
|
62
63
|
//#endregion
|
|
63
|
-
export { getDtsTemplate as default };
|
|
64
|
+
export { getDtsTemplate as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_names = require("../../api/names.cjs");
|
|
3
|
+
const require_shared = require("../pseudo/shared.cjs");
|
|
4
4
|
//#region src/prop/css/runtime-only.ts
|
|
5
5
|
const resolvePropertyName = (prop) => prop.includes("-") ? prop : require_names.camelCaseToDash(prop);
|
|
6
6
|
const buildRuntimeSelector = (className, contexts) => {
|
|
@@ -8,7 +8,6 @@ const buildRuntimeSelector = (className, contexts) => {
|
|
|
8
8
|
const pseudoChain = contexts.filter((context) => require_shared.pseudoDependencies.has(context));
|
|
9
9
|
return require_names.applyChildSelectors(pseudoChain.length ? `${baseSelector}:${pseudoChain.join(":")}` : baseSelector, contexts);
|
|
10
10
|
};
|
|
11
|
-
|
|
12
11
|
//#endregion
|
|
13
12
|
exports.buildRuntimeSelector = buildRuntimeSelector;
|
|
14
|
-
exports.resolvePropertyName = resolvePropertyName;
|
|
13
|
+
exports.resolvePropertyName = resolvePropertyName;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { applyChildSelectors, camelCaseToDash } from "../../api/names.mjs";
|
|
2
2
|
import { pseudoDependencies } from "../pseudo/shared.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/css/runtime-only.ts
|
|
5
4
|
const resolvePropertyName = (prop) => prop.includes("-") ? prop : camelCaseToDash(prop);
|
|
6
5
|
const buildRuntimeSelector = (className, contexts) => {
|
|
@@ -8,6 +7,5 @@ const buildRuntimeSelector = (className, contexts) => {
|
|
|
8
7
|
const pseudoChain = contexts.filter((context) => pseudoDependencies.has(context));
|
|
9
8
|
return applyChildSelectors(pseudoChain.length ? `${baseSelector}:${pseudoChain.join(":")}` : baseSelector, contexts);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { buildRuntimeSelector, resolvePropertyName };
|
|
11
|
+
export { buildRuntimeSelector, resolvePropertyName };
|
package/dist/prop/css/server.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_getDtsTemplate = require("./getDtsTemplate.cjs");
|
|
3
4
|
let _webref_css = require("@webref/css");
|
|
4
|
-
|
|
5
5
|
//#region src/prop/css/server.ts
|
|
6
|
-
var server_exports = /* @__PURE__ */
|
|
6
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
7
|
dependencies: () => dependencies,
|
|
8
|
-
name: () =>
|
|
8
|
+
name: () => "css",
|
|
9
9
|
onBoot: () => onBoot,
|
|
10
10
|
onProp: () => onProp
|
|
11
11
|
});
|
|
@@ -13,7 +13,7 @@ const name = "css";
|
|
|
13
13
|
const dependencies = new Set(["css"]);
|
|
14
14
|
const onBoot = async (api) => {
|
|
15
15
|
const [typeObject, typeTemplate] = await require_getDtsTemplate.default();
|
|
16
|
-
api.file.js.dts.replace("body", `$$:FinalProps`, (v) => `${v} &
|
|
16
|
+
api.file.js.dts.replace("body", `$$:FinalProps`, (v) => `${v} & Properties & $$CSSMissingProps`);
|
|
17
17
|
typeTemplate.forEach((entry) => {
|
|
18
18
|
api.file.js.dts.set("body", ...entry);
|
|
19
19
|
});
|
|
@@ -86,15 +86,14 @@ const onProp = async (api, { name, prop, contexts, preferVariables }) => {
|
|
|
86
86
|
api.css.rule(propertyName, value === null ? `var(${api.contextToCSSVariable(name, value, contexts, api.selectorPrefix)})` : value, isImportant ? { important: true } : void 0);
|
|
87
87
|
if (!contexts.length) api.css.write();
|
|
88
88
|
};
|
|
89
|
-
|
|
90
89
|
//#endregion
|
|
91
90
|
exports.dependencies = dependencies;
|
|
92
91
|
exports.name = name;
|
|
93
92
|
exports.onBoot = onBoot;
|
|
94
93
|
exports.onProp = onProp;
|
|
95
|
-
Object.defineProperty(exports,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
94
|
+
Object.defineProperty(exports, "server_exports", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function() {
|
|
97
|
+
return server_exports;
|
|
98
|
+
}
|
|
99
|
+
});
|
package/dist/prop/css/server.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import getDtsTemplate from "./getDtsTemplate.mjs";
|
|
3
3
|
import { listAll } from "@webref/css";
|
|
4
|
-
|
|
5
4
|
//#region src/prop/css/server.ts
|
|
6
5
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
7
6
|
dependencies: () => dependencies,
|
|
8
|
-
name: () =>
|
|
7
|
+
name: () => "css",
|
|
9
8
|
onBoot: () => onBoot,
|
|
10
9
|
onProp: () => onProp
|
|
11
10
|
});
|
|
@@ -13,7 +12,7 @@ const name = "css";
|
|
|
13
12
|
const dependencies = new Set(["css"]);
|
|
14
13
|
const onBoot = async (api) => {
|
|
15
14
|
const [typeObject, typeTemplate] = await getDtsTemplate();
|
|
16
|
-
api.file.js.dts.replace("body", `$$:FinalProps`, (v) => `${v} &
|
|
15
|
+
api.file.js.dts.replace("body", `$$:FinalProps`, (v) => `${v} & Properties & $$CSSMissingProps`);
|
|
17
16
|
typeTemplate.forEach((entry) => {
|
|
18
17
|
api.file.js.dts.set("body", ...entry);
|
|
19
18
|
});
|
|
@@ -86,6 +85,5 @@ const onProp = async (api, { name, prop, contexts, preferVariables }) => {
|
|
|
86
85
|
api.css.rule(propertyName, value === null ? `var(${api.contextToCSSVariable(name, value, contexts, api.selectorPrefix)})` : value, isImportant ? { important: true } : void 0);
|
|
87
86
|
if (!contexts.length) api.css.write();
|
|
88
87
|
};
|
|
89
|
-
|
|
90
88
|
//#endregion
|
|
91
|
-
export { dependencies, name, onBoot, onProp, server_exports };
|
|
89
|
+
export { dependencies, name, onBoot, onProp, server_exports };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/prop/pseudo/runtime-only.ts
|
|
4
|
-
const dependencies =
|
|
3
|
+
const dependencies = require("./shared.cjs").pseudoDependencies;
|
|
5
4
|
const name = "pseudo";
|
|
6
5
|
const onInit = (api) => {
|
|
7
6
|
for (const pseudo of dependencies) {
|
|
@@ -16,8 +15,7 @@ const onInit = (api) => {
|
|
|
16
15
|
api.dictionary.set(pseudo, prop);
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
exports.dependencies = dependencies;
|
|
22
20
|
exports.name = name;
|
|
23
|
-
exports.onInit = onInit;
|
|
21
|
+
exports.onInit = onInit;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { pseudoDependencies } from "./shared.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/prop/pseudo/runtime-only.ts
|
|
4
3
|
const dependencies = pseudoDependencies;
|
|
5
4
|
const name = "pseudo";
|
|
@@ -16,6 +15,5 @@ const onInit = (api) => {
|
|
|
16
15
|
api.dictionary.set(pseudo, prop);
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { dependencies, name, onInit };
|
|
19
|
+
export { dependencies, name, onInit };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_shared = require("./shared.cjs");
|
|
4
4
|
//#region src/prop/pseudo/server.ts
|
|
5
|
-
var server_exports = /* @__PURE__ */
|
|
5
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
6
|
dependencies: () => dependencies,
|
|
7
7
|
name: () => name,
|
|
8
8
|
onBoot: () => onBoot,
|
|
@@ -51,17 +51,17 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
51
51
|
contexts.pop();
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
for (const [name, prop
|
|
54
|
+
for (const [name, prop] of Object.entries(_value)) {
|
|
55
55
|
const resolved = api.dictionary.resolve(name);
|
|
56
56
|
const descriptor = resolved.descriptor;
|
|
57
57
|
if (!descriptor) continue;
|
|
58
58
|
if (resolved.suffix) {
|
|
59
|
-
prop
|
|
60
|
-
prop
|
|
59
|
+
prop.named = resolved.suffix;
|
|
60
|
+
prop.rawName = resolved.raw;
|
|
61
61
|
}
|
|
62
|
-
const classToken = prop
|
|
63
|
-
const selectorName = prop
|
|
64
|
-
const selectorValue = preferVariables ? null : prop
|
|
62
|
+
const classToken = prop.classToken;
|
|
63
|
+
const selectorName = prop.selectorName ?? resolved.name;
|
|
64
|
+
const selectorValue = preferVariables ? null : prop.selectorValue !== void 0 ? prop.selectorValue : prop.value;
|
|
65
65
|
const className = classToken ? null : api.contextToClassName(selectorName, selectorValue, contexts, true, api.selectorPrefix);
|
|
66
66
|
const baseSelector = classToken ? api.classTokenToSelector(classToken) : `.${className}`;
|
|
67
67
|
const baseWithPseudos = pseudoChain.length ? `${baseSelector}:${pseudoChain.join(":")}` : baseSelector;
|
|
@@ -70,11 +70,11 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
70
70
|
selector,
|
|
71
71
|
query
|
|
72
72
|
});
|
|
73
|
-
log.log("trigger:onProp", name, prop
|
|
74
|
-
if (query && !prop
|
|
73
|
+
log.log("trigger:onProp", name, prop.value, contexts);
|
|
74
|
+
if (query && !prop.query) prop.query = query;
|
|
75
75
|
await api.trigger("onProp", {
|
|
76
76
|
name: resolved.name,
|
|
77
|
-
prop
|
|
77
|
+
prop,
|
|
78
78
|
contexts,
|
|
79
79
|
preferVariables,
|
|
80
80
|
file
|
|
@@ -87,15 +87,14 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
87
87
|
};
|
|
88
88
|
const dependencies = require_shared.pseudoDependencies;
|
|
89
89
|
const name = "pseudo";
|
|
90
|
-
|
|
91
90
|
//#endregion
|
|
92
91
|
exports.dependencies = dependencies;
|
|
93
92
|
exports.name = name;
|
|
94
93
|
exports.onBoot = onBoot;
|
|
95
94
|
exports.onProp = onProp;
|
|
96
|
-
Object.defineProperty(exports,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
});
|
|
95
|
+
Object.defineProperty(exports, "server_exports", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function() {
|
|
98
|
+
return server_exports;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { pseudoDependencies, pseudoList } from "./shared.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/prop/pseudo/server.ts
|
|
5
4
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
6
5
|
dependencies: () => dependencies,
|
|
@@ -51,17 +50,17 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
51
50
|
contexts.pop();
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
54
|
-
for (const [name, prop
|
|
53
|
+
for (const [name, prop] of Object.entries(_value)) {
|
|
55
54
|
const resolved = api.dictionary.resolve(name);
|
|
56
55
|
const descriptor = resolved.descriptor;
|
|
57
56
|
if (!descriptor) continue;
|
|
58
57
|
if (resolved.suffix) {
|
|
59
|
-
prop
|
|
60
|
-
prop
|
|
58
|
+
prop.named = resolved.suffix;
|
|
59
|
+
prop.rawName = resolved.raw;
|
|
61
60
|
}
|
|
62
|
-
const classToken = prop
|
|
63
|
-
const selectorName = prop
|
|
64
|
-
const selectorValue = preferVariables ? null : prop
|
|
61
|
+
const classToken = prop.classToken;
|
|
62
|
+
const selectorName = prop.selectorName ?? resolved.name;
|
|
63
|
+
const selectorValue = preferVariables ? null : prop.selectorValue !== void 0 ? prop.selectorValue : prop.value;
|
|
65
64
|
const className = classToken ? null : api.contextToClassName(selectorName, selectorValue, contexts, true, api.selectorPrefix);
|
|
66
65
|
const baseSelector = classToken ? api.classTokenToSelector(classToken) : `.${className}`;
|
|
67
66
|
const baseWithPseudos = pseudoChain.length ? `${baseSelector}:${pseudoChain.join(":")}` : baseSelector;
|
|
@@ -70,11 +69,11 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
70
69
|
selector,
|
|
71
70
|
query
|
|
72
71
|
});
|
|
73
|
-
log.log("trigger:onProp", name, prop
|
|
74
|
-
if (query && !prop
|
|
72
|
+
log.log("trigger:onProp", name, prop.value, contexts);
|
|
73
|
+
if (query && !prop.query) prop.query = query;
|
|
75
74
|
await api.trigger("onProp", {
|
|
76
75
|
name: resolved.name,
|
|
77
|
-
prop
|
|
76
|
+
prop,
|
|
78
77
|
contexts,
|
|
79
78
|
preferVariables,
|
|
80
79
|
file
|
|
@@ -87,6 +86,5 @@ const onProp = async (api, { name: _name, prop, contexts, preferVariables, file
|
|
|
87
86
|
};
|
|
88
87
|
const dependencies = pseudoDependencies;
|
|
89
88
|
const name = "pseudo";
|
|
90
|
-
|
|
91
89
|
//#endregion
|
|
92
|
-
export { dependencies, name, onBoot, onProp, server_exports };
|
|
90
|
+
export { dependencies, name, onBoot, onProp, server_exports };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/prop/pseudo/shared.ts
|
|
3
2
|
const pseudoList = [
|
|
4
3
|
"defined",
|
|
@@ -56,7 +55,6 @@ const pseudoList = [
|
|
|
56
55
|
"before"
|
|
57
56
|
];
|
|
58
57
|
const pseudoDependencies = new Set(pseudoList);
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
59
|
exports.pseudoDependencies = pseudoDependencies;
|
|
62
|
-
exports.pseudoList = pseudoList;
|
|
60
|
+
exports.pseudoList = pseudoList;
|
package/dist/reset/server.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let node_fs = require("node:fs");
|
|
3
|
-
node_fs =
|
|
4
|
-
|
|
4
|
+
node_fs = require_runtime.__toESM(node_fs);
|
|
5
5
|
//#region src/reset/server.ts
|
|
6
|
-
var server_exports = /* @__PURE__ */
|
|
6
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
7
|
name: () => name,
|
|
8
8
|
onBoot: () => onBoot
|
|
9
9
|
});
|
|
@@ -22,13 +22,12 @@ const onBoot = (api) => {
|
|
|
22
22
|
if (!resetCss) return;
|
|
23
23
|
api.css?.addRule?.(resetCss);
|
|
24
24
|
};
|
|
25
|
-
|
|
26
25
|
//#endregion
|
|
27
26
|
exports.name = name;
|
|
28
27
|
exports.onBoot = onBoot;
|
|
29
|
-
Object.defineProperty(exports,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
28
|
+
Object.defineProperty(exports, "server_exports", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return server_exports;
|
|
32
|
+
}
|
|
33
|
+
});
|
package/dist/reset/server.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
|
-
|
|
4
3
|
//#region src/reset/server.ts
|
|
5
4
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
6
5
|
name: () => name,
|
|
@@ -21,6 +20,5 @@ const onBoot = (api) => {
|
|
|
21
20
|
if (!resetCss) return;
|
|
22
21
|
api.css?.addRule?.(resetCss);
|
|
23
22
|
};
|
|
24
|
-
|
|
25
23
|
//#endregion
|
|
26
|
-
export { name, onBoot, server_exports };
|
|
24
|
+
export { name, onBoot, server_exports };
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_api_browser = require("../api/browser.cjs");
|
|
3
|
+
const require_merge_index = require("../merge/index.cjs");
|
|
4
|
+
const require_cx_index = require("../cx/index.cjs");
|
|
5
5
|
//#region src/runtime/index.ts
|
|
6
6
|
const registry = {};
|
|
7
7
|
const getApi = () => {
|
|
@@ -118,7 +118,6 @@ const proxy = new Proxy(defaultElement, {
|
|
|
118
118
|
return true;
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
|
|
122
121
|
//#endregion
|
|
123
122
|
exports.factory = factory;
|
|
124
|
-
exports.proxy = proxy;
|
|
123
|
+
exports.proxy = proxy;
|
package/dist/runtime/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { api } from "../api/browser.mjs";
|
|
2
2
|
import { merge } from "../merge/index.mjs";
|
|
3
3
|
import { cv, cx, scv, sv } from "../cx/index.mjs";
|
|
4
|
-
|
|
5
4
|
//#region src/runtime/index.ts
|
|
6
5
|
const registry = {};
|
|
7
6
|
const getApi = () => {
|
|
@@ -118,6 +117,5 @@ const proxy = new Proxy(defaultElement, {
|
|
|
118
117
|
return true;
|
|
119
118
|
}
|
|
120
119
|
});
|
|
121
|
-
|
|
122
120
|
//#endregion
|
|
123
|
-
export { factory, proxy };
|
|
121
|
+
export { factory, proxy };
|
package/dist/runtime/preact.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let preact = require("preact");
|
|
3
|
-
|
|
4
|
-
exports.createElement = preact.createElement;
|
|
4
|
+
exports.createElement = preact.createElement;
|
package/dist/runtime/preact.mjs
CHANGED
package/dist/runtime/qwik.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let _builder_io_qwik_jsx_runtime = require("@builder.io/qwik/jsx-runtime");
|
|
3
|
-
|
|
4
4
|
//#region src/runtime/qwik.ts
|
|
5
5
|
const createElement = (component, props, children, dev) => {
|
|
6
6
|
const resolvedProps = {
|
|
@@ -14,8 +14,7 @@ const applyRef = () => {};
|
|
|
14
14
|
const getDev = (_key, rest) => {
|
|
15
15
|
return rest?.[1];
|
|
16
16
|
};
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
exports.applyRef = applyRef;
|
|
20
19
|
exports.createElement = createElement;
|
|
21
|
-
exports.getDev = getDev;
|
|
20
|
+
exports.getDev = getDev;
|
package/dist/runtime/qwik.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, jsxDEV } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
-
|
|
3
2
|
//#region src/runtime/qwik.ts
|
|
4
3
|
const createElement = (component, props, children, dev) => {
|
|
5
4
|
const resolvedProps = {
|
|
@@ -13,6 +12,5 @@ const applyRef = () => {};
|
|
|
13
12
|
const getDev = (_key, rest) => {
|
|
14
13
|
return rest?.[1];
|
|
15
14
|
};
|
|
16
|
-
|
|
17
15
|
//#endregion
|
|
18
|
-
export { applyRef, createElement, getDev };
|
|
16
|
+
export { applyRef, createElement, getDev };
|
package/dist/runtime/react.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let react = require("react");
|
|
3
|
-
|
|
4
|
-
exports.createElement = react.createElement;
|
|
4
|
+
exports.createElement = react.createElement;
|
package/dist/runtime/react.mjs
CHANGED
package/dist/runtime/solid.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let solid_js = require("solid-js");
|
|
3
4
|
let solid_js_web = require("solid-js/web");
|
|
4
|
-
|
|
5
5
|
//#region src/runtime/solid.ts
|
|
6
6
|
const createElement = (component, props, children) => {
|
|
7
7
|
return (0, solid_js.createComponent)(solid_js_web.Dynamic, {
|
|
@@ -10,6 +10,5 @@ const createElement = (component, props, children) => {
|
|
|
10
10
|
children
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
-
|
|
14
13
|
//#endregion
|
|
15
|
-
exports.createElement = createElement;
|
|
14
|
+
exports.createElement = createElement;
|
package/dist/runtime/solid.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createComponent } from "solid-js";
|
|
2
2
|
import { Dynamic } from "solid-js/web";
|
|
3
|
-
|
|
4
3
|
//#region src/runtime/solid.ts
|
|
5
4
|
const createElement = (component, props, children) => {
|
|
6
5
|
return createComponent(Dynamic, {
|
|
@@ -9,6 +8,5 @@ const createElement = (component, props, children) => {
|
|
|
9
8
|
children
|
|
10
9
|
});
|
|
11
10
|
};
|
|
12
|
-
|
|
13
11
|
//#endregion
|
|
14
|
-
export { createElement };
|
|
12
|
+
export { createElement };
|
package/dist/runtime/stencil.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_runtime_style = require("./style.cjs");
|
|
3
4
|
let _stencil_core = require("@stencil/core");
|
|
4
|
-
|
|
5
5
|
//#region src/runtime/stencil.ts
|
|
6
6
|
const createElement = (component, props, children) => {
|
|
7
7
|
const hAny = _stencil_core.h;
|
|
@@ -17,9 +17,8 @@ const getFactoryChildren = (_props, ref) => {
|
|
|
17
17
|
return ref;
|
|
18
18
|
};
|
|
19
19
|
const applyRef = () => {};
|
|
20
|
-
|
|
21
20
|
//#endregion
|
|
22
21
|
exports.applyRef = applyRef;
|
|
23
22
|
exports.createElement = createElement;
|
|
24
23
|
exports.getChildren = getChildren;
|
|
25
|
-
exports.getFactoryChildren = getFactoryChildren;
|
|
24
|
+
exports.getFactoryChildren = getFactoryChildren;
|