vpt-sebraeds 0.0.32 → 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
@@ -17,7 +17,9 @@ const Select = ({
17
17
  supportText,
18
18
  variant = "default",
19
19
  displayMode,
20
- innerTitle
20
+ innerTitle,
21
+ showCloseButton = false,
22
+ itemGap = 0
21
23
  }) => {
22
24
  const [isOpen, setIsOpen] = useState(false);
23
25
  const [selectedOption, setSelectedOption] = useState(value || null);
@@ -40,7 +42,7 @@ const Select = ({
40
42
  // setSelectedOption(option.map(option => option.value));
41
43
  setSelectedOption(option.value);
42
44
  setIsOpen(false);
43
-
45
+
44
46
  // Compatibilidade com ambas as props
45
47
  if (onSelect) {
46
48
  onSelect(option);
@@ -52,7 +54,7 @@ const Select = ({
52
54
 
53
55
  const getContainerStyle = () => {
54
56
  const baseStyle = variant === "inverse" ? styles.containerInverse : styles.container;
55
-
57
+
56
58
  if (disabled) return [baseStyle, variant === "inverse" ? styles.containerInverseDisabled : styles.containerDisabled];
57
59
  if (error) return [baseStyle, variant === "inverse" ? styles.containerInverseError : styles.containerError];
58
60
  if (success) return [baseStyle, variant === "inverse" ? styles.containerInverseSuccess : styles.containerSuccess];
@@ -62,7 +64,7 @@ const Select = ({
62
64
 
63
65
  const getLabelStyle = () => {
64
66
  const baseStyle = variant === "inverse" ? styles.labelInverse : styles.label;
65
-
67
+
66
68
  if (disabled) return [baseStyle, variant === "inverse" ? styles.labelInverseDisabled : styles.labelDisabled];
67
69
  if (error) return [baseStyle, variant === "inverse" ? styles.labelInverseError : styles.labelError];
68
70
  if (success) return [baseStyle, variant === "inverse" ? styles.labelInverseSuccess : styles.labelSuccess];
@@ -71,7 +73,7 @@ const Select = ({
71
73
 
72
74
  const getTextStyle = () => {
73
75
  const baseStyle = variant === "inverse" ? styles.textInverse : styles.text;
74
-
76
+
75
77
  if (disabled) return [baseStyle, variant === "inverse" ? styles.textInverseDisabled : styles.textDisabled];
76
78
  if (error) return [baseStyle, variant === "inverse" ? styles.textInverseError : styles.textError];
77
79
  if (success) return [baseStyle, variant === "inverse" ? styles.textInverseSuccess : styles.textSuccess];
@@ -80,7 +82,7 @@ const Select = ({
80
82
 
81
83
  const getSupportTextStyle = () => {
82
84
  const baseStyle = variant === "inverse" ? styles.supportTextInverse : styles.supportText;
83
-
85
+
84
86
  if (error) return [baseStyle, variant === "inverse" ? styles.supportTextInverseError : styles.supportTextError];
85
87
  if (success) return [baseStyle, variant === "inverse" ? styles.supportTextInverseSuccess : styles.supportTextSuccess];
86
88
  return baseStyle;
@@ -93,7 +95,7 @@ const Select = ({
93
95
  if (success) return '#52C41A';
94
96
  return '#FFFFFF';
95
97
  }
96
-
98
+
97
99
  if (disabled) return '#BFBFBF';
98
100
  if (error) return '#FF4D4F';
99
101
  if (success) return '#52C41A';
@@ -105,7 +107,7 @@ const Select = ({
105
107
  return (
106
108
  <View style={wrapperStyle}>
107
109
  {label && <SEText type="ns-sm-body" style={getLabelStyle()}>{label}</SEText>}
108
-
110
+
109
111
  <View style={styles.selectContainer}>
110
112
  <TouchableOpacity
111
113
  style={getContainerStyle()}
@@ -122,30 +124,32 @@ const Select = ({
122
124
  ellipsizeMode="tail"
123
125
  >
124
126
  {selectedOption ? (
125
- selectedOption.label ||
127
+ selectedOption.label ||
126
128
  selectedOption
127
129
  ) : placeholder}
128
130
  </SEText>
129
-
131
+
130
132
  <Icon
131
- name={isOpen ? "arrow-up-s-line" : "arrow-down-s-line"}
133
+ name={isOpen ? "arrow-up-s-line" : "arrow-down-s-line"}
132
134
  size={20}
133
- color={getIconColor()}
135
+ color={getIconColor()}
134
136
  />
135
137
  </TouchableOpacity>
136
138
 
137
- <Dropdown
139
+ <Dropdown
138
140
  title={innerTitle}
139
- options={options}
140
- isOpen={isOpen}
141
- setIsOpen={setIsOpen}
141
+ options={options}
142
+ isOpen={isOpen}
143
+ setIsOpen={setIsOpen}
142
144
  onSelect={handleSelect}
143
145
  displayMode={displayMode}
144
146
  selectedValue={selectedOption}
147
+ showCloseButton={showCloseButton}
148
+ itemGap={itemGap}
145
149
  />
146
150
  </View>
147
151
 
148
- {supportText && <SEText type="ns-xs-body" style={getSupportTextStyle()}>{supportText}</SEText>}
152
+ {supportText && <SEText type="ns-xs-body" style={getSupportTextStyle()}>{supportText}</SEText>}
149
153
  </View>
150
154
  );
151
155
  };
@@ -163,7 +167,7 @@ const styles = StyleSheet.create({
163
167
  position: 'relative',
164
168
  zIndex: 1000,
165
169
  },
166
-
170
+
167
171
  // DEFAULT VARIANT STYLES
168
172
  container: {
169
173
  flexDirection: 'row',
@@ -192,7 +196,7 @@ const styles = StyleSheet.create({
192
196
  borderColor: '#E6EEFF',
193
197
  backgroundColor: '#F5F5F5',
194
198
  },
195
-
199
+
196
200
  // INVERSE VARIANT STYLES
197
201
  containerInverse: {
198
202
  flexDirection: 'row',
@@ -222,7 +226,7 @@ const styles = StyleSheet.create({
222
226
  borderColor: 'rgba(255, 255, 255, 0.1)',
223
227
  backgroundColor: 'rgba(255, 255, 255, 0.05)',
224
228
  },
225
-
229
+
226
230
  // LABEL STYLES
227
231
  label: {
228
232
  fontSize: 18,
@@ -251,7 +255,7 @@ const styles = StyleSheet.create({
251
255
  labelInverseDisabled: {
252
256
  color: 'rgba(255, 255, 255, 0.4)',
253
257
  },
254
-
258
+
255
259
  // TEXT STYLES
256
260
  text: {
257
261
  flex: 1,
@@ -282,7 +286,7 @@ const styles = StyleSheet.create({
282
286
  textInverseDisabled: {
283
287
  color: 'rgba(255, 255, 255, 0.4)',
284
288
  },
285
-
289
+
286
290
  // PLACEHOLDER STYLES
287
291
  placeholderText: {
288
292
  color: '#BFBFBF',
@@ -290,12 +294,12 @@ const styles = StyleSheet.create({
290
294
  placeholderTextInverse: {
291
295
  color: 'rgba(255, 255, 255, 0.6)',
292
296
  },
293
-
297
+
294
298
  // SUPPORT TEXT STYLES
295
299
  supportText: {
296
300
  fontSize: 12,
297
301
  color: '#4F7CFE',
298
-
302
+
299
303
  },
300
304
  supportTextError: {
301
305
  color: '#FF4D4F',
@@ -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',
@@ -12,7 +12,9 @@ const Table = ({
12
12
  onFilterChange,
13
13
  selectedRowIndex = null,
14
14
  onRowPress,
15
- hideUnavailableStatus = false
15
+ hideUnavailableStatus = false,
16
+ statusDropdownShowCloseButton = false,
17
+ statusDropdownItemGap = 0
16
18
  }) => {
17
19
  const [selectedYear, setSelectedYear] = useState(null);
18
20
  const [selectedStatuses, setSelectedStatuses] = useState([]);
@@ -249,6 +251,8 @@ const Table = ({
249
251
  options={statusOptions}
250
252
  placeholder="Selecione o status"
251
253
  innerTitle="Escolha qual status exibir:"
254
+ showCloseButton={statusDropdownShowCloseButton}
255
+ itemGap={statusDropdownItemGap}
252
256
  />
253
257
  </View>
254
258
  </View>
@@ -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,
@@ -1,5 +1,5 @@
1
1
  export default Select;
2
- declare function Select({ label, placeholder, value, onSelect, onValueChange, options, error, success, disabled, supportText, variant, displayMode, innerTitle }: {
2
+ declare function Select({ label, placeholder, value, onSelect, onValueChange, options, error, success, disabled, supportText, variant, displayMode, innerTitle, showCloseButton, itemGap }: {
3
3
  label: any;
4
4
  placeholder?: string | undefined;
5
5
  value: any;
@@ -13,6 +13,8 @@ declare function Select({ label, placeholder, value, onSelect, onValueChange, op
13
13
  variant?: string | undefined;
14
14
  displayMode: any;
15
15
  innerTitle: any;
16
+ showCloseButton?: boolean | undefined;
17
+ itemGap?: number | undefined;
16
18
  }): React.JSX.Element;
17
19
  import React from 'react';
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;sBAgJC;kBAtJ0C,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;sBAoJC;kBA1J0C,OAAO"}
@@ -4,7 +4,7 @@ import { SEText } from 'vpt-sebraeds';
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
7
- options = [], error, success, disabled, supportText, variant = "default", displayMode, innerTitle }) => {
7
+ options = [], error, success, disabled, supportText, variant = "default", displayMode, innerTitle, showCloseButton = false, itemGap = 0 }) => {
8
8
  const [isOpen, setIsOpen] = useState(false);
9
9
  const [selectedOption, setSelectedOption] = useState(value || null);
10
10
  useEffect(() => {
@@ -91,7 +91,7 @@ options = [], error, success, disabled, supportText, variant = "default", displa
91
91
  const wrapperStyle = variant === "inverse" ? styles.wrapperInverse : styles.wrapper;
92
92
  return (<View style={wrapperStyle}>
93
93
  {label && <SEText type="ns-sm-body" style={getLabelStyle()}>{label}</SEText>}
94
-
94
+
95
95
  <View style={styles.selectContainer}>
96
96
  <TouchableOpacity style={getContainerStyle()} onPress={toggleDropdown} activeOpacity={disabled ? 1 : 0.7}>
97
97
  <SEText type="ns-sm-body" style={[
@@ -101,14 +101,14 @@ options = [], error, success, disabled, supportText, variant = "default", displa
101
101
  {selectedOption ? (selectedOption.label ||
102
102
  selectedOption) : placeholder}
103
103
  </SEText>
104
-
104
+
105
105
  <Icon name={isOpen ? "arrow-up-s-line" : "arrow-down-s-line"} size={20} color={getIconColor()}/>
106
106
  </TouchableOpacity>
107
107
 
108
- <Dropdown title={innerTitle} options={options} isOpen={isOpen} setIsOpen={setIsOpen} onSelect={handleSelect} displayMode={displayMode} selectedValue={selectedOption}/>
108
+ <Dropdown title={innerTitle} options={options} isOpen={isOpen} setIsOpen={setIsOpen} onSelect={handleSelect} displayMode={displayMode} selectedValue={selectedOption} showCloseButton={showCloseButton} itemGap={itemGap}/>
109
109
  </View>
110
110
 
111
- {supportText && <SEText type="ns-xs-body" style={getSupportTextStyle()}>{supportText}</SEText>}
111
+ {supportText && <SEText type="ns-xs-body" style={getSupportTextStyle()}>{supportText}</SEText>}
112
112
  </View>);
113
113
  };
114
114
  const styles = StyleSheet.create({
@@ -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,
@@ -1,5 +1,5 @@
1
1
  export default Table;
2
- declare function Table({ data, showMoreComponent, showFilters, onFilterChange, selectedRowIndex, onRowPress, hideUnavailableStatus }: {
2
+ declare function Table({ data, showMoreComponent, showFilters, onFilterChange, selectedRowIndex, onRowPress, hideUnavailableStatus, statusDropdownShowCloseButton, statusDropdownItemGap }: {
3
3
  data?: never[] | undefined;
4
4
  showMoreComponent: any;
5
5
  showFilters?: boolean | undefined;
@@ -7,6 +7,8 @@ declare function Table({ data, showMoreComponent, showFilters, onFilterChange, s
7
7
  selectedRowIndex?: null | undefined;
8
8
  onRowPress: any;
9
9
  hideUnavailableStatus?: boolean | undefined;
10
+ statusDropdownShowCloseButton?: boolean | undefined;
11
+ statusDropdownItemGap?: number | undefined;
10
12
  }): React.JSX.Element;
11
13
  import React from 'react';
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Table/index.jsx"],"names":[],"mappings":";AAOA;;;;;;;;sBAoUC;kBA3UsE,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Table/index.jsx"],"names":[],"mappings":";AAOA;;;;;;;;;;sBAwUC;kBA/UsE,OAAO"}
@@ -4,7 +4,7 @@ import moment from 'moment';
4
4
  import Icon from '../Icon';
5
5
  import Select from '../Select';
6
6
  import { SEText } from 'vpt-sebraeds';
7
- const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChange, selectedRowIndex = null, onRowPress, hideUnavailableStatus = false }) => {
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([]);
10
10
  const [selectedFilter, setSelectedFilter] = useState({});
@@ -198,7 +198,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
198
198
  .filter(option => selectedStatuses.includes(option.value))
199
199
  .map(option => option.value)
200
200
  .join(', ')
201
- .toLowerCase()} onSelect={handleStatusChange} options={statusOptions} placeholder="Selecione o status" innerTitle="Escolha qual status exibir:"/>
201
+ .toLowerCase()} onSelect={handleStatusChange} options={statusOptions} placeholder="Selecione o status" innerTitle="Escolha qual status exibir:" showCloseButton={statusDropdownShowCloseButton} itemGap={statusDropdownItemGap}/>
202
202
  </View>
203
203
  </View>)}
204
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.32",
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",