UNPKG

@cranberry-money/shared-constants

Version:

Shared constants for Blueberry platform

70 lines 1.81 kB
export const LOADING_STATES = { IDLE: 'idle', LOADING: 'loading', SUCCESS: 'success', ERROR: 'error', }; export const DISPLAY_MODE = { TABLE: 'table', GRID: 'grid', LIST: 'list', CHART: 'chart', }; export const VIEW_TYPE = { SUMMARY: 'summary', DETAILED: 'detailed', COMPACT: 'compact', }; export const DATE_RANGE_PRESET = { TODAY: 'today', YESTERDAY: 'yesterday', LAST_7_DAYS: 'last_7_days', LAST_30_DAYS: 'last_30_days', LAST_90_DAYS: 'last_90_days', THIS_MONTH: 'this_month', LAST_MONTH: 'last_month', THIS_YEAR: 'this_year', LAST_YEAR: 'last_year', ALL_TIME: 'all_time', CUSTOM: 'custom', }; export const DATE_RANGE_PRESET_LABELS = { [DATE_RANGE_PRESET.TODAY]: 'Today', [DATE_RANGE_PRESET.YESTERDAY]: 'Yesterday', [DATE_RANGE_PRESET.LAST_7_DAYS]: 'Last 7 Days', [DATE_RANGE_PRESET.LAST_30_DAYS]: 'Last 30 Days', [DATE_RANGE_PRESET.LAST_90_DAYS]: 'Last 90 Days', [DATE_RANGE_PRESET.THIS_MONTH]: 'This Month', [DATE_RANGE_PRESET.LAST_MONTH]: 'Last Month', [DATE_RANGE_PRESET.THIS_YEAR]: 'This Year', [DATE_RANGE_PRESET.LAST_YEAR]: 'Last Year', [DATE_RANGE_PRESET.ALL_TIME]: 'All Time', [DATE_RANGE_PRESET.CUSTOM]: 'Custom Range', }; export const CHART_TYPE = { LINE: 'line', BAR: 'bar', PIE: 'pie', DOUGHNUT: 'doughnut', AREA: 'area', SCATTER: 'scatter', }; export const TABLE_DENSITY = { COMPACT: 'compact', NORMAL: 'normal', COMFORTABLE: 'comfortable', }; export const NOTIFICATION_TYPE = { SUCCESS: 'success', ERROR: 'error', WARNING: 'warning', INFO: 'info', }; export const ICON_SIZE = { XS: 'h-3 w-3', SM: 'h-4 w-4', MD: 'h-5 w-5', LG: 'h-6 w-6', XL: 'h-8 w-8', }; //# sourceMappingURL=display.js.map