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.
@@ -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 };