@ttoss/components 2.2.24 → 2.2.26

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.
@@ -1,9 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
 
3
- // ../../node_modules/.pnpm/@iconify-icon+react@2.2.0_react@19.1.0/node_modules/@iconify-icon/react/dist/iconify.mjs
3
+ // ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.1.1/node_modules/@iconify-icon/react/dist/iconify.mjs
4
4
  import React from "react";
5
5
 
6
- // ../../node_modules/.pnpm/iconify-icon@2.2.0/node_modules/iconify-icon/dist/iconify-icon.mjs
6
+ // ../../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
7
7
  var defaultIconDimensions = Object.freeze({
8
8
  left: 0,
9
9
  top: 0,
@@ -853,181 +853,6 @@ function sendAPIQuery(target, query, callback) {
853
853
  }
854
854
  return redundancy.query(query, send2, callback)().abort;
855
855
  }
856
- var browserCacheVersion = "iconify2";
857
- var browserCachePrefix = "iconify";
858
- var browserCacheCountKey = browserCachePrefix + "-count";
859
- var browserCacheVersionKey = browserCachePrefix + "-version";
860
- var browserStorageHour = 36e5;
861
- var browserStorageCacheExpiration = 168;
862
- var browserStorageLimit = 50;
863
- function getStoredItem(func, key) {
864
- try {
865
- return func.getItem(key);
866
- } catch (err) {}
867
- }
868
- function setStoredItem(func, key, value) {
869
- try {
870
- func.setItem(key, value);
871
- return true;
872
- } catch (err) {}
873
- }
874
- function removeStoredItem(func, key) {
875
- try {
876
- func.removeItem(key);
877
- } catch (err) {}
878
- }
879
- function setBrowserStorageItemsCount(storage2, value) {
880
- return setStoredItem(storage2, browserCacheCountKey, value.toString());
881
- }
882
- function getBrowserStorageItemsCount(storage2) {
883
- return parseInt(getStoredItem(storage2, browserCacheCountKey)) || 0;
884
- }
885
- var browserStorageConfig = {
886
- local: true,
887
- session: true
888
- };
889
- var browserStorageEmptyItems = {
890
- local: /* @__PURE__ */new Set(),
891
- session: /* @__PURE__ */new Set()
892
- };
893
- var browserStorageStatus = false;
894
- function setBrowserStorageStatus(status) {
895
- browserStorageStatus = status;
896
- }
897
- var _window = typeof window === "undefined" ? {} : window;
898
- function getBrowserStorage(key) {
899
- const attr = key + "Storage";
900
- try {
901
- if (_window && _window[attr] && typeof _window[attr].length === "number") {
902
- return _window[attr];
903
- }
904
- } catch (err) {}
905
- browserStorageConfig[key] = false;
906
- }
907
- function iterateBrowserStorage(key, callback) {
908
- const func = getBrowserStorage(key);
909
- if (!func) {
910
- return;
911
- }
912
- const version = getStoredItem(func, browserCacheVersionKey);
913
- if (version !== browserCacheVersion) {
914
- if (version) {
915
- const total2 = getBrowserStorageItemsCount(func);
916
- for (let i = 0; i < total2; i++) {
917
- removeStoredItem(func, browserCachePrefix + i.toString());
918
- }
919
- }
920
- setStoredItem(func, browserCacheVersionKey, browserCacheVersion);
921
- setBrowserStorageItemsCount(func, 0);
922
- return;
923
- }
924
- const minTime = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration;
925
- const parseItem = index => {
926
- const name = browserCachePrefix + index.toString();
927
- const item = getStoredItem(func, name);
928
- if (typeof item !== "string") {
929
- return;
930
- }
931
- try {
932
- const data = JSON.parse(item);
933
- if (typeof data === "object" && typeof data.cached === "number" && data.cached > minTime && typeof data.provider === "string" && typeof data.data === "object" && typeof data.data.prefix === "string" &&
934
- // Valid item: run callback
935
- callback(data, index)) {
936
- return true;
937
- }
938
- } catch (err) {}
939
- removeStoredItem(func, name);
940
- };
941
- let total = getBrowserStorageItemsCount(func);
942
- for (let i = total - 1; i >= 0; i--) {
943
- if (!parseItem(i)) {
944
- if (i === total - 1) {
945
- total--;
946
- setBrowserStorageItemsCount(func, total);
947
- } else {
948
- browserStorageEmptyItems[key].add(i);
949
- }
950
- }
951
- }
952
- }
953
- function initBrowserStorage() {
954
- if (browserStorageStatus) {
955
- return;
956
- }
957
- setBrowserStorageStatus(true);
958
- for (const key in browserStorageConfig) {
959
- iterateBrowserStorage(key, item => {
960
- const iconSet = item.data;
961
- const provider = item.provider;
962
- const prefix = iconSet.prefix;
963
- const storage2 = getStorage(provider, prefix);
964
- if (!addIconSet(storage2, iconSet).length) {
965
- return false;
966
- }
967
- const lastModified = iconSet.lastModified || -1;
968
- storage2.lastModifiedCached = storage2.lastModifiedCached ? Math.min(storage2.lastModifiedCached, lastModified) : lastModified;
969
- return true;
970
- });
971
- }
972
- }
973
- function updateLastModified(storage2, lastModified) {
974
- const lastValue = storage2.lastModifiedCached;
975
- if (
976
- // Matches or newer
977
- lastValue && lastValue >= lastModified) {
978
- return lastValue === lastModified;
979
- }
980
- storage2.lastModifiedCached = lastModified;
981
- if (lastValue) {
982
- for (const key in browserStorageConfig) {
983
- iterateBrowserStorage(key, item => {
984
- const iconSet = item.data;
985
- return item.provider !== storage2.provider || iconSet.prefix !== storage2.prefix || iconSet.lastModified === lastModified;
986
- });
987
- }
988
- }
989
- return true;
990
- }
991
- function storeInBrowserStorage(storage2, data) {
992
- if (!browserStorageStatus) {
993
- initBrowserStorage();
994
- }
995
- function store(key) {
996
- let func;
997
- if (!browserStorageConfig[key] || !(func = getBrowserStorage(key))) {
998
- return;
999
- }
1000
- const set = browserStorageEmptyItems[key];
1001
- let index;
1002
- if (set.size) {
1003
- set.delete(index = Array.from(set).shift());
1004
- } else {
1005
- index = getBrowserStorageItemsCount(func);
1006
- if (index >= browserStorageLimit || !setBrowserStorageItemsCount(func, index + 1)) {
1007
- return;
1008
- }
1009
- }
1010
- const item = {
1011
- cached: Math.floor(Date.now() / browserStorageHour),
1012
- provider: storage2.provider,
1013
- data
1014
- };
1015
- return setStoredItem(func, browserCachePrefix + index.toString(), JSON.stringify(item));
1016
- }
1017
- if (data.lastModified && !updateLastModified(storage2, data.lastModified)) {
1018
- return;
1019
- }
1020
- if (!Object.keys(data.icons).length) {
1021
- return;
1022
- }
1023
- if (data.not_found) {
1024
- data = Object.assign({}, data);
1025
- delete data.not_found;
1026
- }
1027
- if (!store("local")) {
1028
- store("session");
1029
- }
1030
- }
1031
856
  function emptyCallback() {}
1032
857
  function loadedNewIcons(storage2) {
1033
858
  if (!storage2.iconsLoaderFlag) {
@@ -1049,7 +874,7 @@ function checkIconNamesForAPI(icons) {
1049
874
  invalid
1050
875
  };
1051
876
  }
1052
- function parseLoaderResponse(storage2, icons, data, isAPIResponse) {
877
+ function parseLoaderResponse(storage2, icons, data) {
1053
878
  function checkMissing() {
1054
879
  const pending = storage2.pendingIcons;
1055
880
  icons.forEach(name => {
@@ -1068,9 +893,6 @@ function parseLoaderResponse(storage2, icons, data, isAPIResponse) {
1068
893
  checkMissing();
1069
894
  return;
1070
895
  }
1071
- if (isAPIResponse) {
1072
- storeInBrowserStorage(storage2, data);
1073
- }
1074
896
  } catch (err) {
1075
897
  console.error(err);
1076
898
  }
@@ -1111,7 +933,7 @@ function loadNewIcons(storage2, icons) {
1111
933
  const customIconLoader = storage2.loadIcon;
1112
934
  if (storage2.loadIcons && (icons2.length > 1 || !customIconLoader)) {
1113
935
  parsePossiblyAsyncResponse(storage2.loadIcons(icons2, prefix, provider), data => {
1114
- parseLoaderResponse(storage2, icons2, data, false);
936
+ parseLoaderResponse(storage2, icons2, data);
1115
937
  });
1116
938
  return;
1117
939
  }
@@ -1125,7 +947,7 @@ function loadNewIcons(storage2, icons) {
1125
947
  [name]: data
1126
948
  }
1127
949
  } : null;
1128
- parseLoaderResponse(storage2, [name], iconSet, false);
950
+ parseLoaderResponse(storage2, [name], iconSet);
1129
951
  });
1130
952
  });
1131
953
  return;
@@ -1135,20 +957,20 @@ function loadNewIcons(storage2, icons) {
1135
957
  invalid
1136
958
  } = checkIconNamesForAPI(icons2);
1137
959
  if (invalid.length) {
1138
- parseLoaderResponse(storage2, invalid, null, false);
960
+ parseLoaderResponse(storage2, invalid, null);
1139
961
  }
1140
962
  if (!valid.length) {
1141
963
  return;
1142
964
  }
1143
965
  const api = prefix.match(matchIconName) ? getAPIModule(provider) : null;
1144
966
  if (!api) {
1145
- parseLoaderResponse(storage2, valid, null, false);
967
+ parseLoaderResponse(storage2, valid, null);
1146
968
  return;
1147
969
  }
1148
970
  const params = api.prepare(provider, prefix, valid);
1149
971
  params.forEach(item => {
1150
972
  sendAPIQuery(provider, item, data => {
1151
- parseLoaderResponse(storage2, item.icons, data, true);
973
+ parseLoaderResponse(storage2, item.icons, data);
1152
974
  });
1153
975
  });
1154
976
  });
