sag_components 2.0.0-beta302 → 2.0.0-beta304

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
@@ -3744,14 +3744,24 @@ const LinnerDataBox = props => {
3744
3744
  const TextFieldContainer = styled.div`
3745
3745
  position: relative;
3746
3746
  width: ${props => props.width};
3747
+ display: flex;
3748
+ align-items: center;
3749
+ align-self: flex-end;
3747
3750
  `;
3748
3751
  const IconWrapper$3 = styled.div`
3749
3752
  position: absolute;
3750
- top: 50%;
3751
- transform: translateY(-50%);
3752
3753
  left: ${props => props.position === 'left' ? '10px' : 'unset'};
3753
3754
  right: ${props => props.position === 'right' ? '10px' : 'unset'};
3754
3755
  cursor: pointer;
3756
+ display: flex;
3757
+ align-items: center;
3758
+ justify-content: center;
3759
+ height: 100%;
3760
+ pointer-events: none;
3761
+
3762
+ & > * {
3763
+ display: block;
3764
+ }
3755
3765
  `;
3756
3766
  const TextFieldInput = styled.input`
3757
3767
  width: 100%;
@@ -3760,14 +3770,17 @@ const TextFieldInput = styled.input`
3760
3770
  font-weight: 400;
3761
3771
  padding: 6px 16px;
3762
3772
  border-radius: 8px;
3763
- padding-right: ${props => props.position === 'right' ? '30px' : '10px'};
3773
+ padding-left: ${props => props.position === 'left' ? '40px' : '16px'};
3774
+ padding-right: ${props => props.position === 'right' ? '40px' : '16px'};
3764
3775
  border: 1px solid #B1B1B1;
3765
3776
  background: transparent;
3766
- text-indent: ${props => props.position === 'left' ? '14px' : '0'};
3777
+ box-sizing: border-box;
3778
+
3767
3779
  &:hover,
3768
3780
  &:focus {
3769
3781
  border: 1px solid #212121;
3770
3782
  }
3783
+
3771
3784
  &::placeholder {
3772
3785
  color: #B1B1B1;
3773
3786
  }
@@ -10608,23 +10621,24 @@ const QuarterPopupPicker = ({
10608
10621
  };
10609
10622
 
10610
10623
  /* eslint-disable import/no-extraneous-dependencies */
10611
- const QuarterPicker = ({
10612
- availableQuarters,
10613
- // ["Q1-2024"]
10614
- label,
10615
- onChange,
10616
- borderRadius,
10617
- required,
10618
- width,
10619
- height,
10620
- placeholder,
10621
- disabled,
10622
- borderColor,
10623
- borderColorFocus,
10624
- textColor,
10625
- selectedValue,
10626
- startYear
10627
- }) => {
10624
+ const QuarterPicker = _ref => {
10625
+ let {
10626
+ availableQuarters,
10627
+ // ["Q1-2024"]
10628
+ label,
10629
+ onChange,
10630
+ borderRadius,
10631
+ required,
10632
+ width,
10633
+ height,
10634
+ placeholder,
10635
+ disabled,
10636
+ borderColor,
10637
+ borderColorFocus,
10638
+ textColor,
10639
+ selectedValue,
10640
+ startYear
10641
+ } = _ref;
10628
10642
  const [isFocused, setIsFocused] = useState(false);
10629
10643
  const [isOpen, setIsOpen] = useState(false);
10630
10644
  const [value, setValue] = useState('');
@@ -11066,22 +11080,23 @@ const MonthPopupPicker = ({
11066
11080
  };
11067
11081
 
11068
11082
  /* eslint-disable import/no-extraneous-dependencies */
11069
- const MonthPicker = ({
11070
- availableMonths,
11071
- label,
11072
- onChange,
11073
- borderRadius,
11074
- required,
11075
- width,
11076
- height,
11077
- placeholder,
11078
- disabled,
11079
- borderColor,
11080
- borderColorFocus,
11081
- textColor,
11082
- selectedValue,
11083
- startYear
11084
- }) => {
11083
+ const MonthPicker = _ref => {
11084
+ let {
11085
+ availableMonths,
11086
+ label,
11087
+ onChange,
11088
+ borderRadius,
11089
+ required,
11090
+ width,
11091
+ height,
11092
+ placeholder,
11093
+ disabled,
11094
+ borderColor,
11095
+ borderColorFocus,
11096
+ textColor,
11097
+ selectedValue,
11098
+ startYear
11099
+ } = _ref;
11085
11100
  const [isFocused, setIsFocused] = useState(false);
11086
11101
  const [isOpen, setIsOpen] = useState(false);
11087
11102
  const [value, setValue] = useState('');
@@ -24192,21 +24207,22 @@ const DeleteIcon = styled.div`
24192
24207
  position: absolute;
24193
24208
  `;
24194
24209
 
24195
- const QuickFilterDropdownSingle = ({
24196
- label,
24197
- hoverColor,
24198
- options,
24199
- selectedValue,
24200
- placeHolder,
24201
- onChange,
24202
- disabled,
24203
- width,
24204
- error,
24205
- errorMessage,
24206
- xIconShow,
24207
- labelColor,
24208
- showLabelOnTop
24209
- }) => {
24210
+ const QuickFilterDropdownSingle = _ref => {
24211
+ let {
24212
+ label,
24213
+ hoverColor,
24214
+ options,
24215
+ selectedValue,
24216
+ placeHolder,
24217
+ onChange,
24218
+ disabled,
24219
+ width,
24220
+ error,
24221
+ errorMessage,
24222
+ xIconShow,
24223
+ labelColor,
24224
+ showLabelOnTop
24225
+ } = _ref;
24210
24226
  const [isFocused, setIsFocused] = useState(false);
24211
24227
  const [showOptions, setShowOptions] = useState(false);
24212
24228
  const [inputValue, setInputValue] = useState("");
@@ -24658,25 +24674,26 @@ const IconContainer$2 = styled.div`
24658
24674
  cursor: pointer;
24659
24675
  `;
24660
24676
 
24661
- const QuickFilterDropdownMultiSelection = ({
24662
- label,
24663
- labelEmptyValue,
24664
- options,
24665
- selectedValue,
24666
- placeHolder,
24667
- onChange,
24668
- required,
24669
- disabled,
24670
- width,
24671
- height,
24672
- error,
24673
- errorMessage,
24674
- labelColor,
24675
- xIconShow,
24676
- checkBoxColor,
24677
- showLabelOnTop,
24678
- dropdownHeight
24679
- }) => {
24677
+ const QuickFilterDropdownMultiSelection = _ref => {
24678
+ let {
24679
+ label,
24680
+ labelEmptyValue,
24681
+ options,
24682
+ selectedValue,
24683
+ placeHolder,
24684
+ onChange,
24685
+ required,
24686
+ disabled,
24687
+ width,
24688
+ height,
24689
+ error,
24690
+ errorMessage,
24691
+ labelColor,
24692
+ xIconShow,
24693
+ checkBoxColor,
24694
+ showLabelOnTop,
24695
+ dropdownHeight
24696
+ } = _ref;
24680
24697
  const [isFocused, setIsFocused] = useState(false);
24681
24698
  const [showOptions, setShowOptions] = useState(false);
24682
24699
  const [inputValue, setInputValue] = useState('');
@@ -36216,9 +36233,9 @@ const ToggleSlider = styled.span`
36216
36233
  }
36217
36234
  `;
36218
36235
 
36219
- /**
36220
- * ToggleSwitch component for on/off states.
36221
- * Supports small/large sizes and disabled state.
36236
+ /**
36237
+ * ToggleSwitch component for on/off states.
36238
+ * Supports small/large sizes and disabled state.
36222
36239
  */
36223
36240
  function ToggleSwitch(_ref) {
36224
36241
  let {
@@ -43378,7 +43395,9 @@ const TableBody = /*#__PURE__*/forwardRef(({
43378
43395
  }
43379
43396
  case "status":
43380
43397
  try {
43381
- const statusObj = statuses.find(status => status && status.status === value) || {};
43398
+ // Treat "Submitted" like "Received"
43399
+ const normalizedStatus = value === "Submitted" ? "Received" : value;
43400
+ const statusObj = statuses.find(status => status && status.status === normalizedStatus) || {};
43382
43401
  const palette = statusObj.palette || ["#F3F4F6", "#374151"];
43383
43402
  const [palette0, palette1] = palette;
43384
43403
  return /*#__PURE__*/React$1.createElement(StatusCell$1, {