myoperator-mcp 0.2.134 → 0.2.136

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3431,7 +3431,7 @@ export interface PageHeaderProps
3431
3431
  actions?: React.ReactNode;
3432
3432
  /** Show bottom border (default: true) */
3433
3433
  showBorder?: boolean;
3434
- /** Layout mode: 'horizontal' (single row), 'vertical' (stacked), 'responsive' (auto based on screen size, default) */
3434
+ /** Layout mode: 'horizontal' (row on sm+, stacked on narrow), 'vertical' (stacked), 'responsive' (same as horizontal, default) */
3435
3435
  layout?: "horizontal" | "vertical" | "responsive";
3436
3436
  /** Max actions to show on mobile before overflow (default: 2) */
3437
3437
  mobileOverflowLimit?: number;
@@ -3511,13 +3511,13 @@ const PageHeader = React.forwardRef(
3511
3511
 
3512
3512
  // Layout classes based on prop
3513
3513
  const layoutClasses = {
3514
- horizontal: "flex-row items-center",
3514
+ horizontal: "flex-col sm:flex-row sm:items-center",
3515
3515
  vertical: "flex-col",
3516
3516
  responsive: "flex-col sm:flex-row sm:items-center",
3517
3517
  };
3518
3518
 
3519
3519
  const heightClasses = {
3520
- horizontal: "h-[76px]",
3520
+ horizontal: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
3521
3521
  vertical: "min-h-[76px] py-4",
3522
3522
  responsive: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
3523
3523
  };
@@ -3580,27 +3580,14 @@ const PageHeader = React.forwardRef(
3580
3580
  );
3581
3581
  };
3582
3582
 
3583
- // For horizontal layout, always show all actions inline
3584
- const renderHorizontalActions = () => (
3585
- <div className="flex items-center gap-2 ml-4">
3586
- {actionsArray.map((action, index) => (
3587
- <React.Fragment key={index}>{action}</React.Fragment>
3588
- ))}
3589
- </div>
3590
- );
3591
-
3592
3583
  const renderActions = () => {
3593
3584
  if (!actions) return null;
3594
3585
 
3595
- if (layout === "horizontal") {
3596
- return renderHorizontalActions();
3597
- }
3598
-
3599
3586
  if (layout === "vertical") {
3600
3587
  return renderExpandableActions("mt-3");
3601
3588
  }
3602
3589
 
3603
- // Responsive: render both, CSS handles visibility
3590
+ // horizontal + responsive: stack actions below title on small screens
3604
3591
  return (
3605
3592
  <>
3606
3593
  {renderDesktopActions()}
@@ -3624,7 +3611,12 @@ const PageHeader = React.forwardRef(
3624
3611
  {...props}
3625
3612
  >
3626
3613
  {/* Top Row: Icon/Back + Title + Description */}
3627
- <div className="flex items-start sm:items-center flex-1 min-w-0">
3614
+ <div
3615
+ className={cn(
3616
+ "flex flex-1 min-w-0",
3617
+ description ? "items-start sm:items-center" : "items-center"
3618
+ )}
3619
+ >
3628
3620
  {/* Left Section: Icon or Back Button */}
3629
3621
  {leftElement && (
3630
3622
  <div className="flex-shrink-0 mr-4">{leftElement}</div>
@@ -3632,8 +3624,8 @@ const PageHeader = React.forwardRef(
3632
3624
 
3633
3625
  {/* Content Section: Title + Description */}
3634
3626
  <div className="flex-1 min-w-0">
3635
- <div className="flex items-center gap-2">
3636
- <h1 className="m-0 text-lg font-semibold text-semantic-text-primary truncate">
3627
+ <div className="flex h-auto items-center gap-2 sm:min-h-10">
3628
+ <h1 className="m-0 text-lg font-semibold leading-none text-semantic-text-primary truncate">
3637
3629
  {title}
3638
3630
  </h1>
3639
3631
  {badge && (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.134",
3
+ "version": "0.2.136",
4
4
  "description": "MCP server for myOperator UI components - enables AI assistants to access component metadata, examples, and design tokens",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",