@unocss/preset-attributify 0.45.13 → 0.45.18
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.ts +15 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -50,12 +50,23 @@ declare const extractorAttributify: (options?: AttributifyOptions) => Extractor;
|
|
|
50
50
|
declare const variantsRE: RegExp;
|
|
51
51
|
declare const variantAttributify: (options?: AttributifyOptions) => VariantObject;
|
|
52
52
|
|
|
53
|
-
declare type
|
|
54
|
-
declare type
|
|
55
|
-
|
|
53
|
+
declare type TwoStringsCompositionPrefix = 'm' | 'p';
|
|
54
|
+
declare type TwoStringsCompositionSuffix = 'r' | 'b' | 'l' | 't' | 'a';
|
|
55
|
+
/** Some words can compose with two strings to become a complete unocss rule such as ha, mr, mb */
|
|
56
|
+
declare type TwoStringsComposition = `${TwoStringsCompositionPrefix}${TwoStringsCompositionSuffix}` | 'ha' | 'wa';
|
|
57
|
+
/** Some words can be a complete unocss rule by itself */
|
|
58
|
+
declare type SpecialSingleWord = 'container' | 'flex' | 'block' | 'inline' | 'block' | 'table' | 'isolate' | 'absolute' | 'relative' | 'fixed' | 'sticky' | 'static' | 'visible' | 'invisible' | 'grow' | 'shrink' | 'antialiased' | 'italic' | 'ordinal' | 'overline' | 'underline' | 'uppercase' | 'lowercase' | 'capitalize' | 'truncate' | 'border' | 'rounded' | 'outline' | 'ring' | 'shadow' | 'blur' | 'grayscale' | 'invert' | 'sepia' | 'transition' | 'resize' | 'transform' | 'filter';
|
|
59
|
+
declare type StringNumberCompositionPrefix = 'op' | 'opacity' | 'fw' | 'p' | 'm' | 'w' | 'h' | 'z';
|
|
60
|
+
/** Some words can be a complete unocss rule by compose a string and a number, such as op80, fw300, p2, p10px */
|
|
61
|
+
declare type StringNumberComposition = `${StringNumberCompositionPrefix}${number}${'px' | ''}`;
|
|
62
|
+
declare type PseudoPrefix = 'active' | 'before' | 'after' | 'dark' | 'light' | 'first' | 'last' | 'focus' | 'hover' | 'link' | 'root' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'enabled' | 'disabled' | 'all' | 'children';
|
|
63
|
+
/** Some words can be used to separate utilities, such as font="mono light", text="sm white" */
|
|
64
|
+
declare type SeparateEnabled = 'align' | 'animate' | 'backdrop' | 'bg' | 'blend' | 'border' | 'box' | 'container' | 'content' | 'cursor' | 'display' | 'divide' | 'filter' | 'flex' | 'font' | 'gap' | 'gradient' | 'grid' | 'h' | 'icon' | 'justify' | 'list' | 'm' | 'opacity' | 'order' | 'outline' | 'overflow' | 'p' | 'place' | 'pos' | 'ring' | 'select' | 'shadow' | 'space' | 'table' | 'text' | 'transform' | 'transition' | 'underline' | 'w' | 'z' | PseudoPrefix;
|
|
65
|
+
declare type BasicAttributes = StringNumberComposition | SpecialSingleWord | TwoStringsComposition | SeparateEnabled;
|
|
66
|
+
declare type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}` | `${Prefix}${PseudoPrefix}:${BasicAttributes}`;
|
|
56
67
|
interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {
|
|
57
68
|
}
|
|
58
69
|
|
|
59
70
|
declare const preset: (options?: AttributifyOptions) => Preset;
|
|
60
71
|
|
|
61
|
-
export { AttributifyAttributes, AttributifyNames, AttributifyOptions,
|
|
72
|
+
export { AttributifyAttributes, AttributifyNames, AttributifyOptions, BasicAttributes, PseudoPrefix, SeparateEnabled, SpecialSingleWord, StringNumberComposition, StringNumberCompositionPrefix, TwoStringsComposition, TwoStringsCompositionPrefix, TwoStringsCompositionSuffix, autocompleteExtractorAttributify, preset as default, defaultIgnoreAttributes, extractorAttributify, variantAttributify, variantsRE };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-attributify",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.18",
|
|
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.45.
|
|
36
|
+
"@unocss/core": "0.45.18"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|