myoperator-mcp 0.2.50 → 0.2.52

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 +109 -39
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21,7 +21,8 @@ const accordionVariants = cva("w-full", {
21
21
  variants: {
22
22
  variant: {
23
23
  default: "",
24
- bordered: "border border-semantic-border-layout rounded-lg divide-y divide-semantic-border-layout",
24
+ bordered:
25
+ "border border-semantic-border-layout rounded-lg divide-y divide-semantic-border-layout",
25
26
  },
26
27
  },
27
28
  defaultVariants: {
@@ -367,11 +368,16 @@ const alertVariants = cva(
367
368
  {
368
369
  variants: {
369
370
  variant: {
370
- default: "bg-semantic-bg-ui border-semantic-border-layout [&>svg]:text-semantic-text-primary",
371
- success: "bg-semantic-success-surface border-semantic-success-border [&>svg]:text-semantic-success-primary",
372
- error: "bg-semantic-error-surface border-semantic-error-border [&>svg]:text-semantic-error-primary",
373
- destructive: "bg-semantic-error-surface border-semantic-error-border [&>svg]:text-semantic-error-primary",
374
- warning: "bg-semantic-warning-surface border-semantic-warning-border [&>svg]:text-semantic-warning-primary",
371
+ default:
372
+ "bg-semantic-bg-ui border-semantic-border-layout [&>svg]:text-semantic-text-primary",
373
+ success:
374
+ "bg-semantic-success-surface border-semantic-success-border [&>svg]:text-semantic-success-primary",
375
+ error:
376
+ "bg-semantic-error-surface border-semantic-error-border [&>svg]:text-semantic-error-primary",
377
+ destructive:
378
+ "bg-semantic-error-surface border-semantic-error-border [&>svg]:text-semantic-error-primary",
379
+ warning:
380
+ "bg-semantic-warning-surface border-semantic-warning-border [&>svg]:text-semantic-warning-primary",
375
381
  info: "bg-semantic-info-surface border-semantic-info-border [&>svg]:text-semantic-info-primary",
376
382
  },
377
383
  },
@@ -505,10 +511,12 @@ const Alert = React.forwardRef<HTMLDivElement, AlertProps>(
505
511
  className={cn(
506
512
  "rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2",
507
513
  variant === "default" && "focus:ring-semantic-text-primary",
508
- variant === "success" && "focus:ring-semantic-success-primary",
514
+ variant === "success" &&
515
+ "focus:ring-semantic-success-primary",
509
516
  (variant === "error" || variant === "destructive") &&
510
517
  "focus:ring-semantic-error-primary",
511
- variant === "warning" && "focus:ring-semantic-warning-primary",
518
+ variant === "warning" &&
519
+ "focus:ring-semantic-warning-primary",
512
520
  variant === "info" && "focus:ring-semantic-info-primary"
513
521
  )}
514
522
  aria-label="Close alert"
@@ -576,7 +584,8 @@ const badgeVariants = cva(
576
584
  primary: "bg-semantic-bg-ui text-semantic-text-primary",
577
585
  // shadcn-style variants (new)
578
586
  secondary: "bg-semantic-bg-ui text-semantic-text-primary",
579
- outline: "border border-semantic-border-layout bg-transparent text-semantic-text-primary",
587
+ outline:
588
+ "border border-semantic-border-layout bg-transparent text-semantic-text-primary",
580
589
  destructive: "bg-semantic-error-surface text-semantic-error-primary",
581
590
  },
582
591
  size: {
@@ -680,13 +689,18 @@ const buttonVariants = cva(
680
689
  {
681
690
  variants: {
682
691
  variant: {
683
- default: "bg-semantic-primary text-semantic-text-inverted hover:bg-semantic-primary-hover",
684
- primary: "bg-semantic-primary text-semantic-text-inverted hover:bg-semantic-primary-hover",
685
- destructive: "bg-semantic-error-primary text-semantic-text-inverted hover:bg-semantic-error-hover",
692
+ default:
693
+ "bg-semantic-primary text-semantic-text-inverted hover:bg-semantic-primary-hover",
694
+ primary:
695
+ "bg-semantic-primary text-semantic-text-inverted hover:bg-semantic-primary-hover",
696
+ destructive:
697
+ "bg-semantic-error-primary text-semantic-text-inverted hover:bg-semantic-error-hover",
686
698
  outline:
687
699
  "border border-semantic-border-primary bg-transparent text-semantic-text-secondary hover:bg-semantic-primary-surface",
688
- secondary: "bg-semantic-primary-surface text-semantic-text-secondary hover:bg-semantic-bg-hover",
689
- ghost: "text-semantic-text-muted hover:bg-semantic-bg-ui hover:text-semantic-text-primary",
700
+ secondary:
701
+ "bg-semantic-primary-surface text-semantic-text-secondary hover:bg-semantic-bg-hover",
702
+ ghost:
703
+ "text-semantic-text-muted hover:bg-semantic-bg-ui hover:text-semantic-text-primary",
690
704
  link: "text-semantic-text-secondary underline-offset-4 hover:underline",
691
705
  dashed:
692
706
  "border border-dashed border-semantic-bg-hover bg-transparent text-semantic-text-muted hover:border-semantic-border-primary hover:text-semantic-text-secondary hover:bg-[var(--color-neutral-50)]",
@@ -1250,7 +1264,8 @@ const DeleteConfirmationModal = React.forwardRef<
1250
1264
  <DialogHeader>
1251
1265
  <DialogTitle>{title || defaultTitle}</DialogTitle>
1252
1266
  <DialogDescription className={description ? undefined : "sr-only"}>
1253
- {description || "Delete confirmation dialog - this action cannot be undone"}
1267
+ {description ||
1268
+ "Delete confirmation dialog - this action cannot be undone"}
1254
1269
  </DialogDescription>
1255
1270
  </DialogHeader>
1256
1271
  <div className="grid gap-2 py-4">
@@ -1340,7 +1355,8 @@ const dialogContentVariants = cva(
1340
1355
  );
1341
1356
 
1342
1357
  export interface DialogContentProps
1343
- extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,
1358
+ extends
1359
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,
1344
1360
  VariantProps<typeof dialogContentVariants> {
1345
1361
  /** Hide the default close button in the top-right corner */
1346
1362
  hideCloseButton?: boolean;
@@ -1959,10 +1975,15 @@ const MultiSelect = React.forwardRef<HTMLButtonElement, MultiSelectProps>(
1959
1975
  {label && (
1960
1976
  <label
1961
1977
  htmlFor={selectId}
1962
- className={cn("text-sm font-medium text-semantic-text-primary", labelClassName)}
1978
+ className={cn(
1979
+ "text-xs font-normal text-semantic-text-muted",
1980
+ labelClassName
1981
+ )}
1963
1982
  >
1964
1983
  {label}
1965
- {required && <span className="text-semantic-error-primary ml-0.5">*</span>}
1984
+ {required && (
1985
+ <span className="text-semantic-error-primary ml-0.5">*</span>
1986
+ )}
1966
1987
  </label>
1967
1988
  )}
1968
1989
 
@@ -1987,7 +2008,9 @@ const MultiSelect = React.forwardRef<HTMLButtonElement, MultiSelectProps>(
1987
2008
  >
1988
2009
  <div className="flex-1 flex flex-wrap gap-1">
1989
2010
  {selectedValues.length === 0 ? (
1990
- <span className="text-semantic-text-placeholder">{placeholder}</span>
2011
+ <span className="text-semantic-text-placeholder">
2012
+ {placeholder}
2013
+ </span>
1991
2014
  ) : (
1992
2015
  selectedLabels.map((label, index) => (
1993
2016
  <span
@@ -2134,7 +2157,10 @@ const MultiSelect = React.forwardRef<HTMLButtonElement, MultiSelectProps>(
2134
2157
  {(error || helperText) && (
2135
2158
  <div className="flex justify-between items-start gap-2">
2136
2159
  {error ? (
2137
- <span id={errorId} className="text-xs text-semantic-error-primary">
2160
+ <span
2161
+ id={errorId}
2162
+ className="text-xs text-semantic-error-primary"
2163
+ >
2138
2164
  {error}
2139
2165
  </span>
2140
2166
  ) : helperText ? (
@@ -2312,7 +2338,9 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
2312
2338
 
2313
2339
  // Render actions for desktop (all inline)
2314
2340
  const renderDesktopActions = () => (
2315
- <div className="hidden sm:flex items-center gap-2 ml-6">{actionsArray}</div>
2341
+ <div className="hidden sm:flex items-center gap-2 ml-6">
2342
+ {actionsArray}
2343
+ </div>
2316
2344
  );
2317
2345
 
2318
2346
  // Render expandable actions (for mobile and vertical layout)
@@ -2423,7 +2451,7 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
2423
2451
  )}
2424
2452
  </div>
2425
2453
  {description && (
2426
- <p className="m-0 text-sm text-semantic-text-primary font-normal mt-1 line-clamp-2">
2454
+ <p className="m-0 text-sm text-semantic-text-secondary font-normal mt-1 line-clamp-2">
2427
2455
  {description}
2428
2456
  </p>
2429
2457
  )}
@@ -2606,10 +2634,15 @@ const SelectField = React.forwardRef<HTMLButtonElement, SelectFieldProps>(
2606
2634
  {label && (
2607
2635
  <label
2608
2636
  htmlFor={selectId}
2609
- className={cn("text-sm font-medium text-semantic-text-primary", labelClassName)}
2637
+ className={cn(
2638
+ "text-xs font-normal text-semantic-text-muted",
2639
+ labelClassName
2640
+ )}
2610
2641
  >
2611
2642
  {label}
2612
- {required && <span className="text-semantic-error-primary ml-0.5">*</span>}
2643
+ {required && (
2644
+ <span className="text-semantic-error-primary ml-0.5">*</span>
2645
+ )}
2613
2646
  </label>
2614
2647
  )}
2615
2648
 
@@ -2698,7 +2731,10 @@ const SelectField = React.forwardRef<HTMLButtonElement, SelectFieldProps>(
2698
2731
  {(error || helperText) && (
2699
2732
  <div className="flex justify-between items-start gap-2">
2700
2733
  {error ? (
2701
- <span id={errorId} className="text-xs text-semantic-error-primary">
2734
+ <span
2735
+ id={errorId}
2736
+ className="text-xs text-semantic-error-primary"
2737
+ >
2702
2738
  {error}
2703
2739
  </span>
2704
2740
  ) : helperText ? (
@@ -2849,7 +2885,10 @@ const SelectLabel = React.forwardRef<
2849
2885
  >(({ className, ...props }, ref) => (
2850
2886
  <SelectPrimitive.Label
2851
2887
  ref={ref}
2852
- className={cn("px-4 py-1.5 text-xs font-medium text-semantic-text-muted", className)}
2888
+ className={cn(
2889
+ "px-4 py-1.5 text-xs font-medium text-semantic-text-muted",
2890
+ className
2891
+ )}
2853
2892
  {...props}
2854
2893
  />
2855
2894
  ));
@@ -3212,7 +3251,10 @@ const TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(
3212
3251
  </span>
3213
3252
  )}
3214
3253
  {infoTooltip && (
3215
- <span className="text-[var(--color-neutral-400)] cursor-help" title={infoTooltip}>
3254
+ <span
3255
+ className="text-[var(--color-neutral-400)] cursor-help"
3256
+ title={infoTooltip}
3257
+ >
3216
3258
  \u24D8
3217
3259
  </span>
3218
3260
  )}
@@ -3296,7 +3338,10 @@ export interface TableEmptyProps {
3296
3338
 
3297
3339
  const TableEmpty = ({ colSpan, children }: TableEmptyProps) => (
3298
3340
  <TableRow>
3299
- <TableCell colSpan={colSpan} className="text-center py-8 text-semantic-text-muted">
3341
+ <TableCell
3342
+ colSpan={colSpan}
3343
+ className="text-center py-8 text-semantic-text-muted"
3344
+ >
3300
3345
  {children || "No data available"}
3301
3346
  </TableCell>
3302
3347
  </TableRow>
@@ -3673,10 +3718,15 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
3673
3718
  {label && (
3674
3719
  <label
3675
3720
  htmlFor={inputId}
3676
- className={cn("text-sm font-medium text-semantic-text-primary", labelClassName)}
3721
+ className={cn(
3722
+ "text-xs font-normal text-semantic-text-muted",
3723
+ labelClassName
3724
+ )}
3677
3725
  >
3678
3726
  {label}
3679
- {required && <span className="text-semantic-error-primary ml-0.5">*</span>}
3727
+ {required && (
3728
+ <span className="text-semantic-error-primary ml-0.5">*</span>
3729
+ )}
3680
3730
  </label>
3681
3731
  )}
3682
3732
 
@@ -3725,7 +3775,10 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
3725
3775
  {(error || helperText || (showCount && maxLength)) && (
3726
3776
  <div className="flex justify-between items-start gap-2">
3727
3777
  {error ? (
3728
- <span id={errorId} className="text-xs text-semantic-error-primary">
3778
+ <span
3779
+ id={errorId}
3780
+ className="text-xs text-semantic-error-primary"
3781
+ >
3729
3782
  {error}
3730
3783
  </span>
3731
3784
  ) : helperText ? (
@@ -3739,7 +3792,9 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
3739
3792
  <span
3740
3793
  className={cn(
3741
3794
  "text-xs",
3742
- charCount > maxLength ? "text-semantic-error-primary" : "text-semantic-text-muted"
3795
+ charCount > maxLength
3796
+ ? "text-semantic-error-primary"
3797
+ : "text-semantic-text-muted"
3743
3798
  )}
3744
3799
  >
3745
3800
  {charCount}/{maxLength}
@@ -3784,10 +3839,14 @@ const toastVariants = cva(
3784
3839
  {
3785
3840
  variants: {
3786
3841
  variant: {
3787
- default: "border-semantic-border-layout bg-semantic-bg-primary text-semantic-text-primary",
3788
- success: "border-semantic-success-border bg-semantic-success-surface text-semantic-success-hover",
3789
- error: "border-semantic-error-border bg-semantic-error-surface text-semantic-error-hover",
3790
- warning: "border-semantic-warning-border bg-semantic-warning-surface text-semantic-warning-hover",
3842
+ default:
3843
+ "border-semantic-border-layout bg-semantic-bg-primary text-semantic-text-primary",
3844
+ success:
3845
+ "border-semantic-success-border bg-semantic-success-surface text-semantic-success-hover",
3846
+ error:
3847
+ "border-semantic-error-border bg-semantic-error-surface text-semantic-error-hover",
3848
+ warning:
3849
+ "border-semantic-warning-border bg-semantic-warning-surface text-semantic-warning-hover",
3791
3850
  info: "border-semantic-info-border bg-semantic-info-surface text-semantic-info-hover",
3792
3851
  },
3793
3852
  },
@@ -3881,7 +3940,6 @@ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
3881
3940
 
3882
3941
  type ToastActionElement = React.ReactElement<typeof ToastAction>;
3883
3942
 
3884
-
3885
3943
  export {
3886
3944
  type ToastProps,
3887
3945
  type ToastActionElement,
@@ -4126,11 +4184,23 @@ function Toaster() {
4126
4184
 
4127
4185
  return (
4128
4186
  <ToastProvider>
4129
- {toasts.map(function ({ id, title, description, action, variant, ...props }) {
4187
+ {toasts.map(function ({
4188
+ id,
4189
+ title,
4190
+ description,
4191
+ action,
4192
+ variant,
4193
+ ...props
4194
+ }) {
4130
4195
  const Icon = variant ? variantIcons[variant] : null;
4131
4196
 
4132
4197
  return (
4133
- <Toast key={id} variant={variant} className={variant ?? undefined} {...props}>
4198
+ <Toast
4199
+ key={id}
4200
+ variant={variant}
4201
+ className={variant ?? undefined}
4202
+ {...props}
4203
+ >
4134
4204
  <div className="flex gap-3">
4135
4205
  {Icon && (
4136
4206
  <Icon
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.50",
3
+ "version": "0.2.52",
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",