@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 +117 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +356 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +46 -3
- package/dist/index.d.ts +46 -3
- package/dist/index.mjs +116 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -921,6 +921,7 @@ 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",
|
|
924
925
|
examCard: "CardCollection_module_examCard",
|
|
925
926
|
"reveal-wrapper": "CardCollection_module_reveal-wrapper",
|
|
926
927
|
"reveal-inner": "CardCollection_module_reveal-inner",
|
|
@@ -1728,6 +1729,120 @@ var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
|
1728
1729
|
var EventList2 = Object.assign(EventList, {
|
|
1729
1730
|
Title: EventListTitle
|
|
1730
1731
|
});
|
|
1732
|
+
var Text = (_a) => {
|
|
1733
|
+
var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
|
|
1734
|
+
const Component = promoteToH1 ? "h1" : tag;
|
|
1735
|
+
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
|
|
1736
|
+
};
|
|
1737
|
+
Text.displayName = "Text";
|
|
1738
|
+
|
|
1739
|
+
// src/widgets/TextEvent/TextEvent.module.scss
|
|
1740
|
+
var TextEvent_module_default = {
|
|
1741
|
+
h1: "TextEvent_module_h1",
|
|
1742
|
+
h2: "TextEvent_module_h2",
|
|
1743
|
+
h3: "TextEvent_module_h3",
|
|
1744
|
+
textEvent: "TextEvent_module_textEvent",
|
|
1745
|
+
richText: "TextEvent_module_richText",
|
|
1746
|
+
h4: "TextEvent_module_h4",
|
|
1747
|
+
subheading: "TextEvent_module_subheading",
|
|
1748
|
+
body: "TextEvent_module_body",
|
|
1749
|
+
small: "TextEvent_module_small",
|
|
1750
|
+
smallest: "TextEvent_module_smallest",
|
|
1751
|
+
title: "TextEvent_module_title",
|
|
1752
|
+
"table-center": "TextEvent_module_table-center"
|
|
1753
|
+
};
|
|
1754
|
+
var TextEventTitle = ({ children }) => {
|
|
1755
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1756
|
+
};
|
|
1757
|
+
var TextEventRichText = ({ children }) => {
|
|
1758
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1759
|
+
};
|
|
1760
|
+
var TextEvent = (props) => {
|
|
1761
|
+
var _a, _b;
|
|
1762
|
+
const { className, richText, title, variant, children } = props;
|
|
1763
|
+
const slots = resolveCompoundSlots(children, {
|
|
1764
|
+
title: TextEventTitle,
|
|
1765
|
+
richText: TextEventRichText
|
|
1766
|
+
});
|
|
1767
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1768
|
+
const richTextNode = (_b = slots.richText) != null ? _b : richText;
|
|
1769
|
+
return /* @__PURE__ */ jsxs(Container, { className: clsx19(TextEvent_module_default.textEvent, className), children: [
|
|
1770
|
+
/* @__PURE__ */ jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
|
|
1771
|
+
/* @__PURE__ */ jsx("div", { className: clsx19(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
|
|
1772
|
+
] });
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
// src/widgets/TextEvent/index.ts
|
|
1776
|
+
var TextEvent2 = Object.assign(TextEvent, {
|
|
1777
|
+
Title: TextEventTitle,
|
|
1778
|
+
RichText: TextEventRichText
|
|
1779
|
+
});
|
|
1780
|
+
var TextCenterCtaInBottomTitle = ({ children }) => {
|
|
1781
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1782
|
+
};
|
|
1783
|
+
var TextCenterCtaInBottomSubtitle = ({ children }) => {
|
|
1784
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1785
|
+
};
|
|
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
|
+
}) => {
|
|
1805
|
+
var _a, _b;
|
|
1806
|
+
const slots = resolveCompoundSlots(children, {
|
|
1807
|
+
title: TextCenterCtaInBottomTitle,
|
|
1808
|
+
subtitle: TextCenterCtaInBottomSubtitle
|
|
1809
|
+
});
|
|
1810
|
+
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
|
+
] }) });
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
// src/widgets/TextCenterCtaInBottom/index.ts
|
|
1842
|
+
var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
|
|
1843
|
+
Title: TextCenterCtaInBottomTitle,
|
|
1844
|
+
Subtitle: TextCenterCtaInBottomSubtitle
|
|
1845
|
+
});
|
|
1731
1846
|
function useIntersectionObserver({
|
|
1732
1847
|
animateOnce = false,
|
|
1733
1848
|
options = {}
|
|
@@ -1757,6 +1872,6 @@ function useIntersectionObserver({
|
|
|
1757
1872
|
return { observeRef, isVisible };
|
|
1758
1873
|
}
|
|
1759
1874
|
|
|
1760
|
-
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, resolveCompoundSlots, svgs, useIntersectionObserver };
|
|
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 };
|
|
1761
1876
|
//# sourceMappingURL=index.mjs.map
|
|
1762
1877
|
//# sourceMappingURL=index.mjs.map
|