@unocss/preset-uno 0.14.1 → 0.15.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.
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const colors = require('@unocss/preset-mini/colors');
6
+
7
+
8
+
9
+ for (const k in colors) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = colors[k];
11
+ }
package/dist/colors.d.ts CHANGED
@@ -1,2 +1 @@
1
- export { c as colors } from './colors-d6b5a5b4';
2
- import './types-7963d0b3';
1
+ export * from '@unocss/preset-mini/colors';
package/dist/colors.mjs CHANGED
@@ -1,7 +1 @@
1
- import {
2
- colors
3
- } from "./chunk-P5HELYQA.mjs";
4
- import "./chunk-5SH5BFJ4.mjs";
5
- export {
6
- colors
7
- };
1
+ export * from '@unocss/preset-mini/colors';
package/dist/index.cjs ADDED
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const presetWind = require('@unocss/preset-wind');
6
+
7
+ const presetUno = presetWind.presetWind;
8
+
9
+ exports.colors = presetWind.colors;
10
+ exports.theme = presetWind.theme;
11
+ exports["default"] = presetUno;
12
+ exports.presetUno = presetUno;
package/dist/index.d.ts CHANGED
@@ -1,15 +1,11 @@
1
- import { Preset } from '@unocss/core';
2
- export { c as colors } from './colors-d6b5a5b4';
3
- export { t as theme } from './default-c7c67d23';
4
- import { T as Theme } from './types-7963d0b3';
5
- export { T as Theme } from './types-7963d0b3';
1
+ import * as _unocss_core from '@unocss/core';
2
+ import * as _unocss_preset_wind from '@unocss/preset-wind';
3
+ export { colors, theme } from '@unocss/preset-wind';
4
+ import { PresetMiniOptions, Theme } from '@unocss/preset-mini';
5
+ export { Theme } from '@unocss/preset-mini';
6
6
 
