@onehat/ui 0.3.372 → 0.3.373
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
|
@@ -20,6 +20,9 @@ const
|
|
|
20
20
|
const {
|
|
21
21
|
value,
|
|
22
22
|
setValue,
|
|
23
|
+
onText = 'Yes',
|
|
24
|
+
offText = 'No',
|
|
25
|
+
|
|
23
26
|
flex, // flex doesn't work right on mobile
|
|
24
27
|
...propsToPass
|
|
25
28
|
} = props,
|
|
@@ -81,7 +84,7 @@ const
|
|
|
81
84
|
{...testProps('readout')}
|
|
82
85
|
mx={2}
|
|
83
86
|
fontSize={styles.FORM_TOGGLE_FONTSIZE}
|
|
84
|
-
>{_.isNil(value) ? 'N/A' : (!!value ?
|
|
87
|
+
>{_.isNil(value) ? 'N/A' : (!!value ? onText : offText)}</Text>
|
|
85
88
|
</Pressable>
|
|
86
89
|
</Row>;
|
|
87
90
|
},
|
|
@@ -129,17 +129,17 @@ function Panel(props) {
|
|
|
129
129
|
},
|
|
130
130
|
nonFrameProps = {
|
|
131
131
|
...borderProps,
|
|
132
|
-
borderTopWidth:
|
|
133
|
-
borderBottomWidth:
|
|
134
|
-
borderLeftWidth:
|
|
135
|
-
borderRightWidth:
|
|
132
|
+
borderTopWidth: 0,
|
|
133
|
+
borderBottomWidth: 0,
|
|
134
|
+
borderLeftWidth: 0,
|
|
135
|
+
borderRightWidth: 0,
|
|
136
136
|
},
|
|
137
137
|
frameProps = {
|
|
138
138
|
...borderProps,
|
|
139
|
-
borderTopWidth:
|
|
140
|
-
borderBottomWidth:
|
|
141
|
-
borderLeftWidth:
|
|
142
|
-
borderRightWidth:
|
|
139
|
+
borderTopWidth: 2,
|
|
140
|
+
borderBottomWidth: 2,
|
|
141
|
+
borderLeftWidth: 2,
|
|
142
|
+
borderRightWidth: 2,
|
|
143
143
|
};
|
|
144
144
|
let framePropsToUse = nonFrameProps;
|
|
145
145
|
if (frame) {
|