@regulaforensics/ionic-native-document-reader 6.6.0 → 6.7.0

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 (122) hide show
  1. package/example/package.json +3 -3
  2. package/example/src/app/home/home.page.html +2 -2
  3. package/example/src/app/home/home.page.scss +8 -0
  4. package/example/src/app/home/home.page.ts +19 -10
  5. package/index.d.ts +92 -10
  6. package/index.js +181 -15
  7. package/ngx/index.d.ts +92 -10
  8. package/ngx/index.js +187 -19
  9. package/package.json +1 -1
  10. package/reactExample/README.md +24 -0
  11. package/reactExample/android/app/build/.npmkeep +0 -0
  12. package/reactExample/android/app/build.gradle +51 -0
  13. package/reactExample/android/app/proguard-rules.pro +21 -0
  14. package/reactExample/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
  15. package/reactExample/android/app/src/main/AndroidManifest.xml +45 -0
  16. package/reactExample/android/app/src/main/java/com/regula/documentreader/MainActivity.java +5 -0
  17. package/reactExample/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
  18. package/reactExample/android/app/src/main/res/drawable/splash.png +0 -0
  19. package/reactExample/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  20. package/reactExample/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  21. package/reactExample/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  22. package/reactExample/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  23. package/reactExample/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  24. package/reactExample/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  25. package/reactExample/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  26. package/reactExample/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  27. package/reactExample/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  28. package/reactExample/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  29. package/reactExample/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
  30. package/reactExample/android/app/src/main/res/layout/activity_main.xml +12 -0
  31. package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  32. package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  33. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  34. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  35. package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  36. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  37. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  38. package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  39. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  40. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  41. package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  42. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  43. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  44. package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  45. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  46. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  47. package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  48. package/reactExample/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
  49. package/reactExample/android/app/src/main/res/values/strings.xml +7 -0
  50. package/reactExample/android/app/src/main/res/values/styles.xml +22 -0
  51. package/reactExample/android/app/src/main/res/xml/file_paths.xml +5 -0
  52. package/reactExample/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
  53. package/reactExample/android/build.gradle +26 -0
  54. package/reactExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  55. package/reactExample/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  56. package/reactExample/android/gradle.properties +24 -0
  57. package/reactExample/android/gradlew +185 -0
  58. package/reactExample/android/gradlew.bat +89 -0
  59. package/reactExample/android/settings.gradle +5 -0
  60. package/reactExample/android/variables.gradle +14 -0
  61. package/reactExample/capacitor.config.ts +10 -0
  62. package/reactExample/ionic.config.json +7 -0
  63. package/reactExample/ios/App/App/App.entitlements +11 -0
  64. package/reactExample/ios/App/App/AppDelegate.swift +60 -0
  65. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png +0 -0
  66. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png +0 -0
  67. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png +0 -0
  68. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png +0 -0
  69. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png +0 -0
  70. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png +0 -0
  71. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png +0 -0
  72. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png +0 -0
  73. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png +0 -0
  74. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png +0 -0
  75. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png +0 -0
  76. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png +0 -0
  77. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  78. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png +0 -0
  79. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png +0 -0
  80. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png +0 -0
  81. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png +0 -0
  82. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png +0 -0
  83. package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +116 -0
  84. package/reactExample/ios/App/App/Assets.xcassets/Contents.json +6 -0
  85. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
  86. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  87. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  88. package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  89. package/reactExample/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
  90. package/reactExample/ios/App/App/Base.lproj/Main.storyboard +19 -0
  91. package/reactExample/ios/App/App/Info.plist +70 -0
  92. package/reactExample/ios/App/App/capacitor.config.json +6 -0
  93. package/reactExample/ios/App/App/config.xml +19 -0
  94. package/reactExample/ios/App/App.xcodeproj/project.pbxproj +422 -0
  95. package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  96. package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  97. package/reactExample/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
  98. package/reactExample/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  99. package/reactExample/ios/App/Podfile +23 -0
  100. package/reactExample/package.json +84 -0
  101. package/reactExample/public/assets/icon/favicon.png +0 -0
  102. package/reactExample/public/assets/icon/icon.png +0 -0
  103. package/reactExample/public/assets/img/id.png +0 -0
  104. package/reactExample/public/assets/img/portrait.png +0 -0
  105. package/reactExample/public/assets/shapes.svg +1 -0
  106. package/reactExample/public/index.html +114 -0
  107. package/reactExample/public/manifest.json +21 -0
  108. package/reactExample/src/App.test.tsx +8 -0
  109. package/reactExample/src/App.tsx +42 -0
  110. package/reactExample/src/assets/img/id.png +0 -0
  111. package/reactExample/src/assets/img/portrait.png +0 -0
  112. package/reactExample/src/index.tsx +22 -0
  113. package/reactExample/src/pages/Home.tsx +340 -0
  114. package/reactExample/src/react-app-env.d.ts +1 -0
  115. package/reactExample/src/reportWebVitals.ts +15 -0
  116. package/reactExample/src/service-worker.ts +80 -0
  117. package/reactExample/src/serviceWorkerRegistration.ts +142 -0
  118. package/reactExample/src/setupTests.ts +14 -0
  119. package/reactExample/src/theme/variables.css +236 -0
  120. package/reactExample/tsconfig.json +27 -0
  121. package/index.ts +0 -7366
  122. package/ngx/index.metadata.json +0 -1
