@unocss/preset-tagify 0.55.1 → 0.55.2
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 +1 -1
- package/dist/index.d.cts +32 -0
- package/dist/index.d.mts +32 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,7 @@ function tagifyPreset(options = {}) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
exports.MARKER = MARKER;
|
|
74
|
-
exports
|
|
74
|
+
exports.default = tagifyPreset;
|
|
75
75
|
exports.extractorTagify = extractorTagify;
|
|
76
76
|
exports.htmlTagRE = htmlTagRE;
|
|
77
77
|
exports.variantTagify = variantTagify;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Extractor, VariantObject, Preset } from '@unocss/core';
|
|
2
|
+
|
|
3
|
+
interface TagifyOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The prefix to use for the tagify variant.
|
|
6
|
+
*/
|
|
7
|
+
prefix?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tags excluded from processing.
|
|
10
|
+
* @default ['b', /^h\d+$/, 'table']
|
|
11
|
+
*/
|
|
12
|
+
excludedTags?: (string | RegExp)[];
|
|
13
|
+
/**
|
|
14
|
+
* Extra CSS properties to apply to matched rules
|
|
15
|
+
*/
|
|
16
|
+
extraProperties?: Record<string, string> | ((matched: string) => Partial<Record<string, string>>);
|
|
17
|
+
/**
|
|
18
|
+
* Enable default extractor
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
defaultExtractor?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const MARKER = "__TAGIFY__";
|
|
25
|
+
declare const htmlTagRE: RegExp;
|
|
26
|
+
declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
27
|
+
|
|
28
|
+
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
|
+
|
|
30
|
+
declare function tagifyPreset(options?: TagifyOptions): Preset;
|
|
31
|
+
|
|
32
|
+
export { MARKER, TagifyOptions, tagifyPreset as default, extractorTagify, htmlTagRE, variantTagify };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Extractor, VariantObject, Preset } from '@unocss/core';
|
|
2
|
+
|
|
3
|
+
interface TagifyOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The prefix to use for the tagify variant.
|
|
6
|
+
*/
|
|
7
|
+
prefix?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Tags excluded from processing.
|
|
10
|
+
* @default ['b', /^h\d+$/, 'table']
|
|
11
|
+
*/
|
|
12
|
+
excludedTags?: (string | RegExp)[];
|
|
13
|
+
/**
|
|
14
|
+
* Extra CSS properties to apply to matched rules
|
|
15
|
+
*/
|
|
16
|
+
extraProperties?: Record<string, string> | ((matched: string) => Partial<Record<string, string>>);
|
|
17
|
+
/**
|
|
18
|
+
* Enable default extractor
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
defaultExtractor?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const MARKER = "__TAGIFY__";
|
|
25
|
+
declare const htmlTagRE: RegExp;
|
|
26
|
+
declare function extractorTagify(options: TagifyOptions): Extractor;
|
|
27
|
+
|
|
28
|
+
declare function variantTagify(options: TagifyOptions): VariantObject;
|
|
29
|
+
|
|
30
|
+
declare function tagifyPreset(options?: TagifyOptions): Preset;
|
|
31
|
+
|
|
32
|
+
export { MARKER, TagifyOptions, tagifyPreset as default, extractorTagify, htmlTagRE, variantTagify };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-tagify",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
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.55.
|
|
36
|
+
"@unocss/core": "0.55.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|