@unocss/preset-mini 0.46.0 → 0.46.2
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/{colors-4d254848.d.ts → colors-09429298.d.ts} +1 -1
- package/dist/colors.d.ts +2 -2
- package/dist/{default-9096842f.d.ts → default-d1eb2175.d.ts} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +7 -7
- package/dist/rules.cjs +3 -3
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.7f221566.cjs → preset-mini.09ec9c56.cjs} +1 -1
- package/dist/shared/{preset-mini.fc97229a.cjs → preset-mini.134e02be.cjs} +40 -2
- package/dist/shared/{preset-mini.968d02ba.cjs → preset-mini.14f57094.cjs} +1 -1
- package/dist/shared/{preset-mini.f5f22d9a.cjs → preset-mini.3b14aba9.cjs} +2 -2
- package/dist/shared/{preset-mini.13105b6e.mjs → preset-mini.4883e112.mjs} +2 -2
- package/dist/shared/{preset-mini.739fdcc7.mjs → preset-mini.489445bc.mjs} +1 -1
- package/dist/shared/{preset-mini.7c4b1c47.cjs → preset-mini.5d486e77.cjs} +2 -2
- package/dist/shared/{preset-mini.9c5f881e.mjs → preset-mini.690517b1.mjs} +1 -1
- package/dist/shared/{preset-mini.ae98d318.mjs → preset-mini.809a4128.mjs} +2 -2
- package/dist/shared/{preset-mini.154e3363.mjs → preset-mini.810922e5.mjs} +2 -2
- package/dist/shared/{preset-mini.9e26490c.mjs → preset-mini.a626625a.mjs} +39 -3
- package/dist/shared/{preset-mini.0109bbf2.cjs → preset-mini.b1936363.cjs} +1 -1
- package/dist/theme.cjs +3 -3
- package/dist/theme.d.ts +4 -4
- package/dist/theme.mjs +3 -3
- package/dist/{types-3dbe7f66.d.ts → types-486d85a1.d.ts} +2 -0
- package/dist/{utilities-8393c8ff.d.ts → utilities-c2105bec.d.ts} +1 -1
- package/dist/utils.cjs +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/variants.cjs +5 -3
- package/dist/variants.d.ts +10 -6
- package/dist/variants.mjs +3 -3
- package/package.json +2 -2
package/dist/colors.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
import './types-
|
|
1
|
+
export { c as colors } from './colors-09429298.js';
|
|
2
|
+
import './types-486d85a1.js';
|
|
3
3
|
import '@unocss/core';
|
package/dist/index.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
|
-
require('./shared/preset-mini.
|
|
7
|
-
const colors$1 = require('./shared/preset-mini.
|
|
8
|
-
const _default$1 = require('./shared/preset-mini.
|
|
6
|
+
require('./shared/preset-mini.09ec9c56.cjs');
|
|
7
|
+
const colors$1 = require('./shared/preset-mini.b1936363.cjs');
|
|
8
|
+
const _default$1 = require('./shared/preset-mini.3b14aba9.cjs');
|
|
9
9
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
10
|
-
const _default = require('./shared/preset-mini.
|
|
11
|
-
const _default$2 = require('./shared/preset-mini.
|
|
12
|
-
require('./shared/preset-mini.
|
|
10
|
+
const _default = require('./shared/preset-mini.5d486e77.cjs');
|
|
11
|
+
const _default$2 = require('./shared/preset-mini.134e02be.cjs');
|
|
12
|
+
require('./shared/preset-mini.14f57094.cjs');
|
|
13
13
|
|
|
14
14
|
const preflights = [
|
|
15
15
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Preflight, PresetOptions, Preset } from '@unocss/core';
|
|
2
|
-
export { c as colors } from './colors-
|
|
3
|
-
export { t as theme } from './default-
|
|
4
|
-
import { T as Theme } from './types-
|
|
5
|
-
export { T as Theme, a as ThemeAnimation } from './types-
|
|
6
|
-
export { p as parseColor } from './utilities-
|
|
2
|
+
export { c as colors } from './colors-09429298.js';
|
|
3
|
+
export { t as theme } from './default-d1eb2175.js';
|
|
4
|
+
import { T as Theme } from './types-486d85a1.js';
|
|
5
|
+
export { T as Theme, a as ThemeAnimation } from './types-486d85a1.js';
|
|
6
|
+
export { p as parseColor } from './utilities-c2105bec.js';
|
|
7
7
|
|
|
8
8
|
declare const preflights: Preflight[];
|
|
9
9
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { entriesToCss, toArray } from '@unocss/core';
|
|
2
|
-
import './shared/preset-mini.
|
|
3
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
4
|
-
import { r as rules } from './shared/preset-mini.
|
|
2
|
+
import './shared/preset-mini.489445bc.mjs';
|
|
3
|
+
export { p as parseColor } from './shared/preset-mini.690517b1.mjs';
|
|
4
|
+
import { r as rules } from './shared/preset-mini.4883e112.mjs';
|
|
5
5
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
6
|
-
import { t as theme } from './shared/preset-mini.
|
|
7
|
-
export { t as theme } from './shared/preset-mini.
|
|
8
|
-
import { v as variants } from './shared/preset-mini.
|
|
9
|
-
import './shared/preset-mini.
|
|
6
|
+
import { t as theme } from './shared/preset-mini.809a4128.mjs';
|
|
7
|
+
export { t as theme } from './shared/preset-mini.809a4128.mjs';
|
|
8
|
+
import { v as variants } from './shared/preset-mini.a626625a.mjs';
|
|
9
|
+
import './shared/preset-mini.810922e5.mjs';
|
|
10
10
|
|
|
11
11
|
const preflights = [
|
|
12
12
|
{
|
package/dist/rules.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const decoration = require('./shared/preset-mini.
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
5
|
+
const decoration = require('./shared/preset-mini.09ec9c56.cjs');
|
|
6
|
+
const _default = require('./shared/preset-mini.3b14aba9.cjs');
|
|
7
|
+
require('./shared/preset-mini.b1936363.cjs');
|
|
8
8
|
require('@unocss/core');
|
|
9
9
|
|
|
10
10
|
|
package/dist/rules.d.ts
CHANGED
package/dist/rules.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, Q as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.
|
|
2
|
-
export { c as aspectRatio, b as bgColors, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as textColors } from './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
1
|
+
export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, Q as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './shared/preset-mini.489445bc.mjs';
|
|
2
|
+
export { c as aspectRatio, b as bgColors, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as textColors } from './shared/preset-mini.4883e112.mjs';
|
|
3
|
+
import './shared/preset-mini.690517b1.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const colors = require('./preset-mini.b1936363.cjs');
|
|
4
4
|
const core = require('@unocss/core');
|
|
5
|
-
const variants$1 = require('./preset-mini.
|
|
5
|
+
const variants$1 = require('./preset-mini.14f57094.cjs');
|
|
6
|
+
|
|
7
|
+
const variantAria = {
|
|
8
|
+
name: "aria",
|
|
9
|
+
match(matcher, { theme }) {
|
|
10
|
+
const variant = variants$1.variantGetParameter("aria", matcher, [":", "-"]);
|
|
11
|
+
if (variant) {
|
|
12
|
+
const [match, rest] = variant;
|
|
13
|
+
const aria = colors.handler.bracket(match) ?? theme.aria?.[match] ?? "";
|
|
14
|
+
if (aria) {
|
|
15
|
+
return {
|
|
16
|
+
matcher: rest,
|
|
17
|
+
selector: (s) => `${s}[aria-${aria}]`
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
6
23
|
|
|
7
24
|
const regexCache = {};
|
|
8
25
|
const calcMaxWidthBySize = (size) => {
|
|
@@ -98,6 +115,23 @@ const variantCombinators = [
|
|
|
98
115
|
scopeMatcher("siblings", "~")
|
|
99
116
|
];
|
|
100
117
|
|
|
118
|
+
const variantDataAttribute = {
|
|
119
|
+
name: "data",
|
|
120
|
+
match(matcher, { theme }) {
|
|
121
|
+
const variant = variants$1.variantGetParameter("data", matcher, [":", "-"]);
|
|
122
|
+
if (variant) {
|
|
123
|
+
const [match, rest] = variant;
|
|
124
|
+
const dataAttribute = colors.handler.bracket(match) ?? theme.data?.[match] ?? "";
|
|
125
|
+
if (dataAttribute) {
|
|
126
|
+
return {
|
|
127
|
+
matcher: rest,
|
|
128
|
+
selector: (s) => `${s}[data-${dataAttribute}]`
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
101
135
|
const variantPrint = variants$1.variantParentMatcher("print", "@media print");
|
|
102
136
|
const variantCustomMedia = {
|
|
103
137
|
name: "media",
|
|
@@ -534,6 +568,8 @@ const partClasses = {
|
|
|
534
568
|
};
|
|
535
569
|
|
|
536
570
|
const variants = (options) => [
|
|
571
|
+
variantAria,
|
|
572
|
+
variantDataAttribute,
|
|
537
573
|
variantCssLayer,
|
|
538
574
|
variantSelector,
|
|
539
575
|
variantInternalLayer,
|
|
@@ -556,11 +592,13 @@ const variants = (options) => [
|
|
|
556
592
|
|
|
557
593
|
exports.calcMaxWidthBySize = calcMaxWidthBySize;
|
|
558
594
|
exports.partClasses = partClasses;
|
|
595
|
+
exports.variantAria = variantAria;
|
|
559
596
|
exports.variantBreakpoints = variantBreakpoints;
|
|
560
597
|
exports.variantColorsMediaOrClass = variantColorsMediaOrClass;
|
|
561
598
|
exports.variantCombinators = variantCombinators;
|
|
562
599
|
exports.variantCssLayer = variantCssLayer;
|
|
563
600
|
exports.variantCustomMedia = variantCustomMedia;
|
|
601
|
+
exports.variantDataAttribute = variantDataAttribute;
|
|
564
602
|
exports.variantImportant = variantImportant;
|
|
565
603
|
exports.variantInternalLayer = variantInternalLayer;
|
|
566
604
|
exports.variantLanguageDirections = variantLanguageDirections;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@unocss/core');
|
|
4
|
-
const colors = require('./preset-mini.
|
|
4
|
+
const colors = require('./preset-mini.b1936363.cjs');
|
|
5
5
|
|
|
6
6
|
const variantMatcher = (name, handler) => {
|
|
7
7
|
const re = new RegExp(`^${core.escapeRegExp(name)}[:-]`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const decoration = require('./preset-mini.
|
|
4
|
-
const colors = require('./preset-mini.
|
|
3
|
+
const decoration = require('./preset-mini.09ec9c56.cjs');
|
|
4
|
+
const colors = require('./preset-mini.b1936363.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
|
|
7
7
|
const opacity = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange } from './preset-mini.
|
|
2
|
-
import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.
|
|
1
|
+
import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange } from './preset-mini.489445bc.mjs';
|
|
2
|
+
import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './preset-mini.690517b1.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
|
|
5
5
|
const opacity = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, m as makeGlobalStaticRules, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.
|
|
1
|
+
import { g as globalKeywords, h as handler, c as colorResolver, d as directionMap, a as hasParseableColor, b as cornerMap, p as parseColor, e as colorToString, f as colorOpacityToString, m as makeGlobalStaticRules, i as colorableShadows, j as insetMap, k as positionMap, x as xyzMap } from './preset-mini.690517b1.mjs';
|
|
2
2
|
import { toArray } from '@unocss/core';
|
|
3
3
|
|
|
4
4
|
const verticalAlignAlias = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./preset-mini.30606736.cjs');
|
|
4
|
-
const decoration = require('./preset-mini.
|
|
5
|
-
require('./preset-mini.
|
|
4
|
+
const decoration = require('./preset-mini.09ec9c56.cjs');
|
|
5
|
+
require('./preset-mini.b1936363.cjs');
|
|
6
6
|
require('@unocss/core');
|
|
7
7
|
|
|
8
8
|
const fontFamily = {
|
|
@@ -98,7 +98,7 @@ const globalKeywords = [
|
|
|
98
98
|
"unset"
|
|
99
99
|
];
|
|
100
100
|
|
|
101
|
-
const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc
|
|
101
|
+
const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i;
|
|
102
102
|
const numberRE = /^(-?[0-9.]+)$/i;
|
|
103
103
|
const unitOnlyRE = /^(px)$/i;
|
|
104
104
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as colors } from './preset-mini.65ac75be.mjs';
|
|
2
|
-
import { O as transformBase, P as boxShadowsBase, Q as ringBase } from './preset-mini.
|
|
3
|
-
import './preset-mini.
|
|
2
|
+
import { O as transformBase, P as boxShadowsBase, Q as ringBase } from './preset-mini.489445bc.mjs';
|
|
3
|
+
import './preset-mini.690517b1.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
|
|
6
6
|
const fontFamily = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { escapeRegExp } from '@unocss/core';
|
|
2
|
-
import { q as getBracket } from './preset-mini.
|
|
2
|
+
import { q as getBracket } from './preset-mini.690517b1.mjs';
|
|
3
3
|
|
|
4
4
|
const variantMatcher = (name, handler) => {
|
|
5
5
|
const re = new RegExp(`^${escapeRegExp(name)}[:-]`);
|
|
@@ -64,4 +64,4 @@ const variantGetParameter = (name, matcher, separators) => {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
export {
|
|
67
|
+
export { variantGetBracket as a, variantParentMatcher as b, variantMatcher as c, variantGetParameter as v };
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as handler, l as resolveBreakpoints, q as getBracket, C as CONTROL_MINI_NO_NEGATIVE, s as getComponent } from './preset-mini.690517b1.mjs';
|
|
2
2
|
import { escapeRegExp, warnOnce, escapeSelector } from '@unocss/core';
|
|
3
|
-
import { v as
|
|
3
|
+
import { v as variantGetParameter, a as variantGetBracket, b as variantParentMatcher, c as variantMatcher } from './preset-mini.810922e5.mjs';
|
|
4
|
+
|
|
5
|
+
const variantAria = {
|
|
6
|
+
name: "aria",
|
|
7
|
+
match(matcher, { theme }) {
|
|
8
|
+
const variant = variantGetParameter("aria", matcher, [":", "-"]);
|
|
9
|
+
if (variant) {
|
|
10
|
+
const [match, rest] = variant;
|
|
11
|
+
const aria = handler.bracket(match) ?? theme.aria?.[match] ?? "";
|
|
12
|
+
if (aria) {
|
|
13
|
+
return {
|
|
14
|
+
matcher: rest,
|
|
15
|
+
selector: (s) => `${s}[aria-${aria}]`
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
4
21
|
|
|
5
22
|
const regexCache = {};
|
|
6
23
|
const calcMaxWidthBySize = (size) => {
|
|
@@ -96,6 +113,23 @@ const variantCombinators = [
|
|
|
96
113
|
scopeMatcher("siblings", "~")
|
|
97
114
|
];
|
|
98
115
|
|
|
116
|
+
const variantDataAttribute = {
|
|
117
|
+
name: "data",
|
|
118
|
+
match(matcher, { theme }) {
|
|
119
|
+
const variant = variantGetParameter("data", matcher, [":", "-"]);
|
|
120
|
+
if (variant) {
|
|
121
|
+
const [match, rest] = variant;
|
|
122
|
+
const dataAttribute = handler.bracket(match) ?? theme.data?.[match] ?? "";
|
|
123
|
+
if (dataAttribute) {
|
|
124
|
+
return {
|
|
125
|
+
matcher: rest,
|
|
126
|
+
selector: (s) => `${s}[data-${dataAttribute}]`
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
99
133
|
const variantPrint = variantParentMatcher("print", "@media print");
|
|
100
134
|
const variantCustomMedia = {
|
|
101
135
|
name: "media",
|
|
@@ -532,6 +566,8 @@ const partClasses = {
|
|
|
532
566
|
};
|
|
533
567
|
|
|
534
568
|
const variants = (options) => [
|
|
569
|
+
variantAria,
|
|
570
|
+
variantDataAttribute,
|
|
535
571
|
variantCssLayer,
|
|
536
572
|
variantSelector,
|
|
537
573
|
variantInternalLayer,
|
|
@@ -552,4 +588,4 @@ const variants = (options) => [
|
|
|
552
588
|
variantVariables
|
|
553
589
|
];
|
|
554
590
|
|
|
555
|
-
export {
|
|
591
|
+
export { variantAria as a, variantBreakpoints as b, calcMaxWidthBySize as c, variantCombinators as d, variantDataAttribute as e, variantPrint as f, variantCustomMedia as g, variantSupports as h, variantColorsMediaOrClass as i, variantLanguageDirections as j, variantSelector as k, variantCssLayer as l, variantInternalLayer as m, variantScope as n, variantVariables as o, variantPseudoClassesAndElements as p, variantPseudoClassFunctions as q, variantTaggedPseudoClasses as r, partClasses as s, variantImportant as t, variantNegative as u, variants as v };
|
|
@@ -100,7 +100,7 @@ const globalKeywords = [
|
|
|
100
100
|
"unset"
|
|
101
101
|
];
|
|
102
102
|
|
|
103
|
-
const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc
|
|
103
|
+
const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|%|r?em|ex|ch|ic|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i;
|
|
104
104
|
const numberRE = /^(-?[0-9.]+)$/i;
|
|
105
105
|
const unitOnlyRE = /^(px)$/i;
|
|
106
106
|
|
package/dist/theme.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const colors = require('./shared/preset-mini.30606736.cjs');
|
|
6
|
-
const _default = require('./shared/preset-mini.
|
|
7
|
-
require('./shared/preset-mini.
|
|
8
|
-
require('./shared/preset-mini.
|
|
6
|
+
const _default = require('./shared/preset-mini.5d486e77.cjs');
|
|
7
|
+
require('./shared/preset-mini.09ec9c56.cjs');
|
|
8
|
+
require('./shared/preset-mini.b1936363.cjs');
|
|
9
9
|
require('@unocss/core');
|
|
10
10
|
|
|
11
11
|
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as colors } from './colors-
|
|
2
|
-
export { t as theme } from './default-
|
|
3
|
-
import { T as Theme } from './types-
|
|
4
|
-
export { T as Theme, a as ThemeAnimation } from './types-
|
|
1
|
+
export { c as colors } from './colors-09429298.js';
|
|
2
|
+
export { t as theme } from './default-d1eb2175.js';
|
|
3
|
+
import { T as Theme } from './types-486d85a1.js';
|
|
4
|
+
export { T as Theme, a as ThemeAnimation } from './types-486d85a1.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { c as colors } from './shared/preset-mini.65ac75be.mjs';
|
|
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 './shared/preset-mini.
|
|
3
|
-
import './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
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 './shared/preset-mini.809a4128.mjs';
|
|
3
|
+
import './shared/preset-mini.489445bc.mjs';
|
|
4
|
+
import './shared/preset-mini.690517b1.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
@@ -37,6 +37,8 @@ interface Theme {
|
|
|
37
37
|
lineWidth?: Record<string, string>;
|
|
38
38
|
spacing?: Record<string, string>;
|
|
39
39
|
duration?: Record<string, string>;
|
|
40
|
+
aria?: Record<string, string>;
|
|
41
|
+
data?: Record<string, string>;
|
|
40
42
|
blur?: Record<string, string>;
|
|
41
43
|
dropShadow?: Record<string, string | string[]>;
|
|
42
44
|
easing?: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, Rule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './types-
|
|
2
|
+
import { T as Theme } from './types-486d85a1.js';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
package/dist/utils.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const colors = require('./shared/preset-mini.
|
|
6
|
-
const variants = require('./shared/preset-mini.
|
|
5
|
+
const colors = require('./shared/preset-mini.b1936363.cjs');
|
|
6
|
+
const variants = require('./shared/preset-mini.14f57094.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
|
|
9
9
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-
|
|
4
|
-
import './types-
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, g as getBracket, e as getComponent, f as getComponents, h as hasParseableColor, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints } from './utilities-c2105bec.js';
|
|
4
|
+
import './types-486d85a1.js';
|
|
5
5
|
|
|
6
6
|
declare function hex2rgba(hex?: string): RGBAColorValue | undefined;
|
|
7
7
|
declare function parseCssColor(str?: string): CSSColorValue | undefined;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, s as getComponent, y as getComponents, g as globalKeywords, v as h, h as handler, a as hasParseableColor, t as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, u as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, w as valueHandlers, x as xyzMap } from './shared/preset-mini.
|
|
2
|
-
export {
|
|
1
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, f as colorOpacityToString, c as colorResolver, e as colorToString, i as colorableShadows, b as cornerMap, d as directionMap, o as directionSize, q as getBracket, s as getComponent, y as getComponents, g as globalKeywords, v as h, h as handler, a as hasParseableColor, t as hex2rgba, j as insetMap, m as makeGlobalStaticRules, p as parseColor, u as parseCssColor, k as positionMap, l as resolveBreakpoints, r as resolveVerticalBreakpoints, w as valueHandlers, x as xyzMap } from './shared/preset-mini.690517b1.mjs';
|
|
2
|
+
export { a as variantGetBracket, v as variantGetParameter, c as variantMatcher, b as variantParentMatcher } from './shared/preset-mini.810922e5.mjs';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -2,20 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const _default = require('./shared/preset-mini.
|
|
6
|
-
require('./shared/preset-mini.
|
|
5
|
+
const _default = require('./shared/preset-mini.134e02be.cjs');
|
|
6
|
+
require('./shared/preset-mini.b1936363.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
|
-
require('./shared/preset-mini.
|
|
8
|
+
require('./shared/preset-mini.14f57094.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
exports.calcMaxWidthBySize = _default.calcMaxWidthBySize;
|
|
13
13
|
exports.partClasses = _default.partClasses;
|
|
14
|
+
exports.variantAria = _default.variantAria;
|
|
14
15
|
exports.variantBreakpoints = _default.variantBreakpoints;
|
|
15
16
|
exports.variantColorsMediaOrClass = _default.variantColorsMediaOrClass;
|
|
16
17
|
exports.variantCombinators = _default.variantCombinators;
|
|
17
18
|
exports.variantCssLayer = _default.variantCssLayer;
|
|
18
19
|
exports.variantCustomMedia = _default.variantCustomMedia;
|
|
20
|
+
exports.variantDataAttribute = _default.variantDataAttribute;
|
|
19
21
|
exports.variantImportant = _default.variantImportant;
|
|
20
22
|
exports.variantInternalLayer = _default.variantInternalLayer;
|
|
21
23
|
exports.variantLanguageDirections = _default.variantLanguageDirections;
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { VariantObject, Variant } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './types-486d85a1.js';
|
|
3
3
|
import { PresetMiniOptions } from './index.js';
|
|
4
|
-
import './colors-
|
|
5
|
-
import './default-
|
|
6
|
-
import './utilities-
|
|
4
|
+
import './colors-09429298.js';
|
|
5
|
+
import './default-d1eb2175.js';
|
|
6
|
+
import './utilities-c2105bec.js';
|
|
7
|
+
|
|
8
|
+
declare const variantAria: VariantObject;
|
|
7
9
|
|
|
8
10
|
declare const calcMaxWidthBySize: (size: string) => string;
|
|
9
11
|
declare const variantBreakpoints: Variant<Theme>;
|
|
10
12
|
|
|
11
13
|
declare const variantCombinators: Variant[];
|
|
12
14
|
|
|
15
|
+
declare const variantDataAttribute: VariantObject;
|
|
16
|
+
|
|
13
17
|
declare const variantPrint: Variant;
|
|
14
18
|
declare const variantCustomMedia: VariantObject;
|
|
15
19
|
|
|
@@ -36,4 +40,4 @@ declare const variantImportant: Variant;
|
|
|
36
40
|
|
|
37
41
|
declare const variantNegative: Variant;
|
|
38
42
|
|
|
39
|
-
export { calcMaxWidthBySize, partClasses, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
|
43
|
+
export { calcMaxWidthBySize, partClasses, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedPseudoClasses, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize,
|
|
2
|
-
import './shared/preset-mini.
|
|
1
|
+
export { c as calcMaxWidthBySize, s as partClasses, a as variantAria, b as variantBreakpoints, i as variantColorsMediaOrClass, d as variantCombinators, l as variantCssLayer, g as variantCustomMedia, e as variantDataAttribute, t as variantImportant, m as variantInternalLayer, j as variantLanguageDirections, u as variantNegative, f as variantPrint, q as variantPseudoClassFunctions, p as variantPseudoClassesAndElements, n as variantScope, k as variantSelector, h as variantSupports, r as variantTaggedPseudoClasses, o as variantVariables, v as variants } from './shared/preset-mini.a626625a.mjs';
|
|
2
|
+
import './shared/preset-mini.690517b1.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
|
-
import './shared/preset-mini.
|
|
4
|
+
import './shared/preset-mini.810922e5.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
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.46.
|
|
64
|
+
"@unocss/core": "0.46.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "unbuild",
|