boss-css 0.0.22 → 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/devtools-app/index.mjs +2 -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 +21 -284
- package/dist/merge/index.mjs +18 -282
- 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,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/eslint-plugin/utils/static.js
|
|
3
2
|
const unwrapExpression = (node) => {
|
|
4
3
|
if (!node) return node;
|
|
@@ -31,6 +30,5 @@ const isStaticValue = (node) => {
|
|
|
31
30
|
if (resolved.type === "UnaryExpression") return isStaticValue(resolved.argument);
|
|
32
31
|
return false;
|
|
33
32
|
};
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
|
-
exports.isStaticValue = isStaticValue;
|
|
34
|
+
exports.isStaticValue = isStaticValue;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/fontsource/directory.ts
|
|
3
2
|
const fontDirectory = [
|
|
4
3
|
{
|
|
@@ -39583,6 +39582,5 @@ const fontDirectory = [
|
|
|
39583
39582
|
"version": "v21"
|
|
39584
39583
|
}
|
|
39585
39584
|
];
|
|
39586
|
-
|
|
39587
39585
|
//#endregion
|
|
39588
|
-
exports.fontDirectory = fontDirectory;
|
|
39586
|
+
exports.fontDirectory = fontDirectory;
|
|
@@ -39582,6 +39582,5 @@ const fontDirectory = [
|
|
|
39582
39582
|
"version": "v21"
|
|
39583
39583
|
}
|
|
39584
39584
|
];
|
|
39585
|
-
|
|
39586
39585
|
//#endregion
|
|
39587
|
-
export { fontDirectory };
|
|
39586
|
+
export { fontDirectory };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_directory = require("./directory.cjs");
|
|
3
4
|
let node_fs_promises = require("node:fs/promises");
|
|
4
|
-
node_fs_promises =
|
|
5
|
+
node_fs_promises = require_runtime.__toESM(node_fs_promises);
|
|
5
6
|
let node_path = require("node:path");
|
|
6
|
-
node_path =
|
|
7
|
-
|
|
7
|
+
node_path = require_runtime.__toESM(node_path);
|
|
8
8
|
//#region src/fontsource/server.ts
|
|
9
|
-
var server_exports = /* @__PURE__ */
|
|
9
|
+
var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
10
10
|
name: () => name,
|
|
11
11
|
onBoot: () => onBoot
|
|
12
12
|
});
|
|
@@ -284,13 +284,12 @@ const onBoot = async (api) => {
|
|
|
284
284
|
mergeFontTokens(api, fontTokens);
|
|
285
285
|
await fetchFontFiles(downloads, fontsDir);
|
|
286
286
|
};
|
|
287
|
-
|
|
288
287
|
//#endregion
|
|
289
288
|
exports.name = name;
|
|
290
289
|
exports.onBoot = onBoot;
|
|
291
|
-
Object.defineProperty(exports,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
});
|
|
290
|
+
Object.defineProperty(exports, "server_exports", {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function() {
|
|
293
|
+
return server_exports;
|
|
294
|
+
}
|
|
295
|
+
});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { fontDirectory } from "./directory.mjs";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
|
|
6
5
|
//#region src/fontsource/server.ts
|
|
7
6
|
var server_exports = /* @__PURE__ */ __exportAll({
|
|
8
7
|
name: () => name,
|
|
@@ -282,6 +281,5 @@ const onBoot = async (api) => {
|
|
|
282
281
|
mergeFontTokens(api, fontTokens);
|
|
283
282
|
await fetchFontFiles(downloads, fontsDir);
|
|
284
283
|
};
|
|
285
|
-
|
|
286
284
|
//#endregion
|
|
287
|
-
export { name, onBoot, server_exports };
|
|
285
|
+
export { name, onBoot, server_exports };
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_build = require("./tasks/build.cjs");
|
|
3
|
+
const require_watch = require("./tasks/watch.cjs");
|
|
4
|
+
const require_compile = require("./tasks/compile.cjs");
|
|
5
|
+
const require_postcss = require("./tasks/postcss.cjs");
|
|
6
6
|
exports.resolveBuildConfig = require_build.resolveBuildConfig;
|
|
7
7
|
exports.runBuild = require_build.runBuild;
|
|
8
8
|
exports.runCompile = require_compile.runCompile;
|
|
9
9
|
exports.runPostcss = require_postcss.runPostcss;
|
|
10
|
-
exports.runWatch = require_watch.runWatch;
|
|
10
|
+
exports.runWatch = require_watch.runWatch;
|
package/dist/index.mjs
CHANGED
|
@@ -2,5 +2,4 @@ import { resolveBuildConfig, runBuild } from "./tasks/build.mjs";
|
|
|
2
2
|
import { runWatch } from "./tasks/watch.mjs";
|
|
3
3
|
import { runCompile } from "./tasks/compile.mjs";
|
|
4
4
|
import { runPostcss } from "./tasks/postcss.mjs";
|
|
5
|
-
|
|
6
|
-
export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
|
|
5
|
+
export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
|
package/dist/log/browser.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_debug = require(
|
|
2
|
-
|
|
1
|
+
const require_debug = require("../shared/debug.cjs");
|
|
3
2
|
//#region src/log/browser.ts
|
|
4
3
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
5
4
|
const createLogger = (namespace, debug) => {
|
|
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
|
|
|
23
22
|
};
|
|
24
23
|
return getLogger(namespace);
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
//#endregion
|
|
28
|
-
exports.createLogger = createLogger;
|
|
26
|
+
exports.createLogger = createLogger;
|
package/dist/log/browser.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createDebugMatcher } from "../shared/debug.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/log/browser.ts
|
|
4
3
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
5
4
|
const createLogger = (namespace, debug) => {
|
|
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
|
|
|
23
22
|
};
|
|
24
23
|
return getLogger(namespace);
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
//#endregion
|
|
28
|
-
export { createLogger };
|
|
26
|
+
export { createLogger };
|
package/dist/log/server.cjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_debug = require(
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_debug = require("../shared/debug.cjs");
|
|
3
3
|
let debug = require("debug");
|
|
4
|
-
debug =
|
|
5
|
-
|
|
4
|
+
debug = require_runtime.__toESM(debug);
|
|
6
5
|
//#region src/log/server.ts
|
|
7
6
|
const normalizeDebugValue = (debug$1) => debug$1 === true ? "boss:*" : debug$1;
|
|
8
|
-
const createLogger = (namespace, debug$
|
|
9
|
-
const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$
|
|
7
|
+
const createLogger = (namespace, debug$2) => {
|
|
8
|
+
const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$2));
|
|
10
9
|
const cache = /* @__PURE__ */ new Map();
|
|
11
10
|
const getLogger = (nextNamespace) => {
|
|
12
11
|
const existing = cache.get(nextNamespace);
|
|
@@ -27,6 +26,5 @@ const createLogger = (namespace, debug$1) => {
|
|
|
27
26
|
};
|
|
28
27
|
return getLogger(namespace);
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
|
-
exports.createLogger = createLogger;
|
|
30
|
+
exports.createLogger = createLogger;
|
package/dist/log/server.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createDebugMatcher } from "../shared/debug.mjs";
|
|
2
2
|
import createDebug from "debug";
|
|
3
|
-
|
|
4
3
|
//#region src/log/server.ts
|
|
5
4
|
const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
|
|
6
5
|
const createLogger = (namespace, debug) => {
|
|
@@ -25,6 +24,5 @@ const createLogger = (namespace, debug) => {
|
|
|
25
24
|
};
|
|
26
25
|
return getLogger(namespace);
|
|
27
26
|
};
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { createLogger };
|
|
28
|
+
export { createLogger };
|
package/dist/merge/index.cjs
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
3
|
let ts_deepmerge = require("ts-deepmerge");
|
|
3
4
|
let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
|
|
4
|
-
_boss_css_is_css_prop =
|
|
5
|
-
|
|
5
|
+
_boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
|
|
6
6
|
//#region src/merge/index.ts
|
|
7
7
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
8
8
|
const whitespaceRegexp = /\s/;
|
|
9
|
-
const borderSideVariants = [
|
|
10
|
-
"width",
|
|
11
|
-
"style",
|
|
12
|
-
"color"
|
|
13
|
-
];
|
|
14
|
-
const physicalSides = [
|
|
15
|
-
"top",
|
|
16
|
-
"right",
|
|
17
|
-
"bottom",
|
|
18
|
-
"left"
|
|
19
|
-
];
|
|
20
|
-
const logicalAxes = ["block", "inline"];
|
|
21
|
-
const logicalSides = logicalAxes.flatMap((axis) => [`${axis}-start`, `${axis}-end`]);
|
|
22
9
|
const defaultConfig = {
|
|
23
10
|
cacheSize: 500,
|
|
24
11
|
sortContexts: true,
|
|
25
12
|
orderSensitiveContexts: ["before", "after"],
|
|
26
13
|
compoundContexts: ["at", "container"],
|
|
27
|
-
conflictMap:
|
|
14
|
+
conflictMap: {}
|
|
28
15
|
};
|
|
29
16
|
const createBossMerge = (config = {}) => {
|
|
30
17
|
const resolved = resolveConfig(config);
|
|
@@ -84,13 +71,19 @@ const mergeClassList = (classList, config) => {
|
|
|
84
71
|
const parsedTokens = [];
|
|
85
72
|
const lastIndexByKey = /* @__PURE__ */ new Map();
|
|
86
73
|
for (const token of tokens.flatMap(expandGroupedSelector)) {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
74
|
+
const parsed = parseToken(token);
|
|
75
|
+
if (parsed) {
|
|
76
|
+
const { contexts, prop } = parsed;
|
|
77
|
+
const contextKey = normalizeContexts(contexts, config).join(":");
|
|
78
|
+
const exactKey = buildKey(contextKey, prop);
|
|
79
|
+
const previousExactIndex = lastIndexByKey.get(exactKey);
|
|
80
|
+
if (previousExactIndex !== void 0) parsedTokens[previousExactIndex] = { value: "" };
|
|
81
|
+
const shorthandConflicts = config.conflictMap.get(prop);
|
|
82
|
+
if (shorthandConflicts?.length) for (const longhand of shorthandConflicts) {
|
|
83
|
+
const previousLonghandIndex = lastIndexByKey.get(buildKey(contextKey, longhand));
|
|
84
|
+
if (previousLonghandIndex !== void 0) parsedTokens[previousLonghandIndex] = { value: "" };
|
|
92
85
|
}
|
|
93
|
-
|
|
86
|
+
lastIndexByKey.set(exactKey, parsedTokens.length);
|
|
94
87
|
}
|
|
95
88
|
parsedTokens.push({ value: token });
|
|
96
89
|
}
|
|
@@ -135,11 +128,11 @@ const splitSelectors = (input) => {
|
|
|
135
128
|
const expandGroupedSelector = (selector) => {
|
|
136
129
|
const grouped = parseGroupedSelector(selector);
|
|
137
130
|
if (!grouped) return [selector];
|
|
138
|
-
const nextEntries = grouped.entries.map((entry
|
|
139
|
-
name: entry
|
|
140
|
-
rawValue: entry
|
|
131
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
132
|
+
name: entry.name,
|
|
133
|
+
rawValue: entry.rawValue
|
|
141
134
|
}));
|
|
142
|
-
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
135
|
+
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
143
136
|
const [entry] = nextEntries;
|
|
144
137
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
145
138
|
};
|
|
@@ -207,16 +200,6 @@ const findGroupStart = (selector) => {
|
|
|
207
200
|
}
|
|
208
201
|
return -1;
|
|
209
202
|
};
|
|
210
|
-
const getConflictKeys = (token, config) => {
|
|
211
|
-
const parsed = parseToken(token);
|
|
212
|
-
if (!parsed) return null;
|
|
213
|
-
const { contexts, prop } = parsed;
|
|
214
|
-
const contextKey = normalizeContexts(contexts, config).join(":");
|
|
215
|
-
const keys = [buildKey(contextKey, prop)];
|
|
216
|
-
const longhands = config.conflictMap.get(prop);
|
|
217
|
-
if (longhands?.length) for (const longhand of longhands) keys.push(buildKey(contextKey, longhand));
|
|
218
|
-
return keys;
|
|
219
|
-
};
|
|
220
203
|
const parseToken = (token) => {
|
|
221
204
|
const grouped = parseGroupedSelector(token);
|
|
222
205
|
if (grouped) {
|
|
@@ -327,251 +310,6 @@ function createLruCache(maxCacheSize) {
|
|
|
327
310
|
}
|
|
328
311
|
};
|
|
329
312
|
}
|
|
330
|
-
function createDefaultConflictMap() {
|
|
331
|
-
const map = {};
|
|
332
|
-
map.margin = unique([
|
|
333
|
-
...physicalSides.map((side) => `margin-${side}`),
|
|
334
|
-
...logicalAxes.map((axis) => `margin-${axis}`),
|
|
335
|
-
...logicalSides.map((side) => `margin-${side}`)
|
|
336
|
-
]);
|
|
337
|
-
map["margin-block"] = ["margin-block-start", "margin-block-end"];
|
|
338
|
-
map["margin-inline"] = ["margin-inline-start", "margin-inline-end"];
|
|
339
|
-
map.padding = unique([
|
|
340
|
-
...physicalSides.map((side) => `padding-${side}`),
|
|
341
|
-
...logicalAxes.map((axis) => `padding-${axis}`),
|
|
342
|
-
...logicalSides.map((side) => `padding-${side}`)
|
|
343
|
-
]);
|
|
344
|
-
map["padding-block"] = ["padding-block-start", "padding-block-end"];
|
|
345
|
-
map["padding-inline"] = ["padding-inline-start", "padding-inline-end"];
|
|
346
|
-
map.inset = unique([
|
|
347
|
-
"top",
|
|
348
|
-
"right",
|
|
349
|
-
"bottom",
|
|
350
|
-
"left",
|
|
351
|
-
...logicalAxes.map((axis) => `inset-${axis}`),
|
|
352
|
-
...logicalSides.map((side) => `inset-${side}`)
|
|
353
|
-
]);
|
|
354
|
-
map["inset-block"] = ["inset-block-start", "inset-block-end"];
|
|
355
|
-
map["inset-inline"] = ["inset-inline-start", "inset-inline-end"];
|
|
356
|
-
const borderSideLonghands = (side) => borderSideVariants.map((variant) => `border-${side}-${variant}`);
|
|
357
|
-
const borderPhysicalSideLonghands = physicalSides.flatMap((side) => borderSideLonghands(side));
|
|
358
|
-
const borderLogicalSideLonghands = logicalSides.flatMap((side) => borderSideLonghands(side));
|
|
359
|
-
const borderAxisVariants = (axis) => borderSideVariants.map((variant) => `border-${axis}-${variant}`);
|
|
360
|
-
const borderAxisSides = (axis) => [`${axis}-start`, `${axis}-end`];
|
|
361
|
-
const borderAxisSideLonghands = (axis) => borderAxisSides(axis).flatMap((side) => borderSideLonghands(side));
|
|
362
|
-
const borderWidthLonghands = unique([
|
|
363
|
-
...physicalSides.map((side) => `border-${side}-width`),
|
|
364
|
-
...logicalSides.map((side) => `border-${side}-width`),
|
|
365
|
-
...logicalAxes.map((axis) => `border-${axis}-width`),
|
|
366
|
-
...logicalAxes.flatMap((axis) => borderAxisSides(axis).map((side) => `border-${side}-width`))
|
|
367
|
-
]);
|
|
368
|
-
const borderStyleLonghands = unique([
|
|
369
|
-
...physicalSides.map((side) => `border-${side}-style`),
|
|
370
|
-
...logicalSides.map((side) => `border-${side}-style`),
|
|
371
|
-
...logicalAxes.map((axis) => `border-${axis}-style`),
|
|
372
|
-
...logicalAxes.flatMap((axis) => borderAxisSides(axis).map((side) => `border-${side}-style`))
|
|
373
|
-
]);
|
|
374
|
-
const borderColorLonghands = unique([
|
|
375
|
-
...physicalSides.map((side) => `border-${side}-color`),
|
|
376
|
-
...logicalSides.map((side) => `border-${side}-color`),
|
|
377
|
-
...logicalAxes.map((axis) => `border-${axis}-color`),
|
|
378
|
-
...logicalAxes.flatMap((axis) => borderAxisSides(axis).map((side) => `border-${side}-color`))
|
|
379
|
-
]);
|
|
380
|
-
map.border = unique([
|
|
381
|
-
...physicalSides.map((side) => `border-${side}`),
|
|
382
|
-
...logicalSides.map((side) => `border-${side}`),
|
|
383
|
-
...logicalAxes.map((axis) => `border-${axis}`),
|
|
384
|
-
...borderPhysicalSideLonghands,
|
|
385
|
-
...borderLogicalSideLonghands,
|
|
386
|
-
...borderAxisVariants("block"),
|
|
387
|
-
...borderAxisVariants("inline"),
|
|
388
|
-
...borderAxisSideLonghands("block"),
|
|
389
|
-
...borderAxisSideLonghands("inline"),
|
|
390
|
-
"border-width",
|
|
391
|
-
"border-style",
|
|
392
|
-
"border-color"
|
|
393
|
-
]);
|
|
394
|
-
map["border-top"] = borderSideLonghands("top");
|
|
395
|
-
map["border-right"] = borderSideLonghands("right");
|
|
396
|
-
map["border-bottom"] = borderSideLonghands("bottom");
|
|
397
|
-
map["border-left"] = borderSideLonghands("left");
|
|
398
|
-
map["border-block"] = unique([
|
|
399
|
-
"border-block-start",
|
|
400
|
-
"border-block-end",
|
|
401
|
-
...borderAxisVariants("block"),
|
|
402
|
-
...borderAxisSideLonghands("block")
|
|
403
|
-
]);
|
|
404
|
-
map["border-inline"] = unique([
|
|
405
|
-
"border-inline-start",
|
|
406
|
-
"border-inline-end",
|
|
407
|
-
...borderAxisVariants("inline"),
|
|
408
|
-
...borderAxisSideLonghands("inline")
|
|
409
|
-
]);
|
|
410
|
-
map["border-block-start"] = borderSideLonghands("block-start");
|
|
411
|
-
map["border-block-end"] = borderSideLonghands("block-end");
|
|
412
|
-
map["border-inline-start"] = borderSideLonghands("inline-start");
|
|
413
|
-
map["border-inline-end"] = borderSideLonghands("inline-end");
|
|
414
|
-
map["border-width"] = borderWidthLonghands;
|
|
415
|
-
map["border-style"] = borderStyleLonghands;
|
|
416
|
-
map["border-color"] = borderColorLonghands;
|
|
417
|
-
map["border-block-width"] = ["border-block-start-width", "border-block-end-width"];
|
|
418
|
-
map["border-inline-width"] = ["border-inline-start-width", "border-inline-end-width"];
|
|
419
|
-
map["border-block-style"] = ["border-block-start-style", "border-block-end-style"];
|
|
420
|
-
map["border-inline-style"] = ["border-inline-start-style", "border-inline-end-style"];
|
|
421
|
-
map["border-block-color"] = ["border-block-start-color", "border-block-end-color"];
|
|
422
|
-
map["border-inline-color"] = ["border-inline-start-color", "border-inline-end-color"];
|
|
423
|
-
map["border-radius"] = [
|
|
424
|
-
"border-top-left-radius",
|
|
425
|
-
"border-top-right-radius",
|
|
426
|
-
"border-bottom-right-radius",
|
|
427
|
-
"border-bottom-left-radius",
|
|
428
|
-
"border-start-start-radius",
|
|
429
|
-
"border-start-end-radius",
|
|
430
|
-
"border-end-start-radius",
|
|
431
|
-
"border-end-end-radius"
|
|
432
|
-
];
|
|
433
|
-
map["border-image"] = [
|
|
434
|
-
"border-image-source",
|
|
435
|
-
"border-image-slice",
|
|
436
|
-
"border-image-width",
|
|
437
|
-
"border-image-outset",
|
|
438
|
-
"border-image-repeat"
|
|
439
|
-
];
|
|
440
|
-
map["background"] = [
|
|
441
|
-
"background-color",
|
|
442
|
-
"background-image",
|
|
443
|
-
"background-position",
|
|
444
|
-
"background-size",
|
|
445
|
-
"background-repeat",
|
|
446
|
-
"background-origin",
|
|
447
|
-
"background-clip",
|
|
448
|
-
"background-attachment"
|
|
449
|
-
];
|
|
450
|
-
map["background-position"] = ["background-position-x", "background-position-y"];
|
|
451
|
-
map["font"] = [
|
|
452
|
-
"font-style",
|
|
453
|
-
"font-variant",
|
|
454
|
-
"font-variant-ligatures",
|
|
455
|
-
"font-variant-caps",
|
|
456
|
-
"font-variant-numeric",
|
|
457
|
-
"font-variant-east-asian",
|
|
458
|
-
"font-weight",
|
|
459
|
-
"font-stretch",
|
|
460
|
-
"font-size",
|
|
461
|
-
"line-height",
|
|
462
|
-
"font-family"
|
|
463
|
-
];
|
|
464
|
-
map["font-variant"] = [
|
|
465
|
-
"font-variant-ligatures",
|
|
466
|
-
"font-variant-caps",
|
|
467
|
-
"font-variant-numeric",
|
|
468
|
-
"font-variant-east-asian"
|
|
469
|
-
];
|
|
470
|
-
map["list-style"] = [
|
|
471
|
-
"list-style-position",
|
|
472
|
-
"list-style-image",
|
|
473
|
-
"list-style-type"
|
|
474
|
-
];
|
|
475
|
-
map["grid"] = [
|
|
476
|
-
"grid-template",
|
|
477
|
-
"grid-template-rows",
|
|
478
|
-
"grid-template-columns",
|
|
479
|
-
"grid-template-areas",
|
|
480
|
-
"grid-auto-rows",
|
|
481
|
-
"grid-auto-columns",
|
|
482
|
-
"grid-auto-flow",
|
|
483
|
-
"grid-row",
|
|
484
|
-
"grid-row-start",
|
|
485
|
-
"grid-row-end",
|
|
486
|
-
"grid-column",
|
|
487
|
-
"grid-column-start",
|
|
488
|
-
"grid-column-end",
|
|
489
|
-
"grid-area"
|
|
490
|
-
];
|
|
491
|
-
map["grid-template"] = [
|
|
492
|
-
"grid-template-rows",
|
|
493
|
-
"grid-template-columns",
|
|
494
|
-
"grid-template-areas"
|
|
495
|
-
];
|
|
496
|
-
map["grid-row"] = ["grid-row-start", "grid-row-end"];
|
|
497
|
-
map["grid-column"] = ["grid-column-start", "grid-column-end"];
|
|
498
|
-
map["grid-area"] = [
|
|
499
|
-
"grid-row-start",
|
|
500
|
-
"grid-row-end",
|
|
501
|
-
"grid-column-start",
|
|
502
|
-
"grid-column-end"
|
|
503
|
-
];
|
|
504
|
-
map["flex"] = [
|
|
505
|
-
"flex-grow",
|
|
506
|
-
"flex-shrink",
|
|
507
|
-
"flex-basis"
|
|
508
|
-
];
|
|
509
|
-
map["flex-flow"] = ["flex-direction", "flex-wrap"];
|
|
510
|
-
map["gap"] = ["row-gap", "column-gap"];
|
|
511
|
-
map["overflow"] = ["overflow-x", "overflow-y"];
|
|
512
|
-
map["overscroll-behavior"] = ["overscroll-behavior-x", "overscroll-behavior-y"];
|
|
513
|
-
map["scroll-margin"] = unique([
|
|
514
|
-
...physicalSides.map((side) => `scroll-margin-${side}`),
|
|
515
|
-
...logicalAxes.map((axis) => `scroll-margin-${axis}`),
|
|
516
|
-
...logicalSides.map((side) => `scroll-margin-${side}`)
|
|
517
|
-
]);
|
|
518
|
-
map["scroll-margin-block"] = ["scroll-margin-block-start", "scroll-margin-block-end"];
|
|
519
|
-
map["scroll-margin-inline"] = ["scroll-margin-inline-start", "scroll-margin-inline-end"];
|
|
520
|
-
map["scroll-padding"] = unique([
|
|
521
|
-
...physicalSides.map((side) => `scroll-padding-${side}`),
|
|
522
|
-
...logicalAxes.map((axis) => `scroll-padding-${axis}`),
|
|
523
|
-
...logicalSides.map((side) => `scroll-padding-${side}`)
|
|
524
|
-
]);
|
|
525
|
-
map["scroll-padding-block"] = ["scroll-padding-block-start", "scroll-padding-block-end"];
|
|
526
|
-
map["scroll-padding-inline"] = ["scroll-padding-inline-start", "scroll-padding-inline-end"];
|
|
527
|
-
map["place-content"] = ["align-content", "justify-content"];
|
|
528
|
-
map["place-items"] = ["align-items", "justify-items"];
|
|
529
|
-
map["place-self"] = ["align-self", "justify-self"];
|
|
530
|
-
map["column-rule"] = [
|
|
531
|
-
"column-rule-width",
|
|
532
|
-
"column-rule-style",
|
|
533
|
-
"column-rule-color"
|
|
534
|
-
];
|
|
535
|
-
map["columns"] = ["column-width", "column-count"];
|
|
536
|
-
map["text-decoration"] = [
|
|
537
|
-
"text-decoration-line",
|
|
538
|
-
"text-decoration-style",
|
|
539
|
-
"text-decoration-color",
|
|
540
|
-
"text-decoration-thickness",
|
|
541
|
-
"text-decoration-skip-ink"
|
|
542
|
-
];
|
|
543
|
-
map["text-emphasis"] = [
|
|
544
|
-
"text-emphasis-style",
|
|
545
|
-
"text-emphasis-color",
|
|
546
|
-
"text-emphasis-position"
|
|
547
|
-
];
|
|
548
|
-
map["transition"] = [
|
|
549
|
-
"transition-property",
|
|
550
|
-
"transition-duration",
|
|
551
|
-
"transition-timing-function",
|
|
552
|
-
"transition-delay",
|
|
553
|
-
"transition-behavior"
|
|
554
|
-
];
|
|
555
|
-
map["animation"] = [
|
|
556
|
-
"animation-name",
|
|
557
|
-
"animation-duration",
|
|
558
|
-
"animation-timing-function",
|
|
559
|
-
"animation-delay",
|
|
560
|
-
"animation-iteration-count",
|
|
561
|
-
"animation-direction",
|
|
562
|
-
"animation-fill-mode",
|
|
563
|
-
"animation-play-state",
|
|
564
|
-
"animation-composition",
|
|
565
|
-
"animation-timeline",
|
|
566
|
-
"animation-range"
|
|
567
|
-
];
|
|
568
|
-
map["outline"] = [
|
|
569
|
-
"outline-color",
|
|
570
|
-
"outline-style",
|
|
571
|
-
"outline-width"
|
|
572
|
-
];
|
|
573
|
-
return map;
|
|
574
|
-
}
|
|
575
313
|
function normalizeConflictMap(conflictMap) {
|
|
576
314
|
const normalized = /* @__PURE__ */ new Map();
|
|
577
315
|
for (const [key, values] of Object.entries(conflictMap)) normalized.set(key, unique(values));
|
|
@@ -583,8 +321,7 @@ function unique(items) {
|
|
|
583
321
|
const isPlainObject = (value) => {
|
|
584
322
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
585
323
|
};
|
|
586
|
-
|
|
587
324
|
//#endregion
|
|
588
325
|
exports.createBossMerge = createBossMerge;
|
|
589
326
|
exports.join = join;
|
|
590
|
-
exports.merge = merge;
|
|
327
|
+
exports.merge = merge;
|