sag_components 2.0.0-beta332 → 2.0.0-beta334

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
@@ -1552,7 +1552,7 @@ declare function QuickFilterCards({ data, onCardToggle, width, CardsContainerCla
1552
1552
  CardsContainerClassName?: string;
1553
1553
  }): any;
1554
1554
 
1555
- declare function RangePicker({ label, onChange, borderRadius, required, width, height, placeholder, disabled, borderColor, borderColorFocus, textColor, selectedValue, selectedColor, hoverColor, inRangeColor, clearButtonColor, }: {
1555
+ declare function RangePicker({ label, onChange, borderRadius, required, width, height, placeholder, disabled, borderColor, borderColorFocus, textColor, selectedValue, selectedColor, hoverColor, inRangeColor, clearButtonColor, calendarIconColor, showClearButton, showOpenIcon, }: {
1556
1556
  label: any;
1557
1557
  onChange: any;
1558
1558
  borderRadius: any;
@@ -1569,6 +1569,9 @@ declare function RangePicker({ label, onChange, borderRadius, required, width, h
1569
1569
  hoverColor: any;
1570
1570
  inRangeColor: any;
1571
1571
  clearButtonColor: any;
1572
+ calendarIconColor: any;
1573
+ showClearButton: any;
1574
+ showOpenIcon: any;
1572
1575
  }): any;
1573
1576
  declare namespace RangePicker {
1574
1577
  namespace propTypes {
@@ -1588,6 +1591,9 @@ declare namespace RangePicker {
1588
1591
  const hoverColor: any;
1589
1592
  const inRangeColor: any;
1590
1593
  const clearButtonColor: any;
1594
+ const calendarIconColor: any;
1595
+ const showClearButton: any;
1596
+ const showOpenIcon: any;
1591
1597
  }
1592
1598
  namespace defaultProps {
1593
1599
  const required_1: boolean;
@@ -1616,6 +1622,12 @@ declare namespace RangePicker {
1616
1622
  export { inRangeColor_1 as inRangeColor };
1617
1623
  const clearButtonColor_1: string;
1618
1624
  export { clearButtonColor_1 as clearButtonColor };
1625
+ const calendarIconColor_1: string;
1626
+ export { calendarIconColor_1 as calendarIconColor };
1627
+ const showClearButton_1: boolean;
1628
+ export { showClearButton_1 as showClearButton };
1629
+ const showOpenIcon_1: boolean;
1630
+ export { showOpenIcon_1 as showOpenIcon };
1619
1631
  }
1620
1632
  }
1621
1633
 
package/dist/index.esm.js CHANGED
@@ -439,16 +439,21 @@ const CalendarInOpen = _ref => {
439
439
  }));
440
440
  };
441
441
 
442
- const Calendar = () => /*#__PURE__*/React$1.createElement("svg", {
443
- width: "11",
444
- height: "12",
445
- viewBox: "0 0 11 12",
446
- fill: "none",
447
- xmlns: "http://www.w3.org/2000/svg"
448
- }, /*#__PURE__*/React$1.createElement("path", {
449
- d: "M2.625 0C2.8125 0 3 0.1875 3 0.375V1.5H7.5V0.375C7.5 0.1875 7.66406 0 7.875 0C8.0625 0 8.25 0.1875 8.25 0.375V1.5H9C9.82031 1.5 10.5 2.17969 10.5 3V3.75V4.5V10.5C10.5 11.3438 9.82031 12 9 12H1.5C0.65625 12 0 11.3438 0 10.5V4.5V3.75V3C0 2.17969 0.65625 1.5 1.5 1.5H2.25V0.375C2.25 0.1875 2.41406 0 2.625 0ZM9.75 4.5H0.75V10.5C0.75 10.9219 1.07812 11.25 1.5 11.25H9C9.39844 11.25 9.75 10.9219 9.75 10.5V4.5ZM9 2.25H1.5C1.07812 2.25 0.75 2.60156 0.75 3V3.75H9.75V3C9.75 2.60156 9.39844 2.25 9 2.25Z",
450
- fill: "#568202"
451
- }));
442
+ const Calendar = _ref => {
443
+ let {
444
+ fill = '#568202'
445
+ } = _ref;
446
+ return /*#__PURE__*/React$1.createElement("svg", {
447
+ width: "11",
448
+ height: "12",
449
+ viewBox: "0 0 11 12",
450
+ fill: "none",
451
+ xmlns: "http://www.w3.org/2000/svg"
452
+ }, /*#__PURE__*/React$1.createElement("path", {
453
+ d: "M2.625 0C2.8125 0 3 0.1875 3 0.375V1.5H7.5V0.375C7.5 0.1875 7.66406 0 7.875 0C8.0625 0 8.25 0.1875 8.25 0.375V1.5H9C9.82031 1.5 10.5 2.17969 10.5 3V3.75V4.5V10.5C10.5 11.3438 9.82031 12 9 12H1.5C0.65625 12 0 11.3438 0 10.5V4.5V3.75V3C0 2.17969 0.65625 1.5 1.5 1.5H2.25V0.375C2.25 0.1875 2.41406 0 2.625 0ZM9.75 4.5H0.75V10.5C0.75 10.9219 1.07812 11.25 1.5 11.25H9C9.39844 11.25 9.75 10.9219 9.75 10.5V4.5ZM9 2.25H1.5C1.07812 2.25 0.75 2.60156 0.75 3V3.75H9.75V3C9.75 2.60156 9.39844 2.25 9 2.25Z",
454
+ fill: fill
455
+ }));
456
+ };
452
457
 
453
458
  // eslint-disable-next-line react/prop-types
454
459
  const ErrorIcon = _ref => {
@@ -10177,7 +10182,8 @@ const DatePicker = ({
10177
10182
  selectedColor,
10178
10183
  hoverColor,
10179
10184
  inRangeColor,
10180
- clearButtonColor
10185
+ clearButtonColor,
10186
+ showClearButton
10181
10187
  }) => {
10182
10188
  const [startDate, setStartDate] = useState(null);
10183
10189
  const [endDate, setEndDate] = useState(null);
@@ -10288,7 +10294,7 @@ const DatePicker = ({
10288
10294
  return /*#__PURE__*/React$1.createElement(DateCell$2, {
10289
10295
  key: date.toISOString()
10290
10296
  });
10291
- })), /*#__PURE__*/React$1.createElement(DatePickerFooter, null, /*#__PURE__*/React$1.createElement(ClearButton$1, {
10297
+ })), /*#__PURE__*/React$1.createElement(DatePickerFooter, null, showClearButton && /*#__PURE__*/React$1.createElement(ClearButton$1, {
10292
10298
  clearButtonColor: clearButtonColor,
10293
10299
  onClick: clearSelection
10294
10300
  }, "Clear")));
@@ -10316,7 +10322,10 @@ const RangePicker = _ref => {
10316
10322
  selectedColor,
10317
10323
  hoverColor,
10318
10324
  inRangeColor,
10319
- clearButtonColor
10325
+ clearButtonColor,
10326
+ calendarIconColor,
10327
+ showClearButton,
10328
+ showOpenIcon
10320
10329
  } = _ref;
10321
10330
  const [isFocused, setIsFocused] = useState(false);
10322
10331
  const [isOpen, setIsOpen] = useState(false);
@@ -10431,10 +10440,12 @@ const RangePicker = _ref => {
10431
10440
  }), /*#__PURE__*/React$1.createElement(CalendarDiv$3, {
10432
10441
  className: "CalendarDiv",
10433
10442
  onClick: toggleDatePicker
10434
- }, isOpen === true ? /*#__PURE__*/React$1.createElement(CalendarInOpen, {
10435
- className: "CalendarInOpen"
10443
+ }, isOpen && showOpenIcon ? /*#__PURE__*/React$1.createElement(CalendarInOpen, {
10444
+ className: "CalendarInOpen",
10445
+ fill: calendarIconColor
10436
10446
  }) : /*#__PURE__*/React$1.createElement(Calendar, {
10437
- className: "Calendar"
10447
+ className: "Calendar",
10448
+ fill: calendarIconColor
10438
10449
  }))), /*#__PURE__*/React$1.createElement(OptionsContainer$5, {
10439
10450
  className: "OptionsContainer",
10440
10451
  onMouseEnter: () => setHoverOptionsContainer(true),
@@ -10450,7 +10461,8 @@ const RangePicker = _ref => {
10450
10461
  selectedColor: selectedColor,
10451
10462
  hoverColor: hoverColor,
10452
10463
  inRangeColor: inRangeColor,
10453
- clearButtonColor: clearButtonColor
10464
+ clearButtonColor: clearButtonColor,
10465
+ showClearButton: showClearButton
10454
10466
  })));
10455
10467
  };
10456
10468
  RangePicker.propTypes = {
@@ -10471,7 +10483,10 @@ RangePicker.propTypes = {
10471
10483
  selectedColor: PropTypes.string,
10472
10484
  hoverColor: PropTypes.string,
10473
10485
  inRangeColor: PropTypes.string,
10474
- clearButtonColor: PropTypes.string
10486
+ clearButtonColor: PropTypes.string,
10487
+ calendarIconColor: PropTypes.string,
10488
+ showClearButton: PropTypes.bool,
10489
+ showOpenIcon: PropTypes.bool
10475
10490
  };
10476
10491
 
10477
10492
  // Adding defaultProps
@@ -10490,7 +10505,10 @@ RangePicker.defaultProps = {
10490
10505
  selectedColor: '#229e38',
10491
10506
  hoverColor: '#f4faf5',
10492
10507
  inRangeColor: '#effef2',
10493
- clearButtonColor: '#568202'
10508
+ clearButtonColor: '#568202',
10509
+ calendarIconColor: '#568202',
10510
+ showClearButton: true,
10511
+ showOpenIcon: true
10494
10512
  };
10495
10513
 
10496
10514
  /* eslint-disable no-nested-ternary */