@unocss/preset-uno 0.58.4 → 0.58.6
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 +8 -4
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +2 -2
- package/dist/theme.cjs +8 -4
- package/dist/utils.cjs +8 -4
- package/package.json +5 -5
package/dist/colors.cjs
CHANGED
|
@@ -4,9 +4,13 @@ const colors = require('@unocss/preset-mini/colors');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
Object.
|
|
8
|
-
|
|
7
|
+
Object.prototype.hasOwnProperty.call(colors, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
value: colors[
|
|
11
|
-
})
|
|
11
|
+
value: colors['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
Object.keys(colors).forEach(function (k) {
|
|
15
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = colors[k];
|
|
12
16
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -12,14 +12,14 @@ function mixComponent(v1, v2, w) {
|
|
|
12
12
|
function mixColor(color1, color2, weight) {
|
|
13
13
|
const colors = [color1, color2];
|
|
14
14
|
const cssColors = [];
|
|
15
|
-
for (let c = 0; c < 2; ++
|
|
15
|
+
for (let c = 0; c < 2; c++) {
|
|
16
16
|
const color = typeof colors[c] === "string" ? ruleUtils.parseCssColor(colors[c]) : colors[c];
|
|
17
17
|
if (!color || !["rgb", "rgba"].includes(color.type))
|
|
18
18
|
return;
|
|
19
19
|
cssColors.push(color);
|
|
20
20
|
}
|
|
21
21
|
const newComponents = [];
|
|
22
|
-
for (let x = 0; x < 3; ++
|
|
22
|
+
for (let x = 0; x < 3; x++)
|
|
23
23
|
newComponents.push(mixComponent(cssColors[0].components[x], cssColors[1].components[x], weight));
|
|
24
24
|
return {
|
|
25
25
|
type: "rgb",
|
package/dist/index.d.cts
CHANGED
|
@@ -4,6 +4,11 @@ export { Theme } from '@unocss/preset-mini';
|
|
|
4
4
|
|
|
5
5
|
interface PresetUnoOptions extends PresetMiniOptions {
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The defult UnoCSS preset, provide Tailwind-like utilities with some additional features.
|
|
9
|
+
*
|
|
10
|
+
* @see https://unocss.dev/presets/uno
|
|
11
|
+
*/
|
|
7
12
|
declare const presetUno: _unocss_core.PresetFactory<Theme, PresetUnoOptions>;
|
|
8
13
|
|
|
9
14
|
export { type PresetUnoOptions, presetUno as default, presetUno };
|
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,11 @@ export { Theme } from '@unocss/preset-mini';
|
|
|
4
4
|
|
|
5
5
|
interface PresetUnoOptions extends PresetMiniOptions {
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The defult UnoCSS preset, provide Tailwind-like utilities with some additional features.
|
|
9
|
+
*
|
|
10
|
+
* @see https://unocss.dev/presets/uno
|
|
11
|
+
*/
|
|
7
12
|
declare const presetUno: _unocss_core.PresetFactory<Theme, PresetUnoOptions>;
|
|
8
13
|
|
|
9
14
|
export { type PresetUnoOptions, presetUno as default, presetUno };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export { Theme } from '@unocss/preset-mini';
|
|
|
4
4
|
|
|
5
5
|
interface PresetUnoOptions extends PresetMiniOptions {
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* The defult UnoCSS preset, provide Tailwind-like utilities with some additional features.
|
|
9
|
+
*
|
|
10
|
+
* @see https://unocss.dev/presets/uno
|
|
11
|
+
*/
|
|
7
12
|
declare const presetUno: _unocss_core.PresetFactory<Theme, PresetUnoOptions>;
|
|
8
13
|
|
|
9
14
|
export { type PresetUnoOptions, presetUno as default, presetUno };
|
package/dist/index.mjs
CHANGED
|
@@ -8,14 +8,14 @@ function mixComponent(v1, v2, w) {
|
|
|
8
8
|
function mixColor(color1, color2, weight) {
|
|
9
9
|
const colors = [color1, color2];
|
|
10
10
|
const cssColors = [];
|
|
11
|
-
for (let c = 0; c < 2; ++
|
|
11
|
+
for (let c = 0; c < 2; c++) {
|
|
12
12
|
const color = typeof colors[c] === "string" ? parseCssColor(colors[c]) : colors[c];
|
|
13
13
|
if (!color || !["rgb", "rgba"].includes(color.type))
|
|
14
14
|
return;
|
|
15
15
|
cssColors.push(color);
|
|
16
16
|
}
|
|
17
17
|
const newComponents = [];
|
|
18
|
-
for (let x = 0; x < 3; ++
|
|
18
|
+
for (let x = 0; x < 3; x++)
|
|
19
19
|
newComponents.push(mixComponent(cssColors[0].components[x], cssColors[1].components[x], weight));
|
|
20
20
|
return {
|
|
21
21
|
type: "rgb",
|
package/dist/theme.cjs
CHANGED
|
@@ -4,9 +4,13 @@ const theme = require('@unocss/preset-mini/theme');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
Object.
|
|
8
|
-
|
|
7
|
+
Object.prototype.hasOwnProperty.call(theme, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
value: theme[
|
|
11
|
-
})
|
|
11
|
+
value: theme['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
Object.keys(theme).forEach(function (k) {
|
|
15
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = theme[k];
|
|
12
16
|
});
|
package/dist/utils.cjs
CHANGED
|
@@ -4,9 +4,13 @@ const ruleUtils = require('@unocss/rule-utils');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
Object.
|
|
8
|
-
|
|
7
|
+
Object.prototype.hasOwnProperty.call(ruleUtils, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
value: ruleUtils[
|
|
11
|
-
})
|
|
11
|
+
value: ruleUtils['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
Object.keys(ruleUtils).forEach(function (k) {
|
|
15
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = ruleUtils[k];
|
|
12
16
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-uno",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.6",
|
|
4
4
|
"description": "The default preset for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"dist"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@unocss/core": "0.58.
|
|
54
|
-
"@unocss/preset-
|
|
55
|
-
"@unocss/preset-
|
|
56
|
-
"@unocss/rule-utils": "0.58.
|
|
53
|
+
"@unocss/core": "0.58.6",
|
|
54
|
+
"@unocss/preset-wind": "0.58.6",
|
|
55
|
+
"@unocss/preset-mini": "0.58.6",
|
|
56
|
+
"@unocss/rule-utils": "0.58.6"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|