@daisychainapp/maily-to-core 0.4.3 → 0.4.4

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.cjs CHANGED
@@ -3524,7 +3524,7 @@ var BaseButton = React2.forwardRef(
3524
3524
  destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
3525
3525
  outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
3526
3526
  secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
3527
- ghost: "mly:hover:bg-soft-gray bg-transparent mly:hover:text-gray-900 mly:data-[state=true]:bg-soft-gray mly:data-[state=true]:text-gray-900",
3527
+ ghost: "mly:hover:bg-soft-gray mly:bg-transparent mly:hover:text-gray-900 mly:data-[state=true]:bg-soft-gray mly:data-[state=true]:text-gray-900",
3528
3528
  link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
3529
3529
  };
3530
3530
  const sizeClasses = {
@@ -3548,16 +3548,18 @@ BaseButton.displayName = "BaseButton";
3548
3548
  // src/editor/components/bubble-menu-button.tsx
3549
3549
  var import_jsx_runtime4 = require("react/jsx-runtime");
3550
3550
  function BubbleMenuButton(item) {
3551
- var _a;
3551
+ var _a, _b;
3552
3552
  const { tooltip } = item;
3553
+ const isActive = (_b = (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item)) != null ? _b : false;
3553
3554
  const content = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
3554
3555
  BaseButton,
3555
3556
  __spreadProps(__spreadValues({
3556
3557
  variant: "ghost",
3557
3558
  size: "sm"
3558
3559
  }, item.command ? { onClick: item.command } : {}), {
3559
- "data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
3560
+ "data-state": isActive,
3560
3561
  className: cn(
3562
+ isActive && "menu-active-option",
3561
3563
  "mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
3562
3564
  item == null ? void 0 : item.className
3563
3565
  ),