@unocss/preset-tagify 0.50.6 → 0.50.8
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 +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ const core = require('@unocss/core');
|
|
|
6
6
|
|
|
7
7
|
const MARKER = "__TAGIFY__";
|
|
8
8
|
const htmlTagRE = /<([\w\d-:]+)/g;
|
|
9
|
-
|
|
9
|
+
function extractorTagify(options) {
|
|
10
10
|
const {
|
|
11
11
|
prefix = "",
|
|
12
12
|
excludedTags = ["b", /^h\d+$/, "table"]
|
|
@@ -30,9 +30,9 @@ const extractorTagify = (options) => {
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
function variantTagify(options) {
|
|
36
36
|
const { extraProperties } = options;
|
|
37
37
|
const prefix = `${MARKER}${options.prefix ?? ""}`;
|
|
38
38
|
return {
|
|
@@ -54,7 +54,7 @@ const variantTagify = (options) => {
|
|
|
54
54
|
return handler;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
}
|
|
57
|
+
}
|
|
58
58
|
|
|
59
59
|
function tagifyPreset(options = {}) {
|
|
60
60
|
const {
|
package/dist/index.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ interface TagifyOptions {
|
|
|
23
23
|
|
|
24
24
|
declare const MARKER = "__TAGIFY__";
|
|
25
25
|
declare const htmlTagRE: RegExp;
|
|
26
|
-
declare
|
|
26
|
+
declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
27
27
|
|
|
28
|
-
declare
|
|
28
|
+
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
29
|
|
|
30
30
|
declare function tagifyPreset(options?: TagifyOptions): Preset;
|
|
31
31
|
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { extractorSplit } from '@unocss/core';
|
|
|
2
2
|
|
|
3
3
|
const MARKER = "__TAGIFY__";
|
|
4
4
|
const htmlTagRE = /<([\w\d-:]+)/g;
|
|
5
|
-
|
|
5
|
+
function extractorTagify(options) {
|
|
6
6
|
const {
|
|
7
7
|
prefix = "",
|
|
8
8
|
excludedTags = ["b", /^h\d+$/, "table"]
|
|
@@ -26,9 +26,9 @@ const extractorTagify = (options) => {
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
function variantTagify(options) {
|
|
32
32
|
const { extraProperties } = options;
|
|
33
33
|
const prefix = `${MARKER}${options.prefix ?? ""}`;
|
|
34
34
|
return {
|
|
@@ -50,7 +50,7 @@ const variantTagify = (options) => {
|
|
|
50
50
|
return handler;
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
|
|
55
55
|
function tagifyPreset(options = {}) {
|
|
56
56
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-tagify",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.8",
|
|
4
4
|
"description": "Tagify preset for UnoCSS",
|
|
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.50.
|
|
36
|
+
"@unocss/core": "0.50.8"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|