sag_components 2.0.0-beta216 → 2.0.0-beta217

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,24 +10580,23 @@ const QuarterPopupPicker = ({
10580
10580
  };
10581
10581
 
10582
10582
  /* eslint-disable import/no-extraneous-dependencies */
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;
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
+ }) => {
10601
10600
  const [isFocused, setIsFocused] = useState(false);
10602
10601
  const [isOpen, setIsOpen] = useState(false);
10603
10602
  const [value, setValue] = useState('');
@@ -11039,23 +11038,22 @@ const MonthPopupPicker = ({
11039
11038
  };
11040
11039
 
11041
11040
  /* eslint-disable import/no-extraneous-dependencies */
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;
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
+ }) => {
11059
11057
  const [isFocused, setIsFocused] = useState(false);
11060
11058
  const [isOpen, setIsOpen] = useState(false);
11061
11059
  const [value, setValue] = useState('');
@@ -34968,18 +34966,17 @@ css`
34968
34966
  * • onApply(start,end) — callback, both numbers (inclusive)
34969
34967
  * • onCancel() — callback
34970
34968
  */
34971
- const WeeksCalendar = _ref => {
34972
- let {
34973
- year,
34974
- defaultStartWeek = null,
34975
- defaultEndWeek = null,
34976
- backgroundColor = "#066768",
34977
- hoverBackgroundColor = "#E6F0F0",
34978
- allowedWeekRange = null,
34979
- // New prop for range restriction
34980
- onApply,
34981
- onCancel
34982
- } = _ref;
34969
+ const WeeksCalendar = ({
34970
+ year,
34971
+ defaultStartWeek = null,
34972
+ defaultEndWeek = null,
34973
+ backgroundColor = "#066768",
34974
+ hoverBackgroundColor = "#E6F0F0",
34975
+ allowedWeekRange = null,
34976
+ // New prop for range restriction
34977
+ onApply,
34978
+ onCancel
34979
+ }) => {
34983
34980
  // state -------------------------------------------------
34984
34981
  const [startWeek, setStartWeek] = useState(defaultStartWeek);
34985
34982
  const [endWeek, setEndWeek] = useState(defaultEndWeek);
@@ -36074,12 +36071,9 @@ const ToggleSwitchLabel = styled.label`
36074
36071
  position: relative;
36075
36072
  cursor: pointer;
36076
36073
  user-select: none;
36077
- opacity: ${_ref => {
36078
- let {
36079
- disabled
36080
- } = _ref;
36081
- return disabled ? 0.5 : 1;
36082
- }};
36074
+ opacity: ${({
36075
+ disabled
36076
+ }) => disabled ? 0.5 : 1};
36083
36077
  `;
36084
36078
  const ToggleInput = styled.input`
36085
36079
  display: none;
@@ -36087,19 +36081,15 @@ const ToggleInput = styled.input`
36087
36081
  const ToggleSlider = styled.span`
36088
36082
  display: block;
36089
36083
  position: relative;
36090
- background: ${_ref2 => {
36091
- let {
36092
- checked,
36093
- disabled
36094
- } = _ref2;
36095
- return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
36096
- }};
36084
+ background: ${({
36085
+ checked,
36086
+ disabled
36087
+ }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
36097
36088
  border-radius: 999px;
36098
36089
  transition: background 0.2s;
36099
- ${_ref3 => {
36100
- let {
36101
- size
36102
- } = _ref3;
36090
+ ${({
36091
+ size
36092
+ }) => {
36103
36093
  switch (size) {
36104
36094
  case "s":
36105
36095
  return css`width: 40px; height: 20px;`;
@@ -36118,10 +36108,9 @@ const ToggleSlider = styled.span`
36118
36108
  background: #fff;
36119
36109
  border-radius: 50%;
36120
36110
  transition: left 0.2s, width 0.2s, height 0.2s;
36121
- ${_ref4 => {
36122
- let {
36123
- size
36124
- } = _ref4;
36111
+ ${({
36112
+ size
36113
+ }) => {
36125
36114
  switch (size) {
36126
36115
  case "s":
36127
36116
  return css`width: 14px; height: 14px;`;
@@ -36131,11 +36120,10 @@ const ToggleSlider = styled.span`
36131
36120
  return css`width: 20px; height: 20px;`;
36132
36121
  }
36133
36122
  }}
36134
- left: ${_ref5 => {
36135
- let {
36136
- checked,
36137
- size
36138
- } = _ref5;
36123
+ left: ${({
36124
+ checked,
36125
+ size
36126
+ }) => {
36139
36127
  if (!checked) return "3px";
36140
36128
  switch (size) {
36141
36129
  case "s":
@@ -38780,7 +38768,12 @@ const TableHeader = ({
38780
38768
  inputType: "text",
38781
38769
  placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
38782
38770
  fieldHeight: "40px",
38783
- onTyping: () => {},
38771
+ onTyping: value => {
38772
+ setFilterState(prev => ({
38773
+ ...prev,
38774
+ [key]: value
38775
+ }));
38776
+ },
38784
38777
  onReset: () => {
38785
38778
  setFilterState(prev => ({
38786
38779
  ...prev,