@unocss/preset-attributify 0.55.6 → 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 +2 -2
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -177,7 +177,7 @@ function extractorAttributify(options) {
|
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
const presetAttributify = core.definePreset((options = {}) => {
|
|
181
181
|
options.strict = options.strict ?? false;
|
|
182
182
|
options.prefix = options.prefix ?? "un-";
|
|
183
183
|
options.prefixedOnly = options.prefixedOnly ?? false;
|
|
@@ -203,7 +203,7 @@ function presetAttributify(options = {}) {
|
|
|
203
203
|
},
|
|
204
204
|
extractorDefault: options.strict ? false : void 0
|
|
205
205
|
};
|
|
206
|
-
}
|
|
206
|
+
});
|
|
207
207
|
|
|
208
208
|
exports.autocompleteExtractorAttributify = autocompleteExtractorAttributify;
|
|
209
209
|
exports.default = presetAttributify;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { PresetOptions, AutoCompleteExtractor, Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface AttributifyOptions extends PresetOptions {
|
|
4
5
|
/**
|
|
@@ -67,6 +68,6 @@ type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}
|
|
|
67
68
|
interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
declare
|
|
71
|
+
declare const presetAttributify: _unocss_core.PresetFactory<object, AttributifyOptions>;
|
|
71
72
|
|
|
72
73
|
export { type AttributifyAttributes, type AttributifyNames, type AttributifyOptions, type BasicAttributes, type PseudoPrefix, type SeparateEnabled, type SpecialSingleWord, type StringNumberComposition, type StringNumberCompositionPrefix, type TwoStringsComposition, type TwoStringsCompositionPrefix, type TwoStringsCompositionSuffix, autocompleteExtractorAttributify, presetAttributify as default, defaultIgnoreAttributes, extractorAttributify, presetAttributify, variantAttributify, variantsRE };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { PresetOptions, AutoCompleteExtractor, Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface AttributifyOptions extends PresetOptions {
|
|
4
5
|
/**
|
|
@@ -67,6 +68,6 @@ type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}
|
|
|
67
68
|
interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
declare
|
|
71
|
+
declare const presetAttributify: _unocss_core.PresetFactory<object, AttributifyOptions>;
|
|
71
72
|
|
|
72
73
|
export { type AttributifyAttributes, type AttributifyNames, type AttributifyOptions, type BasicAttributes, type PseudoPrefix, type SeparateEnabled, type SpecialSingleWord, type StringNumberComposition, type StringNumberCompositionPrefix, type TwoStringsComposition, type TwoStringsCompositionPrefix, type TwoStringsCompositionSuffix, autocompleteExtractorAttributify, presetAttributify as default, defaultIgnoreAttributes, extractorAttributify, presetAttributify, variantAttributify, variantsRE };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _unocss_core from '@unocss/core';
|
|
2
|
+
import { PresetOptions, AutoCompleteExtractor, Extractor, VariantObject } from '@unocss/core';
|
|
2
3
|
|
|
3
4
|
interface AttributifyOptions extends PresetOptions {
|
|
4
5
|
/**
|
|
@@ -67,6 +68,6 @@ type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}
|
|
|
67
68
|
interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
declare
|
|
71
|
+
declare const presetAttributify: _unocss_core.PresetFactory<object, AttributifyOptions>;
|
|
71
72
|
|
|
72
73
|
export { type AttributifyAttributes, type AttributifyNames, type AttributifyOptions, type BasicAttributes, type PseudoPrefix, type SeparateEnabled, type SpecialSingleWord, type StringNumberComposition, type StringNumberCompositionPrefix, type TwoStringsComposition, type TwoStringsCompositionPrefix, type TwoStringsCompositionSuffix, autocompleteExtractorAttributify, presetAttributify as default, defaultIgnoreAttributes, extractorAttributify, presetAttributify, variantAttributify, variantsRE };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isAttributifySelector, isValidSelector } from '@unocss/core';
|
|
1
|
+
import { isAttributifySelector, isValidSelector, definePreset } from '@unocss/core';
|
|
2
2
|
|
|
3
3
|
const variantsRE = /^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;
|
|
4
4
|
function variantAttributify(options = {}) {
|
|
@@ -173,7 +173,7 @@ function extractorAttributify(options) {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
const presetAttributify = definePreset((options = {}) => {
|
|
177
177
|
options.strict = options.strict ?? false;
|
|
178
178
|
options.prefix = options.prefix ?? "un-";
|
|
179
179
|
options.prefixedOnly = options.prefixedOnly ?? false;
|
|
@@ -199,6 +199,6 @@ function presetAttributify(options = {}) {
|
|
|
199
199
|
},
|
|
200
200
|
extractorDefault: options.strict ? false : void 0
|
|
201
201
|
};
|
|
202
|
-
}
|
|
202
|
+
});
|
|
203
203
|
|
|
204
204
|
export { autocompleteExtractorAttributify, presetAttributify as default, defaultIgnoreAttributes, extractorAttributify, presetAttributify, variantAttributify, variantsRE };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-attributify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.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.56.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|