sag_components 2.0.0-beta148 → 2.0.0-beta149

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.esm.js CHANGED
@@ -10320,23 +10320,24 @@ const QuarterPopupPicker = ({
10320
10320
  };
10321
10321
 
10322
10322
  /* eslint-disable import/no-extraneous-dependencies */
10323
- const QuarterPicker = ({
10324
- availableQuarters,
10325
- // ["Q1-2024"]
10326
- label,
10327
- onChange,
10328
- borderRadius,
10329
- required,
10330
- width,
10331
- height,
10332
- placeholder,
10333
- disabled,
10334
- borderColor,
10335
- borderColorFocus,
10336
- textColor,
10337
- selectedValue,
10338
- startYear
10339
- }) => {
10323
+ const QuarterPicker = _ref => {
10324
+ let {
10325
+ availableQuarters,
10326
+ // ["Q1-2024"]
10327
+ label,
10328
+ onChange,
10329
+ borderRadius,
10330
+ required,
10331
+ width,
10332
+ height,
10333
+ placeholder,
10334
+ disabled,
10335
+ borderColor,
10336
+ borderColorFocus,
10337
+ textColor,
10338
+ selectedValue,
10339
+ startYear
10340
+ } = _ref;
10340
10341
  const [isFocused, setIsFocused] = useState(false);
10341
10342
  const [isOpen, setIsOpen] = useState(false);
10342
10343
  const [value, setValue] = useState('');
@@ -10778,22 +10779,23 @@ const MonthPopupPicker = ({
10778
10779
  };
10779
10780
 
10780
10781
  /* eslint-disable import/no-extraneous-dependencies */
10781
- const MonthPicker = ({
10782
- availableMonths,
10783
- label,
10784
- onChange,
10785
- borderRadius,
10786
- required,
10787
- width,
10788
- height,
10789
- placeholder,
10790
- disabled,
10791
- borderColor,
10792
- borderColorFocus,
10793
- textColor,
10794
- selectedValue,
10795
- startYear
10796
- }) => {
10782
+ const MonthPicker = _ref => {
10783
+ let {
10784
+ availableMonths,
10785
+ label,
10786
+ onChange,
10787
+ borderRadius,
10788
+ required,
10789
+ width,
10790
+ height,
10791
+ placeholder,
10792
+ disabled,
10793
+ borderColor,
10794
+ borderColorFocus,
10795
+ textColor,
10796
+ selectedValue,
10797
+ startYear
10798
+ } = _ref;
10797
10799
  const [isFocused, setIsFocused] = useState(false);
10798
10800
  const [isOpen, setIsOpen] = useState(false);
10799
10801
  const [value, setValue] = useState('');
@@ -23904,21 +23906,22 @@ const DeleteIcon = styled.div`
23904
23906
  position: absolute;
23905
23907
  `;
23906
23908
 
23907
- const QuickFilterDropdownSingle = ({
23908
- label,
23909
- hoverColor,
23910
- options,
23911
- selectedValue,
23912
- placeHolder,
23913
- onChange,
23914
- disabled,
23915
- width,
23916
- error,
23917
- errorMessage,
23918
- xIconShow,
23919
- labelColor,
23920
- showLabelOnTop
23921
- }) => {
23909
+ const QuickFilterDropdownSingle = _ref => {
23910
+ let {
23911
+ label,
23912
+ hoverColor,
23913
+ options,
23914
+ selectedValue,
23915
+ placeHolder,
23916
+ onChange,
23917
+ disabled,
23918
+ width,
23919
+ error,
23920
+ errorMessage,
23921
+ xIconShow,
23922
+ labelColor,
23923
+ showLabelOnTop
23924
+ } = _ref;
23922
23925
  const [isFocused, setIsFocused] = useState(false);
23923
23926
  const [showOptions, setShowOptions] = useState(false);
23924
23927
  const [inputValue, setInputValue] = useState("");
@@ -24315,23 +24318,24 @@ const IconContainer$2 = styled.div`
24315
24318
  cursor: pointer;
24316
24319
  `;
24317
24320
 
24318
- const QuickFilterDropdownMultiSelection = ({
24319
- label,
24320
- labelEmptyValue,
24321
- options,
24322
- selectedValue,
24323
- placeHolder,
24324
- onChange,
24325
- required,
24326
- disabled,
24327
- width,
24328
- error,
24329
- errorMessage,
24330
- labelColor,
24331
- xIconShow,
24332
- checkBoxColor,
24333
- showLabelOnTop
24334
- }) => {
24321
+ const QuickFilterDropdownMultiSelection = _ref => {
24322
+ let {
24323
+ label,
24324
+ labelEmptyValue,
24325
+ options,
24326
+ selectedValue,
24327
+ placeHolder,
24328
+ onChange,
24329
+ required,
24330
+ disabled,
24331
+ width,
24332
+ error,
24333
+ errorMessage,
24334
+ labelColor,
24335
+ xIconShow,
24336
+ checkBoxColor,
24337
+ showLabelOnTop
24338
+ } = _ref;
24335
24339
  const [isFocused, setIsFocused] = useState(false);
24336
24340
  const [showOptions, setShowOptions] = useState(false);
24337
24341
  const [inputValue, setInputValue] = useState('');
@@ -35563,9 +35567,9 @@ const ToggleSlider = styled.span`
35563
35567
  }
35564
35568
  `;
35565
35569
 
35566
- /**
35567
- * ToggleSwitch component for on/off states.
35568
- * Supports small/large sizes and disabled state.
35570
+ /**
35571
+ * ToggleSwitch component for on/off states.
35572
+ * Supports small/large sizes and disabled state.
35569
35573
  */
35570
35574
  function ToggleSwitch(_ref) {
35571
35575
  let {
@@ -52387,21 +52391,33 @@ const DropdownList = styled.ul`
52387
52391
  `}
52388
52392
  `;
52389
52393
  const SectionDiv = styled.div`
52390
- &:nth-child(2),
52391
- &:nth-child(4){
52392
- border-top: 1px solid #e6e2e2ff;
52393
- padding-top: 16px;
52394
+ ${({
52395
+ $showBorder
52396
+ }) => {
52397
+ switch ($showBorder) {
52398
+ case 'Template Offer':
52399
+ return css`border-top: 1px solid #e6e2e2ff;
52400
+ margin-top: 8px;`;
52401
+ case 'Last defined by you':
52402
+ return css`border-bottom: 1px solid #e6e2e2ff;
52403
+ padding-bottom: 8px;
52404
+ margin-bottom: 8px;`;
52405
+ default:
52406
+ return css`border-top: none`;
52394
52407
  }
52408
+ }}
52395
52409
  `;
52396
52410
  const SectionTitle = styled.li`
52397
52411
  font-size: 14px;
52398
52412
  color: #bdbdbd;
52399
- padding: 12px 12px 0 12px;
52413
+ padding: 8px 12px 0 12px;
52414
+ margin: 8px 12px 0 12px;
52400
52415
  font-weight: 500;
52401
52416
  pointer-events: none;
52417
+ list-style: none;
52402
52418
  `;
52403
52419
  const DropdownItem = styled.li`
52404
- padding: 8px 16px;
52420
+ padding: 8px 12px;
52405
52421
  cursor: pointer;
52406
52422
  display: flex;
52407
52423
  align-items: center;
@@ -52943,9 +52959,10 @@ const OverlayDropdown = _ref => {
52943
52959
  dropdownMaxHeight: dropdownMaxHeight,
52944
52960
  width: width,
52945
52961
  position: dropdownPosition
52946
- }, dataToRender.map((group, groupIndex) => group.items && group.items.length > 0 && /*#__PURE__*/React$1.createElement(SectionDiv, {
52962
+ }, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React$1.createElement(SectionDiv, {
52963
+ $showBorder: group.overlayName,
52947
52964
  key: group.overlayCode
52948
- }, (groupIndex === 0 || groupIndex === 3) && /*#__PURE__*/React$1.createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React$1.createElement(DropdownItem, {
52965
+ }, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React$1.createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React$1.createElement(DropdownItem, {
52949
52966
  key: item.value,
52950
52967
  selected: item.value === value,
52951
52968
  selectedColor: selectedColor,