@react-email/tailwind 2.0.0-tailwindv4.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +15 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +276 -157
- package/dist/index.mjs +262 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +51 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { Config } from "tailwindcss";
|
|
3
|
+
import { StyleSheet } from "css-tree";
|
|
3
4
|
|
|
5
|
+
//#region src/inline-styles.d.ts
|
|
6
|
+
declare function inlineStyles(styleSheet: StyleSheet, classes: string[]): Record<string, string>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/sanitize-stylesheet.d.ts
|
|
9
|
+
declare function sanitizeStyleSheet(styleSheet: StyleSheet): void;
|
|
10
|
+
//#endregion
|
|
4
11
|
//#region src/tailwind.d.ts
|
|
5
12
|
type TailwindConfig = Omit<Config, 'content'>;
|
|
6
13
|
interface TailwindProps {
|
|
@@ -18,5 +25,12 @@ declare function Tailwind({
|
|
|
18
25
|
config
|
|
19
26
|
}: TailwindProps): React$1.ReactNode;
|
|
20
27
|
//#endregion
|
|
21
|
-
|
|
28
|
+
//#region src/utils/tailwindcss/setup-tailwind.d.ts
|
|
29
|
+
type TailwindSetup = Awaited<ReturnType<typeof setupTailwind>>;
|
|
30
|
+
declare function setupTailwind(config: TailwindConfig): Promise<{
|
|
31
|
+
addUtilities: (candidates: string[]) => void;
|
|
32
|
+
getStyleSheet: () => StyleSheet;
|
|
33
|
+
}>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { EmailElementProps, Tailwind, TailwindConfig, TailwindProps, TailwindSetup, inlineStyles, pixelBasedPreset, sanitizeStyleSheet, setupTailwind };
|
|
22
36
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/tailwind.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/inline-styles.ts","../src/sanitize-stylesheet.ts","../src/tailwind.tsx","../src/utils/tailwindcss/setup-tailwind.ts"],"sourcesContent":[],"mappings":";;;;;iBAKgB,YAAA,aACF,gCAEX;;;iBCHa,kBAAA,aAA+B;;;KCOnC,cAAA,GAAiB,KAAK;UAEjB,aAAA;YACL,OAAA,CAAM;EFVF,MAAA,CAAA,EEWL,cFXiB;;UEcX,iBAAA;aACJ,OAAA,CAAM;EDfH,SAAA,CAAA,EAAA,MAAA;UCiBN,OAAA,CAAM;;cAGH,kBAAkB;AAbnB,iBAwEI,QAAA,CAxEkB;EAAA,QAAL;EAAI;AAAA,CAAA,EAwEc,aAxEd,CAAA,EAwE2B,OAAA,CAAA,SAxE3B;;;KCJrB,aAAA,GAAgB,QAAQ,kBAAkB;iBAEhC,aAAA,SAAsB,iBAAc;;EHL1C,aAAA,EAAY,GAAA,GGyED,UHxEb"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { StyleSheet } from "css-tree";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Config } from "tailwindcss";
|
|
3
4
|
|
|
5
|
+
//#region src/inline-styles.d.ts
|
|
6
|
+
declare function inlineStyles(styleSheet: StyleSheet, classes: string[]): Record<string, string>;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/sanitize-stylesheet.d.ts
|
|
9
|
+
declare function sanitizeStyleSheet(styleSheet: StyleSheet): void;
|
|
10
|
+
//#endregion
|
|
4
11
|
//#region src/tailwind.d.ts
|
|
5
12
|
type TailwindConfig = Omit<Config, 'content'>;
|
|
6
13
|
interface TailwindProps {
|
|
@@ -18,5 +25,12 @@ declare function Tailwind({
|
|
|
18
25
|
config
|
|
19
26
|
}: TailwindProps): React.ReactNode;
|
|
20
27
|
//#endregion
|
|
21
|
-
|
|
28
|
+
//#region src/utils/tailwindcss/setup-tailwind.d.ts
|
|
29
|
+
type TailwindSetup = Awaited<ReturnType<typeof setupTailwind>>;
|
|
30
|
+
declare function setupTailwind(config: TailwindConfig): Promise<{
|
|
31
|
+
addUtilities: (candidates: string[]) => void;
|
|
32
|
+
getStyleSheet: () => StyleSheet;
|
|
33
|
+
}>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { EmailElementProps, Tailwind, TailwindConfig, TailwindProps, TailwindSetup, inlineStyles, pixelBasedPreset, sanitizeStyleSheet, setupTailwind };
|
|
22
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/tailwind.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/inline-styles.ts","../src/sanitize-stylesheet.ts","../src/tailwind.tsx","../src/utils/tailwindcss/setup-tailwind.ts"],"sourcesContent":[],"mappings":";;;;;iBAKgB,YAAA,aACF,gCAEX;;;iBCHa,kBAAA,aAA+B;;;KCOnC,cAAA,GAAiB,KAAK;UAEjB,aAAA;YACL,KAAA,CAAM;EFVF,MAAA,CAAA,EEWL,cFXiB;;UEcX,iBAAA;aACJ,KAAA,CAAM;EDfH,SAAA,CAAA,EAAA,MAAA;UCiBN,KAAA,CAAM;;cAGH,kBAAkB;AAbnB,iBAwEI,QAAA,CAxEkB;EAAA,QAAL;EAAI;AAAA,CAAA,EAwEc,aAxEd,CAAA,EAwE2B,KAAA,CAAA,SAxE3B;;;KCJrB,aAAA,GAAgB,QAAQ,kBAAkB;iBAEhC,aAAA,SAAsB,iBAAc;;EHL1C,aAAA,EAAY,GAAA,GGyED,UHxEb"}
|