ublo-lib 1.47.23 → 1.47.25

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.
@@ -158,9 +158,13 @@ const SearchBar = ({ lang, resultFormatter, backdrop, OverrideIcons = {}, messag
158
158
  "search-bar__result--active": i === state.active,
159
159
  });
160
160
  return (_jsx(Tag, { className: classes, ...props, onClick: onClick }, `${name}-${i}`));
161
- }), results?.length === 0 && (_jsx("div", { className: "search-bar__no-result", children: message(ubloLang, "no-results", messages) }))] })] })] }));
161
+ }), text && results?.length === 0 && (_jsx("div", { className: "search-bar__no-result", children: message(ubloLang, "no-results", messages) }))] })] })] }));
162
162
  };
163
163
  export default React.memo(SearchBar);
164
164
  function normalize(text) {
165
- return text.normalize("NFC").toLowerCase();
165
+ if ("normalize" in String.prototype &&
166
+ String.prototype.normalize.length === 0) {
167
+ return text.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
168
+ }
169
+ return text;
166
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.23",
3
+ "version": "1.47.25",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",