Dashboard sipadu mbip
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839
  1. import * as React from 'react';
  2. export type Omit<T, U> = Pick<T, Exclude<keyof T, keyof U>>;
  3. export type ReplaceProps<Inner extends React.ElementType, P> = Omit<
  4. React.ComponentPropsWithRef<Inner>,
  5. P
  6. > &
  7. P;
  8. export interface BsPrefixProps<As extends React.ElementType> {
  9. as?: As;
  10. bsPrefix?: string;
  11. }
  12. export class BsPrefixComponent<
  13. As extends React.ElementType,
  14. P = {}
  15. > extends React.Component<ReplaceProps<As, BsPrefixProps<As> & P>> {}
  16. // Need to use this instead of typeof Component to get proper type checking.
  17. export type BsPrefixComponentClass<
  18. As extends React.ElementType,
  19. P = {}
  20. > = React.ComponentClass<ReplaceProps<As, BsPrefixProps<As> & P>>;
  21. export type SelectCallback = (
  22. eventKey: string,
  23. e: React.SyntheticEvent<unknown>,
  24. ) => void;
  25. export interface TransitionCallbacks {
  26. onEnter?(node: HTMLElement): any;
  27. onEntered?(node: HTMLElement): any;
  28. onEntering?(node: HTMLElement): any;
  29. onExit?(node: HTMLElement): any;
  30. onExited?(node: HTMLElement): any;
  31. onExiting?(node: HTMLElement): any;
  32. }