fis-component 0.0.81 → 0.0.83

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/cjs/index.js CHANGED
@@ -63085,7 +63085,7 @@ const FISTab = ({ children, active: propActive, defaultActive, size = "md", clas
63085
63085
  }
63086
63086
  onChange?.(key);
63087
63087
  };
63088
- const activeContent = React.useMemo(() => tabs.find((tab) => tab.value === activeKey)?.children, [activeKey]);
63088
+ const activeContent = tabs.find((tab) => tab.value === activeKey)?.children;
63089
63089
  React.useEffect(() => {
63090
63090
  if (propActive !== undefined) {
63091
63091
  setStateActive(propActive);
@@ -67609,7 +67609,7 @@ const FISMenuSelect = ({ placeholder, groups, size = "md", multi = false, select
67609
67609
  if (search.trim()) {
67610
67610
  filteredItems = filteredItems.map((group) => ({
67611
67611
  ...group,
67612
- items: group.items.filter((item) => item.label.toLowerCase().includes(search.toLowerCase())),
67612
+ items: group.items.filter((item) => item?.label?.toLowerCase()?.includes(search?.toLowerCase())),
67613
67613
  }));
67614
67614
  }
67615
67615
  return filteredItems.filter((group) => group.items.length > 0);
@@ -71094,7 +71094,7 @@ const FISCombobox = React.forwardRef(({ className, options, value, disabled = fa
71094
71094
  return options;
71095
71095
  return options.map((group) => ({
71096
71096
  ...group,
71097
- items: group.items.filter((item) => item.label.toLowerCase().includes(searchValue.toLowerCase())),
71097
+ items: group.items.filter((item) => item?.label?.toLowerCase()?.includes(searchValue?.toLowerCase())),
71098
71098
  }));
71099
71099
  }, [options, searchValue, computedDisplayValue]);
71100
71100
  const hasNoResults = React.useMemo(() => {