@janiscommerce/ui-native 1.8.1 → 1.10.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.
- package/dist/components/{BaseButton → atoms/BaseButton}/index.js +1 -1
- package/dist/components/atoms/BaseCardList/index.d.ts +8 -0
- package/dist/components/atoms/BaseCardList/index.js +29 -0
- package/dist/components/{BaseToast → atoms/BaseToast}/index.js +1 -1
- package/dist/components/{CheckBox → atoms/CheckBox}/icon/CheckedIcon.js +1 -1
- package/dist/components/{CheckBox → atoms/CheckBox}/index.js +2 -2
- package/dist/components/{Icon → atoms/Icon}/index.js +2 -2
- package/dist/components/{Input → atoms/Input}/index.js +1 -1
- package/dist/components/{Input → atoms/Input}/utils/index.d.ts +1 -1
- package/dist/components/{Input → atoms/Input}/utils/index.js +1 -1
- package/dist/components/{Loading → atoms/Loading}/LoadingSvg/index.js +1 -1
- package/dist/components/{Loading → atoms/Loading}/index.js +2 -2
- package/dist/components/{RadioButton → atoms/RadioButton}/index.js +2 -2
- package/dist/components/{StatusChip → atoms/StatusChip}/index.js +2 -2
- package/dist/components/{Svg → atoms/Svg}/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/index.js +2 -2
- package/dist/components/{Svg → atoms/Svg}/svgs/EmptyIllustration/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/svgs/EmptyListIllustration/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/svgs/JanisLogo/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/svgs/JanisLogoColor/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/svgs/LoginIllustration/index.d.ts +1 -1
- package/dist/components/{Svg → atoms/Svg}/svgs/NoNotifications/index.d.ts +1 -1
- package/dist/components/{Text → atoms/Text}/index.js +1 -1
- package/dist/components/{Avatar → molecules/Avatar}/index.js +3 -3
- package/dist/components/{Button → molecules/Button}/index.d.ts +2 -2
- package/dist/components/{Button → molecules/Button}/index.js +11 -8
- package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/index.js +2 -2
- package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/styleConfigs/index.d.ts +2 -0
- package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/styleConfigs/index.js +4 -2
- package/dist/components/{Carousel → molecules/Carousel}/utils/index.d.ts +1 -1
- package/dist/components/molecules/ItemSelectionButton/index.d.ts +11 -0
- package/dist/components/molecules/ItemSelectionButton/index.js +66 -0
- package/dist/components/{LayoutWithBottomButtons → molecules/LayoutWithBottomButtons}/index.js +8 -7
- package/dist/components/{LayoutWithBottomButtons → molecules/LayoutWithBottomButtons}/utils/index.d.ts +18 -16
- package/dist/components/{LayoutWithBottomButtons → molecules/LayoutWithBottomButtons}/utils/index.js +21 -8
- package/dist/components/molecules/MainCardList/index.d.ts +14 -0
- package/dist/components/molecules/MainCardList/index.js +60 -0
- package/dist/components/{ProgressBar → molecules/ProgressBar}/index.js +2 -2
- package/dist/components/{ProgressBar → molecules/ProgressBar}/utils/index.js +1 -1
- package/dist/components/{Select → molecules/Select}/Components/Dropdown/index.d.ts +1 -1
- package/dist/components/{Select → molecules/Select}/Components/Modal/index.js +2 -2
- package/dist/components/{Select → molecules/Select}/Components/Options/index.d.ts +1 -1
- package/dist/components/{Select → molecules/Select}/Components/Options/index.js +1 -1
- package/dist/components/{Select → molecules/Select}/Components/SwitcherComponent/index.d.ts +1 -1
- package/dist/components/{Select → molecules/Select}/index.js +3 -3
- package/dist/components/{Select → molecules/Select}/utils/index.d.ts +1 -1
- package/dist/components/molecules/SwipeList/index.d.ts +11 -0
- package/dist/components/molecules/SwipeList/index.js +31 -0
- package/dist/components/molecules/Tabs/index.d.ts +23 -0
- package/dist/components/molecules/Tabs/index.js +112 -0
- package/dist/components/{Toast → molecules/Toast}/index.d.ts +1 -1
- package/dist/components/{Toast → molecules/Toast}/index.js +5 -5
- package/dist/components/{Toast → molecules/Toast}/utils/index.js +1 -1
- package/dist/components/{FullScreenMessage → organisms/FullScreenMessage}/index.js +4 -4
- package/dist/components/{LoadingFullScreen → organisms/LoadingFullScreen}/index.d.ts +1 -1
- package/dist/components/{LoadingFullScreen → organisms/LoadingFullScreen}/index.js +4 -4
- package/dist/components/organisms/SwipeItemSelectionList/index.d.ts +14 -0
- package/dist/components/organisms/SwipeItemSelectionList/index.js +37 -0
- package/dist/index.d.ts +28 -24
- package/dist/index.js +32 -24
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +11 -9
- /package/dist/components/{BaseButton → atoms/BaseButton}/index.d.ts +0 -0
- /package/dist/components/{BaseToast → atoms/BaseToast}/index.d.ts +0 -0
- /package/dist/components/{BaseToast → atoms/BaseToast}/utils/index.d.ts +0 -0
- /package/dist/components/{BaseToast → atoms/BaseToast}/utils/index.js +0 -0
- /package/dist/components/{CheckBox → atoms/CheckBox}/icon/CheckedIcon.d.ts +0 -0
- /package/dist/components/{CheckBox → atoms/CheckBox}/index.d.ts +0 -0
- /package/dist/components/{Icon → atoms/Icon}/assets/fonts/selection.json +0 -0
- /package/dist/components/{Icon → atoms/Icon}/index.d.ts +0 -0
- /package/dist/components/{Image → atoms/Image}/index.d.ts +0 -0
- /package/dist/components/{Image → atoms/Image}/index.js +0 -0
- /package/dist/components/{Input → atoms/Input}/index.d.ts +0 -0
- /package/dist/components/{List → atoms/List}/index.d.ts +0 -0
- /package/dist/components/{List → atoms/List}/index.js +0 -0
- /package/dist/components/{Loading → atoms/Loading}/LoadingSvg/index.d.ts +0 -0
- /package/dist/components/{Loading → atoms/Loading}/index.d.ts +0 -0
- /package/dist/components/{RadioButton → atoms/RadioButton}/index.d.ts +0 -0
- /package/dist/components/{StatusChip → atoms/StatusChip}/index.d.ts +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/EmptyIllustration/index.js +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/EmptyListIllustration/index.js +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/JanisLogo/index.js +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/JanisLogoColor/index.js +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/LoginIllustration/index.js +0 -0
- /package/dist/components/{Svg → atoms/Svg}/svgs/NoNotifications/index.js +0 -0
- /package/dist/components/{SwipeUp → atoms/SwipeUp}/childComponents/index.d.ts +0 -0
- /package/dist/components/{SwipeUp → atoms/SwipeUp}/childComponents/index.js +0 -0
- /package/dist/components/{SwipeUp → atoms/SwipeUp}/index.d.ts +0 -0
- /package/dist/components/{SwipeUp → atoms/SwipeUp}/index.js +0 -0
- /package/dist/components/{Text → atoms/Text}/index.d.ts +0 -0
- /package/dist/components/{Avatar → molecules/Avatar}/index.d.ts +0 -0
- /package/dist/components/{Avatar → molecules/Avatar}/utils/formatPlaceholder/index.d.ts +0 -0
- /package/dist/components/{Avatar → molecules/Avatar}/utils/formatPlaceholder/index.js +0 -0
- /package/dist/components/{Button → molecules/Button}/types/index.d.ts +0 -0
- /package/dist/components/{Button → molecules/Button}/types/index.js +0 -0
- /package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/index.d.ts +0 -0
- /package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/constants/index.d.ts +0 -0
- /package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/constants/index.js +0 -0
- /package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/defaultValues/index.d.ts +0 -0
- /package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/defaultValues/index.js +0 -0
- /package/dist/components/{Carousel → molecules/Carousel}/index.d.ts +0 -0
- /package/dist/components/{Carousel → molecules/Carousel}/index.js +0 -0
- /package/dist/components/{Carousel → molecules/Carousel}/utils/index.js +0 -0
- /package/dist/components/{LayoutWithBottomButtons → molecules/LayoutWithBottomButtons}/index.d.ts +0 -0
- /package/dist/components/{ProgressBar → molecules/ProgressBar}/index.d.ts +0 -0
- /package/dist/components/{ProgressBar → molecules/ProgressBar}/utils/index.d.ts +0 -0
- /package/dist/components/{Select → molecules/Select}/Components/Dropdown/index.js +0 -0
- /package/dist/components/{Select → molecules/Select}/Components/Modal/index.d.ts +0 -0
- /package/dist/components/{Select → molecules/Select}/Components/SwitcherComponent/index.js +0 -0
- /package/dist/components/{Select → molecules/Select}/index.d.ts +0 -0
- /package/dist/components/{Select → molecules/Select}/utils/index.js +0 -0
- /package/dist/components/{Toast → molecules/Toast}/utils/index.d.ts +0 -0
- /package/dist/components/{FullScreenMessage → organisms/FullScreenMessage}/index.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import CheckBox from './components/CheckBox';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import LayoutWithBottomButtons from './components/LayoutWithBottomButtons';
|
|
1
|
+
// Atoms
|
|
2
|
+
import BaseButton from './components/atoms/BaseButton';
|
|
3
|
+
import CheckBox from './components/atoms/CheckBox';
|
|
4
|
+
import Icon from './components/atoms/Icon';
|
|
5
|
+
import Image from './components/atoms/Image';
|
|
6
|
+
import Input from './components/atoms/Input';
|
|
7
|
+
import List from './components/atoms/List';
|
|
8
|
+
import Loading from './components/atoms/Loading';
|
|
9
|
+
import RadioButton from './components/atoms/RadioButton';
|
|
10
|
+
import StatusChip from './components/atoms/StatusChip';
|
|
11
|
+
import Svg from './components/atoms/Svg';
|
|
12
|
+
import SwipeUp from './components/atoms/SwipeUp';
|
|
13
|
+
import { SwipeUpFlatList, SwipeUpScrollView, SwipeUpView } from './components/atoms/SwipeUp/childComponents';
|
|
14
|
+
import Text from './components/atoms/Text';
|
|
15
|
+
// Molecules
|
|
16
|
+
import Avatar from './components/molecules/Avatar';
|
|
17
|
+
import Button from './components/molecules/Button';
|
|
18
|
+
import Carousel from './components/molecules/Carousel';
|
|
19
|
+
import LayoutWithBottomButtons from './components/molecules/LayoutWithBottomButtons';
|
|
20
|
+
import ProgressBar from './components/molecules/ProgressBar';
|
|
21
|
+
import Select from './components/molecules/Select';
|
|
23
22
|
import Toast from 'react-native-toast-message';
|
|
24
|
-
import { configToast } from './components/Toast/utils';
|
|
23
|
+
import { configToast } from './components/molecules/Toast/utils';
|
|
24
|
+
import SwipeList from './components/molecules/SwipeList';
|
|
25
|
+
import ItemSelectionButton from './components/molecules/ItemSelectionButton';
|
|
26
|
+
import MainCardList from './components/molecules/MainCardList';
|
|
27
|
+
// Organisms
|
|
28
|
+
import LoadingFullScreen from './components/organisms/LoadingFullScreen';
|
|
29
|
+
import FullScreenMessage from './components/organisms/FullScreenMessage';
|
|
30
|
+
import SwipeItemSelectionList from './components/organisms/SwipeItemSelectionList';
|
|
31
|
+
// Misc
|
|
32
|
+
import { palette } from './theme/palette';
|
|
25
33
|
import * as getScale from './scale';
|
|
26
|
-
export { Text, Avatar, CheckBox, Icon, Image, Loading, Svg, StatusChip, Input, palette, LoadingFullScreen, RadioButton, Select, SwipeUp, SwipeUpFlatList, SwipeUpScrollView, SwipeUpView, Carousel, ProgressBar, List, BaseButton, Button, getScale, LayoutWithBottomButtons, FullScreenMessage, Toast, configToast, };
|
|
34
|
+
export { Text, Avatar, CheckBox, Icon, Image, Loading, Svg, StatusChip, Input, palette, LoadingFullScreen, RadioButton, Select, SwipeUp, SwipeUpFlatList, SwipeUpScrollView, SwipeUpView, Carousel, ProgressBar, List, BaseButton, Button, getScale, LayoutWithBottomButtons, FullScreenMessage, Toast, configToast, SwipeList, ItemSelectionButton, SwipeItemSelectionList, MainCardList, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isObject: (obj: Object) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isObject = (obj) => !!(obj && obj.constructor === Object);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janiscommerce/ui-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "components library for Janis app",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"test": "jest",
|
|
17
17
|
"lint": "eslint .",
|
|
18
18
|
"prepare": "husky install",
|
|
19
|
-
"validate:code": "npm run lint -- --fix && tsc --noEmit && npm t",
|
|
19
|
+
"validate:code": "npm run lint -- --fix && tsc --project tsconfig.build.json --noEmit && npm t",
|
|
20
20
|
"test:commit": "jest --colors --bail --findRelatedTests",
|
|
21
21
|
"test:coverage": "tsc --noEmit && jest --collectCoverage --detectOpenHandles",
|
|
22
|
-
"build": "rm -rf dist && tsc && cp -r android ios dist",
|
|
22
|
+
"build": "rm -rf dist && tsc --project tsconfig.build.json && cp -r android ios dist && tsc-alias -p tsconfig.aliases.json",
|
|
23
23
|
"storybook-server": "react-native-storybook-server",
|
|
24
24
|
"storybook-watcher": "sb-rn-watcher --config-path .ondevice",
|
|
25
25
|
"update-stories": "sb-rn-get-stories --config-path .ondevice",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"react": ">=17.0.2",
|
|
47
47
|
"react-native": ">=0.67.5",
|
|
48
48
|
"react-native-gesture-handler": ">=2.9.0",
|
|
49
|
-
"react-native-
|
|
50
|
-
"react-native-
|
|
49
|
+
"react-native-reanimated": "2.17.0",
|
|
50
|
+
"react-native-toast-message": ">=1.6.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.12.9",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"react-test-renderer": "17.0.2",
|
|
99
99
|
"setup-env": "^2.0.0",
|
|
100
100
|
"storybook": "^6.5.4",
|
|
101
|
+
"tsc-alias": "^1.8.10",
|
|
101
102
|
"typescript": "^5.1.6",
|
|
102
103
|
"webpack": "^5.52.0"
|
|
103
104
|
},
|
|
@@ -117,17 +118,18 @@
|
|
|
117
118
|
]
|
|
118
119
|
},
|
|
119
120
|
"dependencies": {
|
|
120
|
-
"@gorhom/bottom-sheet": "^4.
|
|
121
|
+
"@gorhom/bottom-sheet": "^4.6.3",
|
|
121
122
|
"@react-native-async-storage/async-storage": "^1.19.0",
|
|
122
123
|
"@react-native-community/datetimepicker": "^7.4.0",
|
|
123
124
|
"@react-native-community/slider": "^4.4.2",
|
|
124
125
|
"@storybook/cli": "^6.5.4",
|
|
125
|
-
"
|
|
126
|
-
"react-native-gesture-handler": "
|
|
126
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
127
|
+
"react-native-gesture-handler": ">=2.9.0",
|
|
128
|
+
"react-native-reanimated": "2.17.0",
|
|
127
129
|
"react-native-safe-area-context": "^4.6.4",
|
|
128
130
|
"react-native-svg": "12.1.1",
|
|
129
|
-
"react-native-vector-icons": "^9.2.0",
|
|
130
131
|
"react-native-toast-message": ">=1.6.0",
|
|
132
|
+
"react-native-vector-icons": "^9.2.0",
|
|
131
133
|
"react-native-web": "^0.15.0"
|
|
132
134
|
}
|
|
133
135
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{Button → molecules/Button}/utils/getButtonStyles/utils/constants/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{LayoutWithBottomButtons → molecules/LayoutWithBottomButtons}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|