vpt-sebraeds 0.0.18 → 0.0.20
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/Button/index.jsx +1 -1
- package/components/ContentCard/index.jsx +19 -6
- package/components/DropdownCommitments/index.js +2 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ContentCard/index.d.ts.map +1 -1
- package/dist/components/ContentCard/index.js +19 -7
- package/dist/components/DropdownCommitments/index.d.ts.map +1 -1
- package/dist/components/DropdownCommitments/index.js +2 -1
- package/package.json +1 -1
|
@@ -64,7 +64,7 @@ const ContentCard = ({
|
|
|
64
64
|
}}
|
|
65
65
|
>
|
|
66
66
|
<Image
|
|
67
|
-
source={imageSource}
|
|
67
|
+
source={typeof imageSource === 'string' ? { uri: imageSource } : imageSource}
|
|
68
68
|
style={{
|
|
69
69
|
width: '100%',
|
|
70
70
|
height: '100%',
|
|
@@ -103,14 +103,17 @@ const ContentCard = ({
|
|
|
103
103
|
</View>
|
|
104
104
|
</View>
|
|
105
105
|
|
|
106
|
-
<Text style={[
|
|
106
|
+
<Text style={[
|
|
107
|
+
imageSource ? styles.titleWithImage : styles.title,
|
|
108
|
+
{ alignSelf: 'stretch' }
|
|
109
|
+
]} numberOfLines={4} ellipsizeMode="tail">
|
|
107
110
|
{title}
|
|
108
111
|
</Text>
|
|
109
112
|
|
|
110
113
|
{/* Validação para todo o conteúdo após o título quando NÃO há imagem */}
|
|
111
114
|
{!imageSource && (
|
|
112
115
|
<>
|
|
113
|
-
<View style={
|
|
116
|
+
<View style={styles.infoContainer}>
|
|
114
117
|
<View style={styles.dateContainer}>
|
|
115
118
|
{verifyIfShowIconCalendar(time, date, location) && <Icon name="calendar-line" size={30} color="#081032" />}
|
|
116
119
|
<View style={styles.paddingRow}>
|
|
@@ -143,6 +146,7 @@ const ContentCard = ({
|
|
|
143
146
|
onPress={onPrimaryAction}
|
|
144
147
|
expand
|
|
145
148
|
iconName={primaryActionIconName || undefined}
|
|
149
|
+
iconPosition={iconPosition || undefined}
|
|
146
150
|
/>
|
|
147
151
|
</>
|
|
148
152
|
) : (
|
|
@@ -250,15 +254,24 @@ const styles = StyleSheet.create({
|
|
|
250
254
|
marginRight: 3, // Reduz margem
|
|
251
255
|
},
|
|
252
256
|
title: {
|
|
253
|
-
fontSize:
|
|
254
|
-
fontWeight: '
|
|
257
|
+
fontSize: 16, // font-size/body-2
|
|
258
|
+
fontWeight: '700', // Bold
|
|
255
259
|
color: '#1B244B',
|
|
256
260
|
marginBottom: -9, // Reduz margem
|
|
257
|
-
lineHeight:
|
|
261
|
+
lineHeight: 24, // line-height/body-2
|
|
258
262
|
fontFamily: 'Nunito Sans',
|
|
259
263
|
letterSpacing: 0,
|
|
260
264
|
// numberOfLines removido, deve ser prop do Text
|
|
261
265
|
},
|
|
266
|
+
titleWithImage: {
|
|
267
|
+
fontSize: 12, // font-size/body-4
|
|
268
|
+
fontWeight: '700', // Bold
|
|
269
|
+
color: '#1B244B',
|
|
270
|
+
marginBottom: -9, // Reduz margem
|
|
271
|
+
lineHeight: 16, // line-height/body-4
|
|
272
|
+
fontFamily: 'Nunito Sans',
|
|
273
|
+
letterSpacing: 0,
|
|
274
|
+
},
|
|
262
275
|
infoContainer: {
|
|
263
276
|
gap: 8,
|
|
264
277
|
marginBottom: 16, // Reduz margem
|
|
@@ -12,7 +12,8 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
12
12
|
padding: 16,
|
|
13
13
|
flexDirection: 'row',
|
|
14
14
|
alignItems: 'center',
|
|
15
|
-
width: '100%',
|
|
15
|
+
width: '100%',
|
|
16
|
+
height: 104,
|
|
16
17
|
minWidth: undefined,
|
|
17
18
|
maxWidth: undefined,
|
|
18
19
|
}}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ContentCard/index.jsx"],"names":[],"mappings":";AASA;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ContentCard/index.jsx"],"names":[],"mappings":";AASA;;;;;;;;;;;;;;;;;;;;;;;;;sBAiMC;kBA1MiB,OAAO"}
|
|
@@ -37,7 +37,7 @@ centerDonut = false, // NOVO: centraliza o DonutChart
|
|
|
37
37
|
borderBottomRightRadius: 12,
|
|
38
38
|
overflow: 'hidden',
|
|
39
39
|
}}>
|
|
40
|
-
<Image source={imageSource} style={{
|
|
40
|
+
<Image source={typeof imageSource === 'string' ? { uri: imageSource } : imageSource} style={{
|
|
41
41
|
width: '100%',
|
|
42
42
|
height: '100%',
|
|
43
43
|
}} resizeMode="cover"/>
|
|
@@ -57,13 +57,16 @@ centerDonut = false, // NOVO: centraliza o DonutChart
|
|
|
57
57
|
</View>
|
|
58
58
|
</View>
|
|
59
59
|
|
|
60
|
-
<Text style={[
|
|
60
|
+
<Text style={[
|
|
61
|
+
imageSource ? styles.titleWithImage : styles.title,
|
|
62
|
+
{ alignSelf: 'stretch' }
|
|
63
|
+
]} numberOfLines={4} ellipsizeMode="tail">
|
|
61
64
|
{title}
|
|
62
65
|
</Text>
|
|
63
66
|
|
|
64
67
|
{/* Validação para todo o conteúdo após o título quando NÃO há imagem */}
|
|
65
68
|
{!imageSource && (<>
|
|
66
|
-
<View style={
|
|
69
|
+
<View style={styles.infoContainer}>
|
|
67
70
|
<View style={styles.dateContainer}>
|
|
68
71
|
{verifyIfShowIconCalendar(time, date, location) && <Icon name="calendar-line" size={30} color="#081032"/>}
|
|
69
72
|
<View style={styles.paddingRow}>
|
|
@@ -80,7 +83,7 @@ centerDonut = false, // NOVO: centraliza o DonutChart
|
|
|
80
83
|
</View>
|
|
81
84
|
{showButtons && (<View style={styles.actionsContainer}>
|
|
82
85
|
{singleButton ? (<>
|
|
83
|
-
<Button label={primaryActionLabel} variant="outlined" size="medium" onPress={onPrimaryAction} expand iconName={primaryActionIconName || undefined}/>
|
|
86
|
+
<Button label={primaryActionLabel} variant="outlined" size="medium" onPress={onPrimaryAction} expand iconName={primaryActionIconName || undefined} iconPosition={iconPosition || undefined}/>
|
|
84
87
|
</>) : (<>
|
|
85
88
|
<Button label={primaryActionLabel} variant="outlined" size="medium" onPress={onPrimaryAction} expand iconName={primaryActionIconName || undefined} iconPosition={iconPosition || undefined}/>
|
|
86
89
|
{secondaryActionLabel && secondaryActionLabel !== "Label" ? (<Button label={secondaryActionLabel} variant="transparent" size="medium" onPress={onSecondaryAction} expand iconName={secondaryActionIconName || undefined} iconPosition={iconPosition || undefined}/>) : (
|
|
@@ -150,15 +153,24 @@ const styles = StyleSheet.create({
|
|
|
150
153
|
marginRight: 3, // Reduz margem
|
|
151
154
|
},
|
|
152
155
|
title: {
|
|
153
|
-
fontSize:
|
|
154
|
-
fontWeight: '
|
|
156
|
+
fontSize: 16, // font-size/body-2
|
|
157
|
+
fontWeight: '700', // Bold
|
|
155
158
|
color: '#1B244B',
|
|
156
159
|
marginBottom: -9, // Reduz margem
|
|
157
|
-
lineHeight:
|
|
160
|
+
lineHeight: 24, // line-height/body-2
|
|
158
161
|
fontFamily: 'Nunito Sans',
|
|
159
162
|
letterSpacing: 0,
|
|
160
163
|
// numberOfLines removido, deve ser prop do Text
|
|
161
164
|
},
|
|
165
|
+
titleWithImage: {
|
|
166
|
+
fontSize: 12, // font-size/body-4
|
|
167
|
+
fontWeight: '700', // Bold
|
|
168
|
+
color: '#1B244B',
|
|
169
|
+
marginBottom: -9, // Reduz margem
|
|
170
|
+
lineHeight: 16, // line-height/body-4
|
|
171
|
+
fontFamily: 'Nunito Sans',
|
|
172
|
+
letterSpacing: 0,
|
|
173
|
+
},
|
|
162
174
|
infoContainer: {
|
|
163
175
|
gap: 8,
|
|
164
176
|
marginBottom: 16, // Reduz margem
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/DropdownCommitments/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/DropdownCommitments/index.js"],"names":[],"mappings":"AAwDO;;;sBA0FN;;kBAlJ+B,OAAO"}
|
|
@@ -9,7 +9,8 @@ const CommitmentsDropdownContent = ({ onPress, open, onArrowPress, total }) => (
|
|
|
9
9
|
padding: 16,
|
|
10
10
|
flexDirection: 'row',
|
|
11
11
|
alignItems: 'center',
|
|
12
|
-
width: '100%',
|
|
12
|
+
width: '100%',
|
|
13
|
+
height: 104,
|
|
13
14
|
minWidth: undefined,
|
|
14
15
|
maxWidth: undefined,
|
|
15
16
|
}}>
|