@unocss/preset-rem-to-px 0.55.7 → 0.56.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.
- package/dist/index.cjs +8 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +5 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const core = require('@unocss/core');
|
|
6
|
+
|
|
3
7
|
const remRE = /(-?[\.\d]+)rem/g;
|
|
4
|
-
|
|
8
|
+
const presetRemToPx = core.definePreset((options = {}) => {
|
|
5
9
|
const {
|
|
6
10
|
baseFontSize = 16
|
|
7
11
|
} = options;
|
|
@@ -15,6 +19,7 @@ function remToPxPreset(options = {}) {
|
|
|
15
19
|
});
|
|
16
20
|
}
|
|
17
21
|
};
|
|
18
|
-
}
|
|
22
|
+
});
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
exports.default = presetRemToPx;
|
|
25
|
+
exports.presetRemToPx = presetRemToPx;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
|
|
3
3
|
interface RemToPxOptions {
|
|
4
4
|
/**
|
|
@@ -7,6 +7,6 @@ interface RemToPxOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
baseFontSize?: number;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare const presetRemToPx: _unocss_core.PresetFactory<object, RemToPxOptions>;
|
|
11
11
|
|
|
12
|
-
export { type RemToPxOptions,
|
|
12
|
+
export { type RemToPxOptions, presetRemToPx as default, presetRemToPx };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
|
|
3
3
|
interface RemToPxOptions {
|
|
4
4
|
/**
|
|
@@ -7,6 +7,6 @@ interface RemToPxOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
baseFontSize?: number;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare const presetRemToPx: _unocss_core.PresetFactory<object, RemToPxOptions>;
|
|
11
11
|
|
|
12
|
-
export { type RemToPxOptions,
|
|
12
|
+
export { type RemToPxOptions, presetRemToPx as default, presetRemToPx };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
2
|
|
|
3
3
|
interface RemToPxOptions {
|
|
4
4
|
/**
|
|
@@ -7,6 +7,6 @@ interface RemToPxOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
baseFontSize?: number;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare const presetRemToPx: _unocss_core.PresetFactory<object, RemToPxOptions>;
|
|
11
11
|
|
|
12
|
-
export { type RemToPxOptions,
|
|
12
|
+
export { type RemToPxOptions, presetRemToPx as default, presetRemToPx };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { definePreset } from '@unocss/core';
|
|
2
|
+
|
|
1
3
|
const remRE = /(-?[\.\d]+)rem/g;
|
|
2
|
-
|
|
4
|
+
const presetRemToPx = definePreset((options = {}) => {
|
|
3
5
|
const {
|
|
4
6
|
baseFontSize = 16
|
|
5
7
|
} = options;
|
|
@@ -13,6 +15,6 @@ function remToPxPreset(options = {}) {
|
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
};
|
|
16
|
-
}
|
|
18
|
+
});
|
|
17
19
|
|
|
18
|
-
export {
|
|
20
|
+
export { presetRemToPx as default, presetRemToPx };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-rem-to-px",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.1",
|
|
4
4
|
"description": "Convert all rem to px in utils",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@unocss/core": "0.
|
|
36
|
+
"@unocss/core": "0.56.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|