react-crud-mobile 1.3.23 → 1.3.25
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 +10 -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 +10 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +14 -2
|
@@ -504,7 +504,7 @@ var MobileUtils = /*#__PURE__*/function () {
|
|
|
504
504
|
}();
|
|
505
505
|
|
|
506
506
|
function UISelect(props) {
|
|
507
|
-
var _theme$styles, _theme$colors;
|
|
507
|
+
var _theme$styles, _theme$colors, _scope$original;
|
|
508
508
|
var _useState = React.useState(false),
|
|
509
509
|
modalVisible = _useState[0],
|
|
510
510
|
setModalVisible = _useState[1];
|
|
@@ -522,6 +522,7 @@ function UISelect(props) {
|
|
|
522
522
|
setModalVisible(_modalVisible);
|
|
523
523
|
};
|
|
524
524
|
var iconColor = reactCrudUtils.Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
|
|
525
|
+
var modalColor = reactCrudUtils.Utils.nvl(headerStyle.color, 'white');
|
|
525
526
|
var onClick = function onClick(_ref) {
|
|
526
527
|
var value = _ref.value;
|
|
527
528
|
var val = value;
|
|
@@ -554,7 +555,7 @@ function UISelect(props) {
|
|
|
554
555
|
style: style('selectLabel'),
|
|
555
556
|
children: reactCrudUtils.Utils.nvl(value, placeholder)
|
|
556
557
|
}), /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
|
557
|
-
name: "
|
|
558
|
+
name: "close",
|
|
558
559
|
size: scope.getPart('iconSize', null, 24),
|
|
559
560
|
color: scope.getPart('iconColor', null, iconColor),
|
|
560
561
|
style: style('iconStyle', {})
|
|
@@ -577,9 +578,11 @@ function UISelect(props) {
|
|
|
577
578
|
return setModalVisible(false);
|
|
578
579
|
},
|
|
579
580
|
style: style('modalCloseButton'),
|
|
580
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
children: /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
|
582
|
+
name: "chevron-back-outline",
|
|
583
|
+
size: 24,
|
|
584
|
+
color: modalColor,
|
|
585
|
+
style: style('modalCloseText', {})
|
|
583
586
|
})
|
|
584
587
|
}), /*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
|
585
588
|
style: style('modalTitle'),
|
|
@@ -590,7 +593,9 @@ function UISelect(props) {
|
|
|
590
593
|
children: /*#__PURE__*/jsxRuntime.jsx(UI.List, {
|
|
591
594
|
data: items,
|
|
592
595
|
name: scope.getName('list'),
|
|
596
|
+
layout: "card",
|
|
593
597
|
click: onClick,
|
|
598
|
+
rowStyle: (_scope$original = scope.original) == null ? void 0 : _scope$original.rowStyle,
|
|
594
599
|
children: /*#__PURE__*/jsxRuntime.jsx(UI.Value, {
|
|
595
600
|
value: "#{@this.label}"
|
|
596
601
|
})
|