@digital-b2c/coreui-kit 0.5.1 → 0.5.3

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
@@ -921,7 +921,6 @@ var CardCollection_module_default = {
921
921
  wrapper: "CardCollection_module_wrapper",
922
922
  cardWrapper: "CardCollection_module_cardWrapper",
923
923
  threeCols: "CardCollection_module_threeCols",
924
- fourCols: "CardCollection_module_fourCols",
925
924
  examCard: "CardCollection_module_examCard",
926
925
  "reveal-wrapper": "CardCollection_module_reveal-wrapper",
927
926
  "reveal-inner": "CardCollection_module_reveal-inner",
@@ -1777,71 +1776,38 @@ var TextEvent2 = Object.assign(TextEvent, {
1777
1776
  Title: TextEventTitle,
1778
1777
  RichText: TextEventRichText
1779
1778
  });
1780
- var TextCenterCtaInBottomTitle = ({ children }) => {
1779
+
1780
+ // src/widgets/TextBody/TextBody.module.scss
1781
+ var TextBody_module_default = {
1782
+ textBody: "TextBody_module_textBody",
1783
+ body: "TextBody_module_body",
1784
+ title: "TextBody_module_title"
1785
+ };
1786
+ var TextBodyTitle = ({ children }) => {
1781
1787
  return /* @__PURE__ */ jsx(Fragment, { children });
1782
1788
  };
1783
- var TextCenterCtaInBottomSubtitle = ({ children }) => {
1789
+ var TextBodyBody = ({ children }) => {
1784
1790
  return /* @__PURE__ */ jsx(Fragment, { children });
1785
1791
  };
1786
-
1787
- // src/widgets/TextCenterCtaInBottom/TextCenterCtaInBottom.module.scss
1788
- var TextCenterCtaInBottom_module_default = {
1789
- textCenterCta: "TextCenterCtaInBottom_module_textCenterCta",
1790
- container: "TextCenterCtaInBottom_module_container",
1791
- content: "TextCenterCtaInBottom_module_content",
1792
- title: "TextCenterCtaInBottom_module_title",
1793
- subtitle: "TextCenterCtaInBottom_module_subtitle",
1794
- ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
1795
- iconOnly: "TextCenterCtaInBottom_module_iconOnly",
1796
- cta: "TextCenterCtaInBottom_module_cta"
1797
- };
1798
- var TextCenterCtaInBottom = ({
1799
- className,
1800
- title,
1801
- subtitle,
1802
- ctas,
1803
- children
1804
- }) => {
1792
+ var TextBody = (props) => {
1805
1793
  var _a, _b;
1794
+ const { className, body, title, children } = props;
1806
1795
  const slots = resolveCompoundSlots(children, {
1807
- title: TextCenterCtaInBottomTitle,
1808
- subtitle: TextCenterCtaInBottomSubtitle
1796
+ title: TextBodyTitle,
1797
+ body: TextBodyBody
1809
1798
  });
1810
1799
  const titleNode = (_a = slots.title) != null ? _a : title;
1811
- const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1812
- return /* @__PURE__ */ jsx("div", { className: clsx19(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
1813
- /* @__PURE__ */ jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
1814
- titleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
1815
- subtitleNode && /* @__PURE__ */ jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
1816
- ] }),
1817
- (ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsx(
1818
- "div",
1819
- {
1820
- className: clsx19(
1821
- TextCenterCtaInBottom_module_default.ctaWrapper,
1822
- ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
1823
- ),
1824
- children: ctas.map((cta, key) => /* @__PURE__ */ jsx(
1825
- Button,
1826
- {
1827
- className: TextCenterCtaInBottom_module_default.cta,
1828
- variant: "secondary",
1829
- href: cta == null ? void 0 : cta.url,
1830
- isExternal: cta == null ? void 0 : cta.isExternal,
1831
- logo: cta.logo,
1832
- children: cta == null ? void 0 : cta.label
1833
- },
1834
- key
1835
- ))
1836
- }
1837
- )
1838
- ] }) });
1800
+ const bodyNode = (_b = slots.body) != null ? _b : body;
1801
+ return /* @__PURE__ */ jsxs(Container, { className: clsx19(TextBody_module_default.textBody, className), children: [
1802
+ titleNode && /* @__PURE__ */ jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
1803
+ /* @__PURE__ */ jsx("div", { className: TextBody_module_default.body, children: bodyNode })
1804
+ ] });
1839
1805
  };
1840
1806
 
1841
- // src/widgets/TextCenterCtaInBottom/index.ts
1842
- var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
1843
- Title: TextCenterCtaInBottomTitle,
1844
- Subtitle: TextCenterCtaInBottomSubtitle
1807
+ // src/widgets/TextBody/index.ts
1808
+ var TextBody2 = Object.assign(TextBody, {
1809
+ Title: TextBodyTitle,
1810
+ Body: TextBodyBody
1845
1811
  });
1846
1812
  function useIntersectionObserver({
1847
1813
  animateOnce = false,
@@ -1872,6 +1838,6 @@ function useIntersectionObserver({
1872
1838
  return { observeRef, isVisible };
1873
1839
  }
1874
1840
 
1875
- export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
1841
+ export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, Footer, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextEvent2 as TextEvent, resolveCompoundSlots, svgs, useIntersectionObserver };
1876
1842
  //# sourceMappingURL=index.mjs.map
1877
1843
  //# sourceMappingURL=index.mjs.map