index.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import type { CSSProperties } from 'react';
  2. import type { GetDefaultToken } from '../../theme/internal';
  3. export interface ComponentToken {
  4. /**
  5. * @desc 内容宽度
  6. * @descEN Width of content
  7. */
  8. contentWidth: number | string;
  9. /**
  10. * @desc 大号列表项内间距
  11. * @descEN Padding of large item
  12. */
  13. itemPaddingLG: string;
  14. /**
  15. * @desc 小号列表项内间距
  16. * @descEN Padding of small item
  17. */
  18. itemPaddingSM: string;
  19. /**
  20. * @desc 列表项内间距
  21. * @descEN Padding of item
  22. */
  23. itemPadding: string;
  24. /**
  25. * @desc 头部区域背景色
  26. * @descEN Background color of header
  27. */
  28. headerBg: string;
  29. /**
  30. * @desc 底部区域背景色
  31. * @descEN Background color of footer
  32. */
  33. footerBg: string;
  34. /**
  35. * @desc 空文本内边距
  36. * @descEN Padding of empty text
  37. */
  38. emptyTextPadding: CSSProperties['padding'];
  39. /**
  40. * @desc Meta 下间距
  41. * @descEN Margin bottom of meta
  42. */
  43. metaMarginBottom: CSSProperties['marginBottom'];
  44. /**
  45. * @desc 头像右间距
  46. * @descEN Right margin of avatar
  47. */
  48. avatarMarginRight: CSSProperties['marginRight'];
  49. /**
  50. * @desc 标题下间距
  51. * @descEN Margin bottom of title
  52. */
  53. titleMarginBottom: CSSProperties['marginBottom'];
  54. /**
  55. * @desc 描述文字大小
  56. * @descEN Font size of description
  57. */
  58. descriptionFontSize: number;
  59. }
  60. export declare const prepareComponentToken: GetDefaultToken<'List'>;
  61. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  62. export default _default;