@ronas-it/nx-generators 0.22.0-alpha.6 → 0.22.0-alpha.7
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/package.json +1 -1
- package/src/generators/expo-app/app-files/app/_layout.tsx.template +3 -1
- package/src/shared/generators/ui-kit/layout-files/index.tsx.template +7 -7
- package/src/shared/generators/ui-kit/lib-files/shared/ui/ui-kit/src/assets/icons/chevron-left.svg.template +5 -0
- package/src/shared/generators/ui-kit/lib-files/shared/ui/ui-kit/src/assets/icons/index.ts.template +2 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { useFonts } from 'expo-font';
|
|
|
5
5
|
import { Stack } from 'expo-router';
|
|
6
6
|
import * as SplashScreen from 'expo-splash-screen';
|
|
7
7
|
import { StatusBar } from 'expo-status-bar';
|
|
8
|
-
import { ReactElement, useEffect } from 'react';
|
|
8
|
+
import { Fragment, ReactElement, useEffect } from 'react';
|
|
9
9
|
<% if(isStoreEnabled) { %>import { Provider } from 'react-redux';<% } %>
|
|
10
10
|
|
|
11
11
|
export { ErrorBoundary } from 'expo-router';
|
|
@@ -51,9 +51,11 @@ export default function RootLayout(): ReactElement | null {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
+
<Fragment>
|
|
54
55
|
<% if(isStoreEnabled) { %><Provider store={store}><% } %>
|
|
55
56
|
<StatusBar style='light' />
|
|
56
57
|
<App />
|
|
57
58
|
<% if(isStoreEnabled) { %></Provider><% } %>
|
|
59
|
+
</Fragment>
|
|
58
60
|
);
|
|
59
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppButton, AppScreen, AppSpinner, AppText, AppTextInput, SearchInput } from '<%= libPath %>/shared/ui/ui-kit';
|
|
1
|
+
import { AppButton, AppScreen, AppSpinner, AppText, AppTextInput, SearchInput, AppCheckbox } from '<%= libPath %>/shared/ui/ui-kit';
|
|
2
2
|
import { ReactElement, useState } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { StyleSheet } from 'react-native-unistyles';
|
|
@@ -29,6 +29,12 @@ export default function RootScreen(): ReactElement {
|
|
|
29
29
|
<AppCheckbox value={isChecked} onValueChange={setIsChecked} />
|
|
30
30
|
<AppText>Checkbox</AppText>
|
|
31
31
|
</View>
|
|
32
|
+
<SearchInput
|
|
33
|
+
placeholder='Search'
|
|
34
|
+
value={searchValue}
|
|
35
|
+
onChangeText={setSearchValue}
|
|
36
|
+
onClearPress={() => setSearchValue('')}
|
|
37
|
+
/>
|
|
32
38
|
<AppTextInput
|
|
33
39
|
label='Username'
|
|
34
40
|
autoCapitalize='none'
|
|
@@ -36,12 +42,6 @@ export default function RootScreen(): ReactElement {
|
|
|
36
42
|
value={username}
|
|
37
43
|
onChangeText={setUsername}
|
|
38
44
|
/>
|
|
39
|
-
<SearchInput
|
|
40
|
-
placeholder='Search'
|
|
41
|
-
value={searchValue}
|
|
42
|
-
onChangeText={setSearchValue}
|
|
43
|
-
onClearPress={() => setSearchValue('')}
|
|
44
|
-
/>
|
|
45
45
|
<AppTextInput isPassword={true} label='Password' value={password} onChangeText={setPassword} />
|
|
46
46
|
<AppButton text='Button Primary Regular' />
|
|
47
47
|
<AppButton text='Button Primary Small' size='small' />
|
package/src/shared/generators/ui-kit/lib-files/shared/ui/ui-kit/src/assets/icons/index.ts.template
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import check from './check.svg';
|
|
2
|
+
import chevronLeft from './chevron-left.svg';
|
|
2
3
|
import close from './close.svg';
|
|
3
4
|
import eyeOff from './eye-off.svg';
|
|
4
5
|
import eye from './eye.svg';
|
|
@@ -7,6 +8,7 @@ import underConstruction from './under-construction.svg';
|
|
|
7
8
|
|
|
8
9
|
export const Icons = {
|
|
9
10
|
check,
|
|
11
|
+
chevronLeft,
|
|
10
12
|
close,
|
|
11
13
|
eyeOff,
|
|
12
14
|
eye,
|