@onehat/ui 0.2.1 → 0.2.3
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.
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Column,
|
|
4
|
+
Icon,
|
|
4
5
|
Row,
|
|
5
6
|
Text,
|
|
6
7
|
} from 'native-base';
|
|
7
|
-
import {
|
|
8
|
-
FaTimes,
|
|
9
|
-
FaMinus,
|
|
10
|
-
FaPlus,
|
|
11
|
-
} from 'react-icons/fa';
|
|
12
8
|
import {
|
|
13
9
|
HORIZONTAL,
|
|
14
10
|
VERTICAL,
|
|
@@ -18,6 +14,9 @@ import {
|
|
|
18
14
|
UI_MODE_REACT_NATIVE,
|
|
19
15
|
} from '../../Constants/UiModes.js';
|
|
20
16
|
import UiConfig from '../../UiConfig.js';
|
|
17
|
+
import Minus from '../Icons/Minus.js';
|
|
18
|
+
import Plus from '../Icons/Plus.js';
|
|
19
|
+
import Xmark from '../Icons/Xmark.js';
|
|
21
20
|
import styles from '../../Constants/Styles.js';
|
|
22
21
|
import emptyFn from '../../Functions/emptyFn.js';
|
|
23
22
|
import IconButton from '../Buttons/IconButton.js';
|
|
@@ -43,7 +42,7 @@ export default function Header(props) {
|
|
|
43
42
|
collapseBtn = null;
|
|
44
43
|
if (isClosable) {
|
|
45
44
|
closeBtn = <IconButton
|
|
46
|
-
icon={<
|
|
45
|
+
icon={<Icon as={Xmark} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} />}
|
|
47
46
|
onPress={onClose}
|
|
48
47
|
testID="closeBtn"
|
|
49
48
|
alignSelf="center"
|
|
@@ -52,7 +51,7 @@ export default function Header(props) {
|
|
|
52
51
|
}
|
|
53
52
|
if (isCollapsible) {
|
|
54
53
|
collapseBtn = <IconButton
|
|
55
|
-
icon={isCollapsed ? <
|
|
54
|
+
icon={isCollapsed ? <Icon as={Plus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} /> : <Icon as={Minus} size={styles.PANEL_HEADER_ICON_SIZE} color={styles.HEADER_ICON_COLOR} />}
|
|
56
55
|
onPress={onToggleCollapse}
|
|
57
56
|
testID="collapseBtn"
|
|
58
57
|
alignSelf="center"
|
package/src/Constants/Styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as appStyles from '../../Constants/Styles';
|
|
1
|
+
// import * as appStyles from '../../Constants/Styles.js';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
|
|
4
4
|
const
|
|
@@ -82,5 +82,5 @@ const defaults = {
|
|
|
82
82
|
TEXT_FONTSIZE: DEFAULT_FONTSIZE,
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export default _.merge(defaults, appStyles);
|
|
85
|
+
export default defaults; //_.merge(defaults, appStyles);
|
|
86
86
|
|