postcss-preset-mantine
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -38,3 +38,3 @@ "use strict"; | ||
root.walkDecls((decl) => { | ||
const { value, prop } = decl; | ||
const { value } = decl; | ||
const regex = /\blight-dark\b/; | ||
@@ -44,5 +44,5 @@ if (regex.test(value)) { | ||
const darkMixin = (0, postcss_1.atRule)({ name: 'mixin', params: 'dark' }); | ||
darkMixin.append((0, postcss_1.decl)({ prop, value: darkVal })); | ||
darkMixin.append(decl.clone({ value: darkVal })); | ||
decl.parent?.insertAfter(decl, darkMixin); | ||
decl.parent?.insertAfter(decl, (0, postcss_1.decl)({ prop, value: lightVal })); | ||
decl.parent?.insertAfter(decl, decl.clone({ value: lightVal })); | ||
decl.remove(); | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "postcss-preset-mantine", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "PostCSS preset for Mantine (7.0+) applications", | ||
@@ -16,7 +16,7 @@ "main": "dist/preset.js", | ||
"@types/jest": "^29.5.2", | ||
"@types/node": "^20.2.6", | ||
"@types/node": "^20.3.1", | ||
"@types/postcss-mixins": "^9.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.59.9", | ||
"@typescript-eslint/parser": "^5.59.9", | ||
"eslint": "^8.42.0", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"eslint": "^8.43.0", | ||
"jest": "^29.5.0", | ||
@@ -23,0 +23,0 @@ "postcss": "^8.4.24", |
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
12902