@digital-b2c/coreui-kit 0.11.13 → 0.11.15

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.d.cts CHANGED
@@ -196,7 +196,7 @@ interface ResourceCardItemProps {
196
196
 
197
197
  declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
198
198
 
199
- type FilterOption = 'all' | 'pdf' | 'link';
199
+ type FilterOption = 'all' | 'pdf' | 'externalLink';
200
200
  type SortOption = 'latest' | 'oldest' | 'az' | 'za';
201
201
  interface FilterBarProps {
202
202
  view: ResourceView;
@@ -557,6 +557,10 @@ interface InternalBrandsTabProps {
557
557
 
558
558
  declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react_jsx_runtime.JSX.Element;
559
559
 
560
+ type MiniBannerGoBackProps = {
561
+ children: ReactNode;
562
+ };
563
+
560
564
  type MiniBannerSubtitleProps = {
561
565
  children: ReactNode;
562
566
  };
@@ -574,12 +578,24 @@ interface MiniBannerProps {
574
578
  title?: ReactNode;
575
579
  subtitle?: ReactNode;
576
580
  cta?: ICtaLogo[];
581
+ goBackProps?: {
582
+ icon?: {
583
+ src: string;
584
+ alt: string;
585
+ };
586
+ link?: {
587
+ isExternal?: boolean;
588
+ href: string;
589
+ title?: string;
590
+ };
591
+ };
577
592
  children?: ReactNode;
578
593
  }
579
594
 
580
595
  declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react_jsx_runtime.JSX.Element) & {
581
596
  Title: ({ children }: MiniBannerTitleProps) => react_jsx_runtime.JSX.Element;
582
597
  Subtitle: ({ children }: MiniBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
598
+ GoBack: ({ children }: MiniBannerGoBackProps) => react_jsx_runtime.JSX.Element;
583
599
  };
584
600
 
585
601
  type MiniSectionCtaSubtitleProps = {
package/dist/index.d.ts CHANGED
@@ -196,7 +196,7 @@ interface ResourceCardItemProps {
196
196
 
197
197
  declare const ResourceCardItem: ({ item, view }: ResourceCardItemProps) => react_jsx_runtime.JSX.Element;
198
198
 
199
- type FilterOption = 'all' | 'pdf' | 'link';
199
+ type FilterOption = 'all' | 'pdf' | 'externalLink';
200
200
  type SortOption = 'latest' | 'oldest' | 'az' | 'za';
201
201
  interface FilterBarProps {
202
202
  view: ResourceView;
@@ -557,6 +557,10 @@ interface InternalBrandsTabProps {
557
557
 
558
558
  declare const InternalBrandsTab: (props: InternalBrandsTabProps) => react_jsx_runtime.JSX.Element;
559
559
 
560
+ type MiniBannerGoBackProps = {
561
+ children: ReactNode;
562
+ };
563
+
560
564
  type MiniBannerSubtitleProps = {
561
565
  children: ReactNode;
562
566
  };
@@ -574,12 +578,24 @@ interface MiniBannerProps {
574
578
  title?: ReactNode;
575
579
  subtitle?: ReactNode;
576
580
  cta?: ICtaLogo[];
581
+ goBackProps?: {
582
+ icon?: {
583
+ src: string;
584
+ alt: string;
585
+ };
586
+ link?: {
587
+ isExternal?: boolean;
588
+ href: string;
589
+ title?: string;
590
+ };
591
+ };
577
592
  children?: ReactNode;
578
593
  }
579
594
 
580
595
  declare const MiniBanner: (({ className, variant, pretitle, title, subtitle, logo, background, cta, children, }: MiniBannerProps) => react_jsx_runtime.JSX.Element) & {
581
596
  Title: ({ children }: MiniBannerTitleProps) => react_jsx_runtime.JSX.Element;
582
597
  Subtitle: ({ children }: MiniBannerSubtitleProps) => react_jsx_runtime.JSX.Element;
598
+ GoBack: ({ children }: MiniBannerGoBackProps) => react_jsx_runtime.JSX.Element;
583
599
  };
584
600
 
585
601
  type MiniSectionCtaSubtitleProps = {
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import clsx15 from 'clsx';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import React65, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect, Fragment as Fragment$1 } from 'react';
3
+ import React66, { forwardRef, useId, useRef, useState, useCallback, useMemo, Children, isValidElement, useEffect, Fragment as Fragment$1 } from 'react';
4
4
  import gsap$1, { gsap } from 'gsap';
5
5
  import { useGSAP } from '@gsap/react';
6
6
  import { ScrollTrigger } from 'gsap/ScrollTrigger';
@@ -374,7 +374,7 @@ var svgs = {
374
374
  xBlack: icon_x_black_default,
375
375
  xWhite: icon_x_white_default
376
376
  };
377
- var Icon = React65.memo(
377
+ var Icon = React66.memo(
378
378
  (_a) => {
379
379
  var _b = _a, { type, size } = _b, props = __objRest(_b, ["type", "size"]);
380
380
  if (type) {
@@ -843,7 +843,7 @@ var FilterBar_module_default = {
843
843
  selected: "FilterBar_module_selected"
844
844
  };
845
845
  var FILTER_OPTIONS = [
846
- { value: "link", label: "Link", icon: "externalLink" },
846
+ { value: "externalLink", label: "Link", icon: "externalLink" },
847
847
  { value: "pdf", label: "PDF", icon: "pdf" }
848
848
  ];
849
849
  var SORT_OPTIONS = [
@@ -2600,6 +2600,7 @@ var MiniBanner_module_default = {
2600
2600
  logo: "MiniBanner_module_logo",
2601
2601
  pretitle: "MiniBanner_module_pretitle",
2602
2602
  headingWrapper: "MiniBanner_module_headingWrapper",
2603
+ "back-button": "MiniBanner_module_back-button",
2603
2604
  title: "MiniBanner_module_title",
2604
2605
  ctaContainer: "MiniBanner_module_ctaContainer",
2605
2606
  miniBannerNoBG: "MiniBanner_module_miniBannerNoBG",
@@ -2608,6 +2609,9 @@ var MiniBanner_module_default = {
2608
2609
  var MiniBannerPreTitle = ({ children }) => {
2609
2610
  return /* @__PURE__ */ jsx(Fragment, { children });
2610
2611
  };
2612
+ var MiniBannerGoBack = ({ children }) => {
2613
+ return /* @__PURE__ */ jsx(Fragment, { children });
2614
+ };
2611
2615
  var MiniBanner = ({
2612
2616
  className,
2613
2617
  variant = "default",
@@ -2623,7 +2627,8 @@ var MiniBanner = ({
2623
2627
  const slots = resolveCompoundSlots(children, {
2624
2628
  pretitle: MiniBannerPreTitle,
2625
2629
  title: MiniBannerTitle,
2626
- subtitle: MiniBannerSubtitle
2630
+ subtitle: MiniBannerSubtitle,
2631
+ goBack: MiniBannerGoBack
2627
2632
  });
2628
2633
  const { is } = useViewPort_default();
2629
2634
  const isTabletBelow = is("tablet", "below");
@@ -2632,13 +2637,19 @@ var MiniBanner = ({
2632
2637
  const pretitleNode = (_a = slots.pretitle) != null ? _a : pretitle;
2633
2638
  const titleNode = (_b = slots.title) != null ? _b : title;
2634
2639
  const subtitleNode = (_c = slots.subtitle) != null ? _c : subtitle;
2640
+ const goBackNode = slots == null ? void 0 : slots.goBack;
2635
2641
  return /* @__PURE__ */ jsxs("div", { className: clsx15(MiniBanner_module_default.minibanner, MiniBanner_module_default[variant], className), children: [
2636
2642
  ((background == null ? void 0 : background.src) || ((_d = background == null ? void 0 : background.desktop) == null ? void 0 : _d.src) || ((_e = background == null ? void 0 : background.mobile) == null ? void 0 : _e.src)) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.background }, background)),
2637
2643
  /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.wrapper, children: [
2638
2644
  /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.textContainer, children: [
2639
2645
  (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: MiniBanner_module_default.logo }, logo)),
2640
2646
  pretitleNode && /* @__PURE__ */ jsx("div", { className: clsx15(MiniBanner_module_default.pretitle, "small"), children: pretitleNode }),
2641
- /* @__PURE__ */ jsx("div", { className: MiniBanner_module_default.headingWrapper, children: titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode }) }),
2647
+ /* @__PURE__ */ jsxs("div", { className: MiniBanner_module_default.headingWrapper, children: [
2648
+ goBackNode ? React66.cloneElement(goBackNode, {
2649
+ className: clsx15("back-button", MiniBanner_module_default["back-button"])
2650
+ }) : null,
2651
+ titleNode && /* @__PURE__ */ jsx("div", { className: clsx15(MiniBanner_module_default.title, isMiniBannerTextLeft ? "h1" : "h4"), children: titleNode })
2652
+ ] }),
2642
2653
  subtitleNode && /* @__PURE__ */ jsx(
2643
2654
  "div",
2644
2655
  {
@@ -2671,7 +2682,8 @@ var MiniBanner = ({
2671
2682
  // src/widgets/MiniBanner/index.ts
2672
2683
  var MiniBanner2 = Object.assign(MiniBanner, {
2673
2684
  Title: MiniBannerTitle,
2674
- Subtitle: MiniBannerSubtitle
2685
+ Subtitle: MiniBannerSubtitle,
2686
+ GoBack: MiniBannerGoBack
2675
2687
  });
2676
2688
  var MiniSectionCtaTitle = ({ children }) => {
2677
2689
  return /* @__PURE__ */ jsx(Fragment, { children });
@@ -3725,7 +3737,7 @@ var NewsCardList = ({
3725
3737
  /* @__PURE__ */ jsx(BlogCardGrid2, { items: cards, hasContainer: false, renderLink })
3726
3738
  ] })
3727
3739
  ] }),
3728
- paginationNode ? React65.cloneElement(paginationNode, {
3740
+ paginationNode ? React66.cloneElement(paginationNode, {
3729
3741
  className: clsx15("pagination", NewsCardList_module_default["pagination"])
3730
3742
  }) : null
3731
3743
  ] })
@@ -3840,7 +3852,7 @@ var BlogSearchResultsList = ({
3840
3852
  const searchNode = (_a = slots.search) != null ? _a : searchResult;
3841
3853
  const paginationNode = slots.pagination;
3842
3854
  return /* @__PURE__ */ jsx("div", { className: clsx15("search-results-list", BlogSearchResultsList_module_default["search-results-list"], className), children: /* @__PURE__ */ jsxs(Container, { className: clsx15("container", BlogSearchResultsList_module_default["container"]), children: [
3843
- typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React65.isValidElement(searchNode) ? React65.cloneElement(searchNode, {
3855
+ typeof searchNode === "string" ? /* @__PURE__ */ jsx("span", { className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"]), children: searchNode }) : React66.isValidElement(searchNode) ? React66.cloneElement(searchNode, {
3844
3856
  className: clsx15("search-result", BlogSearchResultsList_module_default["search-result"])
3845
3857
  }) : null,
3846
3858
  /* @__PURE__ */ jsxs("div", { className: clsx15("wrapper", BlogSearchResultsList_module_default["wrapper"]), children: [
@@ -3868,7 +3880,7 @@ var BlogSearchResultsList = ({
3868
3880
  ),
3869
3881
  /* @__PURE__ */ jsx(BlogCardGrid2, { items, hasContainer: false, renderLink })
3870
3882
  ] }),
3871
- paginationNode ? React65.cloneElement(paginationNode, {
3883
+ paginationNode ? React66.cloneElement(paginationNode, {
3872
3884
  className: clsx15("pagination", BlogSearchResultsList_module_default["pagination"])
3873
3885
  }) : null
3874
3886
  ] }) });