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.js
CHANGED
|
@@ -8940,28 +8940,27 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8940
8940
|
cursor: pointer;
|
|
8941
8941
|
`;
|
|
8942
8942
|
|
|
8943
|
-
const DropdownSingleNew =
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
} = _ref;
|
|
8943
|
+
const DropdownSingleNew = ({
|
|
8944
|
+
label,
|
|
8945
|
+
labelEmptyValue,
|
|
8946
|
+
options,
|
|
8947
|
+
selectedValue,
|
|
8948
|
+
onChange,
|
|
8949
|
+
required,
|
|
8950
|
+
disabled,
|
|
8951
|
+
width,
|
|
8952
|
+
height,
|
|
8953
|
+
minHeight,
|
|
8954
|
+
withMarginBottom = true,
|
|
8955
|
+
error,
|
|
8956
|
+
errorMessage,
|
|
8957
|
+
xIconShow,
|
|
8958
|
+
labelColor,
|
|
8959
|
+
showLabelOnTop,
|
|
8960
|
+
orderBy,
|
|
8961
|
+
placeHolder = "",
|
|
8962
|
+
elementType
|
|
8963
|
+
}) => {
|
|
8965
8964
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8966
8965
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8967
8966
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -34986,18 +34985,17 @@ styled.css`
|
|
|
34986
34985
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34987
34986
|
* • onCancel() — callback
|
|
34988
34987
|
*/
|
|
34989
|
-
const WeeksCalendar =
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35000
|
-
} = _ref;
|
|
34988
|
+
const WeeksCalendar = ({
|
|
34989
|
+
year,
|
|
34990
|
+
defaultStartWeek = null,
|
|
34991
|
+
defaultEndWeek = null,
|
|
34992
|
+
backgroundColor = "#066768",
|
|
34993
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34994
|
+
allowedWeekRange = null,
|
|
34995
|
+
// New prop for range restriction
|
|
34996
|
+
onApply,
|
|
34997
|
+
onCancel
|
|
34998
|
+
}) => {
|
|
35001
34999
|
// state -------------------------------------------------
|
|
35002
35000
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
35003
35001
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -57461,7 +57459,7 @@ const scrollableStyles = `
|
|
|
57461
57459
|
}
|
|
57462
57460
|
`;
|
|
57463
57461
|
const TooltipWrapper = styled__default["default"](Tooltip$2)`
|
|
57464
|
-
|
|
57462
|
+
width: 100%;
|
|
57465
57463
|
`;
|
|
57466
57464
|
const DropdownContainer = styled__default["default"].div`
|
|
57467
57465
|
position: relative;
|