tailwindcss 4.0.0-alpha.8 → 4.0.0-alpha.9
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 +11 -9
- package/dist/lib.d.ts +11 -9
- package/dist/lib.js +9 -9
- package/dist/lib.mjs +9 -9
- package/package.json +3 -5
- package/theme.css +1 -2
package/dist/lib.d.mts
CHANGED
@@ -194,18 +194,24 @@ type AstNode = Rule | Declaration | Comment;
|
|
194
194
|
|
195
195
|
declare class Theme {
|
196
196
|
private values;
|
197
|
-
constructor(values?: Map<string,
|
198
|
-
|
197
|
+
constructor(values?: Map<string, {
|
198
|
+
value: string;
|
199
|
+
isReference: boolean;
|
200
|
+
}>);
|
201
|
+
add(key: string, value: string, isReference?: boolean): void;
|
199
202
|
keysInNamespaces(themeKeys: ThemeKey[]): string[];
|
200
203
|
get(themeKeys: ThemeKey[]): string | null;
|
201
|
-
entries(): IterableIterator<[string,
|
204
|
+
entries(): IterableIterator<[string, {
|
205
|
+
value: string;
|
206
|
+
isReference: boolean;
|
207
|
+
}]>;
|
202
208
|
clearNamespace(namespace: string): void;
|
203
209
|
resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
|
204
210
|
resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
|
205
211
|
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
|
206
212
|
namespace(namespace: string): Map<string | null, string>;
|
207
213
|
}
|
208
|
-
type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
|
214
|
+
type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--default-transition-timing-function' | '--default-transition-duration' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
|
209
215
|
|
210
216
|
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
|
211
217
|
kind: T;
|
@@ -328,10 +334,6 @@ type DesignSystem = {
|
|
328
334
|
declare function compile(css: string): {
|
329
335
|
build(candidates: string[]): string;
|
330
336
|
};
|
331
|
-
declare function optimizeCss(input: string, { file, minify }?: {
|
332
|
-
file?: string;
|
333
|
-
minify?: boolean;
|
334
|
-
}): string;
|
335
337
|
declare function __unstable__loadDesignSystem(css: string): DesignSystem;
|
336
338
|
|
337
|
-
export { __unstable__loadDesignSystem, compile
|
339
|
+
export { __unstable__loadDesignSystem, compile };
|
package/dist/lib.d.ts
CHANGED
@@ -194,18 +194,24 @@ type AstNode = Rule | Declaration | Comment;
|
|
194
194
|
|
195
195
|
declare class Theme {
|
196
196
|
private values;
|
197
|
-
constructor(values?: Map<string,
|
198
|
-
|
197
|
+
constructor(values?: Map<string, {
|
198
|
+
value: string;
|
199
|
+
isReference: boolean;
|
200
|
+
}>);
|
201
|
+
add(key: string, value: string, isReference?: boolean): void;
|
199
202
|
keysInNamespaces(themeKeys: ThemeKey[]): string[];
|
200
203
|
get(themeKeys: ThemeKey[]): string | null;
|
201
|
-
entries(): IterableIterator<[string,
|
204
|
+
entries(): IterableIterator<[string, {
|
205
|
+
value: string;
|
206
|
+
isReference: boolean;
|
207
|
+
}]>;
|
202
208
|
clearNamespace(namespace: string): void;
|
203
209
|
resolveKey(candidateValue: string, themeKeys: ThemeKey[]): string | null;
|
204
210
|
resolve(candidateValue: string, themeKeys: ThemeKey[]): string | null;
|
205
211
|
resolveWith(candidateValue: string, themeKeys: ThemeKey[], nestedKeys?: `--${string}`[]): [string, Record<string, string>] | null;
|
206
212
|
namespace(namespace: string): Map<string | null, string>;
|
207
213
|
}
|
208
|
-
type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
|
214
|
+
type ThemeKey = '--accent-color' | '--animate' | '--aspect-ratio' | '--backdrop-blur' | '--backdrop-brightness' | '--backdrop-contrast' | '--backdrop-grayscale' | '--backdrop-hue-rotate' | '--backdrop-invert' | '--backdrop-opacity' | '--backdrop-saturate' | '--backdrop-sepia' | '--background-color' | '--background-image' | '--blur' | '--border-color' | '--border-spacing' | '--border-width' | '--box-shadow-color' | '--breakpoint' | '--brightness' | '--caret-color' | '--color' | '--columns' | '--contrast' | '--cursor' | '--default-border-width' | '--default-ring-color' | '--default-ring-width' | '--default-transition-timing-function' | '--default-transition-duration' | '--divide-width' | '--divide-color' | '--drop-shadow' | '--fill' | '--flex-basis' | '--font-family' | '--font-size' | '--font-weight' | '--gap' | '--gradient-color-stop-positions' | '--grayscale' | '--grid-auto-columns' | '--grid-auto-rows' | '--grid-column' | '--grid-column-end' | '--grid-column-start' | '--grid-row' | '--grid-row-end' | '--grid-row-start' | '--grid-template-columns' | '--grid-template-rows' | '--height' | '--hue-rotate' | '--inset' | '--inset-shadow' | '--invert' | '--letter-spacing' | '--line-height' | '--line-clamp' | '--list-style-image' | '--list-style-type' | '--margin' | '--max-height' | '--max-width' | '--min-height' | '--min-width' | '--object-position' | '--opacity' | '--order' | '--outline-color' | '--outline-width' | '--outline-offset' | '--padding' | '--placeholder-color' | '--radius' | '--ring-color' | '--ring-offset-color' | '--ring-offset-width' | '--ring-width' | '--rotate' | '--saturate' | '--scale' | '--scroll-margin' | '--scroll-padding' | '--sepia' | '--shadow' | '--size' | '--skew' | '--space' | '--spacing' | '--stroke' | '--stroke-width' | '--text-color' | '--text-decoration-color' | '--text-decoration-thickness' | '--text-indent' | '--text-underline-offset' | '--transform-origin' | '--transition-delay' | '--transition-duration' | '--transition-property' | '--transition-timing-function' | '--translate' | '--width' | '--z-index';
|
209
215
|
|
210
216
|
type VariantFn<T extends Variant['kind']> = (rule: Rule, variant: Extract<Variant, {
|
211
217
|
kind: T;
|
@@ -328,10 +334,6 @@ type DesignSystem = {
|
|
328
334
|
declare function compile(css: string): {
|
329
335
|
build(candidates: string[]): string;
|
330
336
|
};
|
331
|
-
declare function optimizeCss(input: string, { file, minify }?: {
|
332
|
-
file?: string;
|
333
|
-
minify?: boolean;
|
334
|
-
}): string;
|
335
337
|
declare function __unstable__loadDesignSystem(css: string): DesignSystem;
|
336
338
|
|
337
|
-
export { __unstable__loadDesignSystem, compile
|
339
|
+
export { __unstable__loadDesignSystem, compile };
|