myoperator-mcp 0.2.160 → 0.2.162

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 +25 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4195,7 +4195,7 @@ const PhoneInput = React.forwardRef(
4195
4195
  return (
4196
4196
  <div
4197
4197
  className={cn(
4198
- "flex items-center border border-solid border-semantic-border-layout rounded-lg focus-within:border-semantic-border-focus transition-colors",
4198
+ "flex items-center border border-solid border-semantic-border-input rounded focus-within:outline-none focus-within:border-semantic-border-input-focus focus-within:shadow-[0_0_0_1px_rgba(43,188,202,0.15)] transition-all",
4199
4199
  disabled && "opacity-60 bg-semantic-bg-ui cursor-not-allowed",
4200
4200
  wrapperClassName
4201
4201
  )}
@@ -4868,7 +4868,7 @@ const selectTriggerVariants = cva(
4868
4868
  variants: {
4869
4869
  state: {
4870
4870
  default:
4871
- "border border-solid border-semantic-border-input focus:outline-none focus:border-semantic-border-input-focus/50 focus:shadow-[0_0_0_1px_rgba(43,188,202,0.15)]",
4871
+ "border border-solid border-semantic-border-input focus:outline-none focus:border-semantic-border-input-focus focus:shadow-[0_0_0_1px_rgba(43,188,202,0.15)]",
4872
4872
  error:
4873
4873
  "border border-solid border-semantic-error-primary/40 focus:outline-none focus:border-semantic-error-primary/60 focus:shadow-[0_0_0_1px_rgba(240,68,56,0.1)]",
4874
4874
  },
@@ -5859,6 +5859,7 @@ TabsContent.displayName = TabsPrimitive.Content.displayName
5859
5859
  export { Tabs, TabsList, TabsTrigger, TabsContent }
5860
5860
  `,
5861
5861
  "tag": `import * as React from "react";
5862
+ import { X } from "lucide-react";
5862
5863
  import { cva, type VariantProps } from "class-variance-authority";
5863
5864
 
5864
5865
  import { cn } from "@/lib/utils";
@@ -5878,6 +5879,7 @@ const tagVariants = cva("inline-flex items-center rounded text-sm", {
5878
5879
  warning: "bg-semantic-warning-surface text-semantic-warning-primary",
5879
5880
  error: "bg-semantic-error-surface text-semantic-error-primary",
5880
5881
  destructive: "bg-semantic-error-surface text-semantic-error-primary",
5882
+ info: "bg-semantic-info-surface text-semantic-text-primary",
5881
5883
  },
5882
5884
  size: {
5883
5885
  default: "px-2 py-1",
@@ -5906,10 +5908,16 @@ export interface TagProps
5906
5908
  VariantProps<typeof tagVariants> {
5907
5909
  /** Bold label prefix displayed before the content */
5908
5910
  label?: string;
5911
+ /** When provided, renders a dismiss (\xD7) button that calls this handler */
5912
+ onRemove?: (e: React.MouseEvent<HTMLButtonElement>) => void;
5913
+ /** Disables the dismiss button independently */
5914
+ removeDisabled?: boolean;
5915
+ /** Custom aria-label for the dismiss button (default: "Remove") */
5916
+ removeAriaLabel?: string;
5909
5917
  }
5910
5918
 
5911
5919
  const Tag = React.forwardRef(
5912
- ({ className, variant, size, label, children, ...props }: TagProps, ref: React.Ref<HTMLSpanElement>) => {
5920
+ ({ className, variant, size, label, onRemove, removeDisabled, removeAriaLabel, children, ...props }: TagProps, ref: React.Ref<HTMLSpanElement>) => {
5913
5921
  return (
5914
5922
  <span
5915
5923
  className={cn(tagVariants({ variant, size, className }))}
@@ -5918,6 +5926,20 @@ const Tag = React.forwardRef(
5918
5926
  >
5919
5927
  {label && <span className="font-semibold mr-1">{label}</span>}
5920
5928
  <span className="font-normal inline-flex items-center gap-1">{children}</span>
5929
+ {onRemove && (
5930
+ <button
5931
+ type="button"
5932
+ className={cn(
5933
+ "inline-flex items-center justify-center shrink-0 bg-transparent border-none p-0 ml-0.5 cursor-pointer",
5934
+ removeDisabled && "cursor-not-allowed opacity-50"
5935
+ )}
5936
+ onClick={onRemove}
5937
+ disabled={removeDisabled}
5938
+ aria-label={removeAriaLabel ?? "Remove"}
5939
+ >
5940
+ <X className="size-3" />
5941
+ </button>
5942
+ )}
5921
5943
  </span>
5922
5944
  );
5923
5945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.160",
3
+ "version": "0.2.162",
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",