@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.mjs CHANGED
@@ -1835,7 +1835,7 @@ var Select = forwardRef(function Select2(props, ref) {
1835
1835
  className: [
1836
1836
  "rh-absolute rh-z-50 rh-w-full rh-mt-1",
1837
1837
  "rh-border rh-border-border rh-bg-surface",
1838
- "rh-shadow-md rh-overflow-auto rh-max-h-60",
1838
+ "rh-shadow-md rh-overflow-y-auto rh-overscroll-contain rh-max-h-60",
1839
1839
  "rh-py-1",
1840
1840
  dropdownRadiusClasses[radius]
1841
1841
  ].filter(Boolean).join(" "),
@@ -2108,21 +2108,6 @@ var DateSelect = forwardRef(
2108
2108
  if (!isControlled) setInternalValue(newValue);
2109
2109
  props.onChange?.(newValue);
2110
2110
  };
2111
- const handleMonthClear = () => {
2112
- const newValue = { mode: "month" };
2113
- if (!isControlled) setInternalValue(newValue);
2114
- props.onChange?.(newValue);
2115
- };
2116
- const handleDayClear = () => {
2117
- const newValue = { mode: "day" };
2118
- if (!isControlled) setInternalValue(newValue);
2119
- props.onChange?.(newValue);
2120
- };
2121
- const handleYearClear = () => {
2122
- const newValue = { mode: "year" };
2123
- if (!isControlled) setInternalValue(newValue);
2124
- props.onChange?.(newValue);
2125
- };
2126
2111
  const displayText = useMemo(() => {
2127
2112
  if (value.mode === "year" && value.year) return value.year.toString();
2128
2113
  if (value.mode === "month" && value.year != null)
@@ -2243,18 +2228,7 @@ var DateSelect = forwardRef(
2243
2228
  },
2244
2229
  year
2245
2230
  );
2246
- }) }),
2247
- /* @__PURE__ */ 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__ */ jsxs(
2248
- "button",
2249
- {
2250
- onClick: handleYearClear,
2251
- 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",
2252
- children: [
2253
- /* @__PURE__ */ jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2254
- "Limpar"
2255
- ]
2256
- }
2257
- ) })
2231
+ }) })
2258
2232
  ] });
2259
2233
  const renderMonthGrid = () => /* @__PURE__ */ jsxs("div", { className: "rh-p-1", children: [
2260
2234
  /* @__PURE__ */ jsxs("div", { className: "rh-flex rh-items-center rh-justify-between", children: [
@@ -2302,18 +2276,7 @@ var DateSelect = forwardRef(
2302
2276
  },
2303
2277
  month
2304
2278
  );
2305
- }) }),
2306
- /* @__PURE__ */ 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__ */ jsxs(
2307
- "button",
2308
- {
2309
- onClick: handleMonthClear,
2310
- 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",
2311
- children: [
2312
- /* @__PURE__ */ jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2313
- "Limpar"
2314
- ]
2315
- }
2316
- ) })
2279
+ }) })
2317
2280
  ] });
2318
2281
  const renderIntervalNav = () => /* @__PURE__ */ jsxs("div", { children: [
2319
2282
  /* @__PURE__ */ jsxs("div", { className: "rh-flex rh-gap-4 rh-p-1", children: [
@@ -2571,18 +2534,7 @@ var DateSelect = forwardRef(
2571
2534
  },
2572
2535
  i
2573
2536
  )) }),
2574
- renderDayGrid(selectedYear, selectedMonth),
2575
- /* @__PURE__ */ 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__ */ jsxs(
2576
- "button",
2577
- {
2578
- onClick: handleDayClear,
2579
- 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",
2580
- children: [
2581
- /* @__PURE__ */ jsx(EraserIcon, { className: "rh-w-4 rh-h-4" }),
2582
- "Limpar"
2583
- ]
2584
- }
2585
- ) })
2537
+ renderDayGrid(selectedYear, selectedMonth)
2586
2538
  ] });
2587
2539
  case "month":
2588
2540
  return renderMonthGrid();
@@ -4343,7 +4295,7 @@ function TableInner({
4343
4295
  style: bodyStyleInline,
4344
4296
  className: [
4345
4297
  "rh-border-b rh-border-border rh-transition-colors",
4346
- "hover:rh-bg-background/50",
4298
+ "hover:rh-bg-background",
4347
4299
  variant === "striped" && index % 2 === 1 ? "rh-bg-background/50" : ""
4348
4300
  ].filter(Boolean).join(" "),
4349
4301
  children: columns.map((column) => /* @__PURE__ */ jsx(
@@ -4365,7 +4317,7 @@ function TableInner({
4365
4317
  onChange: (value) => column.onEditChange?.(row, index, value),
4366
4318
  className: "rh-w-full rh-h-full"
4367
4319
  }
4368
- ) : /* @__PURE__ */ jsx("span", { style: { width: "100%" }, children: column.render(row, index) }),
4320
+ ) : /* @__PURE__ */ jsx("span", { children: column.render(row, index) }),
4369
4321
  column.actionIcon && /* @__PURE__ */ jsx(
4370
4322
  "span",
4371
4323
  {