@onairosofficial/onairos-capacitor 0.1.0 → 0.1.2
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/CAPACITOR_QUICK_START.md +379 -0
- package/CONNECTORS.md +122 -0
- package/LICENSE +194 -10
- package/OnairosofficialOnairosCapacitor.podspec +13 -0
- package/Package.swift +26 -0
- package/README.md +176 -25
- package/dist/onairos.capacitor.esm.js +1 -0
- package/dist/onairos.capacitor.esm.turbopack.js +1 -0
- package/docs/CAPACITOR_INTEGRATION_GUIDE.md +159 -0
- package/docs/CAPACITOR_MOCK_APP_TESTING.md +213 -0
- package/docs/CAPACITOR_SDK_FIXES_SUMMARY.md +65 -0
- package/docs/CROSS_SDK_PARITY.md +239 -0
- package/docs/DATA_FREQUENCY.md +57 -0
- package/docs/DEVELOPER_SDK_CHANGES.md +532 -0
- package/docs/INCIDENT_ENABLETRAINING_PIN_WEB_8.1.9.md +82 -0
- package/docs/ONAIROS_BUTTON_PROPS.md +152 -0
- package/docs/PLATFORM_APIS.md +559 -0
- package/docs/RAW_MEMORIES_API.md +305 -0
- package/docs/RAW_MEMORIES_SDK_UPDATE.md +54 -0
- package/docs/SDK_PARITY_ROLLUP_2026_04_24_to_05_02.md +96 -0
- package/docs/oldFixes.md +216 -0
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosChatGPTNativePlugin.swift +993 -0
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosNetflixNativePlugin.swift +33 -0
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosSpotifyNativePlugin.swift +1082 -0
- package/onairos.d.ts +656 -0
- package/package.json +188 -37
- package/src/OnairosReconnectButton.jsx +272 -0
- package/src/RSA.jsx +57 -0
- package/src/assets/NewLogo.png +0 -0
- package/src/assets/OnairosNewLogo.png +0 -0
- package/src/assets/chatgpt-icon.png +0 -0
- package/src/assets/fire-horse.png +0 -0
- package/src/assets/fire-horse.transparent.png +0 -0
- package/src/assets/latest-firehorse.png +0 -0
- package/src/assets/perplexity.png +0 -0
- package/src/assets/persona.png +0 -0
- package/src/assets/persona1.png +0 -0
- package/src/assets/persona2.png +0 -0
- package/src/assets/persona3.png +0 -0
- package/src/assets/persona4.png +0 -0
- package/src/assets/persona5.png +0 -0
- package/src/capacitorConnectorCatalog.js +38 -0
- package/src/capacitorOAuthConfig.js +52 -0
- package/src/chatgptHostedImport/index.js +303 -0
- package/src/components/AuthButtons.jsx +48 -0
- package/src/components/ConnectChatGPTModal.jsx +666 -0
- package/src/components/ConnectClaudeModal.jsx +610 -0
- package/src/components/ConnectGeminiModal.jsx +639 -0
- package/src/components/ConnectGrokModal.jsx +701 -0
- package/src/components/ConnectPerplexityModal.jsx +726 -0
- package/src/components/DataExplainerScreen.jsx +349 -0
- package/src/components/DataRequest.js +885 -0
- package/src/components/DataRequest.jsx +1055 -0
- package/src/components/EmailAuth.js +1871 -0
- package/src/components/EmailAuth.jsx +2062 -0
- package/src/components/ExtensionInstallPrompt.jsx +142 -0
- package/src/components/GoogleButton.js +133 -0
- package/src/components/LLMConnectorManager.jsx +201 -0
- package/src/components/LoadingPage.jsx +19 -0
- package/src/components/LoadingScreen.jsx +81 -0
- package/src/components/LunarBirthdate.jsx +96 -0
- package/src/components/LunarLoadingPage.jsx +251 -0
- package/src/components/Notification.jsx +21 -0
- package/src/components/OnairosAppButton.jsx +85 -0
- package/src/components/OnairosSSO.jsx +645 -0
- package/src/components/OnairosTrigger.jsx +61 -0
- package/src/components/PerplexityLogo.jsx +43 -0
- package/src/components/PinSetup.js +200 -0
- package/src/components/PinSetup.jsx +228 -0
- package/src/components/SDK_PIN_INTEGRATION_REQUIRED_CHANGES.md +526 -0
- package/src/components/SdkErrorBoundary.jsx +36 -0
- package/src/components/SecuritySetup.js +81 -0
- package/src/components/SessionUserBar.jsx +83 -0
- package/src/components/SignUp.js +123 -0
- package/src/components/TestTelegramButton.js +53 -0
- package/src/components/TrainingComponent.jsx +200 -0
- package/src/components/TrainingScreen.jsx +897 -0
- package/src/components/UniversalOnboarding.js +306 -0
- package/src/components/UniversalOnboarding.jsx +4837 -0
- package/src/components/ValentineLoadingPage.jsx +502 -0
- package/src/components/ValentineModeSelector.jsx +162 -0
- package/src/components/WelcomeScreen.jsx +435 -0
- package/src/components/WrappedLoadingPage.jsx +205 -0
- package/src/components/connectors/ChatGPTConnector.js +348 -0
- package/src/components/connectors/ChatGPTConnector.jsx +348 -0
- package/src/components/connectors/ClaudeConnector.js +44 -0
- package/src/components/connectors/ClaudeConnector.jsx +44 -0
- package/src/components/connectors/GeminiConnector.js +170 -0
- package/src/components/connectors/GeminiConnector.jsx +170 -0
- package/src/components/connectors/GmailConnector.js +148 -0
- package/src/components/connectors/GmailConnector.jsx +148 -0
- package/src/components/connectors/GrokConnector.js +16 -0
- package/src/components/connectors/GrokConnector.jsx +16 -0
- package/src/components/connectors/HingeConnector.js +419 -0
- package/src/components/connectors/HingeConnector.jsx +419 -0
- package/src/components/connectors/InstagramDataConnector.js +726 -0
- package/src/components/connectors/InstagramDataConnector.jsx +726 -0
- package/src/components/connectors/LinkedInConnector.js +4 -0
- package/src/components/connectors/LinkedInConnector.jsx +296 -0
- package/src/components/connectors/PerplexityConnector.jsx +16 -0
- package/src/components/connectors/PinterestConnector.js +208 -0
- package/src/components/connectors/PinterestConnector.jsx +208 -0
- package/src/components/connectors/README.md +292 -0
- package/src/components/connectors/RedditConnector.js +229 -0
- package/src/components/connectors/RedditConnector.jsx +229 -0
- package/src/components/connectors/SephoraConnector.js +482 -0
- package/src/components/connectors/SephoraConnector.jsx +482 -0
- package/src/components/connectors/TikTokConnector.jsx +430 -0
- package/src/components/connectors/YoutubeConnector.js +361 -0
- package/src/components/connectors/YoutubeConnector.jsx +361 -0
- package/src/components/connectors/index.js +50 -0
- package/src/components/icons.jsx +46 -0
- package/src/components/icons.tsx +21 -0
- package/src/components/ui/PageLayout.jsx +1255 -0
- package/src/components/ui/PrimaryButton.jsx +162 -0
- package/src/components/ui/button.jsx +49 -0
- package/src/components/ui/card.jsx +61 -0
- package/src/components/ui/checkbox.jsx +33 -0
- package/src/components/ui/label.jsx +29 -0
- package/src/components/utils/UpdateConnections.js +45 -0
- package/src/components/utils/oauthHelper.js +97 -0
- package/src/config/api-config.js +138 -0
- package/src/deepLink.jsx +38 -0
- package/src/getPin.js +26 -0
- package/src/icons/Avatar.png +0 -0
- package/src/icons/Sentiment.png +0 -0
- package/src/icons/Trait.png +0 -0
- package/src/iframe/DataRequestPage.jsx +285 -0
- package/src/iframe/OnairosButtonIntegration.md +148 -0
- package/src/iframe/components/Box.jsx +56 -0
- package/src/iframe/components/IndividualConnection.jsx +88 -0
- package/src/iframe/dataRequestHandler.js +714 -0
- package/src/iframe/data_request_iframe.html +27 -0
- package/src/iframe/data_request_page.js +47 -0
- package/src/iframe/icons/Avatar.png +1 -0
- package/src/iframe/icons/Avatar2.png +1 -0
- package/src/iframe/icons/Sentiment.png +1 -0
- package/src/iframe/icons/Trait.png +1 -0
- package/src/iframe/icons/onairos_logo.png +0 -0
- package/src/iframe/utils/api.js +57 -0
- package/src/index.js +274 -0
- package/src/laravel/OnairosVue.vue +410 -0
- package/src/laravel/blade-helpers.js +320 -0
- package/src/laravel/vite-plugin.js +179 -0
- package/src/mobile/MobileDataRequestPage.jsx +233 -0
- package/src/mobile/components/MobileBox.jsx +71 -0
- package/src/mobile/components/MobileIndividualConnection.jsx +51 -0
- package/src/mobile/shims/browser-apis.js +78 -0
- package/src/mobile/shims/lucide-shim.js +85 -0
- package/src/nativeConnectors.js +5 -0
- package/src/newUI/EMAIL_VERIFICATION_API_SCHEMA.md +268 -0
- package/src/newUI/PlatformConnectorsStep.tsx +435 -0
- package/src/newUI/PrimaryButton.tsx +213 -0
- package/src/newUI/SignInStep.tsx +194 -0
- package/src/newUI/VerificationStep.tsx +133 -0
- package/src/newUI/WelcomeScreen.tsx +311 -0
- package/src/newUI/services/connectedAccountsService.js +129 -0
- package/src/onairos.capacitor.jsx +15 -0
- package/src/onairos.core.jsx +133 -0
- package/src/onairos.jsx +14 -0
- package/src/onairos.native.jsx +15 -0
- package/src/onairosButton.jsx +9000 -0
- package/src/overlay/CheckBox.jsx +114 -0
- package/src/overlay/IndividualConnection copy.js +86 -0
- package/src/overlay/IndividualConnection.js +191 -0
- package/src/overlay/IndividualConnectionNew.jsx +157 -0
- package/src/overlay/box.js +84 -0
- package/src/overlay/overlay.js +437 -0
- package/src/styles/onairos-scoped-preflight.css +97 -0
- package/src/styles/sdkCssRegistry.js +20 -0
- package/src/styles/styleLoaderInsertShadow.js +69 -0
- package/src/styles/tailwind.capacitor.css +395 -0
- package/src/styles/tailwind.css +395 -0
- package/src/theme/colors.js +40 -0
- package/src/utils/apiKeyValidation.js +341 -0
- package/src/utils/apiResponseLogger.js +316 -0
- package/src/utils/authHeaders.js +275 -0
- package/src/utils/biometrics.js +26 -0
- package/src/utils/bookmarkletUtils.js +28 -0
- package/src/utils/capacitorDetection.js +278 -0
- package/src/utils/capacitorLLMHelper.js +352 -0
- package/src/utils/capacitorPlugins.js +366 -0
- package/src/utils/crossDomainSSO.js +587 -0
- package/src/utils/deepLinking.js +27 -0
- package/src/utils/devLogger.js +46 -0
- package/src/utils/extensionDetection.js +418 -0
- package/src/utils/extractMemory.js +277 -0
- package/src/utils/framerBrandingOverrides.js +40 -0
- package/src/utils/googleWebClientId.js +55 -0
- package/src/utils/overlayHandler.js +224 -0
- package/src/utils/platformDisconnect.js +309 -0
- package/src/utils/pollTrainingStatus.js +200 -0
- package/src/utils/rawMemoriesAccess.js +211 -0
- package/src/utils/resolveBackendAppId.js +47 -0
- package/src/utils/responseFormatter.js +140 -0
- package/src/utils/sdkDebugStorage.js +113 -0
- package/src/utils/sdkInitialization.js +645 -0
- package/src/utils/sessionManager.js +1258 -0
- package/src/utils/startBackgroundTraining.js +100 -0
- package/src/utils/userDataFormatter.js +222 -0
- package/index.d.ts +0 -1
- package/index.js +0 -1
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
/* Tailwind entry for the SDK.
|
|
2
|
+
*
|
|
3
|
+
* Note: Tailwind preflight is scoped to `.onairos-modal` at build time by a PostCSS plugin
|
|
4
|
+
* (`scripts/postcss-scope-tailwind-base.cjs`) configured in `webpack.config.js`.
|
|
5
|
+
* This preserves consistent SDK rendering without globally resetting the host app.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* CRITICAL: Exclude folders from Tailwind content scanning that may contain
|
|
12
|
+
* obfuscated JavaScript. The obfuscator splits strings like:
|
|
13
|
+
* 'z-[2147483'+'647]'
|
|
14
|
+
* which Tailwind incorrectly picks up as utility classes, causing malformed CSS.
|
|
15
|
+
*/
|
|
16
|
+
@source not "../../dist";
|
|
17
|
+
@source not "../../dist.*";
|
|
18
|
+
@source not "../../node_modules";
|
|
19
|
+
|
|
20
|
+
/* Wrapped-only typography (loaded from Google Fonts) */
|
|
21
|
+
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
|
|
22
|
+
|
|
23
|
+
@theme {
|
|
24
|
+
/* Custom theme variables for Onairos SDK */
|
|
25
|
+
--font-display: "IBM Plex Sans", "Inter", "system-ui", "sans-serif";
|
|
26
|
+
--font-body: "Inter", "system-ui", "sans-serif";
|
|
27
|
+
--font-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "monospace";
|
|
28
|
+
|
|
29
|
+
/* Custom breakpoints */
|
|
30
|
+
--breakpoint-3xl: 1920px;
|
|
31
|
+
|
|
32
|
+
/* Onairos brand colors */
|
|
33
|
+
--color-onairos-primary: #3B82F6;
|
|
34
|
+
--color-onairos-secondary: #1E40AF;
|
|
35
|
+
--color-onairos-accent: #06B6D4;
|
|
36
|
+
|
|
37
|
+
/* Enhanced spacing scale for component spacing */
|
|
38
|
+
--spacing-18: 4.5rem;
|
|
39
|
+
--spacing-88: 22rem;
|
|
40
|
+
|
|
41
|
+
/* Custom easing functions */
|
|
42
|
+
--ease-fluid: cubic-bezier(0.3, 0, 0, 1);
|
|
43
|
+
--ease-snappy: cubic-bezier(0.2, 0, 0, 1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Custom utilities for Onairos SDK */
|
|
47
|
+
@utility btn-onairos {
|
|
48
|
+
display: inline-flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
border-radius: 0.5rem;
|
|
52
|
+
padding: 0.5rem 1rem;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
transition: all 0.2s ease-in-out;
|
|
55
|
+
background-color: var(--color-onairos-primary);
|
|
56
|
+
color: white;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.btn-onairos:hover {
|
|
60
|
+
background-color: var(--color-onairos-secondary);
|
|
61
|
+
transform: translateY(-1px);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@utility card-onairos {
|
|
65
|
+
background-color: white;
|
|
66
|
+
border-radius: 0.75rem;
|
|
67
|
+
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
68
|
+
padding: 1.5rem;
|
|
69
|
+
border: 1px solid rgb(229 231 235);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@utility loading-spinner {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
width: 1rem;
|
|
75
|
+
height: 1rem;
|
|
76
|
+
border: 2px solid transparent;
|
|
77
|
+
border-top: 2px solid currentColor;
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
animation: spin 1s linear infinite;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes spin {
|
|
83
|
+
to {
|
|
84
|
+
transform: rotate(360deg);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* ============================================================================
|
|
89
|
+
Modal Animations - Smooth enter/exit
|
|
90
|
+
============================================================================ */
|
|
91
|
+
@keyframes onairos-modal-enter {
|
|
92
|
+
0% {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transform: scale(0.95) translateY(10px);
|
|
95
|
+
}
|
|
96
|
+
100% {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
transform: scale(1) translateY(0);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes onairos-modal-exit {
|
|
103
|
+
0% {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
transform: scale(1) translateY(0);
|
|
106
|
+
}
|
|
107
|
+
100% {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
transform: scale(0.95) translateY(10px);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes onairos-backdrop-enter {
|
|
114
|
+
0% {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
100% {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes onairos-backdrop-exit {
|
|
123
|
+
0% {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
100% {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Screen transition animations */
|
|
132
|
+
@keyframes onairos-screen-enter {
|
|
133
|
+
0% {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transform: translateX(12px);
|
|
136
|
+
}
|
|
137
|
+
100% {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
transform: translateX(0);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@keyframes onairos-screen-enter-back {
|
|
144
|
+
0% {
|
|
145
|
+
opacity: 0;
|
|
146
|
+
transform: translateX(-12px);
|
|
147
|
+
}
|
|
148
|
+
100% {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transform: translateX(0);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes onairos-screen-fade {
|
|
155
|
+
0% {
|
|
156
|
+
opacity: 0;
|
|
157
|
+
transform: scale(0.98);
|
|
158
|
+
}
|
|
159
|
+
100% {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
transform: scale(1);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Animation classes */
|
|
166
|
+
.onairos-modal-animate-in {
|
|
167
|
+
animation: onairos-modal-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.onairos-backdrop-animate-in {
|
|
171
|
+
animation: onairos-backdrop-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.onairos-modal-animate-out {
|
|
175
|
+
animation: onairos-modal-exit 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
176
|
+
will-change: transform, opacity;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.onairos-backdrop-animate-out {
|
|
180
|
+
animation: onairos-backdrop-exit 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.onairos-screen-transition {
|
|
184
|
+
animation: onairos-screen-fade 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.onairos-screen-slide-in {
|
|
188
|
+
animation: onairos-screen-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.onairos-screen-slide-back {
|
|
192
|
+
animation: onairos-screen-enter-back 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* ============================================================================
|
|
196
|
+
Onairos Modal Animated Gradient Border
|
|
197
|
+
- Creates a soft, radiant rotating glow effect around the modal
|
|
198
|
+
- Purple to blue to cyan gradient (matching OnairosTerminal)
|
|
199
|
+
============================================================================ */
|
|
200
|
+
@keyframes onairos-border-rotate {
|
|
201
|
+
0% {
|
|
202
|
+
--angle: 0deg;
|
|
203
|
+
}
|
|
204
|
+
100% {
|
|
205
|
+
--angle: 360deg;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes onairos-glow-breathe {
|
|
210
|
+
0%, 100% {
|
|
211
|
+
opacity: 0.4;
|
|
212
|
+
transform: scale(1);
|
|
213
|
+
}
|
|
214
|
+
50% {
|
|
215
|
+
opacity: 0.55;
|
|
216
|
+
transform: scale(1.01);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@property --angle {
|
|
221
|
+
syntax: '<angle>';
|
|
222
|
+
initial-value: 0deg;
|
|
223
|
+
inherits: false;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Modal wrapper - just positions the glow layers */
|
|
227
|
+
.onairos-modal-gradient-border {
|
|
228
|
+
position: relative;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Soft outer glow - largest and most diffused */
|
|
232
|
+
/* Colors matching Onairos Persona: Orange-Red → Coral → Purple → Blue */
|
|
233
|
+
/* #FF6B4A (orange-red) → #F4845F (coral) → #A78BDE (lavender) → #6B8DD6 (periwinkle) → #5B8FE8 (blue) */
|
|
234
|
+
.onairos-modal-glow {
|
|
235
|
+
position: absolute;
|
|
236
|
+
inset: -20px;
|
|
237
|
+
border-radius: 44px;
|
|
238
|
+
background: conic-gradient(
|
|
239
|
+
from var(--angle, 0deg),
|
|
240
|
+
rgba(255, 107, 74, 0.4),
|
|
241
|
+
rgba(244, 132, 95, 0.4),
|
|
242
|
+
rgba(167, 139, 222, 0.4),
|
|
243
|
+
rgba(107, 141, 214, 0.45),
|
|
244
|
+
rgba(91, 143, 232, 0.4),
|
|
245
|
+
rgba(107, 141, 214, 0.45),
|
|
246
|
+
rgba(167, 139, 222, 0.4),
|
|
247
|
+
rgba(244, 132, 95, 0.4),
|
|
248
|
+
rgba(255, 107, 74, 0.4)
|
|
249
|
+
);
|
|
250
|
+
animation:
|
|
251
|
+
onairos-border-rotate 4s linear infinite,
|
|
252
|
+
onairos-glow-breathe 3s ease-in-out infinite;
|
|
253
|
+
z-index: -1;
|
|
254
|
+
filter: blur(35px);
|
|
255
|
+
opacity: 0.55;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Middle glow layer - medium diffusion */
|
|
259
|
+
.onairos-modal-glow::before {
|
|
260
|
+
content: '';
|
|
261
|
+
position: absolute;
|
|
262
|
+
inset: 8px;
|
|
263
|
+
border-radius: 36px;
|
|
264
|
+
background: conic-gradient(
|
|
265
|
+
from var(--angle, 0deg),
|
|
266
|
+
rgba(255, 107, 74, 0.3),
|
|
267
|
+
rgba(244, 132, 95, 0.3),
|
|
268
|
+
rgba(167, 139, 222, 0.3),
|
|
269
|
+
rgba(107, 141, 214, 0.35),
|
|
270
|
+
rgba(91, 143, 232, 0.3),
|
|
271
|
+
rgba(107, 141, 214, 0.35),
|
|
272
|
+
rgba(167, 139, 222, 0.3),
|
|
273
|
+
rgba(244, 132, 95, 0.3),
|
|
274
|
+
rgba(255, 107, 74, 0.3)
|
|
275
|
+
);
|
|
276
|
+
filter: blur(25px);
|
|
277
|
+
animation: onairos-border-rotate 4s linear infinite;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* Inner glow layer - closest to modal, softer */
|
|
281
|
+
.onairos-modal-glow::after {
|
|
282
|
+
content: '';
|
|
283
|
+
position: absolute;
|
|
284
|
+
inset: 14px;
|
|
285
|
+
border-radius: 30px;
|
|
286
|
+
background: conic-gradient(
|
|
287
|
+
from var(--angle, 0deg),
|
|
288
|
+
rgba(255, 107, 74, 0.22),
|
|
289
|
+
rgba(244, 132, 95, 0.22),
|
|
290
|
+
rgba(167, 139, 222, 0.22),
|
|
291
|
+
rgba(107, 141, 214, 0.25),
|
|
292
|
+
rgba(91, 143, 232, 0.22),
|
|
293
|
+
rgba(107, 141, 214, 0.25),
|
|
294
|
+
rgba(167, 139, 222, 0.22),
|
|
295
|
+
rgba(244, 132, 95, 0.22),
|
|
296
|
+
rgba(255, 107, 74, 0.22)
|
|
297
|
+
);
|
|
298
|
+
filter: blur(15px);
|
|
299
|
+
animation: onairos-border-rotate 4s linear infinite;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Alternative: Shimmer/sweep effect */
|
|
303
|
+
@keyframes onairos-shimmer {
|
|
304
|
+
0% {
|
|
305
|
+
background-position: -200% center;
|
|
306
|
+
}
|
|
307
|
+
100% {
|
|
308
|
+
background-position: 200% center;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.onairos-modal-shimmer-border {
|
|
313
|
+
position: relative;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.onairos-modal-shimmer-border::before {
|
|
317
|
+
content: '';
|
|
318
|
+
position: absolute;
|
|
319
|
+
inset: -15px;
|
|
320
|
+
border-radius: 40px;
|
|
321
|
+
background: linear-gradient(
|
|
322
|
+
90deg,
|
|
323
|
+
transparent 0%,
|
|
324
|
+
rgba(124, 58, 237, 0.25) 20%,
|
|
325
|
+
rgba(59, 130, 246, 0.35) 50%,
|
|
326
|
+
rgba(124, 58, 237, 0.25) 80%,
|
|
327
|
+
transparent 100%
|
|
328
|
+
);
|
|
329
|
+
background-size: 200% 100%;
|
|
330
|
+
animation: onairos-shimmer 3s ease-in-out infinite;
|
|
331
|
+
filter: blur(25px);
|
|
332
|
+
z-index: -1;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* DESKTOP ONLY – do NOT affect capacitor/mobile */
|
|
336
|
+
@media (min-width: 1024px) {
|
|
337
|
+
/* Keep desktop content close to the older main-branch proportions. */
|
|
338
|
+
.onairos-modal[data-onairos-sheet="false"] .onairos-page-content {
|
|
339
|
+
max-width: 560px;
|
|
340
|
+
width: 90%;
|
|
341
|
+
margin: 0 auto;
|
|
342
|
+
/* Hide scrollbars visually but allow scrolling if absolutely needed */
|
|
343
|
+
scrollbar-width: none; /* Firefox */
|
|
344
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.onairos-modal[data-onairos-sheet="false"] .onairos-page-content::-webkit-scrollbar {
|
|
348
|
+
display: none; /* Chrome, Safari and Opera */
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Optional shell if present (current implementation) */
|
|
352
|
+
.onairos-modal[data-onairos-sheet="false"] .onairos-modal-shell {
|
|
353
|
+
max-width: 560px;
|
|
354
|
+
width: 90%;
|
|
355
|
+
margin: 0 auto;
|
|
356
|
+
height: 100%;
|
|
357
|
+
display: flex;
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
/* Ensure no double scrolling */
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.onairos-modal[data-onairos-sheet="false"] .onairos-modal-shell > * {
|
|
364
|
+
max-width: 100% !important;
|
|
365
|
+
margin: 0 auto;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Ensure the modal container itself doesn't go full width */
|
|
369
|
+
.onairos-modal[data-onairos-sheet="false"] {
|
|
370
|
+
max-width: 560px !important;
|
|
371
|
+
width: 90% !important;
|
|
372
|
+
margin: 0 auto !important;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ============================================================================
|
|
377
|
+
Wrapped app typography
|
|
378
|
+
- Headings: IBM Plex Sans (fontHeading)
|
|
379
|
+
- Body: Inter (fontBody)
|
|
380
|
+
Applied ONLY when modal has class .onairos-wrapped-fonts (set by OnairosButton).
|
|
381
|
+
============================================================================ */
|
|
382
|
+
.onairos-wrapped-fonts {
|
|
383
|
+
--fontHeading: "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
384
|
+
--fontBody: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
385
|
+
font-family: var(--fontBody);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.onairos-wrapped-fonts h1,
|
|
389
|
+
.onairos-wrapped-fonts h2,
|
|
390
|
+
.onairos-wrapped-fonts h3,
|
|
391
|
+
.onairos-wrapped-fonts h4,
|
|
392
|
+
.onairos-wrapped-fonts h5,
|
|
393
|
+
.onairos-wrapped-fonts h6 {
|
|
394
|
+
font-family: var(--fontHeading);
|
|
395
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Theme colors for Onairos SDK - derived from mobile design
|
|
2
|
+
export const COLORS = {
|
|
3
|
+
// Button gradient colors
|
|
4
|
+
btnGradStart: '#1A1A1A',
|
|
5
|
+
btnGradEnd: '#000000',
|
|
6
|
+
|
|
7
|
+
// Button text and icon colors
|
|
8
|
+
btnLabel: '#FFFFFF',
|
|
9
|
+
btnBorder: 'rgba(0, 0, 0, 0.2)',
|
|
10
|
+
|
|
11
|
+
// Icon circle gradient colors
|
|
12
|
+
iconCircleGradientStart: '#333333',
|
|
13
|
+
iconCircleGradientEnd: '#1A1A1A',
|
|
14
|
+
|
|
15
|
+
// Background colors
|
|
16
|
+
background: '#FFFFFF',
|
|
17
|
+
backgroundSecondary: '#F8F9FA',
|
|
18
|
+
|
|
19
|
+
// Text colors
|
|
20
|
+
textPrimary: '#1A1A1A',
|
|
21
|
+
textSecondary: '#6B7280',
|
|
22
|
+
textMuted: '#9CA3AF',
|
|
23
|
+
|
|
24
|
+
// Border colors
|
|
25
|
+
border: '#E5E7EB',
|
|
26
|
+
borderLight: '#F3F4F6',
|
|
27
|
+
|
|
28
|
+
// Status colors
|
|
29
|
+
success: '#10B981',
|
|
30
|
+
error: '#EF4444',
|
|
31
|
+
warning: '#F59E0B',
|
|
32
|
+
info: '#3B82F6',
|
|
33
|
+
|
|
34
|
+
// Interactive states
|
|
35
|
+
hover: 'rgba(0, 0, 0, 0.05)',
|
|
36
|
+
pressed: 'rgba(0, 0, 0, 0.1)',
|
|
37
|
+
focus: 'rgba(59, 130, 246, 0.1)',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default COLORS;
|