sag_components 1.0.798 → 1.0.800
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.
|
@@ -27,7 +27,8 @@ const EventDetailsCard = props => {
|
|
|
27
27
|
strip,
|
|
28
28
|
buttonText,
|
|
29
29
|
onViewButtonClick,
|
|
30
|
-
onBannersDropdownClick
|
|
30
|
+
onBannersDropdownClick,
|
|
31
|
+
disableViewDetailsButton
|
|
31
32
|
} = props;
|
|
32
33
|
const [processedBanners, setProcessedBanners] = (0, _react.useState)([]);
|
|
33
34
|
(0, _react.useEffect)(() => {
|
|
@@ -103,6 +104,8 @@ const EventDetailsCard = props => {
|
|
|
103
104
|
})), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.MainCard, null, /*#__PURE__*/_react.default.createElement(_EventDetailsCard.List, null, /*#__PURE__*/_react.default.createElement("li", null, "6 products in variety"), data.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
|
|
104
105
|
key: index
|
|
105
106
|
}, /*#__PURE__*/_react.default.createElement("span", null, item.label, ":"), ' ', item.value))), showStrip && /*#__PURE__*/_react.default.createElement(_EventDetailsCard.Strip, null, strip), /*#__PURE__*/_react.default.createElement(_EventDetailsCard.IconButton, {
|
|
107
|
+
disabled: disableViewDetailsButton,
|
|
108
|
+
backgroundColor: disableViewDetailsButton ? '#E5E5E5' : '#ffffff',
|
|
106
109
|
onClick: e => {
|
|
107
110
|
viewButtonClick(e);
|
|
108
111
|
}
|
|
@@ -134,5 +137,6 @@ EventDetailsCard.defaultProps = {
|
|
|
134
137
|
strip: 'Sales Rank 8 out of 43 in category!',
|
|
135
138
|
buttonText: 'View Details',
|
|
136
139
|
onViewButtonClick: () => {},
|
|
137
|
-
onBannersDropdownClick: () => {}
|
|
140
|
+
onBannersDropdownClick: () => {},
|
|
141
|
+
disableViewDetailsButton: false
|
|
138
142
|
};
|
|
@@ -113,10 +113,10 @@ const IconButton = props => {
|
|
|
113
113
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.IconButtonContainer, {
|
|
114
114
|
download: true,
|
|
115
115
|
href: fileLink,
|
|
116
|
-
backgroundColor: backgroundColor,
|
|
117
|
-
borderColor: borderColor,
|
|
116
|
+
backgroundColor: disabled ? '#E3E4E5' : backgroundColor,
|
|
117
|
+
borderColor: disabled ? '#B1B1B1' : borderColor,
|
|
118
118
|
borderRadius: borderRadius,
|
|
119
|
-
color: contentColor,
|
|
119
|
+
color: disabled ? '#B1B1B1' : contentColor,
|
|
120
120
|
inProgress: showProcess,
|
|
121
121
|
progress: progress,
|
|
122
122
|
onClick: event => {
|
|
@@ -150,7 +150,8 @@ const ReportTable = props => {
|
|
|
150
150
|
}, buttonText || 'Select', ' ', buttonIconName === 'duplicate' ? /*#__PURE__*/_react.default.createElement(_Duplicate.default, {
|
|
151
151
|
color: disableSelectButtons ? '#B1B1B1' : selectTextColor
|
|
152
152
|
}) : /*#__PURE__*/_react.default.createElement(_ArrowSelectIcon.default, {
|
|
153
|
-
className: "ArrowSelectIcon"
|
|
153
|
+
className: "ArrowSelectIcon",
|
|
154
|
+
color: disableSelectButtons ? '#B1B1B1' : selectTextColor
|
|
154
155
|
})));
|
|
155
156
|
const displayCheckBox = (rowData, isHeader) => /*#__PURE__*/_react.default.createElement(_ReportTable.SelectCheckboxContainer, {
|
|
156
157
|
className: "SelectCheckboxContainer"
|
|
@@ -8,9 +8,10 @@ exports.default = exports.ArrowSelectIcon = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
const ArrowSelectIcon = _ref => {
|
|
10
10
|
let {
|
|
11
|
-
|
|
12
|
-
width =
|
|
13
|
-
height =
|
|
11
|
+
// eslint-disable-next-line react/prop-types
|
|
12
|
+
width = '17',
|
|
13
|
+
height = '18',
|
|
14
|
+
color = '#229E38'
|
|
14
15
|
} = _ref;
|
|
15
16
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
16
17
|
width: width,
|
|
@@ -20,7 +21,7 @@ const ArrowSelectIcon = _ref => {
|
|
|
20
21
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
22
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
22
23
|
d: "M15 9C15 6.6875 13.75 4.5625 11.75 3.375C9.71875 2.21875 7.25 2.21875 5.25 3.375C3.21875 4.5625 2 6.6875 2 9C2 11.3438 3.21875 13.4688 5.25 14.6562C7.25 15.8125 9.71875 15.8125 11.75 14.6562C13.75 13.4688 15 11.3438 15 9ZM0.5 9C0.5 6.15625 2 3.53125 4.5 2.09375C6.96875 0.65625 10 0.65625 12.5 2.09375C14.9688 3.53125 16.5 6.15625 16.5 9C16.5 11.875 14.9688 14.5 12.5 15.9375C10 17.375 6.96875 17.375 4.5 15.9375C2 14.5 0.5 11.875 0.5 9ZM9.53125 12.2812C9.21875 12.5938 8.75 12.5938 8.46875 12.2812C8.15625 12 8.15625 11.5312 8.46875 11.2188L9.9375 9.75H5.25C4.8125 9.75 4.5 9.4375 4.5 9C4.5 8.59375 4.8125 8.25 5.25 8.25H9.9375L8.46875 6.78125C8.15625 6.5 8.15625 6.03125 8.46875 5.75C8.75 5.4375 9.21875 5.4375 9.53125 5.75L12.2812 8.5C12.5625 8.78125 12.5625 9.25 12.2812 9.53125L9.53125 12.2812Z",
|
|
23
|
-
fill:
|
|
24
|
+
fill: color
|
|
24
25
|
}));
|
|
25
26
|
};
|
|
26
27
|
exports.ArrowSelectIcon = ArrowSelectIcon;
|