@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.
- package/dist/astTransform-CDvNOLX5.d.cts +30 -0
- package/dist/astTransform-CDvNOLX5.d.ts +30 -0
- package/dist/chunk-LQ6DVF5A.js +2604 -0
- package/dist/chunk-QYSYW6TK.js +62 -0
- package/dist/index.cjs +288 -0
- package/dist/index.d.cts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +240 -0
- package/dist/turbopackLoader.cjs +2711 -0
- package/dist/turbopackLoader.d.cts +22 -0
- package/dist/turbopackLoader.d.ts +22 -0
- package/dist/turbopackLoader.js +82 -0
- package/dist/webpackLoader.cjs +2692 -0
- package/dist/webpackLoader.d.cts +24 -0
- package/dist/webpackLoader.d.ts +24 -0
- package/dist/webpackLoader.js +63 -0
- package/package.json +35 -0
|
@@ -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 };
|