@tamagui/helpers-tamagui
Advanced tools
Comparing version 1.111.8 to 1.111.9
export * from "@tamagui/helpers"; | ||
export * from "./prevent"; | ||
export * from "./useCurrentColor"; | ||
export * from "./useGetThemedIcon"; | ||
//# sourceMappingURL=index.js.map | ||
export * from "./prevent.native.js"; | ||
export * from "./useCurrentColor.native.js"; | ||
export * from "./useGetThemedIcon.native.js"; | ||
//# sourceMappingURL=index.native.js.map |
@@ -1,10 +0,5 @@ | ||
var prevent = function(e) { | ||
return [ | ||
e.preventDefault(), | ||
e.stopPropagation() | ||
]; | ||
var prevent = function (e) { | ||
return [e.preventDefault(), e.stopPropagation()]; | ||
}; | ||
export { | ||
prevent | ||
}; | ||
//# sourceMappingURL=prevent.js.map | ||
export { prevent }; | ||
//# sourceMappingURL=prevent.native.js.map |
import { getVariable, useTheme } from "@tamagui/web"; | ||
var useCurrentColor = function(colorProp) { | ||
var _theme_colorProp, _theme_color, theme = useTheme(), out = getVariable(colorProp || ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get("web")) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get("web"))); | ||
var useCurrentColor = function (colorProp) { | ||
var _theme_colorProp, | ||
_theme_color, | ||
theme = useTheme(), | ||
out = getVariable(colorProp || ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get("web")) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get("web"))); | ||
return out; | ||
}; | ||
export { | ||
useCurrentColor | ||
}; | ||
//# sourceMappingURL=useCurrentColor.js.map | ||
export { useCurrentColor }; | ||
//# sourceMappingURL=useCurrentColor.native.js.map |
import React from "react"; | ||
import { useCurrentColor } from "./useCurrentColor"; | ||
var useGetThemedIcon = function(props) { | ||
import { useCurrentColor } from "./useCurrentColor.native.js"; | ||
var useGetThemedIcon = function (props) { | ||
var color = useCurrentColor(props.color); | ||
return function(el) { | ||
return el && (/* @__PURE__ */ React.isValidElement(el) ? /* @__PURE__ */ React.cloneElement(el, { | ||
return function (el) { | ||
return el && (/* @__PURE__ */React.isValidElement(el) ? /* @__PURE__ */React.cloneElement(el, { | ||
...props, | ||
@@ -11,8 +11,6 @@ color, | ||
...el.props | ||
}) : /* @__PURE__ */ React.createElement(el, props)); | ||
}) : /* @__PURE__ */React.createElement(el, props)); | ||
}; | ||
}; | ||
export { | ||
useGetThemedIcon | ||
}; | ||
//# sourceMappingURL=useGetThemedIcon.js.map | ||
export { useGetThemedIcon }; | ||
//# sourceMappingURL=useGetThemedIcon.native.js.map |
{ | ||
"name": "@tamagui/helpers-tamagui", | ||
"version": "1.111.8", | ||
"version": "1.111.9", | ||
"source": "src/index.ts", | ||
@@ -24,3 +24,3 @@ "types": "./types/index.d.ts", | ||
".": { | ||
"react-native-import": "./dist/esm/index.native.mjs", | ||
"react-native-import": "./dist/esm/index.native.js", | ||
"react-native": "./dist/cjs/index.native.js", | ||
@@ -33,7 +33,7 @@ "types": "./types/index.d.ts", | ||
"dependencies": { | ||
"@tamagui/helpers": "1.111.8", | ||
"@tamagui/web": "1.111.8" | ||
"@tamagui/helpers": "1.111.9", | ||
"@tamagui/web": "1.111.9" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.111.8", | ||
"@tamagui/build": "1.111.9", | ||
"react": "^18.2.0 || ^19.0.0", | ||
@@ -40,0 +40,0 @@ "vitest": "0.34.3" |
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
26797
55
387
+ Added@tamagui/compose-refs@1.111.9(transitive)
+ Added@tamagui/constants@1.111.9(transitive)
+ Added@tamagui/helpers@1.111.9(transitive)
+ Added@tamagui/normalize-css-color@1.111.9(transitive)
+ Added@tamagui/simple-hash@1.111.9(transitive)
+ Added@tamagui/timer@1.111.9(transitive)
+ Added@tamagui/types@1.111.9(transitive)
+ Added@tamagui/use-did-finish-ssr@1.111.9(transitive)
+ Added@tamagui/use-event@1.111.9(transitive)
+ Added@tamagui/use-force-update@1.111.9(transitive)
+ Added@tamagui/web@1.111.9(transitive)
- Removed@tamagui/compose-refs@1.111.8(transitive)
- Removed@tamagui/constants@1.111.8(transitive)
- Removed@tamagui/helpers@1.111.8(transitive)
- Removed@tamagui/normalize-css-color@1.111.8(transitive)
- Removed@tamagui/simple-hash@1.111.8(transitive)
- Removed@tamagui/timer@1.111.8(transitive)
- Removed@tamagui/types@1.111.8(transitive)
- Removed@tamagui/use-did-finish-ssr@1.111.8(transitive)
- Removed@tamagui/use-event@1.111.8(transitive)
- Removed@tamagui/use-force-update@1.111.8(transitive)
- Removed@tamagui/web@1.111.8(transitive)
Updated@tamagui/helpers@1.111.9
Updated@tamagui/web@1.111.9