@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.
package/dist/index.mjs CHANGED
@@ -3456,7 +3456,7 @@ var TooltipContent = React.forwardRef((_a, ref) => {
3456
3456
  ref,
3457
3457
  sideOffset,
3458
3458
  className: cn(
3459
- "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",
3459
+ "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",
3460
3460
  className
3461
3461
  )
3462
3462
  }, props)
@@ -3495,7 +3495,7 @@ var BaseButton = React2.forwardRef(
3495
3495
  destructive: "mly:bg-red-500 mly:text-gray-50 mly:hover:bg-red-500/90",
3496
3496
  outline: "mly:border mly:border-gray-200 mly:bg-white mly:hover:bg-gray-100 mly:hover:text-gray-900",
3497
3497
  secondary: "mly:bg-gray-100 mly:text-gray-900 mly:hover:bg-gray-100/80",
3498
- 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",
3498
+ 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",
3499
3499
  link: "mly:text-gray-900 mly:underline-offset-4 mly:hover:underline"
3500
3500
  };
3501
3501
  const sizeClasses = {
@@ -3519,16 +3519,18 @@ BaseButton.displayName = "BaseButton";
3519
3519
  // src/editor/components/bubble-menu-button.tsx
3520
3520
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
3521
3521
  function BubbleMenuButton(item) {
3522
- var _a;
3522
+ var _a, _b;
3523
3523
  const { tooltip } = item;
3524
+ const isActive = (_b = (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item)) != null ? _b : false;
3524
3525
  const content = /* @__PURE__ */ jsx4(
3525
3526
  BaseButton,
3526
3527
  __spreadProps(__spreadValues({
3527
3528
  variant: "ghost",
3528
3529
  size: "sm"
3529
3530
  }, item.command ? { onClick: item.command } : {}), {
3530
- "data-state": (_a = item == null ? void 0 : item.isActive) == null ? void 0 : _a.call(item),
3531
+ "data-state": isActive,
3531
3532
  className: cn(
3533
+ isActive && "menu-active-option",
3532
3534
  "mly:size-7! mly:px-2.5 mly:disabled:cursor-not-allowed",
3533
3535
  item == null ? void 0 : item.className
3534
3536
  ),
@@ -3561,8 +3563,8 @@ function BubbleMenuButton(item) {
3561
3563
  TooltipContent,
3562
3564
  {
3563
3565
  sideOffset: 8,
3564
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
3565
- children: /* @__PURE__ */ jsx4("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
3566
+ className: "tooltip-surface",
3567
+ children: tooltip
3566
3568
  }
3567
3569
  )
3568
3570
  ] });
@@ -3838,7 +3840,14 @@ function _ShowPopover(props) {
3838
3840
  children: /* @__PURE__ */ jsx8(Eye, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
3839
3841
  }
3840
3842
  ) }),
3841
- /* @__PURE__ */ jsx8(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
3843
+ /* @__PURE__ */ jsx8(
3844
+ TooltipContent,
3845
+ {
3846
+ sideOffset: 8,
3847
+ className: "tooltip-surface",
3848
+ children: "Show block conditionally"
3849
+ }
3850
+ )
3842
3851
  ] }),
3843
3852
  /* @__PURE__ */ jsxs3(
3844
3853
  PopoverContent,
@@ -3867,7 +3876,7 @@ function _ShowPopover(props) {
3867
3876
  TooltipContent,
3868
3877
  {
3869
3878
  sideOffset: 14,
3870
- className: "mly:max-w-[285px]",
3879
+ className: "tooltip-surface mly:max-w-[285px]",
3871
3880
  align: "start",
3872
3881
  children: "Show the block if the selected variable is true."
3873
3882
  }
@@ -4096,8 +4105,8 @@ function Select(props) {
4096
4105
  TooltipContent,
4097
4106
  {
4098
4107
  sideOffset: 8,
4099
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4100
- children: /* @__PURE__ */ jsx10("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
4108
+ className: "tooltip-surface",
4109
+ children: tooltip
4101
4110
  }
4102
4111
  )
4103
4112
  ] });
@@ -4807,8 +4816,8 @@ function ContentMenu(props) {
4807
4816
  TooltipContent,
4808
4817
  {
4809
4818
  sideOffset: 8,
4810
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4811
- children: /* @__PURE__ */ jsx14("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Add new node" })
4819
+ className: "tooltip-surface",
4820
+ children: "Add new node"
4812
4821
  }
4813
4822
  )
4814
4823
  ] }),
@@ -4834,8 +4843,8 @@ function ContentMenu(props) {
4834
4843
  TooltipContent,
4835
4844
  {
4836
4845
  sideOffset: 8,
4837
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4838
- children: /* @__PURE__ */ jsx14("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Node actions" })
4846
+ className: "tooltip-surface",
4847
+ children: "Node actions"
4839
4848
  }
4840
4849
  )
4841
4850
  ] }),
@@ -6219,8 +6228,8 @@ function AlignmentSwitch(props) {
6219
6228
  TooltipContent,
6220
6229
  {
6221
6230
  sideOffset: 8,
6222
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
6223
- children: /* @__PURE__ */ jsx18("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Alignment" })
6231
+ className: "tooltip-surface",
6232
+ children: "Alignment"
6224
6233
  }
6225
6234
  )
6226
6235
  ] }),
@@ -7690,8 +7699,8 @@ function LinkInputPopover(props) {
7690
7699
  TooltipContent,
7691
7700
  {
7692
7701
  sideOffset: 8,
7693
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
7694
- children: /* @__PURE__ */ jsx34("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
7702
+ className: "tooltip-surface",
7703
+ children: tooltip
7695
7704
  }
7696
7705
  )
7697
7706
  ] }) : popoverButton,
@@ -8327,7 +8336,7 @@ function RepeatBubbleMenu(props) {
8327
8336
  TooltipContent,
8328
8337
  {
8329
8338
  sideOffset: 14,
8330
- className: "mly:max-w-[260px]",
8339
+ className: "tooltip-surface mly:max-w-[260px]",
8331
8340
  align: "start",
8332
8341
  children: "Ensure the selected variable is iterable, such as an array of objects."
8333
8342
  }
@@ -8551,8 +8560,8 @@ function ColorPicker(props) {
8551
8560
  TooltipContent,
8552
8561
  {
8553
8562
  sideOffset: 8,
8554
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
8555
- children: /* @__PURE__ */ jsx42("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
8563
+ className: "tooltip-surface",
8564
+ children: tooltip
8556
8565
  }
8557
8566
  )
8558
8567
  ] }) : popoverButton,
@@ -11481,8 +11490,8 @@ function TurnIntoBlock(props) {
11481
11490
  TooltipContent,
11482
11491
  {
11483
11492
  sideOffset: 8,
11484
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
11485
- children: /* @__PURE__ */ jsx56("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Turn into" })
11493
+ className: "tooltip-surface",
11494
+ children: "Turn into"
11486
11495
  }
11487
11496
  )
11488
11497
  ] }),