@digital-b2c/coreui-kit 0.27.0 → 0.28.1

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/index.mjs CHANGED
@@ -5214,10 +5214,14 @@ var TextCenterCtaInBottom_module_default = {
5214
5214
  subtitle: "TextCenterCtaInBottom_module_subtitle",
5215
5215
  ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
5216
5216
  iconOnly: "TextCenterCtaInBottom_module_iconOnly",
5217
- cta: "TextCenterCtaInBottom_module_cta"
5217
+ cta: "TextCenterCtaInBottom_module_cta",
5218
+ textCenterCTA: "TextCenterCtaInBottom_module_textCenterCTA",
5219
+ textCenterButtonLogoBar: "TextCenterCtaInBottom_module_textCenterButtonLogoBar"
5218
5220
  };
5219
5221
  var TextCenterCtaInBottom = ({
5220
5222
  className,
5223
+ variant,
5224
+ buttonVariant,
5221
5225
  title,
5222
5226
  subtitle,
5223
5227
  ctas,
@@ -5230,12 +5234,12 @@ var TextCenterCtaInBottom = ({
5230
5234
  });
5231
5235
  const titleNode = (_a = slots.title) != null ? _a : title;
5232
5236
  const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
5233
- return /* @__PURE__ */ jsx("div", { className: clsx67(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
5234
- /* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
5237
+ return /* @__PURE__ */ jsx("div", { className: clsx67(TextCenterCtaInBottom_module_default.textCenterCta, variant && TextCenterCtaInBottom_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
5238
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
5235
5239
  titleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
5236
5240
  subtitleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
5237
5241
  ] }),
5238
- !!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx(
5242
+ !!(ctas == null ? void 0 : ctas.length) && (variant === "textCenterButtonLogoBar" ? /* @__PURE__ */ jsx(LogoBar, { items: ctas, className: TextCenterCtaInBottom_module_default.ctaWrapper }) : /* @__PURE__ */ jsx(
5239
5243
  "div",
5240
5244
  {
5241
5245
  className: clsx67(
@@ -5246,7 +5250,7 @@ var TextCenterCtaInBottom = ({
5246
5250
  Button,
5247
5251
  {
5248
5252
  className: TextCenterCtaInBottom_module_default.cta,
5249
- variant: "secondary",
5253
+ variant: buttonVariant === "buttonBlack" ? "primary" : "secondary",
5250
5254
  href: cta == null ? void 0 : cta.url,
5251
5255
  isExternal: cta == null ? void 0 : cta.isExternal,
5252
5256
  logo: cta.logo,
@@ -5255,7 +5259,7 @@ var TextCenterCtaInBottom = ({
5255
5259
  key
5256
5260
  ))
5257
5261
  }
5258
- )
5262
+ ))
5259
5263
  ] }) });
5260
5264
  };
5261
5265