etendo-ui-library 1.2.32 → 1.2.33
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/index.d.ts +1 -0
- package/index.js +16 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import WebButton from './dist-web/components/button/Button';
|
|
2
2
|
import WebCard from './dist-web/components/cards/cardDropdown';
|
|
3
3
|
import WebInput from './dist-web/components/input/Input';
|
|
4
|
+
import WebNavbar from './dist-web/components/navbar/Navbar';
|
|
4
5
|
import WebPagination from './dist-web/components/pagination/Pagination';
|
|
5
6
|
import WebSkeletonItem from './dist-web/components/secondaryComponents/SkeletonItem';
|
|
6
7
|
import WebStatusBar from './dist-web/components/statusbar/StatusBar';
|
|
@@ -10,21 +11,34 @@ import WebTable from './dist-web/components/table/Table';
|
|
|
10
11
|
import NativeButton from './dist-native/components/button/Button';
|
|
11
12
|
import NativeCard from './dist-native/components/cards/cardDropdown';
|
|
12
13
|
import NativeInput from './dist-native/components/input/Input';
|
|
14
|
+
import NativeNavbar from './dist-native/components/navbar/Navbar';
|
|
13
15
|
import NativePagination from './dist-native/components/pagination/Pagination';
|
|
14
16
|
import NativeSkeletonItem from './dist-native/components/secondaryComponents/SkeletonItem';
|
|
15
17
|
import NativeStatusBar from './dist-native/components/statusbar/StatusBar';
|
|
16
18
|
import NativeTab from './dist-native/components/tab/Tab';
|
|
17
19
|
import NativeTable from './dist-native/components/table/Table';
|
|
20
|
+
import { Platform } from 'react-native';
|
|
18
21
|
|
|
19
|
-
const isNativeEnvironment =
|
|
22
|
+
const isNativeEnvironment = Platform.OS === 'ios' || Platform.OS === 'android';
|
|
20
23
|
|
|
21
24
|
const Button = isNativeEnvironment ? NativeButton : WebButton;
|
|
22
25
|
const Card = isNativeEnvironment ? NativeCard : WebCard;
|
|
23
26
|
const Input = isNativeEnvironment ? NativeInput : WebInput;
|
|
27
|
+
const Navbar = isNativeEnvironment ? NativeNavbar : WebNavbar;
|
|
24
28
|
const Pagination = isNativeEnvironment ? NativePagination : WebPagination;
|
|
25
29
|
const SkeletonItem = isNativeEnvironment ? NativeSkeletonItem : WebSkeletonItem;
|
|
26
30
|
const StatusBar = isNativeEnvironment ? NativeStatusBar : WebStatusBar;
|
|
27
31
|
const Tab = isNativeEnvironment ? NativeTab : WebTab;
|
|
28
32
|
const Table = isNativeEnvironment ? NativeTable : WebTable;
|
|
29
33
|
|
|
30
|
-
export {
|
|
34
|
+
export {
|
|
35
|
+
Button,
|
|
36
|
+
Card,
|
|
37
|
+
Input,
|
|
38
|
+
Navbar,
|
|
39
|
+
Pagination,
|
|
40
|
+
SkeletonItem,
|
|
41
|
+
StatusBar,
|
|
42
|
+
Tab,
|
|
43
|
+
Table,
|
|
44
|
+
};
|