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.
@@ -251,7 +251,7 @@ const styles = StyleSheet.create({
251
251
  paddingHorizontal: 16,
252
252
  },
253
253
  containerMedium: {
254
- height: 40,
254
+ height: 48,
255
255
  paddingHorizontal: 14,
256
256
  },
257
257
  containerSmall: {
@@ -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={[styles.title, { alignSelf: 'stretch' }]} numberOfLines={4} ellipsizeMode="tail">
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={[styles.infoContainer, centerDonut && styles.infoContainerCentered]}>
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: 12, // Reduz fonte do título
254
- fontWeight: 'bold',
257
+ fontSize: 16, // font-size/body-2
258
+ fontWeight: '700', // Bold
255
259
  color: '#1B244B',
256
260
  marginBottom: -9, // Reduz margem
257
- lineHeight: 18, // Adiciona altura da linha
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%', // <-- ocupa toda a largura
15
+ width: '100%',
16
+ height: 104,
16
17
  minWidth: undefined,
17
18
  maxWidth: undefined,
18
19
  }}>
@@ -203,7 +203,7 @@ const styles = StyleSheet.create({
203
203
  paddingHorizontal: 16,
204
204
  },
205
205
  containerMedium: {
206
- height: 40,
206
+ height: 48,
207
207
  paddingHorizontal: 14,
208
208
  },
209
209
  containerSmall: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ContentCard/index.jsx"],"names":[],"mappings":";AASA;;;;;;;;;;;;;;;;;;;;;;;;;sBA6LC;kBAtMiB,OAAO"}
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={[styles.title, { alignSelf: 'stretch' }]} numberOfLines={4} ellipsizeMode="tail">
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={[styles.infoContainer, centerDonut && styles.infoContainerCentered]}>
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: 12, // Reduz fonte do título
154
- fontWeight: 'bold',
156
+ fontSize: 16, // font-size/body-2
157
+ fontWeight: '700', // Bold
155
158
  color: '#1B244B',
156
159
  marginBottom: -9, // Reduz margem
157
- lineHeight: 18, // Adiciona altura da linha
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":"AAuDO;;;sBA0FN;;kBAjJ+B,OAAO"}
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%', // <-- ocupa toda a largura
12
+ width: '100%',
13
+ height: 104,
13
14
  minWidth: undefined,
14
15
  maxWidth: undefined,
15
16
  }}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
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",