myoperator-mcp 0.2.148 → 0.2.150
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 +16 -38
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1410,8 +1410,6 @@ export interface CreatableMultiSelectProps
|
|
|
1410
1410
|
disabled?: boolean
|
|
1411
1411
|
/** Error state */
|
|
1412
1412
|
state?: "default" | "error"
|
|
1413
|
-
/** Hint text shown at top of dropdown when open */
|
|
1414
|
-
creatableHint?: string
|
|
1415
1413
|
/** Helper text shown below the trigger */
|
|
1416
1414
|
helperText?: string
|
|
1417
1415
|
/** Max number of items that can be selected (default: unlimited) */
|
|
@@ -1430,7 +1428,6 @@ const CreatableMultiSelect = React.forwardRef(
|
|
|
1430
1428
|
placeholder = "Enter or select",
|
|
1431
1429
|
disabled = false,
|
|
1432
1430
|
state = "default",
|
|
1433
|
-
creatableHint = "Type to create a custom option",
|
|
1434
1431
|
helperText,
|
|
1435
1432
|
maxItems,
|
|
1436
1433
|
maxLengthPerItem,
|
|
@@ -1505,9 +1502,6 @@ const CreatableMultiSelect = React.forwardRef(
|
|
|
1505
1502
|
o.label.toLowerCase().includes(inputValue.trim().toLowerCase())
|
|
1506
1503
|
)
|
|
1507
1504
|
: availablePresets
|
|
1508
|
-
const canAddCustom =
|
|
1509
|
-
Boolean(inputValue.trim()) && !value.includes(inputValue.trim())
|
|
1510
|
-
|
|
1511
1505
|
const triggerState = isOpen
|
|
1512
1506
|
? state === "error"
|
|
1513
1507
|
? "focused-error"
|
|
@@ -1595,18 +1589,6 @@ const CreatableMultiSelect = React.forwardRef(
|
|
|
1595
1589
|
{/* Dropdown panel */}
|
|
1596
1590
|
{isOpen && (
|
|
1597
1591
|
<div id={listboxId} role="listbox" className="absolute z-[9999] top-full mt-1 w-full bg-semantic-bg-primary border border-solid border-semantic-border-layout rounded shadow-md animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200">
|
|
1598
|
-
{/* Creatable hint \u2014 Enter key */}
|
|
1599
|
-
<div className="flex items-center justify-between px-4 py-2 border-b border-solid border-semantic-border-layout">
|
|
1600
|
-
<span className="text-sm text-semantic-text-muted">
|
|
1601
|
-
{canAddCustom
|
|
1602
|
-
? \`Press enter to add "\${inputValue.trim()}"\`
|
|
1603
|
-
: creatableHint}
|
|
1604
|
-
</span>
|
|
1605
|
-
<kbd className="inline-flex items-center gap-0.5 rounded border border-solid border-semantic-border-layout bg-semantic-bg-ui px-1.5 py-0.5 text-[10px] text-semantic-text-muted font-medium shrink-0">
|
|
1606
|
-
Enter \u21B5
|
|
1607
|
-
</kbd>
|
|
1608
|
-
</div>
|
|
1609
|
-
|
|
1610
1592
|
{/* Preset option chips */}
|
|
1611
1593
|
{filteredPresets.length > 0 && (
|
|
1612
1594
|
<div className="px-2.5 py-2 flex flex-wrap gap-1.5">
|
|
@@ -1632,15 +1614,7 @@ const CreatableMultiSelect = React.forwardRef(
|
|
|
1632
1614
|
|
|
1633
1615
|
{/* Helper row below trigger: when maxLengthPerItem show dynamic hint + counter (Figma); else optional static helperText */}
|
|
1634
1616
|
{maxLengthPerItem != null ? (
|
|
1635
|
-
<div className="flex items-center justify-
|
|
1636
|
-
<div className="flex items-center gap-1.5 text-xs text-semantic-text-muted min-w-0">
|
|
1637
|
-
<Info className="size-3.5 shrink-0 text-semantic-text-muted" />
|
|
1638
|
-
<p className="m-0 truncate">
|
|
1639
|
-
{inputValue.trim()
|
|
1640
|
-
? \`Press Enter to add "\${inputValue.trim()}" \u21B5\`
|
|
1641
|
-
: creatableHint}
|
|
1642
|
-
</p>
|
|
1643
|
-
</div>
|
|
1617
|
+
<div className="flex items-center justify-end gap-2 mt-1.5">
|
|
1644
1618
|
<span className="text-sm text-semantic-text-muted shrink-0">
|
|
1645
1619
|
{inputValue.length}/{maxLengthPerItem}
|
|
1646
1620
|
</span>
|
|
@@ -1704,7 +1678,10 @@ export interface CreatableSelectProps
|
|
|
1704
1678
|
options?: CreatableSelectOption[]
|
|
1705
1679
|
/** Placeholder when no value selected */
|
|
1706
1680
|
placeholder?: string
|
|
1707
|
-
/**
|
|
1681
|
+
/**
|
|
1682
|
+
* Optional hint shown above the options when the dropdown is open.
|
|
1683
|
+
* When omitted, no hint row is shown.
|
|
1684
|
+
*/
|
|
1708
1685
|
creatableHint?: string
|
|
1709
1686
|
/** Whether the select is disabled */
|
|
1710
1687
|
disabled?: boolean
|
|
@@ -1721,7 +1698,7 @@ const CreatableSelect = React.forwardRef(
|
|
|
1721
1698
|
onValueChange,
|
|
1722
1699
|
options = [],
|
|
1723
1700
|
placeholder = "Select an option",
|
|
1724
|
-
creatableHint
|
|
1701
|
+
creatableHint,
|
|
1725
1702
|
disabled = false,
|
|
1726
1703
|
maxLength,
|
|
1727
1704
|
...props
|
|
@@ -1911,15 +1888,16 @@ const CreatableSelect = React.forwardRef(
|
|
|
1911
1888
|
{/* Dropdown */}
|
|
1912
1889
|
{open && (
|
|
1913
1890
|
<div className="absolute left-0 top-full z-[9999] mt-1 w-full rounded border border-solid border-semantic-border-layout bg-semantic-bg-primary shadow-md animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-200">
|
|
1914
|
-
{
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1891
|
+
{creatableHint ? (
|
|
1892
|
+
<div className="flex items-center justify-between px-4 py-2 border-b border-solid border-semantic-border-layout">
|
|
1893
|
+
<span className="text-sm text-semantic-text-muted">
|
|
1894
|
+
{creatableHint}
|
|
1895
|
+
</span>
|
|
1896
|
+
<kbd className="inline-flex items-center gap-0.5 rounded border border-solid border-semantic-border-layout bg-semantic-bg-ui px-1.5 py-0.5 text-[10px] text-semantic-text-muted font-medium">
|
|
1897
|
+
Enter \u21B5
|
|
1898
|
+
</kbd>
|
|
1899
|
+
</div>
|
|
1900
|
+
) : null}
|
|
1923
1901
|
|
|
1924
1902
|
{/* Options list */}
|
|
1925
1903
|
<div
|
package/package.json
CHANGED