@onehat/ui 0.4.12 → 0.4.13

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.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -184,9 +184,9 @@ export default function withModal(WrappedComponent) {
184
184
  <Modal
185
185
  isOpen={true}
186
186
  onClose={onCancel}
187
- className="Modal"
187
+ className="withModal-Modal"
188
188
  >
189
- <ModalBackdrop />
189
+ <ModalBackdrop className="withModal-ModalBackdrop" />
190
190
  {modalBody}
191
191
  </Modal>}
192
192
 
@@ -74,8 +74,9 @@ export default function withWindowedEditor(WrappedComponent, isTree = false) {
74
74
  <Modal
75
75
  isOpen={true}
76
76
  onClose={onEditorCancel}
77
+ className="withEditor-Modal"
77
78
  >
78
- <ModalBackdrop />
79
+ <ModalBackdrop className="withEditor-ModalBackdrop" />
79
80
  <Editor
80
81
  editorType={EDITOR_TYPE__WINDOWED}
81
82
  {...propsToPass}
@@ -1380,7 +1380,7 @@ function TreeComponent(props) {
1380
1380
  <ScrollView {...testProps('ScrollView')} className="ScrollView flex-1 w-full">
1381
1381
  {!treeNodes?.length ?
1382
1382
  <CenterBox>
1383
- <NoRecordsFound text={noneFoundText} onRefresh={reloadTree} />
1383
+ {Repository.isLoading ? <Loading /> : <NoRecordsFound text={noneFoundText} onRefresh={reloadTree} />}
1384
1384
  </CenterBox> :
1385
1385
  treeNodes}
1386
1386
  </ScrollView>