placementArrow.d.ts 740 B

12345678910111213141516171819
  1. import type { CSSInterpolation } from '../_util/cssinjs';
  2. import type { AliasToken } from '../theme/internal';
  3. import type { TokenWithCommonCls } from '../theme/util/genComponentStyleHook';
  4. export declare const MAX_VERTICAL_CONTENT_RADIUS = 8;
  5. export declare function getArrowOffset(options: {
  6. sizePopupArrow: number;
  7. contentRadius: number;
  8. borderRadiusOuter: number;
  9. limitVerticalRadius?: boolean;
  10. }): {
  11. dropdownArrowOffset: number;
  12. dropdownArrowOffsetVertical: number;
  13. };
  14. export default function getArrowStyle<Token extends TokenWithCommonCls<AliasToken>>(token: Token, options: {
  15. colorBg: string;
  16. showArrowCls?: string;
  17. contentRadius?: number;
  18. limitVerticalRadius?: boolean;
  19. }): CSSInterpolation;