vpt-sebraeds 0.0.61 → 0.0.63
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/components/ListItem/index.jsx +17 -7
- package/components/RangeSlider/RangeSlider.stories.jsx +79 -79
- package/components/Shortcut/index.jsx +36 -31
- package/components/Table/index.jsx +7 -7
- package/dist/components/ListItem/index.d.ts.map +1 -1
- package/dist/components/ListItem/index.js +13 -3
- package/dist/components/Shortcut/index.d.ts.map +1 -1
- package/dist/components/Shortcut/index.js +19 -14
- package/dist/components/Table/index.js +16 -13
- package/package.json +2 -2
|
@@ -92,11 +92,13 @@ const ListItem = ({
|
|
|
92
92
|
hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }}
|
|
93
93
|
style={styles.bookmarkButton}
|
|
94
94
|
>
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
<View style={styles.bookmarkCircle}>
|
|
96
|
+
<RemixIcon
|
|
97
|
+
name={bookmarked ? 'bookmark-fill' : 'bookmark-line'}
|
|
98
|
+
size={16}
|
|
99
|
+
color="#687499"
|
|
100
|
+
/>
|
|
101
|
+
</View>
|
|
100
102
|
</TouchableOpacity>
|
|
101
103
|
)}
|
|
102
104
|
|
|
@@ -186,8 +188,16 @@ const styles = StyleSheet.create({
|
|
|
186
188
|
},
|
|
187
189
|
bookmarkButton: {
|
|
188
190
|
position: 'absolute',
|
|
189
|
-
top:
|
|
190
|
-
right:
|
|
191
|
+
top: 12,
|
|
192
|
+
right: 12,
|
|
193
|
+
},
|
|
194
|
+
bookmarkCircle: {
|
|
195
|
+
width: 24,
|
|
196
|
+
height: 24,
|
|
197
|
+
borderRadius: 12,
|
|
198
|
+
backgroundColor: '#F7F9FF',
|
|
199
|
+
alignItems: 'center',
|
|
200
|
+
justifyContent: 'center',
|
|
191
201
|
},
|
|
192
202
|
arrowButton: {
|
|
193
203
|
position: 'absolute',
|
|
@@ -76,90 +76,90 @@ Default.args = {
|
|
|
76
76
|
disabled: false,
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
export const WithoutLabel = () => {
|
|
80
|
-
|
|
79
|
+
// export const WithoutLabel = () => {
|
|
80
|
+
// const [value, setValue] = useState(300000);
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
};
|
|
82
|
+
// return (
|
|
83
|
+
// <View style={styles.page}>
|
|
84
|
+
// <View style={styles.section}>
|
|
85
|
+
// <RangeSlider
|
|
86
|
+
// value={value}
|
|
87
|
+
// onValueChange={setValue}
|
|
88
|
+
// minimumValue={0}
|
|
89
|
+
// maximumValue={1000000}
|
|
90
|
+
// step={1000}
|
|
91
|
+
// />
|
|
92
|
+
// </View>
|
|
93
|
+
// </View>
|
|
94
|
+
// );
|
|
95
|
+
// };
|
|
96
96
|
|
|
97
|
-
export const SmallRange = () => {
|
|
98
|
-
|
|
97
|
+
// export const SmallRange = () => {
|
|
98
|
+
// const [value, setValue] = useState(50);
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
100
|
+
// return (
|
|
101
|
+
// <View style={styles.page}>
|
|
102
|
+
// <View style={styles.section}>
|
|
103
|
+
// <RangeSlider
|
|
104
|
+
// label="Quantidade"
|
|
105
|
+
// value={value}
|
|
106
|
+
// onValueChange={setValue}
|
|
107
|
+
// minimumValue={0}
|
|
108
|
+
// maximumValue={100}
|
|
109
|
+
// step={1}
|
|
110
|
+
// />
|
|
111
|
+
// </View>
|
|
112
|
+
// </View>
|
|
113
|
+
// );
|
|
114
|
+
// };
|
|
115
115
|
|
|
116
|
-
export const Disabled = () => {
|
|
117
|
-
|
|
116
|
+
// export const Disabled = () => {
|
|
117
|
+
// const [value, setValue] = useState(500000);
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
};
|
|
119
|
+
// return (
|
|
120
|
+
// <View style={styles.page}>
|
|
121
|
+
// <View style={styles.section}>
|
|
122
|
+
// <RangeSlider
|
|
123
|
+
// label="Label"
|
|
124
|
+
// value={value}
|
|
125
|
+
// onValueChange={setValue}
|
|
126
|
+
// minimumValue={0}
|
|
127
|
+
// maximumValue={1000000}
|
|
128
|
+
// step={1000}
|
|
129
|
+
// disabled={true}
|
|
130
|
+
// />
|
|
131
|
+
// </View>
|
|
132
|
+
// </View>
|
|
133
|
+
// );
|
|
134
|
+
// };
|
|
135
135
|
|
|
136
|
-
export const Multiple = () => {
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
// export const Multiple = () => {
|
|
137
|
+
// const [value1, setValue1] = useState(250000);
|
|
138
|
+
// const [value2, setValue2] = useState(750000);
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
140
|
+
// return (
|
|
141
|
+
// <View style={styles.page}>
|
|
142
|
+
// <View style={styles.section}>
|
|
143
|
+
// <RangeSlider
|
|
144
|
+
// label="Valor Inicial"
|
|
145
|
+
// value={value1}
|
|
146
|
+
// onValueChange={setValue1}
|
|
147
|
+
// minimumValue={0}
|
|
148
|
+
// maximumValue={1000000}
|
|
149
|
+
// step={1000}
|
|
150
|
+
// />
|
|
151
|
+
// </View>
|
|
152
152
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
};
|
|
153
|
+
// <View style={styles.section}>
|
|
154
|
+
// <RangeSlider
|
|
155
|
+
// label="Valor Final"
|
|
156
|
+
// value={value2}
|
|
157
|
+
// onValueChange={setValue2}
|
|
158
|
+
// minimumValue={0}
|
|
159
|
+
// maximumValue={1000000}
|
|
160
|
+
// step={1000}
|
|
161
|
+
// />
|
|
162
|
+
// </View>
|
|
163
|
+
// </View>
|
|
164
|
+
// );
|
|
165
|
+
// };
|
|
@@ -191,34 +191,36 @@ const Shortcut = ({
|
|
|
191
191
|
};
|
|
192
192
|
|
|
193
193
|
return (
|
|
194
|
-
<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
194
|
+
<View style={styles.wrapper}>
|
|
195
|
+
<TouchableOpacity
|
|
196
|
+
style={[
|
|
197
|
+
styles.container,
|
|
198
|
+
containerStyle,
|
|
199
|
+
customContainerStyle,
|
|
200
|
+
isFocused && getContainerStyle(variant),
|
|
201
|
+
style
|
|
202
|
+
]}
|
|
203
|
+
onPress={onPress}
|
|
204
|
+
onPressIn={() => setIsFocused(true)}
|
|
205
|
+
onPressOut={() => setIsFocused(false)}
|
|
206
|
+
activeOpacity={0.95}
|
|
207
|
+
>
|
|
208
|
+
<Icon name={finalIconName} size={32} color={finalIconColor} style={styles.icon} />
|
|
209
|
+
<SEText
|
|
210
|
+
type="ns-sm-body-bold"
|
|
211
|
+
style={[styles.label, { color: finalLabelColor }]}
|
|
212
|
+
numberOfLines={2}
|
|
213
|
+
ellipsizeMode="tail"
|
|
214
|
+
>
|
|
215
|
+
{label}
|
|
216
|
+
</SEText>
|
|
217
|
+
</TouchableOpacity>
|
|
207
218
|
{badge && (
|
|
208
|
-
<View style={[styles.badge, { backgroundColor: v.badge.backgroundColor }]}>
|
|
219
|
+
<View pointerEvents="none" style={[styles.badge, { backgroundColor: v.badge.backgroundColor }]}>
|
|
209
220
|
<SEText type="ns-sm-body-semibold" style={[styles.badgeText, { color: v.badge.color }]}>{badge}</SEText>
|
|
210
221
|
</View>
|
|
211
222
|
)}
|
|
212
|
-
|
|
213
|
-
<SEText
|
|
214
|
-
type="ns-sm-body-bold"
|
|
215
|
-
style={[styles.label, { color: finalLabelColor }]}
|
|
216
|
-
numberOfLines={2}
|
|
217
|
-
ellipsizeMode="tail"
|
|
218
|
-
>
|
|
219
|
-
{label}
|
|
220
|
-
</SEText>
|
|
221
|
-
</TouchableOpacity>
|
|
223
|
+
</View>
|
|
222
224
|
);
|
|
223
225
|
};
|
|
224
226
|
|
|
@@ -231,18 +233,21 @@ const getContainerStyle = (variant) => {
|
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
const styles = StyleSheet.create({
|
|
236
|
+
wrapper: {
|
|
237
|
+
margin: 8,
|
|
238
|
+
overflow: 'hidden',
|
|
239
|
+
borderRadius: 12,
|
|
240
|
+
},
|
|
234
241
|
container: {
|
|
235
242
|
width: 128,
|
|
236
243
|
height: 120,
|
|
237
244
|
borderRadius: 12,
|
|
238
|
-
justifyContent: 'space-between',
|
|
239
|
-
margin: 8,
|
|
245
|
+
justifyContent: 'space-between',
|
|
240
246
|
borderWidth: 2,
|
|
241
247
|
borderColor: '#001A70',
|
|
242
248
|
padding: 16,
|
|
243
|
-
position: 'relative',
|
|
244
249
|
backgroundColor: '#001A70',
|
|
245
|
-
overflow: '
|
|
250
|
+
overflow: 'hidden',
|
|
246
251
|
},
|
|
247
252
|
containerWide: {
|
|
248
253
|
width: 156, // Mantém a mesma altura e ajusta largura para aspect ratio 39/34
|
|
@@ -259,11 +264,11 @@ const styles = StyleSheet.create({
|
|
|
259
264
|
},
|
|
260
265
|
badge: {
|
|
261
266
|
position: 'absolute',
|
|
262
|
-
top: -
|
|
263
|
-
right: -
|
|
267
|
+
top: -1,
|
|
268
|
+
right: -1,
|
|
264
269
|
paddingHorizontal: 12,
|
|
265
270
|
paddingVertical: 4,
|
|
266
|
-
borderTopRightRadius:
|
|
271
|
+
borderTopRightRadius: 14,
|
|
267
272
|
borderBottomLeftRadius: 8,
|
|
268
273
|
zIndex: 2,
|
|
269
274
|
minWidth: 40,
|
|
@@ -58,7 +58,7 @@ const Table = ({
|
|
|
58
58
|
const mapStatus = (statusObj) => {
|
|
59
59
|
if (!statusObj) return 'overdue';
|
|
60
60
|
|
|
61
|
-
switch (statusObj.label) {
|
|
61
|
+
switch (statusObj.label.toUpperCase()) {
|
|
62
62
|
case 'PAGO':
|
|
63
63
|
return 'paid';
|
|
64
64
|
case 'ATRASADO':
|
|
@@ -85,7 +85,7 @@ const Table = ({
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const getStatusTextColor = (status) => {
|
|
88
|
-
switch (status) {
|
|
88
|
+
switch (status.toLowerCase()) {
|
|
89
89
|
case 'paid':
|
|
90
90
|
return '#22C55E';
|
|
91
91
|
case 'overdue':
|
|
@@ -98,7 +98,7 @@ const Table = ({
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
const getStatusIconColor = (status) => {
|
|
101
|
-
switch (status) {
|
|
101
|
+
switch (status.toLowerCase()) {
|
|
102
102
|
case 'paid':
|
|
103
103
|
return '#22C55E';
|
|
104
104
|
case 'overdue':
|
|
@@ -111,7 +111,7 @@ const Table = ({
|
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
const getStatusIcon = (status) => {
|
|
114
|
-
switch (status) {
|
|
114
|
+
switch (status.toLowerCase()) {
|
|
115
115
|
case 'paid':
|
|
116
116
|
return 'check-line';
|
|
117
117
|
case 'overdue':
|
|
@@ -128,7 +128,7 @@ const Table = ({
|
|
|
128
128
|
return statusData.label;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
switch (statusData) {
|
|
131
|
+
switch (statusData.toLowerCase()) {
|
|
132
132
|
case 'paid':
|
|
133
133
|
return 'Pago';
|
|
134
134
|
case 'overdue':
|
|
@@ -292,7 +292,7 @@ const Table = ({
|
|
|
292
292
|
</SEText>
|
|
293
293
|
</View>
|
|
294
294
|
|
|
295
|
-
<View style={styles.centerContent}>
|
|
295
|
+
{/* <View style={styles.centerContent}>
|
|
296
296
|
<SEText
|
|
297
297
|
type="ns-sm-body"
|
|
298
298
|
style={[
|
|
@@ -302,7 +302,7 @@ const Table = ({
|
|
|
302
302
|
>
|
|
303
303
|
{item.price}
|
|
304
304
|
</SEText>
|
|
305
|
-
</View>
|
|
305
|
+
</View> */}
|
|
306
306
|
|
|
307
307
|
<View style={styles.rightContent}>
|
|
308
308
|
<View style={styles.statusContainer}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ListItem/index.jsx"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,+JAVW,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ListItem/index.jsx"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,+JAVW,MAAM,qBAiGhB;kBArH+B,OAAO"}
|
|
@@ -57,7 +57,9 @@ const ListItem = ({ title = '', descriptions = [], imageSource, selected = false
|
|
|
57
57
|
|
|
58
58
|
{/* Bookmark (top-right) */}
|
|
59
59
|
{showBookmark && !selected && (<TouchableOpacity onPress={onBookmarkPress} hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }} style={styles.bookmarkButton}>
|
|
60
|
-
<
|
|
60
|
+
<View style={styles.bookmarkCircle}>
|
|
61
|
+
<RemixIcon name={bookmarked ? 'bookmark-fill' : 'bookmark-line'} size={16} color="#687499"/>
|
|
62
|
+
</View>
|
|
61
63
|
</TouchableOpacity>)}
|
|
62
64
|
|
|
63
65
|
{/* Arrow (bottom-right) */}
|
|
@@ -138,8 +140,16 @@ const styles = StyleSheet.create({
|
|
|
138
140
|
},
|
|
139
141
|
bookmarkButton: {
|
|
140
142
|
position: 'absolute',
|
|
141
|
-
top:
|
|
142
|
-
right:
|
|
143
|
+
top: 12,
|
|
144
|
+
right: 12,
|
|
145
|
+
},
|
|
146
|
+
bookmarkCircle: {
|
|
147
|
+
width: 24,
|
|
148
|
+
height: 24,
|
|
149
|
+
borderRadius: 12,
|
|
150
|
+
backgroundColor: '#F7F9FF',
|
|
151
|
+
alignItems: 'center',
|
|
152
|
+
justifyContent: 'center',
|
|
143
153
|
},
|
|
144
154
|
arrowButton: {
|
|
145
155
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Shortcut/index.jsx"],"names":[],"mappings":";AAwIA;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Shortcut/index.jsx"],"names":[],"mappings":";AAwIA;;;;;;;;;;;;;sBAwFC;kBAhO+B,OAAO"}
|
|
@@ -171,21 +171,23 @@ iconColor = null, labelColor = null, borderColor = null, backgroundColor = null,
|
|
|
171
171
|
borderColor: finalBorderColor,
|
|
172
172
|
backgroundColor: finalBackgroundColor,
|
|
173
173
|
};
|
|
174
|
-
return (<
|
|
174
|
+
return (<View style={styles.wrapper}>
|
|
175
|
+
<TouchableOpacity style={[
|
|
175
176
|
styles.container,
|
|
176
177
|
containerStyle,
|
|
177
178
|
customContainerStyle,
|
|
178
179
|
isFocused && getContainerStyle(variant),
|
|
179
180
|
style
|
|
180
181
|
]} onPress={onPress} onPressIn={() => setIsFocused(true)} onPressOut={() => setIsFocused(false)} activeOpacity={0.95}>
|
|
181
|
-
|
|
182
|
+
<Icon name={finalIconName} size={32} color={finalIconColor} style={styles.icon}/>
|
|
183
|
+
<SEText type="ns-sm-body-bold" style={[styles.label, { color: finalLabelColor }]} numberOfLines={2} ellipsizeMode="tail">
|
|
184
|
+
{label}
|
|
185
|
+
</SEText>
|
|
186
|
+
</TouchableOpacity>
|
|
187
|
+
{badge && (<View pointerEvents="none" style={[styles.badge, { backgroundColor: v.badge.backgroundColor }]}>
|
|
182
188
|
<SEText type="ns-sm-body-semibold" style={[styles.badgeText, { color: v.badge.color }]}>{badge}</SEText>
|
|
183
189
|
</View>)}
|
|
184
|
-
|
|
185
|
-
<SEText type="ns-sm-body-bold" style={[styles.label, { color: finalLabelColor }]} numberOfLines={2} ellipsizeMode="tail">
|
|
186
|
-
{label}
|
|
187
|
-
</SEText>
|
|
188
|
-
</TouchableOpacity>);
|
|
190
|
+
</View>);
|
|
189
191
|
};
|
|
190
192
|
const getContainerStyle = (variant) => {
|
|
191
193
|
if (variant === 'filled' || variant === 'filledAlt') {
|
|
@@ -196,18 +198,21 @@ const getContainerStyle = (variant) => {
|
|
|
196
198
|
}
|
|
197
199
|
};
|
|
198
200
|
const styles = StyleSheet.create({
|
|
201
|
+
wrapper: {
|
|
202
|
+
margin: 8,
|
|
203
|
+
overflow: 'hidden',
|
|
204
|
+
borderRadius: 12,
|
|
205
|
+
},
|
|
199
206
|
container: {
|
|
200
207
|
width: 128,
|
|
201
208
|
height: 120,
|
|
202
209
|
borderRadius: 12,
|
|
203
|
-
justifyContent: 'space-between',
|
|
204
|
-
margin: 8,
|
|
210
|
+
justifyContent: 'space-between',
|
|
205
211
|
borderWidth: 2,
|
|
206
212
|
borderColor: '#001A70',
|
|
207
213
|
padding: 16,
|
|
208
|
-
position: 'relative',
|
|
209
214
|
backgroundColor: '#001A70',
|
|
210
|
-
overflow: '
|
|
215
|
+
overflow: 'hidden',
|
|
211
216
|
},
|
|
212
217
|
containerWide: {
|
|
213
218
|
width: 156, // Mantém a mesma altura e ajusta largura para aspect ratio 39/34
|
|
@@ -224,11 +229,11 @@ const styles = StyleSheet.create({
|
|
|
224
229
|
},
|
|
225
230
|
badge: {
|
|
226
231
|
position: 'absolute',
|
|
227
|
-
top: -
|
|
228
|
-
right: -
|
|
232
|
+
top: -1,
|
|
233
|
+
right: -1,
|
|
229
234
|
paddingHorizontal: 12,
|
|
230
235
|
paddingVertical: 4,
|
|
231
|
-
borderTopRightRadius:
|
|
236
|
+
borderTopRightRadius: 14,
|
|
232
237
|
borderBottomLeftRadius: 8,
|
|
233
238
|
zIndex: 2,
|
|
234
239
|
minWidth: 40,
|
|
@@ -42,7 +42,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
42
42
|
const mapStatus = (statusObj) => {
|
|
43
43
|
if (!statusObj)
|
|
44
44
|
return 'overdue';
|
|
45
|
-
switch (statusObj.label) {
|
|
45
|
+
switch (statusObj.label.toUpperCase()) {
|
|
46
46
|
case 'PAGO':
|
|
47
47
|
return 'paid';
|
|
48
48
|
case 'ATRASADO':
|
|
@@ -66,7 +66,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
66
66
|
}).format(numValue);
|
|
67
67
|
};
|
|
68
68
|
const getStatusTextColor = (status) => {
|
|
69
|
-
switch (status) {
|
|
69
|
+
switch (status.toLowerCase()) {
|
|
70
70
|
case 'paid':
|
|
71
71
|
return '#22C55E';
|
|
72
72
|
case 'overdue':
|
|
@@ -78,7 +78,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
const getStatusIconColor = (status) => {
|
|
81
|
-
switch (status) {
|
|
81
|
+
switch (status.toLowerCase()) {
|
|
82
82
|
case 'paid':
|
|
83
83
|
return '#22C55E';
|
|
84
84
|
case 'overdue':
|
|
@@ -90,7 +90,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
const getStatusIcon = (status) => {
|
|
93
|
-
switch (status) {
|
|
93
|
+
switch (status.toLowerCase()) {
|
|
94
94
|
case 'paid':
|
|
95
95
|
return 'check-line';
|
|
96
96
|
case 'overdue':
|
|
@@ -105,7 +105,7 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
105
105
|
if (statusData && statusData.label) {
|
|
106
106
|
return statusData.label;
|
|
107
107
|
}
|
|
108
|
-
switch (statusData) {
|
|
108
|
+
switch (statusData.toLowerCase()) {
|
|
109
109
|
case 'paid':
|
|
110
110
|
return 'Pago';
|
|
111
111
|
case 'overdue':
|
|
@@ -221,14 +221,17 @@ const Table = ({ data = [], showMoreComponent, showFilters = false, onFilterChan
|
|
|
221
221
|
</SEText>
|
|
222
222
|
</View>
|
|
223
223
|
|
|
224
|
-
<View style={styles.centerContent}>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
224
|
+
{/* <View style={styles.centerContent}>
|
|
225
|
+
<SEText
|
|
226
|
+
type="ns-sm-body"
|
|
227
|
+
style={[
|
|
228
|
+
styles.priceText,
|
|
229
|
+
getTextStyle(item.status, isSelected)
|
|
230
|
+
]}
|
|
231
|
+
>
|
|
232
|
+
{item.price}
|
|
233
|
+
</SEText>
|
|
234
|
+
</View> */}
|
|
232
235
|
|
|
233
236
|
<View style={styles.rightContent}>
|
|
234
237
|
<View style={styles.statusContainer}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vpt-sebraeds",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
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",
|
|
@@ -122,4 +122,4 @@
|
|
|
122
122
|
"react-native-web": "^0.20.0"
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
}
|
|
125
|
+
}
|