vpt-sebraeds 0.0.84 → 0.0.86
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/Input/index.jsx +3 -2
- package/components/ProgressBar/index.jsx +3 -2
- package/components/SEIcon/CustomIcon/planejadora.jsx +31 -0
- package/components/SEIcon/SEIcon.stories.jsx +1 -0
- package/components/SEIcon/index.js +3 -0
- package/components/Select/index.jsx +3 -2
- package/components/Tools/SearchResult/SearchResult.stories.jsx +1 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/ProgressBar/index.d.ts +2 -1
- package/dist/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/components/ProgressBar/index.js +3 -3
- package/dist/components/SEIcon/CustomIcon/planejadora.d.ts +4 -0
- package/dist/components/SEIcon/CustomIcon/planejadora.d.ts.map +1 -0
- package/dist/components/SEIcon/CustomIcon/planejadora.js +8 -0
- package/dist/components/SEIcon/index.d.ts.map +1 -1
- package/dist/components/SEIcon/index.js +3 -0
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -2
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ const Input = React.forwardRef((
|
|
|
38
38
|
labelIconColor = null,
|
|
39
39
|
labelIconStyle = {},
|
|
40
40
|
onLabelIconPress = null,
|
|
41
|
+
labelStyle,
|
|
41
42
|
...textInputProps
|
|
42
43
|
} = props;
|
|
43
44
|
|
|
@@ -169,7 +170,7 @@ const Input = React.forwardRef((
|
|
|
169
170
|
|
|
170
171
|
return (
|
|
171
172
|
<View style={styles.labelContainer}>
|
|
172
|
-
<SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>
|
|
173
|
+
<SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>
|
|
173
174
|
{onLabelIconPress ? (
|
|
174
175
|
<TouchableOpacity onPress={onLabelIconPress} style={styles.labelIconTouchable}>
|
|
175
176
|
{iconElement}
|
|
@@ -181,7 +182,7 @@ const Input = React.forwardRef((
|
|
|
181
182
|
);
|
|
182
183
|
}
|
|
183
184
|
|
|
184
|
-
return <SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>;
|
|
185
|
+
return <SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>;
|
|
185
186
|
};
|
|
186
187
|
|
|
187
188
|
return (
|
|
@@ -12,6 +12,7 @@ const ProgressBar = ({
|
|
|
12
12
|
color = '#193AB8',
|
|
13
13
|
showLabel = true,
|
|
14
14
|
style,
|
|
15
|
+
barStyle,
|
|
15
16
|
}) => {
|
|
16
17
|
const percent = Math.round(progress * 100);
|
|
17
18
|
|
|
@@ -20,7 +21,7 @@ const ProgressBar = ({
|
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<View style={[styles.container, { opacity }, style]}>
|
|
23
|
-
<View style={styles.barBackground}>
|
|
24
|
+
<View style={[styles.barBackground, barStyle]}>
|
|
24
25
|
<View style={[styles.barFill, { width: `${progressPercent}%`, backgroundColor: color }]} />
|
|
25
26
|
</View>
|
|
26
27
|
{showLabel && (
|
|
@@ -36,7 +37,7 @@ const ProgressBar = ({
|
|
|
36
37
|
|
|
37
38
|
return (
|
|
38
39
|
<View style={[styles.container, { opacity }, style]}>
|
|
39
|
-
<View style={styles.barBackground}>
|
|
40
|
+
<View style={[styles.barBackground, barStyle]}>
|
|
40
41
|
<View style={[styles.barFill, { width: `${percent}%`, backgroundColor: color }]} />
|
|
41
42
|
</View>
|
|
42
43
|
{showLabel && (
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
3
|
+
|
|
4
|
+
const Planejadora = (props) => (
|
|
5
|
+
<Svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width={56}
|
|
8
|
+
height={60}
|
|
9
|
+
viewBox="0 0 56 60"
|
|
10
|
+
fill="none"
|
|
11
|
+
{...props}
|
|
12
|
+
>
|
|
13
|
+
<Path
|
|
14
|
+
fill="#F3F5FF"
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
d="M25.6332 0.0365736C14.7438 0.545802 7.29725 9.9128 3.6314 20.5811C-0.497211 32.5962 -2.9487 47.2013 6.72918 55.0507C17.1405 63.495 31.8304 60.2246 42.4506 52.0661C52.7704 44.1384 58.795 30.8351 54.7086 18.1925C50.7281 5.87768 38.121 -0.547409 25.6332 0.0365736Z"
|
|
18
|
+
/>
|
|
19
|
+
<Path
|
|
20
|
+
fill="#263582"
|
|
21
|
+
d="M23 21V19H25V21H31V19H33V21H37C37.2652 21 37.5196 21.1054 37.7071 21.2929C37.8946 21.4804 38 21.7348 38 22V27H36V23H33V25H31V23H25V25H23V23H20V37H26V39H19C18.7348 39 18.4804 38.8946 18.2929 38.7071C18.1054 38.5196 18 38.2652 18 38V22C18 21.7348 18.1054 21.4804 18.2929 21.2929C18.4804 21.1054 18.7348 21 19 21H23Z"
|
|
22
|
+
/>
|
|
23
|
+
<Path
|
|
24
|
+
fill="#263582"
|
|
25
|
+
d="M33.0704 39.9591C29.8175 39.9591 27.1807 37.3223 27.1807 34.0694C27.1807 30.8165 29.8175 28.1797 33.0704 28.1797C36.3232 28.1797 38.96 30.8165 38.96 34.0694C38.96 37.3223 36.3232 39.9591 33.0704 39.9591ZM33.0704 38.7811C34.32 38.7811 35.5184 38.2847 36.4021 37.4011C37.2857 36.5175 37.7821 35.319 37.7821 34.0694C37.7821 32.8197 37.2857 31.6213 36.4021 30.7377C35.5184 29.854 34.32 29.3576 33.0704 29.3576C31.8207 29.3576 30.6223 29.854 29.7386 30.7377C28.855 31.6213 28.3586 32.8197 28.3586 34.0694C28.3586 35.319 28.855 36.5175 29.7386 37.4011C30.6223 38.2847 31.8207 38.7811 33.0704 38.7811ZM31.009 35.2473H34.2483C34.3264 35.2473 34.4013 35.2163 34.4565 35.1611C34.5117 35.1058 34.5428 35.0309 34.5428 34.9528C34.5428 34.8747 34.5117 34.7998 34.4565 34.7446C34.4013 34.6894 34.3264 34.6583 34.2483 34.6583H31.8924C31.5019 34.6583 31.1274 34.5032 30.8513 34.2271C30.5751 33.951 30.42 33.5764 30.42 33.1859C30.42 32.7954 30.5751 32.4209 30.8513 32.1448C31.1274 31.8686 31.5019 31.7135 31.8924 31.7135H32.4814V30.5356H33.6593V31.7135H35.1317V32.8914H31.8924C31.8143 32.8914 31.7394 32.9225 31.6842 32.9777C31.629 33.0329 31.5979 33.1078 31.5979 33.1859C31.5979 33.264 31.629 33.3389 31.6842 33.3942C31.7394 33.4494 31.8143 33.4804 31.8924 33.4804H34.2483C34.6388 33.4804 35.0133 33.6355 35.2895 33.9117C35.5656 34.1878 35.7207 34.5623 35.7207 34.9528C35.7207 35.3433 35.5656 35.7179 35.2895 35.994C35.0133 36.2701 34.6388 36.4253 34.2483 36.4253H33.6593V37.6032H32.4814V36.4253H31.009V35.2473Z"
|
|
26
|
+
/>
|
|
27
|
+
</Svg>
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
export default Planejadora;
|
|
31
|
+
|
|
@@ -31,6 +31,7 @@ const customIcons = [
|
|
|
31
31
|
{ type: 'pesquisaRegistroDeMarca', label: 'Pesquisa Registro de Marca' },
|
|
32
32
|
{ type: 'creditoPermutas', label: 'Crédito e Permutas' },
|
|
33
33
|
{ type: 'calculadoraValuation', label: 'Calculadora Valuation' },
|
|
34
|
+
{ type: 'planejadora', label: 'Planejadora' },
|
|
34
35
|
];
|
|
35
36
|
|
|
36
37
|
const meta = {
|
|
@@ -96,6 +96,9 @@ function SEIcon({
|
|
|
96
96
|
case 'calculadoraValuation':
|
|
97
97
|
const CalculadoraValuation = require('../SEIcon/CustomIcon/calculadoraValuation').default;
|
|
98
98
|
return <CalculadoraValuation width={size} height={size} style={style} />;
|
|
99
|
+
case 'planejadora':
|
|
100
|
+
const Planejadora = require('../SEIcon/CustomIcon/planejadora').default;
|
|
101
|
+
return <Planejadora width={size} height={size} style={style} />;
|
|
99
102
|
default: return null;
|
|
100
103
|
}
|
|
101
104
|
}
|
|
@@ -19,7 +19,8 @@ const Select = ({
|
|
|
19
19
|
displayMode,
|
|
20
20
|
innerTitle,
|
|
21
21
|
showCloseButton = false,
|
|
22
|
-
itemGap = 0
|
|
22
|
+
itemGap = 0,
|
|
23
|
+
labelStyle,
|
|
23
24
|
}) => {
|
|
24
25
|
const [isOpen, setIsOpen] = useState(false);
|
|
25
26
|
const [selectedOption, setSelectedOption] = useState(value || null);
|
|
@@ -106,7 +107,7 @@ const Select = ({
|
|
|
106
107
|
|
|
107
108
|
return (
|
|
108
109
|
<View style={wrapperStyle}>
|
|
109
|
-
{label && <SEText type="ns-sm-body" style={getLabelStyle()}>{label}</SEText>}
|
|
110
|
+
{label && <SEText type="ns-sm-body" style={[getLabelStyle(), labelStyle]}>{label}</SEText>}
|
|
110
111
|
|
|
111
112
|
<View style={styles.selectContainer}>
|
|
112
113
|
<TouchableOpacity
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Input/index.jsx"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Input/index.jsx"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH,+EA+MG;kBA7N0C,OAAO"}
|
|
@@ -16,7 +16,7 @@ const Input = React.forwardRef((props, ref) => {
|
|
|
16
16
|
const { label, placeholder, value, onChangeText, error, success, disabled, supportText, mask, maskType, tooltipProps, // <-- Adicione esta prop para receber o tooltip]
|
|
17
17
|
variant = 'default',
|
|
18
18
|
// Props para ícone ao lado do label
|
|
19
|
-
labelIcon = false, labelIconName = 'information-line', labelIconSize = 16, labelIconColor = null, labelIconStyle = {}, onLabelIconPress = null, ...textInputProps } = props;
|
|
19
|
+
labelIcon = false, labelIconName = 'information-line', labelIconSize = 16, labelIconColor = null, labelIconStyle = {}, onLabelIconPress = null, labelStyle, ...textInputProps } = props;
|
|
20
20
|
const handleChangeText = (text) => {
|
|
21
21
|
const maskedText = applyMask(text, maskType);
|
|
22
22
|
if (onChangeText) {
|
|
@@ -146,13 +146,13 @@ const Input = React.forwardRef((props, ref) => {
|
|
|
146
146
|
if (labelIcon) {
|
|
147
147
|
const iconElement = (<Icon name={labelIconName} size={labelIconSize} color={getLabelIconColor()} style={labelIconStyle}/>);
|
|
148
148
|
return (<View style={styles.labelContainer}>
|
|
149
|
-
<SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>
|
|
149
|
+
<SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>
|
|
150
150
|
{onLabelIconPress ? (<TouchableOpacity onPress={onLabelIconPress} style={styles.labelIconTouchable}>
|
|
151
151
|
{iconElement}
|
|
152
152
|
</TouchableOpacity>) : (iconElement)}
|
|
153
153
|
</View>);
|
|
154
154
|
}
|
|
155
|
-
return <SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>;
|
|
155
|
+
return <SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>;
|
|
156
156
|
};
|
|
157
157
|
return (<View style={styles.wrapper}>
|
|
158
158
|
{renderLabel()}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ProgressBar;
|
|
2
|
-
declare function ProgressBar({ progress, label, opacity, variant, total, completed, color, showLabel, style, }: {
|
|
2
|
+
declare function ProgressBar({ progress, label, opacity, variant, total, completed, color, showLabel, style, barStyle, }: {
|
|
3
3
|
progress: any;
|
|
4
4
|
label: any;
|
|
5
5
|
opacity?: number | undefined;
|
|
@@ -9,6 +9,7 @@ declare function ProgressBar({ progress, label, opacity, variant, total, complet
|
|
|
9
9
|
color?: string | undefined;
|
|
10
10
|
showLabel?: boolean | undefined;
|
|
11
11
|
style: any;
|
|
12
|
+
barStyle: any;
|
|
12
13
|
}): React.JSX.Element;
|
|
13
14
|
import React from 'react';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ProgressBar/index.jsx"],"names":[],"mappings":";AAIA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/ProgressBar/index.jsx"],"names":[],"mappings":";AAIA;;;;;;;;;;;sBA2CC;kBA/CiB,OAAO"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, Text, StyleSheet } from 'react-native';
|
|
3
3
|
import { fontFamily } from '../utils/fontFamily';
|
|
4
|
-
const ProgressBar = ({ progress, label, opacity = 1, variant = 'continuous', total, completed = 0, color = '#193AB8', showLabel = true, style, }) => {
|
|
4
|
+
const ProgressBar = ({ progress, label, opacity = 1, variant = 'continuous', total, completed = 0, color = '#193AB8', showLabel = true, style, barStyle, }) => {
|
|
5
5
|
const percent = Math.round(progress * 100);
|
|
6
6
|
if (variant === 'segmented') {
|
|
7
7
|
const progressPercent = (completed / total) * 100;
|
|
8
8
|
return (<View style={[styles.container, { opacity }, style]}>
|
|
9
|
-
<View style={styles.barBackground}>
|
|
9
|
+
<View style={[styles.barBackground, barStyle]}>
|
|
10
10
|
<View style={[styles.barFill, { width: `${progressPercent}%`, backgroundColor: color }]}/>
|
|
11
11
|
</View>
|
|
12
12
|
{showLabel && (<View style={styles.labelContainer}>
|
|
@@ -17,7 +17,7 @@ const ProgressBar = ({ progress, label, opacity = 1, variant = 'continuous', tot
|
|
|
17
17
|
</View>);
|
|
18
18
|
}
|
|
19
19
|
return (<View style={[styles.container, { opacity }, style]}>
|
|
20
|
-
<View style={styles.barBackground}>
|
|
20
|
+
<View style={[styles.barBackground, barStyle]}>
|
|
21
21
|
<View style={[styles.barFill, { width: `${percent}%`, backgroundColor: color }]}/>
|
|
22
22
|
</View>
|
|
23
23
|
{showLabel && (<Text style={styles.label}>{label ?? `${percent}% concluído`}</Text>)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planejadora.d.ts","sourceRoot":"","sources":["../../../../components/SEIcon/CustomIcon/planejadora.jsx"],"names":[],"mappings":";AAGA,4DAwBC;uBA3BsB,OAAO"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
3
|
+
const Planejadora = (props) => (<Svg xmlns="http://www.w3.org/2000/svg" width={56} height={60} viewBox="0 0 56 60" fill="none" {...props}>
|
|
4
|
+
<Path fill="#F3F5FF" fillRule="evenodd" clipRule="evenodd" d="M25.6332 0.0365736C14.7438 0.545802 7.29725 9.9128 3.6314 20.5811C-0.497211 32.5962 -2.9487 47.2013 6.72918 55.0507C17.1405 63.495 31.8304 60.2246 42.4506 52.0661C52.7704 44.1384 58.795 30.8351 54.7086 18.1925C50.7281 5.87768 38.121 -0.547409 25.6332 0.0365736Z"/>
|
|
5
|
+
<Path fill="#263582" d="M23 21V19H25V21H31V19H33V21H37C37.2652 21 37.5196 21.1054 37.7071 21.2929C37.8946 21.4804 38 21.7348 38 22V27H36V23H33V25H31V23H25V25H23V23H20V37H26V39H19C18.7348 39 18.4804 38.8946 18.2929 38.7071C18.1054 38.5196 18 38.2652 18 38V22C18 21.7348 18.1054 21.4804 18.2929 21.2929C18.4804 21.1054 18.7348 21 19 21H23Z"/>
|
|
6
|
+
<Path fill="#263582" d="M33.0704 39.9591C29.8175 39.9591 27.1807 37.3223 27.1807 34.0694C27.1807 30.8165 29.8175 28.1797 33.0704 28.1797C36.3232 28.1797 38.96 30.8165 38.96 34.0694C38.96 37.3223 36.3232 39.9591 33.0704 39.9591ZM33.0704 38.7811C34.32 38.7811 35.5184 38.2847 36.4021 37.4011C37.2857 36.5175 37.7821 35.319 37.7821 34.0694C37.7821 32.8197 37.2857 31.6213 36.4021 30.7377C35.5184 29.854 34.32 29.3576 33.0704 29.3576C31.8207 29.3576 30.6223 29.854 29.7386 30.7377C28.855 31.6213 28.3586 32.8197 28.3586 34.0694C28.3586 35.319 28.855 36.5175 29.7386 37.4011C30.6223 38.2847 31.8207 38.7811 33.0704 38.7811ZM31.009 35.2473H34.2483C34.3264 35.2473 34.4013 35.2163 34.4565 35.1611C34.5117 35.1058 34.5428 35.0309 34.5428 34.9528C34.5428 34.8747 34.5117 34.7998 34.4565 34.7446C34.4013 34.6894 34.3264 34.6583 34.2483 34.6583H31.8924C31.5019 34.6583 31.1274 34.5032 30.8513 34.2271C30.5751 33.951 30.42 33.5764 30.42 33.1859C30.42 32.7954 30.5751 32.4209 30.8513 32.1448C31.1274 31.8686 31.5019 31.7135 31.8924 31.7135H32.4814V30.5356H33.6593V31.7135H35.1317V32.8914H31.8924C31.8143 32.8914 31.7394 32.9225 31.6842 32.9777C31.629 33.0329 31.5979 33.1078 31.5979 33.1859C31.5979 33.264 31.629 33.3389 31.6842 33.3942C31.7394 33.4494 31.8143 33.4804 31.8924 33.4804H34.2483C34.6388 33.4804 35.0133 33.6355 35.2895 33.9117C35.5656 34.1878 35.7207 34.5623 35.7207 34.9528C35.7207 35.3433 35.5656 35.7179 35.2895 35.994C35.0133 36.2701 34.6388 36.4253 34.2483 36.4253H33.6593V37.6032H32.4814V36.4253H31.009V35.2473Z"/>
|
|
7
|
+
</Svg>);
|
|
8
|
+
export default Planejadora;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/SEIcon/index.js"],"names":[],"mappings":";AAKA;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/SEIcon/index.js"],"names":[],"mappings":";AAKA;;;;;;6BAkGC;;;;;;;;;kBAvGiB,OAAO"}
|
|
@@ -88,6 +88,9 @@ function SEIcon({ name, size = 25, color = '#000', type = 'Remix', style }) {
|
|
|
88
88
|
case 'calculadoraValuation':
|
|
89
89
|
const CalculadoraValuation = require('../SEIcon/CustomIcon/calculadoraValuation').default;
|
|
90
90
|
return <CalculadoraValuation width={size} height={size} style={style}/>;
|
|
91
|
+
case 'planejadora':
|
|
92
|
+
const Planejadora = require('../SEIcon/CustomIcon/planejadora').default;
|
|
93
|
+
return <Planejadora width={size} height={size} style={style}/>;
|
|
91
94
|
default: return null;
|
|
92
95
|
}
|
|
93
96
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Select;
|
|
2
|
-
declare function Select({ label, placeholder, value, onSelect, onValueChange, options, error, success, disabled, supportText, variant, displayMode, innerTitle, showCloseButton, itemGap }: {
|
|
2
|
+
declare function Select({ label, placeholder, value, onSelect, onValueChange, options, error, success, disabled, supportText, variant, displayMode, innerTitle, showCloseButton, itemGap, labelStyle, }: {
|
|
3
3
|
label: any;
|
|
4
4
|
placeholder?: string | undefined;
|
|
5
5
|
value: any;
|
|
@@ -15,6 +15,7 @@ declare function Select({ label, placeholder, value, onSelect, onValueChange, op
|
|
|
15
15
|
innerTitle: any;
|
|
16
16
|
showCloseButton?: boolean | undefined;
|
|
17
17
|
itemGap?: number | undefined;
|
|
18
|
+
labelStyle: any;
|
|
18
19
|
}): React.JSX.Element;
|
|
19
20
|
import React from 'react';
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAMA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Select/index.jsx"],"names":[],"mappings":";AAMA;;;;;;;;;;;;;;;;;sBAqJC;kBA3J0C,OAAO"}
|
|
@@ -4,7 +4,7 @@ import SEText from '../SEText';
|
|
|
4
4
|
import Icon from '../Icon';
|
|
5
5
|
import Dropdown from '../Dropdown';
|
|
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, showCloseButton = false, itemGap = 0 }) => {
|
|
7
|
+
options = [], error, success, disabled, supportText, variant = "default", displayMode, innerTitle, showCloseButton = false, itemGap = 0, labelStyle, }) => {
|
|
8
8
|
const [isOpen, setIsOpen] = useState(false);
|
|
9
9
|
const [selectedOption, setSelectedOption] = useState(value || null);
|
|
10
10
|
useEffect(() => {
|
|
@@ -90,7 +90,7 @@ options = [], error, success, disabled, supportText, variant = "default", displa
|
|
|
90
90
|
};
|
|
91
91
|
const wrapperStyle = variant === "inverse" ? styles.wrapperInverse : styles.wrapper;
|
|
92
92
|
return (<View style={wrapperStyle}>
|
|
93
|
-
{label && <SEText type="ns-sm-body" style={getLabelStyle()}>{label}</SEText>}
|
|
93
|
+
{label && <SEText type="ns-sm-body" style={[getLabelStyle(), labelStyle]}>{label}</SEText>}
|
|
94
94
|
|
|
95
95
|
<View style={styles.selectContainer}>
|
|
96
96
|
<TouchableOpacity style={getContainerStyle()} onPress={toggleDropdown} activeOpacity={disabled ? 1 : 0.7}>
|