vpt-sebraeds 0.0.2 → 0.0.3

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.
Files changed (51) hide show
  1. package/assets/Vector.png +0 -0
  2. package/assets/edit-icon.png +0 -0
  3. package/components/BottomSheet/index.jsx +44 -26
  4. package/components/Button/index.jsx +37 -152
  5. package/components/FilterableMultiSelect/index.jsx +25 -14
  6. package/components/MenuAccordion/index.jsx +1 -1
  7. package/components/NavigationItem/index.tsx +498 -478
  8. package/components/SEIcon/index.js +30 -0
  9. package/components/SEText/index.js +160 -0
  10. package/components/SEText/styles.js +333 -0
  11. package/components/ShuffleItem/index.jsx +321 -325
  12. package/components/TaskCard/components/EditIcon.jsx +1 -1
  13. package/components/styles/colors.js +204 -0
  14. package/components/styles/fonts.js +15 -0
  15. package/components/styles/index,js +6 -0
  16. package/components/styles/metrics.js +13 -0
  17. package/dist/components/BottomSheet/index.d.ts +3 -1
  18. package/dist/components/BottomSheet/index.d.ts.map +1 -1
  19. package/dist/components/BottomSheet/index.js +39 -19
  20. package/dist/components/Button/index.d.ts +1 -11
  21. package/dist/components/Button/index.d.ts.map +1 -1
  22. package/dist/components/Button/index.js +37 -146
  23. package/dist/components/FilterableMultiSelect/index.d.ts.map +1 -1
  24. package/dist/components/FilterableMultiSelect/index.js +23 -14
  25. package/dist/components/MenuAccordion/index.js +1 -1
  26. package/dist/components/NavigationItem/index.d.ts +4 -4
  27. package/dist/components/NavigationItem/index.d.ts.map +1 -1
  28. package/dist/components/NavigationItem/index.js +58 -49
  29. package/dist/components/SEIcon/index.d.ts +18 -0
  30. package/dist/components/SEIcon/index.d.ts.map +1 -0
  31. package/dist/components/SEIcon/index.js +18 -0
  32. package/dist/components/SEText/index.d.ts +58 -0
  33. package/dist/components/SEText/index.d.ts.map +1 -0
  34. package/dist/components/SEText/index.js +118 -0
  35. package/dist/components/SEText/styles.d.ts +429 -0
  36. package/dist/components/SEText/styles.d.ts.map +1 -0
  37. package/dist/components/SEText/styles.js +321 -0
  38. package/dist/components/ShuffleItem/index.d.ts +3 -1
  39. package/dist/components/ShuffleItem/index.d.ts.map +1 -1
  40. package/dist/components/ShuffleItem/index.js +243 -289
  41. package/dist/components/TaskCard/components/EditIcon.js +1 -1
  42. package/dist/components/styles/colors.d.ts +182 -0
  43. package/dist/components/styles/colors.d.ts.map +1 -0
  44. package/dist/components/styles/colors.js +180 -0
  45. package/dist/components/styles/fonts.d.ts +15 -0
  46. package/dist/components/styles/fonts.d.ts.map +1 -0
  47. package/dist/components/styles/fonts.js +14 -0
  48. package/dist/components/styles/metrics.d.ts +10 -0
  49. package/dist/components/styles/metrics.d.ts.map +1 -0
  50. package/dist/components/styles/metrics.js +11 -0
  51. package/package.json +3 -2
@@ -1,501 +1,521 @@
1
1
  import React from 'react';
2
2
  import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
3
3
  import Icon from '../Icon';
4
+ import SEText from '../SEText';
4
5
 
5
6
  interface NavigationItemProps {
6
- iconName: string;
7
- label: string;
8
- variant?: 'default' | 'selected' | 'disabled';
9
- size?: 'small' | 'medium' | 'large';
10
- onPress?: () => void;
11
- style?: any;
12
- iconColor?: string;
13
- textColor?: string;
14
- backgroundColor?: string;
15
- borderColor?: string;
16
- showArrow?: boolean;
17
- badge?: string | number;
18
- badgeStyle?: 'standard' | 'rounded'; // Suporte para diferentes estilos de badge
19
- description?: string; // Texto descritivo adicional
20
- layout?: 'standard' | 'expanded'; // Layout padrão ou expandido com descrição
21
- iconBackgroundColor?: string; // Cor de fundo personalizada para o ícone
7
+ iconName: any;
8
+ label: string;
9
+ variant?: 'default' | 'selected' | 'disabled';
10
+ size?: 'small' | 'medium' | 'large';
11
+ onPress?: () => void;
12
+ style?: any;
13
+ iconColor?: string;
14
+ textColor?: string;
15
+ backgroundColor?: string;
16
+ borderColor?: string;
17
+ showArrow?: boolean;
18
+ badge?: number | string;
19
+ badgeStyle?: 'standard' | string;
20
+ description?: string;
21
+ layout?: 'standard' | 'expanded' | 'list';
22
+ iconBackgroundColor?: string;
22
23
  }
23
24
 
24
25
  const NavigationItem: React.FC<NavigationItemProps> = ({
25
- iconName,
26
- label,
27
- variant = 'default',
28
- size = 'medium',
29
- onPress,
30
- style,
31
- iconColor,
32
- textColor,
33
- backgroundColor,
34
- borderColor,
35
- showArrow = true,
36
- badge,
37
- badgeStyle = 'standard', // Padrão é o standard (cantos específicos)
38
- description,
39
- layout = 'standard', // Por padrão, o layout é o padrão sem descrição
40
- iconBackgroundColor,
26
+ iconName,
27
+ label,
28
+ variant = 'default',
29
+ size = 'medium',
30
+ onPress,
31
+ style,
32
+ iconColor,
33
+ textColor,
34
+ backgroundColor,
35
+ borderColor,
36
+ showArrow = true,
37
+ badge,
38
+ badgeStyle = 'standard', // Suporte para diferentes estilos de badge
39
+ description, // Texto descritivo adicional
40
+ layout = 'standard', // 'standard' | 'expanded' | 'list'
41
+ iconBackgroundColor, // Cor de fundo personalizada para o ícone
41
42
  }) => {
42
- // Estilos dinâmicos baseados nas props
43
- const containerStyle = [
44
- styles.container,
45
- size === 'small' ? styles.containerSmall : size === 'large' ? styles.containerLarge : styles.containerMedium,
46
- variant === 'selected' ? styles.containerSelected : variant === 'disabled' ? styles.containerDisabled : styles.containerDefault,
47
- layout === 'expanded' && styles.containerExpanded,
48
- backgroundColor && { backgroundColor },
49
- borderColor && { borderColor },
50
- style,
51
- ];
52
-
53
- const iconContainerStyle = [
54
- styles.iconContainer,
55
- size === 'small' ? styles.iconContainerSmall : size === 'large' ? styles.iconContainerLarge : styles.iconContainerMedium,
56
- variant === 'selected' ? styles.iconContainerSelected : variant === 'disabled' ? styles.iconContainerDisabled : styles.iconContainerDefault,
57
- layout === 'expanded' && styles.iconContainerExpanded,
58
- iconBackgroundColor && { backgroundColor: iconBackgroundColor },
59
- ];
60
-
61
- const labelStyle = [
62
- styles.label,
63
- size === 'small' ? styles.labelSmall : size === 'large' ? styles.labelLarge : styles.labelMedium,
64
- variant === 'selected' ? styles.labelSelected : variant === 'disabled' ? styles.labelDisabled : styles.labelDefault,
65
- textColor && { color: textColor },
66
- ];
67
-
68
- const getIconColor = () => {
69
- if (iconColor) return iconColor;
70
- switch (variant) {
71
- case 'selected':
72
- return '#4F7CFE';
73
- case 'disabled':
74
- return '#9CA3AF';
75
- default:
76
- return '#4F7CFE';
77
- }
78
- };
79
-
80
- const getIconSize = () => {
81
- switch (size) {
82
- case 'small':
83
- return 16;
84
- case 'large':
85
- return 28;
86
- default:
87
- return 20;
88
- }
89
- };
90
-
91
- const getArrowColor = () => {
92
- switch (variant) {
93
- case 'selected':
94
- return '#1B244B';
95
- case 'disabled':
96
- return '#9CA3AF';
97
- default:
98
- return '#1B244B'; // Cor padrão do Figma
99
- }
100
- };
101
-
102
- const getArrowSize = () => {
103
- switch (size) {
104
- case 'small':
105
- return 11; // Proporcionalmente menor que 13.33
106
- case 'large':
107
- return 16; // Proporcionalmente maior que 13.33
108
- default:
109
- return 13.33; // Tamanho exato do Figma
110
- }
111
- };
112
-
113
- const getBadgeStyle = () => {
114
- // Define o estilo base com tamanho e características básicas
115
- const baseStyle = {
116
- ...styles.figmaBadge,
117
- ...getBadgeSize(),
118
- };
119
-
120
- // Define o estilo da variante
121
- let variantStyle;
122
- switch (variant) {
123
- case 'selected':
124
- variantStyle = styles.figmaBadgeSelected;
125
- break;
126
- case 'disabled':
127
- variantStyle = styles.figmaBadgeDisabled;
128
- break;
129
- default:
130
- variantStyle = styles.figmaBadgeDefault;
131
- break;
132
- }
133
-
134
- // Aplica os estilos de border radius por último para garantir que não sejam sobrescritos
135
- if (badgeStyle === 'rounded') {
136
- return [baseStyle, variantStyle, styles.figmaBadgeRounded];
137
- } else {
138
- return [baseStyle, variantStyle];
139
- }
140
- };
141
-
142
- const getBadgeSize = () => {
143
- switch (size) {
144
- case 'small':
145
- return { minWidth: 48, height: 16 }; // Proporcionalmente menor
146
- case 'large':
147
- return { minWidth: 64, height: 24 }; // Proporcionalmente maior
148
- default:
149
- return { minWidth: 56, height: 20 }; // Tamanho exato do Figma
150
- }
151
- };
43
+ // Estilos dinâmicos baseados nas props
44
+ const containerStyle = [
45
+ styles.container,
46
+ size === 'small' ? styles.containerSmall : size === 'large' ? styles.containerLarge : styles.containerMedium,
47
+ variant === 'selected' ? styles.containerSelected : variant === 'disabled' ? styles.containerDisabled : styles.containerDefault,
48
+ layout === 'expanded' && styles.containerExpanded,
49
+ layout === 'list' && styles.containerList,
50
+ backgroundColor && { backgroundColor },
51
+ borderColor && { borderColor },
52
+ variant === 'selected' && { borderWidth: 2 },
53
+ style,
54
+ ];
55
+
56
+ const iconContainerStyle = [
57
+ styles.iconContainer,
58
+ size === 'small' ? styles.iconContainerSmall : size === 'large' ? styles.iconContainerLarge : styles.iconContainerMedium,
59
+ variant === 'selected' ? styles.iconContainerSelected : variant === 'disabled' ? styles.iconContainerDisabled : styles.iconContainerDefault,
60
+ layout === 'expanded' && styles.iconContainerExpanded,
61
+ layout === 'list' && styles.iconContainerHidden,
62
+ iconBackgroundColor && { backgroundColor: iconBackgroundColor },
63
+ ];
64
+
65
+ const labelStyle = [
66
+ styles.label,
67
+ size === 'small' ? styles.labelSmall : size === 'large' ? styles.labelLarge : styles.labelMedium,
68
+ variant === 'selected' ? styles.labelSelected : variant === 'disabled' ? styles.labelDisabled : styles.labelDefault,
69
+ textColor && { color: textColor },
70
+ ];
71
+
72
+ const getIconColor = () => {
73
+ if (iconColor) return iconColor;
74
+ switch (variant) {
75
+ case 'selected':
76
+ return '#4F7CFE';
77
+ case 'disabled':
78
+ return '#9CA3AF';
79
+ default:
80
+ return '#4F7CFE';
81
+ }
82
+ };
83
+
84
+ const getIconSize = () => {
85
+ switch (size) {
86
+ case 'small':
87
+ return 16;
88
+ case 'large':
89
+ return 28;
90
+ default:
91
+ return 20;
92
+ }
93
+ };
94
+
95
+ const getArrowColor = () => {
96
+ switch (variant) {
97
+ case 'selected':
98
+ return '#1B244B';
99
+ case 'disabled':
100
+ return '#9CA3AF';
101
+ default:
102
+ return '#1B244B'; // Cor padrão do Figma
103
+ }
104
+ };
105
+
106
+ const getArrowSize = () => {
107
+ switch (size) {
108
+ case 'small':
109
+ return 11; // Proporcionalmente menor que 13.33
110
+ case 'large':
111
+ return 16; // Proporcionalmente maior que 13.33
112
+ default:
113
+ return 13.33; // Tamanho exato do Figma
114
+ }
115
+ };
152
116
 
153
- const getBadgeTextSize = () => {
154
- switch (size) {
155
- case 'small':
156
- return { fontSize: 10, lineHeight: 14 };
157
- case 'large':
158
- return { fontSize: 14, lineHeight: 20 };
159
- default:
160
- return { fontSize: 12, lineHeight: 18 }; // Conforme Figma
161
- }
117
+ const getBadgeStyle = () => {
118
+ // Define o estilo base com tamanho e características básicas
119
+ const baseStyle = {
120
+ ...styles.figmaBadge,
121
+ ...getBadgeSize(),
162
122
  };
163
123
 
164
- const Content = (
165
- <>
166
- <View style={iconContainerStyle}>
167
- <Icon
168
- name={iconName as any}
169
- size={getIconSize()}
170
- color={getIconColor()}
171
- style={{}}
172
- />
173
- </View>
174
-
175
- {layout === 'expanded' && description ? (
176
- <View style={styles.textContainer}>
177
- <Text style={[styles.labelExpanded, variant === 'disabled' && { color: '#9CA3AF' }, textColor && { color: textColor }]} numberOfLines={1}>
178
- {label}
179
- </Text>
180
- <View style={styles.descriptionContainer}>
181
- <Text style={styles.description} numberOfLines={2}>
182
- {description}
183
- </Text>
184
- </View>
185
- </View>
186
- ) : (
187
- <Text style={labelStyle} numberOfLines={1}>
188
- {label}
189
- </Text>
190
- )}
191
-
192
- {showArrow && variant !== 'disabled' && (
193
- <View style={styles.arrowContainer}>
194
- <Icon
195
- name="arrow-right-line"
196
- size={getArrowSize()}
197
- color={getArrowColor()}
198
- style={{}}
199
- />
200
- </View>
201
- )}
202
-
203
- {/* Badge "Novo" posicionado no canto direito, interno ao container */}
204
- {badge && (
205
- <View style={getBadgeStyle()}>
206
- <Text style={[styles.figmaBadgeText, getBadgeTextSize()]}>{badge}</Text>
207
- </View>
208
- )}
209
- </>
210
- );
124
+ // Define o estilo da variante
125
+ let variantStyle;
126
+ switch (variant) {
127
+ case 'selected':
128
+ variantStyle = styles.figmaBadgeSelected;
129
+ break;
130
+ case 'disabled':
131
+ variantStyle = styles.figmaBadgeDisabled;
132
+ break;
133
+ default:
134
+ variantStyle = styles.figmaBadgeDefault;
135
+ break;
136
+ }
211
137
 
212
- if (onPress && variant !== 'disabled') {
213
- return (
214
- <TouchableOpacity
215
- style={containerStyle}
216
- activeOpacity={0.7}
217
- onPress={onPress}
218
- testID="navigation-item-touchable"
219
- >
220
- {Content}
221
- </TouchableOpacity>
222
- );
138
+ // Aplica os estilos de border radius por último para garantir que não sejam sobrescritos
139
+ if (badgeStyle === 'rounded') {
140
+ return [baseStyle, variantStyle, styles.figmaBadgeRounded];
141
+ } else {
142
+ return [baseStyle, variantStyle];
143
+ }
144
+ };
145
+
146
+ const getBadgeSize = () => {
147
+ switch (size) {
148
+ case 'small':
149
+ return { minWidth: 48, height: 16 }; // Proporcionalmente menor
150
+ case 'large':
151
+ return { minWidth: 64, height: 24 }; // Proporcionalmente maior
152
+ default:
153
+ return { minWidth: 56, height: 20 }; // Tamanho exato do Figma
154
+ }
155
+ };
156
+
157
+ const getBadgeTextSize = () => {
158
+ switch (size) {
159
+ case 'small':
160
+ return { fontSize: 10, lineHeight: 14 };
161
+ case 'large':
162
+ return { fontSize: 14, lineHeight: 20 };
163
+ default:
164
+ return { fontSize: 12, lineHeight: 18 }; // Conforme Figma
223
165
  }
166
+ };
167
+
168
+ const Content = (
169
+ <>
170
+ {layout !== 'list' && iconName && (
171
+ <View style={iconContainerStyle}>
172
+ <Icon
173
+ name={iconName}
174
+ size={getIconSize()}
175
+ color={getIconColor()}
176
+ style={{}}
177
+ />
178
+ </View>
179
+ )}
180
+
181
+ {layout === 'expanded' && description ? (
182
+ <View style={styles.textContainer}>
183
+ <Text style={[styles.labelExpanded, variant === 'disabled' && { color: '#9CA3AF' }, textColor && { color: textColor }]} numberOfLines={1}>
184
+ {label}
185
+ </Text>
186
+ <View style={styles.descriptionContainer}>
187
+ <Text style={styles.description} numberOfLines={2}>
188
+ {description}
189
+ </Text>
190
+ </View>
191
+ </View>
192
+ ) : (
193
+ layout === 'list' ? (
194
+ <SEText type={"ns-heading-4" as any} style={[{ flex: 1 }, textColor && { color: textColor }] as any} numberOfLines={1}>
195
+ {label}
196
+ </SEText>
197
+ ) : (
198
+ <Text style={labelStyle} numberOfLines={1}>
199
+ {label}
200
+ </Text>
201
+ )
202
+ )}
203
+
204
+ {showArrow && variant !== 'disabled' && (
205
+ <View style={styles.arrowContainer}>
206
+ <Icon
207
+ name={layout === 'list' ? 'arrow-right-s-line' : 'arrow-right-line'}
208
+ size={getArrowSize()}
209
+ color={getArrowColor()}
210
+ style={{}}
211
+ />
212
+ </View>
213
+ )}
224
214
 
225
- return (
226
- <View style={containerStyle}>
227
- {Content}
215
+ {/* Badge "Novo" posicionado no canto direito, interno ao container */}
216
+ {badge && (
217
+ <View style={getBadgeStyle()}>
218
+ <Text style={[styles.figmaBadgeText, getBadgeTextSize()]}>{badge}</Text>
228
219
  </View>
220
+ )}
221
+ </>
222
+ );
223
+
224
+ if (onPress && variant !== 'disabled') {
225
+ return (
226
+ <TouchableOpacity
227
+ style={containerStyle}
228
+ activeOpacity={0.7}
229
+ onPress={onPress}
230
+ testID="navigation-item-touchable"
231
+ >
232
+ {Content}
233
+ </TouchableOpacity>
229
234
  );
235
+ }
236
+
237
+ return (
238
+ <View style={containerStyle}>
239
+ {Content}
240
+ </View>
241
+ );
230
242
  };
231
243
 
232
244
  const styles = StyleSheet.create({
233
- // Container Base
234
- container: {
235
- flexDirection: 'row',
236
- alignItems: 'center',
237
- backgroundColor: '#FFFFFF',
238
- borderRadius: 12,
239
- borderWidth: 2, // borderWidth consistente em todos os estados
240
- borderColor: '#E5E7EB',
241
- paddingHorizontal: 16,
242
- paddingVertical: 12,
243
- position: 'relative',
244
- width: '100%', // Adicionado para garantir que o componente ocupe toda a largura disponível
245
- shadowColor: '#000',
246
- shadowOffset: {
247
- width: 0,
248
- height: 1,
249
- },
250
- shadowOpacity: 0.05,
251
- shadowRadius: 2,
252
- elevation: 1,
253
- },
254
-
255
- // Container Sizes
256
- containerSmall: {
257
- paddingHorizontal: 12,
258
- paddingVertical: 8,
259
- borderRadius: 8,
260
- },
261
- containerMedium: {
262
- paddingHorizontal: 16,
263
- paddingVertical: 12,
264
- borderRadius: 12,
265
- },
266
- containerLarge: {
267
- paddingHorizontal: 20,
268
- paddingVertical: 16,
269
- borderRadius: 16,
270
- },
271
-
272
- // Container Variants
273
- containerDefault: {
274
- backgroundColor: '#FFFFFF',
275
- borderColor: '#E5E7EB',
276
- borderWidth: 2, // Mesma borderWidth para evitar "salto"
277
- },
278
- containerSelected: {
279
- backgroundColor: '#FFFFFF',
280
- borderColor: '#4F7CFE',
281
- borderWidth: 2,
282
- shadowColor: '#4F7CFE',
283
- shadowOpacity: 0.15,
284
- shadowRadius: 4,
285
- elevation: 3,
286
- },
287
- containerDisabled: {
288
- backgroundColor: '#F9FAFB',
289
- borderColor: '#E5E7EB',
290
- borderWidth: 2, // Mesma borderWidth para evitar "salto"
291
- opacity: 0.6,
292
- },
293
- // Container expandido com descrição
294
- containerExpanded: {
295
- paddingTop: 16, // Padding superior menor para alinhar melhor
296
- paddingBottom: 20, // Padding inferior maior para dar espaço para a descrição
297
- minHeight: 110, // Altura maior para corresponder à imagem de referência
298
- },
299
-
300
- // Icon Container Base
301
- iconContainer: {
302
- alignItems: 'center',
303
- justifyContent: 'center',
304
- marginRight: 12,
305
- position: 'relative',
306
- },
307
-
308
- // Icon Container Sizes
309
- iconContainerSmall: {
310
- width: 32,
311
- height: 32,
312
- borderRadius: 8,
313
- marginRight: 8,
314
- },
315
- iconContainerMedium: {
316
- width: 40,
317
- height: 40,
318
- borderRadius: 10,
319
- marginRight: 12,
320
- },
321
- iconContainerLarge: {
322
- width: 48,
323
- height: 48,
324
- borderRadius: 12,
325
- marginRight: 16,
326
- },
327
-
328
- // Icon Container Variants
329
- iconContainerDefault: {
330
- backgroundColor: '#F0F4FF',
331
- },
332
- iconContainerSelected: {
333
- backgroundColor: '#F0F4FF',
334
- },
335
- iconContainerDisabled: {
336
- backgroundColor: '#F3F4F6',
337
- },
338
- iconContainerExpanded: {
339
- width: 48,
340
- height: 48,
341
- borderRadius: 12,
342
- alignSelf: 'flex-start', // Alinha o ícone com o topo
343
- },
344
-
345
- // Label Base
346
- label: {
347
- flex: 1,
348
- fontFamily: 'Nunito Sans',
349
- fontWeight: '600',
350
- flexShrink: 1, // Permite que o texto se compresse se necessário
351
- },
352
-
353
- // Label Sizes
354
- labelSmall: {
355
- fontSize: 12,
356
- lineHeight: 16,
357
- },
358
- labelMedium: {
359
- fontSize: 14,
360
- lineHeight: 18,
361
- },
362
- labelLarge: {
363
- fontSize: 16,
364
- lineHeight: 20,
365
- },
366
-
367
- // Estilo para o layout expandido
368
- textContainer: {
369
- flex: 1,
370
- flexDirection: 'column',
371
- justifyContent: 'flex-start', // Alinhamento no topo para o título alinhar com o ícone
372
- paddingTop: 2, // Pequeno ajuste para alinhar melhor com o ícone
373
- },
374
- labelExpanded: {
375
- fontSize: 16,
376
- lineHeight: 22,
377
- fontWeight: '600',
378
- // Removido marginBottom pois agora usamos descriptionContainer para espaçamento
379
- },
380
- descriptionContainer: {
381
- marginTop: 6, // Espaçamento entre o título e a descrição
382
- },
383
- description: {
384
- fontSize: 12,
385
- lineHeight: 18, // Aumentado para melhor legibilidade
386
- color: '#6B7280',
387
- fontFamily: 'Nunito Sans',
388
- fontWeight: '400',
389
- },
390
-
391
- // Label Variants
392
- labelDefault: {
393
- color: '#1B244B',
394
- },
395
- labelSelected: {
396
- color: '#1B244B',
397
- },
398
- labelDisabled: {
399
- color: '#9CA3AF',
400
- },
401
-
402
- // Arrow Container
403
- arrowContainer: {
404
- marginLeft: 8,
405
- alignItems: 'center',
406
- justifyContent: 'center',
407
- paddingTop: 3.52,
408
- paddingLeft: 3.33,
409
- },
410
-
411
- // Badge no canto superior direito - Estilo Figma (Especificações exatas)
412
- figmaBadge: {
413
- position: 'absolute',
414
- backgroundColor: '#1B244B', // Style: dark
415
- minWidth: 56, // Largura mínima do Figma
416
- height: 20, // Height do Figma
417
- paddingHorizontal: 8, // Adicionado para garantir espaçamento adequado do texto
418
- alignItems: 'center',
419
- justifyContent: 'center',
420
- zIndex: 10,
421
- },
422
- figmaBadgeDefault: {
423
- top: 0, // Grudado no topo
424
- right: 0, // Grudado na direita
425
- borderTopRightRadius: 6, // Canto superior direito
426
- borderBottomLeftRadius: 6, // Canto inferior esquerdo
427
- borderTopLeftRadius: 0,
428
- borderBottomRightRadius: 0,
429
- },
430
- figmaBadgeSelected: {
431
- top: 0, // Grudado no topo
432
- right: 0, // Grudado na direita
433
- borderTopRightRadius: 6, // Canto superior direito
434
- borderBottomLeftRadius: 6, // Canto inferior esquerdo
435
- borderTopLeftRadius: 0,
436
- borderBottomRightRadius: 0,
437
- },
438
- figmaBadgeDisabled: {
439
- top: 0, // Grudado no topo
440
- right: 0, // Grudado na direita
441
- borderTopRightRadius: 6, // Canto superior direito
442
- borderBottomLeftRadius: 6, // Canto inferior esquerdo
443
- borderTopLeftRadius: 0,
444
- borderBottomRightRadius: 0,
445
- backgroundColor: '#6B7280',
446
- opacity: 0.8,
447
- },
448
- figmaBadgeRounded: {
449
- borderRadius: 10, // Badge com todos os cantos arredondados
450
- borderTopLeftRadius: 10,
451
- borderTopRightRadius: 10,
452
- borderBottomLeftRadius: 10,
453
- borderBottomRightRadius: 10,
454
- },
455
- figmaBadgeText: {
456
- color: '#FFFFFF',
457
- fontWeight: '700',
458
- fontFamily: 'Nunito Sans',
459
- textAlign: 'center',
460
- },
461
-
462
- // Badge antigo - Mantido para compatibilidade
463
- topBadge: {
464
- position: 'absolute',
465
- top: 8,
466
- right: 8,
467
- backgroundColor: '#1B244B',
468
- borderRadius: 12,
469
- paddingHorizontal: 8,
470
- paddingVertical: 4,
471
- zIndex: 10,
472
- },
473
- topBadgeText: {
474
- color: '#FFFFFF',
475
- fontSize: 10,
476
- fontWeight: '600',
477
- fontFamily: 'Nunito Sans',
478
- },
479
-
480
- // Badge antigo (mantido para compatibilidade)
481
- badge: {
482
- position: 'absolute',
483
- top: -4,
484
- right: -4,
485
- backgroundColor: '#1B244B',
486
- borderRadius: 10,
487
- minWidth: 20,
488
- height: 20,
489
- alignItems: 'center',
490
- justifyContent: 'center',
491
- paddingHorizontal: 6,
492
- },
493
- badgeText: {
494
- color: '#FFFFFF',
495
- fontSize: 10,
496
- fontWeight: '600',
497
- fontFamily: 'Nunito Sans',
498
- },
245
+ // Container Base
246
+ container: {
247
+ flexDirection: 'row',
248
+ alignItems: 'center',
249
+ backgroundColor: '#FFFFFF',
250
+ borderRadius: 12,
251
+ borderWidth: 1.5,
252
+ borderColor: '#E2E9FC',
253
+ paddingHorizontal: 16,
254
+ paddingVertical: 12,
255
+ position: 'relative',
256
+ width: '100%', // Adicionado para garantir que o componente ocupe toda a largura disponível
257
+
258
+ },
259
+ // List appearance: igual à imagem (sem bordas arredondadas, separador inferior)
260
+ containerList: {
261
+ borderWidth: 0,
262
+ borderRadius: 0,
263
+ paddingHorizontal: 0,
264
+ paddingVertical: 24,
265
+ borderBottomWidth: 1,
266
+ borderBottomColor: '#E6EAFF',
267
+ },
268
+
269
+ // Container Sizes
270
+ containerSmall: {
271
+ paddingHorizontal: 12,
272
+ paddingVertical: 8,
273
+ borderRadius: 8,
274
+ },
275
+ containerMedium: {
276
+ paddingHorizontal: 16,
277
+ paddingVertical: 12,
278
+ borderRadius: 12,
279
+ },
280
+ containerLarge: {
281
+ paddingHorizontal: 20,
282
+ paddingVertical: 16,
283
+ borderRadius: 16,
284
+ },
285
+
286
+ // Container Variants
287
+ containerDefault: {
288
+ backgroundColor: '#FFFFFF',
289
+ borderColor: '#E5E7EB',
290
+ },
291
+ containerSelected: {
292
+ backgroundColor: '#FFFFFF',
293
+ borderColor: '#4F7CFE',
294
+ borderWidth: 2,
295
+ shadowColor: '#4F7CFE',
296
+ shadowOpacity: 0.15,
297
+ shadowRadius: 4,
298
+ elevation: 3,
299
+ },
300
+ containerDisabled: {
301
+ backgroundColor: '#F9FAFB',
302
+ borderColor: '#E5E7EB',
303
+ opacity: 0.6,
304
+ },
305
+ // Container expandido com descrição
306
+ containerExpanded: {
307
+ paddingTop: 16, // Padding superior menor para alinhar melhor
308
+ paddingBottom: 20, // Padding inferior maior para dar espaço para a descrição
309
+ minHeight: 110, // Altura maior para corresponder à imagem de referência
310
+ },
311
+
312
+ // Icon Container Base
313
+ iconContainer: {
314
+ alignItems: 'center',
315
+ justifyContent: 'center',
316
+ marginRight: 12,
317
+ position: 'relative',
318
+ },
319
+
320
+ // Icon Container Sizes
321
+ iconContainerSmall: {
322
+ width: 32,
323
+ height: 32,
324
+ borderRadius: 8,
325
+ marginRight: 8,
326
+ },
327
+ iconContainerMedium: {
328
+ width: 40,
329
+ height: 40,
330
+ borderRadius: 10,
331
+ marginRight: 12,
332
+ },
333
+ iconContainerLarge: {
334
+ width: 48,
335
+ height: 48,
336
+ borderRadius: 12,
337
+ marginRight: 16,
338
+ },
339
+
340
+ // Icon Container Variants
341
+ iconContainerDefault: {
342
+ backgroundColor: '#F0F4FF',
343
+ },
344
+ iconContainerSelected: {
345
+ backgroundColor: '#F0F4FF',
346
+ },
347
+ iconContainerDisabled: {
348
+ backgroundColor: '#F3F4F6',
349
+ },
350
+ iconContainerExpanded: {
351
+ width: 48,
352
+ height: 48,
353
+ borderRadius: 12,
354
+ alignSelf: 'flex-start', // Alinha o ícone com o topo
355
+ },
356
+ iconContainerHidden: {
357
+ width: 0,
358
+ height: 0,
359
+ marginRight: 0,
360
+ padding: 0,
361
+ opacity: 0,
362
+ },
363
+
364
+ // Label Base
365
+ label: {
366
+ flex: 1,
367
+
368
+ fontWeight: '600',
369
+ flexShrink: 1, // Permite que o texto se compresse se necessário
370
+ },
371
+
372
+ // Label Sizes
373
+ labelSmall: {
374
+ fontSize: 12,
375
+ lineHeight: 16,
376
+ },
377
+ labelMedium: {
378
+ fontSize: 14,
379
+ lineHeight: 18,
380
+ },
381
+ labelLarge: {
382
+ fontSize: 16,
383
+ lineHeight: 20,
384
+ },
385
+
386
+ // Estilo para o layout expandido
387
+ textContainer: {
388
+ flex: 1,
389
+ flexDirection: 'column',
390
+ justifyContent: 'flex-start', // Alinhamento no topo para o título alinhar com o ícone
391
+ paddingTop: 2, // Pequeno ajuste para alinhar melhor com o ícone
392
+ },
393
+ labelExpanded: {
394
+ fontSize: 16,
395
+ lineHeight: 22,
396
+ // fontWeight: '600',
397
+
398
+ // Removido marginBottom pois agora usamos descriptionContainer para espaçamento
399
+ },
400
+ descriptionContainer: {
401
+ marginTop: 6, // Espaçamento entre o título e a descrição
402
+ },
403
+ description: {
404
+ fontSize: 12,
405
+ lineHeight: 18, // Aumentado para melhor legibilidade
406
+ color: '#6B7280',
407
+
408
+ // fontWeight: '400',
409
+ },
410
+
411
+ // Label Variants
412
+ labelDefault: {
413
+ color: '#1B244B',
414
+ },
415
+ labelSelected: {
416
+ color: '#1B244B',
417
+ },
418
+ labelDisabled: {
419
+ color: '#9CA3AF',
420
+ },
421
+
422
+ // Arrow Container
423
+ arrowContainer: {
424
+ marginLeft: 8,
425
+ alignItems: 'center',
426
+ justifyContent: 'center',
427
+ paddingTop: 3.52,
428
+ paddingLeft: 3.33,
429
+ },
430
+
431
+ // Badge no canto superior direito - Estilo Figma (Especificações exatas)
432
+ figmaBadge: {
433
+ position: 'absolute',
434
+ backgroundColor: '#1B244B', // Style: dark
435
+ minWidth: 56, // Largura mínima do Figma
436
+ height: 20, // Height do Figma
437
+ paddingHorizontal: 8, // Adicionado para garantir espaçamento adequado do texto
438
+ alignItems: 'center',
439
+ justifyContent: 'center',
440
+ zIndex: 10,
441
+ },
442
+ figmaBadgeDefault: {
443
+ top: 0, // Grudado no topo
444
+ right: 0, // Grudado na direita
445
+ borderTopRightRadius: 6, // Canto superior direito
446
+ borderBottomLeftRadius: 6, // Canto inferior esquerdo
447
+ borderTopLeftRadius: 0,
448
+ borderBottomRightRadius: 0,
449
+ },
450
+ figmaBadgeSelected: {
451
+ top: 0, // Grudado no topo
452
+ right: 0, // Grudado na direita
453
+ borderTopRightRadius: 6, // Canto superior direito
454
+ borderBottomLeftRadius: 6, // Canto inferior esquerdo
455
+ borderTopLeftRadius: 0,
456
+ borderBottomRightRadius: 0,
457
+ },
458
+ figmaBadgeDisabled: {
459
+ top: 0, // Grudado no topo
460
+ right: 0, // Grudado na direita
461
+ borderTopRightRadius: 6, // Canto superior direito
462
+ borderBottomLeftRadius: 6, // Canto inferior esquerdo
463
+ borderTopLeftRadius: 0,
464
+ borderBottomRightRadius: 0,
465
+ backgroundColor: '#6B7280',
466
+ opacity: 0.8,
467
+ },
468
+ figmaBadgeRounded: {
469
+ borderRadius: 10, // Badge com todos os cantos arredondados
470
+ borderTopLeftRadius: 10,
471
+ borderTopRightRadius: 10,
472
+ borderBottomLeftRadius: 10,
473
+ borderBottomRightRadius: 10,
474
+ },
475
+ figmaBadgeText: {
476
+ color: '#FFFFFF',
477
+ fontWeight: '700',
478
+
479
+ textAlign: 'center',
480
+ },
481
+
482
+ // Badge antigo - Mantido para compatibilidade
483
+ topBadge: {
484
+ position: 'absolute',
485
+ top: 8,
486
+ right: 8,
487
+ backgroundColor: '#1B244B',
488
+ borderRadius: 12,
489
+ paddingHorizontal: 8,
490
+ paddingVertical: 4,
491
+ zIndex: 10,
492
+ },
493
+ topBadgeText: {
494
+ color: '#FFFFFF',
495
+ fontSize: 10,
496
+ fontWeight: '600',
497
+
498
+ },
499
+
500
+ // Badge antigo (mantido para compatibilidade)
501
+ badge: {
502
+ position: 'absolute',
503
+ top: -4,
504
+ right: -4,
505
+ backgroundColor: '#1B244B',
506
+ borderRadius: 10,
507
+ minWidth: 20,
508
+ height: 20,
509
+ alignItems: 'center',
510
+ justifyContent: 'center',
511
+ paddingHorizontal: 6,
512
+ },
513
+ badgeText: {
514
+ color: '#FFFFFF',
515
+ fontSize: 10,
516
+ fontWeight: '600',
517
+
518
+ },
499
519
  });
500
520
 
501
521
  export default NavigationItem;