@deframe-sdk/components 0.1.77 → 0.1.78

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.mjs CHANGED
@@ -7103,6 +7103,7 @@ var SwapFromCardViewSimple = ({
7103
7103
  onAmountChange,
7104
7104
  amountUsdFormatted,
7105
7105
  isAmountUsdLoading,
7106
+ isBalanceLoading,
7106
7107
  field,
7107
7108
  percentageOptions,
7108
7109
  onPercentageClick,
@@ -7241,7 +7242,7 @@ var SwapFromCardViewSimple = ({
7241
7242
  {
7242
7243
  "data-test-id": "swap-from-card-simple-balance-value",
7243
7244
  className: amountHasError ? "text-[color:var(--deframe-widget-color-state-error)]" : "text-[color:var(--deframe-widget-color-text-secondary)]",
7244
- children: balanceFormatted
7245
+ children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingDots, {}) : balanceFormatted
7245
7246
  }
7246
7247
  )
7247
7248
  ]
@@ -7260,7 +7261,7 @@ var SwapFromCardViewSimple = ({
7260
7261
  {
7261
7262
  "data-test-id": "swap-from-card-simple-balance-value",
7262
7263
  className: amountHasError ? "text-[color:var(--deframe-widget-color-state-error)]" : "text-[color:var(--deframe-widget-color-text-secondary)]",
7263
- children: balanceFormatted
7264
+ children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingDots, {}) : balanceFormatted
7264
7265
  }
7265
7266
  )
7266
7267
  ]
@@ -7673,7 +7674,8 @@ var SwapToCardViewSimple = ({
7673
7674
  outputAmount,
7674
7675
  isOutputLoading,
7675
7676
  outputUsdFormatted,
7676
- isOutputUsdLoading
7677
+ isOutputUsdLoading,
7678
+ isBalanceLoading
7677
7679
  }) => {
7678
7680
  const handleTokenClick = onNetworkAndAssetClick != null ? onNetworkAndAssetClick : onTokenClick;
7679
7681
  const isEmpty = !outputAmount || Number(outputAmount) === 0;
@@ -7885,7 +7887,7 @@ var SwapToCardViewSimple = ({
7885
7887
  {
7886
7888
  "data-test-id": "swap-to-simple-balance-value",
7887
7889
  className: "text-[color:var(--deframe-widget-color-text-secondary)]",
7888
- children: balanceFormatted
7890
+ children: isBalanceLoading ? /* @__PURE__ */ jsx(LoadingDots, {}) : balanceFormatted
7889
7891
  }
7890
7892
  )
7891
7893
  ]