@rehagro/ui 1.0.51 → 1.0.52

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.js CHANGED
@@ -1841,7 +1841,7 @@ var Select = React9.forwardRef(function Select2(props, ref) {
1841
1841
  className: [
1842
1842
  "rh-absolute rh-z-50 rh-w-full rh-mt-1",
1843
1843
  "rh-border rh-border-border rh-bg-surface",
1844
- "rh-shadow-md rh-overflow-auto rh-max-h-60",
1844
+ "rh-shadow-md rh-overflow-y-auto rh-overscroll-contain rh-max-h-60",
1845
1845
  "rh-py-1",
1846
1846
  dropdownRadiusClasses[radius]
1847
1847
  ].filter(Boolean).join(" "),
@@ -2114,21 +2114,6 @@ var DateSelect = React9.forwardRef(
2114
2114
  if (!isControlled) setInternalValue(newValue);
2115
2115
  props.onChange?.(newValue);
2116
2116
  };
2117
- const handleMonthClear = () => {
2118
- const newValue = { mode: "month" };
2119
- if (!isControlled) setInternalValue(newValue);
2120
- props.onChange?.(newValue);
2121
- };
2122
- const handleDayClear = () => {
2123
- const newValue = { mode: "day" };
2124
- if (!isControlled) setInternalValue(newValue);
2125
- props.onChange?.(newValue);
2126
- };
2127
- const handleYearClear = () => {
2128
- const newValue = { mode: "year" };
2129
- if (!isControlled) setInternalValue(newValue);
2130
- props.onChange?.(newValue);
2131
- };
2132
2117
  const displayText = React9.useMemo(() => {
2133
2118
  if (value.mode === "year" && value.year) return value.year.toString();
2134
2119
  if (value.mode === "month" && value.year != null)
@@ -2249,18 +2234,7 @@ var DateSelect = React9.forwardRef(
2249
2234
  },
2250
2235
  year
2251
2236
  );
2252
- }) }),
2253
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rh-flex rh-items-center rh-justify-between rh-pt-3 rh-mt-3 rh-border-t rh-border-border/30", children: /* @__PURE__ */ jsxRuntime.jsxs(
2254
- "button",
2255
- {
2256
- onClick: handleYearClear,
2257
- className: "rh-flex rh-items-center rh-gap-1.5 rh-text-sm rh-text-text rh-font-medium rh-px-2 rh-py-1.5 rh-rounded-sm hover:rh-bg-background rh-transition-colors rh-duration-150",
2258
- children: [
2259
- /* @__PURE__ */ jsxRuntime.jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2260
- "Limpar"
2261
- ]
2262
- }
2263
- ) })
2237
+ }) })
2264
2238
  ] });
2265
2239
  const renderMonthGrid = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rh-p-1", children: [
2266
2240
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rh-flex rh-items-center rh-justify-between", children: [
@@ -2308,18 +2282,7 @@ var DateSelect = React9.forwardRef(
2308
2282
  },
2309
2283
  month
2310
2284
  );
2311
- }) }),
2312
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rh-flex rh-items-center rh-justify-between rh-pt-3 rh-mt-3 rh-border-t rh-border-border/30", children: /* @__PURE__ */ jsxRuntime.jsxs(
2313
- "button",
2314
- {
2315
- onClick: handleMonthClear,
2316
- className: "rh-flex rh-items-center rh-gap-1.5 rh-text-sm rh-text-text rh-font-medium rh-px-2 rh-py-1.5 rh-rounded-sm hover:rh-bg-background rh-transition-colors rh-duration-150",
2317
- children: [
2318
- /* @__PURE__ */ jsxRuntime.jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2319
- "Limpar"
2320
- ]
2321
- }
2322
- ) })
2285
+ }) })
2323
2286
  ] });
2324
2287
  const renderIntervalNav = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
2325
2288
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rh-flex rh-gap-4 rh-p-1", children: [
@@ -2577,18 +2540,7 @@ var DateSelect = React9.forwardRef(
2577
2540
  },
2578
2541
  i
2579
2542
  )) }),
2580
- renderDayGrid(selectedYear, selectedMonth),
2581
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rh-flex rh-items-center rh-justify-between rh-pt-3 rh-mt-3 rh-border-t rh-border-border/30", children: /* @__PURE__ */ jsxRuntime.jsxs(
2582
- "button",
2583
- {
2584
- onClick: handleDayClear,
2585
- className: "rh-flex rh-items-center rh-gap-1.5 rh-text-sm rh-text-text rh-font-medium rh-px-2 rh-py-1.5 rh-rounded-sm hover:rh-bg-background rh-transition-colors rh-duration-150",
2586
- children: [
2587
- /* @__PURE__ */ jsxRuntime.jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2588
- "Limpar"
2589
- ]
2590
- }
2591
- ) })
2543
+ renderDayGrid(selectedYear, selectedMonth)
2592
2544
  ] });
2593
2545
  case "month":
2594
2546
  return renderMonthGrid();
@@ -4349,7 +4301,7 @@ function TableInner({
4349
4301
  style: bodyStyleInline,
4350
4302
  className: [
4351
4303
  "rh-border-b rh-border-border rh-transition-colors",
4352
- "hover:rh-bg-background/50",
4304
+ "hover:rh-bg-background",
4353
4305
  variant === "striped" && index % 2 === 1 ? "rh-bg-background/50" : ""
4354
4306
  ].filter(Boolean).join(" "),
4355
4307
  children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -4371,7 +4323,7 @@ function TableInner({
4371
4323
  onChange: (value) => column.onEditChange?.(row, index, value),
4372
4324
  className: "rh-w-full rh-h-full"
4373
4325
  }
4374
- ) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: { width: "100%" }, children: column.render(row, index) }),
4326
+ ) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: column.render(row, index) }),
4375
4327
  column.actionIcon && /* @__PURE__ */ jsxRuntime.jsx(
4376
4328
  "span",
4377
4329
  {