@planetaexo/design-system 0.58.2 → 0.58.3

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
@@ -10060,6 +10060,7 @@ function Picture(_a) {
10060
10060
  "onLoad",
10061
10061
  "onError"
10062
10062
  ]);
10063
+ var _a2;
10063
10064
  const ref = React31.useRef(null);
10064
10065
  const [visible, setVisible] = React31.useState(eager);
10065
10066
  const [loaded, setLoaded] = React31.useState(false);
@@ -10088,6 +10089,7 @@ function Picture(_a) {
10088
10089
  const webp = webpVariantUrl(src);
10089
10090
  const realSrc = visible ? src : PLACEHOLDER_SRC;
10090
10091
  const decodingResolved = decoding != null ? decoding : eager ? void 0 : "async";
10092
+ const fetchPriorityResolved = (_a2 = imgProps.fetchPriority) != null ? _a2 : eager ? void 0 : "low";
10091
10093
  const handleLoad = (e) => {
10092
10094
  if (visible) setLoaded(true);
10093
10095
  onLoad == null ? void 0 : onLoad(e);
@@ -10113,6 +10115,7 @@ function Picture(_a) {
10113
10115
  onLoad: handleLoad,
10114
10116
  onError: handleError
10115
10117
  }, imgProps), {
10118
+ fetchPriority: fetchPriorityResolved,
10116
10119
  style: mergedStyle
10117
10120
  })
10118
10121
  )
@@ -10135,6 +10138,7 @@ function Picture(_a) {
10135
10138
  onLoad: handleLoad,
10136
10139
  onError: handleError
10137
10140
  }, imgProps), {
10141
+ fetchPriority: fetchPriorityResolved,
10138
10142
  style: mergedStyle
10139
10143
  })
10140
10144
  )