Urara-Blog/node_modules/.pnpm-store/v3/files/0e/9f07bd0cc591a408e25cd5c0113eae8e3dde8f3efb420f0e9b9dfd4fac7bff7cc2d39b3f70683b66519e86279f5ab83b17e62b56ca38b4b82ee498be6b3c60
2022-08-14 01:14:53 +08:00

61 lines
2.5 KiB
Text

import { PresetOptions, AutoCompleteExtractor, Extractor, VariantObject, Preset } from '@unocss/core';
interface AttributifyOptions extends PresetOptions {
/**
* Only generate CSS for attributify or class
*
* @default false
*/
strict?: boolean;
/**
* @default 'un-'
*/
prefix?: string;
/**
* Only match for prefixed attributes
*
* @default false
*/
prefixedOnly?: boolean;
/**
* Support matching non-valued attributes
*
* For example
* ```html
* <div mt-2 />
* ```
*
* @default true
*/
nonValuedAttribute?: boolean;
/**
* A list of attributes to be ignored from extracting.
*/
ignoreAttributes?: string[];
/**
* Non-valued attributes will also match if the actual value represented in DOM is `true`.
* This option exists for supporting frameworks that encodes non-valued attributes as `true`.
* Enabling this option will break rules that ends with `true`.
*
* @default false
*/
trueToNonValued?: boolean;
}
declare const autocompleteExtractorAttributify: AutoCompleteExtractor;
declare const defaultIgnoreAttributes: string[];
declare const extractorAttributify: (options?: AttributifyOptions) => Extractor;
declare const variantsRE: RegExp;
declare const variantAttributify: (options?: AttributifyOptions) => VariantObject;
declare type UtilityNames = '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';
declare type VariantNames = 'active' | 'after' | 'all' | 'before' | 'child' | 'dark' | 'enabled' | 'first' | 'focus' | 'hover' | 'last' | 'lg' | 'light' | 'md' | 'root' | 'sm' | 'xl' | 'xxl';
declare type AttributifyNames<Prefix extends string = ''> = `${Prefix}${UtilityNames}` | `${Prefix}${VariantNames}` | `${Prefix}${VariantNames}:${UtilityNames}`;
interface AttributifyAttributes extends Partial<Record<AttributifyNames, string | boolean>> {
}
declare const preset: (options?: AttributifyOptions) => Preset;
export { AttributifyAttributes, AttributifyNames, AttributifyOptions, UtilityNames, VariantNames, autocompleteExtractorAttributify, preset as default, defaultIgnoreAttributes, extractorAttributify, variantAttributify, variantsRE };