UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

54 lines (53 loc) 2.84 kB
/** * Check if device is touch device or not */ export function isTouchDevice(): boolean; export function defineNavigator(): void; export function isObject(item: any): boolean; export function extendDeep(target?: {}, ...sources: any[]): {}; export function toCapitalized(str: any): any; export function convertStatusToStateOnly(status: any, state: any): any; export function getStatusState(status: any): boolean; export function combineLabelledBy(...params: any[]): any; export function combineDescribedBy(...params: any[]): any; export function combineDetails(...params: any[]): any; export function findElementInChildren(children: any, find: any): any; export function escapeRegexChars(str: any): any; export function removeUndefinedProps(object: any): any; export { InteractionInvalidation } from "./helpers/InteractionInvalidation"; export { assignPropsWithContext } from "./helpers/assignPropsWithContext"; export { filterProps } from "./helpers/filterProps"; export function validateDOMAttributes(props: any, params: any): any; export function processChildren(props: any): any; export function extendGracefully(...objects: any[]): any; export function isTrue(value: any): boolean; export function dispatchCustomElementEvent(src: any, eventName: any, eventObjectOrig: any): any; export function toCamelCase(s: any): any; export function toPascalCase(s: any): any; export function toSnakeCase(str: any): any; export function toKebabCase(str: any): any; export function detectOutsideClick(ignoreElements: any, onSuccess: Function, options?: any): DetectOutsideClickClass; export class DetectOutsideClickClass { constructor(ignoreElements: any, onSuccess: any, options?: {}); handleClickOutside: (event: any) => void; keydownCallback: (event: any) => void; keyupCallback: (event: any) => void; remove(): void; checkOutsideClick: ({ event, ignoreElements }: { event: any; ignoreElements: any; }, onSuccess?: any) => void; } export function checkIfHasScrollbar(elem: any): boolean; export function makeUniqueId(prefix?: string, length?: number): string; export function slugify(s: any): string; export function matchAll(string: any, regex: any): any[]; export function isChildOfElement(element: HTMLElement, target: HTMLElement, callback?: Function): HTMLElement | null; export function roundToNearest(num: any, target: any): any; export function getClosestScrollViewElement(currentElement: any): Element; export function convertJsxToString(elements: any, separator?: any, transformWord?: any): any; import keycode from './keycode'; import { getPreviousSibling } from './helpers/getPreviousSibling'; import { warn } from './helpers'; export { keycode, getPreviousSibling, warn }; export { extendPropsWithContext, extendPropsWithContextInClassComponent } from "./helpers/extendPropsWithContext";