sag_components 2.0.0-beta324 → 2.0.0-beta326

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
@@ -9850,6 +9850,8 @@ const DropdownNew = props => {
9850
9850
  if (event && event.newValue && event.newValue[0]) {
9851
9851
  onChange && onChange(event);
9852
9852
  handleChange && handleChange(event.newValue[0].value);
9853
+ } else if (event && Array.isArray(event.newValue) && event.newValue.length === 0) {
9854
+ onChange && onChange(event);
9853
9855
  }
9854
9856
  };
9855
9857
  return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
@@ -10657,23 +10659,24 @@ const QuarterPopupPicker = ({
10657
10659
  };
10658
10660
 
10659
10661
  /* eslint-disable import/no-extraneous-dependencies */
10660
- const QuarterPicker = ({
10661
- availableQuarters,
10662
- // ["Q1-2024"]
10663
- label,
10664
- onChange,
10665
- borderRadius,
10666
- required,
10667
- width,
10668
- height,
10669
- placeholder,
10670
- disabled,
10671
- borderColor,
10672
- borderColorFocus,
10673
- textColor,
10674
- selectedValue,
10675
- startYear
10676
- }) => {
10662
+ const QuarterPicker = _ref => {
10663
+ let {
10664
+ availableQuarters,
10665
+ // ["Q1-2024"]
10666
+ label,
10667
+ onChange,
10668
+ borderRadius,
10669
+ required,
10670
+ width,
10671
+ height,
10672
+ placeholder,
10673
+ disabled,
10674
+ borderColor,
10675
+ borderColorFocus,
10676
+ textColor,
10677
+ selectedValue,
10678
+ startYear
10679
+ } = _ref;
10677
10680
  const [isFocused, setIsFocused] = React$1.useState(false);
10678
10681
  const [isOpen, setIsOpen] = React$1.useState(false);
10679
10682
  const [value, setValue] = React$1.useState('');
@@ -11115,22 +11118,23 @@ const MonthPopupPicker = ({
11115
11118
  };
11116
11119
 
11117
11120
  /* eslint-disable import/no-extraneous-dependencies */
11118
- const MonthPicker = ({
11119
- availableMonths,
11120
- label,
11121
- onChange,
11122
- borderRadius,
11123
- required,
11124
- width,
11125
- height,
11126
- placeholder,
11127
- disabled,
11128
- borderColor,
11129
- borderColorFocus,
11130
- textColor,
11131
- selectedValue,
11132
- startYear
11133
- }) => {
11121
+ const MonthPicker = _ref => {
11122
+ let {
11123
+ availableMonths,
11124
+ label,
11125
+ onChange,
11126
+ borderRadius,
11127
+ required,
11128
+ width,
11129
+ height,
11130
+ placeholder,
11131
+ disabled,
11132
+ borderColor,
11133
+ borderColorFocus,
11134
+ textColor,
11135
+ selectedValue,
11136
+ startYear
11137
+ } = _ref;
11134
11138
  const [isFocused, setIsFocused] = React$1.useState(false);
11135
11139
  const [isOpen, setIsOpen] = React$1.useState(false);
11136
11140
  const [value, setValue] = React$1.useState('');
@@ -24247,23 +24251,24 @@ const DeleteIcon = styled__default["default"].div`
24247
24251
  position: absolute;
24248
24252
  `;
24249
24253
 
24250
- const QuickFilterDropdownSingle = ({
24251
- label,
24252
- hoverColor,
24253
- options,
24254
- selectedValue,
24255
- placeHolder,
24256
- optionHoverColor = '#edf6ff',
24257
- selectedOptionColor = "#C7E4FF",
24258
- onChange,
24259
- disabled,
24260
- width,
24261
- error,
24262
- errorMessage,
24263
- xIconShow,
24264
- labelColor,
24265
- showLabelOnTop
24266
- }) => {
24254
+ const QuickFilterDropdownSingle = _ref => {
24255
+ let {
24256
+ label,
24257
+ hoverColor,
24258
+ options,
24259
+ selectedValue,
24260
+ placeHolder,
24261
+ optionHoverColor = '#edf6ff',
24262
+ selectedOptionColor = "#C7E4FF",
24263
+ onChange,
24264
+ disabled,
24265
+ width,
24266
+ error,
24267
+ errorMessage,
24268
+ xIconShow,
24269
+ labelColor,
24270
+ showLabelOnTop
24271
+ } = _ref;
24267
24272
  const [isFocused, setIsFocused] = React$1.useState(false);
24268
24273
  const [showOptions, setShowOptions] = React$1.useState(false);
24269
24274
  const [inputValue, setInputValue] = React$1.useState("");
@@ -24721,26 +24726,27 @@ const IconContainer$2 = styled__default["default"].div`
24721
24726
  cursor: pointer;
24722
24727
  `;
24723
24728
 
24724
- const QuickFilterDropdownMultiSelection = ({
24725
- label,
24726
- labelEmptyValue,
24727
- options,
24728
- selectedValue,
24729
- placeHolder,
24730
- onChange,
24731
- required,
24732
- disabled,
24733
- width,
24734
- height,
24735
- error,
24736
- errorMessage,
24737
- labelColor,
24738
- optionHoverColor = '#edf6ff',
24739
- xIconShow,
24740
- checkBoxColor,
24741
- showLabelOnTop,
24742
- dropdownHeight
24743
- }) => {
24729
+ const QuickFilterDropdownMultiSelection = _ref => {
24730
+ let {
24731
+ label,
24732
+ labelEmptyValue,
24733
+ options,
24734
+ selectedValue,
24735
+ placeHolder,
24736
+ onChange,
24737
+ required,
24738
+ disabled,
24739
+ width,
24740
+ height,
24741
+ error,
24742
+ errorMessage,
24743
+ labelColor,
24744
+ optionHoverColor = '#edf6ff',
24745
+ xIconShow,
24746
+ checkBoxColor,
24747
+ showLabelOnTop,
24748
+ dropdownHeight
24749
+ } = _ref;
24744
24750
  const [isFocused, setIsFocused] = React$1.useState(false);
24745
24751
  const [showOptions, setShowOptions] = React$1.useState(false);
24746
24752
  const [inputValue, setInputValue] = React$1.useState('');
@@ -35220,12 +35226,17 @@ const StyledInput$1 = styled__default["default"].input`
35220
35226
  background-color: ${props => props.isDarkerBackground ? '#F2F2F2' : 'white'} !important;
35221
35227
  width: ${props => props.width || '90%'};
35222
35228
  height: ${props => props.height || 'auto'};
35223
- transition: border-color 0.3s ease;
35224
- font-size: 14px;
35229
+ transition: border-color 0.3s ease;
35225
35230
  font-weight: 400;
35226
35231
  box-sizing: border-box;
35227
35232
  color: ${props => props.disabled ? '#D0D0D0' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
35228
35233
  cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
35234
+ @media (max-width: 1750px) {
35235
+ font-size: 12px;
35236
+ }
35237
+ @media (max-width: 1536px) {
35238
+ font-size: 10px;
35239
+ }
35229
35240
  `;
35230
35241
  const StyledLabel = styled__default["default"].label`
35231
35242
  font-size: 14px;
@@ -36286,9 +36297,9 @@ const ToggleSlider = styled__default["default"].span`
36286
36297
  }
36287
36298
  `;
36288
36299
 
36289
- /**
36290
- * ToggleSwitch component for on/off states.
36291
- * Supports small/large sizes and disabled state.
36300
+ /**
36301
+ * ToggleSwitch component for on/off states.
36302
+ * Supports small/large sizes and disabled state.
36292
36303
  */
36293
36304
  function ToggleSwitch(_ref) {
36294
36305
  let {
@@ -47890,6 +47901,9 @@ const SectionTitle$1 = styled.styled.div`
47890
47901
  color: #212121;
47891
47902
  font-size: 14px;
47892
47903
  font-weight: 700;
47904
+ @media (max-width: 1280px) {
47905
+ font-size: 12px;
47906
+ }
47893
47907
  `;
47894
47908
  const SubtitleContainer = styled.styled.div`
47895
47909
  display: flex;
@@ -47901,6 +47915,9 @@ const Subtitle$1 = styled.styled.span`
47901
47915
  color: ${props => props.color};
47902
47916
  font-size: 14px;
47903
47917
  font-weight: 400;
47918
+ @media (max-width: 1280px) {
47919
+ font-size: 11px;
47920
+ }
47904
47921
  `;
47905
47922
  const AddButtonContainer$1 = styled.styled.div`
47906
47923
  display: flex;
@@ -47917,6 +47934,9 @@ styled.styled(Card)`
47917
47934
  `;
47918
47935
  const VendorHeader$2 = styled.styled.div`
47919
47936
  padding: 16px 24px;
47937
+ @media (max-width: 1280px) {
47938
+ padding: 12px 8px;
47939
+ }
47920
47940
  `;
47921
47941
  styled.styled.button`
47922
47942
  border: none;
@@ -48095,6 +48115,9 @@ const Container$1 = styled.styled.div`
48095
48115
  justify-content: space-between;
48096
48116
  padding: 38px 0 20px;
48097
48117
  box-sizing: border-box;
48118
+ @media (max-width: 1280px) {
48119
+ padding: 20px 0 12px;
48120
+ }
48098
48121
  `;
48099
48122
  const tooltipStyles = styled.css`
48100
48123
  /* CSS-only tooltip */