feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
@@ -0,0 +1,22 @@
import { SourceCodeTransformer } from '@unocss/core';
interface TransformerVariantGroupOptions {
/**
* Separators to expand.
*
* ```
* foo-(bar baz) -> foo-bar foo-baz
* ^
* separator
* ```
*
* You may set it to `[':']` for strictness.
*
* @default [':', '-']
* @see https://github.com/unocss/unocss/pull/1231
*/
separators?: (':' | '-')[];
}
declare function transformerVariantGroup(options?: TransformerVariantGroupOptions): SourceCodeTransformer;
export { type TransformerVariantGroupOptions, transformerVariantGroup as default };
@@ -0,0 +1,22 @@
import { SourceCodeTransformer } from '@unocss/core';
interface TransformerVariantGroupOptions {
/**
* Separators to expand.
*
* ```
* foo-(bar baz) -> foo-bar foo-baz
* ^
* separator
* ```
*
* You may set it to `[':']` for strictness.
*
* @default [':', '-']
* @see https://github.com/unocss/unocss/pull/1231
*/
separators?: (':' | '-')[];
}
declare function transformerVariantGroup(options?: TransformerVariantGroupOptions): SourceCodeTransformer;
export { type TransformerVariantGroupOptions, transformerVariantGroup as default };
@@ -0,0 +1,18 @@
import { parseVariantGroup } from '@unocss/core';
function transformerVariantGroup(options = {}) {
return {
name: "@unocss/transformer-variant-group",
enforce: "pre",
transform(s) {
const result = parseVariantGroup(s, options.separators);
return {
get highlightAnnotations() {
return [...result.groupsByOffset.values()].flatMap((group) => group.items);
}
};
}
};
}
export { transformerVariantGroup as default };