@herca/r-kit 0.0.12 → 0.0.13
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/clients.cjs +10 -2
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.js +10 -2
- package/dist/clients.js.map +1 -1
- package/package.json +1 -1
package/dist/clients.cjs
CHANGED
|
@@ -11347,6 +11347,11 @@ var DatePicker = ({
|
|
|
11347
11347
|
setIsCalendarShow(open);
|
|
11348
11348
|
}
|
|
11349
11349
|
}, [open]);
|
|
11350
|
+
(0, import_react292.useEffect)(() => {
|
|
11351
|
+
if (dateRange.end) {
|
|
11352
|
+
handleApplyDateRange();
|
|
11353
|
+
}
|
|
11354
|
+
}, [dateRange]);
|
|
11350
11355
|
return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)("div", { ref: containerRef, className: "relative flex max-w-sm flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
|
|
11351
11356
|
Dropdown,
|
|
11352
11357
|
{
|
|
@@ -11520,7 +11525,7 @@ var DatePicker = ({
|
|
|
11520
11525
|
]
|
|
11521
11526
|
}
|
|
11522
11527
|
),
|
|
11523
|
-
/* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-gray-300 px-4 py-3", children: [
|
|
11528
|
+
showController && /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "flex items-center justify-between gap-2 border-t border-gray-300 px-4 py-3", children: [
|
|
11524
11529
|
/* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
11525
11530
|
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
|
|
11526
11531
|
Input,
|
|
@@ -11543,7 +11548,10 @@ var DatePicker = ({
|
|
|
11543
11548
|
readOnly: true,
|
|
11544
11549
|
placeholder: "End Date",
|
|
11545
11550
|
className: "w-30 truncate",
|
|
11546
|
-
value: formatDateToString(
|
|
11551
|
+
value: formatDateToString(
|
|
11552
|
+
dateRange.end,
|
|
11553
|
+
"DD MMM YYYY"
|
|
11554
|
+
)
|
|
11547
11555
|
}
|
|
11548
11556
|
)
|
|
11549
11557
|
] }),
|