@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.js CHANGED
@@ -3445,13 +3445,6 @@ var LookupSelect = ({
3445
3445
  clearTimeout(fetchDelayRef.current);
3446
3446
  }
3447
3447
  const query = inputValue.trim();
3448
- if (!query) {
3449
- setLoading(false);
3450
- setFetchError(null);
3451
- setSuggestions([]);
3452
- setIsDropdownOpen(false);
3453
- return;
3454
- }
3455
3448
  setLoading(true);
3456
3449
  setFetchError(null);
3457
3450
  setIsDropdownOpen(true);
@@ -4311,7 +4304,7 @@ var sanitizeInput = (val) => {
4311
4304
  const trimmed = val.trim();
4312
4305
  if (/^\{.*\}$/s.test(trimmed) || /^\[.*\]$/s.test(trimmed)) return "__INVALID_JSON_LITERAL__";
4313
4306
  if (/\\\{/.test(val) || /\\\}/.test(val)) return "__INVALID_JSON_ESCAPE__";
4314
- if (/[%_*~^]/.test(trimmed)) return "__INVALID_WILDCARD__";
4307
+ if (/[%*~^]/.test(trimmed)) return "__INVALID_WILDCARD__";
4315
4308
  if (/[%><={}\\[\]"']/u.test(trimmed)) return "__INVALID_CHAR__";
4316
4309
  if (/\p{Cc}/u.test(val)) return "__INVALID_CONTROL_CHAR__";
4317
4310
  return trimmed.replace(/\s+/g, " ");