@tamagui/get-button-sized
Advanced tools
Comparing version 1.113.1 to 1.113.2
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
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
11825
177
+ Added@tamagui/compose-refs@1.113.2(transitive)
+ Added@tamagui/constants@1.113.2(transitive)
+ Added@tamagui/get-token@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/timer@1.113.2(transitive)
+ Added@tamagui/types@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)
+ Added@tamagui/web@1.113.2(transitive)
- Removed@tamagui/compose-refs@1.113.1(transitive)
- Removed@tamagui/constants@1.113.1(transitive)
- Removed@tamagui/get-token@1.113.1(transitive)
- Removed@tamagui/helpers@1.113.1(transitive)
- Removed@tamagui/normalize-css-color@1.113.1(transitive)
- Removed@tamagui/simple-hash@1.113.1(transitive)
- Removed@tamagui/timer@1.113.1(transitive)
- Removed@tamagui/types@1.113.1(transitive)
- Removed@tamagui/use-did-finish-ssr@1.113.1(transitive)
- Removed@tamagui/use-event@1.113.1(transitive)
- Removed@tamagui/use-force-update@1.113.1(transitive)
- Removed@tamagui/web@1.113.1(transitive)
Updated@tamagui/get-token@1.113.2
Updated@tamagui/web@1.113.2