@cranberry-money/shared-constants 8.5.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.
@@ -7,4 +7,5 @@ export * from './labels';
7
7
  export * from './status-colors-unified';
8
8
  export * from './timing';
9
9
  export * from './cache';
10
+ export * from './zIndex';
10
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;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,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
@@ -7,3 +7,4 @@ export * from './labels';
7
7
  export * from './status-colors-unified';
8
8
  export * from './timing';
9
9
  export * from './cache';
10
+ export * from './zIndex';
@@ -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.5.0",
3
+ "version": "8.6.0",
4
4
  "description": "Shared constants for MyPortfolio platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",