tailwindcss-patch 9.0.1 → 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/cli.js +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/commands/cli-runtime.js +1 -1
- package/dist/commands/cli-runtime.mjs +1 -1
- package/dist/index.bundle-0Fe7Jx8V.mjs +194 -0
- package/dist/index.bundle-C4Y53Ygf.js +232 -0
- package/dist/index.d.mts +66 -1
- package/dist/index.d.ts +66 -1
- package/dist/index.js +7 -2
- package/dist/index.mjs +3 -3
- package/dist/{validate-BI8356RT.mjs → validate-4FCU-Ql3.mjs} +227 -38
- package/dist/{validate-B8H-8rWO.js → validate-BuhhSYBe.js} +251 -38
- package/package.json +2 -2
- package/src/extraction/candidate-extractor.ts +14 -69
- package/src/index.bundle.ts +21 -0
- package/src/index.ts +16 -0
- 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/index.bundle-BGBMTX9A.js +0 -35
- package/dist/index.bundle-ByrTqrr3.mjs +0 -18
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
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
require("./chunk-8l464Juk.js");
|
|
2
|
-
require("./validate-B8H-8rWO.js");
|
|
3
|
-
//#region src/index.bundle.ts
|
|
4
|
-
const require$1 = (0, require("node:module").createRequire)(require("url").pathToFileURL(__filename).href);
|
|
5
|
-
function loadCliModule() {
|
|
6
|
-
return require$1("./commands/cli-runtime.js");
|
|
7
|
-
}
|
|
8
|
-
function mountTailwindcssPatchCommands(cli, options = {}) {
|
|
9
|
-
return loadCliModule().mountTailwindcssPatchCommands(cli, options);
|
|
10
|
-
}
|
|
11
|
-
function createTailwindcssPatchCli(options = {}) {
|
|
12
|
-
return loadCliModule().createTailwindcssPatchCli(options);
|
|
13
|
-
}
|
|
14
|
-
function defineConfig(config) {
|
|
15
|
-
return config;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
Object.defineProperty(exports, "createTailwindcssPatchCli", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function() {
|
|
21
|
-
return createTailwindcssPatchCli;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "defineConfig", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return defineConfig;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "mountTailwindcssPatchCommands", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function() {
|
|
33
|
-
return mountTailwindcssPatchCommands;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "./validate-BI8356RT.mjs";
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
//#region src/index.bundle.ts
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
-
function loadCliModule() {
|
|
6
|
-
return require("./commands/cli-runtime.js");
|
|
7
|
-
}
|
|
8
|
-
function mountTailwindcssPatchCommands(cli, options = {}) {
|
|
9
|
-
return loadCliModule().mountTailwindcssPatchCommands(cli, options);
|
|
10
|
-
}
|
|
11
|
-
function createTailwindcssPatchCli(options = {}) {
|
|
12
|
-
return loadCliModule().createTailwindcssPatchCli(options);
|
|
13
|
-
}
|
|
14
|
-
function defineConfig(config) {
|
|
15
|
-
return config;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { defineConfig as n, mountTailwindcssPatchCommands as r, createTailwindcssPatchCli as t };
|