vpt-sebraeds 0.0.25 → 0.0.27

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.
@@ -263,6 +263,8 @@ const Dropdown = ({
263
263
  )
264
264
  };
265
265
 
266
+ const hasCheckboxes = options.some(item => item.isCheckbox);
267
+
266
268
  return (
267
269
  <View style={styles.wrapper}>
268
270
  <Modal
@@ -271,46 +273,50 @@ const Dropdown = ({
271
273
  animationType="fade"
272
274
  onRequestClose={() => setIsOpen(false)}
273
275
  >
274
- <TouchableOpacity
275
- style={styles.overlay}
276
- activeOpacity={1}
277
- onPress={() => setIsOpen(false)}
278
- >
276
+ <View style={styles.overlay}>
277
+ {/* Área clicável separada para fechar o modal */}
278
+ <TouchableOpacity
279
+ style={styles.overlayTouchable}
280
+ activeOpacity={1}
281
+ onPress={() => setIsOpen(false)}
282
+ />
283
+
284
+ {/* Conteúdo do modal - não propaga toque para o overlay */}
279
285
  <View style={styles.modalContainer}>
280
- <View style={styles.dropdownList}>
281
- <View style={styles.modalHeader}>
282
- <TouchableOpacity
283
- onPress={() => setIsOpen(false)}
284
- style={styles.closeButton}
285
- >
286
- <Icon name="subtract-line" size={26} color="#687499" />
287
- </TouchableOpacity>
288
- <Text style={styles.modalTitle}>{title || "Título"}</Text>
289
- </View>
286
+ <View style={styles.modalHeader}>
287
+ <TouchableOpacity
288
+ onPress={() => setIsOpen(false)}
289
+ style={styles.closeButton}
290
+ >
291
+ <Icon name="subtract-line" size={26} color="#687499" />
292
+ </TouchableOpacity>
293
+ <Text style={styles.modalTitle}>{title || "Título"}</Text>
294
+ </View>
290
295
 
291
- <FlatList
292
- data={options}
293
- renderItem={(props) => <RenderItem {...props} />}
294
- keyExtractor={(item, index) => index.toString()}
295
- style={styles.optionsList}
296
- showsVerticalScrollIndicator={false}
297
- bounces={false}
298
- />
296
+ <ScrollView
297
+ style={styles.optionsList}
298
+ contentContainerStyle={{ paddingBottom: 8 }}
299
+ showsVerticalScrollIndicator={false}
300
+ bounces={false}
301
+ >
302
+ {options.map((item, index) => (
303
+ <RenderItem key={index.toString()} item={item} index={index} />
304
+ ))}
305
+ </ScrollView>
299
306
 
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
- )}
311
- </View>
307
+ {confirmButtonLabel && onConfirm && (
308
+ <View style={styles.buttonContainer}>
309
+ <Button
310
+ label={confirmButtonLabel}
311
+ onPress={onConfirm}
312
+ size="large"
313
+ variant="filled"
314
+ expand
315
+ />
316
+ </View>
317
+ )}
312
318
  </View>
313
- </TouchableOpacity>
319
+ </View>
314
320
  </Modal>
315
321
  </View>
316
322
  );
