@cranberry-money/shared-constants
Version:
Shared constants for Blueberry platform
70 lines • 1.81 kB
JavaScript
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 = {
[]: 'Today',
[]: 'Yesterday',
[]: 'Last 7 Days',
[]: 'Last 30 Days',
[]: 'Last 90 Days',
[]: 'This Month',
[]: 'Last Month',
[]: 'This Year',
[]: 'Last Year',
[]: 'All Time',
[]: '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