@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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +23 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +184 -60
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +10 -11
- package/dist/index.d.ts +10 -11
- package/dist/index.mjs +23 -57
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -99
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
|
-
|
|
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
|
|
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:
|
|
1808
|
-
|
|
1796
|
+
title: TextBodyTitle,
|
|
1797
|
+
body: TextBodyBody
|
|
1809
1798
|
});
|
|
1810
1799
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1811
|
-
const
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
|
|
1815
|
-
|
|
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/
|
|
1842
|
-
var
|
|
1843
|
-
Title:
|
|
1844
|
-
|
|
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,
|
|
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
|