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.esm.js CHANGED
@@ -10580,23 +10580,24 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
10583
- const QuarterPicker = ({
10584
- availableQuarters,
10585
- // ["Q1-2024"]
10586
- label,
10587
- onChange,
10588
- borderRadius,
10589
- required,
10590
- width,
10591
- height,
10592
- placeholder,
10593
- disabled,
10594
- borderColor,
10595
- borderColorFocus,
10596
- textColor,
10597
- selectedValue,
10598
- startYear
10599
- }) => {
10583
+ const QuarterPicker = _ref => {
10584
+ let {
10585
+ availableQuarters,
10586
+ // ["Q1-2024"]
10587
+ label,
10588
+ onChange,
10589
+ borderRadius,
10590
+ required,
10591
+ width,
10592
+ height,
10593
+ placeholder,
10594
+ disabled,
10595
+ borderColor,
10596
+ borderColorFocus,
10597
+ textColor,
10598
+ selectedValue,
10599
+ startYear
10600
+ } = _ref;
10600
10601
  const [isFocused, setIsFocused] = useState(false);
10601
10602
  const [isOpen, setIsOpen] = useState(false);
10602
10603
  const [value, setValue] = useState('');
@@ -11038,22 +11039,23 @@ const MonthPopupPicker = ({
11038
11039
  };
11039
11040
 
11040
11041
  /* eslint-disable import/no-extraneous-dependencies */
11041
- const MonthPicker = ({
11042
- availableMonths,
11043
- label,
11044
- onChange,
11045
- borderRadius,
11046
- required,
11047
- width,
11048
- height,
11049
- placeholder,
11050
- disabled,
11051
- borderColor,
11052
- borderColorFocus,
11053
- textColor,
11054
- selectedValue,
11055
- startYear
11056
- }) => {
11042
+ const MonthPicker = _ref => {
11043
+ let {
11044
+ availableMonths,
11045
+ label,
11046
+ onChange,
11047
+ borderRadius,
11048
+ required,
11049
+ width,
11050
+ height,
11051
+ placeholder,
11052
+ disabled,
11053
+ borderColor,
11054
+ borderColorFocus,
11055
+ textColor,
11056
+ selectedValue,
11057
+ startYear
11058
+ } = _ref;
11057
11059
  const [isFocused, setIsFocused] = useState(false);
11058
11060
  const [isOpen, setIsOpen] = useState(false);
11059
11061
  const [value, setValue] = useState('');
@@ -24164,21 +24166,22 @@ const DeleteIcon = styled.div`
24164
24166
  position: absolute;
24165
24167
  `;
24166
24168
 
24167
- const QuickFilterDropdownSingle = ({
24168
- label,
24169
- hoverColor,
24170
- options,
24171
- selectedValue,
24172
- placeHolder,
24173
- onChange,
24174
- disabled,
24175
- width,
24176
- error,
24177
- errorMessage,
24178
- xIconShow,
24179
- labelColor,
24180
- showLabelOnTop
24181
- }) => {
24169
+ const QuickFilterDropdownSingle = _ref => {
24170
+ let {
24171
+ label,
24172
+ hoverColor,
24173
+ options,
24174
+ selectedValue,
24175
+ placeHolder,
24176
+ onChange,
24177
+ disabled,
24178
+ width,
24179
+ error,
24180
+ errorMessage,
24181
+ xIconShow,
24182
+ labelColor,
24183
+ showLabelOnTop
24184
+ } = _ref;
24182
24185
  const [isFocused, setIsFocused] = useState(false);
24183
24186
  const [showOptions, setShowOptions] = useState(false);
24184
24187
  const [inputValue, setInputValue] = useState("");
@@ -24635,25 +24638,26 @@ const IconContainer$2 = styled.div`
24635
24638
  cursor: pointer;
24636
24639
  `;
24637
24640
 
24638
- const QuickFilterDropdownMultiSelection = ({
24639
- label,
24640
- labelEmptyValue,
24641
- options,
24642
- selectedValue,
24643
- placeHolder,
24644
- onChange,
24645
- required,
24646
- disabled,
24647
- width,
24648
- height,
24649
- error,
24650
- errorMessage,
24651
- labelColor,
24652
- xIconShow,
24653
- checkBoxColor,
24654
- showLabelOnTop,
24655
- dropdownHeight
24656
- }) => {
24641
+ const QuickFilterDropdownMultiSelection = _ref => {
24642
+ let {
24643
+ label,
24644
+ labelEmptyValue,
24645
+ options,
24646
+ selectedValue,
24647
+ placeHolder,
24648
+ onChange,
24649
+ required,
24650
+ disabled,
24651
+ width,
24652
+ height,
24653
+ error,
24654
+ errorMessage,
24655
+ labelColor,
24656
+ xIconShow,
24657
+ checkBoxColor,
24658
+ showLabelOnTop,
24659
+ dropdownHeight
24660
+ } = _ref;
24657
24661
  const [isFocused, setIsFocused] = useState(false);
24658
24662
  const [showOptions, setShowOptions] = useState(false);
24659
24663
  const [inputValue, setInputValue] = useState('');
@@ -36071,9 +36075,12 @@ const ToggleSwitchLabel = styled.label`
36071
36075
  position: relative;
36072
36076
  cursor: pointer;
36073
36077
  user-select: none;
36074
- opacity: ${({
36075
- disabled
36076
- }) => disabled ? 0.5 : 1};
36078
+ opacity: ${_ref => {
36079
+ let {
36080
+ disabled
36081
+ } = _ref;
36082
+ return disabled ? 0.5 : 1;
36083
+ }};
36077
36084
  `;
36078
36085
  const ToggleInput = styled.input`
36079
36086
  display: none;
@@ -36081,15 +36088,19 @@ const ToggleInput = styled.input`
36081
36088
  const ToggleSlider = styled.span`
36082
36089
  display: block;
36083
36090
  position: relative;
36084
- background: ${({
36085
- checked,
36086
- disabled
36087
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
36091
+ background: ${_ref2 => {
36092
+ let {
36093
+ checked,
36094
+ disabled
36095
+ } = _ref2;
36096
+ return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36097
+ }};
36088
36098
  border-radius: 999px;
36089
36099
  transition: background 0.2s;
36090
- ${({
36091
- size
36092
- }) => {
36100
+ ${_ref3 => {
36101
+ let {
36102
+ size
36103
+ } = _ref3;
36093
36104
  switch (size) {
36094
36105
  case "s":
36095
36106
  return css`width: 40px; height: 20px;`;
@@ -36108,9 +36119,10 @@ const ToggleSlider = styled.span`
36108
36119
  background: #fff;
36109
36120
  border-radius: 50%;
36110
36121
  transition: left 0.2s, width 0.2s, height 0.2s;
36111
- ${({
36112
- size
36113
- }) => {
36122
+ ${_ref4 => {
36123
+ let {
36124
+ size
36125
+ } = _ref4;
36114
36126
  switch (size) {
36115
36127
  case "s":
36116
36128
  return css`width: 14px; height: 14px;`;
@@ -36120,10 +36132,11 @@ const ToggleSlider = styled.span`
36120
36132
  return css`width: 20px; height: 20px;`;
36121
36133
  }
36122
36134
  }}
36123
- left: ${({
36124
- checked,
36125
- size
36126
- }) => {
36135
+ left: ${_ref5 => {
36136
+ let {
36137
+ checked,
36138
+ size
36139
+ } = _ref5;
36127
36140
  if (!checked) return "3px";
36128
36141
  switch (size) {
36129
36142
  case "s":
@@ -55026,7 +55039,7 @@ const OverlayDropdown = _ref => {
55026
55039
  const [hoveredText, setHoveredText] = useState(null);
55027
55040
  const [templateDialog, setTemplateDialog] = useState(null);
55028
55041
  const [dropdownPosition, setDropdownPosition] = useState('below');
55029
- const [lastDefinedGroup, setLastDefinedGroup] = useState(null);
55042
+ const [lastDefinedGroup, setLastDefinedGroup] = useState(data.find(group => group.overlayCode === 'last_defined'));
55030
55043
  const buttonRef = useRef(null);
55031
55044
  const dropdownRef = useRef(null);
55032
55045
  const containerRef = useRef(null);