@kbach/react 0.5.10 → 0.5.12
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-VM3BMCFM.mjs → chunk-MAHH25VW.mjs} +2 -1
- package/dist/{chunk-FXDTPPTC.mjs → chunk-NBGURNUD.mjs} +4 -2
- package/dist/index.js +4 -2
- package/dist/index.mjs +1 -1
- package/dist/jsx-dev-runtime.js +5 -2
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +5 -2
- package/dist/jsx-runtime.mjs +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolve,
|
|
10
10
|
useConditionalWidth,
|
|
11
11
|
useGlobalDarkMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NBGURNUD.mjs";
|
|
13
13
|
|
|
14
14
|
// src/jsx-runtime.tsx
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs, Fragment } from "react/jsx-runtime";
|
|
@@ -187,6 +187,7 @@ function stripWebOnlyInlineProps(s) {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function processElement(type, rawProps, key, isStaticChildren) {
|
|
190
|
+
if (typeof type === "symbol") return makeElement(isStaticChildren, type, rawProps ?? {}, key);
|
|
190
191
|
if (!rawProps) return _jsx(type, null, key);
|
|
191
192
|
const { className, kb: kbProp, __kbachStyles, __kbachClasses } = rawProps;
|
|
192
193
|
const classStr = className ?? kbProp ?? __kbachClasses;
|
|
@@ -3263,8 +3263,6 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
3263
3263
|
}
|
|
3264
3264
|
function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new Set()) {
|
|
3265
3265
|
const result = {};
|
|
3266
|
-
const _df = getDefaultFontFamily();
|
|
3267
|
-
if (_df) result.fontFamily = _df;
|
|
3268
3266
|
const entries = Object.entries(resolved);
|
|
3269
3267
|
entries.sort((a, b) => {
|
|
3270
3268
|
const pa = a[0] === "base" ? -1 : a[0].split(":").length;
|
|
@@ -3282,6 +3280,10 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
|
|
|
3282
3280
|
Object.assign(result, styles);
|
|
3283
3281
|
}
|
|
3284
3282
|
}
|
|
3283
|
+
const _df = getDefaultFontFamily();
|
|
3284
|
+
if (_df && !("fontFamily" in result)) {
|
|
3285
|
+
result.fontFamily = _df;
|
|
3286
|
+
}
|
|
3285
3287
|
return result;
|
|
3286
3288
|
}
|
|
3287
3289
|
function matchesMods(mods, isDark, state, breakpoints) {
|
package/dist/index.js
CHANGED
|
@@ -3393,8 +3393,6 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new Set()) {
|
|
3395
3395
|
const result = {};
|
|
3396
|
-
const _df = getDefaultFontFamily();
|
|
3397
|
-
if (_df) result.fontFamily = _df;
|
|
3398
3396
|
const entries = Object.entries(resolved);
|
|
3399
3397
|
entries.sort((a, b) => {
|
|
3400
3398
|
const pa = a[0] === "base" ? -1 : a[0].split(":").length;
|
|
@@ -3412,6 +3410,10 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
|
|
|
3412
3410
|
Object.assign(result, styles);
|
|
3413
3411
|
}
|
|
3414
3412
|
}
|
|
3413
|
+
const _df = getDefaultFontFamily();
|
|
3414
|
+
if (_df && !("fontFamily" in result)) {
|
|
3415
|
+
result.fontFamily = _df;
|
|
3416
|
+
}
|
|
3415
3417
|
return result;
|
|
3416
3418
|
}
|
|
3417
3419
|
function matchesMods(mods, isDark, state, breakpoints) {
|
package/dist/index.mjs
CHANGED
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -3284,8 +3284,6 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new Set()) {
|
|
3286
3286
|
const result = {};
|
|
3287
|
-
const _df = getDefaultFontFamily();
|
|
3288
|
-
if (_df) result.fontFamily = _df;
|
|
3289
3287
|
const entries = Object.entries(resolved);
|
|
3290
3288
|
entries.sort((a, b) => {
|
|
3291
3289
|
const pa = a[0] === "base" ? -1 : a[0].split(":").length;
|
|
@@ -3303,6 +3301,10 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
|
|
|
3303
3301
|
Object.assign(result, styles);
|
|
3304
3302
|
}
|
|
3305
3303
|
}
|
|
3304
|
+
const _df = getDefaultFontFamily();
|
|
3305
|
+
if (_df && !("fontFamily" in result)) {
|
|
3306
|
+
result.fontFamily = _df;
|
|
3307
|
+
}
|
|
3306
3308
|
return result;
|
|
3307
3309
|
}
|
|
3308
3310
|
function matchesMods(mods, isDark, state, breakpoints) {
|
|
@@ -3868,6 +3870,7 @@ function stripWebOnlyInlineProps(s) {
|
|
|
3868
3870
|
}
|
|
3869
3871
|
}
|
|
3870
3872
|
function processElement(type, rawProps, key, isStaticChildren) {
|
|
3873
|
+
if (typeof type === "symbol") return makeElement(isStaticChildren, type, rawProps ?? {}, key);
|
|
3871
3874
|
if (!rawProps) return (0, import_jsx_runtime.jsx)(type, null, key);
|
|
3872
3875
|
const { className, kb: kbProp, __kbachStyles, __kbachClasses } = rawProps;
|
|
3873
3876
|
const classStr = className ?? kbProp ?? __kbachClasses;
|
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
Fragment,
|
|
3
3
|
jsx,
|
|
4
4
|
jsxs
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MAHH25VW.mjs";
|
|
6
|
+
import "./chunk-NBGURNUD.mjs";
|
|
7
7
|
|
|
8
8
|
// src/jsx-dev-runtime.tsx
|
|
9
9
|
function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -3283,8 +3283,6 @@ function resolve(classString, theme, darkMode = "attribute") {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new Set()) {
|
|
3285
3285
|
const result = {};
|
|
3286
|
-
const _df = getDefaultFontFamily();
|
|
3287
|
-
if (_df) result.fontFamily = _df;
|
|
3288
3286
|
const entries = Object.entries(resolved);
|
|
3289
3287
|
entries.sort((a, b) => {
|
|
3290
3288
|
const pa = a[0] === "base" ? -1 : a[0].split(":").length;
|
|
@@ -3302,6 +3300,10 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
|
|
|
3302
3300
|
Object.assign(result, styles);
|
|
3303
3301
|
}
|
|
3304
3302
|
}
|
|
3303
|
+
const _df = getDefaultFontFamily();
|
|
3304
|
+
if (_df && !("fontFamily" in result)) {
|
|
3305
|
+
result.fontFamily = _df;
|
|
3306
|
+
}
|
|
3305
3307
|
return result;
|
|
3306
3308
|
}
|
|
3307
3309
|
function matchesMods(mods, isDark, state, breakpoints) {
|
|
@@ -3867,6 +3869,7 @@ function stripWebOnlyInlineProps(s) {
|
|
|
3867
3869
|
}
|
|
3868
3870
|
}
|
|
3869
3871
|
function processElement(type, rawProps, key, isStaticChildren) {
|
|
3872
|
+
if (typeof type === "symbol") return makeElement(isStaticChildren, type, rawProps ?? {}, key);
|
|
3870
3873
|
if (!rawProps) return (0, import_jsx_runtime.jsx)(type, null, key);
|
|
3871
3874
|
const { className, kb: kbProp, __kbachStyles, __kbachClasses } = rawProps;
|
|
3872
3875
|
const classStr = className ?? kbProp ?? __kbachClasses;
|
package/dist/jsx-runtime.mjs
CHANGED