@funkit/connect-rn 2.1.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1075 -704
  5. package/dist/index.js.map +4 -4
  6. package/dist/src/flow/AddressCopiedToast.d.ts +4 -3
  7. package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
  8. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  9. package/dist/src/geo/useCheckoutBlocked.d.ts.map +1 -1
  10. package/dist/src/geo/useUserIpInfo.d.ts +2 -21
  11. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  12. package/dist/src/icons/FunIcon.d.ts.map +1 -1
  13. package/dist/src/icons/SourceTokenCluster.d.ts.map +1 -1
  14. package/dist/src/icons/StatusIcon.d.ts +2 -0
  15. package/dist/src/icons/StatusIcon.d.ts.map +1 -0
  16. package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
  17. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  18. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  19. package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -1
  20. package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -1
  21. package/dist/src/screens/NetworkSelector.d.ts.map +1 -1
  22. package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
  23. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  24. package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
  25. package/dist/src/statsig/useDynamicConfig.d.ts +6 -0
  26. package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -0
  27. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  28. package/dist/src/swapped/buildSwappedTheme.d.ts +7 -4
  29. package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -1
  30. package/dist/src/theme/buildFunkitTheme.d.ts +192 -0
  31. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -0
  32. package/dist/src/theme/restyle.d.ts +2818 -2224
  33. package/dist/src/theme/restyle.d.ts.map +1 -1
  34. package/dist/src/theme/themes.d.ts +34 -0
  35. package/dist/src/theme/themes.d.ts.map +1 -0
  36. package/dist/src/theme/toRestyleTheme.d.ts +257 -205
  37. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  38. package/dist/src/theme/tokens.d.ts +162 -139
  39. package/dist/src/theme/tokens.d.ts.map +1 -1
  40. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  41. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  42. package/dist/src/transfer/hooks/useUDAParams.d.ts +1 -1
  43. package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -1
  44. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  45. package/dist/src/utils/customers.d.ts +2 -0
  46. package/dist/src/utils/customers.d.ts.map +1 -0
  47. package/package.json +2 -2
@@ -1,69 +1,94 @@
1
1
  import { type FunkitTokens } from './tokens';
