vpt-sebraeds 0.0.22 → 0.0.24
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.
|
@@ -158,6 +158,7 @@ export const DropdownCommitments = () => {
|
|
|
158
158
|
const { height: screenHeight } = Dimensions.get('window');
|
|
159
159
|
|
|
160
160
|
const Dropdown = ({
|
|
161
|
+
title,
|
|
161
162
|
onSelect,
|
|
162
163
|
options = [],
|
|
163
164
|
withSeparator = false,
|
|
@@ -281,7 +282,7 @@ const Dropdown = ({
|
|
|
281
282
|
>
|
|
282
283
|
<Icon name="subtract-line" size={26} color="#687499" />
|
|
283
284
|
</TouchableOpacity>
|
|
284
|
-
<Text style={styles.modalTitle}>
|
|
285
|
+
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
285
286
|
</View>
|
|
286
287
|
|
|
287
288
|
<FlatList
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export function DropdownCommitments(): React.JSX.Element;
|
|
2
2
|
export default Dropdown;
|
|
3
3
|
import React from 'react';
|
|
4
|
-
declare function Dropdown({ onSelect, options, withSeparator, isOpen, isCheckbox, setIsOpen, }: {
|
|
4
|
+
declare function Dropdown({ title, onSelect, options, withSeparator, isOpen, isCheckbox, setIsOpen, }: {
|
|
5
|
+
title: any;
|
|
5
6
|
onSelect: any;
|
|
6
7
|
options?: never[] | undefined;
|
|
7
8
|
withSeparator?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"AA8FO,yDA6DN;;kBA1JkD,OAAO;AA8J1D
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"AA8FO,yDA6DN;;kBA1JkD,OAAO;AA8J1D;;;;;;;;sBA8IC"}
|
|
@@ -134,7 +134,7 @@ export const DropdownCommitments = () => {
|
|
|
134
134
|
</View>);
|
|
135
135
|
};
|
|
136
136
|
const { height: screenHeight } = Dimensions.get('window');
|
|
137
|
-
const Dropdown = ({ onSelect, options = [], withSeparator = false, isOpen = false, isCheckbox = false, setIsOpen = () => { }, }) => {
|
|
137
|
+
const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen = false, isCheckbox = false, setIsOpen = () => { }, }) => {
|
|
138
138
|
const handleSelect = (option) => {
|
|
139
139
|
if (onSelect)
|
|
140
140
|
onSelect(option);
|
|
@@ -206,7 +206,7 @@ const Dropdown = ({ onSelect, options = [], withSeparator = false, isOpen = fals
|
|
|
206
206
|
<TouchableOpacity onPress={() => setIsOpen(false)} style={styles.closeButton}>
|
|
207
207
|
<Icon name="subtract-line" size={26} color="#687499"/>
|
|
208
208
|
</TouchableOpacity>
|
|
209
|
-
<Text style={styles.modalTitle}>
|
|
209
|
+
<Text style={styles.modalTitle}>{title || "Título"}</Text>
|
|
210
210
|
</View>
|
|
211
211
|
|
|
212
212
|
<FlatList data={options} renderItem={(props) => <RenderItem {...props}/>} keyExtractor={(item, index) => index.toString()} style={styles.optionsList} showsVerticalScrollIndicator={false} bounces={false}/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vpt-sebraeds",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Biblioteca de componentes React Native do Sebrae",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@react-native-community/slider": "^4.5.6",
|
|
56
56
|
"keen-slider": "^6.8.6",
|
|
57
57
|
"moment": "^2.30.1",
|
|
58
|
-
"react-native-remix-icon": "
|
|
58
|
+
"react-native-remix-icon": "4.7.0",
|
|
59
59
|
"react-native-safe-area-context": "^5.4.0",
|
|
60
60
|
"react-native-swipe-list-view": "^3.2.9"
|
|
61
61
|
},
|