@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.cjs +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +26 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +116 -113
- package/dist/index.d.ts +116 -113
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5223,10 +5223,14 @@ var TextCenterCtaInBottom_module_default = {
|
|
|
5223
5223
|
subtitle: "TextCenterCtaInBottom_module_subtitle",
|
|
5224
5224
|
ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
|
|
5225
5225
|
iconOnly: "TextCenterCtaInBottom_module_iconOnly",
|
|
5226
|
-
cta: "TextCenterCtaInBottom_module_cta"
|
|
5226
|
+
cta: "TextCenterCtaInBottom_module_cta",
|
|
5227
|
+
textCenterCTA: "TextCenterCtaInBottom_module_textCenterCTA",
|
|
5228
|
+
textCenterButtonLogoBar: "TextCenterCtaInBottom_module_textCenterButtonLogoBar"
|
|
5227
5229
|
};
|
|
5228
5230
|
var TextCenterCtaInBottom = ({
|
|
5229
5231
|
className,
|
|
5232
|
+
variant,
|
|
5233
|
+
buttonVariant,
|
|
5230
5234
|
title,
|
|
5231
5235
|
subtitle,
|
|
5232
5236
|
ctas,
|
|
@@ -5239,12 +5243,12 @@ var TextCenterCtaInBottom = ({
|
|
|
5239
5243
|
});
|
|
5240
5244
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
5241
5245
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
5242
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx67__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
5243
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
5246
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx67__default.default(TextCenterCtaInBottom_module_default.textCenterCta, variant && TextCenterCtaInBottom_module_default[variant], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
|
|
5247
|
+
(titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
|
|
5244
5248
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
|
|
5245
5249
|
subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
|
|
5246
5250
|
] }),
|
|
5247
|
-
!!(ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5251
|
+
!!(ctas == null ? void 0 : ctas.length) && (variant === "textCenterButtonLogoBar" ? /* @__PURE__ */ jsxRuntime.jsx(LogoBar, { items: ctas, className: TextCenterCtaInBottom_module_default.ctaWrapper }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5248
5252
|
"div",
|
|
5249
5253
|
{
|
|
5250
5254
|
className: clsx67__default.default(
|
|
@@ -5255,7 +5259,7 @@ var TextCenterCtaInBottom = ({
|
|
|
5255
5259
|
Button,
|
|
5256
5260
|
{
|
|
5257
5261
|
className: TextCenterCtaInBottom_module_default.cta,
|
|
5258
|
-
variant: "secondary",
|
|
5262
|
+
variant: buttonVariant === "buttonBlack" ? "primary" : "secondary",
|
|
5259
5263
|
href: cta == null ? void 0 : cta.url,
|
|
5260
5264
|
isExternal: cta == null ? void 0 : cta.isExternal,
|
|
5261
5265
|
logo: cta.logo,
|
|
@@ -5264,7 +5268,7 @@ var TextCenterCtaInBottom = ({
|
|
|
5264
5268
|
key
|
|
5265
5269
|
))
|
|
5266
5270
|
}
|
|
5267
|
-
)
|
|
5271
|
+
))
|
|
5268
5272
|
] }) });
|
|
5269
5273
|
};
|
|
5270
5274
|
|