7
- interface UnoOptions {
8
- /**
9
- * @default 'class'
10
- */
11
- dark?: 'class' | 'media';
7
+ interface PresetUnoOptions extends PresetMiniOptions {
12
8
  }
13
- declare const preset: (options?: UnoOptions) => Preset<Theme>;
9
+ declare const presetUno: (options?: _unocss_preset_wind.UnoOptions | undefined) => _unocss_core.Preset<Theme>[];
14
10
 
15
- export { UnoOptions, preset as default, preset };
11
+ export { PresetUnoOptions, presetUno as default, presetUno };
package/dist/index.mjs CHANGED
@@ -1,39 +1,6 @@
1
- import {
2
- containerShortcuts,
3
- rules
4
- } from "./chunk-OWR5JIMD.mjs";
5
- import {
6
- theme
7
- } from "./chunk-BLAKJWHG.mjs";
8
- import {
9
- colors
10
- } from "./chunk-P5HELYQA.mjs";
11
- import {
12
- variantColorsClass,
13
- variantColorsMedia,
14
- variants
15
- } from "./chunk-MBU6ORW7.mjs";
16
- import "./chunk-O7YRGPXQ.mjs";
17
- import "./chunk-5SH5BFJ4.mjs";
1
+ import { presetWind } from '@unocss/preset-wind';
2
+ export { colors, theme } from '@unocss/preset-wind';
18
3
 
19
- // src/index.ts
20
- var preset = (options = {}) => ({
21
- name: "@unocss/preset-uno",
22
- theme,
23
- rules,
24
- variants: [
25
- ...variants,
26
- ...options.dark === "media" ? variantColorsMedia : variantColorsClass
27
- ],
28
- shortcuts: [
29
- ...containerShortcuts
30
- ],
31
- options
32
- });
33
- var src_default = preset;
34
- export {
35
- colors,
36
- src_default as default,
37
- preset,
38
- theme
39
- };
4
+ const presetUno = presetWind;
5
+
6
+ export { presetUno as default, presetUno };
package/dist/theme.cjs ADDED
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const theme = require('@unocss/preset-mini/theme');
6
+
7
+
8
+
9
+ for (const k in theme) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = theme[k];
11
+ }
package/dist/theme.d.ts CHANGED
@@ -1,157 +1 @@
1
- export { c as colors } from './colors-d6b5a5b4';
2
- export { t as theme } from './default-c7c67d23';
3
- import { T as Theme } from './types-7963d0b3';
4
- export { T as Theme } from './types-7963d0b3';
5
-
6
- declare const blur: {
7
- DEFAULT: string;
8
- '0': string;
9
- sm: string;
10
- md: string;
11
- lg: string;
12
- xl: string;
13
- '2xl': string;
14
- '3xl': string;
15
- };
16
- declare const dropShadow: {
17
- DEFAULT: string[];
18
- sm: string;
19
- md: string[];
20
- lg: string[];
21
- xl: string[];
22
- '2xl': string;
23
- none: string;
24
- };
25
-
26
- declare const fontFamily: {
27
- sans: string;
28
- serif: string;
29
- mono: string;
30
- };
31
- declare const fontSize: Theme['fontSize'];
32
- declare const textIndent: Theme['textIndent'];
33
- declare const textStrokeWidth: Theme['textStrokeWidth'];
34
- declare const textShadow: Theme['textShadow'];
35
- declare const lineHeight: Theme['lineHeight'];
36
- declare const letterSpacing: Theme['letterSpacing'];
37
- declare const wordSpacing: Theme['wordSpacing'];
38
-
39
- declare const breakpoints: {
40
- sm: string;
41
- md: string;
42
- lg: string;
43
- xl: string;
44
- '2xl': string;
45
- };
46
- declare const borderRadius: {
47
- DEFAULT: string;
48
- none: string;
49
- sm: string;
50
- md: string;
51
- lg: string;
52
- xl: string;
53
- '2xl': string;
54
- '3xl': string;
55
- full: string;
56
- };
57
- declare const boxShadow: {
58
- DEFAULT: string;
59
- sm: string;
60
- md: string;
61
- lg: string;
62
- xl: string;
63
- '2xl': string;
64
- inner: string;
65
- none: string;
66
- };
67
-
68
- declare const baseSize: {
69
- xs: string;
70
- sm: string;
71
- md: string;
72
- lg: string;
73
- xl: string;
74
- '2xl': string;
75
- '3xl': string;
76
- '4xl': string;
77
- '5xl': string;
78
- '6xl': string;
79
- '7xl': string;
80
- min: string;
81
- max: string;
82
- prose: string;
83
- };
84
- declare const width: {
85
- screen: string;
86
- xs: string;
87
- sm: string;
88
- md: string;
89
- lg: string;
90
- xl: string;
91
- '2xl': string;
92
- '3xl': string;
93
- '4xl': string;
94
- '5xl': string;
95
- '6xl': string;
96
- '7xl': string;
97
- min: string;
98
- max: string;
99
- prose: string;
100
- auto: string;
101
- };
102
- declare const maxWidth: {
103
- screen: string;
104
- xs: string;
105
- sm: string;
106
- md: string;
107
- lg: string;
108
- xl: string;
109
- '2xl': string;
110
- '3xl': string;
111
- '4xl': string;
112
- '5xl': string;
113
- '6xl': string;
114
- '7xl': string;
115
- min: string;
116
- max: string;
117
- prose: string;
118
- none: string;
119
- };
120
- declare const height: {
121
- screen: string;
122
- xs: string;
123
- sm: string;
124
- md: string;
125
- lg: string;
126
- xl: string;
127
- '2xl': string;
128
- '3xl': string;
129
- '4xl': string;
130
- '5xl': string;
131
- '6xl': string;
132
- '7xl': string;
133
- min: string;
134
- max: string;
135
- prose: string;
136
- auto: string;
137
- };
138
- declare const maxHeight: {
139
- screen: string;
140
- xs: string;
141
- sm: string;
142
- md: string;
143
- lg: string;
144
- xl: string;
145
- '2xl': string;
146
- '3xl': string;
147
- '4xl': string;
148
- '5xl': string;
149
- '6xl': string;
150
- '7xl': string;
151
- min: string;
152
- max: string;
153
- prose: string;
154
- none: string;
155
- };
156
-
157
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, fontFamily, fontSize, height, letterSpacing, lineHeight, maxHeight, maxWidth, textIndent, textShadow, textStrokeWidth, width, wordSpacing };
1
+ export * from '@unocss/preset-mini/theme';
package/dist/theme.mjs CHANGED
@@ -1,47 +1 @@
1
- import {
2
- baseSize,
3
- blur,
4
- borderRadius,
5
- boxShadow,
6
- breakpoints,
7
- dropShadow,
8
- fontFamily,
9
- fontSize,
10
- height,
11
- letterSpacing,
12
- lineHeight,
13
- maxHeight,
14
- maxWidth,
15
- textIndent,
16
- textShadow,
17
- textStrokeWidth,
18
- theme,
19
- width,
20
- wordSpacing
21
- } from "./chunk-BLAKJWHG.mjs";
22
- import {
23
- colors
24
- } from "./chunk-P5HELYQA.mjs";
25
- import "./chunk-5SH5BFJ4.mjs";
26
- export {
27
- baseSize,
28
- blur,
29
- borderRadius,
30
- boxShadow,
31
- breakpoints,
32
- colors,
33
- dropShadow,
34
- fontFamily,
35
- fontSize,
36
- height,
37
- letterSpacing,
38
- lineHeight,
39
- maxHeight,
40
- maxWidth,
41
- textIndent,
42
- textShadow,
43
- textStrokeWidth,
44
- theme,
45
- width,
46
- wordSpacing
47
- };
1
+ export * from '@unocss/preset-mini/theme';
package/dist/utils.cjs ADDED
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const utils = require('@unocss/preset-mini/utils');
6
+
7
+
8
+
9
+ for (const k in utils) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utils[k];
11
+ }
package/dist/utils.d.ts CHANGED
@@ -1,56 +1 @@
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 };
1
+ export * from '@unocss/preset-mini/utils';
package/dist/utils.mjs CHANGED
@@ -1,37 +1 @@
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-O7YRGPXQ.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
+ export * from '@unocss/preset-mini/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.14.1",
3
+ "version": "0.15.1",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -21,38 +21,28 @@
21
21
  "sideEffects": false,
