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.d.ts CHANGED
@@ -273,6 +273,10 @@ declare namespace FilterPanel {
273
273
  label: PropTypes.Requireable<string>;
274
274
  labelEmptyValue: PropTypes.Requireable<string>;
275
275
  name: PropTypes.Requireable<string>;
276
+ selectedValue: PropTypes.Requireable<(PropTypes.InferProps<{
277
+ value: PropTypes.Requireable<string>;
278
+ label: PropTypes.Requireable<string>;
279
+ }> | null | undefined)[]>;
276
280
  value: PropTypes.Requireable<number>;
277
281
  color: PropTypes.Requireable<string>;
278
282
  dropdownOptions: PropTypes.Requireable<(PropTypes.InferProps<{
package/dist/index.esm.js CHANGED
@@ -44289,19 +44289,18 @@ const InfoIcon = _ref => {
44289
44289
  }));
44290
44290
  };
44291
44291
 
44292
- const LinkButton = _ref => {
44293
- let {
44294
- text = '',
44295
- type = 'primary',
44296
- size = 'small',
44297
- height = '',
44298
- width = '',
44299
- disabled = false,
44300
- textColor = '',
44301
- onClick,
44302
- leftIcon = 'none',
44303
- rightIcon = 'none'
44304
- } = _ref;
44292
+ const LinkButton = ({
44293
+ text = '',
44294
+ type = 'primary',
44295
+ size = 'small',
44296
+ height = '',
44297
+ width = '',
44298
+ disabled = false,
44299
+ textColor = '',
44300
+ onClick,
44301
+ leftIcon = 'none',
44302
+ rightIcon = 'none'
44303
+ }) => {
44305
44304
  // const {
44306
44305
  // text,
44307
44306
  // type,
@@ -51248,70 +51247,67 @@ const DropdownMain = dt.div`
51248
51247
  `;
51249
51248
 
51250
51249
  /* eslint-disable react/prop-types */
51251
- const DropdownNew = _ref => {
51252
- let {
51253
- isMulti,
51254
- label,
51255
- labelEmptyValue,
51256
- options,
51257
- selectedValue,
51258
- placeHolder,
51259
- onChange,
51260
- required,
51261
- disabled,
51262
- width,
51263
- error,
51264
- errorMessage,
51265
- labelColor,
51266
- checkBoxColor,
51267
- xIconShow,
51268
- showLabelOnTop,
51269
- orderBy,
51270
- elementType
51271
- } = _ref;
51272
- return /*#__PURE__*/React__default.createElement(DropdownMain, {
51273
- className: "DropdownMain",
51274
- width: width
51275
- }, isMulti ? /*#__PURE__*/React__default.createElement(DropdownMultiNew, {
51276
- className: "DropdownMultiNew",
51277
- placeHolder: placeHolder,
51278
- label: label,
51279
- labelEmptyValue: labelEmptyValue,
51280
- labelColor: labelColor,
51281
- checkBoxColor: checkBoxColor,
51282
- required: required,
51283
- options: options,
51284
- width: width,
51285
- disabled: disabled,
51286
- error: error,
51287
- errorMessage: errorMessage,
51288
- selectedValue: selectedValue,
51289
- xIconShow: xIconShow,
51290
- onChange: onChange,
51291
- showLabelOnTop: showLabelOnTop,
51292
- orderBy: orderBy,
51293
- elementType: elementType
51294
- }) : /*#__PURE__*/React__default.createElement(DropdownSingleNew, {
51295
- className: "DropdownSingleNew",
51296
- placeHolder: placeHolder,
51297
- label: label,
51298
- labelEmptyValue: labelEmptyValue,
51299
- labelColor: labelColor,
51300
- checkBoxColor: checkBoxColor,
51301
- required: required,
51302
- options: options,
51303
- width: width,
51304
- disabled: disabled,
51305
- error: error,
51306
- errorMessage: errorMessage,
51307
- selectedValue: selectedValue,
51308
- xIconShow: xIconShow,
51309
- onChange: onChange,
51310
- showLabelOnTop: showLabelOnTop,
51311
- orderBy: orderBy,
51312
- elementType: elementType
51313
- }));
51314
- };
51250
+ const DropdownNew = ({
51251
+ isMulti,
51252
+ label,
51253
+ labelEmptyValue,
51254
+ options,
51255
+ selectedValue,
51256
+ placeHolder,
51257
+ onChange,
51258
+ required,
51259
+ disabled,
51260
+ width,
51261
+ error,
51262
+ errorMessage,
51263
+ labelColor,
51264
+ checkBoxColor,
51265
+ xIconShow,
51266
+ showLabelOnTop,
51267
+ orderBy,
51268
+ elementType
51269
+ }) => /*#__PURE__*/React__default.createElement(DropdownMain, {
51270
+ className: "DropdownMain",
51271
+ width: width
51272
+ }, isMulti ? /*#__PURE__*/React__default.createElement(DropdownMultiNew, {
51273
+ className: "DropdownMultiNew",
51274
+ placeHolder: placeHolder,
51275
+ label: label,
51276
+ labelEmptyValue: labelEmptyValue,
51277
+ labelColor: labelColor,
51278
+ checkBoxColor: checkBoxColor,
51279
+ required: required,
51280
+ options: options,
51281
+ width: width,
51282
+ disabled: disabled,
51283
+ error: error,
51284
+ errorMessage: errorMessage,
51285
+ selectedValue: selectedValue,
51286
+ xIconShow: xIconShow,
51287
+ onChange: onChange,
51288
+ showLabelOnTop: showLabelOnTop,
51289
+ orderBy: orderBy,
51290
+ elementType: elementType
51291
+ }) : /*#__PURE__*/React__default.createElement(DropdownSingleNew, {
51292
+ className: "DropdownSingleNew",
51293
+ placeHolder: placeHolder,
51294
+ label: label,
51295
+ labelEmptyValue: labelEmptyValue,
51296
+ labelColor: labelColor,
51297
+ checkBoxColor: checkBoxColor,
51298
+ required: required,
51299
+ options: options,
51300
+ width: width,
51301
+ disabled: disabled,
51302
+ error: error,
51303
+ errorMessage: errorMessage,
51304
+ selectedValue: selectedValue,
51305
+ xIconShow: xIconShow,
51306
+ onChange: onChange,
51307
+ showLabelOnTop: showLabelOnTop,
51308
+ orderBy: orderBy,
51309
+ elementType: elementType
51310
+ }));
51315
51311
  DropdownNew.propTypes = {
51316
51312
  placeHolder: PropTypes.string,
51317
51313
  label: PropTypes.string,
@@ -51725,21 +51721,20 @@ const DatePicker = ({
51725
51721
  };
51726
51722
 
51727
51723
  /* eslint-disable import/no-extraneous-dependencies */
51728
- const RangePicker = _ref => {
51729
- let {
51730
- label,
51731
- onChange,
51732
- borderRadius,
51733
- required,
51734
- width,
51735
- height,
51736
- placeholder,
51737
- disabled,
51738
- borderColor,
51739
- borderColorFocus,
51740
- textColor,
51741
- selectedValue
51742
- } = _ref;
51724
+ const RangePicker = ({
51725
+ label,
51726
+ onChange,
51727
+ borderRadius,
51728
+ required,
51729
+ width,
51730
+ height,
51731
+ placeholder,
51732
+ disabled,
51733
+ borderColor,
51734
+ borderColorFocus,
51735
+ textColor,
51736
+ selectedValue
51737
+ }) => {
51743
51738
  const [isFocused, setIsFocused] = useState(false);
51744
51739
  const [isOpen, setIsOpen] = useState(false);
51745
51740
  const [value, setValue] = useState(''); // Added value state
@@ -52171,23 +52166,22 @@ const QuarterPopupPicker = ({
52171
52166
  };
52172
52167
 
52173
52168
  /* eslint-disable import/no-extraneous-dependencies */
52174
- const QuarterPicker = _ref => {
52175
- let {
52176
- availableQuarters,
52177
- // ["Q1-2024"]
52178
- label,
52179
- onChange,
52180
- borderRadius,
52181
- required,
52182
- width,
52183
- height,
52184
- placeholder,
52185
- disabled,
52186
- borderColor,
52187
- borderColorFocus,
52188
- textColor,
52189
- selectedValue
52190
- } = _ref;
52169
+ const QuarterPicker = ({
52170
+ availableQuarters,
52171
+ // ["Q1-2024"]
52172
+ label,
52173
+ onChange,
52174
+ borderRadius,
52175
+ required,
52176
+ width,
52177
+ height,
52178
+ placeholder,
52179
+ disabled,
52180
+ borderColor,
52181
+ borderColorFocus,
52182
+ textColor,
52183
+ selectedValue
52184
+ }) => {
52191
52185
  const [isFocused, setIsFocused] = useState(false);
52192
52186
  const [isOpen, setIsOpen] = useState(false);
52193
52187
  const [value, setValue] = useState('');
@@ -52626,22 +52620,21 @@ const MonthPopupPicker = ({
52626
52620
  };
52627
52621
 
52628
52622
  /* eslint-disable import/no-extraneous-dependencies */
52629
- const MonthPicker = _ref => {
52630
- let {
52631
- availableMonths,
52632
- label,
52633
- onChange,
52634
- borderRadius,
52635
- required,
52636
- width,
52637
- height,
52638
- placeholder,
52639
- disabled,
52640
- borderColor,
52641
- borderColorFocus,
52642
- textColor,
52643
- selectedValue
52644
- } = _ref;
52623
+ const MonthPicker = ({
52624
+ availableMonths,
52625
+ label,
52626
+ onChange,
52627
+ borderRadius,
52628
+ required,
52629
+ width,
52630
+ height,
52631
+ placeholder,
52632
+ disabled,
52633
+ borderColor,
52634
+ borderColorFocus,
52635
+ textColor,
52636
+ selectedValue
52637
+ }) => {
52645
52638
  const [isFocused, setIsFocused] = useState(false);
52646
52639
  const [isOpen, setIsOpen] = useState(false);
52647
52640
  const [value, setValue] = useState('');
@@ -53455,6 +53448,10 @@ FilterPanel.propTypes = {
53455
53448
  label: PropTypes.string,
53456
53449
  labelEmptyValue: PropTypes.string,
53457
53450
  name: PropTypes.string,
53451
+ selectedValue: PropTypes.arrayOf(PropTypes.shape({
53452
+ value: PropTypes.string,
53453
+ label: PropTypes.string
53454
+ })),
53458
53455
  value: PropTypes.number,
53459
53456
  color: PropTypes.string,
53460
53457
  dropdownOptions: PropTypes.arrayOf(PropTypes.shape({
@@ -65823,22 +65820,21 @@ const DeleteIcon = dt.div`
65823
65820
  position: absolute;
65824
65821
  `;
65825
65822
 
65826
- const QuickFilterDropdownSingle = _ref => {
65827
- let {
65828
- label,
65829
- hoverColor,
65830
- options,
65831
- selectedValue,
65832
- placeHolder,
65833
- onChange,
65834
- disabled,
65835
- width,
65836
- error,
65837
- errorMessage,
65838
- xIconShow,
65839
- labelColor,
65840
- showLabelOnTop
65841
- } = _ref;
65823
+ const QuickFilterDropdownSingle = ({
65824
+ label,
65825
+ hoverColor,
65826
+ options,
65827
+ selectedValue,
65828
+ placeHolder,
65829
+ onChange,
65830
+ disabled,
65831
+ width,
65832
+ error,
65833
+ errorMessage,
65834
+ xIconShow,
65835
+ labelColor,
65836
+ showLabelOnTop
65837
+ }) => {
65842
65838
  const [isFocused, setIsFocused] = useState(false);
65843
65839
  const [showOptions, setShowOptions] = useState(false);
65844
65840
  const [inputValue, setInputValue] = useState("");
@@ -66236,24 +66232,23 @@ const IconContainer$1 = dt.div`
66236
66232
  cursor: pointer;
66237
66233
  `;
66238
66234
 
66239
- const QuickFilterDropdownMultiSelection = _ref => {
66240
- let {
66241
- label,
66242
- labelEmptyValue,
66243
- options,
66244
- selectedValue,
66245
- placeHolder,
66246
- onChange,
66247
- required,
66248
- disabled,
66249
- width,
66250
- error,
66251
- errorMessage,
66252
- labelColor,
66253
- xIconShow,
66254
- checkBoxColor,
66255
- showLabelOnTop
66256
- } = _ref;
66235
+ const QuickFilterDropdownMultiSelection = ({
66236
+ label,
66237
+ labelEmptyValue,
66238
+ options,
66239
+ selectedValue,
66240
+ placeHolder,
66241
+ onChange,
66242
+ required,
66243
+ disabled,
66244
+ width,
66245
+ error,
66246
+ errorMessage,
66247
+ labelColor,
66248
+ xIconShow,
66249
+ checkBoxColor,
66250
+ showLabelOnTop
66251
+ }) => {
66257
66252
  const [isFocused, setIsFocused] = useState(false);
66258
66253
  const [showOptions, setShowOptions] = useState(false);
66259
66254
  const [inputValue, setInputValue] = useState('');