sag_components 2.0.0-beta284 → 2.0.0-beta285
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 +33 -35
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +33 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8930,28 +8930,27 @@ const IconContainer$5 = styled.div`
|
|
|
8930
8930
|
cursor: pointer;
|
|
8931
8931
|
`;
|
|
8932
8932
|
|
|
8933
|
-
const DropdownSingleNew =
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
} = _ref;
|
|
8933
|
+
const DropdownSingleNew = ({
|
|
8934
|
+
label,
|
|
8935
|
+
labelEmptyValue,
|
|
8936
|
+
options,
|
|
8937
|
+
selectedValue,
|
|
8938
|
+
onChange,
|
|
8939
|
+
required,
|
|
8940
|
+
disabled,
|
|
8941
|
+
width,
|
|
8942
|
+
height,
|
|
8943
|
+
minHeight,
|
|
8944
|
+
withMarginBottom = true,
|
|
8945
|
+
error,
|
|
8946
|
+
errorMessage,
|
|
8947
|
+
xIconShow,
|
|
8948
|
+
labelColor,
|
|
8949
|
+
showLabelOnTop,
|
|
8950
|
+
orderBy,
|
|
8951
|
+
placeHolder = "",
|
|
8952
|
+
elementType
|
|
8953
|
+
}) => {
|
|
8955
8954
|
const [isFocused, setIsFocused] = useState(false);
|
|
8956
8955
|
const [showOptions, setShowOptions] = useState(false);
|
|
8957
8956
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -34976,18 +34975,17 @@ css`
|
|
|
34976
34975
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34977
34976
|
* • onCancel() — callback
|
|
34978
34977
|
*/
|
|
34979
|
-
const WeeksCalendar =
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
} = _ref;
|
|
34978
|
+
const WeeksCalendar = ({
|
|
34979
|
+
year,
|
|
34980
|
+
defaultStartWeek = null,
|
|
34981
|
+
defaultEndWeek = null,
|
|
34982
|
+
backgroundColor = "#066768",
|
|
34983
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34984
|
+
allowedWeekRange = null,
|
|
34985
|
+
// New prop for range restriction
|
|
34986
|
+
onApply,
|
|
34987
|
+
onCancel
|
|
34988
|
+
}) => {
|
|
34991
34989
|
// state -------------------------------------------------
|
|
34992
34990
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34993
34991
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -57451,7 +57449,7 @@ const scrollableStyles = `
|
|
|
57451
57449
|
}
|
|
57452
57450
|
`;
|
|
57453
57451
|
const TooltipWrapper = styled(Tooltip$2)`
|
|
57454
|
-
|
|
57452
|
+
width: 100%;
|
|
57455
57453
|
`;
|
|
57456
57454
|
const DropdownContainer = styled.div`
|
|
57457
57455
|
position: relative;
|