@unocss/preset-mini 0.42.0 → 0.43.1
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/README.md +48 -0
- package/dist/chunks/{utilities.cjs → colors2.cjs} +233 -231
- package/dist/chunks/{utilities.mjs → colors2.mjs} +233 -232
- package/dist/chunks/default.cjs +3 -3
- package/dist/chunks/default.mjs +3 -3
- package/dist/chunks/default2.cjs +141 -143
- package/dist/chunks/default2.mjs +26 -28
- package/dist/chunks/default3.cjs +25 -21
- package/dist/chunks/default3.mjs +23 -19
- package/dist/chunks/transform.cjs +46 -39
- package/dist/chunks/transform.mjs +18 -11
- package/dist/index.cjs +4 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +3 -2
- package/dist/rules.cjs +1 -1
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/{utilities-654ad3bd.d.ts → utilities-b44b330d.d.ts} +3 -1
- package/dist/utils.cjs +25 -24
- package/dist/utils.d.ts +2 -3
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +1 -1
- package/dist/variants.d.ts +1 -1
- package/dist/variants.mjs +1 -1
- package/package.json +2 -2
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './chunks/colors.mjs';
|
|
2
2
|
export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, z as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './chunks/default.mjs';
|
|
3
3
|
import './chunks/transform.mjs';
|
|
4
|
-
import './chunks/
|
|
4
|
+
import './chunks/colors2.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -56,5 +56,7 @@ declare const hasParseableColor: (color: string | undefined, theme: Theme) => bo
|
|
|
56
56
|
declare const resolveBreakpoints: ({ theme, generator }: Readonly<VariantContext<Theme>>) => Record<string, string> | undefined;
|
|
57
57
|
declare const resolveVerticalBreakpoints: ({ theme, generator }: Readonly<VariantContext<Theme>>) => Record<string, string> | undefined;
|
|
58
58
|
declare const makeGlobalStaticRules: (prefix: string, property?: string) => Rule<{}>[];
|
|
59
|
+
declare function getComponent(str: string, open: string, close: string, separator: string): string[] | undefined;
|
|
60
|
+
declare function getComponents(str: string, separator: string, limit?: number): string[] | undefined;
|
|
59
61
|
|
|
60
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r };
|
|
62
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, getComponents as e, getComponent as g, hasParseableColor as h, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r };
|
package/dist/utils.cjs
CHANGED
|
@@ -2,34 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const colors = require('./chunks/colors2.cjs');
|
|
6
6
|
const variants = require('./chunks/variants.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.CONTROL_MINI_NO_NEGATIVE =
|
|
12
|
-
exports.colorOpacityToString =
|
|
13
|
-
exports.colorResolver =
|
|
14
|
-
exports.colorToString =
|
|
15
|
-
exports.colorableShadows =
|
|
16
|
-
exports.cornerMap =
|
|
17
|
-
exports.directionMap =
|
|
18
|
-
exports.directionSize =
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
11
|
+
exports.CONTROL_MINI_NO_NEGATIVE = colors.CONTROL_MINI_NO_NEGATIVE;
|
|
12
|
+
exports.colorOpacityToString = colors.colorOpacityToString;
|
|
13
|
+
exports.colorResolver = colors.colorResolver;
|
|
14
|
+
exports.colorToString = colors.colorToString;
|
|
15
|
+
exports.colorableShadows = colors.colorableShadows;
|
|
16
|
+
exports.cornerMap = colors.cornerMap;
|
|
17
|
+
exports.directionMap = colors.directionMap;
|
|
18
|
+
exports.directionSize = colors.directionSize;
|
|
19
|
+
exports.getComponent = colors.getComponent;
|
|
20
|
+
exports.getComponents = colors.getComponents;
|
|
21
|
+
exports.globalKeywords = colors.globalKeywords;
|
|
22
|
+
exports.h = colors.h;
|
|
23
|
+
exports.handler = colors.handler;
|
|
24
|
+
exports.hasParseableColor = colors.hasParseableColor;
|
|
25
|
+
exports.hex2rgba = colors.hex2rgba;
|
|
26
|
+
exports.insetMap = colors.insetMap;
|
|
27
|
+
exports.makeGlobalStaticRules = colors.makeGlobalStaticRules;
|
|
28
|
+
exports.parseColor = colors.parseColor;
|
|
29
|
+
exports.parseCssColor = colors.parseCssColor;
|
|
30
|
+
exports.positionMap = colors.positionMap;
|
|
31
|
+
exports.resolveBreakpoints = colors.resolveBreakpoints;
|
|
32
|
+
exports.resolveVerticalBreakpoints = colors.resolveVerticalBreakpoints;
|
|
33
|
+
exports.valueHandlers = colors.valueHandlers;
|
|
34
|
+
exports.xyzMap = colors.xyzMap;
|
|
34
35
|
exports.variantMatcher = variants.variantMatcher;
|
|
35
36
|
exports.variantParentMatcher = variants.variantParentMatcher;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { RGBAColorValue, CSSColorValue, VariantHandlerContext, VariantObject } from '@unocss/core';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getComponent, e as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-b44b330d.js';
|
|
4
4
|
import './types-9e30040a.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
|
8
8
|
declare function colorOpacityToString(color: CSSColorValue): string | number;
|
|
9
9
|
declare function colorToString(color: CSSColorValue | string, alphaOverride?: string | number): string;
|
|
10
|
-
declare function getComponents(str: string, separator?: string, limit?: number): string[] | undefined;
|
|
11
10
|
|
|
12
11
|
declare const directionMap: Record<string, string[]>;
|
|
13
12
|
declare const insetMap: Record<string, string[]>;
|
|
@@ -79,4 +78,4 @@ declare const h: _unocss_core.ValueHandler<"number" | "auto" | "global" | "posit
|
|
|
79
78
|
declare const variantMatcher: (name: string, handler: (input: VariantHandlerContext) => Record<string, any>) => VariantObject;
|
|
80
79
|
declare const variantParentMatcher: (name: string, parent: string) => VariantObject;
|
|
81
80
|
|
|
82
|
-
export { colorOpacityToString, colorToString, cornerMap, directionMap,
|
|
81
|
+
export { colorOpacityToString, colorToString, cornerMap, directionMap, globalKeywords, h, handler, hex2rgba, insetMap, parseCssColor, positionMap, handlers as valueHandlers, variantMatcher, variantParentMatcher, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, e as colorOpacityToString, c as colorResolver, b as colorToString, i as colorableShadows, f as cornerMap, d as directionMap, l as directionSize,
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, e as colorOpacityToString, c as colorResolver, b as colorToString, i as colorableShadows, f as cornerMap, d as directionMap, l as directionSize, n as getComponent, u as getComponents, g as globalKeywords, t as h, h as handler, a as hasParseableColor, q as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, s as parseCssColor, o as positionMap, k as resolveBreakpoints, r as resolveVerticalBreakpoints, v as valueHandlers, x as xyzMap } from './chunks/colors2.mjs';
|
|
2
2
|
export { a as variantMatcher, v as variantParentMatcher } from './chunks/variants.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
package/dist/variants.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { T as Theme } from './types-9e30040a.js';
|
|
|
3
3
|
import { PresetMiniOptions } from './index.js';
|
|
4
4
|
import './default-0fe8c7f8.js';
|
|
5
5
|
import './colors-f2b5968c.js';
|
|
6
|
-
import './utilities-
|
|
6
|
+
import './utilities-b44b330d.js';
|
|
7
7
|
|
|
8
8
|
declare const variantBreakpoints: Variant<Theme>;
|
|
9
9
|
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { p as partClasses, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, h as variantCssLayer, d as variantCustomMedia, o as variantImportant, i as variantInternalLayer, f as variantLanguageDirections, q as variantNegative, c as variantPrint, m as variantPseudoClassFunctions, l as variantPseudoClassesAndElements, j as variantScope, g as variantSelector, n as variantTaggedPseudoClasses, k as variantVariables, v as variants } from './chunks/default3.mjs';
|
|
2
|
-
import './chunks/
|
|
2
|
+
import './chunks/colors2.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import './chunks/variants.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.1",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"*.css"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/core": "0.
|
|
64
|
+
"@unocss/core": "0.43.1"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|