@unocss/preset-uno 0.14.3 → 0.15.3

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.cjs CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const colors = require('./chunks/colors.cjs');
5
+ const colors = require('@unocss/preset-mini/colors');
6
6
 
7
7
 
8
8
 
9
- exports.colors = colors.colors;
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 +1 @@
1
- export { c as colors } from './chunks/colors.mjs';
1
+ export * from '@unocss/preset-mini/colors';
package/dist/index.cjs CHANGED
@@ -2,30 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const _default$1 = require('./chunks/default.cjs');
6
- const _default = require('./chunks/default2.cjs');
7
- const _default$2 = require('./chunks/default3.cjs');
8
- const colors = require('./chunks/colors.cjs');
9
- require('@unocss/core');
10
- require('./chunks/index.cjs');
11
- require('./chunks/pseudo.cjs');
12
- require('./chunks/variants.cjs');
5
+ const presetWind = require('@unocss/preset-wind');
13
6
 
14
- const preset = (options = {}) => ({
15
- name: "@unocss/preset-uno",
16
- theme: _default.theme,
17
- rules: _default$1.rules,
18
- variants: [
19
- ..._default$2.variants,
20
- ...options.dark === "media" ? _default$2.variantColorsMedia : _default$2.variantColorsClass
21
- ],
22
- shortcuts: [
23
- ..._default$1.containerShortcuts
24
- ],
25
- options
26
- });
7
+ const presetUno = presetWind.presetWind;
27
8
 
28
- exports.theme = _default.theme;
29
- exports.colors = colors.colors;
30
- exports["default"] = preset;
31
- exports.preset = preset;
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
- import { T as Theme } from './types-7963d0b3';
3
- export { T as Theme } from './types-7963d0b3';
4
- export { t as theme } from './default-c7c67d23';
5
- export { c as colors } from './colors-d6b5a5b4';
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,25 +1,6 @@
1
- import { r as rules, c as containerShortcuts } from './chunks/default.mjs';
2
- import { t as theme } from './chunks/default2.mjs';
3
- export { t as theme } from './chunks/default2.mjs';
4
- import { v as variants, a as variantColorsMedia, b as variantColorsClass } from './chunks/default3.mjs';
5
- export { c as colors } from './chunks/colors.mjs';
6
- import '@unocss/core';
7
- import './chunks/index.mjs';
8
- import './chunks/pseudo.mjs';
9
- import './chunks/variants.mjs';
1
+ import { presetWind } from '@unocss/preset-wind';
2
+ export { colors, theme } from '@unocss/preset-wind';
10
3
 
11
- const preset = (options = {}) => ({
12
- name: "@unocss/preset-uno",
13
- theme,
14
- rules,
15
- variants: [
16
- ...variants,
17
- ...options.dark === "media" ? variantColorsMedia : variantColorsClass
18
- ],
19
- shortcuts: [
20
- ...containerShortcuts
21
- ],
22
- options
23
- });
4
+ const presetUno = presetWind;
24
5
 
25
- export { preset as default, preset };
6
+ export { presetUno as default, presetUno };
package/dist/theme.cjs CHANGED
@@ -2,28 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const colors = require('./chunks/colors.cjs');
6
- const _default = require('./chunks/default2.cjs');
5
+ const theme = require('@unocss/preset-mini/theme');
7
6
 
8
7
 
9
8
 
10
- exports.colors = colors.colors;
11
- exports.baseSize = _default.baseSize;
12
- exports.blur = _default.blur;
13
- exports.borderRadius = _default.borderRadius;
14
- exports.boxShadow = _default.boxShadow;
15
- exports.breakpoints = _default.breakpoints;
16
- exports.dropShadow = _default.dropShadow;
17
- exports.fontFamily = _default.fontFamily;
18
- exports.fontSize = _default.fontSize;
19
- exports.height = _default.height;
20
- exports.letterSpacing = _default.letterSpacing;
21
- exports.lineHeight = _default.lineHeight;
22
- exports.maxHeight = _default.maxHeight;
23
- exports.maxWidth = _default.maxWidth;
24
- exports.textIndent = _default.textIndent;
25
- exports.textShadow = _default.textShadow;
26
- exports.textStrokeWidth = _default.textStrokeWidth;
27
- exports.theme = _default.theme;
28
- exports.width = _default.width;
29
- exports.wordSpacing = _default.wordSpacing;
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,2 +1 @@
1
- export { c as colors } from './chunks/colors.mjs';
2
- export { m as baseSize, b as blur, j as borderRadius, k as boxShadow, i as breakpoints, d as dropShadow, f as fontFamily, a as fontSize, p as height, h as letterSpacing, l as lineHeight, q as maxHeight, o as maxWidth, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, n as width, w as wordSpacing } from './chunks/default2.mjs';
1
+ export * from '@unocss/preset-mini/theme';
package/dist/utils.cjs CHANGED
@@ -2,24 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./chunks/index.cjs');
6
- const variants = require('./chunks/variants.cjs');
5
+ const utils = require('@unocss/preset-mini/utils');
7
6
 
8
7
 
9
8
 
10
- exports.bracket = index.bracket;
11
- exports.capitalize = index.capitalize;
12
- exports.cornerMap = index.cornerMap;
13
- exports.cssvar = index.cssvar;
14
- exports.directionMap = index.directionMap;
15
- exports.fraction = index.fraction;
16
- exports.global = index.global;
17
- exports.handler = index.handler;
18
- exports.handlersNames = index.handlersNames;
19
- exports.number = index.number;
20
- exports.percent = index.percent;
21
- exports.px = index.px;
22
- exports.rem = index.rem;
23
- exports.time = index.time;
24
- exports.xyzMap = index.xyzMap;
25
- exports.variantMatcher = variants.variantMatcher;
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,2 +1 @@
1
- export { e as bracket, a as capitalize, c as cornerMap, g as cssvar, d as directionMap, f as fraction, i as global, h as handler, j as handlersNames, n as number, b as percent, p as px, r as rem, t as time, x as xyzMap } from './chunks/index.mjs';
2
- export { v as variantMatcher } from './chunks/variants.mjs';
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.3",
3
+ "version": "0.15.3",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -30,16 +30,6 @@
30
30
  "import": "./dist/theme.mjs",
31
31
  "types": "./dist/theme.d.ts"
32
32
  },
33
- "./variants": {
34
- "require": "./dist/variants.cjs",
35
- "import": "./dist/variants.mjs",
36
- "types": "./dist/variants.d.ts"
37
- },
38
- "./rules": {
39
- "require": "./dist/rules.cjs",
40
- "import": "./dist/rules.mjs",
41
- "types": "./dist/rules.d.ts"
42
- },
43
33
  "./colors": {
44
34
  "require": "./dist/colors.cjs",
45
35
  "import": "./dist/colors.mjs",
@@ -60,7 +50,9 @@
60
50
  "*.css"
61
51
  ],
62
52
  "dependencies": {
63
- "@unocss/core": "0.14.3"
53
+ "@unocss/core": "0.15.3",
54
+ "@unocss/preset-wind": "0.15.3",
55
+ "@unocss/preset-mini": "0.15.3"
64
56
  },
65
57
  "scripts": {
66
58
  "build": "unbuild",