@unocss/preset-tagify 66.6.6 → 66.6.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.d.mts +2 -2
- package/dist/index.mjs +2 -7
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _unocss_core0 from "@unocss/core";
|
|
1
|
+
import * as _$_unocss_core0 from "@unocss/core";
|
|
2
2
|
import { Extractor, VariantObject } from "@unocss/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types.d.ts
|
|
@@ -35,6 +35,6 @@ declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
|
35
35
|
/**
|
|
36
36
|
* @see https://unocss.dev/presets/tagify
|
|
37
37
|
*/
|
|
38
|
-
declare const presetTagify: _unocss_core0.PresetFactory<object, TagifyOptions>;
|
|
38
|
+
declare const presetTagify: _$_unocss_core0.PresetFactory<object, TagifyOptions>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { MARKER, TagifyOptions, presetTagify as default, presetTagify, extractorTagify, htmlTagRE, variantTagify };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { definePreset } from "@unocss/core";
|
|
2
|
-
|
|
3
2
|
//#region src/extractor.ts
|
|
4
3
|
const MARKER = "__TAGIFY__";
|
|
5
4
|
const htmlTagRE = /<([\w:-]+)/g;
|
|
@@ -24,7 +23,6 @@ function extractorTagify(options) {
|
|
|
24
23
|
}
|
|
25
24
|
};
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
27
|
//#region src/variant.ts
|
|
30
28
|
function variantTagify(options) {
|
|
@@ -37,7 +35,7 @@ function variantTagify(options) {
|
|
|
37
35
|
const matcher = input.slice(prefix.length);
|
|
38
36
|
const handler = {
|
|
39
37
|
matcher,
|
|
40
|
-
selector: (i) => i.slice(
|
|
38
|
+
selector: (i) => i.slice(11)
|
|
41
39
|
};
|
|
42
40
|
if (extraProperties) if (typeof extraProperties === "function") handler.body = (entries) => [...entries, ...Object.entries(extraProperties(matcher) ?? {})];
|
|
43
41
|
else handler.body = (entries) => [...entries, ...Object.entries(extraProperties)];
|
|
@@ -45,7 +43,6 @@ function variantTagify(options) {
|
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
}
|
|
48
|
-
|
|
49
46
|
//#endregion
|
|
50
47
|
//#region src/index.ts
|
|
51
48
|
/**
|
|
@@ -60,7 +57,5 @@ const presetTagify = definePreset((options = {}) => {
|
|
|
60
57
|
extractorDefault: defaultExtractor ? void 0 : false
|
|
61
58
|
};
|
|
62
59
|
});
|
|
63
|
-
var src_default = presetTagify;
|
|
64
|
-
|
|
65
60
|
//#endregion
|
|
66
|
-
export { MARKER,
|
|
61
|
+
export { MARKER, presetTagify as default, presetTagify, extractorTagify, htmlTagRE, variantTagify };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-tagify",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.8",
|
|
5
5
|
"description": "Tagify preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@unocss/core": "66.6.
|
|
32
|
+
"@unocss/core": "66.6.8"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsdown",
|