@rn-components-dropdown/dropdown 1.0.8 → 1.0.9
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/components/dropdown/components/chip/Chip.js +2 -2
- package/dist/components/dropdown/components/chip/ChipStyle.d.ts +0 -1
- package/dist/components/dropdown/components/chip/ChipStyle.js +0 -1
- package/package.json +1 -1
- package/src/components/dropdown/components/chip/Chip.tsx +2 -2
- package/src/components/dropdown/components/chip/ChipStyle.ts +0 -1
|
@@ -9,14 +9,14 @@ const AppText_1 = __importDefault(require("../../../text/AppText"));
|
|
|
9
9
|
const svg_1 = require("../../../../assets/svg");
|
|
10
10
|
const SvgButton_1 = __importDefault(require("../../../svgButton/SvgButton"));
|
|
11
11
|
const Chip = (props) => {
|
|
12
|
-
const { styles } = (0, ChipStyle_1.default)({ ...props });
|
|
12
|
+
const { styles, colors } = (0, ChipStyle_1.default)({ ...props });
|
|
13
13
|
const { label, onClearPress, textColor, clearIcon } = props;
|
|
14
14
|
return (<react_native_1.View style={styles.box}>
|
|
15
15
|
<AppText_1.default size={12} fontFamily={'semiBold'} style={styles.chipText} color={textColor ? textColor : 'gray'}>
|
|
16
16
|
{label}
|
|
17
17
|
</AppText_1.default>
|
|
18
18
|
<react_native_1.View style={styles.clearContainer}>
|
|
19
|
-
<SvgButton_1.default icon={clearIcon ? clearIcon : <svg_1.ClearIcon color={textColor}/>} onPress={onClearPress} style={styles.clearIcon}/>
|
|
19
|
+
<SvgButton_1.default icon={clearIcon ? clearIcon : <svg_1.ClearIcon color={textColor || colors.white}/>} onPress={onClearPress} style={styles.clearIcon}/>
|
|
20
20
|
</react_native_1.View>
|
|
21
21
|
</react_native_1.View>);
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import SvgButton from '../../../svgButton/SvgButton';
|
|
|
6
6
|
import { ChipInterface } from '../../interface/ChipInterface';
|
|
7
7
|
|
|
8
8
|
const Chip = (props: ChipInterface) => {
|
|
9
|
-
const { styles } = useChipStyle({ ...props });
|
|
9
|
+
const { styles, colors } = useChipStyle({ ...props });
|
|
10
10
|
const { label, onClearPress, textColor, clearIcon } = props;
|
|
11
11
|
return (
|
|
12
12
|
<View style={styles.box}>
|
|
@@ -20,7 +20,7 @@ const Chip = (props: ChipInterface) => {
|
|
|
20
20
|
</AppText>
|
|
21
21
|
<View style={styles.clearContainer}>
|
|
22
22
|
<SvgButton
|
|
23
|
-
icon={clearIcon ? clearIcon : <ClearIcon color={textColor}/> }
|
|
23
|
+
icon={clearIcon ? clearIcon : <ClearIcon color={textColor || colors.white}/> }
|
|
24
24
|
onPress={onClearPress}
|
|
25
25
|
style={styles.clearIcon}
|
|
26
26
|
/>
|