tailwindcss-patch 9.4.1 → 9.4.3
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/README.md +69 -0
- package/dist/{cli-CBVPia5Z.js → cli-BztQHMRp.js} +63 -64
- package/dist/{cli-CgBdW1U5.mjs → cli-D0jXMGXf.mjs} +1 -1
- package/dist/cli.js +5 -6
- package/dist/cli.mjs +2 -2
- package/dist/commands/cli-runtime.d.mts +1 -1
- package/dist/commands/cli-runtime.d.ts +1 -1
- package/dist/commands/cli-runtime.js +6 -6
- package/dist/commands/cli-runtime.mjs +2 -2
- package/dist/{dist-B1VBpHtd.js → dist-DDcbvOwe.js} +2 -2
- package/dist/index.d.mts +105 -5
- package/dist/index.d.ts +105 -5
- package/dist/index.js +325 -62
- package/dist/index.mjs +253 -4
- package/dist/{migrate-config-DqknZpUe.mjs → validate-Bug_WYcU.mjs} +193 -93
- package/dist/{validate-CaJv2g5K.d.ts → validate-BuqRodYI.d.ts} +65 -16
- package/dist/{migrate-config-Dn9OTXpO.js → validate-DbuKewV-.js} +257 -100
- package/dist/{validate-Dr7IkGU8.d.mts → validate-oAkURzUC.d.mts} +65 -15
- package/package.json +9 -9
- package/src/extraction/candidate-extractor.ts +76 -12
- package/src/public-api.ts +54 -13
- package/src/style-candidates.ts +35 -0
- package/src/style-generator.ts +80 -0
- package/src/v3/index.ts +11 -0
- package/src/v3/style-generator.ts +384 -0
- package/src/v4/bare-arbitrary-values.ts +127 -2
- package/src/v4/engine.ts +5 -2
- package/src/v4/index.ts +20 -4
- package/src/v4/node-adapter.ts +1 -1
- package/src/v4/source-scan.ts +1 -1
- package/src/v4/style-generator.ts +44 -0
- package/src/v4/types.ts +23 -0
- package/dist/chunk-8l464Juk.js +0 -28
- /package/dist/{dist-BjUV1yEM.mjs → dist-CxmNpfyy.mjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_migrate_config = require("./migrate-config-Dn9OTXpO.js");
|
|
2
|
+
const require_validate = require("./validate-DbuKewV-.js");
|
|
4
3
|
let node_module = require("node:module");
|
|
5
4
|
let node_process = require("node:process");
|
|
6
|
-
node_process =
|
|
5
|
+
node_process = require_validate.__toESM(node_process);
|
|
7
6
|
let pathe = require("pathe");
|
|
8
|
-
pathe =
|
|
7
|
+
pathe = require_validate.__toESM(pathe);
|
|
9
8
|
let node_fs = require("node:fs");
|
|
9
|
+
let postcss = require("postcss");
|
|
10
|
+
postcss = require_validate.__toESM(postcss);
|
|
10
11
|
//#region src/extraction/split-candidate-tokens.ts
|
|
11
12
|
const validateCandidateTokenRE = /[\w\u00A0-\uFFFF%-?]/;
|
|
12
13
|
function isValidCandidateToken(token = "") {
|
|
@@ -66,22 +67,213 @@ function splitCandidateTokens(code) {
|
|
|
66
67
|
return result;
|
|
67
68
|
}
|
|
68
69
|
//#endregion
|
|
70
|
+
//#region src/style-candidates.ts
|
|
71
|
+
async function collectTailwindStyleCandidates(options = {}) {
|
|
72
|
+
const candidates = /* @__PURE__ */ new Set();
|
|
73
|
+
for (const candidate of options.candidates ?? []) candidates.add(candidate);
|
|
74
|
+
for (const source of options.sources ?? []) {
|
|
75
|
+
const sourceCandidates = await require_validate.extractSourceCandidates(source.content, source.extension, { bareArbitraryValues: options.bareArbitraryValues });
|
|
76
|
+
for (const candidate of sourceCandidates) candidates.add(candidate);
|
|
77
|
+
}
|
|
78
|
+
return candidates;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/v3/style-generator.ts
|
|
82
|
+
function createPackageRequire(cwd) {
|
|
83
|
+
return (0, node_module.createRequire)(pathe.default.join(pathe.default.resolve(cwd ?? node_process.default.cwd()), "package.json"));
|
|
84
|
+
}
|
|
85
|
+
function createDefaultTailwindV3Config(tokens) {
|
|
86
|
+
return {
|
|
87
|
+
content: [{
|
|
88
|
+
raw: [...tokens].join(" "),
|
|
89
|
+
extension: "html"
|
|
90
|
+
}],
|
|
91
|
+
theme: { extend: {} },
|
|
92
|
+
plugins: []
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function getDefaultExport(module) {
|
|
96
|
+
if (module && typeof module === "object" && "default" in module) return module.default;
|
|
97
|
+
return module;
|
|
98
|
+
}
|
|
99
|
+
function loadTailwindV3Modules(options) {
|
|
100
|
+
const packageName = options.packageName ?? "tailwindcss";
|
|
101
|
+
const moduleRequire = createPackageRequire(options.cwd);
|
|
102
|
+
const resolveConfig = getDefaultExport(moduleRequire(`${packageName}/lib/public/resolve-config`));
|
|
103
|
+
const contextModule = moduleRequire(`${packageName}/lib/lib/setupContextUtils`);
|
|
104
|
+
const generateRulesModule = moduleRequire(`${packageName}/lib/lib/generateRules`);
|
|
105
|
+
const collapseAdjacentRulesModule = moduleRequire(`${packageName}/lib/lib/collapseAdjacentRules`);
|
|
106
|
+
const collapseDuplicateDeclarationsModule = moduleRequire(`${packageName}/lib/lib/collapseDuplicateDeclarations`);
|
|
107
|
+
const processTailwindFeaturesModule = moduleRequire(`${packageName}/lib/processTailwindFeatures`);
|
|
108
|
+
const resolveDefaultsAtRulesModule = moduleRequire(`${packageName}/lib/lib/resolveDefaultsAtRules`);
|
|
109
|
+
const sharedStateModule = moduleRequire(`${packageName}/lib/lib/sharedState`);
|
|
110
|
+
const validateConfigModule = moduleRequire(`${packageName}/lib/util/validateConfig.js`);
|
|
111
|
+
return {
|
|
112
|
+
collapseAdjacentRules: getDefaultExport(collapseAdjacentRulesModule),
|
|
113
|
+
collapseDuplicateDeclarations: getDefaultExport(collapseDuplicateDeclarationsModule),
|
|
114
|
+
createContext: contextModule.createContext,
|
|
115
|
+
generateRules: generateRulesModule.generateRules,
|
|
116
|
+
notOnDemandCandidate: sharedStateModule.NOT_ON_DEMAND ?? "*",
|
|
117
|
+
processTailwindFeatures: getDefaultExport(processTailwindFeaturesModule),
|
|
118
|
+
resolveDefaultsAtRules: getDefaultExport(resolveDefaultsAtRulesModule),
|
|
119
|
+
resolveConfig,
|
|
120
|
+
validateConfig: validateConfigModule.validateConfig
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function createRawContentEntries(candidates, sources) {
|
|
124
|
+
const entries = [];
|
|
125
|
+
const candidateContent = [...candidates].join(" ");
|
|
126
|
+
if (candidateContent.length > 0) entries.push({
|
|
127
|
+
raw: candidateContent,
|
|
128
|
+
extension: "html"
|
|
129
|
+
});
|
|
130
|
+
for (const source of sources) entries.push({
|
|
131
|
+
raw: source.content,
|
|
132
|
+
extension: source.extension ?? "html"
|
|
133
|
+
});
|
|
134
|
+
return entries;
|
|
135
|
+
}
|
|
136
|
+
function createChangedContentEntries(candidates, sources) {
|
|
137
|
+
return createRawContentEntries(candidates, sources).map((entry) => ({
|
|
138
|
+
content: entry.raw,
|
|
139
|
+
extension: entry.extension
|
|
140
|
+
}));
|
|
141
|
+
}
|
|
142
|
+
function createTailwindConfigWithContent(config, tokens, sources) {
|
|
143
|
+
const userContent = config?.content;
|
|
144
|
+
return {
|
|
145
|
+
...createDefaultTailwindV3Config(tokens),
|
|
146
|
+
...config ?? {},
|
|
147
|
+
content: [...Array.isArray(userContent) ? userContent : [], ...createRawContentEntries(tokens, sources)]
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function isDirectUtilitiesOnlyCss(css) {
|
|
151
|
+
return css.replace(/\s+/g, "") === "@tailwindutilities;";
|
|
152
|
+
}
|
|
153
|
+
function sortCandidates(candidates) {
|
|
154
|
+
return [...candidates].sort((a, z) => {
|
|
155
|
+
if (a === z) return 0;
|
|
156
|
+
return a < z ? -1 : 1;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function appendUtilityRules(root, context, rules) {
|
|
160
|
+
const sortedRules = context.offsets.sort(rules);
|
|
161
|
+
for (const [sort, rule] of sortedRules) {
|
|
162
|
+
const tailwindRaw = rule.raws.tailwind;
|
|
163
|
+
if (sort.layer === "utilities" || sort.layer === "variants" && tailwindRaw?.parentLayer === "utilities") root.append(rule.clone());
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function collectClassSet(context, notOnDemandCandidate) {
|
|
167
|
+
const classSet = /* @__PURE__ */ new Set();
|
|
168
|
+
for (const candidate of context.classCache.keys()) if (String(candidate) !== String(notOnDemandCandidate)) classSet.add(candidate);
|
|
169
|
+
return classSet;
|
|
170
|
+
}
|
|
171
|
+
function collectDependencyMessages(result) {
|
|
172
|
+
const dependencies = /* @__PURE__ */ new Set();
|
|
173
|
+
for (const message of result.messages) {
|
|
174
|
+
const file = message.file;
|
|
175
|
+
if (message.type === "dependency" && typeof file === "string") dependencies.add(file);
|
|
176
|
+
}
|
|
177
|
+
return [...dependencies];
|
|
178
|
+
}
|
|
179
|
+
function buildStylesheetNodes(rules, context, layers) {
|
|
180
|
+
const sortedRules = context.offsets.sort(rules);
|
|
181
|
+
const nodes = [];
|
|
182
|
+
const layerSet = new Set(layers);
|
|
183
|
+
for (const [sort, rule] of sortedRules) {
|
|
184
|
+
const layer = sort.layer === "defaults" ? "base" : sort.layer;
|
|
185
|
+
if (layerSet.has(layer)) nodes.push(rule.clone());
|
|
186
|
+
}
|
|
187
|
+
return nodes;
|
|
188
|
+
}
|
|
189
|
+
function createRootFromNodes(nodes) {
|
|
190
|
+
const root = postcss.default.root();
|
|
191
|
+
for (const node of nodes) root.append(node);
|
|
192
|
+
return root;
|
|
193
|
+
}
|
|
194
|
+
async function generateTailwindV3Style(options = {}) {
|
|
195
|
+
const tokens = await collectTailwindStyleCandidates(options);
|
|
196
|
+
const { createContext, generateRules, resolveConfig } = loadTailwindV3Modules(options);
|
|
197
|
+
const userContent = options.config?.content;
|
|
198
|
+
const config = resolveConfig({
|
|
199
|
+
...createDefaultTailwindV3Config(tokens),
|
|
200
|
+
...options.config ?? {},
|
|
201
|
+
content: [...Array.isArray(userContent) ? userContent : [], {
|
|
202
|
+
raw: [...tokens].join(" "),
|
|
203
|
+
extension: "html"
|
|
204
|
+
}]
|
|
205
|
+
});
|
|
206
|
+
const context = createContext(config, [], postcss.default.root());
|
|
207
|
+
return {
|
|
208
|
+
version: 3,
|
|
209
|
+
css: createRootFromNodes(buildStylesheetNodes(generateRules(tokens, context), context, options.layers ?? [
|
|
210
|
+
"base",
|
|
211
|
+
"components",
|
|
212
|
+
"utilities",
|
|
213
|
+
"variants"
|
|
214
|
+
])).toString(),
|
|
215
|
+
tokens,
|
|
216
|
+
classSet: new Set(context.classCache.keys()),
|
|
217
|
+
sources: options.sources ?? [],
|
|
218
|
+
config
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
async function generateTailwindV3RawStyle(options = {}) {
|
|
222
|
+
const tokens = await collectTailwindStyleCandidates(options);
|
|
223
|
+
const { collapseAdjacentRules, collapseDuplicateDeclarations, createContext, generateRules, notOnDemandCandidate, processTailwindFeatures, resolveConfig, resolveDefaultsAtRules, validateConfig } = loadTailwindV3Modules(options);
|
|
224
|
+
const css = options.css ?? "@tailwind utilities;";
|
|
225
|
+
const config = validateConfig(resolveConfig(createTailwindConfigWithContent(options.config, tokens, options.sources ?? [])));
|
|
226
|
+
const root = postcss.default.parse(css, { from: void 0 });
|
|
227
|
+
const result = {
|
|
228
|
+
css: "",
|
|
229
|
+
messages: []
|
|
230
|
+
};
|
|
231
|
+
const changedContent = createChangedContentEntries(tokens, options.sources ?? []);
|
|
232
|
+
const shouldUseDirectUtilities = options.directUtilitiesOnly === true || options.directUtilitiesOnly !== false && isDirectUtilitiesOnlyCss(css);
|
|
233
|
+
let context;
|
|
234
|
+
if (shouldUseDirectUtilities) {
|
|
235
|
+
context = createContext(config, changedContent, root);
|
|
236
|
+
generateRules(new Set(sortCandidates([notOnDemandCandidate, ...tokens])), context);
|
|
237
|
+
root.removeAll();
|
|
238
|
+
appendUtilityRules(root, context, [...context.ruleCache]);
|
|
239
|
+
resolveDefaultsAtRules(context)(root, result);
|
|
240
|
+
collapseAdjacentRules(context)(root, result);
|
|
241
|
+
collapseDuplicateDeclarations(context)(root, result);
|
|
242
|
+
} else {
|
|
243
|
+
const setupContext = () => {
|
|
244
|
+
return (currentRoot) => createContext(config, changedContent, currentRoot);
|
|
245
|
+
};
|
|
246
|
+
context = await processTailwindFeatures(setupContext)(root, result);
|
|
247
|
+
}
|
|
248
|
+
return {
|
|
249
|
+
version: 3,
|
|
250
|
+
css: root.toString(),
|
|
251
|
+
tokens,
|
|
252
|
+
classSet: collectClassSet(context, notOnDemandCandidate),
|
|
253
|
+
context,
|
|
254
|
+
dependencies: collectDependencyMessages(result),
|
|
255
|
+
sources: options.sources ?? [],
|
|
256
|
+
config
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
69
260
|
//#region src/v4/engine.ts
|
|
70
261
|
function resolveScanSources(options, source, compiledRoot, compiledSources) {
|
|
71
262
|
if (Array.isArray(options?.scanSources)) return options.scanSources;
|
|
72
|
-
if (options?.scanSources === true) return
|
|
263
|
+
if (options?.scanSources === true) return require_validate.createTailwindV4CompiledSourceEntries(compiledRoot, compiledSources, source.base);
|
|
73
264
|
return [];
|
|
74
265
|
}
|
|
75
266
|
async function collectRawCandidates(source, options, compiledRoot, compiledSources = []) {
|
|
76
267
|
const rawCandidates = /* @__PURE__ */ new Set();
|
|
268
|
+
const extractOptions = options?.bareArbitraryValues === void 0 ? void 0 : { bareArbitraryValues: options.bareArbitraryValues };
|
|
77
269
|
for (const candidate of options?.candidates ?? []) rawCandidates.add(candidate);
|
|
78
270
|
for (const candidateSource of options?.sources ?? []) {
|
|
79
|
-
const candidates = await
|
|
271
|
+
const candidates = await require_validate.extractRawCandidatesWithPositions(candidateSource.content, candidateSource.extension, extractOptions);
|
|
80
272
|
for (const candidate of candidates) rawCandidates.add(candidate.rawCandidate);
|
|
81
273
|
}
|
|
82
274
|
const filesystemSources = resolveScanSources(options, source, compiledRoot, compiledSources);
|
|
83
|
-
if (filesystemSources.length > 0) for (const candidate of await
|
|
84
|
-
const inlineSources =
|
|
275
|
+
if (filesystemSources.length > 0) for (const candidate of await require_validate.extractRawCandidates(filesystemSources, extractOptions)) rawCandidates.add(candidate);
|
|
276
|
+
const inlineSources = require_validate.extractTailwindV4InlineSourceCandidates(source.css);
|
|
85
277
|
for (const candidate of inlineSources.included) rawCandidates.add(candidate);
|
|
86
278
|
for (const candidate of inlineSources.excluded) rawCandidates.delete(candidate);
|
|
87
279
|
return rawCandidates;
|
|
@@ -90,20 +282,20 @@ function createTailwindV4Engine(source) {
|
|
|
90
282
|
return {
|
|
91
283
|
source,
|
|
92
284
|
loadDesignSystem() {
|
|
93
|
-
return
|
|
285
|
+
return require_validate.loadTailwindV4DesignSystem(source);
|
|
94
286
|
},
|
|
95
287
|
async validateCandidates(candidates) {
|
|
96
|
-
return
|
|
288
|
+
return require_validate.resolveValidTailwindV4Candidates(await require_validate.loadTailwindV4DesignSystem(source), candidates);
|
|
97
289
|
},
|
|
98
290
|
async generate(options) {
|
|
99
|
-
const { compiled, dependencies } = await
|
|
291
|
+
const { compiled, dependencies } = await require_validate.compileTailwindV4Source(source);
|
|
100
292
|
const rawCandidates = await collectRawCandidates(source, options, compiled.root, compiled.sources);
|
|
101
|
-
const classSet =
|
|
102
|
-
const inlineSources =
|
|
293
|
+
const classSet = require_validate.resolveValidTailwindV4Candidates(await require_validate.loadTailwindV4DesignSystem(source), rawCandidates, { ...options?.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: options.bareArbitraryValues } });
|
|
294
|
+
const inlineSources = require_validate.extractTailwindV4InlineSourceCandidates(source.css);
|
|
103
295
|
for (const candidate of inlineSources.excluded) classSet.delete(candidate);
|
|
104
|
-
const buildCandidates =
|
|
296
|
+
const buildCandidates = require_validate.canonicalizeBareArbitraryValueCandidates(classSet, options?.bareArbitraryValues);
|
|
105
297
|
return {
|
|
106
|
-
css:
|
|
298
|
+
css: require_validate.replaceBareArbitraryValueSelectors(compiled.build(buildCandidates), classSet, options?.bareArbitraryValues),
|
|
107
299
|
classSet,
|
|
108
300
|
rawCandidates,
|
|
109
301
|
dependencies: Array.from(dependencies),
|
|
@@ -260,12 +452,69 @@ function createSourceOptionsFromNormalizedPatchOptions(options) {
|
|
|
260
452
|
};
|
|
261
453
|
}
|
|
262
454
|
function tailwindV4SourceOptionsFromPatchOptions(options) {
|
|
263
|
-
return createSourceOptionsFromNormalizedPatchOptions(
|
|
455
|
+
return createSourceOptionsFromNormalizedPatchOptions(require_validate.normalizeOptions(options));
|
|
264
456
|
}
|
|
265
457
|
async function resolveTailwindV4SourceFromPatchOptions(options) {
|
|
266
458
|
return resolveTailwindV4Source(tailwindV4SourceOptionsFromPatchOptions(options));
|
|
267
459
|
}
|
|
268
460
|
//#endregion
|
|
461
|
+
//#region src/v4/style-generator.ts
|
|
462
|
+
function createSourceOptions(options) {
|
|
463
|
+
return {
|
|
464
|
+
...options.projectRoot === void 0 ? {} : { projectRoot: options.projectRoot },
|
|
465
|
+
...options.cwd === void 0 ? {} : { cwd: options.cwd },
|
|
466
|
+
...options.base === void 0 ? {} : { base: options.base },
|
|
467
|
+
...options.baseFallbacks === void 0 ? {} : { baseFallbacks: options.baseFallbacks },
|
|
468
|
+
...options.css === void 0 ? {} : { css: options.css },
|
|
469
|
+
...options.cssSources === void 0 ? {} : { cssSources: options.cssSources },
|
|
470
|
+
...options.cssEntries === void 0 ? {} : { cssEntries: options.cssEntries },
|
|
471
|
+
...options.packageName === void 0 ? {} : { packageName: options.packageName }
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
async function collectTailwindV4StyleCandidates(options) {
|
|
475
|
+
return collectTailwindStyleCandidates(options);
|
|
476
|
+
}
|
|
477
|
+
async function generateTailwindV4Style(options = {}) {
|
|
478
|
+
const source = options.source ?? await resolveTailwindV4Source(createSourceOptions(options));
|
|
479
|
+
const candidates = await collectTailwindV4StyleCandidates(options);
|
|
480
|
+
const result = await createTailwindV4Engine(source).generate({
|
|
481
|
+
candidates,
|
|
482
|
+
...options.bareArbitraryValues === void 0 ? {} : { bareArbitraryValues: options.bareArbitraryValues },
|
|
483
|
+
...options.scanSources === void 0 ? {} : { scanSources: options.scanSources }
|
|
484
|
+
});
|
|
485
|
+
return {
|
|
486
|
+
...result,
|
|
487
|
+
tokens: result.rawCandidates,
|
|
488
|
+
source
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region src/style-generator.ts
|
|
493
|
+
async function generateCustomStyle(options) {
|
|
494
|
+
const tokens = await collectTailwindStyleCandidates(options);
|
|
495
|
+
const classSet = new Set(tokens);
|
|
496
|
+
const sources = options.sources ?? [];
|
|
497
|
+
return {
|
|
498
|
+
version: "custom",
|
|
499
|
+
css: await options.generate({
|
|
500
|
+
tokens,
|
|
501
|
+
classSet,
|
|
502
|
+
sources
|
|
503
|
+
}),
|
|
504
|
+
tokens,
|
|
505
|
+
classSet,
|
|
506
|
+
sources
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
async function generateTailwindStyle(options) {
|
|
510
|
+
if (options.version === 3) return generateTailwindV3Style(options);
|
|
511
|
+
if (options.version === 4) return {
|
|
512
|
+
...await generateTailwindV4Style(options),
|
|
513
|
+
version: 4
|
|
514
|
+
};
|
|
515
|
+
return generateCustomStyle(options);
|
|
516
|
+
}
|
|
517
|
+
//#endregion
|
|
269
518
|
//#region src/public-api.ts
|
|
270
519
|
function defineConfig(config) {
|
|
271
520
|
return config;
|
|
@@ -283,58 +532,72 @@ function createTailwindcssPatchCli(options = {}) {
|
|
|
283
532
|
return loadCliModule().createTailwindcssPatchCli(options);
|
|
284
533
|
}
|
|
285
534
|
//#endregion
|
|
286
|
-
exports.CacheStore =
|
|
287
|
-
exports.MIGRATION_REPORT_KIND =
|
|
288
|
-
exports.MIGRATION_REPORT_SCHEMA_VERSION =
|
|
289
|
-
exports.TAILWIND_V4_AUTO_SOURCE_SCAN_PATTERN =
|
|
290
|
-
exports.TAILWIND_V4_IGNORED_CONTENT_DIRS =
|
|
291
|
-
exports.TAILWIND_V4_IGNORED_EXTENSIONS =
|
|
292
|
-
exports.TAILWIND_V4_IGNORED_FILES =
|
|
293
|
-
exports.TailwindcssPatcher =
|
|
294
|
-
exports.VALIDATE_EXIT_CODES =
|
|
295
|
-
exports.VALIDATE_FAILURE_REASONS =
|
|
296
|
-
exports.ValidateCommandError =
|
|
297
|
-
exports.
|
|
298
|
-
exports.
|
|
299
|
-
exports.
|
|
300
|
-
exports.
|
|
535
|
+
exports.CacheStore = require_validate.CacheStore;
|
|
536
|
+
exports.MIGRATION_REPORT_KIND = require_validate.MIGRATION_REPORT_KIND;
|
|
537
|
+
exports.MIGRATION_REPORT_SCHEMA_VERSION = require_validate.MIGRATION_REPORT_SCHEMA_VERSION;
|
|
538
|
+
exports.TAILWIND_V4_AUTO_SOURCE_SCAN_PATTERN = require_validate.TAILWIND_V4_AUTO_SOURCE_SCAN_PATTERN;
|
|
539
|
+
exports.TAILWIND_V4_IGNORED_CONTENT_DIRS = require_validate.TAILWIND_V4_IGNORED_CONTENT_DIRS;
|
|
540
|
+
exports.TAILWIND_V4_IGNORED_EXTENSIONS = require_validate.TAILWIND_V4_IGNORED_EXTENSIONS;
|
|
541
|
+
exports.TAILWIND_V4_IGNORED_FILES = require_validate.TAILWIND_V4_IGNORED_FILES;
|
|
542
|
+
exports.TailwindcssPatcher = require_validate.TailwindcssPatcher;
|
|
543
|
+
exports.VALIDATE_EXIT_CODES = require_validate.VALIDATE_EXIT_CODES;
|
|
544
|
+
exports.VALIDATE_FAILURE_REASONS = require_validate.VALIDATE_FAILURE_REASONS;
|
|
545
|
+
exports.ValidateCommandError = require_validate.ValidateCommandError;
|
|
546
|
+
exports.canonicalizeBareArbitraryValueCandidates = require_validate.canonicalizeBareArbitraryValueCandidates;
|
|
547
|
+
exports.collectClassesFromContexts = require_validate.collectClassesFromContexts;
|
|
548
|
+
exports.collectClassesFromTailwindV4 = require_validate.collectClassesFromTailwindV4;
|
|
549
|
+
exports.collectTailwindStyleCandidates = collectTailwindStyleCandidates;
|
|
550
|
+
exports.collectTailwindV4StyleCandidates = collectTailwindV4StyleCandidates;
|
|
551
|
+
exports.createTailwindV4CompiledSourceEntries = require_validate.createTailwindV4CompiledSourceEntries;
|
|
552
|
+
exports.createTailwindV4DefaultIgnoreSources = require_validate.createTailwindV4DefaultIgnoreSources;
|
|
301
553
|
exports.createTailwindV4Engine = createTailwindV4Engine;
|
|
302
|
-
exports.createTailwindV4RootSources =
|
|
303
|
-
exports.createTailwindV4SourceEntryMatcher =
|
|
304
|
-
exports.createTailwindV4SourceExclusionMatcher =
|
|
554
|
+
exports.createTailwindV4RootSources = require_validate.createTailwindV4RootSources;
|
|
555
|
+
exports.createTailwindV4SourceEntryMatcher = require_validate.createTailwindV4SourceEntryMatcher;
|
|
556
|
+
exports.createTailwindV4SourceExclusionMatcher = require_validate.createTailwindV4SourceExclusionMatcher;
|
|
305
557
|
exports.createTailwindcssPatchCli = createTailwindcssPatchCli;
|
|
306
558
|
exports.defineConfig = defineConfig;
|
|
307
|
-
exports.
|
|
308
|
-
exports.
|
|
309
|
-
exports.
|
|
310
|
-
exports.
|
|
311
|
-
exports.
|
|
312
|
-
exports.
|
|
313
|
-
exports.
|
|
314
|
-
exports.
|
|
315
|
-
exports.
|
|
316
|
-
exports.
|
|
317
|
-
exports.
|
|
318
|
-
exports.
|
|
559
|
+
exports.escapeCssClassName = require_validate.escapeCssClassName;
|
|
560
|
+
exports.expandTailwindV4SourceEntries = require_validate.expandTailwindV4SourceEntries;
|
|
561
|
+
exports.expandTailwindV4SourceEntryBraces = require_validate.expandTailwindV4SourceEntryBraces;
|
|
562
|
+
exports.extractBareArbitraryValueSourceCandidates = require_validate.extractBareArbitraryValueSourceCandidates;
|
|
563
|
+
exports.extractBareArbitraryValueSourceCandidatesWithPositions = require_validate.extractBareArbitraryValueSourceCandidatesWithPositions;
|
|
564
|
+
exports.extractProjectCandidatesWithPositions = require_validate.extractProjectCandidatesWithPositions;
|
|
565
|
+
exports.extractRawCandidates = require_validate.extractRawCandidates;
|
|
566
|
+
exports.extractRawCandidatesWithPositions = require_validate.extractRawCandidatesWithPositions;
|
|
567
|
+
exports.extractSourceCandidates = require_validate.extractSourceCandidates;
|
|
568
|
+
exports.extractSourceCandidatesWithPositions = require_validate.extractSourceCandidatesWithPositions;
|
|
569
|
+
exports.extractValidCandidates = require_validate.extractValidCandidates;
|
|
570
|
+
exports.generateCustomStyle = generateCustomStyle;
|
|
571
|
+
exports.generateTailwindStyle = generateTailwindStyle;
|
|
572
|
+
exports.generateTailwindV3RawStyle = generateTailwindV3RawStyle;
|
|
573
|
+
exports.generateTailwindV3Style = generateTailwindV3Style;
|
|
574
|
+
exports.generateTailwindV4Style = generateTailwindV4Style;
|
|
575
|
+
exports.getPatchStatusReport = require_validate.getPatchStatusReport;
|
|
576
|
+
exports.groupTokensByFile = require_validate.groupTokensByFile;
|
|
577
|
+
exports.isBareArbitraryValuesEnabled = require_validate.isBareArbitraryValuesEnabled;
|
|
578
|
+
exports.isFileExcludedByTailwindV4SourceEntries = require_validate.isFileExcludedByTailwindV4SourceEntries;
|
|
579
|
+
exports.isFileMatchedByTailwindV4SourceEntries = require_validate.isFileMatchedByTailwindV4SourceEntries;
|
|
319
580
|
exports.isValidCandidateToken = isValidCandidateToken;
|
|
320
|
-
exports.loadRuntimeContexts =
|
|
321
|
-
exports.loadTailwindV4DesignSystem =
|
|
322
|
-
exports.logger =
|
|
323
|
-
exports.mergeTailwindV4SourceEntries =
|
|
324
|
-
exports.migrateConfigFiles =
|
|
581
|
+
exports.loadRuntimeContexts = require_validate.loadRuntimeContexts;
|
|
582
|
+
exports.loadTailwindV4DesignSystem = require_validate.loadTailwindV4DesignSystem;
|
|
583
|
+
exports.logger = require_validate.logger;
|
|
584
|
+
exports.mergeTailwindV4SourceEntries = require_validate.mergeTailwindV4SourceEntries;
|
|
585
|
+
exports.migrateConfigFiles = require_validate.migrateConfigFiles;
|
|
325
586
|
exports.mountTailwindcssPatchCommands = mountTailwindcssPatchCommands;
|
|
326
|
-
exports.normalizeOptions =
|
|
327
|
-
exports.normalizeTailwindV4ScannerSources =
|
|
328
|
-
exports.normalizeTailwindV4SourceEntries =
|
|
329
|
-
exports.
|
|
330
|
-
exports.
|
|
587
|
+
exports.normalizeOptions = require_validate.normalizeOptions;
|
|
588
|
+
exports.normalizeTailwindV4ScannerSources = require_validate.normalizeTailwindV4ScannerSources;
|
|
589
|
+
exports.normalizeTailwindV4SourceEntries = require_validate.normalizeTailwindV4SourceEntries;
|
|
590
|
+
exports.replaceBareArbitraryValueSelectors = require_validate.replaceBareArbitraryValueSelectors;
|
|
591
|
+
exports.resolveBareArbitraryValueCandidate = require_validate.resolveBareArbitraryValueCandidate;
|
|
592
|
+
exports.resolveProjectSourceFiles = require_validate.resolveProjectSourceFiles;
|
|
593
|
+
exports.resolveSourceScanPath = require_validate.resolveSourceScanPath;
|
|
331
594
|
exports.resolveTailwindV4Source = resolveTailwindV4Source;
|
|
332
|
-
exports.resolveTailwindV4SourceBaseCandidates =
|
|
333
|
-
exports.resolveTailwindV4SourceEntry =
|
|
595
|
+
exports.resolveTailwindV4SourceBaseCandidates = require_validate.resolveTailwindV4SourceBaseCandidates;
|
|
596
|
+
exports.resolveTailwindV4SourceEntry = require_validate.resolveTailwindV4SourceEntry;
|
|
334
597
|
exports.resolveTailwindV4SourceFromPatchOptions = resolveTailwindV4SourceFromPatchOptions;
|
|
335
|
-
exports.resolveValidTailwindV4Candidates =
|
|
336
|
-
exports.restoreConfigFiles =
|
|
337
|
-
exports.runTailwindBuild =
|
|
598
|
+
exports.resolveValidTailwindV4Candidates = require_validate.resolveValidTailwindV4Candidates;
|
|
599
|
+
exports.restoreConfigFiles = require_validate.restoreConfigFiles;
|
|
600
|
+
exports.runTailwindBuild = require_validate.runTailwindBuild;
|
|
338
601
|
exports.splitCandidateTokens = splitCandidateTokens;
|
|
339
|
-
exports.tailwindcssPatchCommands =
|
|
602
|
+
exports.tailwindcssPatchCommands = require_validate.tailwindcssPatchCommands;
|
|
340
603
|
exports.validateCandidateTokenRE = validateCandidateTokenRE;
|