secullum-react-native-ui 4.3.3 → 4.3.4-beta.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.
|
@@ -32,7 +32,7 @@ class CheckBox extends React.Component {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
const { label, value, onChange, disabled, style, labelStyle, nativeID } = this.props;
|
|
35
|
+
const { label, value, onChange, disabled, style, labelStyle, renderLabel, nativeID } = this.props;
|
|
36
36
|
const styles = this.getStyles();
|
|
37
37
|
return (React.createElement(react_native_1.TouchableOpacity, { style: [styles.container, style], disabled: disabled, onPress: () => {
|
|
38
38
|
if (onChange) {
|
|
@@ -40,7 +40,7 @@ class CheckBox extends React.Component {
|
|
|
40
40
|
}
|
|
41
41
|
} },
|
|
42
42
|
React.createElement(FontAwesome_1.default, { nativeID: nativeID, name: value ? 'check-square-o' : 'square-o', style: styles.icon }),
|
|
43
|
-
React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, label)));
|
|
43
|
+
React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, renderLabel ? renderLabel() : label)));
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.CheckBox = CheckBox;
|
package/lib/modules/theme.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const BLACK = "#282c37";
|
|
2
2
|
export declare const WHITE = "#ffffff";
|
|
3
|
-
export declare const GRAY = "#
|
|
3
|
+
export declare const GRAY = "#555";
|
|
4
4
|
export declare const GRAY_1 = "#eef1f6";
|
|
5
5
|
export declare const GRAY_2 = "#dddddd";
|
|
6
6
|
export declare const GRAY_3 = "#c2c2c2";
|
package/lib/modules/theme.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const browser_1 = require("./browser");
|
|
4
4
|
exports.BLACK = '#282c37';
|
|
5
5
|
exports.WHITE = '#ffffff';
|
|
6
|
-
exports.GRAY = '#
|
|
6
|
+
exports.GRAY = '#555';
|
|
7
7
|
exports.GRAY_1 = '#eef1f6';
|
|
8
8
|
exports.GRAY_2 = '#dddddd';
|
|
9
9
|
exports.GRAY_3 = '#c2c2c2';
|