@wix/design-system
Version:
@wix/design-system
110 lines • 5.45 kB
TypeScript
import React from 'react';
import { TextProps } from './Text.types';
import { RenderProps } from '../common/Ellipsis';
export type RawTextProps = TextProps & Required<Pick<RenderProps, 'renderChildren' | 'renderElement'>>;
type DefaultProps = Required<Pick<RawTextProps, 'size' | 'secondary' | 'skin' | 'light' | 'weight' | 'tagName' | 'listStyle' | 'widows' | 'overflowWrap'>>;
export declare const RawTextDefaultProps: DefaultProps;
declare const RawText: React.ForwardRefExoticComponent<((React.HTMLAttributes<HTMLSpanElement> & Omit<import("../common/Ellipsis").EllipsisCommonProps, "size"> & {
dataHook?: string;
tagName?: string;
className?: string;
size?: import("./Text.types").TextSize;
secondary?: boolean;
skin?: import("./Text.types").TextSkin;
light?: boolean;
weight?: import("./Text.types").TextWeight;
listStyle?: import("./Text.types").ListStyle;
tooltipProps?: import("..").TooltipCommonProps;
id?: string;
widows?: boolean;
children?: React.ReactNode;
suffix?: React.ReactNode;
overflowWrap?: import("./Text.types").OverflowWrap;
onEllipsisStateChange?: (isActive: boolean) => void;
} & {
tagName?: "span";
onClick?: React.MouseEventHandler<HTMLElement>;
} & Required<Pick<RenderProps, "renderChildren" | "renderElement">> & Required<Pick<RawTextProps, "listStyle" | "overflowWrap" | "widows" | "light" | "skin" | "size" | "weight" | "tagName" | "secondary">>) | (React.AnchorHTMLAttributes<HTMLAnchorElement> & Omit<import("../common/Ellipsis").EllipsisCommonProps, "size"> & {
dataHook?: string;
tagName?: string;
className?: string;
size?: import("./Text.types").TextSize;
secondary?: boolean;
skin?: import("./Text.types").TextSkin;
light?: boolean;
weight?: import("./Text.types").TextWeight;
listStyle?: import("./Text.types").ListStyle;
tooltipProps?: import("..").TooltipCommonProps;
id?: string;
widows?: boolean;
children?: React.ReactNode;
suffix?: React.ReactNode;
overflowWrap?: import("./Text.types").OverflowWrap;
onEllipsisStateChange?: (isActive: boolean) => void;
} & {
tagName: "a";
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
} & Required<Pick<RenderProps, "renderChildren" | "renderElement">> & Required<Pick<RawTextProps, "listStyle" | "overflowWrap" | "widows" | "light" | "skin" | "size" | "weight" | "tagName" | "secondary">>) | (React.LabelHTMLAttributes<HTMLLabelElement> & Omit<import("../common/Ellipsis").EllipsisCommonProps, "size"> & {
dataHook?: string;
tagName?: string;
className?: string;
size?: import("./Text.types").TextSize;
secondary?: boolean;
skin?: import("./Text.types").TextSkin;
light?: boolean;
weight?: import("./Text.types").TextWeight;
listStyle?: import("./Text.types").ListStyle;
tooltipProps?: import("..").TooltipCommonProps;
id?: string;
widows?: boolean;
children?: React.ReactNode;
suffix?: React.ReactNode;
overflowWrap?: import("./Text.types").OverflowWrap;
onEllipsisStateChange?: (isActive: boolean) => void;
} & {
tagName: "label";
} & Required<Pick<RenderProps, "renderChildren" | "renderElement">> & Required<Pick<RawTextProps, "listStyle" | "overflowWrap" | "widows" | "light" | "skin" | "size" | "weight" | "tagName" | "secondary">>) | Omit<Omit<import("../common/Ellipsis").EllipsisCommonProps, "size"> & {
dataHook?: string;
tagName?: string;
className?: string;
size?: import("./Text.types").TextSize;
secondary?: boolean;
skin?: import("./Text.types").TextSkin;
light?: boolean;
weight?: import("./Text.types").TextWeight;
listStyle?: import("./Text.types").ListStyle;
tooltipProps?: import("..").TooltipCommonProps;
id?: string;
widows?: boolean;
children?: React.ReactNode;
suffix?: React.ReactNode;
overflowWrap?: import("./Text.types").OverflowWrap;
onEllipsisStateChange?: (isActive: boolean) => void;
} & {
[additionalProps: string]: any;
tagName: keyof Omit<HTMLElementTagNameMap, "a" | "span" | "label">;
onClick?: React.MouseEventHandler<HTMLElement>;
} & Required<Pick<RenderProps, "renderChildren" | "renderElement">> & Required<Pick<RawTextProps, "listStyle" | "overflowWrap" | "widows" | "light" | "skin" | "size" | "weight" | "tagName" | "secondary">>, "ref"> | Omit<Omit<import("../common/Ellipsis").EllipsisCommonProps, "size"> & {
dataHook?: string;
tagName?: string;
className?: string;
size?: import("./Text.types").TextSize;
secondary?: boolean;
skin?: import("./Text.types").TextSkin;
light?: boolean;
weight?: import("./Text.types").TextWeight;
listStyle?: import("./Text.types").ListStyle;
tooltipProps?: import("..").TooltipCommonProps;
id?: string;
widows?: boolean;
children?: React.ReactNode;
suffix?: React.ReactNode;
overflowWrap?: import("./Text.types").OverflowWrap;
onEllipsisStateChange?: (isActive: boolean) => void;
} & {
[additionalProps: string]: any;
tagName: React.ComponentType<any>;
onClick?: React.MouseEventHandler<HTMLElement>;
} & Required<Pick<RenderProps, "renderChildren" | "renderElement">> & Required<Pick<RawTextProps, "listStyle" | "overflowWrap" | "widows" | "light" | "skin" | "size" | "weight" | "tagName" | "secondary">>, "ref">) & React.RefAttributes<HTMLElement>>;
export default RawText;
//# sourceMappingURL=RawText.d.ts.map