@unocss/preset-mini 0.42.0 → 0.43.1

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