mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 10:23:27 +00:00
reverted back to initial colors
This commit is contained in:
@@ -69,12 +69,11 @@ export const NavAccountMenu = ({
|
|||||||
<AriaDialog
|
<AriaDialog
|
||||||
{...dialogProps}
|
{...dialogProps}
|
||||||
ref={dialogRef}
|
ref={dialogRef}
|
||||||
className={cx("w-66 rounded-xl shadow-lg outline-hidden", className)}
|
className={cx("w-66 rounded-xl bg-secondary_alt shadow-lg ring ring-secondary_alt outline-hidden", className)}
|
||||||
style={{ backgroundColor: 'rgb(28, 33, 44)' }}
|
|
||||||
>
|
>
|
||||||
{({ close }) => (
|
{({ close }) => (
|
||||||
<>
|
<>
|
||||||
<div className="rounded-xl" style={{ backgroundColor: 'rgb(28, 33, 44)' }}>
|
<div className="rounded-xl bg-primary ring-1 ring-secondary">
|
||||||
<div className="flex flex-col gap-0.5 py-1.5">
|
<div className="flex flex-col gap-0.5 py-1.5">
|
||||||
<NavAccountCardMenuItem label="View profile" icon={IconUser} shortcut="⌘K->P" />
|
<NavAccountCardMenuItem label="View profile" icon={IconUser} shortcut="⌘K->P" />
|
||||||
<NavAccountCardMenuItem label="Account settings" icon={IconSettings} shortcut="⌘S" />
|
<NavAccountCardMenuItem label="Account settings" icon={IconSettings} shortcut="⌘S" />
|
||||||
@@ -105,17 +104,17 @@ const NavAccountCardMenuItem = ({
|
|||||||
<button {...buttonProps} className={cx("group/item w-full cursor-pointer px-1.5 focus:outline-hidden", buttonProps.className)}>
|
<button {...buttonProps} className={cx("group/item w-full cursor-pointer px-1.5 focus:outline-hidden", buttonProps.className)}>
|
||||||
<div
|
<div
|
||||||
className={cx(
|
className={cx(
|
||||||
"flex w-full items-center justify-between gap-3 rounded-md p-2 group-hover/item:bg-[rgb(42,48,60)]",
|
"flex w-full items-center justify-between gap-3 rounded-md p-2 group-hover/item:bg-primary_hover",
|
||||||
// Focus styles.
|
// Focus styles.
|
||||||
"outline-focus-ring group-focus-visible/item:outline-2 group-focus-visible/item:outline-offset-2",
|
"outline-focus-ring group-focus-visible/item:outline-2 group-focus-visible/item:outline-offset-2",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex gap-2 text-sm font-semibold text-[rgb(255,255,255)] group-hover/item:text-[rgb(73,160,225)]">
|
<div className="flex gap-2 text-sm font-semibold text-secondary group-hover/item:text-secondary_hover">
|
||||||
{Icon && <Icon className="size-5 text-[rgb(255,255,255)]" />} {label}
|
{Icon && <Icon className="size-5 text-fg-quaternary" />} {label}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{shortcut && (
|
{shortcut && (
|
||||||
<kbd className="flex rounded px-1 py-px font-body text-xs font-medium text-[rgb(255,255,255)] ring-1 ring-secondary ring-inset">{shortcut}</kbd>
|
<kbd className="flex rounded px-1 py-px font-body text-xs font-medium text-tertiary ring-1 ring-secondary ring-inset">{shortcut}</kbd>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
@@ -146,7 +145,7 @@ export const NavAccountCard = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={triggerRef} className="relative flex items-center gap-3 rounded-xl p-3">
|
<div ref={triggerRef} className="relative flex items-center gap-3 rounded-xl p-3 ring-1 ring-secondary ring-inset">
|
||||||
<AvatarLabelGroup
|
<AvatarLabelGroup
|
||||||
size="md"
|
size="md"
|
||||||
src={selectedAccount.avatar}
|
src={selectedAccount.avatar}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import { Badge } from "@/components/base/badges/badges";
|
|||||||
import { cx, sortCx } from "@/utils/cx";
|
import { cx, sortCx } from "@/utils/cx";
|
||||||
|
|
||||||
const styles = sortCx({
|
const styles = sortCx({
|
||||||
root: "group relative flex w-full cursor-pointer items-center rounded-md bg-transparent outline-focus-ring transition duration-100 ease-linear select-none hover:bg-[rgb(42,48,60)] focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2",
|
root: "group relative flex w-full cursor-pointer items-center rounded-md bg-primary outline-focus-ring transition duration-100 ease-linear select-none hover:bg-primary_hover focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2",
|
||||||
rootSelected: "bg-[rgb(42,48,60)] hover:bg-[rgb(42,48,60)]",
|
rootSelected: "bg-active hover:bg-secondary_hover border-l-2 border-l-brand-600 text-brand-secondary",
|
||||||
});
|
});
|
||||||
|
|
||||||
interface NavItemBaseProps {
|
interface NavItemBaseProps {
|
||||||
@@ -48,9 +48,9 @@ export const NavItemBase = ({ current, type, badge, href, icon: Icon, children,
|
|||||||
const labelElement = (
|
const labelElement = (
|
||||||
<span
|
<span
|
||||||
className={cx(
|
className={cx(
|
||||||
"flex-1 text-md font-semibold transition-inherit-all",
|
"flex-1 text-md font-semibold text-secondary transition-inherit-all group-hover:text-secondary_hover",
|
||||||
truncate && "truncate",
|
truncate && "truncate",
|
||||||
current ? "text-[rgb(73,160,225)]" : "text-[rgb(255,255,255)] group-hover:text-[rgb(73,160,225)]",
|
current && "text-secondary_hover",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ export const AvatarLabelGroup = ({ title, subtitle, className, ...props }: Avata
|
|||||||
<figure className={cx("group flex min-w-0 flex-1 items-center", styles[props.size].root, className)}>
|
<figure className={cx("group flex min-w-0 flex-1 items-center", styles[props.size].root, className)}>
|
||||||
<Avatar {...props} />
|
<Avatar {...props} />
|
||||||
<figcaption className="min-w-0 flex-1">
|
<figcaption className="min-w-0 flex-1">
|
||||||
<p className={cx(styles[props.size].title)} style={{ color: 'rgb(255, 255, 255)' }}>{title}</p>
|
<p className={cx("text-primary", styles[props.size].title)}>{title}</p>
|
||||||
<p className={cx("truncate", styles[props.size].subtitle)} style={{ color: 'rgb(255, 255, 255)' }}>{subtitle}</p>
|
<p className={cx("truncate text-tertiary", styles[props.size].subtitle)}>{subtitle}</p>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -151,9 +151,9 @@ export const Sidebar = ({ activeUrl = "/" }: SidebarProps) => {
|
|||||||
|
|
||||||
const content = (
|
const content = (
|
||||||
<aside
|
<aside
|
||||||
style={{ "--width": `${width}px`, backgroundColor: 'rgb(28, 33, 44)' } as React.CSSProperties}
|
style={{ "--width": `${width}px` } as React.CSSProperties}
|
||||||
className={cx(
|
className={cx(
|
||||||
"flex h-full w-full max-w-full flex-col justify-between overflow-auto pt-4 shadow-xs transition-all duration-200 ease-linear lg:w-(--width) lg:pt-5",
|
"flex h-full w-full max-w-full flex-col justify-between overflow-auto border-secondary bg-primary pt-4 shadow-xs transition-all duration-200 ease-linear md:border-r lg:w-(--width) lg:rounded-xl lg:border lg:pt-5",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{/* Logo + collapse toggle */}
|
{/* Logo + collapse toggle */}
|
||||||
@@ -162,8 +162,8 @@ export const Sidebar = ({ activeUrl = "/" }: SidebarProps) => {
|
|||||||
<img src="/favicon-32.png" alt="Helix Engage" className="size-8 rounded-lg shrink-0" />
|
<img src="/favicon-32.png" alt="Helix Engage" className="size-8 rounded-lg shrink-0" />
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<span className="text-md font-bold" style={{ color: 'rgb(255, 255, 255)'}}>Helix Engage</span>
|
<span className="text-md font-bold text-primary">Helix Engage</span>
|
||||||
<span className="text-xs" style={{ color: 'rgb(255, 255, 255)' }}>Global Hospital · {getRoleSubtitle(user.role)}</span>
|
<span className="text-xs text-tertiary">Global Hospital · {getRoleSubtitle(user.role)}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
@@ -191,15 +191,11 @@ export const Sidebar = ({ activeUrl = "/" }: SidebarProps) => {
|
|||||||
<Link
|
<Link
|
||||||
to={item.href ?? '/'}
|
to={item.href ?? '/'}
|
||||||
title={item.label}
|
title={item.label}
|
||||||
style={item.href !== activeUrl ? {
|
|
||||||
'--hover-bg': 'rgb(42, 48, 60)',
|
|
||||||
'--hover-text': 'rgb(73, 160, 225)'
|
|
||||||
} as React.CSSProperties : undefined}
|
|
||||||
className={cx(
|
className={cx(
|
||||||
"flex size-10 items-center justify-center rounded-lg transition duration-100 ease-linear",
|
"flex size-10 items-center justify-center rounded-lg transition duration-100 ease-linear",
|
||||||
item.href === activeUrl
|
item.href === activeUrl
|
||||||
? "bg-active text-fg-brand-primary"
|
? "bg-active text-fg-brand-primary"
|
||||||
: "text-fg-quaternary hover:bg-[var(--hover-bg)] hover:text-[var(--hover-text)]",
|
: "text-fg-quaternary hover:bg-primary_hover hover:text-fg-secondary",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{item.icon && <item.icon className="size-5" />}
|
{item.icon && <item.icon className="size-5" />}
|
||||||
@@ -253,9 +249,9 @@ export const Sidebar = ({ activeUrl = "/" }: SidebarProps) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MobileNavigationHeader>{content}</MobileNavigationHeader>
|
<MobileNavigationHeader>{content}</MobileNavigationHeader>
|
||||||
<div className="hidden lg:fixed lg:inset-y-0 lg:left-0 lg:flex">{content}</div>
|
<div className="hidden lg:fixed lg:inset-y-0 lg:left-0 lg:flex lg:py-1 lg:pl-1">{content}</div>
|
||||||
<div
|
<div
|
||||||
style={{ paddingLeft: width }}
|
style={{ paddingLeft: width + 4 }}
|
||||||
className="invisible hidden lg:sticky lg:top-0 lg:bottom-0 lg:left-0 lg:block transition-all duration-200 ease-linear"
|
className="invisible hidden lg:sticky lg:top-0 lg:bottom-0 lg:left-0 lg:block transition-all duration-200 ease-linear"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -57,24 +57,12 @@ const formatPhoneDisplay = (call: Call): string => {
|
|||||||
|
|
||||||
const DirectionIcon: FC<{ direction: CallDirection | null; status: Call['callStatus'] }> = ({ direction, status }) => {
|
const DirectionIcon: FC<{ direction: CallDirection | null; status: Call['callStatus'] }> = ({ direction, status }) => {
|
||||||
if (status === 'MISSED') {
|
if (status === 'MISSED') {
|
||||||
return (
|
return <FontAwesomeIcon icon={faPhoneXmark} className="size-4 text-fg-error-secondary" />;
|
||||||
<div className="flex items-center justify-center size-8 rounded-full" style={{ backgroundColor: 'rgba(202, 59, 51, 0.1)' }}>
|
|
||||||
<FontAwesomeIcon icon={faPhoneXmark} className="size-4" style={{ color: 'rgb(202, 59, 51)' }} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (direction === 'OUTBOUND') {
|
if (direction === 'OUTBOUND') {
|
||||||
return (
|
return <FontAwesomeIcon icon={faPhoneArrowUp} className="size-4 text-fg-brand-secondary" />;
|
||||||
<div className="flex items-center justify-center size-8 rounded-full" style={{ backgroundColor: 'rgba(73, 160, 225, 0.1)' }}>
|
|
||||||
<FontAwesomeIcon icon={faPhoneArrowUp} className="size-4" style={{ color: 'rgb(73, 160, 225)' }} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return (
|
return <FontAwesomeIcon icon={faPhoneArrowDown} className="size-4 text-fg-success-secondary" />;
|
||||||
<div className="flex items-center justify-center size-8 rounded-full" style={{ backgroundColor: 'rgba(34, 197, 94, 0.1)' }}>
|
|
||||||
<FontAwesomeIcon icon={faPhoneArrowDown} className="size-4" style={{ color: 'rgb(34, 197, 94)' }} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const RecordingPlayer: FC<{ url: string }> = ({ url }) => {
|
const RecordingPlayer: FC<{ url: string }> = ({ url }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user