secullum-react-native-ui 4.8.0 → 4.9.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.
@@ -8,6 +8,7 @@ interface Props {
8
8
  style?: StyleProp<ViewStyle>;
9
9
  renderLabel?: () => React.ReactNode;
10
10
  labelStyle?: StyleProp<TextStyle>;
11
+ iconStyle?: StyleProp<TextStyle>;
11
12
  nativeID?: string;
12
13
  }
13
14
  export declare class CheckBox extends React.Component<Props> {
@@ -36,14 +36,14 @@ class CheckBox extends React.Component {
36
36
  };
37
37
  }
38
38
  render() {
39
- const { label, value, onChange, disabled, style, labelStyle, renderLabel, nativeID } = this.props;
39
+ const { label, value, onChange, disabled, style, labelStyle, iconStyle, renderLabel, nativeID } = this.props;
40
40
  const styles = this.getStyles();
41
41
  return (React.createElement(react_native_1.TouchableOpacity, { style: [styles.container, style], disabled: disabled, onPress: () => {
42
42
  if (onChange) {
43
43
  onChange(!value);
44
44
  }
45
45
  } },
46
- React.createElement(FontAwesome_1.default, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), name: value ? 'check-square-o' : 'square-o', style: styles.icon }),
46
+ React.createElement(FontAwesome_1.default, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), name: value ? 'check-square-o' : 'square-o', style: [styles.icon, iconStyle] }),
47
47
  React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, renderLabel ? renderLabel() : label)));
48
48
  }
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "scripts": {
16
16
  "build": "rimraf lib && tsc --declaration",
17
17
  "format": "prettier --write \"{src,styles,types}/**/*.{ts,tsx,css}\"",
18
- "docs:dev": "docz dev",
19
- "docs:publish": "docz build && gh-pages -d .docz/dist"
18
+ "docs:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider docz dev",
19
+ "docs:publish": "cross-env NODE_OPTIONS=--openssl-legacy-provider docz build && gh-pages -d .docz/dist"
20
20
  },
21
21
  "dependencies": {
22
22
  "@react-native-community/datetimepicker": "7.6.1",
@@ -25,7 +25,7 @@
25
25
  "react-native-drawer-layout": "^2.0.0",
26
26
  "react-native-elevated-view": "^0.0.6",
27
27
  "react-native-masked-text": "^1.7.2",
28
- "react-native-modal-datetime-picker": "^17.1.0",
28
+ "react-native-modal-datetime-picker": "git+https://github.com/Secullum/react-native-modal-datetime-picker.git#d9985d6df54ca44febf0b8c92b55aa765a38b046",
29
29
  "react-native-status-bar-height": "^2.6.0",
30
30
  "react-native-vector-icons": "^8.0.0"
31
31
  },
@@ -36,7 +36,8 @@
36
36
  "@types/react-native": "^0.63.64",
37
37
  "@types/react-native-drawer-layout": "^1.3.3",
38
38
  "@types/react-native-elevated-view": "^0.0.2",
39
- "@types/react-native-vector-icons": "^6.4.6",
39
+ "@types/react-native-vector-icons": "^6.4.18",
40
+ "cross-env": "^7.0.3",
40
41
  "docz": "^0.11.2",
41
42
  "docz-plugin-css": "^0.11.0",
42
43
  "docz-plugin-react-native": "^0.11.2",
@@ -54,6 +55,7 @@
54
55
  "react-native": "^0.52 || ^0.53 || ^0.54 || ^0.55 || ^0.63"
55
56
  },
56
57
  "resolutions": {
58
+ "docz-plugin-css/node-sass": "~9.0.0",
57
59
  "docz-plugin-react-native/react-native-web": "^0.18.7",
58
60
  "react-docgen-typescript": "2.2.2",
59
61
  "react-hot-loader": "4.12.21"