@kit-data-manager/pid-component
Version:
The PID-Component is a web component that can be used to evaluate and display FAIR Digital Objects, PIDs, ORCiDs, and possibly other identifiers in a user-friendly way. It is easily extensible to support other identifier types.
11 lines (10 loc) • 756 B
TypeScript
export declare function getAriaLabel(isCopied: boolean, label?: string): string;
export declare function getButtonText(isCopied: boolean): string;
export declare function getButtonTitle(isCopied: boolean, label?: string): string;
export declare function isDarkModeEnabled(parent: Element | null): boolean;
export declare function getButtonClasses(copied: boolean, isDarkMode: boolean): string;
export declare function getHostClasses(): string;
export declare function getSrOnlyText(): string;
export declare const DEFAULT_LABEL = "content";
export declare const COPY_SUCCESS_DURATION_MS = 1500;
export declare const FALLBACK_TEXTAREA_STYLE = "position:fixed;top:0;left:0;width:2em;height:2em;padding:0;border:none;outline:none;box-shadow:none;opacity:0;";