sag_components 2.0.0-beta208 → 2.0.0-beta209
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.d.ts
CHANGED
|
@@ -1608,11 +1608,7 @@ declare function ToasterMessageBox({ color, messageText, linkText, duration, wid
|
|
|
1608
1608
|
linkText?: string;
|
|
1609
1609
|
duration?: number;
|
|
1610
1610
|
width?: string;
|
|
1611
|
-
icon?:
|
|
1612
|
-
width?: string;
|
|
1613
|
-
height?: string;
|
|
1614
|
-
color?: string;
|
|
1615
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1611
|
+
icon?: string;
|
|
1616
1612
|
onLinkClick?: () => void;
|
|
1617
1613
|
onClose?: () => void;
|
|
1618
1614
|
}): react_jsx_runtime.JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -10580,24 +10580,23 @@ const QuarterPopupPicker = ({
|
|
|
10580
10580
|
};
|
|
10581
10581
|
|
|
10582
10582
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10583
|
-
const QuarterPicker =
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
} = _ref;
|
|
10583
|
+
const QuarterPicker = ({
|
|
10584
|
+
availableQuarters,
|
|
10585
|
+
// ["Q1-2024"]
|
|
10586
|
+
label,
|
|
10587
|
+
onChange,
|
|
10588
|
+
borderRadius,
|
|
10589
|
+
required,
|
|
10590
|
+
width,
|
|
10591
|
+
height,
|
|
10592
|
+
placeholder,
|
|
10593
|
+
disabled,
|
|
10594
|
+
borderColor,
|
|
10595
|
+
borderColorFocus,
|
|
10596
|
+
textColor,
|
|
10597
|
+
selectedValue,
|
|
10598
|
+
startYear
|
|
10599
|
+
}) => {
|
|
10601
10600
|
const [isFocused, setIsFocused] = useState(false);
|
|
10602
10601
|
const [isOpen, setIsOpen] = useState(false);
|
|
10603
10602
|
const [value, setValue] = useState('');
|
|
@@ -11039,23 +11038,22 @@ const MonthPopupPicker = ({
|
|
|
11039
11038
|
};
|
|
11040
11039
|
|
|
11041
11040
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11042
|
-
const MonthPicker =
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
} = _ref;
|
|
11041
|
+
const MonthPicker = ({
|
|
11042
|
+
availableMonths,
|
|
11043
|
+
label,
|
|
11044
|
+
onChange,
|
|
11045
|
+
borderRadius,
|
|
11046
|
+
required,
|
|
11047
|
+
width,
|
|
11048
|
+
height,
|
|
11049
|
+
placeholder,
|
|
11050
|
+
disabled,
|
|
11051
|
+
borderColor,
|
|
11052
|
+
borderColorFocus,
|
|
11053
|
+
textColor,
|
|
11054
|
+
selectedValue,
|
|
11055
|
+
startYear
|
|
11056
|
+
}) => {
|
|
11059
11057
|
const [isFocused, setIsFocused] = useState(false);
|
|
11060
11058
|
const [isOpen, setIsOpen] = useState(false);
|
|
11061
11059
|
const [value, setValue] = useState('');
|
|
@@ -24166,22 +24164,21 @@ const DeleteIcon = styled.div`
|
|
|
24166
24164
|
position: absolute;
|
|
24167
24165
|
`;
|
|
24168
24166
|
|
|
24169
|
-
const QuickFilterDropdownSingle =
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
} = _ref;
|
|
24167
|
+
const QuickFilterDropdownSingle = ({
|
|
24168
|
+
label,
|
|
24169
|
+
hoverColor,
|
|
24170
|
+
options,
|
|
24171
|
+
selectedValue,
|
|
24172
|
+
placeHolder,
|
|
24173
|
+
onChange,
|
|
24174
|
+
disabled,
|
|
24175
|
+
width,
|
|
24176
|
+
error,
|
|
24177
|
+
errorMessage,
|
|
24178
|
+
xIconShow,
|
|
24179
|
+
labelColor,
|
|
24180
|
+
showLabelOnTop
|
|
24181
|
+
}) => {
|
|
24185
24182
|
const [isFocused, setIsFocused] = useState(false);
|
|
24186
24183
|
const [showOptions, setShowOptions] = useState(false);
|
|
24187
24184
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24578,24 +24575,23 @@ const IconContainer$2 = styled.div`
|
|
|
24578
24575
|
cursor: pointer;
|
|
24579
24576
|
`;
|
|
24580
24577
|
|
|
24581
|
-
const QuickFilterDropdownMultiSelection =
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
} = _ref;
|
|
24578
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24579
|
+
label,
|
|
24580
|
+
labelEmptyValue,
|
|
24581
|
+
options,
|
|
24582
|
+
selectedValue,
|
|
24583
|
+
placeHolder,
|
|
24584
|
+
onChange,
|
|
24585
|
+
required,
|
|
24586
|
+
disabled,
|
|
24587
|
+
width,
|
|
24588
|
+
error,
|
|
24589
|
+
errorMessage,
|
|
24590
|
+
labelColor,
|
|
24591
|
+
xIconShow,
|
|
24592
|
+
checkBoxColor,
|
|
24593
|
+
showLabelOnTop
|
|
24594
|
+
}) => {
|
|
24599
24595
|
const [isFocused, setIsFocused] = useState(false);
|
|
24600
24596
|
const [showOptions, setShowOptions] = useState(false);
|
|
24601
24597
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35971,12 +35967,9 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35971
35967
|
position: relative;
|
|
35972
35968
|
cursor: pointer;
|
|
35973
35969
|
user-select: none;
|
|
35974
|
-
opacity: ${
|
|
35975
|
-
|
|
35976
|
-
|
|
35977
|
-
} = _ref;
|
|
35978
|
-
return disabled ? 0.5 : 1;
|
|
35979
|
-
}};
|
|
35970
|
+
opacity: ${({
|
|
35971
|
+
disabled
|
|
35972
|
+
}) => disabled ? 0.5 : 1};
|
|
35980
35973
|
`;
|
|
35981
35974
|
const ToggleInput = styled.input`
|
|
35982
35975
|
display: none;
|
|
@@ -35984,19 +35977,15 @@ const ToggleInput = styled.input`
|
|
|
35984
35977
|
const ToggleSlider = styled.span`
|
|
35985
35978
|
display: block;
|
|
35986
35979
|
position: relative;
|
|
35987
|
-
background: ${
|
|
35988
|
-
|
|
35989
|
-
|
|
35990
|
-
|
|
35991
|
-
} = _ref2;
|
|
35992
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35993
|
-
}};
|
|
35980
|
+
background: ${({
|
|
35981
|
+
checked,
|
|
35982
|
+
disabled
|
|
35983
|
+
}) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
|
|
35994
35984
|
border-radius: 999px;
|
|
35995
35985
|
transition: background 0.2s;
|
|
35996
|
-
${
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
} = _ref3;
|
|
35986
|
+
${({
|
|
35987
|
+
size
|
|
35988
|
+
}) => {
|
|
36000
35989
|
switch (size) {
|
|
36001
35990
|
case "s":
|
|
36002
35991
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36015,10 +36004,9 @@ const ToggleSlider = styled.span`
|
|
|
36015
36004
|
background: #fff;
|
|
36016
36005
|
border-radius: 50%;
|
|
36017
36006
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36018
|
-
${
|
|
36019
|
-
|
|
36020
|
-
|
|
36021
|
-
} = _ref4;
|
|
36007
|
+
${({
|
|
36008
|
+
size
|
|
36009
|
+
}) => {
|
|
36022
36010
|
switch (size) {
|
|
36023
36011
|
case "s":
|
|
36024
36012
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36028,11 +36016,10 @@ const ToggleSlider = styled.span`
|
|
|
36028
36016
|
return css`width: 20px; height: 20px;`;
|
|
36029
36017
|
}
|
|
36030
36018
|
}}
|
|
36031
|
-
left: ${
|
|
36032
|
-
|
|
36033
|
-
|
|
36034
|
-
|
|
36035
|
-
} = _ref5;
|
|
36019
|
+
left: ${({
|
|
36020
|
+
checked,
|
|
36021
|
+
size
|
|
36022
|
+
}) => {
|
|
36036
36023
|
if (!checked) return "3px";
|
|
36037
36024
|
switch (size) {
|
|
36038
36025
|
case "s":
|
|
@@ -36046,9 +36033,9 @@ const ToggleSlider = styled.span`
|
|
|
36046
36033
|
}
|
|
36047
36034
|
`;
|
|
36048
36035
|
|
|
36049
|
-
/**
|
|
36050
|
-
* ToggleSwitch component for on/off states.
|
|
36051
|
-
* Supports small/large sizes and disabled state.
|
|
36036
|
+
/**
|
|
36037
|
+
* ToggleSwitch component for on/off states.
|
|
36038
|
+
* Supports small/large sizes and disabled state.
|
|
36052
36039
|
*/
|
|
36053
36040
|
function ToggleSwitch(_ref) {
|
|
36054
36041
|
let {
|
|
@@ -55308,7 +55295,7 @@ const ToasterMessageBox = _ref => {
|
|
|
55308
55295
|
linkText = '',
|
|
55309
55296
|
duration = 5,
|
|
55310
55297
|
width = '500px',
|
|
55311
|
-
icon =
|
|
55298
|
+
icon = 'ok',
|
|
55312
55299
|
onLinkClick = () => {},
|
|
55313
55300
|
onClose = () => {}
|
|
55314
55301
|
} = _ref;
|