react-crud-mobile 1.0.673 → 1.0.678
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/elements/UI.d.ts +2 -11
- package/dist/react-crud-mobile.cjs.development.js +13 -1
- 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 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/UI.tsx +15 -11
- package/src/elements/core/SafeView.tsx +7 -2
- package/src/elements/core/UIAutoComplete.tsx +17 -17
- package/src/elements/core/UIIcon.tsx +20 -3
- package/src/elements/core/UILink.tsx +17 -17
- 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/UISwitch.tsx +27 -27
- package/src/hooks/useIsVisible.ts +39 -39
package/dist/elements/UI.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ListType } from 'react-crud-utils';
|
|
3
|
-
import { UserType } from 'react-crud-utils';
|
|
4
|
-
import { InputType } from 'react-crud-utils';
|
|
5
|
-
import { ChartType } from 'react-crud-utils';
|
|
6
|
-
import { ContainerType } from 'react-crud-utils';
|
|
7
|
-
import { ListInputType } from 'react-crud-utils';
|
|
8
|
-
import { TabsType } from 'react-crud-utils';
|
|
9
|
-
import { DefineType } from 'react-crud-utils';
|
|
10
|
-
import { ButtonType } from 'react-crud-utils';
|
|
11
|
-
import { LinkType } from 'react-crud-utils';
|
|
2
|
+
import { ListType, UserType, InputType, ChartType, ContainerType, ListInputType, TabsType, DefineType, ButtonType, IconType, LinkType } from 'react-crud-utils';
|
|
12
3
|
import SafeView from './core/SafeView';
|
|
13
4
|
declare const UI: {
|
|
14
5
|
List: (props: ListType) => import("react").JSX.Element;
|
|
@@ -24,7 +15,7 @@ declare const UI: {
|
|
|
24
15
|
Email: (props: InputType) => import("react").JSX.Element;
|
|
25
16
|
Button: (props: ButtonType) => import("react").JSX.Element;
|
|
26
17
|
Link: (props: LinkType) => import("react").JSX.Element;
|
|
27
|
-
Icon: (props:
|
|
18
|
+
Icon: (props: IconType) => import("react").JSX.Element;
|
|
28
19
|
Output: (props: ContainerType) => import("react").JSX.Element;
|
|
29
20
|
Form: (props: ContainerType) => import("react").JSX.Element;
|
|
30
21
|
Crud: (props: ContainerType) => import("react").JSX.Element;
|
|
@@ -351,7 +351,16 @@ var styles$2 = {
|
|
|
351
351
|
function UIIcon(_ref) {
|
|
352
352
|
var scope = _ref.scope;
|
|
353
353
|
var name = scope.getValue();
|
|
354
|
-
|
|
354
|
+
var libs = {
|
|
355
|
+
ion: vectorIcons.Ionicons,
|
|
356
|
+
ant: vectorIcons.AntDesign,
|
|
357
|
+
entypo: vectorIcons.Entypo,
|
|
358
|
+
evil: vectorIcons.EvilIcons,
|
|
359
|
+
material: vectorIcons.MaterialCommunityIcons
|
|
360
|
+
};
|
|
361
|
+
var library = reactCrudUtils.Utils.nvl(scope.original.library, 'ion');
|
|
362
|
+
var Aux = libs[library];
|
|
363
|
+
return /*#__PURE__*/jsxRuntime.jsx(Aux, {
|
|
355
364
|
name: name,
|
|
356
365
|
style: scope.getStyle('icon')
|
|
357
366
|
});
|
|
@@ -1795,6 +1804,9 @@ function UIInclude(props) {
|
|
|
1795
1804
|
function SafeView(props) {
|
|
1796
1805
|
var _theme$colors;
|
|
1797
1806
|
var theme = reactCrudUtils.ThemeUtils.getCurrentTheme();
|
|
1807
|
+
if (reactCrudUtils.Utils.isEmpty(theme)) {
|
|
1808
|
+
theme = reactCrudUtils.useTheme();
|
|
1809
|
+
}
|
|
1798
1810
|
var dismissKeyboard = function dismissKeyboard() {
|
|
1799
1811
|
if (reactNative.Platform.OS !== 'web') {
|
|
1800
1812
|
reactNative.Keyboard.dismiss();
|