react-native-exp-fig 0.1.37 → 0.1.39

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.
Files changed (49) hide show
  1. package/lib/commonjs/components/modal-create-activitie/index.js +13 -11
  2. package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -1
  3. package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -1
  4. package/lib/commonjs/components/modal-journey-rectification/index.js +10 -10
  5. package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -1
  6. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js +25 -1
  7. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -1
  8. package/lib/commonjs/components/modals/modal-activity-reason/index.js +6 -5
  9. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -1
  10. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -1
  11. package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -1
  12. package/lib/commonjs/components/selects/select-option/index.js +4 -4
  13. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  14. package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
  15. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
  16. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
  17. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +5 -1
  18. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
  19. package/lib/module/components/modal-create-activitie/index.js +13 -11
  20. package/lib/module/components/modal-create-activitie/index.js.map +1 -1
  21. package/lib/module/components/modal-create-activitie/interface.js.map +1 -1
  22. package/lib/module/components/modal-journey-rectification/index.js +10 -10
  23. package/lib/module/components/modal-journey-rectification/index.js.map +1 -1
  24. package/lib/module/components/modals/modal-activities/data-activities/index.js +24 -0
  25. package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -1
  26. package/lib/module/components/modals/modal-activity-reason/index.js +6 -5
  27. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -1
  28. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -1
  29. package/lib/module/components/modals/modal-change-activity/index.js.map +1 -1
  30. package/lib/module/components/selects/select-option/index.js +4 -4
  31. package/lib/module/components/selects/select-option/index.js.map +1 -1
  32. package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
  33. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
  34. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
  35. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +5 -1
  36. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
  37. package/lib/typescript/src/components/modals/modal-activities/data-activities/index.d.ts +7 -0
  38. package/package.json +4 -8
  39. package/src/components/modal-create-activitie/index.tsx +215 -211
  40. package/src/components/modal-create-activitie/interface.ts +22 -22
  41. package/src/components/modal-journey-rectification/index.tsx +213 -211
  42. package/src/components/modals/modal-activities/data-activities/index.ts +31 -0
  43. package/src/components/modals/modal-activity-reason/index.tsx +163 -162
  44. package/src/components/modals/modal-activity-reason/interface.d.ts +10 -10
  45. package/src/components/modals/modal-change-activity/index.tsx +1 -1
  46. package/src/components/selects/select-option/index.tsx +124 -124
  47. package/src/components/selects/select-option/interface.d.ts +18 -18
  48. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -192
  49. package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +4 -0
