sag_components 2.0.0-beta3 → 2.0.0-beta4

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
@@ -51275,67 +51275,70 @@ const DropdownMain = dt.div`
51275
51275
  `;
51276
51276
 
51277
51277
  /* eslint-disable react/prop-types */
51278
- const DropdownNew = ({
51279
- isMulti,
51280
- label,
51281
- labelEmptyValue,
51282
- options,
51283
- selectedValue,
51284
- placeHolder,
51285
- onChange,
51286
- required,
51287
- disabled,
51288
- width,
51289
- error,
51290
- errorMessage,
51291
- labelColor,
51292
- checkBoxColor,
51293
- xIconShow,
51294
- showLabelOnTop,
51295
- orderBy,
51296
- elementType
51297
- }) => /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
51298
- className: "DropdownMain",
51299
- width: width
51300
- }, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
51301
- className: "DropdownMultiNew",
51302
- placeHolder: placeHolder,
51303
- label: label,
51304
- labelEmptyValue: labelEmptyValue,
51305
- labelColor: labelColor,
51306
- checkBoxColor: checkBoxColor,
51307
- required: required,
51308
- options: options,
51309
- width: width,
51310
- disabled: disabled,
51311
- error: error,
51312
- errorMessage: errorMessage,
51313
- selectedValue: selectedValue,
51314
- xIconShow: xIconShow,
51315
- onChange: onChange,
51316
- showLabelOnTop: showLabelOnTop,
51317
- orderBy: orderBy,
51318
- elementType: elementType
51319
- }) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
51320
- className: "DropdownSingleNew",
51321
- placeHolder: placeHolder,
51322
- label: label,
51323
- labelEmptyValue: labelEmptyValue,
51324
- labelColor: labelColor,
51325
- checkBoxColor: checkBoxColor,
51326
- required: required,
51327
- options: options,
51328
- width: width,
51329
- disabled: disabled,
51330
- error: error,
51331
- errorMessage: errorMessage,
51332
- selectedValue: selectedValue,
51333
- xIconShow: xIconShow,
51334
- onChange: onChange,
51335
- showLabelOnTop: showLabelOnTop,
51336
- orderBy: orderBy,
51337
- elementType: elementType
51338
- }));
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
+ };
51339
51342
  DropdownNew.propTypes = {
51340
51343
  placeHolder: PropTypes.string,
51341
51344
  label: PropTypes.string,
@@ -51749,20 +51752,21 @@ const DatePicker = ({
51749
51752
  };
51750
51753
 
51751
51754
  /* eslint-disable import/no-extraneous-dependencies */
51752
- const RangePicker = ({
51753
- label,
51754
- onChange,
51755
- borderRadius,
51756
- required,
51757
- width,
51758
- height,
51759
- placeholder,
51760
- disabled,
51761
- borderColor,
51762
- borderColorFocus,
51763
- textColor,
51764
- selectedValue
51765
- }) => {
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;
51766
51770
  const [isFocused, setIsFocused] = React.useState(false);
51767
51771
  const [isOpen, setIsOpen] = React.useState(false);
51768
51772
  const [value, setValue] = React.useState(''); // Added value state
@@ -52194,22 +52198,23 @@ const QuarterPopupPicker = ({
52194
52198
  };
52195
52199
 
52196
52200
  /* eslint-disable import/no-extraneous-dependencies */
52197
- const QuarterPicker = ({
52198
- availableQuarters,
52199
- // ["Q1-2024"]
52200
- label,
52201
- onChange,
52202
- borderRadius,
52203
- required,
52204
- width,
52205
- height,
52206
- placeholder,
52207
- disabled,
52208
- borderColor,
52209
- borderColorFocus,
52210
- textColor,
52211
- selectedValue
52212
- }) => {
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;
52213
52218
  const [isFocused, setIsFocused] = React.useState(false);
52214
52219
  const [isOpen, setIsOpen] = React.useState(false);
52215
52220
  const [value, setValue] = React.useState('');
@@ -52648,21 +52653,22 @@ const MonthPopupPicker = ({
52648
52653
  };
52649
52654
 
52650
52655
  /* eslint-disable import/no-extraneous-dependencies */
52651
- const MonthPicker = ({
52652
- availableMonths,
52653
- label,
52654
- onChange,
52655
- borderRadius,
52656
- required,
52657
- width,
52658
- height,
52659
- placeholder,
52660
- disabled,
52661
- borderColor,
52662
- borderColorFocus,
52663
- textColor,
52664
- selectedValue
52665
- }) => {
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;
52666
52672
  const [isFocused, setIsFocused] = React.useState(false);
52667
52673
  const [isOpen, setIsOpen] = React.useState(false);
52668
52674
  const [value, setValue] = React.useState('');
@@ -53468,9 +53474,20 @@ FilterPanel.propTypes = {
53468
53474
  availableMonths: PropTypes.arrayOf(PropTypes.string),
53469
53475
  availableYears: PropTypes.arrayOf(PropTypes.string),
53470
53476
  fieldsData: PropTypes.arrayOf(PropTypes.shape({
53477
+ disabled: PropTypes.bool,
53478
+ required: PropTypes.bool,
53479
+ inputType: PropTypes.string,
53480
+ placeHolder: PropTypes.string,
53481
+ xIconShow: PropTypes.bool,
53482
+ label: PropTypes.string,
53483
+ labelEmptyValue: PropTypes.string,
53471
53484
  name: PropTypes.string,
53472
53485
  value: PropTypes.number,
53473
- color: PropTypes.string
53486
+ color: PropTypes.string,
53487
+ dropdownOptions: PropTypes.arrayOf(PropTypes.shape({
53488
+ value: PropTypes.string,
53489
+ label: PropTypes.string
53490
+ }))
53474
53491
  })),
53475
53492
  width: PropTypes.string,
53476
53493
  height: PropTypes.string,
@@ -65833,21 +65850,22 @@ const DeleteIcon = dt.div`
65833
65850
  position: absolute;
65834
65851
  `;
65835
65852
 
65836
- const QuickFilterDropdownSingle = ({
65837
- label,
65838
- hoverColor,
65839
- options,
65840
- selectedValue,
65841
- placeHolder,
65842
- onChange,
65843
- disabled,
65844
- width,
65845
- error,
65846
- errorMessage,
65847
- xIconShow,
65848
- labelColor,
65849
- showLabelOnTop
65850
- }) => {
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;
65851
65869
  const [isFocused, setIsFocused] = React.useState(false);
65852
65870
  const [showOptions, setShowOptions] = React.useState(false);
65853
65871
  const [inputValue, setInputValue] = React.useState("");
@@ -66245,23 +66263,24 @@ const IconContainer$1 = dt.div`
66245
66263
  cursor: pointer;
66246
66264
  `;
66247
66265
 
66248
- const QuickFilterDropdownMultiSelection = ({
66249
- label,
66250
- labelEmptyValue,
66251
- options,
66252
- selectedValue,
66253
- placeHolder,
66254
- onChange,
66255
- required,
66256
- disabled,
66257
- width,
66258
- error,
66259
- errorMessage,
66260
- labelColor,
66261
- xIconShow,
66262
- checkBoxColor,
66263
- showLabelOnTop
66264
- }) => {
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;
66265
66284
  const [isFocused, setIsFocused] = React.useState(false);
66266
66285
  const [showOptions, setShowOptions] = React.useState(false);
66267
66286
  const [inputValue, setInputValue] = React.useState('');