@digital-b2c/coreui-kit 0.4.6 → 0.5.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 CHANGED
@@ -929,6 +929,7 @@ var CardCollection_module_default = {
929
929
  wrapper: "CardCollection_module_wrapper",
930
930
  cardWrapper: "CardCollection_module_cardWrapper",
931
931
  threeCols: "CardCollection_module_threeCols",
932
+ fourCols: "CardCollection_module_fourCols",
932
933
  examCard: "CardCollection_module_examCard",
933
934
  "reveal-wrapper": "CardCollection_module_reveal-wrapper",
934
935
  "reveal-inner": "CardCollection_module_reveal-inner",
@@ -1736,6 +1737,120 @@ var EventList = ({ className, title, items, cta, variant, children }) => {
1736
1737
  var EventList2 = Object.assign(EventList, {
1737
1738
  Title: EventListTitle
1738
1739
  });
1740
+ var Text = (_a) => {
1741
+ var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
1742
+ const Component = promoteToH1 ? "h1" : tag;
1743
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
1744
+ };
1745
+ Text.displayName = "Text";
1746
+
1747
+ // src/widgets/TextEvent/TextEvent.module.scss
1748
+ var TextEvent_module_default = {
1749
+ h1: "TextEvent_module_h1",
1750
+ h2: "TextEvent_module_h2",
1751
+ h3: "TextEvent_module_h3",
1752
+ textEvent: "TextEvent_module_textEvent",
1753
+ richText: "TextEvent_module_richText",
1754
+ h4: "TextEvent_module_h4",
1755
+ subheading: "TextEvent_module_subheading",
1756
+ body: "TextEvent_module_body",
1757
+ small: "TextEvent_module_small",
1758
+ smallest: "TextEvent_module_smallest",
1759
+ title: "TextEvent_module_title",
1760
+ "table-center": "TextEvent_module_table-center"
1761
+ };
1762
+ var TextEventTitle = ({ children }) => {
1763
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1764
+ };
1765
+ var TextEventRichText = ({ children }) => {
1766
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1767
+ };
1768
+ var TextEvent = (props) => {
1769
+ var _a, _b;
1770
+ const { className, richText, title, variant, children } = props;
1771
+ const slots = resolveCompoundSlots(children, {
1772
+ title: TextEventTitle,
1773
+ richText: TextEventRichText
1774
+ });
1775
+ const titleNode = (_a = slots.title) != null ? _a : title;
1776
+ const richTextNode = (_b = slots.richText) != null ? _b : richText;
1777
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx19__default.default(TextEvent_module_default.textEvent, className), children: [
1778
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
1779
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
1780
+ ] });
1781
+ };
1782
+
1783
+ // src/widgets/TextEvent/index.ts
1784
+ var TextEvent2 = Object.assign(TextEvent, {
1785
+ Title: TextEventTitle,
1786
+ RichText: TextEventRichText
1787
+ });
1788
+ var TextCenterCtaInBottomTitle = ({ children }) => {
1789
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1790
+ };
1791
+ var TextCenterCtaInBottomSubtitle = ({ children }) => {
1792
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1793
+ };
1794
+
1795
+ // src/widgets/TextCenterCtaInBottom/TextCenterCtaInBottom.module.scss
1796
+ var TextCenterCtaInBottom_module_default = {
1797
+ textCenterCta: "TextCenterCtaInBottom_module_textCenterCta",
1798
+ container: "TextCenterCtaInBottom_module_container",
1799
+ content: "TextCenterCtaInBottom_module_content",
1800
+ title: "TextCenterCtaInBottom_module_title",
1801
+ subtitle: "TextCenterCtaInBottom_module_subtitle",
1802
+ ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
1803
+ iconOnly: "TextCenterCtaInBottom_module_iconOnly",
1804
+ cta: "TextCenterCtaInBottom_module_cta"
1805
+ };
1806
+ var TextCenterCtaInBottom = ({
1807
+ className,
1808
+ title,
1809
+ subtitle,
1810
+ ctas,
1811
+ children
1812
+ }) => {
1813
+ var _a, _b;
1814
+ const slots = resolveCompoundSlots(children, {
1815
+ title: TextCenterCtaInBottomTitle,
1816
+ subtitle: TextCenterCtaInBottomSubtitle
1817
+ });
1818
+ const titleNode = (_a = slots.title) != null ? _a : title;
1819
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1820
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
1821
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
1822
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
1823
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
1824
+ ] }),
1825
+ (ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
1826
+ "div",
1827
+ {
1828
+ className: clsx19__default.default(
1829
+ TextCenterCtaInBottom_module_default.ctaWrapper,
1830
+ ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
1831
+ ),
1832
+ children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
1833
+ Button,
1834
+ {
1835
+ className: TextCenterCtaInBottom_module_default.cta,
1836
+ variant: "secondary",
1837
+ href: cta == null ? void 0 : cta.url,
1838
+ isExternal: cta == null ? void 0 : cta.isExternal,
1839
+ logo: cta.logo,
1840
+ children: cta == null ? void 0 : cta.label
1841
+ },
1842
+ key
1843
+ ))
1844
+ }
1845
+ )
1846
+ ] }) });
1847
+ };
1848
+
1849
+ // src/widgets/TextCenterCtaInBottom/index.ts
1850
+ var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
1851
+ Title: TextCenterCtaInBottomTitle,
1852
+ Subtitle: TextCenterCtaInBottomSubtitle
1853
+ });
1739
1854
  function useIntersectionObserver({
1740
1855
  animateOnce = false,
1741
1856
  options = {}
@@ -1787,6 +1902,8 @@ exports.PracticeCard = PracticeCard;
1787
1902
  exports.PracticePathCards = PracticePathCards2;
1788
1903
  exports.Teaser5050With3Text = Teaser5050With3Text2;
1789
1904
  exports.Teaser5050WithCta = Teaser5050WithCta2;
1905
+ exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
1906
+ exports.TextEvent = TextEvent2;
1790
1907
  exports.resolveCompoundSlots = resolveCompoundSlots;
1791
1908
  exports.svgs = svgs;
1792
1909
  exports.useIntersectionObserver = useIntersectionObserver;