@deframe-sdk/components 0.1.26 → 0.1.27

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
@@ -1541,7 +1541,7 @@ var Skeleton = (_a) => {
1541
1541
  width = "100%",
1542
1542
  height = "1rem",
1543
1543
  variant = "text",
1544
- shimmer = true,
1544
+ shimmer: shimmer2 = true,
1545
1545
  className,
1546
1546
  style
1547
1547
  } = _b, props = __objRest(_b, [
@@ -1567,7 +1567,7 @@ var Skeleton = (_a) => {
1567
1567
  background: defaultGradient
1568
1568
  }, style)
1569
1569
  }, props), {
1570
- children: shimmer && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-[color-mix(in srgb, var(--deframe-widget-color-bg-tertiary) 92%, transparent)] to-transparent" })
1570
+ children: shimmer2 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 animate-shimmer bg-gradient-to-r from-transparent via-[color-mix(in srgb, var(--deframe-widget-color-bg-tertiary) 92%, transparent)] to-transparent" })
1571
1571
  })
1572
1572
  );
1573
1573
  };
@@ -8443,6 +8443,35 @@ var EarnPositionCardView = ({
8443
8443
  /* @__PURE__ */ jsx(TextBody, { as: "span", variant: "text-small", className: "text-[color:var(--deframe-widget-color-text-tertiary)]", children: balanceToken })
8444
8444
  ] })
8445
8445
  ] }) }) }) });
