@funkit/connect-rn 0.0.0-20260710210119
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 +350 -0
- package/README.md +220 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4158 -0
- package/dist/index.js.map +7 -0
- package/dist/src/flow/AddressCopiedToast.d.ts +18 -0
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts +47 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts +23 -0
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +101 -0
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -0
- package/dist/src/flow/useKeyboardHeight.d.ts +21 -0
- package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -0
- package/dist/src/geo/isCountryBlocked.d.ts +3 -0
- package/dist/src/geo/isCountryBlocked.d.ts.map +1 -0
- package/dist/src/geo/useCheckoutBlocked.d.ts +10 -0
- package/dist/src/geo/useCheckoutBlocked.d.ts.map +1 -0
- package/dist/src/geo/useUserIpInfo.d.ts +22 -0
- package/dist/src/geo/useUserIpInfo.d.ts.map +1 -0
- package/dist/src/icons/CopyAddressIcon.d.ts +9 -0
- package/dist/src/icons/CopyAddressIcon.d.ts.map +1 -0
- package/dist/src/icons/CryptoBitcoinIcon.d.ts +9 -0
- package/dist/src/icons/CryptoBitcoinIcon.d.ts.map +1 -0
- package/dist/src/icons/CryptoTransferQRIcon.d.ts +9 -0
- package/dist/src/icons/CryptoTransferQRIcon.d.ts.map +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts +19 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -0
- package/dist/src/icons/FunIcon.d.ts +18 -0
- package/dist/src/icons/FunIcon.d.ts.map +1 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts +24 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -0
- package/dist/src/icons/QrChainCluster.d.ts +22 -0
- package/dist/src/icons/QrChainCluster.d.ts.map +1 -0
- package/dist/src/icons/SourceTokenCluster.d.ts +31 -0
- package/dist/src/icons/SourceTokenCluster.d.ts.map +1 -0
- package/dist/src/icons/TokenChainIcon.d.ts +19 -0
- package/dist/src/icons/TokenChainIcon.d.ts.map +1 -0
- package/dist/src/icons/assetLogos.d.ts +12 -0
- package/dist/src/icons/assetLogos.d.ts.map +1 -0
- package/dist/src/icons/funIconUri.d.ts +16 -0
- package/dist/src/icons/funIconUri.d.ts.map +1 -0
- package/dist/src/identity/IdentityContext.d.ts +52 -0
- package/dist/src/identity/IdentityContext.d.ts.map +1 -0
- package/dist/src/logging/consoleLogTransport.d.ts +10 -0
- package/dist/src/logging/consoleLogTransport.d.ts.map +1 -0
- package/dist/src/logging/datadogHttpLogTransport.d.ts +46 -0
- package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -0
- package/dist/src/logging/logger.d.ts +9 -0
- package/dist/src/logging/logger.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +65 -0
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -0
- package/dist/src/providers/FunkitStatsigProvider.d.ts +13 -0
- package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -0
- package/dist/src/providers/useFunkitCheckout.d.ts +14 -0
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -0
- package/dist/src/screens/AddMoneyScreen.d.ts +86 -0
- package/dist/src/screens/AddMoneyScreen.d.ts.map +1 -0
- package/dist/src/screens/AvailableChainsScreen.d.ts +33 -0
- package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -0
- package/dist/src/screens/CheckoutBlockedScreen.d.ts +2 -0
- package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -0
- package/dist/src/screens/NetworkSelector.d.ts +31 -0
- package/dist/src/screens/NetworkSelector.d.ts.map +1 -0
- package/dist/src/screens/QrCodeScreen.d.ts +42 -0
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -0
- package/dist/src/screens/TransferCryptoScreen.d.ts +40 -0
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -0
- package/dist/src/statsig/StatsigClientRN.d.ts +6 -0
- package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -0
- package/dist/src/statsig/StatsigProviderRN.d.ts +7 -0
- package/dist/src/statsig/StatsigProviderRN.d.ts.map +1 -0
- package/dist/src/statsig/appVisibilityShim.d.ts +2 -0
- package/dist/src/statsig/appVisibilityShim.d.ts.map +1 -0
- package/dist/src/statsig/preloadedAsyncStorage.d.ts +3 -0
- package/dist/src/statsig/preloadedAsyncStorage.d.ts.map +1 -0
- package/dist/src/statsig/rnSetup.d.ts +3 -0
- package/dist/src/statsig/rnSetup.d.ts.map +1 -0
- package/dist/src/statsig/statsigMetadata.d.ts +2 -0
- package/dist/src/statsig/statsigMetadata.d.ts.map +1 -0
- package/dist/src/statsig/useClientAsyncInitRN.d.ts +7 -0
- package/dist/src/statsig/useClientAsyncInitRN.d.ts.map +1 -0
- package/dist/src/statsig/useClientBootstrapInitRN.d.ts +4 -0
- package/dist/src/statsig/useClientBootstrapInitRN.d.ts.map +1 -0
- package/dist/src/swapped/SwappedScreen.d.ts +21 -0
- package/dist/src/swapped/SwappedScreen.d.ts.map +1 -0
- package/dist/src/swapped/SwappedWebView.d.ts +18 -0
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -0
- package/dist/src/swapped/buildSwappedTheme.d.ts +31 -0
- package/dist/src/swapped/buildSwappedTheme.d.ts.map +1 -0
- package/dist/src/swapped/webViewSwappedTransport.d.ts +74 -0
- package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -0
- package/dist/src/theme/FunkitThemeProvider.d.ts +50 -0
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -0
- package/dist/src/theme/restyle.d.ts +5606 -0
- package/dist/src/theme/restyle.d.ts.map +1 -0
- package/dist/src/theme/toRestyleTheme.d.ts +490 -0
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -0
- package/dist/src/theme/tokens.d.ts +159 -0
- package/dist/src/theme/tokens.d.ts.map +1 -0
- package/dist/src/theme/useColorScheme.d.ts +25 -0
- package/dist/src/theme/useColorScheme.d.ts.map +1 -0
- package/dist/src/theme/useFunkitTheme.d.ts +29 -0
- package/dist/src/theme/useFunkitTheme.d.ts.map +1 -0
- package/dist/src/transfer/QrCode.d.ts +24 -0
- package/dist/src/transfer/QrCode.d.ts.map +1 -0
- package/dist/src/transfer/availableChains.d.ts +53 -0
- package/dist/src/transfer/availableChains.d.ts.map +1 -0
- package/dist/src/transfer/clipboard.d.ts +23 -0
- package/dist/src/transfer/clipboard.d.ts.map +1 -0
- package/dist/src/transfer/fops.d.ts +26 -0
- package/dist/src/transfer/fops.d.ts.map +1 -0
- package/dist/src/transfer/formatDepositAddress.d.ts +9 -0
- package/dist/src/transfer/formatDepositAddress.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useFops.d.ts +47 -0
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts +26 -0
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +33 -0
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useTransferInit.d.ts +27 -0
- package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -0
- package/dist/src/transfer/hooks/useUDAParams.d.ts +9 -0
- package/dist/src/transfer/hooks/useUDAParams.d.ts.map +1 -0
- package/dist/src/transfer/supportedTokens.d.ts +34 -0
- package/dist/src/transfer/supportedTokens.d.ts.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1 @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S-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.
|
|
9
|
+
*/
|
|
10
|
+
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;
|
|
66
|
+
};
|
|
67
|
+
spacing: {
|
|
68
|
+
none: number;
|
|
69
|
+
elementsHorizontal: number;
|
|
70
|
+
modalHorizontal: number;
|
|
71
|
+
};
|
|
72
|
+
borderRadii: {
|
|
73
|
+
modal: number;
|
|
74
|
+
element: number;
|
|
75
|
+
elementInner: number;
|
|
76
|
+
button: number;
|
|
77
|
+
rounded: number;
|
|
78
|
+
};
|
|
79
|
+
borderWidths: {
|
|
80
|
+
modal: number;
|
|
81
|
+
elementsDefault: number;
|
|
82
|
+
elementsFocused: number;
|
|
83
|
+
elementsSelected: number;
|
|
84
|
+
button: number;
|
|
85
|
+
};
|
|
86
|
+
sizes: {
|
|
87
|
+
topBar: number;
|
|
88
|
+
buttonHeight: number;
|
|
89
|
+
buttonXs: number;
|
|
90
|
+
buttonSm: number;
|
|
91
|
+
buttonMd: number;
|
|
92
|
+
buttonLg: number;
|
|
93
|
+
iconXs: number;
|
|
94
|
+
iconSm: number;
|
|
95
|
+
iconMd: number;
|
|
96
|
+
iconLg: number;
|
|
97
|
+
};
|
|
98
|
+
breakpoints: {
|
|
99
|
+
phone: number;
|
|
100
|
+
tablet: number;
|
|
101
|
+
};
|
|
102
|
+
textVariants: {
|
|
103
|
+
defaults: {
|
|
104
|
+
fontSize: number;
|
|
105
|
+
lineHeight: number;
|
|
106
|
+
color: string;
|
|
107
|
+
fontFamily: string;
|
|
108
|
+
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
|
+
};
|
|
110
|
+
body: {
|
|
111
|
+
fontSize: number;
|
|
112
|
+
lineHeight: number;
|
|
113
|
+
color: string;
|
|
114
|
+
fontFamily: string;
|
|
115
|
+
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
|
+
};
|
|
117
|
+
bodyMedium: {
|
|
118
|
+
fontSize: number;
|
|
119
|
+
lineHeight: number;
|
|
120
|
+
color: string;
|
|
121
|
+
fontFamily: string;
|
|
122
|
+
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
|
+
};
|
|
124
|
+
detail: {
|
|
125
|
+
fontSize: number;
|
|
126
|
+
lineHeight: number;
|
|
127
|
+
color: string;
|
|
128
|
+
fontFamily: string;
|
|
129
|
+
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
|
+
};
|
|
131
|
+
headerTitle: {
|
|
132
|
+
fontSize: number;
|
|
133
|
+
color: string;
|
|
134
|
+
textAlign: string;
|
|
135
|
+
fontFamily: string;
|
|
136
|
+
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
|
+
};
|
|
138
|
+
headerSubtitle: {
|
|
139
|
+
fontSize: number;
|
|
140
|
+
color: string;
|
|
141
|
+
textAlign: string;
|
|
142
|
+
fontFamily: string;
|
|
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;
|
|
144
|
+
};
|
|
145
|
+
amountInput: {
|
|
146
|
+
fontSize: number;
|
|
147
|
+
color: string;
|
|
148
|
+
fontFamily: string;
|
|
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;
|
|
150
|
+
};
|
|
151
|
+
amountSummary: {
|
|
152
|
+
fontSize: number;
|
|
153
|
+
color: string;
|
|
154
|
+
fontFamily: string;
|
|
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;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
textWeights: {
|
|
159
|
+
base: {
|
|
160
|
+
fontFamily: string;
|
|
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;
|
|
162
|
+
};
|
|
163
|
+
medium: {
|
|
164
|
+
fontFamily: string;
|
|
165
|
+
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;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
/** The Restyle theme type all connect-rn components are written against. */
|
|
170
|
+
export type FunkitTheme = ReturnType<typeof toRestyleTheme>;
|
|
171
|
+
/** Built-in default Restyle themes derived from the Fun Mobile Light/Dark tokens. */
|
|
172
|
+
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;
|
|
228
|
+
};
|
|
229
|
+
spacing: {
|
|
230
|
+
none: number;
|
|
231
|
+
elementsHorizontal: number;
|
|
232
|
+
modalHorizontal: number;
|
|
233
|
+
};
|
|
234
|
+
borderRadii: {
|
|
235
|
+
modal: number;
|
|
236
|
+
element: number;
|
|
237
|
+
elementInner: number;
|
|
238
|
+
button: number;
|
|
239
|
+
rounded: number;
|
|
240
|
+
};
|
|
241
|
+
borderWidths: {
|
|
242
|
+
modal: number;
|
|
243
|
+
elementsDefault: number;
|
|
244
|
+
elementsFocused: number;
|
|
245
|
+
elementsSelected: number;
|
|
246
|
+
button: number;
|
|
247
|
+
};
|
|
248
|
+
sizes: {
|
|
249
|
+
topBar: number;
|
|
250
|
+
buttonHeight: number;
|
|
251
|
+
buttonXs: number;
|
|
252
|
+
buttonSm: number;
|
|
253
|
+
buttonMd: number;
|
|
254
|
+
buttonLg: number;
|
|
255
|
+
iconXs: number;
|
|
256
|
+
iconSm: number;
|
|
257
|
+
iconMd: number;
|
|
258
|
+
iconLg: number;
|
|
259
|
+
};
|
|
260
|
+
breakpoints: {
|
|
261
|
+
phone: number;
|
|
262
|
+
tablet: number;
|
|
263
|
+
};
|
|
264
|
+
textVariants: {
|
|
265
|
+
defaults: {
|
|
266
|
+
fontSize: number;
|
|
267
|
+
lineHeight: number;
|
|
268
|
+
color: string;
|
|
269
|
+
fontFamily: string;
|
|
270
|
+
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
|
+
};
|
|
272
|
+
body: {
|
|
273
|
+
fontSize: number;
|
|
274
|
+
lineHeight: number;
|
|
275
|
+
color: string;
|
|
276
|
+
fontFamily: string;
|
|
277
|
+
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
|
+
};
|
|
279
|
+
bodyMedium: {
|
|
280
|
+
fontSize: number;
|
|
281
|
+
lineHeight: number;
|
|
282
|
+
color: string;
|
|
283
|
+
fontFamily: string;
|
|
284
|
+
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
|
+
};
|
|
286
|
+
detail: {
|
|
287
|
+
fontSize: number;
|
|
288
|
+
lineHeight: number;
|
|
289
|
+
color: string;
|
|
290
|
+
fontFamily: string;
|
|
291
|
+
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
|
+
};
|
|
293
|
+
headerTitle: {
|
|
294
|
+
fontSize: number;
|
|
295
|
+
color: string;
|
|
296
|
+
textAlign: string;
|
|
297
|
+
fontFamily: string;
|
|
298
|
+
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
|
+
};
|
|
300
|
+
headerSubtitle: {
|
|
301
|
+
fontSize: number;
|
|
302
|
+
color: string;
|
|
303
|
+
textAlign: string;
|
|
304
|
+
fontFamily: string;
|
|
305
|
+
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
|
+
};
|
|
307
|
+
amountInput: {
|
|
308
|
+
fontSize: number;
|
|
309
|
+
color: string;
|
|
310
|
+
fontFamily: string;
|
|
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;
|
|
312
|
+
};
|
|
313
|
+
amountSummary: {
|
|
314
|
+
fontSize: number;
|
|
315
|
+
color: string;
|
|
316
|
+
fontFamily: string;
|
|
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;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
textWeights: {
|
|
321
|
+
base: {
|
|
322
|
+
fontFamily: string;
|
|
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;
|
|
324
|
+
};
|
|
325
|
+
medium: {
|
|
326
|
+
fontFamily: string;
|
|
327
|
+
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;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
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;
|
|
387
|
+
};
|
|
388
|
+
spacing: {
|
|
389
|
+
none: number;
|
|
390
|
+
elementsHorizontal: number;
|
|
391
|
+
modalHorizontal: number;
|
|
392
|
+
};
|
|
393
|
+
borderRadii: {
|
|
394
|
+
modal: number;
|
|
395
|
+
element: number;
|
|
396
|
+
elementInner: number;
|
|
397
|
+
button: number;
|
|
398
|
+
rounded: number;
|
|
399
|
+
};
|
|
400
|
+
borderWidths: {
|
|
401
|
+
modal: number;
|
|
402
|
+
elementsDefault: number;
|
|
403
|
+
elementsFocused: number;
|
|
404
|
+
elementsSelected: number;
|
|
405
|
+
button: number;
|
|
406
|
+
};
|
|
407
|
+
sizes: {
|
|
408
|
+
topBar: number;
|
|
409
|
+
buttonHeight: number;
|
|
410
|
+
buttonXs: number;
|
|
411
|
+
buttonSm: number;
|
|
412
|
+
buttonMd: number;
|
|
413
|
+
buttonLg: number;
|
|
414
|
+
iconXs: number;
|
|
415
|
+
iconSm: number;
|
|
416
|
+
iconMd: number;
|
|
417
|
+
iconLg: number;
|
|
418
|
+
};
|
|
419
|
+
breakpoints: {
|
|
420
|
+
phone: number;
|
|
421
|
+
tablet: number;
|
|
422
|
+
};
|
|
423
|
+
textVariants: {
|
|
424
|
+
defaults: {
|
|
425
|
+
fontSize: number;
|
|
426
|
+
lineHeight: number;
|
|
427
|
+
color: string;
|
|
428
|
+
fontFamily: string;
|
|
429
|
+
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
|
+
};
|
|
431
|
+
body: {
|
|
432
|
+
fontSize: number;
|
|
433
|
+
lineHeight: number;
|
|
434
|
+
color: string;
|
|
435
|
+
fontFamily: string;
|
|
436
|
+
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
|
+
};
|
|
438
|
+
bodyMedium: {
|
|
439
|
+
fontSize: number;
|
|
440
|
+
lineHeight: number;
|
|
441
|
+
color: string;
|
|
442
|
+
fontFamily: string;
|
|
443
|
+
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
|
+
};
|
|
445
|
+
detail: {
|
|
446
|
+
fontSize: number;
|
|
447
|
+
lineHeight: number;
|
|
448
|
+
color: string;
|
|
449
|
+
fontFamily: string;
|
|
450
|
+
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
|
+
};
|
|
452
|
+
headerTitle: {
|
|
453
|
+
fontSize: number;
|
|
454
|
+
color: string;
|
|
455
|
+
textAlign: string;
|
|
456
|
+
fontFamily: string;
|
|
457
|
+
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
|
+
};
|
|
459
|
+
headerSubtitle: {
|
|
460
|
+
fontSize: number;
|
|
461
|
+
color: string;
|
|
462
|
+
textAlign: string;
|
|
463
|
+
fontFamily: string;
|
|
464
|
+
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
|
+
};
|
|
466
|
+
amountInput: {
|
|
467
|
+
fontSize: number;
|
|
468
|
+
color: string;
|
|
469
|
+
fontFamily: string;
|
|
470
|
+
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
|
+
};
|
|
472
|
+
amountSummary: {
|
|
473
|
+
fontSize: number;
|
|
474
|
+
color: string;
|
|
475
|
+
fontFamily: string;
|
|
476
|
+
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
|
+
};
|
|
478
|
+
};
|
|
479
|
+
textWeights: {
|
|
480
|
+
base: {
|
|
481
|
+
fontFamily: string;
|
|
482
|
+
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;
|
|
483
|
+
};
|
|
484
|
+
medium: {
|
|
485
|
+
fontFamily: string;
|
|
486
|
+
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;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
//# sourceMappingURL=toRestyleTheme.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Flat color palette (Restyle `colors` must be a flat record). Keys group by
|
|
4
|
+
* role: `bg*` / `btn*` / `pill*` are surface colors, `text*` is foreground
|
|
5
|
+
* content, `onBtn*` is the label/icon color on a button surface, `border*` are
|
|
6
|
+
* stroke colors. Both modes share the same keys; only the values differ.
|
|
7
|
+
*/
|
|
8
|
+
export interface FunkitColorTokens {
|
|
9
|
+
bgModal: string;
|
|
10
|
+
bgSecondary: string;
|
|
11
|
+
btnPrimary: string;
|
|
12
|
+
btnPrimaryHover: string;
|
|
13
|
+
btnPrimaryPressed: string;
|
|
14
|
+
btnPrimaryFocused: string;
|
|
15
|
+
btnPrimaryDisabled: string;
|
|
16
|
+
btnSecondary: string;
|
|
17
|
+
btnSecondaryHover: string;
|
|
18
|
+
btnSecondaryPressed: string;
|
|
19
|
+
btnSecondaryFocused: string;
|
|
20
|
+
btnSecondaryDisabled: string;
|
|
21
|
+
btnTertiary: string;
|
|
22
|
+
btnTertiaryHover: string;
|
|
23
|
+
btnTertiaryPressed: string;
|
|
24
|
+
btnTertiaryFocused: string;
|
|
25
|
+
btnTertiaryDisabled: string;
|
|
26
|
+
btnIcon: string;
|
|
27
|
+
btnIconHover: string;
|
|
28
|
+
btnIconPressed: string;
|
|
29
|
+
btnIconFocused: string;
|
|
30
|
+
btnIconDisabled: string;
|
|
31
|
+
btnDestructive: string;
|
|
32
|
+
btnDestructiveHover: string;
|
|
33
|
+
btnDestructivePressed: string;
|
|
34
|
+
btnDestructiveFocused: string;
|
|
35
|
+
btnDestructiveDisabled: string;
|
|
36
|
+
pill: string;
|
|
37
|
+
pillHover: string;
|
|
38
|
+
pillPressed: string;
|
|
39
|
+
pillFocused: string;
|
|
40
|
+
pillDisabled: string;
|
|
41
|
+
textPrimary: string;
|
|
42
|
+
textSecondary: string;
|
|
43
|
+
textSuccess: string;
|
|
44
|
+
textError: string;
|
|
45
|
+
textHyperlink: string;
|
|
46
|
+
textWarning: string;
|
|
47
|
+
onBtnPrimary: string;
|
|
48
|
+
onBtnPrimaryLoading: string;
|
|
49
|
+
onBtnSecondary: string;
|
|
50
|
+
onBtnSecondaryLoading: string;
|
|
51
|
+
onBtnTertiary: string;
|
|
52
|
+
onBtnIcon: string;
|
|
53
|
+
onBtnDestructive: string;
|
|
54
|
+
onBtnDestructiveLoading: string;
|
|
55
|
+
borderModal: string;
|
|
56
|
+
borderDefault: string;
|
|
57
|
+
borderFocused: string;
|
|
58
|
+
borderSelected: string;
|
|
59
|
+
borderBtnPrimary: string;
|
|
60
|
+
borderBtnSecondary: string;
|
|
61
|
+
brandPrimary: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Logical text weights connect-rn's text styles come in. The Fun Mobile design
|
|
65
|
+
* only defines these two cuts — there is intentionally no semibold/bold in the
|
|
66
|
+
* token set, so any `fontWeight: '600'`/`'700'` in a component is a smell that
|
|
67
|
+
* should route through one of these instead.
|
|
68
|
+
*/
|
|
69
|
+
export type FunkitFontWeight = 'base' | 'medium';
|
|
70
|
+
export interface FunkitFontTokens {
|
|
71
|
+
/**
|
|
72
|
+
* Logical font family the design renders in. Defaults to `'System'` (the
|
|
73
|
+
* platform UI font — SF on iOS, Roboto on Android) so connect-rn needs no
|
|
74
|
+
* font assets out of the box. Hosts that want a custom typeface override this
|
|
75
|
+
* in their tokens and register the matching font files. Concrete per-weight
|
|
76
|
+
* family names are derived from this — see {@link fontFamilyForWeight}.
|
|
77
|
+
*/
|
|
78
|
+
family: string;
|
|
79
|
+
/**
|
|
80
|
+
* One entry per {@link FunkitFontWeight}. `familySuffix` builds the native
|
|
81
|
+
* font family the host registers (`${family}-${familySuffix}` → e.g.
|
|
82
|
+
* `Inter-Medium`); `cssWeight` is the matching numeric weight, kept for two
|
|
83
|
+
* reasons: the Swapped WebView theme renders in CSS where `font-weight` works
|
|
84
|
+
* normally, and it lets text degrade to the right weight on the *system* font
|
|
85
|
+
* when the host hasn't loaded a custom font.
|
|
86
|
+
*
|
|
87
|
+
* Omit `familySuffix` only for the **system** font (`family: 'System'`) — the
|
|
88
|
+
* one family where `fontWeight` actually selects the cut. Then every weight
|
|
89
|
+
* shares the bare `family` and `cssWeight` does the work; see
|
|
90
|
+
* {@link fontFamilyForWeight}.
|
|
91
|
+
*/
|
|
92
|
+
weights: Record<FunkitFontWeight, {
|
|
93
|
+
familySuffix?: string;
|
|
94
|
+
cssWeight: TextStyle['fontWeight'];
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Resolves a logical font weight to the concrete native font-family name the
|
|
99
|
+
* host must register — e.g. `'medium'` → `'Inter-Medium'`.
|
|
100
|
+
*
|
|
101
|
+
* This is connect-rn's whole answer to a React Native / Expo quirk: you cannot
|
|
102
|
+
* reliably select a custom font's weight via `fontWeight`. Android matches custom
|
|
103
|
+
* fonts by exact family-name string, and a font loaded at runtime (`expo-font`)
|
|
104
|
+
* registers one native Typeface per name — so `fontWeight: '500'` on
|
|
105
|
+
* `fontFamily: 'Inter'` is silently ignored and every weight renders identically.
|
|
106
|
+
* Weight therefore has to be baked into the family name, and every text style
|
|
107
|
+
* goes through here.
|
|
108
|
+
*/
|
|
109
|
+
export declare function fontFamilyForWeight(fonts: FunkitFontTokens, weight: FunkitFontWeight): string;
|
|
110
|
+
export interface FunkitTokens {
|
|
111
|
+
colors: FunkitColorTokens;
|
|
112
|
+
radii: {
|
|
113
|
+
modal: number;
|
|
114
|
+
element: number;
|
|
115
|
+
elementInner: number;
|
|
116
|
+
button: number;
|
|
117
|
+
rounded: number;
|
|
118
|
+
};
|
|
119
|
+
borderWidths: {
|
|
120
|
+
modal: number;
|
|
121
|
+
elementsDefault: number;
|
|
122
|
+
elementsFocused: number;
|
|
123
|
+
elementsSelected: number;
|
|
124
|
+
button: number;
|
|
125
|
+
};
|
|
126
|
+
spacing: {
|
|
127
|
+
none: number;
|
|
128
|
+
elementsHorizontal: number;
|
|
129
|
+
modalHorizontal: number;
|
|
130
|
+
};
|
|
131
|
+
sizes: {
|
|
132
|
+
topBar: number;
|
|
133
|
+
buttonHeight: number;
|
|
134
|
+
buttonXs: number;
|
|
135
|
+
buttonSm: number;
|
|
136
|
+
buttonMd: number;
|
|
137
|
+
buttonLg: number;
|
|
138
|
+
iconXs: number;
|
|
139
|
+
iconSm: number;
|
|
140
|
+
iconMd: number;
|
|
141
|
+
iconLg: number;
|
|
142
|
+
};
|
|
143
|
+
fonts: FunkitFontTokens;
|
|
144
|
+
fontSizes: {
|
|
145
|
+
bodyBase: number;
|
|
146
|
+
bodyDetail: number;
|
|
147
|
+
headerTitle: number;
|
|
148
|
+
headerSubtitle: number;
|
|
149
|
+
amountInput: number;
|
|
150
|
+
amountSummary: number;
|
|
151
|
+
};
|
|
152
|
+
fontLineHeights?: {
|
|
153
|
+
bodyBase: number;
|
|
154
|
+
bodyDetail: number;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export declare const lightTokens: FunkitTokens;
|
|
158
|
+
export declare const darkTokens: FunkitTokens;
|
|
159
|
+
//# sourceMappingURL=tokens.d.ts.map
|