sag_components 1.0.140 → 1.0.142

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.
@@ -20,6 +20,7 @@ var _excluded = ["children", "display", "isLoading", "gridTemplateColumns", "nod
20
20
  * Primary UI component for user interaction
21
21
  */
22
22
  var OneColumnContainer = function OneColumnContainer(_ref) {
23
+ var _nodeRef$current$offs, _nodeRef$current, _nodeRef$current$offs2, _nodeRef$current2;
23
24
  var children = _ref.children,
24
25
  _ref$display = _ref.display,
25
26
  display = _ref$display === void 0 ? "flex" : _ref$display,
@@ -65,13 +66,13 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
65
66
  baseColor: "#EAEAEA"
66
67
  }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
67
68
  enableAnimation: true,
68
- width: width.replace("px", "") * 0.76,
69
+ width: ((_nodeRef$current$offs = nodeRef === null || nodeRef === void 0 ? void 0 : (_nodeRef$current = nodeRef.current) === null || _nodeRef$current === void 0 ? void 0 : _nodeRef$current.offsetWidth) !== null && _nodeRef$current$offs !== void 0 ? _nodeRef$current$offs : 300) * 0.76,
69
70
  height: 45,
70
71
  containerClassName: "avatar-skeleton"
71
72
  }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
72
73
  enableAnimation: true,
73
74
  count: 4,
74
- width: width.replace("px", "") * 0.76,
75
+ width: ((_nodeRef$current$offs2 = nodeRef === null || nodeRef === void 0 ? void 0 : (_nodeRef$current2 = nodeRef.current) === null || _nodeRef$current2 === void 0 ? void 0 : _nodeRef$current2.offsetWidth) !== null && _nodeRef$current$offs2 !== void 0 ? _nodeRef$current$offs2 : 300) * 0.76,
75
76
  height: 10,
76
77
  containerClassName: "avatar-skeleton"
77
78
  }))), !isLoading && !hover && children, !disableInfo && !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, hover && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.140",
3
+ "version": "1.0.142",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.InfoIcon = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var InfoIcon = function InfoIcon(_ref) {
10
- var clicked = _ref.clicked;
11
- return /*#__PURE__*/_react.default.createElement("svg", {
12
- xmlns: "http://www.w3.org/2000/svg",
13
- viewBox: "0 0 24 24",
14
- fill: "none",
15
- stroke: clicked ? "white" : "black",
16
- strokeWidth: "2",
17
- strokeLinecap: "round",
18
- strokeLinejoin: "round",
19
- className: "feather feather-info"
20
- }, /*#__PURE__*/_react.default.createElement("circle", {
21
- cx: "12",
22
- cy: "12",
23
- r: "10"
24
- }), /*#__PURE__*/_react.default.createElement("line", {
25
- x1: "12",
26
- y1: "16",
27
- x2: "12",
28
- y2: "12"
29
- }), /*#__PURE__*/_react.default.createElement("line", {
30
- x1: "12",
31
- y1: "8",
32
- x2: "12",
33
- y2: "8"
34
- }));
35
- };
36
- exports.InfoIcon = InfoIcon;
37
- var _default = InfoIcon;
38
- exports.default = _default;