@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.34 → 0.2.36
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.
- package/CHANGELOG.md +1 -1
- package/dist/components/ui/navigation/user-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation/user-menu.esm.js +1 -1
- package/dist/components/ui/navigation/user-menu.js +1 -1
- package/dist/styles.css +1170 -23
- package/package.json +1 -1
- package/src/components/ui/navigation/user-menu.tsx +9 -7
- package/src/index.css +5 -2
- package/src/styles/components/navigation/user-menu.css +11 -3
package/package.json
CHANGED
|
@@ -36,19 +36,21 @@ const UserMenuHeader: React.FC<{
|
|
|
36
36
|
<UserAvatar user={user} size="lg" />
|
|
37
37
|
</div>
|
|
38
38
|
<div className="user-menu__header-info">
|
|
39
|
-
<div className="user-menu__header-name">
|
|
40
|
-
|
|
39
|
+
<div className="user-menu__header-name-row">
|
|
40
|
+
<div className="user-menu__header-name">
|
|
41
|
+
{user.fullName || user.firstName || 'User'}
|
|
42
|
+
</div>
|
|
43
|
+
{subscription && (
|
|
44
|
+
<div className="user-menu__header-subscription">
|
|
45
|
+
<SubscriptionBadge subscription={subscription} size="sm" />
|
|
46
|
+
</div>
|
|
47
|
+
)}
|
|
41
48
|
</div>
|
|
42
49
|
{user.email && (
|
|
43
50
|
<div className="user-menu__header-email">
|
|
44
51
|
{user.email}
|
|
45
52
|
</div>
|
|
46
53
|
)}
|
|
47
|
-
{subscription && (
|
|
48
|
-
<div className="user-menu__header-subscription">
|
|
49
|
-
<SubscriptionBadge subscription={subscription} size="sm" />
|
|
50
|
-
</div>
|
|
51
|
-
)}
|
|
52
54
|
</div>
|
|
53
55
|
</div>
|
|
54
56
|
);
|
package/src/index.css
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/* Import organized design system */
|
|
2
2
|
@import './styles/index.css';
|
|
3
3
|
|
|
4
|
-
/*
|
|
4
|
+
/* Direct import of design system variables to test */
|
|
5
|
+
@import './styles/generated-theme-variables.css';
|
|
5
6
|
|
|
6
|
-
/* Tailwind CSS */
|
|
7
|
+
/* Tailwind CSS - Load after imports */
|
|
7
8
|
@tailwind base;
|
|
8
9
|
@tailwind components;
|
|
9
10
|
@tailwind utilities;
|
|
10
11
|
|
|
12
|
+
/* Existing CSS styles are included inline below */
|
|
13
|
+
|
|
11
14
|
/* Advanced Border Radius System */
|
|
12
15
|
:root {
|
|
13
16
|
--radius: 0.5rem;
|
|
@@ -189,28 +189,36 @@
|
|
|
189
189
|
min-width: 0;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
.user-menu__header-name-row {
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: var(--cs-spacing-scale-sm);
|
|
196
|
+
margin-bottom: var(--cs-spacing-scale-xs);
|
|
197
|
+
}
|
|
198
|
+
|
|
192
199
|
.user-menu__header-name {
|
|
193
200
|
font-size: var(--cs-fonts-primary-sizes-md);
|
|
194
201
|
font-weight: var(--cs-fonts-primary-weights-semibold);
|
|
195
202
|
color: var(--user-menu-text-primary);
|
|
196
|
-
margin-bottom: var(--cs-spacing-scale-xs);
|
|
197
203
|
white-space: nowrap;
|
|
198
204
|
overflow: hidden;
|
|
199
205
|
text-overflow: ellipsis;
|
|
206
|
+
flex: 1;
|
|
207
|
+
min-width: 0;
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
.user-menu__header-email {
|
|
203
211
|
font-size: var(--cs-fonts-primary-sizes-sm);
|
|
204
212
|
color: var(--user-menu-text-muted);
|
|
205
|
-
margin-bottom: var(--cs-spacing-scale-sm);
|
|
206
213
|
white-space: nowrap;
|
|
207
214
|
overflow: hidden;
|
|
208
215
|
text-overflow: ellipsis;
|
|
209
216
|
}
|
|
210
217
|
|
|
211
218
|
.user-menu__header-subscription {
|
|
219
|
+
flex-shrink: 0;
|
|
212
220
|
display: flex;
|
|
213
|
-
|
|
221
|
+
align-items: center;
|
|
214
222
|
}
|
|
215
223
|
|
|
216
224
|
/* ============================================================================
|