react-native-input-select 1.3.5 → 1.3.7
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 +21 -24
- package/lib/commonjs/components/CheckBox/index.js.map +1 -1
- package/lib/commonjs/components/CustomModal/index.js +31 -21
- package/lib/commonjs/components/CustomModal/index.js.map +1 -1
- package/lib/commonjs/components/Dropdown/Dropdown.js +26 -28
- package/lib/commonjs/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownFlatList.js +37 -42
- package/lib/commonjs/components/Dropdown/DropdownFlatList.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownListItem.js +21 -23
- package/lib/commonjs/components/Dropdown/DropdownListItem.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownSectionList.js +45 -52
- package/lib/commonjs/components/Dropdown/DropdownSectionList.js.map +1 -1
- package/lib/commonjs/components/Dropdown/DropdownSelectedItemsView.js +42 -51
- package/lib/commonjs/components/Dropdown/DropdownSelectedItemsView.js.map +1 -1
- package/lib/commonjs/components/Input/index.js +12 -14
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Others/index.js +17 -21
- 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 +92 -84
- 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 +31 -20
- package/lib/module/components/CustomModal/index.js.map +1 -1
- package/lib/module/components/Dropdown/Dropdown.js +25 -26
- package/lib/module/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownFlatList.js +34 -38
- 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 +42 -48
- package/lib/module/components/Dropdown/DropdownSectionList.js.map +1 -1
- package/lib/module/components/Dropdown/DropdownSelectedItemsView.js +41 -49
- package/lib/module/components/Dropdown/DropdownSelectedItemsView.js.map +1 -1
- package/lib/module/components/Input/index.js +9 -10
- 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 +91 -82
- 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/components/CheckBox/checkbox.types.d.ts +1 -0
- package/lib/typescript/components/CheckBox/checkbox.types.d.ts.map +1 -0
- package/lib/typescript/components/CheckBox/index.d.ts +3 -2
- package/lib/typescript/components/CheckBox/index.d.ts.map +1 -0
- package/lib/typescript/components/CustomModal/index.d.ts +3 -2
- package/lib/typescript/components/CustomModal/index.d.ts.map +1 -0
- package/lib/typescript/components/Dropdown/Dropdown.d.ts +3 -2
- package/lib/typescript/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/typescript/components/Dropdown/DropdownFlatList.d.ts +3 -2
- package/lib/typescript/components/Dropdown/DropdownFlatList.d.ts.map +1 -0
- package/lib/typescript/components/Dropdown/DropdownListItem.d.ts +2 -1
- package/lib/typescript/components/Dropdown/DropdownListItem.d.ts.map +1 -0
- package/lib/typescript/components/Dropdown/DropdownSectionList.d.ts +3 -2
- package/lib/typescript/components/Dropdown/DropdownSectionList.d.ts.map +1 -0
- package/lib/typescript/components/Dropdown/DropdownSelectedItemsView.d.ts +3 -2
- package/lib/typescript/components/Dropdown/DropdownSelectedItemsView.d.ts.map +1 -0
- package/lib/typescript/components/Input/index.d.ts +3 -2
- package/lib/typescript/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/components/Others/index.d.ts +8 -7
- package/lib/typescript/components/Others/index.d.ts.map +1 -0
- package/lib/typescript/constants/index.d.ts +1 -0
- package/lib/typescript/constants/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +1 -0
- package/lib/typescript/styles/colors.d.ts.map +1 -0
- package/lib/typescript/styles/input.d.ts +1 -0
- package/lib/typescript/styles/input.d.ts.map +1 -0
- package/lib/typescript/styles/typography.d.ts +1 -0
- package/lib/typescript/styles/typography.d.ts.map +1 -0
- package/lib/typescript/types/index.types.d.ts +1 -0
- package/lib/typescript/types/index.types.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +1 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/package.json +21 -20
- package/src/components/CustomModal/index.tsx +48 -25
- package/src/index.tsx +24 -2
|
@@ -1,33 +1,44 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Modal,
|
|
3
|
+
import { KeyboardAvoidingView, Modal, Platform, SafeAreaView, StyleSheet, TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
|
|
4
4
|
import { colors } from '../../styles/colors';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
// In iOS, `SafeAreaView` does not automatically account on keyboard.
|
|
6
|
+
// Therefore, for iOS we need to wrap the content in `KeyboardAvoidingView`.
|
|
7
|
+
const ModalContentWrapper = ({
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
10
|
+
return Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
11
|
+
style: [{
|
|
12
|
+
flex: 1
|
|
13
|
+
}],
|
|
14
|
+
behavior: "padding"
|
|
15
|
+
}, children) : /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
|
+
};
|
|
17
|
+
const CustomModal = ({
|
|
18
|
+
visible,
|
|
19
|
+
onRequestClose,
|
|
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
|
+
}) => {
|
|
18
29
|
return /*#__PURE__*/React.createElement(Modal, _extends({
|
|
19
30
|
transparent: true,
|
|
20
31
|
visible: visible,
|
|
21
|
-
onRequestClose:
|
|
32
|
+
onRequestClose: e => onRequestClose?.(e),
|
|
22
33
|
animationType: "fade"
|
|
23
|
-
}, modalControls
|
|
24
|
-
onPress:
|
|
25
|
-
style: [styles.modalContainer, styles.modalBackgroundStyle,
|
|
34
|
+
}, modalControls?.modalProps, modalProps), /*#__PURE__*/React.createElement(ModalContentWrapper, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
35
|
+
onPress: e => onRequestClose?.(e),
|
|
36
|
+
style: [styles.modalContainer, styles.modalBackgroundStyle, modalControls?.modalBackgroundStyle || modalBackgroundStyle]
|
|
26
37
|
}, /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
27
38
|
onPress: () => {}
|
|
28
39
|
}, /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
29
|
-
style: [styles.modalOptionsContainer,
|
|
30
|
-
}, children))));
|
|
40
|
+
style: [styles.modalOptionsContainer, modalControls?.modalOptionsContainerStyle || modalOptionsContainerStyle]
|
|
41
|
+
}, children)))));
|
|
31
42
|
};
|
|
32
43
|
const styles = StyleSheet.create({
|
|
33
44
|
modalContainer: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Modal","
|
|
1
|
+
{"version":3,"names":["React","KeyboardAvoidingView","Modal","Platform","SafeAreaView","StyleSheet","TouchableOpacity","TouchableWithoutFeedback","colors","ModalContentWrapper","children","OS","createElement","style","flex","behavior","Fragment","CustomModal","visible","onRequestClose","modalBackgroundStyle","modalOptionsContainerStyle","modalControls","modalProps","_extends","transparent","e","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,KAAK,EAELC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,gBAAgB,EAChBC,wBAAwB,QACnB,cAAc;AACrB,SAASC,MAAM,QAAQ,qBAAqB;AAO5C;AACA;AACA,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC;AACkB,CAAC,KAAmB;EACtC,OAAOP,QAAQ,CAACQ,EAAE,KAAK,KAAK,gBAC1BX,KAAA,CAAAY,aAAA,CAACX,oBAAoB;IAACY,KAAK,EAAE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AE;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,31 @@ 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
|
-
} = _ref;
|
|
6
|
+
const Dropdown = ({
|
|
7
|
+
label,
|
|
8
|
+
placeholder,
|
|
9
|
+
helperText,
|
|
10
|
+
error,
|
|
11
|
+
getSelectedItemsLabel,
|
|
12
|
+
handleToggleModal,
|
|
13
|
+
isMultiple,
|
|
14
|
+
selectedItem,
|
|
15
|
+
selectedItems,
|
|
16
|
+
dropdownIcon,
|
|
17
|
+
labelStyle,
|
|
18
|
+
dropdownStyle,
|
|
19
|
+
dropdownIconStyle,
|
|
20
|
+
dropdownContainerStyle,
|
|
21
|
+
selectedItemStyle,
|
|
22
|
+
placeholderStyle,
|
|
23
|
+
multipleSelectedItemStyle,
|
|
24
|
+
dropdownErrorStyle,
|
|
25
|
+
dropdownErrorTextStyle,
|
|
26
|
+
dropdownHelperTextStyle,
|
|
27
|
+
primaryColor,
|
|
28
|
+
disabled,
|
|
29
|
+
setIndexOfSelectedItem
|
|
30
|
+
}) => {
|
|
32
31
|
return /*#__PURE__*/React.createElement(View, {
|
|
33
32
|
style: [styles.dropdownInputContainer, dropdownContainerStyle]
|
|
34
33
|
}, label && label !== '' && /*#__PURE__*/React.createElement(Text, {
|
|
@@ -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","handleToggleModal","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,iBAAiB;EACjBC,UAAU;EACVC,YAAY;EACZC,aAAa;EACbC,YAAY;EACZC,UAAU;EACVC,aAAa;EACbC,iBAAiB;EACjBC,sBAAsB;EACtBC,iBAAiB;EACjBC,gBAAgB;EAChBC,yBAAyB;EACzBC,kBAAkB;EA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uBAAuB;EAAE,GACnDjB,UACG,CAEJ,CAAC;AAEX,CAAC;AAED,MAAMuB,MAAM,GAAG9B,UAAU,CAACiC,MAAM,CAAC;EAC/B5B,KAAK,EAAE;IAAE6B,YAAY,EAAE,EAAE;IAAEC,KAAK,EAAEjC,MAAM,CAACkC,IAAI;IAAE,GAAGjC,UAAU,CAACkC;EAAQ,CAAC;EACtE7B,KAAK,EAAE;IAAE2B,KAAK,EAAEjC,MAAM,CAACoC,GAAG;IAAEC,SAAS,EAAE,CAAC;IAAE,GAAGpC,UAAU,CAACkC;EAAQ,CAAC;EACjEL,MAAM,EAAE;IAAEO,SAAS,EAAE,CAAC;IAAEJ,KAAK,EAAEjC,MAAM,CAACsC,OAAO;IAAE,GAAGrC,UAAU,CAACkC;EAAQ,CAAC;EACtEN,sBAAsB,EAAE;IAAEG,YAAY,EAAE,EAAE;IAAEO,KAAK,EAAE;EAAO,CAAC;EAC3DC,SAAS,EAAE;IAAEP,KAAK,EAAEjC,MAAM,CAACyC;EAAM;AACnC,CAAC,CAAC;AAEF,eAAevC,QAAQ","ignoreList":[]}
|
|
@@ -4,36 +4,34 @@ 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,QAAQ,WAAW;AAGtE,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,OAAO;EACPC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,YAAY;EACZC,aAAa;EACbC,YAAY;EACZC,wBAAwB;EACxBC,qBAAqB;EACrBC,YAAY;EACZC,YAAY;EAAE;EACdC,aAAa;EAAE;EACfC,kBAAkB;EAAE;EACpBC,uBAAuB;EACvBC,iBAAiB;EACjBC,gBAAgB;EAChBC,mBAAmB;EACnBC,SAAS;EACTC,gBAAgB;EAChB,GAAGC;AACA,CAAC,KAAK;EACT,MAAMC,WAAW,GAAG3B,MAAM,CAAsB,IAAI,CAAC;EAErD,MAAM4B,YAAY,GAAIC,KAAa,IAAK;IACtCF,WAAW,CAACG,OAAO,EAAEC,aAAa,CAAC;MACjCF,KAAK;MACLG,QAAQ,EAAE;IACZ,CAAC,CAAC;EACJ,CAAC;EAEDjC,SAAS,CAAC,MAAM;IACd,IAAIyB,SAAS,CAACS,SAAS,IAAI,CAAC,EAAE;MAC5BL,YAAY,CAACJ,SAAS,CAACS,SAAS,CAAC;IACnC;EACF,CAAC,EAAE,CAACT,SAAS,CAAC,CAAC;EAEf,oBACE1B,KAAA,CAAAoC,aAAA,CAACjC,QAAQ,EAAAkC,QAAA;IACPC,IAAI,EAAE7B,OAAQ;IACd8B,SAAS,EAAE3B,UAAU,GAAGE,aAAa,GAAGC,YAAa;IACrDyB,kBAAkB,EAAE,CAAE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C/BC,WAAW,EAAE6C,KAAK,CAAC7C,WAAY;IAC/BC,UAAU,EAAE4C,KAAK,CAAC5C,UAAW;IAC7BqC,cAAc,EAAEO,KAAK,CAACP,cAAe;IACrCC,QAAQ,EAAEM,KAAK,CAACN,QAAS;IACzBhC,YAAY,EAAEsC,KAAK,CAACtC,YAAa;IACjCC,YAAY,EAAEqC,KAAK,CAACrC,YAAa;IACjCC,aAAa,EAAEoC,KAAK,CAACpC,aAAc;IACnCC,kBAAkB,EAAEmC,KAAK,CAACnC,kBAAmB;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,M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E,EAAE;IACnBC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,4BAAe/B,IAAI,CAACI,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -5,29 +5,28 @@ import { SectionList, StyleSheet } from 'react-native';
|
|
|
5
5
|
import DropdownListItem from './DropdownListItem';
|
|
6
6
|
import { ItemSeparatorComponent, ListEmptyComponent, SectionHeaderTitle } from '../Others';
|
|
7
7
|
import { extractPropertyFromArray } from '../../utils';
|
|
8
|
-
const DropdownSectionList =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} = _ref;
|
|
8
|
+
const DropdownSectionList = ({
|
|
9
|
+
options,
|
|
10
|
+
optionLabel,
|
|
11
|
+
optionValue,
|
|
12
|
+
isMultiple,
|
|
13
|
+
isSearchable,
|
|
14
|
+
selectedItems,
|
|
15
|
+
selectedItem,
|
|
16
|
+
handleMultipleSelections,
|
|
17
|
+
handleSingleSelection,
|
|
18
|
+
primaryColor,
|
|
19
|
+
checkboxSize,
|
|
20
|
+
checkboxStyle,
|
|
21
|
+
checkboxLabelStyle,
|
|
22
|
+
checkboxComponentStyles,
|
|
23
|
+
checkboxComponent,
|
|
24
|
+
checkboxControls,
|
|
25
|
+
listComponentStyles,
|
|
26
|
+
listIndex,
|
|
27
|
+
emptyListMessage,
|
|
28
|
+
...rest
|
|
29
|
+
}) => {
|
|
31
30
|
const [expandedSections, setExpandedSections] = useState(new Set());
|
|
32
31
|
|
|
33
32
|
/**
|
|
@@ -60,8 +59,7 @@ const DropdownSectionList = _ref => {
|
|
|
60
59
|
|
|
61
60
|
const sectionlistRef = useRef(null);
|
|
62
61
|
const scrollToLocation = listIndex => {
|
|
63
|
-
|
|
64
|
-
sectionlistRef === null || sectionlistRef === void 0 || (_sectionlistRef$curre = sectionlistRef.current) === null || _sectionlistRef$curre === void 0 ? void 0 : _sectionlistRef$curre.scrollToLocation({
|
|
62
|
+
sectionlistRef?.current?.scrollToLocation({
|
|
65
63
|
sectionIndex: listIndex.sectionIndex,
|
|
66
64
|
animated: true,
|
|
67
65
|
itemIndex: listIndex.itemIndex
|
|
@@ -77,14 +75,14 @@ const DropdownSectionList = _ref => {
|
|
|
77
75
|
extraData: isMultiple ? selectedItems : selectedItem,
|
|
78
76
|
initialNumToRender: 5,
|
|
79
77
|
ListEmptyComponent: /*#__PURE__*/React.createElement(ListEmptyComponent, {
|
|
80
|
-
listEmptyComponentStyle: listComponentStyles
|
|
78
|
+
listEmptyComponentStyle: listComponentStyles?.listEmptyComponentStyle,
|
|
81
79
|
emptyListMessage: emptyListMessage
|
|
82
80
|
}),
|
|
83
81
|
contentContainerStyle: [isSearchable ? {
|
|
84
82
|
paddingTop: 0
|
|
85
83
|
} : styles.contentContainerStyle],
|
|
86
84
|
ItemSeparatorComponent: () => /*#__PURE__*/React.createElement(ItemSeparatorComponent, {
|
|
87
|
-
itemSeparatorStyle: listComponentStyles
|
|
85
|
+
itemSeparatorStyle: listComponentStyles?.itemSeparatorStyle
|
|
88
86
|
}),
|
|
89
87
|
renderItem: item => _renderItem(item, {
|
|
90
88
|
optionLabel,
|
|
@@ -106,19 +104,16 @@ const DropdownSectionList = _ref => {
|
|
|
106
104
|
checkboxControls,
|
|
107
105
|
expandedSections
|
|
108
106
|
}),
|
|
109
|
-
renderSectionHeader:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
isExpanded: expandedSections.has(title)
|
|
120
|
-
});
|
|
121
|
-
},
|
|
107
|
+
renderSectionHeader: ({
|
|
108
|
+
section: {
|
|
109
|
+
title
|
|
110
|
+
}
|
|
111
|
+
}) => /*#__PURE__*/React.createElement(SectionHeaderTitle, {
|
|
112
|
+
title: title,
|
|
113
|
+
sectionHeaderStyle: listComponentStyles?.sectionHeaderStyle,
|
|
114
|
+
onPress: () => handleToggleListExpansion(title),
|
|
115
|
+
isExpanded: expandedSections.has(title)
|
|
116
|
+
}),
|
|
122
117
|
keyExtractor: (_item, index) => `Options${index}`,
|
|
123
118
|
stickySectionHeadersEnabled: false,
|
|
124
119
|
ref: sectionlistRef,
|
|
@@ -129,14 +124,13 @@ const DropdownSectionList = _ref => {
|
|
|
129
124
|
}
|
|
130
125
|
}, rest));
|
|
131
126
|
};
|
|
132
|
-
const _renderItem = (
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const isExpanded = props === null || props === void 0 ? void 0 : props.expandedSections.has(title);
|
|
127
|
+
const _renderItem = ({
|
|
128
|
+
section: {
|
|
129
|
+
title
|
|
130
|
+
},
|
|
131
|
+
item
|
|
132
|
+
}, props) => {
|
|
133
|
+
const isExpanded = props?.expandedSections.has(title);
|
|
140
134
|
|
|
141
135
|
//return null if it is not expanded
|
|
142
136
|
if (!isExpanded) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","useRef","SectionList","StyleSheet","DropdownListItem","ItemSeparatorComponent","ListEmptyComponent","SectionHeaderTitle","extractPropertyFromArray","DropdownSectionList","_ref","options","optionLabel","optionValue","isMultiple","isSearchable","selectedItems","selectedItem","handleMultipleSelections","handleSingleSelection","primaryColor","checkboxSize","checkboxStyle","checkboxLabelStyle","checkboxComponentStyles","checkboxComponent","checkboxControls","listComponentStyles","listIndex","emptyListMessage","rest","expandedSections","setExpandedSections","Set","initialState","handleToggleListExpansion","title","expandedSectionsState","next","has","delete","add","sectionlistRef","scrollToLocation","_sectionlistRef$curre","current","sectionIndex","animated","itemIndex","createElement","_extends","sections","extraData","initialNumToRender","listEmptyComponentStyle","contentContainerStyle","paddingTop","styles","itemSeparatorStyle","renderItem","item","_renderItem","selectedOption","onChange","renderSectionHeader","_ref2","section","sectionHeaderStyle","onPress","isExpanded","keyExtractor","_item","index","stickySectionHeadersEnabled","ref","onScrollToIndexFailed","setTimeout","_ref3","props","create"],"sources":["DropdownSectionList.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\nimport React, { useEffect, useState, useRef } from 'react';\nimport { SectionList, StyleSheet } from 'react-native';\nimport DropdownListItem from './DropdownListItem';\nimport {\n ItemSeparatorComponent,\n ListEmptyComponent,\n SectionHeaderTitle,\n} from '../Others';\nimport { extractPropertyFromArray } from '../../utils';\nimport { TSectionList } from 'src/types/index.types';\n\nconst DropdownSectionList = ({\n options,\n optionLabel,\n optionValue,\n isMultiple,\n isSearchable,\n selectedItems,\n selectedItem,\n handleMultipleSelections,\n handleSingleSelection,\n primaryColor,\n checkboxSize,\n checkboxStyle,\n checkboxLabelStyle,\n checkboxComponentStyles,\n checkboxComponent,\n checkboxControls,\n listComponentStyles,\n listIndex,\n emptyListMessage,\n ...rest\n}: any) => {\n const [expandedSections, setExpandedSections] = useState(new Set());\n\n /**\n * Expand all sections\n */\n useEffect(() => {\n let initialState = new Set(extractPropertyFromArray(options, 'title'));\n setExpandedSections(initialState);\n }, [options]);\n\n /**\n * @param title\n */\n const handleToggleListExpansion = (title: string) => {\n setExpandedSections((expandedSectionsState) => {\n // Using Set here but you can use an array too\n const next = new Set(expandedSectionsState);\n if (next.has(title)) {\n next.delete(title);\n } else {\n next.add(title);\n }\n return next;\n });\n };\n\n /**\n * @description Scroll to item location\n */\n\n const sectionlistRef = useRef<SectionList<TSectionList>>(null);\n\n const scrollToLocation = (listIndex: any) => {\n sectionlistRef?.current?.scrollToLocation({\n sectionIndex: listIndex.sectionIndex,\n animated: true,\n itemIndex: listIndex.itemIndex,\n });\n };\n\n useEffect(() => {\n if (listIndex.itemIndex >= 0 && listIndex.sectionIndex >= 0) {\n scrollToLocation(listIndex);\n }\n }, [listIndex]);\n\n return (\n <SectionList\n sections={options}\n extraData={isMultiple ? selectedItems : selectedItem}\n initialNumToRender={5}\n ListEmptyComponent={\n <ListEmptyComponent\n listEmptyComponentStyle={listComponentStyles?.listEmptyComponentStyle}\n emptyListMessage={emptyListMessage}\n />\n }\n contentContainerStyle={[\n isSearchable ? { paddingTop: 0 } : styles.contentContainerStyle,\n ]}\n ItemSeparatorComponent={() => (\n <ItemSeparatorComponent\n itemSeparatorStyle={listComponentStyles?.itemSeparatorStyle}\n />\n )}\n renderItem={(item) =>\n _renderItem(item, {\n optionLabel,\n optionValue,\n isMultiple,\n selectedOption: isMultiple ? selectedItems : selectedItem,\n onChange: isMultiple\n ? handleMultipleSelections\n : handleSingleSelection,\n primaryColor,\n checkboxSize, // kept for backwards compatibility\n checkboxStyle, // kept for backwards compatibility\n checkboxLabelStyle, // kept for backwards compatibility\n checkboxComponentStyles, // kept for backwards compatibility\n checkboxComponent, // kept for backwards compatibility\n checkboxControls,\n expandedSections,\n })\n }\n renderSectionHeader={({ section: { title } }) => (\n <SectionHeaderTitle\n title={title}\n sectionHeaderStyle={listComponentStyles?.sectionHeaderStyle}\n onPress={() => handleToggleListExpansion(title)}\n isExpanded={expandedSections.has(title)}\n />\n )}\n keyExtractor={(_item, index) => `Options${index}`}\n stickySectionHeadersEnabled={false}\n ref={sectionlistRef}\n onScrollToIndexFailed={() => {\n setTimeout(() => {\n scrollToLocation(listIndex);\n }, 500);\n }}\n {...rest}\n />\n );\n};\n\nconst _renderItem = ({ section: { title }, item }: any, props: any) => {\n const isExpanded = props?.expandedSections.has(title);\n\n //return null if it is not expanded\n if (!isExpanded) return null;\n\n return (\n <DropdownListItem\n item={item}\n optionLabel={props.optionLabel}\n optionValue={props.optionValue}\n isMultiple={props.isMultiple}\n selectedOption={props.selectedOption}\n onChange={props.onChange}\n primaryColor={props.primaryColor}\n checkboxSize={props.checkboxSize}\n checkboxStyle={props.checkboxStyle}\n checkboxLabelStyle={props.checkboxLabelStyle}\n checkboxComponentStyles={props.checkboxComponentStyles}\n checkboxComponent={props.checkboxComponent}\n checkboxControls={props.checkboxControls}\n />\n );\n};\n\nconst styles = StyleSheet.create({\n contentContainerStyle: { paddingTop: 20 },\n});\n\nexport default DropdownSectionList;\n"],"mappings":";AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,WAAW,EAAEC,UAAU,QAAQ,cAAc;AACtD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SACEC,sBAAsB,EACtBC,kBAAkB,EAClBC,kBAAkB,QACb,WAAW;AAClB,SAASC,wBAAwB,QAAQ,aAAa;AAGtD,MAAMC,mBAAmB,GAAGC,IAAA,IAqBjB;EAAA,IArBkB;IAC3BC,OAAO;IACPC,WAAW;IACXC,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,aAAa;IACbC,YAAY;IACZC,wBAAwB;IACxBC,qBAAqB;IACrBC,YAAY;IACZC,YAAY;IACZC,aAAa;IACbC,kBAAkB;IAClBC,uBAAuB;IACvBC,iBAAiB;IACjBC,gBAAgB;IAChBC,mBAAmB;IACnBC,SAAS;IACTC,gBAAgB;IAChB,GAAGC;EACA,CAAC,GAAApB,IAAA;EACJ,MAAM,CAACqB,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGhC,QAAQ,CAAC,IAAIiC,GAAG,CAAC,CAAC,CAAC;;EAEnE;AACF;AACA;EACElC,SAAS,CAAC,MAAM;IACd,IAAImC,YAAY,GAAG,IAAID,GAAG,CAACzB,wBAAwB,CAACG,OAAO,EAAE,OAAO,CAAC,CAAC;IACtEqB,mBAAmB,CAACE,YAAY,CAAC;EACnC,CAAC,EAAE,CAACvB,OAAO,CAAC,CAAC;;EAEb;AACF;AACA;EACE,MAAMwB,yBAAyB,GAAIC,KAAa,IAAK;IACnDJ,mBAA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
{"version":3,"names":["React","useEffect","useState","useRef","SectionList","StyleSheet","DropdownListItem","ItemSeparatorComponent","ListEmptyComponent","SectionHeaderTitle","extractPropertyFromArray","DropdownSectionList","options","optionLabel","optionValue","isMultiple","isSearchable","selectedItems","selectedItem","handleMultipleSelections","handleSingleSelection","primaryColor","checkboxSize","checkboxStyle","checkboxLabelStyle","checkboxComponentStyles","checkboxComponent","checkboxControls","listComponentStyles","listIndex","emptyListMessage","rest","expandedSections","setExpandedSections","Set","initialState","handleToggleListExpansion","title","expandedSectionsState","next","has","delete","add","sectionlistRef","scrollToLocation","current","sectionIndex","animated","itemIndex","createElement","_extends","sections","extraData","initialNumToRender","listEmptyComponentStyle","contentContainerStyle","paddingTop","styles","itemSeparatorStyle","renderItem","item","_renderItem","selectedOption","onChange","renderSectionHeader","section","sectionHeaderStyle","onPress","isExpanded","keyExtractor","_item","index","stickySectionHeadersEnabled","ref","onScrollToIndexFailed","setTimeout","props","create"],"sourceRoot":"../../../../src","sources":["components/Dropdown/DropdownSectionList.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,WAAW,EAAEC,UAAU,QAAQ,cAAc;AACtD,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SACEC,sBAAsB,EACtBC,kBAAkB,EAClBC,kBAAkB,QACb,WAAW;AAClB,SAASC,wBAAwB,QAAQ,aAAa;AAGtD,MAAMC,mBAAmB,GAAGA,CAAC;EAC3BC,OAAO;EACPC,WAAW;EACXC,WAAW;EACXC,UAAU;EACVC,YAAY;EACZC,aAAa;EACbC,YAAY;EACZC,wBAAwB;EACxBC,qBAAqB;EACrBC,YAAY;EACZC,YAAY;EACZC,aAAa;EACbC,kBAAkB;EAClBC,uBAAuB;EACvBC,iBAAiB;EACjBC,gBAAgB;EAChBC,mBAAmB;EACnBC,SAAS;EACTC,gBAAgB;EAChB,GAAGC;AACA,CAAC,KAAK;E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