pasika 0.10.116 → 0.10.117
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/eslint/pasika/index.js +89 -1
- package/package.json +1 -1
|
@@ -10095,6 +10095,52 @@ function themeClasses(name) {
|
|
|
10095
10095
|
}
|
|
10096
10096
|
return ["bg", "text", "border", "fill", "stroke", "ring"].map((prefix) => `${prefix}-${stem}`);
|
|
10097
10097
|
}
|
|
10098
|
+
if (name.startsWith("--spacing-")) {
|
|
10099
|
+
const stem = name.slice("--spacing-".length);
|
|
10100
|
+
return [
|
|
10101
|
+
"p",
|
|
10102
|
+
"px",
|
|
10103
|
+
"py",
|
|
10104
|
+
"pt",
|
|
10105
|
+
"pr",
|
|
10106
|
+
"pb",
|
|
10107
|
+
"pl",
|
|
10108
|
+
"ps",
|
|
10109
|
+
"pe",
|
|
10110
|
+
"m",
|
|
10111
|
+
"mx",
|
|
10112
|
+
"my",
|
|
10113
|
+
"mt",
|
|
10114
|
+
"mr",
|
|
10115
|
+
"mb",
|
|
10116
|
+
"ml",
|
|
10117
|
+
"ms",
|
|
10118
|
+
"me",
|
|
10119
|
+
"w",
|
|
10120
|
+
"h",
|
|
10121
|
+
"size",
|
|
10122
|
+
"min-w",
|
|
10123
|
+
"min-h",
|
|
10124
|
+
"max-w",
|
|
10125
|
+
"max-h",
|
|
10126
|
+
"gap",
|
|
10127
|
+
"gap-x",
|
|
10128
|
+
"gap-y",
|
|
10129
|
+
"inset",
|
|
10130
|
+
"inset-x",
|
|
10131
|
+
"inset-y",
|
|
10132
|
+
"top",
|
|
10133
|
+
"right",
|
|
10134
|
+
"bottom",
|
|
10135
|
+
"left",
|
|
10136
|
+
"start",
|
|
10137
|
+
"end",
|
|
10138
|
+
"space-x",
|
|
10139
|
+
"space-y"
|
|
10140
|
+
].map((prefix) => `${prefix}-${stem}`);
|
|
10141
|
+
}
|
|
10142
|
+
if (name.startsWith("--aspect-")) return [`aspect-${name.slice("--aspect-".length)}`];
|
|
10143
|
+
if (name.startsWith("--leading-")) return [`leading-${name.slice("--leading-".length)}`];
|
|
10098
10144
|
if (name.startsWith("--animate-")) return [`animate-${name.slice("--animate-".length)}`];
|
|
10099
10145
|
if (name.startsWith("--radius-")) return [`rounded-${name.slice("--radius-".length)}`];
|
|
10100
10146
|
if (name.startsWith("--text-") || name.startsWith("--tracking-") || name.startsWith("--font-")) {
|
|
@@ -11567,6 +11613,47 @@ var PREFIX_NAMESPACES = {
|
|
|
11567
11613
|
"backdrop-blur": ["blur"],
|
|
11568
11614
|
"ring-offset": ["color"]
|
|
11569
11615
|
};
|
|
11616
|
+
var SPACING_UTILITY_PREFIXES = /* @__PURE__ */ new Set([
|
|
11617
|
+
"p",
|
|
11618
|
+
"px",
|
|
11619
|
+
"py",
|
|
11620
|
+
"pt",
|
|
11621
|
+
"pr",
|
|
11622
|
+
"pb",
|
|
11623
|
+
"pl",
|
|
11624
|
+
"ps",
|
|
11625
|
+
"pe",
|
|
11626
|
+
"m",
|
|
11627
|
+
"mx",
|
|
11628
|
+
"my",
|
|
11629
|
+
"mt",
|
|
11630
|
+
"mr",
|
|
11631
|
+
"mb",
|
|
11632
|
+
"ml",
|
|
11633
|
+
"ms",
|
|
11634
|
+
"me",
|
|
11635
|
+
"w",
|
|
11636
|
+
"h",
|
|
11637
|
+
"size",
|
|
11638
|
+
"min-w",
|
|
11639
|
+
"min-h",
|
|
11640
|
+
"max-w",
|
|
11641
|
+
"max-h",
|
|
11642
|
+
"gap",
|
|
11643
|
+
"gap-x",
|
|
11644
|
+
"gap-y",
|
|
11645
|
+
"inset",
|
|
11646
|
+
"inset-x",
|
|
11647
|
+
"inset-y",
|
|
11648
|
+
"top",
|
|
11649
|
+
"right",
|
|
11650
|
+
"bottom",
|
|
11651
|
+
"left",
|
|
11652
|
+
"start",
|
|
11653
|
+
"end",
|
|
11654
|
+
"space-x",
|
|
11655
|
+
"space-y"
|
|
11656
|
+
]);
|
|
11570
11657
|
var PREFIX_BUILTINS = {
|
|
11571
11658
|
bg: [
|
|
11572
11659
|
"none",
|
|
@@ -11944,7 +12031,7 @@ function isKnown(className, inventory) {
|
|
|
11944
12031
|
if (!utility.includes("-")) return true;
|
|
11945
12032
|
const dash = utility.indexOf("-");
|
|
11946
12033
|
const firstTwo = utility.split("-").slice(0, 2).join("-");
|
|
11947
|
-
const compound = PREFIX_NAMESPACES[firstTwo] ? firstTwo : void 0;
|
|
12034
|
+
const compound = PREFIX_NAMESPACES[firstTwo] || SPACING_UTILITY_PREFIXES.has(firstTwo) ? firstTwo : void 0;
|
|
11948
12035
|
const prefix = compound ?? utility.slice(0, dash);
|
|
11949
12036
|
const token = compound ? utility.slice(compound.length + 1) : utility.slice(dash + 1);
|
|
11950
12037
|
if (!token) return true;
|
|
@@ -11953,6 +12040,7 @@ function isKnown(className, inventory) {
|
|
|
11953
12040
|
const namespaces = PREFIX_NAMESPACES[prefix];
|
|
11954
12041
|
if (!namespaces) {
|
|
11955
12042
|
if (STATIC_VALUE_TOKENS[prefix]?.includes(token)) return true;
|
|
12043
|
+
if (SPACING_UTILITY_PREFIXES.has(prefix) && inventory.themeTokens.get("spacing")?.has(token)) return true;
|
|
11956
12044
|
const projectTokens = inventory.themeTokens.get(prefix);
|
|
11957
12045
|
if (projectTokens) {
|
|
11958
12046
|
if (projectTokens.has(token)) return true;
|