@unocss/preset-mini 0.58.5 → 0.58.7
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.d.cts +1 -1
- package/dist/colors.d.mts +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +9 -4
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.mjs +6 -6
- package/dist/rules.cjs +3 -3
- package/dist/rules.d.cts +1 -1
- package/dist/rules.d.mts +1 -1
- package/dist/rules.d.ts +1 -1
- package/dist/rules.mjs +3 -3
- package/dist/shared/{preset-mini.0UJFjS_1.mjs → preset-mini.BDqq0hCv.mjs} +4 -4
- package/dist/shared/{preset-mini.nzD7Hw_0.d.mts → preset-mini.BP7cviYW.d.cts} +3 -2
- package/dist/shared/{preset-mini.eBWIK6gx.mjs → preset-mini.BQqGYFkE.mjs} +23 -4
- package/dist/shared/{preset-mini.CoNueTEa.mjs → preset-mini.BXHWLQ5I.mjs} +31 -17
- package/dist/shared/{preset-mini.0CcynBZx.mjs → preset-mini.CV-SKsbk.mjs} +24 -8
- package/dist/shared/{preset-mini.20fUBpHS.d.cts → preset-mini.CdxIVkIz.d.mts} +3 -2
- package/dist/shared/{preset-mini.UhMMbd34.cjs → preset-mini.CdzxbzG1.cjs} +25 -7
- package/dist/shared/{preset-mini.YxT4AwuI.d.cts → preset-mini.Cu-XLFZP.d.mts} +1 -1
- package/dist/shared/{preset-mini.fgwIVvur.cjs → preset-mini.D6RG4aSN.cjs} +1 -1
- package/dist/shared/{preset-mini.gVNz4b9u.d.ts → preset-mini.DIb57JCK.d.ts} +1 -1
- package/dist/shared/{preset-mini.8w2rXvMk.d.ts → preset-mini.Dh95saIh.d.ts} +3 -2
- package/dist/shared/{preset-mini.zC_vZg74.mjs → preset-mini.HNDEq_D9.mjs} +1 -1
- package/dist/shared/{preset-mini.-3Qybdh5.cjs → preset-mini.aMVgvy_A.cjs} +4 -4
- package/dist/shared/{preset-mini.vMrmsD3H.d.mts → preset-mini.bn9iWcrm.d.cts} +1 -1
- package/dist/shared/{preset-mini.qKuB9vcd.cjs → preset-mini.nvs6mIBT.cjs} +30 -16
- package/dist/shared/{preset-mini.e29ECnbA.cjs → preset-mini.vGRJlUxE.cjs} +22 -2
- package/dist/theme.cjs +3 -3
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.d.ts +3 -3
- package/dist/theme.mjs +3 -3
- package/dist/utils.cjs +11 -5
- package/dist/utils.d.cts +4 -3
- package/dist/utils.d.mts +4 -3
- package/dist/utils.d.ts +4 -3
- package/dist/utils.mjs +1 -1
- package/dist/variants.cjs +3 -2
- package/dist/variants.d.cts +5 -4
- package/dist/variants.d.mts +5 -4
- package/dist/variants.d.ts +5 -4
- package/dist/variants.mjs +2 -2
- package/package.json +4 -4
- /package/dist/shared/{preset-mini.hpPpX7ws.d.cts → preset-mini.P5Rzuhf5.d.cts} +0 -0
- /package/dist/shared/{preset-mini.hpPpX7ws.d.mts → preset-mini.P5Rzuhf5.d.mts} +0 -0
- /package/dist/shared/{preset-mini.hpPpX7ws.d.ts → preset-mini.P5Rzuhf5.d.ts} +0 -0
package/dist/colors.d.cts
CHANGED
package/dist/colors.d.mts
CHANGED
package/dist/colors.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
const extractorArbitraryVariants = require('@unocss/extractor-arbitrary-variants');
|
|
7
|
-
const utilities = require('./shared/preset-mini.
|
|
8
|
-
const _default = require('./shared/preset-mini.
|
|
9
|
-
const _default$1 = require('./shared/preset-mini.
|
|
10
|
-
const _default$2 = require('./shared/preset-mini.
|
|
7
|
+
const utilities = require('./shared/preset-mini.CdzxbzG1.cjs');
|
|
8
|
+
const _default = require('./shared/preset-mini.D6RG4aSN.cjs');
|
|
9
|
+
const _default$1 = require('./shared/preset-mini.nvs6mIBT.cjs');
|
|
10
|
+
const _default$2 = require('./shared/preset-mini.vGRJlUxE.cjs');
|
|
11
11
|
const colors = require('./colors.cjs');
|
|
12
12
|
require('@unocss/rule-utils');
|
|
13
|
-
require('./shared/preset-mini
|
|
13
|
+
require('./shared/preset-mini.aMVgvy_A.cjs');
|
|
14
14
|
|
|
15
15
|
const preflights = [
|
|
16
16
|
{
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.bn9iWcrm.cjs';
|
|
6
6
|
export { colors } from './colors.cjs';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.BP7cviYW.cjs';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -62,6 +62,11 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
62
62
|
*/
|
|
63
63
|
arbitraryVariants?: boolean;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* The basic preset for UnoCSS, with only the most essential utilities.
|
|
67
|
+
*
|
|
68
|
+
* @see https://unocss.dev/presets/mini
|
|
69
|
+
*/
|
|
65
70
|
declare const presetMini: _unocss_core.PresetFactory<Theme, PresetMiniOptions>;
|
|
66
71
|
|
|
67
72
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.Cu-XLFZP.mjs';
|
|
6
6
|
export { colors } from './colors.mjs';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.CdxIVkIz.mjs';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -62,6 +62,11 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
62
62
|
*/
|
|
63
63
|
arbitraryVariants?: boolean;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* The basic preset for UnoCSS, with only the most essential utilities.
|
|
67
|
+
*
|
|
68
|
+
* @see https://unocss.dev/presets/mini
|
|
69
|
+
*/
|
|
65
70
|
declare const presetMini: _unocss_core.PresetFactory<Theme, PresetMiniOptions>;
|
|
66
71
|
|
|
67
72
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
import { Preflight, PresetOptions, Postprocessor } from '@unocss/core';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { a as ThemeAnimation } from './shared/preset-mini.
|
|
5
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.js';
|
|
4
|
+
export { a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.js';
|
|
5
|
+
export { t as theme } from './shared/preset-mini.DIb57JCK.js';
|
|
6
6
|
export { colors } from './colors.js';
|
|
7
|
-
export { p as parseColor } from './shared/preset-mini.
|
|
7
|
+
export { p as parseColor } from './shared/preset-mini.Dh95saIh.js';
|
|
8
8
|
|
|
9
9
|
declare const preflights: Preflight<Theme>[];
|
|
10
10
|
|
|
@@ -62,6 +62,11 @@ interface PresetMiniOptions extends PresetOptions {
|
|
|
62
62
|
*/
|
|
63
63
|
arbitraryVariants?: boolean;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* The basic preset for UnoCSS, with only the most essential utilities.
|
|
67
|
+
*
|
|
68
|
+
* @see https://unocss.dev/presets/mini
|
|
69
|
+
*/
|
|
65
70
|
declare const presetMini: _unocss_core.PresetFactory<Theme, PresetMiniOptions>;
|
|
66
71
|
|
|
67
72
|
declare function VarPrefixPostprocessor(prefix: string): Postprocessor | undefined;
|
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 {
|
|
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.CV-SKsbk.mjs';
|
|
4
|
+
export { j as parseColor } from './shared/preset-mini.CV-SKsbk.mjs';
|
|
5
|
+
import { t as theme } from './shared/preset-mini.HNDEq_D9.mjs';
|
|
6
|
+
import { r as rules } from './shared/preset-mini.BXHWLQ5I.mjs';
|
|
7
|
+
import { h as variants } from './shared/preset-mini.BQqGYFkE.mjs';
|
|
8
8
|
export { colors } from './colors.mjs';
|
|
9
9
|
import '@unocss/rule-utils';
|
|
10
|
-
import './shared/preset-mini.
|
|
10
|
+
import './shared/preset-mini.BDqq0hCv.mjs';
|
|
11
11
|
|
|
12
12
|
const preflights = [
|
|
13
13
|
{
|
package/dist/rules.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const _default = require('./shared/preset-mini.
|
|
4
|
-
const transform = require('./shared/preset-mini
|
|
5
|
-
require('./shared/preset-mini.
|
|
3
|
+
const _default = require('./shared/preset-mini.nvs6mIBT.cjs');
|
|
4
|
+
const transform = require('./shared/preset-mini.aMVgvy_A.cjs');
|
|
5
|
+
require('./shared/preset-mini.CdzxbzG1.cjs');
|
|
6
6
|
require('@unocss/core');
|
|
7
7
|
require('@unocss/rule-utils');
|
|
8
8
|
|
package/dist/rules.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule, CSSEntries, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-mini.
|
|
2
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
3
3
|
|
|
4
4
|
declare const verticalAligns: Rule[];
|
|
5
5
|
declare const textAligns: Rule[];
|
package/dist/rules.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule, CSSEntries, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './shared/preset-mini.
|
|
2
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
3
3
|
|
|
4
4
|
declare const verticalAligns: Rule[];
|
|
5
5
|
declare const textAligns: Rule[];
|
package/dist/rules.d.ts
CHANGED
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.BXHWLQ5I.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.BDqq0hCv.mjs';
|
|
3
|
+
import './shared/preset-mini.CV-SKsbk.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
5
|
import '@unocss/rule-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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.CV-SKsbk.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"];
|
|
@@ -281,7 +281,7 @@ function handleTranslate([, d, b], { theme }) {
|
|
|
281
281
|
const v = theme.spacing?.[b] ?? h.bracket.cssvar.fraction.rem(b);
|
|
282
282
|
if (v != null) {
|
|
283
283
|
return [
|
|
284
|
-
...
|
|
284
|
+
...transformXYZ(d, v, "translate"),
|
|
285
285
|
["transform", transformCpu]
|
|
286
286
|
];
|
|
287
287
|
}
|
|
@@ -290,7 +290,7 @@ function handleScale([, d, b]) {
|
|
|
290
290
|
const v = h.bracket.cssvar.fraction.percent(b);
|
|
291
291
|
if (v != null) {
|
|
292
292
|
return [
|
|
293
|
-
...
|
|
293
|
+
...transformXYZ(d, v, "scale"),
|
|
294
294
|
["transform", transformCpu]
|
|
295
295
|
];
|
|
296
296
|
}
|
|
@@ -319,7 +319,7 @@ function handleSkew([, d, b]) {
|
|
|
319
319
|
const v = h.bracket.cssvar.degree(b);
|
|
320
320
|
if (v != null) {
|
|
321
321
|
return [
|
|
322
|
-
...
|
|
322
|
+
...transformXYZ(d, v, "skew"),
|
|
323
323
|
["transform", transformCpu]
|
|
324
324
|
];
|
|
325
325
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './preset-mini.
|
|
2
|
+
import { T as Theme } from './preset-mini.P5Rzuhf5.cjs';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
|
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
|
|
|
70
70
|
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
71
71
|
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
72
72
|
declare function isSize(str: string): boolean;
|
|
73
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
73
74
|
|
|
74
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
|
|
75
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { variantGetParameter, variantGetBracket, variantMatcher, variantParentMatcher, getBracket, getStringComponent } from '@unocss/rule-utils';
|
|
1
|
+
import { e as h, r as resolveBreakpoints, C as CONTROL_MINI_NO_NEGATIVE, b as cssMathFnRE } from './preset-mini.CV-SKsbk.mjs';
|
|
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
|
|
|
5
5
|
const variantAria = {
|
|
@@ -321,6 +321,23 @@ const variantVariables = {
|
|
|
321
321
|
},
|
|
322
322
|
multiPass: true
|
|
323
323
|
};
|
|
324
|
+
const variantTheme = {
|
|
325
|
+
name: "theme-variables",
|
|
326
|
+
match(matcher, ctx) {
|
|
327
|
+
if (!hasThemeFn(matcher))
|
|
328
|
+
return;
|
|
329
|
+
return {
|
|
330
|
+
matcher,
|
|
331
|
+
handle(input, next) {
|
|
332
|
+
return next({
|
|
333
|
+
...input,
|
|
334
|
+
// entries: [ [ '--css-spacing', '28px' ] ],
|
|
335
|
+
entries: JSON.parse(transformThemeFn(JSON.stringify(input.entries), ctx.theme))
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
};
|
|
324
341
|
|
|
325
342
|
const anchoredNumberRE = /^-?[0-9.]+(?:[a-z]+|%)?$/;
|
|
326
343
|
const numberRE = /-?[0-9.]+(?:[a-z]+|%)?/;
|
|
@@ -500,6 +517,7 @@ const PseudoClasses = Object.fromEntries([
|
|
|
500
517
|
"active",
|
|
501
518
|
"enabled",
|
|
502
519
|
"disabled",
|
|
520
|
+
"popover-open",
|
|
503
521
|
// tree-structural
|
|
504
522
|
"root",
|
|
505
523
|
"empty",
|
|
@@ -744,8 +762,9 @@ function variants(options) {
|
|
|
744
762
|
variantScope,
|
|
745
763
|
variantContainerQuery,
|
|
746
764
|
variantVariables,
|
|
747
|
-
...variantTaggedDataAttributes
|
|
765
|
+
...variantTaggedDataAttributes,
|
|
766
|
+
variantTheme
|
|
748
767
|
];
|
|
749
768
|
}
|
|
750
769
|
|
|
751
|
-
export { variantBreakpoints as a, variantCombinators as b, calcMaxWidthBySize as c, variantContainerQuery as d, variantColorsMediaOrClass as e, variantDataAttribute as f, variantTaggedDataAttributes as g, variants as h, variantLanguageDirections as i, variantImportant as j, variantPrint as k, variantCustomMedia as l, variantSelector as m, variantCssLayer as n, variantInternalLayer as o, variantScope as p, variantVariables as q,
|
|
770
|
+
export { variantBreakpoints as a, variantCombinators as b, calcMaxWidthBySize as c, variantContainerQuery as d, variantColorsMediaOrClass as e, variantDataAttribute as f, variantTaggedDataAttributes as g, variants as h, variantLanguageDirections as i, variantImportant as j, variantPrint as k, variantCustomMedia as l, variantSelector as m, variantCssLayer as n, variantInternalLayer as o, variantScope as p, variantVariables as q, variantTheme as r, variantNegative as s, variantPseudoClassesAndElements as t, variantPseudoClassFunctions as u, variantAria as v, variantTaggedPseudoClasses as w, variantPartClasses as x, variantSupports as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as globalKeywords,
|
|
2
|
-
import { colorToString, colorOpacityToString
|
|
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.CV-SKsbk.mjs';
|
|
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.BDqq0hCv.mjs';
|
|
5
5
|
|
|
6
6
|
const verticalAlignAlias = {
|
|
7
7
|
"mid": "middle",
|
|
@@ -181,8 +181,9 @@ const opacity = [
|
|
|
181
181
|
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: h.bracket.percent.cssvar(d) })]
|
|
182
182
|
];
|
|
183
183
|
const bgUrlRE = /^\[url\(.+\)\]$/;
|
|
184
|
-
const bgLengthRE = /^\[length:.+\]$/;
|
|
184
|
+
const bgLengthRE = /^\[(length|size):.+\]$/;
|
|
185
185
|
const bgPositionRE = /^\[position:.+\]$/;
|
|
186
|
+
const bgGradientRE = /^\[(linear|conic|radial)-gradient\(.+\)\]$/;
|
|
186
187
|
const bgColors = [
|
|
187
188
|
[/^bg-(.+)$/, (...args) => {
|
|
188
189
|
const d = args[0][1];
|
|
@@ -192,8 +193,10 @@ const bgColors = [
|
|
|
192
193
|
return { "background-size": h.bracketOfLength(d).split(" ").map((e) => h.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
193
194
|
if ((isSize(d) || bgPositionRE.test(d)) && h.bracketOfPosition(d) != null)
|
|
194
195
|
return { "background-position": h.bracketOfPosition(d).split(" ").map((e) => h.position.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
196
|
+
if (bgGradientRE.test(d))
|
|
197
|
+
return { "background-image": h.bracket(d) };
|
|
195
198
|
return colorResolver("background-color", "bg", "backgroundColor")(...args);
|
|
196
|
-
}],
|
|
199
|
+
}, { autocomplete: "bg-$colors" }],
|
|
197
200
|
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
198
201
|
];
|
|
199
202
|
const colorScheme = [
|
|
@@ -371,6 +374,21 @@ const fonts = [
|
|
|
371
374
|
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || h.bracket.cssvar.global.rem(s) }),
|
|
372
375
|
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
373
376
|
],
|
|
377
|
+
// stretch
|
|
378
|
+
["font-stretch-normal", { "font-stretch": "normal" }],
|
|
379
|
+
["font-stretch-ultra-condensed", { "font-stretch": "ultra-condensed" }],
|
|
380
|
+
["font-stretch-extra-condensed", { "font-stretch": "extra-condensed" }],
|
|
381
|
+
["font-stretch-condensed", { "font-stretch": "condensed" }],
|
|
382
|
+
["font-stretch-semi-condensed", { "font-stretch": "semi-condensed" }],
|
|
383
|
+
["font-stretch-semi-expanded", { "font-stretch": "semi-expanded" }],
|
|
384
|
+
["font-stretch-expanded", { "font-stretch": "expanded" }],
|
|
385
|
+
["font-stretch-extra-expanded", { "font-stretch": "extra-expanded" }],
|
|
386
|
+
["font-stretch-ultra-expanded", { "font-stretch": "ultra-expanded" }],
|
|
387
|
+
[
|
|
388
|
+
/^font-stretch-(.+)$/,
|
|
389
|
+
([, s]) => ({ "font-stretch": h.bracket.cssvar.fraction.global(s) }),
|
|
390
|
+
{ autocomplete: "font-stretch-<percentage>" }
|
|
391
|
+
],
|
|
374
392
|
// family
|
|
375
393
|
[
|
|
376
394
|
/^font-(.+)$/,
|
|
@@ -516,22 +534,22 @@ const grids = [
|
|
|
516
534
|
const v = h.bracket.number(s);
|
|
517
535
|
if (v != null)
|
|
518
536
|
return { [`grid-${rowCol(c)}`]: `span ${v}/span ${v}` };
|
|
519
|
-
}, { autocomplete:
|
|
537
|
+
}, { autocomplete: "(grid-row|grid-col|row|col)-span-<num>" }],
|
|
520
538
|
// starts & ends
|
|
521
539
|
[/^(?:grid-)?(row|col)-start-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: h.bracket.cssvar(v) ?? v })],
|
|
522
|
-
[/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: h.bracket.cssvar(v) ?? v }), { autocomplete:
|
|
540
|
+
[/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: h.bracket.cssvar(v) ?? v }), { autocomplete: "(grid-row|grid-col|row|col)-(start|end)-<num>" }],
|
|
523
541
|
// auto flows
|
|
524
|
-
[/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(c, theme, v) }), { autocomplete:
|
|
542
|
+
[/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(c, theme, v) }), { autocomplete: "(grid-auto|auto)-(rows|cols)-<num>" }],
|
|
525
543
|
// grid-auto-flow, auto-flow: uno
|
|
526
544
|
// grid-flow: wind
|
|
527
545
|
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/, ([, v]) => ({ "grid-auto-flow": h.bracket.cssvar(v) })],
|
|
528
546
|
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/, ([, v]) => ({ "grid-auto-flow": rowCol(v).replace("-", " ") }), { autocomplete: ["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"] }],
|
|
529
547
|
// templates
|
|
530
|
-
[/^grid-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({
|
|
548
|
+
[/^(?:grid-)?(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({
|
|
531
549
|
[`grid-template-${rowCol(c)}`]: theme[`gridTemplate${rowColTheme(c)}`]?.[v] ?? h.bracket.cssvar(v)
|
|
532
550
|
})],
|
|
533
|
-
[/^grid-(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
|
|
534
|
-
[/^grid-(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` }), { autocomplete:
|
|
551
|
+
[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
|
|
552
|
+
[/^(?:grid-)?(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` }), { autocomplete: "(grid-rows|grid-cols|rows|cols)-<num>" }],
|
|
535
553
|
// areas
|
|
536
554
|
[/^grid-area(s)?-(.+)$/, ([, s, v]) => {
|
|
537
555
|
if (s != null)
|
|
@@ -814,17 +832,13 @@ const cssVariables = [
|
|
|
814
832
|
}]
|
|
815
833
|
];
|
|
816
834
|
const cssProperty = [
|
|
817
|
-
[/^\[(.*)\]$/, ([_, body]
|
|
835
|
+
[/^\[(.*)\]$/, ([_, body]) => {
|
|
818
836
|
if (!body.includes(":"))
|
|
819
837
|
return;
|
|
820
838
|
const [prop, ...rest] = body.split(":");
|
|
821
839
|
const value = rest.join(":");
|
|
822
840
|
if (!isURI(body) && /^[a-z-]+$/.test(prop) && isValidCSSBody(value)) {
|
|
823
|
-
|
|
824
|
-
if (hasThemeFn(value))
|
|
825
|
-
parsed = transformThemeFn(value, theme);
|
|
826
|
-
if (!parsed || parsed === value)
|
|
827
|
-
parsed = h.bracket(`[${value}]`);
|
|
841
|
+
const parsed = h.bracket(`[${value}]`);
|
|
828
842
|
if (parsed)
|
|
829
843
|
return { [prop]: parsed };
|
|
830
844
|
}
|
|
@@ -70,6 +70,7 @@ const xyzMap = {
|
|
|
70
70
|
"z": ["-z"],
|
|
71
71
|
"": ["-x", "-y"]
|
|
72
72
|
};
|
|
73
|
+
const xyzArray = ["x", "y", "z"];
|
|
73
74
|
const basePositionMap = [
|
|
74
75
|
"top",
|
|
75
76
|
"top center",
|
|
@@ -111,7 +112,8 @@ const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
|
|
|
111
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;
|
|
112
113
|
const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
|
|
113
114
|
const unitOnlyRE = /^(px)$/i;
|
|
114
|
-
const bracketTypeRe = /^\[(color|length|position|quoted|string):/i;
|
|
115
|
+
const bracketTypeRe = /^\[(color|length|size|position|quoted|string):/i;
|
|
116
|
+
const splitComma = /,(?![^()]*\))/g;
|
|
115
117
|
|
|
116
118
|
const cssProps = [
|
|
117
119
|
// basic props
|
|
@@ -413,9 +415,9 @@ function parseColor(body, theme, key) {
|
|
|
413
415
|
const bracketOrMain = bracket || main;
|
|
414
416
|
if (h.numberWithUnit(bracketOrMain))
|
|
415
417
|
return;
|
|
416
|
-
if (/^#[\da-fA-F]
|
|
418
|
+
if (/^#[\da-fA-F]+$/.test(bracketOrMain))
|
|
417
419
|
color = bracketOrMain;
|
|
418
|
-
else if (/^hex-[\da-fA-F]
|
|
420
|
+
else if (/^hex-[\da-fA-F]+$/.test(bracketOrMain))
|
|
419
421
|
color = `#${bracketOrMain.slice(4)}`;
|
|
420
422
|
else if (main.startsWith("$"))
|
|
421
423
|
color = h.cssvar(main);
|
|
@@ -496,15 +498,23 @@ function colorableShadows(shadows, colorVar) {
|
|
|
496
498
|
const components = getStringComponents(shadows[i], " ", 6);
|
|
497
499
|
if (!components || components.length < 3)
|
|
498
500
|
return shadows;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
+
let isInset = false;
|
|
502
|
+
const pos = components.indexOf("inset");
|
|
503
|
+
if (pos !== -1) {
|
|
504
|
+
components.splice(pos, 1);
|
|
505
|
+
isInset = true;
|
|
506
|
+
}
|
|
501
507
|
let colorVarValue = "";
|
|
502
|
-
if (parseCssColor(components.at(
|
|
508
|
+
if (parseCssColor(components.at(0))) {
|
|
509
|
+
const color = parseCssColor(components.shift());
|
|
510
|
+
if (color)
|
|
511
|
+
colorVarValue = `, ${colorToString(color)}`;
|
|
512
|
+
} else if (parseCssColor(components.at(-1))) {
|
|
503
513
|
const color = parseCssColor(components.pop());
|
|
504
514
|
if (color)
|
|
505
515
|
colorVarValue = `, ${colorToString(color)}`;
|
|
506
516
|
}
|
|
507
|
-
colored.push(`${components.join(" ")} var(${colorVar}${colorVarValue})`);
|
|
517
|
+
colored.push(`${isInset ? "inset " : ""}${components.join(" ")} var(${colorVar}${colorVarValue})`);
|
|
508
518
|
}
|
|
509
519
|
return colored;
|
|
510
520
|
}
|
|
@@ -533,5 +543,11 @@ function isSize(str) {
|
|
|
533
543
|
str = str.slice(1, -1);
|
|
534
544
|
return cssMathFnRE.test(str) || numberWithUnitRE.test(str);
|
|
535
545
|
}
|
|
546
|
+
function transformXYZ(d, v, name) {
|
|
547
|
+
const values = v.split(splitComma);
|
|
548
|
+
if (d || !d && values.length === 1)
|
|
549
|
+
return xyzMap[d].map((i) => [`--un-${name}${i}`, v]);
|
|
550
|
+
return values.map((v2, i) => [`--un-${name}-${xyzArray[i]}`, v2]);
|
|
551
|
+
}
|
|
536
552
|
|
|
537
|
-
export { CONTROL_MINI_NO_NEGATIVE as C,
|
|
553
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, xyzArray as a, cssMathFnRE as b, cornerMap as c, directionMap as d, h as e, directionSize as f, globalKeywords as g, handler as h, insetMap as i, parseColor as j, colorResolver as k, colorableShadows as l, hasParseableColor as m, resolveVerticalBreakpoints as n, makeGlobalStaticRules as o, positionMap as p, isCSSMathFn as q, resolveBreakpoints as r, splitShorthand as s, isSize as t, transformXYZ as u, valueHandlers as v, xyzMap as x };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './preset-mini.
|
|
2
|
+
import { T as Theme } from './preset-mini.P5Rzuhf5.mjs';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
|
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
|
|
|
70
70
|
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
71
71
|
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
72
72
|
declare function isSize(str: string): boolean;
|
|
73
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
73
74
|
|
|
74
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
|
|
75
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
|
|
@@ -72,6 +72,7 @@ const xyzMap = {
|
|
|
72
72
|
"z": ["-z"],
|
|
73
73
|
"": ["-x", "-y"]
|
|
74
74
|
};
|
|
75
|
+
const xyzArray = ["x", "y", "z"];
|
|
75
76
|
const basePositionMap = [
|
|
76
77
|
"top",
|
|
77
78
|
"top center",
|
|
@@ -113,7 +114,8 @@ const cssMathFnRE = /^(calc|clamp|min|max)\s*\((.+)\)(.*)/;
|
|
|
113
114
|
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;
|
|
114
115
|
const numberRE = /^(-?\d*(?:\.\d+)?)$/i;
|
|
115
116
|
const unitOnlyRE = /^(px)$/i;
|
|
116
|
-
const bracketTypeRe = /^\[(color|length|position|quoted|string):/i;
|
|
117
|
+
const bracketTypeRe = /^\[(color|length|size|position|quoted|string):/i;
|
|
118
|
+
const splitComma = /,(?![^()]*\))/g;
|
|
117
119
|
|
|
118
120
|
const cssProps = [
|
|
119
121
|
// basic props
|
|
@@ -415,9 +417,9 @@ function parseColor(body, theme, key) {
|
|
|
415
417
|
const bracketOrMain = bracket || main;
|
|
416
418
|
if (h.numberWithUnit(bracketOrMain))
|
|
417
419
|
return;
|
|
418
|
-
if (/^#[\da-fA-F]
|
|
420
|
+
if (/^#[\da-fA-F]+$/.test(bracketOrMain))
|
|
419
421
|
color = bracketOrMain;
|
|
420
|
-
else if (/^hex-[\da-fA-F]
|
|
422
|
+
else if (/^hex-[\da-fA-F]+$/.test(bracketOrMain))
|
|
421
423
|
color = `#${bracketOrMain.slice(4)}`;
|
|
422
424
|
else if (main.startsWith("$"))
|
|
423
425
|
color = h.cssvar(main);
|
|
@@ -498,15 +500,23 @@ function colorableShadows(shadows, colorVar) {
|
|
|
498
500
|
const components = ruleUtils.getStringComponents(shadows[i], " ", 6);
|
|
499
501
|
if (!components || components.length < 3)
|
|
500
502
|
return shadows;
|
|
501
|
-
|
|
502
|
-
|
|
503
|
+
let isInset = false;
|
|
504
|
+
const pos = components.indexOf("inset");
|
|
505
|
+
if (pos !== -1) {
|
|
506
|
+
components.splice(pos, 1);
|
|
507
|
+
isInset = true;
|
|
508
|
+
}
|
|
503
509
|
let colorVarValue = "";
|
|
504
|
-
if (ruleUtils.parseCssColor(components.at(
|
|
510
|
+
if (ruleUtils.parseCssColor(components.at(0))) {
|
|
511
|
+
const color = ruleUtils.parseCssColor(components.shift());
|
|
512
|
+
if (color)
|
|
513
|
+
colorVarValue = `, ${ruleUtils.colorToString(color)}`;
|
|
514
|
+
} else if (ruleUtils.parseCssColor(components.at(-1))) {
|
|
505
515
|
const color = ruleUtils.parseCssColor(components.pop());
|
|
506
516
|
if (color)
|
|
507
517
|
colorVarValue = `, ${ruleUtils.colorToString(color)}`;
|
|
508
518
|
}
|
|
509
|
-
colored.push(`${components.join(" ")} var(${colorVar}${colorVarValue})`);
|
|
519
|
+
colored.push(`${isInset ? "inset " : ""}${components.join(" ")} var(${colorVar}${colorVarValue})`);
|
|
510
520
|
}
|
|
511
521
|
return colored;
|
|
512
522
|
}
|
|
@@ -535,6 +545,12 @@ function isSize(str) {
|
|
|
535
545
|
str = str.slice(1, -1);
|
|
536
546
|
return cssMathFnRE.test(str) || numberWithUnitRE.test(str);
|
|
537
547
|
}
|
|
548
|
+
function transformXYZ(d, v, name) {
|
|
549
|
+
const values = v.split(splitComma);
|
|
550
|
+
if (d || !d && values.length === 1)
|
|
551
|
+
return xyzMap[d].map((i) => [`--un-${name}${i}`, v]);
|
|
552
|
+
return values.map((v2, i) => [`--un-${name}-${xyzArray[i]}`, v2]);
|
|
553
|
+
}
|
|
538
554
|
|
|
539
555
|
exports.CONTROL_MINI_NO_NEGATIVE = CONTROL_MINI_NO_NEGATIVE;
|
|
540
556
|
exports.colorResolver = colorResolver;
|
|
@@ -556,5 +572,7 @@ exports.positionMap = positionMap;
|
|
|
556
572
|
exports.resolveBreakpoints = resolveBreakpoints;
|
|
557
573
|
exports.resolveVerticalBreakpoints = resolveVerticalBreakpoints;
|
|
558
574
|
exports.splitShorthand = splitShorthand;
|
|
575
|
+
exports.transformXYZ = transformXYZ;
|
|
559
576
|
exports.valueHandlers = valueHandlers;
|
|
577
|
+
exports.xyzArray = xyzArray;
|
|
560
578
|
exports.xyzMap = xyzMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicMatcher, ParsedColorValue, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
2
|
-
import { T as Theme } from './preset-mini.
|
|
2
|
+
import { T as Theme } from './preset-mini.P5Rzuhf5.js';
|
|
3
3
|
|
|
4
4
|
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
5
5
|
/**
|
|
@@ -70,5 +70,6 @@ declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<The
|
|
|
70
70
|
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
71
71
|
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
72
72
|
declare function isSize(str: string): boolean;
|
|
73
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
73
74
|
|
|
74
|
-
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s };
|
|
75
|
+
export { CONTROL_MINI_NO_NEGATIVE as C, colorableShadows as a, resolveVerticalBreakpoints as b, colorResolver as c, directionSize as d, isSize as e, hasParseableColor as h, isCSSMathFn as i, makeGlobalStaticRules as m, parseColor as p, resolveBreakpoints as r, splitShorthand as s, transformXYZ as t };
|
|
@@ -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.BDqq0hCv.mjs';
|
|
3
3
|
|
|
4
4
|
const fontFamily = {
|
|
5
5
|
sans: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utilities = require('./preset-mini.
|
|
3
|
+
const utilities = require('./preset-mini.CdzxbzG1.cjs');
|
|
4
4
|
|
|
5
5
|
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"];
|
|
6
6
|
const containValues = ["none", "strict", "content", "size", "inline-size", "layout", "style", "paint"];
|
|
@@ -283,7 +283,7 @@ function handleTranslate([, d, b], { theme }) {
|
|
|
283
283
|
const v = theme.spacing?.[b] ?? utilities.h.bracket.cssvar.fraction.rem(b);
|
|
284
284
|
if (v != null) {
|
|
285
285
|
return [
|
|
286
|
-
...utilities.
|
|
286
|
+
...utilities.transformXYZ(d, v, "translate"),
|
|
287
287
|
["transform", transformCpu]
|
|
288
288
|
];
|
|
289
289
|
}
|
|
@@ -292,7 +292,7 @@ function handleScale([, d, b]) {
|
|
|
292
292
|
const v = utilities.h.bracket.cssvar.fraction.percent(b);
|
|
293
293
|
if (v != null) {
|
|
294
294
|
return [
|
|
295
|
-
...utilities.
|
|
295
|
+
...utilities.transformXYZ(d, v, "scale"),
|
|
296
296
|
["transform", transformCpu]
|
|
297
297
|
];
|
|
298
298
|
}
|
|
@@ -321,7 +321,7 @@ function handleSkew([, d, b]) {
|
|
|
321
321
|
const v = utilities.h.bracket.cssvar.degree(b);
|
|
322
322
|
if (v != null) {
|
|
323
323
|
return [
|
|
324
|
-
...utilities.
|
|
324
|
+
...utilities.transformXYZ(d, v, "skew"),
|
|
325
325
|
["transform", transformCpu]
|
|
326
326
|
];
|
|
327
327
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utilities = require('./preset-mini.
|
|
3
|
+
const utilities = require('./preset-mini.CdzxbzG1.cjs');
|
|
4
4
|
const ruleUtils = require('@unocss/rule-utils');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
|
-
const transform = require('./preset-mini
|
|
6
|
+
const transform = require('./preset-mini.aMVgvy_A.cjs');
|
|
7
7
|
|
|
8
8
|
const verticalAlignAlias = {
|
|
9
9
|
"mid": "middle",
|
|
@@ -183,8 +183,9 @@ const opacity = [
|
|
|
183
183
|
[/^op(?:acity)?-?(.+)$/, ([, d]) => ({ opacity: utilities.h.bracket.percent.cssvar(d) })]
|
|
184
184
|
];
|
|
185
185
|
const bgUrlRE = /^\[url\(.+\)\]$/;
|
|
186
|
-
const bgLengthRE = /^\[length:.+\]$/;
|
|
186
|
+
const bgLengthRE = /^\[(length|size):.+\]$/;
|
|
187
187
|
const bgPositionRE = /^\[position:.+\]$/;
|
|
188
|
+
const bgGradientRE = /^\[(linear|conic|radial)-gradient\(.+\)\]$/;
|
|
188
189
|
const bgColors = [
|
|
189
190
|
[/^bg-(.+)$/, (...args) => {
|
|
190
191
|
const d = args[0][1];
|
|
@@ -194,8 +195,10 @@ const bgColors = [
|
|
|
194
195
|
return { "background-size": utilities.h.bracketOfLength(d).split(" ").map((e) => utilities.h.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
195
196
|
if ((utilities.isSize(d) || bgPositionRE.test(d)) && utilities.h.bracketOfPosition(d) != null)
|
|
196
197
|
return { "background-position": utilities.h.bracketOfPosition(d).split(" ").map((e) => utilities.h.position.fraction.auto.px.cssvar(e) ?? e).join(" ") };
|
|
198
|
+
if (bgGradientRE.test(d))
|
|
199
|
+
return { "background-image": utilities.h.bracket(d) };
|
|
197
200
|
return utilities.colorResolver("background-color", "bg", "backgroundColor")(...args);
|
|
198
|
-
}],
|
|
201
|
+
}, { autocomplete: "bg-$colors" }],
|
|
199
202
|
[/^bg-op(?:acity)?-?(.+)$/, ([, opacity2]) => ({ "--un-bg-opacity": utilities.h.bracket.percent.cssvar(opacity2) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
200
203
|
];
|
|
201
204
|
const colorScheme = [
|
|
@@ -373,6 +376,21 @@ const fonts = [
|
|
|
373
376
|
([, s], { theme }) => ({ "word-spacing": theme.wordSpacing?.[s] || utilities.h.bracket.cssvar.global.rem(s) }),
|
|
374
377
|
{ autocomplete: "word-spacing-$wordSpacing" }
|
|
375
378
|
],
|
|
379
|
+
// stretch
|
|
380
|
+
["font-stretch-normal", { "font-stretch": "normal" }],
|
|
381
|
+
["font-stretch-ultra-condensed", { "font-stretch": "ultra-condensed" }],
|
|
382
|
+
["font-stretch-extra-condensed", { "font-stretch": "extra-condensed" }],
|
|
383
|
+
["font-stretch-condensed", { "font-stretch": "condensed" }],
|
|
384
|
+
["font-stretch-semi-condensed", { "font-stretch": "semi-condensed" }],
|
|
385
|
+
["font-stretch-semi-expanded", { "font-stretch": "semi-expanded" }],
|
|
386
|
+
["font-stretch-expanded", { "font-stretch": "expanded" }],
|
|
387
|
+
["font-stretch-extra-expanded", { "font-stretch": "extra-expanded" }],
|
|
388
|
+
["font-stretch-ultra-expanded", { "font-stretch": "ultra-expanded" }],
|
|
389
|
+
[
|
|
390
|
+
/^font-stretch-(.+)$/,
|
|
391
|
+
([, s]) => ({ "font-stretch": utilities.h.bracket.cssvar.fraction.global(s) }),
|
|
392
|
+
{ autocomplete: "font-stretch-<percentage>" }
|
|
393
|
+
],
|
|
376
394
|
// family
|
|
377
395
|
[
|
|
378
396
|
/^font-(.+)$/,
|
|
@@ -518,22 +536,22 @@ const grids = [
|
|
|
518
536
|
const v = utilities.h.bracket.number(s);
|
|
519
537
|
if (v != null)
|
|
520
538
|
return { [`grid-${rowCol(c)}`]: `span ${v}/span ${v}` };
|
|
521
|
-
}, { autocomplete:
|
|
539
|
+
}, { autocomplete: "(grid-row|grid-col|row|col)-span-<num>" }],
|
|
522
540
|
// starts & ends
|
|
523
541
|
[/^(?:grid-)?(row|col)-start-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-start`]: utilities.h.bracket.cssvar(v) ?? v })],
|
|
524
|
-
[/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: utilities.h.bracket.cssvar(v) ?? v }), { autocomplete:
|
|
542
|
+
[/^(?:grid-)?(row|col)-end-(.+)$/, ([, c, v]) => ({ [`grid-${rowCol(c)}-end`]: utilities.h.bracket.cssvar(v) ?? v }), { autocomplete: "(grid-row|grid-col|row|col)-(start|end)-<num>" }],
|
|
525
543
|
// auto flows
|
|
526
|
-
[/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(c, theme, v) }), { autocomplete:
|
|
544
|
+
[/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({ [`grid-auto-${rowCol(c)}`]: autoDirection(c, theme, v) }), { autocomplete: "(grid-auto|auto)-(rows|cols)-<num>" }],
|
|
527
545
|
// grid-auto-flow, auto-flow: uno
|
|
528
546
|
// grid-flow: wind
|
|
529
547
|
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/, ([, v]) => ({ "grid-auto-flow": utilities.h.bracket.cssvar(v) })],
|
|
530
548
|
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/, ([, v]) => ({ "grid-auto-flow": rowCol(v).replace("-", " ") }), { autocomplete: ["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"] }],
|
|
531
549
|
// templates
|
|
532
|
-
[/^grid-(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({
|
|
550
|
+
[/^(?:grid-)?(rows|cols)-(.+)$/, ([, c, v], { theme }) => ({
|
|
533
551
|
[`grid-template-${rowCol(c)}`]: theme[`gridTemplate${rowColTheme(c)}`]?.[v] ?? utilities.h.bracket.cssvar(v)
|
|
534
552
|
})],
|
|
535
|
-
[/^grid-(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
|
|
536
|
-
[/^grid-(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` }), { autocomplete:
|
|
553
|
+
[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(auto-fill,minmax(${d},1fr))` })],
|
|
554
|
+
[/^(?:grid-)?(rows|cols)-(\d+)$/, ([, c, d]) => ({ [`grid-template-${rowCol(c)}`]: `repeat(${d},minmax(0,1fr))` }), { autocomplete: "(grid-rows|grid-cols|rows|cols)-<num>" }],
|
|
537
555
|
// areas
|
|
538
556
|
[/^grid-area(s)?-(.+)$/, ([, s, v]) => {
|
|
539
557
|
if (s != null)
|
|
@@ -816,17 +834,13 @@ const cssVariables = [
|
|
|
816
834
|
}]
|
|
817
835
|
];
|
|
818
836
|
const cssProperty = [
|
|
819
|
-
[/^\[(.*)\]$/, ([_, body]
|
|
837
|
+
[/^\[(.*)\]$/, ([_, body]) => {
|
|
820
838
|
if (!body.includes(":"))
|
|
821
839
|
return;
|
|
822
840
|
const [prop, ...rest] = body.split(":");
|
|
823
841
|
const value = rest.join(":");
|
|
824
842
|
if (!isURI(body) && /^[a-z-]+$/.test(prop) && isValidCSSBody(value)) {
|
|
825
|
-
|
|
826
|
-
if (ruleUtils.hasThemeFn(value))
|
|
827
|
-
parsed = ruleUtils.transformThemeFn(value, theme);
|
|
828
|
-
if (!parsed || parsed === value)
|
|
829
|
-
parsed = utilities.h.bracket(`[${value}]`);
|
|
843
|
+
const parsed = utilities.h.bracket(`[${value}]`);
|
|
830
844
|
if (parsed)
|
|
831
845
|
return { [prop]: parsed };
|
|
832
846
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utilities = require('./preset-mini.
|
|
3
|
+
const utilities = require('./preset-mini.CdzxbzG1.cjs');
|
|
4
4
|
const ruleUtils = require('@unocss/rule-utils');
|
|
5
5
|
const core = require('@unocss/core');
|
|
6
6
|
|
|
@@ -323,6 +323,23 @@ const variantVariables = {
|
|
|
323
323
|
},
|
|
324
324
|
multiPass: true
|
|
325
325
|
};
|
|
326
|
+
const variantTheme = {
|
|
327
|
+
name: "theme-variables",
|
|
328
|
+
match(matcher, ctx) {
|
|
329
|
+
if (!ruleUtils.hasThemeFn(matcher))
|
|
330
|
+
return;
|
|
331
|
+
return {
|
|
332
|
+
matcher,
|
|
333
|
+
handle(input, next) {
|
|
334
|
+
return next({
|
|
335
|
+
...input,
|
|
336
|
+
// entries: [ [ '--css-spacing', '28px' ] ],
|
|
337
|
+
entries: JSON.parse(ruleUtils.transformThemeFn(JSON.stringify(input.entries), ctx.theme))
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
};
|
|
326
343
|
|
|
327
344
|
const anchoredNumberRE = /^-?[0-9.]+(?:[a-z]+|%)?$/;
|
|
328
345
|
const numberRE = /-?[0-9.]+(?:[a-z]+|%)?/;
|
|
@@ -502,6 +519,7 @@ const PseudoClasses = Object.fromEntries([
|
|
|
502
519
|
"active",
|
|
503
520
|
"enabled",
|
|
504
521
|
"disabled",
|
|
522
|
+
"popover-open",
|
|
505
523
|
// tree-structural
|
|
506
524
|
"root",
|
|
507
525
|
"empty",
|
|
@@ -746,7 +764,8 @@ function variants(options) {
|
|
|
746
764
|
variantScope,
|
|
747
765
|
variantContainerQuery,
|
|
748
766
|
variantVariables,
|
|
749
|
-
...variantTaggedDataAttributes
|
|
767
|
+
...variantTaggedDataAttributes,
|
|
768
|
+
variantTheme
|
|
750
769
|
];
|
|
751
770
|
}
|
|
752
771
|
|
|
@@ -772,5 +791,6 @@ exports.variantSelector = variantSelector;
|
|
|
772
791
|
exports.variantSupports = variantSupports;
|
|
773
792
|
exports.variantTaggedDataAttributes = variantTaggedDataAttributes;
|
|
774
793
|
exports.variantTaggedPseudoClasses = variantTaggedPseudoClasses;
|
|
794
|
+
exports.variantTheme = variantTheme;
|
|
775
795
|
exports.variantVariables = variantVariables;
|
|
776
796
|
exports.variants = variants;
|
package/dist/theme.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const colors = require('./colors.cjs');
|
|
4
|
-
const _default = require('./shared/preset-mini.
|
|
5
|
-
require('./shared/preset-mini
|
|
6
|
-
require('./shared/preset-mini.
|
|
4
|
+
const _default = require('./shared/preset-mini.D6RG4aSN.cjs');
|
|
5
|
+
require('./shared/preset-mini.aMVgvy_A.cjs');
|
|
6
|
+
require('./shared/preset-mini.CdzxbzG1.cjs');
|
|
7
7
|
require('@unocss/core');
|
|
8
8
|
require('@unocss/rule-utils');
|
|
9
9
|
|
package/dist/theme.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { colors } from './colors.cjs';
|
|
2
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.
|
|
2
|
+
export { t as theme } from './shared/preset-mini.bn9iWcrm.cjs';
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
4
|
+
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { colors } from './colors.mjs';
|
|
2
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.
|
|
2
|
+
export { t as theme } from './shared/preset-mini.Cu-XLFZP.mjs';
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
4
|
+
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { colors } from './colors.js';
|
|
2
|
-
export { t as theme } from './shared/preset-mini.
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.
|
|
2
|
+
export { t as theme } from './shared/preset-mini.DIb57JCK.js';
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.js';
|
|
4
|
+
export { C as Colors, a as ThemeAnimation } from './shared/preset-mini.P5Rzuhf5.js';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
|
|
7
7
|
declare const blur: {
|
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.HNDEq_D9.mjs';
|
|
3
|
+
import './shared/preset-mini.BDqq0hCv.mjs';
|
|
4
|
+
import './shared/preset-mini.CV-SKsbk.mjs';
|
|
5
5
|
import '@unocss/core';
|
|
6
6
|
import '@unocss/rule-utils';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utilities = require('./shared/preset-mini.
|
|
3
|
+
const utilities = require('./shared/preset-mini.CdzxbzG1.cjs');
|
|
4
4
|
const ruleUtils = require('@unocss/rule-utils');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
|
|
@@ -26,11 +26,17 @@ exports.positionMap = utilities.positionMap;
|
|
|
26
26
|
exports.resolveBreakpoints = utilities.resolveBreakpoints;
|
|
27
27
|
exports.resolveVerticalBreakpoints = utilities.resolveVerticalBreakpoints;
|
|
28
28
|
exports.splitShorthand = utilities.splitShorthand;
|
|
29
|
+
exports.transformXYZ = utilities.transformXYZ;
|
|
29
30
|
exports.valueHandlers = utilities.valueHandlers;
|
|
31
|
+
exports.xyzArray = utilities.xyzArray;
|
|
30
32
|
exports.xyzMap = utilities.xyzMap;
|
|
31
|
-
Object.
|
|
32
|
-
|
|
33
|
+
Object.prototype.hasOwnProperty.call(ruleUtils, '__proto__') &&
|
|
34
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
35
|
+
Object.defineProperty(exports, '__proto__', {
|
|
33
36
|
enumerable: true,
|
|
34
|
-
value: ruleUtils[
|
|
35
|
-
})
|
|
37
|
+
value: ruleUtils['__proto__']
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
Object.keys(ruleUtils).forEach(function (k) {
|
|
41
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = ruleUtils[k];
|
|
36
42
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.BP7cviYW.cjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
|
-
import './shared/preset-mini.
|
|
5
|
+
import './shared/preset-mini.P5Rzuhf5.cjs';
|
|
6
6
|
|
|
7
7
|
declare const directionMap: Record<string, string[]>;
|
|
8
8
|
declare const insetMap: Record<string, string[]>;
|
|
9
9
|
declare const cornerMap: Record<string, string[]>;
|
|
10
10
|
declare const xyzMap: Record<string, string[]>;
|
|
11
|
+
declare const xyzArray: string[];
|
|
11
12
|
declare const positionMap: Record<string, string>;
|
|
12
13
|
declare const globalKeywords: string[];
|
|
13
14
|
declare const cssMathFnRE: RegExp;
|
|
@@ -54,4 +55,4 @@ declare namespace handlers {
|
|
|
54
55
|
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
55
56
|
declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
56
57
|
|
|
57
|
-
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
|
|
58
|
+
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.CdxIVkIz.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
5
|
-
import './shared/preset-mini.
|
|
5
|
+
import './shared/preset-mini.P5Rzuhf5.mjs';
|
|
6
6
|
|
|
7
7
|
declare const directionMap: Record<string, string[]>;
|
|
8
8
|
declare const insetMap: Record<string, string[]>;
|
|
9
9
|
declare const cornerMap: Record<string, string[]>;
|
|
10
10
|
declare const xyzMap: Record<string, string[]>;
|
|
11
|
+
declare const xyzArray: string[];
|
|
11
12
|
declare const positionMap: Record<string, string>;
|
|
12
13
|
declare const globalKeywords: string[];
|
|
13
14
|
declare const cssMathFnRE: RegExp;
|
|
@@ -54,4 +55,4 @@ declare namespace handlers {
|
|
|
54
55
|
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
55
56
|
declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
56
57
|
|
|
57
|
-
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
|
|
58
|
+
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
|
-
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand } from './shared/preset-mini.
|
|
3
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, c as colorResolver, a as colorableShadows, d as directionSize, h as hasParseableColor, i as isCSSMathFn, e as isSize, m as makeGlobalStaticRules, p as parseColor, r as resolveBreakpoints, b as resolveVerticalBreakpoints, s as splitShorthand, t as transformXYZ } from './shared/preset-mini.Dh95saIh.js';
|
|
4
4
|
import '@unocss/core';
|
|
5
|
-
import './shared/preset-mini.
|
|
5
|
+
import './shared/preset-mini.P5Rzuhf5.js';
|
|
6
6
|
|
|
7
7
|
declare const directionMap: Record<string, string[]>;
|
|
8
8
|
declare const insetMap: Record<string, string[]>;
|
|
9
9
|
declare const cornerMap: Record<string, string[]>;
|
|
10
10
|
declare const xyzMap: Record<string, string[]>;
|
|
11
|
+
declare const xyzArray: string[];
|
|
11
12
|
declare const positionMap: Record<string, string>;
|
|
12
13
|
declare const globalKeywords: string[];
|
|
13
14
|
declare const cssMathFnRE: RegExp;
|
|
@@ -54,4 +55,4 @@ declare namespace handlers {
|
|
|
54
55
|
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
55
56
|
declare const h: _unocss_rule_utils.ValueHandler<"number" | "auto" | "position" | "global" | "numberWithUnit" | "rem" | "px" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
56
57
|
|
|
57
|
-
export { cornerMap, cssMathFnRE, directionMap, globalKeywords, h, handler, insetMap, positionMap, handlers as valueHandlers, xyzMap };
|
|
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,
|
|
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.CV-SKsbk.mjs';
|
|
2
2
|
export * from '@unocss/rule-utils';
|
|
3
3
|
import '@unocss/core';
|
package/dist/variants.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const _default = require('./shared/preset-mini.
|
|
4
|
-
require('./shared/preset-mini.
|
|
3
|
+
const _default = require('./shared/preset-mini.vGRJlUxE.cjs');
|
|
4
|
+
require('./shared/preset-mini.CdzxbzG1.cjs');
|
|
5
5
|
require('@unocss/core');
|
|
6
6
|
require('@unocss/rule-utils');
|
|
7
7
|
|
|
@@ -29,5 +29,6 @@ exports.variantSelector = _default.variantSelector;
|
|
|
29
29
|
exports.variantSupports = _default.variantSupports;
|
|
30
30
|
exports.variantTaggedDataAttributes = _default.variantTaggedDataAttributes;
|
|
31
31
|
exports.variantTaggedPseudoClasses = _default.variantTaggedPseudoClasses;
|
|
32
|
+
exports.variantTheme = _default.variantTheme;
|
|
32
33
|
exports.variantVariables = _default.variantVariables;
|
|
33
34
|
exports.variants = _default.variants;
|
package/dist/variants.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.cjs';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.cjs';
|
|
4
|
+
import './shared/preset-mini.bn9iWcrm.cjs';
|
|
5
5
|
import './colors.cjs';
|
|
6
|
-
import './shared/preset-mini.
|
|
6
|
+
import './shared/preset-mini.BP7cviYW.cjs';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
@@ -33,6 +33,7 @@ declare const variantCssLayer: Variant;
|
|
|
33
33
|
declare const variantInternalLayer: Variant;
|
|
34
34
|
declare const variantScope: Variant;
|
|
35
35
|
declare const variantVariables: Variant;
|
|
36
|
+
declare const variantTheme: Variant;
|
|
36
37
|
|
|
37
38
|
declare const variantNegative: Variant;
|
|
38
39
|
|
|
@@ -43,4 +44,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
43
44
|
|
|
44
45
|
declare const variantSupports: VariantObject;
|
|
45
46
|
|
|
46
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantVariables, variants };
|
|
47
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/dist/variants.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.mjs';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.mjs';
|
|
4
|
+
import './shared/preset-mini.Cu-XLFZP.mjs';
|
|
5
5
|
import './colors.mjs';
|
|
6
|
-
import './shared/preset-mini.
|
|
6
|
+
import './shared/preset-mini.CdxIVkIz.mjs';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
@@ -33,6 +33,7 @@ declare const variantCssLayer: Variant;
|
|
|
33
33
|
declare const variantInternalLayer: Variant;
|
|
34
34
|
declare const variantScope: Variant;
|
|
35
35
|
declare const variantVariables: Variant;
|
|
36
|
+
declare const variantTheme: Variant;
|
|
36
37
|
|
|
37
38
|
declare const variantNegative: Variant;
|
|
38
39
|
|
|
@@ -43,4 +44,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
43
44
|
|
|
44
45
|
declare const variantSupports: VariantObject;
|
|
45
46
|
|
|
46
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantVariables, variants };
|
|
47
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/dist/variants.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantObject, Variant } from '@unocss/core';
|
|
2
2
|
import { PresetMiniOptions } from './index.js';
|
|
3
|
-
import { T as Theme } from './shared/preset-mini.
|
|
4
|
-
import './shared/preset-mini.
|
|
3
|
+
import { T as Theme } from './shared/preset-mini.P5Rzuhf5.js';
|
|
4
|
+
import './shared/preset-mini.DIb57JCK.js';
|
|
5
5
|
import './colors.js';
|
|
6
|
-
import './shared/preset-mini.
|
|
6
|
+
import './shared/preset-mini.Dh95saIh.js';
|
|
7
7
|
|
|
8
8
|
declare const variantAria: VariantObject;
|
|
9
9
|
|
|
@@ -33,6 +33,7 @@ declare const variantCssLayer: Variant;
|
|
|
33
33
|
declare const variantInternalLayer: Variant;
|
|
34
34
|
declare const variantScope: Variant;
|
|
35
35
|
declare const variantVariables: Variant;
|
|
36
|
+
declare const variantTheme: Variant;
|
|
36
37
|
|
|
37
38
|
declare const variantNegative: Variant;
|
|
38
39
|
|
|
@@ -43,4 +44,4 @@ declare const variantPartClasses: VariantObject;
|
|
|
43
44
|
|
|
44
45
|
declare const variantSupports: VariantObject;
|
|
45
46
|
|
|
46
|
-
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantVariables, variants };
|
|
47
|
+
export { calcMaxWidthBySize, variantAria, variantBreakpoints, variantColorsMediaOrClass, variantCombinators, variantContainerQuery, variantCssLayer, variantCustomMedia, variantDataAttribute, variantImportant, variantInternalLayer, variantLanguageDirections, variantNegative, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantSupports, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
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,
|
|
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.BQqGYFkE.mjs';
|
|
2
|
+
import './shared/preset-mini.CV-SKsbk.mjs';
|
|
3
3
|
import '@unocss/core';
|
|
4
4
|
import '@unocss/rule-utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-mini",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.7",
|
|
4
4
|
"description": "The minimal preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"dist"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@unocss/
|
|
65
|
-
"@unocss/
|
|
66
|
-
"@unocss/
|
|
64
|
+
"@unocss/extractor-arbitrary-variants": "0.58.7",
|
|
65
|
+
"@unocss/rule-utils": "0.58.7",
|
|
66
|
+
"@unocss/core": "0.58.7"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "unbuild",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|