@unocss/preset-uno 0.12.2 → 0.12.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.
@@ -20,6 +20,5 @@ interface Theme {
20
20
  blur?: Record<string, string>;
21
21
  dropShadow?: Record<string, string | string[]>;
22
22
  }
23
- declare const theme: Theme;
24
23
 
25
- export { Theme as T, theme as t };
24
+ export { Theme as T };
@@ -0,0 +1,56 @@
1
+ import { VariantHandler } from '@unocss/core';
2
+
3
+ declare const directionMap: Record<string, string[]>;
4
+ declare const cornerMap: Record<string, string[]>;
5
+ declare const xyzMap: Record<string, string[]>;
6
+
7
+ declare function rem(str: string): string | undefined;
8
+ declare function px(str: string): string | undefined;
9
+ declare function number(str: string): number | undefined;
10
+ declare function percent(str: string): string | undefined;
11
+ declare function fraction(str: string): string | undefined;
12
+ declare function bracket(str: string): string | undefined;
13
+ declare function cssvar(str: string): string | undefined;
14
+ declare function time(str: string): string | undefined;
15
+ declare function global(str: string): string | undefined;
16
+
17
+ declare const handlers_rem: typeof rem;
18
+ declare const handlers_px: typeof px;
19
+ declare const handlers_number: typeof number;
20
+ declare const handlers_percent: typeof percent;
21
+ declare const handlers_fraction: typeof fraction;
22
+ declare const handlers_bracket: typeof bracket;
23
+ declare const handlers_cssvar: typeof cssvar;
24
+ declare const handlers_time: typeof time;
25
+ declare const handlers_global: typeof global;
26
+ declare namespace handlers {
27
+ export {
28
+ handlers_rem as rem,
29
+ handlers_px as px,
30
+ handlers_number as number,
31
+ handlers_percent as percent,
32
+ handlers_fraction as fraction,
33
+ handlers_bracket as bracket,
34
+ handlers_cssvar as cssvar,
35
+ handlers_time as time,
36
+ handlers_global as global,
37
+ };
38
+ }
39
+
40
+ declare type HandlerName = keyof typeof handlers;
41
+ declare const handlersNames: ("number" | "rem" | "px" | "percent" | "fraction" | "bracket" | "cssvar" | "time" | "global")[];
42
+ declare type Handler = {
43
+ [K in HandlerName]: Handler;
44
+ } & {
45
+ (str: string): string | undefined;
46
+ __options: {
47
+ sequence: HandlerName[];
48
+ };
49
+ };
50
+ declare const handler: Handler;
51
+
52
+ declare const variantMatcher: (name: string, selector?: ((input: string) => string | undefined) | undefined) => (input: string) => VariantHandler | undefined;
53
+
54
+ declare function capitalize<T extends string>(str: T): Capitalize<T>;
55
+
56
+ export { Handler, HandlerName, bracket, capitalize, cornerMap, cssvar, directionMap, fraction, global, handler, handlersNames, number, percent, px, rem, time, variantMatcher, xyzMap };
package/dist/utils.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+ var _chunkVRFK5755js = require('./chunk-VRFK5755.js');
19
+ require('./chunk-Y6EUTGDC.js');
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+ exports.bracket = _chunkVRFK5755js.bracket; exports.capitalize = _chunkVRFK5755js.capitalize; exports.cornerMap = _chunkVRFK5755js.cornerMap; exports.cssvar = _chunkVRFK5755js.cssvar; exports.directionMap = _chunkVRFK5755js.directionMap; exports.fraction = _chunkVRFK5755js.fraction; exports.global = _chunkVRFK5755js.global; exports.handler = _chunkVRFK5755js.handler; exports.handlersNames = _chunkVRFK5755js.handlersNames; exports.number = _chunkVRFK5755js.number; exports.percent = _chunkVRFK5755js.percent; exports.px = _chunkVRFK5755js.px; exports.rem = _chunkVRFK5755js.rem; exports.time = _chunkVRFK5755js.time; exports.variantMatcher = _chunkVRFK5755js.variantMatcher; exports.xyzMap = _chunkVRFK5755js.xyzMap;
package/dist/utils.mjs ADDED
@@ -0,0 +1,37 @@
1
+ import {
2
+ bracket,
3
+ capitalize,
4
+ cornerMap,
5
+ cssvar,
6
+ directionMap,
7
+ fraction,
8
+ global,
9
+ handler,
10
+ handlersNames,
11
+ number,
12
+ percent,
13
+ px,
14
+ rem,
15
+ time,
16
+ variantMatcher,
17
+ xyzMap
18
+ } from "./chunk-KDBQV2WO.mjs";
19
+ import "./chunk-5SH5BFJ4.mjs";
20
+ export {
21
+ bracket,
22
+ capitalize,
23
+ cornerMap,
24
+ cssvar,
25
+ directionMap,
26
+ fraction,
27
+ global,
28
+ handler,
29
+ handlersNames,
30
+ number,
31
+ percent,
32
+ px,
33
+ rem,
34
+ time,
35
+ variantMatcher,
36
+ xyzMap
37
+ };
@@ -1,20 +1,21 @@
1
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './index-9dcba0ca';
2
+ import { T as Theme } from './types-7963d0b3';
3
3
 
4
4
  declare const variantBreakpoints: Variant<Theme>;
5
5
 
6
+ declare const variantChildren: Variant[];
7
+
6
8
  declare const variantColorsClass: Variant[];
7
9
  declare const variantColorsMedia: Variant[];
8
10
 
9
- declare const variantChildren: Variant[];
10
-
11
- declare const PseudoClasses: Record<string, string | undefined>;
12
- declare const variantPseudoElements: VariantFunction;
13
- declare const variantPseudoClasses: VariantObject;
11
+ declare const variants: Variant<Theme>[];
14
12
 
