@meetdomaine/tailwind-syrah
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"name": "@meetdomaine/tailwind-syrah", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A TailwindCSS plugin for Domaine", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -17,10 +17,22 @@ import { z } from "zod"; | ||
.filter(([_, value]) => typeof value.mobile !== "string") | ||
.filter(([key]) => key.startsWith("Space/")) | ||
.filter( | ||
([key]) => key.startsWith("Space/") || key.startsWith("Inputs/") | ||
) | ||
); | ||
}) | ||
.pipe(z.record(z.string().startsWith("Space/"), ResponsiveValuesSchema)) | ||
.pipe( | ||
z.record( | ||
z.string().startsWith("Space/").or(z.string().startsWith("Inputs/")), | ||
ResponsiveValuesSchema | ||
) | ||
) | ||
.transform((data) => { | ||
return Object.fromEntries( | ||
Object.entries(data).map(([key, value]) => [ | ||
key.replace("Space/", "").replace(/\s/g, "").toLowerCase(), | ||
key | ||
.replace("Space/", "") | ||
.replace("Inputs/", "") | ||
.replace(/\s/g, "") | ||
.replaceAll("/", "-") | ||
.toLowerCase(), | ||
value, | ||
@@ -90,7 +102,17 @@ ]) | ||
.filter(([_, value]) => typeof value.mobile !== "string") | ||
.filter(([key]) => key.startsWith("Border/Radius")) | ||
.filter( | ||
([key]) => | ||
key.startsWith("Border/Radius") || | ||
key.startsWith("Inputs/Forms/Radius") | ||
) | ||
); | ||
}) | ||
.pipe( | ||
z.record(z.string().startsWith("Border/Radius"), ResponsiveValuesSchema) | ||
z.record( | ||
z | ||
.string() | ||
.startsWith("Border/Radius") | ||
.or(z.string().startsWith("Inputs/Forms/Radius")), | ||
ResponsiveValuesSchema | ||
) | ||
) | ||
@@ -100,3 +122,9 @@ .transform((data) => { | ||
Object.entries(data).map(([key, value]) => [ | ||
kebabcase(key.replace("Border/Radius", "").replace(/\s/g, "")), | ||
kebabcase( | ||
key | ||
.replace("Border/Radius", "") | ||
.replace("Inputs/", "") | ||
.replace(/\s/g, "") | ||
.replaceAll("/", "-") | ||
), | ||
value, | ||
@@ -103,0 +131,0 @@ ]) |
33599
1049