diff --git a/.changeset/five-pants-boil.md b/.changeset/five-pants-boil.md new file mode 100644 index 0000000000..525116c0ca --- /dev/null +++ b/.changeset/five-pants-boil.md @@ -0,0 +1,5 @@ +--- +"@react-email/tailwind": patch +--- + +Fix duplicate media query styles diff --git a/.changeset/moody-steaks-invent.md b/.changeset/moody-steaks-invent.md new file mode 100644 index 0000000000..efef097757 --- /dev/null +++ b/.changeset/moody-steaks-invent.md @@ -0,0 +1,5 @@ +--- +"@react-email/tailwind": patch +--- + +Fix Promise being returned as a React Node diff --git a/packages/tailwind/integrations/nextjs/next-env.d.ts b/packages/tailwind/integrations/nextjs/next-env.d.ts index 4f11a03dc6..40c3d68096 100644 --- a/packages/tailwind/integrations/nextjs/next-env.d.ts +++ b/packages/tailwind/integrations/nextjs/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/packages/tailwind/integrations/nextjs/package-lock.json b/packages/tailwind/integrations/nextjs/package-lock.json index be0e946474..6a79fb39b4 100644 --- a/packages/tailwind/integrations/nextjs/package-lock.json +++ b/packages/tailwind/integrations/nextjs/package-lock.json @@ -24,7 +24,7 @@ } }, ".yalc/@react-email/tailwind": { - "version": "1.0.0-canary.1", + "version": "1.0.0", "license": "MIT", "engines": { "node": ">=18.0.0" diff --git a/packages/tailwind/integrations/vite/package-lock.json b/packages/tailwind/integrations/vite/package-lock.json index 102c646beb..6c29055824 100644 --- a/packages/tailwind/integrations/vite/package-lock.json +++ b/packages/tailwind/integrations/vite/package-lock.json @@ -29,7 +29,7 @@ } }, ".yalc/@react-email/tailwind": { - "version": "1.0.0-canary.1", + "version": "1.0.0", "license": "MIT", "engines": { "node": ">=18.0.0" diff --git a/packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap b/packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap index 9256367600..b21612c7d8 100644 --- a/packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap +++ b/packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap @@ -16,6 +16,8 @@ exports[`Custom theme config > should be able to use custom text alignment 1`] = exports[`Responsive styles > should add css to and keep responsive class names 1`] = `"
"`; +exports[`Responsive styles > should not have duplicate media queries 1`] = `"
"`; + exports[`Responsive styles > should persist existing elements 1`] = `"
"`; exports[`Responsive styles > should throw an error when used without a 1`] = ` @@ -46,7 +48,7 @@ exports[`Responsive styles > should work with arbitrarily deep (in the React tre exports[`Responsive styles > should work with arbitrarily deep (in the React tree) elements 2`] = `"
"`; -exports[`Responsive styles > should work with relatively complex media query utilities 1`] = `"

I am some text

"`; +exports[`Responsive styles > should work with relatively complex media query utilities 1`] = `"

I am some text

"`; exports[`Tailwind component >