@underverse-ui/underverse 1.0.18 → 1.0.20

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 CHANGED
@@ -4854,7 +4854,7 @@ var Combobox = ({
4854
4854
  const labelId = label ? `${resolvedId}-label` : void 0;
4855
4855
  const enableSearch = options.length > 10;
4856
4856
  const filteredOptions = React20.useMemo(
4857
- () => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.toLowerCase())) : options,
4857
+ () => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.trim().toLowerCase())) : options,
4858
4858
  [options, query, enableSearch]
4859
4859
  );
4860
4860
  const triggerRef = React20.useRef(null);
@@ -12095,7 +12095,7 @@ var MultiCombobox = ({
12095
12095
  const enableSearch = normalizedOptions.length > 10;
12096
12096
  const filtered = React34.useMemo(
12097
12097
  () => enableSearch ? normalizedOptions.filter(
12098
- (opt) => opt.label.toLowerCase().includes(query.toLowerCase()) || opt.description?.toLowerCase().includes(query.toLowerCase())
12098
+ (opt) => opt.label.toLowerCase().includes(query.trim().toLowerCase()) || opt.description?.toLowerCase().includes(query.trim().toLowerCase())
12099
12099
  ) : normalizedOptions,
12100
12100
  [normalizedOptions, query, enableSearch]
12101
12101
  );
@@ -12364,7 +12364,7 @@ var MultiCombobox = ({
12364
12364
  "span",
12365
12365
  {
12366
12366
  className: cn(
12367
- "inline-flex items-center gap-1.5 bg-primary/10 text-primary rounded-full transition-all duration-200 shrink-0",
12367
+ "inline-flex items-center gap-1.5 bg-primary/10 text-primary rounded-full transition-all duration-200 min-w-0",
12368
12368
  "hover:bg-primary/20",
12369
12369
  sizeStyles8[size].tag
12370
12370
  ),