@cranberry-money/shared-constants 8.4.0 → 8.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Cache timing constants for React Query and other caching mechanisms
3
+ */
4
+ export declare const CACHE_TIMING: {
5
+ /**
6
+ * Auth data stale time - 5 minutes
7
+ */
8
+ readonly AUTH_STALE_TIME: number;
9
+ /**
10
+ * Trades data stale time - 2 minutes
11
+ */
12
+ readonly TRADES_STALE_TIME: number;
13
+ /**
14
+ * Asset allocation data stale time - 10 minutes
15
+ */
16
+ readonly ASSET_ALLOCATION_STALE_TIME: number;
17
+ /**
18
+ * Default stale time for general data - 5 minutes
19
+ */
20
+ readonly DEFAULT_STALE_TIME: number;
21
+ };
22
+ export type CacheTiming = typeof CACHE_TIMING;
23
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/ui/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Cache timing constants for React Query and other caching mechanisms
3
+ */
4
+ export const CACHE_TIMING = {
5
+ /**
6
+ * Auth data stale time - 5 minutes
7
+ */
8
+ AUTH_STALE_TIME: 5 * 60 * 1000,
9
+ /**
10
+ * Trades data stale time - 2 minutes
11
+ */
12
+ TRADES_STALE_TIME: 2 * 60 * 1000,
13
+ /**
14
+ * Asset allocation data stale time - 10 minutes
15
+ */
16
+ ASSET_ALLOCATION_STALE_TIME: 10 * 60 * 1000,
17
+ /**
18
+ * Default stale time for general data - 5 minutes
19
+ */
20
+ DEFAULT_STALE_TIME: 5 * 60 * 1000,
21
+ };
@@ -5,4 +5,7 @@ export * from './colors';
5
5
  export * from './display';
6
6
  export * from './labels';
7
7
  export * from './status-colors-unified';
8
+ export * from './timing';
9
+ export * from './cache';
10
+ export * from './zIndex';
8
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
package/dist/ui/index.js CHANGED
@@ -5,3 +5,6 @@ export * from './colors';
5
5
  export * from './display';
6
6
  export * from './labels';
7
7
  export * from './status-colors-unified';
