@digital-b2c/coreui-kit 0.21.1 → 0.21.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/dist/index.mjs CHANGED
@@ -5906,14 +5906,14 @@ var BrandsTab_module_default = {
5906
5906
  "card-description": "BrandsTab_module_card-description"
5907
5907
  };
5908
5908
  var BrandsTab = (props) => {
5909
- var _a, _b, _c;
5909
+ var _a, _b, _c, _d, _e;
5910
5910
  const { title, subtitle, className, tabs } = props;
5911
5911
  const [activeIndex, setActiveIndex] = useState(0);
5912
5912
  const { is } = useViewPort_default();
5913
5913
  const isTabletBelow = is("tablet", "below");
5914
5914
  const accordionItems = useMemo(() => {
5915
5915
  return (tabs == null ? void 0 : tabs.map((tab, index) => {
5916
- var _a2, _b2, _c2, _d, _e;
5916
+ var _a2, _b2, _c2, _d2, _e2;
5917
5917
  return {
5918
5918
  id: index,
5919
5919
  title: typeof tab.trigger.active === "string" ? tab.trigger.active : /* @__PURE__ */ jsx(Picture, __spreadValues({}, tab.trigger.active)),
@@ -5947,13 +5947,14 @@ var BrandsTab = (props) => {
5947
5947
  tab.image && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, tab.image), { className: BrandsTab_module_default["card-image"] })),
5948
5948
  /* @__PURE__ */ jsx(
5949
5949
  Button,
5950
- {
5950
+ __spreadProps(__spreadValues({
5951
5951
  variant: "secondary",
5952
- className: BrandsTab_module_default["card-cta"],
5953
- logo: (_b2 = tab.cta) == null ? void 0 : _b2.logo,
5952
+ className: BrandsTab_module_default["card-cta"]
5953
+ }, tab.cta), {
5954
+ href: (_b2 = tab.cta) == null ? void 0 : _b2.url,
5954
5955
  title: (_c2 = tab.cta) == null ? void 0 : _c2.label,
5955
- children: /* @__PURE__ */ jsx("span", { "aria-label": (_d = tab.cta) == null ? void 0 : _d.label, children: (_e = tab.cta) == null ? void 0 : _e.label })
5956
- }
5956
+ children: /* @__PURE__ */ jsx("span", { "aria-label": (_d2 = tab.cta) == null ? void 0 : _d2.label, children: (_e2 = tab.cta) == null ? void 0 : _e2.label })
5957
+ })
5957
5958
  )
5958
5959
  ]
5959
5960
  }
@@ -6051,12 +6052,13 @@ var BrandsTab = (props) => {
6051
6052
  (tabs == null ? void 0 : tabs[activeIndex].image) && /* @__PURE__ */ jsx(Picture, __spreadProps(__spreadValues({}, tabs == null ? void 0 : tabs[activeIndex].image), { className: BrandsTab_module_default["card-image"] })),
6052
6053
  /* @__PURE__ */ jsx(
6053
6054
  Button,
6054
- {
6055
+ __spreadProps(__spreadValues({
6055
6056
  variant: "secondary",
6056
- className: BrandsTab_module_default["card-cta"],
6057
- logo: (_b = tabs == null ? void 0 : tabs[activeIndex].cta) == null ? void 0 : _b.logo,
6058
- children: (_c = tabs == null ? void 0 : tabs[activeIndex].cta) == null ? void 0 : _c.label
6059
- }
6057
+ className: BrandsTab_module_default["card-cta"]
6058
+ }, (_b = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _b.cta), {
6059
+ href: (_d = (_c = tabs == null ? void 0 : tabs[activeIndex]) == null ? void 0 : _c.cta) == null ? void 0 : _d.url,
6060
+ children: (_e = tabs == null ? void 0 : tabs[activeIndex].cta) == null ? void 0 : _e.label
6061
+ })
6060
6062
  )
6061
6063
  ] })
6062
6064
  ]