@digital-b2c/coreui-kit 0.4.4 → 0.4.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.
package/dist/index.mjs CHANGED
@@ -1304,8 +1304,10 @@ var MiniBannerSubtitle = ({ children }) => {
1304
1304
  var MiniBanner_module_default = {
1305
1305
  minibanner: "MiniBanner_module_minibanner",
1306
1306
  background: "MiniBanner_module_background",
1307
+ wrapper: "MiniBanner_module_wrapper",
1307
1308
  textContainer: "MiniBanner_module_textContainer",
1308
1309
  logo: "MiniBanner_module_logo",
1310
+ pretitle: "MiniBanner_module_pretitle",
1309
1311
  headingWrapper: "MiniBanner_module_headingWrapper",
1310
1312
  title: "MiniBanner_module_title",
1311
1313
  ctaContainer: "MiniBanner_module_ctaContainer",
@@ -1339,37 +1341,39 @@ var MiniBanner = ({
1339
1341
  const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
1340
1342
  const titleNode = (_b = slots.title) != null ? _b : title;
1341
1343
  const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
1342
- return /* @__PURE__ */ jsxs(Container, { className: clsx19(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
1344
+ return /* @__PURE__ */ jsxs("div", { className: clsx19(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
1343
1345
  ((background == null ? void 0 : background.src) || ((_d = background == null ? void 0 : background.desktop) == null ? void 0 : _d.src) || ((_e = background == null ? void 0 : background.mobile) == null ? void 0 : _e.src)) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
1344
- /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
1345
- (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
1346
- pretitleNode && /* @__PURE__ */ jsx("div", { className: "small", children: pretitleNode }),
1347
- /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
1348
- subtitleNode && /* @__PURE__ */ jsx(
1349
- "div",
1350
- {
1351
- className: clsx19(MiniBanner_module_default.title, {
1352
- subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
1353
- h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
1354
- }),
1355
- children: subtitleNode
1356
- }
1357
- )
1358
- ] }),
1359
- cta && cta.length > 0 && /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
1360
- return /* @__PURE__ */ jsx(
1361
- Button,
1362
- {
1363
- href: cta2.url,
1364
- isExternal: cta2.isExternal,
1365
- variant: "secondary",
1366
- fullWidth: isTabletBelow,
1367
- logo: cta2.logo,
1368
- children: cta2.label
1369
- },
1370
- key
1371
- );
1372
- }) })
1346
+ /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
1347
+ /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
1348
+ (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
1349
+ pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx19(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
1350
+ /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
1351
+ subtitleNode && /* @__PURE__ */ jsx(
1352
+ "div",
1353
+ {
1354
+ className: clsx19(MiniBanner_module_default.title, {
1355
+ subheading: isMiniBannerNoBG || isMiniBannerTextLeft,
1356
+ h1: !isMiniBannerNoBG && !isMiniBannerTextLeft
1357
+ }),
1358
+ children: subtitleNode
1359
+ }
1360
+ )
1361
+ ] }),
1362
+ cta && cta.length > 0 && /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
1363
+ return /* @__PURE__ */ jsx(
1364
+ Button,
1365
+ {
1366
+ href: cta2.url,
1367
+ isExternal: cta2.isExternal,
1368
+ variant: "secondary",
1369
+ fullWidth: isTabletBelow,
1370
+ logo: cta2.logo,
1371
+ children: cta2.label
1372
+ },
1373
+ key
1374
+ );
1375
+ }) })
1376
+ ] })
1373
1377
  ] });
1374
1378
  };
1375
1379
 
@@ -1563,16 +1567,18 @@ var Teaser5050WithCta_module_default = {
1563
1567
  wrapper: "Teaser5050WithCta_module_wrapper",
1564
1568
  title: "Teaser5050WithCta_module_title",
1565
1569
  image: "Teaser5050WithCta_module_image",
1566
- cta: "Teaser5050WithCta_module_cta"
1570
+ cta: "Teaser5050WithCta_module_cta",
1571
+ ctaWrapper: "Teaser5050WithCta_module_ctaWrapper"
1567
1572
  };
1568
1573
  var Teaser5050WithCta = ({
1569
1574
  className,
1570
1575
  variant = "left",
1571
1576
  title,
1572
1577
  subtitle,
1573
- cta,
1578
+ ctas,
1574
1579
  image,
1575
- children
1580
+ children,
1581
+ bgColor
1576
1582
  }) => {
1577
1583
  var _a, _b;
1578
1584
  const slots = resolveCompoundSlots(children, {
@@ -1581,25 +1587,34 @@ var Teaser5050WithCta = ({
1581
1587
  });
1582
1588
  const titleNode = (_a = slots.title) != null ? _a : title;
1583
1589
  const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1584
- return /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
1585
- /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
1586
- /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
1587
- titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
1588
- subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
1589
- ] }),
1590
- cta && /* @__PURE__ */ jsx(
1591
- Button,
1592
- {
1593
- className: Teaser5050WithCta_module_default.cta,
1594
- variant: "secondary",
1595
- href: cta == null ? void 0 : cta.url,
1596
- isExternal: cta == null ? void 0 : cta.isExternal,
1597
- children: cta == null ? void 0 : cta.label
1598
- }
1599
- )
1600
- ] }),
1601
- image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050WithCta_module_default.image }, image))
1602
- ] }) });
1590
+ return /* @__PURE__ */ jsx(
1591
+ "div",
1592
+ {
1593
+ className: clsx19(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
1594
+ style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
1595
+ children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
1596
+ /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
1597
+ /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
1598
+ titleNode && /* @__PURE__ */ jsx("div", { className: clsx19(Teaser5050WithCta_module_default.title, "h3"), children: titleNode }),
1599
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
1600
+ ] }),
1601
+ (ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx("div", { className: Teaser5050WithCta_module_default.ctaWrapper, children: ctas.map((cta, key) => /* @__PURE__ */ jsx(
1602
+ Button,
1603
+ {
1604
+ className: Teaser5050WithCta_module_default.cta,
1605
+ variant: "secondary",
1606
+ href: cta == null ? void 0 : cta.url,
1607
+ isExternal: cta == null ? void 0 : cta.isExternal,
1608
+ logo: cta.logo,
1609
+ children: cta == null ? void 0 : cta.label
1610
+ },
1611
+ key
1612
+ )) })
1613
+ ] }),
1614
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050WithCta_module_default.image }, image))
1615
+ ] })
1616
+ }
1617
+ );
1603
1618
  };
1604
1619
 
1605
1620
  // src/widgets/Teaser5050WithCta/index.ts