@kbach/react 0.5.36 → 0.5.37

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.
@@ -4,7 +4,7 @@ import {
4
4
  getGlobalWidth,
5
5
  isWeb,
6
6
  subscribeGlobalWidth
7
- } from "./chunk-QTZGBGGJ.mjs";
7
+ } from "./chunk-J2I5YSC5.mjs";
8
8
 
9
9
  // src/core/darkModeStore.ts
10
10
  var KEY = "__kbach_dark_store__";
@@ -3356,6 +3356,17 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3356
3356
  if (_df && !("fontFamily" in result)) {
3357
3357
  result.fontFamily = _df;
3358
3358
  }
3359
+ if (isWeb) {
3360
+ const r = result;
3361
+ for (const [rnProp, [p1, p2]] of Object.entries(RN_SHORTHAND_EXPAND)) {
3362
+ const v = r[rnProp];
3363
+ if (v !== void 0) {
3364
+ r[p1] = v;
3365
+ r[p2] = v;
3366
+ delete r[rnProp];
3367
+ }
3368
+ }
3369
+ }
3359
3370
  return result;
3360
3371
  }
3361
3372
  function matchesMods(mods, isDark, state, breakpoints) {
@@ -3,7 +3,7 @@ import {
3
3
  InteractiveWrapper,
4
4
  useConditionalWidth,
5
5
  useGlobalDarkMode
6
- } from "./chunk-D2LLZADB.mjs";
6
+ } from "./chunk-36QDTNAQ.mjs";
7
7
  import {
8
8
  flatten,
9
9
  getActiveBreakpoints,
@@ -12,7 +12,7 @@ import {
12
12
  isWeb,
13
13
  normalizeClassString,
14
14
  resolve
15
- } from "./chunk-QTZGBGGJ.mjs";
15
+ } from "./chunk-J2I5YSC5.mjs";
16
16
 
17
17
  // src/jsx-runtime.tsx
18
18
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
package/dist/index.js CHANGED
@@ -3475,6 +3475,17 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3475
3475
  if (_df && !("fontFamily" in result)) {
3476
3476
  result.fontFamily = _df;
3477
3477
  }
3478
+ if (isWeb) {
3479
+ const r = result;
3480
+ for (const [rnProp, [p1, p2]] of Object.entries(RN_SHORTHAND_EXPAND)) {
3481
+ const v = r[rnProp];
3482
+ if (v !== void 0) {
3483
+ r[p1] = v;
3484
+ r[p2] = v;
3485
+ delete r[rnProp];
3486
+ }
3487
+ }
3488
+ }
3478
3489
  return result;
3479
3490
  }
3480
3491
  function matchesMods(mods, isDark, state, breakpoints) {
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  useConditionalWidth,
7
7
  useGlobalDarkMode,
8
8
  useGlobalWidth
9
- } from "./chunk-D2LLZADB.mjs";
9
+ } from "./chunk-36QDTNAQ.mjs";
10
10
  import {
11
11
  __require,
12
12
  buildConfig,
@@ -27,7 +27,7 @@ import {
27
27
  syncGlobalScreens,
28
28
  syncGlobalWidth,
29
29
  updateConfig
30
- } from "./chunk-QTZGBGGJ.mjs";
30
+ } from "./chunk-J2I5YSC5.mjs";
31
31
 
32
32
  // src/context.tsx
33
33
  import { createContext, useContext } from "react";
@@ -3365,6 +3365,17 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3365
3365
  if (_df && !("fontFamily" in result)) {
3366
3366
  result.fontFamily = _df;
3367
3367
  }
3368
+ if (isWeb) {
3369
+ const r = result;
3370
+ for (const [rnProp, [p1, p2]] of Object.entries(RN_SHORTHAND_EXPAND)) {
3371
+ const v = r[rnProp];
3372
+ if (v !== void 0) {
3373
+ r[p1] = v;
3374
+ r[p2] = v;
3375
+ delete r[rnProp];
3376
+ }
3377
+ }
3378
+ }
3368
3379
  return result;
3369
3380
  }
3370
3381
  function matchesMods(mods, isDark, state, breakpoints) {
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-AZJVYYAX.mjs";
6
- import "./chunk-D2LLZADB.mjs";
7
- import "./chunk-QTZGBGGJ.mjs";
5
+ } from "./chunk-VZHNEDUW.mjs";
6
+ import "./chunk-36QDTNAQ.mjs";
7
+ import "./chunk-J2I5YSC5.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
10
  function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
@@ -3364,6 +3364,17 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3364
3364
  if (_df && !("fontFamily" in result)) {
3365
3365
  result.fontFamily = _df;
3366
3366
  }
3367
+ if (isWeb) {
3368
+ const r = result;
3369
+ for (const [rnProp, [p1, p2]] of Object.entries(RN_SHORTHAND_EXPAND)) {
3370
+ const v = r[rnProp];
3371
+ if (v !== void 0) {
3372
+ r[p1] = v;
3373
+ r[p2] = v;
3374
+ delete r[rnProp];
3375
+ }
3376
+ }
3377
+ }
3367
3378
  return result;
3368
3379
  }
3369
3380
  function matchesMods(mods, isDark, state, breakpoints) {
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-AZJVYYAX.mjs";
6
- import "./chunk-D2LLZADB.mjs";
7
- import "./chunk-QTZGBGGJ.mjs";
5
+ } from "./chunk-VZHNEDUW.mjs";
6
+ import "./chunk-36QDTNAQ.mjs";
7
+ import "./chunk-J2I5YSC5.mjs";
8
8
  export {
9
9
  Fragment,
10
10
  jsx,
@@ -3,7 +3,7 @@ import {
3
3
  generateClassCSS,
4
4
  setCSSGenMode,
5
5
  splitClassTokens
6
- } from "./chunk-QTZGBGGJ.mjs";
6
+ } from "./chunk-J2I5YSC5.mjs";
7
7
 
8
8
  // src/vite-plugin.ts
9
9
  import { readFileSync, writeFileSync, existsSync, readdirSync, statSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "@kbach/react",
3
- "version": "0.5.36",
3
+ "version": "0.5.37",
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",