sag_components 2.0.0-beta284 → 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.d.ts CHANGED
@@ -1250,6 +1250,8 @@ declare namespace DownloadProgress {
1250
1250
  const failedMessage: PropTypes.Requireable<string>;
1251
1251
  const downloadStatus: PropTypes.Requireable<string>;
1252
1252
  const showShadow: PropTypes.Requireable<boolean>;
1253
+ const showCloseButton: PropTypes.Requireable<boolean>;
1254
+ const onCloseClick: PropTypes.Requireable<(...args: any[]) => any>;
1253
1255
  const progressPercent: PropTypes.Requireable<number>;
1254
1256
  const refreshInterval: PropTypes.Requireable<number>;
1255
1257
  const progressBarColor: PropTypes.Requireable<string>;
@@ -1267,6 +1269,10 @@ declare namespace DownloadProgress {
1267
1269
  export { downloadStatus_1 as downloadStatus };
1268
1270
  const showShadow_1: boolean;
1269
1271
  export { showShadow_1 as showShadow };
1272
+ const showCloseButton_1: boolean;
1273
+ export { showCloseButton_1 as showCloseButton };
1274
+ export function onCloseClick_1(): void;
1275
+ export { onCloseClick_1 as onCloseClick };
1270
1276
  const progressPercent_1: number;
1271
1277
  export { progressPercent_1 as progressPercent };
1272
1278
  const refreshInterval_1: number;
package/dist/index.esm.js CHANGED
@@ -8930,28 +8930,27 @@ const IconContainer$5 = styled.div`
8930
8930
  cursor: pointer;
8931
8931
  `;
8932
8932
 
8933
- const DropdownSingleNew = _ref => {
8934
- let {
8935
- label,
8936
- labelEmptyValue,
8937
- options,
8938
- selectedValue,
8939
- onChange,
8940
- required,
8941
- disabled,
8942
- width,
8943
- height,
8944
- minHeight,
8945
- withMarginBottom = true,
8946
- error,
8947
- errorMessage,
8948
- xIconShow,
8949
- labelColor,
8950
- showLabelOnTop,
8951
- orderBy,
8952
- placeHolder = "",
8953
- elementType
8954
- } = _ref;
8933
+ const DropdownSingleNew = ({
8934
+ label,
8935
+ labelEmptyValue,
8936
+ options,
8937
+ selectedValue,
8938
+ onChange,
8939
+ required,
8940
+ disabled,
8941
+ width,
8942
+ height,
8943
+ minHeight,
8944
+ withMarginBottom = true,
8945
+ error,
8946
+ errorMessage,
8947
+ xIconShow,
8948
+ labelColor,
8949
+ showLabelOnTop,
8950
+ orderBy,
8951
+ placeHolder = "",
8952
+ elementType
8953
+ }) => {
8955
8954
  const [isFocused, setIsFocused] = useState(false);
8956
8955
  const [showOptions, setShowOptions] = useState(false);
8957
8956
  const [showAbove, setShowAbove] = useState(false);
@@ -24644,26 +24643,25 @@ const IconContainer$2 = styled.div`
24644
24643
  cursor: pointer;
24645
24644
  `;
24646
24645
 
24647
- const QuickFilterDropdownMultiSelection = _ref => {
24648
- let {
24649
- label,
24650
- labelEmptyValue,
24651
- options,
24652
- selectedValue,
24653
- placeHolder,
24654
- onChange,
24655
- required,
24656
- disabled,
24657
- width,
24658
- height,
24659
- error,
24660
- errorMessage,
24661
- labelColor,
24662
- xIconShow,
24663
- checkBoxColor,
24664
- showLabelOnTop,
24665
- dropdownHeight
24666
- } = _ref;
24646
+ const QuickFilterDropdownMultiSelection = ({
24647
+ label,
24648
+ labelEmptyValue,
24649
+ options,
24650
+ selectedValue,
24651
+ placeHolder,
24652
+ onChange,
24653
+ required,
24654
+ disabled,
24655
+ width,
24656
+ height,
24657
+ error,
24658
+ errorMessage,
24659
+ labelColor,
24660
+ xIconShow,
24661
+ checkBoxColor,
24662
+ showLabelOnTop,
24663
+ dropdownHeight
24664
+ }) => {
24667
24665
  const [isFocused, setIsFocused] = useState(false);
24668
24666
  const [showOptions, setShowOptions] = useState(false);
24669
24667
  const [inputValue, setInputValue] = useState('');
@@ -34199,7 +34197,7 @@ const Header$3 = styled.div`
34199
34197
  align-items: flex-start;
34200
34198
  }
34201
34199
  `;
34202
- const CloseButton$1 = styled.button`
34200
+ const CloseButton$2 = styled.button`
34203
34201
  position: absolute;
34204
34202
  top: -10px;
34205
34203
  right: 0px;
@@ -34400,7 +34398,7 @@ const InsightsCarousel = _ref => {
34400
34398
  $titleColor: titleColor
34401
34399
  }, /*#__PURE__*/React$1.cloneElement(icon, {
34402
34400
  fill: iconColor
34403
- }), title), /*#__PURE__*/React$1.createElement(CloseButton$1, {
34401
+ }), title), /*#__PURE__*/React$1.createElement(CloseButton$2, {
34404
34402
  onClick: () => onClose?.({
34405
34403
  label: "closeCarousel"
34406
34404
  }),
@@ -34537,14 +34535,13 @@ ProgressBar.defaultProps = {
34537
34535
 
34538
34536
  const DownloadProgressMainContainer = styled.div`
34539
34537
  font-family: "Poppins", sans-serif;
34540
- font-style: normal;
34541
- font-size: 12px;
34538
+ font-size: 14px;
34542
34539
  font-weight: 400;
34543
34540
  color: #212121;
34544
34541
  line-height: 14px;
34545
34542
  position: relative;
34546
34543
  margin: 0;
34547
- padding: 10px;
34544
+ padding: 15px 20px 10px;
34548
34545
  background: #ffffff;
34549
34546
  border-radius: 12px;
34550
34547
  box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
@@ -34552,14 +34549,13 @@ const DownloadProgressMainContainer = styled.div`
34552
34549
  const DownloadProgressContentContainer = styled.div`
34553
34550
  display: flex;
34554
34551
  align-items: center;
34555
- margin: 0 10px;
34556
34552
  gap: 10px;
34557
34553
  `;
34558
- const DownloadProgressTitle = styled.h3`
34554
+ const DownloadProgressTitle = styled.h4`
34559
34555
  font-weight: 400;
34560
- margin: 10px;
34556
+ margin: 0 0 10px;
34561
34557
  `;
34562
- const DownloadProgressStatusMessage = styled.h3`
34558
+ const DownloadProgressStatusMessage = styled.h5`
34563
34559
  margin: 3px 0;
34564
34560
  &.DownloadProgressStatusMessage_succeeded{
34565
34561
  font-weight: 500;
@@ -34573,11 +34569,19 @@ const DownloadProgressStatusMessage = styled.h3`
34573
34569
  font-weight: 400;
34574
34570
  text-decoration: underline;
34575
34571
  &:hover {
34576
- background-Color: #f1f1f1;
34577
- cursor: pointer;
34578
- }
34572
+ background-Color: #f1f1f1;
34573
+ cursor: pointer;
34574
+ }
34579
34575
  }
34580
34576
  `;
34577
+ const CloseButton$1 = styled.button`
34578
+ position: absolute;
34579
+ top: 15px;
34580
+ right: 20px;
34581
+ background: none;
34582
+ border: none;
34583
+ cursor: pointer;
34584
+ `;
34581
34585
 
34582
34586
  const DownloadProgress = props => {
34583
34587
  const {
@@ -34586,11 +34590,13 @@ const DownloadProgress = props => {
34586
34590
  failedMessage,
34587
34591
  downloadStatus,
34588
34592
  showShadow,
34593
+ showCloseButton,
34589
34594
  progressPercent,
34590
34595
  refreshInterval,
34591
34596
  progressBarColor,
34592
34597
  onTryAgainClick,
34593
- className
34598
+ className,
34599
+ onCloseClick
34594
34600
  } = props;
34595
34601
  const [DownloadStatus, setDownloadStatus] = useState(downloadStatus);
34596
34602
  useEffect(() => {
@@ -34648,7 +34654,12 @@ const DownloadProgress = props => {
34648
34654
  showShadow: showShadow
34649
34655
  }, /*#__PURE__*/React$1.createElement(DownloadProgressTitle, {
34650
34656
  className: "DownloadProgressTitle"
34651
- }, title), displayProgressContent());
34657
+ }, title, showCloseButton && /*#__PURE__*/React$1.createElement(CloseButton$1, {
34658
+ onClick: onCloseClick
34659
+ }, /*#__PURE__*/React$1.createElement(CloseXIcon, {
34660
+ width: "12",
34661
+ height: "12"
34662
+ }))), displayProgressContent());
34652
34663
  };
34653
34664
  DownloadProgress.propTypes = {
34654
34665
  title: PropTypes.string,
@@ -34656,6 +34667,8 @@ DownloadProgress.propTypes = {
34656
34667
  failedMessage: PropTypes.string,
34657
34668
  downloadStatus: PropTypes.string,
34658
34669
  showShadow: PropTypes.bool,
34670
+ showCloseButton: PropTypes.bool,
34671
+ onCloseClick: PropTypes.func,
34659
34672
  progressPercent: PropTypes.number,
34660
34673
  refreshInterval: PropTypes.number,
34661
34674
  progressBarColor: PropTypes.string,
@@ -34668,6 +34681,8 @@ DownloadProgress.defaultProps = {
34668
34681
  failedMessage: 'Something went wrong',
34669
34682
  downloadStatus: 'inProgress',
34670
34683
  showShadow: true,
34684
+ showCloseButton: false,
34685
+ onCloseClick: () => {},
34671
34686
  progressPercent: 0,
34672
34687
  refreshInterval: 100,
34673
34688
  progressBarColor: '#92CF17',
@@ -34976,18 +34991,17 @@ css`
34976
34991
  * • onApply(start,end) — callback, both numbers (inclusive)
34977
34992
  * • onCancel() — callback
34978
34993
  */
34979
- const WeeksCalendar = _ref => {
34980
- let {
34981
- year,
34982
- defaultStartWeek = null,
34983
- defaultEndWeek = null,
34984
- backgroundColor = "#066768",
34985
- hoverBackgroundColor = "#E6F0F0",
34986
- allowedWeekRange = null,
34987
- // New prop for range restriction
34988
- onApply,
34989
- onCancel
34990
- } = _ref;
34994
+ const WeeksCalendar = ({
34995
+ year,
34996
+ defaultStartWeek = null,
34997
+ defaultEndWeek = null,
34998
+ backgroundColor = "#066768",
34999
+ hoverBackgroundColor = "#E6F0F0",
35000
+ allowedWeekRange = null,
35001
+ // New prop for range restriction
35002
+ onApply,
35003
+ onCancel
35004
+ }) => {
34991
35005
  // state -------------------------------------------------
34992
35006
  const [startWeek, setStartWeek] = useState(defaultStartWeek);
34993
35007
  const [endWeek, setEndWeek] = useState(defaultEndWeek);
@@ -57451,7 +57465,7 @@ const scrollableStyles = `
57451
57465
  }
57452
57466
  `;
57453
57467
  const TooltipWrapper = styled(Tooltip$2)`
57454
- max-width: 100%;
57468
+ width: 100%;
57455
57469
  `;
57456
57470
  const DropdownContainer = styled.div`
57457
57471
  position: relative;