New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tamagui/helpers-tamagui

Package Overview
Dependencies
Maintainers
1
Versions
1140
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.121.12 to 1.122.0

5

dist/cjs/useCurrentColor.js

@@ -23,7 +23,4 @@ var __defProp = Object.defineProperty;

const theme = (0, import_web.useTheme)();
return (0, import_web.getVariable)(
// TODO can remove 'web' here, will return DynamicColor for iOS for ListItem icons, which is supported in newer react-native-svg versions
colorProp || theme[colorProp]?.get("web") || theme.color?.get("web")
);
return colorProp ? (0, import_web.getVariable)(colorProp) : theme[colorProp]?.get() || theme.color?.get();
};
//# sourceMappingURL=useCurrentColor.js.map

@@ -22,6 +22,3 @@ "use strict";

var import_web = require("@tamagui/web"), useCurrentColor = function(colorProp) {
var _theme_colorProp, _theme_color, theme = (0, import_web.useTheme)(), out = (0, import_web.getVariable)(
// TODO can remove 'web' here, will return DynamicColor for iOS for ListItem icons, which is supported in newer react-native-svg versions
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 _theme_colorProp, _theme_color, theme = (0, import_web.useTheme)(), out = colorProp ? (0, import_web.getVariable)(colorProp) : ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get()) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get());
return out;

@@ -28,0 +25,0 @@ };

import { getVariable, useTheme } from "@tamagui/web";
const useCurrentColor = (colorProp) => {
const theme = useTheme();
return getVariable(
// TODO can remove 'web' here, will return DynamicColor for iOS for ListItem icons, which is supported in newer react-native-svg versions
colorProp || theme[colorProp]?.get("web") || theme.color?.get("web")
);
return colorProp ? getVariable(colorProp) : theme[colorProp]?.get() || theme.color?.get();
};

@@ -9,0 +6,0 @@ export {

import { getVariable, useTheme } from "@tamagui/web";
var useCurrentColor = function(colorProp) {
var _theme_colorProp, _theme_color, theme = useTheme(), out = getVariable(
// TODO can remove 'web' here, will return DynamicColor for iOS for ListItem icons, which is supported in newer react-native-svg versions
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 _theme_colorProp, _theme_color, theme = useTheme(), out = colorProp ? getVariable(colorProp) : ((_theme_colorProp = theme[colorProp]) === null || _theme_colorProp === void 0 ? void 0 : _theme_colorProp.get()) || ((_theme_color = theme.color) === null || _theme_color === void 0 ? void 0 : _theme_color.get());
return out;

@@ -8,0 +5,0 @@ };

8

package.json
{
"name": "@tamagui/helpers-tamagui",
"version": "1.121.12",
"version": "1.122.0",
"source": "src/index.ts",

@@ -35,7 +35,7 @@ "types": "./types/index.d.ts",

"dependencies": {
"@tamagui/helpers": "1.121.12",
"@tamagui/web": "1.121.12"
"@tamagui/helpers": "1.122.0",
"@tamagui/web": "1.122.0"
},
"devDependencies": {
"@tamagui/build": "1.121.12",
"@tamagui/build": "1.122.0",
"react": "*",

@@ -42,0 +42,0 @@ "vitest": "^2.1.8"

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

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