@cullsin/lnc-menu 6.2.0 → 6.5.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.
@@ -12,16 +12,24 @@
12
12
  height: 100vh;
13
13
  bottom: 0;
14
14
  padding: 20px 0;
15
+ overflow-x: hidden;
15
16
  }
16
17
 
17
18
  .MuiList-root {
18
19
  .MuiListItem-root {
19
- padding: 15px;
20
+ // Apply capsule layout permanently to prevent layout shifts
21
+ padding: 10px 15px;
22
+ margin: 4px 12px;
23
+ border-radius: 20px;
24
+ display: flex;
25
+ align-items: center;
26
+ transition: background 0.2s ease;
20
27
 
21
28
  // Normalize all icons (MUI icons and custom SVGs)
22
29
  .MuiListItemIcon-root {
23
30
  color: #fff;
24
- min-width: 30px;
31
+ min-width: auto;
32
+ margin-right: 8px;
25
33
  cursor: pointer;
26
34
  display: flex;
27
35
  align-items: center;
@@ -33,34 +41,28 @@
33
41
  width: 24px;
34
42
  height: 25px;
35
43
  display: block;
44
+ transition: fill 0.2s ease, color 0.2s ease;
36
45
  }
37
46
  }
38
47
 
39
48
  .MuiListItemText-root {
40
- margin-top: 0;
41
- margin-bottom: 0;
49
+ margin: 0;
42
50
 
43
51
  .MuiTypography-root {
44
52
  font: 14px/24px "OpenSans-SemiBold";
45
53
  color: #fff;
46
54
  cursor: pointer;
47
55
  white-space: nowrap;
56
+ transition: color 0.2s ease;
48
57
  }
49
58
  }
50
59
 
51
- // Selected state - unified capsule background
60
+ // Selected state - active capsule with gradient background
52
61
  &.selected {
53
- padding: 10px 15px;
54
62
  background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
55
- border-radius: 20px;
56
- margin: 0 7px;
57
- display: flex;
58
- align-items: center;
59
63
 
60
64
  .MuiListItemIcon-root {
61
65
  color: #1e2f97;
62
- min-width: auto;
63
- margin-right: 8px;
64
66
 
65
67
  svg,
66
68
  .MuiSvgIcon-root {
@@ -70,27 +72,18 @@
70
72
  }
71
73
 
72
74
  .MuiListItemText-root {
73
- margin: 0;
74
-
75
75
  .MuiTypography-root {
76
76
  color: #1e2f97;
77
77
  }
78
78
  }
79
79
  }
80
80
 
81
- // Hover state - unified capsule background
81
+ // Hover state - show gradient background on non-selected items
82
82
  &:hover:not(.selected) {
83
- padding: 10px 15px;
84
83
  background: linear-gradient(to bottom, #7ad4f7, #20a9ef) !important;
85
- border-radius: 20px;
86
- margin: 0 7px;
87
- display: flex;
88
- align-items: center;
89
84
 
90
85
  .MuiListItemIcon-root {
91
86
  color: #1e2f97;
92
- min-width: auto;
93
- margin-right: 8px;
94
87
 
95
88
  svg,
96
89
  .MuiSvgIcon-root {
@@ -100,8 +93,6 @@
100
93
  }
101
94
 
102
95
  .MuiListItemText-root {
103
- margin: 0;
104
-
105
96
  .MuiTypography-root {
106
97
  color: #1e2f97;
107
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cullsin/lnc-menu",
3
- "version": "6.2.0",
3
+ "version": "6.5.0",
4
4
  "description": "Reusable SideMenu component for MedGenome LNC platform using MUI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",