@embedreach/components 0.2.5 → 0.2.6

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.
@@ -84342,7 +84342,7 @@ const BasicsButton = ({
84342
84342
  selected = false
84343
84343
  }) => {
84344
84344
  const IconComponent = Icon2;
84345
- return /* @__PURE__ */ jsx(
84345
+ return /* @__PURE__ */ jsxs(
84346
84346
  motion.div,
84347
84347
  {
84348
84348
  layout: true,
@@ -84353,42 +84353,35 @@ const BasicsButton = ({
84353
84353
  style: {
84354
84354
  backgroundColor: selected ? iconBgColor : DEFAULT_BG
84355
84355
  },
84356
+ onClick,
84356
84357
  className: cn$1(
84357
84358
  "flex gap-2 items-center rounded-md transition-colors group",
84358
- "border-2 border-transparent overflow-hidden",
84359
+ "p-2 border-2 border-transparent overflow-hidden",
84359
84360
  !disabled && "hover:border-primary cursor-pointer",
84360
84361
  selected && "border-primary"
84361
84362
  ),
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",
84363
+ children: [
84364
+ /* @__PURE__ */ jsx(
84365
+ "div",
84366
+ {
84367
+ className: cn$1(
84368
+ "bg-purple-50 rounded-md p-2 flex items-center justify-center w-8 h-8 flex-shrink-0 transition-colors",
84369
+ !disabled && "group-hover/trigger-audience:bg-background",
84370
+ iconBgColor
84371
+ ),
84372
+ children: /* @__PURE__ */ jsx(
84373
+ IconComponent,
84371
84374
  {
84372
84375
  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
- }
84376
+ "w-4 h-4 stroke-purple-500 group-hover/trigger-audience:fill-purple-50 transition-colors",
84377
+ iconStrokeColor
84385
84378
  )
84386
84379
  }
84387
- ),
84388
- children2
84389
- ]
84390
- }
84391
- )
84380
+ )
84381
+ }
84382
+ ),
84383
+ children2
84384
+ ]
84392
84385
  }
84393
84386
  );
84394
84387
  };