@@ -1625,19 +1447,6 @@ function setCustomIconsLoader$1(loader, prefix, provider) {
1625
1447
  function setCustomIconLoader$1(loader, prefix, provider) {
1626
1448
  getStorage(provider || "", prefix).loadIcon = loader;
1627
1449
  }
1628
- function toggleBrowserCache(storage2, value) {
1629
- switch (storage2) {
1630
- case "local":
1631
- case "session":
1632
- browserStorageConfig[storage2] = value;
1633
- break;
1634
- case "all":
1635
- for (const key in browserStorageConfig) {
1636
- browserStorageConfig[key] = value;
1637
- }
1638
- break;
1639
- }
1640
- }
1641
1450
  var nodeAttr = "data-style";
1642
1451
  var customStyle = "";
1643
1452
  function appendCustomStyle(style) {
@@ -1655,14 +1464,13 @@ function updateStyle(parent, inline) {
1655
1464
  function exportFunctions() {
1656
1465
  setAPIModule("", fetchAPIModule);
1657
1466
  allowSimpleNames(true);
1658
- let _window2;
1467
+ let _window;
1659
1468
  try {
1660
- _window2 = window;
1469
+ _window = window;
1661
1470
  } catch (err) {}
1662
- if (_window2) {
1663
- initBrowserStorage();
1664
- if (_window2.IconifyPreload !== void 0) {
1665
- const preload = _window2.IconifyPreload;
1471
+ if (_window) {
1472
+ if (_window.IconifyPreload !== void 0) {
1473
+ const preload = _window.IconifyPreload;
1666
1474
  const err = "Invalid IconifyPreload syntax.";
1667
1475
  if (typeof preload === "object" && preload !== null) {
1668
1476
  (preload instanceof Array ? preload : [preload]).forEach(item => {
@@ -1682,8 +1490,8 @@ function exportFunctions() {
1682
1490
  });
1683
1491
  }
1684
1492
  }
1685
- if (_window2.IconifyProviders !== void 0) {
1686
- const providers = _window2.IconifyProviders;
1493
+ if (_window.IconifyProviders !== void 0) {
1494
+ const providers = _window.IconifyProviders;
1687
1495
  if (typeof providers === "object" && providers !== null) {
1688
1496
  for (const key in providers) {
1689
1497
  const err = "IconifyProviders[" + key + "] is invalid.";
@@ -1711,8 +1519,10 @@ function exportFunctions() {
1711
1519
  listAPIProviders
1712
1520
  };
1713
1521
  return {
1714
- enableCache: storage2 => toggleBrowserCache(storage2, true),
1715
- disableCache: storage2 => toggleBrowserCache(storage2, false),
1522
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1523
+ enableCache: storage2 => {},
1524
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1525
+ disableCache: storage2 => {},
1716
1526
  iconLoaded: iconLoaded$1,
1717
1527
  iconExists: iconLoaded$1,
1718
1528
  // deprecated, kept to avoid breaking changes
@@ -2226,7 +2036,7 @@ var {
2226
2036
  _api
2227
2037
  } = IconifyIconComponent;
2228
2038
 
2229
- // ../../node_modules/.pnpm/@iconify-icon+react@2.2.0_react@19.1.0/node_modules/@iconify-icon/react/dist/iconify.mjs
2039
+ // ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.1.1/node_modules/@iconify-icon/react/dist/iconify.mjs
2230
2040
  var Icon = React.forwardRef((props, ref) => {
2231
2041
  const newProps = {
2232
2042
  ...props,
@@ -2414,6 +2224,6 @@ iconify-icon/dist/iconify-icon.mjs:
2414
2224
  * Licensed under MIT.
2415
2225
  *
2416
2226
  * @license MIT
2417
- * @version 2.2.0
2227
+ * @version 2.3.0
2418
2228
  *)
2419
2229
  */
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { NotificationCard } from "../chunk-ZLUIOHK3.js";
2
+ import { NotificationCard } from "../chunk-QIWMC6WC.js";
3
3
  export { NotificationCard };
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { Icon, NotificationCard } from "../chunk-ZLUIOHK3.js";
2
+ import { Icon, NotificationCard } from "../chunk-QIWMC6WC.js";
3
3
 
4
4
  // src/components/NotificationsMenu/NotificationsMenu.tsx
5
5
  import { Box, Card, Flex, IconButton, Text } from "@ttoss/ui";
@@ -1,9 +1,9 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
 
3
- // ../../node_modules/.pnpm/@iconify-icon+react@2.2.0_react@19.1.0/node_modules/@iconify-icon/react/dist/iconify.mjs
3
+ // ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.1.1/node_modules/@iconify-icon/react/dist/iconify.mjs
4
4
  import React from "react";
5
5
 
6
- // ../../node_modules/.pnpm/iconify-icon@2.2.0/node_modules/iconify-icon/dist/iconify-icon.mjs
6
+ // ../../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
7
7
  var defaultIconDimensions = Object.freeze({
8
8
  left: 0,
9
9
  top: 0,
@@ -853,181 +853,6 @@ function sendAPIQuery(target, query, callback) {
853
853
  }
854
854
  return redundancy.query(query, send2, callback)().abort;
855
855
  }
856
- var browserCacheVersion = "iconify2";
857
- var browserCachePrefix = "iconify";
858
- var browserCacheCountKey = browserCachePrefix + "-count";
859
- var browserCacheVersionKey = browserCachePrefix + "-version";
860
- var browserStorageHour = 36e5;
861
- var browserStorageCacheExpiration = 168;
862
- var browserStorageLimit = 50;
863
- function getStoredItem(func, key) {
864
- try {
865
- return func.getItem(key);
866
- } catch (err) {}
867
- }
868
- function setStoredItem(func, key, value) {
869
- try {
870
- func.setItem(key, value);
871
- return true;
872
- } catch (err) {}
873
- }
874
- function removeStoredItem(func, key) {
875
- try {
876
- func.removeItem(key);
877
- } catch (err) {}
878
- }
879
- function setBrowserStorageItemsCount(storage2, value) {
880
- return setStoredItem(storage2, browserCacheCountKey, value.toString());
881
- }
882
- function getBrowserStorageItemsCount(storage2) {
883
- return parseInt(getStoredItem(storage2, browserCacheCountKey)) || 0;
884
- }
885
- var browserStorageConfig = {
886
- local: true,
887
- session: true
888
- };
889
- var browserStorageEmptyItems = {
890
- local: /* @__PURE__ */new Set(),
891
- session: /* @__PURE__ */new Set()
892
- };
893
- var browserStorageStatus = false;
894
- function setBrowserStorageStatus(status) {
895
- browserStorageStatus = status;
896
- }
897
- var _window = typeof window === "undefined" ? {} : window;
898
- function getBrowserStorage(key) {
899
- const attr = key + "Storage";
900
- try {
901
- if (_window && _window[attr] && typeof _window[attr].length === "number") {
902
- return _window[attr];
903
- }
904
- } catch (err) {}
905
- browserStorageConfig[key] = false;
906
- }
907
- function iterateBrowserStorage(key, callback) {
908
- const func = getBrowserStorage(key);
909
- if (!func) {
910
- return;
911
- }
912
- const version = getStoredItem(func, browserCacheVersionKey);
913
- if (version !== browserCacheVersion) {
914
- if (version) {
915
- const total2 = getBrowserStorageItemsCount(func);
916
- for (let i = 0; i < total2; i++) {
917
- removeStoredItem(func, browserCachePrefix + i.toString());
918
- }
919
- }
920
- setStoredItem(func, browserCacheVersionKey, browserCacheVersion);
921
- setBrowserStorageItemsCount(func, 0);
922
- return;
923
- }
924
- const minTime = Math.floor(Date.now() / browserStorageHour) - browserStorageCacheExpiration;
925
- const parseItem = index => {
926
- const name = browserCachePrefix + index.toString();
927
- const item = getStoredItem(func, name);
928
- if (typeof item !== "string") {
929
- return;
930
- }
931
- try {
932
- const data = JSON.parse(item);
933
- if (typeof data === "object" && typeof data.cached === "number" && data.cached > minTime && typeof data.provider === "string" && typeof data.data === "object" && typeof data.data.prefix === "string" &&
934
- // Valid item: run callback
935
- callback(data, index)) {
936
- return true;
937
- }
938
- } catch (err) {}
939
- removeStoredItem(func, name);
940
- };
941
- let total = getBrowserStorageItemsCount(func);
942
- for (let i = total - 1; i >= 0; i--) {
943
- if (!parseItem(i)) {
944
- if (i === total - 1) {
945
- total--;
946
- setBrowserStorageItemsCount(func, total);
947
- } else {
948
- browserStorageEmptyItems[key].add(i);
949
- }
950
- }
951
- }
952
- }
953
- function initBrowserStorage() {
954
- if (browserStorageStatus) {
955
- return;
956
- }
957
- setBrowserStorageStatus(true);
958
- for (const key in browserStorageConfig) {
959
- iterateBrowserStorage(key, item => {
960
- const iconSet = item.data;
961
- const provider = item.provider;
962
- const prefix = iconSet.prefix;
963
- const storage2 = getStorage(provider, prefix);
964
- if (!addIconSet(storage2, iconSet).length) {
965
- return false;
966
- }
967
- const lastModified = iconSet.lastModified || -1;
968
- storage2.lastModifiedCached = storage2.lastModifiedCached ? Math.min(storage2.lastModifiedCached, lastModified) : lastModified;
969
- return true;
970
- });
971
- }
972
- }
973
- function updateLastModified(storage2, lastModified) {
974
- const lastValue = storage2.lastModifiedCached;
975
- if (
976
- // Matches or newer
977
- lastValue && lastValue >= lastModified) {
978
- return lastValue === lastModified;
979
- }
980
- storage2.lastModifiedCached = lastModified;
981
- if (lastValue) {
982
- for (const key in browserStorageConfig) {
983
- iterateBrowserStorage(key, item => {
984
- const iconSet = item.data;
985
- return item.provider !== storage2.provider || iconSet.prefix !== storage2.prefix || iconSet.lastModified === lastModified;
986
- });
987
- }
988
- }
989
- return true;
990
- }
991
- function storeInBrowserStorage(storage2, data) {
992
- if (!browserStorageStatus) {
993
- initBrowserStorage();
994
- }
995
- function store(key) {
996
- let func;
997
- if (!browserStorageConfig[key] || !(func = getBrowserStorage(key))) {
998
- return;
999
- }
1000
- const set = browserStorageEmptyItems[key];
1001
- let index;
1002
- if (set.size) {
1003
- set.delete(index = Array.from(set).shift());
1004
- } else {
1005
- index = getBrowserStorageItemsCount(func);
1006
- if (index >= browserStorageLimit || !setBrowserStorageItemsCount(func, index + 1)) {
1007
- return;
1008
- }
1009
- }
1010
- const item = {
1011
- cached: Math.floor(Date.now() / browserStorageHour),
1012
- provider: storage2.provider,
1013
- data
1014
- };
1015
- return setStoredItem(func, browserCachePrefix + index.toString(), JSON.stringify(item));
1016
- }
1017
- if (data.lastModified && !updateLastModified(storage2, data.lastModified)) {
1018
- return;
1019
- }
1020
- if (!Object.keys(data.icons).length) {
1021
- return;
1022
- }
1023
- if (data.not_found) {
1024
- data = Object.assign({}, data);
1025
- delete data.not_found;
1026
- }
1027
- if (!store("local")) {
1028
- store("session");
1029
- }
1030
- }
1031
856
  function emptyCallback() {}
1032
857
  function loadedNewIcons(storage2) {
1033
858
  if (!storage2.iconsLoaderFlag) {
@@ -1049,7 +874,7 @@ function checkIconNamesForAPI(icons) {
1049
874
  invalid
1050
875
  };
1051
876
  }
1052
- function parseLoaderResponse(storage2, icons, data, isAPIResponse) {
877
+ function parseLoaderResponse(storage2, icons, data) {
1053
878
  function checkMissing() {
1054
879
  const pending = storage2.pendingIcons;
1055
880
  icons.forEach(name => {
@@ -1068,9 +893,6 @@ function parseLoaderResponse(storage2, icons, data, isAPIResponse) {
1068
893
  checkMissing();
1069
894
  return;
1070
895
  }
1071
- if (isAPIResponse) {
1072
- storeInBrowserStorage(storage2, data);
1073
- }
1074
896
  } catch (err) {
1075
897
  console.error(err);
1076
898
  }
@@ -1111,7 +933,7 @@ function loadNewIcons(storage2, icons) {
1111
933
  const customIconLoader = storage2.loadIcon;
1112
934
  if (storage2.loadIcons && (icons2.length > 1 || !customIconLoader)) {
1113
935
  parsePossiblyAsyncResponse(storage2.loadIcons(icons2, prefix, provider), data => {
1114
- parseLoaderResponse(storage2, icons2, data, false);
936
+ parseLoaderResponse(storage2, icons2, data);
1115
937
  });
1116
938
  return;
1117
939
  }
@@ -1125,7 +947,7 @@ function loadNewIcons(storage2, icons) {
1125
947
  [name]: data
1126
948
  }
1127
949
  } : null;
1128
- parseLoaderResponse(storage2, [name], iconSet, false);
950
+ parseLoaderResponse(storage2, [name], iconSet);
1129
951
  });
1130
952
  });
1131
953
  return;
@@ -1135,20 +957,20 @@ function loadNewIcons(storage2, icons) {
1135
957
  invalid
1136
958
  } = checkIconNamesForAPI(icons2);
1137
959
  if (invalid.length) {
1138
- parseLoaderResponse(storage2, invalid, null, false);
960
+ parseLoaderResponse(storage2, invalid, null);
1139
961
  }
1140
962
  if (!valid.length) {
1141
963
  return;
1142
964
  }
1143
965
  const api = prefix.match(matchIconName) ? getAPIModule(provider) : null;
1144
966
  if (!api) {
1145
- parseLoaderResponse(storage2, valid, null, false);
967
+ parseLoaderResponse(storage2, valid, null);
1146
968
  return;
1147
969
  }
1148
970
  const params = api.prepare(provider, prefix, valid);
1149
971
  params.forEach(item => {
1150
972
  sendAPIQuery(provider, item, data => {
1151
- parseLoaderResponse(storage2, item.icons, data, true);
973
+ parseLoaderResponse(storage2, item.icons, data);
1152
974
  });
1153
975
  });
1154
976
  });
@@ -1625,19 +1447,6 @@ function setCustomIconsLoader$1(loader, prefix, provider) {
1625
1447
  function setCustomIconLoader$1(loader, prefix, provider) {
1626
1448
  getStorage(provider || "", prefix).loadIcon = loader;
1627
1449
  }
1628
- function toggleBrowserCache(storage2, value) {
1629
- switch (storage2) {
1630
- case "local":
1631
- case "session":
1632
- browserStorageConfig[storage2] = value;
1633
- break;
1634
- case "all":
1635
- for (const key in browserStorageConfig) {
1636
- browserStorageConfig[key] = value;
1637
- }
1638
- break;
1639
- }
1640
- }
1641
1450
  var nodeAttr = "data-style";
1642
1451
  var customStyle = "";
1643
1452
  function appendCustomStyle(style) {
@@ -1655,14 +1464,13 @@ function updateStyle(parent, inline) {
1655
1464
  function exportFunctions() {
1656
1465
  setAPIModule("", fetchAPIModule);
1657
1466
  allowSimpleNames(true);
1658
- let _window2;
1467
+ let _window;
1659
1468
  try {
1660
- _window2 = window;
1469
+ _window = window;
1661
1470
  } catch (err) {}
1662
- if (_window2) {
1663
- initBrowserStorage();
1664
- if (_window2.IconifyPreload !== void 0) {
1665
- const preload = _window2.IconifyPreload;
1471
+ if (_window) {
1472
+ if (_window.IconifyPreload !== void 0) {
1473
+ const preload = _window.IconifyPreload;
1666
1474
  const err = "Invalid IconifyPreload syntax.";
1667
1475
  if (typeof preload === "object" && preload !== null) {
1668
1476
  (preload instanceof Array ? preload : [preload]).forEach(item => {
@@ -1682,8 +1490,8 @@ function exportFunctions() {
1682
1490
  });
1683
1491
  }
1684
1492
  }
1685
- if (_window2.IconifyProviders !== void 0) {
1686
- const providers = _window2.IconifyProviders;
1493
+ if (_window.IconifyProviders !== void 0) {
1494
+ const providers = _window.IconifyProviders;
1687
1495
  if (typeof providers === "object" && providers !== null) {
1688
1496
  for (const key in providers) {
1689
1497
  const err = "IconifyProviders[" + key + "] is invalid.";
@@ -1711,8 +1519,10 @@ function exportFunctions() {
1711
1519
  listAPIProviders
1712
1520
  };
1713
1521
  return {
1714
- enableCache: storage2 => toggleBrowserCache(storage2, true),
1715
- disableCache: storage2 => toggleBrowserCache(storage2, false),
1522
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1523
+ enableCache: storage2 => {},
1524
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1525
+ disableCache: storage2 => {},
1716
1526
  iconLoaded: iconLoaded$1,
1717
1527
  iconExists: iconLoaded$1,
1718
1528
  // deprecated, kept to avoid breaking changes
@@ -2226,7 +2036,7 @@ var {
2226
2036
  _api
2227
2037
  } = IconifyIconComponent;
2228
2038
 
2229
- // ../../node_modules/.pnpm/@iconify-icon+react@2.2.0_react@19.1.0/node_modules/@iconify-icon/react/dist/iconify.mjs
2039
+ // ../../node_modules/.pnpm/@iconify-icon+react@2.3.0_react@19.1.1/node_modules/@iconify-icon/react/dist/iconify.mjs
2230
2040
  var Icon = React.forwardRef((props, ref) => {
2231
2041
  const newProps = {
2232
2042
  ...props,
@@ -2406,6 +2216,6 @@ iconify-icon/dist/iconify-icon.mjs:
2406
2216
  * Licensed under MIT.
2407
2217
  *
2408
2218
  * @license MIT
2409
- * @version 2.2.0
2219
+ * @version 2.3.0
2410
2220
  *)
2411
2221
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/components",
3
- "version": "2.2.24",
3
+ "version": "2.2.26",
4
4
  "description": "React components for ttoss ecosystem.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -97,8 +97,8 @@
97
97
  },
98
98
  "peerDependencies": {
99
99
  "react": ">=16.8.0",
100
- "@ttoss/react-hooks": "^2.1.1",
101
- "@ttoss/ui": "^5.9.0"
100
+ "@ttoss/react-hooks": "^2.1.2",
101
+ "@ttoss/ui": "^5.9.2"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@types/jest": "^30.0.0",
@@ -107,11 +107,11 @@
107
107
  "react": "^19.1.0",
108
108
  "tsup": "^8.5.0",
109
109
  "tsx": "^4.19.2",
110
- "@ttoss/react-hooks": "^2.1.1",
111
- "@ttoss/test-utils": "^2.1.25",
112
- "@ttoss/ui": "^5.9.0",
113
- "@ttoss/config": "^1.35.5",
114
- "@ttoss/react-icons": "^0.4.13"
110
+ "@ttoss/react-hooks": "^2.1.2",
111
+ "@ttoss/config": "^1.35.6",
112
+ "@ttoss/test-utils": "^2.1.26",
113
+ "@ttoss/ui": "^5.9.2",
114
+ "@ttoss/react-icons": "^0.4.15"
115
115
  },
116
116
  "keywords": [
117
117
  "React",