react-crud-mobile 1.0.779 → 1.0.781
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 +19 -5
- 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 +19 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIInput.tsx +22 -7
|
@@ -643,6 +643,24 @@ function UIInput(props) {
|
|
|
643
643
|
var style = function style(part, extra) {
|
|
644
644
|
return _extends({}, scope.getStyle(part, styles$6[part]), extra);
|
|
645
645
|
};
|
|
646
|
+
var CustomIcon = function CustomIcon() {
|
|
647
|
+
var icon = el.icon;
|
|
648
|
+
if (icon) {
|
|
649
|
+
if (icon === 'string') {
|
|
650
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
651
|
+
children: el.icon && /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
|
652
|
+
name: el.icon,
|
|
653
|
+
size: scope.attr('iconSize', 20),
|
|
654
|
+
color: scope.attr('iconColor', '#888')
|
|
655
|
+
})
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
659
|
+
children: icon
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
663
|
+
};
|
|
646
664
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
647
665
|
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
648
666
|
style: style('base'),
|
|
@@ -651,11 +669,7 @@ function UIInput(props) {
|
|
|
651
669
|
onChangeText: onChange,
|
|
652
670
|
value: value,
|
|
653
671
|
placeholder: placeholder
|
|
654
|
-
}),
|
|
655
|
-
name: el.icon,
|
|
656
|
-
size: scope.attr('iconSize', 20),
|
|
657
|
-
color: scope.attr('iconColor', '#888')
|
|
658
|
-
})]
|
|
672
|
+
}), /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {})]
|
|
659
673
|
}), scope.getPart('right')]
|
|
660
674
|
});
|
|
661
675
|
}
|