@funkit/connect 8.1.0 → 8.2.1-next.0
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/CHANGELOG.md +66 -11
- package/dist/__generated__/default_configs.d.ts +7 -6
- package/dist/{chunk-5GV4UXWB.js → chunk-FBCU3TQA.js} +13 -2
- package/dist/{chunk-RJAD5CZH.js → chunk-MGQZMUZ2.js} +68 -2
- package/dist/{chunk-IVO7KGHT.js → chunk-OTMBU2BL.js} +13 -2
- package/dist/clients/fanatics.css +10775 -0
- package/dist/clients/fanatics.d.ts +42 -0
- package/dist/clients/fanatics.js +683 -0
- package/dist/components/Box/Box.d.ts +47 -46
- package/dist/components/Dialog/Dialog.d.ts +4 -2
- package/dist/components/Dialog/DialogContent.css.d.ts +9 -0
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +1 -1
- package/dist/components/FunInfoBanner/FunInfoBanner.d.ts +5 -1
- package/dist/components/FunInput/FunInput.d.ts +5 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.d.ts +2 -1
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +7 -0
- package/dist/components/FunSelectBrokerage/FunBrokerageItem.d.ts +4 -1
- package/dist/components/FunSkeletonLoader/FunSkeletonBlock.d.ts +8 -3
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +1 -0
- package/dist/components/HelpAlert/HelpAlert.d.ts +1 -0
- package/dist/components/Icons/ApplePayIcon.d.ts +4 -0
- package/dist/components/Icons/BitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/FanaticsCreditCardIcon.d.ts +4 -0
- package/dist/components/Icons/GooglePayIcon.d.ts +4 -0
- package/dist/components/Icons/New/CashIcon.d.ts +4 -0
- package/dist/components/Icons/RevolutPayIcon.d.ts +4 -0
- package/dist/components/Icons/SepaBankIcon.d.ts +4 -0
- package/dist/components/Icons/VenmoIcon.d.ts +4 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Text/Text.d.ts +1 -0
- package/dist/components/TransactionStatus/AnimatedText.d.ts +10 -0
- package/dist/components/TransactionStatus/DotsDivider.d.ts +2 -0
- package/dist/components/TransactionStatus/StepSpinner.d.ts +17 -0
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +5 -7
- package/dist/components/TransactionStatus/TransactionStatusLoading.d.ts +6 -0
- package/dist/consts/customers.d.ts +1 -0
- package/dist/css/sprinkles.css.d.ts +304 -49
- package/dist/domains/paymentMethods.d.ts +8 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -1
- package/dist/hooks/usePaymentSources.d.ts +3 -1
- package/dist/index.css +4497 -3131
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5871 -4615
- package/dist/modals/CheckoutModal/ConfirmationStep/CheckoutPrimaryInfo.d.ts +2 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +2 -0
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/DefaultSourceList.d.ts +12 -0
- package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +15 -0
- package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +2 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +1 -0
- package/dist/providers/FunkitConfigContext.d.ts +119 -5
- package/dist/providers/FunkitThemeProvider.d.ts +384 -3
- package/dist/themes/baseTheme.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +6 -0
- package/dist/utils/customer.d.ts +2 -3
- package/dist/utils/flags/config.d.ts +4 -43
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +29 -29
- package/package.json +6 -5
- package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +0 -2
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 8.2.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 87c0f00: feat(connect): split decimal based on locale
|
|
8
|
+
- 761464a: feat(connect): fanatics checkout history
|
|
9
|
+
- 29ac86d: Add configurable props to custom source banner component
|
|
10
|
+
- 203029c: feat(connect): add theme level control to set font size for you send you receive component
|
|
11
|
+
- 4833bc1: Do not unnecessarily fetch Lighter accounts
|
|
12
|
+
- ad0a860: fix(connect): input screen decimal color check
|
|
13
|
+
- 9ffd984: feat(connect): ability to pass custom icons to payment method icons
|
|
14
|
+
- d9821eb: swapped based use cash tab UI implementation
|
|
15
|
+
- 2f4c5c2: feat(connect): add theme styling for cash crypto toggle
|
|
16
|
+
- 9f3ff5c: fix(connect): transparent caret color bug
|
|
17
|
+
- 0b0e4e8: fanatics modal mobile view improvements
|
|
18
|
+
- 9f98ac4: feat(connect): add dynamic chain icon mask on FunAvatar component
|
|
19
|
+
- 49376c3: fix: getBalance computation no longer relies on deprecated field
|
|
20
|
+
- 0d1a649: feat(connect): customizable payment method icons
|
|
21
|
+
- 38be23d: feat: new inputAmountFiatDecimalsColor theme variable
|
|
22
|
+
- ce0e7ff: fix(connect): cdn url path
|
|
23
|
+
- ff96c90: feat(connect): hide destination field in payment summary for simplifiedUi config
|
|
24
|
+
- aabec47: feat(connect): ui customization to hide secondary token symbol on FunAssetItem
|
|
25
|
+
- 1f1c515: chore(connect): fanatics confirmation step
|
|
26
|
+
- cc8ed95: feat(connect): fanatics connect exchange screen
|
|
27
|
+
- a677e72: refactor(connect): break up TransactionStatus into separate files
|
|
28
|
+
- 52208da: fix(connect): fix stale value with flush sync
|
|
29
|
+
- 5bba47b: fix(connect): update default theme value horizontal padding on confirmation screen
|
|
30
|
+
- 0c04e6e: chore: deprecate unused hook useUsableWalletAssetsForCheckout
|
|
31
|
+
- 2f67612: fix font sizes for fanatics
|
|
32
|
+
- Updated dependencies [c939c70]
|
|
33
|
+
- Updated dependencies [78f741f]
|
|
34
|
+
- @funkit/fun-relay@2.2.3-next.0
|
|
35
|
+
- @funkit/api-base@2.1.2-next.0
|
|
36
|
+
|
|
37
|
+
## 8.2.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- cf97880: Add client configuration exports with wildcard pattern support
|
|
42
|
+
- Add `/clients/*` export path in package.json for client configurations
|
|
43
|
+
- Create `src/clients/` directory with exportable client configurations
|
|
44
|
+
- Update build system to compile clients directory
|
|
45
|
+
- Enable easy integration via `@funkit/connect/clients/{client-name}` imports
|
|
46
|
+
|
|
47
|
+
- cf97880: Add customTopComponent option to five checkout screens (SourceChange, SelectAsset, SelectBrokerage, ConnectExchange, TransferCrypto) allowing custom React components to be rendered at the top of each screen
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- 95f245d: fix(connect): use stable isTokenEquivalent comparison in withdrawal
|
|
52
|
+
- 3725dbf: Deprecate EnableBitcoin feature flag - Bitcoin is now enabled by default in token transfer configuration
|
|
53
|
+
- f7bde29: feat: new disableLogging funkit config
|
|
54
|
+
- be4569b:
|
|
55
|
+
- 70fd67a: feat: add new customer
|
|
56
|
+
- 967d7a6: Block Lighter customers from checkout when wallet is not connected. Shows "Your wallet is not connected" message instead of allowing checkout to proceed with invalid address.
|
|
57
|
+
- 605738b: fix dollar sign position in hyperbeat meld flow
|
|
58
|
+
- eae9077: feat(connect): proceed when selecting asset for fanatics
|
|
59
|
+
- 56e62ef: feat(connect): add WithdrawalInfoBanner to withdrawal modal
|
|
60
|
+
- ad7b142: feat(connect): implement two layer flag evaluation
|
|
61
|
+
feat(connect): migrate EnableMeldPayment flag to statsig
|
|
62
|
+
- Updated dependencies [3725dbf]
|
|
63
|
+
- Updated dependencies [70fd67a]
|
|
64
|
+
- Updated dependencies [39a2171]
|
|
65
|
+
- Updated dependencies [ad7b142]
|
|
66
|
+
- @funkit/utils@1.1.24
|
|
67
|
+
- @funkit/api-base@2.1.1
|
|
68
|
+
|
|
3
69
|
## 8.1.0
|
|
4
70
|
|
|
5
71
|
### Minor Changes
|
|
@@ -80,14 +146,12 @@
|
|
|
80
146
|
- f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
|
|
81
147
|
|
|
82
148
|
Add two new public hooks for fetching recent deposits/direct executions:
|
|
83
|
-
|
|
84
149
|
- `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
|
|
85
150
|
- `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
|
|
86
151
|
|
|
87
152
|
Both hooks return purified checkout history items suitable for external use and include full JSDoc documentation with usage examples.
|
|
88
153
|
|
|
89
154
|
- fa6cb1f: Add soft-close feature for checkout modal when transaction is in progress
|
|
90
|
-
|
|
91
155
|
- When a transaction is in progress (checkoutProgress.step >= 1), the close button now hides the modal instead of closing it, preserving state
|
|
92
156
|
- Added `useSoftHiddenCheckout` hook for managing soft-hidden checkout state
|
|
93
157
|
- Added internal `onCheckoutConflict` handler to resolve conflicts when `beginCheckout` is called while a checkout is soft-hidden
|
|
@@ -261,7 +325,6 @@
|
|
|
261
325
|
- f4552b0: Expose recent deposits hooks for SDK users with comprehensive documentation
|
|
262
326
|
|
|
263
327
|
Add two new public hooks for fetching recent deposits/direct executions:
|
|
264
|
-
|
|
265
328
|
- `useFunkitRecentDeposits`: Auto-integrates with FunkitProvider context
|
|
266
329
|
- `useFunkitRecentDepositsImpl`: Standalone implementation with explicit parameters
|
|
267
330
|
|
|
@@ -390,7 +453,6 @@
|
|
|
390
453
|
### Minor Changes
|
|
391
454
|
|
|
392
455
|
- fa6cb1f: Add soft-close feature for checkout modal when transaction is in progress
|
|
393
|
-
|
|
394
456
|
- When a transaction is in progress (checkoutProgress.step >= 1), the close button now hides the modal instead of closing it, preserving state
|
|
395
457
|
- Added `useSoftHiddenCheckout` hook for managing soft-hidden checkout state
|
|
396
458
|
- Added internal `onCheckoutConflict` handler to resolve conflicts when `beginCheckout` is called while a checkout is soft-hidden
|
|
@@ -1023,12 +1085,10 @@
|
|
|
1023
1085
|
- d307de8: Add support for custom withdrawal callbacks to enable server-side withdrawal processing
|
|
1024
1086
|
|
|
1025
1087
|
Introduces a new withdrawal configuration type that allows customers (e.g., Kalshi) to handle withdrawals via callbacks instead of direct blockchain transactions. The withdrawal config now supports two modes:
|
|
1026
|
-
|
|
1027
1088
|
- Wallet-based (existing): Direct blockchain transactions via WithdrawalClient
|
|
1028
1089
|
- Callback-based (new): Server-side processing via withdrawCallback function
|
|
1029
1090
|
|
|
1030
1091
|
Key changes:
|
|
1031
|
-
|
|
1032
1092
|
- Split FunkitWithdrawalConfig into discriminated union types (WalletWithdrawalConfig, CustomWithdrawalConfig)
|
|
1033
1093
|
- Add WithdrawalParam interface with quoteId and funQuote
|
|
1034
1094
|
- Update withdrawal flow to route callback-based withdrawals to DirectExecutionNotifCenter (pending screen)
|
|
@@ -1108,12 +1168,10 @@
|
|
|
1108
1168
|
- d307de8: Add support for custom withdrawal callbacks to enable server-side withdrawal processing
|
|
1109
1169
|
|
|
1110
1170
|
Introduces a new withdrawal configuration type that allows customers (e.g., Kalshi) to handle withdrawals via callbacks instead of direct blockchain transactions. The withdrawal config now supports two modes:
|
|
1111
|
-
|
|
1112
1171
|
- Wallet-based (existing): Direct blockchain transactions via WithdrawalClient
|
|
1113
1172
|
- Callback-based (new): Server-side processing via withdrawCallback function
|
|
1114
1173
|
|
|
1115
1174
|
Key changes:
|
|
1116
|
-
|
|
1117
1175
|
- Split FunkitWithdrawalConfig into discriminated union types (WalletWithdrawalConfig, CustomWithdrawalConfig)
|
|
1118
1176
|
- Add WithdrawalParam interface with quoteId and funQuote
|
|
1119
1177
|
- Update withdrawal flow to route callback-based withdrawals to DirectExecutionNotifCenter (pending screen)
|
|
@@ -1467,7 +1525,6 @@
|
|
|
1467
1525
|
This removes all EtherFi-related code including API keys, theme components, customer functions, and UI customizations. The EtherFi integration was marked as obsolete and has been completely removed from the codebase.
|
|
1468
1526
|
|
|
1469
1527
|
**Breaking Changes:**
|
|
1470
|
-
|
|
1471
1528
|
- Removed `ETHERFI_API_KEY` constant from `@funkit/api-base`
|
|
1472
1529
|
- Removed `isEtherFiCustomer` function from `@funkit/connect`
|
|
1473
1530
|
- Removed `EtherFiIcon` component from `@funkit/connect`
|
|
@@ -3707,12 +3764,10 @@
|
|
|
3707
3764
|
### Patch Changes
|
|
3708
3765
|
|
|
3709
3766
|
- 47087b4: Features
|
|
3710
|
-
|
|
3711
3767
|
1. Multichain asset display and checkout selection
|
|
3712
3768
|
2. `textCustomizations` in `funkitConfig`
|
|
3713
3769
|
|
|
3714
3770
|
Fixes
|
|
3715
|
-
|
|
3716
3771
|
1. Deprecate unsupported mesh brokerage options (Stash, ETrade)
|
|
3717
3772
|
2. Fix EOA checkout initCode issue with new wrapper funWallet
|
|
3718
3773
|
3. Fix EOA checkout wrapper funWallet regeneration on chain switch
|
|
@@ -2,9 +2,6 @@ declare const _default: {
|
|
|
2
2
|
readonly addressblacklist: {
|
|
3
3
|
readonly value: readonly ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807", "0x02A86f51aA7B8b1c17c30364748d5Ae4a0727E23", "0x64131b60502C01362639CC5cfE1a1efB6Be1165A"];
|
|
4
4
|
};
|
|
5
|
-
readonly array_of_strings: {
|
|
6
|
-
readonly value: readonly [];
|
|
7
|
-
};
|
|
8
5
|
readonly blacklistedwithdrawaladdress: {
|
|
9
6
|
readonly value: {
|
|
10
7
|
readonly '0x2791bca1f2de4661ed88a30c99a7a9449aa84174': "USDC.e - Polygon";
|
|
@@ -30,9 +27,6 @@ declare const _default: {
|
|
|
30
27
|
readonly blockedcountries: {
|
|
31
28
|
readonly value: readonly ["AF", "BY", "MM", "CF", "CU", "CD", "IR", "LB", "LY", "NI", "KP", "UA", "SO", "SS", "SY", "VE"];
|
|
32
29
|
};
|
|
33
|
-
readonly boolean: {
|
|
34
|
-
readonly value: false;
|
|
35
|
-
};
|
|
36
30
|
readonly brokerage_hide_you_receive: {
|
|
37
31
|
readonly value: false;
|
|
38
32
|
};
|
|
@@ -390,5 +384,12 @@ declare const _default: {
|
|
|
390
384
|
};
|
|
391
385
|
}];
|
|
392
386
|
};
|
|
387
|
+
readonly withdrawalinfobanner: {
|
|
388
|
+
readonly value: {
|
|
389
|
+
readonly message: "";
|
|
390
|
+
readonly expireAtMs: 0;
|
|
391
|
+
readonly type: "alert";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
393
394
|
};
|
|
394
395
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MGQZMUZ2.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/lightTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -67,6 +67,9 @@ var lightTheme = ({
|
|
|
67
67
|
inputBackground: "#FFFFFF",
|
|
68
68
|
inputBorderBase: "#F0F0F0",
|
|
69
69
|
inputBorderHover: "#E5E5E5",
|
|
70
|
+
// tab
|
|
71
|
+
activeTabBorderColor: "#F7F7F7",
|
|
72
|
+
activeTabBackground: "#F7F7F7",
|
|
70
73
|
// button
|
|
71
74
|
actionColor: "#000",
|
|
72
75
|
actionColorHover: "rgba(0, 0, 0, 0.7)",
|
|
@@ -93,6 +96,7 @@ var lightTheme = ({
|
|
|
93
96
|
buttonIconBackgroundHover: "#F7F7F7",
|
|
94
97
|
buttonIconBackgroundPressed: "#F0F0F0",
|
|
95
98
|
buttonIconStroke: "rgba(0, 0, 0, 0.35)",
|
|
99
|
+
buttonBorderTertiary: "transparent",
|
|
96
100
|
buttonBorderFocusedTertiary: "rgba(0, 0, 0, 0.35)",
|
|
97
101
|
buttonFocusedOutline: "none",
|
|
98
102
|
buttonBorderGradient: "none",
|
|
@@ -107,6 +111,7 @@ var lightTheme = ({
|
|
|
107
111
|
inputAmountQuickOptionHoverBorder: "rgba(0, 0, 0, 0.35)",
|
|
108
112
|
inputAmountQuickOptionActiveBorder: "rgba(0, 0, 0, 0.35)",
|
|
109
113
|
inputAmountQuickOptionFocusedBorder: "rgba(0, 0, 0, 0.35)",
|
|
114
|
+
inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
|
|
110
115
|
youPayYouReceiveBackground: "#FFF",
|
|
111
116
|
// modalBackground
|
|
112
117
|
youPayYouReceiveBorder: "#F0F0F0",
|
|
@@ -153,8 +158,14 @@ var lightTheme = ({
|
|
|
153
158
|
// Override colors
|
|
154
159
|
...customColors || {},
|
|
155
160
|
// option Boxes
|
|
156
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF"
|
|
161
|
+
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
157
162
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
163
|
+
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
164
|
+
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
|
|
165
|
+
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
|
|
166
|
+
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
|
|
167
|
+
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
168
|
+
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7"
|
|
158
169
|
},
|
|
159
170
|
shadows: {
|
|
160
171
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -144,42 +144,86 @@ var baseTheme = ({
|
|
|
144
144
|
customBorderRadiuses = radiusScales[borderRadius],
|
|
145
145
|
customDimensions,
|
|
146
146
|
customSpacings,
|
|
147
|
+
customTextTransforms,
|
|
147
148
|
overlayBlur = "small"
|
|
148
149
|
}) => ({
|
|
149
150
|
blurs: {
|
|
150
151
|
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
151
152
|
},
|
|
152
153
|
dimensions: {
|
|
154
|
+
connectExchangeIconSize: "48px",
|
|
155
|
+
dollarValueSkeletonHeight: "60px",
|
|
156
|
+
inputAmountQuickOptionButtonHeight: "36px",
|
|
157
|
+
inputAmountMinHeight: "76px",
|
|
153
158
|
modalBottomBarButtonHeight: "34px",
|
|
154
159
|
modalTopBarHeight: "56px",
|
|
160
|
+
selectAssetItemIconSize: "24px",
|
|
155
161
|
...customDimensions
|
|
156
162
|
},
|
|
157
163
|
fonts: typeof customFontFamily === "string" ? {
|
|
164
|
+
body: customFontFamily,
|
|
158
165
|
buttonTextPrimary: customFontFamily,
|
|
159
166
|
buttonTextSecondary: customFontFamily,
|
|
160
167
|
buttonTextTertiary: customFontFamily,
|
|
161
|
-
|
|
168
|
+
header: customFontFamily,
|
|
169
|
+
inputAmount: customFontFamily,
|
|
170
|
+
txStatusDescription: customFontFamily,
|
|
171
|
+
txStatusTitle: customFontFamily
|
|
162
172
|
} : {
|
|
173
|
+
body: fontStacks[fontStack],
|
|
163
174
|
buttonTextPrimary: fontStacks[fontStack],
|
|
164
175
|
buttonTextSecondary: fontStacks[fontStack],
|
|
165
176
|
buttonTextTertiary: fontStacks[fontStack],
|
|
166
|
-
|
|
177
|
+
header: fontStacks[fontStack],
|
|
178
|
+
inputAmount: fontStacks[fontStack],
|
|
179
|
+
txStatusDescription: fontStacks[fontStack],
|
|
180
|
+
txStatusTitle: fontStacks[fontStack],
|
|
167
181
|
...customFontFamily
|
|
168
182
|
},
|
|
169
183
|
fontWeight: {
|
|
170
184
|
...DEFAULT_FONT_WEIGHTS,
|
|
185
|
+
inputAmount: DEFAULT_FONT_WEIGHTS.medium,
|
|
171
186
|
modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
172
187
|
modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
|
|
188
|
+
paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
189
|
+
paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
190
|
+
selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
191
|
+
selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
192
|
+
transferTokenLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
193
|
+
txBreakdown: DEFAULT_FONT_WEIGHTS.regular,
|
|
194
|
+
txStatusDescription: DEFAULT_FONT_WEIGHTS.regular,
|
|
195
|
+
txStatusTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
196
|
+
txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
197
|
+
txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
173
198
|
...customFontWeights
|
|
174
199
|
},
|
|
175
200
|
fontSize: {
|
|
176
201
|
...FONT_SIZINGS[fontSizing],
|
|
202
|
+
body: FONT_SIZINGS[fontSizing][14],
|
|
203
|
+
"header-14": { fontSize: "14px", lineHeight: "14px" },
|
|
204
|
+
"header-36": { fontSize: "36px", lineHeight: "36px" },
|
|
177
205
|
buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
|
|
178
206
|
buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
|
|
179
207
|
buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
|
|
208
|
+
dollarValue: FONT_SIZINGS[fontSizing][40],
|
|
209
|
+
inputAmount: FONT_SIZINGS[fontSizing][57],
|
|
180
210
|
modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
181
211
|
modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
|
|
182
212
|
modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
|
|
213
|
+
paymentMethodItemSubtitle: FONT_SIZINGS[fontSizing][12],
|
|
214
|
+
paymentMethodItemTitle: FONT_SIZINGS[fontSizing][12],
|
|
215
|
+
selectAssetItemSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
216
|
+
selectAssetItemTitle: FONT_SIZINGS[fontSizing][13],
|
|
217
|
+
txBreakdown: FONT_SIZINGS[fontSizing][12],
|
|
218
|
+
txStatusDescription: FONT_SIZINGS[fontSizing][13],
|
|
219
|
+
txStatusTitle: FONT_SIZINGS[fontSizing][13],
|
|
220
|
+
txSummaryLabel: FONT_SIZINGS[fontSizing][12],
|
|
221
|
+
txSummaryValue: FONT_SIZINGS[fontSizing][12],
|
|
222
|
+
youPayYouReceivePrimaryFontSize: FONT_SIZINGS[fontSizing][12],
|
|
223
|
+
youPayYouReceiveSecondaryFontSize: FONT_SIZINGS[fontSizing][10],
|
|
224
|
+
transferTokenLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
225
|
+
depositAddressFontSize: FONT_SIZINGS[fontSizing][10],
|
|
226
|
+
funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
183
227
|
...customFontSizings
|
|
184
228
|
},
|
|
185
229
|
radii: {
|
|
@@ -204,15 +248,37 @@ var baseTheme = ({
|
|
|
204
248
|
},
|
|
205
249
|
borderWidths: {
|
|
206
250
|
activeOptionBorderWidth: "1px",
|
|
251
|
+
buttonTertiaryBorderWidth: "0px",
|
|
252
|
+
txSummaryBoxBorderWidth: "1px",
|
|
207
253
|
...customBorderWidths
|
|
208
254
|
},
|
|
209
255
|
spacing: {
|
|
256
|
+
confirmationStepMarginTop: "6px",
|
|
257
|
+
confirmationStepVerticalGap: "18px",
|
|
210
258
|
modalBaseHorizontalPadding: "6px",
|
|
211
259
|
modalBottomHorizontalPadding: "12px",
|
|
212
260
|
modalPaddingBottomUpper: "16px",
|
|
213
261
|
modalPaddingBottomLower: "16px",
|
|
214
262
|
modalTopBarVerticalTextSpacing: "0px",
|
|
263
|
+
selectAssetItemPaddingX: "12px",
|
|
264
|
+
selectAssetItemPaddingY: "8px",
|
|
265
|
+
selectAssetItemTextGap: "0px",
|
|
266
|
+
selectBrokerageItemPaddingX: "12px",
|
|
267
|
+
selectBrokerageItemPaddingY: "11px",
|
|
268
|
+
txBreakdownMarginY: "18px",
|
|
269
|
+
txBreakdownPaddingX: "12px",
|
|
270
|
+
txSummaryBoxPaddingX: "12px",
|
|
271
|
+
txSummaryBoxPaddingY: "12px",
|
|
272
|
+
txSummaryLineItemPadding: "0px",
|
|
273
|
+
txSummaryDividerMarginX: "12px",
|
|
274
|
+
txSummaryDividerMarginY: "12px",
|
|
275
|
+
youPayYouReceivePaddingY: "8px",
|
|
215
276
|
...customSpacings
|
|
277
|
+
},
|
|
278
|
+
textTransforms: {
|
|
279
|
+
inputAmountQuickOptionButton: "none",
|
|
280
|
+
txStatusTitle: "none",
|
|
281
|
+
...customTextTransforms
|
|
216
282
|
}
|
|
217
283
|
});
|
|
218
284
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MGQZMUZ2.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/darkTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -67,6 +67,9 @@ var darkTheme = ({
|
|
|
67
67
|
inputBackground: "#000000",
|
|
68
68
|
inputBorderBase: "#333333",
|
|
69
69
|
inputBorderHover: "#525252",
|
|
70
|
+
// tab
|
|
71
|
+
activeTabBorderColor: "#333333",
|
|
72
|
+
activeTabBackground: "#333333",
|
|
70
73
|
// button
|
|
71
74
|
actionColor: "#FFF",
|
|
72
75
|
actionColorHover: "rgba(255, 255, 255, 0.8)",
|
|
@@ -93,6 +96,7 @@ var darkTheme = ({
|
|
|
93
96
|
buttonIconBackgroundHover: "#333333",
|
|
94
97
|
buttonIconBackgroundPressed: "#333333",
|
|
95
98
|
buttonIconStroke: "rgba(255, 255, 255, 0.35)",
|
|
99
|
+
buttonBorderTertiary: "transparent",
|
|
96
100
|
buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
|
|
97
101
|
buttonFocusedOutline: "none",
|
|
98
102
|
buttonBorderGradient: "none",
|
|
@@ -107,6 +111,7 @@ var darkTheme = ({
|
|
|
107
111
|
inputAmountQuickOptionHoverBorder: "rgba(255, 255, 255, 0.35)",
|
|
108
112
|
inputAmountQuickOptionActiveBorder: "rgba(255, 255, 255, 0.35)",
|
|
109
113
|
inputAmountQuickOptionFocusedBorder: "rgba(255, 255, 255, 0.35)",
|
|
114
|
+
inputAmountFiatDecimalsColor: customColors?.inputAmountFiatDecimalsColor ?? "none",
|
|
110
115
|
youPayYouReceiveBackground: "#000000",
|
|
111
116
|
// modalBackground
|
|
112
117
|
youPayYouReceiveBorder: "#333333",
|
|
@@ -153,8 +158,14 @@ var darkTheme = ({
|
|
|
153
158
|
// Override colors
|
|
154
159
|
...customColors || {},
|
|
155
160
|
// option Boxes
|
|
156
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000"
|
|
161
|
+
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
157
162
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
163
|
+
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
164
|
+
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
|
|
165
|
+
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
|
|
166
|
+
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
|
|
167
|
+
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
168
|
+
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333"
|
|
158
169
|
},
|
|
159
170
|
shadows: {
|
|
160
171
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|