vpt-sebraeds 0.0.89 → 0.0.90

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.
@@ -57,6 +57,8 @@ const Item = ({
57
57
  valuePlaceholderTextColor = '#687499',
58
58
  valueMaxLength,
59
59
  valueTestID,
60
+ onValueFocus,
61
+ onValueBlur,
60
62
  // Test
61
63
  testID,
62
64
  }) => {
@@ -129,6 +131,8 @@ const Item = ({
129
131
  <TextInput
130
132
  value={String(value ?? '')}
131
133
  onChangeText={onChangeValue}
134
+ onFocus={onValueFocus}
135
+ onBlur={onValueBlur}
132
136
  keyboardType={valueKeyboardType}
133
137
  placeholder={valuePlaceholder}
134
138
  placeholderTextColor={valuePlaceholderTextColor}
@@ -190,6 +194,8 @@ Item.propTypes = {
190
194
  valuePlaceholderTextColor: PropTypes.string,
191
195
  valueMaxLength: PropTypes.number,
192
196
  valueTestID: PropTypes.string,
197
+ onValueFocus: PropTypes.func,
198
+ onValueBlur: PropTypes.func,
193
199
  testID: PropTypes.string,
194
200
  };
195
201
 
@@ -13,7 +13,7 @@ declare namespace SelectableOption {
13
13
  }
14
14
  }
15
15
  import React from 'react';
16
- declare function Item({ label, value, checked, disabled, onPress, backgroundColor, borderLeftColor, borderLeftWidth, height, borderRadius, padding, style, checkColor, checkIconSize, checkBoxSize, checkBorderRadius, checkIcon, checkBorderColor, checkBorderWidth, checkBackgroundColor, checkUncheckedBackgroundColor, labelStyle, valueBorderColor, valueBorderWidth, valueBorderRadius, valueBackgroundColor, valueWidth, valueHeight, valuePaddingHorizontal, valuePaddingVertical, valueStyle, valueContainerStyle, valueEditable, onChangeValue, valuePlaceholder, valueKeyboardType, valuePlaceholderTextColor, valueMaxLength, valueTestID, testID, }: {
16
+ declare function Item({ label, value, checked, disabled, onPress, backgroundColor, borderLeftColor, borderLeftWidth, height, borderRadius, padding, style, checkColor, checkIconSize, checkBoxSize, checkBorderRadius, checkIcon, checkBorderColor, checkBorderWidth, checkBackgroundColor, checkUncheckedBackgroundColor, labelStyle, valueBorderColor, valueBorderWidth, valueBorderRadius, valueBackgroundColor, valueWidth, valueHeight, valuePaddingHorizontal, valuePaddingVertical, valueStyle, valueContainerStyle, valueEditable, onChangeValue, valuePlaceholder, valueKeyboardType, valuePlaceholderTextColor, valueMaxLength, valueTestID, onValueFocus, onValueBlur, testID, }: {
17
17
  label: any;
18
18
  value: any;
19
19
  checked?: boolean | undefined;
@@ -53,6 +53,8 @@ declare function Item({ label, value, checked, disabled, onPress, backgroundColo
53
53
  valuePlaceholderTextColor?: string | undefined;
54
54
  valueMaxLength: any;
55
55
  valueTestID: any;
56
+ onValueFocus: any;
57
+ onValueBlur: any;
56
58
  testID: any;
57
59
  }): React.JSX.Element;
58
60
  declare namespace Item {
@@ -97,6 +99,8 @@ declare namespace Item {
97
99
  export let valuePlaceholderTextColor: any;
98
100
  export let valueMaxLength: any;
99
101
  export let valueTestID: any;
102
+ export let onValueFocus: any;
103
+ export let onValueBlur: any;
100
104
  export let testID: any;
101
105
  }
102
106
  export { propTypes_1 as propTypes };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/SelectableOption/index.jsx"],"names":[],"mappings":";AAOA;;;;sBAMC;;;;;;;;;kBAbiB,OAAO;AAezB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAuIC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/SelectableOption/index.jsx"],"names":[],"mappings":";AAOA;;;;sBAMC;;;;;;;;;kBAbiB,OAAO;AAezB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA2IC"}
@@ -17,7 +17,7 @@ checkColor = '#687499', checkIconSize = 10, checkBoxSize = 13, checkBorderRadius
17
17
  // Label
18
18
  labelStyle,
19
19
  // Value card
20
- valueBorderColor = '#E2E9FC', valueBorderWidth = 2, valueBorderRadius = 8, valueBackgroundColor = '#FFFFFF', valueWidth = 161, valueHeight = 48, valuePaddingHorizontal = 8, valuePaddingVertical = 8, valueStyle, valueContainerStyle, valueEditable = false, onChangeValue, valuePlaceholder = '', valueKeyboardType = 'numeric', valuePlaceholderTextColor = '#687499', valueMaxLength, valueTestID,
20
+ valueBorderColor = '#E2E9FC', valueBorderWidth = 2, valueBorderRadius = 8, valueBackgroundColor = '#FFFFFF', valueWidth = 161, valueHeight = 48, valuePaddingHorizontal = 8, valuePaddingVertical = 8, valueStyle, valueContainerStyle, valueEditable = false, onChangeValue, valuePlaceholder = '', valueKeyboardType = 'numeric', valuePlaceholderTextColor = '#687499', valueMaxLength, valueTestID, onValueFocus, onValueBlur,
21
21
  // Test
22
22
  testID, }) => {
23
23
  const resolvedCheckBorderColor = checkBorderColor || checkColor;
@@ -71,7 +71,7 @@ testID, }) => {
71
71
  },
72
72
  valueContainerStyle,
73
73
  ]}>
74
- {valueEditable ? (<TextInput value={String(value ?? '')} onChangeText={onChangeValue} keyboardType={valueKeyboardType} placeholder={valuePlaceholder} placeholderTextColor={valuePlaceholderTextColor} maxLength={valueMaxLength} editable={!disabled} textAlign="center" underlineColorAndroid="transparent" style={[styles.valueInput, valueStyle]} testID={valueTestID}/>) : (<SEText type="ns-sm-body" style={[styles.value, valueStyle]}>
74
+ {valueEditable ? (<TextInput value={String(value ?? '')} onChangeText={onChangeValue} onFocus={onValueFocus} onBlur={onValueBlur} keyboardType={valueKeyboardType} placeholder={valuePlaceholder} placeholderTextColor={valuePlaceholderTextColor} maxLength={valueMaxLength} editable={!disabled} textAlign="center" underlineColorAndroid="transparent" style={[styles.valueInput, valueStyle]} testID={valueTestID}/>) : (<SEText type="ns-sm-body" style={[styles.value, valueStyle]}>
75
75
  {value}
76
76
  </SEText>)}
77
77
  </View>)}
@@ -117,6 +117,8 @@ Item.propTypes = {
117
117
  valuePlaceholderTextColor: PropTypes.string,
118
118
  valueMaxLength: PropTypes.number,
119
119
  valueTestID: PropTypes.string,
120
+ onValueFocus: PropTypes.func,
121
+ onValueBlur: PropTypes.func,
120
122
  testID: PropTypes.string,
121
123
  };
122
124
  SelectableOption.Item = Item;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vpt-sebraeds",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
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",