react-crud-mobile 1.3.22 → 1.3.24
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 +9 -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 +9 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +14 -3
|
@@ -496,7 +496,7 @@ var MobileUtils = /*#__PURE__*/function () {
|
|
|
496
496
|
}();
|
|
497
497
|
|
|
498
498
|
function UISelect(props) {
|
|
499
|
-
var _theme$styles, _theme$colors;
|
|
499
|
+
var _theme$styles, _theme$colors, _scope$original;
|
|
500
500
|
var _useState = useState(false),
|
|
501
501
|
modalVisible = _useState[0],
|
|
502
502
|
setModalVisible = _useState[1];
|
|
@@ -514,6 +514,7 @@ function UISelect(props) {
|
|
|
514
514
|
setModalVisible(_modalVisible);
|
|
515
515
|
};
|
|
516
516
|
var iconColor = Utils.nvl((_theme$colors = theme.colors) == null ? void 0 : _theme$colors.text, '#100e0e');
|
|
517
|
+
var modalColor = Utils.nvl(headerStyle.color, 'white');
|
|
517
518
|
var onClick = function onClick(_ref) {
|
|
518
519
|
var value = _ref.value;
|
|
519
520
|
var val = value;
|
|
@@ -533,7 +534,7 @@ function UISelect(props) {
|
|
|
533
534
|
var isModalVisible = function isModalVisible() {
|
|
534
535
|
return modalVisible;
|
|
535
536
|
};
|
|
536
|
-
//
|
|
537
|
+
//v2
|
|
537
538
|
useEffect(function () {
|
|
538
539
|
MobileUtils.syncTheme();
|
|
539
540
|
}, [modalVisible]);
|
|
@@ -569,9 +570,11 @@ function UISelect(props) {
|
|
|
569
570
|
return setModalVisible(false);
|
|
570
571
|
},
|
|
571
572
|
style: style('modalCloseButton'),
|
|
572
|
-
children: /*#__PURE__*/jsx(
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
children: /*#__PURE__*/jsx(Ionicons$1, {
|
|
574
|
+
name: "chevron-back-outline",
|
|
575
|
+
size: 24,
|
|
576
|
+
color: modalColor,
|
|
577
|
+
style: style('modalCloseText', {})
|
|
575
578
|
})
|
|
576
579
|
}), /*#__PURE__*/jsx(Text, {
|
|
577
580
|
style: style('modalTitle'),
|
|
@@ -583,6 +586,7 @@ function UISelect(props) {
|
|
|
583
586
|
data: items,
|
|
584
587
|
name: scope.getName('list'),
|
|
585
588
|
click: onClick,
|
|
589
|
+
rowStyle: (_scope$original = scope.original) == null ? void 0 : _scope$original.rowStyle,
|
|
586
590
|
children: /*#__PURE__*/jsx(UI.Value, {
|
|
587
591
|
value: "#{@this.label}"
|
|
588
592
|
})
|