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 +93 -76
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +93 -76
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
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
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
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
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
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
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
24323
|
-
|
|
24324
|
-
|
|
24325
|
-
|
|
24326
|
-
|
|
24327
|
-
|
|
24328
|
-
|
|
24329
|
-
|
|
24330
|
-
|
|
24331
|
-
|
|
24332
|
-
|
|
24333
|
-
|
|
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
|
-
|
|
52391
|
-
|
|
52392
|
-
|
|
52393
|
-
|
|
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:
|
|
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
|
|
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
|
|
52962
|
+
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React$1.createElement(SectionDiv, {
|
|
52963
|
+
$showBorder: group.overlayName,
|
|
52947
52964
|
key: group.overlayCode
|
|
52948
|
-
},
|
|
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,
|