index.d.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import type { ArrowOffsetToken } from '../../style/placementArrow';
  2. import type { ArrowToken } from '../../style/roundedArrow';
  3. import type { FullToken, GetDefaultToken } from '../../theme/internal';
  4. export interface ComponentToken extends ArrowToken, ArrowOffsetToken {
  5. /**
  6. * @deprecated Please use `titleMinWidth` instead
  7. * @desc 气泡卡片宽度
  8. * @descEN Width of Popover
  9. */
  10. width?: number | string;
  11. /**
  12. * @deprecated Please use `titleMinWidth` instead
  13. * @desc 气泡卡片最小宽度
  14. * @descEN Min width of Popover
  15. */
  16. minWidth?: number | string;
  17. /**
  18. * @desc 气泡卡片标题最小宽度
  19. * @descEN Min width of Popover title
  20. */
  21. titleMinWidth: number | string;
  22. /**
  23. * @desc 气泡卡片 z-index
  24. * @descEN z-index of Popover
  25. */
  26. zIndexPopup: number;
  27. }
  28. /**
  29. * @desc Popover 组件的 Token
  30. * @descEN Token for Popover component
  31. */
  32. export type PopoverToken = FullToken<'Popover'> & {
  33. /**
  34. * @desc 气泡卡片背景色
  35. * @descEN Background color of Popover
  36. */
  37. popoverBg: string;
  38. /**
  39. * @desc 气泡卡片文字颜色
  40. * @descEN Text color of Popover
  41. */
  42. popoverColor: string;
  43. };
  44. export declare const prepareComponentToken: GetDefaultToken<'Popover'>;
  45. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  46. export default _default;