@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.cjs CHANGED
@@ -5034,7 +5034,7 @@ var Combobox = ({
5034
5034
  const labelId = label ? `${resolvedId}-label` : void 0;
5035
5035
  const enableSearch = options.length > 10;
5036
5036
  const filteredOptions = React20.useMemo(
5037
- () => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.toLowerCase())) : options,
5037
+ () => enableSearch ? options.filter((o) => getOptionLabel(o).toLowerCase().includes(query.trim().toLowerCase())) : options,
5038
5038
  [options, query, enableSearch]
5039
5039
  );
5040
5040
  const triggerRef = React20.useRef(null);
@@ -12275,7 +12275,7 @@ var MultiCombobox = ({
12275
12275
  const enableSearch = normalizedOptions.length > 10;
12276
12276
  const filtered = React34.useMemo(
12277
12277
  () => enableSearch ? normalizedOptions.filter(
12278
- (opt) => opt.label.toLowerCase().includes(query.toLowerCase()) || opt.description?.toLowerCase().includes(query.toLowerCase())
12278
+ (opt) => opt.label.toLowerCase().includes(query.trim().toLowerCase()) || opt.description?.toLowerCase().includes(query.trim().toLowerCase())
12279
12279
  ) : normalizedOptions,
12280
12280
  [normalizedOptions, query, enableSearch]
12281
12281
  );
@@ -12544,7 +12544,7 @@ var MultiCombobox = ({
12544
12544
  "span",
12545
12545
  {
12546
12546
  className: cn(
12547
- "inline-flex items-center gap-1.5 bg-primary/10 text-primary rounded-full transition-all duration-200 shrink-0",
12547
+ "inline-flex items-center gap-1.5 bg-primary/10 text-primary rounded-full transition-all duration-200 min-w-0",
12548
12548
  "hover:bg-primary/20",
12549
12549
  sizeStyles8[size].tag
12550
12550
  ),