vpt-sebraeds 0.0.60 → 0.0.62
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.
|
@@ -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
|
+
// };
|
|
@@ -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}>
|
|
@@ -209,10 +209,10 @@ TaskCard.propTypes = {
|
|
|
209
209
|
|
|
210
210
|
TaskCard.defaultProps = {
|
|
211
211
|
titleColor: '#1F1F1F',
|
|
212
|
-
subtitleColor: '#
|
|
212
|
+
subtitleColor: '#485274',
|
|
213
213
|
buttons: [],
|
|
214
214
|
footerText: 'Lembrar mais tarde',
|
|
215
|
-
footerTextColor: '#
|
|
215
|
+
footerTextColor: '#485274',
|
|
216
216
|
backgroundColor: '#FFFFFF',
|
|
217
217
|
borderRadius: 12,
|
|
218
218
|
padding: 20,
|
|
@@ -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}>
|
|
@@ -122,10 +122,10 @@ TaskCard.propTypes = {
|
|
|
122
122
|
};
|
|
123
123
|
TaskCard.defaultProps = {
|
|
124
124
|
titleColor: '#1F1F1F',
|
|
125
|
-
subtitleColor: '#
|
|
125
|
+
subtitleColor: '#485274',
|
|
126
126
|
buttons: [],
|
|
127
127
|
footerText: 'Lembrar mais tarde',
|
|
128
|
-
footerTextColor: '#
|
|
128
|
+
footerTextColor: '#485274',
|
|
129
129
|
backgroundColor: '#FFFFFF',
|
|
130
130
|
borderRadius: 12,
|
|
131
131
|
padding: 20,
|