@cranberry-money/shared-utils
Version:
Shared utility functions for Blueberry platform
16 lines • 1.42 kB
JavaScript
export { formatDate, formatShortDate, formatTime, formatDateTime, getDateRange, parseDateString, formatDateToString, } from './date';
export { formatCurrency, 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 } 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.js.map