@janiscommerce/ui-native 1.25.0 → 1.25.2

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.
@@ -17,8 +17,7 @@ const styles = StyleSheet.create({
17
17
  justifyContent: 'center',
18
18
  elevation: 12,
19
19
  minWidth: horizontalScale(50),
20
- width: horizontalScale(280),
21
- marginHorizontal: horizontalScale(20),
20
+ marginHorizontal: horizontalScale(24),
22
21
  borderRadius: verticalScale(18),
23
22
  zIndex: 1,
24
23
  },
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { TextStyle } from 'react-native';
3
3
  import { BaseToastProps } from '../../atoms/BaseToast';
4
4
  export interface ToastProps extends BaseToastProps {
@@ -13,4 +13,11 @@ export interface ToastProps extends BaseToastProps {
13
13
  };
14
14
  }
15
15
  declare const Toast: FC<ToastProps>;
16
+ export declare const configToast: {
17
+ success: (props: ToastProps) => React.JSX.Element;
18
+ notice: (props: ToastProps) => React.JSX.Element;
19
+ warning: (props: ToastProps) => React.JSX.Element;
20
+ error: (props: ToastProps) => React.JSX.Element;
21
+ action: (props: ToastProps) => React.JSX.Element;
22
+ };
16
23
  export default Toast;
@@ -92,4 +92,11 @@ const Toast = ({ type, text1, text2, style, props }) => {
92
92
  </View>
93
93
  </BaseToast>);
94
94
  };
95
+ export const configToast = {
96
+ success: (props) => <Toast {...props}/>,
97
+ notice: (props) => <Toast {...props}/>,
98
+ warning: (props) => <Toast {...props}/>,
99
+ error: (props) => <Toast {...props}/>,
100
+ action: (props) => <Toast {...props}/>,
101
+ };
95
102
  export default Toast;
@@ -1,12 +1,3 @@
1
- import React from 'react';
2
- import { ToastProps } from '../';
3
- export declare const configToast: {
4
- success: (props: ToastProps) => React.JSX.Element;
5
- notice: (props: ToastProps) => React.JSX.Element;
6
- warning: (props: ToastProps) => React.JSX.Element;
7
- error: (props: ToastProps) => React.JSX.Element;
8
- action: (props: ToastProps) => React.JSX.Element;
9
- };
10
1
  export declare const defaultIcon: {
11
2
  success: string;
12
3
  notice: string;
@@ -1,12 +1,3 @@
1
- import React from 'react';
2
- import Toast from '../';
3
- export const configToast = {
4
- success: (props) => <Toast {...props}/>,
5
- notice: (props) => <Toast {...props}/>,
6
- warning: (props) => <Toast {...props}/>,
7
- error: (props) => <Toast {...props}/>,
8
- action: (props) => <Toast {...props}/>,
9
- };
10
1
  export const defaultIcon = {
11
2
  success: 'check_circle_bold',
12
3
  notice: 'info_circle_bold',
package/dist/index.d.ts CHANGED
@@ -21,7 +21,7 @@ import LayoutWithBottomButtons from './components/molecules/LayoutWithBottomButt
21
21
  import ProgressBar from './components/molecules/ProgressBar';
22
22
  import Select from './components/molecules/Select';
23
23
  import Toast from 'react-native-toast-message';
24
- import { configToast } from './components/molecules/Toast/utils';
24
+ import { configToast } from './components/molecules/Toast';
25
25
  import SwipeList from './components/molecules/SwipeList';
26
26
  import ItemSelectionButton from './components/molecules/ItemSelectionButton';
27
27
  import MainCardList from './components/molecules/MainCardList';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import LayoutWithBottomButtons from './components/molecules/LayoutWithBottomButt
23
23
  import ProgressBar from './components/molecules/ProgressBar';
24
24
  import Select from './components/molecules/Select';
25
25
  import Toast from 'react-native-toast-message';
26
- import { configToast } from './components/molecules/Toast/utils';
26
+ import { configToast } from './components/molecules/Toast';
27
27
  import SwipeList from './components/molecules/SwipeList';
28
28
  import ItemSelectionButton from './components/molecules/ItemSelectionButton';
29
29
  import MainCardList from './components/molecules/MainCardList';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janiscommerce/ui-native",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
4
4
  "description": "components library for Janis app",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "homepage": "https://github.com/janis-commerce/ui-native#readme",
46
46
  "peerDependencies": {
47
- "react": ">=17.0.2",
48
- "react-native": ">=0.67.5",
47
+ "react": ">=17.0.2 <19.0.0",
48
+ "react-native": ">=0.67.5 <0.75.0",
49
49
  "react-native-gesture-handler": ">=2.9.0",
50
50
  "react-native-fast-image": "^8.5.11",
51
51
  "react-native-reanimated": "2.17.0",
@@ -63,6 +63,7 @@
63
63
  "@storybook/addon-ondevice-controls": "^6.5.4",
64
64
  "@storybook/addon-react-native-web": "0.0.20",
65
65
  "@storybook/builder-webpack5": "^6.5.4",
66
+ "@storybook/cli": "^6.5.4",
66
67
  "@storybook/manager-webpack5": "^6.5.4",
67
68
  "@storybook/react": "^6.5.4",
68
69
  "@storybook/react-native": "^6.5.4",
@@ -99,6 +100,7 @@
99
100
  "react-native": "0.67.5",
100
101
  "react-native-fast-image": "^8.5.11",
101
102
  "react-native-svg-transformer": "^1.0.0",
103
+ "react-native-web": "^0.15.0",
102
104
  "react-test-renderer": "17.0.2",
103
105
  "setup-env": "^2.0.0",
104
106
  "storybook": "^6.5.4",
@@ -126,14 +128,12 @@
126
128
  "@react-native-async-storage/async-storage": "^1.19.0",
127
129
  "@react-native-community/datetimepicker": "^7.4.0",
128
130
  "@react-native-community/slider": "^4.4.2",
129
- "@storybook/cli": "^6.5.4",
130
131
  "babel-plugin-module-resolver": "^5.0.2",
131
132
  "react-native-gesture-handler": ">=2.9.0",
132
133
  "react-native-reanimated": "2.17.0",
133
134
  "react-native-safe-area-context": "^4.6.4",
134
135
  "react-native-svg": "12.1.1",
135
136
  "react-native-toast-message": ">=1.6.0",
136
- "react-native-vector-icons": "^9.2.0",
137
- "react-native-web": "^0.15.0"
137
+ "react-native-vector-icons": "^9.2.0"
138
138
  }
139
139
  }