@digital-b2c/coreui-kit 0.17.16 → 0.17.18

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
@@ -763,6 +763,12 @@ var Container = forwardRef(
763
763
  }
764
764
  );
765
765
  Container.displayName = "Container";
766
+ var Text = (_a) => {
767
+ var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
768
+ const Component = promoteToH1 ? "h1" : tag;
769
+ return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
770
+ };
771
+ Text.displayName = "Text";
766
772
 
767
773
  // src/components/Card/Card.module.scss
768
774
  var Card_module_default = {
@@ -1846,7 +1852,7 @@ var NewsCard = ({
1846
1852
  /* @__PURE__ */ jsx("time", { dateTime: date.value, className: clsx49("news-card-date", NewsCard_module_default["news-card-date"]), children: date.label })
1847
1853
  ] }),
1848
1854
  /* @__PURE__ */ jsxs("div", { className: clsx49("news-card-main-content", NewsCard_module_default["news-card-main-content"]), children: [
1849
- /* @__PURE__ */ jsx("h3", { className: clsx49("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
1855
+ /* @__PURE__ */ jsx("h3", { id: `title-${id}`, className: clsx49("news-card-title", NewsCard_module_default["news-card-title"]), children: title }),
1850
1856
  typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: clsx49("news-card-description", NewsCard_module_default["news-card-description"]), children: description }) : description,
1851
1857
  isRestricted && /* @__PURE__ */ jsx("p", { id: `restricted-${id}`, className: "sr-only", children: "This resource is restricted. You do not have permission to access it." })
1852
1858
  ] }),
@@ -1855,9 +1861,7 @@ var NewsCard = ({
1855
1861
  {
1856
1862
  variant: "secondary",
1857
1863
  className: clsx49("news-card-cta", NewsCard_module_default["news-card-cta"]),
1858
- href: cta.url,
1859
1864
  icon: cta.icon,
1860
- isExternal: cta == null ? void 0 : cta.isExternal,
1861
1865
  "aria-hidden": "true",
1862
1866
  tabIndex: -1,
1863
1867
  renderLink: renderLink ? (props) => renderLink(__spreadProps(__spreadValues({}, props), { tabIndex: -1 })) : void 0,
@@ -2535,12 +2539,6 @@ var LogoBar = ({ className, items }) => {
2535
2539
  ] }) }, key);
2536
2540
  }) });
2537
2541
  };
2538
- var Text = (_a) => {
2539
- var _b = _a, { tag = "p", promoteToH1 = false, ref, children } = _b, props = __objRest(_b, ["tag", "promoteToH1", "ref", "children"]);
2540
- const Component = promoteToH1 ? "h1" : tag;
2541
- return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({ ref }, props), { children }));
2542
- };
2543
- Text.displayName = "Text";
2544
2542
  var HeroBannerTitle = ({ children }) => {
2545
2543
  return /* @__PURE__ */ jsx(Fragment, { children });
2546
2544
  };
@@ -2713,7 +2711,7 @@ var HeroBannerCarousel = ({
2713
2711
  children: items.map((item, index) => /* @__PURE__ */ jsx(SwiperSlide, { children: /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.card, children: [
2714
2712
  item.isNewItem && /* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardCorner, children: isMobile ? /* @__PURE__ */ jsx("span", { className: HeroBannerCarousel_module_default.cardCornerDot }) : /* @__PURE__ */ jsx(Icon, { type: "newIcon", className: HeroBannerCarousel_module_default.cardCornerImage }) }),
2715
2713
  /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.cardContent, children: [
2716
- /* @__PURE__ */ jsx("h3", { className: HeroBannerCarousel_module_default.cardTitle, children: item.title }),
2714
+ /* @__PURE__ */ jsx("h2", { className: clsx49(HeroBannerCarousel_module_default.cardTitle, "h3"), children: item.title }),
2717
2715
  /* @__PURE__ */ jsxs("div", { className: HeroBannerCarousel_module_default.cardBottom, children: [
2718
2716
  /* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardBody, children: item.body }),
2719
2717
  item.ctas.length > 0 && /* @__PURE__ */ jsx("div", { className: HeroBannerCarousel_module_default.cardCtaContainer, children: item.ctas.map((cta, ctaIndex) => /* @__PURE__ */ jsx(
@@ -3090,6 +3088,7 @@ var MiniBanner = ({
3090
3088
  logo,
3091
3089
  background,
3092
3090
  cta,
3091
+ promoteToH1 = false,
3093
3092
  children
3094
3093
  }) => {
3095
3094
  var _a, _b, _c, _d, _e;
@@ -3113,11 +3112,19 @@ var MiniBanner = ({
3113
3112
  /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
3114
3113
  (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
3115
3114
  pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx49(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
3116
- /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
3115
+ (titleNode || goBackNode) && /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
3117
3116
  goBackNode ? React71.cloneElement(goBackNode, {
3118
3117
  className: clsx49("back-button", MiniBanner_module_default["back-button"])
3119
3118
  }) : null,
3120
- titleNode && /* @__PURE__ */ jsx("div", { className: clsx49(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode })
3119
+ titleNode && /* @__PURE__ */ jsx(
3120
+ Text,
3121
+ {
3122
+ tag: "div",
3123
+ promoteToH1,
3124
+ className: clsx49(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"),
3125
+ children: titleNode
3126
+ }
3127
+ )
3121
3128
  ] }),
3122
3129
  subtitleNode && /* @__PURE__ */ jsx(
3123
3130
  "div",
@@ -3172,6 +3179,7 @@ var MiniSectionCta_module_default = {
3172
3179
  subtitle: "MiniSectionCta_module_subtitle",
3173
3180
  miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
3174
3181
  light: "MiniSectionCta_module_light",
3182
+ gray: "MiniSectionCta_module_gray",
3175
3183
  dark: "MiniSectionCta_module_dark",
3176
3184
  cta: "MiniSectionCta_module_cta",
3177
3185
  BgColorGrey: "MiniSectionCta_module_BgColorGrey"
@@ -3183,6 +3191,7 @@ var MiniSectionCta = ({
3183
3191
  title,
3184
3192
  subtitle,
3185
3193
  cta,
3194
+ moduleStyles,
3186
3195
  children
3187
3196
  }) => {
3188
3197
  var _a, _b;
@@ -3196,6 +3205,10 @@ var MiniSectionCta = ({
3196
3205
  "div",
3197
3206
  {
3198
3207
  className: clsx49(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
3208
+ style: __spreadValues({}, moduleStyles && {
3209
+ "--custom-background-color": moduleStyles.backgroundColor,
3210
+ "--custom-color": moduleStyles.color
3211
+ }),
3199
3212
  children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
3200
3213
  /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
3201
3214
  titleNode && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: titleNode }),
@@ -4201,7 +4214,7 @@ var Teaser5050WithCta = ({
4201
4214
  ctas,
4202
4215
  image,
4203
4216
  children,
4204
- bgColor
4217
+ moduleStyles
4205
4218
  }) => {
4206
4219
  var _a, _b;
4207
4220
  const slots = resolveCompoundSlots(children, {
@@ -4214,7 +4227,10 @@ var Teaser5050WithCta = ({
4214
4227
  "div",
4215
4228
  {
4216
4229
  className: clsx49(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className),
4217
- style: { backgroundColor: bgColor ? bgColor : "#ffffff" },
4230
+ style: __spreadValues({}, moduleStyles && {
4231
+ "--custom-background-color": moduleStyles.backgroundColor,
4232
+ "--custom-color": moduleStyles.color
4233
+ }),
4218
4234
  children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
4219
4235
  /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
4220
4236
  /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
@@ -4292,6 +4308,7 @@ var Carousel = (_a) => {
4292
4308
  // src/widgets/EventList/EventList.module.scss
4293
4309
  var EventList_module_default = {
4294
4310
  "event-list-module": "EventList_module_event-list-module",
4311
+ gray: "EventList_module_gray",
4295
4312
  "event-list-header-container": "EventList_module_event-list-header-container",
4296
4313
  "event-list-title": "EventList_module_event-list-title",
4297
4314
  "event-list-wrapper": "EventList_module_event-list-wrapper",
@@ -4337,10 +4354,12 @@ var EventList = ({
4337
4354
  return /* @__PURE__ */ jsx(
4338
4355
  "div",
4339
4356
  {
4340
- className: clsx49("event-list-module", EventList_module_default["event-list-module"], className),
4341
- style: {
4342
- backgroundColor
4343
- },
4357
+ className: clsx49(
4358
+ "event-list-module",
4359
+ EventList_module_default["event-list-module"],
4360
+ backgroundColor && EventList_module_default[backgroundColor],
4361
+ className
4362
+ ),
4344
4363
  children: /* @__PURE__ */ jsxs(Container, { className: clsx49(EventList_module_default["event-list-container"]), children: [
4345
4364
  /* @__PURE__ */ jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
4346
4365
  titleNode && /* @__PURE__ */ jsx("h2", { className: clsx49(EventList_module_default["event-list-title"]), children: titleNode }),
@@ -5064,6 +5083,7 @@ var NewsCardList = ({
5064
5083
  className: clsx49("search-input", NewsCardList_module_default["search-input"]),
5065
5084
  startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
5066
5085
  placeholder: "Search News",
5086
+ "aria-label": "Search News",
5067
5087
  endAction: searchValue ? /* @__PURE__ */ jsx(
5068
5088
  Button,
5069
5089
  {
@@ -5219,6 +5239,7 @@ var BlogSearchResultsList = ({
5219
5239
  className: clsx49("search-input", BlogSearchResultsList_module_default["search-input"]),
5220
5240
  startAdornment: /* @__PURE__ */ jsx(Icon, { type: "search" }),
5221
5241
  placeholder: "Search News",
5242
+ "aria-label": "Search News",
5222
5243
  endAction: searchValue ? /* @__PURE__ */ jsx(
5223
5244
  Button,
5224
5245
  {
@@ -5550,6 +5571,6 @@ function useIntersectionObserver({
5550
5571
  return { observeRef, isVisible };
5551
5572
  }
5552
5573
 
5553
- export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ColTextMenu, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, Loader, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation3 as Navigation, NewsCard, NewsCardList2 as NewsCardList, PageLoader2 as PageLoader, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, TwoColTextMenu, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
5574
+ export { Anchor, Badge, BlogCardGrid2 as BlogCardGrid, BlogPost2 as BlogPost, BlogPostContent2 as BlogPostContent, BlogSearchResultsList2 as BlogSearchResultsList, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ColTextMenu, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, EventList2 as EventList, FeaturedNewsHighlights2 as FeaturedNewsHighlights, FilterBar, Footer, GlobalSearchResultsList2 as GlobalSearchResultsList, HeroBanner2 as HeroBanner, HeroBannerCarousel, Icon, InfoCard2 as InfoCard, Input, InternalBrandsTab2 as InternalBrandsTab, Loader, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Navigation3 as Navigation, NewsCard, NewsCardList2 as NewsCardList, PageLoader2 as PageLoader, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, QuoteSectionBlock, ResourceCardItem, ResourcesGridList, Search, Sidebar, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, Text, TextBody2 as TextBody, TextCenterCtaInBottom2 as TextCenterCtaInBottom, TextCenterWithMedia2 as TextCenterWithMedia, TextEvent2 as TextEvent, TwoColTextMenu, UpcomingEventCard, UserMenu, resolveCompoundSlots, svgs, useActivePath, useIntersectionObserver, useIsAtTop };
5554
5575
  //# sourceMappingURL=index.mjs.map
5555
5576
  //# sourceMappingURL=index.mjs.map