@rehagro/ui 1.0.60 → 1.0.62

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.d.mts CHANGED
@@ -962,8 +962,6 @@ type TableProps<T> = Omit<React__default.HTMLAttributes<HTMLTableElement>, "chil
962
962
  onRowClick?: (row: T, index: number, event?: React__default.MouseEvent<HTMLTableRowElement>) => void;
963
963
  /** Disables all editable controls inside table cells ("select", "date", "textInput") */
964
964
  disableEditableControls?: boolean;
965
- /** @deprecated Use `disableEditableControls` instead */
966
- disableEditableSelects?: boolean;
967
965
  };
968
966
  declare const Table: <T>(props: TableProps<T> & {
969
967
  ref?: React__default.ForwardedRef<HTMLTableElement>;
package/dist/index.d.ts CHANGED
@@ -962,8 +962,6 @@ type TableProps<T> = Omit<React__default.HTMLAttributes<HTMLTableElement>, "chil
962
962
  onRowClick?: (row: T, index: number, event?: React__default.MouseEvent<HTMLTableRowElement>) => void;
963
963
  /** Disables all editable controls inside table cells ("select", "date", "textInput") */
964
964
  disableEditableControls?: boolean;
965
- /** @deprecated Use `disableEditableControls` instead */
966
- disableEditableSelects?: boolean;
967
965
  };
968
966
  declare const Table: <T>(props: TableProps<T> & {
969
967
  ref?: React__default.ForwardedRef<HTMLTableElement>;
package/dist/index.js CHANGED
@@ -1586,17 +1586,21 @@ var CheckIcon2 = ({ className }) => /* @__PURE__ */ jsxRuntime.jsx(
1586
1586
  )
1587
1587
  }
1588
1588
  );
1589
- var RadioIcon = ({ isSelected }) => /* @__PURE__ */ jsxRuntime.jsx(
1590
- "span",
1589
+ var RadioIcon = ({ isSelected }) => /* @__PURE__ */ jsxRuntime.jsxs(
1590
+ "svg",
1591
1591
  {
1592
- className: [
1593
- "rh-inline-flex rh-items-center rh-justify-center",
1594
- "rh-w-4 rh-h-4 rh-shrink-0",
1595
- "rh-border rh-rounded-full rh-transition-colors rh-duration-150",
1596
- isSelected ? "rh-border-primary" : "rh-border-border rh-bg-surface"
1597
- ].filter(Boolean).join(" "),
1592
+ width: "16",
1593
+ height: "16",
1594
+ viewBox: "0 0 16 16",
1598
1595
  "aria-hidden": "true",
1599
- children: isSelected && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rh-w-2.5 rh-h-2.5 rh-rounded-full rh-bg-primary" })
1596
+ className: [
1597
+ "rh-shrink-0 rh-transition-colors rh-duration-150",
1598
+ isSelected ? "rh-text-primary rh-fill-surface" : "rh-text-border rh-fill-surface"
1599
+ ].join(" "),
1600
+ children: [
1601
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1" }),
1602
+ isSelected && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "5", className: "rh-fill-primary", stroke: "none" })
1603
+ ]
1600
1604
  }
1601
1605
  );
1602
1606
  var Select = React9.forwardRef(function Select2(props, ref) {
@@ -4529,7 +4533,10 @@ var DatePickerDropdown = ({
4529
4533
  "button",
4530
4534
  {
4531
4535
  type: "button",
4532
- style: { backgroundColor: selected ? "#15607A" : "transparent", ...calendarTextStyle },
4536
+ style: {
4537
+ backgroundColor: selected ? "#15607A" : "transparent",
4538
+ color: selected ? "#FFFFFF" : textColor
4539
+ },
4533
4540
  onMouseDown: (e) => {
4534
4541
  e.preventDefault();
4535
4542
  setTempDate(new Date(viewYear, viewMonth, day));
@@ -4690,8 +4697,8 @@ var CustomSelect = ({
4690
4697
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rh-flex rh-items-center rh-gap-2 rh-flex-1 rh-px-0.5", children: /* @__PURE__ */ jsxRuntime.jsx(
4691
4698
  "span",
4692
4699
  {
4693
- className: "rh-text-[14px] rh-px-3.5 rh-py-0.5 rh-rounded-xl rh-whitespace-normal rh-break-words",
4694
- style: { backgroundColor: displayBg || "transparent", fontFamily: "Inter, sans-serif", color: displayTextColor },
4700
+ className: "rh-px-3.5 rh-line-height-[20px] rh-rounded-xl rh-whitespace-normal rh-text-ellipsis rh-text-nowrap",
4701
+ style: { fontSize: type === "date" ? "14px" : "12px", fontWeight: type === "date" ? "normal" : "bold", backgroundColor: displayBg || "transparent", fontFamily: "Inter, sans-serif", color: displayTextColor },
4695
4702
  children: displayLabel
4696
4703
  }
4697
4704
  ) })
@@ -4725,7 +4732,7 @@ var CustomSelect = ({
4725
4732
  /* @__PURE__ */ jsxRuntime.jsx(
4726
4733
  "span",
4727
4734
  {
4728
- className: "rh-p-0.5 rh-px-2 rh-rounded-xl rh-text-white rh-text-[14px] rh-whitespace-normal rh-break-words",
4735
+ className: "rh-px-2 rh-rounded-xl rh-text-white rh-text-[12px] rh-whitespace-normal rh-break-words",
4729
4736
  style: {
4730
4737
  backgroundColor: option.backgroundColor || backgroundColor || "transparent",
4731
4738
  fontFamily: "Inter, sans-serif",
@@ -4773,7 +4780,6 @@ function TableInner({
4773
4780
  rowClickable = false,
4774
4781
  onRowClick,
4775
4782
  disableEditableControls = false,
4776
- disableEditableSelects = false,
4777
4783
  size = "md",
4778
4784
  variant = "default",
4779
4785
  sort,
@@ -4793,7 +4799,7 @@ function TableInner({
4793
4799
  className = "",
4794
4800
  ...rest
4795
4801
  }, ref) {
4796
- const shouldDisableEditableControls = disableEditableControls || disableEditableSelects;
4802
+ const shouldDisableEditableControls = disableEditableControls;
4797
4803
  const handleSort = (column) => {
4798
4804
  if (!column.sortable || !onSortChange) return;
4799
4805
  const newDirection = sort?.key === column.key ? sort.direction === "asc" ? "desc" : sort.direction === "desc" ? null : "asc" : "asc";