UNPKG

@wix/design-system

Version:

@wix/design-system

122 lines 4.33 kB
import React, { PureComponent } from 'react'; import { TextButtonProps } from './TextButton.types'; declare class TextButton extends PureComponent<TextButtonProps> { static displayName: string; static defaultProps: TextButtonProps; button: React.RefObject<HTMLButtonElement>; /** * Sets focus on the element */ focus: () => void; render(): React.JSX.Element; } declare const TextButtonWithDefaultProps: React.ForwardRefExoticComponent<((React.ButtonHTMLAttributes<HTMLButtonElement> & { children?: React.ReactNode; className?: string; skin?: import("./TextButton.types").TextButtonSkin; underline?: import("./TextButton.types").TextButtonUnderline; weight?: import("./TextButton.types").TextButtonWeight; size?: import("./TextButton.types").TextButtonSize; suffixIcon?: import("..").IconElement; prefixIcon?: import("..").IconElement; disabled?: boolean; dataHook?: string; fluid?: boolean; ellipsis?: boolean; showTooltip?: boolean; tooltipProps?: import("..").TooltipCommonProps; ariaLabel?: string; ariaLabelledBy?: string; ariaHaspopup?: string; ariaExpanded?: boolean; ariaControls?: string; ariaActiveDescendant?: string; } & { as?: "button"; onClick?: React.MouseEventHandler<HTMLButtonElement>; } & { wrap?: false | undefined; }) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & { children?: React.ReactNode; className?: string; skin?: import("./TextButton.types").TextButtonSkin; underline?: import("./TextButton.types").TextButtonUnderline; weight?: import("./TextButton.types").TextButtonWeight; size?: import("./TextButton.types").TextButtonSize; suffixIcon?: import("..").IconElement; prefixIcon?: import("..").IconElement; disabled?: boolean; dataHook?: string; fluid?: boolean; ellipsis?: boolean; showTooltip?: boolean; tooltipProps?: import("..").TooltipCommonProps; ariaLabel?: string; ariaLabelledBy?: string; ariaHaspopup?: string; ariaExpanded?: boolean; ariaControls?: string; ariaActiveDescendant?: string; } & { as: "a"; onClick?: React.MouseEventHandler<HTMLAnchorElement>; } & { wrap?: boolean | undefined; }) | Omit<{ children?: React.ReactNode; className?: string; skin?: import("./TextButton.types").TextButtonSkin; underline?: import("./TextButton.types").TextButtonUnderline; weight?: import("./TextButton.types").TextButtonWeight; size?: import("./TextButton.types").TextButtonSize; suffixIcon?: import("..").IconElement; prefixIcon?: import("..").IconElement; disabled?: boolean; dataHook?: string; fluid?: boolean; ellipsis?: boolean; showTooltip?: boolean; tooltipProps?: import("..").TooltipCommonProps; ariaLabel?: string; ariaLabelledBy?: string; ariaHaspopup?: string; ariaExpanded?: boolean; ariaControls?: string; ariaActiveDescendant?: string; } & { [additionalProps: string]: any; as: keyof Omit<HTMLElementTagNameMap, "a" | "button">; onClick?: React.MouseEventHandler<HTMLElement>; } & { wrap?: boolean | undefined; }, "ref"> | Omit<{ children?: React.ReactNode; className?: string; skin?: import("./TextButton.types").TextButtonSkin; underline?: import("./TextButton.types").TextButtonUnderline; weight?: import("./TextButton.types").TextButtonWeight; size?: import("./TextButton.types").TextButtonSize; suffixIcon?: import("..").IconElement; prefixIcon?: import("..").IconElement; disabled?: boolean; dataHook?: string; fluid?: boolean; ellipsis?: boolean; showTooltip?: boolean; tooltipProps?: import("..").TooltipCommonProps; ariaLabel?: string; ariaLabelledBy?: string; ariaHaspopup?: string; ariaExpanded?: boolean; ariaControls?: string; ariaActiveDescendant?: string; } & { [additionalProps: string]: any; as: React.ComponentType<any>; onClick?: React.MouseEventHandler<HTMLElement>; } & { wrap?: boolean | undefined; }, "ref">) & React.RefAttributes<TextButton>> & import("hoist-non-react-statics").NonReactStatics<typeof TextButton, {}>; type TextButtonWithDefaultProps = TextButton; export default TextButtonWithDefaultProps; //# sourceMappingURL=TextButton.d.ts.map