@ambuj.bhaskar/react-component-library 0.24.15-alpha → 0.24.16-alpha

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
@@ -3,6 +3,7 @@ import { default as default_2 } from 'react';
3
3
  import { Dispatch } from 'react';
4
4
  import { JSX as JSX_2 } from 'react/jsx-runtime';
5
5
  import { PopoverProps as PopoverProps_2 } from 'antd';
6
+ import { RangePickerProps } from 'antd/es/date-picker';
6
7
  import * as React_2 from 'react';
7
8
  import { ReactNode } from 'react';
8
9
  import { RefObject } from 'react';
@@ -822,7 +823,8 @@ export declare type DateRangePickerProps = {
822
823
  value?: Date[];
823
824
  onChange?: (value: Date[]) => void;
824
825
  className?: string;
825
- showTime?: boolean;
826
+ showTime?: RangePickerProps["showTime"];
827
+ allowClear?: RangePickerProps["allowClear"];
826
828
  format?: DateTimeFormat;
827
829
  presetRanges?: TimeRangePickerProps["presets"];
828
830
  width?: CSSstring;
package/dist/index.js CHANGED
@@ -75076,7 +75076,7 @@ const _ke = (e) => uD[e], oc = [
75076
75076
  // ✅ Direct tuple
75077
75077
  },
75078
75078
  {
75079
- label: "This Week",
75079
+ label: "Present Week",
75080
75080
  value: [d0().startOf("week"), d0().endOf("week")]
75081
75081
  // ✅ Direct tuple
75082
75082
  },
@@ -75086,7 +75086,7 @@ const _ke = (e) => uD[e], oc = [
75086
75086
  // ✅ Direct tuple
75087
75087
  },
75088
75088
  {
75089
- label: "This Month",
75089
+ label: "Present Month",
75090
75090
  value: [d0().startOf("month"), d0().endOf("month")]
75091
75091
  // ✅ Direct tuple
75092
75092
  },
@@ -75110,28 +75110,29 @@ const _ke = (e) => uD[e], oc = [
75110
75110
  pickerRangeColor: h,
75111
75111
  pickerBackgroundColor: C,
75112
75112
  pickerBorderColor: m,
75113
- disabledDate: A = (_) => !1,
75114
- disableFutureDates: v = !1,
75115
- ...p
75113
+ allowClear: A = !1,
75114
+ disabledDate: v = (w) => !1,
75115
+ disableFutureDates: p = !1,
75116
+ ..._
75116
75117
  }) => {
75117
- const _ = e ? [d0(e[0]), d0(e[1])] : void 0, w = (x) => {
75118
- if (t && x) {
75119
- const E = x.map(
75120
- (S) => (S == null ? void 0 : S.toDate()) || /* @__PURE__ */ new Date()
75118
+ const w = e ? [d0(e[0]), d0(e[1])] : void 0, x = (E) => {
75119
+ if (t && E) {
75120
+ const S = E.map(
75121
+ (M) => (M == null ? void 0 : M.toDate()) || /* @__PURE__ */ new Date()
75121
75122
  );
75122
- t(E);
75123
+ t(S);
75123
75124
  } else t && t([]);
75124
75125
  };
75125
75126
  return /* @__PURE__ */ z.jsx(
75126
75127
  Hke,
75127
75128
  {
75128
75129
  showTime: r,
75129
- ...p,
75130
- value: _,
75131
- onChange: w,
75130
+ ..._,
75131
+ value: w,
75132
+ onChange: x,
75132
75133
  format: o,
75133
75134
  presets: i,
75134
- disabledDate: v ? (x) => Mke(x) || A(x) : A,
75135
+ disabledDate: p ? (E) => Mke(E) || v(E) : v,
75135
75136
  style: {
75136
75137
  width: a,
75137
75138
  "--c_trigger_background": c,
@@ -75144,7 +75145,8 @@ const _ke = (e) => uD[e], oc = [
75144
75145
  "--c_surface_border": m,
75145
75146
  "--c_surface": C
75146
75147
  },
75147
- className: `date-range-picker ${n} h_${s}`
75148
+ className: `date-range-picker ${n} h_${s}`,
75149
+ allowClear: A
75148
75150
  }
75149
75151
  );
75150
75152
  };