@deframe-sdk/components 0.1.5 → 0.1.6
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.d.mts +287 -1
- package/dist/index.d.ts +287 -1
- package/dist/index.js +880 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +852 -3
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +300 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -412,6 +412,8 @@ interface SummaryDetailsProps {
|
|
|
412
412
|
}
|
|
413
413
|
declare const SummaryDetails: React$1.FC<SummaryDetailsProps>;
|
|
414
414
|
|
|
415
|
+
declare const SummaryDetailsCryptoControlV2: React$1.FC<SummaryDetailsProps>;
|
|
416
|
+
|
|
415
417
|
interface ActionSheetItem {
|
|
416
418
|
id: string;
|
|
417
419
|
label: string;
|
|
@@ -570,4 +572,288 @@ interface DeframeComponentsProviderProps {
|
|
|
570
572
|
}
|
|
571
573
|
declare function DeframeComponentsProvider({ theme, themeConfig, customTheme, className, children }: DeframeComponentsProviderProps): react_jsx_runtime.JSX.Element;
|
|
572
574
|
|
|
573
|
-
|
|
575
|
+
interface InfoRowProps {
|
|
576
|
+
children: React__default.ReactNode;
|
|
577
|
+
borderBottom?: boolean;
|
|
578
|
+
className?: string;
|
|
579
|
+
}
|
|
580
|
+
declare const InfoRow: React__default.FC<InfoRowProps>;
|
|
581
|
+
|
|
582
|
+
interface InfoLabelProps {
|
|
583
|
+
children: React__default.ReactNode;
|
|
584
|
+
className?: string;
|
|
585
|
+
}
|
|
586
|
+
declare const InfoLabel: React__default.FC<InfoLabelProps>;
|
|
587
|
+
|
|
588
|
+
interface InfoValueProps {
|
|
589
|
+
children: React__default.ReactNode;
|
|
590
|
+
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
591
|
+
className?: string;
|
|
592
|
+
}
|
|
593
|
+
declare const InfoValue: React__default.FC<InfoValueProps>;
|
|
594
|
+
|
|
595
|
+
interface InfoRowWithIconProps {
|
|
596
|
+
children: React__default.ReactNode;
|
|
597
|
+
borderBottom?: boolean;
|
|
598
|
+
className?: string;
|
|
599
|
+
}
|
|
600
|
+
declare const InfoRowWithIcon: React__default.FC<InfoRowWithIconProps>;
|
|
601
|
+
|
|
602
|
+
interface InfoRowIconLabelProps {
|
|
603
|
+
children: React__default.ReactNode;
|
|
604
|
+
className?: string;
|
|
605
|
+
}
|
|
606
|
+
declare const InfoRowIconLabel: React__default.FC<InfoRowIconLabelProps>;
|
|
607
|
+
|
|
608
|
+
interface InfoRowIconValueProps {
|
|
609
|
+
children: React__default.ReactNode;
|
|
610
|
+
className?: string;
|
|
611
|
+
}
|
|
612
|
+
declare const InfoRowIconValue: React__default.FC<InfoRowIconValueProps>;
|
|
613
|
+
|
|
614
|
+
interface CollapsibleInfoRowProps {
|
|
615
|
+
label: string;
|
|
616
|
+
value: string;
|
|
617
|
+
children?: React__default.ReactNode;
|
|
618
|
+
defaultOpen?: boolean;
|
|
619
|
+
className?: string;
|
|
620
|
+
collapseLabel: string;
|
|
621
|
+
expandLabel: string;
|
|
622
|
+
}
|
|
623
|
+
declare const CollapsibleInfoRow: React__default.FC<CollapsibleInfoRowProps>;
|
|
624
|
+
|
|
625
|
+
interface BackgroundContainerProps {
|
|
626
|
+
children: React__default.ReactNode;
|
|
627
|
+
className?: string;
|
|
628
|
+
}
|
|
629
|
+
declare const BackgroundContainer: React__default.FC<BackgroundContainerProps>;
|
|
630
|
+
|
|
631
|
+
interface SectionCardProps {
|
|
632
|
+
children: React__default.ReactNode;
|
|
633
|
+
className?: string;
|
|
634
|
+
}
|
|
635
|
+
declare const SectionCard: React__default.FC<SectionCardProps>;
|
|
636
|
+
|
|
637
|
+
interface NavbarProps {
|
|
638
|
+
children: React__default.ReactNode;
|
|
639
|
+
className?: string;
|
|
640
|
+
}
|
|
641
|
+
declare const Navbar: React__default.FC<NavbarProps>;
|
|
642
|
+
|
|
643
|
+
interface FlexColProps {
|
|
644
|
+
children: React__default.ReactNode;
|
|
645
|
+
className?: string;
|
|
646
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg';
|
|
647
|
+
}
|
|
648
|
+
declare const FlexCol: React__default.FC<FlexColProps>;
|
|
649
|
+
|
|
650
|
+
interface FlexRowProps {
|
|
651
|
+
children: React__default.ReactNode;
|
|
652
|
+
className?: string;
|
|
653
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg';
|
|
654
|
+
}
|
|
655
|
+
declare const FlexRow: React__default.FC<FlexRowProps>;
|
|
656
|
+
|
|
657
|
+
interface ScrollableContentProps {
|
|
658
|
+
children: React__default.ReactNode;
|
|
659
|
+
className?: string;
|
|
660
|
+
}
|
|
661
|
+
declare const ScrollableContent: React__default.FC<ScrollableContentProps>;
|
|
662
|
+
|
|
663
|
+
interface DetailsHeaderProps {
|
|
664
|
+
title: string;
|
|
665
|
+
onBack?: () => void;
|
|
666
|
+
className?: string;
|
|
667
|
+
backAriaLabel?: string;
|
|
668
|
+
}
|
|
669
|
+
declare const DetailsHeader: React__default.FC<DetailsHeaderProps>;
|
|
670
|
+
|
|
671
|
+
interface CloseButtonProps {
|
|
672
|
+
onClick?: () => void;
|
|
673
|
+
testId?: string;
|
|
674
|
+
ariaLabel?: string;
|
|
675
|
+
className?: string;
|
|
676
|
+
}
|
|
677
|
+
declare const CloseButton: React__default.FC<CloseButtonProps>;
|
|
678
|
+
|
|
679
|
+
interface HighRiskBadgeProps {
|
|
680
|
+
className?: string;
|
|
681
|
+
label?: string;
|
|
682
|
+
}
|
|
683
|
+
declare const HighRiskBadge: React__default.FC<HighRiskBadgeProps>;
|
|
684
|
+
|
|
685
|
+
interface MediumRiskBadgeProps {
|
|
686
|
+
className?: string;
|
|
687
|
+
label?: string;
|
|
688
|
+
}
|
|
689
|
+
declare const MediumRiskBadge: React__default.FC<MediumRiskBadgeProps>;
|
|
690
|
+
|
|
691
|
+
interface LowRiskBadgeProps {
|
|
692
|
+
className?: string;
|
|
693
|
+
label: string;
|
|
694
|
+
}
|
|
695
|
+
declare const LowRiskBadge: React__default.FC<LowRiskBadgeProps>;
|
|
696
|
+
|
|
697
|
+
interface HistoryDetailsLabels {
|
|
698
|
+
currencyLabel: string;
|
|
699
|
+
totalAmountLabel: string;
|
|
700
|
+
operationCostLabel: string;
|
|
701
|
+
operationCostSponsoredLabel: string;
|
|
702
|
+
protocolLabel: string;
|
|
703
|
+
statusLabel: string;
|
|
704
|
+
transactionIdLabel: string;
|
|
705
|
+
dateLabel: string;
|
|
706
|
+
transactionLabel: string;
|
|
707
|
+
viewOnExplorerLabel: string;
|
|
708
|
+
transactionDetailsTitle: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
interface HistoryAssetViewProps {
|
|
712
|
+
iconUrl: string;
|
|
713
|
+
symbol: string;
|
|
714
|
+
amount: string;
|
|
715
|
+
amountInUSD: string | null;
|
|
716
|
+
}
|
|
717
|
+
interface HistoryDetailsViewProps {
|
|
718
|
+
transactionTypeLabel: string;
|
|
719
|
+
symbol: string;
|
|
720
|
+
amountWithSymbol: string;
|
|
721
|
+
amountInUsdFormatted: string;
|
|
722
|
+
shouldShowFlow: boolean;
|
|
723
|
+
assetIn?: HistoryAssetViewProps;
|
|
724
|
+
assetOut?: HistoryAssetViewProps;
|
|
725
|
+
primaryAssetIconUrl: string;
|
|
726
|
+
protocolLabel: string;
|
|
727
|
+
statusLabel: string;
|
|
728
|
+
txHash: string | null;
|
|
729
|
+
date: string;
|
|
730
|
+
explorerUrl: string | null;
|
|
731
|
+
onClose: () => void;
|
|
732
|
+
labels: HistoryDetailsLabels;
|
|
733
|
+
}
|
|
734
|
+
declare const HistoryDepositDetailsView: React__default.FC<HistoryDetailsViewProps>;
|
|
735
|
+
|
|
736
|
+
declare const HistoryWithdrawDetailsView: React__default.FC<HistoryDetailsViewProps>;
|
|
737
|
+
|
|
738
|
+
interface SwapNetworkSelectorViewProps {
|
|
739
|
+
chainLabel: string;
|
|
740
|
+
chainImage?: string;
|
|
741
|
+
onClick: () => void;
|
|
742
|
+
directionLabel?: string;
|
|
743
|
+
testId?: string;
|
|
744
|
+
className?: string;
|
|
745
|
+
}
|
|
746
|
+
declare const SwapNetworkSelectorView: React__default.FC<SwapNetworkSelectorViewProps>;
|
|
747
|
+
|
|
748
|
+
interface SwapQuoteHeaderViewProps {
|
|
749
|
+
label: React__default.ReactNode;
|
|
750
|
+
timerElement?: React__default.ReactNode;
|
|
751
|
+
className?: string;
|
|
752
|
+
}
|
|
753
|
+
declare const SwapQuoteHeaderView: React__default.FC<SwapQuoteHeaderViewProps>;
|
|
754
|
+
|
|
755
|
+
interface InputFieldRegistration {
|
|
756
|
+
name: string;
|
|
757
|
+
onBlur: React__default.FocusEventHandler<HTMLInputElement>;
|
|
758
|
+
ref: React__default.Ref<HTMLInputElement>;
|
|
759
|
+
}
|
|
760
|
+
interface SwapAmountInputViewProps {
|
|
761
|
+
value: string;
|
|
762
|
+
hasError: boolean;
|
|
763
|
+
onChange: (value: string) => void;
|
|
764
|
+
maxFractionDigits?: number;
|
|
765
|
+
field?: InputFieldRegistration;
|
|
766
|
+
ariaLabel?: string;
|
|
767
|
+
className?: string;
|
|
768
|
+
}
|
|
769
|
+
declare const SwapAmountInputView: React__default.FC<SwapAmountInputViewProps>;
|
|
770
|
+
|
|
771
|
+
interface SwapOutputAmountViewProps {
|
|
772
|
+
displayOutput: string | number;
|
|
773
|
+
isLoading: boolean;
|
|
774
|
+
loadingElement?: React__default.ReactNode;
|
|
775
|
+
searchingQuoteLabel?: string;
|
|
776
|
+
className?: string;
|
|
777
|
+
}
|
|
778
|
+
declare const SwapOutputAmountView: React__default.FC<SwapOutputAmountViewProps>;
|
|
779
|
+
|
|
780
|
+
interface SwapQuoteErrorsViewProps {
|
|
781
|
+
hasQuoteError: boolean;
|
|
782
|
+
hasBytecodeError: boolean;
|
|
783
|
+
quoteErrorMessage?: string;
|
|
784
|
+
bytecodeErrorMessage?: string;
|
|
785
|
+
}
|
|
786
|
+
declare const SwapQuoteErrorsView: React__default.FC<SwapQuoteErrorsViewProps>;
|
|
787
|
+
|
|
788
|
+
interface SwapSlippageToleranceButtonsViewProps {
|
|
789
|
+
slippageBps: number;
|
|
790
|
+
onSelect: (bps: number) => void;
|
|
791
|
+
formatPercentage: (bps: number) => string;
|
|
792
|
+
className?: string;
|
|
793
|
+
}
|
|
794
|
+
declare const SwapSlippageToleranceButtonsView: React__default.FC<SwapSlippageToleranceButtonsViewProps>;
|
|
795
|
+
|
|
796
|
+
interface SwapTokenSelectorViewProps {
|
|
797
|
+
token: {
|
|
798
|
+
symbol: string;
|
|
799
|
+
logoURI?: string;
|
|
800
|
+
} | null;
|
|
801
|
+
onClick: () => void;
|
|
802
|
+
testId?: string;
|
|
803
|
+
selectTokenLabel?: string;
|
|
804
|
+
className?: string;
|
|
805
|
+
}
|
|
806
|
+
declare const SwapTokenSelectorView: React__default.FC<SwapTokenSelectorViewProps>;
|
|
807
|
+
|
|
808
|
+
interface SwapQuoteBlockchainCostsViewProps {
|
|
809
|
+
totalCostFormatted: string;
|
|
810
|
+
feePercentage: string;
|
|
811
|
+
gasCostFormatted: string;
|
|
812
|
+
protocolFee: string;
|
|
813
|
+
blockchainCostsLabel?: string;
|
|
814
|
+
networkGasLabel?: string;
|
|
815
|
+
protocolFeeLabel?: string;
|
|
816
|
+
collapseLabel?: string;
|
|
817
|
+
expandLabel?: string;
|
|
818
|
+
}
|
|
819
|
+
declare const SwapQuoteBlockchainCostsView: React__default.FC<SwapQuoteBlockchainCostsViewProps>;
|
|
820
|
+
|
|
821
|
+
interface ChooseAStrategyActionsheetViewProps {
|
|
822
|
+
isOpen: boolean;
|
|
823
|
+
currentActionSheetId: string | null;
|
|
824
|
+
assetName: string;
|
|
825
|
+
apy: string;
|
|
826
|
+
logoUrl: string;
|
|
827
|
+
strategyId: string;
|
|
828
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
829
|
+
onStrategyClick: () => void;
|
|
830
|
+
onClose: () => void;
|
|
831
|
+
yieldLabel?: string;
|
|
832
|
+
apyLabel?: string;
|
|
833
|
+
riskBadgeLabels: {
|
|
834
|
+
low: string;
|
|
835
|
+
medium: string;
|
|
836
|
+
high: string;
|
|
837
|
+
};
|
|
838
|
+
closeAriaLabel?: string;
|
|
839
|
+
}
|
|
840
|
+
declare const ChooseAStrategyActionsheetView: React__default.FC<ChooseAStrategyActionsheetViewProps>;
|
|
841
|
+
|
|
842
|
+
interface StrategyDetailsViewProps {
|
|
843
|
+
logoUrl: string;
|
|
844
|
+
title: string;
|
|
845
|
+
description: string;
|
|
846
|
+
strategyInfo: {
|
|
847
|
+
label: string;
|
|
848
|
+
value: string;
|
|
849
|
+
}[];
|
|
850
|
+
onBack?: () => void;
|
|
851
|
+
onDeposit?: () => void;
|
|
852
|
+
headerTitle?: string;
|
|
853
|
+
strategyInfoTitle?: string;
|
|
854
|
+
depositButtonLabel?: string;
|
|
855
|
+
backAriaLabel?: string;
|
|
856
|
+
}
|
|
857
|
+
declare const StrategyDetailsView: React__default.FC<StrategyDetailsViewProps>;
|
|
858
|
+
|
|
859
|
+
export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, BackgroundContainer, type BackgroundContainerProps, BannerNotification, type BannerNotificationProps, type ButtonProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DeframeThemeConfig, type DetailItem, DetailsHeader, type DetailsHeaderProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, PercentageButton, PrimaryButton, ScrollableContent, type ScrollableContentProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StrategyDetailsView, type StrategyDetailsViewProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAmountInputView, type SwapAmountInputViewProps, SwapNetworkSelectorView, type SwapNetworkSelectorViewProps, SwapOutputAmountView, type SwapOutputAmountViewProps, SwapQuoteBlockchainCostsView, type SwapQuoteBlockchainCostsViewProps, SwapQuoteErrorsView, type SwapQuoteErrorsViewProps, SwapQuoteHeaderView, type SwapQuoteHeaderViewProps, SwapSlippageToleranceButtonsView, type SwapSlippageToleranceButtonsViewProps, SwapTokenSelectorView, type SwapTokenSelectorViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, type TextProps, type ThemeMode, type ThemePreset, Title, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type ConnectWalletListProps as WalletListProps, type WalletOption, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };
|
package/dist/index.d.ts
CHANGED
|
@@ -412,6 +412,8 @@ interface SummaryDetailsProps {
|
|
|
412
412
|
}
|
|
413
413
|
declare const SummaryDetails: React$1.FC<SummaryDetailsProps>;
|
|
414
414
|
|
|
415
|
+
declare const SummaryDetailsCryptoControlV2: React$1.FC<SummaryDetailsProps>;
|
|
416
|
+
|
|
415
417
|
interface ActionSheetItem {
|
|
416
418
|
id: string;
|
|
417
419
|
label: string;
|
|
@@ -570,4 +572,288 @@ interface DeframeComponentsProviderProps {
|
|
|
570
572
|
}
|
|
571
573
|
declare function DeframeComponentsProvider({ theme, themeConfig, customTheme, className, children }: DeframeComponentsProviderProps): react_jsx_runtime.JSX.Element;
|
|
572
574
|
|
|
573
|
-
|
|
575
|
+
interface InfoRowProps {
|
|
576
|
+
children: React__default.ReactNode;
|
|
577
|
+
borderBottom?: boolean;
|
|
578
|
+
className?: string;
|
|
579
|
+
}
|
|
580
|
+
declare const InfoRow: React__default.FC<InfoRowProps>;
|
|
581
|
+
|
|
582
|
+
interface InfoLabelProps {
|
|
583
|
+
children: React__default.ReactNode;
|
|
584
|
+
className?: string;
|
|
585
|
+
}
|
|
586
|
+
declare const InfoLabel: React__default.FC<InfoLabelProps>;
|
|
587
|
+
|
|
588
|
+
interface InfoValueProps {
|
|
589
|
+
children: React__default.ReactNode;
|
|
590
|
+
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
591
|
+
className?: string;
|
|
592
|
+
}
|
|
593
|
+
declare const InfoValue: React__default.FC<InfoValueProps>;
|
|
594
|
+
|
|
595
|
+
interface InfoRowWithIconProps {
|
|
596
|
+
children: React__default.ReactNode;
|
|
597
|
+
borderBottom?: boolean;
|
|
598
|
+
className?: string;
|
|
599
|
+
}
|
|
600
|
+
declare const InfoRowWithIcon: React__default.FC<InfoRowWithIconProps>;
|
|
601
|
+
|
|
602
|
+
interface InfoRowIconLabelProps {
|
|
603
|
+
children: React__default.ReactNode;
|
|
604
|
+
className?: string;
|
|
605
|
+
}
|
|
606
|
+
declare const InfoRowIconLabel: React__default.FC<InfoRowIconLabelProps>;
|
|
607
|
+
|
|
608
|
+
interface InfoRowIconValueProps {
|
|
609
|
+
children: React__default.ReactNode;
|
|
610
|
+
className?: string;
|
|
611
|
+
}
|
|
612
|
+
declare const InfoRowIconValue: React__default.FC<InfoRowIconValueProps>;
|
|
613
|
+
|
|
614
|
+
interface CollapsibleInfoRowProps {
|
|
615
|
+
label: string;
|
|
616
|
+
value: string;
|
|
617
|
+
children?: React__default.ReactNode;
|
|
618
|
+
defaultOpen?: boolean;
|
|
619
|
+
className?: string;
|
|
620
|
+
collapseLabel: string;
|
|
621
|
+
expandLabel: string;
|
|
622
|
+
}
|
|
623
|
+
declare const CollapsibleInfoRow: React__default.FC<CollapsibleInfoRowProps>;
|
|
624
|
+
|
|
625
|
+
interface BackgroundContainerProps {
|
|
626
|
+
children: React__default.ReactNode;
|
|
627
|
+
className?: string;
|
|
628
|
+
}
|
|
629
|
+
declare const BackgroundContainer: React__default.FC<BackgroundContainerProps>;
|
|
630
|
+
|
|
631
|
+
interface SectionCardProps {
|
|
632
|
+
children: React__default.ReactNode;
|
|
633
|
+
className?: string;
|
|
634
|
+
}
|
|
635
|
+
declare const SectionCard: React__default.FC<SectionCardProps>;
|
|
636
|
+
|
|
637
|
+
interface NavbarProps {
|
|
638
|
+
children: React__default.ReactNode;
|
|
639
|
+
className?: string;
|
|
640
|
+
}
|
|
641
|
+
declare const Navbar: React__default.FC<NavbarProps>;
|
|
642
|
+
|
|
643
|
+
interface FlexColProps {
|
|
644
|
+
children: React__default.ReactNode;
|
|
645
|
+
className?: string;
|
|
646
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg';
|
|
647
|
+
}
|
|
648
|
+
declare const FlexCol: React__default.FC<FlexColProps>;
|
|
649
|
+
|
|
650
|
+
interface FlexRowProps {
|
|
651
|
+
children: React__default.ReactNode;
|
|
652
|
+
className?: string;
|
|
653
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg';
|
|
654
|
+
}
|
|
655
|
+
declare const FlexRow: React__default.FC<FlexRowProps>;
|
|
656
|
+
|
|
657
|
+
interface ScrollableContentProps {
|
|
658
|
+
children: React__default.ReactNode;
|
|
659
|
+
className?: string;
|
|
660
|
+
}
|
|
661
|
+
declare const ScrollableContent: React__default.FC<ScrollableContentProps>;
|
|
662
|
+
|
|
663
|
+
interface DetailsHeaderProps {
|
|
664
|
+
title: string;
|
|
665
|
+
onBack?: () => void;
|
|
666
|
+
className?: string;
|
|
667
|
+
backAriaLabel?: string;
|
|
668
|
+
}
|
|
669
|
+
declare const DetailsHeader: React__default.FC<DetailsHeaderProps>;
|
|
670
|
+
|
|
671
|
+
interface CloseButtonProps {
|
|
672
|
+
onClick?: () => void;
|
|
673
|
+
testId?: string;
|
|
674
|
+
ariaLabel?: string;
|
|
675
|
+
className?: string;
|
|
676
|
+
}
|
|
677
|
+
declare const CloseButton: React__default.FC<CloseButtonProps>;
|
|
678
|
+
|
|
679
|
+
interface HighRiskBadgeProps {
|
|
680
|
+
className?: string;
|
|
681
|
+
label?: string;
|
|
682
|
+
}
|
|
683
|
+
declare const HighRiskBadge: React__default.FC<HighRiskBadgeProps>;
|
|
684
|
+
|
|
685
|
+
interface MediumRiskBadgeProps {
|
|
686
|
+
className?: string;
|
|
687
|
+
label?: string;
|
|
688
|
+
}
|
|
689
|
+
declare const MediumRiskBadge: React__default.FC<MediumRiskBadgeProps>;
|
|
690
|
+
|
|
691
|
+
interface LowRiskBadgeProps {
|
|
692
|
+
className?: string;
|
|
693
|
+
label: string;
|
|
694
|
+
}
|
|
695
|
+
declare const LowRiskBadge: React__default.FC<LowRiskBadgeProps>;
|
|
696
|
+
|
|
697
|
+
interface HistoryDetailsLabels {
|
|
698
|
+
currencyLabel: string;
|
|
699
|
+
totalAmountLabel: string;
|
|
700
|
+
operationCostLabel: string;
|
|
701
|
+
operationCostSponsoredLabel: string;
|
|
702
|
+
protocolLabel: string;
|
|
703
|
+
statusLabel: string;
|
|
704
|
+
transactionIdLabel: string;
|
|
705
|
+
dateLabel: string;
|
|
706
|
+
transactionLabel: string;
|
|
707
|
+
viewOnExplorerLabel: string;
|
|
708
|
+
transactionDetailsTitle: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
interface HistoryAssetViewProps {
|
|
712
|
+
iconUrl: string;
|
|
713
|
+
symbol: string;
|
|
714
|
+
amount: string;
|
|
715
|
+
amountInUSD: string | null;
|
|
716
|
+
}
|
|
717
|
+
interface HistoryDetailsViewProps {
|
|
718
|
+
transactionTypeLabel: string;
|
|
719
|
+
symbol: string;
|
|
720
|
+
amountWithSymbol: string;
|
|
721
|
+
amountInUsdFormatted: string;
|
|
722
|
+
shouldShowFlow: boolean;
|
|
723
|
+
assetIn?: HistoryAssetViewProps;
|
|
724
|
+
assetOut?: HistoryAssetViewProps;
|
|
725
|
+
primaryAssetIconUrl: string;
|
|
726
|
+
protocolLabel: string;
|
|
727
|
+
statusLabel: string;
|
|
728
|
+
txHash: string | null;
|
|
729
|
+
date: string;
|
|
730
|
+
explorerUrl: string | null;
|
|
731
|
+
onClose: () => void;
|
|
732
|
+
labels: HistoryDetailsLabels;
|
|
733
|
+
}
|
|
734
|
+
declare const HistoryDepositDetailsView: React__default.FC<HistoryDetailsViewProps>;
|
|
735
|
+
|
|
736
|
+
declare const HistoryWithdrawDetailsView: React__default.FC<HistoryDetailsViewProps>;
|
|
737
|
+
|
|
738
|
+
interface SwapNetworkSelectorViewProps {
|
|
739
|
+
chainLabel: string;
|
|
740
|
+
chainImage?: string;
|
|
741
|
+
onClick: () => void;
|
|
742
|
+
directionLabel?: string;
|
|
743
|
+
testId?: string;
|
|
744
|
+
className?: string;
|
|
745
|
+
}
|
|
746
|
+
declare const SwapNetworkSelectorView: React__default.FC<SwapNetworkSelectorViewProps>;
|
|
747
|
+
|
|
748
|
+
interface SwapQuoteHeaderViewProps {
|
|
749
|
+
label: React__default.ReactNode;
|
|
750
|
+
timerElement?: React__default.ReactNode;
|
|
751
|
+
className?: string;
|
|
752
|
+
}
|
|
753
|
+
declare const SwapQuoteHeaderView: React__default.FC<SwapQuoteHeaderViewProps>;
|
|
754
|
+
|
|
755
|
+
interface InputFieldRegistration {
|
|
756
|
+
name: string;
|
|
757
|
+
onBlur: React__default.FocusEventHandler<HTMLInputElement>;
|
|
758
|
+
ref: React__default.Ref<HTMLInputElement>;
|
|
759
|
+
}
|
|
760
|
+
interface SwapAmountInputViewProps {
|
|
761
|
+
value: string;
|
|
762
|
+
hasError: boolean;
|
|
763
|
+
onChange: (value: string) => void;
|
|
764
|
+
maxFractionDigits?: number;
|
|
765
|
+
field?: InputFieldRegistration;
|
|
766
|
+
ariaLabel?: string;
|
|
767
|
+
className?: string;
|
|
768
|
+
}
|
|
769
|
+
declare const SwapAmountInputView: React__default.FC<SwapAmountInputViewProps>;
|
|
770
|
+
|
|
771
|
+
interface SwapOutputAmountViewProps {
|
|
772
|
+
displayOutput: string | number;
|
|
773
|
+
isLoading: boolean;
|
|
774
|
+
loadingElement?: React__default.ReactNode;
|
|
775
|
+
searchingQuoteLabel?: string;
|
|
776
|
+
className?: string;
|
|
777
|
+
}
|
|
778
|
+
declare const SwapOutputAmountView: React__default.FC<SwapOutputAmountViewProps>;
|
|
779
|
+
|
|
780
|
+
interface SwapQuoteErrorsViewProps {
|
|
781
|
+
hasQuoteError: boolean;
|
|
782
|
+
hasBytecodeError: boolean;
|
|
783
|
+
quoteErrorMessage?: string;
|
|
784
|
+
bytecodeErrorMessage?: string;
|
|
785
|
+
}
|
|
786
|
+
declare const SwapQuoteErrorsView: React__default.FC<SwapQuoteErrorsViewProps>;
|
|
787
|
+
|
|
788
|
+
interface SwapSlippageToleranceButtonsViewProps {
|
|
789
|
+
slippageBps: number;
|
|
790
|
+
onSelect: (bps: number) => void;
|
|
791
|
+
formatPercentage: (bps: number) => string;
|
|
792
|
+
className?: string;
|
|
793
|
+
}
|
|
794
|
+
declare const SwapSlippageToleranceButtonsView: React__default.FC<SwapSlippageToleranceButtonsViewProps>;
|
|
795
|
+
|
|
796
|
+
interface SwapTokenSelectorViewProps {
|
|
797
|
+
token: {
|
|
798
|
+
symbol: string;
|
|
799
|
+
logoURI?: string;
|
|
800
|
+
} | null;
|
|
801
|
+
onClick: () => void;
|
|
802
|
+
testId?: string;
|
|
803
|
+
selectTokenLabel?: string;
|
|
804
|
+
className?: string;
|
|
805
|
+
}
|
|
806
|
+
declare const SwapTokenSelectorView: React__default.FC<SwapTokenSelectorViewProps>;
|
|
807
|
+
|
|
808
|
+
interface SwapQuoteBlockchainCostsViewProps {
|
|
809
|
+
totalCostFormatted: string;
|
|
810
|
+
feePercentage: string;
|
|
811
|
+
gasCostFormatted: string;
|
|
812
|
+
protocolFee: string;
|
|
813
|
+
blockchainCostsLabel?: string;
|
|
814
|
+
networkGasLabel?: string;
|
|
815
|
+
protocolFeeLabel?: string;
|
|
816
|
+
collapseLabel?: string;
|
|
817
|
+
expandLabel?: string;
|
|
818
|
+
}
|
|
819
|
+
declare const SwapQuoteBlockchainCostsView: React__default.FC<SwapQuoteBlockchainCostsViewProps>;
|
|
820
|
+
|
|
821
|
+
interface ChooseAStrategyActionsheetViewProps {
|
|
822
|
+
isOpen: boolean;
|
|
823
|
+
currentActionSheetId: string | null;
|
|
824
|
+
assetName: string;
|
|
825
|
+
apy: string;
|
|
826
|
+
logoUrl: string;
|
|
827
|
+
strategyId: string;
|
|
828
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
829
|
+
onStrategyClick: () => void;
|
|
830
|
+
onClose: () => void;
|
|
831
|
+
yieldLabel?: string;
|
|
832
|
+
apyLabel?: string;
|
|
833
|
+
riskBadgeLabels: {
|
|
834
|
+
low: string;
|
|
835
|
+
medium: string;
|
|
836
|
+
high: string;
|
|
837
|
+
};
|
|
838
|
+
closeAriaLabel?: string;
|
|
839
|
+
}
|
|
840
|
+
declare const ChooseAStrategyActionsheetView: React__default.FC<ChooseAStrategyActionsheetViewProps>;
|
|
841
|
+
|
|
842
|
+
interface StrategyDetailsViewProps {
|
|
843
|
+
logoUrl: string;
|
|
844
|
+
title: string;
|
|
845
|
+
description: string;
|
|
846
|
+
strategyInfo: {
|
|
847
|
+
label: string;
|
|
848
|
+
value: string;
|
|
849
|
+
}[];
|
|
850
|
+
onBack?: () => void;
|
|
851
|
+
onDeposit?: () => void;
|
|
852
|
+
headerTitle?: string;
|
|
853
|
+
strategyInfoTitle?: string;
|
|
854
|
+
depositButtonLabel?: string;
|
|
855
|
+
backAriaLabel?: string;
|
|
856
|
+
}
|
|
857
|
+
declare const StrategyDetailsView: React__default.FC<StrategyDetailsViewProps>;
|
|
858
|
+
|
|
859
|
+
export { ActionButton, ActionSheet, type ActionSheetProps, AddressDisplay, type AddressDisplayProps, BackgroundContainer, type BackgroundContainerProps, BannerNotification, type BannerNotificationProps, type ButtonProps, ChooseAStrategyActionsheetView, type ChooseAStrategyActionsheetViewProps, CloseButton, type CloseButtonProps, CollapsibleInfoRow, type CollapsibleInfoRowProps, ConnectWalletList, type ConnectWalletListProps, Currency, type CurrencyProps, type CurrencyType, DeframeComponentsProvider, type DeframeTheme, type DeframeThemeColors, type DeframeThemeConfig, type DetailItem, DetailsHeader, type DetailsHeaderProps, Currency as Fiat, type FiatProps, FlexCol, type FlexColProps, FlexRow, type FlexRowProps, HighRiskBadge, type HighRiskBadgeProps, type HistoryAssetViewProps, HistoryDepositDetailsView, type HistoryDetailsLabels, type HistoryDetailsViewProps, HistoryWithdrawDetailsView, InfoLabel, type InfoLabelProps, InfoRow, InfoRowIconLabel, type InfoRowIconLabelProps, InfoRowIconValue, type InfoRowIconValueProps, type InfoRowProps, InfoRowWithIcon, type InfoRowWithIconProps, InfoValue, type InfoValueProps, Input, type InputFieldRegistration, type InputProps, Link, type LinkProps, ListItem, ListItemContent, ListItemLeftSide, type ListItemProps, ListItemRightSide, LowRiskBadge, type LowRiskBadgeProps, MediumRiskBadge, type MediumRiskBadgeProps, Navbar, type NavbarProps, PercentageButton, PrimaryButton, ScrollableContent, type ScrollableContentProps, SecondaryButton, SectionCard, type SectionCardProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectProps, SelectTrigger, type SelectTriggerProps, Skeleton, type SkeletonProps, StrategyDetailsView, type StrategyDetailsViewProps, SummaryDetails, SummaryDetailsCryptoControlV2, type SummaryDetailsProps, SwapAmountInputView, type SwapAmountInputViewProps, SwapNetworkSelectorView, type SwapNetworkSelectorViewProps, SwapOutputAmountView, type SwapOutputAmountViewProps, SwapQuoteBlockchainCostsView, type SwapQuoteBlockchainCostsViewProps, SwapQuoteErrorsView, type SwapQuoteErrorsViewProps, SwapQuoteHeaderView, type SwapQuoteHeaderViewProps, SwapSlippageToleranceButtonsView, type SwapSlippageToleranceButtonsViewProps, SwapTokenSelectorView, type SwapTokenSelectorViewProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TertiaryButton, Text, TextAccent, type TextAccentProps, TextBody, type TextBodyProps, TextHeading, type TextHeadingProps, type TextProps, type ThemeMode, type ThemePreset, Title, WalletItem, type WalletItemProps, ConnectWalletList as WalletList, WalletListContainer, type WalletListContainerProps, type ConnectWalletListProps as WalletListProps, type WalletOption, cryptocontrolThemeColors, darkThemeColors, defaultThemeColors, themeToCSS };
|