@embedreach/components 0.2.32 → 0.2.33
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/chunks/index.js +21 -20
- package/dist/index.umd.js +113 -113
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -72813,6 +72813,25 @@ const TabsContent = React.forwardRef(({ className: className2, ...props2 }, ref)
|
|
|
72813
72813
|
}
|
|
72814
72814
|
));
|
|
72815
72815
|
TabsContent.displayName = Content.displayName;
|
|
72816
|
+
const DialogCloseButton = ({ onOpenChange }) => {
|
|
72817
|
+
return /* @__PURE__ */ jsx(
|
|
72818
|
+
"div",
|
|
72819
|
+
{
|
|
72820
|
+
role: "button",
|
|
72821
|
+
tabIndex: 0,
|
|
72822
|
+
"aria-label": "Close dialog",
|
|
72823
|
+
onClick: () => onOpenChange(false),
|
|
72824
|
+
onKeyDown: (e4) => {
|
|
72825
|
+
if (e4.key === "Enter" || e4.key === " ") {
|
|
72826
|
+
onOpenChange(false);
|
|
72827
|
+
}
|
|
72828
|
+
},
|
|
72829
|
+
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group cursor-pointer",
|
|
72830
|
+
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
72831
|
+
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-5 h-5 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
72832
|
+
}
|
|
72833
|
+
);
|
|
72834
|
+
};
|
|
72816
72835
|
function usePrevious(value) {
|
|
72817
72836
|
const ref = React.useRef({ value, previous: value });
|
|
72818
72837
|
return React.useMemo(() => {
|
|
@@ -73257,16 +73276,7 @@ const EditCampaignContentDialog = ({ open, onOpenChange }) => {
|
|
|
73257
73276
|
/* @__PURE__ */ jsx(DialogTitle, { children: "Edit Campaign Content" }),
|
|
73258
73277
|
/* @__PURE__ */ jsx(DialogDescription, { children: "Edit the content of the campaign" })
|
|
73259
73278
|
] }),
|
|
73260
|
-
/* @__PURE__ */ jsx(
|
|
73261
|
-
Button$1,
|
|
73262
|
-
{
|
|
73263
|
-
"aria-label": "Close dialog",
|
|
73264
|
-
onClick: () => onOpenChange(false),
|
|
73265
|
-
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group",
|
|
73266
|
-
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
73267
|
-
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-7 h-7 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
73268
|
-
}
|
|
73269
|
-
),
|
|
73279
|
+
/* @__PURE__ */ jsx(DialogCloseButton, { onOpenChange }),
|
|
73270
73280
|
/* @__PURE__ */ jsx(EditCampaignContent, {})
|
|
73271
73281
|
]
|
|
73272
73282
|
}
|
|
@@ -73414,16 +73424,7 @@ const ExpandButton = ({ expandDialogContent }) => {
|
|
|
73414
73424
|
/* @__PURE__ */ jsx(DialogDescription, { children: "Expanded view of communication content" })
|
|
73415
73425
|
] }),
|
|
73416
73426
|
/* @__PURE__ */ jsxs("div", { className: "h-full flex flex-col overflow-hidden rounded-xl", children: [
|
|
73417
|
-
/* @__PURE__ */ jsx(
|
|
73418
|
-
Button$1,
|
|
73419
|
-
{
|
|
73420
|
-
"aria-label": "Close dialog",
|
|
73421
|
-
onClick: () => setExpandClicked(false),
|
|
73422
|
-
className: "absolute top-3 right-3 z-20 rounded-full p-2 bg-white/80 shadow-lg border border-gray-200 hover:bg-primary/90 hover:text-white active:bg-primary/95 transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-primary/30 focus:ring-offset-2 group",
|
|
73423
|
-
style: { boxShadow: "0 4px 24px 0 rgba(0,0,0,0.10)" },
|
|
73424
|
-
children: /* @__PURE__ */ jsx(IconDefinitions.CloseButton, { className: "w-7 h-7 text-primary group-hover:text-primary-foreground group-active:text-primary-foreground transition-colors duration-200" })
|
|
73425
|
-
}
|
|
73426
|
-
),
|
|
73427
|
+
/* @__PURE__ */ jsx(DialogCloseButton, { onOpenChange: setExpandClicked }),
|
|
73427
73428
|
expandDialogContent
|
|
73428
73429
|
] })
|
|
73429
73430
|
]
|