tailwindcss
Advanced tools
Comparing version 4.0.0-alpha.18 to 4.0.0-alpha.19
@@ -1,21 +0,1 @@ | ||
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 = { | ||
@@ -198,2 +178,22 @@ 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; | ||
type CssInJs = { | ||
[key: string]: string | CssInJs; | ||
}; | ||
declare class Theme { | ||
@@ -205,4 +205,8 @@ #private; | ||
isReference: boolean; | ||
isInline: boolean; | ||
}>); | ||
add(key: string, value: string, isReference?: boolean): void; | ||
add(key: string, value: string, { isReference, isInline }?: { | ||
isReference?: boolean | undefined; | ||
isInline?: boolean | undefined; | ||
}): void; | ||
keysInNamespaces(themeKeys: ThemeKey[]): string[]; | ||
@@ -213,2 +217,3 @@ get(themeKeys: (ThemeKey | `${ThemeKey}-${string}`)[]): string | null; | ||
isReference: boolean; | ||
isInline: boolean; | ||
}]>; | ||
@@ -254,3 +259,3 @@ resolve(candidateValue: string | null, themeKeys: ThemeKey[]): string | null; | ||
get(name: string): { | ||
kind: "static" | "arbitrary" | "functional" | "compound"; | ||
kind: Variant["kind"]; | ||
order: number; | ||
@@ -267,3 +272,3 @@ applyFn: VariantFn<any>; | ||
entries(): IterableIterator<[string, { | ||
kind: "static" | "arbitrary" | "functional" | "compound"; | ||
kind: Variant["kind"]; | ||
order: number; | ||
@@ -300,3 +305,3 @@ applyFn: VariantFn<any>; | ||
kind: T; | ||
}>) => AstNode[] | undefined; | ||
}>) => AstNode[] | undefined | null; | ||
interface SuggestionGroup { | ||
@@ -308,3 +313,2 @@ supportsNegative?: boolean; | ||
declare class Utilities { | ||
private arbitraryFn; | ||
private utilities; | ||
@@ -314,3 +318,2 @@ private completions; | ||
functional(name: string, compileFn: CompileFn<'functional'>): void; | ||
arbitrary(compileFn: CompileFn<'arbitrary'>): void; | ||
has(name: string, kind: 'static' | 'functional'): boolean; | ||
@@ -324,3 +327,2 @@ get(name: string): { | ||
keys(kind: 'static' | 'functional'): string[]; | ||
getArbitrary(): CompileFn<"arbitrary">; | ||
} | ||
@@ -344,12 +346,23 @@ | ||
addVariant(name: string, variant: string | string[] | CssInJs): void; | ||
addUtilities(utilities: Record<string, CssInJs>, options?: {}): void; | ||
matchUtilities(utilities: Record<string, (value: string, extra: { | ||
modifier: string | null; | ||
}) => CssInJs>, options?: Partial<{ | ||
type: string | string[]; | ||
supportsNegativeValues: boolean; | ||
values: Record<string, string>; | ||
modifiers: 'any' | Record<string, string>; | ||
}>): void; | ||
}; | ||
type Plugin = (api: PluginAPI) => void; | ||
type CompileOptions = { | ||
loadPlugin?: (path: string) => Plugin; | ||
loadPlugin?: (path: string) => Promise<Plugin>; | ||
}; | ||
declare function compile(css: string, { loadPlugin }?: CompileOptions): { | ||
declare function compile(css: string, opts?: CompileOptions): Promise<{ | ||
globs: string[]; | ||
build(candidates: string[]): string; | ||
}; | ||
declare function __unstable__loadDesignSystem(css: string): DesignSystem; | ||
}>; | ||
declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>; | ||
export { __unstable__loadDesignSystem, compile }; |
{ | ||
"name": "tailwindcss", | ||
"version": "4.0.0-alpha.18", | ||
"version": "4.0.0-alpha.19", | ||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.", | ||
@@ -43,5 +43,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^20.12.12", | ||
"lightningcss": "^1.25.1", | ||
"@tailwindcss/oxide": "4.0.0-alpha.18" | ||
"@types/node": "^20.14.8", | ||
"lightningcss": "^1.26.0", | ||
"@tailwindcss/oxide": "4.0.0-alpha.19" | ||
}, | ||
@@ -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
314468
2784