@kbach/react 0.4.1 → 0.4.2

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.
@@ -130,8 +130,10 @@ function processElement(type, rawProps, key, isStaticChildren) {
130
130
  return makeElement(isStaticChildren, type, rawProps, key);
131
131
  }
132
132
  const config = getConfig();
133
- const isGrdOnWeb = typeof document !== "undefined" && classStr != null && /(?:^|\s)grd(?:\s|$)/.test(classStr);
134
- const actualType = isGrdOnWeb ? "div" : type;
133
+ const isOnWeb = typeof document !== "undefined" && classStr != null;
134
+ const isGrdOnWeb = isOnWeb && /(?:^|\s)grd(?:\s|$)/.test(classStr);
135
+ const hasWebPosition = isOnWeb && /(?:^|\s)(?:[\w-]+:)*(?:fixed|sticky)(?:\s|$)/.test(classStr);
136
+ const actualType = isGrdOnWeb || hasWebPosition ? "div" : type;
135
137
  const resolved = __kbachStyles ?? (classStr ? resolve(classStr, config.theme, config.darkMode) : {});
136
138
  const { style: userStyle, ...passProps } = omitConsumed(rawProps);
137
139
  const { interactive, modeOrResponsive } = bucketMods(resolved);
@@ -2690,8 +2690,10 @@ function processElement(type, rawProps, key, isStaticChildren) {
2690
2690
  return makeElement(isStaticChildren, type, rawProps, key);
2691
2691
  }
2692
2692
  const config = getConfig();
2693
- const isGrdOnWeb = typeof document !== "undefined" && classStr != null && /(?:^|\s)grd(?:\s|$)/.test(classStr);
2694
- const actualType = isGrdOnWeb ? "div" : type;
2693
+ const isOnWeb = typeof document !== "undefined" && classStr != null;
2694
+ const isGrdOnWeb = isOnWeb && /(?:^|\s)grd(?:\s|$)/.test(classStr);
2695
+ const hasWebPosition = isOnWeb && /(?:^|\s)(?:[\w-]+:)*(?:fixed|sticky)(?:\s|$)/.test(classStr);
2696
+ const actualType = isGrdOnWeb || hasWebPosition ? "div" : type;
2695
2697
  const resolved = __kbachStyles ?? (classStr ? resolve(classStr, config.theme, config.darkMode) : {});
2696
2698
  const { style: userStyle, ...passProps } = omitConsumed(rawProps);
2697
2699
  const { interactive, modeOrResponsive } = bucketMods(resolved);
@@ -2,7 +2,7 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-V5WMKNJC.mjs";
5
+ } from "./chunk-JFQ7QYQM.mjs";
6
6
  import "./chunk-HY6PU2XS.mjs";
7
7
 
8
8
  // src/jsx-dev-runtime.tsx
@@ -2689,8 +2689,10 @@ function processElement(type, rawProps, key, isStaticChildren) {
2689
2689
  return makeElement(isStaticChildren, type, rawProps, key);
2690
2690
  }
2691
2691
  const config = getConfig();
2692
- const isGrdOnWeb = typeof document !== "undefined" && classStr != null && /(?:^|\s)grd(?:\s|$)/.test(classStr);
2693
- const actualType = isGrdOnWeb ? "div" : type;
2692
+ const isOnWeb = typeof document !== "undefined" && classStr != null;
2693
+ const isGrdOnWeb = isOnWeb && /(?:^|\s)grd(?:\s|$)/.test(classStr);
2694
+ const hasWebPosition = isOnWeb && /(?:^|\s)(?:[\w-]+:)*(?:fixed|sticky)(?:\s|$)/.test(classStr);
2695
+ const actualType = isGrdOnWeb || hasWebPosition ? "div" : type;
2694
2696
  const resolved = __kbachStyles ?? (classStr ? resolve(classStr, config.theme, config.darkMode) : {});
2695
2697
  const { style: userStyle, ...passProps } = omitConsumed(rawProps);
2696
2698
  const { interactive, modeOrResponsive } = bucketMods(resolved);
@@ -2,7 +2,7 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-V5WMKNJC.mjs";
5
+ } from "./chunk-JFQ7QYQM.mjs";
6
6
  import "./chunk-HY6PU2XS.mjs";
7
7
  export {
8
8
  Fragment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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",