@kbach/react 0.5.58 → 0.5.59
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/{chunk-F5NQX5YO.mjs → chunk-2MVCYYH5.mjs} +1 -1
- package/dist/{chunk-EMSB47ES.mjs → chunk-HRNOI54V.mjs} +10 -2
- package/dist/{chunk-2HWRNTJG.mjs → chunk-NP4FVE77.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/jsx-dev-runtime.js +9 -1
- package/dist/jsx-dev-runtime.mjs +3 -3
- package/dist/jsx-runtime.js +9 -1
- package/dist/jsx-runtime.mjs +3 -3
- package/dist/vite-plugin.mjs +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
transformToWebProps,
|
|
7
7
|
useConditionalWidth,
|
|
8
8
|
useGlobalDarkMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2MVCYYH5.mjs";
|
|
10
10
|
import {
|
|
11
11
|
flatten,
|
|
12
12
|
getActiveBreakpoints,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
normalizeClassString,
|
|
23
23
|
onConfigChange,
|
|
24
24
|
resolve
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NP4FVE77.mjs";
|
|
26
26
|
|
|
27
27
|
// src/jsx-runtime.tsx
|
|
28
28
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -182,6 +182,14 @@ function processElement(type, rawProps, key, isStaticChildren) {
|
|
|
182
182
|
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
183
183
|
}, key);
|
|
184
184
|
}
|
|
185
|
+
if (classStr && !__kbachStyles && /^(__[^\s]+\s*)+$/.test(classStr.trim())) {
|
|
186
|
+
const { style: userStyle2, ...passProps2 } = omitConsumed(workingProps);
|
|
187
|
+
return makeElement(isStaticChildren, effectiveType, {
|
|
188
|
+
...passProps2,
|
|
189
|
+
className: classStr,
|
|
190
|
+
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
191
|
+
}, key);
|
|
192
|
+
}
|
|
185
193
|
if (!classStr && !__kbachStyles) {
|
|
186
194
|
if (isWeb) return makeElement(isStaticChildren, effectiveType, omitConsumed(workingProps), key);
|
|
187
195
|
const defaultFont = getCachedDefaultFont();
|
|
@@ -2856,7 +2856,7 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
2856
2856
|
for (const parsed of parseClasses(classString)) {
|
|
2857
2857
|
const styles = resolveUtility(parsed, theme);
|
|
2858
2858
|
if (!styles) {
|
|
2859
|
-
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility)) {
|
|
2859
|
+
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility) && !parsed.original.startsWith("__")) {
|
|
2860
2860
|
console.warn(`[kbach] Unknown utility "${parsed.utility}" in class "${parsed.original}"`);
|
|
2861
2861
|
}
|
|
2862
2862
|
continue;
|
package/dist/index.js
CHANGED
|
@@ -2984,7 +2984,7 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
2984
2984
|
for (const parsed of parseClasses(classString)) {
|
|
2985
2985
|
const styles = resolveUtility(parsed, theme);
|
|
2986
2986
|
if (!styles) {
|
|
2987
|
-
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility)) {
|
|
2987
|
+
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility) && !parsed.original.startsWith("__")) {
|
|
2988
2988
|
console.warn(`[kbach] Unknown utility "${parsed.utility}" in class "${parsed.original}"`);
|
|
2989
2989
|
}
|
|
2990
2990
|
continue;
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useConditionalWidth,
|
|
12
12
|
useGlobalDarkMode,
|
|
13
13
|
useGlobalWidth
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2MVCYYH5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__require,
|
|
17
17
|
buildConfig,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
syncGlobalScreens,
|
|
34
34
|
syncGlobalWidth,
|
|
35
35
|
updateConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NP4FVE77.mjs";
|
|
37
37
|
|
|
38
38
|
// src/context.tsx
|
|
39
39
|
import { createContext, useContext } from "react";
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -2862,7 +2862,7 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
2862
2862
|
for (const parsed of parseClasses(classString)) {
|
|
2863
2863
|
const styles = resolveUtility(parsed, theme);
|
|
2864
2864
|
if (!styles) {
|
|
2865
|
-
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility)) {
|
|
2865
|
+
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility) && !parsed.original.startsWith("__")) {
|
|
2866
2866
|
console.warn(`[kbach] Unknown utility "${parsed.utility}" in class "${parsed.original}"`);
|
|
2867
2867
|
}
|
|
2868
2868
|
continue;
|
|
@@ -3723,6 +3723,14 @@ function processElement(type, rawProps, key, isStaticChildren) {
|
|
|
3723
3723
|
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
3724
3724
|
}, key);
|
|
3725
3725
|
}
|
|
3726
|
+
if (classStr && !__kbachStyles && /^(__[^\s]+\s*)+$/.test(classStr.trim())) {
|
|
3727
|
+
const { style: userStyle2, ...passProps2 } = omitConsumed(workingProps);
|
|
3728
|
+
return makeElement(isStaticChildren, effectiveType, {
|
|
3729
|
+
...passProps2,
|
|
3730
|
+
className: classStr,
|
|
3731
|
+
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
3732
|
+
}, key);
|
|
3733
|
+
}
|
|
3726
3734
|
if (!classStr && !__kbachStyles) {
|
|
3727
3735
|
if (isWeb) return makeElement(isStaticChildren, effectiveType, omitConsumed(workingProps), key);
|
|
3728
3736
|
const defaultFont = getCachedDefaultFont();
|
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Fragment,
|
|
3
3
|
jsx,
|
|
4
4
|
jsxs
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HRNOI54V.mjs";
|
|
6
|
+
import "./chunk-2MVCYYH5.mjs";
|
|
7
|
+
import "./chunk-NP4FVE77.mjs";
|
|
8
8
|
|
|
9
9
|
// src/jsx-dev-runtime.tsx
|
|
10
10
|
function jsxDEV(type, props, key, isStaticChildren, source, self) {
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -2863,7 +2863,7 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
2863
2863
|
for (const parsed of parseClasses(classString)) {
|
|
2864
2864
|
const styles = resolveUtility(parsed, theme);
|
|
2865
2865
|
if (!styles) {
|
|
2866
|
-
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility)) {
|
|
2866
|
+
if (process.env.NODE_ENV !== "production" && !parsed.isArbitrary && !isKnownUtility(parsed.utility) && !parsed.original.startsWith("__")) {
|
|
2867
2867
|
console.warn(`[kbach] Unknown utility "${parsed.utility}" in class "${parsed.original}"`);
|
|
2868
2868
|
}
|
|
2869
2869
|
continue;
|
|
@@ -3729,6 +3729,14 @@ function processElement(type, rawProps, key, isStaticChildren) {
|
|
|
3729
3729
|
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
3730
3730
|
}, key);
|
|
3731
3731
|
}
|
|
3732
|
+
if (classStr && !__kbachStyles && /^(__[^\s]+\s*)+$/.test(classStr.trim())) {
|
|
3733
|
+
const { style: userStyle2, ...passProps2 } = omitConsumed(workingProps);
|
|
3734
|
+
return makeElement(isStaticChildren, effectiveType, {
|
|
3735
|
+
...passProps2,
|
|
3736
|
+
className: classStr,
|
|
3737
|
+
...userStyle2 !== void 0 ? { style: userStyle2 } : {}
|
|
3738
|
+
}, key);
|
|
3739
|
+
}
|
|
3732
3740
|
if (!classStr && !__kbachStyles) {
|
|
3733
3741
|
if (isWeb) return makeElement(isStaticChildren, effectiveType, omitConsumed(workingProps), key);
|
|
3734
3742
|
const defaultFont = getCachedDefaultFont();
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
_invalidateDefaultFontCache,
|
|
4
4
|
jsx,
|
|
5
5
|
jsxs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HRNOI54V.mjs";
|
|
7
7
|
import {
|
|
8
8
|
registerWebElement
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-2MVCYYH5.mjs";
|
|
10
|
+
import "./chunk-NP4FVE77.mjs";
|
|
11
11
|
export {
|
|
12
12
|
Fragment,
|
|
13
13
|
_invalidateDefaultFontCache,
|
package/dist/vite-plugin.mjs
CHANGED