secullum-react-native-ui 4.12.0 → 4.14.0

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.
@@ -17,6 +17,7 @@ const react_native_elevated_view_1 = require("react-native-elevated-view");
17
17
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
18
18
  const theme_1 = require("../modules/theme");
19
19
  const layout_1 = require("../modules/layout");
20
+ const test_1 = require("../modules/test");
20
21
  const react_native_1 = require("react-native");
21
22
  class CardHeader extends React.Component {
22
23
  constructor() {
@@ -49,7 +50,7 @@ class CardHeader extends React.Component {
49
50
  render() {
50
51
  const { title, titleStyle, onHelpPress, nativeID, containerStyle, numberOfLines } = this.props;
51
52
  const styles = this.getStyles();
52
- return (React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, containerStyle] },
53
+ return (React.createElement(react_native_1.View, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [styles.container, containerStyle] },
53
54
  React.createElement(react_native_1.Text, { style: [styles.title, titleStyle], numberOfLines: numberOfLines }, title),
54
55
  onHelpPress && (React.createElement(react_native_1.TouchableOpacity, { onPress: onHelpPress, style: styles.help },
55
56
  React.createElement(FontAwesome_1.default, { name: "question-circle", style: styles.helpIcon })))));
@@ -58,15 +59,15 @@ class CardHeader extends React.Component {
58
59
  exports.CardHeader = CardHeader;
59
60
  class CardFooter extends React.Component {
60
61
  render() {
61
- const _a = this.props, { children } = _a, otherProps = __rest(_a, ["children"]);
62
- return (React.createElement(react_native_1.View, Object.assign({ style: [cardFooterStyles.container] }, otherProps), children));
62
+ const _a = this.props, { children, nativeID } = _a, otherProps = __rest(_a, ["children", "nativeID"]);
63
+ return (React.createElement(react_native_1.View, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [cardFooterStyles.container] }, otherProps), children));
63
64
  }
64
65
  }
65
66
  exports.CardFooter = CardFooter;
66
67
  class CardSection extends React.Component {
67
68
  render() {
68
- const _a = this.props, { children, style } = _a, otherProps = __rest(_a, ["children", "style"]);
69
- return (React.createElement(react_native_1.View, Object.assign({ style: [cardSectionStyles.container, style] }, otherProps), children));
69
+ const _a = this.props, { children, style, nativeID } = _a, otherProps = __rest(_a, ["children", "style", "nativeID"]);
70
+ return (React.createElement(react_native_1.View, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [cardSectionStyles.container, style] }, otherProps), children));
70
71
  }
71
72
  }
72
73
  exports.CardSection = CardSection;
@@ -21,6 +21,7 @@ export interface DropDownProperties {
21
21
  iconComponent?: React.ComponentClass<IconProps>;
22
22
  nativeID?: string;
23
23
  icon?: string | undefined;
24
+ arrowColor?: string | undefined;
24
25
  }
25
26
  export interface DropDownState {
26
27
  modalOpen: boolean;
@@ -142,7 +142,7 @@ class DropDown extends React.Component {
142
142
  };
143
143
  this.getStyles = () => {
144
144
  const theme = (0, theme_1.getTheme)();
145
- const { icon } = this.props;
145
+ const { icon, arrowColor } = this.props;
146
146
  const styles = react_native_1.StyleSheet.create({
147
147
  container: Object.assign({ paddingHorizontal: 16, paddingVertical: 8, borderWidth: 1, borderColor: theme.borderColor1, borderRadius: 3 }, (icon
148
148
  ? {
@@ -172,14 +172,14 @@ class DropDown extends React.Component {
172
172
  fontSize: 16
173
173
  },
174
174
  seta: {
175
- color: theme.textColor1,
175
+ color: arrowColor ? arrowColor : theme.textColor1,
176
176
  fontSize: 16,
177
177
  position: 'absolute',
178
178
  bottom: 10,
179
179
  right: 16
180
180
  },
181
181
  setaIcone: {
182
- color: theme.textColor1,
182
+ color: arrowColor ? arrowColor : theme.textColor1,
183
183
  fontSize: 16,
184
184
  position: 'absolute',
185
185
  bottom: 25,
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.TextBox = void 0;
4
15
  const React = require("react");
@@ -41,7 +52,10 @@ class TextBox extends React.Component {
41
52
  this.input.focus();
42
53
  }
43
54
  };
44
- this.renderInput = (props) => React.createElement(react_native_1.TextInput, Object.assign({}, props));
55
+ this.renderInput = (props) => {
56
+ const { nativeID } = props, otherProps = __rest(props, ["nativeID"]);
57
+ return (React.createElement(react_native_1.TextInput, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID) }, otherProps)));
58
+ };
45
59
  }
46
60
  render() {
47
61
  const { label, style, labelStyle, editable, inputRef, renderInput, icon, onPress } = this.props;
@@ -7,6 +7,7 @@ const ImageButton_1 = require("./ImageButton");
7
7
  const format_1 = require("../modules/format");
8
8
  const layout_1 = require("../modules/layout");
9
9
  const theme_1 = require("../modules/theme");
10
+ const test_1 = require("../modules/test");
10
11
  const react_native_1 = require("react-native");
11
12
  class TimePicker extends React.Component {
12
13
  constructor() {
@@ -97,7 +98,7 @@ class TimePicker extends React.Component {
97
98
  }
98
99
  return (React.createElement(React.Fragment, null,
99
100
  React.createElement(react_native_1.TouchableWithoutFeedback, { disabled: disabled, onPress: this.handlePress },
100
- React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, style, disabled ? styles.readonly : null] },
101
+ React.createElement(react_native_1.View, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [styles.container, style, disabled ? styles.readonly : null] },
101
102
  React.createElement(react_native_1.View, null,
102
103
  React.createElement(react_native_1.Text, { style: styles.label }, label),
103
104
  React.createElement(react_native_1.Text, { style: styles.value }, value)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [