tailwindcss 4.0.0-alpha.30 → 4.0.0-alpha.31

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,12 +1,18 @@
1
- import { U as UserConfig, P as Plugin } from './types-DxVE_W4f.mjs';
1
+ import { U as UserConfig, P as Plugin } from './types-BW7iKs0i.mjs';
2
2
  import { V as Variant, C as Candidate } from './resolve-config-CCprQPpk.mjs';
3
3
  import './colors.mjs';
4
4
 
5
- type Rule = {
5
+ type StyleRule = {
6
6
  kind: 'rule';
7
7
  selector: string;
8
8
  nodes: AstNode[];
9
9
  };
10
+ type AtRule = {
11
+ kind: 'at-rule';
12
+ name: string;
13
+ params: string;
14
+ nodes: AstNode[];
15
+ };
10
16
  type Declaration = {
11
17
  kind: 'declaration';
12
18
  property: string;
@@ -26,7 +32,8 @@ type AtRoot = {
26
32
  kind: 'at-root';
27
33
  nodes: AstNode[];
28
34
  };
29
- type AstNode = Rule | Declaration | Comment | Context | AtRoot;
35
+ type Rule = StyleRule | AtRule;
36
+ type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
30
37
 
31
38
  declare const enum ThemeOptions {
32
39
  NONE = 0,
@@ -42,7 +49,7 @@ declare class Theme {
42
49
  constructor(values?: Map<string, {
43
50
  value: string;
44
51
  options: ThemeOptions;
45
- }>, keyframes?: Set<Rule>);
52
+ }>, keyframes?: Set<AtRule>);
46
53
  add(key: string, value: string, options?: ThemeOptions): void;
47
54
  keysInNamespaces(themeKeys: ThemeKey[]): string[];
48
55
  get(themeKeys: ThemeKey[]): string | null;
@@ -60,8 +67,8 @@ declare class Theme {
60
67
  resolveValue(candidateValue: string | null, themeKeys: ThemeKey[]): string | null;
61
68
  resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
62
69
  namespace(namespace: string): Map<string | null, string>;
63
- addKeyframes(value: Rule): void;
64
- getKeyframes(): Rule[];
70
+ addKeyframes(value: AtRule): void;
71
+ getKeyframes(): AtRule[];
65
72
  }
66
73
  type ThemeKey = `--${string}`;
67
74
 
@@ -117,7 +124,7 @@ declare class Variants {
117
124
  compoundsWith: Compounds;
118
125
  compounds: Compounds;
119
126
  } | undefined;
120
- kind(name: string): "static" | "functional" | "arbitrary" | "compound";
127
+ kind(name: string): "static" | "arbitrary" | "functional" | "compound";
121
128
  compoundsWith(parent: string, child: string | Variant): boolean;
122
129
  suggest(name: string, suggestions: () => string[]): void;
123
130
  getCompletions(name: string): string[];
@@ -217,6 +224,10 @@ declare function compile(css: string, opts?: CompileOptions): Promise<{
217
224
  base: string;
218
225
  pattern: string;
219
226
  }[];
227
+ root: null | 'none' | {
228
+ base: string;
229
+ pattern: string;
230
+ };
220
231
  build(candidates: string[]): string;
221
232
  }>;
222
233
  declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;