react-crud-mobile 1.3.409 → 1.3.412
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/react-crud-mobile.cjs.development.js +13 -8
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +14 -9
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIAutoComplete.tsx +17 -17
- package/src/elements/core/UILink.tsx +17 -17
- package/src/elements/core/UIList.tsx +10 -7
- package/src/elements/core/UIListItem.tsx +32 -32
- package/src/elements/core/UIOption.tsx +17 -17
- package/src/elements/core/UIRadio.tsx +17 -17
- package/src/elements/core/UISlider.tsx +61 -61
- package/src/elements/core/UIStatusBar.tsx +5 -5
- package/src/elements/core/UISwitch.tsx +27 -27
- package/src/hooks/useIsVisible.ts +39 -39
- package/src/utils/MobileUtils.ts +13 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useContext, useLayoutEffect, createContext } from 'react';
|
|
2
2
|
import { Utils, ScopeUtils, CrudUtils, ComponentUtils, HtmlUtils, ViewUtils, ThemeUtils, useTheme } from 'react-crud-utils';
|
|
3
|
-
import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, ScrollView, Switch, TextInput, Platform, Dimensions, Animated, PanResponder, Alert, Image, StatusBar, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
|
|
3
|
+
import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, ScrollView, Switch, TextInput, Platform, Dimensions, FlatList, Animated, PanResponder, Alert, Image, StatusBar, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
|
|
4
4
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import Ionicons from '@expo/vector-icons/Ionicons';
|
|
6
6
|
import { Ionicons as Ionicons$1, AntDesign, Entypo, EvilIcons, MaterialCommunityIcons } from '@expo/vector-icons';
|
|
@@ -1068,7 +1068,7 @@ function UIList(props) {
|
|
|
1068
1068
|
var add = ComponentUtils.getDefine(props, 'add');
|
|
1069
1069
|
var hideAddWhenEmpty = original.hideAddWhenEmpty;
|
|
1070
1070
|
var hideEmpty = original.hideEmpty;
|
|
1071
|
-
//
|
|
1071
|
+
//v4
|
|
1072
1072
|
var getStyle = function getStyle(key, extra) {
|
|
1073
1073
|
return scope.getStyle(key, _extends({}, extra, styles[key]));
|
|
1074
1074
|
};
|
|
@@ -1150,13 +1150,18 @@ function UIList(props) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
return /*#__PURE__*/jsxs(View, {
|
|
1152
1152
|
style: getContainerStyle(),
|
|
1153
|
-
children: [/*#__PURE__*/jsx(Empty, {}),
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
item
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1153
|
+
children: [/*#__PURE__*/jsx(Empty, {}), /*#__PURE__*/jsx(FlatList, {
|
|
1154
|
+
data: items,
|
|
1155
|
+
renderItem: function renderItem(_ref) {
|
|
1156
|
+
var item = _ref.item,
|
|
1157
|
+
index = _ref.index;
|
|
1158
|
+
return /*#__PURE__*/jsx(UIListRow, {
|
|
1159
|
+
index: index,
|
|
1160
|
+
item: item,
|
|
1161
|
+
scope: scope,
|
|
1162
|
+
children: props.children
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1160
1165
|
}), isShowAdd() && /*#__PURE__*/jsx(Fragment, {
|
|
1161
1166
|
children: add
|
|
1162
1167
|
})]
|