@unocss/preset-mini
Advanced tools
Comparing version 0.21.2 to 0.22.0
@@ -6,2 +6,3 @@ import { PresetOptions, Preset } from '@unocss/core'; | ||
export { c as colors } from './colors-6d634692'; | ||
export { p as parseColor } from './utilities-22a522e2'; | ||
@@ -8,0 +9,0 @@ interface PresetMiniOptions extends PresetOptions { |
import * as _unocss_core from '@unocss/core'; | ||
import { VariantHandler, DynamicMatcher, ParsedColorValue } from '@unocss/core'; | ||
import { T as Theme } from './types-a2d2b52f'; | ||
import { VariantHandler } from '@unocss/core'; | ||
export { c as capitalize, a as colorResolver, d as directionSize, p as parseColor } from './utilities-22a522e2'; | ||
import './types-a2d2b52f'; | ||
@@ -61,54 +62,2 @@ declare const directionMap: Record<string, string[]>; | ||
declare function capitalize<T extends string>(str: T): Capitalize<T>; | ||
/** | ||
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules. | ||
* | ||
* @param {string} propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched. | ||
* @return {DynamicMatcher} {@link DynamicMatcher} | ||
* @see {@link directionMap} | ||
*/ | ||
declare const directionSize: (propertyPrefix: string) => DynamicMatcher; | ||
/** | ||
* Parse color string into rgba (if possible) with opacity opacity. Color value will be matched to theme object before converting to rgb value. | ||
* | ||
* @example Parseable strings: | ||
* 'red' // From theme, if 'red' is available | ||
* 'red-100' // From theme, plus scale | ||
* 'red-100/20' // From theme, plus scale/opacity | ||
* '#f12' // Hex color | ||
* 'hex-f12' // Alternative hex color | ||
* '[rgb(100,2,3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity | ||
* | ||
* @param {string} body - Color string to be parsed. | ||
* @param {Theme} theme - {@link Theme} object. | ||
* @return {ParsedColorValue|undefined} {@link ParsedColorValue} object if string is parseable. | ||
*/ | ||
declare const parseColor: (body: string, theme: Theme) => ParsedColorValue | undefined; | ||
/** | ||
* Provide {@link DynamicMatcher} function to produce color value matched from rule. | ||
* | ||
* @see {@link parseColor} | ||
* | ||
* @example Resolving 'red' from theme: | ||
* colorResolver('background-color', 'background')('', 'red') | ||
* return { 'background-color': '#f12' } | ||
* | ||
* @example Resolving 'red-100' from theme: | ||
* colorResolver('background-color', 'background')('', 'red-100') | ||
* return { '--un-background-opacity': '1', 'background-color': 'rgba(254,226,226,var(--un-bg-opacity))' } | ||
* | ||
* @example Resolving 'red-100/20' from theme: | ||
* colorResolver('background-color', 'background')('', 'red-100/20') | ||
* return { 'background-color': 'rgba(204,251,241,0.22)' } | ||
* | ||
* @example Resolving 'hex-124': | ||
* colorResolver('color', 'text')('', 'hex-124') | ||
* return { '--un-text-opacity': '1', 'color': 'rgba(17,34,68,var(--un-text-opacity))' } | ||
* | ||
* @param {string} property - Property for the css value to be created. | ||
* @param {string} varName - Base name for the opacity variable. | ||
* @return {DynamicMatcher} {@link DynamicMatcher} object. | ||
*/ | ||
declare const colorResolver: (property: string, varName: string) => DynamicMatcher; | ||
export { capitalize, colorResolver, cornerMap, directionMap, directionSize, h, handler, parseColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap }; | ||
export { cornerMap, directionMap, h, handler, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap }; |
@@ -7,2 +7,3 @@ import * as _unocss_core from '@unocss/core'; | ||
import './colors-6d634692'; | ||
import './utilities-22a522e2'; | ||
@@ -9,0 +10,0 @@ declare const variantBreakpoints: Variant<Theme>; |
{ | ||
"name": "@unocss/preset-mini", | ||
"version": "0.21.2", | ||
"version": "0.22.0", | ||
"description": "The minimal preset for UnoCSS", | ||
@@ -64,3 +64,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@unocss/core": "0.21.2" | ||
"@unocss/core": "0.22.0" | ||
}, | ||
@@ -67,0 +67,0 @@ "scripts": { |
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
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
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
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
150709
4670
42
+ Added@unocss/core@0.22.0(transitive)
- Removed@unocss/core@0.21.2(transitive)
Updated@unocss/core@0.22.0