8
+ export * from './timing';
9
+ export * from './cache';
10
+ export * from './zIndex';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * UI timing constants for animations, transitions, and delays
3
+ */
4
+ export declare const UI_TIMING: {
5
+ /**
6
+ * Tooltip delay in milliseconds
7
+ */
8
+ readonly TOOLTIP_DELAY: 300;
9
+ /**
10
+ * Animation durations
11
+ */
12
+ readonly ANIMATION_FAST: 150;
13
+ readonly ANIMATION_NORMAL: 200;
14
+ readonly ANIMATION_SLOW: 300;
15
+ /**
16
+ * Transition durations
17
+ */
18
+ readonly TRANSITION_FAST: 150;
19
+ readonly TRANSITION_NORMAL: 200;
20
+ /**
21
+ * Debounce delay for user input
22
+ */
23
+ readonly DEBOUNCE_DELAY: 300;
24
+ };
25
+ export type UITiming = typeof UI_TIMING;
26
+ //# sourceMappingURL=timing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timing.d.ts","sourceRoot":"","sources":["../../src/ui/timing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;IACpB;;OAEG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * UI timing constants for animations, transitions, and delays
3
+ */
4
+ export const UI_TIMING = {
5
+ /**
6
+ * Tooltip delay in milliseconds
7
+ */
8
+ TOOLTIP_DELAY: 300,
9
+ /**
10
+ * Animation durations
11
+ */
12
+ ANIMATION_FAST: 150,
13
+ ANIMATION_NORMAL: 200,
14
+ ANIMATION_SLOW: 300,
15
+ /**
16
+ * Transition durations
17
+ */
18
+ TRANSITION_FAST: 150,
19
+ TRANSITION_NORMAL: 200,
20
+ /**
21
+ * Debounce delay for user input
22
+ */
23
+ DEBOUNCE_DELAY: 300,
24
+ };
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Z-index system for consistent layering across the application
3
+ */
4
+ /**
5
+ * Base z-index values for different UI layers
6
+ */
7
+ export declare const Z_INDEX: {
8
+ /**
9
+ * Base level - normal document flow
10
+ */
11
+ readonly BASE: 0;
12
+ /**
13
+ * Dropdowns, select menus
14
+ */
15
+ readonly DROPDOWN: 10;
16
+ /**
17
+ * Sticky headers, toolbars
18
+ */
19
+ readonly STICKY: 20;
20
+ /**
21
+ * Fixed elements like floating buttons
22
+ */
23
+ readonly FIXED: 30;
24
+ /**
25
+ * Modal backdrops/overlays
26
+ */
27
+ readonly MODAL_BACKDROP: 40;
28
+ /**
29
+ * Modal content
30
+ */
31
+ readonly MODAL: 50;
32
+ /**
33
+ * Popovers, floating UI elements
34
+ */
35
+ readonly POPOVER: 60;
36
+ /**
37
+ * Tooltips - should appear above most content
38
+ */
39
+ readonly TOOLTIP: 70;
40
+ /**
41
+ * Notifications, toasts
42
+ */
43
+ readonly NOTIFICATION: 80;
44
+ /**
45
+ * Maximum z-index for critical overlays
46
+ */
47
+ readonly MAX: 9999;
48
+ };
49
+ /**
50
+ * Semantic z-index aliases for specific components
51
+ */
52
+ export declare const Z_INDEX_SEMANTIC: {
53
+ /**
54
+ * Table sticky headers
55
+ */
56
+ readonly TABLE_HEADER: 10;
57
+ /**
58
+ * Navigation overlay/mobile menu
59
+ */
60
+ readonly NAVIGATION_OVERLAY: 50;
61
+ /**
62
+ * Dialog components
63
+ */
64
+ readonly DIALOG: 50;
65
+ /**
66
+ * Menu trigger buttons
67
+ */
68
+ readonly MENU_BUTTON: 20;
69
+ /**
70
+ * Menu panels/dropdowns
71
+ */
72
+ readonly MENU_PANEL: 30;
73
+ /**
74
+ * General backdrop/overlay
75
+ */
76
+ readonly BACKDROP: 10;
77
+ };
78
+ export type ZIndex = typeof Z_INDEX;
79
+ export type ZIndexSemantic = typeof Z_INDEX_SEMANTIC;
80
+ //# sourceMappingURL=zIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/ui/zIndex.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Z-index system for consistent layering across the application
3
+ */
4
+ /**
5
+ * Base z-index values for different UI layers
6
+ */
7
+ export const Z_INDEX = {
8
+ /**
9
+ * Base level - normal document flow
10
+ */
11
+ BASE: 0,
12
+ /**
13
+ * Dropdowns, select menus
14
+ */
15
+ DROPDOWN: 10,
16
+ /**
17
+ * Sticky headers, toolbars
18
+ */
19
+ STICKY: 20,
20
+ /**
21
+ * Fixed elements like floating buttons
22
+ */
23
+ FIXED: 30,
24
+ /**
25
+ * Modal backdrops/overlays
26
+ */
27
+ MODAL_BACKDROP: 40,
28
+ /**
29
+ * Modal content
30
+ */
31
+ MODAL: 50,
32
+ /**
33
+ * Popovers, floating UI elements
34
+ */
35
+ POPOVER: 60,
36
+ /**
37
+ * Tooltips - should appear above most content
38
+ */
39
+ TOOLTIP: 70,
40
+ /**
41
+ * Notifications, toasts
42
+ */
43
+ NOTIFICATION: 80,
44
+ /**
45
+ * Maximum z-index for critical overlays
46
+ */
47
+ MAX: 9999,
48
+ };
49
+ /**
50
+ * Semantic z-index aliases for specific components
51
+ */
52
+ export const Z_INDEX_SEMANTIC = {
53
+ /**
54
+ * Table sticky headers
55
+ */
56
+ TABLE_HEADER: Z_INDEX.DROPDOWN,
57
+ /**
58
+ * Navigation overlay/mobile menu
59
+ */
60
+ NAVIGATION_OVERLAY: Z_INDEX.MODAL,
61
+ /**
62
+ * Dialog components
63
+ */
64
+ DIALOG: Z_INDEX.MODAL,
65
+ /**
66
+ * Menu trigger buttons
67
+ */
68
+ MENU_BUTTON: Z_INDEX.STICKY,
69
+ /**
70
+ * Menu panels/dropdowns
71
+ */
72
+ MENU_PANEL: Z_INDEX.FIXED,
73
+ /**
74
+ * General backdrop/overlay
75
+ */
76
+ BACKDROP: Z_INDEX.DROPDOWN,
77
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cranberry-money/shared-constants",
3
- "version": "8.4.0",
3
+ "version": "8.6.0",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",