react-native-input-select 1.3.6 → 1.3.8
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/lib/commonjs/components/CheckBox/checkbox.types.js.map +1 -1
- package/lib/commonjs/components/CheckBox/index.js +22 -25
- package/lib/commonjs/components/CheckBox/index.js.map +1 -1
- package/lib/commonjs/components/CustomModal/index.js +23 -26
- package/lib/commonjs/components/CustomModal/index.js.map +1 -1
- package/lib/commonjs/components/Dropdown/Dropdown.js +30 -30
- package/lib/commonjs/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownFlatList.js +39 -44
- package/lib/commonjs/components/Dropdown/DropdownFlatList.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownListItem.js +22 -24
- package/lib/commonjs/components/Dropdown/DropdownListItem.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownSectionList.js +47 -54
- package/lib/commonjs/components/Dropdown/DropdownSectionList.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownSelectedItemsView.js +48 -57
- package/lib/commonjs/components/Dropdown/DropdownSelectedItemsView.js.map +1 -1
- package/lib/commonjs/components/Input/index.js +13 -15
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Others/index.js +18 -22
- package/lib/commonjs/components/Others/index.js.map +1 -1
- package/lib/commonjs/constants/index.js +3 -6
- package/lib/commonjs/constants/index.js.map +1 -1
- package/lib/commonjs/index.js +106 -91
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/colors.js +1 -2
- package/lib/commonjs/styles/colors.js.map +1 -1
- package/lib/commonjs/styles/input.js +1 -2
- package/lib/commonjs/styles/input.js.map +1 -1
- package/lib/commonjs/styles/typography.js +1 -2
- package/lib/commonjs/styles/typography.js.map +1 -1
- package/lib/commonjs/types/index.types.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/components/CheckBox/checkbox.types.js.map +1 -1
- package/lib/module/components/CheckBox/index.js +20 -22
- package/lib/module/components/CheckBox/index.js.map +1 -1
- package/lib/module/components/CustomModal/index.js +21 -23
- package/lib/module/components/CustomModal/index.js.map +1 -1
- package/lib/module/components/Dropdown/Dropdown.js +28 -27
- package/lib/module/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownFlatList.js +35 -39
- package/lib/module/components/Dropdown/DropdownFlatList.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownListItem.js +18 -19
- package/lib/module/components/Dropdown/DropdownListItem.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownSectionList.js +43 -49
- package/lib/module/components/Dropdown/DropdownSectionList.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownSelectedItemsView.js +46 -54
- package/lib/module/components/Dropdown/DropdownSelectedItemsView.js.map +1 -1
- package/lib/module/components/Input/index.js +10 -11
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Others/index.js +17 -21
- package/lib/module/components/Others/index.js.map +1 -1
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/index.js +104 -88
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/colors.js.map +1 -1
- package/lib/module/styles/input.js.map +1 -1
- package/lib/module/styles/typography.js.map +1 -1
- package/lib/module/types/index.types.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/jest-setup.d.ts +2 -0
- package/lib/typescript/jest-setup.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/CheckBox/checkbox.types.d.ts +1 -0
- package/lib/typescript/src/components/CheckBox/checkbox.types.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/CheckBox/index.d.ts +3 -2
- package/lib/typescript/src/components/CheckBox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/CustomModal/index.d.ts +6 -0
- package/lib/typescript/src/components/CustomModal/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Dropdown/Dropdown.d.ts +4 -0
- package/lib/typescript/src/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Dropdown/DropdownFlatList.d.ts +3 -2
- package/lib/typescript/src/components/Dropdown/DropdownFlatList.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Dropdown/DropdownListItem.d.ts +2 -1
- package/lib/typescript/src/components/Dropdown/DropdownListItem.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Dropdown/DropdownSectionList.d.ts +3 -2
- package/lib/typescript/src/components/Dropdown/DropdownSectionList.d.ts.map +1 -0
- package/lib/typescript/src/components/Dropdown/DropdownSelectedItemsView.d.ts +4 -0
- package/lib/typescript/src/components/Dropdown/DropdownSelectedItemsView.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Input/index.d.ts +3 -2
- package/lib/typescript/src/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/{components → src/components}/Others/index.d.ts +8 -7
- package/lib/typescript/src/components/Others/index.d.ts.map +1 -0
- package/lib/typescript/{constants → src/constants}/index.d.ts +1 -0
- package/lib/typescript/src/constants/index.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/styles/colors.d.ts +2 -0
- package/lib/typescript/src/styles/colors.d.ts.map +1 -0
- package/lib/typescript/{styles → src/styles}/input.d.ts +1 -0
- package/lib/typescript/src/styles/input.d.ts.map +1 -0
- package/lib/typescript/src/styles/typography.d.ts +2 -0
- package/lib/typescript/src/styles/typography.d.ts.map +1 -0
- package/lib/typescript/{types → src/types}/index.types.d.ts +6 -2
- package/lib/typescript/src/types/index.types.d.ts.map +1 -0
- package/lib/typescript/{utils → src/utils}/index.d.ts +1 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/package.json +28 -21
- package/src/components/CustomModal/index.tsx +5 -3
- package/src/components/Dropdown/Dropdown.tsx +4 -2
- package/src/components/Dropdown/DropdownSelectedItemsView.tsx +5 -5
- package/src/index.tsx +37 -7
- package/src/types/index.types.ts +4 -2
- package/lib/typescript/components/CustomModal/index.d.ts +0 -5
- package/lib/typescript/components/Dropdown/Dropdown.d.ts +0 -3
- package/lib/typescript/components/Dropdown/DropdownSelectedItemsView.d.ts +0 -3
- package/lib/typescript/styles/colors.d.ts +0 -1
- package/lib/typescript/styles/typography.d.ts +0 -1
|
@@ -2,39 +2,37 @@ import React from 'react';
|
|
|
2
2
|
import { Pressable, Text, StyleSheet, Image, View } from 'react-native';
|
|
3
3
|
import { colors } from '../../styles/colors';
|
|
4
4
|
import { CHECKBOX_SIZE } from '../../constants';
|
|
5
|
-
const CheckBox =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
onChange
|
|
19
|
-
} = _ref;
|
|
5
|
+
const CheckBox = ({
|
|
6
|
+
label,
|
|
7
|
+
value,
|
|
8
|
+
disabled,
|
|
9
|
+
primaryColor,
|
|
10
|
+
checkboxSize,
|
|
11
|
+
checkboxStyle,
|
|
12
|
+
checkboxLabelStyle,
|
|
13
|
+
checkboxComponentStyles,
|
|
14
|
+
checkboxComponent,
|
|
15
|
+
checkboxControls,
|
|
16
|
+
onChange
|
|
17
|
+
}) => {
|
|
20
18
|
const fillColor = {
|
|
21
|
-
backgroundColor: disabled ? '#d3d3d3' : value ?
|
|
22
|
-
borderColor: disabled ? colors.disabled :
|
|
19
|
+
backgroundColor: disabled ? '#d3d3d3' : value ? checkboxControls?.checkboxStyle?.backgroundColor || checkboxComponentStyles?.checkboxStyle?.backgroundColor || checkboxStyle?.backgroundColor || primaryColor || 'green' : 'white',
|
|
20
|
+
borderColor: disabled ? colors.disabled : checkboxControls?.checkboxStyle?.borderColor || checkboxComponentStyles?.checkboxStyle?.borderColor || checkboxStyle?.borderColor || styles.checkbox.borderColor
|
|
23
21
|
};
|
|
24
22
|
return /*#__PURE__*/React.createElement(Pressable, {
|
|
25
23
|
onPress: onChange ? () => onChange(!value) : null,
|
|
26
24
|
style: [styles.checkboxContainer],
|
|
27
25
|
disabled: disabled
|
|
28
26
|
}, /*#__PURE__*/React.createElement(View, {
|
|
29
|
-
style: [styles.checkbox,
|
|
30
|
-
},
|
|
27
|
+
style: [styles.checkbox, checkboxControls?.checkboxStyle || checkboxComponentStyles?.checkboxStyle || checkboxStyle, fillColor]
|
|
28
|
+
}, checkboxControls?.checkboxComponent || checkboxComponent || /*#__PURE__*/React.createElement(Image, {
|
|
31
29
|
source: require('../../asset/check.png'),
|
|
32
30
|
style: [{
|
|
33
|
-
height:
|
|
34
|
-
width:
|
|
31
|
+
height: checkboxControls?.checkboxSize || checkboxComponentStyles?.checkboxSize || checkboxSize || CHECKBOX_SIZE,
|
|
32
|
+
width: checkboxControls?.checkboxSize || checkboxComponentStyles?.checkboxSize || checkboxSize || CHECKBOX_SIZE
|
|
35
33
|
}]
|
|
36
34
|
})), label && label !== '' && /*#__PURE__*/React.createElement(Text, {
|
|
37
|
-
style: [
|
|
35
|
+
style: [checkboxControls?.checkboxLabelStyle || checkboxComponentStyles?.checkboxLabelStyle || checkboxLabelStyle, styles.labelStyle]
|
|
38
36
|
}, label));
|
|
39
37
|
};
|
|
40
38
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","Text","StyleSheet","Image","View","colors","CHECKBOX_SIZE","CheckBox","
|
|
1
|
+
{"version":3,"names":["React","Pressable","Text","StyleSheet","Image","View","colors","CHECKBOX_SIZE","CheckBox","label","value","disabled","primaryColor","checkboxSize","checkboxStyle","checkboxLabelStyle","checkboxComponentStyles","checkboxComponent","checkboxControls","onChange","fillColor","backgroundColor","borderColor","styles","checkbox","createElement","onPress","style","checkboxContainer","source","require","height","width","labelStyle","create","flexDirection","flexWrap","alignItems","padding","borderW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E,uBAAuB,EAAEF,aAAa,IACtCA,aAAa,EACfM,SAAS;EACT,GAEDF,gBAAgB,EAAED,iBAAiB,IAAIA,iBAAiB,iBACvDjB,KAAA,CAAAyB,aAAA,CAACrB,KAAK;IACJyB,MAAM,EAAEC,OAAO,CAAC,uBAAuB,CAAE;IACzCH,KAAK,EAAE,CACL;MACEI,MAAM,EACJb,gBAAgB,EAAEL,YAAY,IAC9BG,uBAAuB,EAAEH,YAAY,IACrCA,YAAY,IACZN,aAAa;MACfyB,KAAK,EACHd,gBAAgB,EAAEL,YAAY,IAC9BG,uBAAuB,EAAEH,YAAY,IACrCA,YAAY,IACZN;IACJ,CAAC;EACD,CACH,CAEC,CAAC,EACNE,KAAK,IAAIA,KAAK,KAAK,EAAE,iBACpBT,KAAA,CAAAyB,aAAA,CAACvB,IAAI;IACHyB,KAAK,EAAE,CACLT,gBAAgB,EAAEH,kBAAkB,IAClCC,uBAAuB,EAAED,kBAAkB,IAC3CA,kBAAkB,EACpBQ,MAAM,CAACU,UAAU;EACjB,GAEDxB,KACG,CAEC,CAAC;AAEhB,CAAC;AAED,MAAMc,MAAM,GAAGpB,UAAU,CAAC+B,MAAM,CAAC;EAC/BN,iBAAiB,EAAE;IACjBO,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,QAAQ;IAClBC,UAAU,EAAE;EACd,CAAC;EACDb,QAAQ,EAAE;IACRc,OAAO,EAAE,CAAC;IACVC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,OAAO;IACpBC,YAAY,EAAE,CAAC;IACfnB,WAAW,EAAE;EACf,CAAC;EACDW,UAAU,EAAE;IAAES,UAAU,EAAE;EAAG;AAC/B,CAAC,CAAC;AAEF,eAAelC,QAAQ","ignoreList":[]}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { KeyboardAvoidingView, Modal, Platform, SafeAreaView, StyleSheet, TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
|
|
4
4
|
import { colors } from '../../styles/colors';
|
|
5
5
|
// In iOS, `SafeAreaView` does not automatically account on keyboard.
|
|
6
6
|
// Therefore, for iOS we need to wrap the content in `KeyboardAvoidingView`.
|
|
7
|
-
const ModalContentWrapper =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} = _ref;
|
|
7
|
+
const ModalContentWrapper = ({
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
11
10
|
return Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
12
11
|
style: [{
|
|
13
12
|
flex: 1
|
|
@@ -15,31 +14,30 @@ const ModalContentWrapper = _ref => {
|
|
|
15
14
|
behavior: "padding"
|
|
16
15
|
}, children) : /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
17
16
|
};
|
|
18
|
-
const CustomModal =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} = _ref2;
|
|
17
|
+
const CustomModal = ({
|
|
18
|
+
visible,
|
|
19
|
+
closeModal,
|
|
20
|
+
modalBackgroundStyle,
|
|
21
|
+
//kept for backwards compatibility
|
|
22
|
+
modalOptionsContainerStyle,
|
|
23
|
+
//kept for backwards compatibility
|
|
24
|
+
modalControls,
|
|
25
|
+
modalProps,
|
|
26
|
+
//kept for backwards compatibility
|
|
27
|
+
children
|
|
28
|
+
}) => {
|
|
31
29
|
return /*#__PURE__*/React.createElement(Modal, _extends({
|
|
32
30
|
transparent: true,
|
|
33
31
|
visible: visible,
|
|
34
|
-
onRequestClose: () =>
|
|
32
|
+
onRequestClose: () => closeModal?.(),
|
|
35
33
|
animationType: "fade"
|
|
36
|
-
}, modalControls
|
|
37
|
-
onPress: () =>
|
|
38
|
-
style: [styles.modalContainer, styles.modalBackgroundStyle,
|
|
34
|
+
}, modalControls?.modalProps, modalProps), /*#__PURE__*/React.createElement(ModalContentWrapper, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
35
|
+
onPress: () => closeModal?.() || modalControls?.modalProps?.closeModal?.(),
|
|
36
|
+
style: [styles.modalContainer, styles.modalBackgroundStyle, modalControls?.modalBackgroundStyle || modalBackgroundStyle]
|
|
39
37
|
}, /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
40
38
|
onPress: () => {}
|
|
41
39
|
}, /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
42
|
-
style: [styles.modalOptionsContainer,
|
|
40
|
+
style: [styles.modalOptionsContainer, modalControls?.modalOptionsContainerStyle || modalOptionsContainerStyle]
|
|
43
41
|
}, children)))));
|
|
44
42
|
};
|
|
45
43
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","KeyboardAvoidingView","Modal","Platform","SafeAreaView","StyleSheet","TouchableOpacity","TouchableWithoutFeedback","colors","ModalContentWrapper","
|
|
1
|
+
{"version":3,"names":["React","KeyboardAvoidingView","Modal","Platform","SafeAreaView","StyleSheet","TouchableOpacity","TouchableWithoutFeedback","colors","ModalContentWrapper","children","OS","createElement","style","flex","behavior","Fragment","CustomModal","visible","closeModal","modalBackgroundStyle","modalOptionsContainerStyle","modalControls","modalProps","_extends","transparent","onRequestClose","animationType","onPress","styles","modalContainer","modalOptionsContainer","create","justifyContent","backgroundColor","maxHeight","white","borderTopLeftRadius","borderTopRightRadius","zIndex"],"sourceRoot":"../../../../src","sources":["components/CustomModal/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAwB,OAAO;AAC3C,SACEC,oBAAoB,EACpBC,KAA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A,CAAA,KAAM,CAAC;EAAE,gBAC1C5B,KAAA,CAAAY,aAAA,CAACR,YAAY;IACXS,KAAK,EAAE,CACLgB,MAAM,CAACE,qBAAqB,EAC5BT,aAAa,EAAED,0BAA0B,IACvCA,0BAA0B;EAC5B,GAEDX,QACW,CACU,CACV,CACC,CAChB,CAAC;AAEZ,CAAC;AAED,MAAMmB,MAAM,GAAGxB,UAAU,CAAC2B,MAAM,CAAC;EAC/BF,cAAc,EAAE;IACdhB,IAAI,EAAE,CAAC;IACPmB,cAAc,EAAE;EAClB,CAAC;EACDb,oBAAoB,EAAE;IAAEc,eAAe,EAAE;EAAqB,CAAC;EAC/DH,qBAAqB,EAAE;IACrBI,SAAS,EAAE,KAAK;IAChBD,eAAe,EAAE1B,MAAM,CAAC4B,KAAK;IAC7BC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE,EAAE;IACxBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAetB,WAAW","ignoreList":[]}
|
|
@@ -3,32 +3,32 @@ import { View, Text, StyleSheet } from 'react-native';
|
|
|
3
3
|
import DropdownSelectedItemsView from './DropdownSelectedItemsView';
|
|
4
4
|
import { colors } from '../../styles/colors';
|
|
5
5
|
import { typography } from '../../styles/typography';
|
|
6
|
-
const Dropdown =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
6
|
+
const Dropdown = ({
|
|
7
|
+
label,
|
|
8
|
+
placeholder,
|
|
9
|
+
helperText,
|
|
10
|
+
error,
|
|
11
|
+
getSelectedItemsLabel,
|
|
12
|
+
openModal,
|
|
13
|
+
closeModal,
|
|
14
|
+
isMultiple,
|
|
15
|
+
selectedItem,
|
|
16
|
+
selectedItems,
|
|
17
|
+
dropdownIcon,
|
|
18
|
+
labelStyle,
|
|
19
|
+
dropdownStyle,
|
|
20
|
+
dropdownIconStyle,
|
|
21
|
+
dropdownContainerStyle,
|
|
22
|
+
selectedItemStyle,
|
|
23
|
+
placeholderStyle,
|
|
24
|
+
multipleSelectedItemStyle,
|
|
25
|
+
dropdownErrorStyle,
|
|
26
|
+
dropdownErrorTextStyle,
|
|
27
|
+
dropdownHelperTextStyle,
|
|
28
|
+
primaryColor,
|
|
29
|
+
disabled,
|
|
30
|
+
setIndexOfSelectedItem
|
|
31
|
+
}) => {
|
|
32
32
|
return /*#__PURE__*/React.createElement(View, {
|
|
33
33
|
style: [styles.dropdownInputContainer, dropdownContainerStyle]
|
|
34
34
|
}, label && label !== '' && /*#__PURE__*/React.createElement(Text, {
|
|
@@ -37,7 +37,8 @@ const Dropdown = _ref => {
|
|
|
37
37
|
placeholder: placeholder,
|
|
38
38
|
error: error,
|
|
39
39
|
getSelectedItemsLabel: getSelectedItemsLabel,
|
|
40
|
-
|
|
40
|
+
openModal: openModal,
|
|
41
|
+
closeModal: closeModal,
|
|
41
42
|
isMultiple: isMultiple,
|
|
42
43
|
selectedItem: selectedItem,
|
|
43
44
|
selectedItems: selectedItems,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","DropdownSelectedItemsView","colors","typography","Dropdown","
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","DropdownSelectedItemsView","colors","typography","Dropdown","label","placeholder","helperText","error","getSelectedItemsLabel","openModal","closeModal","isMultiple","selectedItem","selectedItems","dropdownIcon","labelStyle","dropdownStyle","dropdownIconStyle","dropdownContainerStyle","selectedItemStyle","placeholderStyle","multipleSelectedItemStyle","dropdownErrorStyle","dropdownErrorTextStyle","dropdownHelperTextStyle","primaryColor","disabled","setIndexOfSelectedItem","createElement","style","styles","dropdownInputContainer","helper","create","marginBottom","color","gray","caption","red","marginTop","primary","width","blackText","black"],"sourceRoot":"../../../../src","sources":["components/Dropdown/Dropdown.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACrD,OAAOC,yBAAyB,MAAM,6BAA6B;AACnE,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,UAAU,QAAQ,yBAAyB;AAEpD,MAAMC,QAAQ,GAAGA,CAAC;EAChBC,KAAK;EACLC,WAAW;EACXC,UAAU;EACVC,KAAK;EACLC,qBAAqB;EACrBC,SAAS;EACTC,UAAU;EACVC,UAAU;EACVC,YAAY;EACZC,aAAa;EACbC,YAAY;EACZC,UAAU;EACVC,aAAa;EACbC,iBAAiB;EACjBC,sBAAsB;EACtBC,iBAAiB;EACjBC,gBAAgB;EAChBC,yBAAyB;EACzBC,kBAAkB;EAClBC,sBAAsB;EACtBC,uBAAuB;EACvBC,YAAY;EACZC,QAAQ;EACRC;AACG,CAAC,KAAK;EACT,oBACE/B,KAAA,CAAAgC,aAAA,CAAC/B,IAAI;IAACgC,KAAK,EAAE,CAACC,MAAM,CAACC,sBAAsB,EAAEb,sBAAsB;EAAE,GAClEd,KAAK,IAAIA,KAAK,KAAK,EAAE,iBACpBR,KAAA,CAAAgC,aAAA,CAAC9B,IAAI;IAAC+B,KAAK,EAAE,CAACC,MAAM,CAAC1B,KAAK,EAAEW,UAAU;EAAE,GAAEX,KAAY,CACvD,eAEDR,KAAA,CAAAgC,aAAA,CAAC5B,yBAAyB;IACxBK,WAAW,EAAEA,WAAY;IACzBE,KAAK,EAAEA,KAAM;IACbC,qBAAqB,EAAEA,qBAAsB;IAC7CC,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IACvBC,UAAU,EAAEA,UAAW;IACvBC,YAAY,EAAEA,YAAa;IAC3BC,aAAa,EA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AAEP,KAAK,EAAElC,MAAM,CAAC0C;EAAM;AACnC,CAAC,CAAC;AAEF,eAAexC,QAAQ","ignoreList":[]}
|
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* eslint-disable react-native/no-inline-styles */
|
|
3
3
|
import React, { useEffect, useRef } from 'react';
|
|
4
4
|
import { FlatList, StyleSheet } from 'react-native';
|
|
5
5
|
import DropdownListItem from './DropdownListItem';
|
|
6
6
|
import { ItemSeparatorComponent, ListEmptyComponent } from '../Others';
|
|
7
|
-
const DropdownFlatList =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} = _ref;
|
|
7
|
+
const DropdownFlatList = ({
|
|
8
|
+
options,
|
|
9
|
+
optionLabel,
|
|
10
|
+
optionValue,
|
|
11
|
+
isMultiple,
|
|
12
|
+
isSearchable,
|
|
13
|
+
selectedItems,
|
|
14
|
+
selectedItem,
|
|
15
|
+
handleMultipleSelections,
|
|
16
|
+
handleSingleSelection,
|
|
17
|
+
primaryColor,
|
|
18
|
+
checkboxSize,
|
|
19
|
+
// kept for backwards compatibility to be removed in future release
|
|
20
|
+
checkboxStyle,
|
|
21
|
+
// kept for backwards compatibility to be removed in future release
|
|
22
|
+
checkboxLabelStyle,
|
|
23
|
+
// kept for backwards compatibility to be removed in future release
|
|
24
|
+
checkboxComponentStyles,
|
|
25
|
+
checkboxComponent,
|
|
26
|
+
checkboxControls,
|
|
27
|
+
listComponentStyles,
|
|
28
|
+
listIndex,
|
|
29
|
+
emptyListMessage,
|
|
30
|
+
...rest
|
|
31
|
+
}) => {
|
|
33
32
|
const flatlistRef = useRef(null);
|
|
34
33
|
const scrollToItem = index => {
|
|
35
|
-
|
|
36
|
-
(_flatlistRef$current = flatlistRef.current) === null || _flatlistRef$current === void 0 ? void 0 : _flatlistRef$current.scrollToIndex({
|
|
34
|
+
flatlistRef.current?.scrollToIndex({
|
|
37
35
|
index,
|
|
38
36
|
animated: true
|
|
39
37
|
});
|
|
@@ -48,14 +46,14 @@ const DropdownFlatList = _ref => {
|
|
|
48
46
|
extraData: isMultiple ? selectedItems : selectedItem,
|
|
49
47
|
initialNumToRender: 5,
|
|
50
48
|
ListEmptyComponent: /*#__PURE__*/React.createElement(ListEmptyComponent, {
|
|
51
|
-
listEmptyComponentStyle: listComponentStyles
|
|
49
|
+
listEmptyComponentStyle: listComponentStyles?.listEmptyComponentStyle,
|
|
52
50
|
emptyListMessage: emptyListMessage
|
|
53
51
|
}),
|
|
54
52
|
contentContainerStyle: [isSearchable ? {
|
|
55
53
|
paddingTop: 0
|
|
56
54
|
} : styles.contentContainerStyle],
|
|
57
55
|
ItemSeparatorComponent: () => /*#__PURE__*/React.createElement(ItemSeparatorComponent, {
|
|
58
|
-
itemSeparatorStyle: listComponentStyles
|
|
56
|
+
itemSeparatorStyle: listComponentStyles?.itemSeparatorStyle
|
|
59
57
|
}),
|
|
60
58
|
renderItem: item => _renderItem(item, {
|
|
61
59
|
optionLabel,
|
|
@@ -79,20 +77,18 @@ const DropdownFlatList = _ref => {
|
|
|
79
77
|
}),
|
|
80
78
|
keyExtractor: (_item, index) => `Options${index}`,
|
|
81
79
|
ref: flatlistRef,
|
|
82
|
-
onScrollToIndexFailed:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} = _ref2;
|
|
80
|
+
onScrollToIndexFailed: ({
|
|
81
|
+
index
|
|
82
|
+
}) => {
|
|
86
83
|
setTimeout(() => {
|
|
87
84
|
scrollToItem(index);
|
|
88
85
|
}, 500);
|
|
89
86
|
}
|
|
90
87
|
}, rest));
|
|
91
88
|
};
|
|
92
|
-
const _renderItem = (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} = _ref3;
|
|
89
|
+
const _renderItem = ({
|
|
90
|
+
item
|
|
91
|
+
}, props) => {
|
|
96
92
|
return /*#__PURE__*/React.createElement(DropdownListItem, {
|
|
97
93
|
item: item,
|
|
98
94
|
optionLabel: props.optionLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useRef","FlatList","StyleSheet","DropdownListItem","ItemSeparatorComponent","ListEmptyComponent","DropdownFlatList","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","FlatList","StyleSheet","DropdownListItem","ItemSeparatorComponent","ListEmptyComponent","DropdownFlatList","options","optionLabel","optionValue","isMultiple","isSearchable","selectedItems","selectedItem","handleMultipleSelections","handleSingleSelection","primaryColor","checkboxSize","checkboxStyle","checkboxLabelStyle","checkboxComponentStyles","checkboxComponent","checkboxControls","listComponentStyles","listIndex","emptyListMessage","rest","flatlistRef","scrollToItem","index","current","scrollToIndex","animated","itemIndex","createElement","_extends","data","extraData","initialNumToRender","listEmptyComponentStyle","contentContainerStyle","paddingTop","styles","itemSeparatorStyle","renderItem","item","_renderItem","selectedOption","onChange","keyExtractor","_item","ref","onScrollToIndexFailed","setTimeout","props","create"],"sourceRoot":"../../../../src","sources":["components/Dropdown/DropdownFlatList.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACnD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,sBAAsB,EAAEC,kBAAkB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IAC7CS,YAAY,EAAE0B,KAAK,CAAC1B,YAAa;IACjCR,uBAAuB,EAAEkC,KAAK,CAAClC,uBAAwB;IACvDC,iBAAiB,EAAEiC,KAAK,CAACjC,iBAAkB;IAC3CC,gBAAgB,EAAEgC,KAAK,CAAChC;EAAiB,CAC1C,CAAC;AAEN,CAAC;AAED,MAAMoB,MAAM,GAAGxC,UAAU,CAACqD,MAAM,CAAC;EAC/Bf,qBAAqB,EAAE;IAAEC,UAAU,EAAE;EAAG;AAC1C,CAAC,CAAC;AAEF,eAAenC,gBAAgB","ignoreList":[]}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
3
|
import CheckBox from '../CheckBox';
|
|
4
|
-
const DropdownListItem =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} = _ref;
|
|
4
|
+
const DropdownListItem = ({
|
|
5
|
+
item,
|
|
6
|
+
optionLabel,
|
|
7
|
+
optionValue,
|
|
8
|
+
isMultiple,
|
|
9
|
+
selectedOption,
|
|
10
|
+
onChange,
|
|
11
|
+
primaryColor,
|
|
12
|
+
checkboxSize,
|
|
13
|
+
checkboxStyle,
|
|
14
|
+
checkboxLabelStyle,
|
|
15
|
+
checkboxComponentStyles,
|
|
16
|
+
checkboxComponent,
|
|
17
|
+
checkboxControls
|
|
18
|
+
}) => {
|
|
20
19
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
21
20
|
style: styles.listItemContainerStyle,
|
|
22
21
|
onPress: item.disabled ? () => {} : () => onChange(item[optionValue]) // intentionally didn't use the disable property
|
|
@@ -26,9 +25,9 @@ const DropdownListItem = _ref => {
|
|
|
26
25
|
onChange: () => onChange(item[optionValue]),
|
|
27
26
|
primaryColor: primaryColor,
|
|
28
27
|
checkboxControls: checkboxControls,
|
|
29
|
-
checkboxSize:
|
|
30
|
-
checkboxStyle:
|
|
31
|
-
checkboxLabelStyle:
|
|
28
|
+
checkboxSize: checkboxComponentStyles?.checkboxSize || checkboxSize,
|
|
29
|
+
checkboxStyle: checkboxComponentStyles?.checkboxStyle || checkboxStyle,
|
|
30
|
+
checkboxLabelStyle: checkboxComponentStyles?.checkboxLabelStyle || checkboxLabelStyle,
|
|
32
31
|
disabled: item.disabled,
|
|
33
32
|
checkboxComponent: checkboxComponent
|
|
34
33
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","TouchableOpacity","StyleSheet","CheckBox","DropdownListItem","
|
|
1
|
+
{"version":3,"names":["React","memo","TouchableOpacity","StyleSheet","CheckBox","DropdownListItem","item","optionLabel","optionValue","isMultiple","selectedOption","onChange","primaryColor","checkboxSize","checkboxStyle","checkboxLabelStyle","checkboxComponentStyles","checkboxComponent","checkboxControls","createElement","style","styles","listItemContainerStyle","onPress","disabled","value","includes","label","create","paddingHorizontal","paddingVertical","flexDirection","alignItems"],"sourceRoot":"../../../../src","sources":["components/Dropdown/DropdownListItem.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC3D,OAAOC,QAAQ,MAAM,aAAa;AAElC,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,IAAI;EACJC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,cAAc;EACdC,QAAQ;EACRC,YAAY;EACZC,YAAY;EACZC,aAAa;EACbC,kBAAkB;EAClBC,uBAAuB;EACvBC,iBAAiB;EACjBC;AACG,CAAC,KAAK;EACT,oBACElB,KAAA,CAAAmB,aAAA,CAACjB,gBAAgB;IACfkB,KAAK,EAAEC,MAAM,CAACC,sBAAuB;IACrCC,OAAO,EACLjB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