index.d.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import type { SharedComponentToken, SharedInputToken } from '../../input/style/token';
  2. import type { FullToken, GenStyleFn, GetDefaultToken } from '../../theme/internal';
  3. export interface ComponentToken {
  4. /**
  5. * @desc 页码选项背景色
  6. * @descEN Background color of Pagination item
  7. */
  8. itemBg: string;
  9. /**
  10. * @desc 页码尺寸
  11. * @descEN Size of Pagination item
  12. */
  13. itemSize: number;
  14. /**
  15. * @desc 页码激活态背景色
  16. * @descEN Background color of active Pagination item
  17. */
  18. itemActiveBg: string;
  19. /**
  20. * @desc 小号页码尺寸
  21. * @descEN Size of small Pagination item
  22. */
  23. itemSizeSM: number;
  24. /**
  25. * @desc 页码链接背景色
  26. * @descEN Background color of Pagination item link
  27. */
  28. itemLinkBg: string;
  29. /**
  30. * @desc 页码激活态禁用状态背景色
  31. * @descEN Background color of disabled active Pagination item
  32. */
  33. itemActiveBgDisabled: string;
  34. /**
  35. * @desc 页码激活态禁用状态文字颜色
  36. * @descEN Text color of disabled active Pagination item
  37. */
  38. itemActiveColorDisabled: string;
  39. /**
  40. * @desc 输入框背景色
  41. * @descEN Background color of input
  42. */
  43. itemInputBg: string;
  44. /**
  45. * @desc 每页展示数量选择器 top
  46. * @descEN Top of Pagination size changer
  47. */
  48. miniOptionsSizeChangerTop: number;
  49. }
  50. /**
  51. * @desc Pagination 组件的 Token
  52. * @descEN Token for Pagination component
  53. */
  54. export interface PaginationToken extends FullToken<'Pagination'>, SharedComponentToken, SharedInputToken {
  55. /**
  56. * @desc 输入框轮廓偏移量
  57. * @descEN Outline offset of input
  58. */
  59. inputOutlineOffset: number;
  60. /**
  61. * @desc 快速跳转输入框宽度
  62. * @descEN Width of quick jumper input
  63. */
  64. quickJumperInputWidth: number | string;
  65. /**
  66. * @desc 迷你选项横向外边距
  67. * @descEN Horizontal margin of mini options
  68. */
  69. paginationMiniOptionsMarginInlineStart: number | string;
  70. /**
  71. * @desc 迷你快速跳转输入框宽度
  72. * @descEN Width of mini quick jumper input
  73. */
  74. paginationMiniQuickJumperInputWidth: number | string;
  75. /**
  76. * @desc 页码横向内边距
  77. * @descEN Horizontal padding of Pagination item
  78. */
  79. paginationItemPaddingInline: number | string;
  80. /**
  81. * @desc 省略号字母间距
  82. * @descEN Letter spacing of ellipsis
  83. */
  84. paginationEllipsisLetterSpacing: number | string;
  85. /**
  86. * @desc 省略号文本缩进
  87. * @descEN Text indent of ellipsis
  88. */
  89. paginationEllipsisTextIndent: string;
  90. /**
  91. * @desc 斜杠横向外边距
  92. * @descEN Horizontal margin of slash
  93. */
  94. paginationSlashMarginInlineStart: number;
  95. /**
  96. * @desc 斜杠横向外边距
  97. * @descEN Horizontal margin of slash
  98. */
  99. paginationSlashMarginInlineEnd: number;
  100. }
  101. export declare const prepareComponentToken: GetDefaultToken<'Pagination'>;
  102. export declare const prepareToken: (token: Parameters<GenStyleFn<"Pagination">>[0]) => PaginationToken;
  103. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  104. export default _default;