@embedreach/components 0.2.69 → 0.2.70

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.
@@ -78023,28 +78023,15 @@ const SMSPreview = ({ mergeFieldsResponse }) => {
78023
78023
  /* @__PURE__ */ jsx(DialogDescription, { children: "Learn more about the SMS editor and how to use it to create your SMS." })
78024
78024
  ] }),
78025
78025
  /* @__PURE__ */ jsxs("div", { className: "", children: [
78026
- imagePreview && /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ jsxs("div", { className: "relative group w-fit", children: [
78027
- /* @__PURE__ */ jsx(
78028
- "img",
78029
- {
78030
- src: imagePreview,
78031
- alt: "SMS attachment preview",
78032
- className: "max-h-48 max-w-xs rounded-xl shadow-lg border border-gray-200 object-contain bg-white transition-transform duration-200 group-hover:scale-105",
78033
- style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.08)" }
78034
- }
78035
- ),
78036
- /* @__PURE__ */ jsx(
78037
- Button$1,
78038
- {
78039
- variant: "ghost",
78040
- size: "icon",
78041
- className: "absolute -top-3 -right-3 bg-white/80 hover:bg-red-100 text-gray-500 hover:text-red-500 shadow-md border border-gray-200 rounded-full opacity-0 group-hover:opacity-100 transition-opacity",
78042
- onClick: handleRemoveImage,
78043
- style: { boxShadow: "0 2px 8px 0 rgba(0,0,0,0.10)" },
78044
- children: /* @__PURE__ */ jsx(X$2, { className: "h-4 w-4" })
78045
- }
78046
- )
78047
- ] }) }),
78026
+ imagePreview && /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ jsx("div", { className: "relative group w-fit", children: /* @__PURE__ */ jsx(
78027
+ "img",
78028
+ {
78029
+ src: imagePreview,
78030
+ alt: "SMS attachment preview",
78031
+ className: "max-h-48 max-w-xs rounded-xl shadow-lg border border-gray-200 object-contain bg-white transition-transform duration-200",
78032
+ style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.08)" }
78033
+ }
78034
+ ) }) }),
78048
78035
  /* @__PURE__ */ jsx(
78049
78036
  Textarea,
78050
78037
  {
@@ -78110,7 +78097,16 @@ const SMSPreview = ({ mergeFieldsResponse }) => {
78110
78097
  className: "hidden"
78111
78098
  }
78112
78099
  ),
78113
- /* @__PURE__ */ jsx(
78100
+ imagePreview ? /* @__PURE__ */ jsx(
78101
+ Button$1,
78102
+ {
78103
+ variant: "outline",
78104
+ onClick: handleRemoveImage,
78105
+ className: "px-4",
78106
+ disabled: false,
78107
+ children: "Remove Image"
78108
+ }
78109
+ ) : /* @__PURE__ */ jsx(
78114
78110
  Button$1,
78115
78111
  {
78116
78112
  variant: "outline",