sag_components 2.0.0-beta235 → 2.0.0-beta236
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 +106 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +106 -122
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8929,27 +8929,26 @@ const IconContainer$5 = styled.div`
|
|
|
8929
8929
|
cursor: pointer;
|
|
8930
8930
|
`;
|
|
8931
8931
|
|
|
8932
|
-
const DropdownSingleNew =
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
} = _ref;
|
|
8932
|
+
const DropdownSingleNew = ({
|
|
8933
|
+
label,
|
|
8934
|
+
labelEmptyValue,
|
|
8935
|
+
options,
|
|
8936
|
+
selectedValue,
|
|
8937
|
+
onChange,
|
|
8938
|
+
required,
|
|
8939
|
+
disabled,
|
|
8940
|
+
width,
|
|
8941
|
+
height,
|
|
8942
|
+
withMarginBottom = true,
|
|
8943
|
+
error,
|
|
8944
|
+
errorMessage,
|
|
8945
|
+
xIconShow,
|
|
8946
|
+
labelColor,
|
|
8947
|
+
showLabelOnTop,
|
|
8948
|
+
orderBy,
|
|
8949
|
+
placeHolder = "",
|
|
8950
|
+
elementType
|
|
8951
|
+
}) => {
|
|
8953
8952
|
const [isFocused, setIsFocused] = useState(false);
|
|
8954
8953
|
const [showOptions, setShowOptions] = useState(false);
|
|
8955
8954
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -9454,27 +9453,26 @@ const IconContainer$4 = styled.div`
|
|
|
9454
9453
|
cursor: pointer;
|
|
9455
9454
|
`;
|
|
9456
9455
|
|
|
9457
|
-
const DropdownMultiNew =
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
} = _ref;
|
|
9456
|
+
const DropdownMultiNew = ({
|
|
9457
|
+
label,
|
|
9458
|
+
labelEmptyValue,
|
|
9459
|
+
options,
|
|
9460
|
+
selectedValue,
|
|
9461
|
+
onChange,
|
|
9462
|
+
required,
|
|
9463
|
+
disabled,
|
|
9464
|
+
width,
|
|
9465
|
+
height,
|
|
9466
|
+
withMarginBottom = true,
|
|
9467
|
+
error,
|
|
9468
|
+
errorMessage,
|
|
9469
|
+
labelColor,
|
|
9470
|
+
xIconShow,
|
|
9471
|
+
checkBoxColor,
|
|
9472
|
+
showLabelOnTop,
|
|
9473
|
+
orderBy,
|
|
9474
|
+
elementType
|
|
9475
|
+
}) => {
|
|
9478
9476
|
const [isFocused, setIsFocused] = useState(false);
|
|
9479
9477
|
const [showOptions, setShowOptions] = useState(false);
|
|
9480
9478
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -24169,22 +24167,21 @@ const DeleteIcon = styled.div`
|
|
|
24169
24167
|
position: absolute;
|
|
24170
24168
|
`;
|
|
24171
24169
|
|
|
24172
|
-
const QuickFilterDropdownSingle =
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
} = _ref;
|
|
24170
|
+
const QuickFilterDropdownSingle = ({
|
|
24171
|
+
label,
|
|
24172
|
+
hoverColor,
|
|
24173
|
+
options,
|
|
24174
|
+
selectedValue,
|
|
24175
|
+
placeHolder,
|
|
24176
|
+
onChange,
|
|
24177
|
+
disabled,
|
|
24178
|
+
width,
|
|
24179
|
+
error,
|
|
24180
|
+
errorMessage,
|
|
24181
|
+
xIconShow,
|
|
24182
|
+
labelColor,
|
|
24183
|
+
showLabelOnTop
|
|
24184
|
+
}) => {
|
|
24188
24185
|
const [isFocused, setIsFocused] = useState(false);
|
|
24189
24186
|
const [showOptions, setShowOptions] = useState(false);
|
|
24190
24187
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24641,26 +24638,25 @@ const IconContainer$2 = styled.div`
|
|
|
24641
24638
|
cursor: pointer;
|
|
24642
24639
|
`;
|
|
24643
24640
|
|
|
24644
|
-
const QuickFilterDropdownMultiSelection =
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
} = _ref;
|
|
24641
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24642
|
+
label,
|
|
24643
|
+
labelEmptyValue,
|
|
24644
|
+
options,
|
|
24645
|
+
selectedValue,
|
|
24646
|
+
placeHolder,
|
|
24647
|
+
onChange,
|
|
24648
|
+
required,
|
|
24649
|
+
disabled,
|
|
24650
|
+
width,
|
|
24651
|
+
height,
|
|
24652
|
+
error,
|
|
24653
|
+
errorMessage,
|
|
24654
|
+
labelColor,
|
|
24655
|
+
xIconShow,
|
|
24656
|
+
checkBoxColor,
|
|
24657
|
+
showLabelOnTop,
|
|
24658
|
+
dropdownHeight
|
|
24659
|
+
}) => {
|
|
24664
24660
|
const [isFocused, setIsFocused] = useState(false);
|
|
24665
24661
|
const [showOptions, setShowOptions] = useState(false);
|
|
24666
24662
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -34973,18 +34969,17 @@ css`
|
|
|
34973
34969
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34974
34970
|
* • onCancel() — callback
|
|
34975
34971
|
*/
|
|
34976
|
-
const WeeksCalendar =
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
} = _ref;
|
|
34972
|
+
const WeeksCalendar = ({
|
|
34973
|
+
year,
|
|
34974
|
+
defaultStartWeek = null,
|
|
34975
|
+
defaultEndWeek = null,
|
|
34976
|
+
backgroundColor = "#066768",
|
|
34977
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34978
|
+
allowedWeekRange = null,
|
|
34979
|
+
// New prop for range restriction
|
|
34980
|
+
onApply,
|
|
34981
|
+
onCancel
|
|
34982
|
+
}) => {
|
|
34988
34983
|
// state -------------------------------------------------
|
|
34989
34984
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34990
34985
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -36092,12 +36087,6 @@ const ToggleSwitchLabel = styled.label`
|
|
|
36092
36087
|
position: relative;
|
|
36093
36088
|
cursor: pointer;
|
|
36094
36089
|
user-select: none;
|
|
36095
|
-
opacity: ${_ref => {
|
|
36096
|
-
let {
|
|
36097
|
-
disabled
|
|
36098
|
-
} = _ref;
|
|
36099
|
-
return disabled ? 0.5 : 1;
|
|
36100
|
-
}};
|
|
36101
36090
|
`;
|
|
36102
36091
|
const ToggleInput = styled.input`
|
|
36103
36092
|
display: none;
|
|
@@ -36105,19 +36094,15 @@ const ToggleInput = styled.input`
|
|
|
36105
36094
|
const ToggleSlider = styled.span`
|
|
36106
36095
|
display: block;
|
|
36107
36096
|
position: relative;
|
|
36108
|
-
background: ${
|
|
36109
|
-
|
|
36110
|
-
|
|
36111
|
-
|
|
36112
|
-
} = _ref2;
|
|
36113
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36114
|
-
}};
|
|
36097
|
+
background: ${({
|
|
36098
|
+
checked,
|
|
36099
|
+
disabled
|
|
36100
|
+
}) => checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0"};
|
|
36115
36101
|
border-radius: 999px;
|
|
36116
36102
|
transition: background 0.2s;
|
|
36117
|
-
${
|
|
36118
|
-
|
|
36119
|
-
|
|
36120
|
-
} = _ref3;
|
|
36103
|
+
${({
|
|
36104
|
+
size
|
|
36105
|
+
}) => {
|
|
36121
36106
|
switch (size) {
|
|
36122
36107
|
case "s":
|
|
36123
36108
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36133,13 +36118,14 @@ const ToggleSlider = styled.span`
|
|
|
36133
36118
|
left: 3px;
|
|
36134
36119
|
top: 50%;
|
|
36135
36120
|
transform: translateY(-50%);
|
|
36136
|
-
background:
|
|
36121
|
+
background: ${({
|
|
36122
|
+
disabled
|
|
36123
|
+
}) => disabled ? "#D0D0D0" : "#fff"};
|
|
36137
36124
|
border-radius: 50%;
|
|
36138
36125
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36139
|
-
${
|
|
36140
|
-
|
|
36141
|
-
|
|
36142
|
-
} = _ref4;
|
|
36126
|
+
${({
|
|
36127
|
+
size
|
|
36128
|
+
}) => {
|
|
36143
36129
|
switch (size) {
|
|
36144
36130
|
case "s":
|
|
36145
36131
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36149,11 +36135,10 @@ const ToggleSlider = styled.span`
|
|
|
36149
36135
|
return css`width: 20px; height: 20px;`;
|
|
36150
36136
|
}
|
|
36151
36137
|
}}
|
|
36152
|
-
left: ${
|
|
36153
|
-
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
} = _ref5;
|
|
36138
|
+
left: ${({
|
|
36139
|
+
checked,
|
|
36140
|
+
size
|
|
36141
|
+
}) => {
|
|
36157
36142
|
if (!checked) return "3px";
|
|
36158
36143
|
switch (size) {
|
|
36159
36144
|
case "s":
|
|
@@ -54907,11 +54892,10 @@ const DropdownList = styled.ul`
|
|
|
54907
54892
|
`}
|
|
54908
54893
|
`;
|
|
54909
54894
|
const SectionDiv = styled.div`
|
|
54910
|
-
${
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54914
|
-
} = _ref;
|
|
54895
|
+
${({
|
|
54896
|
+
$showBorder,
|
|
54897
|
+
margin
|
|
54898
|
+
}) => {
|
|
54915
54899
|
switch ($showBorder) {
|
|
54916
54900
|
case 'Template Offer':
|
|
54917
54901
|
return css`border-top: 1px solid #e6e2e2ff;
|