@tamagui/web
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -316,7 +316,8 @@ "use strict"; | ||
const disabled = ((_f = props.accessibilityState) == null ? void 0 : _f.disabled) || props.accessibilityDisabled; | ||
let viewProps; | ||
if (process.env.TAMAGUI_TARGET === "web" && !isReactNative && !asChild) { | ||
viewProps = (_h = (_g = import_setupHooks.hooks).usePropsTransform) == null ? void 0 : _h.call(_g, elementType, viewPropsIn, hostRef); | ||
} else { | ||
viewProps = nonTamaguiProps; | ||
let viewProps = nonTamaguiProps; | ||
if (process.env.TAMAGUI_TARGET === "web" && !isReactNative) { | ||
const nextProps = (_h = (_g = import_setupHooks.hooks).usePropsTransform) == null ? void 0 : _h.call(_g, elementType, nonTamaguiProps, hostRef); | ||
if (!asChild) { | ||
viewProps = nextProps; | ||
} | ||
} | ||
@@ -323,0 +324,0 @@ viewProps.ref = (0, import_compose_refs.useComposedRefs)(hostRef, forwardedRef); |
@@ -292,7 +292,8 @@ import { jsx } from "react/jsx-runtime"; | ||
const disabled = ((_e = props.accessibilityState) == null ? void 0 : _e.disabled) || props.accessibilityDisabled; | ||
let viewProps; | ||
if (process.env.TAMAGUI_TARGET === "web" && !isReactNative && !asChild) { | ||
viewProps = (_g = (_f = hooks).usePropsTransform) == null ? void 0 : _g.call(_f, elementType, viewPropsIn, hostRef); | ||
} else { | ||
viewProps = nonTamaguiProps; | ||
let viewProps = nonTamaguiProps; | ||
if (process.env.TAMAGUI_TARGET === "web" && !isReactNative) { | ||
const nextProps = (_g = (_f = hooks).usePropsTransform) == null ? void 0 : _g.call(_f, elementType, nonTamaguiProps, hostRef); | ||
if (!asChild) { | ||
viewProps = nextProps; | ||
} | ||
} | ||
@@ -299,0 +300,0 @@ viewProps.ref = useComposedRefs(hostRef, forwardedRef); |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"source": "src/index.ts", | ||
@@ -30,9 +30,9 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "^1.2.8", | ||
"@tamagui/constants": "^1.2.8", | ||
"@tamagui/helpers": "^1.2.8", | ||
"@tamagui/normalize-css-color": "^1.2.8", | ||
"@tamagui/use-did-finish-ssr": "^1.2.8", | ||
"@tamagui/use-event": "^1.2.8", | ||
"@tamagui/use-force-update": "^1.2.8" | ||
"@tamagui/compose-refs": "^1.2.9", | ||
"@tamagui/constants": "^1.2.9", | ||
"@tamagui/helpers": "^1.2.9", | ||
"@tamagui/normalize-css-color": "^1.2.9", | ||
"@tamagui/use-did-finish-ssr": "^1.2.9", | ||
"@tamagui/use-event": "^1.2.9", | ||
"@tamagui/use-force-update": "^1.2.9" | ||
}, | ||
@@ -44,3 +44,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "^1.2.8", | ||
"@tamagui/build": "^1.2.9", | ||
"@testing-library/react": "^13.4.0", | ||
@@ -47,0 +47,0 @@ "csstype": "^3.0.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1497488
22143