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.js CHANGED
@@ -10330,23 +10330,24 @@ const QuarterPopupPicker = ({
10330
10330
  };
10331
10331
 
10332
10332
  /* eslint-disable import/no-extraneous-dependencies */
10333
- const QuarterPicker = ({
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
- }) => {
10333
+ const QuarterPicker = _ref => {
10334
+ let {
10335
+ availableQuarters,
10336
+ // ["Q1-2024"]
10337
+ label,
10338
+ onChange,
10339
+ borderRadius,
10340
+ required,
10341
+ width,
10342
+ height,
10343
+ placeholder,
10344
+ disabled,
10345
+ borderColor,
10346
+ borderColorFocus,
10347
+ textColor,
10348
+ selectedValue,
10349
+ startYear
10350
+ } = _ref;
10350
10351
  const [isFocused, setIsFocused] = React$1.useState(false);
10351
10352
  const [isOpen, setIsOpen] = React$1.useState(false);
10352
10353
  const [value, setValue] = React$1.useState('');
@@ -10788,22 +10789,23 @@ const MonthPopupPicker = ({
10788
10789
  };
10789
10790
 
10790
10791
  /* eslint-disable import/no-extraneous-dependencies */
10791
- const MonthPicker = ({
10792
- availableMonths,
10793
- label,
10794
- onChange,
10795
- borderRadius,
10796
- required,
10797
- width,
10798
- height,
10799
- placeholder,
10800
- disabled,
10801
- borderColor,
10802
- borderColorFocus,
10803
- textColor,
10804
- selectedValue,
10805
- startYear
10806
- }) => {
10792
+ const MonthPicker = _ref => {
10793
+ let {
10794
+ availableMonths,
10795
+ label,
10796
+ onChange,
10797
+ borderRadius,
10798
+ required,
10799
+ width,
10800
+ height,
10801
+ placeholder,
10802
+ disabled,
10803
+ borderColor,
10804
+ borderColorFocus,
10805
+ textColor,
10806
+ selectedValue,
10807
+ startYear
10808
+ } = _ref;
10807
10809
  const [isFocused, setIsFocused] = React$1.useState(false);
10808
10810
  const [isOpen, setIsOpen] = React$1.useState(false);
10809
10811
  const [value, setValue] = React$1.useState('');
@@ -23914,21 +23916,22 @@ const DeleteIcon = styled__default["default"].div`
23914
23916
  position: absolute;
23915
23917
  `;
23916
23918
 
23917
- const QuickFilterDropdownSingle = ({
23918
- label,
23919
- hoverColor,
23920
- options,
23921
- selectedValue,
23922
- placeHolder,
23923
- onChange,
23924
- disabled,
23925
- width,
23926
- error,
23927
- errorMessage,
23928
- xIconShow,
23929
- labelColor,
23930
- showLabelOnTop
23931
- }) => {
23919
+ const QuickFilterDropdownSingle = _ref => {
23920
+ let {
23921
+ label,
23922
+ hoverColor,
23923
+ options,
23924
+ selectedValue,
23925
+ placeHolder,
23926
+ onChange,
23927
+ disabled,
23928
+ width,
23929
+ error,
23930
+ errorMessage,
23931
+ xIconShow,
23932
+ labelColor,
23933
+ showLabelOnTop
23934
+ } = _ref;
23932
23935
  const [isFocused, setIsFocused] = React$1.useState(false);
23933
23936
  const [showOptions, setShowOptions] = React$1.useState(false);
23934
23937
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24325,23 +24328,24 @@ const IconContainer$2 = styled__default["default"].div`
24325
24328
  cursor: pointer;
24326
24329
  `;
24327
24330
 
24328
- const QuickFilterDropdownMultiSelection = ({
24329
- label,
24330
- labelEmptyValue,
24331
- options,
24332
- selectedValue,
24333
- placeHolder,
24334
- onChange,
24335
- required,
24336
- disabled,
24337
- width,
24338
- error,
24339
- errorMessage,
24340
- labelColor,
24341
- xIconShow,
24342
- checkBoxColor,
24343
- showLabelOnTop
24344
- }) => {
24331
+ const QuickFilterDropdownMultiSelection = _ref => {
24332
+ let {
24333
+ label,
24334
+ labelEmptyValue,
24335
+ options,
24336
+ selectedValue,
24337
+ placeHolder,
24338
+ onChange,
24339
+ required,
24340
+ disabled,
24341
+ width,
24342
+ error,
24343
+ errorMessage,
24344
+ labelColor,
24345
+ xIconShow,
24346
+ checkBoxColor,
24347
+ showLabelOnTop
24348
+ } = _ref;
24345
24349
  const [isFocused, setIsFocused] = React$1.useState(false);
24346
24350
  const [showOptions, setShowOptions] = React$1.useState(false);
24347
24351
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35573,9 +35577,9 @@ const ToggleSlider = styled__default["default"].span`
35573
35577
  }
35574
35578
  `;
35575
35579
 
35576
- /**
35577
- * ToggleSwitch component for on/off states.
35578
- * Supports small/large sizes and disabled state.
35580
+ /**
35581
+ * ToggleSwitch component for on/off states.
35582
+ * Supports small/large sizes and disabled state.
35579
35583
  */
35580
35584
  function ToggleSwitch(_ref) {
35581
35585
  let {
@@ -52397,21 +52401,33 @@ const DropdownList = styled__default["default"].ul`
52397
52401
  `}
52398
52402
  `;
52399
52403
  const SectionDiv = styled__default["default"].div`
52400
- &:nth-child(2),
52401
- &:nth-child(4){
52402
- border-top: 1px solid #e6e2e2ff;
52403
- padding-top: 16px;
52404
+ ${({
52405
+ $showBorder
52406
+ }) => {
52407
+ switch ($showBorder) {
52408
+ case 'Template Offer':
52409
+ return styled.css`border-top: 1px solid #e6e2e2ff;
52410
+ margin-top: 8px;`;
52411
+ case 'Last defined by you':
52412
+ return styled.css`border-bottom: 1px solid #e6e2e2ff;
52413
+ padding-bottom: 8px;
52414
+ margin-bottom: 8px;`;
52415
+ default:
52416
+ return styled.css`border-top: none`;
52404
52417
  }
52418
+ }}
52405
52419
  `;
52406
52420
  const SectionTitle = styled__default["default"].li`
52407
52421
  font-size: 14px;
52408
52422
  color: #bdbdbd;
52409
- padding: 12px 12px 0 12px;
52423
+ padding: 8px 12px 0 12px;
52424
+ margin: 8px 12px 0 12px;
52410
52425
  font-weight: 500;
52411
52426
  pointer-events: none;
52427
+ list-style: none;
52412
52428
  `;
52413
52429
  const DropdownItem = styled__default["default"].li`
52414
- padding: 8px 16px;
52430
+ padding: 8px 12px;
52415
52431
  cursor: pointer;
52416
52432
  display: flex;
52417
52433
  align-items: center;
@@ -52953,9 +52969,10 @@ const OverlayDropdown = _ref => {
52953
52969
  dropdownMaxHeight: dropdownMaxHeight,
52954
52970
  width: width,
52955
52971
  position: dropdownPosition
52956
- }, dataToRender.map((group, groupIndex) => group.items && group.items.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
52972
+ }, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
52973
+ $showBorder: group.overlayName,
52957
52974
  key: group.overlayCode
52958
- }, (groupIndex === 0 || groupIndex === 3) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
52975
+ }, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
52959
52976
  key: item.value,
52960
52977
  selected: item.value === value,
52961
52978
  selectedColor: selectedColor,