@cranberry-money/shared-constants
Version:
Shared constants for Blueberry platform
66 lines • 2.35 kB
TypeScript
export declare const LOADING_STATES: {
readonly IDLE: "idle";
readonly LOADING: "loading";
readonly SUCCESS: "success";
readonly ERROR: "error";
};
export type LoadingState = (typeof LOADING_STATES)[keyof typeof LOADING_STATES];
export declare const DISPLAY_MODE: {
readonly TABLE: "table";
readonly GRID: "grid";
readonly LIST: "list";
readonly CHART: "chart";
};
export type DisplayMode = (typeof DISPLAY_MODE)[keyof typeof DISPLAY_MODE];
export declare const VIEW_TYPE: {
readonly SUMMARY: "summary";
readonly DETAILED: "detailed";
readonly COMPACT: "compact";
};
export type ViewType = (typeof VIEW_TYPE)[keyof typeof VIEW_TYPE];
export declare const DATE_RANGE_PRESET: {
readonly TODAY: "today";
readonly YESTERDAY: "yesterday";
readonly LAST_7_DAYS: "last_7_days";
readonly LAST_30_DAYS: "last_30_days";
readonly LAST_90_DAYS: "last_90_days";
readonly THIS_MONTH: "this_month";
readonly LAST_MONTH: "last_month";
readonly THIS_YEAR: "this_year";
readonly LAST_YEAR: "last_year";
readonly ALL_TIME: "all_time";
readonly CUSTOM: "custom";
};
export type DateRangePreset = (typeof DATE_RANGE_PRESET)[keyof typeof DATE_RANGE_PRESET];
export declare const DATE_RANGE_PRESET_LABELS: Record<DateRangePreset, string>;
export declare const CHART_TYPE: {
readonly LINE: "line";
readonly BAR: "bar";
readonly PIE: "pie";
readonly DOUGHNUT: "doughnut";
readonly AREA: "area";
readonly SCATTER: "scatter";
};
export type ChartType = (typeof CHART_TYPE)[keyof typeof CHART_TYPE];
export declare const TABLE_DENSITY: {
readonly COMPACT: "compact";
readonly NORMAL: "normal";
readonly COMFORTABLE: "comfortable";
};
export type TableDensity = (typeof TABLE_DENSITY)[keyof typeof TABLE_DENSITY];
export declare const NOTIFICATION_TYPE: {
readonly SUCCESS: "success";
readonly ERROR: "error";
readonly WARNING: "warning";
readonly INFO: "info";
};
export type NotificationType = (typeof NOTIFICATION_TYPE)[keyof typeof NOTIFICATION_TYPE];
export declare const ICON_SIZE: {
readonly XS: "h-3 w-3";
readonly SM: "h-4 w-4";
readonly MD: "h-5 w-5";
readonly LG: "h-6 w-6";
readonly XL: "h-8 w-8";
};
export type IconSize = (typeof ICON_SIZE)[keyof typeof ICON_SIZE];
//# sourceMappingURL=display.d.ts.map