@gamecp/ui 0.1.29 → 0.1.30

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
@@ -265,8 +265,9 @@ interface PageHeaderProps {
265
265
  subtitle?: string;
266
266
  rightContent?: React__default.ReactNode;
267
267
  className?: string;
268
+ size?: 'sm' | 'md' | 'lg';
268
269
  }
269
- declare function PageHeader({ icon: Icon, title, subtitle, rightContent, className, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
270
+ declare function PageHeader({ icon: Icon, title, subtitle, rightContent, className, size, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
270
271
 
271
272
  type SwitchVariant = 'default' | 'success' | 'danger' | 'warning' | 'info' | 'embedded';
272
273
  interface SwitchProps {
package/dist/index.d.ts CHANGED
@@ -265,8 +265,9 @@ interface PageHeaderProps {
265
265
  subtitle?: string;
266
266
  rightContent?: React__default.ReactNode;
267
267
  className?: string;
268
+ size?: 'sm' | 'md' | 'lg';
268
269
  }
269
- declare function PageHeader({ icon: Icon, title, subtitle, rightContent, className, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
270
+ declare function PageHeader({ icon: Icon, title, subtitle, rightContent, className, size, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
270
271
 
271
272
  type SwitchVariant = 'default' | 'success' | 'danger' | 'warning' | 'info' | 'embedded';
272
273
  interface SwitchProps {
package/dist/index.js CHANGED
@@ -2708,17 +2708,48 @@ function PageHeader({
2708
2708
  title,
2709
2709
  subtitle,
2710
2710
  rightContent,
2711
- className = ""
2711
+ className = "",
2712
+ size = "lg"
2712
2713
  }) {
2713
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `mb-6 lg:mb-8 ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "header-layout", children: [
2714
+ const sizeClasses5 = {
2715
+ sm: {
2716
+ container: "mb-6",
2717
+ icon: "w-5 h-5 lg:w-6 lg:h-6",
2718
+ title: "text-lg lg:text-xl",
2719
+ subtitle: "text-sm",
2720
+ spacing: "space-x-2 lg:space-x-3"
2721
+ },
2722
+ md: {
2723
+ container: "mb-6 lg:mb-8",
2724
+ icon: "w-6 h-6 lg:w-7 lg:h-7",
2725
+ title: "text-xl lg:text-2xl",
2726
+ subtitle: "text-sm",
2727
+ spacing: "space-x-2 lg:space-x-3"
2728
+ },
2729
+ lg: {
2730
+ container: "mb-6 lg:mb-8",
2731
+ icon: "w-6 h-6 lg:w-8 lg:h-8",
2732
+ title: "text-xl lg:text-3xl",
2733
+ subtitle: "text-sm",
2734
+ spacing: "space-x-2 lg:space-x-3"
2735
+ }
2736
+ };
2737
+ const currentSize = sizeClasses5[size];
2738
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${currentSize.container} ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "header-layout", children: [
2714
2739
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center space-x-3", children: [
2715
- Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "w-6 h-6 lg:w-8 lg:h-8 flex-shrink-0" }),
2740
+ Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: `${currentSize.icon} flex-shrink-0` }),
2716
2741
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
2717
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl lg:text-3xl font-bold text-foreground truncate", children: title }),
2718
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm lg:text-base text-muted-foreground", children: subtitle })
2742
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `${currentSize.title} font-bold truncate`, children: title }),
2743
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `${currentSize.subtitle} text-muted-foreground`, children: subtitle })
2719
2744
  ] })
2720
2745
  ] }),
2721
- rightContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center space-x-2 lg:space-x-3 flex-shrink-0", children: rightContent })
2746
+ rightContent && /* @__PURE__ */ jsxRuntime.jsx(
2747
+ "div",
2748
+ {
2749
+ className: `flex items-center ${currentSize.spacing} flex-shrink-0`,
2750
+ children: rightContent
2751
+ }
2752
+ )
2722
2753
  ] }) });
2723
2754
  }
2724
2755
  function Switch({