@sustaina/shared-ui 1.37.0 → 1.37.1

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.mjs CHANGED
@@ -3405,13 +3405,6 @@ var LookupSelect = ({
3405
3405
  clearTimeout(fetchDelayRef.current);
3406
3406
  }
3407
3407
  const query = inputValue.trim();
3408
- if (!query) {
3409
- setLoading(false);
3410
- setFetchError(null);
3411
- setSuggestions([]);
3412
- setIsDropdownOpen(false);
3413
- return;
3414
- }
3415
3408
  setLoading(true);
3416
3409
  setFetchError(null);
3417
3410
  setIsDropdownOpen(true);
@@ -4271,7 +4264,7 @@ var sanitizeInput = (val) => {
4271
4264
  const trimmed = val.trim();
4272
4265
  if (/^\{.*\}$/s.test(trimmed) || /^\[.*\]$/s.test(trimmed)) return "__INVALID_JSON_LITERAL__";
4273
4266
  if (/\\\{/.test(val) || /\\\}/.test(val)) return "__INVALID_JSON_ESCAPE__";
4274
- if (/[%_*~^]/.test(trimmed)) return "__INVALID_WILDCARD__";
4267
+ if (/[%*~^]/.test(trimmed)) return "__INVALID_WILDCARD__";
4275
4268
  if (/[%><={}\\[\]"']/u.test(trimmed)) return "__INVALID_CHAR__";
4276
4269
  if (/\p{Cc}/u.test(val)) return "__INVALID_CONTROL_CHAR__";
4277
4270
  return trimmed.replace(/\s+/g, " ");