sag_components 2.0.0-beta167 → 2.0.0-beta169
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 +3 -1
- package/dist/index.esm.js +100 -109
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -108
- package/dist/index.js.map +1 -1
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8828,6 +8828,7 @@ const DropdownSingleNew = ({
|
|
|
8828
8828
|
labelColor,
|
|
8829
8829
|
showLabelOnTop,
|
|
8830
8830
|
orderBy,
|
|
8831
|
+
placeHolder = "",
|
|
8831
8832
|
elementType
|
|
8832
8833
|
}) => {
|
|
8833
8834
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
@@ -9012,7 +9013,7 @@ const DropdownSingleNew = ({
|
|
|
9012
9013
|
onChange: handleInputChange,
|
|
9013
9014
|
onClick: handleLabelClick,
|
|
9014
9015
|
disabled: disabled,
|
|
9015
|
-
placeholder: isFocused ? filteredOptions.length <= 5 ? "Select Option…" : "Type To Search" : "",
|
|
9016
|
+
placeholder: isFocused ? placeHolder ? placeHolder : filteredOptions.length <= 5 ? "Select Option…" : "Type To Search" : "",
|
|
9016
9017
|
error: error,
|
|
9017
9018
|
isFocused: isFocused
|
|
9018
9019
|
})), selectedOptions.length > 0 && xIconShow && /*#__PURE__*/React__default["default"].createElement(IconContainer$5, {
|
|
@@ -9055,12 +9056,13 @@ const DropdownSingleNew = ({
|
|
|
9055
9056
|
}, option.label)))));
|
|
9056
9057
|
};
|
|
9057
9058
|
|
|
9058
|
-
const CheckBoxCheckedIcon =
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9059
|
+
const CheckBoxCheckedIcon = _ref => {
|
|
9060
|
+
let {
|
|
9061
|
+
clicked,
|
|
9062
|
+
width = "16",
|
|
9063
|
+
height = "16",
|
|
9064
|
+
color = "#1B30AA"
|
|
9065
|
+
} = _ref;
|
|
9064
9066
|
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
9065
9067
|
width: width,
|
|
9066
9068
|
height: height,
|
|
@@ -9073,12 +9075,13 @@ const CheckBoxCheckedIcon = ({
|
|
|
9073
9075
|
}));
|
|
9074
9076
|
};
|
|
9075
9077
|
|
|
9076
|
-
const CheckBoxNotCheckedIcon =
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9078
|
+
const CheckBoxNotCheckedIcon = _ref => {
|
|
9079
|
+
let {
|
|
9080
|
+
clicked,
|
|
9081
|
+
width = "16",
|
|
9082
|
+
height = "16",
|
|
9083
|
+
color = "#212121"
|
|
9084
|
+
} = _ref;
|
|
9082
9085
|
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
9083
9086
|
width: width,
|
|
9084
9087
|
height: height,
|
|
@@ -10436,24 +10439,23 @@ const QuarterPopupPicker = ({
|
|
|
10436
10439
|
};
|
|
10437
10440
|
|
|
10438
10441
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10439
|
-
const QuarterPicker =
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
} = _ref;
|
|
10442
|
+
const QuarterPicker = ({
|
|
10443
|
+
availableQuarters,
|
|
10444
|
+
// ["Q1-2024"]
|
|
10445
|
+
label,
|
|
10446
|
+
onChange,
|
|
10447
|
+
borderRadius,
|
|
10448
|
+
required,
|
|
10449
|
+
width,
|
|
10450
|
+
height,
|
|
10451
|
+
placeholder,
|
|
10452
|
+
disabled,
|
|
10453
|
+
borderColor,
|
|
10454
|
+
borderColorFocus,
|
|
10455
|
+
textColor,
|
|
10456
|
+
selectedValue,
|
|
10457
|
+
startYear
|
|
10458
|
+
}) => {
|
|
10457
10459
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10458
10460
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10459
10461
|
const [value, setValue] = React$1.useState('');
|
|
@@ -10895,23 +10897,22 @@ const MonthPopupPicker = ({
|
|
|
10895
10897
|
};
|
|
10896
10898
|
|
|
10897
10899
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10898
|
-
const MonthPicker =
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
} = _ref;
|
|
10900
|
+
const MonthPicker = ({
|
|
10901
|
+
availableMonths,
|
|
10902
|
+
label,
|
|
10903
|
+
onChange,
|
|
10904
|
+
borderRadius,
|
|
10905
|
+
required,
|
|
10906
|
+
width,
|
|
10907
|
+
height,
|
|
10908
|
+
placeholder,
|
|
10909
|
+
disabled,
|
|
10910
|
+
borderColor,
|
|
10911
|
+
borderColorFocus,
|
|
10912
|
+
textColor,
|
|
10913
|
+
selectedValue,
|
|
10914
|
+
startYear
|
|
10915
|
+
}) => {
|
|
10915
10916
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10916
10917
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10917
10918
|
const [value, setValue] = React$1.useState('');
|
|
@@ -24022,22 +24023,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24022
24023
|
position: absolute;
|
|
24023
24024
|
`;
|
|
24024
24025
|
|
|
24025
|
-
const QuickFilterDropdownSingle =
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
} = _ref;
|
|
24026
|
+
const QuickFilterDropdownSingle = ({
|
|
24027
|
+
label,
|
|
24028
|
+
hoverColor,
|
|
24029
|
+
options,
|
|
24030
|
+
selectedValue,
|
|
24031
|
+
placeHolder,
|
|
24032
|
+
onChange,
|
|
24033
|
+
disabled,
|
|
24034
|
+
width,
|
|
24035
|
+
error,
|
|
24036
|
+
errorMessage,
|
|
24037
|
+
xIconShow,
|
|
24038
|
+
labelColor,
|
|
24039
|
+
showLabelOnTop
|
|
24040
|
+
}) => {
|
|
24041
24041
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24042
24042
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24043
24043
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24434,24 +24434,23 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24434
24434
|
cursor: pointer;
|
|
24435
24435
|
`;
|
|
24436
24436
|
|
|
24437
|
-
const QuickFilterDropdownMultiSelection =
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24445
|
-
|
|
24446
|
-
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
|
|
24452
|
-
|
|
24453
|
-
|
|
24454
|
-
} = _ref;
|
|
24437
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24438
|
+
label,
|
|
24439
|
+
labelEmptyValue,
|
|
24440
|
+
options,
|
|
24441
|
+
selectedValue,
|
|
24442
|
+
placeHolder,
|
|
24443
|
+
onChange,
|
|
24444
|
+
required,
|
|
24445
|
+
disabled,
|
|
24446
|
+
width,
|
|
24447
|
+
error,
|
|
24448
|
+
errorMessage,
|
|
24449
|
+
labelColor,
|
|
24450
|
+
xIconShow,
|
|
24451
|
+
checkBoxColor,
|
|
24452
|
+
showLabelOnTop
|
|
24453
|
+
}) => {
|
|
24455
24454
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24456
24455
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24457
24456
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -35623,12 +35622,9 @@ const ToggleSwitchLabel = styled__default["default"].label`
|
|
|
35623
35622
|
position: relative;
|
|
35624
35623
|
cursor: pointer;
|
|
35625
35624
|
user-select: none;
|
|
35626
|
-
opacity: ${
|
|
35627
|
-
|
|
35628
|
-
|
|
35629
|
-
} = _ref;
|
|
35630
|
-
return disabled ? 0.5 : 1;
|
|
35631
|
-
}};
|
|
35625
|
+
opacity: ${({
|
|
35626
|
+
disabled
|
|
35627
|
+
}) => disabled ? 0.5 : 1};
|
|
35632
35628
|
`;
|
|
35633
35629
|
const ToggleInput = styled__default["default"].input`
|
|
35634
35630
|
display: none;
|
|
@@ -35636,19 +35632,15 @@ const ToggleInput = styled__default["default"].input`
|
|
|
35636
35632
|
const ToggleSlider = styled__default["default"].span`
|
|
35637
35633
|
display: block;
|
|
35638
35634
|
position: relative;
|
|
35639
|
-
background: ${
|
|
35640
|
-
|
|
35641
|
-
|
|
35642
|
-
|
|
35643
|
-
} = _ref2;
|
|
35644
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35645
|
-
}};
|
|
35635
|
+
background: ${({
|
|
35636
|
+
checked,
|
|
35637
|
+
disabled
|
|
35638
|
+
}) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
|
|
35646
35639
|
border-radius: 999px;
|
|
35647
35640
|
transition: background 0.2s;
|
|
35648
|
-
${
|
|
35649
|
-
|
|
35650
|
-
|
|
35651
|
-
} = _ref3;
|
|
35641
|
+
${({
|
|
35642
|
+
size
|
|
35643
|
+
}) => {
|
|
35652
35644
|
switch (size) {
|
|
35653
35645
|
case "s":
|
|
35654
35646
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -35667,10 +35659,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35667
35659
|
background: #fff;
|
|
35668
35660
|
border-radius: 50%;
|
|
35669
35661
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
35670
|
-
${
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
} = _ref4;
|
|
35662
|
+
${({
|
|
35663
|
+
size
|
|
35664
|
+
}) => {
|
|
35674
35665
|
switch (size) {
|
|
35675
35666
|
case "s":
|
|
35676
35667
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -35680,11 +35671,10 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
35680
35671
|
return styled.css`width: 20px; height: 20px;`;
|
|
35681
35672
|
}
|
|
35682
35673
|
}}
|
|
35683
|
-
left: ${
|
|
35684
|
-
|
|
35685
|
-
|
|
35686
|
-
|
|
35687
|
-
} = _ref5;
|
|
35674
|
+
left: ${({
|
|
35675
|
+
checked,
|
|
35676
|
+
size
|
|
35677
|
+
}) => {
|
|
35688
35678
|
if (!checked) return "3px";
|
|
35689
35679
|
switch (size) {
|
|
35690
35680
|
case "s":
|
|
@@ -43874,6 +43864,7 @@ const NewSubitem = ({
|
|
|
43874
43864
|
}, {
|
|
43875
43865
|
value: "Local"
|
|
43876
43866
|
}],
|
|
43867
|
+
defaultIndex: negotiatedComponent === "Scale" ? 0 : 1,
|
|
43877
43868
|
segmentRadius: 8,
|
|
43878
43869
|
selectedSegmentColor: "#FFFFFF",
|
|
43879
43870
|
selectedTextColor: "#212121",
|
|
@@ -53975,6 +53966,7 @@ exports.Budgets = Budgets;
|
|
|
53975
53966
|
exports.Build = Build;
|
|
53976
53967
|
exports.Button = Button$1;
|
|
53977
53968
|
exports.Campaigns = Campaigns;
|
|
53969
|
+
exports.CheckBox = CheckBox;
|
|
53978
53970
|
exports.CollapseData = CollapseData;
|
|
53979
53971
|
exports.CollapseHeader = CollapseHeader;
|
|
53980
53972
|
exports.ContainerTable = ContainerTable;
|