sag_components 2.0.0-beta160 → 2.0.0-beta161
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 +89 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +89 -75
- package/dist/index.js.map +1 -1
- package/dist/types/components/DropdownNew/DropdownNew.stories.d.ts +31 -10
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8610,6 +8610,7 @@ const DropdownWrapper$2 = styled.div`
|
|
|
8610
8610
|
justify-content: center;
|
|
8611
8611
|
align-items: flex-start;
|
|
8612
8612
|
width: ${props => props.width || '300px'};
|
|
8613
|
+
height: ${props => props.height || '40px'};
|
|
8613
8614
|
font-family: "Poppins", sans-serif;
|
|
8614
8615
|
font-weight: 400;
|
|
8615
8616
|
font-size: 14px;
|
|
@@ -8635,7 +8636,10 @@ const Label$8 = styled.label`
|
|
|
8635
8636
|
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
8636
8637
|
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
8637
8638
|
position: absolute;
|
|
8638
|
-
top: ${props =>
|
|
8639
|
+
top: ${props => {
|
|
8640
|
+
const height = parseInt(props.height.replace('px', ''), 10);
|
|
8641
|
+
return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
|
|
8642
|
+
}};
|
|
8639
8643
|
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
8640
8644
|
transform: translateY(-50%);
|
|
8641
8645
|
transition: ${props => props.showLabelOnTop ? 'top 0.3s ease, font-size 0.3s ease, color 0.3s ease' : ''} ;
|
|
@@ -8777,6 +8781,7 @@ const DropdownSingleNew = ({
|
|
|
8777
8781
|
required,
|
|
8778
8782
|
disabled,
|
|
8779
8783
|
width,
|
|
8784
|
+
height,
|
|
8780
8785
|
withMarginBottom = true,
|
|
8781
8786
|
error,
|
|
8782
8787
|
errorMessage,
|
|
@@ -8932,6 +8937,7 @@ const DropdownSingleNew = ({
|
|
|
8932
8937
|
return /*#__PURE__*/React$1.createElement(DropdownWrapper$2, {
|
|
8933
8938
|
className: "DropdownWrapper",
|
|
8934
8939
|
width: width,
|
|
8940
|
+
height: height,
|
|
8935
8941
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
8936
8942
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
8937
8943
|
}, /*#__PURE__*/React$1.createElement(InputContainer$8, {
|
|
@@ -8953,6 +8959,7 @@ const DropdownSingleNew = ({
|
|
|
8953
8959
|
labelColor: labelColor,
|
|
8954
8960
|
hasValue: selectedOptions?.length > 0 || inputValue,
|
|
8955
8961
|
disabled: disabled,
|
|
8962
|
+
height: height,
|
|
8956
8963
|
error: error,
|
|
8957
8964
|
errorMessage: errorMessage,
|
|
8958
8965
|
onClick: handleLabelClick,
|
|
@@ -9069,6 +9076,7 @@ const DropdownWrapper$1 = styled.div`
|
|
|
9069
9076
|
justify-content: center;
|
|
9070
9077
|
align-items: flex-start;
|
|
9071
9078
|
width: ${props => props.width || '300px'};
|
|
9079
|
+
height: ${props => props.height || '50px'};
|
|
9072
9080
|
font-family: "Poppins", sans-serif;
|
|
9073
9081
|
font-weight: 400;
|
|
9074
9082
|
font-size: 14px;
|
|
@@ -9094,7 +9102,10 @@ const Label$7 = styled.label`
|
|
|
9094
9102
|
color: ${props => props.error ? 'red' : props.disabled ? '#888' : props.labelColor};
|
|
9095
9103
|
background-color: ${props => props.showLabelOnTop ? 'white' : 'transparent'} ;
|
|
9096
9104
|
position: absolute;
|
|
9097
|
-
top: ${props =>
|
|
9105
|
+
top: ${props => {
|
|
9106
|
+
const height = parseInt(props.height.replace('px', ''), 10);
|
|
9107
|
+
return props.isFocused || props.hasValue ? '0px' : `${height / 2}px`;
|
|
9108
|
+
}};
|
|
9098
9109
|
left: ${props => props.isFocused || props.hasValue ? '23px' : '10px'};
|
|
9099
9110
|
font-family: Poppins;
|
|
9100
9111
|
transform: translateY(-50%);
|
|
@@ -9439,6 +9450,7 @@ const DropdownMultiNew = ({
|
|
|
9439
9450
|
return /*#__PURE__*/React$1.createElement(DropdownWrapper$1, {
|
|
9440
9451
|
className: "DropdownWrapper",
|
|
9441
9452
|
width: width,
|
|
9453
|
+
height: height,
|
|
9442
9454
|
onMouseEnter: () => setHoverInputContainer(true),
|
|
9443
9455
|
onMouseLeave: () => setHoverInputContainer(false)
|
|
9444
9456
|
}, /*#__PURE__*/React$1.createElement(InputContainer$7, {
|
|
@@ -9461,6 +9473,7 @@ const DropdownMultiNew = ({
|
|
|
9461
9473
|
labelColor: labelColor,
|
|
9462
9474
|
hasValue: selectedOptions?.length > 0 || inputValue,
|
|
9463
9475
|
disabled: disabled,
|
|
9476
|
+
height: height,
|
|
9464
9477
|
error: error,
|
|
9465
9478
|
errorMessage: errorMessage,
|
|
9466
9479
|
onClick: handleLabelClick,
|
|
@@ -9535,6 +9548,7 @@ const DropdownMain = styled.div`
|
|
|
9535
9548
|
justify-content: center;
|
|
9536
9549
|
align-items: flex-start;
|
|
9537
9550
|
width: ${props => props.width || '300px'};
|
|
9551
|
+
height: ${props => props.height || '50px'};
|
|
9538
9552
|
font-family: "Poppins", sans-serif;
|
|
9539
9553
|
font-weight: 400;
|
|
9540
9554
|
font-size: 14px;
|
|
@@ -9555,6 +9569,7 @@ const DropdownNew = props => {
|
|
|
9555
9569
|
required = false,
|
|
9556
9570
|
disabled = false,
|
|
9557
9571
|
width = "300px",
|
|
9572
|
+
height = "52px",
|
|
9558
9573
|
withMarginBottom = true,
|
|
9559
9574
|
error = false,
|
|
9560
9575
|
showLabelOnTop = true,
|
|
@@ -9573,7 +9588,8 @@ const DropdownNew = props => {
|
|
|
9573
9588
|
};
|
|
9574
9589
|
return /*#__PURE__*/React$1.createElement(DropdownMain, {
|
|
9575
9590
|
className: "DropdownMain",
|
|
9576
|
-
width: width
|
|
9591
|
+
width: width,
|
|
9592
|
+
height: height
|
|
9577
9593
|
}, isMulti ? /*#__PURE__*/React$1.createElement(DropdownMultiNew, {
|
|
9578
9594
|
className: "DropdownMultiNew",
|
|
9579
9595
|
placeHolder: placeHolder,
|
|
@@ -9584,6 +9600,7 @@ const DropdownNew = props => {
|
|
|
9584
9600
|
required: required,
|
|
9585
9601
|
options: options,
|
|
9586
9602
|
width: width,
|
|
9603
|
+
height: height,
|
|
9587
9604
|
withMarginBottom: withMarginBottom,
|
|
9588
9605
|
disabled: disabled,
|
|
9589
9606
|
error: error,
|
|
@@ -9604,6 +9621,7 @@ const DropdownNew = props => {
|
|
|
9604
9621
|
required: required,
|
|
9605
9622
|
options: options,
|
|
9606
9623
|
width: width,
|
|
9624
|
+
height: height,
|
|
9607
9625
|
withMarginBottom: withMarginBottom,
|
|
9608
9626
|
disabled: disabled,
|
|
9609
9627
|
error: error,
|
|
@@ -10375,24 +10393,23 @@ const QuarterPopupPicker = ({
|
|
|
10375
10393
|
};
|
|
10376
10394
|
|
|
10377
10395
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10378
|
-
const QuarterPicker =
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
} = _ref;
|
|
10396
|
+
const QuarterPicker = ({
|
|
10397
|
+
availableQuarters,
|
|
10398
|
+
// ["Q1-2024"]
|
|
10399
|
+
label,
|
|
10400
|
+
onChange,
|
|
10401
|
+
borderRadius,
|
|
10402
|
+
required,
|
|
10403
|
+
width,
|
|
10404
|
+
height,
|
|
10405
|
+
placeholder,
|
|
10406
|
+
disabled,
|
|
10407
|
+
borderColor,
|
|
10408
|
+
borderColorFocus,
|
|
10409
|
+
textColor,
|
|
10410
|
+
selectedValue,
|
|
10411
|
+
startYear
|
|
10412
|
+
}) => {
|
|
10396
10413
|
const [isFocused, setIsFocused] = useState(false);
|
|
10397
10414
|
const [isOpen, setIsOpen] = useState(false);
|
|
10398
10415
|
const [value, setValue] = useState('');
|
|
@@ -10834,23 +10851,22 @@ const MonthPopupPicker = ({
|
|
|
10834
10851
|
};
|
|
10835
10852
|
|
|
10836
10853
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10837
|
-
const MonthPicker =
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
} = _ref;
|
|
10854
|
+
const MonthPicker = ({
|
|
10855
|
+
availableMonths,
|
|
10856
|
+
label,
|
|
10857
|
+
onChange,
|
|
10858
|
+
borderRadius,
|
|
10859
|
+
required,
|
|
10860
|
+
width,
|
|
10861
|
+
height,
|
|
10862
|
+
placeholder,
|
|
10863
|
+
disabled,
|
|
10864
|
+
borderColor,
|
|
10865
|
+
borderColorFocus,
|
|
10866
|
+
textColor,
|
|
10867
|
+
selectedValue,
|
|
10868
|
+
startYear
|
|
10869
|
+
}) => {
|
|
10854
10870
|
const [isFocused, setIsFocused] = useState(false);
|
|
10855
10871
|
const [isOpen, setIsOpen] = useState(false);
|
|
10856
10872
|
const [value, setValue] = useState('');
|
|
@@ -23961,22 +23977,21 @@ const DeleteIcon = styled.div`
|
|
|
23961
23977
|
position: absolute;
|
|
23962
23978
|
`;
|
|
23963
23979
|
|
|
23964
|
-
const QuickFilterDropdownSingle =
|
|
23965
|
-
|
|
23966
|
-
|
|
23967
|
-
|
|
23968
|
-
|
|
23969
|
-
|
|
23970
|
-
|
|
23971
|
-
|
|
23972
|
-
|
|
23973
|
-
|
|
23974
|
-
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
} = _ref;
|
|
23980
|
+
const QuickFilterDropdownSingle = ({
|
|
23981
|
+
label,
|
|
23982
|
+
hoverColor,
|
|
23983
|
+
options,
|
|
23984
|
+
selectedValue,
|
|
23985
|
+
placeHolder,
|
|
23986
|
+
onChange,
|
|
23987
|
+
disabled,
|
|
23988
|
+
width,
|
|
23989
|
+
error,
|
|
23990
|
+
errorMessage,
|
|
23991
|
+
xIconShow,
|
|
23992
|
+
labelColor,
|
|
23993
|
+
showLabelOnTop
|
|
23994
|
+
}) => {
|
|
23980
23995
|
const [isFocused, setIsFocused] = useState(false);
|
|
23981
23996
|
const [showOptions, setShowOptions] = useState(false);
|
|
23982
23997
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24373,24 +24388,23 @@ const IconContainer$2 = styled.div`
|
|
|
24373
24388
|
cursor: pointer;
|
|
24374
24389
|
`;
|
|
24375
24390
|
|
|
24376
|
-
const QuickFilterDropdownMultiSelection =
|
|
24377
|
-
|
|
24378
|
-
|
|
24379
|
-
|
|
24380
|
-
|
|
24381
|
-
|
|
24382
|
-
|
|
24383
|
-
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
} = _ref;
|
|
24391
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24392
|
+
label,
|
|
24393
|
+
labelEmptyValue,
|
|
24394
|
+
options,
|
|
24395
|
+
selectedValue,
|
|
24396
|
+
placeHolder,
|
|
24397
|
+
onChange,
|
|
24398
|
+
required,
|
|
24399
|
+
disabled,
|
|
24400
|
+
width,
|
|
24401
|
+
error,
|
|
24402
|
+
errorMessage,
|
|
24403
|
+
labelColor,
|
|
24404
|
+
xIconShow,
|
|
24405
|
+
checkBoxColor,
|
|
24406
|
+
showLabelOnTop
|
|
24407
|
+
}) => {
|
|
24394
24408
|
const [isFocused, setIsFocused] = useState(false);
|
|
24395
24409
|
const [showOptions, setShowOptions] = useState(false);
|
|
24396
24410
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35622,9 +35636,9 @@ const ToggleSlider = styled.span`
|
|
|
35622
35636
|
}
|
|
35623
35637
|
`;
|
|
35624
35638
|
|
|
35625
|
-
/**
|
|
35626
|
-
* ToggleSwitch component for on/off states.
|
|
35627
|
-
* Supports small/large sizes and disabled state.
|
|
35639
|
+
/**
|
|
35640
|
+
* ToggleSwitch component for on/off states.
|
|
35641
|
+
* Supports small/large sizes and disabled state.
|
|
35628
35642
|
*/
|
|
35629
35643
|
function ToggleSwitch(_ref) {
|
|
35630
35644
|
let {
|