@embedreach/components 0.2.52 → 0.2.53

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 ? "scale-[1.02] [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-100" : "hover:scale-[1.04]"}`,
46965
46965
  children: [
46966
46966
  icon,
46967
46967
  /* @__PURE__ */ jsxs("div", { className: "text-center mt-3", children: [
@@ -81401,7 +81401,8 @@ const AllOrSelectSegmentPicker = ({ onSelectionChange, defaultValue = "all", can
81401
81401
  title: `All ${t$1("engage:user", { count: 2 })}`,
81402
81402
  subtitle: "Send to everyone",
81403
81403
  icon: /* @__PURE__ */ jsx(IconDefinitions.UsersIcon, { className: "w-5 h-5 mb-2 text-gray-600" }),
81404
- selected: selected === "all"
81404
+ selected: selected === "all",
81405
+ disabled: !canEditAudience
81405
81406
  }
81406
81407
  ),
81407
81408
  /* @__PURE__ */ jsx(
@@ -81411,7 +81412,8 @@ const AllOrSelectSegmentPicker = ({ onSelectionChange, defaultValue = "all", can
81411
81412
  title: `Select ${t$1("engage:user", { count: 2 })}`,
81412
81413
  subtitle: `Choose from ${t$1("engage:segment", { count: 2 })}`,
81413
81414
  icon: /* @__PURE__ */ jsx(IconDefinitions.UserEdit, { className: "w-5 h-5 mb-2 text-gray-600" }),
81414
- selected: selected === "segments"
81415
+ selected: selected === "segments",
81416
+ disabled: !canEditAudience
81415
81417
  }
81416
81418
  )
81417
81419
  ] })