@xola/ui-kit 2.1.18-rc2 → 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 +31 -29
- package/build/ui-kit.umd.js +9 -9
- package/package.json +1 -1
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
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
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 [
|
|
6749
|
-
|
|
6750
|
-
},
|
|
6751
|
-
t === "single" ? (
|
|
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
|
-
|
|
6759
|
+
w(e);
|
|
6759
6760
|
}, [e]), /* @__PURE__ */ n.createElement(
|
|
6760
6761
|
Ae,
|
|
6761
6762
|
{
|
|
6762
|
-
visible:
|
|
6763
|
+
visible: x,
|
|
6763
6764
|
maxWidth: 900,
|
|
6764
6765
|
distance: 18,
|
|
6765
6766
|
placement: "bottom",
|
|
6766
|
-
className: I("ui-date-picker-input",
|
|
6767
|
-
onClickOutside:
|
|
6768
|
-
...
|
|
6767
|
+
className: I("ui-date-picker-input", l.popover),
|
|
6768
|
+
onClickOutside: y,
|
|
6769
|
+
...u
|
|
6769
6770
|
},
|
|
6770
|
-
|
|
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
|
-
|
|
6777
|
-
|
|
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" },
|
|
6782
|
+
/* @__PURE__ */ n.createElement(Ae.Content, { className: "pr-1" }, x && /* @__PURE__ */ n.createElement(
|
|
6781
6783
|
lr,
|
|
6782
6784
|
{
|
|
6783
6785
|
variant: t,
|
|
6784
|
-
getDayContent:
|
|
6786
|
+
getDayContent: d,
|
|
6785
6787
|
value: e,
|
|
6786
|
-
components:
|
|
6787
|
-
onChange:
|
|
6788
|
-
onSubmitDateRange:
|
|
6789
|
-
...
|
|
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),
|
|
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
|
};
|