react-crud-mobile 1.3.14 → 1.3.16
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 +5 -4
- 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 +6 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UISelect.tsx +9 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect, useRef, useContext, useLayoutEffect, createContext } from 'react';
|
|
2
|
-
import { Utils, ScopeUtils, CrudUtils,
|
|
2
|
+
import { Utils, ScopeUtils, CrudUtils, ViewUtils, ComponentUtils, HtmlUtils, ThemeUtils, useTheme } from 'react-crud-utils';
|
|
3
3
|
import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, StatusBar, SafeAreaView, Switch, TextInput, Platform, Dimensions, ScrollView, Alert, Image, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
|
|
4
4
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import Ionicons from '@expo/vector-icons/Ionicons';
|
|
@@ -490,8 +490,8 @@ function UISelect(props) {
|
|
|
490
490
|
var items = Utils.nvl(scope.getOptions(), []);
|
|
491
491
|
var placeholder = scope.attr('placeholder', 'Selecione...');
|
|
492
492
|
var value = scope.getDisplayValue();
|
|
493
|
-
var theme = useTheme();
|
|
494
493
|
var main = ViewUtils.getCrud('view');
|
|
494
|
+
var theme = scope.getTheme();
|
|
495
495
|
var handlePress = function handlePress() {
|
|
496
496
|
var _modalVisible = !modalVisible;
|
|
497
497
|
main.data.selectIsOpen = _modalVisible;
|
|
@@ -524,9 +524,10 @@ function UISelect(props) {
|
|
|
524
524
|
style: style('selectLabel'),
|
|
525
525
|
children: Utils.nvl(value, placeholder)
|
|
526
526
|
}), /*#__PURE__*/jsx(Ionicons$1, {
|
|
527
|
-
name: "
|
|
528
|
-
size:
|
|
529
|
-
color:
|
|
527
|
+
name: "chevron-back-outline",
|
|
528
|
+
size: 24,
|
|
529
|
+
color: scope.getPart('iconColor', null, 'white'),
|
|
530
|
+
style: style('modalCloseText', {})
|
|
530
531
|
})]
|
|
531
532
|
}), /*#__PURE__*/jsxs(Modal, {
|
|
532
533
|
animationType: "slide",
|