@@ -1,162 +1,163 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React, { useState } from "react";
5
- import { Modal, View } from "react-native";
6
-
7
- // components
8
- import Box from "../../box";
9
- import { Typography } from "../../typography";
10
- import { Button } from "../../button";
11
-
12
- import InputTextCounter from "../../input-text-counter";
13
-
14
- // commons / svg
15
- import { Icons } from "../../../common/icons-svg";
16
-
17
- // typings
18
- import type { IModalActivityReasonProps } from "./interface";
19
-
20
- // styles
21
- import { theme } from "../../../styles/theme/theme";
22
-
23
- const ModalActivityReason: React.FC<IModalActivityReasonProps> = ({
24
- visible,
25
- onClose,
26
- modalConfirm,
27
- textTitle,
28
- testID,
29
- }) => {
30
- const [isLoading] = useState(false);
31
-
32
- return (
33
- <Modal testID={testID} animationType="fade" transparent visible={visible}>
34
- <View
35
- style={{
36
- flex: 1,
37
- justifyContent: "center",
38
- alignItems: "center",
39
- backgroundColor: "rgba(0,0,0,0.6)",
40
- }}
41
- >
42
- <Box
43
- width={"90%"}
44
- backgroundColor={theme.colors.orange[500]}
45
- borderStyled={{
46
- borderRadius: theme.borderWidths.thick_medium,
47
- }}
48
- paddingStyle={{
49
- paddingLeft: theme.paddings["2xs"],
50
- paddingRight: theme.paddings["2xs"],
51
- paddingTop: theme.paddings.sm,
52
- paddingBottom: theme.paddings.sm,
53
- }}
54
- >
55
- <Box
56
- marginStyle={{ marginBottom: 10, marginLeft: 4 }}
57
- flexStyle={{ flexDirection: "row", alignItems: "center" }}
58
- >
59
- <Icons
60
- icon="EXCLAMATION_TRIANGLE"
61
- color={theme.colors.orange[500]}
62
- background={theme.colors.neutral[300]}
63
- size={22}
64
- />
65
- <Typography
66
- text={`${textTitle ?? "Motivo da exclusão"}`}
67
- color={theme.colors.neutral[25]}
68
- marginLeft={theme.margins["2xs"]}
69
- fontFamily={theme.fonts.inter_bold_700}
70
- size={theme.fontSizes.md}
71
- />
72
- </Box>
73
-
74
- <Box
75
- backgroundColor={theme.colors.neutral[300]}
76
- paddingStyle={{
77
- padding: theme.paddings.xs,
78
- }}
79
- borderStyled={{
80
- borderRadius: theme.borderWidths.thick_medium,
81
- }}
82
- >
83
- <Box width="100%">
84
- <InputTextCounter
85
- label={`${textTitle || "Motivo da exclusão"}`}
86
- placeholderTextColor="#9B9B9B"
87
- placeholder="Motivo da exclusão"
88
- />
89
- </Box>
90
- <Box
91
- marginStyle={{ marginTop: 4 }}
92
- flexStyle={{
93
- flexDirection: "row",
94
- justifyContent: "space-between",
95
- }}
96
- >
97
- <Button
98
- title="CANCELAR"
99
- onPress={onClose}
100
- width={"48%"}
101
- height={40}
102
- isLoading={isLoading}
103
- disabled={isLoading}
104
- backgroundColor={theme.colors.neutral[300]}
105
- buttonTextStyle={{
106
- color: theme.colors.blue[100],
107
- fontFamily: "Inter-Medium",
108
- fontSize: theme.fontSizes.xs,
109
- fontWeight: "500",
110
- }}
111
- flexStyle={{
112
- flexDirection: "row",
113
- alignItems: "center",
114
- justifyContent: "center",
115
- textAlign: "center",
116
- }}
117
- borderStyled={{
118
- borderWidth: theme.borderWidths.thin,
119
- borderColor: theme.colors.blue[100],
120
- borderRadius: theme.borderWidths.thick_medium,
121
- }}
122
- />
123
- <Button
124
- title="CONFIRMAR"
125
- onPress={() => {
126
- modalConfirm(true);
127
- onClose();
128
- }}
129
- width={"48%"}
130
- height={40}
131
- isLoading={isLoading}
132
- disabled={isLoading}
133
- backgroundColor={theme.colors.blue[500]}
134
- buttonTextStyle={{
135
- color: theme.colors.neutral[25],
136
- fontFamily: "Inter-Medium",
137
- fontSize: theme.fontSizes.xs,
138
- fontWeight: "500",
139
- }}
140
- flexStyle={{
141
- flexDirection: "row",
142
- alignItems: "center",
143
- justifyContent: "center",
144
- textAlign: "center",
145
- }}
146
- borderStyled={{
147
- borderWidth: theme.borderWidths.thin,
148
- borderColor: theme.colors.blue[100],
149
- borderRadius: theme.borderWidths.thick_medium,
150
- }}
151
- />
152
- </Box>
153
- </Box>
154
- </Box>
155
- </View>
156
- </Modal>
157
- );
158
- };
159
-
160
- ModalActivityReason.displayName = "ModalActivityReason";
161
-
162
- export default ModalActivityReason;
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { useState } from "react";
5
+ import { Modal, View } from "react-native";
6
+
7
+ // components
8
+ import Box from "../../box";
9
+ import { Typography } from "../../typography";
10
+ import { Button } from "../../button";
11
+
12
+ import InputTextCounter from "../../input-text-counter";
13
+
14
+ // commons / svg
15
+ import { Icons } from "../../../common/icons-svg";
16
+
17
+ // typings
18
+ import type { IModalActivityReasonProps } from "./interface";
19
+
20
+ // styles
21
+ import { theme } from "../../../styles/theme/theme";
22
+
23
+ const ModalActivityReason: React.FC<IModalActivityReasonProps> = ({
24
+ visible,
25
+ onClose,
26
+ modalConfirm,
27
+ textTitle,
28
+ testID,
29
+ }) => {
30
+ const [isLoading] = useState(false);
31
+ const [description, setDescription] = useState("");
32
+
33
+ return (
34
+ <Modal testID={testID} animationType="fade" transparent visible={visible}>
35
+ <View
36
+ style={{
37
+ flex: 1,
38
+ justifyContent: "center",
39
+ alignItems: "center",
40
+ backgroundColor: "rgba(0,0,0,0.6)",
41
+ }}
42
+ >
43
+ <Box
44
+ width={"90%"}
45
+ backgroundColor={theme.colors.orange[500]}
46
+ borderStyled={{
47
+ borderRadius: theme.borderWidths.thick_medium,
48
+ }}
49
+ paddingStyle={{
50
+ paddingLeft: theme.paddings["2xs"],
51
+ paddingRight: theme.paddings["2xs"],
52
+ paddingTop: theme.paddings.sm,
53
+ paddingBottom: theme.paddings.sm,
54
+ }}
55
+ >
56
+ <Box
57
+ marginStyle={{ marginBottom: 10, marginLeft: 4 }}
58
+ flexStyle={{ flexDirection: "row", alignItems: "center" }}
59
+ >
60
+ <Icons
61
+ icon="EXCLAMATION_TRIANGLE"
62
+ color={theme.colors.orange[500]}
63
+ background={theme.colors.neutral[300]}
64
+ size={22}
65
+ />
66
+ <Typography
67
+ text={`${textTitle ?? "Motivo da exclusão"}`}
68
+ color={theme.colors.neutral[25]}
69
+ marginLeft={theme.margins["2xs"]}
70
+ fontFamily={theme.fonts.inter_bold_700}
71
+ size={theme.fontSizes.md}
72
+ />
73
+ </Box>
74
+
75
+ <Box
76
+ backgroundColor={theme.colors.neutral[300]}
77
+ paddingStyle={{
78
+ padding: theme.paddings.xs,
79
+ }}
80
+ borderStyled={{
81
+ borderRadius: theme.borderWidths.thick_medium,
82
+ }}
83
+ >
84
+ <Box width="100%">
85
+ <InputTextCounter
86
+ label={`${textTitle || "Motivo da exclusão"}`}
87
+ placeholderTextColor="#9B9B9B"
88
+ placeholder="Motivo da exclusão"
89
+ onChangeText={setDescription}
90
+ />
91
+ </Box>
92
+ <Box
93
+ marginStyle={{ marginTop: 4 }}
94
+ flexStyle={{
95
+ flexDirection: "row",
96
+ justifyContent: "space-between",
97
+ }}
98
+ >
99
+ <Button
100
+ title="CANCELAR"
101
+ onPress={onClose}
102
+ width={"48%"}
103
+ height={40}
104
+ isLoading={isLoading}
105
+ disabled={isLoading}
106
+ backgroundColor={theme.colors.neutral[300]}
107
+ buttonTextStyle={{
108
+ color: theme.colors.blue[100],
109
+ fontFamily: "Inter-Medium",
110
+ fontSize: theme.fontSizes.xs,
111
+ fontWeight: "500",
112
+ }}
113
+ flexStyle={{
114
+ flexDirection: "row",
115
+ alignItems: "center",
116
+ justifyContent: "center",
117
+ textAlign: "center",
118
+ }}
119
+ borderStyled={{
120
+ borderWidth: theme.borderWidths.thin,
121
+ borderColor: theme.colors.blue[100],
122
+ borderRadius: theme.borderWidths.thick_medium,
123
+ }}
124
+ />
125
+ <Button
126
+ title="CONFIRMAR"
127
+ onPress={() => {
128
+ modalConfirm(description);
129
+ }}
130
+ width={"48%"}
131
+ height={40}
132
+ isLoading={isLoading}
133
+ disabled={isLoading}
134
+ backgroundColor={theme.colors.blue[500]}
135
+ buttonTextStyle={{
136
+ color: theme.colors.neutral[25],
137
+ fontFamily: "Inter-Medium",
138
+ fontSize: theme.fontSizes.xs,
139
+ fontWeight: "500",
140
+ }}
141
+ flexStyle={{
142
+ flexDirection: "row",
143
+ alignItems: "center",
144
+ justifyContent: "center",
145
+ textAlign: "center",
146
+ }}
147
+ borderStyled={{
148
+ borderWidth: theme.borderWidths.thin,
149
+ borderColor: theme.colors.blue[100],
150
+ borderRadius: theme.borderWidths.thick_medium,
151
+ }}
152
+ />
153
+ </Box>
154
+ </Box>
155
+ </Box>
156
+ </View>
157
+ </Modal>
158
+ );
159
+ };
160
+
161
+ ModalActivityReason.displayName = "ModalActivityReason";
162
+
163
+ export default ModalActivityReason;
@@ -1,10 +1,10 @@
1
- /* eslint-disable no-unused-vars */
2
- interface IModalActivityReasonProps {
3
- visible: boolean;
4
- onClose: () => void;
5
- modalConfirm: (value: true) => void;
6
- textTitle?: string;
7
- testID?: string;
8
- }
9
-
10
- export type { IModalActivityReasonProps };
1
+ /* eslint-disable no-unused-vars */
2
+ interface IModalActivityReasonProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ modalConfirm: (value: string) => void;
6
+ textTitle?: string;
7
+ testID?: string;
8
+ }
9
+
10
+ export type { IModalActivityReasonProps };
@@ -126,7 +126,7 @@ export const ModalChangeActivity: React.FC<IModalChangeActivityProps> = ({
126
126
  titleLabel="Selecione atividade"
127
127
  sizeTitleLabel={theme.fontSizes.xs}
128
128
  dataOption={options}
129
- handleSelectDown={(opt) => {
129
+ handleSelectDown={(opt: any) => {
130
130
  const option = options.find((o) => o.label === opt || o.value === opt);
131
131
  if (option) setSelectedOption(option.value);
132
132
  }}
@@ -1,124 +1,124 @@
1
- /**
2
- * IMPORTS
3
- */
4
- import React, { forwardRef, useState } from "react";
5
- import { View, Text, TouchableOpacity, Modal, FlatList } from "react-native";
6
-
7
- // commons / svg
8
- import { Icons } from "../../../common/icons-svg";
9
-
10
- // utils
11
- import { handleLimitTextdisplayByAmount } from "../../../utils/text-limit";
12
-
13
- // typings
14
- import { asBaseComponent } from "../../../@types/as-base-component";
15
- import type { ISelectDropDownProps } from "./interface";
16
-
17
- // styles
18
- import { styles } from "./styles";
19
- import { theme } from "../../../styles/theme/theme";
20
-
21
- const SelectOption = forwardRef<any, ISelectDropDownProps>((props, ref): React.ReactElement => {
22
- const {
23
- dataOption,
24
- handleSelectDown,
25
- titleLabel,
26
- sizeTitleLabel,
27
- colortitleLabel,
28
- backgroundColor,
29
- } = props;
30
-
31
- const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || "");
32
- const [modalVisible, setModalVisible] = useState(false);
33
-
34
- const handleSelect = (value: string) => {
35
- setSelectedValue(value);
36
- setModalVisible(false);
37
- handleSelectDown(value);
38
- };
39
-
40
- const styleProps = {
41
- dataOption,
42
- handleSelectDown,
43
- titleLabel,
44
- sizeTitleLabel,
45
- colortitleLabel,
46
- backgroundColor,
47
- } as ISelectDropDownProps;
48
- return (
49
- <View ref={ref} style={styles(styleProps).container}>
50
- {/* Titulo para exibir o label */}
51
- <Text style={styles(styleProps).label}>{`${titleLabel ?? "Selecione uma opção"}`}:</Text>
52
-
53
- {/* Botão para abrir o modal */}
54
- <TouchableOpacity
55
- testID="select-box"
56
- style={styles(styleProps).selectBox}
57
- onPress={() => setModalVisible(true)}
58
- >
59
- <Text style={styles(styleProps).selectedText} numberOfLines={1}>
60
- {`${handleLimitTextdisplayByAmount({
61
- limit: 42,
62
- text: dataOption.find((item) => item.value === selectedValue)?.label!,
63
- })}`}
64
- </Text>
65
-
66
- <Icons
67
- size={theme.fontSizes["xs"]}
68
- color={theme.colors.blue[500]}
69
- icon={"ARROW_DROP_DOWN"}
70
- />
71
- </TouchableOpacity>
72
-
73
- {/* Modal para exibir as opções */}
74
- <Modal testID="modal-container" visible={modalVisible} transparent animationType="fade">
75
- <View style={styles(styleProps).modalOverlay}>
76
- <View style={styles(styleProps).modalContainer}>
77
- <View
78
- style={{
79
- width: "100%",
80
- alignItems: "flex-end",
81
- height: 40,
82
- paddingRight: 8,
83
- }}
84
- >
85
- <TouchableOpacity
86
- testID="close-icon"
87
- onPress={() => setModalVisible(false)}
88
- style={{
89
- width: 40,
90
- height: 45,
91
- alignItems: "center",
92
- justifyContent: "center",
93
- }}
94
- >
95
- <Icons
96
- size={theme.fontSizes["md"]}
97
- color={theme.colors.blue[500]}
98
- icon={"CLOSED"}
99
- />
100
- </TouchableOpacity>
101
- </View>
102
- <FlatList
103
- data={dataOption || []}
104
- keyExtractor={(item) => item.value}
105
- renderItem={({ item }) => (
106
- <TouchableOpacity
107
- style={styles(styleProps).option}
108
- onPress={() => handleSelect(item.value)}
109
- >
110
- <Text style={styles(styleProps).optionText}>{item.label}</Text>
111
- </TouchableOpacity>
112
- )}
113
- />
114
- </View>
115
- </View>
116
- </Modal>
117
- </View>
118
- );
119
- });
120
-
121
- /**
122
- * Componente SelectOption para a interação da ui.
123
- */
124
- export default asBaseComponent(SelectOption);
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React, { forwardRef, useState } from "react";
5
+ import { View, Text, TouchableOpacity, Modal, FlatList } from "react-native";
6
+
7
+ // commons / svg
8
+ import { Icons } from "../../../common/icons-svg";
9
+
10
+ // utils
11
+ import { handleLimitTextdisplayByAmount } from "../../../utils/text-limit";
12
+
13
+ // typings
14
+ import { asBaseComponent } from "../../../@types/as-base-component";
15
+ import type { ISelectDropDownProps } from "./interface";
16
+
17
+ // styles
18
+ import { styles } from "./styles";
19
+ import { theme } from "../../../styles/theme/theme";
20
+
21
+ const SelectOption = forwardRef<any, ISelectDropDownProps>((props, ref): React.ReactElement => {
22
+ const {
23
+ dataOption,
24
+ handleSelectDown,
25
+ titleLabel,
26
+ sizeTitleLabel,
27
+ colortitleLabel,
28
+ backgroundColor,
29
+ } = props;
30
+
31
+ const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || "");
32
+ const [modalVisible, setModalVisible] = useState(false);
33
+
34
+ const handleSelect = (value: number) => {
35
+ setSelectedValue(value);
36
+ setModalVisible(false);
37
+ handleSelectDown(value);
38
+ };
39
+
40
+ const styleProps = {
41
+ dataOption,
42
+ handleSelectDown,
43
+ titleLabel,
44
+ sizeTitleLabel,
45
+ colortitleLabel,
46
+ backgroundColor,
47
+ } as ISelectDropDownProps;
48
+ return (
49
+ <View ref={ref} style={styles(styleProps).container}>
50
+ {/* Titulo para exibir o label */}
51
+ <Text style={styles(styleProps).label}>{`${titleLabel ?? "Selecione uma opção"}`}:</Text>
52
+
53
+ {/* Botão para abrir o modal */}
54
+ <TouchableOpacity
55
+ testID="select-box"
56
+ style={styles(styleProps).selectBox}
57
+ onPress={() => setModalVisible(true)}
58
+ >
59
+ <Text style={styles(styleProps).selectedText} numberOfLines={1}>
60
+ {`${handleLimitTextdisplayByAmount({
61
+ limit: 42,
62
+ text: dataOption.find((item) => item.value === selectedValue)?.label!,
63
+ })}`}
64
+ </Text>
65
+
66
+ <Icons
67
+ size={theme.fontSizes["xs"]}
68
+ color={theme.colors.blue[500]}
69
+ icon={"ARROW_DROP_DOWN"}
70
+ />
71
+ </TouchableOpacity>
72
+
73
+ {/* Modal para exibir as opções */}
74
+ <Modal testID="modal-container" visible={modalVisible} transparent animationType="fade">
75
+ <View style={styles(styleProps).modalOverlay}>
76
+ <View style={styles(styleProps).modalContainer}>
77
+ <View
78
+ style={{
79
+ width: "100%",
80
+ alignItems: "flex-end",
81
+ height: 40,
82
+ paddingRight: 8,
83
+ }}
84
+ >
85
+ <TouchableOpacity
86
+ testID="close-icon"
87
+ onPress={() => setModalVisible(false)}
88
+ style={{
89
+ width: 40,
90
+ height: 45,
91
+ alignItems: "center",
92
+ justifyContent: "center",
93
+ }}
94
+ >
95
+ <Icons
96
+ size={theme.fontSizes["md"]}
97
+ color={theme.colors.blue[500]}
98
+ icon={"CLOSED"}
99
+ />
100
+ </TouchableOpacity>
101
+ </View>
102
+ <FlatList
103
+ data={dataOption || []}
104
+ keyExtractor={(item) => item.value}
105
+ renderItem={({ item }) => (
106
+ <TouchableOpacity
107
+ style={styles(styleProps).option}
108
+ onPress={() => handleSelect(item.value)}
109
+ >
110
+ <Text style={styles(styleProps).optionText}>{item.label}</Text>
111
+ </TouchableOpacity>
112
+ )}
113
+ />
114
+ </View>
115
+ </View>
116
+ </Modal>
117
+ </View>
118
+ );
119
+ });
120
+
121
+ /**
122
+ * Componente SelectOption para a interação da ui.
123
+ */
124
+ export default asBaseComponent(SelectOption);
@@ -1,18 +1,18 @@
1
- /**
2
- * IMPORTS
3
- */
4
- type ISelectDropDownProps = {
5
- dataOption: any[];
6
- titleLabel: string;
7
- sizeTitleLabel?: number;
8
- colortitleLabel?: string;
9
- backgroundColor?: string;
10
- /**retorna o valor selecionado */
11
- // eslint-disable-next-line no-unused-vars
12
- handleSelectDown: (value: string) => void;
13
- };
14
-
15
- /**
16
- * EXPORTS
17
- */
18
- export { ISelectDropDownProps };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ type ISelectDropDownProps = {
5
+ dataOption: any[];
6
+ titleLabel: string;
7
+ sizeTitleLabel?: number;
8
+ colortitleLabel?: string;
9
+ backgroundColor?: string;
10
+ /**retorna o valor selecionado */
11
+ // eslint-disable-next-line no-unused-vars
12
+ handleSelectDown: (value: number) => void;
13
+ };
14
+
15
+ /**
16
+ * EXPORTS
17
+ */
18
+ export { ISelectDropDownProps };