@nascentdigital/funnel-apps 4.4.18
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/dist/react/app/domain/AppService.d.ts +19 -0
- package/dist/react/app/domain/AppService.js +19 -0
- package/dist/react/app/domain/AppServiceClient.d.ts +7 -0
- package/dist/react/app/domain/AppServiceClient.js +57 -0
- package/dist/react/app/domain/AppState.d.ts +1 -0
- package/dist/react/app/domain/AppState.js +2 -0
- package/dist/react/app/domain/index.d.ts +3 -0
- package/dist/react/app/domain/index.js +19 -0
- package/dist/react/app/server/AbstractAppService.d.ts +17 -0
- package/dist/react/app/server/AbstractAppService.js +24 -0
- package/dist/react/app/server/AppServices.d.ts +11 -0
- package/dist/react/app/server/AppServices.js +92 -0
- package/dist/react/app/server/index.d.ts +4 -0
- package/dist/react/app/server/index.js +20 -0
- package/dist/react/app/web/App.d.ts +38 -0
- package/dist/react/app/web/App.js +116 -0
- package/dist/react/app/web/AppContainer.d.ts +16 -0
- package/dist/react/app/web/AppContainer.js +109 -0
- package/dist/react/app/web/AppContext.d.ts +7 -0
- package/dist/react/app/web/AppContext.js +6 -0
- package/dist/react/app/web/AppLayout.d.ts +7 -0
- package/dist/react/app/web/AppLayout.js +34 -0
- package/dist/react/app/web/AppPage.d.ts +13 -0
- package/dist/react/app/web/AppPage.js +30 -0
- package/dist/react/app/web/AppRoot.d.ts +7 -0
- package/dist/react/app/web/AppRoot.js +43 -0
- package/dist/react/app/web/index.d.ts +5 -0
- package/dist/react/app/web/index.js +21 -0
- package/dist/react/app/web/useApp.d.ts +2 -0
- package/dist/react/app/web/useApp.js +33 -0
- package/dist/react/auth0/server/Auth0IdentityService.d.ts +25 -0
- package/dist/react/auth0/server/Auth0IdentityService.js +84 -0
- package/dist/react/auth0/server/Auth0Profile.d.ts +19 -0
- package/dist/react/auth0/server/Auth0Profile.js +108 -0
- package/dist/react/auth0/server/Auth0ProfileFactory.d.ts +15 -0
- package/dist/react/auth0/server/Auth0ProfileFactory.js +51 -0
- package/dist/react/auth0/server/Auth0ProfileManagementService.d.ts +17 -0
- package/dist/react/auth0/server/Auth0ProfileManagementService.js +127 -0
- package/dist/react/auth0/server/Auth0ProfileServices.d.ts +13 -0
- package/dist/react/auth0/server/Auth0ProfileServices.js +19 -0
- package/dist/react/auth0/server/Auth0ProfileStore.d.ts +17 -0
- package/dist/react/auth0/server/Auth0ProfileStore.js +83 -0
- package/dist/react/auth0/server/Auth0ProfileUserService.d.ts +16 -0
- package/dist/react/auth0/server/Auth0ProfileUserService.js +48 -0
- package/dist/react/auth0/server/index.d.ts +4 -0
- package/dist/react/auth0/server/index.js +20 -0
- package/dist/react/auth0/web/Auth0IdentityClient.d.ts +34 -0
- package/dist/react/auth0/web/Auth0IdentityClient.js +200 -0
- package/dist/react/auth0/web/Auth0IdentityClientProvider.d.ts +35 -0
- package/dist/react/auth0/web/Auth0IdentityClientProvider.js +67 -0
- package/dist/react/auth0/web/index.d.ts +1 -0
- package/dist/react/auth0/web/index.js +17 -0
- package/dist/react/bridge/core/BridgeConnection.d.ts +6 -0
- package/dist/react/bridge/core/BridgeConnection.js +2 -0
- package/dist/react/bridge/core/BridgeConstants.d.ts +7 -0
- package/dist/react/bridge/core/BridgeConstants.js +15 -0
- package/dist/react/bridge/core/BridgeEvent.d.ts +52 -0
- package/dist/react/bridge/core/BridgeEvent.js +28 -0
- package/dist/react/bridge/core/BridgeMethod.d.ts +12 -0
- package/dist/react/bridge/core/BridgeMethod.js +2 -0
- package/dist/react/bridge/core/BridgeMethodCall.d.ts +23 -0
- package/dist/react/bridge/core/BridgeMethodCall.js +37 -0
- package/dist/react/bridge/core/BridgeMethods.d.ts +35 -0
- package/dist/react/bridge/core/BridgeMethods.js +2 -0
- package/dist/react/bridge/core/BridgeState.d.ts +24 -0
- package/dist/react/bridge/core/BridgeState.js +2 -0
- package/dist/react/bridge/core/index.d.ts +7 -0
- package/dist/react/bridge/core/index.js +23 -0
- package/dist/react/bridge/web/Bridge.d.ts +32 -0
- package/dist/react/bridge/web/Bridge.js +183 -0
- package/dist/react/bridge/web/BridgeContext.d.ts +8 -0
- package/dist/react/bridge/web/BridgeContext.js +6 -0
- package/dist/react/bridge/web/BridgeGlobals.d.ts +12 -0
- package/dist/react/bridge/web/BridgeGlobals.js +2 -0
- package/dist/react/bridge/web/BridgeProvider.d.ts +7 -0
- package/dist/react/bridge/web/BridgeProvider.js +36 -0
- package/dist/react/bridge/web/index.d.ts +6 -0
- package/dist/react/bridge/web/index.js +22 -0
- package/dist/react/bridge/web/useBridge.d.ts +3 -0
- package/dist/react/bridge/web/useBridge.js +39 -0
- package/dist/react/bridge/web/useBridgeState.d.ts +2 -0
- package/dist/react/bridge/web/useBridgeState.js +43 -0
- package/dist/react/bridge/web/useSafeArea.d.ts +1 -0
- package/dist/react/bridge/web/useSafeArea.js +11 -0
- package/dist/react/content/core/AppContentClient.d.ts +14 -0
- package/dist/react/content/core/AppContentClient.js +51 -0
- package/dist/react/content/core/ContentClientContext.d.ts +7 -0
- package/dist/react/content/core/ContentClientContext.js +6 -0
- package/dist/react/content/core/index.d.ts +1 -0
- package/dist/react/content/core/index.js +17 -0
- package/dist/react/content/domain/ContentAppRequest.d.ts +20 -0
- package/dist/react/content/domain/ContentAppRequest.js +11 -0
- package/dist/react/content/domain/index.d.ts +1 -0
- package/dist/react/content/domain/index.js +17 -0
- package/dist/react/content/server/ContentAppService.d.ts +11 -0
- package/dist/react/content/server/ContentAppService.js +34 -0
- package/dist/react/content/server/index.d.ts +1 -0
- package/dist/react/content/server/index.js +17 -0
- package/dist/react/content/web/ContentProvider.d.ts +5 -0
- package/dist/react/content/web/ContentProvider.js +17 -0
- package/dist/react/content/web/index.d.ts +6 -0
- package/dist/react/content/web/index.js +22 -0
- package/dist/react/content/web/useCollection.d.ts +10 -0
- package/dist/react/content/web/useCollection.js +22 -0
- package/dist/react/content/web/useCollections.d.ts +10 -0
- package/dist/react/content/web/useCollections.js +32 -0
- package/dist/react/content/web/useContentClient.d.ts +1 -0
- package/dist/react/content/web/useContentClient.js +9 -0
- package/dist/react/cookies/web/CookieService.d.ts +25 -0
- package/dist/react/cookies/web/CookieService.js +45 -0
- package/dist/react/cookies/web/CookieServiceContext.d.ts +7 -0
- package/dist/react/cookies/web/CookieServiceContext.js +6 -0
- package/dist/react/cookies/web/CookieServiceProvider.d.ts +6 -0
- package/dist/react/cookies/web/CookieServiceProvider.js +16 -0
- package/dist/react/cookies/web/index.d.ts +3 -0
- package/dist/react/cookies/web/index.js +19 -0
- package/dist/react/cookies/web/useCookieService.d.ts +2 -0
- package/dist/react/cookies/web/useCookieService.js +29 -0
- package/dist/react/identity/core/AbstractIdentityClient.d.ts +22 -0
- package/dist/react/identity/core/AbstractIdentityClient.js +31 -0
- package/dist/react/identity/core/IdentityClient.d.ts +22 -0
- package/dist/react/identity/core/IdentityClient.js +13 -0
- package/dist/react/identity/core/IdentityClientContext.d.ts +7 -0
- package/dist/react/identity/core/IdentityClientContext.js +6 -0
- package/dist/react/identity/core/index.d.ts +6 -0
- package/dist/react/identity/core/index.js +22 -0
- package/dist/react/identity/core/useIdentity.d.ts +10 -0
- package/dist/react/identity/core/useIdentity.js +39 -0
- package/dist/react/identity/core/useIdentityClient.d.ts +2 -0
- package/dist/react/identity/core/useIdentityClient.js +17 -0
- package/dist/react/identity/domain/AnonymousIdentity.d.ts +15 -0
- package/dist/react/identity/domain/AnonymousIdentity.js +27 -0
- package/dist/react/identity/domain/AuthenticatedIdentity.d.ts +25 -0
- package/dist/react/identity/domain/AuthenticatedIdentity.js +32 -0
- package/dist/react/identity/domain/Identity.d.ts +6 -0
- package/dist/react/identity/domain/Identity.js +2 -0
- package/dist/react/identity/domain/IdentityAppRequest.d.ts +8 -0
- package/dist/react/identity/domain/IdentityAppRequest.js +10 -0
- package/dist/react/identity/domain/index.d.ts +4 -0
- package/dist/react/identity/domain/index.js +20 -0
- package/dist/react/identity/server/IdentityAppService.d.ts +9 -0
- package/dist/react/identity/server/IdentityAppService.js +32 -0
- package/dist/react/identity/server/IdentityService.d.ts +17 -0
- package/dist/react/identity/server/IdentityService.js +25 -0
- package/dist/react/identity/server/index.d.ts +4 -0
- package/dist/react/identity/server/index.js +20 -0
- package/dist/react/identity/web/WebIdentityClientProvider.d.ts +8 -0
- package/dist/react/identity/web/WebIdentityClientProvider.js +27 -0
- package/dist/react/identity/web/WebIdentityProvider.d.ts +5 -0
- package/dist/react/identity/web/WebIdentityProvider.js +21 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClient.d.ts +14 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClient.js +47 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClientProvider.d.ts +2 -0
- package/dist/react/identity/web/bridge/AppBridgeIdentityClientProvider.js +28 -0
- package/dist/react/identity/web/bridge/index.d.ts +1 -0
- package/dist/react/identity/web/bridge/index.js +17 -0
- package/dist/react/identity/web/index.d.ts +3 -0
- package/dist/react/identity/web/index.js +19 -0
- package/dist/react/nav/core/SpecSourceContext.d.ts +7 -0
- package/dist/react/nav/core/SpecSourceContext.js +6 -0
- package/dist/react/nav/core/index.d.ts +2 -0
- package/dist/react/nav/core/index.js +18 -0
- package/dist/react/nav/core/useSpec.d.ts +3 -0
- package/dist/react/nav/core/useSpec.js +30 -0
- package/dist/react/nav/domain/Icon.d.ts +2 -0
- package/dist/react/nav/domain/Icon.js +2 -0
- package/dist/react/nav/domain/Modal.d.ts +25 -0
- package/dist/react/nav/domain/Modal.js +28 -0
- package/dist/react/nav/domain/Navigation.d.ts +13 -0
- package/dist/react/nav/domain/Navigation.js +2 -0
- package/dist/react/nav/domain/NavigationCommand.d.ts +14 -0
- package/dist/react/nav/domain/NavigationCommand.js +2 -0
- package/dist/react/nav/domain/Route.d.ts +12 -0
- package/dist/react/nav/domain/Route.js +2 -0
- package/dist/react/nav/domain/Routes.d.ts +6 -0
- package/dist/react/nav/domain/Routes.js +74 -0
- package/dist/react/nav/domain/Screen.d.ts +24 -0
- package/dist/react/nav/domain/Screen.js +28 -0
- package/dist/react/nav/domain/Skeleton.d.ts +26 -0
- package/dist/react/nav/domain/Skeleton.js +2 -0
- package/dist/react/nav/domain/Spec.d.ts +33 -0
- package/dist/react/nav/domain/Spec.js +124 -0
- package/dist/react/nav/domain/SpecSource.d.ts +21 -0
- package/dist/react/nav/domain/SpecSource.js +28 -0
- package/dist/react/nav/domain/Stack.d.ts +35 -0
- package/dist/react/nav/domain/Stack.js +44 -0
- package/dist/react/nav/domain/Tabs.d.ts +37 -0
- package/dist/react/nav/domain/Tabs.js +45 -0
- package/dist/react/nav/domain/icons/ImageIcon.d.ts +2 -0
- package/dist/react/nav/domain/icons/ImageIcon.js +7 -0
- package/dist/react/nav/domain/icons/LucideIcon.d.ts +2 -0
- package/dist/react/nav/domain/icons/LucideIcon.js +7 -0
- package/dist/react/nav/domain/icons/index.d.ts +2 -0
- package/dist/react/nav/domain/icons/index.js +18 -0
- package/dist/react/nav/domain/index.d.ts +14 -0
- package/dist/react/nav/domain/index.js +30 -0
- package/dist/react/nav/domain/sources/AbstractSpecSource.d.ts +23 -0
- package/dist/react/nav/domain/sources/AbstractSpecSource.js +64 -0
- package/dist/react/nav/domain/sources/StaticSpecSource.d.ts +9 -0
- package/dist/react/nav/domain/sources/StaticSpecSource.js +16 -0
- package/dist/react/nav/domain/sources/index.d.ts +2 -0
- package/dist/react/nav/domain/sources/index.js +18 -0
- package/dist/react/nav/server/SpecService.d.ts +9 -0
- package/dist/react/nav/server/SpecService.js +31 -0
- package/dist/react/nav/server/exports.d.ts +1 -0
- package/dist/react/nav/server/exports.js +17 -0
- package/dist/react/nav/server/index.d.ts +2 -0
- package/dist/react/nav/server/index.js +38 -0
- package/dist/react/nav/web/WebSpecProvider.d.ts +2 -0
- package/dist/react/nav/web/WebSpecProvider.js +41 -0
- package/dist/react/nav/web/index.d.ts +3 -0
- package/dist/react/nav/web/index.js +19 -0
- package/dist/react/nav/web/navigator/NativeNavigator.d.ts +13 -0
- package/dist/react/nav/web/navigator/NativeNavigator.js +47 -0
- package/dist/react/nav/web/navigator/Navigator.d.ts +7 -0
- package/dist/react/nav/web/navigator/Navigator.js +2 -0
- package/dist/react/nav/web/navigator/NavigatorContext.d.ts +7 -0
- package/dist/react/nav/web/navigator/NavigatorContext.js +6 -0
- package/dist/react/nav/web/navigator/WebNavigator.d.ts +13 -0
- package/dist/react/nav/web/navigator/WebNavigator.js +38 -0
- package/dist/react/nav/web/navigator/index.d.ts +5 -0
- package/dist/react/nav/web/navigator/index.js +21 -0
- package/dist/react/nav/web/navigator/useNavigator.d.ts +1 -0
- package/dist/react/nav/web/navigator/useNavigator.js +17 -0
- package/dist/react/nav.d.ts +1 -0
- package/dist/react/nav.js +37 -0
- package/dist/react/profile/core/AbstractProfileClient.d.ts +18 -0
- package/dist/react/profile/core/AbstractProfileClient.js +31 -0
- package/dist/react/profile/core/ProfileClient.d.ts +21 -0
- package/dist/react/profile/core/ProfileClient.js +2 -0
- package/dist/react/profile/core/ProfileClientContext.d.ts +7 -0
- package/dist/react/profile/core/ProfileClientContext.js +6 -0
- package/dist/react/profile/core/index.d.ts +6 -0
- package/dist/react/profile/core/index.js +22 -0
- package/dist/react/profile/core/useProfile.d.ts +9 -0
- package/dist/react/profile/core/useProfile.js +47 -0
- package/dist/react/profile/core/useProfileClient.d.ts +2 -0
- package/dist/react/profile/core/useProfileClient.js +17 -0
- package/dist/react/profile/core/useProfileStore.d.ts +2 -0
- package/dist/react/profile/core/useProfileStore.js +28 -0
- package/dist/react/profile/domain/Profile.d.ts +80 -0
- package/dist/react/profile/domain/Profile.js +209 -0
- package/dist/react/profile/domain/ProfileAppRequest.d.ts +15 -0
- package/dist/react/profile/domain/ProfileAppRequest.js +12 -0
- package/dist/react/profile/domain/ProfileStore.d.ts +65 -0
- package/dist/react/profile/domain/ProfileStore.js +180 -0
- package/dist/react/profile/domain/index.d.ts +3 -0
- package/dist/react/profile/domain/index.js +19 -0
- package/dist/react/profile/server/ProfileAppService.d.ts +11 -0
- package/dist/react/profile/server/ProfileAppService.js +49 -0
- package/dist/react/profile/server/ProfileManagementService.d.ts +28 -0
- package/dist/react/profile/server/ProfileManagementService.js +3 -0
- package/dist/react/profile/server/ProfileServices.d.ts +22 -0
- package/dist/react/profile/server/ProfileServices.js +24 -0
- package/dist/react/profile/server/ProfileUserService.d.ts +5 -0
- package/dist/react/profile/server/ProfileUserService.js +2 -0
- package/dist/react/profile/server/index.d.ts +5 -0
- package/dist/react/profile/server/index.js +21 -0
- package/dist/react/profile/web/WebProfile.d.ts +11 -0
- package/dist/react/profile/web/WebProfile.js +37 -0
- package/dist/react/profile/web/WebProfileClient.d.ts +9 -0
- package/dist/react/profile/web/WebProfileClient.js +76 -0
- package/dist/react/profile/web/WebProfileProvider.d.ts +5 -0
- package/dist/react/profile/web/WebProfileProvider.js +62 -0
- package/dist/react/profile/web/WebProfileStore.d.ts +8 -0
- package/dist/react/profile/web/WebProfileStore.js +32 -0
- package/dist/react/profile/web/index.d.ts +3 -0
- package/dist/react/profile/web/index.js +19 -0
- package/dist/react/push/domain/PushAppRequest.d.ts +13 -0
- package/dist/react/push/domain/PushAppRequest.js +12 -0
- package/dist/react/push/domain/PushStore.d.ts +7 -0
- package/dist/react/push/domain/PushStore.js +9 -0
- package/dist/react/push/domain/index.d.ts +2 -0
- package/dist/react/push/domain/index.js +18 -0
- package/dist/react/push/server/PushService.d.ts +22 -0
- package/dist/react/push/server/PushService.js +57 -0
- package/dist/react/push/server/index.d.ts +3 -0
- package/dist/react/push/server/index.js +19 -0
- package/dist/react/push/server/keygen.d.ts +1 -0
- package/dist/react/push/server/keygen.js +8 -0
- package/dist/react/push/web/PushClient.d.ts +35 -0
- package/dist/react/push/web/PushClient.js +204 -0
- package/dist/react/push/web/PushContext.d.ts +7 -0
- package/dist/react/push/web/PushContext.js +6 -0
- package/dist/react/push/web/PushProvider.d.ts +6 -0
- package/dist/react/push/web/PushProvider.js +42 -0
- package/dist/react/push/web/index.d.ts +4 -0
- package/dist/react/push/web/index.js +20 -0
- package/dist/react/push/web/usePushClient.d.ts +3 -0
- package/dist/react/push/web/usePushClient.js +40 -0
- package/dist/react/server.d.ts +7 -0
- package/dist/react/server.js +23 -0
- package/dist/react/ui/web/HideSplash.d.ts +1 -0
- package/dist/react/ui/web/HideSplash.js +28 -0
- package/dist/react/ui/web/Link.d.ts +6 -0
- package/dist/react/ui/web/Link.js +12 -0
- package/dist/react/ui/web/SafeArea.d.ts +9 -0
- package/dist/react/ui/web/SafeArea.js +26 -0
- package/dist/react/ui/web/index.d.ts +3 -0
- package/dist/react/ui/web/index.js +19 -0
- package/dist/react/web.d.ts +10 -0
- package/dist/react/web.js +26 -0
- package/dist/reactnative/app/domain/AppService.d.ts +19 -0
- package/dist/reactnative/app/domain/AppService.js +19 -0
- package/dist/reactnative/app/domain/AppServiceClient.d.ts +7 -0
- package/dist/reactnative/app/domain/AppServiceClient.js +57 -0
- package/dist/reactnative/app/domain/AppState.d.ts +1 -0
- package/dist/reactnative/app/domain/AppState.js +2 -0
- package/dist/reactnative/app/domain/index.d.ts +3 -0
- package/dist/reactnative/app/domain/index.js +19 -0
- package/dist/reactnative/app/rn/AppContainer.d.ts +10 -0
- package/dist/reactnative/app/rn/AppContainer.js +77 -0
- package/dist/reactnative/app/rn/AppRoot.d.ts +5 -0
- package/dist/reactnative/app/rn/AppRoot.js +22 -0
- package/dist/reactnative/app/rn/AppServiceClient.d.ts +4 -0
- package/dist/reactnative/app/rn/AppServiceClient.js +44 -0
- package/dist/reactnative/app/rn/index.d.ts +5 -0
- package/dist/reactnative/app/rn/index.js +22 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClient.d.ts +33 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClient.js +234 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClientProvider.d.ts +27 -0
- package/dist/reactnative/auth0/rn/Auth0IdentityClientProvider.js +60 -0
- package/dist/reactnative/auth0/rn/index.d.ts +2 -0
- package/dist/reactnative/auth0/rn/index.js +18 -0
- package/dist/reactnative/bridge/core/BridgeConnection.d.ts +6 -0
- package/dist/reactnative/bridge/core/BridgeConnection.js +2 -0
- package/dist/reactnative/bridge/core/BridgeConstants.d.ts +7 -0
- package/dist/reactnative/bridge/core/BridgeConstants.js +15 -0
- package/dist/reactnative/bridge/core/BridgeEvent.d.ts +52 -0
- package/dist/reactnative/bridge/core/BridgeEvent.js +28 -0
- package/dist/reactnative/bridge/core/BridgeMethod.d.ts +12 -0
- package/dist/reactnative/bridge/core/BridgeMethod.js +2 -0
- package/dist/reactnative/bridge/core/BridgeMethodCall.d.ts +23 -0
- package/dist/reactnative/bridge/core/BridgeMethodCall.js +37 -0
- package/dist/reactnative/bridge/core/BridgeMethods.d.ts +35 -0
- package/dist/reactnative/bridge/core/BridgeMethods.js +2 -0
- package/dist/reactnative/bridge/core/BridgeState.d.ts +24 -0
- package/dist/reactnative/bridge/core/BridgeState.js +2 -0
- package/dist/reactnative/bridge/core/index.d.ts +7 -0
- package/dist/reactnative/bridge/core/index.js +23 -0
- package/dist/reactnative/bridge/rn/BridgeProxy.d.ts +35 -0
- package/dist/reactnative/bridge/rn/BridgeProxy.js +331 -0
- package/dist/reactnative/bridge/rn/BridgeProxyContext.d.ts +8 -0
- package/dist/reactnative/bridge/rn/BridgeProxyContext.js +6 -0
- package/dist/reactnative/bridge/rn/BridgeProxyProvider.d.ts +8 -0
- package/dist/reactnative/bridge/rn/BridgeProxyProvider.js +39 -0
- package/dist/reactnative/bridge/rn/BridgeWebview.d.ts +7 -0
- package/dist/reactnative/bridge/rn/BridgeWebview.js +51 -0
- package/dist/reactnative/bridge/rn/index.d.ts +7 -0
- package/dist/reactnative/bridge/rn/index.js +23 -0
- package/dist/reactnative/bridge/rn/useBridgeProxy.d.ts +3 -0
- package/dist/reactnative/bridge/rn/useBridgeProxy.js +38 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyCalls.d.ts +3 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyCalls.js +32 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyState.d.ts +2 -0
- package/dist/reactnative/bridge/rn/useBridgeProxyState.js +46 -0
- package/dist/reactnative/identity/core/AbstractIdentityClient.d.ts +22 -0
- package/dist/reactnative/identity/core/AbstractIdentityClient.js +31 -0
- package/dist/reactnative/identity/core/IdentityClient.d.ts +22 -0
- package/dist/reactnative/identity/core/IdentityClient.js +13 -0
- package/dist/reactnative/identity/core/IdentityClientContext.d.ts +7 -0
- package/dist/reactnative/identity/core/IdentityClientContext.js +6 -0
- package/dist/reactnative/identity/core/index.d.ts +6 -0
- package/dist/reactnative/identity/core/index.js +22 -0
- package/dist/reactnative/identity/core/useIdentity.d.ts +10 -0
- package/dist/reactnative/identity/core/useIdentity.js +39 -0
- package/dist/reactnative/identity/core/useIdentityClient.d.ts +2 -0
- package/dist/reactnative/identity/core/useIdentityClient.js +17 -0
- package/dist/reactnative/identity/domain/AnonymousIdentity.d.ts +15 -0
- package/dist/reactnative/identity/domain/AnonymousIdentity.js +27 -0
- package/dist/reactnative/identity/domain/AuthenticatedIdentity.d.ts +25 -0
- package/dist/reactnative/identity/domain/AuthenticatedIdentity.js +32 -0
- package/dist/reactnative/identity/domain/Identity.d.ts +6 -0
- package/dist/reactnative/identity/domain/Identity.js +2 -0
- package/dist/reactnative/identity/domain/IdentityAppRequest.d.ts +8 -0
- package/dist/reactnative/identity/domain/IdentityAppRequest.js +10 -0
- package/dist/reactnative/identity/domain/index.d.ts +4 -0
- package/dist/reactnative/identity/domain/index.js +20 -0
- package/dist/reactnative/identity/rn/RNIdentityClientProvider.d.ts +8 -0
- package/dist/reactnative/identity/rn/RNIdentityClientProvider.js +22 -0
- package/dist/reactnative/identity/rn/RNIdentityProvider.d.ts +5 -0
- package/dist/reactnative/identity/rn/RNIdentityProvider.js +14 -0
- package/dist/reactnative/identity/rn/index.d.ts +3 -0
- package/dist/reactnative/identity/rn/index.js +19 -0
- package/dist/reactnative/nav/core/SpecSourceContext.d.ts +7 -0
- package/dist/reactnative/nav/core/SpecSourceContext.js +6 -0
- package/dist/reactnative/nav/core/index.d.ts +2 -0
- package/dist/reactnative/nav/core/index.js +18 -0
- package/dist/reactnative/nav/core/useSpec.d.ts +3 -0
- package/dist/reactnative/nav/core/useSpec.js +30 -0
- package/dist/reactnative/nav/domain/Icon.d.ts +2 -0
- package/dist/reactnative/nav/domain/Icon.js +2 -0
- package/dist/reactnative/nav/domain/Modal.d.ts +25 -0
- package/dist/reactnative/nav/domain/Modal.js +28 -0
- package/dist/reactnative/nav/domain/Navigation.d.ts +13 -0
- package/dist/reactnative/nav/domain/Navigation.js +2 -0
- package/dist/reactnative/nav/domain/NavigationCommand.d.ts +14 -0
- package/dist/reactnative/nav/domain/NavigationCommand.js +2 -0
- package/dist/reactnative/nav/domain/Route.d.ts +12 -0
- package/dist/reactnative/nav/domain/Route.js +2 -0
- package/dist/reactnative/nav/domain/Routes.d.ts +6 -0
- package/dist/reactnative/nav/domain/Routes.js +74 -0
- package/dist/reactnative/nav/domain/Screen.d.ts +24 -0
- package/dist/reactnative/nav/domain/Screen.js +28 -0
- package/dist/reactnative/nav/domain/Skeleton.d.ts +26 -0
- package/dist/reactnative/nav/domain/Skeleton.js +2 -0
- package/dist/reactnative/nav/domain/Spec.d.ts +33 -0
- package/dist/reactnative/nav/domain/Spec.js +124 -0
- package/dist/reactnative/nav/domain/SpecSource.d.ts +21 -0
- package/dist/reactnative/nav/domain/SpecSource.js +28 -0
- package/dist/reactnative/nav/domain/Stack.d.ts +35 -0
- package/dist/reactnative/nav/domain/Stack.js +44 -0
- package/dist/reactnative/nav/domain/Tabs.d.ts +37 -0
- package/dist/reactnative/nav/domain/Tabs.js +45 -0
- package/dist/reactnative/nav/domain/icons/ImageIcon.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/ImageIcon.js +7 -0
- package/dist/reactnative/nav/domain/icons/LucideIcon.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/LucideIcon.js +7 -0
- package/dist/reactnative/nav/domain/icons/index.d.ts +2 -0
- package/dist/reactnative/nav/domain/icons/index.js +18 -0
- package/dist/reactnative/nav/domain/index.d.ts +14 -0
- package/dist/reactnative/nav/domain/index.js +30 -0
- package/dist/reactnative/nav/domain/sources/AbstractSpecSource.d.ts +23 -0
- package/dist/reactnative/nav/domain/sources/AbstractSpecSource.js +64 -0
- package/dist/reactnative/nav/domain/sources/StaticSpecSource.d.ts +9 -0
- package/dist/reactnative/nav/domain/sources/StaticSpecSource.js +16 -0
- package/dist/reactnative/nav/domain/sources/index.d.ts +2 -0
- package/dist/reactnative/nav/domain/sources/index.js +18 -0
- package/dist/reactnative/nav/rn/NavigationEngine.d.ts +1 -0
- package/dist/reactnative/nav/rn/NavigationEngine.js +155 -0
- package/dist/reactnative/nav/rn/NavigationScreen.d.ts +9 -0
- package/dist/reactnative/nav/rn/NavigationScreen.js +215 -0
- package/dist/reactnative/nav/rn/RNSpecProvider.d.ts +2 -0
- package/dist/reactnative/nav/rn/RNSpecProvider.js +30 -0
- package/dist/reactnative/nav/rn/RNSpecSource.d.ts +5 -0
- package/dist/reactnative/nav/rn/RNSpecSource.js +30 -0
- package/dist/reactnative/nav/rn/index.d.ts +4 -0
- package/dist/reactnative/nav/rn/index.js +20 -0
- package/dist/reactnative/profile/domain/Profile.d.ts +80 -0
- package/dist/reactnative/profile/domain/Profile.js +209 -0
- package/dist/reactnative/profile/domain/ProfileAppRequest.d.ts +15 -0
- package/dist/reactnative/profile/domain/ProfileAppRequest.js +12 -0
- package/dist/reactnative/profile/domain/ProfileStore.d.ts +65 -0
- package/dist/reactnative/profile/domain/ProfileStore.js +180 -0
- package/dist/reactnative/profile/domain/index.d.ts +3 -0
- package/dist/reactnative/profile/domain/index.js +19 -0
- package/dist/reactnative/push/domain/PushAppRequest.d.ts +13 -0
- package/dist/reactnative/push/domain/PushAppRequest.js +12 -0
- package/dist/reactnative/push/domain/PushStore.d.ts +7 -0
- package/dist/reactnative/push/domain/PushStore.js +9 -0
- package/dist/reactnative/push/domain/index.d.ts +2 -0
- package/dist/reactnative/push/domain/index.js +18 -0
- package/dist/reactnative/push/rn/PushClient.d.ts +32 -0
- package/dist/reactnative/push/rn/PushClient.js +247 -0
- package/dist/reactnative/push/rn/PushContext.d.ts +7 -0
- package/dist/reactnative/push/rn/PushContext.js +6 -0
- package/dist/reactnative/push/rn/PushProvider.d.ts +2 -0
- package/dist/reactnative/push/rn/PushProvider.js +45 -0
- package/dist/reactnative/push/rn/index.d.ts +3 -0
- package/dist/reactnative/push/rn/index.js +19 -0
- package/dist/reactnative/push/rn/usePushClient.d.ts +3 -0
- package/dist/reactnative/push/rn/usePushClient.js +40 -0
- package/dist/reactnative/rn.d.ts +7 -0
- package/dist/reactnative/rn.js +23 -0
- package/dist/reactnative/ui/rn/Tailwind.d.ts +175 -0
- package/dist/reactnative/ui/rn/Tailwind.js +211 -0
- package/dist/reactnative/ui/rn/atomic/Button.d.ts +97 -0
- package/dist/reactnative/ui/rn/atomic/Button.js +75 -0
- package/dist/reactnative/ui/rn/atomic/TextField.d.ts +112 -0
- package/dist/reactnative/ui/rn/atomic/TextField.js +135 -0
- package/dist/reactnative/ui/rn/atomic/index.d.ts +2 -0
- package/dist/reactnative/ui/rn/atomic/index.js +18 -0
- package/dist/reactnative/ui/rn/index.d.ts +1 -0
- package/dist/reactnative/ui/rn/index.js +17 -0
- package/dist/styles/rn/_index.css +2 -0
- package/dist/styles/rn/atomic/Button.css +54 -0
- package/dist/styles/rn/atomic/TextField.css +77 -0
- package/dist/styles/rn/atomic/_index.css +2 -0
- package/dist/styles/rn/base/_index.css +1 -0
- package/dist/styles/rn/base/tailwind.css +3 -0
- package/dist/styles/rn.css +1 -0
- package/dist/styles/web/_index.css +1 -0
- package/dist/styles/web/layout/SafeArea.css +17 -0
- package/dist/styles/web/layout/_index.css +1 -0
- package/dist/styles/web.css +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tailwind = void 0;
|
|
7
|
+
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
8
|
+
const color_1 = __importDefault(require("color"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
// namespace
|
|
11
|
+
var Tailwind;
|
|
12
|
+
(function (Tailwind) {
|
|
13
|
+
function createConfig({ content = [], colors = {}, safelist = [] }) {
|
|
14
|
+
return {
|
|
15
|
+
// build settings
|
|
16
|
+
presets: [
|
|
17
|
+
require('nativewind/preset')
|
|
18
|
+
],
|
|
19
|
+
content: [
|
|
20
|
+
'./src/**/*.{tsx,jsx,ts,js}',
|
|
21
|
+
`${__dirname}/**/*.{tsx,jsx,ts,js}`,
|
|
22
|
+
path_1.default.join(path_1.default.dirname(require.resolve('@nascentdigital/funnel-apps/rn')), '**/*.{tsx,jsx,ts,js}'),
|
|
23
|
+
...content
|
|
24
|
+
],
|
|
25
|
+
safelist: [
|
|
26
|
+
...safelist
|
|
27
|
+
],
|
|
28
|
+
// base theming
|
|
29
|
+
theme: {
|
|
30
|
+
// layout
|
|
31
|
+
screens: getScreens(funnel_core_1.Breakpoints.defaults),
|
|
32
|
+
spacing: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
33
|
+
// basic
|
|
34
|
+
'initial': 'initial', 'revert': 'revert', 'unset': 'unset', '0': '0px', 'px': '1px' }, funnel_core_1.ObjectUtils.createSeries({ start: 1, end: 19, step: 1, getValue: toPixel })), funnel_core_1.ObjectUtils.createSeries({ start: 20, end: 64, step: 2, getValue: toPixel })), getScreenSizes(funnel_core_1.Breakpoints.defaults)), {
|
|
35
|
+
// semantic spacing
|
|
36
|
+
l1: '2px', l2: '4px', l3: '6px', l4: '8px', l5: '12px', l6: '16px', l7: '20px', l8: '24px', l9: '32px', l10: '40px', l11: '48px', l12: '56px', l13: '64px', l14: '72px', l15: '80px', l16: '96px', l17: '120px', l18: '160px', l19: '180px', touchable: '40px', icon: '24px' }),
|
|
37
|
+
zIndex: {
|
|
38
|
+
tooltip: '150',
|
|
39
|
+
popup: '140',
|
|
40
|
+
dialogFab: '135',
|
|
41
|
+
dialog: '130',
|
|
42
|
+
superbackdrop: '125',
|
|
43
|
+
superheader: '121',
|
|
44
|
+
header: '120',
|
|
45
|
+
subheader: '110',
|
|
46
|
+
backdrop: '100',
|
|
47
|
+
fab: '20',
|
|
48
|
+
superoverlay: '11',
|
|
49
|
+
overlay: '10',
|
|
50
|
+
supersurface: '2',
|
|
51
|
+
surface: '1',
|
|
52
|
+
tint: '0',
|
|
53
|
+
background: '-1'
|
|
54
|
+
},
|
|
55
|
+
rotate: {
|
|
56
|
+
'0': '0deg',
|
|
57
|
+
'45': '45deg',
|
|
58
|
+
'90': '90deg',
|
|
59
|
+
'135': '135deg',
|
|
60
|
+
'180': '180deg',
|
|
61
|
+
'225': '225deg',
|
|
62
|
+
'270': '270deg',
|
|
63
|
+
'315': '315deg'
|
|
64
|
+
},
|
|
65
|
+
aspectRatio: {
|
|
66
|
+
auto: 'auto',
|
|
67
|
+
square: '1 / 1',
|
|
68
|
+
camera: '3 / 2',
|
|
69
|
+
cameraAlt: '2 / 3',
|
|
70
|
+
video: '16 / 9',
|
|
71
|
+
phone: '9 / 16',
|
|
72
|
+
tv: '4 / 3',
|
|
73
|
+
tvAlt: '3 / 4',
|
|
74
|
+
computer: '5 / 4',
|
|
75
|
+
widescreen: '16 / 9',
|
|
76
|
+
cinema: '185 / 100',
|
|
77
|
+
cinemascope: '235 / 100'
|
|
78
|
+
},
|
|
79
|
+
// colors (base)
|
|
80
|
+
colors: Object.assign(Object.assign({}, transformToRGB(colors)), { inherit: 'inherit', current: 'currentColor', transparent: 'transparent' }),
|
|
81
|
+
opacity: {
|
|
82
|
+
'l1': '.05',
|
|
83
|
+
'l2': '.08',
|
|
84
|
+
'l3': '.11',
|
|
85
|
+
'l4': '.12',
|
|
86
|
+
'l5': '.14',
|
|
87
|
+
'hover': '.08',
|
|
88
|
+
'focus': '.16',
|
|
89
|
+
'press': '.16',
|
|
90
|
+
'press_invert': '.8',
|
|
91
|
+
'drag': '.16',
|
|
92
|
+
'disabled': '.38',
|
|
93
|
+
'faded': '.50',
|
|
94
|
+
'backdrop': '.85',
|
|
95
|
+
'none': '0',
|
|
96
|
+
'full': '1'
|
|
97
|
+
},
|
|
98
|
+
// typography
|
|
99
|
+
fontFamily: {},
|
|
100
|
+
leading: {
|
|
101
|
+
none: '0',
|
|
102
|
+
tight: '110%',
|
|
103
|
+
normal: '120%',
|
|
104
|
+
loose: '140%'
|
|
105
|
+
},
|
|
106
|
+
// border
|
|
107
|
+
borderWidth: {
|
|
108
|
+
DEFAULT: '1px',
|
|
109
|
+
'0': '0',
|
|
110
|
+
'2': '2px',
|
|
111
|
+
'3': '3px',
|
|
112
|
+
'4': '4px',
|
|
113
|
+
'8': '8px'
|
|
114
|
+
},
|
|
115
|
+
borderRadius: {
|
|
116
|
+
DEFAULT: '24px',
|
|
117
|
+
none: '0px',
|
|
118
|
+
xs: '8px',
|
|
119
|
+
sm: '12px',
|
|
120
|
+
md: '24px',
|
|
121
|
+
lg: '32px',
|
|
122
|
+
xl: '40px',
|
|
123
|
+
full: '9999px'
|
|
124
|
+
},
|
|
125
|
+
// shadows
|
|
126
|
+
boxShadow: {
|
|
127
|
+
none: '0 0 #0000',
|
|
128
|
+
l1: '0px 1px 4px 0px rgba(12, 12, 13, 0.05)',
|
|
129
|
+
l2: '0px 1px 4px 0px rgba(12, 12, 13, 0.05), 0px 1px 4px 0px rgba(12, 12, 13, 0.1)',
|
|
130
|
+
l3: '0px 4px 4px -1px rgba(12, 12, 13, 0.05), 0px 4px 4px -1px rgba(12, 12, 13, 0.1)',
|
|
131
|
+
l4: '0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 32px -1px rgba(12, 12, 13, 0.1)',
|
|
132
|
+
l5: '0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 16px -8px rgba(12, 12, 13, 0.1)',
|
|
133
|
+
l6: '0px 16px 32px -8px rgba(12, 12, 13, 0.4)',
|
|
134
|
+
popup: '4px 4px 10px 0px rgba(0, 0, 0, 0.15)',
|
|
135
|
+
menu: '0px 2px 4px 0px rgba(0, 0, 0, 0.20), 0px 1px 3px 1px rgba(0, 0, 0, 0.10)',
|
|
136
|
+
card: '0px 3px 8px 0px rgba(0, 0, 0, 0.24)'
|
|
137
|
+
},
|
|
138
|
+
extend: {
|
|
139
|
+
animation: {
|
|
140
|
+
'spin-slow': 'spin 2s linear infinite'
|
|
141
|
+
},
|
|
142
|
+
content: {
|
|
143
|
+
empty: '"\\00a0"'
|
|
144
|
+
},
|
|
145
|
+
transitionDuration: {
|
|
146
|
+
'150': '150ms',
|
|
147
|
+
'250': '250ms',
|
|
148
|
+
'350': '350ms',
|
|
149
|
+
'400': '400ms',
|
|
150
|
+
'450': '450ms',
|
|
151
|
+
'500': '500ms',
|
|
152
|
+
'600': '600ms',
|
|
153
|
+
'800': '800ms'
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
// plugins
|
|
158
|
+
plugins: [
|
|
159
|
+
require('@tailwindcss/container-queries')
|
|
160
|
+
]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
Tailwind.createConfig = createConfig;
|
|
164
|
+
// helpers
|
|
165
|
+
function toPixel(value) {
|
|
166
|
+
return `${value}px`;
|
|
167
|
+
}
|
|
168
|
+
Tailwind.toPixel = toPixel;
|
|
169
|
+
function getScreens(breakpoints) {
|
|
170
|
+
const breakpointEntries = Object.entries(breakpoints);
|
|
171
|
+
return breakpointEntries.reduce((breakpoints, entry) => {
|
|
172
|
+
// determine values
|
|
173
|
+
const [breakpoint, width] = entry;
|
|
174
|
+
// add breakpoint (skip xs)
|
|
175
|
+
if (breakpoint !== 'xs') {
|
|
176
|
+
breakpoints[breakpoint] = toPixel(width);
|
|
177
|
+
}
|
|
178
|
+
// keep reducing
|
|
179
|
+
return breakpoints;
|
|
180
|
+
}, {});
|
|
181
|
+
}
|
|
182
|
+
Tailwind.getScreens = getScreens;
|
|
183
|
+
function getScreenSizes(breakpoints) {
|
|
184
|
+
return Object.entries(breakpoints).reduce((sizes, [breakpoint, size], index) => {
|
|
185
|
+
// add screen size if reducing
|
|
186
|
+
if (index > 0 && funnel_core_1.Breakpoint.test(breakpoint)) {
|
|
187
|
+
sizes[`screen-${breakpoint}`] = `${size}px`;
|
|
188
|
+
}
|
|
189
|
+
// keep reducing
|
|
190
|
+
return sizes;
|
|
191
|
+
}, {});
|
|
192
|
+
}
|
|
193
|
+
Tailwind.getScreenSizes = getScreenSizes;
|
|
194
|
+
function transformToRGB(colors) {
|
|
195
|
+
// transform colors to rgb values
|
|
196
|
+
return Object.entries(colors).reduce((colors, [colorName, colorValue]) => {
|
|
197
|
+
// parse variable
|
|
198
|
+
if (colorValue.startsWith('--')) {
|
|
199
|
+
colors[colorName] = `rgb(var(${colorValue}) / <alpha-value>)`;
|
|
200
|
+
}
|
|
201
|
+
// or parse color
|
|
202
|
+
else {
|
|
203
|
+
const color = (0, color_1.default)(colorValue);
|
|
204
|
+
colors[colorName] = `rgb(${color.red()} ${color.green()} ${color.blue()} / <alpha-value>)`;
|
|
205
|
+
}
|
|
206
|
+
// keep reducing
|
|
207
|
+
return colors;
|
|
208
|
+
}, {});
|
|
209
|
+
}
|
|
210
|
+
Tailwind.transformToRGB = transformToRGB;
|
|
211
|
+
})(Tailwind || (exports.Tailwind = Tailwind = {}));
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { PressableProps } from 'react-native/Libraries/Components/Pressable/Pressable';
|
|
3
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
4
|
+
export declare function Button({ className, variant, size, label, iconLeft, iconRight, ...props }: Button.Props): React.JSX.Element;
|
|
5
|
+
export declare namespace Button {
|
|
6
|
+
const variants: import("tailwind-variants", { with: { "resolution-mode": "import" } }).TVReturnType<{
|
|
7
|
+
variant: {
|
|
8
|
+
filled: {
|
|
9
|
+
container: string;
|
|
10
|
+
};
|
|
11
|
+
outlined: {
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
text: {
|
|
15
|
+
container: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
sm: {
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
md: {
|
|
23
|
+
container: string;
|
|
24
|
+
};
|
|
25
|
+
lg: {
|
|
26
|
+
container: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
container: string;
|
|
31
|
+
label: string;
|
|
32
|
+
iconLeft: string;
|
|
33
|
+
iconRight: string;
|
|
34
|
+
}, undefined, {
|
|
35
|
+
variant: {
|
|
36
|
+
filled: {
|
|
37
|
+
container: string;
|
|
38
|
+
};
|
|
39
|
+
outlined: {
|
|
40
|
+
container: string;
|
|
41
|
+
};
|
|
42
|
+
text: {
|
|
43
|
+
container: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
sm: {
|
|
48
|
+
container: string;
|
|
49
|
+
};
|
|
50
|
+
md: {
|
|
51
|
+
container: string;
|
|
52
|
+
};
|
|
53
|
+
lg: {
|
|
54
|
+
container: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
container: string;
|
|
59
|
+
label: string;
|
|
60
|
+
iconLeft: string;
|
|
61
|
+
iconRight: string;
|
|
62
|
+
}, import("tailwind-variants", { with: { "resolution-mode": "import" } }).TVReturnType<{
|
|
63
|
+
variant: {
|
|
64
|
+
filled: {
|
|
65
|
+
container: string;
|
|
66
|
+
};
|
|
67
|
+
outlined: {
|
|
68
|
+
container: string;
|
|
69
|
+
};
|
|
70
|
+
text: {
|
|
71
|
+
container: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
sm: {
|
|
76
|
+
container: string;
|
|
77
|
+
};
|
|
78
|
+
md: {
|
|
79
|
+
container: string;
|
|
80
|
+
};
|
|
81
|
+
lg: {
|
|
82
|
+
container: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
container: string;
|
|
87
|
+
label: string;
|
|
88
|
+
iconLeft: string;
|
|
89
|
+
iconRight: string;
|
|
90
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
91
|
+
type Props = Omit<PressableProps, 'children'> & VariantProps<typeof variants> & {
|
|
92
|
+
className?: string;
|
|
93
|
+
label?: string;
|
|
94
|
+
iconLeft?: ReactNode;
|
|
95
|
+
iconRight?: ReactNode;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Button = Button;
|
|
18
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
19
|
+
const react_1 = __importDefault(require("react"));
|
|
20
|
+
const react_native_1 = require("react-native");
|
|
21
|
+
const tailwind_variants_1 = require("tailwind-variants");
|
|
22
|
+
// component
|
|
23
|
+
function Button(_a) {
|
|
24
|
+
var { className, variant, size, label, iconLeft, iconRight } = _a, props = __rest(_a, ["className", "variant", "size", "label", "iconLeft", "iconRight"]);
|
|
25
|
+
// bind styles
|
|
26
|
+
const { container: containerClassName, label: labelClassName, iconLeft: iconLeftClassName, iconRight: iconRightClassName } = Button.variants({ variant, size });
|
|
27
|
+
// render
|
|
28
|
+
return (<react_native_1.Pressable className={(0, classnames_1.default)(containerClassName({ className }))} {...props}>
|
|
29
|
+
{/* left icon */}
|
|
30
|
+
{iconLeft &&
|
|
31
|
+
<react_native_1.View className={iconLeftClassName()}>
|
|
32
|
+
{iconLeft}
|
|
33
|
+
</react_native_1.View>}
|
|
34
|
+
|
|
35
|
+
{/* label */}
|
|
36
|
+
{label &&
|
|
37
|
+
<react_native_1.Text className={labelClassName()}>
|
|
38
|
+
{label}
|
|
39
|
+
</react_native_1.Text>}
|
|
40
|
+
|
|
41
|
+
{/* right icon */}
|
|
42
|
+
{iconRight &&
|
|
43
|
+
<react_native_1.View className={iconRightClassName()}>
|
|
44
|
+
{iconRight}
|
|
45
|
+
</react_native_1.View>}
|
|
46
|
+
</react_native_1.Pressable>);
|
|
47
|
+
}
|
|
48
|
+
// extension
|
|
49
|
+
(function (Button) {
|
|
50
|
+
// variants
|
|
51
|
+
Button.variants = (0, tailwind_variants_1.tv)({
|
|
52
|
+
slots: {
|
|
53
|
+
container: 'nd-Button',
|
|
54
|
+
label: 'nd-Button-label',
|
|
55
|
+
iconLeft: 'nd-Button-iconLeft',
|
|
56
|
+
iconRight: 'nd-Button-iconRight'
|
|
57
|
+
},
|
|
58
|
+
variants: {
|
|
59
|
+
variant: {
|
|
60
|
+
filled: { container: 'nd-Button-filled' },
|
|
61
|
+
outlined: { container: 'nd-Button-outlined' },
|
|
62
|
+
text: { container: 'nd-Button-text' },
|
|
63
|
+
},
|
|
64
|
+
size: {
|
|
65
|
+
sm: { container: 'nd-Button-sm' },
|
|
66
|
+
md: { container: 'nd-Button-md' },
|
|
67
|
+
lg: { container: 'nd-Button-lg' }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
defaultVariants: {
|
|
71
|
+
variant: 'filled',
|
|
72
|
+
size: 'md'
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
})(Button || (exports.Button = Button = {}));
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TextInputProps } from 'react-native';
|
|
3
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
4
|
+
export declare function TextField({ className, status, iconLeft, iconRight, value, disabled, onFocus, onBlur, ...props }: TextField.Props): React.JSX.Element;
|
|
5
|
+
export declare namespace TextField {
|
|
6
|
+
const variants: import("tailwind-variants", { with: { "resolution-mode": "import" } }).TVReturnType<{
|
|
7
|
+
status: {
|
|
8
|
+
normal: {
|
|
9
|
+
container: string;
|
|
10
|
+
};
|
|
11
|
+
success: {
|
|
12
|
+
container: string;
|
|
13
|
+
};
|
|
14
|
+
error: {
|
|
15
|
+
container: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
isDisabled: {
|
|
19
|
+
true: {
|
|
20
|
+
container: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
isEmpty: {
|
|
24
|
+
true: {
|
|
25
|
+
container: string;
|
|
26
|
+
field: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
isFocused: {
|
|
30
|
+
true: {
|
|
31
|
+
container: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
container: string;
|
|
36
|
+
field: string;
|
|
37
|
+
iconLeft: string;
|
|
38
|
+
iconRight: string;
|
|
39
|
+
}, undefined, {
|
|
40
|
+
status: {
|
|
41
|
+
normal: {
|
|
42
|
+
container: string;
|
|
43
|
+
};
|
|
44
|
+
success: {
|
|
45
|
+
container: string;
|
|
46
|
+
};
|
|
47
|
+
error: {
|
|
48
|
+
container: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
isDisabled: {
|
|
52
|
+
true: {
|
|
53
|
+
container: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
isEmpty: {
|
|
57
|
+
true: {
|
|
58
|
+
container: string;
|
|
59
|
+
field: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
isFocused: {
|
|
63
|
+
true: {
|
|
64
|
+
container: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
container: string;
|
|
69
|
+
field: string;
|
|
70
|
+
iconLeft: string;
|
|
71
|
+
iconRight: string;
|
|
72
|
+
}, import("tailwind-variants", { with: { "resolution-mode": "import" } }).TVReturnType<{
|
|
73
|
+
status: {
|
|
74
|
+
normal: {
|
|
75
|
+
container: string;
|
|
76
|
+
};
|
|
77
|
+
success: {
|
|
78
|
+
container: string;
|
|
79
|
+
};
|
|
80
|
+
error: {
|
|
81
|
+
container: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
isDisabled: {
|
|
85
|
+
true: {
|
|
86
|
+
container: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
isEmpty: {
|
|
90
|
+
true: {
|
|
91
|
+
container: string;
|
|
92
|
+
field: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
isFocused: {
|
|
96
|
+
true: {
|
|
97
|
+
container: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
container: string;
|
|
102
|
+
field: string;
|
|
103
|
+
iconLeft: string;
|
|
104
|
+
iconRight: string;
|
|
105
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
106
|
+
type Props = Omit<TextInputProps, 'ref' | 'placeholderTextColor' | 'cursorColor' | 'selectionColor' | 'editable' | 'children'> & Omit<VariantProps<typeof variants>, 'isDisabled' | 'isEmpty' | 'isFocused'> & {
|
|
107
|
+
className?: string;
|
|
108
|
+
iconLeft?: ReactNode;
|
|
109
|
+
iconRight?: ReactNode;
|
|
110
|
+
disabled?: boolean;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
+
t[p] = s[p];
|
|
39
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
+
t[p[i]] = s[p[i]];
|
|
43
|
+
}
|
|
44
|
+
return t;
|
|
45
|
+
};
|
|
46
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.TextField = TextField;
|
|
51
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
52
|
+
const react_1 = __importStar(require("react"));
|
|
53
|
+
const react_native_1 = require("react-native");
|
|
54
|
+
const tailwind_variants_1 = require("tailwind-variants");
|
|
55
|
+
const nativewind_1 = require("nativewind");
|
|
56
|
+
// component
|
|
57
|
+
function TextField(_a) {
|
|
58
|
+
var { className, status, iconLeft, iconRight, value = '', disabled = false, onFocus, onBlur } = _a, props = __rest(_a, ["className", "status", "iconLeft", "iconRight", "value", "disabled", "onFocus", "onBlur"]);
|
|
59
|
+
// bind styles + states + hooks
|
|
60
|
+
const [isFocused, setFocused] = (0, react_1.useState)(false);
|
|
61
|
+
const isEmpty = value.length === 0;
|
|
62
|
+
const { container: containerClassName, field: fieldClassName, iconLeft: iconLeftClassName, iconRight: iconRightClassName } = TextField.variants({ status, isDisabled: disabled, isEmpty, isFocused });
|
|
63
|
+
const placeholderColor = (0, nativewind_1.useUnstableNativeVariable)('--nd-textfield-placeholder');
|
|
64
|
+
const caretColor = (0, nativewind_1.useUnstableNativeVariable)('--nd-textfield-caret');
|
|
65
|
+
const fieldRef = (0, react_1.useRef)(null);
|
|
66
|
+
// helpers
|
|
67
|
+
const onContainerTouch = () => {
|
|
68
|
+
var _a;
|
|
69
|
+
(_a = fieldRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
70
|
+
};
|
|
71
|
+
const onFieldFocus = (e) => {
|
|
72
|
+
// update state
|
|
73
|
+
setFocused(true);
|
|
74
|
+
// forward event
|
|
75
|
+
if (onFocus) {
|
|
76
|
+
onFocus(e);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const onFieldBlur = (e) => {
|
|
80
|
+
// update state
|
|
81
|
+
setFocused(false);
|
|
82
|
+
// forward event
|
|
83
|
+
if (onBlur) {
|
|
84
|
+
onBlur(e);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
// render
|
|
88
|
+
return (<react_native_1.View className={(0, classnames_1.default)(containerClassName({ className }))} onTouchStart={disabled || isFocused ? undefined : onContainerTouch}>
|
|
89
|
+
{/* left icon */}
|
|
90
|
+
{iconLeft &&
|
|
91
|
+
<react_native_1.View className={iconLeftClassName()}>
|
|
92
|
+
{iconLeft}
|
|
93
|
+
</react_native_1.View>}
|
|
94
|
+
|
|
95
|
+
{/* field */}
|
|
96
|
+
<react_native_1.TextInput ref={fieldRef} className={fieldClassName()} placeholderTextColor={placeholderColor !== null && placeholderColor !== void 0 ? placeholderColor : undefined} cursorColor={caretColor !== null && caretColor !== void 0 ? caretColor : undefined} selectionColor={caretColor !== null && caretColor !== void 0 ? caretColor : undefined} editable={!disabled} onFocus={onFieldFocus} onBlur={onFieldBlur} {...props}/>
|
|
97
|
+
|
|
98
|
+
{/* right icon */}
|
|
99
|
+
{iconRight &&
|
|
100
|
+
<react_native_1.View className={iconRightClassName()}>
|
|
101
|
+
{iconRight}
|
|
102
|
+
</react_native_1.View>}
|
|
103
|
+
</react_native_1.View>);
|
|
104
|
+
}
|
|
105
|
+
// extension
|
|
106
|
+
(function (TextField) {
|
|
107
|
+
// variants
|
|
108
|
+
TextField.variants = (0, tailwind_variants_1.tv)({
|
|
109
|
+
slots: {
|
|
110
|
+
container: 'nd-TextField',
|
|
111
|
+
field: 'nd-TextField-field',
|
|
112
|
+
iconLeft: 'nd-TextField-icon nd-TextField-iconLeft',
|
|
113
|
+
iconRight: 'nd-TextField-icon nd-TextField-iconRight'
|
|
114
|
+
},
|
|
115
|
+
variants: {
|
|
116
|
+
status: {
|
|
117
|
+
normal: { container: 'nd-TextField-normal' },
|
|
118
|
+
success: { container: 'nd-TextField-success' },
|
|
119
|
+
error: { container: 'nd-TextField-error' }
|
|
120
|
+
},
|
|
121
|
+
isDisabled: {
|
|
122
|
+
true: { container: 'nd-TextField-disabled' }
|
|
123
|
+
},
|
|
124
|
+
isEmpty: {
|
|
125
|
+
true: { container: 'nd-TextField-empty', field: 'nd-TextField-field-empty' }
|
|
126
|
+
},
|
|
127
|
+
isFocused: {
|
|
128
|
+
true: { container: 'nd-TextField-focused' }
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
defaultVariants: {
|
|
132
|
+
status: 'normal'
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
})(TextField || (exports.TextField = TextField = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Button"), exports);
|
|
18
|
+
__exportStar(require("./TextField"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './atomic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./atomic"), exports);
|