index.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. /** Component only token. Which will handle additional calculation of alias token */
  3. export interface ComponentToken {
  4. /**
  5. * @desc 标签背景色
  6. * @descEN Background color of label
  7. */
  8. labelBg: string;
  9. /**
  10. * @desc 标签文字颜色
  11. * @descEN Text color of label
  12. */
  13. labelColor: string;
  14. /**
  15. * @desc 标题文字颜色
  16. * @descEN Text color of title
  17. */
  18. titleColor: string;
  19. /**
  20. * @desc 标题下间距
  21. * @descEN Bottom margin of title
  22. */
  23. titleMarginBottom: number;
  24. /**
  25. * @desc 子项下间距
  26. * @descEN Bottom padding of item
  27. */
  28. itemPaddingBottom: number;
  29. /**
  30. * @desc 子项结束间距
  31. * @descEN End padding of item
  32. */
  33. itemPaddingEnd: number;
  34. /**
  35. * @desc 冒号右间距
  36. * @descEN Right margin of colon
  37. */
  38. colonMarginRight: number;
  39. /**
  40. * @desc 冒号左间距
  41. * @descEN Left margin of colon
  42. */
  43. colonMarginLeft: number;
  44. /**
  45. * @desc 内容区域文字颜色
  46. * @descEN Text color of content
  47. */
  48. contentColor: string;
  49. /**
  50. * @desc 额外区域文字颜色
  51. * @descEN Text color of extra area
  52. */
  53. extraColor: string;
  54. }
  55. export declare const prepareComponentToken: GetDefaultToken<'Descriptions'>;
  56. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  57. export default _default;