Files
NapCatQQ/.pnpm-store/v3/files/9f/c9af1544de569e65c117ce832a4b9b05a2c31c882f5a54244b4ead4b7ca22344f063ffc3bc603a5b75ea4dec31a504848b370104ef6dc63239004765f19ef1
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

425 lines
7.7 KiB
Plaintext

import * as tailwind_variants from 'tailwind-variants';
import { VariantProps } from 'tailwind-variants';
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
/**
* Alert wrapper **Tailwind Variants** component
*
* @example
* ```js
* const {base, mainWrapper, title, description, closeButton, alertIcon} = alert({...})
*
*
* <div className={base()}>
* {alertIcon}
* <div className={mainWrapper()}>
* <div className={title()}>Title</div>
* <div className={description()}>Description</div>
* </div>
* <button>
* // close button
* </button>
* </div>
* ```
*/
declare const alert: tailwind_variants.TVReturnType<{
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}, {
base: string;
mainWrapper: string;
title: string;
description: string;
closeButton: string;
iconWrapper: string;
alertIcon: string;
}, undefined, tailwind_variants_dist_config.TVConfig<{
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}, {
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}>, {
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}, {
base: string;
mainWrapper: string;
title: string;
description: string;
closeButton: string;
iconWrapper: string;
alertIcon: string;
}, tailwind_variants.TVReturnType<{
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}, {
base: string;
mainWrapper: string;
title: string;
description: string;
closeButton: string;
iconWrapper: string;
alertIcon: string;
}, undefined, tailwind_variants_dist_config.TVConfig<{
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}, {
color: {
default: {};
primary: {};
secondary: {};
success: {};
warning: {};
danger: {};
};
variant: {
solid: {};
flat: {};
faded: {
base: string;
};
bordered: {
base: string;
};
};
radius: {
none: {
base: string;
};
sm: {
base: string;
};
md: {
base: string;
};
lg: {
base: string;
};
full: {
base: string;
};
};
hideIcon: {
true: {
iconWrapper: string;
};
};
hideIconWrapper: {
true: {
base: string;
iconWrapper: string;
};
};
hasContent: {
false: {
base: string;
mainWrapper: string;
};
};
}>, unknown, unknown, undefined>>;
type AlertVariantProps = VariantProps<typeof alert>;
type AlertSlots = keyof ReturnType<typeof alert>;
export { AlertSlots, AlertVariantProps, alert };