sag_components 2.0.0-beta262 → 2.0.0-beta264
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
CHANGED
|
@@ -1574,7 +1574,7 @@ declare function ModalDrawer({ open, height, onClose, children, widthPercent }:
|
|
|
1574
1574
|
widthPercent?: number;
|
|
1575
1575
|
}): react_jsx_runtime.JSX.Element;
|
|
1576
1576
|
|
|
1577
|
-
declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarkerBackground, required, selectedColor, hoverColor, dropdownMaxHeight, width, height, label, labelEmptyValue, showLabelOnTop, placeHolder, labelColor, placeHolderColor, textColorMenu, margin, editableDigitalCoupon, dropdownDigitalCouponTitle, className, ...props }: {
|
|
1577
|
+
declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarkerBackground, required, selectedColor, hoverColor, dropdownMaxHeight, dropdownWidth, width, height, label, labelEmptyValue, showLabelOnTop, placeHolder, labelColor, placeHolderColor, textColorMenu, margin, editableDigitalCoupon, dropdownDigitalCouponTitle, className, ...props }: {
|
|
1578
1578
|
[x: string]: any;
|
|
1579
1579
|
data?: any[];
|
|
1580
1580
|
value: any;
|
|
@@ -1585,6 +1585,7 @@ declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarke
|
|
|
1585
1585
|
selectedColor?: string;
|
|
1586
1586
|
hoverColor?: string;
|
|
1587
1587
|
dropdownMaxHeight?: string;
|
|
1588
|
+
dropdownWidth?: string;
|
|
1588
1589
|
width?: string;
|
|
1589
1590
|
height?: string;
|
|
1590
1591
|
label: any;
|
package/dist/index.esm.js
CHANGED
|
@@ -8929,26 +8929,27 @@ 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
|
-
|
|
8932
|
+
const DropdownSingleNew = _ref => {
|
|
8933
|
+
let {
|
|
8934
|
+
label,
|
|
8935
|
+
labelEmptyValue,
|
|
8936
|
+
options,
|
|
8937
|
+
selectedValue,
|
|
8938
|
+
onChange,
|
|
8939
|
+
required,
|
|
8940
|
+
disabled,
|
|
8941
|
+
width,
|
|
8942
|
+
height,
|
|
8943
|
+
withMarginBottom = true,
|
|
8944
|
+
error,
|
|
8945
|
+
errorMessage,
|
|
8946
|
+
xIconShow,
|
|
8947
|
+
labelColor,
|
|
8948
|
+
showLabelOnTop,
|
|
8949
|
+
orderBy,
|
|
8950
|
+
placeHolder = "",
|
|
8951
|
+
elementType
|
|
8952
|
+
} = _ref;
|
|
8952
8953
|
const [isFocused, setIsFocused] = useState(false);
|
|
8953
8954
|
const [showOptions, setShowOptions] = useState(false);
|
|
8954
8955
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -9453,26 +9454,27 @@ const IconContainer$4 = styled.div`
|
|
|
9453
9454
|
cursor: pointer;
|
|
9454
9455
|
`;
|
|
9455
9456
|
|
|
9456
|
-
const DropdownMultiNew =
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9457
|
+
const DropdownMultiNew = _ref => {
|
|
9458
|
+
let {
|
|
9459
|
+
label,
|
|
9460
|
+
labelEmptyValue,
|
|
9461
|
+
options,
|
|
9462
|
+
selectedValue,
|
|
9463
|
+
onChange,
|
|
9464
|
+
required,
|
|
9465
|
+
disabled,
|
|
9466
|
+
width,
|
|
9467
|
+
height,
|
|
9468
|
+
withMarginBottom = true,
|
|
9469
|
+
error,
|
|
9470
|
+
errorMessage,
|
|
9471
|
+
labelColor,
|
|
9472
|
+
xIconShow,
|
|
9473
|
+
checkBoxColor,
|
|
9474
|
+
showLabelOnTop,
|
|
9475
|
+
orderBy,
|
|
9476
|
+
elementType
|
|
9477
|
+
} = _ref;
|
|
9476
9478
|
const [isFocused, setIsFocused] = useState(false);
|
|
9477
9479
|
const [showOptions, setShowOptions] = useState(false);
|
|
9478
9480
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -34971,17 +34973,18 @@ css`
|
|
|
34971
34973
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34972
34974
|
* • onCancel() — callback
|
|
34973
34975
|
*/
|
|
34974
|
-
const WeeksCalendar =
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34976
|
+
const WeeksCalendar = _ref => {
|
|
34977
|
+
let {
|
|
34978
|
+
year,
|
|
34979
|
+
defaultStartWeek = null,
|
|
34980
|
+
defaultEndWeek = null,
|
|
34981
|
+
backgroundColor = "#066768",
|
|
34982
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34983
|
+
allowedWeekRange = null,
|
|
34984
|
+
// New prop for range restriction
|
|
34985
|
+
onApply,
|
|
34986
|
+
onCancel
|
|
34987
|
+
} = _ref;
|
|
34985
34988
|
// state -------------------------------------------------
|
|
34986
34989
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34987
34990
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -57724,6 +57727,7 @@ const OverlayDropdown = _ref => {
|
|
|
57724
57727
|
selectedColor = "#066768",
|
|
57725
57728
|
hoverColor = "#E6F0F0",
|
|
57726
57729
|
dropdownMaxHeight = "600px",
|
|
57730
|
+
dropdownWidth = "100%",
|
|
57727
57731
|
width = "100%",
|
|
57728
57732
|
height = "auto",
|
|
57729
57733
|
label,
|
|
@@ -57971,7 +57975,7 @@ const OverlayDropdown = _ref => {
|
|
|
57971
57975
|
ref: dropdownRef,
|
|
57972
57976
|
role: "listbox",
|
|
57973
57977
|
dropdownMaxHeight: dropdownMaxHeight,
|
|
57974
|
-
width:
|
|
57978
|
+
width: dropdownWidth,
|
|
57975
57979
|
position: dropdownPosition
|
|
57976
57980
|
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React$1.createElement(SectionDiv, {
|
|
57977
57981
|
$showBorder: group.overlayName,
|