@kbach/react 0.5.5 → 0.5.6
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-UR4DTYE3.mjs → chunk-BQJS4P2Z.mjs} +1 -1
- package/dist/{chunk-D7Q7ZCOW.mjs → chunk-MNDU7U43.mjs} +15 -10
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +15 -10
- package/dist/index.mjs +1 -1
- package/dist/jsx-dev-runtime.js +15 -10
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +15 -10
- package/dist/jsx-runtime.mjs +2 -2
- package/package.json +1 -1
|
@@ -3384,16 +3384,21 @@ function buildConfig(userConfig) {
|
|
|
3384
3384
|
if (userConfig.theme) {
|
|
3385
3385
|
theme = deepMerge(theme, userConfig.theme);
|
|
3386
3386
|
}
|
|
3387
|
-
if (userConfig.extend
|
|
3388
|
-
const
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
)
|
|
3395
|
-
|
|
3396
|
-
|
|
3387
|
+
if (userConfig.extend) {
|
|
3388
|
+
const { theme: nestedTheme, ...directKeys } = userConfig.extend;
|
|
3389
|
+
const extSources = [];
|
|
3390
|
+
if (nestedTheme) extSources.push(nestedTheme);
|
|
3391
|
+
if (Object.keys(directKeys).length) extSources.push(directKeys);
|
|
3392
|
+
for (const ext of extSources) {
|
|
3393
|
+
for (const [key, value] of Object.entries(ext)) {
|
|
3394
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
3395
|
+
theme[key] = deepMerge(
|
|
3396
|
+
theme[key] ?? {},
|
|
3397
|
+
value
|
|
3398
|
+
);
|
|
3399
|
+
} else if (value !== void 0) {
|
|
3400
|
+
theme[key] = value;
|
|
3401
|
+
}
|
|
3397
3402
|
}
|
|
3398
3403
|
}
|
|
3399
3404
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -57,9 +57,10 @@ interface PluginAPI {
|
|
|
57
57
|
interface FrameworkConfig {
|
|
58
58
|
darkMode?: DarkMode;
|
|
59
59
|
theme?: Partial<ThemeConfig>;
|
|
60
|
+
/** Additive theme extension — accepts either `extend.theme.X` or `extend.X` directly. */
|
|
60
61
|
extend?: {
|
|
61
62
|
theme?: Partial<ThemeConfig>;
|
|
62
|
-
}
|
|
63
|
+
} & Partial<ThemeConfig>;
|
|
63
64
|
plugins?: Array<(api: PluginAPI) => void>;
|
|
64
65
|
content?: string[];
|
|
65
66
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -57,9 +57,10 @@ interface PluginAPI {
|
|
|
57
57
|
interface FrameworkConfig {
|
|
58
58
|
darkMode?: DarkMode;
|
|
59
59
|
theme?: Partial<ThemeConfig>;
|
|
60
|
+
/** Additive theme extension — accepts either `extend.theme.X` or `extend.X` directly. */
|
|
60
61
|
extend?: {
|
|
61
62
|
theme?: Partial<ThemeConfig>;
|
|
62
|
-
}
|
|
63
|
+
} & Partial<ThemeConfig>;
|
|
63
64
|
plugins?: Array<(api: PluginAPI) => void>;
|
|
64
65
|
content?: string[];
|
|
65
66
|
}
|
package/dist/index.js
CHANGED
|
@@ -3514,16 +3514,21 @@ function buildConfig(userConfig) {
|
|
|
3514
3514
|
if (userConfig.theme) {
|
|
3515
3515
|
theme = deepMerge(theme, userConfig.theme);
|
|
3516
3516
|
}
|
|
3517
|
-
if (userConfig.extend
|
|
3518
|
-
const
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
)
|
|
3525
|
-
|
|
3526
|
-
|
|
3517
|
+
if (userConfig.extend) {
|
|
3518
|
+
const { theme: nestedTheme, ...directKeys } = userConfig.extend;
|
|
3519
|
+
const extSources = [];
|
|
3520
|
+
if (nestedTheme) extSources.push(nestedTheme);
|
|
3521
|
+
if (Object.keys(directKeys).length) extSources.push(directKeys);
|
|
3522
|
+
for (const ext of extSources) {
|
|
3523
|
+
for (const [key, value] of Object.entries(ext)) {
|
|
3524
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
3525
|
+
theme[key] = deepMerge(
|
|
3526
|
+
theme[key] ?? {},
|
|
3527
|
+
value
|
|
3528
|
+
);
|
|
3529
|
+
} else if (value !== void 0) {
|
|
3530
|
+
theme[key] = value;
|
|
3531
|
+
}
|
|
3527
3532
|
}
|
|
3528
3533
|
}
|
|
3529
3534
|
}
|
package/dist/index.mjs
CHANGED
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -3397,16 +3397,21 @@ function buildConfig(userConfig) {
|
|
|
3397
3397
|
if (userConfig.theme) {
|
|
3398
3398
|
theme = deepMerge(theme, userConfig.theme);
|
|
3399
3399
|
}
|
|
3400
|
-
if (userConfig.extend
|
|
3401
|
-
const
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
)
|
|
3408
|
-
|
|
3409
|
-
|
|
3400
|
+
if (userConfig.extend) {
|
|
3401
|
+
const { theme: nestedTheme, ...directKeys } = userConfig.extend;
|
|
3402
|
+
const extSources = [];
|
|
3403
|
+
if (nestedTheme) extSources.push(nestedTheme);
|
|
3404
|
+
if (Object.keys(directKeys).length) extSources.push(directKeys);
|
|
3405
|
+
for (const ext of extSources) {
|
|
3406
|
+
for (const [key, value] of Object.entries(ext)) {
|
|
3407
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
3408
|
+
theme[key] = deepMerge(
|
|
3409
|
+
theme[key] ?? {},
|
|
3410
|
+
value
|
|
3411
|
+
);
|
|
3412
|
+
} else if (value !== void 0) {
|
|
3413
|
+
theme[key] = value;
|
|
3414
|
+
}
|
|
3410
3415
|
}
|
|
3411
3416
|
}
|
|
3412
3417
|
}
|
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-BQJS4P2Z.mjs";
|
|
6
|
+
import "./chunk-MNDU7U43.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
|
@@ -3396,16 +3396,21 @@ function buildConfig(userConfig) {
|
|
|
3396
3396
|
if (userConfig.theme) {
|
|
3397
3397
|
theme = deepMerge(theme, userConfig.theme);
|
|
3398
3398
|
}
|
|
3399
|
-
if (userConfig.extend
|
|
3400
|
-
const
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
)
|
|
3407
|
-
|
|
3408
|
-
|
|
3399
|
+
if (userConfig.extend) {
|
|
3400
|
+
const { theme: nestedTheme, ...directKeys } = userConfig.extend;
|
|
3401
|
+
const extSources = [];
|
|
3402
|
+
if (nestedTheme) extSources.push(nestedTheme);
|
|
3403
|
+
if (Object.keys(directKeys).length) extSources.push(directKeys);
|
|
3404
|
+
for (const ext of extSources) {
|
|
3405
|
+
for (const [key, value] of Object.entries(ext)) {
|
|
3406
|
+
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
3407
|
+
theme[key] = deepMerge(
|
|
3408
|
+
theme[key] ?? {},
|
|
3409
|
+
value
|
|
3410
|
+
);
|
|
3411
|
+
} else if (value !== void 0) {
|
|
3412
|
+
theme[key] = value;
|
|
3413
|
+
}
|
|
3409
3414
|
}
|
|
3410
3415
|
}
|
|
3411
3416
|
}
|
package/dist/jsx-runtime.mjs
CHANGED