@ews-admin/global-design-system 1.32.0 → 1.34.0

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
@@ -33110,7 +33110,7 @@ const useMediaQuery = (query, defaultValue = false) => {
33110
33110
  return value;
33111
33111
  };
33112
33112
 
33113
- const DEFAULT_TIMEOUT_MS = 180000;
33113
+ const DEFAULT_TIMEOUT_MS = 900000;
33114
33114
  const DEFAULT_STORAGE_KEY = "ews-idle-lock";
33115
33115
  const ACTIVITY_WRITE_INTERVAL_MS = 5000;
33116
33116
  const ACTIVITY_EVENTS = [
@@ -33280,7 +33280,7 @@ function useSelectField({ name, control, options: _options, rules, defaultValue,
33280
33280
  };
33281
33281
  }
33282
33282
 
33283
- function SearchAutocomplete({ onSelect, selectedId, searchFunction, getEntityById, getDisplayValue, getSecondaryText, placeholder, icon = Search, disabled = false, minSearchLength = 2, debounceTime = 300, error, getMinCharactersHint = (min) => `(min. ${min} characters)`, }) {
33283
+ function SearchAutocomplete({ onSelect, selectedId, searchFunction, getEntityById, getDisplayValue, getSecondaryText, placeholder, icon = Search, disabled = false, minSearchLength = 2, debounceTime = 300, error, getMinCharactersHint = (min) => `(min. ${min} characters)`, noResultsText = "No results found. Try a different search term.", }) {
33284
33284
  const [searchTerm, setSearchTerm] = React.useState("");
33285
33285
  const [entities, setEntities] = React.useState([]);
33286
33286
  const [isLoading, setIsLoading] = React.useState(false);
@@ -33410,7 +33410,7 @@ function SearchAutocomplete({ onSelect, selectedId, searchFunction, getEntityByI
33410
33410
  !searchError &&
33411
33411
  !error && (jsxRuntime.jsx("div", { className: "absolute z-10 p-4 mt-1 w-full text-center text-gray-500 bg-white rounded-md shadow-lg", children: debouncedSearchTerm.length < minSearchLength
33412
33412
  ? `Type at least ${minSearchLength} characters to search`
33413
- : "No results found. Try a different search term." })), isLoading && showDropdown && (jsxRuntime.jsx("div", { className: "absolute z-10 p-4 mt-1 w-full text-center text-gray-500 bg-white rounded-md shadow-lg", children: jsxRuntime.jsxs("div", { className: "flex justify-center items-center", children: [jsxRuntime.jsx("div", { className: "mr-2 w-4 h-4 rounded-full border-b-2 animate-spin border-ews-primary" }), "Loading..."] }) }))] }));
33413
+ : noResultsText })), isLoading && showDropdown && (jsxRuntime.jsx("div", { className: "absolute z-10 p-4 mt-1 w-full text-center text-gray-500 bg-white rounded-md shadow-lg", children: jsxRuntime.jsxs("div", { className: "flex justify-center items-center", children: [jsxRuntime.jsx("div", { className: "mr-2 w-4 h-4 rounded-full border-b-2 animate-spin border-ews-primary" }), "Loading..."] }) }))] }));
33414
33414
  }
33415
33415
 
33416
33416
  function MultiSearchAutocomplete({ items, selectedItems, onSelectionChange, onSearch, getEntityById: _getEntityById, getPrimaryText, getSecondaryText, placeholder, disabled = false, loading = false, multiple = true, className, renderSelectedItem, renderListItem, keepOpenOnSelect = true, error, minSearchLength = 2, debounceTime = 300, }) {