@scripso-homepad/ui 0.4.34 → 0.4.35

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.
@@ -30622,6 +30622,7 @@ function TableActionsMenu({
30622
30622
  triggerAriaLabel,
30623
30623
  className,
30624
30624
  menuClassName,
30625
+ triggerIcon,
30625
30626
  menuWidth = MENU_WIDTH_PX,
30626
30627
  menuFitContent = true
30627
30628
  }) {
@@ -30718,12 +30719,22 @@ function TableActionsMenu({
30718
30719
  item.onSelect();
30719
30720
  },
30720
30721
  className: cn(
30721
- "flex h-[51px] w-full cursor-pointer items-center gap-2.5 px-3 text-left typography-14 font-medium text-storm-gray-900 transition-colors hover:bg-storm-gray-0",
30722
+ "flex h-[51px] w-full cursor-pointer items-center gap-2.5 px-3 text-left typography-14 font-medium transition-colors hover:bg-storm-gray-0",
30722
30723
  index > 0 && "border-t border-storm-gray-50",
30723
- item.disabled && "cursor-not-allowed opacity-50"
30724
+ item.disabled && "cursor-not-allowed opacity-50",
30725
+ item.tone === "danger" ? "text-[#AE0011]" : item.tone === "success" ? "text-green-600" : "text-storm-gray-900"
30724
30726
  ),
30725
30727
  children: [
30726
- icon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex size-5 shrink-0 items-center justify-center text-storm-gray-200", children: icon }) : null,
30728
+ icon ? /* @__PURE__ */ jsxRuntime.jsx(
30729
+ "span",
30730
+ {
30731
+ className: cn(
30732
+ "inline-flex size-5 shrink-0 items-center justify-center",
30733
+ item.tone === "danger" ? "text-[#AE0011]" : item.tone === "success" ? "text-green-600" : "text-storm-gray-200"
30734
+ ),
30735
+ children: icon
30736
+ }
30737
+ ) : null,
30727
30738
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "whitespace-nowrap", children: item.label })
30728
30739
  ]
30729
30740
  },
@@ -30738,7 +30749,7 @@ function TableActionsMenu({
30738
30749
  {
30739
30750
  ref: triggerRef,
30740
30751
  variant: "menu",
30741
- icon: /* @__PURE__ */ jsxRuntime.jsx(TableMoreIcon, { className: "size-5" }),
30752
+ icon: triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(TableMoreIcon, { className: "size-5" }),
30742
30753
  ariaLabel: triggerAriaLabel,
30743
30754
  onClick: () => setOpen((current) => !current),
30744
30755
  "aria-expanded": open,