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

@tamagui/get-button-sized

Package Overview
Dependencies
Maintainers
1
Versions
921
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/get-button-sized - npm Package Compare versions

Comparing version 1.113.1 to 1.113.2

28

dist/esm/index.native.js
import { getSpace } from "@tamagui/get-token";
var getButtonSized = function (val, param) {
var {
tokens,
props
} = param;
var getButtonSized = function(val, param) {
var { tokens, props } = param;
if (!(!val || props.circular)) {
if (typeof val == "number") return {
paddingHorizontal: val * 0.25,
height: val,
borderRadius: props.circular ? 1e5 : val * 0.2
};
var xSize = getSpace(val),
_tokens_radius_val,
radiusToken = (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : tokens.radius.$true;
if (typeof val == "number")
return {
paddingHorizontal: val * 0.25,
height: val,
borderRadius: props.circular ? 1e5 : val * 0.2
};
var xSize = getSpace(val), _tokens_radius_val, radiusToken = (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : tokens.radius.$true;
return {

@@ -23,3 +19,5 @@ paddingHorizontal: xSize,

};
export { getButtonSized };
//# sourceMappingURL=index.native.js.map
export {
getButtonSized
};
//# sourceMappingURL=index.js.map
{
"name": "@tamagui/get-button-sized",
"version": "1.113.1",
"version": "1.113.2",
"types": "./types/index.d.ts",

@@ -31,7 +31,7 @@ "main": "dist/cjs",

"dependencies": {
"@tamagui/get-token": "1.113.1",
"@tamagui/web": "1.113.1"
"@tamagui/get-token": "1.113.2",
"@tamagui/web": "1.113.2"
},
"devDependencies": {
"@tamagui/build": "1.113.1",
"@tamagui/build": "1.113.2",
"react": "^18.2.0 || ^19.0.0"

@@ -38,0 +38,0 @@ },

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