@embedreach/components 0.2.21 → 0.2.22
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 +13 -3
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -85268,12 +85268,22 @@ const AutomationsEditorHeader = ({ showBackButton, onDuplicationCreated, onBefor
|
|
|
85268
85268
|
] })
|
|
85269
85269
|
] }),
|
|
85270
85270
|
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex gap-4 items-center", children: [
|
|
85271
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-muted-foreground", children: automation2.triggerType === AutomationTriggerType.ONE_TIME && /*
|
|
85272
|
-
|
|
85271
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-muted-foreground", children: automation2.triggerType === AutomationTriggerType.ONE_TIME && /* Using div with role="button" instead of <button> to avoid HTML validation error:
|
|
85272
|
+
* HTML spec doesn't allow nested button elements, and InfoTooltip internally uses a button.
|
|
85273
|
+
* This maintains accessibility while preventing hydration errors in Next.js.
|
|
85274
|
+
*/
|
|
85275
|
+
/* @__PURE__ */ jsx(
|
|
85276
|
+
"div",
|
|
85273
85277
|
{
|
|
85274
|
-
|
|
85278
|
+
role: "button",
|
|
85279
|
+
tabIndex: 0,
|
|
85275
85280
|
className: "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground h-10 w-10 cursor-pointer",
|
|
85276
85281
|
onClick: () => setIsDuplicateDialogOpen(true),
|
|
85282
|
+
onKeyDown: (e4) => {
|
|
85283
|
+
if (e4.key === "Enter" || e4.key === " ") {
|
|
85284
|
+
setIsDuplicateDialogOpen(true);
|
|
85285
|
+
}
|
|
85286
|
+
},
|
|
85277
85287
|
children: /* @__PURE__ */ jsx(
|
|
85278
85288
|
InfoTooltip,
|
|
85279
85289
|
{
|