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.js
CHANGED
|
@@ -8939,27 +8939,26 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8939
8939
|
cursor: pointer;
|
|
8940
8940
|
`;
|
|
8941
8941
|
|
|
8942
|
-
const DropdownSingleNew =
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
} = _ref;
|
|
8942
|
+
const DropdownSingleNew = ({
|
|
8943
|
+
label,
|
|
8944
|
+
labelEmptyValue,
|
|
8945
|
+
options,
|
|
8946
|
+
selectedValue,
|
|
8947
|
+
onChange,
|
|
8948
|
+
required,
|
|
8949
|
+
disabled,
|
|
8950
|
+
width,
|
|
8951
|
+
height,
|
|
8952
|
+
withMarginBottom = true,
|
|
8953
|
+
error,
|
|
8954
|
+
errorMessage,
|
|
8955
|
+
xIconShow,
|
|
8956
|
+
labelColor,
|
|
8957
|
+
showLabelOnTop,
|
|
8958
|
+
orderBy,
|
|
8959
|
+
placeHolder = "",
|
|
8960
|
+
elementType
|
|
8961
|
+
}) => {
|
|
8963
8962
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8964
8963
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8965
8964
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -9464,27 +9463,26 @@ const IconContainer$4 = styled__default["default"].div`
|
|
|
9464
9463
|
cursor: pointer;
|
|
9465
9464
|
`;
|
|
9466
9465
|
|
|
9467
|
-
const DropdownMultiNew =
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
} = _ref;
|
|
9466
|
+
const DropdownMultiNew = ({
|
|
9467
|
+
label,
|
|
9468
|
+
labelEmptyValue,
|
|
9469
|
+
options,
|
|
9470
|
+
selectedValue,
|
|
9471
|
+
onChange,
|
|
9472
|
+
required,
|
|
9473
|
+
disabled,
|
|
9474
|
+
width,
|
|
9475
|
+
height,
|
|
9476
|
+
withMarginBottom = true,
|
|
9477
|
+
error,
|
|
9478
|
+
errorMessage,
|
|
9479
|
+
labelColor,
|
|
9480
|
+
xIconShow,
|
|
9481
|
+
checkBoxColor,
|
|
9482
|
+
showLabelOnTop,
|
|
9483
|
+
orderBy,
|
|
9484
|
+
elementType
|
|
9485
|
+
}) => {
|
|
9488
9486
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
9489
9487
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
9490
9488
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -24179,22 +24177,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24179
24177
|
position: absolute;
|
|
24180
24178
|
`;
|
|
24181
24179
|
|
|
24182
|
-
const QuickFilterDropdownSingle =
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24195
|
-
|
|
24196
|
-
|
|
24197
|
-
} = _ref;
|
|
24180
|
+
const QuickFilterDropdownSingle = ({
|
|
24181
|
+
label,
|
|
24182
|
+
hoverColor,
|
|
24183
|
+
options,
|
|
24184
|
+
selectedValue,
|
|
24185
|
+
placeHolder,
|
|
24186
|
+
onChange,
|
|
24187
|
+
disabled,
|
|
24188
|
+
width,
|
|
24189
|
+
error,
|
|
24190
|
+
errorMessage,
|
|
24191
|
+
xIconShow,
|
|
24192
|
+
labelColor,
|
|
24193
|
+
showLabelOnTop
|
|
24194
|
+
}) => {
|
|
24198
24195
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24199
24196
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24200
24197
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24651,26 +24648,25 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24651
24648
|
cursor: pointer;
|
|
24652
24649
|
`;
|
|
24653
24650
|
|
|
24654
|
-
const QuickFilterDropdownMultiSelection =
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24672
|
-
|
|
24673
|
-
} = _ref;
|
|
24651
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24652
|
+
label,
|
|
24653
|
+
labelEmptyValue,
|
|
24654
|
+
options,
|
|
24655
|
+
selectedValue,
|
|
24656
|
+
placeHolder,
|
|
24657
|
+
onChange,
|
|
24658
|
+
required,
|
|
24659
|
+
disabled,
|
|
24660
|
+
width,
|
|
24661
|
+
height,
|
|
24662
|
+
error,
|
|
24663
|
+
errorMessage,
|
|
24664
|
+
labelColor,
|
|
24665
|
+
xIconShow,
|
|
24666
|
+
checkBoxColor,
|
|
24667
|
+
showLabelOnTop,
|
|
24668
|
+
dropdownHeight
|
|
24669
|
+
}) => {
|
|
24674
24670
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24675
24671
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24676
24672
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -34983,18 +34979,17 @@ styled.css`
|
|
|
34983
34979
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34984
34980
|
* • onCancel() — callback
|
|
34985
34981
|
*/
|
|
34986
|
-
const WeeksCalendar =
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
} = _ref;
|
|
34982
|
+
const WeeksCalendar = ({
|
|
34983
|
+
year,
|
|
34984
|
+
defaultStartWeek = null,
|
|
34985
|
+
defaultEndWeek = null,
|
|
34986
|
+
backgroundColor = "#066768",
|
|
34987
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34988
|
+
allowedWeekRange = null,
|
|
34989
|
+
// New prop for range restriction
|
|
34990
|
+
onApply,
|
|
34991
|
+
onCancel
|
|
34992
|
+
}) => {
|
|
34998
34993
|
// state -------------------------------------------------
|
|
34999
34994
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
35000
34995
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -36102,12 +36097,6 @@ const ToggleSwitchLabel = styled__default["default"].label`
|
|
|
36102
36097
|
position: relative;
|
|
36103
36098
|
cursor: pointer;
|
|
36104
36099
|
user-select: none;
|
|
36105
|
-
opacity: ${_ref => {
|
|
36106
|
-
let {
|
|
36107
|
-
disabled
|
|
36108
|
-
} = _ref;
|
|
36109
|
-
return disabled ? 0.5 : 1;
|
|
36110
|
-
}};
|
|
36111
36100
|
`;
|
|
36112
36101
|
const ToggleInput = styled__default["default"].input`
|
|
36113
36102
|
display: none;
|
|
@@ -36115,19 +36104,15 @@ const ToggleInput = styled__default["default"].input`
|
|
|
36115
36104
|
const ToggleSlider = styled__default["default"].span`
|
|
36116
36105
|
display: block;
|
|
36117
36106
|
position: relative;
|
|
36118
|
-
background: ${
|
|
36119
|
-
|
|
36120
|
-
|
|
36121
|
-
|
|
36122
|
-
} = _ref2;
|
|
36123
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36124
|
-
}};
|
|
36107
|
+
background: ${({
|
|
36108
|
+
checked,
|
|
36109
|
+
disabled
|
|
36110
|
+
}) => checked ? "#006d6a" : disabled ? "#B1B1B1" : "#D0D0D0"};
|
|
36125
36111
|
border-radius: 999px;
|
|
36126
36112
|
transition: background 0.2s;
|
|
36127
|
-
${
|
|
36128
|
-
|
|
36129
|
-
|
|
36130
|
-
} = _ref3;
|
|
36113
|
+
${({
|
|
36114
|
+
size
|
|
36115
|
+
}) => {
|
|
36131
36116
|
switch (size) {
|
|
36132
36117
|
case "s":
|
|
36133
36118
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -36143,13 +36128,14 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36143
36128
|
left: 3px;
|
|
36144
36129
|
top: 50%;
|
|
36145
36130
|
transform: translateY(-50%);
|
|
36146
|
-
background:
|
|
36131
|
+
background: ${({
|
|
36132
|
+
disabled
|
|
36133
|
+
}) => disabled ? "#D0D0D0" : "#fff"};
|
|
36147
36134
|
border-radius: 50%;
|
|
36148
36135
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36149
|
-
${
|
|
36150
|
-
|
|
36151
|
-
|
|
36152
|
-
} = _ref4;
|
|
36136
|
+
${({
|
|
36137
|
+
size
|
|
36138
|
+
}) => {
|
|
36153
36139
|
switch (size) {
|
|
36154
36140
|
case "s":
|
|
36155
36141
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -36159,11 +36145,10 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36159
36145
|
return styled.css`width: 20px; height: 20px;`;
|
|
36160
36146
|
}
|
|
36161
36147
|
}}
|
|
36162
|
-
left: ${
|
|
36163
|
-
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
} = _ref5;
|
|
36148
|
+
left: ${({
|
|
36149
|
+
checked,
|
|
36150
|
+
size
|
|
36151
|
+
}) => {
|
|
36167
36152
|
if (!checked) return "3px";
|
|
36168
36153
|
switch (size) {
|
|
36169
36154
|
case "s":
|
|
@@ -54917,11 +54902,10 @@ const DropdownList = styled__default["default"].ul`
|
|
|
54917
54902
|
`}
|
|
54918
54903
|
`;
|
|
54919
54904
|
const SectionDiv = styled__default["default"].div`
|
|
54920
|
-
${
|
|
54921
|
-
|
|
54922
|
-
|
|
54923
|
-
|
|
54924
|
-
} = _ref;
|
|
54905
|
+
${({
|
|
54906
|
+
$showBorder,
|
|
54907
|
+
margin
|
|
54908
|
+
}) => {
|
|
54925
54909
|
switch ($showBorder) {
|
|
54926
54910
|
case 'Template Offer':
|
|
54927
54911
|
return styled.css`border-top: 1px solid #e6e2e2ff;
|