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
- 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
- }) => {
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
- 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
- }) => {
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
- year,
34976
- defaultStartWeek = null,
34977
- defaultEndWeek = null,
34978
- backgroundColor = "#066768",
34979
- hoverBackgroundColor = "#E6F0F0",
34980
- allowedWeekRange = null,
34981
- // New prop for range restriction
34982
- onApply,
34983
- onCancel
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: 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,