@unocss/preset-tagify 0.55.7 → 0.56.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/dist/index.cjs +6 -3
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +5 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
const core = require('@unocss/core');
|
|
6
|
+
|
|
5
7
|
const MARKER = "__TAGIFY__";
|
|
6
8
|
const htmlTagRE = /<([\w\d-:]+)/g;
|
|
7
9
|
function extractorTagify(options) {
|
|
@@ -52,7 +54,7 @@ function variantTagify(options) {
|
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
const presetTagify = core.definePreset((options = {}) => {
|
|
56
58
|
const {
|
|
57
59
|
defaultExtractor = true
|
|
58
60
|
} = options;
|
|
@@ -68,10 +70,11 @@ function tagifyPreset(options = {}) {
|
|
|
68
70
|
extractors,
|
|
69
71
|
extractorDefault: defaultExtractor ? void 0 : false
|
|
70
72
|
};
|
|
71
|
-
}
|
|
73
|
+
});
|
|
72
74
|
|
|
73
75
|
exports.MARKER = MARKER;
|
|
74
|
-
exports.default =
|
|
76
|
+
exports.default = presetTagify;
|
|
75
77
|
exports.extractorTagify = extractorTagify;
|
|
76
78
|
exports.htmlTagRE = htmlTagRE;
|
|
79
|
+
exports.presetTagify = presetTagify;
|
|
77
80
|
exports.variantTagify = variantTagify;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface TagifyOptions {
|
|
4
5
|
/**
|
|
@@ -27,6 +28,6 @@ declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
|
27
28
|
|
|
28
29
|
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
30
|
|
|
30
|
-
declare
|
|
31
|
+
declare const presetTagify: _unocss_core.PresetFactory<object, TagifyOptions>;
|
|
31
32
|
|
|
32
|
-
export { MARKER, type TagifyOptions,
|
|
33
|
+
export { MARKER, type TagifyOptions, presetTagify as default, extractorTagify, htmlTagRE, presetTagify, variantTagify };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface TagifyOptions {
|
|
4
5
|
/**
|
|
@@ -27,6 +28,6 @@ declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
|
27
28
|
|
|
28
29
|
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
30
|
|
|
30
|
-
declare
|
|
31
|
+
declare const presetTagify: _unocss_core.PresetFactory<object, TagifyOptions>;
|
|
31
32
|
|
|
32
|
-
export { MARKER, type TagifyOptions,
|
|
33
|
+
export { MARKER, type TagifyOptions, presetTagify as default, extractorTagify, htmlTagRE, presetTagify, variantTagify };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface TagifyOptions {
|
|
4
5
|
/**
|
|
@@ -27,6 +28,6 @@ declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
|
27
28
|
|
|
28
29
|
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
30
|
|
|
30
|
-
declare
|
|
31
|
+
declare const presetTagify: _unocss_core.PresetFactory<object, TagifyOptions>;
|
|
31
32
|
|
|
32
|
-
export { MARKER, type TagifyOptions,
|
|
33
|
+
export { MARKER, type TagifyOptions, presetTagify as default, extractorTagify, htmlTagRE, presetTagify, variantTagify };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { definePreset } from '@unocss/core';
|
|
2
|
+
|
|
1
3
|
const MARKER = "__TAGIFY__";
|
|
2
4
|
const htmlTagRE = /<([\w\d-:]+)/g;
|
|
3
5
|
function extractorTagify(options) {
|
|
@@ -48,7 +50,7 @@ function variantTagify(options) {
|
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
const presetTagify = definePreset((options = {}) => {
|
|
52
54
|
const {
|
|
53
55
|
defaultExtractor = true
|
|
54
56
|
} = options;
|
|
@@ -64,6 +66,6 @@ function tagifyPreset(options = {}) {
|
|
|
64
66
|
extractors,
|
|
65
67
|
extractorDefault: defaultExtractor ? void 0 : false
|
|
66
68
|
};
|
|
67
|
-
}
|
|
69
|
+
});
|
|
68
70
|
|
|
69
|
-
export { MARKER,
|
|
71
|
+
export { MARKER, presetTagify as default, extractorTagify, htmlTagRE, presetTagify, variantTagify };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-tagify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
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.
|
|
36
|
+
"@unocss/core": "0.56.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|