2
2
  /**
3
- * Adapts connect-rn's local {@link FunkitTokens} into a `@shopify/restyle`
4
- * theme. Colors are concrete hex (no CSS-var indirection like web), and the
5
- * numeric tokens map straight onto the unitless values Restyle / RN style props
6
- * expect — so the mapping is a direct projection of the token groups onto
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
- transparent: string;
13
- bgModal: string;
14
- bgSecondary: string;
15
- btnPrimary: string;
16
- btnPrimaryHover: string;
17
- btnPrimaryPressed: string;
18
- btnPrimaryFocused: string;
19
- btnPrimaryDisabled: string;
20
- btnSecondary: string;
21
- btnSecondaryHover: string;
22
- btnSecondaryPressed: string;
23
- btnSecondaryFocused: string;
24
- btnSecondaryDisabled: string;
25
- btnTertiary: string;
26
- btnTertiaryHover: string;
27
- btnTertiaryPressed: string;
28
- btnTertiaryFocused: string;
29
- btnTertiaryDisabled: string;
30
- btnIcon: string;
31
- btnIconHover: string;
32
- btnIconPressed: string;
33
- btnIconFocused: string;
34
- btnIconDisabled: string;
35
- btnDestructive: string;
36
- btnDestructiveHover: string;
37
- btnDestructivePressed: string;
38
- btnDestructiveFocused: string;
39
- btnDestructiveDisabled: string;
40
- pill: string;
41
- pillHover: string;
42
- pillPressed: string;
43
- pillFocused: string;
44
- pillDisabled: string;
45
- textPrimary: string;
46
- textSecondary: string;
47
- textSuccess: string;
48
- textError: string;
49
- textHyperlink: string;
50
- textWarning: string;
51
- onBtnPrimary: string;
52
- onBtnPrimaryLoading: string;
53
- onBtnSecondary: string;
54
- onBtnSecondaryLoading: string;
55
- onBtnTertiary: string;
56
- onBtnIcon: string;
57
- onBtnDestructive: string;
58
- onBtnDestructiveLoading: string;
59
- borderModal: string;
60
- borderDefault: string;
61
- borderFocused: string;
62
- borderSelected: string;
63
- borderBtnPrimary: string;
64
- borderBtnSecondary: string;
65
- brandPrimary: string;
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
- color: string;
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
- color: string;
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 Mobile Light/Dark tokens. */
187
+ /** Built-in default Restyle themes derived from the Fun Variables Light/Dark tokens. */
172
188
  export declare const defaultLightTheme: {
173
- colors: {
174
- transparent: string;
175
- bgModal: string;
176
- bgSecondary: string;
177
- btnPrimary: string;
178
- btnPrimaryHover: string;
179
- btnPrimaryPressed: string;
180
- btnPrimaryFocused: string;
181
- btnPrimaryDisabled: string;
182
- btnSecondary: string;
183
- btnSecondaryHover: string;
184
- btnSecondaryPressed: string;
185
- btnSecondaryFocused: string;
186
- btnSecondaryDisabled: string;
187
- btnTertiary: string;
188
- btnTertiaryHover: string;
189
- btnTertiaryPressed: string;
190
- btnTertiaryFocused: string;
191
- btnTertiaryDisabled: string;
192
- btnIcon: string;
193
- btnIconHover: string;
194
- btnIconPressed: string;
195
- btnIconFocused: string;
196
- btnIconDisabled: string;
197
- btnDestructive: string;
198
- btnDestructiveHover: string;
199
- btnDestructivePressed: string;
200
- btnDestructiveFocused: string;
201
- btnDestructiveDisabled: string;
202
- pill: string;
203
- pillHover: string;
204
- pillPressed: string;
205
- pillFocused: string;
206
- pillDisabled: string;
207
- textPrimary: string;
208
- textSecondary: string;
209
- textSuccess: string;
210
- textError: string;
211
- textHyperlink: string;
212
- textWarning: string;
213
- onBtnPrimary: string;
214
- onBtnPrimaryLoading: string;
215
- onBtnSecondary: string;
216
- onBtnSecondaryLoading: string;
217
- onBtnTertiary: string;
218
- onBtnIcon: string;
219
- onBtnDestructive: string;
220
- onBtnDestructiveLoading: string;
221
- borderModal: string;
222
- borderDefault: string;
223
- borderFocused: string;
224
- borderSelected: string;
225
- borderBtnPrimary: string;
226
- borderBtnSecondary: string;
227
- brandPrimary: string;
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
- color: string;
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
- color: string;
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
- transparent: string;
334
- bgModal: string;
335
- bgSecondary: string;
336
- btnPrimary: string;
337
- btnPrimaryHover: string;
338
- btnPrimaryPressed: string;
339
- btnPrimaryFocused: string;
340
- btnPrimaryDisabled: string;
341
- btnSecondary: string;
342
- btnSecondaryHover: string;
343
- btnSecondaryPressed: string;
344
- btnSecondaryFocused: string;
345
- btnSecondaryDisabled: string;
346
- btnTertiary: string;
347
- btnTertiaryHover: string;
348
- btnTertiaryPressed: string;
349
- btnTertiaryFocused: string;
350
- btnTertiaryDisabled: string;
351
- btnIcon: string;
352
- btnIconHover: string;
353
- btnIconPressed: string;
354
- btnIconFocused: string;
355
- btnIconDisabled: string;
356
- btnDestructive: string;
357
- btnDestructiveHover: string;
358
- btnDestructivePressed: string;
359
- btnDestructiveFocused: string;
360
- btnDestructiveDisabled: string;
361
- pill: string;
362
- pillHover: string;
363
- pillPressed: string;
364
- pillFocused: string;
365
- pillDisabled: string;
366
- textPrimary: string;
367
- textSecondary: string;
368
- textSuccess: string;
369
- textError: string;
370
- textHyperlink: string;
371
- textWarning: string;
372
- onBtnPrimary: string;
373
- onBtnPrimaryLoading: string;
374
- onBtnSecondary: string;
375
- onBtnSecondaryLoading: string;
376
- onBtnTertiary: string;
377
- onBtnIcon: string;
378
- onBtnDestructive: string;
379
- onBtnDestructiveLoading: string;
380
- borderModal: string;
381
- borderDefault: string;
382
- borderFocused: string;
383
- borderSelected: string;
384
- borderBtnPrimary: string;
385
- borderBtnSecondary: string;
386
- brandPrimary: string;
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
- color: string;
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
- color: string;
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":"AAEA,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,UAAU,CAAA;AAEjB;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FlD;AAED,4EAA4E;AAC5E,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,qFAAqF;AACrF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8B,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA"}
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"}