@kbach/react 0.5.11 → 0.5.13

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.
@@ -9,7 +9,7 @@ import {
9
9
  resolve,
10
10
  useConditionalWidth,
11
11
  useGlobalDarkMode
12
- } from "./chunk-FXDTPPTC.mjs";
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";
@@ -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
@@ -23,7 +23,7 @@ import {
23
23
  useConditionalWidth,
24
24
  useGlobalDarkMode,
25
25
  useGlobalWidth
26
- } from "./chunk-FXDTPPTC.mjs";
26
+ } from "./chunk-NBGURNUD.mjs";
27
27
 
28
28
  // src/context.tsx
29
29
  import { createContext, useContext } from "react";
@@ -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) {
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-CPU4VXII.mjs";
6
- import "./chunk-FXDTPPTC.mjs";
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) {
@@ -1,4 +1,4 @@
1
- export { Fragment } from 'react/jsx-runtime';
1
+ export { Fragment, JSX } from 'react/jsx-runtime';
2
2
  import { ReactElement } from 'react';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- export { Fragment } from 'react/jsx-runtime';
1
+ export { Fragment, JSX } from 'react/jsx-runtime';
2
2
  import { ReactElement } from 'react';
3
3
 
4
4
  /**
@@ -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) {
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-CPU4VXII.mjs";
6
- import "./chunk-FXDTPPTC.mjs";
5
+ } from "./chunk-MAHH25VW.mjs";
6
+ import "./chunk-NBGURNUD.mjs";
7
7
  export {
8
8
  Fragment,
9
9
  jsx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "0.5.11",
3
+ "version": "0.5.13",
4
4
  "description": "React / React Native components and hooks for the Kbach framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",