@tailwind-styled/next 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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * tailwind-styled-v4 v2 — AST Transform (RSC-Aware)
3
+ *
4
+ * FIXES:
5
+ * #01 — Double-merge base in variant component className array
6
+ * #08 — Idempotency guard — skip if already transformed
7
+ *
8
+ * Pipeline:
9
+ * source code
10
+ * ↓ idempotency check (new)
11
+ * ↓ analyze RSC context
12
+ * ↓ hoist components (if needed)
13
+ * ↓ detect tw.server.* vs tw.*
14
+ * ↓ extract + merge classes
15
+ * ↓ compile variants → lookup table (variant-only, no base dupe)
16
+ * ↓ generate React.forwardRef component
17
+ * ↓ auto "use client" if interactive
18
+ * ↓ strip tw import
19
+ * ↓ inject transform marker
20
+ */
21
+
22
+ interface TransformOptions {
23
+ mode?: "zero-runtime" | "runtime" | "extract-only";
24
+ autoClientBoundary?: boolean;
25
+ addDataAttr?: boolean;
26
+ hoist?: boolean;
27
+ filename?: string;
28
+ }
29
+
30
+ export type { TransformOptions as T };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * tailwind-styled-v4 v2 — AST Transform (RSC-Aware)
3
+ *
4
+ * FIXES:
5
+ * #01 — Double-merge base in variant component className array
6
+ * #08 — Idempotency guard — skip if already transformed
7
+ *
8
+ * Pipeline:
9
+ * source code
10
+ * ↓ idempotency check (new)
11
+ * ↓ analyze RSC context
12
+ * ↓ hoist components (if needed)
13
+ * ↓ detect tw.server.* vs tw.*
14
+ * ↓ extract + merge classes
15
+ * ↓ compile variants → lookup table (variant-only, no base dupe)
16
+ * ↓ generate React.forwardRef component
17
+ * ↓ auto "use client" if interactive
18
+ * ↓ strip tw import
19
+ * ↓ inject transform marker
20
+ */
21
+
22
+ interface TransformOptions {
23
+ mode?: "zero-runtime" | "runtime" | "extract-only";
24
+ autoClientBoundary?: boolean;
25
+ addDataAttr?: boolean;
26
+ hoist?: boolean;
27
+ filename?: string;
28
+ }
29
+
30
+ export type { TransformOptions as T };