UNPKG

@oslokommune/punkt-elements

Version:

Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo

16 lines (15 loc) 959 B
/** * Shared fileupload utilities for use by both Elements and React packages. */ export { parseFileSize, formatFileSize } from './size'; export { normalizeAllowedFormats, parseAcceptTokens, matchesAllowedFormat, isFileAllowed, resolveAcceptAttribute, formatTokenForDisplay, getSupportedFormatsText, } from './formats'; export { validateFile, applyErrorTemplate, isImageFileLike } from './validation'; export type { IValidateFileOptions } from './validation'; export { getProgressState, mergeFilesAndTransfers } from './transfers'; export type { IFileAndTransfer, TProgressState } from './transfers'; export { getFocusableElements, trapTabInside } from './focus-trap'; export { splitFilenameForTruncation } from './truncate'; export { navigateCyclic } from './navigation'; export { countFileTransferStates } from './announcements'; export type { IFileUploadCounts } from './announcements'; export { getDisplayFilename, THUMBNAIL_ACCEPT } from './filename';