vpt-sebraeds 0.0.49 → 0.0.50

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.
@@ -23,7 +23,7 @@ export const Default = {
23
23
  {/* Dois botões */}
24
24
  <NavigationButton
25
25
  title="Tool's Name"
26
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse et quam sit."
26
+ description="Lorem ipsum dolor sit amet, sed do elit."
27
27
  labels={[
28
28
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
29
29
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
@@ -34,7 +34,7 @@ export const Default = {
34
34
  {/* Um botão */}
35
35
  <NavigationButton
36
36
  title="Tool's Name"
37
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse et quam sit."
37
+ description="Lorem ipsum dolor sit amet."
38
38
  labels={[
39
39
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
40
40
  ]}
@@ -44,7 +44,7 @@ export const Default = {
44
44
  {/* Sem botão */}
45
45
  <NavigationButton
46
46
  title="Tool's Name"
47
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse et quam sit."
47
+ description="Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse et quam sit.."
48
48
  labels={[]}
49
49
  style={{ marginBottom: 32 }}
50
50
  />
@@ -57,7 +57,7 @@ export const Default = {
57
57
  {/* default status */}
58
58
  <NavigationButton
59
59
  title="Tool's Name"
60
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse et quam sit."
60
+ description="Lorem ipsum dolor sit amet, sed."
61
61
  labels={[
62
62
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
63
63
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
@@ -69,7 +69,7 @@ export const Default = {
69
69
  {/* alert status */}
70
70
  <NavigationButton
71
71
  title="Tool's Name"
72
- alertMessage="Lorem ipsum dolor sit amet."
72
+ alertMessage="Verifique seus dados."
73
73
  labels={[
74
74
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
75
75
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
@@ -126,7 +126,7 @@ export const Default = {
126
126
  </SEText>
127
127
  <NavigationButton
128
128
  title="Tool's Name"
129
- alertMessage="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
129
+ alertMessage="Sua conta precisa de atenção imediata."
130
130
  labels={[
131
131
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
132
132
  { text: 'Label', leftIcon: 'home-4-line', rightIcon: 'home-4-line' },
@@ -25,10 +25,12 @@ const NavigationButton = ({
25
25
  // Título
26
26
  titleType = 'ns-sm-body-bold',
27
27
  titleColor = '#1B244B',
28
+ titleLineHeight = 20,
28
29
 
29
30
  // Descrição
30
- descriptionType = 'ns-xs-body',
31
+ descriptionType = 'ns-xxs-body',
31
32
  descriptionColor = '#485274',
33
+ descriptionLineHeight = 18,
32
34
 
33
35
  // Alerta
34
36
  alertIconName = 'alert-line',
@@ -48,10 +50,10 @@ const NavigationButton = ({
48
50
 
49
51
  // Labels
50
52
  labels = [],
51
- labelTextType = 'ns-xs-body',
52
- labelTextColor = '#3B5BDB',
53
+ labelTextType = 'ns-sm-body-semibold',
54
+ labelTextColor = '#2A4FDA',
53
55
  labelIconSize = 16,
54
- labelIconColor = '#3B5BDB',
56
+ labelIconColor = '#2A4FDA',
55
57
 
56
58
  // Dividers
57
59
  dividerColor = '#E2E9FC',
@@ -139,7 +141,7 @@ const NavigationButton = ({
139
141
  <SEText
140
142
  type={descriptionType}
141
143
  color={descriptionColor}
142
- style={styles.description}
144
+ style={[styles.description, { lineHeight: descriptionLineHeight }]}
143
145
  >
144
146
  {description}
145
147
  </SEText>
@@ -151,26 +153,26 @@ const NavigationButton = ({
151
153
 
152
154
  const labelsDividerStyle = {
153
155
  height: 1,
154
- backgroundColor: dividerColor,
155
- marginTop: 12,
156
+ backgroundColor: '#E2E9FC',
157
+ marginTop: 24,
156
158
  marginLeft: -(iconContainerSize + 16),
157
- marginRight: -24,
159
+ marginRight: -(8 + arrowIconSize + 15),
158
160
  };
159
161
 
160
162
  const labelsContainerStyle = {
161
163
  flexDirection: 'row',
162
164
  marginLeft: -(iconContainerSize + 16 + paddingHorizontal),
163
- marginRight: -(paddingHorizontal + 12 + arrowIconSize),
165
+ marginRight: -(paddingHorizontal + 8 + arrowIconSize + 15),
164
166
  marginBottom: -paddingVertical,
165
167
  paddingBottom: 12,
166
168
  backgroundColor: '#FFFFFF',
167
- borderBottomLeftRadius: borderRadius,
168
- borderBottomRightRadius: borderRadius,
169
+ borderBottomLeftRadius: borderRadius - 1,
170
+ borderBottomRightRadius: borderRadius - 1,
169
171
  };
170
172
 
171
173
  const labelVerticalDividerStyle = {
172
174
  width: 1,
173
- backgroundColor: dividerColor,
175
+ backgroundColor: '#E2E9FC',
174
176
  marginTop: 8,
175
177
  marginBottom: 0,
176
178
  };
@@ -192,7 +194,7 @@ const NavigationButton = ({
192
194
  {normalizedLabel.text}
193
195
  </SEText>
194
196
  {normalizedLabel.rightIcon && (
195
- <Icon name={normalizedLabel.rightIcon} size={labelIconSize} color={labelIconColor} style={{ marginLeft: 4 }} />
197
+ <Icon name={normalizedLabel.rightIcon} size={labelIconSize} color={labelIconColor} style={{ marginLeft: 8 }} />
196
198
  )}
197
199
  </View>
198
200
  </React.Fragment>
@@ -211,7 +213,7 @@ const NavigationButton = ({
211
213
  paddingVertical,
212
214
  minHeight,
213
215
  width: '100%',
214
- borderWidth: variant === 'filled' ? 0 : borderWidth,
216
+ borderWidth,
215
217
  borderColor,
216
218
  borderRadius,
217
219
  };
@@ -253,7 +255,7 @@ const NavigationButton = ({
253
255
  <SEText
254
256
  type={titleType}
255
257
  color={titleColor}
256
- style={styles.title}
258
+ style={[styles.title, { lineHeight: titleLineHeight }]}
257
259
  >
258
260
  {title}
259
261
  </SEText>
@@ -276,7 +278,7 @@ const styles = StyleSheet.create({
276
278
  justifyContent: 'flex-start',
277
279
  },
278
280
  title: {
279
- marginBottom: 4,
281
+ marginBottom: 8,
280
282
  },
281
283
  description: {
282
284
  lineHeight: 20,
@@ -304,13 +306,15 @@ const styles = StyleSheet.create({
304
306
  paddingBottom: 4,
305
307
  },
306
308
  labelText: {
307
- marginLeft: 4,
309
+ marginLeft: 8,
308
310
  },
309
311
  arrowContainer: {
310
- marginLeft: 12,
312
+ marginLeft: 8,
313
+ marginRight: 15,
311
314
  justifyContent: 'flex-start',
312
315
  alignItems: 'center',
313
316
  paddingTop: 2,
317
+ flexShrink: 0,
314
318
  },
315
319
  });
316
320
 
@@ -1,5 +1,5 @@
1
1
  export default NavigationButton;
2
- declare function NavigationButton({ title, description, alertMessage, hideContent, maskedContent, showValueIcon, iconType, iconName, iconSize, iconColor, iconContainerSize, iconContainerRadius, iconContainerColor, titleType, titleColor, descriptionType, descriptionColor, alertIconName, alertIconSize, alertColor, valueIconName, valueIconSize, valueIconColor, showArrow, arrowIconName, arrowIconSize, arrowIconColor, labels, labelTextType, labelTextColor, labelIconSize, labelIconColor, dividerColor, variant, backgroundColor, filledBackgroundColor, borderColor, borderWidth, borderRadius, paddingHorizontal, paddingVertical, minHeight, onPress, style, }: {
2
+ declare function NavigationButton({ title, description, alertMessage, hideContent, maskedContent, showValueIcon, iconType, iconName, iconSize, iconColor, iconContainerSize, iconContainerRadius, iconContainerColor, titleType, titleColor, titleLineHeight, descriptionType, descriptionColor, descriptionLineHeight, alertIconName, alertIconSize, alertColor, valueIconName, valueIconSize, valueIconColor, showArrow, arrowIconName, arrowIconSize, arrowIconColor, labels, labelTextType, labelTextColor, labelIconSize, labelIconColor, dividerColor, variant, backgroundColor, filledBackgroundColor, borderColor, borderWidth, borderRadius, paddingHorizontal, paddingVertical, minHeight, onPress, style, }: {
3
3
  title?: string | undefined;
4
4
  description?: string | undefined;
5
5
  alertMessage?: null | undefined;
@@ -15,8 +15,10 @@ declare function NavigationButton({ title, description, alertMessage, hideConten
15
15
  iconContainerColor?: string | undefined;
16
16
  titleType?: string | undefined;
17
17
  titleColor?: string | undefined;
18
+ titleLineHeight?: number | undefined;
18
19
  descriptionType?: string | undefined;
19
20
  descriptionColor?: string | undefined;
21
+ descriptionLineHeight?: number | undefined;
20
22
  alertIconName?: string | undefined;
21
23
  alertIconSize?: number | undefined;
22
24
  alertColor?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/Tools/NavigationButton/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwQC;kBA9QiB,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/Tools/NavigationButton/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0QC;kBAhRiB,OAAO"}
@@ -9,9 +9,9 @@ title = "Tool's Name", description = 'Lorem ipsum dolor sit amet, consectetur ad
9
9
  // Ícone principal
10
10
  iconType = null, iconName = 'image-line', iconSize = 16, iconColor = '#3B5BDB', iconContainerSize = 32, iconContainerRadius = 6, iconContainerColor = '#E6ECFF',
11
11
  // Título
12
- titleType = 'ns-sm-body-bold', titleColor = '#1B244B',
12
+ titleType = 'ns-sm-body-bold', titleColor = '#1B244B', titleLineHeight = 20,
13
13
  // Descrição
14
- descriptionType = 'ns-xs-body', descriptionColor = '#485274',
14
+ descriptionType = 'ns-xxs-body', descriptionColor = '#485274', descriptionLineHeight = 18,
15
15
  // Alerta
16
16
  alertIconName = 'alert-line', alertIconSize = 16, alertColor = '#E53935',
17
17
  // Valor com ícone
@@ -19,7 +19,7 @@ valueIconName = 'eye-line', valueIconSize = 16, valueIconColor = '#485274',
19
19
  // Seta
20
20
  showArrow = true, arrowIconName = 'arrow-right-line', arrowIconSize = 20, arrowIconColor = '#1B244B',
21
21
  // Labels
22
- labels = [], labelTextType = 'ns-xs-body', labelTextColor = '#3B5BDB', labelIconSize = 16, labelIconColor = '#3B5BDB',
22
+ labels = [], labelTextType = 'ns-sm-body-semibold', labelTextColor = '#2A4FDA', labelIconSize = 16, labelIconColor = '#2A4FDA',
23
23
  // Dividers
24
24
  dividerColor = '#E2E9FC',
25
25
  // Container
@@ -66,7 +66,7 @@ onPress, style, }) => {
66
66
  </SEText>
67
67
  </View>);
68
68
  }
69
- return (<SEText type={descriptionType} color={descriptionColor} style={styles.description}>
69
+ return (<SEText type={descriptionType} color={descriptionColor} style={[styles.description, { lineHeight: descriptionLineHeight }]}>
70
70
  {description}
71
71
  </SEText>);
72
72
  };
@@ -75,24 +75,24 @@ onPress, style, }) => {
75
75
  return null;
76
76
  const labelsDividerStyle = {
77
77
  height: 1,
78
- backgroundColor: dividerColor,
79
- marginTop: 12,
78
+ backgroundColor: '#E2E9FC',
79
+ marginTop: 24,
80
80
  marginLeft: -(iconContainerSize + 16),
81
- marginRight: -24,
81
+ marginRight: -(8 + arrowIconSize + 15),
82
82
  };
83
83
  const labelsContainerStyle = {
84
84
  flexDirection: 'row',
85
85
  marginLeft: -(iconContainerSize + 16 + paddingHorizontal),
86
- marginRight: -(paddingHorizontal + 12 + arrowIconSize),
86
+ marginRight: -(paddingHorizontal + 8 + arrowIconSize + 15),
87
87
  marginBottom: -paddingVertical,
88
88
  paddingBottom: 12,
89
89
  backgroundColor: '#FFFFFF',
90
- borderBottomLeftRadius: borderRadius,
91
- borderBottomRightRadius: borderRadius,
90
+ borderBottomLeftRadius: borderRadius - 1,
91
+ borderBottomRightRadius: borderRadius - 1,
92
92
  };
93
93
  const labelVerticalDividerStyle = {
94
94
  width: 1,
95
- backgroundColor: dividerColor,
95
+ backgroundColor: '#E2E9FC',
96
96
  marginTop: 8,
97
97
  marginBottom: 0,
98
98
  };
@@ -108,7 +108,7 @@ onPress, style, }) => {
108
108
  <SEText type={labelTextType} color={labelTextColor} style={styles.labelText}>
109
109
  {normalizedLabel.text}
110
110
  </SEText>
111
- {normalizedLabel.rightIcon && (<Icon name={normalizedLabel.rightIcon} size={labelIconSize} color={labelIconColor} style={{ marginLeft: 4 }}/>)}
111
+ {normalizedLabel.rightIcon && (<Icon name={normalizedLabel.rightIcon} size={labelIconSize} color={labelIconColor} style={{ marginLeft: 8 }}/>)}
112
112
  </View>
113
113
  </React.Fragment>);
114
114
  })}
@@ -123,7 +123,7 @@ onPress, style, }) => {
123
123
  paddingVertical,
124
124
  minHeight,
125
125
  width: '100%',
126
- borderWidth: variant === 'filled' ? 0 : borderWidth,
126
+ borderWidth,
127
127
  borderColor,
128
128
  borderRadius,
129
129
  };
@@ -150,7 +150,7 @@ onPress, style, }) => {
150
150
  </View>
151
151
 
152
152
  <View style={styles.contentContainer}>
153
- <SEText type={titleType} color={titleColor} style={styles.title}>
153
+ <SEText type={titleType} color={titleColor} style={[styles.title, { lineHeight: titleLineHeight }]}>
154
154
  {title}
155
155
  </SEText>
156
156
  {renderDescription()}
@@ -168,7 +168,7 @@ const styles = StyleSheet.create({
168
168
  justifyContent: 'flex-start',
169
169
  },
170
170
  title: {
171
- marginBottom: 4,
171
+ marginBottom: 8,
172
172
  },
173
173
  description: {
174
174
  lineHeight: 20,
@@ -196,13 +196,15 @@ const styles = StyleSheet.create({
196
196
  paddingBottom: 4,
197
197
  },
198
198
  labelText: {
199
- marginLeft: 4,
199
+ marginLeft: 8,
200
200
  },
201
201
  arrowContainer: {
202
- marginLeft: 12,
202
+ marginLeft: 8,
203
+ marginRight: 15,
203
204
  justifyContent: 'flex-start',
204
205
  alignItems: 'center',
205
206
  paddingTop: 2,
207
+ flexShrink: 0,
206
208
  },
207
209
  });
208
210
  export default NavigationButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
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",