🎨 refactor(shared-ui): improve LoginPage and InputBar components

This commit is contained in:
Till-JS 2026-02-13 23:29:56 +01:00
parent ceebb5dda6
commit 9bfc20b8d5
3 changed files with 37 additions and 4 deletions

View file

@ -57,6 +57,8 @@
User,
Scales,
Robot,
Key,
Shield,
} from '@manacore/shared-icons';
// Map icon names to Phosphor components
@ -109,6 +111,8 @@
building: Buildings,
scale: Scales,
robot: Robot,
key: Key,
shield: Shield,
};
// Convert app items to dropdown items (will be computed as derived)
@ -476,6 +480,9 @@
'M18 8a3 3 0 100-6 3 3 0 000 6zM6 15a3 3 0 100-6 3 3 0 000 6zM18 22a3 3 0 100-6 3 3 0 000 6zM8.59 13.51l6.83 3.98M15.41 6.51l-6.82 3.98',
filter:
'M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z',
key: 'M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z',
shield:
'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z',
};
function getIconPath(name: string): string {