@funkit/connect-rn 2.0.0 → 3.0.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 +72 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1988 -860
- package/dist/index.js.map +4 -4
- package/dist/src/flow/AddressCopiedToast.d.ts +4 -3
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +3 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/withdrawalFlowConfig.d.ts +68 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -0
- package/dist/src/geo/useCheckoutBlocked.d.ts.map +1 -1
- package/dist/src/geo/useUserIpInfo.d.ts +2 -21
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
- package/dist/src/hooks/useScreenSize.d.ts +4 -0
- package/dist/src/hooks/useScreenSize.d.ts.map +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/FunIcon.d.ts.map +1 -1
- package/dist/src/icons/SourceTokenCluster.d.ts.map +1 -1
- package/dist/src/icons/StatusIcon.d.ts +2 -0
- package/dist/src/icons/StatusIcon.d.ts.map +1 -0
- package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/useFunkitCheckout.d.ts +9 -3
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- package/dist/src/screens/AvailableChainsScreen.d.ts +2 -1
- package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -1
- package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -1
- package/dist/src/screens/NetworkSelector.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts +10 -10
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawMethodScreen.d.ts +30 -0
- package/dist/src/screens/WithdrawMethodScreen.d.ts.map +1 -0
- package/dist/src/statsig/useDynamicConfig.d.ts +6 -0
- package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +6 -14
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
- package/dist/src/swapped/SwappedScreenShell.d.ts +24 -0
- package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -0
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts +20 -0
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -0
- package/dist/src/swapped/buildSwappedTheme.d.ts +7 -4
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -1
- package/dist/src/swapped/webViewSwappedTransport.d.ts +8 -7
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
- package/dist/src/theme/buildFunkitTheme.d.ts +192 -0
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -0
- package/dist/src/theme/restyle.d.ts +2818 -2224
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/themes.d.ts +34 -0
- package/dist/src/theme/themes.d.ts.map +1 -0
- package/dist/src/theme/toRestyleTheme.d.ts +257 -205
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +162 -139
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +8 -0
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts +11 -0
- package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useUDAParams.d.ts +1 -1
- package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts +39 -0
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -0
- package/dist/src/utils/customers.d.ts +2 -0
- package/dist/src/utils/customers.d.ts.map +1 -0
- package/dist/src/withdrawal/publicClient.d.ts +10 -0
- package/dist/src/withdrawal/publicClient.d.ts.map +1 -0
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts +21 -0
- package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,69 +1,94 @@
|
|
|
1
1
|
import { type FunkitTokens } from './tokens';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Restyle's standard keys (`colors`, `spacing`, `borderRadii`, `borderWidths`,
|
|
8
|
-
* `textVariants`, `breakpoints`) plus a custom `sizes` group.
|
|
3
|
+
* Wraps the pure {@link buildFunkitTheme} projection in Restyle's `createTheme`.
|
|
4
|
+
* All the real work — mirroring the Fun Variables Figma groups onto the theme —
|
|
5
|
+
* lives in `buildFunkitTheme`; this is just the thin Restyle boundary so the
|
|
6
|
+
* projection stays testable without Restyle's react-native imports.
|
|
9
7
|
*/
|
|
10
8
|
export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
11
|
-
colors: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
9
|
+
colors: {};
|
|
10
|
+
background: {
|
|
11
|
+
modal: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
button: {
|
|
14
|
+
primary: import("./tokens").ButtonSurface;
|
|
15
|
+
secondary: import("./tokens").ButtonSurface;
|
|
16
|
+
tertiary: import("./tokens").ButtonSurface;
|
|
17
|
+
icon: import("./tokens").ButtonSurface;
|
|
18
|
+
destructive: import("./tokens").ButtonSurface & {
|
|
19
|
+
disabled: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
pill: {
|
|
23
|
+
default: string;
|
|
24
|
+
pressed: string;
|
|
25
|
+
disabled: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
content: {
|
|
29
|
+
elements: {
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
success: string;
|
|
33
|
+
error: string;
|
|
34
|
+
hyperlink: string;
|
|
35
|
+
warning: string;
|
|
36
|
+
};
|
|
37
|
+
button: {
|
|
38
|
+
primary: {
|
|
39
|
+
default: string;
|
|
40
|
+
loadingAlpha: string;
|
|
41
|
+
};
|
|
42
|
+
secondary: {
|
|
43
|
+
default: string;
|
|
44
|
+
loadingAlpha: string;
|
|
45
|
+
};
|
|
46
|
+
tertiary: {
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
icon: {
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
destructive: {
|
|
53
|
+
default: string;
|
|
54
|
+
loadingAlpha: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
border: {
|
|
59
|
+
radius: {
|
|
60
|
+
modal: number;
|
|
61
|
+
element: number;
|
|
62
|
+
elementInner: number;
|
|
63
|
+
button: number;
|
|
64
|
+
};
|
|
65
|
+
modal: {
|
|
66
|
+
default: string;
|
|
67
|
+
weight: number;
|
|
68
|
+
};
|
|
69
|
+
elements: {
|
|
70
|
+
default: {
|
|
71
|
+
color: string;
|
|
72
|
+
weight: number;
|
|
73
|
+
};
|
|
74
|
+
selected: {
|
|
75
|
+
color: string;
|
|
76
|
+
weight: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
button: {
|
|
80
|
+
primary: string;
|
|
81
|
+
secondary: string;
|
|
82
|
+
weight: number;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
brand: {
|
|
86
|
+
primary: string;
|
|
87
|
+
};
|
|
88
|
+
opacity: {
|
|
89
|
+
disabled: number;
|
|
66
90
|
};
|
|
91
|
+
font: import("./tokens").FunkitFontTokens;
|
|
67
92
|
spacing: {
|
|
68
93
|
none: number;
|
|
69
94
|
elementsHorizontal: number;
|
|
@@ -79,7 +104,6 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
|
79
104
|
borderWidths: {
|
|
80
105
|
modal: number;
|
|
81
106
|
elementsDefault: number;
|
|
82
|
-
elementsFocused: number;
|
|
83
107
|
elementsSelected: number;
|
|
84
108
|
button: number;
|
|
85
109
|
};
|
|
@@ -103,54 +127,46 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
|
103
127
|
defaults: {
|
|
104
128
|
fontSize: number;
|
|
105
129
|
lineHeight: number;
|
|
106
|
-
color: string;
|
|
107
130
|
fontFamily: string;
|
|
108
131
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
109
132
|
};
|
|
110
133
|
body: {
|
|
111
134
|
fontSize: number;
|
|
112
135
|
lineHeight: number;
|
|
113
|
-
color: string;
|
|
114
136
|
fontFamily: string;
|
|
115
137
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
116
138
|
};
|
|
117
139
|
bodyMedium: {
|
|
118
140
|
fontSize: number;
|
|
119
141
|
lineHeight: number;
|
|
120
|
-
color: string;
|
|
121
142
|
fontFamily: string;
|
|
122
143
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
123
144
|
};
|
|
124
145
|
detail: {
|
|
125
146
|
fontSize: number;
|
|
126
147
|
lineHeight: number;
|
|
127
|
-
color: string;
|
|
128
148
|
fontFamily: string;
|
|
129
149
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
130
150
|
};
|
|
131
151
|
headerTitle: {
|
|
132
152
|
fontSize: number;
|
|
133
|
-
|
|
134
|
-
textAlign: string;
|
|
153
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
135
154
|
fontFamily: string;
|
|
136
155
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
137
156
|
};
|
|
138
157
|
headerSubtitle: {
|
|
139
158
|
fontSize: number;
|
|
140
|
-
|
|
141
|
-
textAlign: string;
|
|
159
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
142
160
|
fontFamily: string;
|
|
143
161
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
144
162
|
};
|
|
145
163
|
amountInput: {
|
|
146
164
|
fontSize: number;
|
|
147
|
-
color: string;
|
|
148
165
|
fontFamily: string;
|
|
149
166
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
150
167
|
};
|
|
151
168
|
amountSummary: {
|
|
152
169
|
fontSize: number;
|
|
153
|
-
color: string;
|
|
154
170
|
fontFamily: string;
|
|
155
171
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
156
172
|
};
|
|
@@ -168,64 +184,91 @@ export declare function toRestyleTheme(tokens: FunkitTokens): {
|
|
|
168
184
|
};
|
|
169
185
|
/** The Restyle theme type all connect-rn components are written against. */
|
|
170
186
|
export type FunkitTheme = ReturnType<typeof toRestyleTheme>;
|
|
171
|
-
/** Built-in default Restyle themes derived from the Fun
|
|
187
|
+
/** Built-in default Restyle themes derived from the Fun Variables Light/Dark tokens. */
|
|
172
188
|
export declare const defaultLightTheme: {
|
|
173
|
-
colors: {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
189
|
+
colors: {};
|
|
190
|
+
background: {
|
|
191
|
+
modal: string;
|
|
192
|
+
secondary: string;
|
|
193
|
+
button: {
|
|
194
|
+
primary: import("./tokens").ButtonSurface;
|
|
195
|
+
secondary: import("./tokens").ButtonSurface;
|
|
196
|
+
tertiary: import("./tokens").ButtonSurface;
|
|
197
|
+
icon: import("./tokens").ButtonSurface;
|
|
198
|
+
destructive: import("./tokens").ButtonSurface & {
|
|
199
|
+
disabled: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
pill: {
|
|
203
|
+
default: string;
|
|
204
|
+
pressed: string;
|
|
205
|
+
disabled: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
content: {
|
|
209
|
+
elements: {
|
|
210
|
+
primary: string;
|
|
211
|
+
secondary: string;
|
|
212
|
+
success: string;
|
|
213
|
+
error: string;
|
|
214
|
+
hyperlink: string;
|
|
215
|
+
warning: string;
|
|
216
|
+
};
|
|
217
|
+
button: {
|
|
218
|
+
primary: {
|
|
219
|
+
default: string;
|
|
220
|
+
loadingAlpha: string;
|
|
221
|
+
};
|
|
222
|
+
secondary: {
|
|
223
|
+
default: string;
|
|
224
|
+
loadingAlpha: string;
|
|
225
|
+
};
|
|
226
|
+
tertiary: {
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
icon: {
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
destructive: {
|
|
233
|
+
default: string;
|
|
234
|
+
loadingAlpha: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
border: {
|
|
239
|
+
radius: {
|
|
240
|
+
modal: number;
|
|
241
|
+
element: number;
|
|
242
|
+
elementInner: number;
|
|
243
|
+
button: number;
|
|
244
|
+
};
|
|
245
|
+
modal: {
|
|
246
|
+
default: string;
|
|
247
|
+
weight: number;
|
|
248
|
+
};
|
|
249
|
+
elements: {
|
|
250
|
+
default: {
|
|
251
|
+
color: string;
|
|
252
|
+
weight: number;
|
|
253
|
+
};
|
|
254
|
+
selected: {
|
|
255
|
+
color: string;
|
|
256
|
+
weight: number;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
button: {
|
|
260
|
+
primary: string;
|
|
261
|
+
secondary: string;
|
|
262
|
+
weight: number;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
brand: {
|
|
266
|
+
primary: string;
|
|
228
267
|
};
|
|
268
|
+
opacity: {
|
|
269
|
+
disabled: number;
|
|
270
|
+
};
|
|
271
|
+
font: import("./tokens").FunkitFontTokens;
|
|
229
272
|
spacing: {
|
|
230
273
|
none: number;
|
|
231
274
|
elementsHorizontal: number;
|
|
@@ -241,7 +284,6 @@ export declare const defaultLightTheme: {
|
|
|
241
284
|
borderWidths: {
|
|
242
285
|
modal: number;
|
|
243
286
|
elementsDefault: number;
|
|
244
|
-
elementsFocused: number;
|
|
245
287
|
elementsSelected: number;
|
|
246
288
|
button: number;
|
|
247
289
|
};
|
|
@@ -265,54 +307,46 @@ export declare const defaultLightTheme: {
|
|
|
265
307
|
defaults: {
|
|
266
308
|
fontSize: number;
|
|
267
309
|
lineHeight: number;
|
|
268
|
-
color: string;
|
|
269
310
|
fontFamily: string;
|
|
270
311
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
271
312
|
};
|
|
272
313
|
body: {
|
|
273
314
|
fontSize: number;
|
|
274
315
|
lineHeight: number;
|
|
275
|
-
color: string;
|
|
276
316
|
fontFamily: string;
|
|
277
317
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
278
318
|
};
|
|
279
319
|
bodyMedium: {
|
|
280
320
|
fontSize: number;
|
|
281
321
|
lineHeight: number;
|
|
282
|
-
color: string;
|
|
283
322
|
fontFamily: string;
|
|
284
323
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
285
324
|
};
|
|
286
325
|
detail: {
|
|
287
326
|
fontSize: number;
|
|
288
327
|
lineHeight: number;
|
|
289
|
-
color: string;
|
|
290
328
|
fontFamily: string;
|
|
291
329
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
292
330
|
};
|
|
293
331
|
headerTitle: {
|
|
294
332
|
fontSize: number;
|
|
295
|
-
|
|
296
|
-
textAlign: string;
|
|
333
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
297
334
|
fontFamily: string;
|
|
298
335
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
299
336
|
};
|
|
300
337
|
headerSubtitle: {
|
|
301
338
|
fontSize: number;
|
|
302
|
-
|
|
303
|
-
textAlign: string;
|
|
339
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
304
340
|
fontFamily: string;
|
|
305
341
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
306
342
|
};
|
|
307
343
|
amountInput: {
|
|
308
344
|
fontSize: number;
|
|
309
|
-
color: string;
|
|
310
345
|
fontFamily: string;
|
|
311
346
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
312
347
|
};
|
|
313
348
|
amountSummary: {
|
|
314
349
|
fontSize: number;
|
|
315
|
-
color: string;
|
|
316
350
|
fontFamily: string;
|
|
317
351
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
318
352
|
};
|
|
@@ -329,62 +363,89 @@ export declare const defaultLightTheme: {
|
|
|
329
363
|
};
|
|
330
364
|
};
|
|
331
365
|
export declare const defaultDarkTheme: {
|
|
332
|
-
colors: {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
366
|
+
colors: {};
|
|
367
|
+
background: {
|
|
368
|
+
modal: string;
|
|
369
|
+
secondary: string;
|
|
370
|
+
button: {
|
|
371
|
+
primary: import("./tokens").ButtonSurface;
|
|
372
|
+
secondary: import("./tokens").ButtonSurface;
|
|
373
|
+
tertiary: import("./tokens").ButtonSurface;
|
|
374
|
+
icon: import("./tokens").ButtonSurface;
|
|
375
|
+
destructive: import("./tokens").ButtonSurface & {
|
|
376
|
+
disabled: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
pill: {
|
|
380
|
+
default: string;
|
|
381
|
+
pressed: string;
|
|
382
|
+
disabled: string;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
content: {
|
|
386
|
+
elements: {
|
|
387
|
+
primary: string;
|
|
388
|
+
secondary: string;
|
|
389
|
+
success: string;
|
|
390
|
+
error: string;
|
|
391
|
+
hyperlink: string;
|
|
392
|
+
warning: string;
|
|
393
|
+
};
|
|
394
|
+
button: {
|
|
395
|
+
primary: {
|
|
396
|
+
default: string;
|
|
397
|
+
loadingAlpha: string;
|
|
398
|
+
};
|
|
399
|
+
secondary: {
|
|
400
|
+
default: string;
|
|
401
|
+
loadingAlpha: string;
|
|
402
|
+
};
|
|
403
|
+
tertiary: {
|
|
404
|
+
default: string;
|
|
405
|
+
};
|
|
406
|
+
icon: {
|
|
407
|
+
default: string;
|
|
408
|
+
};
|
|
409
|
+
destructive: {
|
|
410
|
+
default: string;
|
|
411
|
+
loadingAlpha: string;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
border: {
|
|
416
|
+
radius: {
|
|
417
|
+
modal: number;
|
|
418
|
+
element: number;
|
|
419
|
+
elementInner: number;
|
|
420
|
+
button: number;
|
|
421
|
+
};
|
|
422
|
+
modal: {
|
|
423
|
+
default: string;
|
|
424
|
+
weight: number;
|
|
425
|
+
};
|
|
426
|
+
elements: {
|
|
427
|
+
default: {
|
|
428
|
+
color: string;
|
|
429
|
+
weight: number;
|
|
430
|
+
};
|
|
431
|
+
selected: {
|
|
432
|
+
color: string;
|
|
433
|
+
weight: number;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
button: {
|
|
437
|
+
primary: string;
|
|
438
|
+
secondary: string;
|
|
439
|
+
weight: number;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
brand: {
|
|
443
|
+
primary: string;
|
|
444
|
+
};
|
|
445
|
+
opacity: {
|
|
446
|
+
disabled: number;
|
|
387
447
|
};
|
|
448
|
+
font: import("./tokens").FunkitFontTokens;
|
|
388
449
|
spacing: {
|
|
389
450
|
none: number;
|
|
390
451
|
elementsHorizontal: number;
|
|
@@ -400,7 +461,6 @@ export declare const defaultDarkTheme: {
|
|
|
400
461
|
borderWidths: {
|
|
401
462
|
modal: number;
|
|
402
463
|
elementsDefault: number;
|
|
403
|
-
elementsFocused: number;
|
|
404
464
|
elementsSelected: number;
|
|
405
465
|
button: number;
|
|
406
466
|
};
|
|
@@ -424,54 +484,46 @@ export declare const defaultDarkTheme: {
|
|
|
424
484
|
defaults: {
|
|
425
485
|
fontSize: number;
|
|
426
486
|
lineHeight: number;
|
|
427
|
-
color: string;
|
|
428
487
|
fontFamily: string;
|
|
429
488
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
430
489
|
};
|
|
431
490
|
body: {
|
|
432
491
|
fontSize: number;
|
|
433
492
|
lineHeight: number;
|
|
434
|
-
color: string;
|
|
435
493
|
fontFamily: string;
|
|
436
494
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
437
495
|
};
|
|
438
496
|
bodyMedium: {
|
|
439
497
|
fontSize: number;
|
|
440
498
|
lineHeight: number;
|
|
441
|
-
color: string;
|
|
442
499
|
fontFamily: string;
|
|
443
500
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
444
501
|
};
|
|
445
502
|
detail: {
|
|
446
503
|
fontSize: number;
|
|
447
504
|
lineHeight: number;
|
|
448
|
-
color: string;
|
|
449
505
|
fontFamily: string;
|
|
450
506
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
451
507
|
};
|
|
452
508
|
headerTitle: {
|
|
453
509
|
fontSize: number;
|
|
454
|
-
|
|
455
|
-
textAlign: string;
|
|
510
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
456
511
|
fontFamily: string;
|
|
457
512
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
458
513
|
};
|
|
459
514
|
headerSubtitle: {
|
|
460
515
|
fontSize: number;
|
|
461
|
-
|
|
462
|
-
textAlign: string;
|
|
516
|
+
textAlign: "auto" | "left" | "right" | "center" | "justify" | undefined;
|
|
463
517
|
fontFamily: string;
|
|
464
518
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
465
519
|
};
|
|
466
520
|
amountInput: {
|
|
467
521
|
fontSize: number;
|
|
468
|
-
color: string;
|
|
469
522
|
fontFamily: string;
|
|
470
523
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
471
524
|
};
|
|
472
525
|
amountSummary: {
|
|
473
526
|
fontSize: number;
|
|
474
|
-
color: string;
|
|
475
527
|
fontFamily: string;
|
|
476
528
|
fontWeight: "medium" | "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined;
|
|
477
529
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toRestyleTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/toRestyleTheme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElD;AAED,4EAA4E;AAC5E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,wFAAwF;AACxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA"}
|