@ambuj.bhaskar/react-component-library 0.24.17-alpha → 0.24.18-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
@@ -837,6 +837,7 @@ export declare type DateRangePickerProps = {
837
837
  pickerBorderColor?: Color;
838
838
  disabledDate?: DateCompare;
839
839
  disableFutureDates?: boolean;
840
+ textColor?: Color;
840
841
  };
841
842
 
842
843
  declare type DateTimeFormat = string;
package/dist/index.js CHANGED
@@ -75112,43 +75112,46 @@ const _ke = (e) => uD[e], oc = [
75112
75112
  pickerRangeColor: h,
75113
75113
  pickerBackgroundColor: C,
75114
75114
  pickerBorderColor: m,
75115
- allowClear: A = !1,
75116
- disabledDate: v = (w) => !1,
75117
- disableFutureDates: p = !1,
75118
- ..._
75115
+ textColor: A,
75116
+ allowClear: v = !1,
75117
+ disabledDate: p = (x) => !1,
75118
+ disableFutureDates: _ = !1,
75119
+ ...w
75119
75120
  }) => {
75120
- const w = e ? [d0(e[0]), d0(e[1])] : void 0, x = (E) => {
75121
- if (t && E) {
75122
- const S = E.map(
75123
- (M) => (M == null ? void 0 : M.toDate()) || /* @__PURE__ */ new Date()
75121
+ const x = e ? [d0(e[0]), d0(e[1])] : void 0, E = (S) => {
75122
+ if (t && S) {
75123
+ const M = S.map(
75124
+ (H) => (H == null ? void 0 : H.toDate()) || /* @__PURE__ */ new Date()
75124
75125
  );
75125
- t(S);
75126
+ t(M);
75126
75127
  } else t && t([]);
75127
75128
  };
75128
75129
  return /* @__PURE__ */ z.jsx(
75129
75130
  Hke,
75130
75131
  {
75131
75132
  showTime: r,
75132
- ..._,
75133
- value: w,
75134
- onChange: x,
75133
+ ...w,
75134
+ value: x,
75135
+ onChange: E,
75135
75136
  format: o,
75136
75137
  presets: i,
75137
- disabledDate: p ? (E) => Mke(E) || v(E) : v,
75138
+ disabledDate: _ ? (S) => Mke(S) || p(S) : p,
75138
75139
  style: {
75139
75140
  width: a,
75140
75141
  "--c_trigger_background": c,
75141
75142
  "--c_trigger_border": u,
75142
- "--c_highlight": d
75143
+ "--c_highlight": d,
75144
+ "--c_text_primary": A
75143
75145
  },
75144
75146
  popupStyle: {
75145
75147
  "--c_highlight": d,
75146
75148
  "--c_date_range_fill": h,
75147
75149
  "--c_surface_border": m,
75148
- "--c_surface": C
75150
+ "--c_surface": C,
75151
+ "--c_text_primary": A
75149
75152
  },
75150
75153
  className: `date-range-picker ${n} h_${s}`,
75151
- allowClear: A
75154
+ allowClear: v
75152
75155
  }
75153
75156
  );
75154
75157
  };