@onairos/react-native 3.1.15 → 3.1.16

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.
@@ -1,166 +1,110 @@
1
- import React, { useState, useCallback } from 'react';
2
- import { TouchableOpacity, Text, StyleSheet, View, Image } from 'react-native';
3
- import AsyncStorage from '@react-native-async-storage/async-storage';
4
- import { TrainingModal } from './TrainingModal';
5
- import { UniversalOnboarding } from './UniversalOnboarding';
6
- import { triggerHaptic, HapticType } from '../utils/haptics';
7
-
8
- interface OnairosSignInButtonProps {
9
- AppName: string;
10
- buttonWidth?: number;
11
- buttonHeight?: number;
12
- color?: string;
13
- textColor?: string;
14
- onResolved?: (token: string, email?: string) => void;
15
- onRejection?: (error: any) => void;
16
- autoFocusEmailInput?: boolean;
17
- }
18
-
19
- export const OnairosSignInButton: React.FC<OnairosSignInButtonProps> = ({
20
- AppName,
21
- buttonWidth = 280,
22
- buttonHeight = 44,
23
- color = '#D4A536',
24
- textColor = '#000',
25
- onResolved,
26
- onRejection,
27
- autoFocusEmailInput = true,
28
- }) => {
29
- const [showEmailModal, setShowEmailModal] = useState(false);
30
- const [showOnboardingModal, setShowOnboardingModal] = useState(false);
31
- const [userEmail, setUserEmail] = useState<string>('');
32
-
33
- const handleEmailComplete = useCallback((emailOrToken: string) => {
34
- console.log('🔍 OnairosSignInButton: handleEmailComplete called with:', emailOrToken);
35
-
36
- // Check if we received a JWT token (real authentication) or just an email
37
- const isJWTToken = emailOrToken && emailOrToken.includes('.') && emailOrToken.split('.').length === 3;
38
-
39
- console.log('🔍 OnairosSignInButton: Is JWT token?', isJWTToken);
40
-
41
- if (isJWTToken) {
42
- // We received a real JWT token from TrainingModal, complete the sign-in immediately
43
- console.log('🔑 Received JWT token from TrainingModal, completing sign-in');
44
- setShowEmailModal(false);
45
- if (onResolved) {
46
- // For JWT tokens, we need to get the email from storage since TrainingModal stored it
47
- AsyncStorage.getItem('user_email').then((storedEmail: string | null) => {
48
- const emailToUse = storedEmail || userEmail;
49
- console.log('🔑 OnairosSignInButton: Returning JWT token with email:', emailToUse);
50
- onResolved(emailOrToken, emailToUse);
51
- });
52
- }
53
- } else {
54
- // We received an email, continue to UniversalOnboarding platform connectors
55
- console.log('📧 OnairosSignInButton: Received email, opening UniversalOnboarding platform connectors');
56
- setUserEmail(emailOrToken);
57
- setShowEmailModal(false);
58
- setShowOnboardingModal(true);
59
- console.log('📧 OnairosSignInButton: UniversalOnboarding modal should now be visible');
60
- }
61
- }, [onResolved, userEmail]);
62
-
63
- const handleEmailCancel = useCallback(() => {
64
- setShowEmailModal(false);
65
- if (onRejection) {
66
- onRejection('User closed email sign-in');
67
- }
68
- }, [onRejection]);
69
-
70
- const handleOnboardingComplete = useCallback((token: string, email?: string) => {
71
- // Use setTimeout to prevent state updates during component unmount
72
- setTimeout(() => {
73
- setShowOnboardingModal(false);
74
- if (onResolved) {
75
- onResolved(token, email || userEmail);
76
- }
77
- }, 16);
78
- }, [onResolved, userEmail]);
79
-
80
- const handleOnboardingCancel = useCallback(() => {
81
- // Use setTimeout to prevent state updates during component unmount
82
- setTimeout(() => {
83
- setShowOnboardingModal(false);
84
- if (onRejection) {
85
- onRejection('User closed onboarding');
86
- }
87
- }, 16);
88
- }, [onRejection]);
89
-
90
- return (
91
- <View style={styles.container}>
92
- <TouchableOpacity
93
- style={[
94
- styles.button,
95
- { width: buttonWidth, height: buttonHeight, backgroundColor: color },
96
- ]}
97
- onPress={() => {
98
- triggerHaptic(HapticType.BUTTON_PRESS);
99
- setShowEmailModal(true);
100
- }}
101
- activeOpacity={0.85}
102
- >
103
- <View style={styles.contentRow}>
104
- <Image
105
- source={require('../assets/images/onairos_logo.png')}
106
- style={styles.logo}
107
- resizeMode="contain"
108
- accessibilityLabel="Onairos logo"
109
- />
110
- <Text style={[styles.buttonText, { color: textColor }]}>Sign in with Onairos</Text>
111
- </View>
112
- </TouchableOpacity>
113
- <TrainingModal
114
- visible={showEmailModal}
115
- onCancel={handleEmailCancel}
116
- onComplete={handleEmailComplete}
117
- autoFocusEmailInput={autoFocusEmailInput}
118
- isPrimaryAuth={true}
119
- />
120
- <UniversalOnboarding
121
- visible={showOnboardingModal}
122
- onClose={handleOnboardingCancel}
123
- onComplete={handleOnboardingComplete}
124
- AppName={AppName}
125
- primaryAuthOnly={false}
126
- requestData={{
127
- Small: { type: "Small", descriptions: "Basic tier", reward: "1" },
128
- Medium: { type: "Medium", descriptions: "Standard tier", reward: "2" },
129
- Large: { type: "Large", descriptions: "Premium tier", reward: "3" }
130
- }}
131
- />
132
- </View>
133
- );
134
- };
135
-
136
- const styles = StyleSheet.create({
137
- button: {
138
- borderRadius: 24,
139
- justifyContent: 'center',
140
- alignItems: 'center',
141
- shadowColor: '#000',
142
- shadowOffset: { width: 0, height: 2 },
143
- shadowOpacity: 0.1,
144
- shadowRadius: 4,
145
- elevation: 2,
146
- marginVertical: 8,
147
- },
148
- contentRow: {
149
- flexDirection: 'row',
150
- alignItems: 'center',
151
- justifyContent: 'center',
152
- },
153
- logo: {
154
- width: 26,
155
- height: 26,
156
- marginRight: 10,
157
- },
158
- buttonText: {
159
- fontSize: 16,
160
- fontWeight: '600',
161
- textAlign: 'center',
162
- },
163
- container: {
164
- // Add any necessary styles for the container
165
- },
166
- });
1
+ import React, { useState, useCallback } from 'react';
2
+ import { TouchableOpacity, Text, StyleSheet, View, Image } from 'react-native';
3
+ import WelcomeScreen from './WelcomeScreen';
4
+ import { triggerHaptic, HapticType } from '../utils/haptics';
5
+
6
+ export interface OnairosSignInButtonProps {
7
+ AppName: string;
8
+ buttonWidth?: number;
9
+ buttonHeight?: number;
10
+ color?: string;
11
+ textColor?: string;
12
+ onResolved?: (token: string, email?: string) => void;
13
+ onRejection?: (error: any) => void;
14
+ autoFocusEmailInput?: boolean;
15
+ }
16
+
17
+ export const OnairosSignInButton: React.FC<OnairosSignInButtonProps> = ({
18
+ AppName,
19
+ buttonWidth = 280,
20
+ buttonHeight = 44,
21
+ color = '#D4A536',
22
+ textColor = '#000',
23
+ onResolved,
24
+ onRejection,
25
+ autoFocusEmailInput = true,
26
+ }) => {
27
+ const [showWelcomeScreen, setShowWelcomeScreen] = useState(false);
28
+
29
+ const handleWelcomeComplete = useCallback((token: string, email?: string) => {
30
+ console.log('✅ OnairosSignInButton: Welcome flow completed!');
31
+ console.log('🔑 Token:', token);
32
+ console.log('📧 Email:', email);
33
+
34
+ setShowWelcomeScreen(false);
35
+ if (onResolved) {
36
+ onResolved(token, email);
37
+ }
38
+ }, [onResolved]);
39
+
40
+ const handleWelcomeClose = useCallback(() => {
41
+ console.log('❌ OnairosSignInButton: Welcome flow cancelled');
42
+ setShowWelcomeScreen(false);
43
+ if (onRejection) {
44
+ onRejection('User closed welcome screen');
45
+ }
46
+ }, [onRejection]);
47
+
48
+ return (
49
+ <View style={styles.container}>
50
+ <TouchableOpacity
51
+ style={[
52
+ styles.button,
53
+ { width: buttonWidth, height: buttonHeight, backgroundColor: color },
54
+ ]}
55
+ onPress={() => {
56
+ triggerHaptic(HapticType.BUTTON_PRESS);
57
+ setShowWelcomeScreen(true);
58
+ }}
59
+ activeOpacity={0.85}
60
+ >
61
+ <View style={styles.contentRow}>
62
+ <Image
63
+ source={require('../assets/images/onairos_logo.png')}
64
+ style={styles.logo}
65
+ resizeMode="contain"
66
+ accessibilityLabel="Onairos logo"
67
+ />
68
+ <Text style={[styles.buttonText, { color: textColor }]}>Sign in with Onairos</Text>
69
+ </View>
70
+ </TouchableOpacity>
71
+ <WelcomeScreen
72
+ visible={showWelcomeScreen}
73
+ onClose={handleWelcomeClose}
74
+ onComplete={handleWelcomeComplete}
75
+ />
76
+ </View>
77
+ );
78
+ };
79
+
80
+ const styles = StyleSheet.create({
81
+ button: {
82
+ borderRadius: 24,
83
+ justifyContent: 'center',
84
+ alignItems: 'center',
85
+ shadowColor: '#000',
86
+ shadowOffset: { width: 0, height: 2 },
87
+ shadowOpacity: 0.1,
88
+ shadowRadius: 4,
89
+ elevation: 2,
90
+ marginVertical: 8,
91
+ },
92
+ contentRow: {
93
+ flexDirection: 'row',
94
+ alignItems: 'center',
95
+ justifyContent: 'center',
96
+ },
97
+ logo: {
98
+ width: 26,
99
+ height: 26,
100
+ marginRight: 10,
101
+ },
102
+ buttonText: {
103
+ fontSize: 16,
104
+ fontWeight: '600',
105
+ textAlign: 'center',
106
+ },
107
+ container: {
108
+ // Add any necessary styles for the container
109
+ },
110
+ });
package/src/index.ts CHANGED
@@ -7,7 +7,6 @@
7
7
 
