index.d.ts 1.0 KB

1234567891011121314151617181920212223242526
  1. import type { CSSProperties } from 'react';
  2. import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
  3. export interface ComponentToken {
  4. /**
  5. * @desc 默认内间距
  6. * @descEN Default padding
  7. */
  8. defaultPadding: CSSProperties['padding'];
  9. /**
  10. * @desc 带有描述的内间距
  11. * @descEN Padding with description
  12. */
  13. withDescriptionPadding: CSSProperties['padding'];
  14. /**
  15. * @desc 带有描述时的图标尺寸
  16. * @descEN Icon size with description
  17. */
  18. withDescriptionIconSize: number;
  19. }
  20. type AlertToken = FullToken<'Alert'> & {};
  21. export declare const genBaseStyle: GenerateStyle<AlertToken>;
  22. export declare const genTypeStyle: GenerateStyle<AlertToken>;
  23. export declare const genActionStyle: GenerateStyle<AlertToken>;
  24. export declare const prepareComponentToken: GetDefaultToken<'Alert'>;
  25. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  26. export default _default;