@unocss/preset-attributify 66.10.4 → 66.10.5

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +17 -17
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AutoCompleteExtractor, Extractor, PresetOptions, VariantObject } from "@unocss/core";
2
2
  //#region src/types.d.ts
3
- interface AttributifyOptions extends PresetOptions {
3
+ export interface AttributifyOptions extends PresetOptions {
4
4
  /**
5
5
  * Only generate CSS for attributify or class
6
6
  *
@@ -43,29 +43,29 @@ interface AttributifyOptions extends PresetOptions {
43
43
  }
44
44
  //#endregion
45
45
  //#region src/autocomplete.d.ts
46
- declare function autocompleteExtractorAttributify(options?: AttributifyOptions): AutoCompleteExtractor;
46
+ export declare function autocompleteExtractorAttributify(options?: AttributifyOptions): AutoCompleteExtractor;
47
47
  //#endregion
48
48
  //#region src/extractor.d.ts
49
- declare const defaultIgnoreAttributes: string[];
50
- declare function extractorAttributify(options?: AttributifyOptions): Extractor;
49
+ export declare const defaultIgnoreAttributes: string[];
50
+ export declare function extractorAttributify(options?: AttributifyOptions): Extractor;
51
51
  //#endregion
52
52
  //#region src/jsx.d.ts
53
- type TwoStringsCompositionPrefix = 'm' | 'p';
54
- type TwoStringsCompositionSuffix = 'r' | 'b' | 'l' | 't' | 'a' | 'x' | 'y';
53
+ export type TwoStringsCompositionPrefix = 'm' | 'p';
54
+ export type TwoStringsCompositionSuffix = 'r' | 'b' | 'l' | 't' | 'a' | 'x' | 'y';
55
55
  /** Some words can compose with two strings to become a complete unocss rule such as ha, mr, mb */
56
- type TwoStringsComposition = `${TwoStringsCompositionPrefix}${TwoStringsCompositionSuffix}` | 'ha' | 'wa';
56
+ export type TwoStringsComposition = `${TwoStringsCompositionPrefix}${TwoStringsCompositionSuffix}` | 'ha' | 'wa';
57
57
  /** Some words can be a complete unocss rule by itself */
58
- type SpecialSingleWord = 'container' | 'flex' | 'block' | 'inline' | '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
- type PseudoPrefix = 'active' | 'before' | 'after' | 'dark' | 'light' | 'first' | 'last' | 'focus' | 'hover' | 'link' | 'print' | 'root' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'enabled' | 'disabled' | 'all' | 'children';
58
+ export type SpecialSingleWord = 'container' | 'flex' | 'block' | 'inline' | '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
+ export type PseudoPrefix = 'active' | 'before' | 'after' | 'dark' | 'light' | 'first' | 'last' | 'focus' | 'hover' | 'link' | 'print' | 'root' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'enabled' | 'disabled' | 'all' | 'children';
60
60
  /** Some words can be used to separate utilities, such as font="mono light", text="sm white" */
61
- type SeparateEnabled = 'align' | 'animate' | 'backdrop' | 'bg' | 'blend' | 'border' | 'box' | 'container' | 'content' | 'cursor' | 'display' | 'divide' | 'filter' | 'flex' | 'font' | 'fw' | 'gap' | 'gradient' | 'grid' | 'h' | 'icon' | 'items' | 'justify' | 'list' | 'm' | 'op' | 'opacity' | 'order' | 'outline' | 'overflow' | 'p' | 'place' | 'pos' | 'position' | 'ring' | 'select' | 'shadow' | 'size' | 'space' | 'table' | 'text' | 'transform' | 'transition' | 'underline' | 'w' | 'z' | PseudoPrefix;
62
- type BasicAttributes = SpecialSingleWord | TwoStringsComposition | SeparateEnabled;
63
- type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}` | `${Prefix}${PseudoPrefix}:${BasicAttributes}`;
64
- interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {}
61
+ export type SeparateEnabled = 'align' | 'animate' | 'backdrop' | 'bg' | 'blend' | 'border' | 'box' | 'container' | 'content' | 'cursor' | 'display' | 'divide' | 'filter' | 'flex' | 'font' | 'fw' | 'gap' | 'gradient' | 'grid' | 'h' | 'icon' | 'items' | 'justify' | 'list' | 'm' | 'op' | 'opacity' | 'order' | 'outline' | 'overflow' | 'p' | 'place' | 'pos' | 'position' | 'ring' | 'select' | 'shadow' | 'size' | 'space' | 'table' | 'text' | 'transform' | 'transition' | 'underline' | 'w' | 'z' | PseudoPrefix;
62
+ export type BasicAttributes = SpecialSingleWord | TwoStringsComposition | SeparateEnabled;
63
+ export type AttributifyNames<Prefix extends string = ''> = `${Prefix}${BasicAttributes}` | `${Prefix}${PseudoPrefix}:${BasicAttributes}`;
64
+ export interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {}
65
65
  //#endregion
66
66
  //#region src/variant.d.ts
67
- declare const variantsRE: RegExp;
68
- declare function variantAttributify(options?: AttributifyOptions): VariantObject;
67
+ export declare const variantsRE: RegExp;
68
+ export declare function variantAttributify(options?: AttributifyOptions): VariantObject;
69
69
  //#endregion
70
70
  //#region src/index.d.ts
71
71
  /**
@@ -87,6 +87,6 @@ declare function variantAttributify(options?: AttributifyOptions): VariantObject
87
87
  *
88
88
  * @see https://unocss.dev/presets/attributify
89
89
  */
90
- declare const presetAttributify: import("@unocss/core").PresetFactory<object, AttributifyOptions>;
90
+ export declare const presetAttributify: import("@unocss/core").PresetFactory<object, AttributifyOptions>;
91
91
  //#endregion
92
- export { AttributifyAttributes, AttributifyNames, AttributifyOptions, BasicAttributes, PseudoPrefix, SeparateEnabled, SpecialSingleWord, TwoStringsComposition, TwoStringsCompositionPrefix, TwoStringsCompositionSuffix, autocompleteExtractorAttributify, presetAttributify as default, presetAttributify, defaultIgnoreAttributes, extractorAttributify, variantAttributify, variantsRE };
92
+ export { presetAttributify as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
3
  "type": "module",
4
- "version": "66.10.4",
4
+ "version": "66.10.5",
5
5
  "description": "Attributify preset for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@unocss/core": "66.10.4"
32
+ "@unocss/core": "66.10.5"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsdown",