vpt-sebraeds 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/Vector.png +0 -0
- package/assets/edit-icon.png +0 -0
- package/components/BottomSheet/index.jsx +44 -26
- package/components/Button/index.jsx +37 -152
- package/components/FilterableMultiSelect/index.jsx +25 -14
- package/components/MenuAccordion/index.jsx +1 -1
- package/components/NavigationItem/index.tsx +498 -478
- package/components/SEIcon/index.js +30 -0
- package/components/SEText/index.js +160 -0
- package/components/SEText/styles.js +333 -0
- package/components/ShuffleItem/index.jsx +321 -325
- package/components/TaskCard/components/EditIcon.jsx +1 -1
- package/components/styles/colors.js +204 -0
- package/components/styles/fonts.js +15 -0
- package/components/styles/index,js +6 -0
- package/components/styles/metrics.js +13 -0
- package/dist/components/BottomSheet/index.d.ts +3 -1
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +39 -19
- package/dist/components/Button/index.d.ts +1 -11
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +37 -146
- package/dist/components/FilterableMultiSelect/index.d.ts.map +1 -1
- package/dist/components/FilterableMultiSelect/index.js +23 -14
- package/dist/components/MenuAccordion/index.js +1 -1
- package/dist/components/NavigationItem/index.d.ts +4 -4
- package/dist/components/NavigationItem/index.d.ts.map +1 -1
- package/dist/components/NavigationItem/index.js +58 -49
- package/dist/components/SEIcon/index.d.ts +18 -0
- package/dist/components/SEIcon/index.d.ts.map +1 -0
- package/dist/components/SEIcon/index.js +18 -0
- package/dist/components/SEText/index.d.ts +58 -0
- package/dist/components/SEText/index.d.ts.map +1 -0
- package/dist/components/SEText/index.js +118 -0
- package/dist/components/SEText/styles.d.ts +429 -0
- package/dist/components/SEText/styles.d.ts.map +1 -0
- package/dist/components/SEText/styles.js +321 -0
- package/dist/components/ShuffleItem/index.d.ts +3 -1
- package/dist/components/ShuffleItem/index.d.ts.map +1 -1
- package/dist/components/ShuffleItem/index.js +243 -289
- package/dist/components/TaskCard/components/EditIcon.js +1 -1
- package/dist/components/styles/colors.d.ts +182 -0
- package/dist/components/styles/colors.d.ts.map +1 -0
- package/dist/components/styles/colors.js +180 -0
- package/dist/components/styles/fonts.d.ts +15 -0
- package/dist/components/styles/fonts.d.ts.map +1 -0
- package/dist/components/styles/fonts.js +14 -0
- package/dist/components/styles/metrics.d.ts +10 -0
- package/dist/components/styles/metrics.d.ts.map +1 -0
- package/dist/components/styles/metrics.js +11 -0
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
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;
|