@gamecp/ui 0.1.37 → 0.1.40

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/dist/index.mjs CHANGED
@@ -280,6 +280,8 @@ function Card({
280
280
  case "restarting":
281
281
  case "updating":
282
282
  return { border: "bg-orange", bg: "bg-orange/10" };
283
+ case "terminating":
284
+ return { border: "bg-destructive", bg: "bg-danger/10" };
283
285
  case "unknown":
284
286
  return { border: "bg-muted-foreground/30", bg: "bg-muted/10" };
285
287
  default:
@@ -1053,8 +1055,8 @@ function DropdownItem({
1053
1055
  flex items-start gap-3 border-b border-border/30 last:border-b-0
1054
1056
  ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
1055
1057
  ${selected && !multiple ? "bg-primary text-primary-foreground" : variantClasses5[variant]}
1056
- ${focused && !selected ? "bg-muted/70 ring-2 ring-primary/50 ring-inset" : ""}
1057
- ${focused && selected ? "brightness-110 ring-2 ring-primary-foreground/30" : ""}
1058
+ ${focused && !selected ? "bg-muted/70 ring-1 ring-primary/50 ring-inset" : ""}
1059
+ ${focused && selected ? "brightness-110 ring-1 ring-primary-foreground/30" : ""}
1058
1060
  `;
1059
1061
  return /* @__PURE__ */ jsxs(
1060
1062
  "button",
@@ -4120,7 +4122,8 @@ function SidebarNavItem({
4120
4122
  }) {
4121
4123
  const pathname = usePathname();
4122
4124
  const isActive = active !== void 0 ? active : exact ? pathname === href : pathname === href || pathname?.startsWith(`${href}/`);
4123
- const commonClasses = `group flex items-center px-3 py-2 text-sm font-medium rounded-md transition-all duration-150 ease-in-out ${isActive ? "" : "hover:bg-muted"} ${className}`;
4125
+ const commonClasses = `group flex items-center gap-0 overflow-hidden rounded-md px-3 py-2 text-sm font-medium outline-hidden ring-sidebar-ring transition-all duration-300 focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 ${isActive ? "bg-primary/15 backdrop-blur-md border border-primary/30 text-primary shadow-[0_0_12px_-3px_hsl(var(--primary)/0.2)] hover:bg-primary/20 hover:border-primary/50 hover:shadow-[0_0_16px_-2px_hsl(var(--primary)/0.3)]" : "border border-transparent text-sidebar-foreground hover:bg-sidebar-accent/50 hover:backdrop-blur-sm hover:border-sidebar-foreground/10 hover:text-sidebar-accent-foreground active:bg-sidebar-accent"} ${className}`;
4126
+ const iconClasses = `mr-3 h-5 w-5 shrink-0 transition-all duration-300 ease-in-out${isActive ? " text-primary" : ""}`;
4124
4127
  if (isButton) {
4125
4128
  return /* @__PURE__ */ jsxs(
4126
4129
  "button",
@@ -4134,7 +4137,7 @@ function SidebarNavItem({
4134
4137
  Icon && /* @__PURE__ */ jsx(
4135
4138
  Icon,
4136
4139
  {
4137
- className: `mr-3 h-5 w-5 shrink-0 transition-all duration-150 ease-in-out`,
4140
+ className: iconClasses,
4138
4141
  "aria-hidden": "true"
4139
4142
  }
4140
4143
  ),
@@ -4148,14 +4151,12 @@ function SidebarNavItem({
4148
4151
  {
4149
4152
  href,
4150
4153
  onClick,
4151
- title,
4152
- "aria-current": isActive ? "page" : void 0,
4153
4154
  className: commonClasses,
4154
4155
  children: [
4155
4156
  Icon && /* @__PURE__ */ jsx(
4156
4157
  Icon,
4157
4158
  {
4158
- className: `mr-3 h-5 w-5 shrink-0 transition-all duration-150 ease-in-out`,
4159
+ className: iconClasses,
4159
4160
  "aria-hidden": "true"
4160
4161
  }
4161
4162
  ),