@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.
@@ -4396,7 +4396,7 @@ var BaseButton = React4.forwardRef(
4396
4396
  destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
4397
4397
  outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
4398
4398
  secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
4399
- 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",
4399
+ 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",
4400
4400
  link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
4401
4401
  };
4402
4402
  const sizeClasses = {
@@ -4443,16 +4443,18 @@ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
4443
4443
  // src/editor/components/bubble-menu-button.tsx
4444
4444
  var import_jsx_runtime7 = require("react/jsx-runtime");
4445
4445
  function BubbleMenuButton(item) {
4446
- var _a;
4446
+ var _a, _b;
4447
4447
  const { tooltip } = item;
4448
+ const isActive = (_b = (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item)) != null ? _b : false;
4448
4449
  const content = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
4449
4450
  BaseButton,
4450
4451
  __spreadProps(__spreadValues({
4451
4452
  variant: "ghost",
4452
4453
  size: "sm"
4453
4454
  }, item.command ? { onClick: item.command } : {}), {
4454
- "data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
4455
+ "data-state": isActive,
4455
4456
  className: cn(
4457
+ isActive && "menu-active-option",
4456
4458
  "mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
4457
4459
  item == null ? void 0 : item.className
4458
4460
  ),