nx-react-native-cli 1.0.9 → 1.0.10
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/lib/index.cjs +1 -1
- package/package.json +1 -1
- package/contents/.eslintrc.json +0 -293
- package/contents/.husky/pre-commit +0 -5
- package/contents/.husky/pre-push +0 -15
- package/contents/.nvmrc +0 -1
- package/contents/.prettierignore +0 -8
- package/contents/.prettierrc +0 -13
- package/contents/.ruby-version +0 -1
- package/contents/.vscode/extensions.json +0 -10
- package/contents/.vscode/settings.json +0 -18
- package/contents/apps/mobile/.env.template +0 -3
- package/contents/apps/mobile/.eslintrc.json +0 -34
- package/contents/apps/mobile/Gemfile +0 -11
- package/contents/apps/mobile/android/app/build.gradle +0 -164
- package/contents/apps/mobile/android/app/src/dev/res/values/strings.xml +0 -3
- package/contents/apps/mobile/android/app/src/production/res/values/strings.xml +0 -3
- package/contents/apps/mobile/android/build.gradle +0 -34
- package/contents/apps/mobile/babel.config.json +0 -14
- package/contents/apps/mobile/fastlane/.env.template +0 -24
- package/contents/apps/mobile/fastlane/Fastfile +0 -303
- package/contents/apps/mobile/fastlane/Matchfile +0 -5
- package/contents/apps/mobile/fastlane/Pluginfile +0 -6
- package/contents/apps/mobile/fastlane/README.md +0 -65
- package/contents/apps/mobile/package.json +0 -77
- package/contents/apps/mobile/project.json +0 -102
- package/contents/apps/mobile/src/app/index.tsx +0 -68
- package/contents/apps/mobile/src/components/atoms/BottomSheet/bottom-sheet.component.tsx +0 -145
- package/contents/apps/mobile/src/components/atoms/BottomSheet/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Button/button.component.tsx +0 -55
- package/contents/apps/mobile/src/components/atoms/Button/index.ts +0 -2
- package/contents/apps/mobile/src/components/atoms/Button/outlined-button.component.tsx +0 -59
- package/contents/apps/mobile/src/components/atoms/Divider/divider-component.tsx +0 -13
- package/contents/apps/mobile/src/components/atoms/Divider/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/InputLayout/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/InputLayout/input-layout.component.tsx +0 -34
- package/contents/apps/mobile/src/components/atoms/ListLoadingItem/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/ListLoadingItem/list-loading-item.component.tsx +0 -56
- package/contents/apps/mobile/src/components/atoms/Modal/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Modal/modal.component.tsx +0 -58
- package/contents/apps/mobile/src/components/atoms/ScreenLoader/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/ScreenLoader/screen-loader.component.tsx +0 -17
- package/contents/apps/mobile/src/components/atoms/Skeleton/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Skeleton/skeleton.component.tsx +0 -42
- package/contents/apps/mobile/src/components/atoms/Text/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Text/text.component.tsx +0 -23
- package/contents/apps/mobile/src/components/atoms/TextInput/constants.ts +0 -43
- package/contents/apps/mobile/src/components/atoms/TextInput/index.ts +0 -2
- package/contents/apps/mobile/src/components/atoms/TextInput/text-input.component.tsx +0 -137
- package/contents/apps/mobile/src/components/atoms/index.ts +0 -10
- package/contents/apps/mobile/src/components/index.ts +0 -3
- package/contents/apps/mobile/src/components/molecules/BackButton/back-button.component.tsx +0 -58
- package/contents/apps/mobile/src/components/molecules/BackButton/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/BottomActionsContainer/BottomActionsContainer.component.tsx +0 -28
- package/contents/apps/mobile/src/components/molecules/BottomActionsContainer/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenContainer/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenContainer/screen-container.component.tsx +0 -100
- package/contents/apps/mobile/src/components/molecules/ScreenHeader/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenHeader/screen-header.component.tsx +0 -71
- package/contents/apps/mobile/src/components/molecules/StorageManager/StorageManager.component.tsx +0 -18
- package/contents/apps/mobile/src/components/molecules/StorageManager/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/index.ts +0 -5
- package/contents/apps/mobile/src/components/organisms/index.ts +0 -1
- package/contents/apps/mobile/src/config/index.ts +0 -13
- package/contents/apps/mobile/src/dimens/index.ts +0 -1
- package/contents/apps/mobile/src/env.d.ts +0 -17
- package/contents/apps/mobile/src/hooks/index.ts +0 -9
- package/contents/apps/mobile/src/hooks/useAppState.hook.tsx +0 -20
- package/contents/apps/mobile/src/hooks/useApplicationDimensions.hook.tsx +0 -10
- package/contents/apps/mobile/src/hooks/useDebounce.hook.ts +0 -11
- package/contents/apps/mobile/src/hooks/useGetLayoutHeight.hook.tsx +0 -27
- package/contents/apps/mobile/src/hooks/useGetLayoutWidth.hook.tsx +0 -27
- package/contents/apps/mobile/src/hooks/useNavigation.hook.tsx +0 -8
- package/contents/apps/mobile/src/hooks/useShakeAnimation.hook.tsx +0 -32
- package/contents/apps/mobile/src/hooks/useTextInputChangeFocus.hook.tsx +0 -12
- package/contents/apps/mobile/src/hooks/useThrottle.hook.ts +0 -11
- package/contents/apps/mobile/src/icons/arrow-left.svg +0 -3
- package/contents/apps/mobile/src/icons/checkbox-active.svg +0 -4
- package/contents/apps/mobile/src/icons/checkbox-unactive.svg +0 -4
- package/contents/apps/mobile/src/icons/close.svg +0 -3
- package/contents/apps/mobile/src/icons/download.svg +0 -4
- package/contents/apps/mobile/src/icons/email.svg +0 -10
- package/contents/apps/mobile/src/icons/eye-slash.svg +0 -11
- package/contents/apps/mobile/src/icons/eye.svg +0 -4
- package/contents/apps/mobile/src/icons/gear.svg +0 -4
- package/contents/apps/mobile/src/icons/home.svg +0 -3
- package/contents/apps/mobile/src/icons/index.ts +0 -33
- package/contents/apps/mobile/src/icons/pencil.svg +0 -3
- package/contents/apps/mobile/src/icons/phone.svg +0 -3
- package/contents/apps/mobile/src/icons/user-circle.svg +0 -3
- package/contents/apps/mobile/src/icons/user.svg +0 -4
- package/contents/apps/mobile/src/icons/warning.svg +0 -3
- package/contents/apps/mobile/src/main.tsx +0 -5
- package/contents/apps/mobile/src/routes/index.tsx +0 -65
- package/contents/apps/mobile/src/routes/privateRoutes.tsx +0 -32
- package/contents/apps/mobile/src/routes/publicRoutes.tsx +0 -26
- package/contents/apps/mobile/src/routes/routes.enum.ts +0 -5
- package/contents/apps/mobile/src/routes/screen-options.ts +0 -9
- package/contents/apps/mobile/src/routes/screens.enum.ts +0 -4
- package/contents/apps/mobile/src/screens/HomeScreen/home.screen.tsx +0 -12
- package/contents/apps/mobile/src/screens/LoginScreen/login.screen.tsx +0 -13
- package/contents/apps/mobile/src/stores/index.ts +0 -1
- package/contents/apps/mobile/src/stores/local-storage.store.ts +0 -60
- package/contents/apps/mobile/src/stores/mmkvStorage.ts +0 -19
- package/contents/apps/mobile/src/tailwind/index.ts +0 -24
- package/contents/apps/mobile/src/types/component.type.ts +0 -13
- package/contents/apps/mobile/src/types/index.ts +0 -1
- package/contents/apps/mobile/tailwind.config.js +0 -80
- package/contents/apps/mobile/tsconfig.app.json +0 -11
- package/contents/check-env.sh +0 -44
- package/contents/clean-generated-outputs.sh +0 -32
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import resolveConfig from 'tailwindcss/resolveConfig';
|
|
2
|
-
import { create } from 'twrnc';
|
|
3
|
-
|
|
4
|
-
import tailwindConfig from '../../tailwind.config';
|
|
5
|
-
|
|
6
|
-
const theme = resolveConfig(tailwindConfig);
|
|
7
|
-
|
|
8
|
-
export const tw = create(tailwindConfig);
|
|
9
|
-
|
|
10
|
-
export const errorContainerStyle = (err: boolean) => err && tw`border-red-600`;
|
|
11
|
-
|
|
12
|
-
export const disabledInputStyle = (isDisabled: boolean) => isDisabled && tw`opacity-20`;
|
|
13
|
-
|
|
14
|
-
export const focusedInputStyle = (isFocused: boolean) => isFocused && tw`border-primary-400`;
|
|
15
|
-
|
|
16
|
-
export const errorTextStyle = (err: boolean) => err && tw`text-red-600`;
|
|
17
|
-
|
|
18
|
-
export const defaultInputContainerStyle = tw`rounded-xl border border-gray-900 px-3`;
|
|
19
|
-
export const defaultInputTextStyle = tw`py-2 font-normal text-gray-950`;
|
|
20
|
-
|
|
21
|
-
export const colors = {
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
-
...((theme.theme as any).colors as any),
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Atom, SetStateAction, WritableAtom } from 'jotai';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
|
|
4
|
-
export type DefaultComponentProps = {
|
|
5
|
-
error?: string;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
style?: StyleProp<ViewStyle>;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type DefaultInputComponentProps<T> = DefaultComponentProps & {
|
|
11
|
-
atom?: WritableAtom<T, [SetStateAction<T>], void> | Atom<T>;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component.type';
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* eslint-disable sort-keys */
|
|
2
|
-
|
|
3
|
-
/** @type {import('tailwindcss').Config} */
|
|
4
|
-
const plugin = require('tailwindcss/plugin');
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
content: ['./App.{js,jsx,ts,tsx}', './src/**/*.{js,jsx,ts,tsx}'],
|
|
8
|
-
plugins: [
|
|
9
|
-
plugin(({ addUtilities }) => {
|
|
10
|
-
addUtilities({
|
|
11
|
-
'.box': `border border-[#000]`,
|
|
12
|
-
});
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
15
|
-
theme: {
|
|
16
|
-
fontFamily: {
|
|
17
|
-
sans: ['Roboto'],
|
|
18
|
-
},
|
|
19
|
-
extend: {
|
|
20
|
-
flex: {
|
|
21
|
-
2: '2 2 0%',
|
|
22
|
-
},
|
|
23
|
-
colors: {
|
|
24
|
-
// https://uicolors.app/create
|
|
25
|
-
black: {
|
|
26
|
-
50: '#f6f6f6',
|
|
27
|
-
100: '#e7e7e7',
|
|
28
|
-
200: '#d1d1d1',
|
|
29
|
-
300: '#b0b0b0',
|
|
30
|
-
400: '#888888',
|
|
31
|
-
500: '#6d6d6d',
|
|
32
|
-
600: '#5d5d5d',
|
|
33
|
-
700: '#4f4f4f',
|
|
34
|
-
800: '#454545',
|
|
35
|
-
900: '#3d3d3d',
|
|
36
|
-
950: '#000000',
|
|
37
|
-
},
|
|
38
|
-
gray: {
|
|
39
|
-
50: '#f7f8f8',
|
|
40
|
-
100: '#ebedee',
|
|
41
|
-
200: '#d9dade',
|
|
42
|
-
300: '#b8bac1',
|
|
43
|
-
400: '#91949f',
|
|
44
|
-
500: '#737784',
|
|
45
|
-
600: '#5d606c',
|
|
46
|
-
700: '#4c4e58',
|
|
47
|
-
800: '#41424b',
|
|
48
|
-
900: '#36373d',
|
|
49
|
-
950: '#26272b',
|
|
50
|
-
},
|
|
51
|
-
primary: {
|
|
52
|
-
50: '#f0f7ff',
|
|
53
|
-
100: '#e8f2f8',
|
|
54
|
-
200: '#bbddfc',
|
|
55
|
-
300: '#7fc0fa',
|
|
56
|
-
400: '#3ba1f5',
|
|
57
|
-
500: '#1185e6',
|
|
58
|
-
600: '#0567c4',
|
|
59
|
-
700: '#054f99',
|
|
60
|
-
800: '#094683',
|
|
61
|
-
900: '#0d3c6d',
|
|
62
|
-
950: '#092648',
|
|
63
|
-
},
|
|
64
|
-
secondary: {
|
|
65
|
-
50: '#f1fafe',
|
|
66
|
-
100: '#e3f3fb',
|
|
67
|
-
200: '#bde8f7',
|
|
68
|
-
300: '#88d8f1',
|
|
69
|
-
400: '#48c5e8',
|
|
70
|
-
500: '#21add6',
|
|
71
|
-
600: '#138db6',
|
|
72
|
-
700: '#107094',
|
|
73
|
-
800: '#125f7a',
|
|
74
|
-
900: '#144f66',
|
|
75
|
-
950: '#0e3243',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"types": ["node"]
|
|
7
|
-
},
|
|
8
|
-
"files": ["../../node_modules/@nx/react-native/typings/svg.d.ts"],
|
|
9
|
-
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "test-setup.ts"],
|
|
10
|
-
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"]
|
|
11
|
-
}
|
package/contents/check-env.sh
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Define the file names
|
|
4
|
-
envFile=$1
|
|
5
|
-
templateFile=$2
|
|
6
|
-
bitwardenLink=""
|
|
7
|
-
|
|
8
|
-
# Function to echo error messages in red
|
|
9
|
-
echoError() {
|
|
10
|
-
# $1 is the first argument to the function: the error message to echo in red
|
|
11
|
-
echo -e "\033[31m ERROR: $1\033[0m"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
# Check if both files exist
|
|
15
|
-
if [ ! -f "$envFile" ]; then
|
|
16
|
-
echoError "No .env file found. Get the latest .env in $bitwardenLink"
|
|
17
|
-
exit 1
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
# Initialize a flag to indicate a mismatch
|
|
21
|
-
mismatchFound=0
|
|
22
|
-
|
|
23
|
-
# Read each line from .env.template
|
|
24
|
-
while IFS= read -r line || [[ -n "$line" ]]; do
|
|
25
|
-
# Skip empty lines and comments
|
|
26
|
-
[[ -z "$line" || "$line" =~ ^# ]] && continue
|
|
27
|
-
|
|
28
|
-
# Extract the key name (assuming the format KEY=value)
|
|
29
|
-
key="${line%%=*}"
|
|
30
|
-
|
|
31
|
-
# Check if the key exists in .env
|
|
32
|
-
if ! grep -q "^$key=" "$envFile"; then
|
|
33
|
-
echo "Missing $key in $envFile"
|
|
34
|
-
mismatchFound=1
|
|
35
|
-
fi
|
|
36
|
-
done < "$templateFile"
|
|
37
|
-
|
|
38
|
-
# Check the mismatch flag to determine the script exit status
|
|
39
|
-
if [ $mismatchFound -ne 0 ]; then
|
|
40
|
-
echoError "Mismatch found. Get the latest .env in $bitwardenLink"
|
|
41
|
-
exit 1
|
|
42
|
-
else
|
|
43
|
-
echo "All keys from .env.template are present in .env."
|
|
44
|
-
fi
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Clean generated outputs
|
|
4
|
-
echo "Cleaning generated outputs..."
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
root_node_modules_path="node_modules"
|
|
8
|
-
app_rn_name="mobile"
|
|
9
|
-
app_rn_android_path="apps/$app_rn_name/android"
|
|
10
|
-
app_rn_android_gradle_path="$app_rn_android_path/.gradle"
|
|
11
|
-
app_rn_node_modules_path="apps/$app_rn_name/node_modules"
|
|
12
|
-
app_rn_ios_pods_path="apps/$app_rn_name/ios/Pods"
|
|
13
|
-
app_rn_ios_build_path="apps/$app_rn_name/ios/build"
|
|
14
|
-
|
|
15
|
-
echo "Deleting root $root_node_modules_path..."
|
|
16
|
-
rm -rf "$root_node_modules_path"
|
|
17
|
-
|
|
18
|
-
echo "Deleting $app_rn_node_modules_path..."
|
|
19
|
-
rm -rf "$app_rn_node_modules_path"
|
|
20
|
-
|
|
21
|
-
echo "Deleting $app_rn_ios_pods_path..."
|
|
22
|
-
rm -rf "$app_rn_ios_pods_path"
|
|
23
|
-
|
|
24
|
-
echo "Deleting $app_rn_ios_build_path..."
|
|
25
|
-
rm -rf "$app_rn_ios_build_path"
|
|
26
|
-
|
|
27
|
-
echo "Deleting $app_rn_android_gradle_path..."
|
|
28
|
-
rm -rf "$app_rn_android_gradle_path"
|
|
29
|
-
|
|
30
|
-
npm install
|
|
31
|
-
|
|
32
|
-
echo "Done!"
|