sag_components 1.0.101 → 1.0.102
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.
|
@@ -13,16 +13,17 @@ var _OneColumnContainer = require("./OneColumnContainer.style");
|
|
|
13
13
|
var _InfoIcon = require("./InfoIcon");
|
|
14
14
|
var _core = require("@dnd-kit/core");
|
|
15
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
|
-
var _reactLoadingSkeleton = _interopRequireWildcard(require("react-loading-skeleton"));
|
|
17
|
-
require("react-loading-skeleton/dist/skeleton.css");
|
|
18
16
|
var _excluded = ["children", "display", "isLoading", "gridTemplateColumns", "nodeRef", "itemClass", "divStyle", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
|
|
17
|
+
//import Skeleton, { SkeletonTheme } from "react-loading-skeleton";
|
|
18
|
+
//import "react-loading-skeleton/dist/skeleton.css";
|
|
19
|
+
|
|
19
20
|
/**
|
|
20
21
|
* Primary UI component for user interaction
|
|
21
22
|
*/
|
|
22
23
|
var OneColumnContainer = function OneColumnContainer(_ref) {
|
|
23
24
|
var children = _ref.children,
|
|
24
25
|
_ref$display = _ref.display,
|
|
25
|
-
display = _ref$display === void 0 ?
|
|
26
|
+
display = _ref$display === void 0 ? "flex" : _ref$display,
|
|
26
27
|
isLoading = _ref.isLoading,
|
|
27
28
|
gridTemplateColumns = _ref.gridTemplateColumns,
|
|
28
29
|
nodeRef = _ref.nodeRef,
|
|
@@ -62,28 +63,15 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
|
|
|
62
63
|
}, children, isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
63
64
|
id: "loadingDiv",
|
|
64
65
|
style: {
|
|
65
|
-
marginTop:
|
|
66
|
-
display:
|
|
67
|
-
flexDirection:
|
|
68
|
-
justifyContent:
|
|
69
|
-
alignItems:
|
|
66
|
+
marginTop: "20px",
|
|
67
|
+
display: "flex",
|
|
68
|
+
flexDirection: "column",
|
|
69
|
+
justifyContent: "space-evenly",
|
|
70
|
+
alignItems: "center",
|
|
70
71
|
width: "76%",
|
|
71
72
|
height: "65%"
|
|
72
73
|
}
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
74
|
-
baseColor: "#EAEAEA"
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
76
|
-
enableAnimation: true,
|
|
77
|
-
width: width.replace('px', '') * 0.76,
|
|
78
|
-
height: 45,
|
|
79
|
-
containerClassName: "avatar-skeleton"
|
|
80
|
-
}), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
81
|
-
enableAnimation: true,
|
|
82
|
-
count: 4,
|
|
83
|
-
width: width.replace('px', '') * 0.76,
|
|
84
|
-
height: 10,
|
|
85
|
-
containerClassName: "avatar-skeleton"
|
|
86
|
-
}))), !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
74
|
+
}), !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
87
75
|
clicked: clicked,
|
|
88
76
|
width: width,
|
|
89
77
|
height: height
|