index.d.ts 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /**
  4. * @desc 单选框大小
  5. * @descEN Radio size
  6. */
  7. radioSize: number;
  8. /**
  9. * @desc 单选框圆点大小
  10. * @descEN Size of Radio dot
  11. */
  12. dotSize: number;
  13. /**
  14. * @desc 单选框圆点禁用颜色
  15. * @descEN Color of disabled Radio dot
  16. */
  17. dotColorDisabled: string;
  18. /**
  19. * @desc 单选框按钮背景色
  20. * @descEN Background color of Radio button
  21. */
  22. buttonBg: string;
  23. /**
  24. * @desc 单选框按钮选中背景色
  25. * @descEN Background color of checked Radio button
  26. */
  27. buttonCheckedBg: string;
  28. /**
  29. * @desc 单选框按钮文本颜色
  30. * @descEN Color of Radio button text
  31. */
  32. buttonColor: string;
  33. /**
  34. * @desc 单选框按钮横向内间距
  35. * @descEN Horizontal padding of Radio button
  36. */
  37. buttonPaddingInline: number;
  38. /**
  39. * @desc 单选框按钮选中并禁用时的背景色
  40. * @descEN Background color of checked and disabled Radio button
  41. */
  42. buttonCheckedBgDisabled: string;
  43. /**
  44. * @desc 单选框按钮选中并禁用时的文本颜色
  45. * @descEN Color of checked and disabled Radio button text
  46. */
  47. buttonCheckedColorDisabled: string;
  48. /**
  49. * @desc 单选框实色按钮选中时的文本颜色
  50. * @descEN Color of checked solid Radio button text
  51. */
  52. buttonSolidCheckedColor: string;
  53. /**
  54. * @desc 单选框实色按钮选中时的背景色
  55. * @descEN Background color of checked solid Radio button text
  56. */
  57. buttonSolidCheckedBg: string;
  58. /**
  59. * @desc 单选框实色按钮选中时的悬浮态背景色
  60. * @descEN Background color of checked solid Radio button text when hover
  61. */
  62. buttonSolidCheckedHoverBg: string;
  63. /**
  64. * @desc 单选框实色按钮选中时的激活态背景色
  65. * @descEN Background color of checked solid Radio button text when active
  66. */
  67. buttonSolidCheckedActiveBg: string;
  68. /**
  69. * @desc 单选框右间距
  70. * @descEN Margin right of Radio button
  71. */
  72. wrapperMarginInlineEnd: number;
  73. }
  74. export declare const prepareComponentToken: GetDefaultToken<'Radio'>;
  75. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  76. export default _default;