vpt-sebraeds 0.0.33 → 0.0.34

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.
@@ -93,7 +93,7 @@ const NavigationItem: React.FC<NavigationItemProps> = ({
93
93
  case 'small':
94
94
  return 16;
95
95
  case 'large':
96
- return 28;
96
+ return 20;
97
97
  default:
98
98
  return 20;
99
99
  }
@@ -348,10 +348,10 @@ const styles = StyleSheet.create({
348
348
  marginRight: 12,
349
349
  },
350
350
  iconContainerLarge: {
351
- width: 48,
352
- height: 48,
353
- borderRadius: 12,
354
- marginRight: 16,
351
+ width: 40,
352
+ height: 40,
353
+ borderRadius: 6,
354
+ marginRight: 12,
355
355
  },
356
356
 
357
357
  // Icon Container Variants
@@ -365,9 +365,9 @@ const styles = StyleSheet.create({
365
365
  backgroundColor: '#F3F4F6',
366
366
  },
367
367
  iconContainerExpanded: {
368
- width: 48,
369
- height: 48,
370
- borderRadius: 12,
368
+ width: 40,
369
+ height: 40,
370
+ borderRadius: 6,
371
371
  },
372
372
  iconContainerHidden: {
373
373
  width: 0,
@@ -23,9 +23,9 @@ export const ProgressChart = ({
23
23
  if (data && Array.isArray(data)) {
24
24
  // Pegar a configuração de tamanho para alinhar a legenda
25
25
  const tempSizeConfig = {
26
- small: { width: 200 },
27
- medium: { width: 300 },
28
- large: { width: 400 }
26
+ small: { width: '100%' },
27
+ medium: { width: '100%' },
28
+ large: { width: '100%' }
29
29
  };
30
30
  const tempConfig = tempSizeConfig[size] || tempSizeConfig.medium;
31
31
 
@@ -72,19 +72,19 @@ export const ProgressChart = ({
72
72
  // Configurações de tamanho
73
73
  const sizeConfig = {
74
74
  small: {
75
- width: 200,
75
+ width: '100%',
76
76
  fontSize: 12,
77
77
  titleSize: 12, // Mesmo tamanho da legenda
78
78
  barHeight: 6,
79
79
  },
80
80
  medium: {
81
- width: 300,
81
+ width: '100%',
82
82
  fontSize: 12, // Mesmo tamanho da legenda
83
83
  titleSize: 12, // Mesmo tamanho da legenda
84
84
  barHeight: 8,
85
85
  },
86
86
  large: {
87
- width: 400,
87
+ width: '100%',
88
88
  fontSize: 14, // Mesmo tamanho da legenda
89
89
  titleSize: 14, // Mesmo tamanho da legenda
90
90
  barHeight: 10,
@@ -169,7 +169,7 @@ const styles = StyleSheet.create({
169
169
  fontSize: 12,
170
170
  fontWeight: '600', // SemiBold como no Figma
171
171
  color: '#1B244B', // Cor exata do Figma
172
-
172
+
173
173
  },
174
174
  titleContainer: {
175
175
  marginBottom: 8,
@@ -177,7 +177,7 @@ const styles = StyleSheet.create({
177
177
  title: {
178
178
  // fontWeight: '800', // SemiBold como no Figma
179
179
  color: '#1B244B', // Cor exata do Figma
180
-
180
+
181
181
  },
182
182
  percentage: {
183
183
  color: '#1B244B', // Cor exata do Figma
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useRef, useEffect } from 'react';
2
2
  import { View, TouchableOpacity, StyleSheet, Dimensions } from 'react-native';
3
3
  import { SwipeRow } from 'react-native-swipe-list-view';
4
- import Icon from '../Icon';
4
+ import Icon from '../Icon';
5
5
  import SEText from '../SEText';
6
6
 
7
7
  const SCREEN_WIDTH = Dimensions.get('window').width;
@@ -153,7 +153,7 @@ const ShuffleItem = ({
153
153
  >
154
154
  <Icon
155
155
  name="delete-bin-line"
156
- size={24}
156
+ size={20}
157
157
  color="#FFFFFF"
158
158
  />
159
159
  </TouchableOpacity>
@@ -165,7 +165,7 @@ const ShuffleItem = ({
165
165
  <View
166
166
  style={[
167
167
  styles.container,
168
- { backgroundColor: pinned ? '#FFFFFF' : (isExpanded ? '#FFFFFF' : (variant === 'destructive' ? '#FF4757' : '#FFFFFF')) },
168
+ { backgroundColor: pinned ? '#FFFFFF' : (isExpanded ? '#FFFFFF' : (variant === 'destructive' ? '#FF4757' : '#FFFFFF')) },
169
169
  ((showMoveButtons && !showAddButton) || showAddButton) && { paddingRight: 0 },
170
170
  showAddButton && { paddingLeft: 0 },
171
171
  {
@@ -179,155 +179,155 @@ const ShuffleItem = ({
179
179
  zIndex: 1,
180
180
  borderBottomLeftRadius: (isExpanded && expandedCard) ? 0 : 8,
181
181
  borderBottomRightRadius: (isExpanded && expandedCard) ? 0 : 8,
182
- borderColor: pinned ? '#E8EDFD' : '#E6EAFF',
182
+ borderColor: pinned ? '#E8EDFD' : '#E6EAFF',
183
183
  }
184
184
  ]}
185
185
  >
186
- {/* Conteúdo do Card */}
187
- {!showAddButton && (
186
+ {/* Conteúdo do Card */}
187
+ {!showAddButton && (
188
+ <TouchableOpacity
189
+ style={styles.dragHandle}
190
+ {...(dragHandleProps || {})}
191
+ hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}
192
+ >
193
+ <View style={{ flexDirection: 'row', marginBottom: -10 }}>
194
+ <View style={{ marginRight: 4 }}>
195
+ {[...Array(3)].map((_, index) => (
196
+ <View key={`left-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]} />
197
+ ))}
198
+ </View>
199
+ <View>
200
+ {[...Array(3)].map((_, index) => (
201
+ <View key={`right-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]} />
202
+ ))}
203
+ </View>
204
+ </View>
205
+ </TouchableOpacity>
206
+ )}
207
+ {showAddButton && (
208
+ <View style={styles.dragAreaForAddButton} />
209
+ )}
188
210
  <TouchableOpacity
189
- style={styles.dragHandle}
190
- {...(dragHandleProps || {})}
191
- hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}
211
+ style={styles.content}
212
+ onPress={onPress}
213
+ activeOpacity={0.7}
192
214
  >
193
- <View style={{ flexDirection: 'row', marginBottom: -10 }}>
194
- <View style={{ marginRight: 4 }}>
195
- {[...Array(3)].map((_, index) => (
196
- <View key={`left-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]} />
197
- ))}
198
- </View>
199
- <View>
200
- {[...Array(3)].map((_, index) => (
201
- <View key={`right-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]} />
202
- ))}
203
- </View>
204
- </View>
205
- </TouchableOpacity>
206
- )}
207
- {showAddButton && (
208
- <View style={styles.dragAreaForAddButton} />
209
- )}
210
- <TouchableOpacity
211
- style={styles.content}
212
- onPress={onPress}
213
- activeOpacity={0.7}
214
- >
215
- {!showAddButton && (
216
- iconContainerColor ? (
217
- <View style={[styles.iconContainer, { backgroundColor: iconContainerColor, opacity: iconOpacity }]}>
215
+ {!showAddButton && (
216
+ iconContainerColor ? (
217
+ <View style={[styles.iconContainer, { backgroundColor: iconContainerColor, opacity: iconOpacity }]}>
218
+ <Icon
219
+ name={icon}
220
+ size={20}
221
+ color={iconColor}
222
+ style={styles.contentIcon}
223
+ />
224
+ </View>
225
+ ) : (
218
226
  <Icon
219
227
  name={icon}
220
- size={24}
221
- color={iconColor}
222
- style={styles.contentIcon}
228
+ size={20}
229
+ color={getActionIconColor()}
230
+ style={[styles.contentIcon, { opacity: iconOpacity }]}
223
231
  />
224
- </View>
225
- ) : (
232
+ )
233
+ )}
234
+
235
+ <View style={styles.textContainer}>
236
+ <SEText
237
+ type="ns-heading-5"
238
+ color={getTextColor()}
239
+ numberOfLines={2}
240
+ ellipsizeMode="tail"
241
+ style={styles.title}
242
+ >
243
+ {title}
244
+ </SEText>
245
+ {/* Subtitle removed per request: always show only the title */}
246
+ </View>
247
+ </TouchableOpacity>
248
+
249
+ {showDropdown && (
250
+ <TouchableOpacity
251
+ style={[
252
+ styles.actionButton,
253
+ showAddButton && { marginRight: 16 }
254
+ ]}
255
+ onPress={handleDropdownPress}
256
+ >
226
257
  <Icon
227
- name={icon}
228
- size={24}
229
- color={getActionIconColor()}
230
- style={[styles.contentIcon, { opacity: iconOpacity }]}
258
+ name={isExpanded ? 'arrow-up-s-line' : 'arrow-down-s-line'}
259
+ size={20}
260
+ color="#1B244B"
231
261
  />
232
- )
262
+ </TouchableOpacity>
233
263
  )}
234
264
 
235
- <View style={styles.textContainer}>
236
- <SEText
237
- type="ns-heading-5"
238
- color={getTextColor()}
239
- numberOfLines={2}
240
- ellipsizeMode="tail"
241
- style={styles.title}
242
- >
243
- {title}
244
- </SEText>
245
- {/* Subtitle removed per request: always show only the title */}
246
- </View>
247
- </TouchableOpacity>
265
+ {pinned && (
266
+ <View style={[styles.actionButton, { marginRight: 0, opacity: 0.5 }]}>
267
+ <Icon name="pushpin-line" size={20} color="#96A1C1" />
268
+ </View>
269
+ )}
248
270
 
249
- {showDropdown && (
250
- <TouchableOpacity
251
- style={[
252
- styles.actionButton,
253
- showAddButton && { marginRight: 16 }
254
- ]}
255
- onPress={handleDropdownPress}
256
- >
257
- <Icon
258
- name={isExpanded ? 'arrow-up-s-line' : 'arrow-down-s-line'}
259
- size={24}
260
- color="#1B244B"
261
- />
262
- </TouchableOpacity>
263
- )}
271
+ {showMoveButtons && !showAddButton && (
272
+ <View style={styles.moveButtons}>
273
+ <TouchableOpacity
274
+ style={styles.actionButtonBoxDown}
275
+ onPress={canMoveDown ? onMoveDown : undefined}
276
+ disabled={!canMoveDown}
277
+ activeOpacity={canMoveDown ? 0.7 : 1}
278
+ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
279
+ >
280
+ <Icon
281
+ name="arrow-right-line"
282
+ size={20}
283
+ color={canMoveDown ? getActionIconColor() : '#96A1C1'}
284
+ style={{ transform: [{ rotate: '90deg' }] }}
285
+ />
286
+ </TouchableOpacity>
264
287
 
265
- {pinned && (
266
- <View style={[styles.actionButton, { marginRight: 0, opacity: 0.5 }]}>
267
- <Icon name="pushpin-line" size={20} color="#96A1C1" />
268
- </View>
269
- )}
288
+ <TouchableOpacity
289
+ style={styles.actionButtonBoxUp}
290
+ onPress={canMoveUp ? onMoveUp : undefined}
291
+ disabled={!canMoveUp}
292
+ activeOpacity={canMoveUp ? 0.7 : 1}
293
+ hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
294
+ >
295
+ <Icon
296
+ name="arrow-right-line"
297
+ size={20}
298
+ color={canMoveUp ? getActionIconColor() : '#96A1C1'}
299
+ style={{ transform: [{ rotate: '-90deg' }] }}
300
+ />
301
+ </TouchableOpacity>
302
+ </View>
303
+ )}
270
304
 
271
- {showMoveButtons && !showAddButton && (
272
- <View style={styles.moveButtons}>
305
+ {showAddButton && (
273
306
  <TouchableOpacity
274
- style={styles.actionButtonBoxDown}
275
- onPress={canMoveDown ? onMoveDown : undefined}
276
- disabled={!canMoveDown}
277
- activeOpacity={canMoveDown ? 0.7 : 1}
278
- hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
307
+ style={[
308
+ styles.addButton,
309
+ { borderBottomRightRadius: (isExpanded && expandedCard) ? 0 : 8 }
310
+ ]}
311
+ onPress={onAddPress}
312
+ activeOpacity={0.7}
279
313
  >
280
314
  <Icon
281
- name="arrow-right-line"
315
+ name="add-line"
282
316
  size={20}
283
- color={canMoveDown ? getActionIconColor() : '#96A1C1'}
284
- style={{ transform: [{ rotate: '90deg' }] }}
317
+ color="#FFFFFF"
285
318
  />
286
319
  </TouchableOpacity>
320
+ )}
287
321
 
288
- <TouchableOpacity
289
- style={styles.actionButtonBoxUp}
290
- onPress={canMoveUp ? onMoveUp : undefined}
291
- disabled={!canMoveUp}
292
- activeOpacity={canMoveUp ? 0.7 : 1}
293
- hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
294
- >
322
+ {variant === 'destructive' && (
323
+ <TouchableOpacity style={styles.actionButton}>
295
324
  <Icon
296
- name="arrow-right-line"
325
+ name="close-line"
297
326
  size={20}
298
- color={canMoveUp ? getActionIconColor() : '#96A1C1'}
299
- style={{ transform: [{ rotate: '-90deg' }] }}
327
+ color="#FFFFFF"
300
328
  />
301
329
  </TouchableOpacity>
302
- </View>
303
- )}
304
-
305
- {showAddButton && (
306
- <TouchableOpacity
307
- style={[
308
- styles.addButton,
309
- { borderBottomRightRadius: (isExpanded && expandedCard) ? 0 : 8 }
310
- ]}
311
- onPress={onAddPress}
312
- activeOpacity={0.7}
313
- >
314
- <Icon
315
- name="add-line"
316
- size={24}
317
- color="#FFFFFF"
318
- />
319
- </TouchableOpacity>
320
- )}
321
-
322
- {variant === 'destructive' && (
323
- <TouchableOpacity style={styles.actionButton}>
324
- <Icon
325
- name="close-line"
326
- size={20}
327
- color="#FFFFFF"
328
- />
329
- </TouchableOpacity>
330
- )}
330
+ )}
331
331
  </View>
332
332
  </SwipeRow>
333
333
 
@@ -428,10 +428,10 @@ const styles = StyleSheet.create({
428
428
  containerWrapper: {
429
429
  position: 'relative',
430
430
  marginVertical: 4,
431
- width: '100%',
432
- overflow: 'visible',
431
+ width: '100%',
432
+ overflow: 'visible',
433
433
  borderRadius: 8,
434
- backgroundColor: '#FFFFFF',
434
+ backgroundColor: '#FFFFFF',
435
435
  },
436
436
  deleteBackground: {
437
437
  flex: 1,
@@ -464,7 +464,7 @@ const styles = StyleSheet.create({
464
464
  borderWidth: 1.5,
465
465
  borderColor: '#E6EAFF',
466
466
  borderStyle: 'solid',
467
- height: 80,
467
+ height: 80,
468
468
  // shadowColor: '#000',
469
469
  // shadowOffset: {
470
470
  // width: 0,
@@ -474,21 +474,21 @@ const styles = StyleSheet.create({
474
474
  shadowRadius: 2,
475
475
  // elevation: 2,
476
476
  // minWidth/maxWidth removidos
477
- backgroundColor: '#FFFFFF',
477
+ backgroundColor: '#FFFFFF',
478
478
  },
479
479
  // ... (restante dos estilos inalterados para concisão, exceto o `container` e `expandedCard`)
480
480
  dragHandle: {
481
481
  flexDirection: 'row',
482
482
  flexWrap: 'wrap',
483
- width: 20,        
484
- height: 20,      
483
+ width: 20,
484
+ height: 20,
485
485
  marginRight: 12,
486
486
  alignItems: 'center',
487
487
  justifyContent: 'center',
488
- padding: 2,      
488
+ padding: 2,
489
489
  },
490
490
  dragDot: {
491
- width: 4,        
491
+ width: 4,
492
492
  height: 4,
493
493
  borderRadius: 2,
494
494
  backgroundColor: '#687499',
@@ -509,10 +509,10 @@ const styles = StyleSheet.create({
509
509
  marginRight: 12,
510
510
  },
511
511
  iconContainer: {
512
- paddingLeft: 11,
513
- width: 32,
514
- height: 32,
515
- borderRadius: 8,
512
+ paddingLeft: 0,
513
+ width: 40,
514
+ height: 40,
515
+ borderRadius: 6,
516
516
  justifyContent: 'center',
517
517
  alignItems: 'center',
518
518
  marginRight: 12,
@@ -547,8 +547,8 @@ const styles = StyleSheet.create({
547
547
  marginLeft: 16,
548
548
  alignSelf: 'stretch',
549
549
  marginVertical: -12,
550
- width: 90,
551
- height: '100%',    
550
+ width: 90,
551
+ height: '100%',
552
552
  },
553
553
  expandedCard: {
554
554
  backgroundColor: '#FFFFFF',
@@ -557,7 +557,7 @@ const styles = StyleSheet.create({
557
557
  borderTopRightRadius: 0,
558
558
  padding: 16,
559
559
  marginTop: 0,
560
- borderWidth: 1.5,
560
+ borderWidth: 1.5,
561
561
  borderTopWidth: 0,
562
562
  borderColor: '#E6EAFF',
563
563
  borderStyle: 'solid',
@@ -604,7 +604,7 @@ const styles = StyleSheet.create({
604
604
  },
605
605
  expandedButtonSecondary: {
606
606
  backgroundColor: 'transparent',
607
- borderWidth: 1.5,
607
+ borderWidth: 1.5,
608
608
  borderColor: '#2A4FDA',
609
609
  },
610
610
  expandedButtonText: {
@@ -630,11 +630,11 @@ const styles = StyleSheet.create({
630
630
  },
631
631
  removeButtonIcon: {
632
632
  marginRight: 6,
633
- marginTop:10,
633
+ marginTop: 10,
634
634
  },
635
635
  removeButtonText: {
636
636
  color: '#687499',
637
- marginTop:10,
637
+ marginTop: 10,
638
638
  },
639
639
  addButtonExpanded: {
640
640
  backgroundColor: '#E2E9FC',
@@ -668,9 +668,9 @@ const styles = StyleSheet.create({
668
668
  borderBottomLeftRadius: 0,
669
669
  borderWidth: 1.5,
670
670
  borderLeftWidth: 1.5,
671
- borderTopWidth:0,
672
- borderRightWidth:0,
673
- borderBottomWidth:0,
671
+ borderTopWidth: 0,
672
+ borderRightWidth: 0,
673
+ borderBottomWidth: 0,
674
674
  borderColor: '#E2E9FC',
675
675
  width: 45,
676
676
  minHeight: 77,
@@ -687,9 +687,9 @@ const styles = StyleSheet.create({
687
687
  borderBottomLeftRadius: 0,
688
688
  borderWidth: 1.5,
689
689
  borderColor: '#E2E9FC',
690
- borderTopWidth:0,
691
- borderRightWidth:0,
692
- borderBottomWidth:0,
690
+ borderTopWidth: 0,
691
+ borderRightWidth: 0,
692
+ borderBottomWidth: 0,
693
693
  width: 45,
694
694
  minHeight: 77,
695
695
  alignSelf: 'stretch',
@@ -49,7 +49,7 @@ const NavigationItem = ({ iconName, label, variant = 'default', size = 'medium',
49
49
  case 'small':
50
50
  return 16;
51
51
  case 'large':
52
- return 28;
52
+ return 20;
53
53
  default:
54
54
  return 20;
55
55
  }
@@ -246,10 +246,10 @@ const styles = StyleSheet.create({
246
246
  marginRight: 12,
247
247
  },
248
248
  iconContainerLarge: {
249
- width: 48,
250
- height: 48,
251
- borderRadius: 12,
252
- marginRight: 16,
249
+ width: 40,
250
+ height: 40,
251
+ borderRadius: 6,
252
+ marginRight: 12,
253
253
  },
254
254
  // Icon Container Variants
255
255
  iconContainerDefault: {
@@ -262,9 +262,9 @@ const styles = StyleSheet.create({
262
262
  backgroundColor: '#F3F4F6',
263
263
  },
264
264
  iconContainerExpanded: {
265
- width: 48,
266
- height: 48,
267
- borderRadius: 12,
265
+ width: 40,
266
+ height: 40,
267
+ borderRadius: 6,
268
268
  },
269
269
  iconContainerHidden: {
270
270
  width: 0,
@@ -15,9 +15,9 @@ showLegend = false, }) => {
15
15
  if (data && Array.isArray(data)) {
16
16
  // Pegar a configuração de tamanho para alinhar a legenda
17
17
  const tempSizeConfig = {
18
- small: { width: 200 },
19
- medium: { width: 300 },
20
- large: { width: 400 }
18
+ small: { width: '100%' },
19
+ medium: { width: '100%' },
20
+ large: { width: '100%' }
21
21
  };
22
22
  const tempConfig = tempSizeConfig[size] || tempSizeConfig.medium;
23
23
  return (<View style={[styles.multiContainer, style]}>
@@ -42,19 +42,19 @@ showLegend = false, }) => {
42
42
  // Configurações de tamanho
43
43
  const sizeConfig = {
44
44
  small: {
45
- width: 200,
45
+ width: '100%',
46
46
  fontSize: 12,
47
47
  titleSize: 12, // Mesmo tamanho da legenda
48
48
  barHeight: 6,
49
49
  },
50
50
  medium: {
51
- width: 300,
51
+ width: '100%',
52
52
  fontSize: 12, // Mesmo tamanho da legenda
53
53
  titleSize: 12, // Mesmo tamanho da legenda
54
54
  barHeight: 8,
55
55
  },
56
56
  large: {
57
- width: 400,
57
+ width: '100%',
58
58
  fontSize: 14, // Mesmo tamanho da legenda
59
59
  titleSize: 14, // Mesmo tamanho da legenda
60
60
  barHeight: 10,
@@ -94,7 +94,7 @@ const ShuffleItem = ({ title = 'Nome da Ferramenta', subtitle = 'Lorem Máxima L
94
94
  {disableRowSwipe ? (<View />) : (<View style={styles.deleteBackground}>
95
95
  <View style={styles.deleteAction}>
96
96
  <TouchableOpacity style={styles.deleteButton} onPress={handleDeletePress} disabled={!isSwipedLeft} activeOpacity={0.7}>
97
- <Icon name="delete-bin-line" size={24} color="#FFFFFF"/>
97
+ <Icon name="delete-bin-line" size={20} color="#FFFFFF"/>
98
98
  </TouchableOpacity>
99
99
  </View>
100
100
  </View>)}
@@ -119,62 +119,62 @@ const ShuffleItem = ({ title = 'Nome da Ferramenta', subtitle = 'Lorem Máxima L
119
119
  borderColor: pinned ? '#E8EDFD' : '#E6EAFF',
120
120
  }
121
121
  ]}>
122
- {/* Conteúdo do Card */}
123
- {!showAddButton && (<TouchableOpacity style={styles.dragHandle} {...(dragHandleProps || {})} hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}>
124
- <View style={{ flexDirection: 'row', marginBottom: -10 }}>
125
- <View style={{ marginRight: 4 }}>
126
- {[...Array(3)].map((_, index) => (<View key={`left-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]}/>))}
122
+ {/* Conteúdo do Card */}
123
+ {!showAddButton && (<TouchableOpacity style={styles.dragHandle} {...(dragHandleProps || {})} hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}>
124
+ <View style={{ flexDirection: 'row', marginBottom: -10 }}>
125
+ <View style={{ marginRight: 4 }}>
126
+ {[...Array(3)].map((_, index) => (<View key={`left-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]}/>))}
127
+ </View>
128
+ <View>
129
+ {[...Array(3)].map((_, index) => (<View key={`right-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]}/>))}
130
+ </View>
127
131
  </View>
128
- <View>
129
- {[...Array(3)].map((_, index) => (<View key={`right-${index}`} style={[styles.dragDot, (isDimmed || pinned) && { backgroundColor: '#E2E9FC' }]}/>))}
130
- </View>
131
- </View>
132
- </TouchableOpacity>)}
133
- {showAddButton && (<View style={styles.dragAreaForAddButton}/>)}
134
- <TouchableOpacity style={styles.content} onPress={onPress} activeOpacity={0.7}>
135
- {!showAddButton && (iconContainerColor ? (<View style={[styles.iconContainer, { backgroundColor: iconContainerColor, opacity: iconOpacity }]}>
136
- <Icon name={icon} size={24} color={iconColor} style={styles.contentIcon}/>
137
- </View>) : (<Icon name={icon} size={24} color={getActionIconColor()} style={[styles.contentIcon, { opacity: iconOpacity }]}/>))}
132
+ </TouchableOpacity>)}
133
+ {showAddButton && (<View style={styles.dragAreaForAddButton}/>)}
134
+ <TouchableOpacity style={styles.content} onPress={onPress} activeOpacity={0.7}>
135
+ {!showAddButton && (iconContainerColor ? (<View style={[styles.iconContainer, { backgroundColor: iconContainerColor, opacity: iconOpacity }]}>
136
+ <Icon name={icon} size={20} color={iconColor} style={styles.contentIcon}/>
137
+ </View>) : (<Icon name={icon} size={20} color={getActionIconColor()} style={[styles.contentIcon, { opacity: iconOpacity }]}/>))}
138
138
 
139
- <View style={styles.textContainer}>
140
- <SEText type="ns-heading-5" color={getTextColor()} numberOfLines={2} ellipsizeMode="tail" style={styles.title}>
141
- {title}
142
- </SEText>
143
- {/* Subtitle removed per request: always show only the title */}
144
- </View>
145
- </TouchableOpacity>
139
+ <View style={styles.textContainer}>
140
+ <SEText type="ns-heading-5" color={getTextColor()} numberOfLines={2} ellipsizeMode="tail" style={styles.title}>
141
+ {title}
142
+ </SEText>
143
+ {/* Subtitle removed per request: always show only the title */}
144
+ </View>
145
+ </TouchableOpacity>
146
146
 
147
- {showDropdown && (<TouchableOpacity style={[
147
+ {showDropdown && (<TouchableOpacity style={[
148
148
  styles.actionButton,
149
149
  showAddButton && { marginRight: 16 }
150
150
  ]} onPress={handleDropdownPress}>
151
- <Icon name={isExpanded ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={24} color="#1B244B"/>
152
- </TouchableOpacity>)}
151
+ <Icon name={isExpanded ? 'arrow-up-s-line' : 'arrow-down-s-line'} size={20} color="#1B244B"/>
152
+ </TouchableOpacity>)}
153
153
 
154
- {pinned && (<View style={[styles.actionButton, { marginRight: 0, opacity: 0.5 }]}>
155
- <Icon name="pushpin-line" size={20} color="#96A1C1"/>
156
- </View>)}
154
+ {pinned && (<View style={[styles.actionButton, { marginRight: 0, opacity: 0.5 }]}>
155
+ <Icon name="pushpin-line" size={20} color="#96A1C1"/>
156
+ </View>)}
157
157
 
158
- {showMoveButtons && !showAddButton && (<View style={styles.moveButtons}>
159
- <TouchableOpacity style={styles.actionButtonBoxDown} onPress={canMoveDown ? onMoveDown : undefined} disabled={!canMoveDown} activeOpacity={canMoveDown ? 0.7 : 1} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
160
- <Icon name="arrow-right-line" size={20} color={canMoveDown ? getActionIconColor() : '#96A1C1'} style={{ transform: [{ rotate: '90deg' }] }}/>
161
- </TouchableOpacity>
158
+ {showMoveButtons && !showAddButton && (<View style={styles.moveButtons}>
159
+ <TouchableOpacity style={styles.actionButtonBoxDown} onPress={canMoveDown ? onMoveDown : undefined} disabled={!canMoveDown} activeOpacity={canMoveDown ? 0.7 : 1} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
160
+ <Icon name="arrow-right-line" size={20} color={canMoveDown ? getActionIconColor() : '#96A1C1'} style={{ transform: [{ rotate: '90deg' }] }}/>
161
+ </TouchableOpacity>
162
162
 
163
- <TouchableOpacity style={styles.actionButtonBoxUp} onPress={canMoveUp ? onMoveUp : undefined} disabled={!canMoveUp} activeOpacity={canMoveUp ? 0.7 : 1} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
164
- <Icon name="arrow-right-line" size={20} color={canMoveUp ? getActionIconColor() : '#96A1C1'} style={{ transform: [{ rotate: '-90deg' }] }}/>
165
- </TouchableOpacity>
166
- </View>)}
163
+ <TouchableOpacity style={styles.actionButtonBoxUp} onPress={canMoveUp ? onMoveUp : undefined} disabled={!canMoveUp} activeOpacity={canMoveUp ? 0.7 : 1} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
164
+ <Icon name="arrow-right-line" size={20} color={canMoveUp ? getActionIconColor() : '#96A1C1'} style={{ transform: [{ rotate: '-90deg' }] }}/>
165
+ </TouchableOpacity>
166
+ </View>)}
167
167
 
168
- {showAddButton && (<TouchableOpacity style={[
168
+ {showAddButton && (<TouchableOpacity style={[
169
169
  styles.addButton,
170
170
  { borderBottomRightRadius: (isExpanded && expandedCard) ? 0 : 8 }
171
171
  ]} onPress={onAddPress} activeOpacity={0.7}>
172
- <Icon name="add-line" size={24} color="#FFFFFF"/>
173
- </TouchableOpacity>)}
172
+ <Icon name="add-line" size={20} color="#FFFFFF"/>
173
+ </TouchableOpacity>)}
174
174
 
175
- {variant === 'destructive' && (<TouchableOpacity style={styles.actionButton}>
176
- <Icon name="close-line" size={20} color="#FFFFFF"/>
177
- </TouchableOpacity>)}
175
+ {variant === 'destructive' && (<TouchableOpacity style={styles.actionButton}>
176
+ <Icon name="close-line" size={20} color="#FFFFFF"/>
177
+ </TouchableOpacity>)}
178
178
  </View>
179
179
  </SwipeRow>
180
180
 
@@ -303,10 +303,10 @@ const styles = StyleSheet.create({
303
303
  marginRight: 12,
304
304
  },
305
305
  iconContainer: {
306
- paddingLeft: 11,
307
- width: 32,
308
- height: 32,
309
- borderRadius: 8,
306
+ paddingLeft: 0,
307
+ width: 40,
308
+ height: 40,
309
+ borderRadius: 6,
310
310
  justifyContent: 'center',
311
311
  alignItems: 'center',
312
312
  marginRight: 12,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
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",