@tamagui/web
Advanced tools
Comparing version 1.5.20 to 1.5.21
@@ -153,3 +153,3 @@ "use strict"; | ||
const isAnimated = (() => { | ||
const next = !!(useAnimations && (props.animation || props.style && hasAnimatedStyleValue(props.style))); | ||
const next = !!(!staticConfig.isHOC && useAnimations && (props.animation || props.style && hasAnimatedStyleValue(props.style))); | ||
if (next && !stateRef.current.hasAnimated) { | ||
@@ -275,3 +275,3 @@ stateRef.current.hasAnimated = true; | ||
let animationStyles; | ||
if (!import_constants.isRSC && isAnimated && useAnimations) { | ||
if (!import_constants.isRSC && isAnimated && useAnimations && !staticConfig.isHOC) { | ||
const animations = useAnimations({ | ||
@@ -278,0 +278,0 @@ props: propsWithAnimation, |
@@ -206,3 +206,8 @@ "use strict"; | ||
} | ||
if (keyInit in usedKeys || keyInit in skipProps) { | ||
if (!staticConfig.isHOC) { | ||
if (keyInit in skipProps) { | ||
continue; | ||
} | ||
} | ||
if (keyInit in usedKeys) { | ||
continue; | ||
@@ -477,3 +482,3 @@ } | ||
if (process.env.NODE_ENV === "development" && debug === "verbose") { | ||
console.log("Merged pseudo?", shouldMerge, { importance, curImportance, pkey, val: val2 }); | ||
console.log(" merge pseudo?", keyInit, shouldMerge, { importance, curImportance, pkey, val: val2 }); | ||
} | ||
@@ -480,0 +485,0 @@ } |
@@ -24,5 +24,3 @@ "use strict"; | ||
module.exports = __toCommonJS(styled_exports); | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
var import_helpers = require("@tamagui/helpers"); | ||
var import_react = require("react"); | ||
var import_createComponent = require("./createComponent.js"); | ||
@@ -50,14 +48,2 @@ var import_setupReactNative = require("./setupReactNative.js"); | ||
); | ||
if (!isTamagui && !isReactNative) { | ||
if (process.env.NODE_ENV === "development") { | ||
if (options == null ? void 0 : options.variants) { | ||
console.warn( | ||
`Warning: wrapping a non-Tamagui element in styled() and passing variants isn't supported (yet).` | ||
); | ||
} | ||
} | ||
return (0, import_react.forwardRef)(function styled2(props, ref) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref, ...options, ...props }); | ||
}); | ||
} | ||
const staticConfigProps = (() => { | ||
@@ -64,0 +50,0 @@ if (options) { |
@@ -125,3 +125,3 @@ import { jsx } from "react/jsx-runtime"; | ||
const isAnimated = (() => { | ||
const next = !!(useAnimations && (props.animation || props.style && hasAnimatedStyleValue(props.style))); | ||
const next = !!(!staticConfig.isHOC && useAnimations && (props.animation || props.style && hasAnimatedStyleValue(props.style))); | ||
if (next && !stateRef.current.hasAnimated) { | ||
@@ -247,3 +247,3 @@ stateRef.current.hasAnimated = true; | ||
let animationStyles; | ||
if (!isRSC && isAnimated && useAnimations) { | ||
if (!isRSC && isAnimated && useAnimations && !staticConfig.isHOC) { | ||
const animations = useAnimations({ | ||
@@ -250,0 +250,0 @@ props: propsWithAnimation, |
@@ -206,3 +206,8 @@ import { | ||
} | ||
if (keyInit in usedKeys || keyInit in skipProps) { | ||
if (!staticConfig.isHOC) { | ||
if (keyInit in skipProps) { | ||
continue; | ||
} | ||
} | ||
if (keyInit in usedKeys) { | ||
continue; | ||
@@ -477,3 +482,3 @@ } | ||
if (process.env.NODE_ENV === "development" && debug === "verbose") { | ||
console.log("Merged pseudo?", shouldMerge, { importance, curImportance, pkey, val: val2 }); | ||
console.log(" merge pseudo?", keyInit, shouldMerge, { importance, curImportance, pkey, val: val2 }); | ||
} | ||
@@ -480,0 +485,0 @@ } |
@@ -1,4 +0,2 @@ | ||
import { jsx } from "react/jsx-runtime"; | ||
import { stylePropsAll } from "@tamagui/helpers"; | ||
import { forwardRef } from "react"; | ||
import { createComponent } from "./createComponent.js"; | ||
@@ -26,14 +24,2 @@ import { ReactNativeStaticConfigs } from "./setupReactNative.js"; | ||
); | ||
if (!isTamagui && !isReactNative) { | ||
if (process.env.NODE_ENV === "development") { | ||
if (options == null ? void 0 : options.variants) { | ||
console.warn( | ||
`Warning: wrapping a non-Tamagui element in styled() and passing variants isn't supported (yet).` | ||
); | ||
} | ||
} | ||
return forwardRef(function styled2(props, ref) { | ||
return /* @__PURE__ */ jsx(Component, { ref, ...options, ...props }); | ||
}); | ||
} | ||
const staticConfigProps = (() => { | ||
@@ -40,0 +26,0 @@ if (options) { |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.5.20", | ||
"version": "1.5.21", | ||
"source": "src/index.ts", | ||
@@ -30,9 +30,9 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "^1.5.20", | ||
"@tamagui/constants": "^1.5.20", | ||
"@tamagui/helpers": "^1.5.20", | ||
"@tamagui/normalize-css-color": "^1.5.20", | ||
"@tamagui/use-did-finish-ssr": "^1.5.20", | ||
"@tamagui/use-event": "^1.5.20", | ||
"@tamagui/use-force-update": "^1.5.20" | ||
"@tamagui/compose-refs": "^1.5.21", | ||
"@tamagui/constants": "^1.5.21", | ||
"@tamagui/helpers": "^1.5.21", | ||
"@tamagui/normalize-css-color": "^1.5.21", | ||
"@tamagui/use-did-finish-ssr": "^1.5.21", | ||
"@tamagui/use-event": "^1.5.21", | ||
"@tamagui/use-force-update": "^1.5.21" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@tamagui/build": "^1.5.20", | ||
"@tamagui/build": "^1.5.21", | ||
"@testing-library/react": "^13.4.0", | ||
@@ -46,0 +46,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
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
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
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
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
225
2017999
27940
+ Added@tamagui/compose-refs@1.113.2(transitive)
+ Added@tamagui/constants@1.113.2(transitive)
+ Added@tamagui/helpers@1.113.2(transitive)
+ Added@tamagui/normalize-css-color@1.113.2(transitive)
+ Added@tamagui/simple-hash@1.113.2(transitive)
+ Added@tamagui/use-did-finish-ssr@1.113.2(transitive)
+ Added@tamagui/use-event@1.113.2(transitive)
+ Added@tamagui/use-force-update@1.113.2(transitive)
- Removed@tamagui/compose-refs@1.114.4(transitive)
- Removed@tamagui/constants@1.114.4(transitive)
- Removed@tamagui/helpers@1.114.4(transitive)
- Removed@tamagui/normalize-css-color@1.114.4(transitive)
- Removed@tamagui/simple-hash@1.114.4(transitive)
- Removed@tamagui/use-did-finish-ssr@1.114.4(transitive)
- Removed@tamagui/use-event@1.114.4(transitive)
- Removed@tamagui/use-force-update@1.114.4(transitive)
Updated@tamagui/constants@^1.5.21
Updated@tamagui/helpers@^1.5.21
Updated@tamagui/use-event@^1.5.21