@lobehub/icons-rn 2.6.0 → 2.6.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
@@ -783,7 +783,8 @@ var Avatar5 = react.memo((_a) => {
783
783
  });
784
784
  var Avatar_default5 = Avatar5;
785
785
  var useFillId = (namespace) => {
786
- const id = `lobe-icons-${esToolkit.kebabCase(namespace)}-fill`;
786
+ const uniqueId = react.useId();
787
+ const id = `lobe-icons-${esToolkit.kebabCase(namespace)}-${uniqueId}`;
787
788
  return react.useMemo(
788
789
  () => ({
789
790
  fill: `url(#${id})`,
@@ -793,16 +794,16 @@ var useFillId = (namespace) => {
793
794
  );
794
795
  };
795
796
  var useFillIds = (namespace, length) => {
797
+ const uniqueId = react.useId();
796
798
  return react.useMemo(() => {
797
- const ids = Array.from({ length }, (_, i) => {
798
- const id = `lobe-icons-${esToolkit.kebabCase(namespace)}-fill-${i}`;
799
+ return Array.from({ length }, (_, i) => {
800
+ const id = `lobe-icons-${esToolkit.kebabCase(namespace)}-${i}-${uniqueId}`;
799
801
  return {
800
802
  fill: `url(#${id})`,
801
803
  id
802
804
  };
803
805
  });
804
- return ids;
805
- }, [namespace, length]);
806
+ }, [namespace, length, uniqueId]);
806
807
  };
807
808
  var Icon13 = react.memo((_a) => {
808
809
  var _b = _a, { size = 24, style } = _b, rest = __objRest(_b, ["size", "style"]);