@kbach/react 0.6.45 → 0.6.46

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.
@@ -26,7 +26,7 @@ import {
26
26
  transformToWebProps,
27
27
  useConditionalGlobalDarkMode,
28
28
  useConditionalWidth
29
- } from "./chunk-VB6KOAZZ.mjs";
29
+ } from "./chunk-FYVFEEFX.mjs";
30
30
 
31
31
  // src/jsx-runtime.tsx
32
32
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -3442,7 +3442,8 @@ function buildConfig(userConfig) {
3442
3442
  }
3443
3443
  const rawSans = theme.fontFamily?.sans;
3444
3444
  const sansFontValue = Array.isArray(rawSans) ? rawSans[0] : rawSans;
3445
- setDefaultFontFamily(sansFontValue && sansFontValue !== "System" ? sansFontValue : void 0);
3445
+ const nativeSansFont = sansFontValue?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
3446
+ setDefaultFontFamily(nativeSansFont && nativeSansFont !== "System" ? nativeSansFont : void 0);
3446
3447
  injectGlobalStyles(resolved.theme);
3447
3448
  return resolved;
3448
3449
  }
@@ -3540,7 +3540,8 @@ function buildConfig(userConfig) {
3540
3540
  }
3541
3541
  const rawSans = theme.fontFamily?.sans;
3542
3542
  const sansFontValue = Array.isArray(rawSans) ? rawSans[0] : rawSans;
3543
- setDefaultFontFamily(sansFontValue && sansFontValue !== "System" ? sansFontValue : void 0);
3543
+ const nativeSansFont = sansFontValue?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
3544
+ setDefaultFontFamily(nativeSansFont && nativeSansFont !== "System" ? nativeSansFont : void 0);
3544
3545
  injectGlobalStyles(resolved.theme);
3545
3546
  return resolved;
3546
3547
  }
package/dist/index.mjs CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  useGlobalDarkMode,
49
49
  useGlobalWidth,
50
50
  useSyncExternalStore
51
- } from "./chunk-VB6KOAZZ.mjs";
51
+ } from "./chunk-FYVFEEFX.mjs";
52
52
 
53
53
  // src/context.tsx
54
54
  import { createContext, useContext } from "react";
@@ -3,8 +3,8 @@ import {
3
3
  Fragment,
4
4
  jsx,
5
5
  jsxs
6
- } from "./chunk-ERIVGK24.mjs";
7
- import "./chunk-VB6KOAZZ.mjs";
6
+ } from "./chunk-4Y44K364.mjs";
7
+ import "./chunk-FYVFEEFX.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
10
  function jsxDEV(type, props, key, isStaticChildren, source, self) {
@@ -4,10 +4,10 @@ import {
4
4
  _invalidateDefaultFontCache,
5
5
  jsx,
6
6
  jsxs
7
- } from "./chunk-ERIVGK24.mjs";
7
+ } from "./chunk-4Y44K364.mjs";
8
8
  import {
9
9
  registerWebElement
10
- } from "./chunk-VB6KOAZZ.mjs";
10
+ } from "./chunk-FYVFEEFX.mjs";
11
11
  export {
12
12
  Fragment,
13
13
  _invalidateDefaultFontCache,
@@ -3212,7 +3212,8 @@ function buildConfig(userConfig) {
3212
3212
  }
3213
3213
  const rawSans = theme.fontFamily?.sans;
3214
3214
  const sansFontValue = Array.isArray(rawSans) ? rawSans[0] : rawSans;
3215
- setDefaultFontFamily(sansFontValue && sansFontValue !== "System" ? sansFontValue : void 0);
3215
+ const nativeSansFont = sansFontValue?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
3216
+ setDefaultFontFamily(nativeSansFont && nativeSansFont !== "System" ? nativeSansFont : void 0);
3216
3217
  injectGlobalStyles(resolved.theme);
3217
3218
  return resolved;
3218
3219
  }
@@ -3177,7 +3177,8 @@ function buildConfig(userConfig) {
3177
3177
  }
3178
3178
  const rawSans = theme.fontFamily?.sans;
3179
3179
  const sansFontValue = Array.isArray(rawSans) ? rawSans[0] : rawSans;
3180
- setDefaultFontFamily(sansFontValue && sansFontValue !== "System" ? sansFontValue : void 0);
3180
+ const nativeSansFont = sansFontValue?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
3181
+ setDefaultFontFamily(nativeSansFont && nativeSansFont !== "System" ? nativeSansFont : void 0);
3181
3182
  injectGlobalStyles(resolved.theme);
3182
3183
  return resolved;
3183
3184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "0.6.45",
3
+ "version": "0.6.46",
4
4
  "description": "React / React Native components and hooks for the Kbach framework",
5
5
  "license": "MIT",
6
6
  "repository": {