@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.mjs CHANGED
@@ -1580,17 +1580,21 @@ var CheckIcon2 = ({ className }) => /* @__PURE__ */ jsx(
1580
1580
  )
1581
1581
  }
1582
1582
  );
1583
- var RadioIcon = ({ isSelected }) => /* @__PURE__ */ jsx(
1584
- "span",
1583
+ var RadioIcon = ({ isSelected }) => /* @__PURE__ */ jsxs(
1584
+ "svg",
1585
1585
  {
1586
- className: [
1587
- "rh-inline-flex rh-items-center rh-justify-center",
1588
- "rh-w-4 rh-h-4 rh-shrink-0",
1589
- "rh-border rh-rounded-full rh-transition-colors rh-duration-150",
1590
- isSelected ? "rh-border-primary" : "rh-border-border rh-bg-surface"
1591
- ].filter(Boolean).join(" "),
1586
+ width: "16",
1587
+ height: "16",
1588
+ viewBox: "0 0 16 16",
1592
1589
  "aria-hidden": "true",
1593
- children: isSelected && /* @__PURE__ */ jsx("span", { className: "rh-w-2.5 rh-h-2.5 rh-rounded-full rh-bg-primary" })
1590
+ className: [
1591
+ "rh-shrink-0 rh-transition-colors rh-duration-150",
1592
+ isSelected ? "rh-text-primary rh-fill-surface" : "rh-text-border rh-fill-surface"
1593
+ ].join(" "),
1594
+ children: [
1595
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1" }),
1596
+ isSelected && /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "5", className: "rh-fill-primary", stroke: "none" })
1597
+ ]
1594
1598
  }
1595
1599
  );
1596
1600
  var Select = forwardRef(function Select2(props, ref) {
@@ -4523,7 +4527,10 @@ var DatePickerDropdown = ({
4523
4527
  "button",
4524
4528
  {
4525
4529
  type: "button",
4526
- style: { backgroundColor: selected ? "#15607A" : "transparent", ...calendarTextStyle },
4530
+ style: {
4531
+ backgroundColor: selected ? "#15607A" : "transparent",
4532
+ color: selected ? "#FFFFFF" : textColor
4533
+ },
4527
4534
  onMouseDown: (e) => {
4528
4535
  e.preventDefault();
4529
4536
  setTempDate(new Date(viewYear, viewMonth, day));
@@ -4684,8 +4691,8 @@ var CustomSelect = ({
4684
4691
  children: /* @__PURE__ */ jsx("div", { className: "rh-flex rh-items-center rh-gap-2 rh-flex-1 rh-px-0.5", children: /* @__PURE__ */ jsx(
4685
4692
  "span",
4686
4693
  {
4687
- className: "rh-text-[14px] rh-px-3.5 rh-py-0.5 rh-rounded-xl rh-whitespace-normal rh-break-words",
4688
- style: { backgroundColor: displayBg || "transparent", fontFamily: "Inter, sans-serif", color: displayTextColor },
4694
+ className: "rh-px-3.5 rh-line-height-[20px] rh-rounded-xl rh-whitespace-normal rh-text-ellipsis rh-text-nowrap",
4695
+ style: { fontSize: type === "date" ? "14px" : "12px", fontWeight: type === "date" ? "normal" : "bold", backgroundColor: displayBg || "transparent", fontFamily: "Inter, sans-serif", color: displayTextColor },
4689
4696
  children: displayLabel
4690
4697
  }
4691
4698
  ) })
@@ -4719,7 +4726,7 @@ var CustomSelect = ({
4719
4726
  /* @__PURE__ */ jsx(
4720
4727
  "span",
4721
4728
  {
4722
- className: "rh-p-0.5 rh-px-2 rh-rounded-xl rh-text-white rh-text-[14px] rh-whitespace-normal rh-break-words",
4729
+ className: "rh-px-2 rh-rounded-xl rh-text-white rh-text-[12px] rh-whitespace-normal rh-break-words",
4723
4730
  style: {
4724
4731
  backgroundColor: option.backgroundColor || backgroundColor || "transparent",
4725
4732
  fontFamily: "Inter, sans-serif",
@@ -4767,7 +4774,6 @@ function TableInner({
4767
4774
  rowClickable = false,
4768
4775
  onRowClick,
4769
4776
  disableEditableControls = false,
4770
- disableEditableSelects = false,
4771
4777
  size = "md",
4772
4778
  variant = "default",
4773
4779
  sort,
@@ -4787,7 +4793,7 @@ function TableInner({
4787
4793
  className = "",
4788
4794
  ...rest
4789
4795
  }, ref) {
4790
- const shouldDisableEditableControls = disableEditableControls || disableEditableSelects;
4796
+ const shouldDisableEditableControls = disableEditableControls;
4791
4797
  const handleSort = (column) => {
4792
4798
  if (!column.sortable || !onSortChange) return;
4793
4799
  const newDirection = sort?.key === column.key ? sort.direction === "asc" ? "desc" : sort.direction === "desc" ? null : "asc" : "asc";