tailwindcss 4.0.0-beta.3 → 4.0.0-beta.5

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/lib.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { U as UserConfig, P as Plugin } from './types-CAsznCh5.mjs';
1
+ import { U as UserConfig, P as Plugin } from './types-BTRmm49E.mjs';
2
2
  import { V as Variant, C as Candidate } from './resolve-config-QUZ9b-Gn.mjs';
3
3
  import './colors.mjs';
4
4
 
@@ -25,7 +25,7 @@ type Comment = {
25
25
  };
26
26
  type Context = {
27
27
  kind: 'context';
28
- context: Record<string, string>;
28
+ context: Record<string, string | boolean>;
29
29
  nodes: AstNode[];
30
30
  };
31
31
  type AtRoot = {
@@ -219,18 +219,37 @@ type CompileOptions = {
219
219
  base: string;
220
220
  }>;
221
221
  };
222
- declare function compile(css: string, opts?: CompileOptions): Promise<{
222
+ type Root = null | 'none' | {
223
+ base: string;
224
+ pattern: string;
225
+ };
226
+ declare const enum Features {
227
+ None = 0,
228
+ AtApply = 1,
229
+ AtImport = 2,
230
+ JsPluginCompat = 4,
231
+ ThemeFunction = 8,
232
+ Utilities = 16
233
+ }
234
+ declare function compileAst(input: AstNode[], opts?: CompileOptions): Promise<{
223
235
  globs: {
224
236
  base: string;
225
237
  pattern: string;
226
238
  }[];
227
- root: null | 'none' | {
239
+ root: Root;
240
+ features: Features;
241
+ build(candidates: string[]): AstNode[];
242
+ }>;
243
+ declare function compile(css: string, opts?: CompileOptions): Promise<{
244
+ globs: {
228
245
  base: string;
229
246
  pattern: string;
230
- };
247
+ }[];
248
+ root: Root;
249
+ features: Features;
231
250
  build(candidates: string[]): string;
232
251
  }>;
233
252
  declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
234
253
  declare function postcssPluginWarning(): void;
235
254
 
236
- export { type Config, __unstable__loadDesignSystem, compile, postcssPluginWarning as default };
255
+ export { type Config, Features, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };