sag_components 2.0.0-beta285 → 2.0.0-beta286

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/dist/index.js CHANGED
@@ -24653,26 +24653,25 @@ const IconContainer$2 = styled__default["default"].div`
24653
24653
  cursor: pointer;
24654
24654
  `;
24655
24655
 
24656
- const QuickFilterDropdownMultiSelection = _ref => {
24657
- let {
24658
- label,
24659
- labelEmptyValue,
24660
- options,
24661
- selectedValue,
24662
- placeHolder,
24663
- onChange,
24664
- required,
24665
- disabled,
24666
- width,
24667
- height,
24668
- error,
24669
- errorMessage,
24670
- labelColor,
24671
- xIconShow,
24672
- checkBoxColor,
24673
- showLabelOnTop,
24674
- dropdownHeight
24675
- } = _ref;
24656
+ const QuickFilterDropdownMultiSelection = ({
24657
+ label,
24658
+ labelEmptyValue,
24659
+ options,
24660
+ selectedValue,
24661
+ placeHolder,
24662
+ onChange,
24663
+ required,
24664
+ disabled,
24665
+ width,
24666
+ height,
24667
+ error,
24668
+ errorMessage,
24669
+ labelColor,
24670
+ xIconShow,
24671
+ checkBoxColor,
24672
+ showLabelOnTop,
24673
+ dropdownHeight
24674
+ }) => {
24676
24675
  const [isFocused, setIsFocused] = React$1.useState(false);
24677
24676
  const [showOptions, setShowOptions] = React$1.useState(false);
24678
24677
  const [inputValue, setInputValue] = React$1.useState('');
@@ -34208,7 +34207,7 @@ const Header$3 = styled__default["default"].div`
34208
34207
  align-items: flex-start;
34209
34208
  }
34210
34209
  `;
34211
- const CloseButton$1 = styled__default["default"].button`
34210
+ const CloseButton$2 = styled__default["default"].button`
34212
34211
  position: absolute;
34213
34212
  top: -10px;
34214
34213
  right: 0px;
@@ -34409,7 +34408,7 @@ const InsightsCarousel = _ref => {
34409
34408
  $titleColor: titleColor
34410
34409
  }, /*#__PURE__*/React__default["default"].cloneElement(icon, {
34411
34410
  fill: iconColor
34412
- }), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
34411
+ }), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$2, {
34413
34412
  onClick: () => onClose?.({
34414
34413
  label: "closeCarousel"
34415
34414
  }),
@@ -34546,14 +34545,13 @@ ProgressBar.defaultProps = {
34546
34545
 
34547
34546
  const DownloadProgressMainContainer = styled__default["default"].div`
34548
34547
  font-family: "Poppins", sans-serif;
34549
- font-style: normal;
34550
- font-size: 12px;
34548
+ font-size: 14px;
34551
34549
  font-weight: 400;
34552
34550
  color: #212121;
34553
34551
  line-height: 14px;
34554
34552
  position: relative;
34555
34553
  margin: 0;
34556
- padding: 10px;
34554
+ padding: 15px 20px 10px;
34557
34555
  background: #ffffff;
34558
34556
  border-radius: 12px;
34559
34557
  box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
@@ -34561,14 +34559,13 @@ const DownloadProgressMainContainer = styled__default["default"].div`
34561
34559
  const DownloadProgressContentContainer = styled__default["default"].div`
34562
34560
  display: flex;
34563
34561
  align-items: center;
34564
- margin: 0 10px;
34565
34562
  gap: 10px;
34566
34563
  `;
34567
- const DownloadProgressTitle = styled__default["default"].h3`
34564
+ const DownloadProgressTitle = styled__default["default"].h4`
34568
34565
  font-weight: 400;
34569
- margin: 10px;
34566
+ margin: 0 0 10px;
34570
34567
  `;
34571
- const DownloadProgressStatusMessage = styled__default["default"].h3`
34568
+ const DownloadProgressStatusMessage = styled__default["default"].h5`
34572
34569
  margin: 3px 0;
34573
34570
  &.DownloadProgressStatusMessage_succeeded{
34574
34571
  font-weight: 500;
@@ -34582,11 +34579,19 @@ const DownloadProgressStatusMessage = styled__default["default"].h3`
34582
34579
  font-weight: 400;
34583
34580
  text-decoration: underline;
34584
34581
  &:hover {
34585
- background-Color: #f1f1f1;
34586
- cursor: pointer;
34587
- }
34582
+ background-Color: #f1f1f1;
34583
+ cursor: pointer;
34584
+ }
34588
34585
  }
34589
34586
  `;
34587
+ const CloseButton$1 = styled__default["default"].button`
34588
+ position: absolute;
34589
+ top: 15px;
34590
+ right: 20px;
34591
+ background: none;
34592
+ border: none;
34593
+ cursor: pointer;
34594
+ `;
34590
34595
 
34591
34596
  const DownloadProgress = props => {
34592
34597
  const {
@@ -34595,11 +34600,13 @@ const DownloadProgress = props => {
34595
34600
  failedMessage,
34596
34601
  downloadStatus,
34597
34602
  showShadow,
34603
+ showCloseButton,
34598
34604
  progressPercent,
34599
34605
  refreshInterval,
34600
34606
  progressBarColor,
34601
34607
  onTryAgainClick,
34602
- className
34608
+ className,
34609
+ onCloseClick
34603
34610
  } = props;
34604
34611
  const [DownloadStatus, setDownloadStatus] = React$1.useState(downloadStatus);
34605
34612
  React$1.useEffect(() => {
@@ -34657,7 +34664,12 @@ const DownloadProgress = props => {
34657
34664
  showShadow: showShadow
34658
34665
  }, /*#__PURE__*/React__default["default"].createElement(DownloadProgressTitle, {
34659
34666
  className: "DownloadProgressTitle"
34660
- }, title), displayProgressContent());
34667
+ }, title, showCloseButton && /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
34668
+ onClick: onCloseClick
34669
+ }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
34670
+ width: "12",
34671
+ height: "12"
34672
+ }))), displayProgressContent());
34661
34673
  };
34662
34674
  DownloadProgress.propTypes = {
34663
34675
  title: PropTypes.string,
@@ -34665,6 +34677,8 @@ DownloadProgress.propTypes = {
34665
34677
  failedMessage: PropTypes.string,
34666
34678
  downloadStatus: PropTypes.string,
34667
34679
  showShadow: PropTypes.bool,
34680
+ showCloseButton: PropTypes.bool,
34681
+ onCloseClick: PropTypes.func,
34668
34682
  progressPercent: PropTypes.number,
34669
34683
  refreshInterval: PropTypes.number,
34670
34684
  progressBarColor: PropTypes.string,
@@ -34677,6 +34691,8 @@ DownloadProgress.defaultProps = {
34677
34691
  failedMessage: 'Something went wrong',
34678
34692
  downloadStatus: 'inProgress',
34679
34693
  showShadow: true,
34694
+ showCloseButton: false,
34695
+ onCloseClick: () => {},
34680
34696
  progressPercent: 0,
34681
34697
  refreshInterval: 100,
34682
34698
  progressBarColor: '#92CF17',