Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tamagui/helpers-tamagui

Package Overview
Dependencies
Maintainers
1
Versions
1067
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/helpers-tamagui - npm Package Compare versions

Comparing version 1.111.8 to 1.111.9

8

dist/esm/index.native.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc