react-crud-mobile 1.3.336 → 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.
@@ -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: style('selectLabel'),
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: scope.getPart('iconSize', null, 24),
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',