@daisychainapp/maily-to-core 0.4.2 → 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 = {
@@ -4432,7 +4432,7 @@ var TooltipContent = React5.forwardRef((_a, ref) => {
4432
4432
  ref,
4433
4433
  sideOffset,
4434
4434
  className: cn(
4435
- "mly:z-50 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1 mly:text-xs mly:animate-in mly:fade-in-0 mly:zoom-in-95",
4435
+ "tooltip-surface mly:z-50 mly:overflow-hidden mly:rounded-md mly:border mly:border-gray-200 mly:bg-white mly:px-2 mly:py-1 mly:text-xs mly:animate-in mly:fade-in-0 mly:zoom-in-95",
4436
4436
  className
4437
4437
  )
4438
4438
  }, props)
@@ -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
  ),
@@ -4485,8 +4487,8 @@ function BubbleMenuButton(item) {
4485
4487
  TooltipContent,
4486
4488
  {
4487
4489
  sideOffset: 8,
4488
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4489
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
4490
+ className: "tooltip-surface",
4491
+ children: tooltip
4490
4492
  }
4491
4493
  )
4492
4494
  ] });
@@ -5231,8 +5233,8 @@ function AlignmentSwitch(props) {
5231
5233
  TooltipContent,
5232
5234
  {
5233
5235
  sideOffset: 8,
5234
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
5235
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Alignment" })
5236
+ className: "tooltip-surface",
5237
+ children: "Alignment"
5236
5238
  }
5237
5239
  )
5238
5240
  ] }),
@@ -5322,8 +5324,8 @@ function ColorPicker(props) {
5322
5324
  TooltipContent,
5323
5325
  {
5324
5326
  sideOffset: 8,
5325
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
5326
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
5327
+ className: "tooltip-surface",
5328
+ children: tooltip
5327
5329
  }
5328
5330
  )
5329
5331
  ] }) : popoverButton,
@@ -6953,8 +6955,8 @@ function LinkInputPopover(props) {
6953
6955
  TooltipContent,
6954
6956
  {
6955
6957
  sideOffset: 8,
6956
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
6957
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
6958
+ className: "tooltip-surface",
6959
+ children: tooltip
6958
6960
  }
6959
6961
  )
6960
6962
  ] }) : popoverButton,
@@ -7093,8 +7095,8 @@ function Select(props) {
7093
7095
  TooltipContent,
7094
7096
  {
7095
7097
  sideOffset: 8,
7096
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
7097
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
7098
+ className: "tooltip-surface",
7099
+ children: tooltip
7098
7100
  }
7099
7101
  )
7100
7102
  ] });