@unocss/rule-utils
Advanced tools
Comparing version 0.60.4 to 0.61.0
@@ -1,3 +0,35 @@ | ||
import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core'; | ||
import { VariantHandlerContext, VariantObject } from '@unocss/core'; | ||
interface CSSColorValue { | ||
type: string; | ||
components: (string | number)[]; | ||
alpha: string | number | undefined; | ||
} | ||
type RGBAColorValue = [number, number, number, number] | [number, number, number]; | ||
interface ParsedColorValue { | ||
/** | ||
* Parsed color value. | ||
*/ | ||
color?: string; | ||
/** | ||
* Parsed opacity value. | ||
*/ | ||
opacity: string; | ||
/** | ||
* Color name. | ||
*/ | ||
name: string; | ||
/** | ||
* Color scale, preferably 000 - 999. | ||
*/ | ||
no: string; | ||
/** | ||
* {@link CSSColorValue} | ||
*/ | ||
cssColor: CSSColorValue | undefined; | ||
/** | ||
* Parsed alpha value from opacity | ||
*/ | ||
alpha: string | number | undefined; | ||
} | ||
declare function hex2rgba(hex?: string): RGBAColorValue | undefined; | ||
@@ -33,2 +65,2 @@ declare function parseCssColor(str?: string): CSSColorValue | undefined; | ||
export { type ValueHandler, type ValueHandlerCallback, colorOpacityToString, colorToString, createValueHandler, getBracket, getStringComponent, getStringComponents, hasThemeFn, hex2rgba, parseCssColor, themeFnRE, transformThemeFn, transformThemeString, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher }; | ||
export { type CSSColorValue, type ParsedColorValue, type RGBAColorValue, type ValueHandler, type ValueHandlerCallback, colorOpacityToString, colorToString, createValueHandler, getBracket, getStringComponent, getStringComponents, hasThemeFn, hex2rgba, parseCssColor, themeFnRE, transformThemeFn, transformThemeString, variantGetBracket, variantGetParameter, variantMatcher, variantParentMatcher }; |
{ | ||
"name": "@unocss/rule-utils", | ||
"type": "module", | ||
"version": "0.60.4", | ||
"version": "0.61.0", | ||
"description": "Utilities for UnoCSS", | ||
@@ -37,3 +37,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"magic-string": "^0.30.10", | ||
"@unocss/core": "^0.60.4" | ||
"@unocss/core": "^0.61.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
20162
469
+ Added@unocss/core@0.61.0(transitive)
- Removed@unocss/core@0.60.4(transitive)
Updated@unocss/core@^0.61.0