@kbach/react 0.5.37 → 0.5.38

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.
@@ -3,7 +3,7 @@ import {
3
3
  InteractiveWrapper,
4
4
  useConditionalWidth,
5
5
  useGlobalDarkMode
6
- } from "./chunk-36QDTNAQ.mjs";
6
+ } from "./chunk-W7UBSRE5.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-J2I5YSC5.mjs";
15
+ } from "./chunk-NWVL4BES.mjs";
16
16
 
17
17
  // src/jsx-runtime.tsx
18
18
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -3358,13 +3358,29 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3358
3358
  }
3359
3359
  if (isWeb) {
3360
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
- }
3361
+ const v0 = r.paddingHorizontal;
3362
+ if (v0 !== void 0) {
3363
+ r.paddingLeft = v0;
3364
+ r.paddingRight = v0;
3365
+ delete r.paddingHorizontal;
3366
+ }
3367
+ const v1 = r.paddingVertical;
3368
+ if (v1 !== void 0) {
3369
+ r.paddingTop = v1;
3370
+ r.paddingBottom = v1;
3371
+ delete r.paddingVertical;
3372
+ }
3373
+ const v2 = r.marginHorizontal;
3374
+ if (v2 !== void 0) {
3375
+ r.marginLeft = v2;
3376
+ r.marginRight = v2;
3377
+ delete r.marginHorizontal;
3378
+ }
3379
+ const v3 = r.marginVertical;
3380
+ if (v3 !== void 0) {
3381
+ r.marginTop = v3;
3382
+ r.marginBottom = v3;
3383
+ delete r.marginVertical;
3368
3384
  }
3369
3385
  }
3370
3386
  return result;
@@ -4,7 +4,7 @@ import {
4
4
  getGlobalWidth,
5
5
  isWeb,
6
6
  subscribeGlobalWidth
7
- } from "./chunk-J2I5YSC5.mjs";
7
+ } from "./chunk-NWVL4BES.mjs";
8
8
 
9
9
  // src/core/darkModeStore.ts
10
10
  var KEY = "__kbach_dark_store__";
package/dist/index.js CHANGED
@@ -3477,13 +3477,29 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3477
3477
  }
3478
3478
  if (isWeb) {
3479
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
- }
3480
+ const v0 = r.paddingHorizontal;
3481
+ if (v0 !== void 0) {
3482
+ r.paddingLeft = v0;
3483
+ r.paddingRight = v0;
3484
+ delete r.paddingHorizontal;
3485
+ }
3486
+ const v1 = r.paddingVertical;
3487
+ if (v1 !== void 0) {
3488
+ r.paddingTop = v1;
3489
+ r.paddingBottom = v1;
3490
+ delete r.paddingVertical;
3491
+ }
3492
+ const v2 = r.marginHorizontal;
3493
+ if (v2 !== void 0) {
3494
+ r.marginLeft = v2;
3495
+ r.marginRight = v2;
3496
+ delete r.marginHorizontal;
3497
+ }
3498
+ const v3 = r.marginVertical;
3499
+ if (v3 !== void 0) {
3500
+ r.marginTop = v3;
3501
+ r.marginBottom = v3;
3502
+ delete r.marginVertical;
3487
3503
  }
3488
3504
  }
3489
3505
  return result;
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  useConditionalWidth,
7
7
  useGlobalDarkMode,
8
8
  useGlobalWidth
9
- } from "./chunk-36QDTNAQ.mjs";
9
+ } from "./chunk-W7UBSRE5.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-J2I5YSC5.mjs";
30
+ } from "./chunk-NWVL4BES.mjs";
31
31
 
32
32
  // src/context.tsx
33
33
  import { createContext, useContext } from "react";
@@ -3367,13 +3367,29 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3367
3367
  }
3368
3368
  if (isWeb) {
3369
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
- }
3370
+ const v0 = r.paddingHorizontal;
3371
+ if (v0 !== void 0) {
3372
+ r.paddingLeft = v0;
3373
+ r.paddingRight = v0;
3374
+ delete r.paddingHorizontal;
3375
+ }
3376
+ const v1 = r.paddingVertical;
3377
+ if (v1 !== void 0) {
3378
+ r.paddingTop = v1;
3379
+ r.paddingBottom = v1;
3380
+ delete r.paddingVertical;
3381
+ }
3382
+ const v2 = r.marginHorizontal;
3383
+ if (v2 !== void 0) {
3384
+ r.marginLeft = v2;
3385
+ r.marginRight = v2;
3386
+ delete r.marginHorizontal;
3387
+ }
3388
+ const v3 = r.marginVertical;
3389
+ if (v3 !== void 0) {
3390
+ r.marginTop = v3;
3391
+ r.marginBottom = v3;
3392
+ delete r.marginVertical;
3377
3393
  }
3378
3394
  }
3379
3395
  return result;
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-VZHNEDUW.mjs";
6
- import "./chunk-36QDTNAQ.mjs";
7
- import "./chunk-J2I5YSC5.mjs";
5
+ } from "./chunk-EJFQKJPT.mjs";
6
+ import "./chunk-W7UBSRE5.mjs";
7
+ import "./chunk-NWVL4BES.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
10
  function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
@@ -3366,13 +3366,29 @@ function flatten(resolved, isDark, state = {}, breakpoints = /* @__PURE__ */ new
3366
3366
  }
3367
3367
  if (isWeb) {
3368
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
- }
3369
+ const v0 = r.paddingHorizontal;
3370
+ if (v0 !== void 0) {
3371
+ r.paddingLeft = v0;
3372
+ r.paddingRight = v0;
3373
+ delete r.paddingHorizontal;
3374
+ }
3375
+ const v1 = r.paddingVertical;
3376
+ if (v1 !== void 0) {
3377
+ r.paddingTop = v1;
3378
+ r.paddingBottom = v1;
3379
+ delete r.paddingVertical;
3380
+ }
3381
+ const v2 = r.marginHorizontal;
3382
+ if (v2 !== void 0) {
3383
+ r.marginLeft = v2;
3384
+ r.marginRight = v2;
3385
+ delete r.marginHorizontal;
3386
+ }
3387
+ const v3 = r.marginVertical;
3388
+ if (v3 !== void 0) {
3389
+ r.marginTop = v3;
3390
+ r.marginBottom = v3;
3391
+ delete r.marginVertical;
3376
3392
  }
3377
3393
  }
3378
3394
  return result;
@@ -2,9 +2,9 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-VZHNEDUW.mjs";
6
- import "./chunk-36QDTNAQ.mjs";
7
- import "./chunk-J2I5YSC5.mjs";
5
+ } from "./chunk-EJFQKJPT.mjs";
6
+ import "./chunk-W7UBSRE5.mjs";
7
+ import "./chunk-NWVL4BES.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-J2I5YSC5.mjs";
6
+ } from "./chunk-NWVL4BES.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.37",
3
+ "version": "0.5.38",
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",