2024-06-15 15:41:58 +08:00
|
|
|
import { defaultPrefixCls } from '../../config-provider';
|
2024-07-23 16:45:02 +08:00
|
|
|
import type { GlobalToken } from '../../theme/internal';
|
2023-08-04 11:22:33 +08:00
|
|
|
|
2024-06-15 15:41:58 +08:00
|
|
|
export const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
|
2023-08-04 11:22:33 +08:00
|
|
|
|
|
|
|
export type ShowWaveEffect = (
|
|
|
|
element: HTMLElement,
|
|
|
|
info: {
|
|
|
|
className: string;
|
|
|
|
token: GlobalToken;
|
2024-09-05 11:55:41 +08:00
|
|
|
component?: WaveComponent;
|
2023-08-04 11:22:33 +08:00
|
|
|
event: MouseEvent;
|
|
|
|
hashId: string;
|
|
|
|
},
|
|
|
|
) => void;
|
|
|
|
|
|
|
|
export type ShowWave = (event: MouseEvent) => void;
|
2024-09-05 11:55:41 +08:00
|
|
|
|
|
|
|
export type WaveComponent = 'Tag' | 'Button' | 'Checkbox' | 'Radio' | 'Switch';
|