tailwindcss
Advanced tools
Comparing version 4.0.0-alpha.17 to 4.0.0-alpha.18
@@ -0,1 +1,21 @@ | ||
type Rule = { | ||
kind: 'rule'; | ||
selector: string; | ||
nodes: AstNode[]; | ||
}; | ||
type Declaration = { | ||
kind: 'declaration'; | ||
property: string; | ||
value: string; | ||
important: boolean; | ||
}; | ||
type Comment = { | ||
kind: 'comment'; | ||
value: string; | ||
}; | ||
type AstNode = Rule | Declaration | Comment; | ||
type CssInJs = { | ||
[key: string]: string | CssInJs; | ||
}; | ||
type ArbitraryUtilityValue = { | ||
@@ -178,19 +198,2 @@ kind: 'arbitrary'; | ||
type Rule = { | ||
kind: 'rule'; | ||
selector: string; | ||
nodes: AstNode[]; | ||
}; | ||
type Declaration = { | ||
kind: 'declaration'; | ||
property: string; | ||
value: string; | ||
important: boolean; | ||
}; | ||
type Comment = { | ||
kind: 'comment'; | ||
value: string; | ||
}; | ||
type AstNode = Rule | Declaration | Comment; | ||
declare class Theme { | ||
@@ -239,2 +242,3 @@ #private; | ||
}): void; | ||
fromAst(name: string, ast: AstNode[]): void; | ||
functional(name: string, applyFn: VariantFn<'functional'>, { compounds }?: { | ||
@@ -249,3 +253,3 @@ compounds?: boolean; | ||
get(name: string): { | ||
kind: Variant["kind"]; | ||
kind: "static" | "arbitrary" | "functional" | "compound"; | ||
order: number; | ||
@@ -255,3 +259,3 @@ applyFn: VariantFn<any>; | ||
} | undefined; | ||
kind(name: string): "arbitrary" | "static" | "functional" | "compound"; | ||
kind(name: string): "static" | "arbitrary" | "functional" | "compound"; | ||
compounds(name: string): boolean; | ||
@@ -263,3 +267,3 @@ suggest(name: string, suggestions: () => string[]): void; | ||
entries(): IterableIterator<[string, { | ||
kind: Variant["kind"]; | ||
kind: "static" | "arbitrary" | "functional" | "compound"; | ||
order: number; | ||
@@ -303,2 +307,3 @@ applyFn: VariantFn<any>; | ||
declare class Utilities { | ||
private arbitraryFn; | ||
private utilities; | ||
@@ -309,17 +314,11 @@ private completions; | ||
arbitrary(compileFn: CompileFn<'arbitrary'>): void; | ||
has(name: string): boolean; | ||
get(name: string | symbol): { | ||
kind: Candidate["kind"]; | ||
has(name: string, kind: 'static' | 'functional'): boolean; | ||
get(name: string): { | ||
kind: "static" | "functional"; | ||
compileFn: CompileFn<any>; | ||
} | undefined; | ||
kind(name: string): "arbitrary" | "static" | "functional"; | ||
}[]; | ||
getCompletions(name: string): SuggestionGroup[]; | ||
suggest(name: string, groups: () => SuggestionGroup[]): void; | ||
keys(): IterableIterator<string | symbol>; | ||
entries(): IterableIterator<[string | symbol, { | ||
kind: Candidate["kind"]; | ||
compileFn: CompileFn<any>; | ||
}]>; | ||
getArbitrary(): CompileFn<any>; | ||
private set; | ||
keys(kind: 'static' | 'functional'): string[]; | ||
getArbitrary(): CompileFn<"arbitrary">; | ||
} | ||
@@ -341,3 +340,10 @@ | ||
declare function compile(css: string): { | ||
type PluginAPI = { | ||
addVariant(name: string, variant: string | string[] | CssInJs): void; | ||
}; | ||
type Plugin = (api: PluginAPI) => void; | ||
type CompileOptions = { | ||
loadPlugin?: (path: string) => Plugin; | ||
}; | ||
declare function compile(css: string, { loadPlugin }?: CompileOptions): { | ||
build(candidates: string[]): string; | ||
@@ -344,0 +350,0 @@ }; |
{ | ||
"name": "tailwindcss", | ||
"version": "4.0.0-alpha.17", | ||
"version": "4.0.0-alpha.18", | ||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.", | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
"lightningcss": "^1.25.1", | ||
"@tailwindcss/oxide": "4.0.0-alpha.17" | ||
"@tailwindcss/oxide": "4.0.0-alpha.18" | ||
}, | ||
@@ -48,0 +48,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308479
2768