sag_components 2.0.0-beta162 → 2.0.0-beta163
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 -98
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +89 -98
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/components/Tag/Tag.d.ts +0 -1
- package/dist/types/components/Tag/Tag.stories.d.ts +0 -99
- package/dist/types/components/Tag/Tag.style.d.ts +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -8865,6 +8865,8 @@ const DropdownSingleNew = ({
|
|
|
8865
8865
|
useEffect(() => {
|
|
8866
8866
|
if (selectedValue) {
|
|
8867
8867
|
setSelectedOptions(selectedValue);
|
|
8868
|
+
} else {
|
|
8869
|
+
setSelectedOptions([]);
|
|
8868
8870
|
}
|
|
8869
8871
|
}, [selectedValue]);
|
|
8870
8872
|
useEffect(() => {
|
|
@@ -9361,6 +9363,8 @@ const DropdownMultiNew = ({
|
|
|
9361
9363
|
useEffect(() => {
|
|
9362
9364
|
if (selectedValue) {
|
|
9363
9365
|
setSelectedOptions(selectedValue);
|
|
9366
|
+
} else {
|
|
9367
|
+
setSelectedOptions([]);
|
|
9364
9368
|
}
|
|
9365
9369
|
}, [selectedValue]);
|
|
9366
9370
|
useEffect(() => {
|
|
@@ -10422,24 +10426,23 @@ const QuarterPopupPicker = ({
|
|
|
10422
10426
|
};
|
|
10423
10427
|
|
|
10424
10428
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10425
|
-
const QuarterPicker =
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
} = _ref;
|
|
10429
|
+
const QuarterPicker = ({
|
|
10430
|
+
availableQuarters,
|
|
10431
|
+
// ["Q1-2024"]
|
|
10432
|
+
label,
|
|
10433
|
+
onChange,
|
|
10434
|
+
borderRadius,
|
|
10435
|
+
required,
|
|
10436
|
+
width,
|
|
10437
|
+
height,
|
|
10438
|
+
placeholder,
|
|
10439
|
+
disabled,
|
|
10440
|
+
borderColor,
|
|
10441
|
+
borderColorFocus,
|
|
10442
|
+
textColor,
|
|
10443
|
+
selectedValue,
|
|
10444
|
+
startYear
|
|
10445
|
+
}) => {
|
|
10443
10446
|
const [isFocused, setIsFocused] = useState(false);
|
|
10444
10447
|
const [isOpen, setIsOpen] = useState(false);
|
|
10445
10448
|
const [value, setValue] = useState('');
|
|
@@ -10881,23 +10884,22 @@ const MonthPopupPicker = ({
|
|
|
10881
10884
|
};
|
|
10882
10885
|
|
|
10883
10886
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10884
|
-
const MonthPicker =
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
} = _ref;
|
|
10887
|
+
const MonthPicker = ({
|
|
10888
|
+
availableMonths,
|
|
10889
|
+
label,
|
|
10890
|
+
onChange,
|
|
10891
|
+
borderRadius,
|
|
10892
|
+
required,
|
|
10893
|
+
width,
|
|
10894
|
+
height,
|
|
10895
|
+
placeholder,
|
|
10896
|
+
disabled,
|
|
10897
|
+
borderColor,
|
|
10898
|
+
borderColorFocus,
|
|
10899
|
+
textColor,
|
|
10900
|
+
selectedValue,
|
|
10901
|
+
startYear
|
|
10902
|
+
}) => {
|
|
10901
10903
|
const [isFocused, setIsFocused] = useState(false);
|
|
10902
10904
|
const [isOpen, setIsOpen] = useState(false);
|
|
10903
10905
|
const [value, setValue] = useState('');
|
|
@@ -24008,22 +24010,21 @@ const DeleteIcon = styled.div`
|
|
|
24008
24010
|
position: absolute;
|
|
24009
24011
|
`;
|
|
24010
24012
|
|
|
24011
|
-
const QuickFilterDropdownSingle =
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24018
|
-
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
} = _ref;
|
|
24013
|
+
const QuickFilterDropdownSingle = ({
|
|
24014
|
+
label,
|
|
24015
|
+
hoverColor,
|
|
24016
|
+
options,
|
|
24017
|
+
selectedValue,
|
|
24018
|
+
placeHolder,
|
|
24019
|
+
onChange,
|
|
24020
|
+
disabled,
|
|
24021
|
+
width,
|
|
24022
|
+
error,
|
|
24023
|
+
errorMessage,
|
|
24024
|
+
xIconShow,
|
|
24025
|
+
labelColor,
|
|
24026
|
+
showLabelOnTop
|
|
24027
|
+
}) => {
|
|
24027
24028
|
const [isFocused, setIsFocused] = useState(false);
|
|
24028
24029
|
const [showOptions, setShowOptions] = useState(false);
|
|
24029
24030
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24420,24 +24421,23 @@ const IconContainer$2 = styled.div`
|
|
|
24420
24421
|
cursor: pointer;
|
|
24421
24422
|
`;
|
|
24422
24423
|
|
|
24423
|
-
const QuickFilterDropdownMultiSelection =
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24435
|
-
|
|
24436
|
-
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
} = _ref;
|
|
24424
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24425
|
+
label,
|
|
24426
|
+
labelEmptyValue,
|
|
24427
|
+
options,
|
|
24428
|
+
selectedValue,
|
|
24429
|
+
placeHolder,
|
|
24430
|
+
onChange,
|
|
24431
|
+
required,
|
|
24432
|
+
disabled,
|
|
24433
|
+
width,
|
|
24434
|
+
error,
|
|
24435
|
+
errorMessage,
|
|
24436
|
+
labelColor,
|
|
24437
|
+
xIconShow,
|
|
24438
|
+
checkBoxColor,
|
|
24439
|
+
showLabelOnTop
|
|
24440
|
+
}) => {
|
|
24441
24441
|
const [isFocused, setIsFocused] = useState(false);
|
|
24442
24442
|
const [showOptions, setShowOptions] = useState(false);
|
|
24443
24443
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35609,12 +35609,9 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35609
35609
|
position: relative;
|
|
35610
35610
|
cursor: pointer;
|
|
35611
35611
|
user-select: none;
|
|
35612
|
-
opacity: ${
|
|
35613
|
-
|
|
35614
|
-
|
|
35615
|
-
} = _ref;
|
|
35616
|
-
return disabled ? 0.5 : 1;
|
|
35617
|
-
}};
|
|
35612
|
+
opacity: ${({
|
|
35613
|
+
disabled
|
|
35614
|
+
}) => disabled ? 0.5 : 1};
|
|
35618
35615
|
`;
|
|
35619
35616
|
const ToggleInput = styled.input`
|
|
35620
35617
|
display: none;
|
|
@@ -35622,19 +35619,15 @@ const ToggleInput = styled.input`
|
|
|
35622
35619
|
const ToggleSlider = styled.span`
|
|
35623
35620
|
display: block;
|
|
35624
35621
|
position: relative;
|
|
35625
|
-
background: ${
|
|
35626
|
-
|
|
35627
|
-
|
|
35628
|
-
|
|
35629
|
-
} = _ref2;
|
|
35630
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35631
|
-
}};
|
|
35622
|
+
background: ${({
|
|
35623
|
+
checked,
|
|
35624
|
+
disabled
|
|
35625
|
+
}) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
|
|
35632
35626
|
border-radius: 999px;
|
|
35633
35627
|
transition: background 0.2s;
|
|
35634
|
-
${
|
|
35635
|
-
|
|
35636
|
-
|
|
35637
|
-
} = _ref3;
|
|
35628
|
+
${({
|
|
35629
|
+
size
|
|
35630
|
+
}) => {
|
|
35638
35631
|
switch (size) {
|
|
35639
35632
|
case "s":
|
|
35640
35633
|
return css`width: 40px; height: 20px;`;
|
|
@@ -35653,10 +35646,9 @@ const ToggleSlider = styled.span`
|
|
|
35653
35646
|
background: #fff;
|
|
35654
35647
|
border-radius: 50%;
|
|
35655
35648
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
35656
|
-
${
|
|
35657
|
-
|
|
35658
|
-
|
|
35659
|
-
} = _ref4;
|
|
35649
|
+
${({
|
|
35650
|
+
size
|
|
35651
|
+
}) => {
|
|
35660
35652
|
switch (size) {
|
|
35661
35653
|
case "s":
|
|
35662
35654
|
return css`width: 14px; height: 14px;`;
|
|
@@ -35666,11 +35658,10 @@ const ToggleSlider = styled.span`
|
|
|
35666
35658
|
return css`width: 20px; height: 20px;`;
|
|
35667
35659
|
}
|
|
35668
35660
|
}}
|
|
35669
|
-
left: ${
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
} = _ref5;
|
|
35661
|
+
left: ${({
|
|
35662
|
+
checked,
|
|
35663
|
+
size
|
|
35664
|
+
}) => {
|
|
35674
35665
|
if (!checked) return "3px";
|
|
35675
35666
|
switch (size) {
|
|
35676
35667
|
case "s":
|
|
@@ -35684,9 +35675,9 @@ const ToggleSlider = styled.span`
|
|
|
35684
35675
|
}
|
|
35685
35676
|
`;
|
|
35686
35677
|
|
|
35687
|
-
/**
|
|
35688
|
-
* ToggleSwitch component for on/off states.
|
|
35689
|
-
* Supports small/large sizes and disabled state.
|
|
35678
|
+
/**
|
|
35679
|
+
* ToggleSwitch component for on/off states.
|
|
35680
|
+
* Supports small/large sizes and disabled state.
|
|
35690
35681
|
*/
|
|
35691
35682
|
function ToggleSwitch(_ref) {
|
|
35692
35683
|
let {
|