@rn-components-dropdown/dropdown 1.0.11 → 1.0.12
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.
|
@@ -49,7 +49,7 @@ const CheckIcon_1 = __importDefault(require("../../assets/svg/CheckIcon"));
|
|
|
49
49
|
const svg_1 = require("../../assets/svg");
|
|
50
50
|
const TextInput_1 = __importDefault(require("./components/input/TextInput"));
|
|
51
51
|
const DropdownComponent = (props) => {
|
|
52
|
-
const { label, testID, iconStyle, renderItem, style = {}, subfixIcon, labelField, valueField, onChangeText, itemTextStyle, flatListProps, minHeight = 0, containerStyle, search = false, renderLeftIcon, multiSelectIcon, itemTestIDField, maxHeight = 300, inverted = true, renderRightIcon, backgroundColor, placeholderStyle, inputSearchStyle, searchPlaceholder, selectedTextStyle, renderInputSearch,
|
|
52
|
+
const { label, testID, iconStyle, renderItem, style = {}, subfixIcon, labelField, valueField, onChangeText, itemTextStyle, flatListProps, minHeight = 0, containerStyle, search = false, renderLeftIcon, multiSelectIcon, itemTestIDField, maxHeight = 300, inverted = true, renderRightIcon, backgroundColor, placeholderStyle, inputSearchStyle, searchPlaceholder, selectedTextStyle, renderInputSearch, iconColor = 'gray', accessibilityLabel, itemContainerStyle, labelContainer = {}, labelTextStyle = {}, selectedTextProps = {}, chipContainerProps = {}, selectionType = 'single', activeColor = 'lightGray', keyboardAvoiding = true, dropdownPosition = 'auto', placeholder = 'Select item', itemAccessibilityLabelField, showsVerticalScrollIndicator = true, } = props;
|
|
53
53
|
const { chipColor, clearIcon, textColor, onClearPress: onClear, } = chipContainerProps;
|
|
54
54
|
const { styles, colors } = (0, DropdownStyle_1.useDropdownStyle)({});
|
|
55
55
|
const { ref, font, visible, refList, position, onSelect, listData, onSearch, onMeasure, searchText, showOrClose, scrollIndex, currentValue, onCheckPress, onClearPress, setSearchText, keyboardHeight, } = (0, useDropdown_1.default)({ ...props });
|
|
@@ -39,7 +39,7 @@ export type DropdownProps<S, T extends SelectionType> = {
|
|
|
39
39
|
onClear?: (id?: number) => void;
|
|
40
40
|
activeColor?: keyof ThemeColors;
|
|
41
41
|
iconStyle?: StyleProp<ImageStyle>;
|
|
42
|
-
chipContainerProps
|
|
42
|
+
chipContainerProps?: ChipInterface;
|
|
43
43
|
checkIconColor?: keyof ThemeColors;
|
|
44
44
|
radioIconColor?: keyof ThemeColors;
|
|
45
45
|
multiSelectIcon?: React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -51,13 +51,13 @@ const DropdownComponent = <T, Mode extends 'single' | 'multi'>(
|
|
|
51
51
|
searchPlaceholder,
|
|
52
52
|
selectedTextStyle,
|
|
53
53
|
renderInputSearch,
|
|
54
|
-
chipContainerProps,
|
|
55
54
|
iconColor = 'gray',
|
|
56
55
|
accessibilityLabel,
|
|
57
56
|
itemContainerStyle,
|
|
58
57
|
labelContainer = {},
|
|
59
58
|
labelTextStyle = {},
|
|
60
59
|
selectedTextProps = {},
|
|
60
|
+
chipContainerProps = {},
|
|
61
61
|
selectionType = 'single',
|
|
62
62
|
activeColor = 'lightGray',
|
|
63
63
|
keyboardAvoiding = true,
|
|
@@ -49,7 +49,7 @@ export type DropdownProps<S, T extends SelectionType> = {
|
|
|
49
49
|
onClear?: (id?: number) => void;
|
|
50
50
|
activeColor?: keyof ThemeColors;
|
|
51
51
|
iconStyle?: StyleProp<ImageStyle>;
|
|
52
|
-
chipContainerProps
|
|
52
|
+
chipContainerProps?: ChipInterface;
|
|
53
53
|
checkIconColor?: keyof ThemeColors;
|
|
54
54
|
radioIconColor?: keyof ThemeColors;
|
|
55
55
|
multiSelectIcon?: React.JSX.Element;
|