myoperator-mcp 0.2.358 → 0.2.360

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 +50 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1156,7 +1156,7 @@ const Checkbox = React.forwardRef(
1156
1156
  htmlFor={id}
1157
1157
  className={cn(
1158
1158
  labelSizeVariants({ size }),
1159
- "text-semantic-text-primary cursor-pointer",
1159
+ "font-semibold text-semantic-text-secondary cursor-pointer",
1160
1160
  disabled && "opacity-50 cursor-not-allowed",
1161
1161
  labelClassName
1162
1162
  )}
@@ -1170,7 +1170,7 @@ const Checkbox = React.forwardRef(
1170
1170
  htmlFor={id}
1171
1171
  className={cn(
1172
1172
  labelSizeVariants({ size }),
1173
- "text-semantic-text-primary cursor-pointer",
1173
+ "font-semibold text-semantic-text-secondary cursor-pointer",
1174
1174
  disabled && "opacity-50 cursor-not-allowed",
1175
1175
  labelClassName
1176
1176
  )}
@@ -1194,7 +1194,7 @@ const Checkbox = React.forwardRef(
1194
1194
  <span
1195
1195
  className={cn(
1196
1196
  labelSizeVariants({ size }),
1197
- "text-semantic-text-primary",
1197
+ "font-semibold text-semantic-text-secondary",
1198
1198
  disabled && "opacity-50",
1199
1199
  labelClassName
1200
1200
  )}
@@ -1207,7 +1207,7 @@ const Checkbox = React.forwardRef(
1207
1207
  <span
1208
1208
  className={cn(
1209
1209
  labelSizeVariants({ size }),
1210
- "text-semantic-text-primary",
1210
+ "font-semibold text-semantic-text-secondary",
1211
1211
  disabled && "opacity-50",
1212
1212
  labelClassName
1213
1213
  )}
@@ -2666,6 +2666,12 @@ export interface DateTimePickerProps
2666
2666
  value?: DateTimePickerValue;
2667
2667
  defaultValue?: DateTimePickerValue;
2668
2668
  onValueChange?: (value: DateTimePickerValue) => void;
2669
+ /** Label text displayed above the trigger */
2670
+ label?: string;
2671
+ /** Shows a red asterisk next to the label when true */
2672
+ required?: boolean;
2673
+ /** Additional class for the label */
2674
+ labelClassName?: string;
2669
2675
  placeholder?: string;
2670
2676
  disabled?: boolean;
2671
2677
  readOnly?: boolean;
@@ -3918,6 +3924,9 @@ const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(
3918
3924
  value,
3919
3925
  defaultValue,
3920
3926
  onValueChange,
3927
+ label,
3928
+ required,
3929
+ labelClassName,
3921
3930
  placeholder: placeholderProp,
3922
3931
  disabled = false,
3923
3932
  readOnly = false,
@@ -4675,6 +4684,20 @@ const DateTimePicker = React.forwardRef<HTMLDivElement, DateTimePickerProps>(
4675
4684
  )}
4676
4685
  />
4677
4686
  )}
4687
+ {label && (
4688
+ <label
4689
+ htmlFor={triggerId}
4690
+ className={cn(
4691
+ "mb-1.5 block text-sm font-semibold text-semantic-text-secondary",
4692
+ labelClassName
4693
+ )}
4694
+ >
4695
+ {label}
4696
+ {required && (
4697
+ <span className="text-semantic-error-primary ml-0.5">*</span>
4698
+ )}
4699
+ </label>
4700
+ )}
4678
4701
  <div
4679
4702
  ref={setTriggerRef}
4680
4703
  className={cn(
@@ -6371,7 +6394,7 @@ const MultiSelect = React.forwardRef(
6371
6394
  selectedLabels.map((label, index) => (
6372
6395
  <span
6373
6396
  key={selectedValues[index]}
6374
- className="inline-flex items-center gap-1 bg-semantic-bg-ui text-semantic-text-primary text-xs px-2 py-0.5 rounded"
6397
+ className="inline-flex items-center gap-1 bg-semantic-bg-ui text-semantic-text-primary text-sm px-2 py-0.5 rounded"
6375
6398
  >
6376
6399
  {label}
6377
6400
  <span
@@ -6446,14 +6469,14 @@ const MultiSelect = React.forwardRef(
6446
6469
  className="size-3.5 shrink-0 text-semantic-error-primary"
6447
6470
  aria-hidden
6448
6471
  />
6449
- <span className="text-xs text-semantic-error-primary">
6472
+ <span className="text-sm text-semantic-error-primary">
6450
6473
  {error}
6451
6474
  </span>
6452
6475
  </div>
6453
6476
  ) : helperText ? (
6454
6477
  <span
6455
6478
  id={helperId}
6456
- className="text-xs text-semantic-text-muted"
6479
+ className="text-sm text-semantic-text-muted"
6457
6480
  >
6458
6481
  {helperText}
6459
6482
  </span>
@@ -6513,7 +6536,7 @@ const MultiSelect = React.forwardRef(
6513
6536
  return (
6514
6537
  <div
6515
6538
  key={\`header-\${item.label}-\${itemIndex}\`}
6516
- className="px-3 pt-2 pb-1 text-xs font-semibold uppercase tracking-wide text-semantic-text-muted"
6539
+ className="px-3 pt-2 pb-1 text-sm font-semibold uppercase tracking-wide text-semantic-text-muted"
6517
6540
  >
6518
6541
  {item.label}
6519
6542
  </div>
@@ -6594,7 +6617,7 @@ const MultiSelect = React.forwardRef(
6594
6617
  {option.label}
6595
6618
  </span>
6596
6619
  {secondaryLine ? (
6597
- <span className="shrink-0 max-w-[55%] truncate text-right text-xs text-semantic-text-muted">
6620
+ <span className="shrink-0 max-w-[55%] truncate text-right text-sm text-semantic-text-muted">
6598
6621
  {secondaryLine}
6599
6622
  </span>
6600
6623
  ) : null}
@@ -6614,7 +6637,7 @@ const MultiSelect = React.forwardRef(
6614
6637
  </TooltipTrigger>
6615
6638
  <TooltipContent
6616
6639
  side="top"
6617
- className="max-w-xs bg-semantic-primary text-semantic-text-inverted border-semantic-primary border-solid"
6640
+ className="max-w-sm bg-semantic-primary text-semantic-text-inverted border-semantic-primary border-solid"
6618
6641
  >
6619
6642
  {overlayCopy}
6620
6643
  </TooltipContent>
@@ -6636,7 +6659,7 @@ const MultiSelect = React.forwardRef(
6636
6659
 
6637
6660
  {/* Footer with count */}
6638
6661
  {maxSelections && showSelectionFooter ? (
6639
- <div className="p-2 border-t border-solid border-semantic-border-layout text-xs text-semantic-text-muted">
6662
+ <div className="p-2 border-t border-solid border-semantic-border-layout text-sm text-semantic-text-muted">
6640
6663
  {selectedValues.length} / {maxSelections} selected
6641
6664
  </div>
6642
6665
  ) : null}
@@ -7895,7 +7918,7 @@ export const ReadableField = React.forwardRef(
7895
7918
  >
7896
7919
  {/* Header Row: Label + Optional Action */}
7897
7920
  <div className="flex items-start justify-between">
7898
- <span className="text-sm font-semibold text-semantic-text-secondary tracking-[0.035px]">
7921
+ <span className="text-sm font-semibold text-semantic-text-secondary">
7899
7922
  {label}
7900
7923
  </span>
7901
7924
  {headerAction && (
@@ -7980,7 +8003,7 @@ export const ReadableField = React.forwardRef(
7980
8003
 
7981
8004
  {/* Helper Text */}
7982
8005
  {helperText && (
7983
- <p className="m-0 text-sm text-semantic-text-muted tracking-[0.035px]">
8006
+ <p className="m-0 text-sm text-semantic-text-muted">
7984
8007
  {helperText}
7985
8008
  </p>
7986
8009
  )}
@@ -8725,6 +8748,13 @@ export interface SelectFieldProps {
8725
8748
  wrapperClassName?: string;
8726
8749
  /** Additional class for trigger */
8727
8750
  triggerClassName?: string;
8751
+ /**
8752
+ * Additional class for the dropdown content. By default the content width is
8753
+ * bound to the trigger width (\`--radix-select-trigger-width\`); override here
8754
+ * (e.g. \`w-[280px] max-w-[320px]\`) when the trigger is intentionally narrow \u2014
8755
+ * such as a "View all" text link \u2014 so the list isn't clipped to the link width.
8756
+ */
8757
+ contentClassName?: string;
8728
8758
  /** Additional class for label */
8729
8759
  labelClassName?: string;
8730
8760
  /** ID for the select */
@@ -8823,6 +8853,7 @@ const SelectField = React.forwardRef(
8823
8853
  onSearchChange,
8824
8854
  wrapperClassName,
8825
8855
  triggerClassName,
8856
+ contentClassName,
8826
8857
  labelClassName,
8827
8858
  id,
8828
8859
  name,
@@ -8990,6 +9021,7 @@ const SelectField = React.forwardRef(
8990
9021
  <SelectContent
8991
9022
  onViewportScrollEnd={hasMore !== false ? onScrollEnd : undefined}
8992
9023
  hideScrollButtons={totalRendered === 0}
9024
+ className={contentClassName}
8993
9025
  >
8994
9026
  {/* Search input */}
8995
9027
  {searchable && (
@@ -9066,7 +9098,7 @@ const SelectField = React.forwardRef(
9066
9098
  {showEndOfList && (
9067
9099
  <div
9068
9100
  role="status"
9069
- className="py-2 text-center text-xs text-semantic-text-muted"
9101
+ className="py-2 text-center text-sm text-semantic-text-muted"
9070
9102
  >
9071
9103
  End of list
9072
9104
  </div>
@@ -9080,12 +9112,12 @@ const SelectField = React.forwardRef(
9080
9112
  {error ? (
9081
9113
  <span
9082
9114
  id={errorId}
9083
- className="text-xs text-semantic-error-primary"
9115
+ className="text-sm text-semantic-error-primary"
9084
9116
  >
9085
9117
  {error}
9086
9118
  </span>
9087
9119
  ) : helperText ? (
9088
- <span id={helperId} className="text-xs text-semantic-text-muted">
9120
+ <span id={helperId} className="text-sm text-semantic-text-muted">
9089
9121
  {helperText}
9090
9122
  </span>
9091
9123
  ) : null}
@@ -9725,7 +9757,7 @@ const Switch = React.forwardRef(
9725
9757
  <span
9726
9758
  className={cn(
9727
9759
  labelSizeVariants({ size }),
9728
- "text-semantic-text-primary",
9760
+ "font-semibold text-semantic-text-secondary",
9729
9761
  disabled && "opacity-50"
9730
9762
  )}
9731
9763
  >
@@ -9737,7 +9769,7 @@ const Switch = React.forwardRef(
9737
9769
  <span
9738
9770
  className={cn(
9739
9771
  labelSizeVariants({ size }),
9740
- "text-semantic-text-primary",
9772
+ "font-semibold text-semantic-text-secondary",
9741
9773
  disabled && "opacity-50"
9742
9774
  )}
9743
9775
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-mcp",
3
- "version": "0.2.358",
3
+ "version": "0.2.360",
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",