@ambuj.bhaskar/react-component-library 0.31.2 → 0.31.4

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
@@ -1065,6 +1065,7 @@ export declare type MonthPickerProps = {
1065
1065
  onChange: (date: [Date | null, Date | null] | null) => void;
1066
1066
  value?: [Date | null, Date | null] | null;
1067
1067
  format?: string;
1068
+ allowClear?: boolean;
1068
1069
  className?: string;
1069
1070
  popupClassName?: string;
1070
1071
  };
package/dist/index.js CHANGED
@@ -82713,23 +82713,25 @@ const cDe = {
82713
82713
  onChange: n,
82714
82714
  value: r,
82715
82715
  format: o = "MMM YYYY",
82716
- className: i = "",
82717
- popupClassName: a = ""
82716
+ allowClear: i = !0,
82717
+ className: a = "",
82718
+ popupClassName: s = ""
82718
82719
  }) => {
82719
- const s = r ? g1(r[0]) : void 0, c = (u) => {
82720
- const d = u == null ? void 0 : u.startOf("month").startOf("day").toDate(), h = u == null ? void 0 : u.endOf("month").endOf("day").toDate();
82721
- n && n([d, h]);
82720
+ const c = r ? g1(r[0]) : void 0, u = (d) => {
82721
+ const h = d == null ? void 0 : d.startOf("month").startOf("day").toDate(), C = d == null ? void 0 : d.endOf("month").endOf("day").toDate();
82722
+ n && n([h, C]);
82722
82723
  };
82723
82724
  return /* @__PURE__ */ G.jsx(
82724
82725
  di,
82725
82726
  {
82726
- onChange: c,
82727
+ onChange: u,
82727
82728
  picker: "month",
82728
- className: `awi_month_picker size_${e} ${i}`,
82729
- popupClassName: `awi_month_picker_popup ${a}`,
82729
+ className: `awi_month_picker size_${e} ${a}`,
82730
+ popupClassName: `awi_month_picker_popup ${s}`,
82730
82731
  format: o,
82731
- value: s,
82732
- style: { width: t }
82732
+ value: c,
82733
+ style: { width: t },
82734
+ allowClear: i
82733
82735
  }
82734
82736
  );
82735
82737
  }, cRe = ({