unocss 0.24.3 → 0.26.0

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/README.md CHANGED
@@ -35,6 +35,7 @@ Inspired by [Windi CSS](http://windicss.org/), [Tailwind CSS](https://tailwindcs
35
35
  - [CSS-in-JS Runtime version](https://github.com/unocss/unocss/tree/main/packages/runtime)
36
36
  - [CSS Scoping](#css-scoping)
37
37
  - [VS Code extension](https://marketplace.visualstudio.com/items?itemName=antfu.unocss)
38
+ - [Variant Groups](https://github.com/unocss/unocss/tree/main/packages/transformer-variant-group) & [CSS Directives](https://github.com/unocss/unocss/tree/main/packages/transformer-directives)
38
39
  - Code-splitting for CSS - ships minimal CSS for MPA.
39
40
  - Library friendly - ships atomic styles with your component libraries and safely scoped.
40
41
 
@@ -54,7 +55,7 @@ tailwindcss v3.0.0-alpha.1 1290.96 ms / delta. 1282.66 ms (x243.05)
54
55
 
55
56
  UnoCSS is designed **NOT** to be/have:
56
57
 
57
- - A CSS preprocessor (e.g. `@apply`) - but you can use [shortcuts](#shortcuts).
58
+ - ~~A CSS preprocessor (e.g. `@apply`)~~ - Yes, you can now: [CSS Directives](https://github.com/unocss/unocss/tree/main/packages/transformer-directives)
58
59
  - Tailwind's plugin system - but you can write custom rules in seconds and share them as presets!
59
60
 
60
61
  ###### Disclaimer
package/dist/index.cjs CHANGED
@@ -7,6 +7,10 @@ const presetUno = require('@unocss/preset-uno');
7
7
  const presetAttributify = require('@unocss/preset-attributify');
8
8
  const presetIcons = require('@unocss/preset-icons');
9
9
  const presetWebFonts = require('@unocss/preset-web-fonts');
10
+ const presetTypography = require('@unocss/preset-typography');
11
+ const presetMini = require('@unocss/preset-mini');
12
+ const transformerDirectives = require('@unocss/transformer-directives');
13
+ const transformerVariantGroup = require('@unocss/transformer-variant-group');
10
14
 
11
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
12
16
 
@@ -14,6 +18,10 @@ const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
14
18
  const presetAttributify__default = /*#__PURE__*/_interopDefaultLegacy(presetAttributify);
15
19
  const presetIcons__default = /*#__PURE__*/_interopDefaultLegacy(presetIcons);
16
20
  const presetWebFonts__default = /*#__PURE__*/_interopDefaultLegacy(presetWebFonts);
21
+ const presetTypography__default = /*#__PURE__*/_interopDefaultLegacy(presetTypography);
22
+ const presetMini__default = /*#__PURE__*/_interopDefaultLegacy(presetMini);
23
+ const transformerDirectives__default = /*#__PURE__*/_interopDefaultLegacy(transformerDirectives);
24
+ const transformerVariantGroup__default = /*#__PURE__*/_interopDefaultLegacy(transformerVariantGroup);
17
25
 
18
26
  function defineConfig(config) {
19
27
  return config;
@@ -23,6 +31,10 @@ exports.presetUno = presetUno__default;
23
31
  exports.presetAttributify = presetAttributify__default;
24
32
  exports.presetIcons = presetIcons__default;
25
33
  exports.presetWebFonts = presetWebFonts__default;
34
+ exports.presetTypography = presetTypography__default;
35
+ exports.presetMini = presetMini__default;
36
+ exports.transformerDirectives = transformerDirectives__default;
37
+ exports.transformerVariantGroup = transformerVariantGroup__default;
26
38
  exports.defineConfig = defineConfig;
27
39
  for (const k in core) {
28
40
  if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = core[k];
package/dist/index.d.ts CHANGED
@@ -4,6 +4,10 @@ export { default as presetUno } from '@unocss/preset-uno';
4
4
  export { default as presetAttributify } from '@unocss/preset-attributify';
5
5
  export { default as presetIcons } from '@unocss/preset-icons';
6
6
  export { default as presetWebFonts } from '@unocss/preset-web-fonts';
7
+ export { default as presetTypography } from '@unocss/preset-typography';
8
+ export { default as presetMini } from '@unocss/preset-mini';
9
+ export { default as transformerDirectives } from '@unocss/transformer-directives';
10
+ export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
7
11
 
8
12
  declare function defineConfig<Theme extends {}>(config: UserConfig<Theme>): UserConfig<Theme>;
9
13
 
package/dist/index.mjs CHANGED
@@ -3,6 +3,10 @@ export { default as presetUno } from '@unocss/preset-uno';
3
3
  export { default as presetAttributify } from '@unocss/preset-attributify';
4
4
  export { default as presetIcons } from '@unocss/preset-icons';
5
5
  export { default as presetWebFonts } from '@unocss/preset-web-fonts';
6
+ export { default as presetTypography } from '@unocss/preset-typography';
7
+ export { default as presetMini } from '@unocss/preset-mini';
8
+ export { default as transformerDirectives } from '@unocss/transformer-directives';
9
+ export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
6
10
 
7
11
  function defineConfig(config) {
8
12
  return config;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const presetMini = require('@unocss/preset-mini');
6
+
7
+
8
+
9
+ for (const k in presetMini) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetMini[k];
11
+ }
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-mini';
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-mini';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const presetTypography = require('@unocss/preset-typography');
6
+
7
+
8
+
9
+ for (const k in presetTypography) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetTypography[k];
11
+ }
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-typography';
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-typography';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const presetWind = require('@unocss/preset-wind');
6
+
7
+
8
+
9
+ for (const k in presetWind) {
10
+ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = presetWind[k];
11
+ }
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-wind';
@@ -0,0 +1 @@
1
+ export * from '@unocss/preset-wind';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unocss",
3
- "version": "0.24.3",
3
+ "version": "0.26.0",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",
@@ -28,6 +28,41 @@
28
28
  "import": "./dist/index.mjs",
29
29
  "types": "./dist/index.d.ts"
30
30
  },
31
+ "./preset-attributify": {
32
+ "require": "./dist/preset-attributify.cjs",
33
+ "import": "./dist/preset-attributify.mjs",
34
+ "types": "./dist/preset-attributify.d.ts"
35
+ },
36
+ "./preset-icons": {
37
+ "require": "./dist/preset-icons.cjs",
38
+ "import": "./dist/preset-icons.mjs",
39
+ "types": "./dist/preset-icons.d.ts"
40
+ },
41
+ "./preset-mini": {
42
+ "require": "./dist/preset-mini.cjs",
43
+ "import": "./dist/preset-mini.mjs",
44
+ "types": "./dist/preset-mini.d.ts"
45
+ },
46
+ "./preset-typography": {
47
+ "require": "./dist/preset-typography.cjs",
48
+ "import": "./dist/preset-typography.mjs",
49
+ "types": "./dist/preset-typography.d.ts"
50
+ },
51
+ "./preset-uno": {
52
+ "require": "./dist/preset-uno.cjs",
53
+ "import": "./dist/preset-uno.mjs",
54
+ "types": "./dist/preset-uno.d.ts"
55
+ },
56
+ "./preset-web-fonts": {
57
+ "require": "./dist/preset-web-fonts.cjs",
58
+ "import": "./dist/preset-web-fonts.mjs",
59
+ "types": "./dist/preset-web-fonts.d.ts"
60
+ },
61
+ "./preset-wind": {
62
+ "require": "./dist/preset-wind.cjs",
63
+ "import": "./dist/preset-wind.mjs",
64
+ "types": "./dist/preset-wind.d.ts"
65
+ },
31
66
  "./vite": {
32
67
  "require": "./dist/vite.cjs",
33
68
  "import": "./dist/vite.mjs",
@@ -42,14 +77,19 @@
42
77
  "*.d.ts"
43
78
  ],
44
79
  "dependencies": {
45
- "@unocss/core": "0.24.3",
46
- "@unocss/cli": "0.24.3",
47
- "@unocss/reset": "0.24.3",
48
- "@unocss/preset-icons": "0.24.3",
49
- "@unocss/preset-attributify": "0.24.3",
50
- "@unocss/preset-uno": "0.24.3",
51
- "@unocss/preset-web-fonts": "0.24.3",
52
- "@unocss/vite": "0.24.3"
80
+ "@unocss/cli": "0.26.0",
81
+ "@unocss/core": "0.26.0",
82
+ "@unocss/preset-attributify": "0.26.0",
83
+ "@unocss/preset-icons": "0.26.0",
84
+ "@unocss/preset-mini": "0.26.0",
85
+ "@unocss/preset-typography": "0.26.0",
86
+ "@unocss/preset-uno": "0.26.0",
87
+ "@unocss/preset-web-fonts": "0.26.0",
88
+ "@unocss/preset-wind": "0.26.0",
89
+ "@unocss/reset": "0.26.0",
90
+ "@unocss/vite": "0.26.0",
91
+ "@unocss/transformer-directives": "0.26.0",
92
+ "@unocss/transformer-variant-group": "0.26.0"
53
93
  },
54
94
  "engines": {
55
95
  "node": ">=14"