react-crud-mobile 1.3.337 → 1.3.338
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 +18 -3
- 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 +18 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +24 -5
@@ -540,6 +540,20 @@ function UISelect(props) {
|
|
540
540
|
var isModalVisible = function isModalVisible() {
|
541
541
|
return modalVisible;
|
542
542
|
};
|
543
|
+
var getLabelStyle = function getLabelStyle() {
|
544
|
+
var css = style('selectLabel');
|
545
|
+
var fs = parseInt(css.fontSize);
|
546
|
+
if (!fs) {
|
547
|
+
fs = 14;
|
548
|
+
}
|
549
|
+
var lh = reactCrudUtils.Utils.nvl(css.lineHeight, fs + 2);
|
550
|
+
css.fontSize = fs;
|
551
|
+
css.lineHeight = lh;
|
552
|
+
return css;
|
553
|
+
};
|
554
|
+
var labelStyle = getLabelStyle();
|
555
|
+
var defIconSize = reactCrudUtils.Utils.nvl(labelStyle.fontSize, 14) + 2;
|
556
|
+
var iconSize = scope.getPart('iconSize', null, defIconSize);
|
543
557
|
//v4
|
544
558
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
545
559
|
style: style('selectRoot'),
|
@@ -547,11 +561,11 @@ function UISelect(props) {
|
|
547
561
|
onPress: handlePress,
|
548
562
|
style: style('selectInput'),
|
549
563
|
children: [/*#__PURE__*/jsxRuntime.jsx(reactNative.Text, {
|
550
|
-
style:
|
564
|
+
style: labelStyle,
|
551
565
|
children: reactCrudUtils.Utils.nvl(value, placeholder)
|
552
566
|
}), /*#__PURE__*/jsxRuntime.jsx(vectorIcons.Ionicons, {
|
553
567
|
name: "chevron-down-outline",
|
554
|
-
size:
|
568
|
+
size: iconSize,
|
555
569
|
color: scope.getPart('iconColor', null, iconColor),
|
556
570
|
style: style('iconStyle', {})
|
557
571
|
})]
|
@@ -635,7 +649,8 @@ var styles$3 = /*#__PURE__*/reactNative.StyleSheet.create({
|
|
635
649
|
paddingVertical: 10
|
636
650
|
},
|
637
651
|
selectLabel: {
|
638
|
-
flex: 1
|
652
|
+
flex: 1,
|
653
|
+
fontSize: 14
|
639
654
|
},
|
640
655
|
modalTop: {
|
641
656
|
backgroundColor: 'primary',
|