@@ -338,20 +344,22 @@ const styles = StyleSheet.create({
338
344
  backgroundColor: 'rgba(0, 0, 0, 0.5)',
339
345
  justifyContent: 'flex-end',
340
346
  },
347
+ overlayTouchable: {
348
+ flex: 1,
349
+ },
341
350
  modalContainer: {
342
351
  backgroundColor: 'white',
343
352
  borderTopLeftRadius: 20,
344
353
  borderTopRightRadius: 20,
345
- maxHeight: screenHeight * 0.6,
354
+ maxHeight: screenHeight * 0.7,
346
355
  paddingBottom: 34, // Safe area para iPhone
347
356
  },
348
357
  modalHeader: {
349
358
  alignItems: 'center',
350
359
  justifyContent: 'space-between',
351
360
  paddingHorizontal: 20,
361
+ paddingTop: 8,
352
362
  paddingBottom: 16,
353
- // borderBottomWidth: 1,
354
- // borderBottomColor: '#F0F0F0',
355
363
  },
356
364
  modalTitle: {
357
365
  fontSize: 18,
@@ -362,13 +370,9 @@ const styles = StyleSheet.create({
362
370
  closeButton: {
363
371
  margin: -4,
364
372
  },
365
- dropdownList: {
366
- backgroundColor: 'white',
367
- borderTopLeftRadius: 20,
368
- borderTopRightRadius: 20,
369
- },
370
373
  optionsList: {
371
374
  paddingHorizontal: 20,
375
+ flexGrow: 0,
372
376
  },
373
377
  optionItem: {
374
378
  paddingVertical: 16,
@@ -1,8 +1,9 @@
1
1
  import React, { useState } from 'react';
2
- import { View, TextInput, Text, StyleSheet, TouchableOpacity } from 'react-native';
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
- <Text style={{
145
- fontFamily: 'Nunito Sans',
146
- fontWeight: '400',
147
- fontSize: 16,
148
- lineHeight: 24,
149
- color: selected.includes(option.value) ? '#2A4FDA' : '#485274',
150
- marginLeft: 12,
151
- }}>{option.label}</Text>
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, LayoutChangeEvent } from 'react-native';
2
+ import { ScrollView, View, StyleSheet, ViewStyle, StyleProp, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
3
3
 
4
- export interface ScrollBarProps {
4
+ interface ScrollBarProps {
5
5
  children: React.ReactNode;
6
6
  horizontal?: boolean;
7
- style?: any;
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: LayoutChangeEvent) => {
31
- setContainerSize(horizontal ? e.nativeEvent.layout.width : e.nativeEvent.layout.height);
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
- setScrollPos(horizontal ? e.nativeEvent.contentOffset.x : e.nativeEvent.contentOffset.y);
36
+ const offset = e.nativeEvent.contentOffset;
37
+ setScrollPos(horizontal ? offset.x : offset.y);
36
38
  };
37
39
 
38
- // Calcula tamanho e posição da barra
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 style={[styles.wrapper, height ? { height } : {}, style]} onLayout={handleLayout}>
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-sm-body"
77
- color={footerTextColor}
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={16}
85
- color={footerTextColor}
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: 'center',
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
- paddingVertical: 4,
306
+ paddingTop: 20,
307
+ paddingBottom: 0,
299
308
  },
300
309
  footerText: {
301
- fontSize: 14,
302
- fontWeight: '400',
310
+ // fontWeight: '400',
303
311
  textAlign: 'center',
304
- textDecorationLine: 'underline',
305
312
  },
306
313
  footerIcon: {
307
314
  marginLeft: 4,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"AA+FO,yDA6DN;;kBA3JkD,OAAO;AA+J1D;;;;;;;;;;sBA4JC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/index.jsx"],"names":[],"mappings":"AA+FO,yDA6DN;;kBA3JkD,OAAO;AA+J1D;;;;;;;;;;sBAkKC"}
@@ -198,26 +198,31 @@ const Dropdown = ({ title, onSelect, options = [], withSeparator = false, isOpen
198
198
  const [isChecked, setIsChecked] = useState(false);
199
199
  return item.isCheckbox ? (<Checkbox checked={isChecked} onChange={() => setIsChecked(curr => !curr)} label={item.label || item} variant="check-line"/>) : (<RippleItem item={item} index={index} onPress={handleSelect}/>);
200
200
  };
201
+ const hasCheckboxes = options.some(item => item.isCheckbox);
201
202
  return (<View style={styles.wrapper}>
202
203
  <Modal visible={isOpen} transparent={true} animationType="fade" onRequestClose={() => setIsOpen(false)}>
203
- <TouchableOpacity style={styles.overlay} activeOpacity={1} onPress={() => setIsOpen(false)}>
204
+ <View style={styles.overlay}>
205
+ {/* Área clicável separada para fechar o modal */}
206
+ <TouchableOpacity style={styles.overlayTouchable} activeOpacity={1} onPress={() => setIsOpen(false)}/>
207
+
208
+ {/* Conteúdo do modal - não propaga toque para o overlay */}
204
209
  <View style={styles.modalContainer}>
205
- <View style={styles.dropdownList}>
206
- <View style={styles.modalHeader}>
207
- <TouchableOpacity onPress={() => setIsOpen(false)} style={styles.closeButton}>
208
- <Icon name="subtract-line" size={26} color="#687499"/>
209
- </TouchableOpacity>
210
- <Text style={styles.modalTitle}>{title || "Título"}</Text>
211
- </View>
210
+ <View style={styles.modalHeader}>
211
+ <TouchableOpacity onPress={() => setIsOpen(false)} style={styles.closeButton}>
212
+ <Icon name="subtract-line" size={26} color="#687499"/>
213
+ </TouchableOpacity>
214
+ <Text style={styles.modalTitle}>{title || "Título"}</Text>
215
+ </View>
212
216
 
213
- <FlatList data={options} renderItem={(props) => <RenderItem {...props}/>} keyExtractor={(item, index) => index.toString()} style={styles.optionsList} showsVerticalScrollIndicator={false} bounces={false}/>
217
+ <ScrollView style={styles.optionsList} contentContainerStyle={{ paddingBottom: 8 }} showsVerticalScrollIndicator={false} bounces={false}>
218
+ {options.map((item, index) => (<RenderItem key={index.toString()} item={item} index={index}/>))}
219
+ </ScrollView>
214
220
 
215
- {confirmButtonLabel && onConfirm && (<View style={styles.buttonContainer}>
216
- <Button label={confirmButtonLabel} onPress={onConfirm} size="large" variant="filled" expand/>
217
- </View>)}
218
- </View>
221
+ {confirmButtonLabel && onConfirm && (<View style={styles.buttonContainer}>
222
+ <Button label={confirmButtonLabel} onPress={onConfirm} size="large" variant="filled" expand/>
223
+ </View>)}
219
224
  </View>
220
- </TouchableOpacity>
225
+ </View>
221
226
  </Modal>
222
227
  </View>);
223
228
  };
@@ -243,20 +248,22 @@ const styles = StyleSheet.create({
243
248
  backgroundColor: 'rgba(0, 0, 0, 0.5)',
244
249
  justifyContent: 'flex-end',
245
250
  },
251
+ overlayTouchable: {
252
+ flex: 1,
253
+ },
246
254
  modalContainer: {
247
255
  backgroundColor: 'white',
248
256
  borderTopLeftRadius: 20,
249
257
  borderTopRightRadius: 20,
250
- maxHeight: screenHeight * 0.6,
258
+ maxHeight: screenHeight * 0.7,
251
259
  paddingBottom: 34, // Safe area para iPhone
252
260
  },
253
261
  modalHeader: {
254
262
  alignItems: 'center',
255
263
  justifyContent: 'space-between',
256
264
  paddingHorizontal: 20,
265
+ paddingTop: 8,
257
266
  paddingBottom: 16,
258
- // borderBottomWidth: 1,
259
- // borderBottomColor: '#F0F0F0',
260
267
  },
261
268
  modalTitle: {
262
269
  fontSize: 18,
@@ -267,13 +274,9 @@ const styles = StyleSheet.create({
267
274
  closeButton: {
268
275
  margin: -4,
269
276
  },
270
- dropdownList: {
271
- backgroundColor: 'white',
272
- borderTopLeftRadius: 20,
273
- borderTopRightRadius: 20,
274
- },
275
277
  optionsList: {
276
278
  paddingHorizontal: 20,
279
+ flexGrow: 0,
277
280
  },
278
281
  optionItem: {
279
282
  paddingVertical: 16,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/FilterableMultiSelect/index.jsx"],"names":[],"mappings":";AAuCA;;;;;;;sBAuHC;kBA9J+B,OAAO"}
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, Text, StyleSheet, TouchableOpacity } from 'react-native';
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
- <Text style={{
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
- }}>{option.label}</Text>
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
- export interface ScrollBarProps {
2
+ import { ViewStyle, StyleProp } from 'react-native';
3
+ interface ScrollBarProps {
3
4
  children: React.ReactNode;
4
5
  horizontal?: boolean;
5
- style?: any;
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;AAGhD,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,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,CA0EvC,CAAC;AAgCF,eAAe,SAAS,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
- setContainerSize(horizontal ? e.nativeEvent.layout.width : e.nativeEvent.layout.height);
12
+ const layout = e.nativeEvent.layout;
13
+ setContainerSize(horizontal ? layout.width : layout.height);
13
14
  };
14
15
  const handleScroll = (e) => {
15
- setScrollPos(horizontal ? e.nativeEvent.contentOffset.x : e.nativeEvent.contentOffset.y);
16
+ const offset = e.nativeEvent.contentOffset;
17
+ setScrollPos(horizontal ? offset.x : offset.y);
16
18
  };
17
- // Calcula tamanho e posição da barra
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;;;;;;;;;;;;;;;;;;;;;;sBAqKC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA5KiB,OAAO"}
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-sm-body" color={footerTextColor} style={styles.footerText}>
30
+ <SEText type="ns-heading-6" style={[styles.footerText, { color: footerTextColor }]}>
31
31
  {footerText}
32
32
  </SEText>
33
- <Icon name="arrow-right-line" size={16} color={footerTextColor} style={styles.footerIcon}/>
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: 'center',
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
- paddingVertical: 4,
218
+ paddingTop: 20,
219
+ paddingBottom: 0,
212
220
  },
213
221
  footerText: {
214
- fontSize: 14,
215
- fontWeight: '400',
222
+ // fontWeight: '400',
216
223
  textAlign: 'center',
217
- textDecorationLine: 'underline',
218
224
  },
219
225
  footerIcon: {
220
226
  marginLeft: 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
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",