@b3dotfun/sdk 0.0.24 → 0.0.25
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/README.md +3 -8
- package/dist/cjs/anyspend/constants/index.d.ts +0 -1
- package/dist/cjs/anyspend/constants/index.js +1 -2
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +11 -15
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +9 -10
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +2 -2
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +1 -1
- package/dist/cjs/anyspend/react/components/common/CryptoPaymentMethod.js +4 -4
- package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +5 -5
- package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderHistory.js +1 -2
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +9 -3
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +2 -3
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +1 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +2 -2
- package/dist/cjs/anyspend/react/components/common/RecipientSelection.js +1 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +2 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +1 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +3 -3
- package/dist/cjs/anyspend/services/anyspend.d.ts +9 -10
- package/dist/cjs/anyspend/services/anyspend.js +18 -18
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +13 -15
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +1 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +1 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +1 -3
- package/dist/cjs/global-account/react/components/B3Provider/RelayKitProviderWrapper.d.ts +1 -2
- package/dist/cjs/global-account/react/components/B3Provider/RelayKitProviderWrapper.js +4 -4
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -0
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +31 -20
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.d.ts +2 -1
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.js +3 -2
- package/dist/cjs/global-account/react/components/icons/BankIcon.d.ts +9 -0
- package/dist/cjs/global-account/react/components/icons/BankIcon.js +8 -0
- package/dist/cjs/global-account/react/components/icons/EditIcon.d.ts +9 -0
- package/dist/cjs/global-account/react/components/icons/EditIcon.js +8 -0
- package/dist/cjs/global-account/react/components/icons/SignOutIcon.d.ts +9 -0
- package/dist/cjs/global-account/react/components/icons/SignOutIcon.js +8 -0
- package/dist/cjs/global-account/react/components/icons/SwapIcon.d.ts +9 -0
- package/dist/cjs/global-account/react/components/icons/SwapIcon.js +8 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +6 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +11 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.d.ts +6 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.js +39 -6
- package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +10 -0
- package/dist/cjs/global-account/react/hooks/useTokenPrice.js +81 -2
- package/dist/cjs/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +6 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +1 -1
- package/dist/esm/anyspend/constants/index.d.ts +0 -1
- package/dist/esm/anyspend/constants/index.js +0 -1
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +0 -1
- package/dist/esm/anyspend/react/components/AnySpend.js +13 -17
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +10 -11
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +2 -2
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +1 -1
- package/dist/esm/anyspend/react/components/common/CryptoPaymentMethod.js +4 -4
- package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.d.ts +1 -2
- package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +5 -5
- package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +0 -1
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +2 -2
- package/dist/esm/anyspend/react/components/common/OrderHistory.js +1 -2
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +7 -1
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +0 -1
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +2 -3
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +1 -2
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +1 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +2 -2
- package/dist/esm/anyspend/react/components/common/RecipientSelection.js +1 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +2 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +1 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +2 -2
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +3 -3
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +3 -3
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +3 -3
- package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +3 -3
- package/dist/esm/anyspend/services/anyspend.d.ts +9 -10
- package/dist/esm/anyspend/services/anyspend.js +19 -19
- package/dist/esm/global-account/react/components/B3DynamicModal.js +13 -15
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +1 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +1 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +1 -3
- package/dist/esm/global-account/react/components/B3Provider/RelayKitProviderWrapper.d.ts +1 -2
- package/dist/esm/global-account/react/components/B3Provider/RelayKitProviderWrapper.js +5 -5
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -0
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +33 -22
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +2 -2
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.d.ts +2 -1
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.js +4 -3
- package/dist/esm/global-account/react/components/icons/BankIcon.d.ts +9 -0
- package/dist/esm/global-account/react/components/icons/BankIcon.js +5 -0
- package/dist/esm/global-account/react/components/icons/EditIcon.d.ts +9 -0
- package/dist/esm/global-account/react/components/icons/EditIcon.js +5 -0
- package/dist/esm/global-account/react/components/icons/SignOutIcon.d.ts +9 -0
- package/dist/esm/global-account/react/components/icons/SignOutIcon.js +5 -0
- package/dist/esm/global-account/react/components/icons/SwapIcon.d.ts +9 -0
- package/dist/esm/global-account/react/components/icons/SwapIcon.js +5 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +6 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +11 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.d.ts +6 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.js +39 -6
- package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +10 -0
- package/dist/esm/global-account/react/hooks/useTokenPrice.js +78 -3
- package/dist/esm/global-account/react/hooks/useUnifiedChainSwitchAndExecute.js +6 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/constants/index.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpend.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -2
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +0 -2
- package/dist/types/anyspend/react/components/common/FiatPaymentMethod.d.ts +1 -2
- package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +0 -1
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +0 -1
- package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +1 -2
- package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +1 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +1 -2
- package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useStripeClientSecret.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +1 -1
- package/dist/types/anyspend/services/anyspend.d.ts +9 -10
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +1 -2
- package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +1 -2
- package/dist/types/global-account/react/components/B3Provider/RelayKitProviderWrapper.d.ts +1 -2
- package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -0
- package/dist/types/global-account/react/components/custom/CopyToClipboard.d.ts +2 -1
- package/dist/types/global-account/react/components/icons/BankIcon.d.ts +9 -0
- package/dist/types/global-account/react/components/icons/EditIcon.d.ts +9 -0
- package/dist/types/global-account/react/components/icons/SignOutIcon.d.ts +9 -0
- package/dist/types/global-account/react/components/icons/SwapIcon.d.ts +9 -0
- package/dist/types/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +6 -0
- package/dist/types/global-account/react/hooks/useNativeBalance.d.ts +6 -0
- package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +10 -0
- package/dist/types/global-account/react/stores/useModalStore.d.ts +1 -1
- package/package.json +2 -1
- package/src/anyspend/constants/index.ts +0 -1
- package/src/anyspend/docs/components.md +1 -5
- package/src/anyspend/docs/error-handling.md +47 -47
- package/src/anyspend/docs/examples.md +29 -29
- package/src/anyspend/docs/hooks.md +22 -27
- package/src/anyspend/docs/installation.md +1 -5
- package/src/anyspend/react/components/AnySpend.tsx +8 -28
- package/src/anyspend/react/components/AnySpendBondKit.tsx +0 -1
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +0 -3
- package/src/anyspend/react/components/AnySpendCustom.tsx +8 -16
- package/src/anyspend/react/components/AnySpendNFT.tsx +0 -3
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +0 -3
- package/src/anyspend/react/components/AnySpendTournament.tsx +0 -4
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +0 -1
- package/src/anyspend/react/components/common/CryptoPaymentMethod.tsx +7 -7
- package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +5 -7
- package/src/anyspend/react/components/common/OrderDetails.tsx +1 -3
- package/src/anyspend/react/components/common/OrderHistory.tsx +1 -3
- package/src/anyspend/react/components/common/OrderStatus.tsx +7 -1
- package/src/anyspend/react/components/common/PanelOnramp.tsx +2 -2
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +1 -4
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +1 -3
- package/src/anyspend/react/components/common/PaymentVendorUI.tsx +2 -3
- package/src/anyspend/react/components/common/RecipientSelection.tsx +1 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +1 -3
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +0 -2
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +1 -13
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +2 -2
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +2 -7
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +3 -4
- package/src/anyspend/react/hooks/useAnyspendTokens.ts +2 -2
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -8
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +2 -3
- package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
- package/src/anyspend/react/hooks/useStripeSupport.ts +3 -8
- package/src/anyspend/services/anyspend.ts +19 -45
- package/src/global-account/react/components/B3DynamicModal.tsx +66 -39
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +1 -4
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +1 -3
- package/src/global-account/react/components/B3Provider/RelayKitProviderWrapper.tsx +4 -6
- package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +309 -137
- package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +4 -3
- package/src/global-account/react/components/custom/CopyToClipboard.tsx +7 -4
- package/src/global-account/react/components/icons/BankIcon.tsx +38 -0
- package/src/global-account/react/components/icons/EditIcon.tsx +33 -0
- package/src/global-account/react/components/icons/SignOutIcon.tsx +28 -0
- package/src/global-account/react/components/icons/SwapIcon.tsx +41 -0
- package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +18 -0
- package/src/global-account/react/hooks/useNativeBalance.tsx +51 -6
- package/src/global-account/react/hooks/useTokenPrice.tsx +138 -3
- package/src/global-account/react/hooks/useUnifiedChainSwitchAndExecute.ts +9 -3
- package/src/global-account/react/stores/useModalStore.ts +1 -1
- package/src/styles/index.css +328 -0
package/src/styles/index.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/* B3 Fonts */
|
|
2
2
|
/* See https://docs.b3.fun/brand-kit for more information */
|
|
3
3
|
|
|
4
|
+
/* Inter Font Import */
|
|
5
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
|
|
6
|
+
|
|
4
7
|
@font-face {
|
|
5
8
|
font-family: "Pack";
|
|
6
9
|
src: url("https://cdn.b3.fun/fonts/pack.ttf") format("truetype");
|
|
@@ -128,8 +131,51 @@
|
|
|
128
131
|
--as-content-icon-success: 95 85% 35%;
|
|
129
132
|
--as-content-disabled: 220 6% 47%;
|
|
130
133
|
|
|
134
|
+
/* global account */
|
|
135
|
+
--b3-foreground-muted: 0 0% 40%;
|
|
136
|
+
--b3-primary-blue: 223 86% 57%;
|
|
137
|
+
--b3-primary-wash: 224 58% 94%;
|
|
138
|
+
--b3-grey: 0 0% 15%;
|
|
139
|
+
--b3-line: 0 0% 91%;
|
|
140
|
+
--b3-white: 0 0% 98%;
|
|
141
|
+
--b3-background: 0 0% 100%;
|
|
142
|
+
--b3-positive: 153 100% 39%;
|
|
143
|
+
--b3-negative: 0 100% 63%;
|
|
144
|
+
|
|
131
145
|
/* Override relay colors */
|
|
132
146
|
--relay-colors-focus-color: hsl(215, 90%, 48%) !important;
|
|
147
|
+
|
|
148
|
+
--brand-50: #d5e5fd;
|
|
149
|
+
--brand-100: #d8f0ff;
|
|
150
|
+
--brand-200: #8dbaf9;
|
|
151
|
+
--brand-700: #0948a0;
|
|
152
|
+
--red-100: #fde6d7;
|
|
153
|
+
--green-100: #dff9e8;
|
|
154
|
+
--border-brand: #2a9fff;
|
|
155
|
+
--yellow-100: #fee6c7;
|
|
156
|
+
--purple-100: #f5edfa;
|
|
157
|
+
--purple-300: #ddc3ef;
|
|
158
|
+
--yellow-50: #fff6eb;
|
|
159
|
+
--dune: #f0eae3;
|
|
160
|
+
--green: #32ae60;
|
|
161
|
+
--red: #f04d1a;
|
|
162
|
+
--purple: #b981da;
|
|
163
|
+
--yellow: #fba94b;
|
|
164
|
+
--brand: #0c68e9;
|
|
165
|
+
--content-primary: #18181b;
|
|
166
|
+
--content-secondary: #3f3f46;
|
|
167
|
+
--content-placeholder: #70707b;
|
|
168
|
+
--success-50: #f3fee7;
|
|
169
|
+
--success-200: #d0f8ab;
|
|
170
|
+
--success-700: #3b7c0f;
|
|
171
|
+
--warning-50: #fefbe8;
|
|
172
|
+
--warning-200: #feee95;
|
|
173
|
+
--warning-700: #a15c07;
|
|
174
|
+
--error-50: #fef3f2;
|
|
175
|
+
--error-200: #fecdca;
|
|
176
|
+
--error-700: #b42318;
|
|
177
|
+
--brand-tertiary: #0b57c2;
|
|
178
|
+
--fg-quaternary: #a0a0ab;
|
|
133
179
|
}
|
|
134
180
|
|
|
135
181
|
html[data-theme="dark"] .b3-root,
|
|
@@ -184,6 +230,45 @@ html[data-theme="dark"] .b3-root,
|
|
|
184
230
|
/* --as-brand: 263 90% 63%;
|
|
185
231
|
--as-light-brand: 255 10% 16%;
|
|
186
232
|
--border: 256 16% 23%; */
|
|
233
|
+
|
|
234
|
+
/* global account */
|
|
235
|
+
--b3-foreground-muted: 0 0% 65%;
|
|
236
|
+
--b3-primary-blue: 223 86% 67%;
|
|
237
|
+
--b3-primary-wash: 224 58% 15%;
|
|
238
|
+
--b3-grey: 0 0% 85%;
|
|
239
|
+
--b3-line: 0 0% 25%;
|
|
240
|
+
--b3-white: 0 0% 100%;
|
|
241
|
+
--b3-background: 0 0% 12%;
|
|
242
|
+
--b3-positive: 153 100% 49%;
|
|
243
|
+
--b3-negative: 0 100% 73%;
|
|
244
|
+
|
|
245
|
+
--brand-50: #031633;
|
|
246
|
+
--brand-100: #2a323f;
|
|
247
|
+
--brand-200: #07387c;
|
|
248
|
+
--brand-700: #67a4f7;
|
|
249
|
+
--red-100: #6a5550;
|
|
250
|
+
--green-100: rgba(68, 90, 76, 0.57);
|
|
251
|
+
--border-brand: #2a9fff;
|
|
252
|
+
--yellow-100: #957a6c;
|
|
253
|
+
--purple-100: rgba(113, 88, 126, 0.38);
|
|
254
|
+
--purple-300: #a375c3;
|
|
255
|
+
--yellow-50: #82776b;
|
|
256
|
+
--dune: #272c30;
|
|
257
|
+
--content-primary: #fafafa;
|
|
258
|
+
--content-secondary: #d1d1d6;
|
|
259
|
+
--content-placeholder: #70707b;
|
|
260
|
+
--utility-brand: #67a4f7;
|
|
261
|
+
--success-50: #15290a;
|
|
262
|
+
--success-200: #326212;
|
|
263
|
+
--success-700: #a6ef67;
|
|
264
|
+
--warning-50: #542c0d;
|
|
265
|
+
--warning-200: #854a0e;
|
|
266
|
+
--warning-700: #fde272;
|
|
267
|
+
--error-50: #55160c;
|
|
268
|
+
--error-200: #912018;
|
|
269
|
+
--error-700: #fda29b;
|
|
270
|
+
--brand-tertiary: #a0a0ab;
|
|
271
|
+
--fg-quaternary: #51525c;
|
|
187
272
|
}
|
|
188
273
|
|
|
189
274
|
/* src/tailwind.css */
|
|
@@ -300,6 +385,249 @@ Dark version
|
|
|
300
385
|
font-family: "SFCompact", sans-serif;
|
|
301
386
|
}
|
|
302
387
|
|
|
388
|
+
.b3-login-step {
|
|
389
|
+
/* Input fields styling */
|
|
390
|
+
& input {
|
|
391
|
+
color: hsl(var(--b3-react-foreground)) !important;
|
|
392
|
+
border-radius: 8px !important;
|
|
393
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
394
|
+
font-size: 16px !important;
|
|
395
|
+
transition: all 0.2s ease !important;
|
|
396
|
+
border: none !important;
|
|
397
|
+
outline: none !important;
|
|
398
|
+
padding-left: 16px !important;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
& input:focus {
|
|
402
|
+
outline: none !important;
|
|
403
|
+
border: none !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
& input::placeholder {
|
|
407
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
408
|
+
color: hsl(var(--b3-react-muted-foreground)) !important;
|
|
409
|
+
font-size: 16px;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
& button span {
|
|
413
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Social login buttons - target by aria-label structure */
|
|
417
|
+
& button[aria-label*="Login with"] {
|
|
418
|
+
background-color: white !important;
|
|
419
|
+
border: 1px solid hsl(var(--b3-line)) !important;
|
|
420
|
+
border-radius: 16px !important;
|
|
421
|
+
padding: 16px !important;
|
|
422
|
+
height: 72px !important;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
& button[aria-label*="Login with"]:hover {
|
|
426
|
+
background-color: hsl(var(--b3-white) / 0.8) !important;
|
|
427
|
+
border-color: hsl(var(--b3-line) / 0.8) !important;
|
|
428
|
+
cursor: pointer;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
& button[aria-label*="Login with"]:active {
|
|
432
|
+
transform: translateY(0) !important;
|
|
433
|
+
box-shadow: 0 2px 4px hsl(var(--b3-react-foreground) / 0.1) !important;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* input container - target by structure */
|
|
437
|
+
& div[style*="flex-direction: row"][style*="position: relative"] {
|
|
438
|
+
background: hsla(var(--b3-white), 1);
|
|
439
|
+
border: 2px solid hsl(var(--b3-primary-blue)) !important;
|
|
440
|
+
border-radius: 32px !important;
|
|
441
|
+
overflow: hidden !important;
|
|
442
|
+
transition: all 0.2s ease !important;
|
|
443
|
+
font-size: 16px;
|
|
444
|
+
height: 56px;
|
|
445
|
+
margin: 0 1px !important;
|
|
446
|
+
outline: none !important;
|
|
447
|
+
box-shadow: none !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
& div[style*="flex-direction: row"][style*="position: relative"]:focus-within {
|
|
451
|
+
border-color: hsl(var(--b3-primary-blue)) !important;
|
|
452
|
+
/* box-shadow: 0 0 0 2px hsl(var(--b3-react-primary) / 0.1) !important; */
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/* submit button - target button inside email container */
|
|
456
|
+
& div[style*="flex-direction: row"] button {
|
|
457
|
+
background-color: hsl(var(--b3-react-primary)) !important;
|
|
458
|
+
color: hsl(var(--b3-react-primary-foreground)) !important;
|
|
459
|
+
border: 8px solid white !important;
|
|
460
|
+
transition: all 0.2s ease !important;
|
|
461
|
+
border-radius: 100% !important;
|
|
462
|
+
width: 36px !important;
|
|
463
|
+
height: 36px !important;
|
|
464
|
+
padding: 0 !important;
|
|
465
|
+
flex-shrink: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
& select {
|
|
469
|
+
font-size: 16px !important;
|
|
470
|
+
font-family: "Neue Montreal Medium", sans-serif !important;
|
|
471
|
+
color: hsl(var(--b3-react-muted-foreground)) !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
& div[style*="flex-direction: row"] button:hover {
|
|
475
|
+
background-color: hsl(var(--b3-react-primary) / 0.9) !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
& div[style*="flex-direction: row"] button svg {
|
|
479
|
+
color: hsl(var(--b3-react-primary-foreground)) !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* Alternative login options - target by structure and content */
|
|
483
|
+
& button[style*="justify-content: flex-start"] {
|
|
484
|
+
background-color: hsla(var(--b3-white), 1) !important;
|
|
485
|
+
border: 1px solid hsl(var(--b3-line)) !important;
|
|
486
|
+
border-radius: 32px !important;
|
|
487
|
+
color: hsl(var(--b3-react-foreground)) !important;
|
|
488
|
+
transition: all 0.2s ease !important;
|
|
489
|
+
font-family: "Neue Montreal Regular", sans-serif !important;
|
|
490
|
+
font-size: 16px !important;
|
|
491
|
+
height: 56px !important;
|
|
492
|
+
padding-left: 16px !important;
|
|
493
|
+
margin: 0 1px !important;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
& button[style*="justify-content: flex-start"]:hover {
|
|
497
|
+
background-color: hsl(var(--b3-white) / 0.8) !important;
|
|
498
|
+
border-color: hsl(var(--b3-line) / 0.8) !important;
|
|
499
|
+
cursor: pointer;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
& button[style*="justify-content: flex-start"]:active {
|
|
503
|
+
transform: translateY(0) !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* Text styling for alternative options */
|
|
507
|
+
& button[style*="justify-content: flex-start"] span {
|
|
508
|
+
color: hsl(var(--b3-react-foreground)) !important;
|
|
509
|
+
font-weight: 500 !important;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/* Icon styling - target SVGs in alternative buttons */
|
|
513
|
+
& button[style*="justify-content: flex-start"] svg {
|
|
514
|
+
color: hsl(var(--b3-primary-blue)) !important;
|
|
515
|
+
transition: color 0.2s ease !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
& button[style*="justify-content: flex-start"]:focus svg {
|
|
519
|
+
color: hsl(var(--b3-foreground-muted)) !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/* Main container styling - target by flex structure */
|
|
523
|
+
& div[style*="flex-direction: column"] {
|
|
524
|
+
gap: 16px !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
& div[style*="flex-direction: column"] > div {
|
|
528
|
+
gap: 16px !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
& > div > div > div > div > div[style*="height: 24px"] {
|
|
532
|
+
display: none !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Social buttons container - target by flex-flow wrap */
|
|
536
|
+
& div[style*="flex-flow: wrap"] {
|
|
537
|
+
gap: 12px !important;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* handle padding for the main container */
|
|
541
|
+
& > div > div > div > div {
|
|
542
|
+
padding: 0 24px !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* handle padding for the wallet section */
|
|
546
|
+
& > div > div > div > div > div[style*="flex: 1 1 0%"] {
|
|
547
|
+
padding: 0 !important;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* handle padding for the wallet section */
|
|
551
|
+
& > div > div > div > div > div:first-child {
|
|
552
|
+
padding: 0 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* Add subtle animations */
|
|
556
|
+
& * {
|
|
557
|
+
transition: all 0.2s ease !important;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* Focus states for accessibility */
|
|
561
|
+
& button:focus-visible {
|
|
562
|
+
outline: 2px solid hsl(var(--b3-react-primary)) !important;
|
|
563
|
+
outline-offset: 2px !important;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
& span[color="danger"] {
|
|
567
|
+
color: hsl(var(--b3-negative)) !important;
|
|
568
|
+
font-family: "Neue Montreal Medium", sans-serif !important;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* Responsive adjustments */
|
|
572
|
+
@media (max-width: 480px) {
|
|
573
|
+
& > div > div > div > div {
|
|
574
|
+
padding: 0 24px !important;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
& button[aria-label*="Login with"] {
|
|
578
|
+
min-height: 48px !important;
|
|
579
|
+
padding: 10px !important;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
& button[style*="justify-content: flex-start"] {
|
|
583
|
+
min-height: 44px !important;
|
|
584
|
+
padding: 10px 12px !important;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* select wallet section */
|
|
589
|
+
|
|
590
|
+
& ul {
|
|
591
|
+
gap: 24px !important;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
& ul li button img {
|
|
595
|
+
height: 64px !important;
|
|
596
|
+
width: 64px !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
& ul li button div:last-child {
|
|
600
|
+
gap: 4px !important;
|
|
601
|
+
& span[color="primaryText"] {
|
|
602
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
603
|
+
color: hsl(var(--b3-grey)) !important;
|
|
604
|
+
font-size: 16px !important;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
h2 {
|
|
609
|
+
font-size: 24px !important;
|
|
610
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
611
|
+
color: hsl(var(--b3-grey)) !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
& + h2 {
|
|
615
|
+
padding-bottom: 32px !important;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/* text = "Sign in with your wallet" */
|
|
619
|
+
& div > div > div > div > div > div > span[color="primaryText"] {
|
|
620
|
+
font-family: "Neue Montreal Semibold", sans-serif !important;
|
|
621
|
+
color: hsl(var(--b3-grey)) !important;
|
|
622
|
+
font-size: 24px !important;
|
|
623
|
+
|
|
624
|
+
& + div + span {
|
|
625
|
+
font-family: "Neue Montreal Medium", sans-serif !important;
|
|
626
|
+
color: hsl(var(--b3-foreground-muted)) !important;
|
|
627
|
+
font-size: 16px !important;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
303
631
|
/* Radix UI Accordion animations */
|
|
304
632
|
@keyframes accordion-down {
|
|
305
633
|
from {
|