@ambuj.bhaskar/react-component-library 0.24.15-alpha → 0.24.17-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;
@@ -1208,6 +1210,7 @@ export declare type MultiselectProps = {
1208
1210
  menuActiveColor?: Color;
1209
1211
  menuHoverColor?: Color;
1210
1212
  borderColor?: Color;
1213
+ textColor?: Color;
1211
1214
  disabled?: boolean;
1212
1215
  id?: string;
1213
1216
  suffixIcon?: ReactNode | boolean;
@@ -1312,6 +1315,7 @@ export declare type SelectProps = {
1312
1315
  id?: string;
1313
1316
  suffixIcon?: ReactNode | boolean;
1314
1317
  title?: string;
1318
+ textColor?: Color;
1315
1319
  };
1316
1320
 
1317
1321
  declare function shiftPolygon(polygon: any): any;
package/dist/index.js CHANGED
@@ -11893,7 +11893,7 @@ const SG = /* @__PURE__ */ Ao(EG), gg = ({
11893
11893
  title: e,
11894
11894
  titleId: t,
11895
11895
  ...n
11896
- }, r) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { fill: "#1F1F1F", d: "M2.755 19.63a.7.7 0 0 0 .99.99l-.99-.99Zm5.495-4.505.495-.495a.7.7 0 0 0-.99 0l.495.495Zm2.5 2.5-.495.495a.7.7 0 0 0 .99 0l-.495-.495ZM16.375 12l.495-.495a.7.7 0 0 0-.99 0l.495.495Zm4.505 5.495a.7.7 0 0 0 .99-.99l-.99.99Zm-17.63 2.63.495.495 5-5-.495-.495-.495-.495-5 5 .495.495Zm5-5-.495.495 2.5 2.5.495-.495.495-.495-2.5-2.5-.495.495Zm2.5 2.5.495.495 5.625-5.625-.495-.495-.495-.495-5.625 5.625.495.495ZM16.375 12l-.495.495 5 5 .495-.495.495-.495-5-5-.495.495ZM5.75 2v.7h12.5V1.3H5.75V2ZM22 5.75h-.7v12.5h1.4V5.75H22ZM18.25 22v-.7H5.75v1.4h12.5V22ZM2 18.25h.7V5.75H1.3v12.5H2ZM5.75 22v-.7a3.05 3.05 0 0 1-3.05-3.05H1.3a4.45 4.45 0 0 0 4.45 4.45V22ZM22 18.25h-.7a3.05 3.05 0 0 1-3.05 3.05v1.4a4.45 4.45 0 0 0 4.45-4.45H22ZM18.25 2v.7a3.05 3.05 0 0 1 3.05 3.05h1.4a4.45 4.45 0 0 0-4.45-4.45V2ZM5.75 2v-.7A4.45 4.45 0 0 0 1.3 5.75h1.4A3.05 3.05 0 0 1 5.75 2.7V2ZM9.5 7.625h-.7c0 .649-.526 1.175-1.175 1.175v1.4A2.575 2.575 0 0 0 10.2 7.625h-.7ZM7.625 9.5v-.7A1.175 1.175 0 0 1 6.45 7.625h-1.4A2.575 2.575 0 0 0 7.625 10.2v-.7ZM5.75 7.625h.7c0-.649.526-1.175 1.175-1.175v-1.4A2.575 2.575 0 0 0 5.05 7.625h.7ZM7.625 5.75v.7c.649 0 1.175.526 1.175 1.175h1.4A2.575 2.575 0 0 0 7.625 5.05v.7Z" })), X1e = Me(q1e), J1e = ({
11896
+ }, r) => /* @__PURE__ */ l.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ l.createElement("title", { id: t }, e) : null, /* @__PURE__ */ l.createElement("path", { fill: "currentColor", d: "M2.755 19.63a.7.7 0 0 0 .99.99l-.99-.99Zm5.495-4.505.495-.495a.7.7 0 0 0-.99 0l.495.495Zm2.5 2.5-.495.495a.7.7 0 0 0 .99 0l-.495-.495ZM16.375 12l.495-.495a.7.7 0 0 0-.99 0l.495.495Zm4.505 5.495a.7.7 0 0 0 .99-.99l-.99.99Zm-17.63 2.63.495.495 5-5-.495-.495-.495-.495-5 5 .495.495Zm5-5-.495.495 2.5 2.5.495-.495.495-.495-2.5-2.5-.495.495Zm2.5 2.5.495.495 5.625-5.625-.495-.495-.495-.495-5.625 5.625.495.495ZM16.375 12l-.495.495 5 5 .495-.495.495-.495-5-5-.495.495ZM5.75 2v.7h12.5V1.3H5.75V2ZM22 5.75h-.7v12.5h1.4V5.75H22ZM18.25 22v-.7H5.75v1.4h12.5V22ZM2 18.25h.7V5.75H1.3v12.5H2ZM5.75 22v-.7a3.05 3.05 0 0 1-3.05-3.05H1.3a4.45 4.45 0 0 0 4.45 4.45V22ZM22 18.25h-.7a3.05 3.05 0 0 1-3.05 3.05v1.4a4.45 4.45 0 0 0 4.45-4.45H22ZM18.25 2v.7a3.05 3.05 0 0 1 3.05 3.05h1.4a4.45 4.45 0 0 0-4.45-4.45V2ZM5.75 2v-.7A4.45 4.45 0 0 0 1.3 5.75h1.4A3.05 3.05 0 0 1 5.75 2.7V2ZM9.5 7.625h-.7c0 .649-.526 1.175-1.175 1.175v1.4A2.575 2.575 0 0 0 10.2 7.625h-.7ZM7.625 9.5v-.7A1.175 1.175 0 0 1 6.45 7.625h-1.4A2.575 2.575 0 0 0 7.625 10.2v-.7ZM5.75 7.625h.7c0-.649.526-1.175 1.175-1.175v-1.4A2.575 2.575 0 0 0 5.05 7.625h.7ZM7.625 5.75v.7c.649 0 1.175.526 1.175 1.175h1.4A2.575 2.575 0 0 0 7.625 5.05v.7Z" })), X1e = Me(q1e), J1e = ({
11897
11897
  title: e,
11898
11898
  titleId: t,
11899
11899
  ...n
@@ -74057,7 +74057,8 @@ const wp = ({
74057
74057
  height: v = "m",
74058
74058
  id: p = "",
74059
74059
  suffixIcon: _ = !0,
74060
- title: w = ""
74060
+ title: w = "",
74061
+ textColor: x
74061
74062
  }) => /* @__PURE__ */ z.jsx(
74062
74063
  S9,
74063
74064
  {
@@ -74071,7 +74072,8 @@ const wp = ({
74071
74072
  "--c_menu_active": c,
74072
74073
  "--c_menu_hover": u,
74073
74074
  "--c_border": d,
74074
- "--c_disabled": h
74075
+ "--c_disabled": h,
74076
+ "--c_text_primary": x
74075
74077
  },
74076
74078
  value: n,
74077
74079
  onChange: t,
@@ -74080,7 +74082,7 @@ const wp = ({
74080
74082
  disabled: m,
74081
74083
  popupClassName: `single_select_dropdown h_${v} items_${o} ${d ? "border" : ""}`,
74082
74084
  removeIcon: !0,
74083
- filterOption: (x, E) => ((E == null ? void 0 : E.label) ?? "").toLowerCase().includes(x.toLowerCase()),
74085
+ filterOption: (E, S) => ((S == null ? void 0 : S.label) ?? "").toLowerCase().includes(E.toLowerCase()),
74084
74086
  options: e,
74085
74087
  title: w
74086
74088
  }
@@ -75076,7 +75078,7 @@ const _ke = (e) => uD[e], oc = [
75076
75078
  // ✅ Direct tuple
75077
75079
  },
75078
75080
  {
75079
- label: "This Week",
75081
+ label: "Present Week",
75080
75082
  value: [d0().startOf("week"), d0().endOf("week")]
75081
75083
  // ✅ Direct tuple
75082
75084
  },
@@ -75086,7 +75088,7 @@ const _ke = (e) => uD[e], oc = [
75086
75088
  // ✅ Direct tuple
75087
75089
  },
75088
75090
  {
75089
- label: "This Month",
75091
+ label: "Present Month",
75090
75092
  value: [d0().startOf("month"), d0().endOf("month")]
75091
75093
  // ✅ Direct tuple
75092
75094
  },
@@ -75110,28 +75112,29 @@ const _ke = (e) => uD[e], oc = [
75110
75112
  pickerRangeColor: h,
75111
75113
  pickerBackgroundColor: C,
75112
75114
  pickerBorderColor: m,
75113
- disabledDate: A = (_) => !1,
75114
- disableFutureDates: v = !1,
75115
- ...p
75115
+ allowClear: A = !1,
75116
+ disabledDate: v = (w) => !1,
75117
+ disableFutureDates: p = !1,
75118
+ ..._
75116
75119
  }) => {
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()
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
75124
  );
75122
- t(E);
75125
+ t(S);
75123
75126
  } else t && t([]);
75124
75127
  };
75125
75128
  return /* @__PURE__ */ z.jsx(
75126
75129
  Hke,
75127
75130
  {
75128
75131
  showTime: r,
75129
- ...p,
75130
- value: _,
75131
- onChange: w,
75132
+ ..._,
75133
+ value: w,
75134
+ onChange: x,
75132
75135
  format: o,
75133
75136
  presets: i,
75134
- disabledDate: v ? (x) => Mke(x) || A(x) : A,
75137
+ disabledDate: p ? (E) => Mke(E) || v(E) : v,
75135
75138
  style: {
75136
75139
  width: a,
75137
75140
  "--c_trigger_background": c,
@@ -75144,7 +75147,8 @@ const _ke = (e) => uD[e], oc = [
75144
75147
  "--c_surface_border": m,
75145
75148
  "--c_surface": C
75146
75149
  },
75147
- className: `date-range-picker ${n} h_${s}`
75150
+ className: `date-range-picker ${n} h_${s}`,
75151
+ allowClear: A
75148
75152
  }
75149
75153
  );
75150
75154
  };
@@ -84192,7 +84196,8 @@ const ZDe = ({
84192
84196
  height: w = "m",
84193
84197
  // Other
84194
84198
  id: x = "",
84195
- className: E = ""
84199
+ className: E = "",
84200
+ textColor: S
84196
84201
  }) => /* @__PURE__ */ z.jsx(
84197
84202
  S9,
84198
84203
  {
@@ -84209,7 +84214,8 @@ const ZDe = ({
84209
84214
  "--c_menu_background": a,
84210
84215
  "--c_menu_active": s,
84211
84216
  "--c_menu_hover": c,
84212
- "--c_border": u
84217
+ "--c_border": u,
84218
+ "--c_text_primary": S
84213
84219
  },
84214
84220
  suffixIcon: A ? void 0 : null,
84215
84221
  options: e,
@@ -84217,18 +84223,18 @@ const ZDe = ({
84217
84223
  onChange: t,
84218
84224
  popupClassName: `multi_select_dropdown h_${w} `,
84219
84225
  value: n,
84220
- filterOption: (S, M) => ((M == null ? void 0 : M.label) ?? "").toLowerCase().includes(S.toLowerCase()),
84226
+ filterOption: (M, H) => ((H == null ? void 0 : H.label) ?? "").toLowerCase().includes(M.toLowerCase()),
84221
84227
  title: p,
84222
84228
  maxCount: m,
84223
84229
  maxTagCount: C,
84224
- maxTagPlaceholder: (S) => /* @__PURE__ */ z.jsx(
84230
+ maxTagPlaceholder: (M) => /* @__PURE__ */ z.jsx(
84225
84231
  Aa,
84226
84232
  {
84227
84233
  styles: { root: { pointerEvents: "none" } },
84228
- title: S.map(({ label: M }) => M).join(", "),
84234
+ title: M.map(({ label: H }) => H).join(", "),
84229
84235
  children: /* @__PURE__ */ z.jsxs("span", { children: [
84230
84236
  "+",
84231
- S.length
84237
+ M.length
84232
84238
  ] })
84233
84239
  }
84234
84240
  )