@digital-b2c/coreui-kit 0.4.6 → 0.5.0

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
@@ -1736,6 +1736,54 @@ var EventList = ({ className, title, items, cta, variant, children }) => {
1736
1736
  var EventList2 = Object.assign(EventList, {
1737
1737
  Title: EventListTitle
1738
1738
  });
1739
+ var Text = (_a) => {
1740
+ var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
1741
+ const Component = promoteToH1 ? "h1" : tag;
1742
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
1743
+ };
1744
+ Text.displayName = "Text";
1745
+
1746
+ // src/widgets/TextEvent/TextEvent.module.scss
1747
+ var TextEvent_module_default = {
1748
+ h1: "TextEvent_module_h1",
1749
+ h2: "TextEvent_module_h2",
1750
+ h3: "TextEvent_module_h3",
1751
+ textEvent: "TextEvent_module_textEvent",
1752
+ richText: "TextEvent_module_richText",
1753
+ h4: "TextEvent_module_h4",
1754
+ subheading: "TextEvent_module_subheading",
1755
+ body: "TextEvent_module_body",
1756
+ small: "TextEvent_module_small",
1757
+ smallest: "TextEvent_module_smallest",
1758
+ title: "TextEvent_module_title",
1759
+ "table-center": "TextEvent_module_table-center"
1760
+ };
1761
+ var TextEventTitle = ({ children }) => {
1762
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1763
+ };
1764
+ var TextEventRichText = ({ children }) => {
1765
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1766
+ };
1767
+ var TextEvent = (props) => {
1768
+ var _a, _b;
1769
+ const { className, richText, title, variant, children } = props;
1770
+ const slots = resolveCompoundSlots(children, {
1771
+ title: TextEventTitle,
1772
+ richText: TextEventRichText
1773
+ });
1774
+ const titleNode = (_a = slots.title) != null ? _a : title;
1775
+ const richTextNode = (_b = slots.richText) != null ? _b : richText;
1776
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx19__default.default(TextEvent_module_default.textEvent, className), children: [
1777
+ /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextEvent_module_default.title, children: titleNode }),
1778
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(TextEvent_module_default.richText, TextEvent_module_default[variant != null ? variant : ""]), children: richTextNode })
1779
+ ] });
1780
+ };
1781
+
1782
+ // src/widgets/TextEvent/index.ts
1783
+ var TextEvent2 = Object.assign(TextEvent, {
1784
+ Title: TextEventTitle,
1785
+ RichText: TextEventRichText
1786
+ });
1739
1787
  function useIntersectionObserver({
1740
1788
  animateOnce = false,
1741
1789
  options = {}
@@ -1787,6 +1835,7 @@ exports.PracticeCard = PracticeCard;
1787
1835
  exports.PracticePathCards = PracticePathCards2;
1788
1836
  exports.Teaser5050With3Text = Teaser5050With3Text2;
1789
1837
  exports.Teaser5050WithCta = Teaser5050WithCta2;
1838
+ exports.TextEvent = TextEvent2;
1790
1839
  exports.resolveCompoundSlots = resolveCompoundSlots;
1791
1840
  exports.svgs = svgs;
1792
1841
  exports.useIntersectionObserver = useIntersectionObserver;