vpt-sebraeds 0.0.85 → 0.0.87

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.
@@ -38,6 +38,10 @@ const Input = React.forwardRef((
38
38
  labelIconColor = null,
39
39
  labelIconStyle = {},
40
40
  onLabelIconPress = null,
41
+ labelStyle,
42
+ inputStyle,
43
+ containerStyle,
44
+ showInfoIcon = true,
41
45
  ...textInputProps
42
46
  } = props;
43
47
 
@@ -169,7 +173,7 @@ const Input = React.forwardRef((
169
173
 
170
174
  return (
171
175
  <View style={styles.labelContainer}>
172
- <SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>
176
+ <SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>
173
177
  {onLabelIconPress ? (
174
178
  <TouchableOpacity onPress={onLabelIconPress} style={styles.labelIconTouchable}>
175
179
  {iconElement}
@@ -181,16 +185,16 @@ const Input = React.forwardRef((
181
185
  );
182
186
  }
183
187
 
184
- return <SEText type="ns-sm-body" color={getLabelColor()}>{label}</SEText>;
188
+ return <SEText type="ns-sm-body" color={getLabelColor()} style={labelStyle}>{label}</SEText>;
185
189
  };
186
190
 
187
191
  return (
188
192
  <View style={styles.wrapper}>
189
193
  {renderLabel()}
190
- <View style={getContainerStyle()}>
194
+ <View style={[getContainerStyle(), containerStyle]}>
191
195
  <TextInput
192
196
  ref={ref}
193
- style={getInputStyle()}
197
+ style={[getInputStyle(), inputStyle]}
194
198
  placeholder={placeholder}
195
199
  value={value}
196
200
  onChangeText={handleChangeText}
@@ -202,14 +206,14 @@ const Input = React.forwardRef((
202
206
  placeholderTextColor="#BFBFBF"
203
207
  {...textInputProps}
204
208
  />
205
- {!disabled && tooltipProps ? (
209
+ {showInfoIcon && !disabled && tooltipProps ? (
206
210
  <TooltipCard
207
211
  {...tooltipProps}
208
212
  trigger={
209
213
  <Icon name="information-line" size={20} color="#687499" />
210
214
  }
211
215
  />
212
- ) : !disabled && (
216
+ ) : showInfoIcon && !disabled && (
213
217
  <Icon name="information-line" size={20} color="#687499" />
214
218
  )}
215
219
  {error && <Icon name="close-line" size={20} color="#FF4D4F" />}
@@ -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
@@ -58,6 +58,7 @@ const meta = {
58
58
  'pesquisaRegistroDeMarca',
59
59
  'creditoPermutas',
60
60
  'calculadoraValuation',
61
+ 'planejadora',
61
62
  ],
62
63
  },
63
64
  iconName: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Input/index.jsx"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH,+EA8MG;kBA5N0C,OAAO"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Input/index.jsx"],"names":[],"mappings":";AAQA;;;;;GAKG;AACH,+EAkNG;kBAhO0C,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, inputStyle, containerStyle, showInfoIcon = true, ...textInputProps } = props;
20
20
  const handleChangeText = (text) => {
21
21
  const maskedText = applyMask(text, maskType);
22
22
  if (onChangeText) {
@@ -146,19 +146,19 @@ 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()}
159
- <View style={getContainerStyle()}>
160
- <TextInput ref={ref} style={getInputStyle()} placeholder={placeholder} value={value} onChangeText={handleChangeText} onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)} editable={!disabled} keyboardType={getKeyboardType()} maxLength={getMaxLength()} placeholderTextColor="#BFBFBF" {...textInputProps}/>
161
- {!disabled && tooltipProps ? (<TooltipCard {...tooltipProps} trigger={<Icon name="information-line" size={20} color="#687499"/>}/>) : !disabled && (<Icon name="information-line" size={20} color="#687499"/>)}
159
+ <View style={[getContainerStyle(), containerStyle]}>
160
+ <TextInput ref={ref} style={[getInputStyle(), inputStyle]} placeholder={placeholder} value={value} onChangeText={handleChangeText} onFocus={() => setIsFocused(true)} onBlur={() => setIsFocused(false)} editable={!disabled} keyboardType={getKeyboardType()} maxLength={getMaxLength()} placeholderTextColor="#BFBFBF" {...textInputProps}/>
161
+ {showInfoIcon && !disabled && tooltipProps ? (<TooltipCard {...tooltipProps} trigger={<Icon name="information-line" size={20} color="#687499"/>}/>) : showInfoIcon && !disabled && (<Icon name="information-line" size={20} color="#687499"/>)}
162
162
  {error && <Icon name="close-line" size={20} color="#FF4D4F"/>}
163
163
  {success && <Icon name="check-line" size={20} color="#52C41A"/>}
164
164
  </View>
@@ -0,0 +1,4 @@
1
+ export default Planejadora;
2
+ declare function Planejadora(props: any): React.JSX.Element;
3
+ import * as React from 'react';
4
+ //# sourceMappingURL=planejadora.d.ts.map
@@ -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;;;;;;6BA+FC;;;;;;;;;kBApGiB,OAAO"}
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;;;;;;;;;;;;;;;;sBAoJC;kBA1J0C,OAAO"}
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}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
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",