@kbach/react 0.3.18 → 0.3.19

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.
@@ -1536,7 +1536,7 @@ var RESOLVERS = {
1536
1536
  },
1537
1537
  // ── Grid (responsive column count: grid-1 … grid-12) ─────────────────────
1538
1538
  grid: ({ value }) => {
1539
- if (!value || typeof document === "undefined") return null;
1539
+ if (!value) return null;
1540
1540
  const n = parseInt(value, 10);
1541
1541
  if (isNaN(n) || n < 1 || n > 12) return null;
1542
1542
  return { display: "grid", gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` };
@@ -1801,10 +1801,10 @@ function resolveUtility(parsed, theme) {
1801
1801
  if (!parsed.value) {
1802
1802
  if (parsed.utility in PLUGIN_STANDALONE) return PLUGIN_STANDALONE[parsed.utility] ?? null;
1803
1803
  if (parsed.utility === "grd" || parsed.utility === "grid") {
1804
- return typeof document !== "undefined" ? { display: "grid" } : null;
1804
+ return { display: "grid" };
1805
1805
  }
1806
1806
  if (parsed.utility === "inline-grid") {
1807
- return typeof document !== "undefined" ? { display: "inline-grid" } : null;
1807
+ return { display: "inline-grid" };
1808
1808
  }
1809
1809
  if (parsed.utility in STANDALONE) return STANDALONE[parsed.utility] ?? null;
1810
1810
  }
@@ -8,7 +8,7 @@ import {
8
8
  resolve,
9
9
  useConditionalWidth,
10
10
  useGlobalDarkMode
11
- } from "./chunk-437T7FQC.mjs";
11
+ } from "./chunk-AW3HK2B4.mjs";
12
12
 
13
13
  // src/jsx-runtime.tsx
14
14
  import { jsx as _jsx, jsxs as _jsxs, Fragment } from "react/jsx-runtime";
package/dist/index.js CHANGED
@@ -1702,7 +1702,7 @@ var RESOLVERS = {
1702
1702
  },
1703
1703
  // ── Grid (responsive column count: grid-1 … grid-12) ─────────────────────
1704
1704
  grid: ({ value }) => {
1705
- if (!value || typeof document === "undefined") return null;
1705
+ if (!value) return null;
1706
1706
  const n = parseInt(value, 10);
1707
1707
  if (isNaN(n) || n < 1 || n > 12) return null;
1708
1708
  return { display: "grid", gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` };
@@ -1967,10 +1967,10 @@ function resolveUtility(parsed, theme) {
1967
1967
  if (!parsed.value) {
1968
1968
  if (parsed.utility in PLUGIN_STANDALONE) return PLUGIN_STANDALONE[parsed.utility] ?? null;
1969
1969
  if (parsed.utility === "grd" || parsed.utility === "grid") {
1970
- return typeof document !== "undefined" ? { display: "grid" } : null;
1970
+ return { display: "grid" };
1971
1971
  }
1972
1972
  if (parsed.utility === "inline-grid") {
1973
- return typeof document !== "undefined" ? { display: "inline-grid" } : null;
1973
+ return { display: "inline-grid" };
1974
1974
  }
1975
1975
  if (parsed.utility in STANDALONE) return STANDALONE[parsed.utility] ?? null;
1976
1976
  }
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  updateConfig,
22
22
  useGlobalDarkMode,
23
23
  useGlobalWidth
24
- } from "./chunk-437T7FQC.mjs";
24
+ } from "./chunk-AW3HK2B4.mjs";
25
25
 
26
26
  // src/context.tsx
27
27
  import { createContext, useContext } from "react";
@@ -1605,7 +1605,7 @@ var RESOLVERS = {
1605
1605
  },
1606
1606
  // ── Grid (responsive column count: grid-1 … grid-12) ─────────────────────
1607
1607
  grid: ({ value }) => {
1608
- if (!value || typeof document === "undefined") return null;
1608
+ if (!value) return null;
1609
1609
  const n = parseInt(value, 10);
1610
1610
  if (isNaN(n) || n < 1 || n > 12) return null;
1611
1611
  return { display: "grid", gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` };
@@ -1870,10 +1870,10 @@ function resolveUtility(parsed, theme) {
1870
1870
  if (!parsed.value) {
1871
1871
  if (parsed.utility in PLUGIN_STANDALONE) return PLUGIN_STANDALONE[parsed.utility] ?? null;
1872
1872
  if (parsed.utility === "grd" || parsed.utility === "grid") {
1873
- return typeof document !== "undefined" ? { display: "grid" } : null;
1873
+ return { display: "grid" };
1874
1874
  }
1875
1875
  if (parsed.utility === "inline-grid") {
1876
- return typeof document !== "undefined" ? { display: "inline-grid" } : null;
1876
+ return { display: "inline-grid" };
1877
1877
  }
1878
1878
  if (parsed.utility in STANDALONE) return STANDALONE[parsed.utility] ?? null;
1879
1879
  }
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-CIK3ADJB.mjs";
6
- import "./chunk-437T7FQC.mjs";
5
+ } from "./chunk-NM6ISARQ.mjs";
6
+ import "./chunk-AW3HK2B4.mjs";
7
7
 
8
8
  // src/jsx-dev-runtime.tsx
9
9
  function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
@@ -1604,7 +1604,7 @@ var RESOLVERS = {
1604
1604
  },
1605
1605
  // ── Grid (responsive column count: grid-1 … grid-12) ─────────────────────
1606
1606
  grid: ({ value }) => {
1607
- if (!value || typeof document === "undefined") return null;
1607
+ if (!value) return null;
1608
1608
  const n = parseInt(value, 10);
1609
1609
  if (isNaN(n) || n < 1 || n > 12) return null;
1610
1610
  return { display: "grid", gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` };
@@ -1869,10 +1869,10 @@ function resolveUtility(parsed, theme) {
1869
1869
  if (!parsed.value) {
1870
1870
  if (parsed.utility in PLUGIN_STANDALONE) return PLUGIN_STANDALONE[parsed.utility] ?? null;
1871
1871
  if (parsed.utility === "grd" || parsed.utility === "grid") {
1872
- return typeof document !== "undefined" ? { display: "grid" } : null;
1872
+ return { display: "grid" };
1873
1873
  }
1874
1874
  if (parsed.utility === "inline-grid") {
1875
- return typeof document !== "undefined" ? { display: "inline-grid" } : null;
1875
+ return { display: "inline-grid" };
1876
1876
  }
1877
1877
  if (parsed.utility in STANDALONE) return STANDALONE[parsed.utility] ?? null;
1878
1878
  }
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-CIK3ADJB.mjs";
6
- import "./chunk-437T7FQC.mjs";
5
+ } from "./chunk-NM6ISARQ.mjs";
6
+ import "./chunk-AW3HK2B4.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.3.18",
3
+ "version": "0.3.19",
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",