@unocss/preset-mini 0.58.8 → 0.59.0-beta.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/dist/index.mjs +6 -6
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.DLBE_qKL.mjs → preset-mini.BLqeNSHq.mjs} +1 -1
- package/dist/shared/{preset-mini.D4T3hEuN.mjs → preset-mini.BkfCAdS7.mjs} +2 -2
- package/dist/shared/{preset-mini.Cr9SAx7D.mjs → preset-mini.CWuOZAHF.mjs} +14 -3
- package/dist/shared/{preset-mini.CPzuJ4uB.mjs → preset-mini.Cn7UNwSE.mjs} +1 -1
- package/dist/shared/{preset-mini.zoN9eE0Q.mjs → preset-mini.DeOzy57x.mjs} +1 -1
- package/dist/theme.mjs +3 -3
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +1 -1
- package/dist/variants.mjs +2 -2
- package/package.json +18 -23
- package/dist/colors.cjs +0 -363
- package/dist/colors.d.cts +0 -354
- package/dist/index.cjs +0 -91
- package/dist/index.d.cts +0 -75
- package/dist/rules.cjs +0 -75
- package/dist/rules.d.cts +0 -129
- package/dist/shared/preset-mini.BCYTcd-i.cjs +0 -582
- package/dist/shared/preset-mini.BP7cviYW.d.cts +0 -75
- package/dist/shared/preset-mini.Bl8k7GEB.cjs +0 -796
- package/dist/shared/preset-mini.CxmMzOLj.cjs +0 -1033
- package/dist/shared/preset-mini.DLRoYX1Y.cjs +0 -322
- package/dist/shared/preset-mini.P5Rzuhf5.d.cts +0 -77
- package/dist/shared/preset-mini.bn9iWcrm.d.cts +0 -728
- package/dist/shared/preset-mini.hSTXklYn.cjs +0 -352
- package/dist/theme.cjs +0 -42
- package/dist/theme.d.cts +0 -270
- package/dist/utils.cjs +0 -42
- package/dist/utils.d.cts +0 -58
- package/dist/variants.cjs +0 -34
- package/dist/variants.d.cts +0 -47
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { entriesToCss, toArray, definePreset } from '@unocss/core';
|
|
2
2
|
import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
|
|
3
|
-
import { g as globalKeywords } from './shared/preset-mini.
|
|
4
|
-
export { j as parseColor } from './shared/preset-mini.
|
|
5
|
-
import { t as theme } from './shared/preset-mini.
|
|
6
|
-
import { r as rules } from './shared/preset-mini.
|
|
7
|
-
import { h as variants } from './shared/preset-mini.
|
|
3
|
+
import { g as globalKeywords } from './shared/preset-mini.CWuOZAHF.mjs';
|
|
4
|
+
export { j as parseColor } from './shared/preset-mini.CWuOZAHF.mjs';
|
|
5
|
+
import { t as theme } from './shared/preset-mini.DeOzy57x.mjs';
|
|
6
|
+
import { r as rules } from './shared/preset-mini.BkfCAdS7.mjs';
|
|
7
|
+
import { h as variants } from './shared/preset-mini.Cn7UNwSE.mjs';
|
|
8
8
|
export { colors } from './colors.mjs';
|
|
9
9
|
import '@unocss/rule-utils';
|
|
10
|
-
import './shared/preset-mini.
|
|
10
|
+
import './shared/preset-mini.BLqeNSHq.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
package/dist/rules.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.
|
|
2
|
-
export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
1
|
+
export { s as alignments, a as appearance, E as aspectRatio, e as bgColors, b as borderStyles, c as borders, B as boxSizing, f as colorScheme, g as containerParent, P as cssProperty, O as cssVariables, j as flex, x as flexGridJustifiesAlignments, z as floats, J as fonts, k as gaps, l as grids, h as handlerBorderStyle, y as insets, n as justifies, G as margins, d as opacity, q as orders, o as outline, m as overflows, F as paddings, u as placements, p as positions, C as questionMark, r as rules, D as sizes, H as svgUtilities, K as tabSizes, t as textAligns, i as textDecorations, L as textIndents, N as textShadows, M as textStrokes, I as transitions, v as verticalAligns, w as willChange, A as zIndexes } from './shared/preset-mini.BkfCAdS7.mjs';
|
|
2
|
+
export { e as appearances, c as boxShadows, b as boxShadowsBase, k as breaks, g as contains, i as contentVisibility, j as contents, f as cursors, d as displays, o as fontSmoothings, n as fontStyles, p as pointerEvents, h as resizes, r as ringBase, a as rings, l as textOverflows, m as textTransforms, t as textWraps, q as transformBase, s as transforms, u as userSelects, v as varEmpty, w as whitespaces } from './shared/preset-mini.BLqeNSHq.mjs';
|
|
3
|
+
import './shared/preset-mini.CWuOZAHF.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
import '@unocss/rule-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as h, o as makeGlobalStaticRules, g as globalKeywords, k as colorResolver, q as isCSSMathFn, m as hasParseableColor, l as colorableShadows, p as positionMap, u as transformXYZ } from './preset-mini.
|
|
1
|
+
import { e as h, o as makeGlobalStaticRules, g as globalKeywords, k as colorResolver, q as isCSSMathFn, m as hasParseableColor, l as colorableShadows, p as positionMap, u as transformXYZ } from './preset-mini.CWuOZAHF.mjs';
|
|
2
2
|
|
|
3
3
|
const cursorValues = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"];
|
|
4
4
|
const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as globalKeywords, e as h, q as isCSSMathFn, k as colorResolver, d as directionMap, m as hasParseableColor, c as cornerMap, j as parseColor, t as isSize, o as makeGlobalStaticRules, l as colorableShadows, s as splitShorthand, i as insetMap, r as resolveBreakpoints, f as directionSize } from './preset-mini.
|
|
1
|
+
import { g as globalKeywords, e as h, q as isCSSMathFn, k as colorResolver, d as directionMap, m as hasParseableColor, c as cornerMap, j as parseColor, t as isSize, o as makeGlobalStaticRules, l as colorableShadows, s as splitShorthand, i as insetMap, r as resolveBreakpoints, f as directionSize } from './preset-mini.CWuOZAHF.mjs';
|
|
2
2
|
import { colorToString, colorOpacityToString } from '@unocss/rule-utils';
|
|
3
3
|
import { warnOnce, toArray } from '@unocss/core';
|
|
4
|
-
import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.
|
|
4
|
+
import { d as displays, i as contentVisibility, j as contents, l as textOverflows, m as textTransforms, n as fontStyles, o as fontSmoothings, c as boxShadows, a as rings, f as cursors, e as appearances, p as pointerEvents, h as resizes, u as userSelects, w as whitespaces, k as breaks, s as transforms, g as contains, t as textWraps } from './preset-mini.BLqeNSHq.mjs';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
7
7
|
"mid": "middle",
|
|
@@ -111,7 +111,18 @@ const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
|
|
|
111
111
|
|
|
112
112
|
const numberWithUnitRE = /^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i;
|
|
113
113
|
const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
|
|
114
|
-
const unitOnlyRE = /^(px)$/i;
|
|
114
|
+
const unitOnlyRE = /^(px|[sld]?v[wh])$/i;
|
|
115
|
+
const unitOnlyMap = {
|
|
116
|
+
px: 1,
|
|
117
|
+
vw: 100,
|
|
118
|
+
vh: 100,
|
|
119
|
+
svw: 100,
|
|
120
|
+
svh: 100,
|
|
121
|
+
dvw: 100,
|
|
122
|
+
dvh: 100,
|
|
123
|
+
lvh: 100,
|
|
124
|
+
lvw: 100
|
|
125
|
+
};
|
|
115
126
|
const bracketTypeRe = /^\[(color|length|size|position|quoted|string):/i;
|
|
116
127
|
const splitComma = /,(?![^()]*\))/g;
|
|
117
128
|
|
|
@@ -192,7 +203,7 @@ function rem(str) {
|
|
|
192
203
|
if (!str)
|
|
193
204
|
return;
|
|
194
205
|
if (unitOnlyRE.test(str))
|
|
195
|
-
return
|
|
206
|
+
return `${unitOnlyMap[str]}${str}`;
|
|
196
207
|
const match = str.match(numberWithUnitRE);
|
|
197
208
|
if (!match)
|
|
198
209
|
return;
|
|
@@ -206,7 +217,7 @@ function rem(str) {
|
|
|
206
217
|
}
|
|
207
218
|
function px(str) {
|
|
208
219
|
if (unitOnlyRE.test(str))
|
|
209
|
-
return
|
|
220
|
+
return `${unitOnlyMap[str]}${str}`;
|
|
210
221
|
const match = str.match(numberWithUnitRE);
|
|
211
222
|
if (!match)
|
|
212
223
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, b as cssMathFnRE } from './preset-mini.
|
|
1
|
+
import { e as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, b as cssMathFnRE } from './preset-mini.CWuOZAHF.mjs';
|
|
2
2
|
import { variantGetParameter, variantGetBracket, variantMatcher, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
|
|
3
3
|
import { warnOnce, escapeRegExp, escapeSelector } from '@unocss/core';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from '../colors.mjs';
|
|
2
|
-
import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.
|
|
2
|
+
import { q as transformBase, b as boxShadowsBase, r as ringBase } from './preset-mini.BLqeNSHq.mjs';
|
|
3
3
|
|
|
4
4
|
const fontFamily = {
|
|
5
5
|
sans: [
|
package/dist/theme.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { colors } from './colors.mjs';
|
|
2
|
-
export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
2
|
+
export { x as baseSize, b as blur, n as borderRadius, o as boxShadow, j as breakpoints, D as containers, d as dropShadow, m as duration, p as easing, f as fontFamily, a as fontSize, i as fontWeight, B as height, h as letterSpacing, l as lineHeight, k as lineWidth, C as maxHeight, A as maxWidth, q as media, u as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, y as width, w as wordSpacing, z as zIndex } from './shared/preset-mini.DeOzy57x.mjs';
|
|
3
|
+
import './shared/preset-mini.BLqeNSHq.mjs';
|
|
4
|
+
import './shared/preset-mini.CWuOZAHF.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
import '@unocss/rule-utils';
|
package/dist/utils.d.mts
CHANGED
|
@@ -52,7 +52,7 @@ declare namespace handlers {
|
|
|
52
52
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
56
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
55
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
56
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
57
57
|
|
|
58
58
|
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ declare namespace handlers {
|
|
|
52
52
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
56
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
55
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
56
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "px" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
57
57
|
|
|
58
58
|
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, k as colorResolver, l as colorableShadows, c as cornerMap, b as cssMathFnRE, d as directionMap, f as directionSize, g as globalKeywords, e as h, h as handler, m as hasParseableColor, i as insetMap, q as isCSSMathFn, t as isSize, o as makeGlobalStaticRules, j as parseColor, p as positionMap, r as resolveBreakpoints, n as resolveVerticalBreakpoints, s as splitShorthand, u as transformXYZ, v as valueHandlers, a as xyzArray, x as xyzMap } from './shared/preset-mini.
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, k as colorResolver, l as colorableShadows, c as cornerMap, b as cssMathFnRE, d as directionMap, f as directionSize, g as globalKeywords, e as h, h as handler, m as hasParseableColor, i as insetMap, q as isCSSMathFn, t as isSize, o as makeGlobalStaticRules, j as parseColor, p as positionMap, r as resolveBreakpoints, n as resolveVerticalBreakpoints, s as splitShorthand, u as transformXYZ, v as valueHandlers, a as xyzArray, x as xyzMap } from './shared/preset-mini.CWuOZAHF.mjs';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantContainerQuery, n as variantCssLayer, l as variantCustomMedia, f as variantDataAttribute, j as variantImportant, o as variantInternalLayer, i as variantLanguageDirections, s as variantNegative, x as variantPartClasses, k as variantPrint, u as variantPseudoClassFunctions, t as variantPseudoClassesAndElements, p as variantScope, m as variantSelector, y as variantSupports, g as variantTaggedDataAttributes, w as variantTaggedPseudoClasses, r as variantTheme, q as variantVariables, h as variants } from './shared/preset-mini.
|
|
2
|
-
import './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, v as variantAria, a as variantBreakpoints, e as variantColorsMediaOrClass, b as variantCombinators, d as variantContainerQuery, n as variantCssLayer, l as variantCustomMedia, f as variantDataAttribute, j as variantImportant, o as variantInternalLayer, i as variantLanguageDirections, s as variantNegative, x as variantPartClasses, k as variantPrint, u as variantPseudoClassFunctions, t as variantPseudoClassesAndElements, p as variantScope, m as variantSelector, y as variantSupports, g as variantTaggedDataAttributes, w as variantTaggedPseudoClasses, r as variantTheme, q as variantVariables, h as variants } from './shared/preset-mini.Cn7UNwSE.mjs';
|
|
2
|
+
import './shared/preset-mini.CWuOZAHF.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import '@unocss/rule-utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.59.0-beta.1",
|
|
4
5
|
"description": "The minimal preset for UnoCSS",
|
|
5
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
7
|
"license": "MIT",
|
|
@@ -21,38 +22,32 @@
|
|
|
21
22
|
"sideEffects": false,
|
|
22
23
|
"exports": {
|
|
23
24
|
".": {
|
|
24
|
-
"types": "./dist/index.d.
|
|
25
|
-
"
|
|
26
|
-
"require": "./dist/index.cjs"
|
|
25
|
+
"types": "./dist/index.d.mts",
|
|
26
|
+
"default": "./dist/index.mjs"
|
|
27
27
|
},
|
|
28
28
|
"./theme": {
|
|
29
|
-
"types": "./dist/theme.d.
|
|
30
|
-
"
|
|
31
|
-
"require": "./dist/theme.cjs"
|
|
29
|
+
"types": "./dist/theme.d.mts",
|
|
30
|
+
"default": "./dist/theme.mjs"
|
|
32
31
|
},
|
|
33
32
|
"./variants": {
|
|
34
|
-
"types": "./dist/variants.d.
|
|
35
|
-
"
|
|
36
|
-
"require": "./dist/variants.cjs"
|
|
33
|
+
"types": "./dist/variants.d.mts",
|
|
34
|
+
"default": "./dist/variants.mjs"
|
|
37
35
|
},
|
|
38
36
|
"./rules": {
|
|
39
|
-
"types": "./dist/rules.d.
|
|
40
|
-
"
|
|
41
|
-
"require": "./dist/rules.cjs"
|
|
37
|
+
"types": "./dist/rules.d.mts",
|
|
38
|
+
"default": "./dist/rules.mjs"
|
|
42
39
|
},
|
|
43
40
|
"./colors": {
|
|
44
|
-
"types": "./dist/colors.d.
|
|
45
|
-
"
|
|
46
|
-
"require": "./dist/colors.cjs"
|
|
41
|
+
"types": "./dist/colors.d.mts",
|
|
42
|
+
"default": "./dist/colors.mjs"
|
|
47
43
|
},
|
|
48
44
|
"./utils": {
|
|
49
|
-
"types": "./dist/utils.d.
|
|
50
|
-
"
|
|
51
|
-
"require": "./dist/utils.cjs"
|
|
45
|
+
"types": "./dist/utils.d.mts",
|
|
46
|
+
"default": "./dist/utils.mjs"
|
|
52
47
|
},
|
|
53
48
|
"./*": "./*"
|
|
54
49
|
},
|
|
55
|
-
"main": "dist/index.
|
|
50
|
+
"main": "dist/index.mjs",
|
|
56
51
|
"module": "dist/index.mjs",
|
|
57
52
|
"types": "dist/index.d.ts",
|
|
58
53
|
"files": [
|
|
@@ -61,9 +56,9 @@
|
|
|
61
56
|
"dist"
|
|
62
57
|
],
|
|
63
58
|
"dependencies": {
|
|
64
|
-
"@unocss/
|
|
65
|
-
"@unocss/
|
|
66
|
-
"@unocss/rule-utils": "0.
|
|
59
|
+
"@unocss/core": "0.59.0-beta.1",
|
|
60
|
+
"@unocss/extractor-arbitrary-variants": "0.59.0-beta.1",
|
|
61
|
+
"@unocss/rule-utils": "0.59.0-beta.1"
|
|
67
62
|
},
|
|
68
63
|
"scripts": {
|
|
69
64
|
"build": "unbuild",
|
package/dist/colors.cjs
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const colors = {
|
|
4
|
-
inherit: "inherit",
|
|
5
|
-
current: "currentColor",
|
|
6
|
-
transparent: "transparent",
|
|
7
|
-
black: "#000",
|
|
8
|
-
white: "#fff",
|
|
9
|
-
rose: {
|
|
10
|
-
50: "#fff1f2",
|
|
11
|
-
100: "#ffe4e6",
|
|
12
|
-
200: "#fecdd3",
|
|
13
|
-
300: "#fda4af",
|
|
14
|
-
400: "#fb7185",
|
|
15
|
-
500: "#f43f5e",
|
|
16
|
-
600: "#e11d48",
|
|
17
|
-
700: "#be123c",
|
|
18
|
-
800: "#9f1239",
|
|
19
|
-
900: "#881337",
|
|
20
|
-
950: "#4c0519"
|
|
21
|
-
},
|
|
22
|
-
pink: {
|
|
23
|
-
50: "#fdf2f8",
|
|
24
|
-
100: "#fce7f3",
|
|
25
|
-
200: "#fbcfe8",
|
|
26
|
-
300: "#f9a8d4",
|
|
27
|
-
400: "#f472b6",
|
|
28
|
-
500: "#ec4899",
|
|
29
|
-
600: "#db2777",
|
|
30
|
-
700: "#be185d",
|
|
31
|
-
800: "#9d174d",
|
|
32
|
-
900: "#831843",
|
|
33
|
-
950: "#500724"
|
|
34
|
-
},
|
|
35
|
-
fuchsia: {
|
|
36
|
-
50: "#fdf4ff",
|
|
37
|
-
100: "#fae8ff",
|
|
38
|
-
200: "#f5d0fe",
|
|
39
|
-
300: "#f0abfc",
|
|
40
|
-
400: "#e879f9",
|
|
41
|
-
500: "#d946ef",
|
|
42
|
-
600: "#c026d3",
|
|
43
|
-
700: "#a21caf",
|
|
44
|
-
800: "#86198f",
|
|
45
|
-
900: "#701a75",
|
|
46
|
-
950: "#4a044e"
|
|
47
|
-
},
|
|
48
|
-
purple: {
|
|
49
|
-
50: "#faf5ff",
|
|
50
|
-
100: "#f3e8ff",
|
|
51
|
-
200: "#e9d5ff",
|
|
52
|
-
300: "#d8b4fe",
|
|
53
|
-
400: "#c084fc",
|
|
54
|
-
500: "#a855f7",
|
|
55
|
-
600: "#9333ea",
|
|
56
|
-
700: "#7e22ce",
|
|
57
|
-
800: "#6b21a8",
|
|
58
|
-
900: "#581c87",
|
|
59
|
-
950: "#3b0764"
|
|
60
|
-
},
|
|
61
|
-
violet: {
|
|
62
|
-
50: "#f5f3ff",
|
|
63
|
-
100: "#ede9fe",
|
|
64
|
-
200: "#ddd6fe",
|
|
65
|
-
300: "#c4b5fd",
|
|
66
|
-
400: "#a78bfa",
|
|
67
|
-
500: "#8b5cf6",
|
|
68
|
-
600: "#7c3aed",
|
|
69
|
-
700: "#6d28d9",
|
|
70
|
-
800: "#5b21b6",
|
|
71
|
-
900: "#4c1d95",
|
|
72
|
-
950: "#2e1065"
|
|
73
|
-
},
|
|
74
|
-
indigo: {
|
|
75
|
-
50: "#eef2ff",
|
|
76
|
-
100: "#e0e7ff",
|
|
77
|
-
200: "#c7d2fe",
|
|
78
|
-
300: "#a5b4fc",
|
|
79
|
-
400: "#818cf8",
|
|
80
|
-
500: "#6366f1",
|
|
81
|
-
600: "#4f46e5",
|
|
82
|
-
700: "#4338ca",
|
|
83
|
-
800: "#3730a3",
|
|
84
|
-
900: "#312e81",
|
|
85
|
-
950: "#1e1b4b"
|
|
86
|
-
},
|
|
87
|
-
blue: {
|
|
88
|
-
50: "#eff6ff",
|
|
89
|
-
100: "#dbeafe",
|
|
90
|
-
200: "#bfdbfe",
|
|
91
|
-
300: "#93c5fd",
|
|
92
|
-
400: "#60a5fa",
|
|
93
|
-
500: "#3b82f6",
|
|
94
|
-
600: "#2563eb",
|
|
95
|
-
700: "#1d4ed8",
|
|
96
|
-
800: "#1e40af",
|
|
97
|
-
900: "#1e3a8a",
|
|
98
|
-
950: "#172554"
|
|
99
|
-
},
|
|
100
|
-
sky: {
|
|
101
|
-
50: "#f0f9ff",
|
|
102
|
-
100: "#e0f2fe",
|
|
103
|
-
200: "#bae6fd",
|
|
104
|
-
300: "#7dd3fc",
|
|
105
|
-
400: "#38bdf8",
|
|
106
|
-
500: "#0ea5e9",
|
|
107
|
-
600: "#0284c7",
|
|
108
|
-
700: "#0369a1",
|
|
109
|
-
800: "#075985",
|
|
110
|
-
900: "#0c4a6e",
|
|
111
|
-
950: "#082f49"
|
|
112
|
-
},
|
|
113
|
-
cyan: {
|
|
114
|
-
50: "#ecfeff",
|
|
115
|
-
100: "#cffafe",
|
|
116
|
-
200: "#a5f3fc",
|
|
117
|
-
300: "#67e8f9",
|
|
118
|
-
400: "#22d3ee",
|
|
119
|
-
500: "#06b6d4",
|
|
120
|
-
600: "#0891b2",
|
|
121
|
-
700: "#0e7490",
|
|
122
|
-
800: "#155e75",
|
|
123
|
-
900: "#164e63",
|
|
124
|
-
950: "#083344"
|
|
125
|
-
},
|
|
126
|
-
teal: {
|
|
127
|
-
50: "#f0fdfa",
|
|
128
|
-
100: "#ccfbf1",
|
|
129
|
-
200: "#99f6e4",
|
|
130
|
-
300: "#5eead4",
|
|
131
|
-
400: "#2dd4bf",
|
|
132
|
-
500: "#14b8a6",
|
|
133
|
-
600: "#0d9488",
|
|
134
|
-
700: "#0f766e",
|
|
135
|
-
800: "#115e59",
|
|
136
|
-
900: "#134e4a",
|
|
137
|
-
950: "#042f2e"
|
|
138
|
-
},
|
|
139
|
-
emerald: {
|
|
140
|
-
50: "#ecfdf5",
|
|
141
|
-
100: "#d1fae5",
|
|
142
|
-
200: "#a7f3d0",
|
|
143
|
-
300: "#6ee7b7",
|
|
144
|
-
400: "#34d399",
|
|
145
|
-
500: "#10b981",
|
|
146
|
-
600: "#059669",
|
|
147
|
-
700: "#047857",
|
|
148
|
-
800: "#065f46",
|
|
149
|
-
900: "#064e3b",
|
|
150
|
-
950: "#022c22"
|
|
151
|
-
},
|
|
152
|
-
green: {
|
|
153
|
-
50: "#f0fdf4",
|
|
154
|
-
100: "#dcfce7",
|
|
155
|
-
200: "#bbf7d0",
|
|
156
|
-
300: "#86efac",
|
|
157
|
-
400: "#4ade80",
|
|
158
|
-
500: "#22c55e",
|
|
159
|
-
600: "#16a34a",
|
|
160
|
-
700: "#15803d",
|
|
161
|
-
800: "#166534",
|
|
162
|
-
900: "#14532d",
|
|
163
|
-
950: "#052e16"
|
|
164
|
-
},
|
|
165
|
-
lime: {
|
|
166
|
-
50: "#f7fee7",
|
|
167
|
-
100: "#ecfccb",
|
|
168
|
-
200: "#d9f99d",
|
|
169
|
-
300: "#bef264",
|
|
170
|
-
400: "#a3e635",
|
|
171
|
-
500: "#84cc16",
|
|
172
|
-
600: "#65a30d",
|
|
173
|
-
700: "#4d7c0f",
|
|
174
|
-
800: "#3f6212",
|
|
175
|
-
900: "#365314",
|
|
176
|
-
950: "#1a2e05"
|
|
177
|
-
},
|
|
178
|
-
yellow: {
|
|
179
|
-
50: "#fefce8",
|
|
180
|
-
100: "#fef9c3",
|
|
181
|
-
200: "#fef08a",
|
|
182
|
-
300: "#fde047",
|
|
183
|
-
400: "#facc15",
|
|
184
|
-
500: "#eab308",
|
|
185
|
-
600: "#ca8a04",
|
|
186
|
-
700: "#a16207",
|
|
187
|
-
800: "#854d0e",
|
|
188
|
-
900: "#713f12",
|
|
189
|
-
950: "#422006"
|
|
190
|
-
},
|
|
191
|
-
amber: {
|
|
192
|
-
50: "#fffbeb",
|
|
193
|
-
100: "#fef3c7",
|
|
194
|
-
200: "#fde68a",
|
|
195
|
-
300: "#fcd34d",
|
|
196
|
-
400: "#fbbf24",
|
|
197
|
-
500: "#f59e0b",
|
|
198
|
-
600: "#d97706",
|
|
199
|
-
700: "#b45309",
|
|
200
|
-
800: "#92400e",
|
|
201
|
-
900: "#78350f",
|
|
202
|
-
950: "#451a03"
|
|
203
|
-
},
|
|
204
|
-
orange: {
|
|
205
|
-
50: "#fff7ed",
|
|
206
|
-
100: "#ffedd5",
|
|
207
|
-
200: "#fed7aa",
|
|
208
|
-
300: "#fdba74",
|
|
209
|
-
400: "#fb923c",
|
|
210
|
-
500: "#f97316",
|
|
211
|
-
600: "#ea580c",
|
|
212
|
-
700: "#c2410c",
|
|
213
|
-
800: "#9a3412",
|
|
214
|
-
900: "#7c2d12",
|
|
215
|
-
950: "#431407"
|
|
216
|
-
},
|
|
217
|
-
red: {
|
|
218
|
-
50: "#fef2f2",
|
|
219
|
-
100: "#fee2e2",
|
|
220
|
-
200: "#fecaca",
|
|
221
|
-
300: "#fca5a5",
|
|
222
|
-
400: "#f87171",
|
|
223
|
-
500: "#ef4444",
|
|
224
|
-
600: "#dc2626",
|
|
225
|
-
700: "#b91c1c",
|
|
226
|
-
800: "#991b1b",
|
|
227
|
-
900: "#7f1d1d",
|
|
228
|
-
950: "#450a0a"
|
|
229
|
-
},
|
|
230
|
-
gray: {
|
|
231
|
-
50: "#f9fafb",
|
|
232
|
-
100: "#f3f4f6",
|
|
233
|
-
200: "#e5e7eb",
|
|
234
|
-
300: "#d1d5db",
|
|
235
|
-
400: "#9ca3af",
|
|
236
|
-
500: "#6b7280",
|
|
237
|
-
600: "#4b5563",
|
|
238
|
-
700: "#374151",
|
|
239
|
-
800: "#1f2937",
|
|
240
|
-
900: "#111827",
|
|
241
|
-
950: "#030712"
|
|
242
|
-
},
|
|
243
|
-
slate: {
|
|
244
|
-
50: "#f8fafc",
|
|
245
|
-
100: "#f1f5f9",
|
|
246
|
-
200: "#e2e8f0",
|
|
247
|
-
300: "#cbd5e1",
|
|
248
|
-
400: "#94a3b8",
|
|
249
|
-
500: "#64748b",
|
|
250
|
-
600: "#475569",
|
|
251
|
-
700: "#334155",
|
|
252
|
-
800: "#1e293b",
|
|
253
|
-
900: "#0f172a",
|
|
254
|
-
950: "#020617"
|
|
255
|
-
},
|
|
256
|
-
zinc: {
|
|
257
|
-
50: "#fafafa",
|
|
258
|
-
100: "#f4f4f5",
|
|
259
|
-
200: "#e4e4e7",
|
|
260
|
-
300: "#d4d4d8",
|
|
261
|
-
400: "#a1a1aa",
|
|
262
|
-
500: "#71717a",
|
|
263
|
-
600: "#52525b",
|
|
264
|
-
700: "#3f3f46",
|
|
265
|
-
800: "#27272a",
|
|
266
|
-
900: "#18181b",
|
|
267
|
-
950: "#09090b"
|
|
268
|
-
},
|
|
269
|
-
neutral: {
|
|
270
|
-
50: "#fafafa",
|
|
271
|
-
100: "#f5f5f5",
|
|
272
|
-
200: "#e5e5e5",
|
|
273
|
-
300: "#d4d4d4",
|
|
274
|
-
400: "#a3a3a3",
|
|
275
|
-
500: "#737373",
|
|
276
|
-
600: "#525252",
|
|
277
|
-
700: "#404040",
|
|
278
|
-
800: "#262626",
|
|
279
|
-
900: "#171717",
|
|
280
|
-
950: "#0a0a0a"
|
|
281
|
-
},
|
|
282
|
-
stone: {
|
|
283
|
-
50: "#fafaf9",
|
|
284
|
-
100: "#f5f5f4",
|
|
285
|
-
200: "#e7e5e4",
|
|
286
|
-
300: "#d6d3d1",
|
|
287
|
-
400: "#a8a29e",
|
|
288
|
-
500: "#78716c",
|
|
289
|
-
600: "#57534e",
|
|
290
|
-
700: "#44403c",
|
|
291
|
-
800: "#292524",
|
|
292
|
-
900: "#1c1917",
|
|
293
|
-
950: "#0c0a09"
|
|
294
|
-
},
|
|
295
|
-
light: {
|
|
296
|
-
50: "#fdfdfd",
|
|
297
|
-
100: "#fcfcfc",
|
|
298
|
-
200: "#fafafa",
|
|
299
|
-
300: "#f8f9fa",
|
|
300
|
-
400: "#f6f6f6",
|
|
301
|
-
500: "#f2f2f2",
|
|
302
|
-
600: "#f1f3f5",
|
|
303
|
-
700: "#e9ecef",
|
|
304
|
-
800: "#dee2e6",
|
|
305
|
-
900: "#dde1e3",
|
|
306
|
-
950: "#d8dcdf"
|
|
307
|
-
},
|
|
308
|
-
dark: {
|
|
309
|
-
50: "#4a4a4a",
|
|
310
|
-
100: "#3c3c3c",
|
|
311
|
-
200: "#323232",
|
|
312
|
-
300: "#2d2d2d",
|
|
313
|
-
400: "#222222",
|
|
314
|
-
500: "#1f1f1f",
|
|
315
|
-
600: "#1c1c1e",
|
|
316
|
-
700: "#1b1b1b",
|
|
317
|
-
800: "#181818",
|
|
318
|
-
900: "#0f0f0f",
|
|
319
|
-
950: "#080808"
|
|
320
|
-
},
|
|
321
|
-
get lightblue() {
|
|
322
|
-
return this.sky;
|
|
323
|
-
},
|
|
324
|
-
get lightBlue() {
|
|
325
|
-
return this.sky;
|
|
326
|
-
},
|
|
327
|
-
get warmgray() {
|
|
328
|
-
return this.stone;
|
|
329
|
-
},
|
|
330
|
-
get warmGray() {
|
|
331
|
-
return this.stone;
|
|
332
|
-
},
|
|
333
|
-
get truegray() {
|
|
334
|
-
return this.neutral;
|
|
335
|
-
},
|
|
336
|
-
get trueGray() {
|
|
337
|
-
return this.neutral;
|
|
338
|
-
},
|
|
339
|
-
get coolgray() {
|
|
340
|
-
return this.gray;
|
|
341
|
-
},
|
|
342
|
-
get coolGray() {
|
|
343
|
-
return this.gray;
|
|
344
|
-
},
|
|
345
|
-
get bluegray() {
|
|
346
|
-
return this.slate;
|
|
347
|
-
},
|
|
348
|
-
get blueGray() {
|
|
349
|
-
return this.slate;
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
Object.values(colors).forEach((color) => {
|
|
353
|
-
if (typeof color !== "string" && color !== void 0) {
|
|
354
|
-
color.DEFAULT = color.DEFAULT || color[400];
|
|
355
|
-
Object.keys(color).forEach((key) => {
|
|
356
|
-
const short = +key / 100;
|
|
357
|
-
if (short === Math.round(short))
|
|
358
|
-
color[short] = color[key];
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
|
|
363
|
-
exports.colors = colors;
|