sag_components 1.0.619 → 1.0.621

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.
@@ -21,7 +21,8 @@ const DownloadProgress = props => {
21
21
  progressPercent,
22
22
  refreshInterval,
23
23
  progressBarColor,
24
- onTryAgainClick
24
+ onTryAgainClick,
25
+ className
25
26
  } = props;
26
27
  const [DownloadStatus, setDownloadStatus] = (0, _react.useState)(downloadStatus);
27
28
  (0, _react.useEffect)(() => {
@@ -75,7 +76,7 @@ const DownloadProgress = props => {
75
76
  return content;
76
77
  };
77
78
  return /*#__PURE__*/_react.default.createElement(_DownloadProgress.DownloadProgressMainContainer, {
78
- className: "DownloadProgressMainContainer",
79
+ className: className,
79
80
  showShadow: showShadow
80
81
  }, /*#__PURE__*/_react.default.createElement(_DownloadProgress.DownloadProgressTitle, {
81
82
  className: "DownloadProgressTitle"
@@ -91,5 +92,6 @@ DownloadProgress.defaultProps = {
91
92
  progressPercent: 0,
92
93
  refreshInterval: 100,
93
94
  progressBarColor: '#92CF17',
94
- onTryAgainClick: () => {}
95
+ onTryAgainClick: () => {},
96
+ className: 'DownloadProgressMainContainer'
95
97
  };
@@ -243,6 +243,15 @@ const FilterPanel = props => {
243
243
  content = /*#__PURE__*/_react.default.createElement(_Dropdown.Dropdown, {
244
244
  className: "Dropdown",
245
245
  name: item.name,
246
+ defaultValue: () => {
247
+ var _item$defaultValue, _item$defaultValue2;
248
+ if (!(item !== null && item !== void 0 && item.defaultValue)) return '';
249
+ const newValue = {
250
+ id: "".concat(item === null || item === void 0 ? void 0 : (_item$defaultValue = item.defaultValue) === null || _item$defaultValue === void 0 ? void 0 : _item$defaultValue.value),
251
+ label: "".concat(item === null || item === void 0 ? void 0 : (_item$defaultValue2 = item.defaultValue) === null || _item$defaultValue2 === void 0 ? void 0 : _item$defaultValue2.label)
252
+ };
253
+ return newValue;
254
+ },
246
255
  reset: Reset,
247
256
  showPopupIcon: true,
248
257
  allowedInput: "all",
@@ -9,5 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _templateObject, _templateObject2, _templateObject3;
11
11
  const ButtonContainer = exports.ButtonContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
12
- const Button = exports.Button = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n flex-wrap: wrap;\n overflow: hidden;\n width: ", ";\n height: ", ";\n border: ", "; \n border-radius: ", ";\n background-color: ", ";\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n box-shadow: ", ";\n cursor: ", ";\n }\n &.button-clicked {\n background-color: ", ";\n color: white;\n padding: 10px 10px; \n cursor: pointer;\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);\n transition: background-color 0.3s, color 0.3s;\n }\n"])), props => props.width, props => props.height, props => "1px solid ".concat(props.borderColor), props => props.radius, props => props.disabled ? '#c5c5c5' : props.backgroundColor, props => props.disabled ? '#c5c5c5' : props.backgroundColor, props => props.disabled ? '' : '0px 0px 20px 0px rgba(0, 0, 0, 0.2)', props => !props.disabled ? 'pointer' : 'default', props => props.onClickColor);
12
+ const Button = exports.Button = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n flex-wrap: wrap;\n overflow: hidden;\n width: ", ";\n height: ", ";\n border: ", "; \n border-radius: ", ";\n background-color: ", ";\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n box-shadow: ", ";\n cursor: ", ";\n }\n &.button-clicked {\n background-color: ", ";\n color: white;\n padding: 10px 10px; \n cursor: pointer;\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);\n transition: background-color 0.3s, color 0.3s;\n }\n"])), props => props.width, props => props.height, props => "1px solid ".concat(props.borderColor), props => props.radius, props => props.disabled ? '#c5c5c5' : props.backgroundColor, props => props.disabled ? '#c5c5c5' : props.backgroundColor, props => props.disabled ? '' : '5px 5px 10px 0px rgba(0, 0, 0, 0.2)', props => !props.disabled ? 'pointer' : 'default', props => props.onClickColor);
13
13
  const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-weight: ", ";\n color: ", ";\n pointer-events: none;\n font-size: ", ";\n user-select: none;\n"])), props => props.fontWeight, props => props.textColor, props => props.fontSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.619",
3
+ "version": "1.0.621",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {