@embedreach/components 0.2.52 → 0.2.54

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.
@@ -46961,7 +46961,7 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
46961
46961
  "button",
46962
46962
  {
46963
46963
  onClick,
46964
- className: `flex flex-col items-center justify-center rounded-lg border-2 p-6 transition-all duration-300 ease-in-out hover:shadow-lg ${disabled ? "opacity-50 cursor-not-allowed hover:shadow-none" : selected ? "scale-[1.02] hover:scale-[1.04] [border-color:hsl(var(--reach-primary))] shadow-lg" : "border-gray-200 hover:[border-color:hsl(var(--reach-primary))] hover:bg-gray-50"}`,
46964
+ className: `flex flex-col items-center justify-center rounded-lg border-2 p-6 transition-all duration-300 ease-in-out hover:shadow-lg ${selected ? "[border-color:hsl(var(--reach-primary))] shadow-lg" : "border-gray-200 hover:[border-color:hsl(var(--reach-primary))] hover:bg-gray-50"} ${disabled ? "opacity-50 cursor-not-allowed hover:shadow-none" : "hover:scale-[1.04] scale-[1.02]"}`,
46965
46965
  children: [
46966
46966
  icon,
46967
46967
  /* @__PURE__ */ jsxs("div", { className: "text-center mt-3", children: [
@@ -81392,7 +81392,10 @@ const AllOrSelectSegmentPicker = ({ onSelectionChange, defaultValue = "all", can
81392
81392
  onSelectionChange?.(value);
81393
81393
  };
81394
81394
  return /* @__PURE__ */ jsxs(Fragment, { children: [
81395
- /* @__PURE__ */ jsx(MinorText, { children: "Filter" }),
81395
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
81396
+ /* @__PURE__ */ jsx(MinorText, { children: "Filter" }),
81397
+ canEditAudience && /* @__PURE__ */ jsx(InfoTooltip, { title: "You cannot edit the audience unless you are in draft mode" })
81398
+ ] }),
81396
81399
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4 p-1", children: [
81397
81400
  /* @__PURE__ */ jsx(
81398
81401
  BigSelector,
@@ -81401,7 +81404,8 @@ const AllOrSelectSegmentPicker = ({ onSelectionChange, defaultValue = "all", can
81401
81404
  title: `All ${t$1("engage:user", { count: 2 })}`,
81402
81405
  subtitle: "Send to everyone",
81403
81406
  icon: /* @__PURE__ */ jsx(IconDefinitions.UsersIcon, { className: "w-5 h-5 mb-2 text-gray-600" }),
81404
- selected: selected === "all"
81407
+ selected: selected === "all",
81408
+ disabled: !canEditAudience
81405
81409
  }
81406
81410
  ),
81407
81411
  /* @__PURE__ */ jsx(
@@ -81411,7 +81415,8 @@ const AllOrSelectSegmentPicker = ({ onSelectionChange, defaultValue = "all", can
81411
81415
  title: `Select ${t$1("engage:user", { count: 2 })}`,
81412
81416
  subtitle: `Choose from ${t$1("engage:segment", { count: 2 })}`,
81413
81417
  icon: /* @__PURE__ */ jsx(IconDefinitions.UserEdit, { className: "w-5 h-5 mb-2 text-gray-600" }),
81414
- selected: selected === "segments"
81418
+ selected: selected === "segments",
81419
+ disabled: !canEditAudience
81415
81420
  }
81416
81421
  )
81417
81422
  ] })