vpt-sebraeds 0.0.24 → 0.0.26
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/Dropdown/index.jsx +20 -0
- package/components/FilterableMultiSelect/index.jsx +12 -10
- package/components/ScrollBar/index.tsx +19 -10
- package/components/TaskCard/index.jsx +17 -10
- package/dist/components/Dropdown/index.d.ts +3 -1
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/index.js +11 -1
- package/dist/components/FilterableMultiSelect/index.d.ts.map +1 -1
- package/dist/components/FilterableMultiSelect/index.js +7 -8
- package/dist/components/ScrollBar/index.d.ts +3 -2
- package/dist/components/ScrollBar/index.d.ts.map +1 -1
- package/dist/components/ScrollBar/index.js +7 -4
- package/dist/components/TaskCard/index.d.ts.map +1 -1
- package/dist/components/TaskCard/index.js +13 -7
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { Animated, View, Text, ScrollView, TouchableOpacity, FlatList, StyleShee
|
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import ContentCard from '../ContentCard';
|
|
6
6
|
import Checkbox from '../Checkbox';
|
|
7
|
+
import Button from '../Button';
|
|
7
8
|
|
|
8
9
|
const commitmentsData = [
|
|
9
10
|
{
|
|
@@ -165,6 +166,8 @@ const Dropdown = ({
|
|
|
165
166
|
isOpen = false,
|
|
166
167
|
isCheckbox = false,
|
|
167
168
|
setIsOpen = () => { },
|
|
169
|
+
confirmButtonLabel,
|
|
170
|
+
onConfirm,
|
|
168
171
|
}) => {
|
|
169
172
|
|
|
170
173
|
const handleSelect = (option) => {
|
|
@@ -293,6 +296,18 @@ const Dropdown = ({
|
|
|
293
296
|
showsVerticalScrollIndicator={false}
|
|
294
297
|
bounces={false}
|
|
295
298
|
/>
|
|
299
|
+
|
|
300
|
+
{confirmButtonLabel && onConfirm && (
|
|
301
|
+
<View style={styles.buttonContainer}>
|
|
302
|
+
<Button
|
|
303
|
+
label={confirmButtonLabel}
|
|
304
|
+
onPress={onConfirm}
|
|
305
|
+
size="large"
|
|
306
|
+
variant="filled"
|
|
307
|
+
expand
|
|
308
|
+
/>
|
|
309
|
+
</View>
|
|
310
|
+
)}
|
|
296
311
|
</View>
|
|
297
312
|
</View>
|
|
298
313
|
</TouchableOpacity>
|
|
@@ -368,6 +383,11 @@ const styles = StyleSheet.create({
|
|
|
368
383
|
color: '#333333',
|
|
369
384
|
fontFamily: 'Nunito Sans',
|
|
370
385
|
},
|
|
386
|
+
buttonContainer: {
|
|
387
|
+
paddingHorizontal: 20,
|
|
388
|
+
paddingTop: 16,
|
|
389
|
+
paddingBottom: 8,
|
|
390
|
+
},
|
|
371
391
|
});
|
|
372
392
|
|
|
373
393
|
export default Dropdown;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View, TextInput,
|
|
2
|
+
import { View, TextInput, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
3
|
import SelectItem from '../SelectItem';
|
|
4
|
-
import ScrollBar from '../ScrollBar';
|
|
5
4
|
import Icon from '../Icon';
|
|
5
|
+
import ScrollBar from '../ScrollBar';
|
|
6
|
+
import SEText from '../SEText';
|
|
6
7
|
|
|
7
8
|
const CustomCheckbox = ({ selected, iconColor, size = 21 }) => {
|
|
8
9
|
if (selected) {
|
|
@@ -141,14 +142,15 @@ const FilterableMultiSelect = ({
|
|
|
141
142
|
iconColor={selected.includes(option.value) ? '#2A4FDA' : '#2A4FDA'}
|
|
142
143
|
size={20}
|
|
143
144
|
/>
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
<SEText
|
|
146
|
+
type="ns-sm-body"
|
|
147
|
+
style={{
|
|
148
|
+
color: selected.includes(option.value) ? '#2A4FDA' : '#485274',
|
|
149
|
+
marginLeft: 12,
|
|
150
|
+
}}
|
|
151
|
+
>
|
|
152
|
+
{option.label}
|
|
153
|
+
</SEText>
|
|
152
154
|
</TouchableOpacity>
|
|
153
155
|
</View>
|
|
154
156
|
))}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
|
-
import { ScrollView, View, StyleSheet, NativeSyntheticEvent, NativeScrollEvent
|
|
2
|
+
import { ScrollView, View, StyleSheet, ViewStyle, StyleProp, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface ScrollBarProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
horizontal?: boolean;
|
|
7
|
-
style?:
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
8
|
barColor?: string;
|
|
9
9
|
barThickness?: number;
|
|
10
10
|
height?: number;
|
|
@@ -18,7 +18,7 @@ const ScrollBar: React.FC<ScrollBarProps> = ({
|
|
|
18
18
|
barThickness = 4,
|
|
19
19
|
height,
|
|
20
20
|
}) => {
|
|
21
|
-
const scrollRef = useRef<ScrollView>(null);
|
|
21
|
+
const scrollRef = useRef<ScrollView | null>(null);
|
|
22
22
|
const [contentSize, setContentSize] = useState(1);
|
|
23
23
|
const [containerSize, setContainerSize] = useState(1);
|
|
24
24
|
const [scrollPos, setScrollPos] = useState(0);
|
|
@@ -27,22 +27,27 @@ const ScrollBar: React.FC<ScrollBarProps> = ({
|
|
|
27
27
|
setContentSize(horizontal ? w : h);
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
const handleLayout = (e:
|
|
31
|
-
|
|
30
|
+
const handleLayout = (e: NativeSyntheticEvent<{ layout: { width: number; height: number } }>) => {
|
|
31
|
+
const layout = e.nativeEvent.layout;
|
|
32
|
+
setContainerSize(horizontal ? layout.width : layout.height);
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
const handleScroll = (e: NativeSyntheticEvent<NativeScrollEvent>) => {
|
|
35
|
-
|
|
36
|
+
const offset = e.nativeEvent.contentOffset;
|
|
37
|
+
setScrollPos(horizontal ? offset.x : offset.y);
|
|
36
38
|
};
|
|
37
39
|
|
|
38
|
-
//
|
|
40
|
+
// Cálculo da barra de rolagem
|
|
39
41
|
const visibleRatio = Math.min(containerSize / contentSize, 1);
|
|
40
42
|
const barLength = visibleRatio * containerSize;
|
|
41
43
|
const maxScroll = contentSize - containerSize;
|
|
42
44
|
const barPos = maxScroll > 0 ? (scrollPos / maxScroll) * (containerSize - barLength) : 0;
|
|
43
45
|
|
|
44
46
|
return (
|
|
45
|
-
<View
|
|
47
|
+
<View
|
|
48
|
+
style={[styles.wrapper, height ? { height } : {}, style]}
|
|
49
|
+
onLayout={handleLayout}
|
|
50
|
+
>
|
|
46
51
|
<ScrollView
|
|
47
52
|
ref={scrollRef}
|
|
48
53
|
horizontal={horizontal}
|
|
@@ -52,9 +57,13 @@ const ScrollBar: React.FC<ScrollBarProps> = ({
|
|
|
52
57
|
onScroll={handleScroll}
|
|
53
58
|
scrollEventThrottle={16}
|
|
54
59
|
style={{ flex: 1 }}
|
|
60
|
+
nestedScrollEnabled={true}
|
|
61
|
+
onStartShouldSetResponder={() => true}
|
|
62
|
+
onMoveShouldSetResponder={() => true}
|
|
55
63
|
>
|
|
56
64
|
{children}
|
|
57
65
|
</ScrollView>
|
|
66
|
+
|
|
58
67
|
{contentSize > containerSize && (
|
|
59
68
|
<View
|
|
60
69
|
style={[
|
|
@@ -116,4 +125,4 @@ const styles = StyleSheet.create({
|
|
|
116
125
|
},
|
|
117
126
|
});
|
|
118
127
|
|
|
119
|
-
export default ScrollBar;
|
|
128
|
+
export default ScrollBar;
|
|
@@ -73,16 +73,15 @@ const TaskCard = ({
|
|
|
73
73
|
activeOpacity={0.7}
|
|
74
74
|
>
|
|
75
75
|
<SEText
|
|
76
|
-
type="ns-
|
|
77
|
-
|
|
78
|
-
style={styles.footerText}
|
|
76
|
+
type="ns-heading-6"
|
|
77
|
+
style={[styles.footerText, { color: footerTextColor }]}
|
|
79
78
|
>
|
|
80
79
|
{footerText}
|
|
81
80
|
</SEText>
|
|
82
81
|
<Icon
|
|
83
82
|
name="arrow-right-line"
|
|
84
|
-
size={
|
|
85
|
-
color={
|
|
83
|
+
size={20}
|
|
84
|
+
color={'#96A1C1'}
|
|
86
85
|
style={styles.footerIcon}
|
|
87
86
|
/>
|
|
88
87
|
</TouchableOpacity>
|
|
@@ -167,6 +166,9 @@ const TaskCard = ({
|
|
|
167
166
|
)}
|
|
168
167
|
|
|
169
168
|
{/* Footer */}
|
|
169
|
+
{footerText && (
|
|
170
|
+
<View style={[styles.footerSeparator, { marginHorizontal: -padding }]} />
|
|
171
|
+
)}
|
|
170
172
|
{renderFooter()}
|
|
171
173
|
</View>
|
|
172
174
|
);
|
|
@@ -236,7 +238,7 @@ const styles = StyleSheet.create({
|
|
|
236
238
|
},
|
|
237
239
|
header: {
|
|
238
240
|
flexDirection: 'row',
|
|
239
|
-
alignItems: '
|
|
241
|
+
alignItems: 'flex-start',
|
|
240
242
|
justifyContent: 'space-between',
|
|
241
243
|
marginBottom: 16,
|
|
242
244
|
},
|
|
@@ -248,6 +250,7 @@ const styles = StyleSheet.create({
|
|
|
248
250
|
moreMenuButton: {
|
|
249
251
|
padding: 4,
|
|
250
252
|
borderRadius: 4,
|
|
253
|
+
marginTop: 2, // Ajuste fino para alinhar com o texto
|
|
251
254
|
},
|
|
252
255
|
titleIconContainer: {
|
|
253
256
|
justifyContent:'center',
|
|
@@ -291,17 +294,21 @@ const styles = StyleSheet.create({
|
|
|
291
294
|
bottomContentContainer: {
|
|
292
295
|
marginBottom: 16,
|
|
293
296
|
},
|
|
297
|
+
footerSeparator: {
|
|
298
|
+
height: 1,
|
|
299
|
+
backgroundColor: '#E2E9FC',
|
|
300
|
+
marginTop: 4,
|
|
301
|
+
},
|
|
294
302
|
footerContainer: {
|
|
295
303
|
flexDirection: 'row',
|
|
296
304
|
alignItems: 'center',
|
|
297
305
|
justifyContent: 'center',
|
|
298
|
-
|
|
306
|
+
paddingTop: 20,
|
|
307
|
+
paddingBottom: 0,
|
|
299
308
|
},
|
|
300
309
|
footerText: {
|
|
301
|
-
|
|
302
|
-
fontWeight: '400',
|
|
310
|
+
// fontWeight: '400',
|
|
303
311
|
textAlign: 'center',
|
|
304
|
-
textDecorationLine: 'underline',
|
|
305
312
|
},
|
|
306
313
|
footerIcon: {
|
|
307
314
|
marginLeft: 4,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function DropdownCommitments(): React.JSX.Element;
|
|
2
2
|
export default Dropdown;
|
|
3
3
|
import React from 'react';
|
|
4
|
-
declare function Dropdown({ title, onSelect, options, withSeparator, isOpen, isCheckbox, setIsOpen, }: {
|
|
4
|
+
declare function Dropdown({ title, onSelect, options, withSeparator, isOpen, isCheckbox, setIsOpen, confirmButtonLabel, onConfirm, }: {
|
|
5
5
|
title: any;
|
|
6
6
|
onSelect: any;
|
|
7
7
|
options?: never[] | undefined;
|
|
@@ -9,5 +9,7 @@ declare function Dropdown({ title, onSelect, options, withSeparator, isOpen, isC
|
|
|
9
9
|
isOpen?: boolean | undefined;
|
|
10
10
|
isCheckbox?: boolean | undefined;
|
|
11
11
|
setIsOpen?: (() => void) | undefined;
|
|
12
|
+
confirmButtonLabel: any;
|
|
13
|
+
onConfirm: any;
|
|
12
14
|
}): React.JSX.Element;
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"AA+FO,yDA6DN;;kBA3JkD,OAAO;AA+J1D;;;;;;;;;;sBA4JC"}
|
|
@@ -4,6 +4,7 @@ import { Animated, View, Text, ScrollView, TouchableOpacity, FlatList, StyleShee
|
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import ContentCard from '../ContentCard';
|
|
6
6
|
import Checkbox from '../Checkbox';
|
|
7
|
+
import Button from '../Button';
|
|
7
8
|
const commitmentsData = [
|
|
8
9
|
{
|
|
9
10
|
title: 'Evento 1',
|
|
@@ -134,7 +135,7 @@ export const DropdownCommitments = () => {
|
|
|
134
135
|
</View>);
|
|
135
136
|
};
|
|
136
137
|
const { height: screenHeight } = Dimensions.get('window');
|
|
137
|
-
const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen = false, isCheckbox = false, setIsOpen = () => { }, }) => {
|
|
138
|
+
const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen = false, isCheckbox = false, setIsOpen = () => { }, confirmButtonLabel, onConfirm, }) => {
|
|
138
139
|
const handleSelect = (option) => {
|
|
139
140
|
if (onSelect)
|
|
140
141
|
onSelect(option);
|
|
@@ -210,6 +211,10 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
|
|
|
210
211
|
</View>
|
|
211
212
|
|
|
212
213
|
<FlatList data={options} renderItem={(props) => <RenderItem {...props}/>} keyExtractor={(item, index) => index.toString()} style={styles.optionsList} showsVerticalScrollIndicator={false} bounces={false}/>
|
|
214
|
+
|
|
215
|
+
{confirmButtonLabel && onConfirm && (<View style={styles.buttonContainer}>
|
|
216
|
+
<Button label={confirmButtonLabel} onPress={onConfirm} size="large" variant="filled" expand/>
|
|
217
|
+
</View>)}
|
|
213
218
|
</View>
|
|
214
219
|
</View>
|
|
215
220
|
</TouchableOpacity>
|
|
@@ -283,5 +288,10 @@ const styles = StyleSheet.create({
|
|
|
283
288
|
color: '#333333',
|
|
284
289
|
fontFamily: 'Nunito Sans',
|
|
285
290
|
},
|
|
291
|
+
buttonContainer: {
|
|
292
|
+
paddingHorizontal: 20,
|
|
293
|
+
paddingTop: 16,
|
|
294
|
+
paddingBottom: 8,
|
|
295
|
+
},
|
|
286
296
|
});
|
|
287
297
|
export default Dropdown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/FilterableMultiSelect/index.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/FilterableMultiSelect/index.jsx"],"names":[],"mappings":";AAwCA;;;;;;;sBAwHC;kBAhK+B,OAAO"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View, TextInput,
|
|
2
|
+
import { View, TextInput, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
3
|
import SelectItem from '../SelectItem';
|
|
4
|
-
import ScrollBar from '../ScrollBar';
|
|
5
4
|
import Icon from '../Icon';
|
|
5
|
+
import ScrollBar from '../ScrollBar';
|
|
6
|
+
import SEText from '../SEText';
|
|
6
7
|
const CustomCheckbox = ({ selected, iconColor, size = 21 }) => {
|
|
7
8
|
if (selected) {
|
|
8
9
|
return (<View style={{
|
|
@@ -81,14 +82,12 @@ const FilterableMultiSelect = ({ options = [], placeholder = 'O que você procur
|
|
|
81
82
|
paddingHorizontal: 16,
|
|
82
83
|
}} disabled={option.disabled} onPress={() => onSelect(option.value)}>
|
|
83
84
|
<CustomCheckbox selected={selected.includes(option.value)} iconColor={selected.includes(option.value) ? '#2A4FDA' : '#2A4FDA'} size={20}/>
|
|
84
|
-
<
|
|
85
|
-
fontFamily: 'Nunito Sans',
|
|
86
|
-
fontWeight: '400',
|
|
87
|
-
fontSize: 16,
|
|
88
|
-
lineHeight: 24,
|
|
85
|
+
<SEText type="ns-sm-body" style={{
|
|
89
86
|
color: selected.includes(option.value) ? '#2A4FDA' : '#485274',
|
|
90
87
|
marginLeft: 12,
|
|
91
|
-
}}>
|
|
88
|
+
}}>
|
|
89
|
+
{option.label}
|
|
90
|
+
</SEText>
|
|
92
91
|
</TouchableOpacity>
|
|
93
92
|
</View>))}
|
|
94
93
|
</View>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { ViewStyle, StyleProp } from 'react-native';
|
|
3
|
+
interface ScrollBarProps {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
horizontal?: boolean;
|
|
5
|
-
style?:
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
6
7
|
barColor?: string;
|
|
7
8
|
barThickness?: number;
|
|
8
9
|
height?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ScrollBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ScrollBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAgC,SAAS,EAAE,SAAS,EAA2C,MAAM,cAAc,CAAC;AAE3H,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmFvC,CAAC;AAgCF,eAAe,SAAS,CAAC"}
|
|
@@ -9,20 +9,23 @@ const ScrollBar = ({ children, horizontal = false, style, barColor = '#2563EB',
|
|
|
9
9
|
setContentSize(horizontal ? w : h);
|
|
10
10
|
};
|
|
11
11
|
const handleLayout = (e) => {
|
|
12
|
-
|
|
12
|
+
const layout = e.nativeEvent.layout;
|
|
13
|
+
setContainerSize(horizontal ? layout.width : layout.height);
|
|
13
14
|
};
|
|
14
15
|
const handleScroll = (e) => {
|
|
15
|
-
|
|
16
|
+
const offset = e.nativeEvent.contentOffset;
|
|
17
|
+
setScrollPos(horizontal ? offset.x : offset.y);
|
|
16
18
|
};
|
|
17
|
-
//
|
|
19
|
+
// Cálculo da barra de rolagem
|
|
18
20
|
const visibleRatio = Math.min(containerSize / contentSize, 1);
|
|
19
21
|
const barLength = visibleRatio * containerSize;
|
|
20
22
|
const maxScroll = contentSize - containerSize;
|
|
21
23
|
const barPos = maxScroll > 0 ? (scrollPos / maxScroll) * (containerSize - barLength) : 0;
|
|
22
24
|
return (<View style={[styles.wrapper, height ? { height } : {}, style]} onLayout={handleLayout}>
|
|
23
|
-
<ScrollView ref={scrollRef} horizontal={horizontal} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false} onContentSizeChange={handleContentSizeChange} onScroll={handleScroll} scrollEventThrottle={16} style={{ flex: 1 }}>
|
|
25
|
+
<ScrollView ref={scrollRef} horizontal={horizontal} showsHorizontalScrollIndicator={false} showsVerticalScrollIndicator={false} onContentSizeChange={handleContentSizeChange} onScroll={handleScroll} scrollEventThrottle={16} style={{ flex: 1 }} nestedScrollEnabled={true} onStartShouldSetResponder={() => true} onMoveShouldSetResponder={() => true}>
|
|
24
26
|
{children}
|
|
25
27
|
</ScrollView>
|
|
28
|
+
|
|
26
29
|
{contentSize > containerSize && (<View style={[
|
|
27
30
|
styles.barTrack,
|
|
28
31
|
horizontal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/TaskCard/index.jsx"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/TaskCard/index.jsx"],"names":[],"mappings":";AAOA;;;;;;;;;;;;;;;;;;;;;;sBAuKC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA9KiB,OAAO"}
|
|
@@ -27,10 +27,10 @@ style, }) => {
|
|
|
27
27
|
if (!footerText)
|
|
28
28
|
return null;
|
|
29
29
|
return (<TouchableOpacity style={styles.footerContainer} onPress={onFooterPress} activeOpacity={0.7}>
|
|
30
|
-
<SEText type="ns-
|
|
30
|
+
<SEText type="ns-heading-6" style={[styles.footerText, { color: footerTextColor }]}>
|
|
31
31
|
{footerText}
|
|
32
32
|
</SEText>
|
|
33
|
-
<Icon name="arrow-right-line" size={
|
|
33
|
+
<Icon name="arrow-right-line" size={20} color={'#96A1C1'} style={styles.footerIcon}/>
|
|
34
34
|
</TouchableOpacity>);
|
|
35
35
|
};
|
|
36
36
|
return (<View style={[
|
|
@@ -86,6 +86,7 @@ style, }) => {
|
|
|
86
86
|
</View>)}
|
|
87
87
|
|
|
88
88
|
{/* Footer */}
|
|
89
|
+
{footerText && (<View style={[styles.footerSeparator, { marginHorizontal: -padding }]}/>)}
|
|
89
90
|
{renderFooter()}
|
|
90
91
|
</View>);
|
|
91
92
|
};
|
|
@@ -149,7 +150,7 @@ const styles = StyleSheet.create({
|
|
|
149
150
|
},
|
|
150
151
|
header: {
|
|
151
152
|
flexDirection: 'row',
|
|
152
|
-
alignItems: '
|
|
153
|
+
alignItems: 'flex-start',
|
|
153
154
|
justifyContent: 'space-between',
|
|
154
155
|
marginBottom: 16,
|
|
155
156
|
},
|
|
@@ -161,6 +162,7 @@ const styles = StyleSheet.create({
|
|
|
161
162
|
moreMenuButton: {
|
|
162
163
|
padding: 4,
|
|
163
164
|
borderRadius: 4,
|
|
165
|
+
marginTop: 2, // Ajuste fino para alinhar com o texto
|
|
164
166
|
},
|
|
165
167
|
titleIconContainer: {
|
|
166
168
|
justifyContent: 'center',
|
|
@@ -204,17 +206,21 @@ const styles = StyleSheet.create({
|
|
|
204
206
|
bottomContentContainer: {
|
|
205
207
|
marginBottom: 16,
|
|
206
208
|
},
|
|
209
|
+
footerSeparator: {
|
|
210
|
+
height: 1,
|
|
211
|
+
backgroundColor: '#E2E9FC',
|
|
212
|
+
marginTop: 4,
|
|
213
|
+
},
|
|
207
214
|
footerContainer: {
|
|
208
215
|
flexDirection: 'row',
|
|
209
216
|
alignItems: 'center',
|
|
210
217
|
justifyContent: 'center',
|
|
211
|
-
|
|
218
|
+
paddingTop: 20,
|
|
219
|
+
paddingBottom: 0,
|
|
212
220
|
},
|
|
213
221
|
footerText: {
|
|
214
|
-
|
|
215
|
-
fontWeight: '400',
|
|
222
|
+
// fontWeight: '400',
|
|
216
223
|
textAlign: 'center',
|
|
217
|
-
textDecorationLine: 'underline',
|
|
218
224
|
},
|
|
219
225
|
footerIcon: {
|
|
220
226
|
marginLeft: 4,
|