@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.d.mts CHANGED
@@ -75,7 +75,7 @@ interface CardProps extends AccordionCardProps, StatusCardProps {
75
75
  maxHeight?: string;
76
76
  headerBorder?: string;
77
77
  headerBg?: string;
78
- headerStatus?: 'online' | 'offline' | 'maintenance' | 'error' | 'restarting' | 'starting' | 'success' | 'info' | 'updating' | 'unknown';
78
+ headerStatus?: 'online' | 'offline' | 'maintenance' | 'error' | 'restarting' | 'starting' | 'success' | 'info' | 'updating' | 'terminating' | 'unknown';
79
79
  }
80
80
  declare function Card({ children, className, onClick, disabled, padding, borderAccent, variant, overflow, minHeight, maxHeight, hover, clickable, title, subtitle, description, icon: Icon, iconColor, iconSize, actionButton, headerClassName, accordion, defaultExpanded, onToggle, contentClassName, status, statusIcon, statusText, headerBorder, headerBg, headerStatus, }: CardProps): react_jsx_runtime.JSX.Element;
81
81
 
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ interface CardProps extends AccordionCardProps, StatusCardProps {
75
75
  maxHeight?: string;
76
76
  headerBorder?: string;
77
77
  headerBg?: string;
78
- headerStatus?: 'online' | 'offline' | 'maintenance' | 'error' | 'restarting' | 'starting' | 'success' | 'info' | 'updating' | 'unknown';
78
+ headerStatus?: 'online' | 'offline' | 'maintenance' | 'error' | 'restarting' | 'starting' | 'success' | 'info' | 'updating' | 'terminating' | 'unknown';
79
79
  }
80
80
  declare function Card({ children, className, onClick, disabled, padding, borderAccent, variant, overflow, minHeight, maxHeight, hover, clickable, title, subtitle, description, icon: Icon, iconColor, iconSize, actionButton, headerClassName, accordion, defaultExpanded, onToggle, contentClassName, status, statusIcon, statusText, headerBorder, headerBg, headerStatus, }: CardProps): react_jsx_runtime.JSX.Element;
81
81
 
package/dist/index.js CHANGED
@@ -287,6 +287,8 @@ function Card({
287
287
  case "restarting":
288
288
  case "updating":
289
289
  return { border: "bg-orange", bg: "bg-orange/10" };
290
+ case "terminating":
291
+ return { border: "bg-destructive", bg: "bg-danger/10" };
290
292
  case "unknown":
291
293
  return { border: "bg-muted-foreground/30", bg: "bg-muted/10" };
292
294
  default:
@@ -1060,8 +1062,8 @@ function DropdownItem({
1060
1062
  flex items-start gap-3 border-b border-border/30 last:border-b-0
1061
1063
  ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
1062
1064
  ${selected && !multiple ? "bg-primary text-primary-foreground" : variantClasses5[variant]}
1063
- ${focused && !selected ? "bg-muted/70 ring-2 ring-primary/50 ring-inset" : ""}
1064
- ${focused && selected ? "brightness-110 ring-2 ring-primary-foreground/30" : ""}
1065
+ ${focused && !selected ? "bg-muted/70 ring-1 ring-primary/50 ring-inset" : ""}
1066
+ ${focused && selected ? "brightness-110 ring-1 ring-primary-foreground/30" : ""}
1065
1067
  `;
1066
1068
  return /* @__PURE__ */ jsxRuntime.jsxs(
1067
1069
  "button",
@@ -4127,7 +4129,8 @@ function SidebarNavItem({
4127
4129
  }) {
4128
4130
  const pathname = navigation.usePathname();
4129
4131
  const isActive = active !== void 0 ? active : exact ? pathname === href : pathname === href || pathname?.startsWith(`${href}/`);
4130
- 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}`;
4132
+ 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}`;
4133
+ const iconClasses = `mr-3 h-5 w-5 shrink-0 transition-all duration-300 ease-in-out${isActive ? " text-primary" : ""}`;
4131
4134
  if (isButton) {
4132
4135
  return /* @__PURE__ */ jsxRuntime.jsxs(
4133
4136
  "button",
@@ -4141,7 +4144,7 @@ function SidebarNavItem({
4141
4144
  Icon && /* @__PURE__ */ jsxRuntime.jsx(
4142
4145
  Icon,
4143
4146
  {
4144
- className: `mr-3 h-5 w-5 shrink-0 transition-all duration-150 ease-in-out`,
4147
+ className: iconClasses,
4145
4148
  "aria-hidden": "true"
4146
4149
  }
4147
4150
  ),
@@ -4155,14 +4158,12 @@ function SidebarNavItem({
4155
4158
  {
4156
4159
  href,
4157
4160
  onClick,
4158
- title,
4159
- "aria-current": isActive ? "page" : void 0,
4160
4161
  className: commonClasses,
4161
4162
  children: [
4162
4163
  Icon && /* @__PURE__ */ jsxRuntime.jsx(
4163
4164
  Icon,
4164
4165
  {
4165
- className: `mr-3 h-5 w-5 shrink-0 transition-all duration-150 ease-in-out`,
4166
+ className: iconClasses,
4166
4167
  "aria-hidden": "true"
4167
4168
  }
4168
4169
  ),