15
13
  declare const variantImportant: Variant;
16
14
  declare const variantNegative: Variant;
17
15
  declare const variantSpace: Variant;
18
- declare const variants: Variant<Theme>[];
16
+
17
+ declare const PseudoClasses: Record<string, string | undefined>;
18
+ declare const variantPseudoElements: VariantFunction;
19
+ declare const variantPseudoClasses: VariantObject;
19
20
 
20
21
  export { PseudoClasses, variantBreakpoints, variantChildren, variantColorsClass, variantColorsMedia, variantImportant, variantNegative, variantPseudoClasses, variantPseudoElements, variantSpace, variants };
package/dist/variants.js CHANGED
@@ -10,8 +10,8 @@
10
10
 
11
11
 
12
12
 
13
- var _chunk5WWOD4UIjs = require('./chunk-5WWOD4UI.js');
14
- require('./chunk-SCNDCSE5.js');
13
+ var _chunkXTJ2PYTEjs = require('./chunk-XTJ2PYTE.js');
14
+ require('./chunk-VRFK5755.js');
15
15
  require('./chunk-Y6EUTGDC.js');
16
16
 
17
17
 
@@ -25,4 +25,4 @@ require('./chunk-Y6EUTGDC.js');
25
25
 
26
26
 
27
27
 
28
- exports.PseudoClasses = _chunk5WWOD4UIjs.PseudoClasses; exports.variantBreakpoints = _chunk5WWOD4UIjs.variantBreakpoints; exports.variantChildren = _chunk5WWOD4UIjs.variantChildren; exports.variantColorsClass = _chunk5WWOD4UIjs.variantColorsClass; exports.variantColorsMedia = _chunk5WWOD4UIjs.variantColorsMedia; exports.variantImportant = _chunk5WWOD4UIjs.variantImportant; exports.variantNegative = _chunk5WWOD4UIjs.variantNegative; exports.variantPseudoClasses = _chunk5WWOD4UIjs.variantPseudoClasses; exports.variantPseudoElements = _chunk5WWOD4UIjs.variantPseudoElements; exports.variantSpace = _chunk5WWOD4UIjs.variantSpace; exports.variants = _chunk5WWOD4UIjs.variants;
28
+ exports.PseudoClasses = _chunkXTJ2PYTEjs.PseudoClasses; exports.variantBreakpoints = _chunkXTJ2PYTEjs.variantBreakpoints; exports.variantChildren = _chunkXTJ2PYTEjs.variantChildren; exports.variantColorsClass = _chunkXTJ2PYTEjs.variantColorsClass; exports.variantColorsMedia = _chunkXTJ2PYTEjs.variantColorsMedia; exports.variantImportant = _chunkXTJ2PYTEjs.variantImportant; exports.variantNegative = _chunkXTJ2PYTEjs.variantNegative; exports.variantPseudoClasses = _chunkXTJ2PYTEjs.variantPseudoClasses; exports.variantPseudoElements = _chunkXTJ2PYTEjs.variantPseudoElements; exports.variantSpace = _chunkXTJ2PYTEjs.variantSpace; exports.variants = _chunkXTJ2PYTEjs.variants;
package/dist/variants.mjs CHANGED
@@ -10,8 +10,8 @@ import {
10
10
  variantPseudoElements,
11
11
  variantSpace,
12
12
  variants
13
- } from "./chunk-TOS4ZSIW.mjs";
14
- import "./chunk-URBMB274.mjs";
13
+ } from "./chunk-RMDOQ4VS.mjs";
14
+ import "./chunk-KDBQV2WO.mjs";
15
15
  import "./chunk-5SH5BFJ4.mjs";
16
16
  export {
17
17
  PseudoClasses,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.12.2",
3
+ "version": "0.12.7",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -22,20 +22,35 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "require": "./dist/index.js",
25
- "import": "./dist/index.mjs"
25
+ "import": "./dist/index.mjs",
26
+ "types": "./dist/index.d.ts"
26
27
  },
27
28
  "./theme": {
28
29
  "require": "./dist/theme.js",
29
- "import": "./dist/theme.mjs"
30
+ "import": "./dist/theme.mjs",
31
+ "types": "./dist/theme.d.ts"
30
32
  },
31
33
  "./variants": {
32
34
  "require": "./dist/variants.js",
33
- "import": "./dist/variants.mjs"
35
+ "import": "./dist/variants.mjs",
36
+ "types": "./dist/variants.d.ts"
34
37
  },
35
38
  "./rules": {
36
39
  "require": "./dist/rules.js",
37
- "import": "./dist/rules.mjs"
38
- }
40
+ "import": "./dist/rules.mjs",
41
+ "types": "./dist/rules.d.ts"
42
+ },
43
+ "./colors": {
44
+ "require": "./dist/colors.js",
45
+ "import": "./dist/colors.mjs",
46
+ "types": "./dist/colors.d.ts"
47
+ },
48
+ "./utils": {
49
+ "require": "./dist/utils.js",
50
+ "import": "./dist/utils.mjs",
51
+ "types": "./dist/utils.d.ts"
52
+ },
53
+ "./*": "./*"
39
54
  },
40
55
  "main": "dist/index.js",
41
56
  "module": "dist/index.mjs",
@@ -45,7 +60,7 @@
45
60
  "*.css"
46
61
  ],
47
62
  "dependencies": {
48
- "@unocss/core": "0.12.2"
63
+ "@unocss/core": "0.12.7"
49
64
  },
50
65
  "scripts": {
51
66
  "build": "tsup",