@xola/ui-kit 2.1.18 → 2.1.19

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/build/ui-kit.mjs CHANGED
@@ -6737,56 +6737,58 @@ const Rc = (e, t = "YYYY-MM-DD") => R(e).format(t), V4 = (e, t = "h:mm a") => {
6737
6737
  value: e,
6738
6738
  variant: t = "single",
6739
6739
  dateFormat: o = "ddd, LL",
6740
- onChange: a,
6741
- children: r,
6742
- classNames: i = {},
6743
- components: l = {},
6744
- popoverProps: s,
6745
- getDayContent: u,
6746
- ...d
6740
+ placeholder: a = "Select Date",
6741
+ onChange: r,
6742
+ children: i,
6743
+ classNames: l = {},
6744
+ components: s = {},
6745
+ popoverProps: u,
6746
+ getDayContent: d,
6747
+ ...m
6747
6748
  }) => {
6748
- const [m, g] = ne(e), [w, x] = ne(!1), b = () => {
6749
- x(!w);
6750
- }, h = (y, C, A) => {
6751
- t === "single" ? (a == null || a(y, C, A), b()) : a == null || a(y, m, C, A);
6752
- }, v = () => {
6753
- g(e), a == null || a(e), x(!1);
6749
+ const [g, w] = ne(e), [x, b] = ne(!1), h = () => {
6750
+ b(!x);
6751
+ }, v = (C, A, E) => {
6752
+ t === "single" ? (r == null || r(C, A, E), h()) : r == null || r(C, g, A, E);
6754
6753
  }, f = () => {
6755
- b();
6754
+ w(e), r == null || r(e), b(!1);
6755
+ }, y = () => {
6756
+ h();
6756
6757
  };
6757
6758
  return Te(() => {
6758
- g(e);
6759
+ w(e);
6759
6760
  }, [e]), /* @__PURE__ */ n.createElement(
6760
6761
  Ae,
6761
6762
  {
6762
- visible: w,
6763
+ visible: x,
6763
6764
  maxWidth: 900,
6764
6765
  distance: 18,
6765
6766
  placement: "bottom",
6766
- className: I("ui-date-picker-input", i.popover),
6767
- onClickOutside: f,
6768
- ...s
6767
+ className: I("ui-date-picker-input", l.popover),
6768
+ onClickOutside: y,
6769
+ ...u
6769
6770
  },
6770
- r ? ht(r, { onClick: b }) : /* @__PURE__ */ n.createElement(
6771
+ i ? ht(i, { onClick: h }) : /* @__PURE__ */ n.createElement(
6771
6772
  _a,
6772
6773
  {
6773
6774
  readOnly: !0,
6774
6775
  size: "medium",
6775
6776
  value: e ? Rc(e, o) : "",
6776
- className: i == null ? void 0 : i.input,
6777
- onClick: b
6777
+ placeholder: a,
6778
+ className: l == null ? void 0 : l.input,
6779
+ onClick: h
6778
6780
  }
6779
6781
  ),
6780
- /* @__PURE__ */ n.createElement(Ae.Content, { className: "pr-1" }, w && /* @__PURE__ */ n.createElement(
6782
+ /* @__PURE__ */ n.createElement(Ae.Content, { className: "pr-1" }, x && /* @__PURE__ */ n.createElement(
6781
6783
  lr,
6782
6784
  {
6783
6785
  variant: t,
6784
- getDayContent: u,
6786
+ getDayContent: d,
6785
6787
  value: e,
6786
- components: l,
6787
- onChange: h,
6788
- onSubmitDateRange: v,
6789
- ...d
6788
+ components: s,
6789
+ onChange: v,
6790
+ onSubmitDateRange: f,
6791
+ ...m
6790
6792
  }
6791
6793
  ))
6792
6794
  );
@@ -6798,7 +6800,7 @@ Gc.propTypes = {
6798
6800
  popoverProps: c.object,
6799
6801
  children: c.node
6800
6802
  };
6801
- const _a = An(({ className: e, ...t }, o) => /* @__PURE__ */ n.createElement("div", { ref: o, className: "relative flex bg-gray-lighter" }, /* @__PURE__ */ n.createElement("div", { className: "pointer-events-none absolute inset-0 flex items-center pl-3" }, /* @__PURE__ */ n.createElement(e1, { className: "z-10 inline-block" })), /* @__PURE__ */ n.createElement(Tt, { className: I("cursor-pointer px-8", e), placeholder: "Select Date", ...t }), /* @__PURE__ */ n.createElement("div", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3" }, /* @__PURE__ */ n.createElement(cr, { className: "inline-block" }))));
6803
+ const _a = An(({ className: e, ...t }, o) => /* @__PURE__ */ n.createElement("div", { ref: o, className: "relative flex bg-gray-lighter" }, /* @__PURE__ */ n.createElement("div", { className: "pointer-events-none absolute inset-0 flex items-center pl-3" }, /* @__PURE__ */ n.createElement(e1, { className: "z-10 inline-block" })), /* @__PURE__ */ n.createElement(Tt, { className: I("cursor-pointer px-8", e), ...t }), /* @__PURE__ */ n.createElement("div", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3" }, /* @__PURE__ */ n.createElement(cr, { className: "inline-block" }))));
6802
6804
  _a.propTypes = {
6803
6805
  className: c.string
6804
6806
  };