import { DemoData } from "../../global/demo"; import { CopyTextViewProps } from "../views/copy-text-view"; /** * @uiName Share Code * @validParents ["sqm-portal-container","div","sqm-divided-layout","sqm-brand","template","sqb-program-section","sqb-conditional-section", "sqm-titled-section"] * @exampleGroup Sharing * @example Share Code - * @csspart icon-button-base - The copy icon button base * @csspart primarybutton-base - The primary button base * @csspart secondarybutton-base - The secondary button base */ export declare class ShareCode { /** * The ID of the program that should generate the code. Defaults to the program ID in context where this widget is loaded. * * @uiName Program ID * @uiWidget programSelector */ programId?: string; /** * Shown inside a tooltip after someone has successfully copied the link to their clipboard * * @uiName Tooltip text */ tooltiptext: string; /** * The number of milliseconds that the tooltip appears for * * @uiName Tooltip lifespan */ tooltiplifespan: number; /** * Change the text alignment * * @uiName Share code alignment * @uiType string * @uiEnum ["left", "center", "right"] * @uiEnumNames ["Left", "Center", "Right"] * @uiGroup Style */ textAlign: "left" | "center" | "right"; /** * Background color of share link container * @uiName Background color * @uiWidget color * @format color * @uiGroup Style */ backgroundColor?: string; /** * Color of the text and copy icon * @uiName Text color * @uiWidget color * @format color * @uiGroup Style */ textColor?: string; /** * The border radius on the share link container (in pixels) * @uiName Border Radius * @uiType number * @uiGroup Style */ borderRadius?: string; /** * @uiName Copy button label */ copyButtonLabel?: string; /** * Set the copy button style and placement * * @uiName Style * @uiType string * @uiEnum ["icon", "button-outside", "button-below"] * @uiEnumNames ["Icon", "Button outside", "Button below"] * @uiGroup Style */ buttonStyle?: "icon" | "button-outside" | "button-below"; /** * The type of the button that is used (primary or secondary). * @uiName Button Type * @uiType string * @uiEnum ["primary", "secondary"] * @uiEnumNames ["Primary", "Secondary"] * @uiGroup Style */ buttonType?: "primary" | "secondary"; /** * Border color of share link container * @uiName Border color * @uiWidget color * @format color * @uiGroup Style */ borderColor?: string; /** * @undocumented * @uiType object */ demoData?: DemoData; constructor(); disconnectedCallback(): void; render(): any; }