sag_components 2.0.0-beta4 → 2.0.0-beta6

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
@@ -44316,19 +44316,18 @@ const InfoIcon = _ref => {
44316
44316
  }));
44317
44317
  };
44318
44318
 
44319
- const LinkButton = _ref => {
44320
- let {
44321
- text = '',
44322
- type = 'primary',
44323
- size = 'small',
44324
- height = '',
44325
- width = '',
44326
- disabled = false,
44327
- textColor = '',
44328
- onClick,
44329
- leftIcon = 'none',
44330
- rightIcon = 'none'
44331
- } = _ref;
44319
+ const LinkButton = ({
44320
+ text = '',
44321
+ type = 'primary',
44322
+ size = 'small',
44323
+ height = '',
44324
+ width = '',
44325
+ disabled = false,
44326
+ textColor = '',
44327
+ onClick,
44328
+ leftIcon = 'none',
44329
+ rightIcon = 'none'
44330
+ }) => {
44332
44331
  // const {
44333
44332
  // text,
44334
44333
  // type,
@@ -51275,70 +51274,67 @@ const DropdownMain = dt.div`
51275
51274
  `;
51276
51275
 
51277
51276
  /* eslint-disable react/prop-types */
51278
- const DropdownNew = _ref => {
51279
- let {
51280
- isMulti,
51281
- label,
51282
- labelEmptyValue,
51283
- options,
51284
- selectedValue,
51285
- placeHolder,
51286
- onChange,
51287
- required,
51288
- disabled,
51289
- width,
51290
- error,
51291
- errorMessage,
51292
- labelColor,
51293
- checkBoxColor,
51294
- xIconShow,
51295
- showLabelOnTop,
51296
- orderBy,
51297
- elementType
51298
- } = _ref;
51299
- return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
51300
- className: "DropdownMain",
51301
- width: width
51302
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
51303
- className: "DropdownMultiNew",
51304
- placeHolder: placeHolder,
51305
- label: label,
51306
- labelEmptyValue: labelEmptyValue,
51307
- labelColor: labelColor,
51308
- checkBoxColor: checkBoxColor,
51309
- required: required,
51310
- options: options,
51311
- width: width,
51312
- disabled: disabled,
51313
- error: error,
51314
- errorMessage: errorMessage,
51315
- selectedValue: selectedValue,
51316
- xIconShow: xIconShow,
51317
- onChange: onChange,
51318
- showLabelOnTop: showLabelOnTop,
51319
- orderBy: orderBy,
51320
- elementType: elementType
51321
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
51322
- className: "DropdownSingleNew",
51323
- placeHolder: placeHolder,
51324
- label: label,
51325
- labelEmptyValue: labelEmptyValue,
51326
- labelColor: labelColor,
51327
- checkBoxColor: checkBoxColor,
51328
- required: required,
51329
- options: options,
51330
- width: width,
51331
- disabled: disabled,
51332
- error: error,
51333
- errorMessage: errorMessage,
51334
- selectedValue: selectedValue,
51335
- xIconShow: xIconShow,
51336
- onChange: onChange,
51337
- showLabelOnTop: showLabelOnTop,
51338
- orderBy: orderBy,
51339
- elementType: elementType
51340
- }));
51341
- };
51277
+ const DropdownNew = ({
51278
+ isMulti,
51279
+ label,
51280
+ labelEmptyValue,
51281
+ options,
51282
+ selectedValue,
51283
+ placeHolder,
51284
+ onChange,
51285
+ required,
51286
+ disabled,
51287
+ width,
51288
+ error,
51289
+ errorMessage,
51290
+ labelColor,
51291
+ checkBoxColor,
51292
+ xIconShow,
51293
+ showLabelOnTop,
51294
+ orderBy,
51295
+ elementType
51296
+ }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
51297
+ className: "DropdownMain",
51298
+ width: width
51299
+ }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
51300
+ className: "DropdownMultiNew",
51301
+ placeHolder: placeHolder,
51302
+ label: label,
51303
+ labelEmptyValue: labelEmptyValue,
51304
+ labelColor: labelColor,
51305
+ checkBoxColor: checkBoxColor,
51306
+ required: required,
51307
+ options: options,
51308
+ width: width,
51309
+ disabled: disabled,
51310
+ error: error,
51311
+ errorMessage: errorMessage,
51312
+ selectedValue: selectedValue,
51313
+ xIconShow: xIconShow,
51314
+ onChange: onChange,
51315
+ showLabelOnTop: showLabelOnTop,
51316
+ orderBy: orderBy,
51317
+ elementType: elementType
51318
+ }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
51319
+ className: "DropdownSingleNew",
51320
+ placeHolder: placeHolder,
51321
+ label: label,
51322
+ labelEmptyValue: labelEmptyValue,
51323
+ labelColor: labelColor,
51324
+ checkBoxColor: checkBoxColor,
51325
+ required: required,
51326
+ options: options,
51327
+ width: width,
51328
+ disabled: disabled,
51329
+ error: error,
51330
+ errorMessage: errorMessage,
51331
+ selectedValue: selectedValue,
51332
+ xIconShow: xIconShow,
51333
+ onChange: onChange,
51334
+ showLabelOnTop: showLabelOnTop,
51335
+ orderBy: orderBy,
51336
+ elementType: elementType
51337
+ }));
51342
51338
  DropdownNew.propTypes = {
51343
51339
  placeHolder: PropTypes.string,
51344
51340
  label: PropTypes.string,
@@ -51752,21 +51748,20 @@ const DatePicker = ({
51752
51748
  };
51753
51749
 
51754
51750
  /* eslint-disable import/no-extraneous-dependencies */
51755
- const RangePicker = _ref => {
51756
- let {
51757
- label,
51758
- onChange,
51759
- borderRadius,
51760
- required,
51761
- width,
51762
- height,
51763
- placeholder,
51764
- disabled,
51765
- borderColor,
51766
- borderColorFocus,
51767
- textColor,
51768
- selectedValue
51769
- } = _ref;
51751
+ const RangePicker = ({
51752
+ label,
51753
+ onChange,
51754
+ borderRadius,
51755
+ required,
51756
+ width,
51757
+ height,
51758
+ placeholder,
51759
+ disabled,
51760
+ borderColor,
51761
+ borderColorFocus,
51762
+ textColor,
51763
+ selectedValue
51764
+ }) => {
51770
51765
  const [isFocused, setIsFocused] = React.useState(false);
51771
51766
  const [isOpen, setIsOpen] = React.useState(false);
51772
51767
  const [value, setValue] = React.useState(''); // Added value state
@@ -52198,23 +52193,22 @@ const QuarterPopupPicker = ({
52198
52193
  };
52199
52194
 
52200
52195
  /* eslint-disable import/no-extraneous-dependencies */
52201
- const QuarterPicker = _ref => {
52202
- let {
52203
- availableQuarters,
52204
- // ["Q1-2024"]
52205
- label,
52206
- onChange,
52207
- borderRadius,
52208
- required,
52209
- width,
52210
- height,
52211
- placeholder,
52212
- disabled,
52213
- borderColor,
52214
- borderColorFocus,
52215
- textColor,
52216
- selectedValue
52217
- } = _ref;
52196
+ const QuarterPicker = ({
52197
+ availableQuarters,
52198
+ // ["Q1-2024"]
52199
+ label,
52200
+ onChange,
52201
+ borderRadius,
52202
+ required,
52203
+ width,
52204
+ height,
52205
+ placeholder,
52206
+ disabled,
52207
+ borderColor,
52208
+ borderColorFocus,
52209
+ textColor,
52210
+ selectedValue
52211
+ }) => {
52218
52212
  const [isFocused, setIsFocused] = React.useState(false);
52219
52213
  const [isOpen, setIsOpen] = React.useState(false);
52220
52214
  const [value, setValue] = React.useState('');
@@ -52653,22 +52647,21 @@ const MonthPopupPicker = ({
52653
52647
  };
52654
52648
 
52655
52649
  /* eslint-disable import/no-extraneous-dependencies */
52656
- const MonthPicker = _ref => {
52657
- let {
52658
- availableMonths,
52659
- label,
52660
- onChange,
52661
- borderRadius,
52662
- required,
52663
- width,
52664
- height,
52665
- placeholder,
52666
- disabled,
52667
- borderColor,
52668
- borderColorFocus,
52669
- textColor,
52670
- selectedValue
52671
- } = _ref;
52650
+ const MonthPicker = ({
52651
+ availableMonths,
52652
+ label,
52653
+ onChange,
52654
+ borderRadius,
52655
+ required,
52656
+ width,
52657
+ height,
52658
+ placeholder,
52659
+ disabled,
52660
+ borderColor,
52661
+ borderColorFocus,
52662
+ textColor,
52663
+ selectedValue
52664
+ }) => {
52672
52665
  const [isFocused, setIsFocused] = React.useState(false);
52673
52666
  const [isOpen, setIsOpen] = React.useState(false);
52674
52667
  const [value, setValue] = React.useState('');
@@ -53482,6 +53475,10 @@ FilterPanel.propTypes = {
53482
53475
  label: PropTypes.string,
53483
53476
  labelEmptyValue: PropTypes.string,
53484
53477
  name: PropTypes.string,
53478
+ selectedValue: PropTypes.arrayOf(PropTypes.shape({
53479
+ value: PropTypes.string,
53480
+ label: PropTypes.string
53481
+ })),
53485
53482
  value: PropTypes.number,
53486
53483
  color: PropTypes.string,
53487
53484
  dropdownOptions: PropTypes.arrayOf(PropTypes.shape({
@@ -65850,22 +65847,21 @@ const DeleteIcon = dt.div`
65850
65847
  position: absolute;
65851
65848
  `;
65852
65849
 
65853
- const QuickFilterDropdownSingle = _ref => {
65854
- let {
65855
- label,
65856
- hoverColor,
65857
- options,
65858
- selectedValue,
65859
- placeHolder,
65860
- onChange,
65861
- disabled,
65862
- width,
65863
- error,
65864
- errorMessage,
65865
- xIconShow,
65866
- labelColor,
65867
- showLabelOnTop
65868
- } = _ref;
65850
+ const QuickFilterDropdownSingle = ({
65851
+ label,
65852
+ hoverColor,
65853
+ options,
65854
+ selectedValue,
65855
+ placeHolder,
65856
+ onChange,
65857
+ disabled,
65858
+ width,
65859
+ error,
65860
+ errorMessage,
65861
+ xIconShow,
65862
+ labelColor,
65863
+ showLabelOnTop
65864
+ }) => {
65869
65865
  const [isFocused, setIsFocused] = React.useState(false);
65870
65866
  const [showOptions, setShowOptions] = React.useState(false);
65871
65867
  const [inputValue, setInputValue] = React.useState("");
@@ -66263,24 +66259,23 @@ const IconContainer$1 = dt.div`
66263
66259
  cursor: pointer;
66264
66260
  `;
66265
66261
 
66266
- const QuickFilterDropdownMultiSelection = _ref => {
66267
- let {
66268
- label,
66269
- labelEmptyValue,
66270
- options,
66271
- selectedValue,
66272
- placeHolder,
66273
- onChange,
66274
- required,
66275
- disabled,
66276
- width,
66277
- error,
66278
- errorMessage,
66279
- labelColor,
66280
- xIconShow,
66281
- checkBoxColor,
66282
- showLabelOnTop
66283
- } = _ref;
66262
+ const QuickFilterDropdownMultiSelection = ({
66263
+ label,
66264
+ labelEmptyValue,
66265
+ options,
66266
+ selectedValue,
66267
+ placeHolder,
66268
+ onChange,
66269
+ required,
66270
+ disabled,
66271
+ width,
66272
+ error,
66273
+ errorMessage,
66274
+ labelColor,
66275
+ xIconShow,
66276
+ checkBoxColor,
66277
+ showLabelOnTop
66278
+ }) => {
66284
66279
  const [isFocused, setIsFocused] = React.useState(false);
66285
66280
  const [showOptions, setShowOptions] = React.useState(false);
66286
66281
  const [inputValue, setInputValue] = React.useState('');