Comparing version 2.5.14 to 3.0.0-beta.1
@@ -267,3 +267,3 @@ #!/usr/bin/env node | ||
// eslint-disable-next-line quotes | ||
return "windicss 2.5.14"; // replace by rollup | ||
return "windicss 3.0.0-beta.1"; // replace by rollup | ||
} | ||
@@ -270,0 +270,0 @@ function generateTemplate(folder, outputPath) { |
{ | ||
"name": "windicss", | ||
"version": "2.5.14", | ||
"version": "3.0.0-beta.1", | ||
"description": "Next generation tailwindcss compiler.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import type { Config } from '../interfaces'; | ||
export declare const lightColors: { | ||
export declare const defaultColors: { | ||
transparent: string; | ||
current: string; | ||
light: string | Record<string | number, string>; | ||
dark: string | Record<string | number, string>; | ||
black: string | Record<string | number, string>; | ||
@@ -30,33 +32,2 @@ white: string | Record<string | number, string>; | ||
}; | ||
export declare const darkColors: { | ||
transparent: string; | ||
current: string; | ||
black: string | Record<string | number, string>; | ||
white: string | Record<string | number, string>; | ||
gray: string | Record<string | number, string>; | ||
red: string | Record<string | number, string>; | ||
yellow: string | Record<string | number, string>; | ||
green: string | Record<string | number, string>; | ||
blue: string | Record<string | number, string>; | ||
indigo: string | Record<string | number, string>; | ||
purple: string | Record<string | number, string>; | ||
pink: string | Record<string | number, string>; | ||
rose: string | Record<string | number, string>; | ||
fuchsia: string | Record<string | number, string>; | ||
violet: string | Record<string | number, string>; | ||
cyan: string | Record<string | number, string>; | ||
teal: string | Record<string | number, string>; | ||
emerald: string | Record<string | number, string>; | ||
lime: string | Record<string | number, string>; | ||
amber: string | Record<string | number, string>; | ||
orange: string | Record<string | number, string>; | ||
'light-blue': string | Record<string | number, string>; | ||
'warm-gray': string | Record<string | number, string>; | ||
'true-gray': string | Record<string | number, string>; | ||
'cool-gray': string | Record<string | number, string>; | ||
'blue-gray': string | Record<string | number, string>; | ||
}; | ||
export declare const defaultColors: { | ||
[key: string]: unknown; | ||
}; | ||
export declare const baseConfig: Config; |
@@ -1,2 +0,2 @@ | ||
declare type Colors = 'black' | 'white' | 'rose' | 'pink' | 'fuchsia' | 'purple' | 'violet' | 'indigo' | 'blue' | 'lightBlue' | 'cyan' | 'teal' | 'emerald' | 'green' | 'lime' | 'yellow' | 'amber' | 'orange' | 'red' | 'warmGray' | 'trueGray' | 'gray' | 'coolGray' | 'blueGray'; | ||
declare type Colors = 'black' | 'white' | 'rose' | 'pink' | 'fuchsia' | 'purple' | 'violet' | 'indigo' | 'blue' | 'lightBlue' | 'cyan' | 'teal' | 'emerald' | 'green' | 'lime' | 'yellow' | 'amber' | 'orange' | 'red' | 'warmGray' | 'trueGray' | 'gray' | 'coolGray' | 'blueGray' | 'dark' | 'light'; | ||
export declare type DefaultColors = { | ||
@@ -6,3 +6,2 @@ [key in Colors]: string | Record<number | string, string>; | ||
export declare const colors: DefaultColors; | ||
export declare const darkColors: DefaultColors; | ||
export {}; |
export { baseConfig } from './base'; | ||
export { colors, darkColors } from './colors'; | ||
export { colors } from './colors'; | ||
export declare const twExclude: RegExp[]; |
@@ -75,13 +75,41 @@ import type { Utility } from './lib/utilities/handler'; | ||
animation: ThemeType; | ||
backdropBlur: ThemeType; | ||
backdropBrightness: ThemeType; | ||
backdropContrast: ThemeType; | ||
backdropGrayscale: ThemeType; | ||
backdropHueRotate: ThemeType; | ||
backdropInvert: ThemeType; | ||
backdropOpacity: ThemeType; | ||
backdropSaturate: ThemeType; | ||
backdropSepia: ThemeType; | ||
backgroundColor: ThemeType; | ||
backgroundImage: ThemeType; | ||
backgroundOpacity: ThemeType; | ||
backgroundPosition: ThemeType; | ||
backgroundSize: ThemeType; | ||
blur: ThemeType; | ||
borderColor: ThemeType; | ||
borderOpacity: ThemeType; | ||
borderRadius: ThemeType; | ||
borderWidth: ThemeType; | ||
boxShadow: ThemeType; | ||
boxShadowColor: ThemeType; | ||
brightness: ThemeType; | ||
container: ThemeType; | ||
contrast: ThemeType; | ||
cursor: ThemeType; | ||
divideColor: ThemeType; | ||
divideOpacity: ThemeType; | ||
divideWidth: ThemeType; | ||
dropShadow: ThemeType; | ||
fill: ThemeType; | ||
flex: ThemeType; | ||
flexGrow: ThemeType; | ||
flexShrink: ThemeType; | ||
fontFamily: ThemeType; | ||
fontSize: ThemeType; | ||
fontWeight: ThemeType; | ||
gap: ThemeType; | ||
gradientColorStops: ThemeType; | ||
grayscale: ThemeType; | ||
gridAutoColumns: ThemeType; | ||
@@ -95,8 +123,17 @@ gridAutoRows: ThemeType; | ||
gridRowEnd: ThemeType; | ||
transformOrigin: ThemeType; | ||
gridTemplateColumns: ThemeType; | ||
gridTemplateRows: ThemeType; | ||
height: ThemeType; | ||
hueRotate: ThemeType; | ||
inset: ThemeType; | ||
invert: ThemeType; | ||
keyframes: ThemeType; | ||
letterSpacing: ThemeType; | ||
lineHeight: ThemeType; | ||
listStyleType: ThemeType; | ||
margin: ThemeType; | ||
maxHeight: ThemeType; | ||
maxWidth: ThemeType; | ||
minHeight: ThemeType; | ||
minWidth: ThemeType; | ||
objectPosition: ThemeType; | ||
@@ -107,8 +144,21 @@ opacity: ThemeType; | ||
outlineColor: ThemeType; | ||
padding: ThemeType; | ||
placeholderColor: ThemeType; | ||
placeholderOpacity: ThemeType; | ||
ringColor: ThemeType; | ||
ringOffsetColor: ThemeType; | ||
ringOffsetWidth: ThemeType; | ||
ringOpacity: ThemeType; | ||
ringWidth: ThemeType; | ||
rotate: ThemeType; | ||
saturate: ThemeType; | ||
scale: ThemeType; | ||
sepia: ThemeType; | ||
skew: ThemeType; | ||
space: ThemeType; | ||
stroke: ThemeType; | ||
strokeWidth: ThemeType; | ||
textColor: ThemeType; | ||
textOpacity: ThemeType; | ||
transformOrigin: ThemeType; | ||
transitionDuration: ThemeType; | ||
@@ -118,40 +168,8 @@ transitionDelay: ThemeType; | ||
transitionTimingFunction: ThemeType; | ||
zIndex: ThemeType; | ||
container: ThemeType; | ||
fontFamily: ThemeType; | ||
fontSize: ThemeType; | ||
keyframes: ThemeType; | ||
backgroundColor: ThemeType; | ||
backgroundOpacity: ThemeType; | ||
borderColor: ThemeType; | ||
borderOpacity: ThemeType; | ||
divideColor: ThemeType; | ||
divideOpacity: ThemeType; | ||
divideWidth: ThemeType; | ||
fill: ThemeType; | ||
gap: ThemeType; | ||
gradientColorStops: ThemeType; | ||
height: ThemeType; | ||
inset: ThemeType; | ||
margin: ThemeType; | ||
maxHeight: ThemeType; | ||
maxWidth: ThemeType; | ||
minHeight: ThemeType; | ||
minWidth: ThemeType; | ||
padding: ThemeType; | ||
placeholderColor: ThemeType; | ||
placeholderOpacity: ThemeType; | ||
ringColor: ThemeType; | ||
ringOffsetColor: ThemeType; | ||
ringOpacity: ThemeType; | ||
space: ThemeType; | ||
stroke: ThemeType; | ||
textColor: ThemeType; | ||
textOpacity: ThemeType; | ||
translate: ThemeType; | ||
width: ThemeType; | ||
zIndex: ThemeType; | ||
aspectRatio: ThemeType; | ||
filter: ThemeType; | ||
backdropFilter: ThemeType; | ||
blur: ThemeType; | ||
lineClamp: ThemeType; | ||
@@ -238,2 +256,6 @@ snapMargin: ThemeType; | ||
prefixer?: boolean; | ||
attributify?: boolean | { | ||
prefix?: string; | ||
disable?: string[]; | ||
}; | ||
separator?: string; | ||
@@ -252,2 +274,5 @@ important?: boolean | string; | ||
exclude?: RegExp[]; | ||
alias?: { | ||
[key: string]: string; | ||
}; | ||
shortcuts?: { | ||
@@ -351,3 +376,3 @@ [key: string]: Shortcut; | ||
export interface DynamicUtility { | ||
[key: string]: (utility: Utility, { theme }: PluginUtils, variants: string[]) => Output; | ||
[key: string]: (utility: Utility, { theme }: PluginUtils) => Output; | ||
} | ||
@@ -404,4 +429,4 @@ export interface PluginUtils { | ||
func?: string; | ||
type: 'group' | 'func' | 'utility'; | ||
type: 'group' | 'func' | 'utility' | 'alias'; | ||
important: boolean; | ||
} |
import { Style } from '../utils/style'; | ||
import type { Processor } from './index'; | ||
export declare function generateStaticStyle(processor: Processor, className: string, addComment?: boolean): Style | undefined; | ||
export default function extract(processor: Processor, className: string, addComment?: boolean, variants?: string[], prefix?: string): Style | Style[] | undefined; | ||
export default function extract(processor: Processor, className: string, addComment?: boolean, prefix?: string): Style | Style[] | undefined; |
import { Style, StyleSheet } from '../utils/style'; | ||
import type { Config, DictStr, DefaultConfig, DynamicUtility, DefaultTheme, Output, Shortcut, PluginUtils, PluginUtilOptions, PluginOutput, PluginWithOptions, DeepNestObject, UtilityGenerator, VariantGenerator } from '../interfaces'; | ||
import type { Config, DictStr, DefaultConfig, DynamicUtility, DefaultTheme, Output, Element, Shortcut, PluginUtils, PluginUtilOptions, PluginOutput, PluginWithOptions, DeepNestObject, UtilityGenerator, VariantGenerator } from '../interfaces'; | ||
import type { Utility } from './utilities/handler'; | ||
@@ -26,2 +26,5 @@ declare type ResolvedVariants = { | ||
}; | ||
alias: { | ||
[key: string]: Element[]; | ||
}; | ||
} | ||
@@ -62,3 +65,3 @@ declare type VariantUtils = { | ||
markAsImportant(style: Style, force?: boolean | string): Style; | ||
extract(className: string, addComment?: boolean, variants?: string[], prefix?: string): Style | Style[] | undefined; | ||
extract(className: string, addComment?: boolean, prefix?: string): Style | Style[] | undefined; | ||
preflight(html?: string, includeBase?: boolean, includeGlobal?: boolean, includePlugins?: boolean, ignoreProcessed?: boolean): StyleSheet; | ||
@@ -76,2 +79,9 @@ interpret(classNames: string, ignoreProcessed?: boolean, handleIgnored?: (ignored: string) => Style | Style[] | undefined): { | ||
}; | ||
attributify(attrs: { | ||
[key: string]: string | string[]; | ||
}): { | ||
success: string[]; | ||
ignored: string[]; | ||
styleSheet: StyleSheet; | ||
}; | ||
loadPlugin({ handler, config, }: PluginOutput): void; | ||
@@ -82,2 +92,5 @@ loadPluginWithOptions(optionsFunction: PluginWithOptions<any>, userOptions?: DictStr): void; | ||
}): void; | ||
loadAlias(alias: { | ||
[key: string]: string; | ||
}): void; | ||
config(path: string, defaultValue?: unknown): unknown; | ||
@@ -84,0 +97,0 @@ theme(path: string, defaultValue?: unknown): unknown; |
@@ -1,2 +0,2 @@ | ||
import { Property } from '../../utils/style'; | ||
import { Property, Style } from '../../utils/style'; | ||
declare class Handler { | ||
@@ -7,5 +7,2 @@ private _center; | ||
value: string | undefined; | ||
meta: { | ||
[key: string]: any; | ||
}; | ||
constructor(utility: Utility); | ||
@@ -26,4 +23,4 @@ handleStatic(map?: { | ||
handleColor(map?: { | ||
[key: string]: string | string[] | { | ||
[key: string]: string | string[]; | ||
[key: string]: string | { | ||
[key: string]: string; | ||
}; | ||
@@ -34,2 +31,4 @@ } | unknown): this; | ||
createProperty(name: string | string[], callback?: (value: string) => string): Property | undefined; | ||
createStyle(selector: string, callback: (value: string) => Property | Property[] | undefined): Style | undefined; | ||
callback(func: (value: string) => Property | Style | Style[] | undefined): Property | Style | Style[] | undefined; | ||
} | ||
@@ -36,0 +35,0 @@ export declare class Utility { |
@@ -6,6 +6,8 @@ import { StyleSheet } from '../style'; | ||
processor?: Processor; | ||
variables: { | ||
[key: string]: unknown; | ||
}; | ||
private _cache; | ||
constructor(css?: string, processor?: Processor); | ||
private _addCache; | ||
private _removeComment; | ||
private _searchGroup; | ||
@@ -12,0 +14,0 @@ private _loadTheme; |
@@ -1,2 +0,2 @@ | ||
import type { NestObject } from '../interfaces'; | ||
import type { DeepNestDictStr } from '../interfaces'; | ||
export declare type Arrayable<T> = T | T[]; | ||
@@ -28,4 +28,4 @@ export declare function toArray<T>(v: Arrayable<T>): T[]; | ||
export declare function isTagName(name: string): boolean; | ||
export declare function flatColors(colors: NestObject, head?: string): { | ||
[key: string]: string | string[]; | ||
export declare function flatColors(colors: DeepNestDictStr, head?: string): { | ||
[key: string]: string; | ||
}; | ||
@@ -32,0 +32,0 @@ export declare function testRegexr(text: string, expressions: RegExp[]): boolean; |
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 too big to display
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 too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
124
1409832
38545
1