@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.cjs CHANGED
@@ -3489,7 +3489,7 @@ var TooltipContent = React.forwardRef((_a, ref) => {
3489
3489
  ref,
3490
3490
  sideOffset,
3491
3491
  className: cn(
3492
- "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",
3492
+ "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",
3493
3493
  className
3494
3494
  )
3495
3495
  }, props)
@@ -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
  ),
@@ -3590,8 +3592,8 @@ function BubbleMenuButton(item) {
3590
3592
  TooltipContent,
3591
3593
  {
3592
3594
  sideOffset: 8,
3593
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
3594
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
3595
+ className: "tooltip-surface",
3596
+ children: tooltip
3595
3597
  }
3596
3598
  )
3597
3599
  ] });
@@ -3867,7 +3869,14 @@ function _ShowPopover(props) {
3867
3869
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Eye, { className: "mly:h-3 mly:w-3 mly:stroke-[2.5]" })
3868
3870
  }
3869
3871
  ) }),
3870
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TooltipContent, { sideOffset: 8, children: "Show block conditionally" })
3872
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
3873
+ TooltipContent,
3874
+ {
3875
+ sideOffset: 8,
3876
+ className: "tooltip-surface",
3877
+ children: "Show block conditionally"
3878
+ }
3879
+ )
3871
3880
  ] }),
3872
3881
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
3873
3882
  PopoverContent,
@@ -3896,7 +3905,7 @@ function _ShowPopover(props) {
3896
3905
  TooltipContent,
3897
3906
  {
3898
3907
  sideOffset: 14,
3899
- className: "mly:max-w-[285px]",
3908
+ className: "tooltip-surface mly:max-w-[285px]",
3900
3909
  align: "start",
3901
3910
  children: "Show the block if the selected variable is true."
3902
3911
  }
@@ -4125,8 +4134,8 @@ function Select(props) {
4125
4134
  TooltipContent,
4126
4135
  {
4127
4136
  sideOffset: 8,
4128
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4129
- 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: tooltip })
4137
+ className: "tooltip-surface",
4138
+ children: tooltip
4130
4139
  }
4131
4140
  )
4132
4141
  ] });
@@ -4828,8 +4837,8 @@ function ContentMenu(props) {
4828
4837
  TooltipContent,
4829
4838
  {
4830
4839
  sideOffset: 8,
4831
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4832
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Add new node" })
4840
+ className: "tooltip-surface",
4841
+ children: "Add new node"
4833
4842
  }
4834
4843
  )
4835
4844
  ] }),
@@ -4855,8 +4864,8 @@ function ContentMenu(props) {
4855
4864
  TooltipContent,
4856
4865
  {
4857
4866
  sideOffset: 8,
4858
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
4859
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Node actions" })
4867
+ className: "tooltip-surface",
4868
+ children: "Node actions"
4860
4869
  }
4861
4870
  )
4862
4871
  ] }),
@@ -6224,8 +6233,8 @@ function AlignmentSwitch(props) {
6224
6233
  TooltipContent,
6225
6234
  {
6226
6235
  sideOffset: 8,
6227
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
6228
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Alignment" })
6236
+ className: "tooltip-surface",
6237
+ children: "Alignment"
6229
6238
  }
6230
6239
  )
6231
6240
  ] }),
@@ -7665,8 +7674,8 @@ function LinkInputPopover(props) {
7665
7674
  TooltipContent,
7666
7675
  {
7667
7676
  sideOffset: 8,
7668
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
7669
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
7677
+ className: "tooltip-surface",
7678
+ children: tooltip
7670
7679
  }
7671
7680
  )
7672
7681
  ] }) : popoverButton,
@@ -8302,7 +8311,7 @@ function RepeatBubbleMenu(props) {
8302
8311
  TooltipContent,
8303
8312
  {
8304
8313
  sideOffset: 14,
8305
- className: "mly:max-w-[260px]",
8314
+ className: "tooltip-surface mly:max-w-[260px]",
8306
8315
  align: "start",
8307
8316
  children: "Ensure the selected variable is iterable, such as an array of objects."
8308
8317
  }
@@ -8526,8 +8535,8 @@ function ColorPicker(props) {
8526
8535
  TooltipContent,
8527
8536
  {
8528
8537
  sideOffset: 8,
8529
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
8530
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: tooltip })
8538
+ className: "tooltip-surface",
8539
+ children: tooltip
8531
8540
  }
8532
8541
  )
8533
8542
  ] }) : popoverButton,
@@ -11437,8 +11446,8 @@ function TurnIntoBlock(props) {
11437
11446
  TooltipContent,
11438
11447
  {
11439
11448
  sideOffset: 8,
11440
- className: "mly:border-gray-300 mly:bg-transparent mly:p-0 mly:text-gray-700 mly:shadow-sm",
11441
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "mly:block mly:rounded-md mly:bg-soft-gray mly:!px-2 mly:!py-1.5", children: "Turn into" })
11449
+ className: "tooltip-surface",
11450
+ children: "Turn into"
11442
11451
  }
11443
11452
  )
11444
11453
  ] }),