@pandacss/preset-base
Advanced tools
Comparing version 0.0.0-dev-20230614183248 to 0.0.0-dev-20230614192942
@@ -1656,26 +1656,3 @@ "use strict"; | ||
// src/utilities/transforms.ts | ||
var transformTemplate = [ | ||
"rotate(var(--rotate))", | ||
"scaleX(var(--scale-x))", | ||
"scaleY(var(--scale-y))", | ||
"skewX(var(--skew-x))", | ||
"skewY(var(--skew-y))" | ||
]; | ||
var baseTransformTemplate = [ | ||
"translateX(var(--translate-x))", | ||
"translateY(var(--translate-y))", | ||
...transformTemplate | ||
].join(" "); | ||
var gpuTransformTemplate = [ | ||
"translate3d(var(--translate-x), var(--translate-y), 0)", | ||
...transformTemplate | ||
].join(" "); | ||
var transforms = { | ||
transform: { | ||
className: "transform", | ||
values: { | ||
auto: baseTransformTemplate, | ||
"auto-gpu": gpuTransformTemplate | ||
} | ||
}, | ||
transformOrigin: { | ||
@@ -1686,7 +1663,5 @@ className: "origin" | ||
className: "scale", | ||
transform(value) { | ||
return { | ||
"--scale-x": value, | ||
"--scale-y": value | ||
}; | ||
property: "scale", | ||
values: { | ||
auto: "var(--scale-x) var(--scale-y)" | ||
} | ||
@@ -1710,8 +1685,7 @@ }, | ||
}, | ||
rotate: { | ||
className: "rotate", | ||
transform(value) { | ||
return { | ||
"--rotate": value | ||
}; | ||
translate: { | ||
className: "translate", | ||
property: "translate", | ||
values: { | ||
auto: "var(--translate-x) var(--translate-y)" | ||
} | ||
@@ -1760,18 +1734,2 @@ }, | ||
} | ||
}, | ||
skewX: { | ||
className: "skew-x", | ||
transform(value) { | ||
return { | ||
"--skew-x": value | ||
}; | ||
} | ||
}, | ||
skewY: { | ||
className: "skew-y", | ||
transform(value) { | ||
return { | ||
"--skew-y": value | ||
}; | ||
} | ||
} | ||
@@ -1778,0 +1736,0 @@ }; |
{ | ||
"name": "@pandacss/preset-base", | ||
"version": "0.0.0-dev-20230614183248", | ||
"version": "0.0.0-dev-20230614192942", | ||
"description": "The base preset for Panda CSS that contains the conditions and utilities", | ||
@@ -17,3 +17,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@pandacss/types": "0.0.0-dev-20230614183248" | ||
"@pandacss/types": "0.0.0-dev-20230614192942" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
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
117460
5012
+ Added@pandacss/types@0.0.0-dev-20230614192942(transitive)
- Removed@pandacss/types@0.0.0-dev-20230614183248(transitive)