tailwindcss-patch 9.0.0 → 9.1.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/chunk-8l464Juk.js +28 -0
- package/dist/cli.d.mts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +18 -22
- package/dist/cli.mjs +17 -22
- package/dist/commands/cli-runtime.d.mts +5 -10
- package/dist/commands/cli-runtime.d.ts +5 -10
- package/dist/commands/cli-runtime.js +582 -1217
- package/dist/commands/cli-runtime.mjs +570 -1216
- package/dist/dist-B1VBpHtd.js +21 -0
- package/dist/dist-BjUV1yEM.mjs +19 -0
- package/dist/index.bundle-0Fe7Jx8V.mjs +194 -0
- package/dist/index.bundle-C4Y53Ygf.js +232 -0
- package/dist/index.d.mts +133 -67
- package/dist/index.d.ts +133 -67
- package/dist/index.js +33 -57
- package/dist/index.mjs +3 -57
- package/dist/validate-4FCU-Ql3.mjs +3525 -0
- package/dist/validate-Bu_rkfQF.d.ts +686 -0
- package/dist/validate-BuhhSYBe.js +3700 -0
- package/dist/validate-CIMnzW8O.d.mts +685 -0
- package/package.json +11 -11
- package/src/api/tailwindcss-patcher.ts +33 -6
- package/src/commands/basic-handlers.ts +0 -1
- package/src/config/index.ts +1 -1
- package/src/config/workspace.ts +1 -1
- package/src/extraction/candidate-extractor.ts +14 -69
- package/src/index.bundle.ts +21 -0
- package/src/index.ts +16 -0
- package/src/options/legacy.ts +2 -2
- package/src/options/normalize.ts +10 -5
- package/src/runtime/collector.ts +7 -7
- package/src/runtime/process-tailwindcss.ts +33 -17
- package/src/v4/candidates.ts +224 -0
- package/src/v4/engine.ts +70 -0
- package/src/v4/index.ts +25 -0
- package/src/v4/node-adapter.ts +149 -0
- package/src/v4/source.ts +193 -0
- package/src/v4/types.ts +57 -0
- package/dist/chunk-4RRHMRLJ.js +0 -4378
- package/dist/chunk-AOSPLINO.mjs +0 -4378
- package/dist/chunk-OSH52QWA.mjs +0 -10
- package/dist/chunk-QQXAOMUH.js +0 -25
- package/dist/chunk-YYBY7EM5.mjs +0 -21
- package/dist/chunk-ZPLR2UEW.js +0 -7
- package/dist/dist-22YCNIJW.js +0 -269
- package/dist/dist-7W73GIRD.mjs +0 -269
- package/dist/validate-nbmOI2w8.d.mts +0 -677
- package/dist/validate-nbmOI2w8.d.ts +0 -677
package/src/v4/types.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface TailwindV4SourceOptions {
|
|
2
|
+
projectRoot?: string
|
|
3
|
+
cwd?: string
|
|
4
|
+
base?: string
|
|
5
|
+
baseFallbacks?: string[]
|
|
6
|
+
css?: string
|
|
7
|
+
cssEntries?: string[]
|
|
8
|
+
packageName?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TailwindV4ResolvedSource {
|
|
12
|
+
projectRoot: string
|
|
13
|
+
base: string
|
|
14
|
+
baseFallbacks: string[]
|
|
15
|
+
css: string
|
|
16
|
+
dependencies: string[]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface TailwindV4CandidateSource {
|
|
20
|
+
content: string
|
|
21
|
+
extension?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface TailwindV4GenerateOptions {
|
|
25
|
+
candidates?: Iterable<string>
|
|
26
|
+
sources?: TailwindV4CandidateSource[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface TailwindV4SourcePattern {
|
|
30
|
+
base: string
|
|
31
|
+
pattern: string
|
|
32
|
+
negated: boolean
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface TailwindV4GenerateResult {
|
|
36
|
+
css: string
|
|
37
|
+
classSet: Set<string>
|
|
38
|
+
rawCandidates: Set<string>
|
|
39
|
+
dependencies: string[]
|
|
40
|
+
sources: TailwindV4SourcePattern[]
|
|
41
|
+
root: null | 'none' | {
|
|
42
|
+
base: string
|
|
43
|
+
pattern: string
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface TailwindV4DesignSystem {
|
|
48
|
+
parseCandidate: (candidate: string) => unknown[]
|
|
49
|
+
candidatesToCss: (candidates: string[]) => Array<string | null | undefined>
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface TailwindV4Engine {
|
|
53
|
+
source: TailwindV4ResolvedSource
|
|
54
|
+
loadDesignSystem: () => Promise<TailwindV4DesignSystem>
|
|
55
|
+
validateCandidates: (candidates: Iterable<string>) => Promise<Set<string>>
|
|
56
|
+
generate: (options?: TailwindV4GenerateOptions) => Promise<TailwindV4GenerateResult>
|
|
57
|
+
}
|