8446
+ var shimmer = "animate-pulse rounded-[var(--deframe-widget-size-radius-sm)]";
8447
+ var bg = "bg-[var(--deframe-widget-color-bg-tertiary)]";
8448
+ var EarnFlowSkeletonSimple = () => {
8449
+ const panelClasses = [
8450
+ "relative flex flex-col overflow-hidden w-[420px]",
8451
+ "rounded-[var(--deframe-widget-size-radius-md)]",
8452
+ "border border-[color:var(--deframe-widget-color-border-secondary)]",
8453
+ "font-[var(--deframe-widget-font-family)]"
8454
+ ].join(" ");
8455
+ return /* @__PURE__ */ jsxs("div", { "data-test-id": "earn-flow-skeleton-simple", className: panelClasses, children: [
8456
+ /* @__PURE__ */ jsx("div", { className: "flex items-center px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]", children: /* @__PURE__ */ jsx("div", { className: `w-24 h-5 ${shimmer} ${bg}` }) }),
8457
+ /* @__PURE__ */ jsx("div", { className: "h-px bg-[var(--deframe-widget-color-border-secondary)]" }),
8458
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[var(--deframe-widget-size-gap-md)] px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]", children: /* @__PURE__ */ jsxs("div", { className: "rounded-[var(--deframe-widget-size-radius-sm)] border border-[color:var(--deframe-widget-color-border-secondary)] bg-[var(--deframe-widget-color-bg-secondary)] px-[var(--deframe-widget-size-padding-x-md)] py-[var(--deframe-widget-size-padding-y-md)]", children: [
8459
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-[var(--deframe-widget-size-gap-sm)]", children: [
8460
+ /* @__PURE__ */ jsx("div", { className: `w-[120px] h-[42px] ${shimmer} ${bg} flex-shrink-0` }),
8461
+ /* @__PURE__ */ jsx("div", { className: "w-px h-10 bg-[var(--deframe-widget-color-border-secondary)] flex-shrink-0" }),
8462
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end flex-1 min-w-0 gap-1", children: [
8463
+ /* @__PURE__ */ jsx("div", { className: `w-20 h-9 ${shimmer} ${bg}` }),
8464
+ /* @__PURE__ */ jsx("div", { className: `w-12 h-4 ${shimmer} ${bg}` })
8465
+ ] })
8466
+ ] }),
8467
+ /* @__PURE__ */ jsx("div", { className: "mt-[var(--deframe-widget-size-gap-sm)]", children: /* @__PURE__ */ jsx("div", { className: `w-32 h-4 ${shimmer} ${bg}` }) })
8468
+ ] }) }),
8469
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-[var(--deframe-widget-size-gap-sm)] px-[var(--deframe-widget-size-padding-x-md)] pb-[var(--deframe-widget-size-padding-y-md)]", children: [
8470
+ /* @__PURE__ */ jsx("div", { className: `flex-1 h-12 ${shimmer} ${bg}` }),
8471
+ /* @__PURE__ */ jsx("div", { className: `flex-1 h-12 ${shimmer} ${bg}` })
8472
+ ] })
8473
+ ] });
8474
+ };
8446
8475
  var EarnDepositFormView = ({
8447
8476
  // Header / Layout
8448
8477
  headerTitle,
@@ -8595,7 +8624,7 @@ var EarnTokenSelectorSimpleView = ({
8595
8624
  const isInteractive = !!onTokenClick;
8596
8625
  const baseClasses = [
8597
8626
  "inline-flex items-center gap-[10px]",
8598
- "py-[var(--deframe-widget-size-padding-y-sm)] px-[10px]",
8627
+ "h-[54px] px-[10px]",
8599
8628
  "rounded-[var(--deframe-widget-size-radius-sm)]",
8600
8629
  "bg-[var(--deframe-widget-color-bg-tertiary)]",
8601
8630
  "border-none outline-none",
@@ -8603,7 +8632,7 @@ var EarnTokenSelectorSimpleView = ({
8603
8632
  "flex-shrink-0"
8604
8633
  ].join(" ");
8605
8634
  const stateClasses = {
8606
- interactive: "cursor-pointer hover:bg-[color:color-mix(in_srgb,var(--deframe-widget-color-bg-tertiary)_80%,var(--deframe-widget-color-border-secondary))]",
8635
+ interactive: "cursor-pointer hover:bg-[color:color-mix(in_srgb,var(--deframe-widget-color-bg-tertiary)_72%,transparent)]",
8607
8636
  static: "cursor-default"
8608
8637
  };
8609
8638
  const selectorClasses = twMerge(
@@ -8712,7 +8741,7 @@ var EarnTokenSelectorSimpleView = ({
8712
8741
  "span",
8713
8742
  {
8714
8743
  "data-test-id": "earn-token-selector-simple-view-placeholder",
8715
- className: "text-[12px] tracking-[0.08em] uppercase [font-weight:var(--deframe-widget-font-weight-semibold)] text-[color:var(--deframe-widget-color-text-tertiary)] font-[var(--deframe-widget-font-family)] leading-[1] whitespace-nowrap",
8744
+ className: "text-[11px] uppercase [font-weight:var(--deframe-widget-font-weight-regular)] text-[color:var(--deframe-widget-color-text-secondary)] font-[var(--deframe-widget-font-family)] whitespace-nowrap",
8716
8745
  children: selectTokenLabel
8717
8746
  }
8718
8747
  ),
@@ -8741,6 +8770,7 @@ var EarnAmountInputSimpleView = ({
8741
8770
  "w-full",
8742
8771
  "px-[var(--deframe-widget-size-padding-x-none)] py-[var(--deframe-widget-size-padding-y-none)]",
8743
8772
  "font-[var(--deframe-widget-font-family)]",
8773
+ "placeholder:text-[color:var(--deframe-widget-color-text-tertiary)]",
8744
8774
  "[appearance:textfield]",
8745
8775
  "[&::-webkit-outer-spin-button]:appearance-none",
8746
8776
  "[&::-webkit-inner-spin-button]:appearance-none"
@@ -8990,7 +9020,6 @@ var EarnDepositFormViewSimple = ({
8990
9020
  const panelBaseClasses = [
8991
9021
  "relative flex flex-col overflow-hidden w-[420px]",
8992
9022
  "rounded-[var(--deframe-widget-size-radius-md)]",
8993
- "bg-[var(--deframe-widget-color-bg-primary)]",
8994
9023
  "border border-[color:var(--deframe-widget-color-border-secondary)]",
8995
9024
  "font-[var(--deframe-widget-font-family)]"
8996
9025
  ].join(" ");
@@ -9209,9 +9238,11 @@ var EarnDepositFormViewSimple = ({
9209
9238
  type: "submit",
9210
9239
  className: [
9211
9240
  "flex-1 h-12 rounded-[var(--deframe-widget-size-radius-sm)]",
9212
- "text-[15px] text-[color:var(--deframe-widget-color-text-primary-dark)]",
9241
+ "border-none",
9242
+ "text-[15px]",
9243
+ isSubmitDisabled ? "text-[color:var(--deframe-widget-color-text-primary-disabled)]" : "text-[color:var(--deframe-widget-color-text-primary-dark)]",
9213
9244
  "outline-none",
9214
- "transition-[background,color,opacity] duration-150"
9245
+ "transition-[background,color] duration-200"
9215
9246
  ].join(" "),
9216
9247
  disabled: isSubmitDisabled,
9217
9248
  "aria-disabled": isSubmitDisabled,
@@ -9443,7 +9474,6 @@ var EarnWithdrawFormViewSimple = ({
9443
9474
  const panelBaseClasses = [
9444
9475
  "relative flex flex-col overflow-hidden w-[420px]",
9445
9476
  "rounded-[var(--deframe-widget-size-radius-md)]",
9446
- "bg-[var(--deframe-widget-color-bg-primary)]",
9447
9477
  "border border-[color:var(--deframe-widget-color-border-secondary)]",
9448
9478
  "font-[var(--deframe-widget-font-family)]"
9449
9479
  ].join(" ");
@@ -9651,9 +9681,11 @@ var EarnWithdrawFormViewSimple = ({
9651
9681
  type: "submit",
9652
9682
  className: [
9653
9683
  "flex-1 h-12 rounded-[var(--deframe-widget-size-radius-sm)]",
9654
- "text-[15px] text-[color:var(--deframe-widget-color-text-primary-dark)]",
9684
+ "border-none",
9685
+ "text-[15px]",
9686
+ isSubmitDisabled ? "text-[color:var(--deframe-widget-color-text-primary-disabled)]" : "text-[color:var(--deframe-widget-color-text-primary-dark)]",
9655
9687
  "outline-none",
9656
- "transition-[background,color,opacity] duration-150"
9688
+ "transition-[background,color] duration-200"
9657
9689
  ].join(" "),
9658
9690
  disabled: isSubmitDisabled,
9659
9691
  "aria-disabled": isSubmitDisabled,
@@ -9873,7 +9905,6 @@ function EarnFeedbackOverlaySimpleView({
9873
9905
  const wrapperClasses = twMerge(
9874
9906
  "relative flex flex-col overflow-hidden w-[420px]",
9875
9907
  "rounded-[var(--deframe-widget-size-radius-md)]",
9876
- "bg-[var(--deframe-widget-color-bg-primary)]",
9877
9908
  "border border-[color:var(--deframe-widget-color-border-secondary)]",
9878
9909
  "font-[var(--deframe-widget-font-family)]"
9879
9910
  );
@@ -12062,6 +12093,6 @@ var DashboardViewSimple = ({
12062
12093
  );
12063
12094
  };
12064
12095
 
12065
- export { ActionButton, ActionSheet, AddressDisplay, ApyRange, BackButton, BackgroundContainer, BannerNotification, Chip, ChipGroup, ChooseANetworkView, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, ChooseNetworkAndAssetViewSimple, CloseButton_default as CloseButton, CollapsibleInfoRow, CollapsibleSection, ConfirmSwapButtonView, ConfirmSwapButtonViewSimple, ConnectWalletList, Currency, DashboardBalancesBreakdown, DashboardCard, DashboardInvestmentOpportunitiesView, DashboardPortfolioView, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, DashboardTokenListView, DashboardTokensView, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, DashboardViewSimple, DeframeComponentsProvider, DetailsHeader, EarnAmountInputView, EarnBalanceCard, EarnBytecodeErrorView, EarnDepositFailedSimpleView, EarnDepositFailedView, EarnDepositFormView, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, EarnDepositSuccessSimpleView, EarnDepositSuccessView, EarnDepositWarningSimpleView, EarnDepositWarningView, EarnDesktopView, EarnExploreGridView, EarnInvestedSectionView, EarnInvestmentDetailsView, EarnInvestmentSummaryView, EarnNoBalanceNotificationView, EarnOverviewView, EarnPercentageButtonsView, EarnPositionCardView, EarnRecentTransactionsView, EarnTokenSelectorView, EarnTxStatusCardView, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, EarnWithdrawFormView, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, EarnWithdrawTokenSelectorView, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, Currency as Fiat, FlexCol, FlexRow, GroupedStrategyListView, HighRiskBadge, HistoryDepositDetailsView, HistoryListSkeleton, HistoryListView, HistorySwapDetailsView, HistoryTabEmpty, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, InvestmentCrossChainProcessingView, Label, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, PercentageButton, PrimaryButton, ProcessingBadge, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, StrategyGridCard, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAdvancedSettingsView, SwapAmountInputView, SwapCrossChainProcessingView, SwapFormView, SwapFormViewSimple, SwapFromCardView, SwapFromCardViewSimple, SwapHistoryView, SwapProcessingView, SwapProcessingViewSimple, SwapQuoteDetailsView, SwapSignatureWarningView, SwapSignatureWarningViewSimple, SwapSuccessView, SwapSuccessViewSimple, SwapToCardView, SwapToCardViewSimple, SwapTransactionFailedView, SwapTransactionFailedViewSimple, SwapWidgetFallbackView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, Text_default as Text, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletBalances, WalletConnectPanel, WalletItem, ConnectWalletList as WalletList, WalletListContainer, isDustValue };
12096
+ export { ActionButton, ActionSheet, AddressDisplay, ApyRange, BackButton, BackgroundContainer, BannerNotification, Chip, ChipGroup, ChooseANetworkView, ChooseAStrategyActionsheetView, ChooseAnAssetSwapView, ChooseNetworkAndAssetViewSimple, CloseButton_default as CloseButton, CollapsibleInfoRow, CollapsibleSection, ConfirmSwapButtonView, ConfirmSwapButtonViewSimple, ConnectWalletList, Currency, DashboardBalancesBreakdown, DashboardCard, DashboardInvestmentOpportunitiesView, DashboardPortfolioView, DashboardPortfolioViewSimple, DashboardRecentTransactionsView, DashboardRecentTransactionsViewSimple, DashboardStrategiesListView, DashboardTokenListView, DashboardTokensView, DashboardTokensViewSimple, DashboardTransactionsPlaceholder, DashboardView, DashboardViewSimple, DeframeComponentsProvider, DetailsHeader, EarnAmountInputView, EarnBalanceCard, EarnBytecodeErrorView, EarnDepositFailedSimpleView, EarnDepositFailedView, EarnDepositFormView, EarnDepositFormViewSimple, EarnDepositProcessingSimpleView, EarnDepositProcessingView, EarnDepositSuccessSimpleView, EarnDepositSuccessView, EarnDepositWarningSimpleView, EarnDepositWarningView, EarnDesktopView, EarnExploreGridView, EarnFlowSkeletonSimple, EarnInvestedSectionView, EarnInvestmentDetailsView, EarnInvestmentSummaryView, EarnNoBalanceNotificationView, EarnOverviewView, EarnPercentageButtonsView, EarnPositionCardView, EarnRecentTransactionsView, EarnTokenSelectorView, EarnTxStatusCardView, EarnWithdrawFailedSimpleView, EarnWithdrawFailedView, EarnWithdrawFormView, EarnWithdrawFormViewSimple, EarnWithdrawProcessingSimpleView, EarnWithdrawProcessingView, EarnWithdrawSuccessSimpleView, EarnWithdrawSuccessView, EarnWithdrawTokenSelectorView, EarnWithdrawWarningSimpleView, EarnWithdrawWarningView, Currency as Fiat, FlexCol, FlexRow, GroupedStrategyListView, HighRiskBadge, HistoryDepositDetailsView, HistoryListSkeleton, HistoryListView, HistorySwapDetailsView, HistoryTabEmpty, HistoryWithdrawDetailsView, InfoLabel, InfoRow, InfoRowIconLabel, InfoRowIconValue, InfoRowWithIcon, InfoValue, Input2 as Input, InvestmentCrossChainProcessingView, Label, Link, ListItem, ListItemContent, ListItemLeftSide, ListItemRightSide, LoadingDots, LowRiskBadge, MediumRiskBadge, Navbar, PercentageButton, PrimaryButton, ProcessingBadge, ProgressIndicator, ScrollableContent, SearchEmptyState, SearchInput, SecondaryButton, SectionCard, Select, SelectContent, SelectItem, SelectTrigger, Skeleton, StepDisplay, StepStatusIcon, StepStatusText, StrategyDetailsView, StrategyGridCard, SummaryDetails, SummaryDetailsCryptoControlV2, SwapAdvancedSettingsView, SwapAmountInputView, SwapCrossChainProcessingView, SwapFormView, SwapFormViewSimple, SwapFromCardView, SwapFromCardViewSimple, SwapHistoryView, SwapProcessingView, SwapProcessingViewSimple, SwapQuoteDetailsView, SwapSignatureWarningView, SwapSignatureWarningViewSimple, SwapSuccessView, SwapSuccessViewSimple, SwapToCardView, SwapToCardViewSimple, SwapTransactionFailedView, SwapTransactionFailedViewSimple, SwapWidgetFallbackView, Tabs, TabsContent, TabsList, TabsTrigger, TertiaryButton, Text_default as Text, TextAccent, TextBody, TextHeading, Title, TokenWithChainBadge, TransactionProcessingDetails, TransactionScreen, TransactionScreenIcon, TransactionScreenInvestmentCard, WalletBalances, WalletConnectPanel, WalletItem, ConnectWalletList as WalletList, WalletListContainer, isDustValue };
12066
12097
  //# sourceMappingURL=index.mjs.map
12067
12098
  //# sourceMappingURL=index.mjs.map