vpt-sebraeds 0.0.38 → 0.0.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.
- package/components/BottomSheet/index.jsx +3 -3
- package/components/Button/index.jsx +3 -3
- package/components/ContentCard/ContentCard.stories.jsx +35 -4
- package/components/ContentCard/index.jsx +21 -13
- package/components/Input/index.jsx +5 -5
- package/components/MenuAccordion/index.jsx +1 -1
- package/components/Select/index.jsx +1 -1
- package/components/Table/index.jsx +1 -1
- package/components/TaskCard/components/EditIcon.jsx +1 -1
- package/dist/components/BottomSheet/index.js +3 -3
- package/dist/components/Button/index.js +3 -3
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.d.ts.map +1 -1
- package/dist/components/ContentCard/index.js +17 -6
- package/dist/components/Input/index.js +4 -4
- package/dist/components/MenuAccordion/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TaskCard/components/EditIcon.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useCallback } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, FlatList, StyleSheet, Modal, Dimensions, Platform, ScrollView, Pressable } from 'react-native';
|
|
3
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'; // Adicione esta dependência
|
|
4
|
-
import
|
|
4
|
+
import Icon from '../Icon';
|
|
5
5
|
import SEText from '../SEText';
|
|
6
6
|
|
|
7
7
|
const { height: screenHeight, width: screenWidth } = Dimensions.get('window');
|
|
@@ -94,7 +94,7 @@ const BottomSheet = ({
|
|
|
94
94
|
onPress={() => setIsOpen(false)}
|
|
95
95
|
style={styles.closeButton}
|
|
96
96
|
>
|
|
97
|
-
<
|
|
97
|
+
<Icon name="close-line" size={20} color="#666666" />
|
|
98
98
|
</TouchableOpacity>
|
|
99
99
|
</View>
|
|
100
100
|
)}
|
|
@@ -103,7 +103,7 @@ const BottomSheet = ({
|
|
|
103
103
|
<View style={styles.titleContainer}>
|
|
104
104
|
{headerIcon && (
|
|
105
105
|
<View style={styles.iconContainer}>
|
|
106
|
-
<
|
|
106
|
+
<Icon name={headerIcon} size={32} color="#2A4FDA" />
|
|
107
107
|
</View>
|
|
108
108
|
)}
|
|
109
109
|
<SEText bold campuni style={styles.modalTitle}>{validTitle}</SEText>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import { TouchableOpacity, StyleSheet, View } from 'react-native';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
import SEText from '../SEText';
|
|
5
5
|
|
|
6
6
|
const Button = ({
|
|
7
7
|
label,
|
|
@@ -149,7 +149,7 @@ const Button = ({
|
|
|
149
149
|
const renderIcon = () => {
|
|
150
150
|
if (!iconName) return null;
|
|
151
151
|
return (
|
|
152
|
-
<
|
|
152
|
+
<Icon
|
|
153
153
|
name={iconName}
|
|
154
154
|
size={getIconSize()}
|
|
155
155
|
color={getIconColor()}
|
|
@@ -21,6 +21,12 @@ export default {
|
|
|
21
21
|
},
|
|
22
22
|
primaryActionLabel: { control: 'text', defaultValue: 'Label' },
|
|
23
23
|
secondaryActionLabel: { control: 'text', defaultValue: 'Label' },
|
|
24
|
+
primaryActionIconName: { control: 'text' },
|
|
25
|
+
secondaryActionIconName: { control: 'text' },
|
|
26
|
+
iconPosition: {
|
|
27
|
+
control: 'radio',
|
|
28
|
+
options: ['left', 'right'],
|
|
29
|
+
},
|
|
24
30
|
variant: {
|
|
25
31
|
control: 'radio',
|
|
26
32
|
options: ['default', 'secondary'],
|
|
@@ -31,13 +37,18 @@ export default {
|
|
|
31
37
|
progress: { control: { type: 'range', min: 0, max: 1, step: 0.01 }, defaultValue: 0.4 },
|
|
32
38
|
onPrimaryAction: { action: 'Primary Action Clicked' },
|
|
33
39
|
onSecondaryAction: { action: 'Secondary Action Clicked' },
|
|
40
|
+
progressType: {
|
|
41
|
+
control: 'radio',
|
|
42
|
+
options: ['donut', 'bar'],
|
|
43
|
+
defaultValue: 'donut',
|
|
44
|
+
},
|
|
45
|
+
centerDonut: { control: 'boolean', defaultValue: false },
|
|
46
|
+
singleButton: { control: 'boolean', defaultValue: false },
|
|
47
|
+
timeInfo: { control: 'text', defaultValue: '' },
|
|
34
48
|
},
|
|
35
49
|
parameters: {
|
|
36
50
|
layout: 'centered',
|
|
37
51
|
},
|
|
38
|
-
singleButton: {
|
|
39
|
-
control: 'boolean',
|
|
40
|
-
}
|
|
41
52
|
};
|
|
42
53
|
|
|
43
54
|
const Template = (args) => (
|
|
@@ -96,4 +107,24 @@ export const DefaultAndBlueBorderCustom = () => (
|
|
|
96
107
|
</View>
|
|
97
108
|
);
|
|
98
109
|
|
|
99
|
-
|
|
110
|
+
export const ComBarraDeProgresso = Template.bind({});
|
|
111
|
+
ComBarraDeProgresso.args = {
|
|
112
|
+
title: 'Workshop de Marketing Digital',
|
|
113
|
+
date: '15 de agosto',
|
|
114
|
+
time: '14:00 às 17:00',
|
|
115
|
+
location: 'Sebrae São Paulo',
|
|
116
|
+
timeInfo: '2h de conteúdo',
|
|
117
|
+
tags: [
|
|
118
|
+
{ label: 'Workshop', variant: 'successSolid' },
|
|
119
|
+
{ label: 'Presencial', variant: 'successSolid' },
|
|
120
|
+
{ label: 'Grátis', variant: 'pinkSolid' },
|
|
121
|
+
],
|
|
122
|
+
primaryActionLabel: 'Inscrever-se',
|
|
123
|
+
secondaryActionLabel: 'Ver detalhes',
|
|
124
|
+
variant: 'default',
|
|
125
|
+
showButtons: true,
|
|
126
|
+
showProgressBar: true,
|
|
127
|
+
progress: 0.65,
|
|
128
|
+
progressType: 'bar',
|
|
129
|
+
singleButton: false,
|
|
130
|
+
};
|
|
@@ -5,6 +5,7 @@ import Tag from '../Tag';
|
|
|
5
5
|
import Button from '../Button';
|
|
6
6
|
import Icon from '../Icon';
|
|
7
7
|
import DonutChart from '../DonutChart';
|
|
8
|
+
import ProgressBar from '../ProgressBar';
|
|
8
9
|
|
|
9
10
|
// Pegue a largura da tela
|
|
10
11
|
const ContentCard = ({
|
|
@@ -32,6 +33,7 @@ const ContentCard = ({
|
|
|
32
33
|
cardHeight, // NOVO: permite passar altura customizada
|
|
33
34
|
style, // NOVO: permite passar estilos customizados
|
|
34
35
|
centerDonut = false, // NOVO: centraliza o DonutChart
|
|
36
|
+
progressType = 'donut',
|
|
35
37
|
}) => {
|
|
36
38
|
console.log("Chegou isso:", progress);
|
|
37
39
|
const containerStyle = [
|
|
@@ -122,18 +124,7 @@ const ContentCard = ({
|
|
|
122
124
|
{location ? <Text style={styles.timeText}>{location}</Text> : null}
|
|
123
125
|
</View>
|
|
124
126
|
</View>
|
|
125
|
-
{showProgressBar
|
|
126
|
-
centerDonut ? (
|
|
127
|
-
<View style={styles.donutCenteredContainer}>
|
|
128
|
-
<DonutChart progress={progress} label={progressLabel} />
|
|
129
|
-
</View>
|
|
130
|
-
) : (
|
|
131
|
-
<DonutChart progress={progress} label={progressLabel} />
|
|
132
|
-
)
|
|
133
|
-
) : (
|
|
134
|
-
// Placeholder para manter a altura igual
|
|
135
|
-
<View style={{ height: 0 }} />
|
|
136
|
-
)}
|
|
127
|
+
{chart({ showProgressBar, centerDonut, progress, progressLabel, progressType })}
|
|
137
128
|
</View>
|
|
138
129
|
{showButtons && (
|
|
139
130
|
<View style={styles.actionsContainer}>
|
|
@@ -202,6 +193,23 @@ const ContentCard = ({
|
|
|
202
193
|
);
|
|
203
194
|
};
|
|
204
195
|
|
|
196
|
+
const chart = ({ showProgressBar, centerDonut, progress, progressLabel, progressType }) => {
|
|
197
|
+
if (!showProgressBar) {
|
|
198
|
+
return <View style={{ height: 0 }} />;
|
|
199
|
+
}
|
|
200
|
+
if (progressType === 'bar') {
|
|
201
|
+
return <ProgressBar progress={progress} label={progressLabel} />;
|
|
202
|
+
}
|
|
203
|
+
if (centerDonut) {
|
|
204
|
+
return (
|
|
205
|
+
<View style={styles.donutCenteredContainer}>
|
|
206
|
+
<DonutChart progress={progress} label={progressLabel} />
|
|
207
|
+
</View>
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
return <DonutChart progress={progress} label={progressLabel} />;
|
|
211
|
+
}
|
|
212
|
+
|
|
205
213
|
const styles = StyleSheet.create({
|
|
206
214
|
container: {
|
|
207
215
|
backgroundColor: '#FFFFFF',
|
|
@@ -314,4 +322,4 @@ const styles = StyleSheet.create({
|
|
|
314
322
|
},
|
|
315
323
|
});
|
|
316
324
|
|
|
317
|
-
export default ContentCard;
|
|
325
|
+
export default ContentCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import { View, TextInput, StyleSheet } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '../Icon';
|
|
4
4
|
import TooltipCard from '../TooltipCard';
|
|
5
5
|
import SEText from '../SEText';
|
|
6
6
|
|
|
@@ -151,14 +151,14 @@ const Input = React.forwardRef((
|
|
|
151
151
|
<TooltipCard
|
|
152
152
|
{...tooltipProps}
|
|
153
153
|
trigger={
|
|
154
|
-
<
|
|
154
|
+
<Icon name="information-line" size={20} color="#687499" />
|
|
155
155
|
}
|
|
156
156
|
/>
|
|
157
157
|
) : !disabled && (
|
|
158
|
-
<
|
|
158
|
+
<Icon name="information-line" size={20} color="#687499" />
|
|
159
159
|
)}
|
|
160
|
-
{error && <
|
|
161
|
-
{success && <
|
|
160
|
+
{error && <Icon name="close-line" size={20} color="#FF4D4F" />}
|
|
161
|
+
{success && <Icon name="check-line" size={20} color="#52C41A" />}
|
|
162
162
|
</View>
|
|
163
163
|
{supportText && <SEText type="ns-xs-body" color={getSupportTextColor()}>{supportText}</SEText>}
|
|
164
164
|
</View>
|
|
@@ -3,7 +3,7 @@ import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import Select from '../Select';
|
|
6
|
-
import
|
|
6
|
+
import SEText from '../SEText';
|
|
7
7
|
|
|
8
8
|
const Table = ({
|
|
9
9
|
data = [],
|
|
@@ -13,7 +13,7 @@ const EditIcon = ({
|
|
|
13
13
|
}) => {
|
|
14
14
|
// Se não tiver uma fonte personalizada, usa a imagem padrão
|
|
15
15
|
if (!source) {
|
|
16
|
-
source = require('
|
|
16
|
+
source = require('../assets/edit-icon.png');
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Se tiver uma imagem, usa ela
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useCallback } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, FlatList, StyleSheet, Modal, Dimensions, Platform, ScrollView, Pressable } from 'react-native';
|
|
3
3
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'; // Adicione esta dependência
|
|
4
|
-
import
|
|
4
|
+
import Icon from '../Icon';
|
|
5
5
|
import SEText from '../SEText';
|
|
6
6
|
const { height: screenHeight, width: screenWidth } = Dimensions.get('window');
|
|
7
7
|
const BottomSheet = ({ isOpen = false, setIsOpen = () => { }, children, title, subtitle, showHeader = true, fullScreen = false, tall = false, // quando true, aumenta a altura máxima do sheet sem ir para full screen
|
|
@@ -63,13 +63,13 @@ headerIcon = null, // Nova prop para o ícone no header
|
|
|
63
63
|
<View style={bottomSheetListStyle}>
|
|
64
64
|
{showHeader && (<View style={[styles.modalHeader, fullScreen && { paddingTop: insets.top }]}>
|
|
65
65
|
<TouchableOpacity onPress={() => setIsOpen(false)} style={styles.closeButton}>
|
|
66
|
-
<
|
|
66
|
+
<Icon name="close-line" size={20} color="#666666"/>
|
|
67
67
|
</TouchableOpacity>
|
|
68
68
|
</View>)}
|
|
69
69
|
|
|
70
70
|
{validTitle.length > 0 && (<View style={styles.titleContainer}>
|
|
71
71
|
{headerIcon && (<View style={styles.iconContainer}>
|
|
72
|
-
<
|
|
72
|
+
<Icon name={headerIcon} size={32} color="#2A4FDA"/>
|
|
73
73
|
</View>)}
|
|
74
74
|
<SEText bold campuni style={styles.modalTitle}>{validTitle}</SEText>
|
|
75
75
|
{validSubtitle.length > 0 && (<SEText campuni style={styles.modalSubtitle}>{validSubtitle}</SEText>)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import { TouchableOpacity, StyleSheet, View } from 'react-native';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
import SEText from '../SEText';
|
|
5
5
|
const Button = ({ label, size = 'medium', variant = 'filled', disabled = false, inverseStyle = false, onPress, iconName, iconPosition = 'both', expand = false, iconColor, }) => {
|
|
6
6
|
const [isFocused, setIsFocused] = useState(false);
|
|
7
7
|
const iconOnly = useMemo(() => !label && iconName, [label, iconName]);
|
|
@@ -125,7 +125,7 @@ const Button = ({ label, size = 'medium', variant = 'filled', disabled = false,
|
|
|
125
125
|
const renderIcon = () => {
|
|
126
126
|
if (!iconName)
|
|
127
127
|
return null;
|
|
128
|
-
return (<
|
|
128
|
+
return (<Icon name={iconName} size={getIconSize()} color={getIconColor()} style={!iconOnly && styles.icon}/>);
|
|
129
129
|
};
|
|
130
130
|
return (<TouchableOpacity style={[
|
|
131
131
|
getContainerStyle(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ContentCard;
|
|
2
|
-
declare function ContentCard({ title, date, time, location, tags, onPrimaryAction, onSecondaryAction, primaryActionLabel, secondaryActionLabel, primaryActionIconName, secondaryActionIconName, variant, showButtons, showProgressBar, progress, singleButton, onPressCard, imageSource, imageHeight, timeInfo, iconPosition, cardHeight, style, centerDonut, }: {
|
|
2
|
+
declare function ContentCard({ title, date, time, location, tags, onPrimaryAction, onSecondaryAction, primaryActionLabel, secondaryActionLabel, primaryActionIconName, secondaryActionIconName, variant, showButtons, showProgressBar, progress, singleButton, onPressCard, imageSource, imageHeight, timeInfo, iconPosition, cardHeight, style, centerDonut, progressType, }: {
|
|
3
3
|
title: any;
|
|
4
4
|
date: any;
|
|
5
5
|
time: any;
|
|
@@ -24,6 +24,7 @@ declare function ContentCard({ title, date, time, location, tags, onPrimaryActio
|
|
|
24
24
|
cardHeight: any;
|
|
25
25
|
style: any;
|
|
26
26
|
centerDonut?: boolean | undefined;
|
|
27
|
+
progressType?: string | undefined;
|
|
27
28
|
}): React.JSX.Element;
|
|
28
29
|
import React from 'react';
|
|
29
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ContentCard/index.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ContentCard/index.jsx"],"names":[],"mappings":";AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;sBAuLC;kBAjMiB,OAAO"}
|
|
@@ -5,6 +5,7 @@ import Tag from '../Tag';
|
|
|
5
5
|
import Button from '../Button';
|
|
6
6
|
import Icon from '../Icon';
|
|
7
7
|
import DonutChart from '../DonutChart';
|
|
8
|
+
import ProgressBar from '../ProgressBar';
|
|
8
9
|
// Pegue a largura da tela
|
|
9
10
|
const ContentCard = ({ title, date, time, location, tags, onPrimaryAction = () => { console.log("esta funcionando12"); }, onSecondaryAction = () => { console.log("esta funcionando12"); }, primaryActionLabel = 'Label', secondaryActionLabel = 'Label', primaryActionIconName, // NOVO
|
|
10
11
|
secondaryActionIconName, // NOVO
|
|
@@ -13,7 +14,7 @@ iconPosition = '', // Posição do ícone
|
|
|
13
14
|
cardHeight, // NOVO: permite passar altura customizada
|
|
14
15
|
style, // NOVO: permite passar estilos customizados
|
|
15
16
|
centerDonut = false, // NOVO: centraliza o DonutChart
|
|
16
|
-
}) => {
|
|
17
|
+
progressType = 'donut', }) => {
|
|
17
18
|
console.log("Chegou isso:", progress);
|
|
18
19
|
const containerStyle = [
|
|
19
20
|
styles.container,
|
|
@@ -75,11 +76,7 @@ centerDonut = false, // NOVO: centraliza o DonutChart
|
|
|
75
76
|
{location ? <Text style={styles.timeText}>{location}</Text> : null}
|
|
76
77
|
</View>
|
|
77
78
|
</View>
|
|
78
|
-
{showProgressBar
|
|
79
|
-
<DonutChart progress={progress} label={progressLabel}/>
|
|
80
|
-
</View>) : (<DonutChart progress={progress} label={progressLabel}/>)) : (
|
|
81
|
-
// Placeholder para manter a altura igual
|
|
82
|
-
<View style={{ height: 0 }}/>)}
|
|
79
|
+
{chart({ showProgressBar, centerDonut, progress, progressLabel, progressType })}
|
|
83
80
|
</View>
|
|
84
81
|
{showButtons && (<View style={styles.actionsContainer}>
|
|
85
82
|
{singleButton ? (<>
|
|
@@ -101,6 +98,20 @@ centerDonut = false, // NOVO: centraliza o DonutChart
|
|
|
101
98
|
}
|
|
102
99
|
return (<View style={containerStyle}>{CardContent}</View>);
|
|
103
100
|
};
|
|
101
|
+
const chart = ({ showProgressBar, centerDonut, progress, progressLabel, progressType }) => {
|
|
102
|
+
if (!showProgressBar) {
|
|
103
|
+
return <View style={{ height: 0 }}/>;
|
|
104
|
+
}
|
|
105
|
+
if (progressType === 'bar') {
|
|
106
|
+
return <ProgressBar progress={progress} label={progressLabel}/>;
|
|
107
|
+
}
|
|
108
|
+
if (centerDonut) {
|
|
109
|
+
return (<View style={styles.donutCenteredContainer}>
|
|
110
|
+
<DonutChart progress={progress} label={progressLabel}/>
|
|
111
|
+
</View>);
|
|
112
|
+
}
|
|
113
|
+
return <DonutChart progress={progress} label={progressLabel}/>;
|
|
114
|
+
};
|
|
104
115
|
const styles = StyleSheet.create({
|
|
105
116
|
container: {
|
|
106
117
|
backgroundColor: '#FFFFFF',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import { View, TextInput, StyleSheet } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '../Icon';
|
|
4
4
|
import TooltipCard from '../TooltipCard';
|
|
5
5
|
import SEText from '../SEText';
|
|
6
6
|
/**
|
|
@@ -123,9 +123,9 @@ const Input = React.forwardRef(({ label, placeholder, value, onChangeText, error
|
|
|
123
123
|
{label && <SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>}
|
|
124
124
|
<View style={getContainerStyle()}>
|
|
125
125
|
<TextInput ref={ref} style={getInputStyle()} placeholder={placeholder} value={value} onChangeText={handleChangeText} onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)} editable={!disabled} keyboardType={getKeyboardType()} maxLength={getMaxLength()} placeholderTextColor="#BFBFBF" {...textInputProps}/>
|
|
126
|
-
{!disabled && tooltipProps ? (<TooltipCard {...tooltipProps} trigger={<
|
|
127
|
-
{error && <
|
|
128
|
-
{success && <
|
|
126
|
+
{!disabled && tooltipProps ? (<TooltipCard {...tooltipProps} trigger={<Icon name="information-line" size={20} color="#687499"/>}/>) : !disabled && (<Icon name="information-line" size={20} color="#687499"/>)}
|
|
127
|
+
{error && <Icon name="close-line" size={20} color="#FF4D4F"/>}
|
|
128
|
+
{success && <Icon name="check-line" size={20} color="#52C41A"/>}
|
|
129
129
|
</View>
|
|
130
130
|
{supportText && <SEText type="ns-xs-body" color={getSupportTextColor()}>{supportText}</SEText>}
|
|
131
131
|
</View>);
|
|
@@ -17,7 +17,7 @@ const MenuAccordion = ({ avatarIcon = 'user-3-line', label = 'Label', items = []
|
|
|
17
17
|
<View style={{
|
|
18
18
|
marginRight: 20,
|
|
19
19
|
}}>
|
|
20
|
-
<Image source={require('
|
|
20
|
+
<Image source={require('./assets/Vector.png')} style={{ width: 32, height: 32, resizeMode: 'contain' }}/>
|
|
21
21
|
</View>
|
|
22
22
|
{/* Label */}
|
|
23
23
|
<Text style={{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import SEText from '../SEText';
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import Dropdown from '../Dropdown';
|
|
6
6
|
const Select = ({ label, placeholder = "Selecione uma opção", value, onSelect, onValueChange, // Manter compatibilidade
|
|
@@ -3,7 +3,7 @@ import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import Select from '../Select';
|
|
6
|
-
import
|
|
6
|
+
import SEText from '../SEText';
|
|
7
7
|
const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChange, selectedRowIndex = null, onRowPress, hideUnavailableStatus = false, statusDropdownShowCloseButton = false, statusDropdownItemGap = 0 }) => {
|
|
8
8
|
const [selectedYear, setSelectedYear] = useState(null);
|
|
9
9
|
const [selectedStatuses, setSelectedStatuses] = useState([]);
|
|
@@ -6,7 +6,7 @@ const EditIcon = ({ size = 32, source, // Permite passar uma fonte de imagem per
|
|
|
6
6
|
backgroundColor = '#4F7CFE', iconColor = '#FFFFFF', borderRadius = 4, style, }) => {
|
|
7
7
|
// Se não tiver uma fonte personalizada, usa a imagem padrão
|
|
8
8
|
if (!source) {
|
|
9
|
-
source = require('
|
|
9
|
+
source = require('../assets/edit-icon.png');
|
|
10
10
|
}
|
|
11
11
|
// Se tiver uma imagem, usa ela
|
|
12
12
|
if (source) {
|