@digital-b2c/coreui-kit 0.18.3 → 0.18.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
@@ -1318,22 +1318,24 @@ var Pagination = ({
1318
1318
  var PracticeCard_module_default = {
1319
1319
  "practice-card": "PracticeCard_module_practice-card",
1320
1320
  wrapper: "PracticeCard_module_wrapper",
1321
+ "focusable-card": "PracticeCard_module_focusable-card",
1321
1322
  background: "PracticeCard_module_background",
1323
+ ctaRest: "PracticeCard_module_ctaRest",
1324
+ ctaHover: "PracticeCard_module_ctaHover",
1322
1325
  container: "PracticeCard_module_container",
1323
1326
  title: "PracticeCard_module_title",
1324
- cta: "PracticeCard_module_cta",
1325
- ctaRest: "PracticeCard_module_ctaRest",
1326
- ctaHover: "PracticeCard_module_ctaHover"
1327
+ cta: "PracticeCard_module_cta"
1327
1328
  };
1328
1329
  var PracticeCard = ({ className, title, cta, image }) => {
1329
1330
  const { url: href, isExternal } = cta != null ? cta : {};
1330
1331
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
1331
1332
  ConditionalWrapper,
1332
1333
  __spreadProps(__spreadValues({
1333
- className: PracticeCard_module_default.wrapper,
1334
+ className: clsx50__default.default(PracticeCard_module_default.wrapper, PracticeCard_module_default["focusable-card"]),
1334
1335
  wrapper: Anchor,
1335
1336
  fallback: "div",
1336
- condition: !!href
1337
+ condition: !!href,
1338
+ tabIndex: 0
1337
1339
  }, href ? { href, isExternal } : {}), {
1338
1340
  children: [
1339
1341
  image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
@@ -4157,8 +4159,8 @@ var PracticePathCards = ({
4157
4159
  const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
4158
4160
  const footerNode = (_c = slots.footer) != null ? _c : footer;
4159
4161
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: PracticePathCards_module_default.container, children: [
4160
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
4161
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
4162
+ (titleNode || subtitleNode || (cta == null ? void 0 : cta.url)) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
4163
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: PracticePathCards_module_default.content, children: [
4162
4164
  titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
4163
4165
  subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "subheading", children: subtitleNode })
4164
4166
  ] }),
@@ -4173,7 +4175,7 @@ var PracticePathCards = ({
4173
4175
  }
4174
4176
  ) })
4175
4177
  ] }),
4176
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
4178
+ (cards == null ? void 0 : cards.length) !== 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsxRuntime.jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
4177
4179
  footerNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "smallest", children: footerNode })
4178
4180
  ] }) });
4179
4181
  };