eai-frontend-components 2.0.93 → 2.0.94

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.esm.js CHANGED
@@ -10139,7 +10139,8 @@ const NotFound = () => {
10139
10139
  };
10140
10140
 
10141
10141
  function NodeCard({ node, onNodeClick, isExpanded, hasChildren, onToggle, searchTerm }) {
10142
- const isHighlighted = !!searchTerm?.trim() && node.title.toLowerCase().includes(searchTerm.toLowerCase());
10142
+ const isHighlighted = !!searchTerm?.trim() &&
10143
+ (node.title.toLowerCase().includes(searchTerm.toLowerCase()) || node.description?.toLowerCase().includes(searchTerm.toLowerCase()));
10143
10144
  return (jsx(Card, { className: cn('w-44 border transition-colors', onNodeClick && 'cursor-pointer hover:border-primary', isHighlighted && 'border-primary bg-primary/10'), onClick: () => onNodeClick?.(node), children: jsxs(CardContent, { className: 'flex flex-col gap-1.5 p-3', children: [jsx("div", { className: 'flex items-start justify-between gap-1', children: jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { asChild: true, children: jsx("span", { className: 'line-clamp-2 text-sm font-medium leading-snug', children: node.title }) }), jsx(TooltipContent, { side: 'top', children: node.title })] }) }) }), node.description && jsx("p", { className: 'line-clamp-1 text-xs text-muted-foreground', children: node.description }), node.badges && (jsx("div", { className: 'flex justify-between gap-2', children: node.badges.map((badge, index) => (jsxs(Badge, { variant: badge.variant ?? 'secondary', className: 'mt-0.5 shrink-0 text-xs', children: [badge.icon && jsx("span", { className: 'mr-1', children: badge.icon }), badge.label] }, index))) })), node.icon && jsx("div", { className: 'text-muted-foreground', children: node.icon }), hasChildren && (jsx("div", { className: 'flex justify-center pt-0.5', children: jsx(Button, { type: 'button', variant: 'ghost', size: 'icon', className: 'h-5 w-5', onClick: (e) => {
10144
10145
  e.stopPropagation();
10145
10146
  onToggle();