myoperator-mcp 0.2.159 → 0.2.161
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.js +23 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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