@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.372",
3
+ "version": "0.3.373",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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 ? 'Yes' : 'No')}</Text>
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: 1,
133
- borderBottomWidth: 1,
134
- borderLeftWidth: 1,
135
- borderRightWidth: 1,
132
+ borderTopWidth: 0,
133
+ borderBottomWidth: 0,
134
+ borderLeftWidth: 0,
135
+ borderRightWidth: 0,
136
136
  },
137
137
  frameProps = {
138
138
  ...borderProps,
139
- borderTopWidth: 3,
140
- borderBottomWidth: 3,
141
- borderLeftWidth: 3,
142
- borderRightWidth: 3,
139
+ borderTopWidth: 2,
140
+ borderBottomWidth: 2,
141
+ borderLeftWidth: 2,
142
+ borderRightWidth: 2,
143
143
  };
144
144
  let framePropsToUse = nonFrameProps;
145
145
  if (frame) {
@@ -1154,7 +1154,9 @@ function TreeComponent(props) {
1154
1154
  }
1155
1155
 
1156
1156
  (async () => {
1157
- await reloadTree();
1157
+ if (autoLoadRootNodes) {
1158
+ await reloadTree();
1159
+ }
1158
1160
  setIsReady(true);
1159
1161
  })();
1160
1162