ikualo-ui-kit-mobile 0.7.0 → 0.7.3
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/App.tsx +3 -5
- package/package.json +1 -1
- package/src/config/paper.config.ts +3 -0
- package/src/elements/pages/Provider.tsx +10 -0
- package/src/index.ts +2 -1
package/App.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { PaperProvider } from 'react-native-paper';
|
|
2
|
-
|
|
3
1
|
import { darkTheme, lightTheme } from './src/config/paper.config';
|
|
4
2
|
import { useFonts } from 'expo-font';
|
|
5
3
|
import React, { useEffect } from 'react';
|
|
6
4
|
import { Appearance } from 'react-native';
|
|
7
5
|
import useStore from './src/store';
|
|
8
|
-
import { PageTouchable } from './src';
|
|
6
|
+
import { PageTouchable, Provider } from './src';
|
|
9
7
|
import { Views } from './src/elements/views/Views';
|
|
10
8
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
11
9
|
|
|
@@ -35,11 +33,11 @@ export default function App() {
|
|
|
35
33
|
< GestureHandlerRootView >
|
|
36
34
|
|
|
37
35
|
{fontsLoaded && (
|
|
38
|
-
<
|
|
36
|
+
<Provider >
|
|
39
37
|
<PageTouchable>
|
|
40
38
|
<Views />
|
|
41
39
|
</PageTouchable>
|
|
42
|
-
</
|
|
40
|
+
</Provider>
|
|
43
41
|
)}
|
|
44
42
|
</GestureHandlerRootView>
|
|
45
43
|
);
|
package/package.json
CHANGED
|
@@ -87,6 +87,7 @@ const light = {
|
|
|
87
87
|
text_p: colors.gray_700,
|
|
88
88
|
text_h_primary: colors.primary_300,
|
|
89
89
|
text_h_secondary: colors.secondary_alte,
|
|
90
|
+
text_disabled: colors.gray_500,
|
|
90
91
|
|
|
91
92
|
text_btn: colors.gray_25,
|
|
92
93
|
text_btn_alt: colors.secondary_alte,
|
|
@@ -125,6 +126,8 @@ const dark = {
|
|
|
125
126
|
text_p: colors.gray_200,
|
|
126
127
|
text_h_primary: colors.primary_200,
|
|
127
128
|
text_h_secondary: colors.secondary_alte,
|
|
129
|
+
text_disabled: colors.gray_500,
|
|
130
|
+
|
|
128
131
|
|
|
129
132
|
text_btn: colors.gray_800,
|
|
130
133
|
text_btn_alt: colors.secondary_alte,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaperProvider } from "react-native-paper"
|
|
2
|
+
import useStore from "../../store"
|
|
3
|
+
import { ReactNode } from "react"
|
|
4
|
+
|
|
5
|
+
export const Provider = (props: { children: ReactNode }) => {
|
|
6
|
+
return (
|
|
7
|
+
<PaperProvider theme={useStore().theme} >
|
|
8
|
+
{props.children}
|
|
9
|
+
</PaperProvider>)
|
|
10
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './elements/pages/PageBasic';
|
|
2
2
|
export * from './elements/pages/PageTouchable';
|
|
3
|
+
export * from './elements/pages/Provider';
|
|
3
4
|
|
|
4
5
|
export * from './elements/buttons/BtnContained';
|
|
5
6
|
export * from './elements/buttons/BtnOutlined';
|
|
@@ -38,4 +39,4 @@ export * from './elements/select/Select';
|
|
|
38
39
|
export * from './elements/select/SelectList';
|
|
39
40
|
|
|
40
41
|
export * from './elements/accordion/Accordion';
|
|
41
|
-
export * from './elements/navbar/Navbar';
|
|
42
|
+
export * from './elements/navbar/Navbar';
|