UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

70 lines 3.1 kB
export function getUniqueString(prefix?: string): string; export function getRandomElement(array: any, seed: string): any; export function javaHashCode(str: string): number; export function getRandomInt(max: number): number; export function formatMessages(messages: any): any; export function filterFormattedMessages(formattedMessages: any): any; export function getValidationState(formattedMessages: any): string | null; export function hasFormattedMessageOfType(formattedMessages: any, messageType: any): any; export function findFirstFocusableNode(element: any): any; export function hasSlotContent(slot: any, slotProps?: {}): any; export function removeClassStyleAttrs(attrs: any): any; export function addClassStyleAttrs(attrs: any): { class?: undefined; style?: undefined; } | { class: any; style: any; }; export function debounce(func: any, timeout?: number): void; export function isOutOfViewPort(element: HTMLElement): Object; export function getPhoneNumberRegex(minLength?: number, maxLength?: number): RegExp; export function isPhoneNumber(input: string | number): boolean; export function isURL(input: string): boolean; export function isEmailAddress(input: string): boolean; export function safeConcatStrings(elements: any[]): string; export function capitalizeFirstLetter(str: string, locale?: string): string; export function warnIfUnmounted(componentRef: HTMLElement, componentName: string): void; export function disableRootScrolling(rootElement?: HTMLElement): void; export function enableRootScrolling(rootElement?: HTMLElement): void; export function toFluentKeyString(text: any): string; export function htmlFragment(props: any): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, { [key: string]: any; }>; export function flushPromises(): Promise<any>; export function kebabCaseToPascalCase(string: any): string; export function pascalCaseToKebabCase(string: any): string; export function extractVueListeners(attrs: Object): Object; export function extractNonListeners(attrs: Object): Object; export function returnFirstEl(el: any): HTMLElement; export const linkRegex: RegExp; declare namespace _default { export { getUniqueString }; export { getRandomElement }; export { getRandomInt }; export { formatMessages }; export { filterFormattedMessages }; export { hasFormattedMessageOfType }; export { getValidationState }; export { htmlFragment }; export { flushPromises }; export { kebabCaseToPascalCase }; export { extractVueListeners }; export { extractNonListeners }; export { removeClassStyleAttrs }; export { addClassStyleAttrs }; export { returnFirstEl }; export { debounce }; export { isOutOfViewPort }; export { getPhoneNumberRegex }; export { linkRegex }; export { isEmailAddress }; export { isPhoneNumber }; export { isURL }; export { safeConcatStrings }; export { capitalizeFirstLetter }; export { disableRootScrolling }; export { enableRootScrolling }; } export default _default; //# sourceMappingURL=index.d.ts.map