@brightlayer-ui/react-native-template-authentication-typescript 2.1.0 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +22 -17
  2. package/package.json +3 -3
  3. package/template/.bundle/config +2 -0
  4. package/template/.eslintrc.js +57 -0
  5. package/template/.prettierrc.js +7 -0
  6. package/template/.watchmanconfig +1 -0
  7. package/template/App.tsx +85 -47
  8. package/template/Gemfile +9 -0
  9. package/template/Gemfile.lock +107 -0
  10. package/template/README.md +79 -0
  11. package/template/__tests__/App.test.tsx +17 -0
  12. package/template/_gitignore +74 -0
  13. package/template/android/app/build.gradle +120 -0
  14. package/template/android/app/debug.keystore +0 -0
  15. package/template/android/app/proguard-rules.pro +10 -0
  16. package/template/android/app/src/debug/AndroidManifest.xml +9 -0
  17. package/template/android/app/src/main/AndroidManifest.xml +25 -0
  18. package/template/android/app/src/main/java/com/workflow/MainActivity.kt +28 -0
  19. package/template/android/app/src/main/java/com/workflow/MainApplication.kt +43 -0
  20. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  21. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  22. package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  23. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  24. package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  25. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  26. package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  27. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  28. package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  29. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  30. package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  31. package/template/android/app/src/main/res/values/strings.xml +3 -0
  32. package/template/android/app/src/main/res/values/styles.xml +9 -0
  33. package/template/android/build.gradle +21 -0
  34. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  35. package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  36. package/template/android/gradle.properties +41 -0
  37. package/template/android/gradlew +249 -0
  38. package/template/android/gradlew.bat +92 -0
  39. package/template/android/link-assets-manifest.json +25 -0
  40. package/template/android/settings.gradle +4 -0
  41. package/template/app.json +4 -0
  42. package/template/assets/fonts/OpenSans-Bold.ttf +0 -0
  43. package/template/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
  44. package/template/assets/fonts/OpenSans-Light.ttf +0 -0
  45. package/template/assets/fonts/OpenSans-Regular.ttf +0 -0
  46. package/template/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  47. package/template/assets/images/Logo.png +0 -0
  48. package/template/babel.config.js +1 -2
  49. package/template/eslint.config.mjs +10 -0
  50. package/template/index.js +11 -0
  51. package/template/ios/.xcode.env +11 -0
  52. package/template/ios/Podfile +40 -0
  53. package/template/ios/Podfile.lock +1496 -0
  54. package/template/ios/blankTemplate/AppDelegate.h +6 -0
  55. package/template/ios/blankTemplate/AppDelegate.mm +31 -0
  56. package/template/ios/blankTemplate/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  57. package/template/ios/blankTemplate/Images.xcassets/Contents.json +6 -0
  58. package/template/ios/blankTemplate/Info.plist +75 -0
  59. package/template/ios/blankTemplate/LaunchScreen.storyboard +47 -0
  60. package/template/ios/blankTemplate/PrivacyInfo.xcprivacy +37 -0
  61. package/template/ios/blankTemplate/main.m +10 -0
  62. package/template/ios/blankTemplate.xcodeproj/project.pbxproj +741 -0
  63. package/template/ios/blankTemplate.xcodeproj/xcshareddata/xcschemes/blankTemplate.xcscheme +88 -0
  64. package/template/ios/blankTemplate.xcworkspace/contents.xcworkspacedata +10 -0
  65. package/template/ios/blankTemplate.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  66. package/template/ios/blankTemplateTests/Info.plist +24 -0
  67. package/template/ios/blankTemplateTests/blankTemplateTests.m +66 -0
  68. package/template/ios/link-assets-manifest.json +25 -0
  69. package/template/jest.config.js +12 -0
  70. package/template/jestSetupFile.js +31 -10
  71. package/template/metro.config.js +7 -25
  72. package/template/package.json +71 -0
  73. package/template/src/actions/AuthUIActions.tsx +10 -11
  74. package/template/src/actions/RegistrationUIActions.tsx +37 -30
  75. package/template/src/assets/images/eaton_stacked_logo.png +0 -0
  76. package/template/src/components/AuthCustomScreen.tsx +50 -0
  77. package/template/src/components/CustomScreen.tsx +77 -0
  78. package/template/src/components/DebugComponent.tsx +49 -0
  79. package/template/src/components/ForgotPasswordScreenBaseExample.tsx +42 -0
  80. package/template/src/components/ResetPasswordScreenBaseExample.tsx +41 -0
  81. package/template/src/components/UserMenuExample.tsx +117 -0
  82. package/template/src/contexts/AppContextProvider.tsx +28 -0
  83. package/template/src/contexts/ThemeContext.ts +15 -0
  84. package/template/src/navigation/index.tsx +205 -22
  85. package/template/src/navigation/navigation-drawer.tsx +44 -26
  86. package/template/src/screens/ChangePassword.tsx +15 -0
  87. package/template/src/screens/Dashboard.tsx +137 -0
  88. package/template/src/screens/Homepage.tsx +135 -0
  89. package/template/src/screens/Locations.tsx +137 -0
  90. package/template/src/screens/Login.tsx +17 -0
  91. package/template/src/screens/Registration.tsx +4 -0
  92. package/template/src/screens/RegistrationInvite.tsx +5 -0
  93. package/template/src/screens/index.ts +12 -0
  94. package/template/src/store/local-storage.ts +4 -4
  95. package/template/translations/dictionary/chinese.ts +29 -0
  96. package/template/translations/dictionary/english.ts +29 -0
  97. package/template/translations/dictionary/french.ts +29 -0
  98. package/template/translations/dictionary/index.ts +19 -0
  99. package/template/translations/dictionary/portuguese.ts +29 -0
  100. package/template/translations/dictionary/spanish.ts +29 -0
  101. package/template/translations/dictionary/types.ts +27 -0
  102. package/template/translations/i18n.ts +58 -0
  103. package/template/tsconfig.json +60 -0
  104. package/template/yarn.lock +7346 -0
  105. package/template.config.js +4 -0
  106. package/CHANGELOG.md +0 -69
  107. package/dependencies.json +0 -31
  108. package/images/Logo.svg +0 -11
  109. package/template/__mocks__/svgMock.js +0 -8
  110. package/template/react-native.config.js +0 -3
  111. package/template/src/navigation/DeepLinking.ts +0 -62
  112. package/template/src/screens/home.tsx +0 -198
  113. package/template/src/screens/index.tsx +0 -3
  114. package/template/src/screens/pageOne.tsx +0 -91
  115. package/template/src/screens/pageTwo.tsx +0 -92
  116. /package/{fonts → template/android/app/src/main/assets/fonts}/OpenSans-Bold.ttf +0 -0
  117. /package/{fonts → template/android/app/src/main/assets/fonts}/OpenSans-ExtraBold.ttf +0 -0
  118. /package/{fonts → template/android/app/src/main/assets/fonts}/OpenSans-Light.ttf +0 -0
  119. /package/{fonts → template/android/app/src/main/assets/fonts}/OpenSans-Regular.ttf +0 -0
  120. /package/{fonts → template/android/app/src/main/assets/fonts}/OpenSans-SemiBold.ttf +0 -0
