@pandacss/token-dictionary
Advanced tools
Comparing version 0.49.0 to 0.50.0
@@ -42,6 +42,6 @@ "use strict"; | ||
inset: import_ts_pattern.P.optional(import_ts_pattern.P.boolean), | ||
offsetX: import_ts_pattern.P.number, | ||
offsetY: import_ts_pattern.P.number, | ||
blur: import_ts_pattern.P.number, | ||
spread: import_ts_pattern.P.number, | ||
offsetX: import_ts_pattern.P.union(import_ts_pattern.P.number, import_ts_pattern.P.string), | ||
offsetY: import_ts_pattern.P.union(import_ts_pattern.P.number, import_ts_pattern.P.string), | ||
blur: import_ts_pattern.P.union(import_ts_pattern.P.number, import_ts_pattern.P.string), | ||
spread: import_ts_pattern.P.union(import_ts_pattern.P.number, import_ts_pattern.P.string), | ||
color: import_ts_pattern.P.string | ||
@@ -520,2 +520,5 @@ }); | ||
} | ||
function px(v) { | ||
return (0, import_shared4.isString)(v) ? v : `${v}px`; | ||
} | ||
var transformShadow = { | ||
@@ -533,3 +536,3 @@ name: "tokens/shadow", | ||
const { offsetX, offsetY, blur, spread, color, inset } = token.value; | ||
return `${inset ? "inset " : ""}${offsetX}px ${offsetY}px ${blur}px ${spread}px ${color}`; | ||
return [inset ? "inset " : "", px(offsetX), px(offsetY), px(blur), px(spread), color].filter(Boolean).join(" "); | ||
} | ||
@@ -536,0 +539,0 @@ return token.value; |
{ | ||
"name": "@pandacss/token-dictionary", | ||
"version": "0.49.0", | ||
"version": "0.50.0", | ||
"description": "Common error messages for css panda", | ||
@@ -36,5 +36,5 @@ "main": "dist/index.js", | ||
"ts-pattern": "5.0.8", | ||
"@pandacss/logger": "^0.49.0", | ||
"@pandacss/shared": "0.49.0", | ||
"@pandacss/types": "0.49.0" | ||
"@pandacss/logger": "^0.50.0", | ||
"@pandacss/shared": "0.50.0", | ||
"@pandacss/types": "0.50.0" | ||
}, | ||
@@ -41,0 +41,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
97467
2840
+ Added@pandacss/logger@0.50.0(transitive)
+ Added@pandacss/shared@0.50.0(transitive)
+ Added@pandacss/types@0.50.0(transitive)
- Removed@pandacss/logger@0.49.0(transitive)
- Removed@pandacss/shared@0.49.0(transitive)
- Removed@pandacss/types@0.49.0(transitive)
Updated@pandacss/logger@^0.50.0
Updated@pandacss/shared@0.50.0
Updated@pandacss/types@0.50.0