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,9 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_defaults = require(
|
|
3
|
-
const require_api = require(
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_defaults = require("./defaults.cjs");
|
|
3
|
+
const require_api = require("./api.cjs");
|
|
4
4
|
let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
|
|
5
|
-
_boss_css_is_css_prop =
|
|
6
|
-
|
|
5
|
+
_boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
|
|
7
6
|
//#region src/eslint-plugin/utils/boss-classes.js
|
|
8
7
|
const whitespaceRegexp = /\s/;
|
|
9
8
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
@@ -172,7 +171,6 @@ const findInvalidTokens = (classList, options) => {
|
|
|
172
171
|
const containsBossToken = (classList, options) => {
|
|
173
172
|
return splitClassList(classList).some((token) => isValidBossToken(token, options));
|
|
174
173
|
};
|
|
175
|
-
|
|
176
174
|
//#endregion
|
|
177
175
|
exports.containsBossToken = containsBossToken;
|
|
178
176
|
exports.findInvalidTokens = findInvalidTokens;
|
|
@@ -182,4 +180,4 @@ exports.getDictionaryEntry = getDictionaryEntry;
|
|
|
182
180
|
exports.isCssPropName = isCssPropName;
|
|
183
181
|
exports.parseGroupedSelector = parseGroupedSelector;
|
|
184
182
|
exports.splitClassList = splitClassList;
|
|
185
|
-
exports.splitFragments = splitFragments;
|
|
183
|
+
exports.splitFragments = splitFragments;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getDefaultContexts } from "./defaults.mjs";
|
|
2
2
|
import { getApi } from "./api.mjs";
|
|
3
3
|
import isCSSProp from "@boss-css/is-css-prop";
|
|
4
|
-
|
|
5
4
|
//#region src/eslint-plugin/utils/boss-classes.js
|
|
6
5
|
const whitespaceRegexp = /\s/;
|
|
7
6
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
@@ -170,6 +169,5 @@ const findInvalidTokens = (classList, options) => {
|
|
|
170
169
|
const containsBossToken = (classList, options) => {
|
|
171
170
|
return splitClassList(classList).some((token) => isValidBossToken(token, options));
|
|
172
171
|
};
|
|
173
|
-
|
|
174
172
|
//#endregion
|
|
175
|
-
export { containsBossToken, findInvalidTokens, getContextSet, getDictionary, getDictionaryEntry, isCssPropName, parseGroupedSelector, splitClassList, splitFragments };
|
|
173
|
+
export { containsBossToken, findInvalidTokens, getContextSet, getDictionary, getDictionaryEntry, isCssPropName, parseGroupedSelector, splitClassList, splitFragments };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/eslint-plugin/utils/context.js
|
|
3
2
|
const getSourceCode = (context) => {
|
|
4
3
|
if (typeof context?.getSourceCode === "function") return context.getSourceCode();
|
|
5
4
|
return context?.sourceCode ?? null;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
|
-
exports.getSourceCode = getSourceCode;
|
|
7
|
+
exports.getSourceCode = getSourceCode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/eslint-plugin/utils/defaults.js
|
|
3
2
|
const DEFAULT_ATTRIBUTE_PATTERNS = ["^class(?:Name)?$"];
|
|
4
3
|
const DEFAULT_CALLEE_PATTERNS = [
|
|
@@ -89,11 +88,10 @@ const getDefaultContexts = () => {
|
|
|
89
88
|
contexts.add("hdpi");
|
|
90
89
|
return contexts;
|
|
91
90
|
};
|
|
92
|
-
|
|
93
91
|
//#endregion
|
|
94
92
|
exports.DEFAULT_ATTRIBUTE_PATTERNS = DEFAULT_ATTRIBUTE_PATTERNS;
|
|
95
93
|
exports.DEFAULT_CALLEE_PATTERNS = DEFAULT_CALLEE_PATTERNS;
|
|
96
94
|
exports.DEFAULT_COMPONENTS = DEFAULT_COMPONENTS;
|
|
97
95
|
exports.DEFAULT_TAG_PATTERNS = DEFAULT_TAG_PATTERNS;
|
|
98
96
|
exports.DEFAULT_VARIABLE_PATTERNS = DEFAULT_VARIABLE_PATTERNS;
|
|
99
|
-
exports.getDefaultContexts = getDefaultContexts;
|
|
97
|
+
exports.getDefaultContexts = getDefaultContexts;
|
|
@@ -88,6 +88,5 @@ const getDefaultContexts = () => {
|
|
|
88
88
|
contexts.add("hdpi");
|
|
89
89
|
return contexts;
|
|
90
90
|
};
|
|
91
|
-
|
|
92
91
|
//#endregion
|
|
93
|
-
export { DEFAULT_ATTRIBUTE_PATTERNS, DEFAULT_CALLEE_PATTERNS, DEFAULT_COMPONENTS, DEFAULT_TAG_PATTERNS, DEFAULT_VARIABLE_PATTERNS, getDefaultContexts };
|
|
92
|
+
export { DEFAULT_ATTRIBUTE_PATTERNS, DEFAULT_CALLEE_PATTERNS, DEFAULT_COMPONENTS, DEFAULT_TAG_PATTERNS, DEFAULT_VARIABLE_PATTERNS, getDefaultContexts };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/eslint-plugin/utils/format.js
|
|
3
2
|
const escapeString = (value, quote) => {
|
|
4
3
|
let escaped = value.replace(/\\/g, "\\\\");
|
|
@@ -15,6 +14,5 @@ const buildLiteralReplacement = (node, sourceCode, value) => {
|
|
|
15
14
|
const quote = raw && (raw[0] === "\"" || raw[0] === "'") ? raw[0] : "\"";
|
|
16
15
|
return `${quote}${escapeString(value, quote)}${quote}`;
|
|
17
16
|
};
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
exports.buildLiteralReplacement = buildLiteralReplacement;
|
|
18
|
+
exports.buildLiteralReplacement = buildLiteralReplacement;
|
|
@@ -14,6 +14,5 @@ const buildLiteralReplacement = (node, sourceCode, value) => {
|
|
|
14
14
|
const quote = raw && (raw[0] === "\"" || raw[0] === "'") ? raw[0] : "\"";
|
|
15
15
|
return `${quote}${escapeString(value, quote)}${quote}`;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
|
-
export { buildLiteralReplacement };
|
|
18
|
+
export { buildLiteralReplacement };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_boss_classes = require(
|
|
2
|
-
const require_property_order = require(
|
|
3
|
-
|
|
1
|
+
const require_boss_classes = require("./boss-classes.cjs");
|
|
2
|
+
const require_property_order = require("./property-order.cjs");
|
|
4
3
|
//#region src/eslint-plugin/utils/order.js
|
|
5
4
|
const dashToCamelCase = (str) => str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
6
5
|
const getOrderMap = () => {
|
|
@@ -71,6 +70,5 @@ const sortTokens = (tokens, options) => {
|
|
|
71
70
|
}
|
|
72
71
|
return Array.from(grouped.values()).flat();
|
|
73
72
|
};
|
|
74
|
-
|
|
75
73
|
//#endregion
|
|
76
|
-
exports.sortTokens = sortTokens;
|
|
74
|
+
exports.sortTokens = sortTokens;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getDictionary, getDictionaryEntry, isCssPropName, parseGroupedSelector, splitFragments } from "./boss-classes.mjs";
|
|
2
2
|
import { propertyOrder } from "./property-order.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/eslint-plugin/utils/order.js
|
|
5
4
|
const dashToCamelCase = (str) => str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
6
5
|
const getOrderMap = () => {
|
|
@@ -71,6 +70,5 @@ const sortTokens = (tokens, options) => {
|
|
|
71
70
|
}
|
|
72
71
|
return Array.from(grouped.values()).flat();
|
|
73
72
|
};
|
|
74
|
-
|
|
75
73
|
//#endregion
|
|
76
|
-
export { sortTokens };
|
|
74
|
+
export { sortTokens };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/eslint-plugin/utils/property-order.js
|
|
3
2
|
const propertyOrder = [
|
|
4
3
|
"composes",
|
|
@@ -444,6 +443,5 @@ const propertyOrder = [
|
|
|
444
443
|
"widows",
|
|
445
444
|
"orphans"
|
|
446
445
|
];
|
|
447
|
-
|
|
448
446
|
//#endregion
|
|
449
|
-
exports.propertyOrder = propertyOrder;
|
|
447
|
+
exports.propertyOrder = propertyOrder;
|
|
@@ -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,8 +1,8 @@
|
|
|
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/;
|
|
@@ -128,11 +128,11 @@ const splitSelectors = (input) => {
|
|
|
128
128
|
const expandGroupedSelector = (selector) => {
|
|
129
129
|
const grouped = parseGroupedSelector(selector);
|
|
130
130
|
if (!grouped) return [selector];
|
|
131
|
-
const nextEntries = grouped.entries.map((entry
|
|
132
|
-
name: entry
|
|
133
|
-
rawValue: entry
|
|
131
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
132
|
+
name: entry.name,
|
|
133
|
+
rawValue: entry.rawValue
|
|
134
134
|
}));
|
|
135
|
-
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}`);
|
|
136
136
|
const [entry] = nextEntries;
|
|
137
137
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
138
138
|
};
|
|
@@ -321,8 +321,7 @@ function unique(items) {
|
|
|
321
321
|
const isPlainObject = (value) => {
|
|
322
322
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
323
323
|
};
|
|
324
|
-
|
|
325
324
|
//#endregion
|
|
326
325
|
exports.createBossMerge = createBossMerge;
|
|
327
326
|
exports.join = join;
|
|
328
|
-
exports.merge = merge;
|
|
327
|
+
exports.merge = merge;
|
package/dist/merge/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { merge as merge$1 } from "ts-deepmerge";
|
|
2
2
|
import isCSSProp from "@boss-css/is-css-prop";
|
|
3
|
-
|
|
4
3
|
//#region src/merge/index.ts
|
|
5
4
|
const cssPropCache = /* @__PURE__ */ new Map();
|
|
6
5
|
const whitespaceRegexp = /\s/;
|
|
@@ -126,11 +125,11 @@ const splitSelectors = (input) => {
|
|
|
126
125
|
const expandGroupedSelector = (selector) => {
|
|
127
126
|
const grouped = parseGroupedSelector(selector);
|
|
128
127
|
if (!grouped) return [selector];
|
|
129
|
-
const nextEntries = grouped.entries.map((entry
|
|
130
|
-
name: entry
|
|
131
|
-
rawValue: entry
|
|
128
|
+
const nextEntries = grouped.entries.map((entry) => ({
|
|
129
|
+
name: entry.name,
|
|
130
|
+
rawValue: entry.rawValue
|
|
132
131
|
}));
|
|
133
|
-
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry
|
|
132
|
+
if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
|
|
134
133
|
const [entry] = nextEntries;
|
|
135
134
|
return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
|
|
136
135
|
};
|
|
@@ -319,6 +318,5 @@ function unique(items) {
|
|
|
319
318
|
const isPlainObject = (value) => {
|
|
320
319
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
321
320
|
};
|
|
322
|
-
|
|
323
321
|
//#endregion
|
|
324
|
-
export { createBossMerge, join, merge };
|
|
322
|
+
export { createBossMerge, join, merge };
|
package/dist/native/browser.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_use_token_runtime_only = require("../use/token/runtime-only.cjs");
|
|
3
3
|
//#region src/native/browser.ts
|
|
4
4
|
const ignoredProps = new Set([
|
|
5
5
|
"ref",
|
|
@@ -85,7 +85,6 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
|
|
|
85
85
|
}
|
|
86
86
|
output.style = [output.style, bossStyle];
|
|
87
87
|
};
|
|
88
|
-
|
|
89
88
|
//#endregion
|
|
90
89
|
exports.name = name;
|
|
91
|
-
exports.onBrowserObjectStart = onBrowserObjectStart;
|
|
90
|
+
exports.onBrowserObjectStart = onBrowserObjectStart;
|
package/dist/native/browser.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { resolveRuntimeToken } from "../use/token/runtime-only.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/native/browser.ts
|
|
4
3
|
const ignoredProps = new Set([
|
|
5
4
|
"ref",
|
|
@@ -85,6 +84,5 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
|
|
|
85
84
|
}
|
|
86
85
|
output.style = [output.style, bossStyle];
|
|
87
86
|
};
|
|
88
|
-
|
|
89
87
|
//#endregion
|
|
90
|
-
export { name, onBrowserObjectStart };
|
|
88
|
+
export { name, onBrowserObjectStart };
|
package/dist/native/server.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
const require_extractCode = require("../parser/jsx/extractCode.cjs");
|
|
4
|
+
const require_extractPrepared = require("../parser/jsx/extractPrepared.cjs");
|
|
5
|
+
const require_extractProps = require("../parser/jsx/extractProps.cjs");
|
|
6
|
+
const require_styleTypes = require("./styleTypes.cjs");
|
|
6
7
|
let ts_deepmerge = require("ts-deepmerge");
|
|
7
|
-
|
|
8
8
|
//#region src/native/server.ts
|
|
9
9
|
const name = "native";
|
|
10
10
|
const settings = new Map([
|
|
@@ -172,9 +172,8 @@ const onParse = async (api, input) => {
|
|
|
172
172
|
}
|
|
173
173
|
if (preparedDirty) syncPreparedDts(api);
|
|
174
174
|
};
|
|
175
|
-
|
|
176
175
|
//#endregion
|
|
177
176
|
exports.name = name;
|
|
178
177
|
exports.onBoot = onBoot;
|
|
179
178
|
exports.onParse = onParse;
|
|
180
|
-
exports.settings = settings;
|
|
179
|
+
exports.settings = settings;
|
package/dist/native/server.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { extractPreparedComponents } from "../parser/jsx/extractPrepared.mjs";
|
|
|
3
3
|
import { extractPropTrees } from "../parser/jsx/extractProps.mjs";
|
|
4
4
|
import { loadReactNativeStyleProps } from "./styleTypes.mjs";
|
|
5
5
|
import { merge } from "ts-deepmerge";
|
|
6
|
-
|
|
7
6
|
//#region src/native/server.ts
|
|
8
7
|
const name = "native";
|
|
9
8
|
const settings = new Map([
|
|
@@ -171,6 +170,5 @@ const onParse = async (api, input) => {
|
|
|
171
170
|
}
|
|
172
171
|
if (preparedDirty) syncPreparedDts(api);
|
|
173
172
|
};
|
|
174
|
-
|
|
175
173
|
//#endregion
|
|
176
|
-
export { name, onBoot, onParse, settings };
|
|
174
|
+
export { name, onBoot, onParse, settings };
|
|
@@ -1,12 +1,11 @@
|
|
|
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 =
|
|
5
|
+
node_path = require_runtime.__toESM(node_path);
|
|
6
6
|
let fast_glob = require("fast-glob");
|
|
7
|
-
fast_glob =
|
|
7
|
+
fast_glob = require_runtime.__toESM(fast_glob);
|
|
8
8
|
let node_module = require("node:module");
|
|
9
|
-
|
|
10
9
|
//#region src/native/styleTypes.ts
|
|
11
10
|
const interfaceNames = new Set([
|
|
12
11
|
"ViewStyle",
|
|
@@ -163,6 +162,5 @@ const loadReactNativeStyleProps = async () => {
|
|
|
163
162
|
sourcePath: typesFile
|
|
164
163
|
};
|
|
165
164
|
};
|
|
166
|
-
|
|
167
165
|
//#endregion
|
|
168
|
-
exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
|
|
166
|
+
exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
|
|
@@ -2,7 +2,6 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
|
-
|
|
6
5
|
//#region src/native/styleTypes.ts
|
|
7
6
|
const interfaceNames = new Set([
|
|
8
7
|
"ViewStyle",
|
|
@@ -159,6 +158,5 @@ const loadReactNativeStyleProps = async () => {
|
|
|
159
158
|
sourcePath: typesFile
|
|
160
159
|
};
|
|
161
160
|
};
|
|
162
|
-
|
|
163
161
|
//#endregion
|
|
164
|
-
export { loadReactNativeStyleProps };
|
|
162
|
+
export { loadReactNativeStyleProps };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/parser/classname/server.ts
|
|
4
|
-
var server_exports = /* @__PURE__ */
|
|
3
|
+
var server_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.cjs").__exportAll({
|
|
5
4
|
name: () => name,
|
|
6
5
|
onParse: () => onParse
|
|
7
6
|
});
|
|
@@ -93,17 +92,17 @@ const extractPropTree = async (string, api) => {
|
|
|
93
92
|
selectors.forEach((selector) => {
|
|
94
93
|
const grouped = parseGroupedSelector(selector);
|
|
95
94
|
if (grouped) {
|
|
96
|
-
const rawFragments
|
|
97
|
-
if (!resolveDescriptor(stripImportantSuffix(rawFragments
|
|
98
|
-
const fragments = expandFragments(rawFragments
|
|
95
|
+
const rawFragments = splitFragments(grouped.prefix);
|
|
96
|
+
if (!resolveDescriptor(stripImportantSuffix(rawFragments[0])).descriptor || rawFragments.length === 0) return;
|
|
97
|
+
const fragments = expandFragments(rawFragments);
|
|
99
98
|
grouped.entries.forEach(({ name, rawValue }) => {
|
|
100
99
|
if (!resolveDescriptor(name).descriptor?.isCSSProp) return;
|
|
101
|
-
const { value
|
|
102
|
-
const prop = { value
|
|
103
|
-
if (important
|
|
104
|
-
const path
|
|
105
|
-
const key = pathKey(path
|
|
106
|
-
createPropPath([...path
|
|
100
|
+
const { value, important } = parseImportantValue(rawValue);
|
|
101
|
+
const prop = { value };
|
|
102
|
+
if (important) prop.important = true;
|
|
103
|
+
const path = [...fragments, name];
|
|
104
|
+
const key = pathKey(path);
|
|
105
|
+
createPropPath([...path], prop, tree);
|
|
107
106
|
selectorTokens.set(key, selector);
|
|
108
107
|
});
|
|
109
108
|
return;
|
|
@@ -263,13 +262,12 @@ const applySelectorTokens = (tree, selectorTokens, path = []) => {
|
|
|
263
262
|
if (prop.value && typeof prop.value === "object" && !Array.isArray(prop.value)) applySelectorTokens(prop.value, selectorTokens, nextPath);
|
|
264
263
|
});
|
|
265
264
|
};
|
|
266
|
-
|
|
267
265
|
//#endregion
|
|
268
266
|
exports.name = name;
|
|
269
267
|
exports.onParse = onParse;
|
|
270
|
-
Object.defineProperty(exports,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
});
|
|
268
|
+
Object.defineProperty(exports, "server_exports", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function() {
|
|
271
|
+
return server_exports;
|
|
272
|
+
}
|
|
273
|
+
});
|