postcss-preset-mantine
Advanced tools
Comparing version 1.14.0 to 1.14.1
"use strict"; | ||
function scaleRem(remValue) { | ||
if (remValue === '0rem') { | ||
return '0rem'; | ||
} | ||
return `calc(${remValue} * var(--mantine-scale))`; | ||
@@ -8,3 +11,3 @@ } | ||
if (value === 0 || value === '0') { | ||
return '0'; | ||
return `0${units}`; | ||
} | ||
@@ -16,5 +19,11 @@ if (typeof value === 'number') { | ||
if (typeof value === 'string') { | ||
if (value.startsWith('calc(') || value.startsWith('var(') || value.startsWith('clamp(')) { | ||
if (value.startsWith('calc(') || value.startsWith('clamp(') || value.includes('rgba(')) { | ||
return value; | ||
} | ||
if (value.includes(',')) { | ||
return value | ||
.split(',') | ||
.map((val) => converter(val)) | ||
.join(','); | ||
} | ||
if (value.includes(' ')) { | ||
@@ -21,0 +30,0 @@ return value |
{ | ||
"name": "postcss-preset-mantine", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "PostCSS preset for Mantine (7.0+) applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/preset.js", |
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
35568
526