@digital-b2c/coreui-kit 0.21.2 → 0.21.4

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
@@ -5699,6 +5699,7 @@ var QuoteSectionBlock_module_default = {
5699
5699
  inner: "QuoteSectionBlock_module_inner",
5700
5700
  title: "QuoteSectionBlock_module_title",
5701
5701
  swiperContainer: "QuoteSectionBlock_module_swiperContainer",
5702
+ swiperContainerFullWidth: "QuoteSectionBlock_module_swiperContainerFullWidth",
5702
5703
  card: "QuoteSectionBlock_module_card",
5703
5704
  quoteLogo: "QuoteSectionBlock_module_quoteLogo",
5704
5705
  bodyText: "QuoteSectionBlock_module_bodyText",
@@ -5709,7 +5710,12 @@ var QuoteSectionBlock_module_default = {
5709
5710
  jobTitleLogo: "QuoteSectionBlock_module_jobTitleLogo",
5710
5711
  controls: "QuoteSectionBlock_module_controls"
5711
5712
  };
5712
- var QuoteSectionBlock = ({ className, title, items = [] }) => {
5713
+ var QuoteSectionBlock = ({
5714
+ className,
5715
+ title,
5716
+ viewtype,
5717
+ items = []
5718
+ }) => {
5713
5719
  const { is } = useViewPort_default();
5714
5720
  const isMobile = is("tablet", "below");
5715
5721
  const [swiperInstance, setSwiperInstance] = React72.useState(null);
@@ -5717,7 +5723,7 @@ var QuoteSectionBlock = ({ className, title, items = [] }) => {
5717
5723
  if (!items.length) return null;
5718
5724
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx52__default.default(QuoteSectionBlock_module_default.quoteSectionBlock, className), children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.inner, children: [
5719
5725
  title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: QuoteSectionBlock_module_default.title, children: title }),
5720
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: QuoteSectionBlock_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
5726
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: !viewtype ? QuoteSectionBlock_module_default.swiperContainer : QuoteSectionBlock_module_default.swiperContainerFullWidth, children: /* @__PURE__ */ jsxRuntime.jsx(
5721
5727
  react$1.Swiper,
5722
5728
  {
5723
5729
  slidesPerView: "auto",
@@ -5922,7 +5928,7 @@ var BrandsTab = (props) => {
5922
5928
  const isTabletBelow = is("tablet", "below");
5923
5929
  const accordionItems = React72.useMemo(() => {
5924
5930
  return (tabs == null ? void 0 : tabs.map((tab, index) => {
5925
- var _a2, _b2, _c2, _d2, _e2, _f, _g;
5931
+ var _a2, _b2, _c2, _d2, _e2;
5926
5932
  return {
5927
5933
  id: index,
5928
5934
  title: typeof tab.trigger.active === "string" ? tab.trigger.active : /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({}, tab.trigger.active)),
@@ -5959,10 +5965,10 @@ var BrandsTab = (props) => {
5959
5965
  __spreadProps(__spreadValues({
5960
5966
  variant: "secondary",
5961
5967
  className: BrandsTab_module_default["card-cta"]
5962
- }, (_b2 = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _b2.cta), {
5963
- href: (_d2 = (_c2 = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _c2.cta) == null ? void 0 : _d2.url,
5964
- title: (_e2 = tab.cta) == null ? void 0 : _e2.label,
5965
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-label": (_f = tab.cta) == null ? void 0 : _f.label, children: (_g = tab.cta) == null ? void 0 : _g.label })
5968
+ }, tab.cta), {
5969
+ href: (_b2 = tab.cta) == null ? void 0 : _b2.url,
5970
+ title: (_c2 = tab.cta) == null ? void 0 : _c2.label,
5971
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-label": (_d2 = tab.cta) == null ? void 0 : _d2.label, children: (_e2 = tab.cta) == null ? void 0 : _e2.label })
5966
5972
  })
5967
5973
  )
5968
5974
  ]