UNPKG

@cranberry-money/shared-utils

Version:

Shared utility functions for Blueberry platform

16 lines 1.49 kB
export { formatDate, formatShortDate, formatTime, formatDateTime, getDateRange, parseDateString, formatDateToString, type DateRange, } from './date'; export { formatCurrency, type FormatCurrencyOptions, formatCryptoBalance, formatPercentage, getBlockchainShortName, formatTokenAmount, parseTokenAmount, } from './formatting'; export { isNumericOnly, validatePassword, formatVerificationToken, validateEmailConfirmation, isValidFullName, isValidPhoneFormat, formatPhoneNumber, } from './validation'; export { validateWalletAddress, detectChainFromAddress, formatWalletAddressShort, formatWalletAddressMedium, } from './validation/wallets'; export { hasActiveFilters, countActiveFilters } from './filters'; export { getAssetType, getAssetTypeVariant } from './assets'; export { parseAddress, getAddressDisplayLines } from './address'; export { formatPhoneForDisplay, cleanPhoneNumber } from './phoneFormatting'; export { formatSourceOfFunds, formatIntendedUse } from './formatting-labels'; export { validateUserProfileField } from './user-validation'; export { getUserVerificationStatus, type VerificationStatusType } from './user-verification'; export { getNextPageFromUrl, getNextPageParam } from './pagination'; export { createUserFriendlyError, isUserFriendlyError, getErrorMessage } from './errors'; export { calculateHoldingsSummary, calculateAssetAllocation } from './holdings'; export { calculateWalletTotals, filterWalletsByChain } from './wallet'; //# sourceMappingURL=index.d.ts.map