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,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/strategy/inline-first/server.ts
|
|
4
|
-
var server_exports = /* @__PURE__ */
|
|
3
|
+
var server_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
5
4
|
name: () => name,
|
|
6
5
|
onBoot: () => onBoot,
|
|
7
6
|
onPropTree: () => onPropTree,
|
|
@@ -15,7 +14,7 @@ const resolveDescriptor = (api, name) => {
|
|
|
15
14
|
const onBoot = async (api) => {
|
|
16
15
|
const runtimeConfig = api.runtime;
|
|
17
16
|
const hasRuntimeConfig = Boolean(runtimeConfig && (runtimeConfig.only !== void 0 || runtimeConfig.strategy));
|
|
18
|
-
const runtimeStrategy = runtimeConfig?.strategy ??
|
|
17
|
+
const runtimeStrategy = runtimeConfig?.strategy ?? "inline-first";
|
|
19
18
|
const runtimeModule = hasRuntimeConfig ? "boss-css/strategy/runtime/runtime-only" : "boss-css/strategy/inline-first/browser";
|
|
20
19
|
const shouldEmitRuntime = () => Boolean(needsRuntime || settings.get("emitRuntime") === true);
|
|
21
20
|
const runtimePlugin = { onBrowserObjectStart: api.file.js.import({
|
|
@@ -78,15 +77,14 @@ const onPropTree = async (api, { input, tree, preferVariables, parser, file }) =
|
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
const name = "inline-first";
|
|
81
|
-
|
|
82
80
|
//#endregion
|
|
83
81
|
exports.name = name;
|
|
84
82
|
exports.onBoot = onBoot;
|
|
85
83
|
exports.onPropTree = onPropTree;
|
|
86
|
-
Object.defineProperty(exports,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
Object.defineProperty(exports, "server_exports", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function() {
|
|
87
|
+
return server_exports;
|
|
88
|
+
}
|
|
91
89
|
});
|
|
92
|
-
exports.settings = settings;
|
|
90
|
+
exports.settings = settings;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
2
|
-
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
3
2
|
//#region src/strategy/inline-first/server.ts
|
|
4
3
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
5
4
|
name: () => name,
|
|
@@ -15,7 +14,7 @@ const resolveDescriptor = (api, name) => {
|
|
|
15
14
|
const onBoot = async (api) => {
|
|
16
15
|
const runtimeConfig = api.runtime;
|
|
17
16
|
const hasRuntimeConfig = Boolean(runtimeConfig && (runtimeConfig.only !== void 0 || runtimeConfig.strategy));
|
|
18
|
-
const runtimeStrategy = runtimeConfig?.strategy ??
|
|
17
|
+
const runtimeStrategy = runtimeConfig?.strategy ?? "inline-first";
|
|
19
18
|
const runtimeModule = hasRuntimeConfig ? "boss-css/strategy/runtime/runtime-only" : "boss-css/strategy/inline-first/browser";
|
|
20
19
|
const shouldEmitRuntime = () => Boolean(needsRuntime || settings.get("emitRuntime") === true);
|
|
21
20
|
const runtimePlugin = { onBrowserObjectStart: api.file.js.import({
|
|
@@ -78,6 +77,5 @@ const onPropTree = async (api, { input, tree, preferVariables, parser, file }) =
|
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
const name = "inline-first";
|
|
81
|
-
|
|
82
80
|
//#endregion
|
|
83
|
-
export { name, onBoot, onPropTree, server_exports, settings };
|
|
81
|
+
export { name, onBoot, onPropTree, server_exports, settings };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_strategy_inline_first_runtime_only = require("../inline-first/runtime-only.cjs");
|
|
3
|
+
const require_strategy_runtime_only_css = require("../runtime-only/css.cjs");
|
|
4
|
+
const require_strategy_classname_first_runtime_only = require("../classname-first/runtime-only.cjs");
|
|
5
|
+
const require_strategy_classic_runtime_only = require("../classic/runtime-only.cjs");
|
|
6
6
|
//#region src/strategy/runtime/runtime-only.ts
|
|
7
7
|
const name = "runtime";
|
|
8
8
|
const onInit = require_strategy_runtime_only_css.onInit;
|
|
@@ -10,16 +10,14 @@ const getRuntimeHandler = (api) => {
|
|
|
10
10
|
switch (api.strategy) {
|
|
11
11
|
case "classname-first": return require_strategy_classname_first_runtime_only.onBrowserObjectStart;
|
|
12
12
|
case "classic": return require_strategy_classic_runtime_only.onBrowserObjectStart;
|
|
13
|
-
case "inline-first":
|
|
14
13
|
default: return require_strategy_inline_first_runtime_only.onBrowserObjectStart;
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
16
|
const onBrowserObjectStart = (api, payload) => {
|
|
18
17
|
return getRuntimeHandler(api)(api, payload);
|
|
19
18
|
};
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
20
|
exports.applyGlobals = require_strategy_runtime_only_css.applyGlobals;
|
|
23
21
|
exports.name = name;
|
|
24
22
|
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
25
|
-
exports.onInit = onInit;
|
|
23
|
+
exports.onInit = onInit;
|
|
@@ -2,7 +2,6 @@ import { onBrowserObjectStart as onBrowserObjectStart$1 } from "../inline-first/
|
|
|
2
2
|
import { applyGlobals, onInit as onInit$1 } from "../runtime-only/css.mjs";
|
|
3
3
|
import { onBrowserObjectStart as onBrowserObjectStart$2 } from "../classname-first/runtime-only.mjs";
|
|
4
4
|
import { onBrowserObjectStart as onBrowserObjectStart$3 } from "../classic/runtime-only.mjs";
|
|
5
|
-
|
|
6
5
|
//#region src/strategy/runtime/runtime-only.ts
|
|
7
6
|
const name = "runtime";
|
|
8
7
|
const onInit = onInit$1;
|
|
@@ -10,13 +9,11 @@ const getRuntimeHandler = (api) => {
|
|
|
10
9
|
switch (api.strategy) {
|
|
11
10
|
case "classname-first": return onBrowserObjectStart$2;
|
|
12
11
|
case "classic": return onBrowserObjectStart$3;
|
|
13
|
-
case "inline-first":
|
|
14
12
|
default: return onBrowserObjectStart$1;
|
|
15
13
|
}
|
|
16
14
|
};
|
|
17
15
|
const onBrowserObjectStart = (api, payload) => {
|
|
18
16
|
return getRuntimeHandler(api)(api, payload);
|
|
19
17
|
};
|
|
20
|
-
|
|
21
18
|
//#endregion
|
|
22
|
-
export { applyGlobals, name, onBrowserObjectStart, onInit };
|
|
19
|
+
export { applyGlobals, name, onBrowserObjectStart, onInit };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_strategy_inline_first_server = require("../inline-first/server.cjs");
|
|
4
|
+
const require_strategy_classname_first_server = require("../classname-first/server.cjs");
|
|
5
5
|
//#region src/strategy/runtime/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
|
onPropTree: () => onPropTree,
|
|
@@ -72,15 +72,14 @@ const onPropTree = async (api, data) => {
|
|
|
72
72
|
if (!serverStrategy.onPropTree) return;
|
|
73
73
|
await serverStrategy.onPropTree(api, data);
|
|
74
74
|
};
|
|
75
|
-
|
|
76
75
|
//#endregion
|
|
77
76
|
exports.name = name;
|
|
78
77
|
exports.onBoot = onBoot;
|
|
79
78
|
exports.onPropTree = onPropTree;
|
|
80
|
-
Object.defineProperty(exports,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
Object.defineProperty(exports, "server_exports", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function() {
|
|
82
|
+
return server_exports;
|
|
83
|
+
}
|
|
85
84
|
});
|
|
86
|
-
exports.settings = settings;
|
|
85
|
+
exports.settings = settings;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { __exportAll } from "../../_virtual/
|
|
1
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { server_exports as server_exports$1 } from "../inline-first/server.mjs";
|
|
3
3
|
import { server_exports as server_exports$2 } from "../classname-first/server.mjs";
|
|
4
|
-
|
|
5
4
|
//#region src/strategy/runtime/server.ts
|
|
6
5
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
7
6
|
name: () => name,
|
|
@@ -72,6 +71,5 @@ const onPropTree = async (api, data) => {
|
|
|
72
71
|
if (!serverStrategy.onPropTree) return;
|
|
73
72
|
await serverStrategy.onPropTree(api, data);
|
|
74
73
|
};
|
|
75
|
-
|
|
76
74
|
//#endregion
|
|
77
|
-
export { name, onBoot, onPropTree, server_exports, settings };
|
|
75
|
+
export { name, onBoot, onPropTree, server_exports, settings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/strategy/runtime-only/css.ts
|
|
3
3
|
let baseStyleElement = null;
|
|
4
4
|
let baseSheet = null;
|
|
@@ -93,10 +93,10 @@ const insertRule = (rule, key = rule, query = null) => {
|
|
|
93
93
|
if (inserted.has(key)) return;
|
|
94
94
|
inserted.add(key);
|
|
95
95
|
if (!query) {
|
|
96
|
-
const activeSheet
|
|
97
|
-
if (!activeSheet
|
|
96
|
+
const activeSheet = ensureBaseSheet();
|
|
97
|
+
if (!activeSheet) return;
|
|
98
98
|
try {
|
|
99
|
-
activeSheet
|
|
99
|
+
activeSheet.insertRule(rule, activeSheet.cssRules.length);
|
|
100
100
|
} catch {
|
|
101
101
|
baseStyleElement?.appendChild(document.createTextNode(rule));
|
|
102
102
|
}
|
|
@@ -197,8 +197,7 @@ var RuntimeCSS = class {
|
|
|
197
197
|
const onInit = (api) => {
|
|
198
198
|
if (!api.css || !(api.css instanceof RuntimeCSS)) api.css = new RuntimeCSS(api);
|
|
199
199
|
};
|
|
200
|
-
|
|
201
200
|
//#endregion
|
|
202
201
|
exports.RuntimeCSS = RuntimeCSS;
|
|
203
202
|
exports.applyGlobals = applyGlobals;
|
|
204
|
-
exports.onInit = onInit;
|
|
203
|
+
exports.onInit = onInit;
|
|
@@ -92,10 +92,10 @@ const insertRule = (rule, key = rule, query = null) => {
|
|
|
92
92
|
if (inserted.has(key)) return;
|
|
93
93
|
inserted.add(key);
|
|
94
94
|
if (!query) {
|
|
95
|
-
const activeSheet
|
|
96
|
-
if (!activeSheet
|
|
95
|
+
const activeSheet = ensureBaseSheet();
|
|
96
|
+
if (!activeSheet) return;
|
|
97
97
|
try {
|
|
98
|
-
activeSheet
|
|
98
|
+
activeSheet.insertRule(rule, activeSheet.cssRules.length);
|
|
99
99
|
} catch {
|
|
100
100
|
baseStyleElement?.appendChild(document.createTextNode(rule));
|
|
101
101
|
}
|
|
@@ -196,6 +196,5 @@ var RuntimeCSS = class {
|
|
|
196
196
|
const onInit = (api) => {
|
|
197
197
|
if (!api.css || !(api.css instanceof RuntimeCSS)) api.css = new RuntimeCSS(api);
|
|
198
198
|
};
|
|
199
|
-
|
|
200
199
|
//#endregion
|
|
201
|
-
export { RuntimeCSS, applyGlobals, onInit };
|
|
200
|
+
export { RuntimeCSS, applyGlobals, onInit };
|
package/dist/tasks/build.cjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_file = require(
|
|
4
|
-
const require_boundaries = require(
|
|
5
|
-
const require_session = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../api/server.cjs");
|
|
3
|
+
const require_file = require("../shared/file.cjs");
|
|
4
|
+
const require_boundaries = require("../shared/boundaries.cjs");
|
|
5
|
+
const require_session = require("./session.cjs");
|
|
6
6
|
let node_fs_promises = require("node:fs/promises");
|
|
7
|
-
node_fs_promises =
|
|
7
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
8
8
|
let node_path = require("node:path");
|
|
9
|
-
node_path =
|
|
10
|
-
|
|
9
|
+
node_path = require_runtime.__toESM(node_path);
|
|
11
10
|
//#region src/tasks/build.ts
|
|
12
11
|
const formatBoundaryLines = (boundaryFiles, baseDir) => {
|
|
13
12
|
if (!boundaryFiles.length) return "- (none)";
|
|
@@ -123,7 +122,6 @@ const runBuild = async (userConfig, options = {}) => {
|
|
|
123
122
|
boundaryPaths
|
|
124
123
|
};
|
|
125
124
|
};
|
|
126
|
-
|
|
127
125
|
//#endregion
|
|
128
126
|
exports.resolveBuildConfig = resolveBuildConfig;
|
|
129
|
-
exports.runBuild = runBuild;
|
|
127
|
+
exports.runBuild = runBuild;
|
package/dist/tasks/build.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { resolveBoundaryOutputs } from "../shared/boundaries.mjs";
|
|
|
4
4
|
import { emitSession, resolveSessionPayload } from "./session.mjs";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
|
|
8
7
|
//#region src/tasks/build.ts
|
|
9
8
|
const formatBoundaryLines = (boundaryFiles, baseDir) => {
|
|
10
9
|
if (!boundaryFiles.length) return "- (none)";
|
|
@@ -120,6 +119,5 @@ const runBuild = async (userConfig, options = {}) => {
|
|
|
120
119
|
boundaryPaths
|
|
121
120
|
};
|
|
122
121
|
};
|
|
123
|
-
|
|
124
122
|
//#endregion
|
|
125
|
-
export { resolveBuildConfig, runBuild };
|
|
123
|
+
export { resolveBuildConfig, runBuild };
|
package/dist/tasks/compile.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_index = require(
|
|
2
|
-
|
|
1
|
+
const require_index = require("../compile/index.cjs");
|
|
3
2
|
//#region src/tasks/compile.ts
|
|
4
3
|
const runCompile = async ({ config, prod = false }) => {
|
|
5
4
|
return require_index.compileProject({
|
|
@@ -7,6 +6,5 @@ const runCompile = async ({ config, prod = false }) => {
|
|
|
7
6
|
prod
|
|
8
7
|
});
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
|
-
exports.runCompile = runCompile;
|
|
10
|
+
exports.runCompile = runCompile;
|
package/dist/tasks/compile.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { compileProject } from "../compile/index.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/tasks/compile.ts
|
|
4
3
|
const runCompile = async ({ config, prod = false }) => {
|
|
5
4
|
return compileProject({
|
|
@@ -7,6 +6,5 @@ const runCompile = async ({ config, prod = false }) => {
|
|
|
7
6
|
prod
|
|
8
7
|
});
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
|
-
export { runCompile };
|
|
10
|
+
export { runCompile };
|
package/dist/tasks/postcss.cjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_file = require(
|
|
4
|
-
const require_boundaries = require(
|
|
5
|
-
const require_session = require(
|
|
6
|
-
const require_api_config = require(
|
|
7
|
-
const require_cache = require(
|
|
8
|
-
const require_processFile = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../api/server.cjs");
|
|
3
|
+
const require_file = require("../shared/file.cjs");
|
|
4
|
+
const require_boundaries = require("../shared/boundaries.cjs");
|
|
5
|
+
const require_session = require("./session.cjs");
|
|
6
|
+
const require_api_config = require("../api/config.cjs");
|
|
7
|
+
const require_cache = require("../transform/cache.cjs");
|
|
8
|
+
const require_processFile = require("../transform/processFile.cjs");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
|
-
node_path =
|
|
10
|
+
node_path = require_runtime.__toESM(node_path);
|
|
11
11
|
let postcss = require("postcss");
|
|
12
|
-
postcss =
|
|
13
|
-
|
|
12
|
+
postcss = require_runtime.__toESM(postcss);
|
|
14
13
|
//#region src/tasks/postcss.ts
|
|
15
14
|
const configPromises = /* @__PURE__ */ new Map();
|
|
16
15
|
const apiCache = /* @__PURE__ */ new Map();
|
|
@@ -132,6 +131,5 @@ const runPostcss = async (root, result, options = {}) => {
|
|
|
132
131
|
runQueues.set(queueKey, run);
|
|
133
132
|
await run;
|
|
134
133
|
};
|
|
135
|
-
|
|
136
134
|
//#endregion
|
|
137
|
-
exports.runPostcss = runPostcss;
|
|
135
|
+
exports.runPostcss = runPostcss;
|
package/dist/tasks/postcss.mjs
CHANGED
|
@@ -7,7 +7,6 @@ import { cache, setCache } from "../transform/cache.mjs";
|
|
|
7
7
|
import processFile from "../transform/processFile.mjs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import postcss from "postcss";
|
|
10
|
-
|
|
11
10
|
//#region src/tasks/postcss.ts
|
|
12
11
|
const configPromises = /* @__PURE__ */ new Map();
|
|
13
12
|
const apiCache = /* @__PURE__ */ new Map();
|
|
@@ -129,6 +128,5 @@ const runPostcss = async (root, result, options = {}) => {
|
|
|
129
128
|
runQueues.set(queueKey, run);
|
|
130
129
|
await run;
|
|
131
130
|
};
|
|
132
|
-
|
|
133
131
|
//#endregion
|
|
134
|
-
export { runPostcss };
|
|
132
|
+
export { runPostcss };
|
package/dist/tasks/session.cjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
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_path = require("node:path");
|
|
5
|
-
node_path =
|
|
6
|
-
|
|
5
|
+
node_path = require_runtime.__toESM(node_path);
|
|
7
6
|
//#region src/tasks/session.ts
|
|
8
7
|
const hasFile = async (filePath) => {
|
|
9
8
|
try {
|
|
@@ -40,7 +39,6 @@ const emitSession = async (api, payload) => {
|
|
|
40
39
|
if (!api?.trigger) return;
|
|
41
40
|
await api.trigger("onSession", payload);
|
|
42
41
|
};
|
|
43
|
-
|
|
44
42
|
//#endregion
|
|
45
43
|
exports.emitSession = emitSession;
|
|
46
|
-
exports.resolveSessionPayload = resolveSessionPayload;
|
|
44
|
+
exports.resolveSessionPayload = resolveSessionPayload;
|
package/dist/tasks/session.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
|
|
4
3
|
//#region src/tasks/session.ts
|
|
5
4
|
const hasFile = async (filePath) => {
|
|
6
5
|
try {
|
|
@@ -37,6 +36,5 @@ const emitSession = async (api, payload) => {
|
|
|
37
36
|
if (!api?.trigger) return;
|
|
38
37
|
await api.trigger("onSession", payload);
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { emitSession, resolveSessionPayload };
|
|
40
|
+
export { emitSession, resolveSessionPayload };
|
package/dist/tasks/watch.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_api_server = require(
|
|
3
|
-
const require_session = require(
|
|
4
|
-
const require_build = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_api_server = require("../api/server.cjs");
|
|
3
|
+
const require_session = require("./session.cjs");
|
|
4
|
+
const require_build = require("./build.cjs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
6
|
+
node_path = require_runtime.__toESM(node_path);
|
|
7
7
|
let _parcel_watcher = require("@parcel/watcher");
|
|
8
|
-
_parcel_watcher =
|
|
9
|
-
|
|
8
|
+
_parcel_watcher = require_runtime.__toESM(_parcel_watcher);
|
|
10
9
|
//#region src/tasks/watch.ts
|
|
11
10
|
const DEFAULT_DEBOUNCE_MS = 80;
|
|
12
11
|
const runWatch = async (userConfig, options = {}) => {
|
|
@@ -97,6 +96,5 @@ const runWatch = async (userConfig, options = {}) => {
|
|
|
97
96
|
await require_session.emitSession(api, await require_session.resolveSessionPayload(baseDir, buildConfig, "watch", "stop"));
|
|
98
97
|
} };
|
|
99
98
|
};
|
|
100
|
-
|
|
101
99
|
//#endregion
|
|
102
|
-
exports.runWatch = runWatch;
|
|
100
|
+
exports.runWatch = runWatch;
|
package/dist/tasks/watch.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { emitSession, resolveSessionPayload } from "./session.mjs";
|
|
|
3
3
|
import { resolveBuildConfig, runBuild } from "./build.mjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import watcher from "@parcel/watcher";
|
|
6
|
-
|
|
7
6
|
//#region src/tasks/watch.ts
|
|
8
7
|
const DEFAULT_DEBOUNCE_MS = 80;
|
|
9
8
|
const runWatch = async (userConfig, options = {}) => {
|
|
@@ -94,6 +93,5 @@ const runWatch = async (userConfig, options = {}) => {
|
|
|
94
93
|
await emitSession(api, await resolveSessionPayload(baseDir, buildConfig, "watch", "stop"));
|
|
95
94
|
} };
|
|
96
95
|
};
|
|
97
|
-
|
|
98
96
|
//#endregion
|
|
99
|
-
export { runWatch };
|
|
97
|
+
export { runWatch };
|
package/dist/transform/cache.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/transform/cache.ts
|
|
3
2
|
const cache = /* @__PURE__ */ new Map();
|
|
4
3
|
const setCache = (path, data) => {
|
|
@@ -15,7 +14,6 @@ const setCache = (path, data) => {
|
|
|
15
14
|
cache.set(path, newValue);
|
|
16
15
|
return Boolean(cachedValue);
|
|
17
16
|
};
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
18
|
exports.cache = cache;
|
|
21
|
-
exports.setCache = setCache;
|
|
19
|
+
exports.setCache = setCache;
|
package/dist/transform/cache.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_cache = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_cache = require("./cache.cjs");
|
|
3
3
|
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
node_fs_promises =
|
|
5
|
-
|
|
4
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
6
5
|
//#region src/transform/processFile.ts
|
|
7
6
|
async function processFile(path) {
|
|
8
7
|
const cachedValue = require_cache.cache.get(path);
|
|
@@ -21,6 +20,5 @@ async function processFile(path) {
|
|
|
21
20
|
changed
|
|
22
21
|
};
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
//#endregion
|
|
26
|
-
exports.default = processFile;
|
|
24
|
+
exports.default = processFile;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cache, setCache } from "./cache.mjs";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
|
-
|
|
4
3
|
//#region src/transform/processFile.ts
|
|
5
4
|
async function processFile(path) {
|
|
6
5
|
const cachedValue = cache.get(path);
|
|
@@ -19,6 +18,5 @@ async function processFile(path) {
|
|
|
19
18
|
changed
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
export { processFile as default };
|
|
22
|
+
export { processFile as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_vars = require("./vars.cjs");
|
|
3
|
+
const require_propMap = require("./propMap.cjs");
|
|
4
4
|
//#region src/use/token/browser.ts
|
|
5
5
|
let currentApi = null;
|
|
6
6
|
const tokenVarsCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -83,10 +83,9 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
|
|
87
86
|
//#endregion
|
|
88
87
|
exports.create = create;
|
|
89
88
|
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
90
89
|
exports.onInit = onInit;
|
|
91
90
|
exports.tokenPaths = tokenPaths;
|
|
92
|
-
exports.tokenVars = tokenVars;
|
|
91
|
+
exports.tokenVars = tokenVars;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createTokenVars } from "./vars.mjs";
|
|
2
2
|
import { getTokenGroupsForProp, setTokenPropGroups } from "./propMap.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/use/token/browser.ts
|
|
5
4
|
let currentApi = null;
|
|
6
5
|
const tokenVarsCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -83,6 +82,5 @@ const onBrowserObjectStart = (api, { input }) => {
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
|
-
|
|
87
85
|
//#endregion
|
|
88
|
-
export { create, onBrowserObjectStart, onInit, tokenPaths, tokenVars };
|
|
86
|
+
export { create, onBrowserObjectStart, onInit, tokenPaths, tokenVars };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/use/token/normalize.ts
|
|
3
2
|
const isPlainObject = (value) => {
|
|
4
3
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
@@ -469,6 +468,5 @@ const normalizeTokens = (input) => {
|
|
|
469
468
|
typeMap
|
|
470
469
|
});
|
|
471
470
|
};
|
|
472
|
-
|
|
473
471
|
//#endregion
|
|
474
|
-
exports.normalizeTokens = normalizeTokens;
|
|
472
|
+
exports.normalizeTokens = normalizeTokens;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/use/token/propMap.ts
|
|
3
2
|
const propMap = new Map([
|
|
4
3
|
["gradient", new Set([
|
|
@@ -129,10 +128,9 @@ const getTokenPropGroups = () => {
|
|
|
129
128
|
return acc;
|
|
130
129
|
}, {});
|
|
131
130
|
};
|
|
132
|
-
|
|
133
131
|
//#endregion
|
|
134
132
|
exports.getTokenGroupForProp = getTokenGroupForProp;
|
|
135
133
|
exports.getTokenGroupsForProp = getTokenGroupsForProp;
|
|
136
134
|
exports.getTokenPropGroups = getTokenPropGroups;
|
|
137
135
|
exports.propMap = propMap;
|
|
138
|
-
exports.setTokenPropGroups = setTokenPropGroups;
|
|
136
|
+
exports.setTokenPropGroups = setTokenPropGroups;
|
|
@@ -128,6 +128,5 @@ const getTokenPropGroups = () => {
|
|
|
128
128
|
return acc;
|
|
129
129
|
}, {});
|
|
130
130
|
};
|
|
131
|
-
|
|
132
131
|
//#endregion
|
|
133
|
-
export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups };
|
|
132
|
+
export { getTokenGroupForProp, getTokenGroupsForProp, getTokenPropGroups, propMap, setTokenPropGroups };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_normalize = require("./normalize.cjs");
|
|
3
|
+
const require_vars = require("./vars.cjs");
|
|
4
|
+
const require_propMap = require("./propMap.cjs");
|
|
5
5
|
//#region src/use/token/runtime-only.ts
|
|
6
6
|
let currentApi = null;
|
|
7
7
|
const tokenVarsCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -189,11 +189,10 @@ const resolveRuntimeToken = (api, prop, value) => {
|
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
191
|
const onBrowserObjectStart = () => {};
|
|
192
|
-
|
|
193
192
|
//#endregion
|
|
194
193
|
exports.create = create;
|
|
195
194
|
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
196
195
|
exports.onInit = onInit;
|
|
197
196
|
exports.resolveRuntimeToken = resolveRuntimeToken;
|
|
198
197
|
exports.tokenPaths = tokenPaths;
|
|
199
|
-
exports.tokenVars = tokenVars;
|
|
198
|
+
exports.tokenVars = tokenVars;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { normalizeTokens } from "./normalize.mjs";
|
|
2
2
|
import { createTokenVars } from "./vars.mjs";
|
|
3
3
|
import { getTokenGroupsForProp, setTokenPropGroups } from "./propMap.mjs";
|
|
4
|
-
|
|
5
4
|
//#region src/use/token/runtime-only.ts
|
|
6
5
|
let currentApi = null;
|
|
7
6
|
const tokenVarsCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -189,6 +188,5 @@ const resolveRuntimeToken = (api, prop, value) => {
|
|
|
189
188
|
};
|
|
190
189
|
};
|
|
191
190
|
const onBrowserObjectStart = () => {};
|
|
192
|
-
|
|
193
191
|
//#endregion
|
|
194
|
-
export { create, onBrowserObjectStart, onInit, resolveRuntimeToken, tokenPaths, tokenVars };
|
|
192
|
+
export { create, onBrowserObjectStart, onInit, resolveRuntimeToken, tokenPaths, tokenVars };
|