@@ -0,0 +1,92 @@
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+
17
+ @if "%DEBUG%"=="" @echo off
18
+ @rem ##########################################################################
19
+ @rem
20
+ @rem Gradle startup script for Windows
21
+ @rem
22
+ @rem ##########################################################################
23
+
24
+ @rem Set local scope for the variables with windows NT shell
25
+ if "%OS%"=="Windows_NT" setlocal
26
+
27
+ set DIRNAME=%~dp0
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
30
+ set APP_BASE_NAME=%~n0
31
+ set APP_HOME=%DIRNAME%
32
+
33
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
+
36
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
+
39
+ @rem Find java.exe
40
+ if defined JAVA_HOME goto findJavaFromJavaHome
41
+
42
+ set JAVA_EXE=java.exe
43
+ %JAVA_EXE% -version >NUL 2>&1
44
+ if %ERRORLEVEL% equ 0 goto execute
45
+
46
+ echo. 1>&2
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
+ echo. 1>&2
49
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
+ echo location of your Java installation. 1>&2
51
+
52
+ goto fail
53
+
54
+ :findJavaFromJavaHome
55
+ set JAVA_HOME=%JAVA_HOME:"=%
56
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
+
58
+ if exist "%JAVA_EXE%" goto execute
59
+
60
+ echo. 1>&2
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
+ echo. 1>&2
63
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
+ echo location of your Java installation. 1>&2
65
+
66
+ goto fail
67
+
68
+ :execute
69
+ @rem Setup the command line
70
+
71
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
+
73
+
74
+ @rem Execute Gradle
75
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
+
77
+ :end
78
+ @rem End local scope for the variables with windows NT shell
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
80
+
81
+ :fail
82
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
+ rem the _cmd.exe /c_ return code!
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
88
+
89
+ :mainEnd
90
+ if "%OS%"=="Windows_NT" endlocal
91
+
92
+ :omega
@@ -0,0 +1,25 @@
1
+ {
2
+ "migIndex": 1,
3
+ "data": [
4
+ {
5
+ "path": "assets/fonts/OpenSans-Bold.ttf",
6
+ "sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
7
+ },
8
+ {
9
+ "path": "assets/fonts/OpenSans-ExtraBold.ttf",
10
+ "sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
11
+ },
12
+ {
13
+ "path": "assets/fonts/OpenSans-Light.ttf",
14
+ "sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
15
+ },
16
+ {
17
+ "path": "assets/fonts/OpenSans-Regular.ttf",
18
+ "sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
19
+ },
20
+ {
21
+ "path": "assets/fonts/OpenSans-SemiBold.ttf",
22
+ "sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,4 @@
1
+ rootProject.name = 'blankTemplate'
2
+ apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
+ include ':app'
4
+ includeBuild('../node_modules/@react-native/gradle-plugin')
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "blankTemplate",
3
+ "displayName": "blankTemplate"
4
+ }
Binary file
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
- presets: ['module:metro-react-native-babel-preset'],
3
- // react-native-reanimated/plugin must be listed last
2
+ presets: ['module:@react-native/babel-preset'],
4
3
  plugins: ['react-native-reanimated/plugin'],
5
4
  };
@@ -0,0 +1,10 @@
1
+ import globals from "globals";
2
+ import tseslint from "typescript-eslint";
3
+ import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
4
+
5
+
6
+ export default [
7
+ {languageOptions: { globals: globals.browser }},
8
+ ...tseslint.configs.recommended,
9
+ pluginReactConfig,
10
+ ];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @format
3
+ */
4
+
5
+ import 'intl-pluralrules';
6
+ import { AppRegistry } from 'react-native';
7
+ import App from './App';
8
+ import { name as appName } from './app.json';
9
+ import 'react-native-gesture-handler';
10
+
11
+ AppRegistry.registerComponent(appName, () => App);
@@ -0,0 +1,11 @@
1
+ # This `.xcode.env` file is versioned and is used to source the environment
2
+ # used when running script phases inside Xcode.
3
+ # To customize your local environment, you can create an `.xcode.env.local`
4
+ # file that is not versioned.
5
+
6
+ # NODE_BINARY variable contains the PATH to the node executable.
7
+ #
8
+ # Customize the NODE_BINARY variable here.
9
+ # For example, to use nvm with brew, add the following line
10
+ # . "$(brew --prefix nvm)/nvm.sh" --no-use
11
+ export NODE_BINARY=$(command -v node)
@@ -0,0 +1,40 @@
1
+ # Resolve react_native_pods.rb with node to allow for hoisting
2
+ require Pod::Executable.execute_command('node', ['-p',
3
+ 'require.resolve(
4
+ "react-native/scripts/react_native_pods.rb",
5
+ {paths: [process.argv[1]]},
6
+ )', __dir__]).strip
7
+
8
+ platform :ios, min_ios_version_supported
9
+ prepare_react_native_project!
10
+
11
+ linkage = ENV['USE_FRAMEWORKS']
12
+ if linkage != nil
13
+ Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
14
+ use_frameworks! :linkage => linkage.to_sym
15
+ end
16
+
17
+ target 'blankTemplate' do
18
+ config = use_native_modules!
19
+
20
+ use_react_native!(
21
+ :path => config[:reactNativePath],
22
+ # An absolute path to your application root.
23
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
24
+ )
25
+
26
+ target 'blankTemplateTests' do
27
+ inherit! :complete
28
+ # Pods for testing
29
+ end
30
+
31
+ post_install do |installer|
32
+ # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
33
+ react_native_post_install(
34
+ installer,
35
+ config[:reactNativePath],
36
+ :mac_catalyst_enabled => false,
37
+ # :ccache_enabled => true
38
+ )
39
+ end
40
+ end