ui-layout-manager-dev 0.0.29-dev → 0.0.30-dev

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": "ui-layout-manager-dev",
3
- "version": "0.0.29-dev",
3
+ "version": "0.0.30-dev",
4
4
  "description": "A react component to manage layout and themes in single page applications.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -153,7 +153,11 @@ export const RootContainer = () => {
153
153
  onDragEnd={dragController.onDragEnd}
154
154
  onDragCancel={dragController.onDragCancel}>
155
155
 
156
- {showOverlay && <div className="loading-overlay" ref={loadingOverlayRef}></div>}
156
+ {showOverlay && <div className="loading-overlay" ref={loadingOverlayRef}>
157
+ <div className="loading-bar">
158
+ <div className="loading-bar-fill"></div>
159
+ </div>
160
+ </div>}
157
161
  <div className="root-container">
158
162
  <div ref={rootRef} className="relative-container">
159
163
  {childElements}
@@ -13,6 +13,12 @@
13
13
  overflow: hidden;
14
14
  }
15
15
 
16
+ .drag-overlay {
17
+ position: fixed;
18
+ pointer-events: none;
19
+ z-index: 9999;
20
+ }
21
+
16
22
  .loading-overlay {
17
23
  position: absolute;
18
24
  top: 0;
@@ -22,12 +28,35 @@
22
28
  background-color: #1a1a1a;
23
29
  display: flex;
24
30
  justify-content: center;
25
- align-items: center;
31
+ align-items: self-start;
26
32
  z-index: 9999;
27
33
  }
28
34
 
29
- .drag-overlay {
30
- position: fixed;
31
- pointer-events: none;
32
- z-index: 9999;
35
+ .loading-bar {
36
+ width: 100%;
37
+ height: 4px;
38
+ background: #1a1a1a;
39
+ overflow: hidden;
40
+ position: relative;
41
+ border-radius: 999px;
33
42
  }
43
+
44
+ .loading-bar-fill {
45
+ position: absolute;
46
+ top: 0;
47
+ left: -40%;
48
+ width: 40%;
49
+ height: 100%;
50
+ background: #4da3ff;
51
+ border-radius: 999px;
52
+ animation: loading-slide 1.2s infinite ease-in-out;
53
+ }
54
+
55
+ @keyframes loading-slide {
56
+ 0% {
57
+ left: -40%;
58
+ }
59
+ 100% {
60
+ left: 100%;
61
+ }
62
+ }
@@ -185,8 +185,7 @@ export class LayoutController {
185
185
  case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:
186
186
  transformations = event.data.data;
187
187
  this.applyTransformations(transformations, true);
188
- // TODO: Only make containers visible after the layout
189
- // is applied to avoid glitchy rendering.
188
+ // After initial layout is applied, we can hide the loading overlay.
190
189
  this.containers["root"].current.hideOverlay();
191
190
  break;
192
191
  case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS: