@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.js CHANGED
@@ -11224,6 +11224,11 @@ var DatePicker = ({
11224
11224
  setIsCalendarShow(open);
11225
11225
  }
11226
11226
  }, [open]);
11227
+ useEffect8(() => {
11228
+ if (dateRange.end) {
11229
+ handleApplyDateRange();
11230
+ }
11231
+ }, [dateRange]);
11227
11232
  return /* @__PURE__ */ jsx307("div", { ref: containerRef, className: "relative flex max-w-sm flex-col", children: /* @__PURE__ */ jsxs38(
11228
11233
  Dropdown,
11229
11234
  {
@@ -11397,7 +11402,7 @@ var DatePicker = ({
11397
11402
  ]
11398
11403
  }
11399
11404
  ),
11400
- /* @__PURE__ */ jsxs38("div", { className: "flex items-center justify-between gap-2 border-t border-gray-300 px-4 py-3", children: [
11405
+ showController && /* @__PURE__ */ jsxs38("div", { className: "flex items-center justify-between gap-2 border-t border-gray-300 px-4 py-3", children: [
11401
11406
  /* @__PURE__ */ jsxs38("div", { className: "flex items-center gap-2", children: [
11402
11407
  /* @__PURE__ */ jsx307(
11403
11408
  Input,
@@ -11420,7 +11425,10 @@ var DatePicker = ({
11420
11425
  readOnly: true,
11421
11426
  placeholder: "End Date",
11422
11427
  className: "w-30 truncate",
11423
- value: formatDateToString(dateRange.end, "DD MMM YYYY")
11428
+ value: formatDateToString(
11429
+ dateRange.end,
11430
+ "DD MMM YYYY"
11431
+ )
11424
11432
  }
11425
11433
  )
11426
11434
  ] }),