8
8
  // Essential Types
9
9
  export type {
10
- OnairosButtonProps,
11
10
  OnairosProps,
12
11
  DataTier,
13
12
  OnairosConfig,
@@ -17,8 +16,10 @@ export type {
17
16
  PlatformConfig,
18
17
  } from './types';
19
18
 
19
+ // Export OnairosSignInButtonProps from component
20
+ export type { OnairosSignInButtonProps } from './components/OnairosSignInButton';
21
+
20
22
  // Core Components - Redesigned UI
21
- export { OnairosButton } from './components/OnairosButton';
22
23
  export { OnairosSignInButton } from './components/OnairosSignInButton';
23
24
  export { Onairos } from './components/Onairos';
24
25
  export { UniversalOnboarding } from './components/UniversalOnboarding';
@@ -83,13 +84,13 @@ export { ApiClient } from './services/apiClient';
83
84
  // export { AuthProvider } from './context/AuthContext';
84
85
 
85
86
  // Default export for convenience
86
- import { OnairosButton } from './components/OnairosButton';
87
+ import { OnairosSignInButton } from './components/OnairosSignInButton';
87
88
  import { Onairos } from './components/Onairos';
88
89
  import { UniversalOnboarding } from './components/UniversalOnboarding';
89
90
  import WelcomeScreen from './components/WelcomeScreen';
90
91
 
91
92
  export default {
92
- OnairosButton,
93
+ OnairosSignInButton,
93
94
  Onairos,
94
95
  UniversalOnboarding,
95
96
  WelcomeScreen,
@@ -1,290 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.OnairosButton = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactNativeLinearGradient = _interopRequireDefault(require("react-native-linear-gradient"));
10
- var _UniversalOnboarding = require("./UniversalOnboarding");
11
- var _WelcomeScreen = _interopRequireDefault(require("./WelcomeScreen"));
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
- const {
15
- width
16
- } = _reactNative.Dimensions.get('window');
17
- const OnairosButton = exports.OnairosButton = /*#__PURE__*/(0, _react.forwardRef)(({
18
- AppName,
19
- buttonType = 'normal',
20
- buttonWidth = 180,
21
- buttonHeight = 48,
22
- hasStroke = false,
23
- enabled = true,
24
- buttonForm = 'default',
25
- onResolved,
26
- onRejection,
27
- preCheck,
28
- color = '#1BA9D4',
29
- swerv = false,
30
- darkMode = false,
31
- returnLink,
32
- preferredPlatform,
33
- autoFetch = false,
34
- inferenceData,
35
- textLayout = 'right',
36
- textColor = 'black',
37
- proofMode = false,
38
- webpageName,
39
- debug = false,
40
- testMode = false,
41
- requestData,
42
- onPress,
43
- primaryAuthOnly = false,
44
- useNewWelcomeFlow = false
45
- }, ref) => {
46
- const [isLoading, setIsLoading] = (0, _react.useState)(false);
47
- const [isPressed, setIsPressed] = (0, _react.useState)(false);
48
- const [showOnboarding, setShowOnboarding] = (0, _react.useState)(false);
49
- console.log('[OnairosButton] Initializing. Initial showOnboarding:', showOnboarding);
50
- (0, _react.useEffect)(() => {
51
- console.log('[OnairosButton] LogEffect: showOnboarding state changed to:', showOnboarding);
52
- }, [showOnboarding]);
53
-
54
- // Expose methods via ref
55
- (0, _react.useImperativeHandle)(ref, () => ({
56
- trigger: async () => {
57
- await handlePress();
58
- return Promise.resolve();
59
- },
60
- reset: async () => {
61
- return Promise.resolve();
62
- }
63
- }));
64
- const handlePress = async () => {
65
- console.log('[OnairosButton] handlePress called.');
66
- if (!enabled || isLoading) return;
67
- setIsLoading(true);
68
- try {
69
- if (preCheck) {
70
- const shouldProceed = await preCheck();
71
- if (!shouldProceed) {
72
- console.log('[OnairosButton] Precheck failed. Setting showOnboarding to false (indirectly, by not setting to true).');
73
- onRejection === null || onRejection === void 0 || onRejection('Precheck validation failed');
74
- setIsLoading(false);
75
- return;
76
- }
77
- }
78
- console.log('[OnairosButton] handlePress: Setting showOnboarding to true.');
79
- setShowOnboarding(true);
80
- setIsLoading(false);
81
- } catch (error) {
82
- console.error('[OnairosButton] Error in handlePress:', error);
83
- onRejection === null || onRejection === void 0 || onRejection(error instanceof Error ? error.message : 'Unknown error');
84
- setIsLoading(false);
85
- }
86
- };
87
-
88
- // Compute button text based on buttonForm
89
- const getButtonText = () => {
90
- switch (buttonForm) {
91
- case 'connect':
92
- return 'Connect Onairos';
93
- case 'login':
94
- return 'Sign in with Onairos';
95
- case 'signup':
96
- return 'Sign up with Onairos';
97
- default:
98
- return 'Connect Onairos';
99
- }
100
- };
101
-
102
- // Handle onboarding completion
103
- const handleOnboardingComplete = (0, _react.useCallback)((token, email) => {
104
- console.log('[OnairosButton] handleOnboardingComplete: Setting showOnboarding to false.');
105
- setShowOnboarding(false);
106
- if (onResolved) {
107
- // Call onResolved with the token and email
108
- onResolved(token, email);
109
- }
110
- if (onPress) {
111
- onPress();
112
- }
113
- }, [onResolved, onPress]);
114
-
115
- // Handle onboarding close
116
- const handleOnboardingClose = (0, _react.useCallback)(() => {
117
- console.log('[OnairosButton] handleOnboardingClose: Setting showOnboarding to false.');
118
- setShowOnboarding(false);
119
- if (onRejection) {
120
- onRejection('User closed onboarding');
121
- }
122
- }, [onRejection]);
123
- console.log('[OnairosButton] Rendering JSX with props:', {
124
- AppName,
125
- buttonType,
126
- buttonWidth,
127
- buttonHeight,
128
- hasStroke,
129
- enabled,
130
- buttonForm,
131
- onResolved,
132
- onRejection,
133
- preCheck,
134
- color,
135
- swerv,
136
- darkMode,
137
- returnLink,
138
- preferredPlatform,
139
- autoFetch,
140
- inferenceData,
141
- textLayout,
142
- textColor,
143
- proofMode,
144
- webpageName,
145
- debug,
146
- testMode,
147
- requestData,
148
- onPress,
149
- primaryAuthOnly,
150
- useNewWelcomeFlow
151
- });
152
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
153
- style: [styles.button, buttonType === 'pill' && styles.pillButton, hasStroke && styles.strokedButton, {
154
- width: buttonWidth,
155
- height: buttonHeight
156
- }, swerv && styles.swervButton, !enabled && styles.disabledButton],
157
- onPress: handlePress,
158
- disabled: !enabled || isLoading,
159
- onPressIn: () => setIsPressed(true),
160
- onPressOut: () => setIsPressed(false)
161
- }, /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.default, {
162
- colors: ['#f5e7c1', '#C7A047', '#8B6914'],
163
- start: {
164
- x: 0,
165
- y: 0
166
- },
167
- end: {
168
- x: 1,
169
- y: 0
170
- },
171
- style: {
172
- position: 'absolute',
173
- left: 0,
174
- right: 0,
175
- top: 0,
176
- bottom: 0,
177
- borderRadius: buttonType === 'pill' ? 24 : 8
178
- }
179
- }), isLoading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
180
- size: "small",
181
- color: "#FFFFFF"
182
- }) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
183
- style: styles.buttonContent
184
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
185
- style: styles.logoContainer
186
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
187
- source: require('../assets/images/onairos_logo.png'),
188
- style: styles.logoImage,
189
- resizeMode: "contain"
190
- })), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
191
- style: [styles.buttonText, {
192
- color: '#FFFFFF'
193
- }]
194
- }, getButtonText())))), useNewWelcomeFlow ? /*#__PURE__*/_react.default.createElement(_WelcomeScreen.default, {
195
- visible: showOnboarding,
196
- onClose: handleOnboardingClose,
197
- onComplete: handleOnboardingComplete
198
- }) : /*#__PURE__*/_react.default.createElement(_UniversalOnboarding.UniversalOnboarding, {
199
- visible: showOnboarding,
200
- onClose: handleOnboardingClose,
201
- AppName: AppName,
202
- requestData: requestData || {
203
- Small: {
204
- type: 'Small',
205
- descriptions: 'Basic tier',
206
- reward: 'Free access'
207
- },
208
- Medium: {
209
- type: 'Medium',
210
- descriptions: 'Standard tier',
211
- reward: 'Premium features'
212
- },
213
- Large: {
214
- type: 'Large',
215
- descriptions: 'Premium tier',
216
- reward: 'Full personalization'
217
- }
218
- },
219
- returnLink: returnLink || 'onairosevents://auth/callback',
220
- onComplete: handleOnboardingComplete,
221
- debug: debug,
222
- test: testMode,
223
- preferredPlatform: preferredPlatform,
224
- primaryAuthOnly: primaryAuthOnly
225
- }));
226
- });
227
- const styles = _reactNative.StyleSheet.create({
228
- button: {
229
- flexDirection: 'row',
230
- alignItems: 'center',
231
- justifyContent: 'center',
232
- paddingVertical: 12,
233
- paddingHorizontal: 16,
234
- borderRadius: 8,
235
- shadowColor: '#000',
236
- shadowOffset: {
237
- width: 0,
238
- height: 2
239
- },
240
- shadowOpacity: 0.2,
241
- shadowRadius: 4,
242
- elevation: 3,
243
- overflow: 'hidden'
244
- },
245
- buttonContent: {
246
- flexDirection: 'row',
247
- alignItems: 'center',
248
- justifyContent: 'center'
249
- },
250
- logoContainer: {
251
- width: 24,
252
- height: 24,
253
- // borderRadius: 12, // Removed to eliminate circle shape
254
- // backgroundColor: '#FFFFFF', // Removed to eliminate white background
255
- alignItems: 'center',
256
- justifyContent: 'center',
257
- marginRight: 4
258
- },
259
- logoText: {
260
- color: '#C7A047',
261
- fontWeight: 'bold',
262
- fontSize: 14
263
- },
264
- logoImage: {
265
- width: 20,
266
- height: 20
267
- },
268
- pillButton: {
269
- borderRadius: 24
270
- },
271
- strokedButton: {
272
- backgroundColor: 'transparent',
273
- borderWidth: 1
274
- },
275
- swervButton: {
276
- transform: [{
277
- rotate: '-2deg'
278
- }]
279
- },
280
- disabledButton: {
281
- opacity: 0.6
282
- },
283
- buttonText: {
284
- fontSize: 16,
285
- fontWeight: '600',
286
- textAlign: 'center'
287
- }
288
- });
289
- var _default = exports.default = OnairosButton;
290
- //# sourceMappingURL=OnairosButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_UniversalOnboarding","_WelcomeScreen","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","width","Dimensions","OnairosButton","exports","forwardRef","AppName","buttonType","buttonWidth","buttonHeight","hasStroke","enabled","buttonForm","onResolved","onRejection","preCheck","color","swerv","darkMode","returnLink","preferredPlatform","autoFetch","inferenceData","textLayout","textColor","proofMode","webpageName","debug","testMode","requestData","onPress","primaryAuthOnly","useNewWelcomeFlow","ref","isLoading","setIsLoading","useState","isPressed","setIsPressed","showOnboarding","setShowOnboarding","console","log","useEffect","useImperativeHandle","trigger","handlePress","Promise","resolve","reset","shouldProceed","error","Error","message","getButtonText","handleOnboardingComplete","useCallback","token","email","handleOnboardingClose","createElement","Fragment","View","TouchableOpacity","style","styles","button","pillButton","strokedButton","height","swervButton","disabledButton","disabled","onPressIn","onPressOut","colors","start","x","y","end","position","left","right","top","bottom","borderRadius","ActivityIndicator","size","buttonContent","logoContainer","Image","source","logoImage","resizeMode","Text","buttonText","visible","onClose","onComplete","UniversalOnboarding","Small","type","descriptions","reward","Medium","Large","test","StyleSheet","create","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","overflow","marginRight","logoText","fontWeight","fontSize","backgroundColor","borderWidth","transform","rotate","opacity","textAlign","_default"],"sourceRoot":"../../../src","sources":["components/OnairosButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,0BAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAF,sBAAA,CAAAH,OAAA;AAA4C,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAO,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,gBAAAN,CAAA,IAAAH,CAAA,gBAAAG,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAG,CAAA,OAAAK,CAAA,IAAAD,CAAA,GAAAS,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAG,CAAA,OAAAK,CAAA,CAAAI,GAAA,IAAAJ,CAAA,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