sag_components 2.0.0-beta217 → 2.0.0-beta218

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
@@ -10590,23 +10590,24 @@ const QuarterPopupPicker = ({
10590
10590
  };
10591
10591
 
10592
10592
  /* eslint-disable import/no-extraneous-dependencies */
10593
- const QuarterPicker = ({
10594
- availableQuarters,
10595
- // ["Q1-2024"]
10596
- label,
10597
- onChange,
10598
- borderRadius,
10599
- required,
10600
- width,
10601
- height,
10602
- placeholder,
10603
- disabled,
10604
- borderColor,
10605
- borderColorFocus,
10606
- textColor,
10607
- selectedValue,
10608
- startYear
10609
- }) => {
10593
+ const QuarterPicker = _ref => {
10594
+ let {
10595
+ availableQuarters,
10596
+ // ["Q1-2024"]
10597
+ label,
10598
+ onChange,
10599
+ borderRadius,
10600
+ required,
10601
+ width,
10602
+ height,
10603
+ placeholder,
10604
+ disabled,
10605
+ borderColor,
10606
+ borderColorFocus,
10607
+ textColor,
10608
+ selectedValue,
10609
+ startYear
10610
+ } = _ref;
10610
10611
  const [isFocused, setIsFocused] = React$1.useState(false);
10611
10612
  const [isOpen, setIsOpen] = React$1.useState(false);
10612
10613
  const [value, setValue] = React$1.useState('');
@@ -11048,22 +11049,23 @@ const MonthPopupPicker = ({
11048
11049
  };
11049
11050
 
11050
11051
  /* eslint-disable import/no-extraneous-dependencies */
11051
- const MonthPicker = ({
11052
- availableMonths,
11053
- label,
11054
- onChange,
11055
- borderRadius,
11056
- required,
11057
- width,
11058
- height,
11059
- placeholder,
11060
- disabled,
11061
- borderColor,
11062
- borderColorFocus,
11063
- textColor,
11064
- selectedValue,
11065
- startYear
11066
- }) => {
11052
+ const MonthPicker = _ref => {
11053
+ let {
11054
+ availableMonths,
11055
+ label,
11056
+ onChange,
11057
+ borderRadius,
11058
+ required,
11059
+ width,
11060
+ height,
11061
+ placeholder,
11062
+ disabled,
11063
+ borderColor,
11064
+ borderColorFocus,
11065
+ textColor,
11066
+ selectedValue,
11067
+ startYear
11068
+ } = _ref;
11067
11069
  const [isFocused, setIsFocused] = React$1.useState(false);
11068
11070
  const [isOpen, setIsOpen] = React$1.useState(false);
11069
11071
  const [value, setValue] = React$1.useState('');
@@ -24174,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
24174
24176
  position: absolute;
24175
24177
  `;
24176
24178
 
24177
- const QuickFilterDropdownSingle = ({
24178
- label,
24179
- hoverColor,
24180
- options,
24181
- selectedValue,
24182
- placeHolder,
24183
- onChange,
24184
- disabled,
24185
- width,
24186
- error,
24187
- errorMessage,
24188
- xIconShow,
24189
- labelColor,
24190
- showLabelOnTop
24191
- }) => {
24179
+ const QuickFilterDropdownSingle = _ref => {
24180
+ let {
24181
+ label,
24182
+ hoverColor,
24183
+ options,
24184
+ selectedValue,
24185
+ placeHolder,
24186
+ onChange,
24187
+ disabled,
24188
+ width,
24189
+ error,
24190
+ errorMessage,
24191
+ xIconShow,
24192
+ labelColor,
24193
+ showLabelOnTop
24194
+ } = _ref;
24192
24195
  const [isFocused, setIsFocused] = React$1.useState(false);
24193
24196
  const [showOptions, setShowOptions] = React$1.useState(false);
24194
24197
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24645,25 +24648,26 @@ const IconContainer$2 = styled__default["default"].div`
24645
24648
  cursor: pointer;
24646
24649
  `;
24647
24650
 
24648
- const QuickFilterDropdownMultiSelection = ({
24649
- label,
24650
- labelEmptyValue,
24651
- options,
24652
- selectedValue,
24653
- placeHolder,
24654
- onChange,
24655
- required,
24656
- disabled,
24657
- width,
24658
- height,
24659
- error,
24660
- errorMessage,
24661
- labelColor,
24662
- xIconShow,
24663
- checkBoxColor,
24664
- showLabelOnTop,
24665
- dropdownHeight
24666
- }) => {
24651
+ const QuickFilterDropdownMultiSelection = _ref => {
24652
+ let {
24653
+ label,
24654
+ labelEmptyValue,
24655
+ options,
24656
+ selectedValue,
24657
+ placeHolder,
24658
+ onChange,
24659
+ required,
24660
+ disabled,
24661
+ width,
24662
+ height,
24663
+ error,
24664
+ errorMessage,
24665
+ labelColor,
24666
+ xIconShow,
24667
+ checkBoxColor,
24668
+ showLabelOnTop,
24669
+ dropdownHeight
24670
+ } = _ref;
24667
24671
  const [isFocused, setIsFocused] = React$1.useState(false);
24668
24672
  const [showOptions, setShowOptions] = React$1.useState(false);
24669
24673
  const [inputValue, setInputValue] = React$1.useState('');
@@ -36081,9 +36085,12 @@ const ToggleSwitchLabel = styled__default["default"].label`
36081
36085
  position: relative;
36082
36086
  cursor: pointer;
36083
36087
  user-select: none;
36084
- opacity: ${({
36085
- disabled
36086
- }) => disabled ? 0.5 : 1};
36088
+ opacity: ${_ref => {
36089
+ let {
36090
+ disabled
36091
+ } = _ref;
36092
+ return disabled ? 0.5 : 1;
36093
+ }};
36087
36094
  `;
36088
36095
  const ToggleInput = styled__default["default"].input`
36089
36096
  display: none;
@@ -36091,15 +36098,19 @@ const ToggleInput = styled__default["default"].input`
36091
36098
  const ToggleSlider = styled__default["default"].span`
36092
36099
  display: block;
36093
36100
  position: relative;
36094
- background: ${({
36095
- checked,
36096
- disabled
36097
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
36101
+ background: ${_ref2 => {
36102
+ let {
36103
+ checked,
36104
+ disabled
36105
+ } = _ref2;
36106
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36107
+ }};
36098
36108
  border-radius: 999px;
36099
36109
  transition: background 0.2s;
36100
- ${({
36101
- size
36102
- }) => {
36110
+ ${_ref3 => {
36111
+ let {
36112
+ size
36113
+ } = _ref3;
36103
36114
  switch (size) {
36104
36115
  case "s":
36105
36116
  return styled.css`width: 40px; height: 20px;`;
@@ -36118,9 +36129,10 @@ const ToggleSlider = styled__default["default"].span`
36118
36129
  background: #fff;
36119
36130
  border-radius: 50%;
36120
36131
  transition: left 0.2s, width 0.2s, height 0.2s;
36121
- ${({
36122
- size
36123
- }) => {
36132
+ ${_ref4 => {
36133
+ let {
36134
+ size
36135
+ } = _ref4;
36124
36136
  switch (size) {
36125
36137
  case "s":
36126
36138
  return styled.css`width: 14px; height: 14px;`;
@@ -36130,10 +36142,11 @@ const ToggleSlider = styled__default["default"].span`
36130
36142
  return styled.css`width: 20px; height: 20px;`;
36131
36143
  }
36132
36144
  }}
36133
- left: ${({
36134
- checked,
36135
- size
36136
- }) => {
36145
+ left: ${_ref5 => {
36146
+ let {
36147
+ checked,
36148
+ size
36149
+ } = _ref5;
36137
36150
  if (!checked) return "3px";
36138
36151
  switch (size) {
36139
36152
  case "s":
@@ -55036,7 +55049,7 @@ const OverlayDropdown = _ref => {
55036
55049
  const [hoveredText, setHoveredText] = React$1.useState(null);
55037
55050
  const [templateDialog, setTemplateDialog] = React$1.useState(null);
55038
55051
  const [dropdownPosition, setDropdownPosition] = React$1.useState('below');
55039
- const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(null);
55052
+ const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(data.find(group => group.overlayCode === 'last_defined'));
55040
55053
  const buttonRef = React$1.useRef(null);
55041
55054
  const dropdownRef = React$1.useRef(null);
55042
55055
  const containerRef = React$1.useRef(null);