fluid-tailwind
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -394,3 +394,7 @@ "use strict"; | ||
const endBP = resolveBP(_endBP, "end", context, atContainer); | ||
if (!start.unit || start.unit !== end.unit) | ||
if (start.number === 0) | ||
start.unit = end.unit; | ||
else if (end.number === 0) | ||
end.unit = start.unit; | ||
else if (!start.unit || start.unit !== end.unit) | ||
error("mismatched-units", start, end); | ||
@@ -401,3 +405,7 @@ const unit = start.unit; | ||
let comment = `/* fluid from ${start.cssText} at ${startBP.cssText} to ${end.cssText} at ${endBP.cssText}${atContainer ? " (container)" : ""} */`; | ||
if (!startBP.unit || startBP.unit !== endBP.unit) { | ||
if (startBP.number === 0) { | ||
startBP.unit = endBP.unit; | ||
} else if (endBP.number === 0) { | ||
endBP.unit = startBP.unit; | ||
} else if (!startBP.unit || startBP.unit !== endBP.unit) { | ||
if (checkBP) | ||
@@ -404,0 +412,0 @@ error("mismatched-bp-units", startBP, endBP); |
{ | ||
"name": "fluid-tailwind", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/index.js", | ||
@@ -26,3 +26,3 @@ "module": "dist/index.mjs", | ||
"test": "bun test", | ||
"build": "tsup src --format esm,cjs --no-splitting --clean", | ||
"build": "tsup src/index.ts --format esm,cjs --no-splitting --clean", | ||
"postbuild": "tsc -p tsconfig.build.json --emitDeclarationOnly", | ||
@@ -29,0 +29,0 @@ "dev": "bun run build --watch", |
@@ -1,2 +0,2 @@ | ||
[](https://fluid.tw) | ||
[](https://fluid.tw) | ||
@@ -3,0 +3,0 @@ A Tailwind plugin to easily generate fluid `clamp()` values with every built-in utility. |
Sorry, the diff of this file is not supported yet
2
61108
14
1738