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