@kbach/react 0.3.12 → 0.3.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.
@@ -8,7 +8,7 @@ import {
8
8
  resolve,
9
9
  useConditionalWidth,
10
10
  useGlobalDarkMode
11
- } from "./chunk-UGBTZ7VN.mjs";
11
+ } from "./chunk-XL3F5GRY.mjs";
12
12
 
13
13
  // src/jsx-runtime.tsx
14
14
  import { jsx as _jsx, jsxs as _jsxs, Fragment } from "react/jsx-runtime";
@@ -2024,7 +2024,8 @@ function styleValueToCSS(styles) {
2024
2024
  } else {
2025
2025
  cssVal = String(val);
2026
2026
  }
2027
- return `${cssProp}: ${cssVal}`;
2027
+ const important = prop === "display" && (cssVal === "grid" || cssVal === "inline-grid") ? " !important" : "";
2028
+ return `${cssProp}: ${cssVal}${important}`;
2028
2029
  }).join("; ");
2029
2030
  }
2030
2031
  function camelToKebab(str) {
package/dist/index.js CHANGED
@@ -2154,7 +2154,8 @@ function styleValueToCSS(styles) {
2154
2154
  } else {
2155
2155
  cssVal = String(val);
2156
2156
  }
2157
- return `${cssProp}: ${cssVal}`;
2157
+ const important = prop === "display" && (cssVal === "grid" || cssVal === "inline-grid") ? " !important" : "";
2158
+ return `${cssProp}: ${cssVal}${important}`;
2158
2159
  }).join("; ");
2159
2160
  }
2160
2161
  function camelToKebab(str) {
package/dist/index.mjs CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  updateConfig,
22
22
  useGlobalDarkMode,
23
23
  useGlobalWidth
24
- } from "./chunk-UGBTZ7VN.mjs";
24
+ } from "./chunk-XL3F5GRY.mjs";
25
25
 
26
26
  // src/context.tsx
27
27
  import { createContext, useContext } from "react";
@@ -2045,7 +2045,8 @@ function styleValueToCSS(styles) {
2045
2045
  } else {
2046
2046
  cssVal = String(val);
2047
2047
  }
2048
- return `${cssProp}: ${cssVal}`;
2048
+ const important = prop === "display" && (cssVal === "grid" || cssVal === "inline-grid") ? " !important" : "";
2049
+ return `${cssProp}: ${cssVal}${important}`;
2049
2050
  }).join("; ");
2050
2051
  }
2051
2052
  function camelToKebab(str) {
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-BAI72FG4.mjs";
6
- import "./chunk-UGBTZ7VN.mjs";
5
+ } from "./chunk-BBWDCPU6.mjs";
6
+ import "./chunk-XL3F5GRY.mjs";
7
7
 
8
8
  // src/jsx-dev-runtime.tsx
9
9
  function jsxDEV(type, props, key, isStaticChildren, _source, _self) {
@@ -2044,7 +2044,8 @@ function styleValueToCSS(styles) {
2044
2044
  } else {
2045
2045
  cssVal = String(val);
2046
2046
  }
2047
- return `${cssProp}: ${cssVal}`;
2047
+ const important = prop === "display" && (cssVal === "grid" || cssVal === "inline-grid") ? " !important" : "";
2048
+ return `${cssProp}: ${cssVal}${important}`;
2048
2049
  }).join("; ");
2049
2050
  }
2050
2051
  function camelToKebab(str) {
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-BAI72FG4.mjs";
6
- import "./chunk-UGBTZ7VN.mjs";
5
+ } from "./chunk-BBWDCPU6.mjs";
6
+ import "./chunk-XL3F5GRY.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.12",
3
+ "version": "0.3.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",