@unocss/transformer-attributify-jsx 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.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/package.json +2 -2
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SourceCodeTransformer } from '@unocss/core';
|
|
2
|
+
|
|
3
|
+
type FilterPattern = Array<string | RegExp> | string | RegExp | null;
|
|
4
|
+
interface TransformerAttributifyJsxOptions {
|
|
5
|
+
/**
|
|
6
|
+
* the list of attributes to ignore
|
|
7
|
+
* @default []
|
|
8
|
+
*/
|
|
9
|
+
blocklist?: (string | RegExp)[];
|
|
10
|
+
/**
|
|
11
|
+
* Regex of modules to be included from processing
|
|
12
|
+
* @default [/\.[jt]sx$/, /\.mdx$/]
|
|
13
|
+
*/
|
|
14
|
+
include?: FilterPattern;
|
|
15
|
+
/**
|
|
16
|
+
* Regex of modules to exclude from processing
|
|
17
|
+
*
|
|
18
|
+
* @default []
|
|
19
|
+
*/
|
|
20
|
+
exclude?: FilterPattern;
|
|
21
|
+
}
|
|
22
|
+
declare function transformerAttributifyJsx(options?: TransformerAttributifyJsxOptions): SourceCodeTransformer;
|
|
23
|
+
|
|
24
|
+
export { FilterPattern, TransformerAttributifyJsxOptions, transformerAttributifyJsx as default };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SourceCodeTransformer } from '@unocss/core';
|
|
2
|
+
|
|
3
|
+
type FilterPattern = Array<string | RegExp> | string | RegExp | null;
|
|
4
|
+
interface TransformerAttributifyJsxOptions {
|
|
5
|
+
/**
|
|
6
|
+
* the list of attributes to ignore
|
|
7
|
+
* @default []
|
|
8
|
+
*/
|
|
9
|
+
blocklist?: (string | RegExp)[];
|
|
10
|
+
/**
|
|
11
|
+
* Regex of modules to be included from processing
|
|
12
|
+
* @default [/\.[jt]sx$/, /\.mdx$/]
|
|
13
|
+
*/
|
|
14
|
+
include?: FilterPattern;
|
|
15
|
+
/**
|
|
16
|
+
* Regex of modules to exclude from processing
|
|
17
|
+
*
|
|
18
|
+
* @default []
|
|
19
|
+
*/
|
|
20
|
+
exclude?: FilterPattern;
|
|
21
|
+
}
|
|
22
|
+
declare function transformerAttributifyJsx(options?: TransformerAttributifyJsxOptions): SourceCodeTransformer;
|
|
23
|
+
|
|
24
|
+
export { FilterPattern, TransformerAttributifyJsxOptions, transformerAttributifyJsx as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-attributify-jsx",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
4
4
|
"description": "Support valueless attributify in JSX/TSX.",
|
|
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
|
"devDependencies": {
|
|
39
39
|
"magic-string": "^0.30.2"
|