@kbach/react 0.6.44 → 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-XKJUIAYE.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";
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/core/platform.ts
4
4
  var isWeb = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
5
- var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined");
5
+ var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined" || typeof globalThis.nativeFabricUIManager !== "undefined" || typeof globalThis.__turboModuleProxy !== "undefined" || typeof globalThis.RN$Bridgeless !== "undefined" || typeof globalThis.nativePerformanceNow !== "undefined");
6
6
  var _resolveTargetOverride = null;
7
7
  function setResolveTarget(target) {
8
8
  _resolveTargetOverride = target;
@@ -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
  }
@@ -96,7 +96,7 @@ function splitColorShadeRef(ref) {
96
96
 
97
97
  // src/core/platform.ts
98
98
  var isWeb = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
99
- var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined");
99
+ var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined" || typeof globalThis.nativeFabricUIManager !== "undefined" || typeof globalThis.__turboModuleProxy !== "undefined" || typeof globalThis.RN$Bridgeless !== "undefined" || typeof globalThis.nativePerformanceNow !== "undefined");
100
100
  var _resolveTargetOverride = null;
101
101
  function setResolveTarget(target) {
102
102
  _resolveTargetOverride = target;
@@ -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-XKJUIAYE.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-IY5Z6IYL.mjs";
7
- import "./chunk-XKJUIAYE.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-IY5Z6IYL.mjs";
7
+ } from "./chunk-4Y44K364.mjs";
8
8
  import {
9
9
  registerWebElement
10
- } from "./chunk-XKJUIAYE.mjs";
10
+ } from "./chunk-FYVFEEFX.mjs";
11
11
  export {
12
12
  Fragment,
13
13
  _invalidateDefaultFontCache,
@@ -40,7 +40,7 @@ var import_node_process = __toESM(require("process"));
40
40
 
41
41
  // src/core/platform.ts
42
42
  var isWeb = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
43
- var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined");
43
+ var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined" || typeof globalThis.nativeFabricUIManager !== "undefined" || typeof globalThis.__turboModuleProxy !== "undefined" || typeof globalThis.RN$Bridgeless !== "undefined" || typeof globalThis.nativePerformanceNow !== "undefined");
44
44
  var _resolveTargetOverride = null;
45
45
  function setCSSGenMode(on) {
46
46
  _resolveTargetOverride = on ? "web" : null;
@@ -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
  }
@@ -5,7 +5,7 @@ import processImport from "process";
5
5
 
6
6
  // src/core/platform.ts
7
7
  var isWeb = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8
- var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined");
8
+ var isNative = !isWeb && (typeof globalThis.HermesInternal !== "undefined" || typeof globalThis.__fbBatchedBridge !== "undefined" || typeof navigator !== "undefined" && navigator.product === "ReactNative" || typeof globalThis.__REACT_NATIVE__ !== "undefined" || typeof globalThis.nativeFabricUIManager !== "undefined" || typeof globalThis.__turboModuleProxy !== "undefined" || typeof globalThis.RN$Bridgeless !== "undefined" || typeof globalThis.nativePerformanceNow !== "undefined");
9
9
  var _resolveTargetOverride = null;
10
10
  function setCSSGenMode(on) {
11
11
  _resolveTargetOverride = on ? "web" : null;
@@ -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.44",
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": {