@embedreach/components 0.2.21 → 0.2.23

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.
@@ -74934,7 +74934,7 @@ const AutomationEditorTabs = ({
74934
74934
  TabsTrigger,
74935
74935
  {
74936
74936
  value: "sms",
74937
- className: "group data-[state=active]:bg-background",
74937
+ className: "group data-[state=active]:bg-background!",
74938
74938
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
74939
74939
  /* @__PURE__ */ jsx(
74940
74940
  "img",
@@ -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 && /* @__PURE__ */ jsx(
85272
- "button",
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
- type: "button",
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
  {