@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.
@@ -4303,7 +4303,7 @@ var BaseButton = React4.forwardRef(
4303
4303
  destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
4304
4304
  outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
4305
4305
  secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
4306
- 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",
4306
+ 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",
4307
4307
  link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
4308
4308
  };
4309
4309
  const sizeClasses = {
@@ -4350,16 +4350,18 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
4350
4350
  // src/editor/components/bubble-menu-button.tsx
4351
4351
  import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
4352
4352
  function BubbleMenuButton(item) {
4353
- var _a;
4353
+ var _a, _b;
4354
4354
  const { tooltip } = item;
4355
+ const isActive = (_b = (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item)) != null ? _b : false;
4355
4356
  const content = /* @__PURE__ */ jsx7(
4356
4357
  BaseButton,
4357
4358
  __spreadProps(__spreadValues({
4358
4359
  variant: "ghost",
4359
4360
  size: "sm"
4360
4361
  }, item.command ? { onClick: item.command } : {}), {
4361
- "data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
4362
+ "data-state": isActive,
4362
4363
  className: cn(
4364
+ isActive && "menu-active-option",
4363
4365
  "mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
4364
4366
  item == null ? void 0 : item.className
4365
4367
  ),