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

postcss-preset-mantine

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-preset-mantine - npm Package Compare versions

Comparing version 1.14.0 to 1.14.1

13

dist/converters.js
"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

2

package.json
{
"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

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