@embedreach/components 0.2.5 → 0.2.7

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.
@@ -82010,11 +82010,9 @@ const AutomationsEditorHeader = ({ showBackButton, onDuplicationCreated, onBefor
82010
82010
  /* @__PURE__ */ jsxs("div", { className: "ml-auto flex gap-4 items-center", children: [
82011
82011
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 text-muted-foreground", children: automation2.triggerType === AutomationTriggerType.ONE_TIME && /* @__PURE__ */ jsxs(Fragment, { children: [
82012
82012
  /* @__PURE__ */ jsx(
82013
- Button$1,
82013
+ "div",
82014
82014
  {
82015
- variant: "ghost",
82016
- size: "icon",
82017
- className: "",
82015
+ 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",
82018
82016
  onClick: () => setIsEditDialogOpen(true),
82019
82017
  children: /* @__PURE__ */ jsx(
82020
82018
  InfoTooltip,
@@ -82027,10 +82025,9 @@ const AutomationsEditorHeader = ({ showBackButton, onDuplicationCreated, onBefor
82027
82025
  }
82028
82026
  ),
82029
82027
  /* @__PURE__ */ jsx(
82030
- Button$1,
82028
+ "div",
82031
82029
  {
82032
- variant: "ghost",
82033
- size: "icon",
82030
+ 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",
82034
82031
  onClick: () => setIsDuplicateDialogOpen(true),
82035
82032
  children: /* @__PURE__ */ jsx(
82036
82033
  InfoTooltip,
@@ -84342,7 +84339,7 @@ const BasicsButton = ({
84342
84339
  selected = false
84343
84340
  }) => {
84344
84341
  const IconComponent = Icon2;
84345
- return /* @__PURE__ */ jsx(
84342
+ return /* @__PURE__ */ jsxs(
84346
84343
  motion.div,
84347
84344
  {
84348
84345
  layout: true,
@@ -84353,42 +84350,35 @@ const BasicsButton = ({
84353
84350
  style: {
84354
84351
  backgroundColor: selected ? iconBgColor : DEFAULT_BG
84355
84352
  },
84353
+ onClick,
84356
84354
  className: cn$1(
84357
84355
  "flex gap-2 items-center rounded-md transition-colors group",
84358
- "border-2 border-transparent overflow-hidden",
84356
+ "p-2 border-2 border-transparent overflow-hidden",
84359
84357
  !disabled && "hover:border-primary cursor-pointer",
84360
84358
  selected && "border-primary"
84361
84359
  ),
84362
- children: /* @__PURE__ */ jsxs(
84363
- Button$1,
84364
- {
84365
- variant: "ghost",
84366
- className: "text-left w-full h-full flex items-center gap-2 min-h-none whitespace-normal rounded-none px-2 group/trigger-audience",
84367
- onClick,
84368
- children: [
84369
- /* @__PURE__ */ jsx(
84370
- "div",
84360
+ children: [
84361
+ /* @__PURE__ */ jsx(
84362
+ "div",
84363
+ {
84364
+ className: cn$1(
84365
+ "bg-purple-50 rounded-md p-2 flex items-center justify-center w-8 h-8 flex-shrink-0 transition-colors",
84366
+ !disabled && "group-hover/trigger-audience:bg-background",
84367
+ iconBgColor
84368
+ ),
84369
+ children: /* @__PURE__ */ jsx(
84370
+ IconComponent,
84371
84371
  {
84372
84372
  className: cn$1(
84373
- "bg-purple-50 rounded-md p-2 flex items-center justify-center w-8 h-8 flex-shrink-0 transition-colors",
84374
- !disabled && "group-hover/trigger-audience:bg-background",
84375
- iconBgColor
84376
- ),
84377
- children: /* @__PURE__ */ jsx(
84378
- IconComponent,
84379
- {
84380
- className: cn$1(
84381
- "w-4 h-4 stroke-purple-500 group-hover/trigger-audience:fill-purple-50 transition-colors",
84382
- iconStrokeColor
84383
- )
84384
- }
84373
+ "w-4 h-4 stroke-purple-500 group-hover/trigger-audience:fill-purple-50 transition-colors",
84374
+ iconStrokeColor
84385
84375
  )
84386
84376
  }
84387
- ),
84388
- children2
84389
- ]
84390
- }
84391
- )
84377
+ )
84378
+ }
84379
+ ),
84380
+ children2
84381
+ ]
84392
84382
  }
84393
84383
  );
84394
84384
  };