@unocss/preset-attributify 0.48.4 → 0.49.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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -119,7 +119,7 @@ const strippedPrefixes = [
|
|
|
119
119
|
const splitterRE = /[\s'"`;]+/g;
|
|
120
120
|
const elementRE = /<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs;
|
|
121
121
|
const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms;
|
|
122
|
-
const defaultIgnoreAttributes = ["placeholder"];
|
|
122
|
+
const defaultIgnoreAttributes = ["placeholder", "fill", "opacity"];
|
|
123
123
|
const extractorAttributify = (options) => {
|
|
124
124
|
const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes;
|
|
125
125
|
const nonValuedAttribute = options?.nonValuedAttribute ?? true;
|
package/dist/index.mjs
CHANGED
|
@@ -115,7 +115,7 @@ const strippedPrefixes = [
|
|
|
115
115
|
const splitterRE = /[\s'"`;]+/g;
|
|
116
116
|
const elementRE = /<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs;
|
|
117
117
|
const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms;
|
|
118
|
-
const defaultIgnoreAttributes = ["placeholder"];
|
|
118
|
+
const defaultIgnoreAttributes = ["placeholder", "fill", "opacity"];
|
|
119
119
|
const extractorAttributify = (options) => {
|
|
120
120
|
const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes;
|
|
121
121
|
const nonValuedAttribute = options?.nonValuedAttribute ?? true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-attributify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Attributify 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.49.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|