sag_components 2.0.0-beta139 → 2.0.0-beta140

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
@@ -8720,25 +8720,24 @@ const IconContainer$5 = styled__default["default"].div`
8720
8720
  cursor: pointer;
8721
8721
  `;
8722
8722
 
8723
- const DropdownSingleNew = _ref => {
8724
- let {
8725
- label,
8726
- labelEmptyValue,
8727
- options,
8728
- selectedValue,
8729
- onChange,
8730
- required,
8731
- disabled,
8732
- width,
8733
- withMarginBottom = true,
8734
- error,
8735
- errorMessage,
8736
- xIconShow,
8737
- labelColor,
8738
- showLabelOnTop,
8739
- orderBy,
8740
- elementType
8741
- } = _ref;
8723
+ const DropdownSingleNew = ({
8724
+ label,
8725
+ labelEmptyValue,
8726
+ options,
8727
+ selectedValue,
8728
+ onChange,
8729
+ required,
8730
+ disabled,
8731
+ width,
8732
+ withMarginBottom = true,
8733
+ error,
8734
+ errorMessage,
8735
+ xIconShow,
8736
+ labelColor,
8737
+ showLabelOnTop,
8738
+ orderBy,
8739
+ elementType
8740
+ }) => {
8742
8741
  const [isFocused, setIsFocused] = React$1.useState(false);
8743
8742
  const [showOptions, setShowOptions] = React$1.useState(false);
8744
8743
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -9210,26 +9209,25 @@ const IconContainer$4 = styled__default["default"].div`
9210
9209
  cursor: pointer;
9211
9210
  `;
9212
9211
 
9213
- const DropdownMultiNew = _ref => {
9214
- let {
9215
- label,
9216
- labelEmptyValue,
9217
- options,
9218
- selectedValue,
9219
- onChange,
9220
- required,
9221
- disabled,
9222
- width,
9223
- withMarginBottom = true,
9224
- error,
9225
- errorMessage,
9226
- labelColor,
9227
- xIconShow,
9228
- checkBoxColor,
9229
- showLabelOnTop,
9230
- orderBy,
9231
- elementType
9232
- } = _ref;
9212
+ const DropdownMultiNew = ({
9213
+ label,
9214
+ labelEmptyValue,
9215
+ options,
9216
+ selectedValue,
9217
+ onChange,
9218
+ required,
9219
+ disabled,
9220
+ width,
9221
+ withMarginBottom = true,
9222
+ error,
9223
+ errorMessage,
9224
+ labelColor,
9225
+ xIconShow,
9226
+ checkBoxColor,
9227
+ showLabelOnTop,
9228
+ orderBy,
9229
+ elementType
9230
+ }) => {
9233
9231
  const [isFocused, setIsFocused] = React$1.useState(false);
9234
9232
  const [showOptions, setShowOptions] = React$1.useState(false);
9235
9233
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -10329,24 +10327,23 @@ const QuarterPopupPicker = ({
10329
10327
  };
10330
10328
 
10331
10329
  /* eslint-disable import/no-extraneous-dependencies */
10332
- const QuarterPicker = _ref => {
10333
- let {
10334
- availableQuarters,
10335
- // ["Q1-2024"]
10336
- label,
10337
- onChange,
10338
- borderRadius,
10339
- required,
10340
- width,
10341
- height,
10342
- placeholder,
10343
- disabled,
10344
- borderColor,
10345
- borderColorFocus,
10346
- textColor,
10347
- selectedValue,
10348
- startYear
10349
- } = _ref;
10330
+ const QuarterPicker = ({
10331
+ availableQuarters,
10332
+ // ["Q1-2024"]
10333
+ label,
10334
+ onChange,
10335
+ borderRadius,
10336
+ required,
10337
+ width,
10338
+ height,
10339
+ placeholder,
10340
+ disabled,
10341
+ borderColor,
10342
+ borderColorFocus,
10343
+ textColor,
10344
+ selectedValue,
10345
+ startYear
10346
+ }) => {
10350
10347
  const [isFocused, setIsFocused] = React$1.useState(false);
10351
10348
  const [isOpen, setIsOpen] = React$1.useState(false);
10352
10349
  const [value, setValue] = React$1.useState('');
@@ -10788,23 +10785,22 @@ const MonthPopupPicker = ({
10788
10785
  };
10789
10786
 
10790
10787
  /* eslint-disable import/no-extraneous-dependencies */
10791
- const MonthPicker = _ref => {
10792
- let {
10793
- availableMonths,
10794
- label,
10795
- onChange,
10796
- borderRadius,
10797
- required,
10798
- width,
10799
- height,
10800
- placeholder,
10801
- disabled,
10802
- borderColor,
10803
- borderColorFocus,
10804
- textColor,
10805
- selectedValue,
10806
- startYear
10807
- } = _ref;
10788
+ const MonthPicker = ({
10789
+ availableMonths,
10790
+ label,
10791
+ onChange,
10792
+ borderRadius,
10793
+ required,
10794
+ width,
10795
+ height,
10796
+ placeholder,
10797
+ disabled,
10798
+ borderColor,
10799
+ borderColorFocus,
10800
+ textColor,
10801
+ selectedValue,
10802
+ startYear
10803
+ }) => {
10808
10804
  const [isFocused, setIsFocused] = React$1.useState(false);
10809
10805
  const [isOpen, setIsOpen] = React$1.useState(false);
10810
10806
  const [value, setValue] = React$1.useState('');
@@ -23915,22 +23911,21 @@ const DeleteIcon = styled__default["default"].div`
23915
23911
  position: absolute;
23916
23912
  `;
23917
23913
 
23918
- const QuickFilterDropdownSingle = _ref => {
23919
- let {
23920
- label,
23921
- hoverColor,
23922
- options,
23923
- selectedValue,
23924
- placeHolder,
23925
- onChange,
23926
- disabled,
23927
- width,
23928
- error,
23929
- errorMessage,
23930
- xIconShow,
23931
- labelColor,
23932
- showLabelOnTop
23933
- } = _ref;
23914
+ const QuickFilterDropdownSingle = ({
23915
+ label,
23916
+ hoverColor,
23917
+ options,
23918
+ selectedValue,
23919
+ placeHolder,
23920
+ onChange,
23921
+ disabled,
23922
+ width,
23923
+ error,
23924
+ errorMessage,
23925
+ xIconShow,
23926
+ labelColor,
23927
+ showLabelOnTop
23928
+ }) => {
23934
23929
  const [isFocused, setIsFocused] = React$1.useState(false);
23935
23930
  const [showOptions, setShowOptions] = React$1.useState(false);
23936
23931
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24327,24 +24322,23 @@ const IconContainer$2 = styled__default["default"].div`
24327
24322
  cursor: pointer;
24328
24323
  `;
24329
24324
 
24330
- const QuickFilterDropdownMultiSelection = _ref => {
24331
- let {
24332
- label,
24333
- labelEmptyValue,
24334
- options,
24335
- selectedValue,
24336
- placeHolder,
24337
- onChange,
24338
- required,
24339
- disabled,
24340
- width,
24341
- error,
24342
- errorMessage,
24343
- labelColor,
24344
- xIconShow,
24345
- checkBoxColor,
24346
- showLabelOnTop
24347
- } = _ref;
24325
+ const QuickFilterDropdownMultiSelection = ({
24326
+ label,
24327
+ labelEmptyValue,
24328
+ options,
24329
+ selectedValue,
24330
+ placeHolder,
24331
+ onChange,
24332
+ required,
24333
+ disabled,
24334
+ width,
24335
+ error,
24336
+ errorMessage,
24337
+ labelColor,
24338
+ xIconShow,
24339
+ checkBoxColor,
24340
+ showLabelOnTop
24341
+ }) => {
24348
24342
  const [isFocused, setIsFocused] = React$1.useState(false);
24349
24343
  const [showOptions, setShowOptions] = React$1.useState(false);
24350
24344
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35576,9 +35570,9 @@ const ToggleSlider = styled__default["default"].span`
35576
35570
  }
35577
35571
  `;
35578
35572
 
35579
- /**
35580
- * ToggleSwitch component for on/off states.
35581
- * Supports small/large sizes and disabled state.
35573
+ /**
35574
+ * ToggleSwitch component for on/off states.
35575
+ * Supports small/large sizes and disabled state.
35582
35576
  */
35583
35577
  function ToggleSwitch(_ref) {
35584
35578
  let {
@@ -51259,10 +51253,11 @@ const ItemManagerPanel = _ref => {
51259
51253
  onClick: e => {
51260
51254
  handleVendorClick(item);
51261
51255
  }
51262
- }, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, null, item.name), item.packages.length === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, (() => {
51256
+ }, /*#__PURE__*/React__default["default"].createElement(VendorNameAndPackagesContainer$1, null, /*#__PURE__*/React__default["default"].createElement(VendorName$2, null, item.name), console.log('item.name', item.name), item.packages.length === 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, "No Packages"), item.packages.length > 0 && /*#__PURE__*/React__default["default"].createElement(Subtitle$1, null, (() => {
51263
51257
  const packagesWithStatus = item.packages.filter(pkg => pkg.hasOwnProperty('status') && pkg.status != null && pkg.status !== undefined && pkg.status !== '');
51264
51258
  const allHaveStatus = packagesWithStatus.length === item.packages.length;
51265
51259
  const noneHaveStatus = packagesWithStatus.length === 0;
51260
+ console.log('noneHaveStatus', noneHaveStatus);
51266
51261
  if (noneHaveStatus) {
51267
51262
  return `0/${item.packages.length} sent`;
51268
51263
  } else if (allHaveStatus) {
@@ -51871,7 +51866,7 @@ const OverlayDropdown = _ref => {
51871
51866
  const newItem = {
51872
51867
  ...templateDialog.item,
51873
51868
  label: finalSentence,
51874
- value: `last_defined_${Date.now()}`,
51869
+ value: templateDialog.item.value,
51875
51870
  // Unique value
51876
51871
  overlayCode: templateDialog.group.overlayCode,
51877
51872
  overlayName: templateDialog.group.overlayName,
@@ -52394,6 +52389,9 @@ const StatusCard = styled__default["default"].div`
52394
52389
  flex-grow: 1;
52395
52390
  flex-basis: 0;
52396
52391
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
52392
+ @media (max-width: 1200px) {
52393
+ padding: 8px;
52394
+ }
52397
52395
  `;
52398
52396
  const CardHeader = styled__default["default"].div`
52399
52397
  display: flex;
@@ -52402,9 +52400,10 @@ const CardHeader = styled__default["default"].div`
52402
52400
  margin-bottom: 10px;
52403
52401
  `;
52404
52402
  const CheckmarkContainer = styled__default["default"].div`
52405
- width: 17px;
52406
- height: 17px;
52403
+ width: 18px;
52404
+ height: 18px;
52407
52405
  border: 2px solid #212121;
52406
+ box-sizing: border-box;
52408
52407
  border-radius: 4px;
52409
52408
  display: flex;
52410
52409
  align-items: center;
@@ -52421,6 +52420,11 @@ const CheckmarkContainer = styled__default["default"].div`
52421
52420
 
52422
52421
  svg { display: none; }
52423
52422
  &.checked svg { display: block; }
52423
+
52424
+ @media (max-width: 1200px) {
52425
+ width: 16px;
52426
+ height: 16px;
52427
+ }
52424
52428
  `;
52425
52429
  const Circle = styled__default["default"].div`
52426
52430
  width: 16px;
@@ -52428,19 +52432,17 @@ const Circle = styled__default["default"].div`
52428
52432
  border-radius: 50%;
52429
52433
  background-color: ${props => props.color};
52430
52434
  margin-right: 8px;
52435
+ @media (max-width: 1200px) {
52436
+ width: 14px;
52437
+ height: 14px;
52438
+ }
52431
52439
  `;
52432
52440
  const CardTitle = styled__default["default"].h3`
52433
52441
  margin: 0;
52434
52442
  font-size: 18px;
52435
52443
  font-weight: 500;
52436
- `;
52437
- styled__default["default"].input`
52438
- width: 16px;
52439
- height: 16px;
52440
- accent-color: #066768;
52441
- margin-left: auto;
52442
- &:checked {
52443
- filter: invert(1) hue-rotate(180deg) brightness(2);
52444
+ @media (max-width: 1200px) {
52445
+ font-size: 16px;
52444
52446
  }
52445
52447
  `;
52446
52448
  const CardContent = styled__default["default"].div`
@@ -52452,6 +52454,9 @@ const StatusCount = styled__default["default"].span`
52452
52454
  font-size: 32px;
52453
52455
  font-weight: 500;
52454
52456
  line-height: 1;
52457
+ @media (max-width: 1200px) {
52458
+ font-size: 26px;
52459
+ }
52455
52460
  `;
52456
52461
 
52457
52462
  const QuickFilterCards = _ref => {
@@ -52496,8 +52501,8 @@ const QuickFilterCards = _ref => {
52496
52501
  }), /*#__PURE__*/React__default["default"].createElement(CardTitle, null, status), /*#__PURE__*/React__default["default"].createElement(CheckmarkContainer, {
52497
52502
  className: checked ? "checked" : ""
52498
52503
  }, checked && /*#__PURE__*/React__default["default"].createElement("svg", {
52499
- width: "14",
52500
- height: "14",
52504
+ width: "15",
52505
+ height: "15",
52501
52506
  viewBox: "0 0 20 20",
52502
52507
  fill: "currentColor"
52503
52508
  }, /*#__PURE__*/React__default["default"].createElement("path", {