diff --git a/.changeset/great-pots-cover.md b/.changeset/great-pots-cover.md new file mode 100644 index 0000000..92818b4 --- /dev/null +++ b/.changeset/great-pots-cover.md @@ -0,0 +1,6 @@ +--- +"@rpxl/recast": minor +"@rpxl/recast-tailwind-plugin": patch +--- + +Remove responsive values from recast components that have no breakpoints defined diff --git a/.changeset/shiny-chefs-fix.md b/.changeset/shiny-chefs-fix.md new file mode 100644 index 0000000..be0bbe2 --- /dev/null +++ b/.changeset/shiny-chefs-fix.md @@ -0,0 +1,5 @@ +--- +"@rpxl/recast-tailwind-plugin": patch +--- + +Fix string literal variant extraction from recast components diff --git a/packages/lib/src/__tests__/recast.test.tsx b/packages/lib/src/__tests__/recast.test.tsx index 510bc1b..3148da7 100644 --- a/packages/lib/src/__tests__/recast.test.tsx +++ b/packages/lib/src/__tests__/recast.test.tsx @@ -658,7 +658,7 @@ describe("recast function", () => { }); it("should correctly type breakpoints", () => { - const Button = recast(BaseButton, { + const ButtonWithBreakpoints = recast(BaseButton, { base: "text-base", variants: { size: { @@ -670,10 +670,26 @@ describe("recast function", () => { }); // This should compile without errors -