22
22
  "exports": {
23
23
  ".": {
24
- "require": "./dist/index.js",
24
+ "require": "./dist/index.cjs",
25
25
  "import": "./dist/index.mjs",
26
26
  "types": "./dist/index.d.ts"
27
27
  },
28
28
  "./theme": {
29
- "require": "./dist/theme.js",
29
+ "require": "./dist/theme.cjs",
30
30
  "import": "./dist/theme.mjs",
31
31
  "types": "./dist/theme.d.ts"
32
32
  },
33
- "./variants": {
34
- "require": "./dist/variants.js",
35
- "import": "./dist/variants.mjs",
36
- "types": "./dist/variants.d.ts"
37
- },
38
- "./rules": {
39
- "require": "./dist/rules.js",
40
- "import": "./dist/rules.mjs",
41
- "types": "./dist/rules.d.ts"
42
- },
43
33
  "./colors": {
44
- "require": "./dist/colors.js",
34
+ "require": "./dist/colors.cjs",
45
35
  "import": "./dist/colors.mjs",
46
36
  "types": "./dist/colors.d.ts"
47
37
  },
48
38
  "./utils": {
49
- "require": "./dist/utils.js",
39
+ "require": "./dist/utils.cjs",
50
40
  "import": "./dist/utils.mjs",
51
41
  "types": "./dist/utils.d.ts"
52
42
  },
53
43
  "./*": "./*"
54
44
  },
55
- "main": "dist/index.js",
45
+ "main": "dist/index.cjs",
56
46
  "module": "dist/index.mjs",
57
47
  "types": "dist/index.d.ts",
58
48
  "files": [
@@ -60,10 +50,12 @@
60
50
  "*.css"
61
51
  ],
62
52
  "dependencies": {
63
- "@unocss/core": "0.14.1"
53
+ "@unocss/core": "0.15.1",
54
+ "@unocss/preset-wind": "0.15.1",
55
+ "@unocss/preset-mini": "0.15.1"
64
56
  },
65
57
  "scripts": {
66
- "build": "tsup",
67
- "dev": "tsup --watch src"
58
+ "build": "unbuild",
59
+ "stub": "unbuild --stub"
68
60
  }
69
61
  }