secullum-react-native-ui 4.6.7 → 4.6.9

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.
@@ -2,12 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Modal = void 0;
4
4
  const React = require("react");
5
- const react_native_web_modal_1 = require("react-native-web-modal");
6
5
  const react_native_1 = require("react-native");
7
6
  class Modal extends React.Component {
8
7
  render() {
9
8
  const { children, visible, overlayStyle, onRequestClose } = this.props;
10
- return (React.createElement(react_native_web_modal_1.default, { animationType: "fade", transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose },
9
+ return (React.createElement(react_native_1.Modal, { animationType: "fade", transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose },
11
10
  React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: onRequestClose },
12
11
  React.createElement(react_native_1.View, { style: [styles.overlay, overlayStyle] }, children))));
13
12
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Question = void 0;
4
4
  const React = require("react");
5
- const react_native_web_modal_1 = require("react-native-web-modal");
6
5
  const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
7
6
  const theme_1 = require("../modules/theme");
8
7
  const layout_1 = require("../modules/layout");
@@ -53,7 +52,7 @@ class Question extends React.Component {
53
52
  render() {
54
53
  const { message, visible, nativeID, okButton, cancelButton } = this.props;
55
54
  const styles = this.getStyles();
56
- return (React.createElement(react_native_web_modal_1.default, { animationType: "fade", transparent: true, visible: visible },
55
+ return (React.createElement(react_native_1.Modal, { animationType: "fade", transparent: true, visible: visible },
57
56
  React.createElement(react_native_1.View, { style: [styles.overlay], nativeID: nativeID },
58
57
  React.createElement(react_native_1.View, { style: styles.container },
59
58
  React.createElement(FontAwesome_1.default, { name: 'question-circle', style: styles.icon }),
@@ -65,7 +65,7 @@ export declare class TextBox extends React.Component<TextBoxProperties> {
65
65
  };
66
66
  input: {
67
67
  flex?: number | undefined;
68
- outline?: string | undefined;
68
+ outlineStyle?: string | undefined;
69
69
  color: string;
70
70
  fontFamily: string;
71
71
  fontWeight: "normal";
@@ -28,7 +28,7 @@ class TextBox extends React.Component {
28
28
  fontSize: (0, layout_1.isTablet)() ? 15 : 12,
29
29
  lineHeight: 16
30
30
  },
31
- input: Object.assign(Object.assign({ color: theme.textColor1, fontFamily: this.props.value ? theme.fontFamily1 : theme.fontFamily3, fontWeight: 'normal', fontSize: 16, minHeight: 22, padding: 0, margin: 0 }, (react_native_1.Platform.OS === 'web' ? { outline: 'none' } : {})), (icon ? { flex: 1 } : {})),
31
+ input: Object.assign(Object.assign({ color: theme.textColor1, fontFamily: this.props.value ? theme.fontFamily1 : theme.fontFamily3, fontWeight: 'normal', fontSize: 16, minHeight: 22, padding: 0, margin: 0 }, (react_native_1.Platform.OS === 'web' ? { outlineStyle: 'none' } : {})), (icon ? { flex: 1 } : {})),
32
32
  readonly: {
33
33
  backgroundColor: theme.disabledColor
34
34
  }
@@ -88,9 +88,8 @@ class TextBox extends React.Component {
88
88
  };
89
89
  return (React.createElement(react_native_1.TouchableWithoutFeedback, { accessible: false, onPress: () => (onPress ? onPress() : this.focus()), ref: react_native_1.Platform.OS === 'web'
90
90
  ? //@ts-ignore
91
- //removed while we fix the bug of textboxes closing modals
92
- //ref => ref && ref.setNativeProps({ tabIndex: -1 })
93
- undefined
91
+ //@ts-ignore
92
+ ref => ref && ref.setNativeProps({ tabIndex: -1 })
94
93
  : undefined },
95
94
  React.createElement(react_native_1.View, { style: [styles.container, style, editable ? null : styles.readonly] },
96
95
  icon ? (React.createElement(FontAwesome_1.default, { name: icon, style: styles.icon })) : (React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, label)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.6.7",
3
+ "version": "4.6.9",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -27,8 +27,7 @@
27
27
  "react-native-masked-text": "^1.7.2",
28
28
  "react-native-modal-datetime-picker": "^14.0.1",
29
29
  "react-native-status-bar-height": "^2.6.0",
30
- "react-native-vector-icons": "^8.0.0",
31
- "react-native-web-modal": "^1.0.1"
30
+ "react-native-vector-icons": "^8.0.0"
32
31
  },
33
32
  "devDependencies": {
34
33
  "@types/react": "^16.4.11",