sag_components 2.0.0-beta263 → 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.js CHANGED
@@ -8939,26 +8939,27 @@ const IconContainer$5 = styled__default["default"].div`
8939
8939
  cursor: pointer;
8940
8940
  `;
8941
8941
 
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
- }) => {
8942
+ const DropdownSingleNew = _ref => {
8943
+ let {
8944
+ label,
8945
+ labelEmptyValue,
8946
+ options,
8947
+ selectedValue,
8948
+ onChange,
8949
+ required,
8950
+ disabled,
8951
+ width,
8952
+ height,
8953
+ withMarginBottom = true,
8954
+ error,
8955
+ errorMessage,
8956
+ xIconShow,
8957
+ labelColor,
8958
+ showLabelOnTop,
8959
+ orderBy,
8960
+ placeHolder = "",
8961
+ elementType
8962
+ } = _ref;
8962
8963
  const [isFocused, setIsFocused] = React$1.useState(false);
8963
8964
  const [showOptions, setShowOptions] = React$1.useState(false);
8964
8965
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -9463,26 +9464,27 @@ const IconContainer$4 = styled__default["default"].div`
9463
9464
  cursor: pointer;
9464
9465
  `;
9465
9466
 
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
- }) => {
9467
+ const DropdownMultiNew = _ref => {
9468
+ let {
9469
+ label,
9470
+ labelEmptyValue,
9471
+ options,
9472
+ selectedValue,
9473
+ onChange,
9474
+ required,
9475
+ disabled,
9476
+ width,
9477
+ height,
9478
+ withMarginBottom = true,
9479
+ error,
9480
+ errorMessage,
9481
+ labelColor,
9482
+ xIconShow,
9483
+ checkBoxColor,
9484
+ showLabelOnTop,
9485
+ orderBy,
9486
+ elementType
9487
+ } = _ref;
9486
9488
  const [isFocused, setIsFocused] = React$1.useState(false);
9487
9489
  const [showOptions, setShowOptions] = React$1.useState(false);
9488
9490
  const [showAbove, setShowAbove] = React$1.useState(false);
@@ -34981,17 +34983,18 @@ styled.css`
34981
34983
  * • onApply(start,end) — callback, both numbers (inclusive)
34982
34984
  * • onCancel() — callback
34983
34985
  */
34984
- const WeeksCalendar = ({
34985
- year,
34986
- defaultStartWeek = null,
34987
- defaultEndWeek = null,
34988
- backgroundColor = "#066768",
34989
- hoverBackgroundColor = "#E6F0F0",
34990
- allowedWeekRange = null,
34991
- // New prop for range restriction
34992
- onApply,
34993
- onCancel
34994
- }) => {
34986
+ const WeeksCalendar = _ref => {
34987
+ let {
34988
+ year,
34989
+ defaultStartWeek = null,
34990
+ defaultEndWeek = null,
34991
+ backgroundColor = "#066768",
34992
+ hoverBackgroundColor = "#E6F0F0",
34993
+ allowedWeekRange = null,
34994
+ // New prop for range restriction
34995
+ onApply,
34996
+ onCancel
34997
+ } = _ref;
34995
34998
  // state -------------------------------------------------
34996
34999
  const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
34997
35000
  const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
@@ -57734,6 +57737,7 @@ const OverlayDropdown = _ref => {
57734
57737
  selectedColor = "#066768",
57735
57738
  hoverColor = "#E6F0F0",
57736
57739
  dropdownMaxHeight = "600px",
57740
+ dropdownWidth = "100%",
57737
57741
  width = "100%",
57738
57742
  height = "auto",
57739
57743
  label,
@@ -57981,7 +57985,7 @@ const OverlayDropdown = _ref => {
57981
57985
  ref: dropdownRef,
57982
57986
  role: "listbox",
57983
57987
  dropdownMaxHeight: dropdownMaxHeight,
57984
- width: width,
57988
+ width: dropdownWidth,
57985
57989
  position: dropdownPosition
57986
57990
  }, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
57987
57991
  $showBorder: group.overlayName,