vpt-sebraeds 0.0.21 → 0.0.22

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.
@@ -1,13 +1,16 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
2
+ import { View, StyleSheet, TouchableOpacity } from 'react-native';
3
3
  import PropTypes from 'prop-types';
4
4
  import Button from '../Button';
5
5
  import Icon from '../Icon';
6
+ import SEText from '../SEText';
6
7
 
7
8
  const TaskCard = ({
8
9
  title,
9
10
  titleIcon,
10
- titleColor = '#1B244B',
11
+ titleColor = '#1F1F1F',
12
+ subtitle,
13
+ subtitleColor = '#687499',
11
14
  children,
12
15
  middleContent,
13
16
  buttons = [],
@@ -18,8 +21,10 @@ const TaskCard = ({
18
21
  showMoreMenu = false,
19
22
  onMoreMenuPress,
20
23
  backgroundColor = '#FFFFFF',
24
+ backgroundColorIcon = '#FFFFFF',
21
25
  borderRadius = 12,
22
26
  padding = 20,
27
+ shadow = true,
23
28
  alignContentWithTitle = true, // Nova prop para controlar alinhamento
24
29
  style,
25
30
  }) => {
@@ -50,10 +55,6 @@ const TaskCard = ({
50
55
  iconName={button.iconName}
51
56
  iconPosition={button.iconPosition || 'both'}
52
57
  expand={true}
53
- backgroundColor={button.backgroundColor}
54
- borderColor={button.borderColor}
55
- borderWidth={button.borderWidth}
56
- textColor={button.textColor}
57
58
  />
58
59
  </View>
59
60
  );
@@ -66,31 +67,25 @@ const TaskCard = ({
66
67
  if (!footerText) return null;
67
68
 
68
69
  return (
69
- <>
70
- {/* Divider antes do footer */}
71
- <View style={styles.footerDivider} />
72
-
73
- <TouchableOpacity
74
- style={styles.footerContainer}
75
- onPress={onFooterPress}
76
- activeOpacity={0.7}
70
+ <TouchableOpacity
71
+ style={styles.footerContainer}
72
+ onPress={onFooterPress}
73
+ activeOpacity={0.7}
74
+ >
75
+ <SEText
76
+ type="ns-sm-body"
77
+ color={footerTextColor}
78
+ style={styles.footerText}
77
79
  >
78
- <Text
79
- style={[
80
- styles.footerText,
81
- { color: footerTextColor }
82
- ]}
83
- >
84
- {footerText}
85
- </Text>
86
- <Icon
87
- name="arrow-right-line"
88
- size={16}
89
- color={footerTextColor}
90
- style={styles.footerIcon}
91
- />
92
- </TouchableOpacity>
93
- </>
80
+ {footerText}
81
+ </SEText>
82
+ <Icon
83
+ name="arrow-right-line"
84
+ size={16}
85
+ color={footerTextColor}
86
+ style={styles.footerIcon}
87
+ />
88
+ </TouchableOpacity>
94
89
  );
95
90
  };
96
91
 
@@ -103,7 +98,7 @@ const TaskCard = ({
103
98
  borderRadius,
104
99
  padding,
105
100
  },
106
- styles.border, // Substituindo shadow por border
101
+ shadow && styles.shadow,
107
102
  style,
108
103
  ]}
109
104
  >
@@ -112,13 +107,20 @@ const TaskCard = ({
112
107
  <View style={styles.header}>
113
108
  <View style={styles.headerContent}>
114
109
  {titleIcon && (
115
- <View style={styles.titleIconContainer}>
110
+ <View style={[styles.titleIconContainer, backgroundColorIcon && {backgroundColor: backgroundColorIcon}]}>
116
111
  {titleIcon}
117
112
  </View>
118
113
  )}
119
- <Text style={[styles.title, { color: titleColor }]}>
120
- {title}
121
- </Text>
114
+ <View style={{ flex: 1 }}>
115
+ <SEText type="ns-sm-body-bold" color={titleColor} style={styles.title}>
116
+ {title}
117
+ </SEText>
118
+ {subtitle && (
119
+ <SEText type="ns-sm-body" color={subtitleColor} style={styles.subtitle}>
120
+ {subtitle}
121
+ </SEText>
122
+ )}
123
+ </View>
122
124
  </View>
123
125
  {showMoreMenu && (
124
126
  <TouchableOpacity
@@ -174,6 +176,8 @@ TaskCard.propTypes = {
174
176
  title: PropTypes.string,
175
177
  titleIcon: PropTypes.element,
176
178
  titleColor: PropTypes.string,
179
+ subtitle: PropTypes.string,
180
+ subtitleColor: PropTypes.string,
177
181
  children: PropTypes.node,
178
182
  middleContent: PropTypes.node,
179
183
  buttons: PropTypes.arrayOf(
@@ -196,28 +200,39 @@ TaskCard.propTypes = {
196
200
  backgroundColor: PropTypes.string,
197
201
  borderRadius: PropTypes.number,
198
202
  padding: PropTypes.number,
203
+ shadow: PropTypes.bool,
199
204
  alignContentWithTitle: PropTypes.bool,
200
205
  style: PropTypes.object,
201
206
  };
202
207
 
203
208
  TaskCard.defaultProps = {
204
209
  titleColor: '#1F1F1F',
210
+ subtitleColor: '#687499',
205
211
  buttons: [],
206
212
  footerText: 'Lembrar mais tarde',
207
213
  footerTextColor: '#687499',
208
214
  backgroundColor: '#FFFFFF',
209
215
  borderRadius: 12,
210
216
  padding: 20,
217
+ shadow: true,
211
218
  alignContentWithTitle: true,
212
219
  };
213
220
 
214
221
  const styles = StyleSheet.create({
215
222
  container: {
216
223
  width: '100%',
217
- },
218
- border: {
219
224
  borderWidth: 1.5,
220
- borderColor: '#E2E9FC', // Neutros/neutro-200
225
+ borderColor: '#E2E9FC',
226
+ },
227
+ shadow: {
228
+ // shadowColor: '#000',
229
+ // shadowOffset: {
230
+ // width: 0,
231
+ // height: 2,
232
+ // },
233
+ // shadowOpacity: 0.1,
234
+ // shadowRadius: 8,
235
+ // elevation: 2,
221
236
  },
222
237
  header: {
223
238
  flexDirection: 'row',
@@ -227,7 +242,7 @@ const styles = StyleSheet.create({
227
242
  },
228
243
  headerContent: {
229
244
  flexDirection: 'row',
230
- alignItems: 'center',
245
+ alignItems: 'flex-start',
231
246
  flex: 1,
232
247
  },
233
248
  moreMenuButton: {
@@ -235,15 +250,22 @@ const styles = StyleSheet.create({
235
250
  borderRadius: 4,
236
251
  },
237
252
  titleIconContainer: {
238
- marginRight: 8,
253
+ justifyContent:'center',
254
+ alignItems:'center',
255
+ borderRadius:6,
256
+ position:'relative',
257
+ width: 35,
258
+ height: 35,
259
+ marginRight: 16,
239
260
  },
240
261
  title: {
241
- fontFamily: 'Nunito Sans',
242
- fontWeight: '700',
243
- fontSize: 18, // Tipografia/Sizes/Corpo 1
244
- lineHeight: 28, // Tipografia/Line Height/line-height-Corpo-1
245
- textAlign: 'center',
246
- color: '#1B244B',
262
+ fontSize: 16,
263
+ lineHeight: 24,
264
+ marginBottom: 4,
265
+ },
266
+ subtitle: {
267
+ fontSize: 14,
268
+ lineHeight: 20,
247
269
  },
248
270
  contentContainer: {
249
271
  marginBottom: 16,
@@ -269,27 +291,21 @@ const styles = StyleSheet.create({
269
291
  bottomContentContainer: {
270
292
  marginBottom: 16,
271
293
  },
272
- footerDivider: {
273
- height: 1,
274
- backgroundColor: '#E2E9FC',
275
- marginHorizontal: -20, // Compensa o padding do card para linha cheia
276
- marginBottom: 16,
277
- },
278
294
  footerContainer: {
279
295
  flexDirection: 'row',
280
296
  alignItems: 'center',
281
297
  justifyContent: 'center',
282
- paddingBottom: 0,
298
+ paddingVertical: 4,
283
299
  },
284
300
  footerText: {
285
301
  fontSize: 14,
286
302
  fontWeight: '400',
287
- fontFamily: 'Nunito Sans',
288
303
  textAlign: 'center',
304
+ textDecorationLine: 'underline',
289
305
  },
290
306
  footerIcon: {
291
307
  marginLeft: 4,
292
308
  },
293
309
  });
294
310
 
295
- export default TaskCard;
311
+ export default TaskCard;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Checkbox/index.jsx"],"names":[],"mappings":";AAUA;;;;;;;sBAoCC;;;;;;;;;;;;;;;;;;;QAgBW,mCAAS;;;;;;kBA9DH,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Checkbox/index.jsx"],"names":[],"mappings":";AAUA;;;;;;;sBAuCC;;;;;;;;;;;;;;;;;;;QAgBW,mCAAS;;;;;;kBAjEH,OAAO"}
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { View, Text, TouchableOpacity, StyleSheet, } from 'react-native';
3
+ import { View, TouchableOpacity, StyleSheet, } from 'react-native';
4
4
  import Icon from '../Icon';
5
+ import SEText from '../SEText';
5
6
  const Checkbox = ({ label, checked, disabled, variant, onChange, noBorder = false }) => {
6
7
  return (<TouchableOpacity style={[
7
8
  styles.container,
@@ -14,12 +15,12 @@ const Checkbox = ({ label, checked, disabled, variant, onChange, noBorder = fals
14
15
  ]}>
15
16
  {checked && (<Icon name={variant} size={noBorder ? 20 : 14} color={disabled ? "#96A1C1" : (noBorder ? "#4F7CFE" : "#FFF")}/>)}
16
17
  </View>
17
- {label && (<Text style={[
18
+ {label && (<SEText type="ns-sm-body" style={[
18
19
  styles.label,
19
20
  disabled && styles.labelDisabled,
20
21
  ]}>
21
22
  {label}
22
- </Text>)}
23
+ </SEText>)}
23
24
  </TouchableOpacity>);
24
25
  };
25
26
  Checkbox.propTypes = {
@@ -82,6 +83,7 @@ const styles = StyleSheet.create({
82
83
  color: '#A1A1A1',
83
84
  },
84
85
  label: {
86
+ fontFamily: 'NunitoSans_10pt-Medium',
85
87
  marginLeft: 6,
86
88
  fontSize: 14,
87
89
  color: '#1F1F1F',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/FilterTag/index.jsx"],"names":[],"mappings":";AAGA;;;sBA8BC;kBAjC+B,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/FilterTag/index.jsx"],"names":[],"mappings":";AAIA;;;sBA6BC;kBAjC+B,OAAO"}
@@ -1,5 +1,6 @@
1
1
  import React, { useState } from 'react';
2
- import { TouchableOpacity, Text, StyleSheet, View } from 'react-native';
2
+ import { TouchableOpacity, StyleSheet, View } from 'react-native';
3
+ import SEText from '../SEText';
3
4
  const FilterTag = ({ label, onRemove }) => {
4
5
  const [isHovered, setIsHovered] = useState(false);
5
6
  const [isFocused, setIsFocused] = useState(false);
@@ -13,9 +14,9 @@ const FilterTag = ({ label, onRemove }) => {
13
14
  };
14
15
  return (<TouchableOpacity style={getContainerStyle()} onPressIn={() => setIsFocused(true)} onPressOut={() => setIsFocused(false)} onHoverIn={() => setIsHovered(true)} onHoverOut={() => setIsHovered(false)} activeOpacity={0.8}>
15
16
  <View style={styles.content}>
16
- <Text style={styles.label}>{label}</Text>
17
+ <SEText type="ns-sm-body" style={styles.label}>{label}</SEText>
17
18
  <TouchableOpacity onPress={onRemove} style={styles.removeButton}>
18
- <Text style={styles.removeIcon}>×</Text>
19
+ <SEText type="ns-sm-body-bold" style={styles.removeIcon}>×</SEText>
19
20
  </TouchableOpacity>
20
21
  </View>
21
22
  </TouchableOpacity>);
@@ -44,7 +45,6 @@ const styles = StyleSheet.create({
44
45
  fontSize: 14,
45
46
  color: '#4F7CFE',
46
47
  marginRight: 4,
47
- fontFamily: 'Nunito Sans',
48
48
  },
49
49
  removeButton: {
50
50
  padding: 2,
@@ -52,8 +52,6 @@ const styles = StyleSheet.create({
52
52
  removeIcon: {
53
53
  fontSize: 16,
54
54
  color: '#4F7CFE',
55
- fontWeight: 'bold',
56
- fontFamily: 'Nunito Sans',
57
55
  },
58
56
  });
59
57
  export default FilterTag;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Link/index.jsx"],"names":[],"mappings":";AAIA;;;;sBA0BC;kBA9B+B,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Link/index.jsx"],"names":[],"mappings":";AAKA;;;;sBA+BC;kBApC+B,OAAO"}
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
- import { TouchableOpacity, Text, StyleSheet, View } from 'react-native';
2
+ import { TouchableOpacity, StyleSheet, View } from 'react-native';
3
3
  import Icon from '../Icon';
4
+ import SEText from '../SEText';
4
5
  const Link = ({ label, onPress, visited = false }) => {
5
6
  const [isFocused, setIsFocused] = useState(false);
6
7
  const getContainerStyle = () => {
@@ -12,7 +13,9 @@ const Link = ({ label, onPress, visited = false }) => {
12
13
  };
13
14
  return (<TouchableOpacity style={getContainerStyle()} onPress={onPress} onPressIn={() => setIsFocused(true)} onPressOut={() => setIsFocused(false)}>
14
15
  <View style={styles.content}>
15
- <Text style={visited ? { ...styles.label, ...styles.textVisited } : { ...styles.label, ...styles.textDefault }}>{label}</Text>
16
+ <SEText type="ns-sm-body-semibold" style={visited ? { ...styles.label, ...styles.textVisited } : { ...styles.label, ...styles.textDefault }}>
17
+ {label}
18
+ </SEText>
16
19
  <Icon name="arrow-right-line" size={20} color={visited ? styles.textVisited.color : styles.textDefault.color}/>
17
20
  </View>
18
21
  </TouchableOpacity>);
@@ -21,7 +24,7 @@ const styles = StyleSheet.create({
21
24
  container: {
22
25
  borderRadius: 4,
23
26
  paddingVertical: 4,
24
- paddingHorizontal: 8,
27
+ // paddingHorizontal: 8,
25
28
  },
26
29
  containerFocused: {
27
30
  borderColor: '#6684FF',
@@ -34,9 +37,7 @@ const styles = StyleSheet.create({
34
37
  },
35
38
  label: {
36
39
  fontSize: 14,
37
- fontWeight: '500',
38
40
  marginRight: 4,
39
- fontFamily: 'Nunito Sans',
40
41
  },
41
42
  textVisited: {
42
43
  color: '#50499D',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ProgressChart/index.jsx"],"names":[],"mappings":"AAGO;;;;;;;;;;;;;;sBA2HN;;kBA9HiB,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ProgressChart/index.jsx"],"names":[],"mappings":"AAIO;;;;;;;;;;;;;;sBAiIN;;kBArIiB,OAAO"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { View, Text, StyleSheet } from 'react-native';
2
+ import { View, StyleSheet } from 'react-native';
3
+ import SEText from '../SEText';
3
4
  export const ProgressChart = ({ title = "Progresso", progress = 0, // 0 a 100
4
5
  size = 'medium', // 'small', 'medium', 'large'
5
6
  color = '#2563EB', // Cor principal
@@ -22,11 +23,11 @@ showLegend = false, }) => {
22
23
  return (<View style={[styles.multiContainer, style]}>
23
24
  {/* Legenda */}
24
25
  {showLegend && legend && Array.isArray(legend) && (<View style={[styles.legendContainer, { width: tempConfig.width, marginLeft: 8, marginRight: 8 }]}>
25
- <Text style={styles.legendTitle}>Legenda</Text>
26
+ <SEText type="ns-xs-body-semibold" style={styles.legendTitle}>Legenda</SEText>
26
27
  <View style={styles.legendItems}>
27
28
  {legend.map((item, index) => (<View key={index} style={styles.legendItem}>
28
29
  <View style={[styles.legendColor, { backgroundColor: item.color }]}/>
29
- <Text style={styles.legendLabel}>{item.label}</Text>
30
+ <SEText type="ns-xs-body-semibold" style={styles.legendLabel}>{item.label}</SEText>
30
31
  </View>))}
31
32
  </View>
32
33
  </View>)}
@@ -64,12 +65,12 @@ showLegend = false, }) => {
64
65
  return (<View style={[styles.container, { width: config.width }, style]}>
65
66
  {/* Container do título com porcentagem */}
66
67
  <View style={styles.titleContainer}>
67
- {showLabel && title && (<Text style={[styles.title, { fontSize: config.titleSize }]}>
68
+ {showLabel && title && (<SEText type={config.titleSize === 14 ? 'ns-sm-body-semibold' : 'ns-xs-body-semibold'} style={[styles.title, { fontSize: config.titleSize }]}>
68
69
  {title}
69
- {showPercentage && (<Text style={[styles.percentage, { fontSize: config.titleSize }]}>
70
+ {showPercentage && (<SEText type={config.titleSize === 14 ? 'ns-sm-body-semibold' : 'ns-xs-body-semibold'} style={[styles.percentage, { fontSize: config.titleSize }]}>
70
71
  {' '}{progressPercent}%
71
- </Text>)}
72
- </Text>)}
72
+ </SEText>)}
73
+ </SEText>)}
73
74
  </View>
74
75
 
75
76
  {/* Barra de progresso */}
@@ -121,20 +122,16 @@ const styles = StyleSheet.create({
121
122
  fontSize: 12,
122
123
  fontWeight: '600', // SemiBold como no Figma
123
124
  color: '#1B244B', // Cor exata do Figma
124
- fontFamily: 'Nunito Sans',
125
125
  },
126
126
  titleContainer: {
127
127
  marginBottom: 8,
128
128
  },
129
129
  title: {
130
- fontWeight: '600', // SemiBold como no Figma
130
+ // fontWeight: '800', // SemiBold como no Figma
131
131
  color: '#1B244B', // Cor exata do Figma
132
- fontFamily: 'Nunito Sans',
133
132
  },
134
133
  percentage: {
135
- fontWeight: '600', // SemiBold como no Figma
136
134
  color: '#1B244B', // Cor exata do Figma
137
- fontFamily: 'Nunito Sans',
138
135
  },
139
136
  progressTrack: {
140
137
  borderRadius: 2, // Conforme especificação do Figma
@@ -1,15 +1,18 @@
1
1
  export default Select;
2
- declare function Select({ label, placeholder, value, onSelect, options, error, success, disabled, supportText, variant, }: {
2
+ declare function Select({ label, placeholder, value, onSelect, onValueChange, options, error, success, disabled, supportText, variant, displayMode, innerTitle }: {
3
3
  label: any;
4
4
  placeholder?: string | undefined;
5
5
  value: any;
6
6
  onSelect: any;
7
+ onValueChange: any;
7
8
  options?: never[] | undefined;
8
9
  error: any;
9
10
  success: any;
10
11
  disabled: any;
11
12
  supportText: any;
12
13
  variant?: string | undefined;
14
+ displayMode: any;
15
+ innerTitle: any;
13
16
  }): React.JSX.Element;
14
17
  import React from 'react';
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAKA;;;;;;;;;;;sBAiIC;kBAtIkD,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;sBAgJC;kBAtJ0C,OAAO"}
@@ -1,13 +1,12 @@
1
- import React, { useState, useRef, useEffect } from 'react';
2
- import { View, Text, TouchableOpacity, StyleSheet, Animated } from 'react-native';
1
+ import React, { useState, useEffect } from 'react';
2
+ import { View, TouchableOpacity, StyleSheet } from 'react-native';
3
+ import { SEText } from 'vpt-sebraeds';
3
4
  import Icon from '../Icon';
4
5
  import Dropdown from '../Dropdown';
5
- const Select = ({ label, placeholder = "Selecione uma opção", value, onSelect, options = [], error, success, disabled, supportText, variant = "default", // "default", "inverse"
6
- }) => {
6
+ const Select = ({ label, placeholder = "Selecione uma opção", value, onSelect, onValueChange, // Manter compatibilidade
7
+ options = [], error, success, disabled, supportText, variant = "default", displayMode, innerTitle }) => {
7
8
  const [isOpen, setIsOpen] = useState(false);
8
9
  const [selectedOption, setSelectedOption] = useState(value || null);
9
- const dropdownHeight = useRef(new Animated.Value(0)).current;
10
- const selectRef = useRef(null);
11
10
  useEffect(() => {
12
11
  if (selectedOption !== value) {
13
12
  setSelectedOption(value);
@@ -15,15 +14,22 @@ const Select = ({ label, placeholder = "Selecione uma opção", value, onSelect,
15
14
  }, [value]);
16
15
  const toggleDropdown = () => {
17
16
  if (!disabled) {
18
- const toValue = isOpen ? 0 : Math.min(options.length * 48, 240); // Max height 240px
19
- Animated.timing(dropdownHeight, {
20
- toValue,
21
- duration: 200,
22
- useNativeDriver: false,
23
- }).start();
24
17
  setIsOpen(!isOpen);
25
18
  }
26
19
  };
20
+ const handleSelect = (option) => {
21
+ console.log("Selected option:", option);
22
+ // setSelectedOption(option.map(option => option.value));
23
+ setSelectedOption(option.value);
24
+ setIsOpen(false);
25
+ // Compatibilidade com ambas as props
26
+ if (onSelect) {
27
+ onSelect(option);
28
+ }
29
+ // if (onValueChange) {
30
+ // onValueChange(option);
31
+ // }
32
+ };
27
33
  const getContainerStyle = () => {
28
34
  const baseStyle = variant === "inverse" ? styles.containerInverse : styles.container;
29
35
  if (disabled)
@@ -84,27 +90,25 @@ const Select = ({ label, placeholder = "Selecione uma opção", value, onSelect,
84
90
  };
85
91
  const wrapperStyle = variant === "inverse" ? styles.wrapperInverse : styles.wrapper;
86
92
  return (<View style={wrapperStyle}>
87
- {label && <Text style={getLabelStyle()}>{label}</Text>}
88
-
93
+ {label && <SEText type="ns-sm-body" style={getLabelStyle()}>{label}</SEText>}
94
+
89
95
  <View style={styles.selectContainer}>
90
- <TouchableOpacity ref={selectRef} style={getContainerStyle()} onPress={toggleDropdown} activeOpacity={disabled ? 1 : 0.7}>
91
- <Text style={[
96
+ <TouchableOpacity style={getContainerStyle()} onPress={toggleDropdown} activeOpacity={disabled ? 1 : 0.7}>
97
+ <SEText type="ns-sm-body" style={[
92
98
  getTextStyle(),
93
99
  !selectedOption && (variant === "inverse" ? styles.placeholderTextInverse : styles.placeholderText)
94
- ]}>
95
- {selectedOption ? (selectedOption.label || selectedOption) : placeholder}
96
- </Text>
97
-
100
+ ]} numberOfLines={1} ellipsizeMode="tail">
101
+ {selectedOption ? (selectedOption.label ||
102
+ selectedOption) : placeholder}
103
+ </SEText>
104
+
98
105
  <Icon name={isOpen ? "arrow-up-s-line" : "arrow-down-s-line"} size={20} color={getIconColor()}/>
99
106
  </TouchableOpacity>
100
107
 
101
- <Dropdown options={options} isOpen={isOpen} setIsOpen={setIsOpen} onSelect={(newValue) => {
102
- setSelectedOption(newValue);
103
- onSelect && onSelect(newValue);
104
- }}/>
108
+ <Dropdown title={innerTitle} options={options} isOpen={isOpen} setIsOpen={setIsOpen} onSelect={handleSelect} displayMode={displayMode} selectedValue={selectedOption}/>
105
109
  </View>
106
110
 
107
- {supportText && <Text style={getSupportTextStyle()}>{supportText}</Text>}
111
+ {supportText && <SEText type="ns-xs-body" style={getSupportTextStyle()}>{supportText}</SEText>}
108
112
  </View>);
109
113
  };
110
114
  const styles = StyleSheet.create({
@@ -125,10 +129,9 @@ const styles = StyleSheet.create({
125
129
  flexDirection: 'row',
126
130
  alignItems: 'center',
127
131
  justifyContent: 'space-between',
128
- borderWidth: 1,
129
- borderColor: '#E6EEFF',
132
+ borderWidth: 2,
133
+ borderColor: '#96ACFF',
130
134
  borderRadius: 8,
131
- backgroundColor: '#F5F8FF',
132
135
  paddingHorizontal: 12,
133
136
  height: 40,
134
137
  },
@@ -180,10 +183,9 @@ const styles = StyleSheet.create({
180
183
  },
181
184
  // LABEL STYLES
182
185
  label: {
183
- fontSize: 14,
186
+ fontSize: 18,
184
187
  color: '#333333',
185
- fontWeight: '500',
186
- fontFamily: 'Nunito Sans',
188
+ marginBottom: 4,
187
189
  },
188
190
  labelError: {
189
191
  color: '#FF4D4F',
@@ -195,10 +197,8 @@ const styles = StyleSheet.create({
195
197
  color: '#BFBFBF',
196
198
  },
197
199
  labelInverse: {
198
- fontSize: 14,
200
+ fontSize: 18,
199
201
  color: '#FFFFFF',
200
- fontWeight: '500',
201
- fontFamily: 'Nunito Sans',
202
202
  },
203
203
  labelInverseError: {
204
204
  color: '#FF4D4F',
@@ -214,7 +214,7 @@ const styles = StyleSheet.create({
214
214
  flex: 1,
215
215
  fontSize: 14,
216
216
  color: '#333333',
217
- fontFamily: 'Nunito Sans',
217
+ textTransform: 'capitalize',
218
218
  },
219
219
  textError: {
220
220
  color: '#FF4D4F',
@@ -229,7 +229,6 @@ const styles = StyleSheet.create({
229
229
  flex: 1,
230
230
  fontSize: 14,
231
231
  color: '#FFFFFF',
232
- fontFamily: 'Nunito Sans',
233
232
  },
234
233
  textInverseError: {
235
234
  color: '#FF4D4F',
@@ -251,7 +250,6 @@ const styles = StyleSheet.create({
251
250
  supportText: {
252
251
  fontSize: 12,
253
252
  color: '#4F7CFE',
254
- fontFamily: 'Nunito Sans',
255
253
  },
256
254
  supportTextError: {
257
255
  color: '#FF4D4F',
@@ -262,7 +260,6 @@ const styles = StyleSheet.create({
262
260
  supportTextInverse: {
263
261
  fontSize: 12,
264
262
  color: 'rgba(255, 255, 255, 0.8)',
265
- fontFamily: 'Nunito Sans',
266
263
  },
267
264
  supportTextInverseError: {
268
265
  color: '#FF4D4F',
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Table/index.jsx"],"names":[],"mappings":";AAKA;;;;;;;sBAwMC;kBA7MmD,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Table/index.jsx"],"names":[],"mappings":";AAOA;;;;;;;sBA8TC;kBArUsE,OAAO"}