@@ -0,0 +1,142 @@
1
+ // This optional code is used to register a service worker.
2
+ // register() is not called by default.
3
+
4
+ // This lets the app load faster on subsequent visits in production, and gives
5
+ // it offline capabilities. However, it also means that developers (and users)
6
+ // will only see deployed updates on subsequent visits to a page, after all the
7
+ // existing tabs open on the page have been closed, since previously cached
8
+ // resources are updated in the background.
9
+
10
+ // To learn more about the benefits of this model and instructions on how to
11
+ // opt-in, read https://cra.link/PWA
12
+
13
+ const isLocalhost = Boolean(
14
+ window.location.hostname === 'localhost' ||
15
+ // [::1] is the IPv6 localhost address.
16
+ window.location.hostname === '[::1]' ||
17
+ // 127.0.0.0/8 are considered localhost for IPv4.
18
+ window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)
19
+ );
20
+
21
+ type Config = {
22
+ onSuccess?: (registration: ServiceWorkerRegistration) => void;
23
+ onUpdate?: (registration: ServiceWorkerRegistration) => void;
24
+ };
25
+
26
+ export function register(config?: Config) {
27
+ if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
28
+ // The URL constructor is available in all browsers that support SW.
29
+ const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
30
+ if (publicUrl.origin !== window.location.origin) {
31
+ // Our service worker won't work if PUBLIC_URL is on a different origin
32
+ // from what our page is served on. This might happen if a CDN is used to
33
+ // serve assets; see https://github.com/facebook/create-react-app/issues/2374
34
+ return;
35
+ }
36
+
37
+ window.addEventListener('load', () => {
38
+ const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
39
+
40
+ if (isLocalhost) {
41
+ // This is running on localhost. Let's check if a service worker still exists or not.
42
+ checkValidServiceWorker(swUrl, config);
43
+
44
+ // Add some additional logging to localhost, pointing developers to the
45
+ // service worker/PWA documentation.
46
+ navigator.serviceWorker.ready.then(() => {
47
+ console.log(
48
+ 'This web app is being served cache-first by a service ' +
49
+ 'worker. To learn more, visit https://cra.link/PWA'
50
+ );
51
+ });
52
+ } else {
53
+ // Is not localhost. Just register service worker
54
+ registerValidSW(swUrl, config);
55
+ }
56
+ });
57
+ }
58
+ }
59
+
60
+ function registerValidSW(swUrl: string, config?: Config) {
61
+ navigator.serviceWorker
62
+ .register(swUrl)
63
+ .then((registration) => {
64
+ registration.onupdatefound = () => {
65
+ const installingWorker = registration.installing;
66
+ if (installingWorker == null) {
67
+ return;
68
+ }
69
+ installingWorker.onstatechange = () => {
70
+ if (installingWorker.state === 'installed') {
71
+ if (navigator.serviceWorker.controller) {
72
+ // At this point, the updated precached content has been fetched,
73
+ // but the previous service worker will still serve the older
74
+ // content until all client tabs are closed.
75
+ console.log(
76
+ 'New content is available and will be used when all ' +
77
+ 'tabs for this page are closed. See https://cra.link/PWA.'
78
+ );
79
+
80
+ // Execute callback
81
+ if (config && config.onUpdate) {
82
+ config.onUpdate(registration);
83
+ }
84
+ } else {
85
+ // At this point, everything has been precached.
86
+ // It's the perfect time to display a
87
+ // "Content is cached for offline use." message.
88
+ console.log('Content is cached for offline use.');
89
+
90
+ // Execute callback
91
+ if (config && config.onSuccess) {
92
+ config.onSuccess(registration);
93
+ }
94
+ }
95
+ }
96
+ };
97
+ };
98
+ })
99
+ .catch((error) => {
100
+ console.error('Error during service worker registration:', error);
101
+ });
102
+ }
103
+
104
+ function checkValidServiceWorker(swUrl: string, config?: Config) {
105
+ // Check if the service worker can be found. If it can't reload the page.
106
+ fetch(swUrl, {
107
+ headers: { 'Service-Worker': 'script' },
108
+ })
109
+ .then((response) => {
110
+ // Ensure service worker exists, and that we really are getting a JS file.
111
+ const contentType = response.headers.get('content-type');
112
+ if (
113
+ response.status === 404 ||
114
+ (contentType != null && contentType.indexOf('javascript') === -1)
115
+ ) {
116
+ // No service worker found. Probably a different app. Reload the page.
117
+ navigator.serviceWorker.ready.then((registration) => {
118
+ registration.unregister().then(() => {
119
+ window.location.reload();
120
+ });
121
+ });
122
+ } else {
123
+ // Service worker found. Proceed as normal.
124
+ registerValidSW(swUrl, config);
125
+ }
126
+ })
127
+ .catch(() => {
128
+ console.log('No internet connection found. App is running in offline mode.');
129
+ });
130
+ }
131
+
132
+ export function unregister() {
133
+ if ('serviceWorker' in navigator) {
134
+ navigator.serviceWorker.ready
135
+ .then((registration) => {
136
+ registration.unregister();
137
+ })
138
+ .catch((error) => {
139
+ console.error(error.message);
140
+ });
141
+ }
142
+ }
@@ -0,0 +1,14 @@
1
+ // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
+ // allows you to do things like:
3
+ // expect(element).toHaveTextContent(/react/i)
4
+ // learn more: https://github.com/testing-library/jest-dom
5
+ import '@testing-library/jest-dom/extend-expect';
6
+
7
+ // Mock matchmedia
8
+ window.matchMedia = window.matchMedia || function() {
9
+ return {
10
+ matches: false,
11
+ addListener: function() {},
12
+ removeListener: function() {}
13
+ };
14
+ };
@@ -0,0 +1,236 @@
1
+ /* Ionic Variables and Theming. For more info, please see:
2
+ http://ionicframework.com/docs/theming/ */
3
+
4
+ /** Ionic CSS Variables **/
5
+ :root {
6
+ /** primary **/
7
+ --ion-color-primary: #3880ff;
8
+ --ion-color-primary-rgb: 56, 128, 255;
9
+ --ion-color-primary-contrast: #ffffff;
10
+ --ion-color-primary-contrast-rgb: 255, 255, 255;
11
+ --ion-color-primary-shade: #3171e0;
12
+ --ion-color-primary-tint: #4c8dff;
13
+
14
+ /** secondary **/
15
+ --ion-color-secondary: #3dc2ff;
16
+ --ion-color-secondary-rgb: 61, 194, 255;
17
+ --ion-color-secondary-contrast: #ffffff;
18
+ --ion-color-secondary-contrast-rgb: 255, 255, 255;
19
+ --ion-color-secondary-shade: #36abe0;
20
+ --ion-color-secondary-tint: #50c8ff;
21
+
22
+ /** tertiary **/
23
+ --ion-color-tertiary: #5260ff;
24
+ --ion-color-tertiary-rgb: 82, 96, 255;
25
+ --ion-color-tertiary-contrast: #ffffff;
26
+ --ion-color-tertiary-contrast-rgb: 255, 255, 255;
27
+ --ion-color-tertiary-shade: #4854e0;
28
+ --ion-color-tertiary-tint: #6370ff;
29
+
30
+ /** success **/
31
+ --ion-color-success: #2dd36f;
32
+ --ion-color-success-rgb: 45, 211, 111;
33
+ --ion-color-success-contrast: #ffffff;
34
+ --ion-color-success-contrast-rgb: 255, 255, 255;
35
+ --ion-color-success-shade: #28ba62;
36
+ --ion-color-success-tint: #42d77d;
37
+
38
+ /** warning **/
39
+ --ion-color-warning: #ffc409;
40
+ --ion-color-warning-rgb: 255, 196, 9;
41
+ --ion-color-warning-contrast: #000000;
42
+ --ion-color-warning-contrast-rgb: 0, 0, 0;
43
+ --ion-color-warning-shade: #e0ac08;
44
+ --ion-color-warning-tint: #ffca22;
45
+
46
+ /** danger **/
47
+ --ion-color-danger: #eb445a;
48
+ --ion-color-danger-rgb: 235, 68, 90;
49
+ --ion-color-danger-contrast: #ffffff;
50
+ --ion-color-danger-contrast-rgb: 255, 255, 255;
51
+ --ion-color-danger-shade: #cf3c4f;
52
+ --ion-color-danger-tint: #ed576b;
53
+
54
+ /** dark **/
55
+ --ion-color-dark: #222428;
56
+ --ion-color-dark-rgb: 34, 36, 40;
57
+ --ion-color-dark-contrast: #ffffff;
58
+ --ion-color-dark-contrast-rgb: 255, 255, 255;
59
+ --ion-color-dark-shade: #1e2023;
60
+ --ion-color-dark-tint: #383a3e;
61
+
62
+ /** medium **/
63
+ --ion-color-medium: #92949c;
64
+ --ion-color-medium-rgb: 146, 148, 156;
65
+ --ion-color-medium-contrast: #ffffff;
66
+ --ion-color-medium-contrast-rgb: 255, 255, 255;
67
+ --ion-color-medium-shade: #808289;
68
+ --ion-color-medium-tint: #9d9fa6;
69
+
70
+ /** light **/
71
+ --ion-color-light: #f4f5f8;
72
+ --ion-color-light-rgb: 244, 245, 248;
73
+ --ion-color-light-contrast: #000000;
74
+ --ion-color-light-contrast-rgb: 0, 0, 0;
75
+ --ion-color-light-shade: #d7d8da;
76
+ --ion-color-light-tint: #f5f6f9;
77
+ }
78
+
79
+ @media (prefers-color-scheme: dark) {
80
+ /*
81
+ * Dark Colors
82
+ * -------------------------------------------
83
+ */
84
+
85
+ body {
86
+ --ion-color-primary: #428cff;
87
+ --ion-color-primary-rgb: 66,140,255;
88
+ --ion-color-primary-contrast: #ffffff;
89
+ --ion-color-primary-contrast-rgb: 255,255,255;
90
+ --ion-color-primary-shade: #3a7be0;
91
+ --ion-color-primary-tint: #5598ff;
92
+
93
+ --ion-color-secondary: #50c8ff;
94
+ --ion-color-secondary-rgb: 80,200,255;
95
+ --ion-color-secondary-contrast: #ffffff;
96
+ --ion-color-secondary-contrast-rgb: 255,255,255;
97
+ --ion-color-secondary-shade: #46b0e0;
98
+ --ion-color-secondary-tint: #62ceff;
99
+
100
+ --ion-color-tertiary: #6a64ff;
101
+ --ion-color-tertiary-rgb: 106,100,255;
102
+ --ion-color-tertiary-contrast: #ffffff;
103
+ --ion-color-tertiary-contrast-rgb: 255,255,255;
104
+ --ion-color-tertiary-shade: #5d58e0;
105
+ --ion-color-tertiary-tint: #7974ff;
106
+
107
+ --ion-color-success: #2fdf75;
108
+ --ion-color-success-rgb: 47,223,117;
109
+ --ion-color-success-contrast: #000000;
110
+ --ion-color-success-contrast-rgb: 0,0,0;
111
+ --ion-color-success-shade: #29c467;
112
+ --ion-color-success-tint: #44e283;
113
+
114
+ --ion-color-warning: #ffd534;
115
+ --ion-color-warning-rgb: 255,213,52;
116
+ --ion-color-warning-contrast: #000000;
117
+ --ion-color-warning-contrast-rgb: 0,0,0;
118
+ --ion-color-warning-shade: #e0bb2e;
119
+ --ion-color-warning-tint: #ffd948;
120
+
121
+ --ion-color-danger: #ff4961;
122
+ --ion-color-danger-rgb: 255,73,97;
123
+ --ion-color-danger-contrast: #ffffff;
124
+ --ion-color-danger-contrast-rgb: 255,255,255;
125
+ --ion-color-danger-shade: #e04055;
126
+ --ion-color-danger-tint: #ff5b71;
127
+
128
+ --ion-color-dark: #f4f5f8;
129
+ --ion-color-dark-rgb: 244,245,248;
130
+ --ion-color-dark-contrast: #000000;
131
+ --ion-color-dark-contrast-rgb: 0,0,0;
132
+ --ion-color-dark-shade: #d7d8da;
133
+ --ion-color-dark-tint: #f5f6f9;
134
+
135
+ --ion-color-medium: #989aa2;
136
+ --ion-color-medium-rgb: 152,154,162;
137
+ --ion-color-medium-contrast: #000000;
138
+ --ion-color-medium-contrast-rgb: 0,0,0;
139
+ --ion-color-medium-shade: #86888f;
140
+ --ion-color-medium-tint: #a2a4ab;
141
+
142
+ --ion-color-light: #222428;
143
+ --ion-color-light-rgb: 34,36,40;
144
+ --ion-color-light-contrast: #ffffff;
145
+ --ion-color-light-contrast-rgb: 255,255,255;
146
+ --ion-color-light-shade: #1e2023;
147
+ --ion-color-light-tint: #383a3e;
148
+ }
149
+
150
+ /*
151
+ * iOS Dark Theme
152
+ * -------------------------------------------
153
+ */
154
+
155
+ .ios body {
156
+ --ion-background-color: #000000;
157
+ --ion-background-color-rgb: 0,0,0;
158
+
159
+ --ion-text-color: #ffffff;
160
+ --ion-text-color-rgb: 255,255,255;
161
+
162
+ --ion-color-step-50: #0d0d0d;
163
+ --ion-color-step-100: #1a1a1a;
164
+ --ion-color-step-150: #262626;
165
+ --ion-color-step-200: #333333;
166
+ --ion-color-step-250: #404040;
167
+ --ion-color-step-300: #4d4d4d;
168
+ --ion-color-step-350: #595959;
169
+ --ion-color-step-400: #666666;
170
+ --ion-color-step-450: #737373;
171
+ --ion-color-step-500: #808080;
172
+ --ion-color-step-550: #8c8c8c;
173
+ --ion-color-step-600: #999999;
174
+ --ion-color-step-650: #a6a6a6;
175
+ --ion-color-step-700: #b3b3b3;
176
+ --ion-color-step-750: #bfbfbf;
177
+ --ion-color-step-800: #cccccc;
178
+ --ion-color-step-850: #d9d9d9;
179
+ --ion-color-step-900: #e6e6e6;
180
+ --ion-color-step-950: #f2f2f2;
181
+
182
+ --ion-item-background: #000000;
183
+
184
+ --ion-card-background: #1c1c1d;
185
+ }
186
+
187
+ .ios ion-modal {
188
+ --ion-background-color: var(--ion-color-step-100);
189
+ --ion-toolbar-background: var(--ion-color-step-150);
190
+ --ion-toolbar-border-color: var(--ion-color-step-250);
191
+ }
192
+
193
+
194
+ /*
195
+ * Material Design Dark Theme
196
+ * -------------------------------------------
197
+ */
198
+
199
+ .md body {
200
+ --ion-background-color: #121212;
201
+ --ion-background-color-rgb: 18,18,18;
202
+
203
+ --ion-text-color: #ffffff;
204
+ --ion-text-color-rgb: 255,255,255;
205
+
206
+ --ion-border-color: #222222;
207
+
208
+ --ion-color-step-50: #1e1e1e;
209
+ --ion-color-step-100: #2a2a2a;
210
+ --ion-color-step-150: #363636;
211
+ --ion-color-step-200: #414141;
212
+ --ion-color-step-250: #4d4d4d;
213
+ --ion-color-step-300: #595959;
214
+ --ion-color-step-350: #656565;
215
+ --ion-color-step-400: #717171;
216
+ --ion-color-step-450: #7d7d7d;
217
+ --ion-color-step-500: #898989;
218
+ --ion-color-step-550: #949494;
219
+ --ion-color-step-600: #a0a0a0;
220
+ --ion-color-step-650: #acacac;
221
+ --ion-color-step-700: #b8b8b8;
222
+ --ion-color-step-750: #c4c4c4;
223
+ --ion-color-step-800: #d0d0d0;
224
+ --ion-color-step-850: #dbdbdb;
225
+ --ion-color-step-900: #e7e7e7;
226
+ --ion-color-step-950: #f3f3f3;
227
+
228
+ --ion-item-background: #1e1e1e;
229
+
230
+ --ion-toolbar-background: #1f1f1f;
231
+
232
+ --ion-tab-bar-background: #1f1f1f;
233
+
234
+ --ion-card-background: #1e1e1e;
235
+ }
236
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx",
22
+ "experimentalDecorators": true,
23
+ },
24
+ "include": [
25
+ "src"
26
+ ]
27
+ }