@digital-b2c/coreui-kit 0.18.2 → 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/LICENSE.txt +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +53 -2
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +12 -9
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -101
package/dist/index.mjs
CHANGED
|
@@ -1309,22 +1309,24 @@ var Pagination = ({
|
|
|
1309
1309
|
var PracticeCard_module_default = {
|
|
1310
1310
|
"practice-card": "PracticeCard_module_practice-card",
|
|
1311
1311
|
wrapper: "PracticeCard_module_wrapper",
|
|
1312
|
+
"focusable-card": "PracticeCard_module_focusable-card",
|
|
1312
1313
|
background: "PracticeCard_module_background",
|
|
1314
|
+
ctaRest: "PracticeCard_module_ctaRest",
|
|
1315
|
+
ctaHover: "PracticeCard_module_ctaHover",
|
|
1313
1316
|
container: "PracticeCard_module_container",
|
|
1314
1317
|
title: "PracticeCard_module_title",
|
|
1315
|
-
cta: "PracticeCard_module_cta"
|
|
1316
|
-
ctaRest: "PracticeCard_module_ctaRest",
|
|
1317
|
-
ctaHover: "PracticeCard_module_ctaHover"
|
|
1318
|
+
cta: "PracticeCard_module_cta"
|
|
1318
1319
|
};
|
|
1319
1320
|
var PracticeCard = ({ className, title, cta, image }) => {
|
|
1320
1321
|
const { url: href, isExternal } = cta != null ? cta : {};
|
|
1321
1322
|
return /* @__PURE__ */ jsx("div", { className: clsx50(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
|
|
1322
1323
|
ConditionalWrapper,
|
|
1323
1324
|
__spreadProps(__spreadValues({
|
|
1324
|
-
className: PracticeCard_module_default.wrapper,
|
|
1325
|
+
className: clsx50(PracticeCard_module_default.wrapper, PracticeCard_module_default["focusable-card"]),
|
|
1325
1326
|
wrapper: Anchor,
|
|
1326
1327
|
fallback: "div",
|
|
1327
|
-
condition: !!href
|
|
1328
|
+
condition: !!href,
|
|
1329
|
+
tabIndex: 0
|
|
1328
1330
|
}, href ? { href, isExternal } : {}), {
|
|
1329
1331
|
children: [
|
|
1330
1332
|
image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: PracticeCard_module_default.background }, image)),
|
|
@@ -2618,6 +2620,7 @@ var HeroBanner_module_default = {
|
|
|
2618
2620
|
container: "HeroBanner_module_container",
|
|
2619
2621
|
banner: "HeroBanner_module_banner",
|
|
2620
2622
|
text: "HeroBanner_module_text",
|
|
2623
|
+
fullWidth: "HeroBanner_module_fullWidth",
|
|
2621
2624
|
titleLogo: "HeroBanner_module_titleLogo",
|
|
2622
2625
|
title: "HeroBanner_module_title",
|
|
2623
2626
|
subtitle: "HeroBanner_module_subtitle",
|
|
@@ -2671,7 +2674,7 @@ var HeroBanner = ({
|
|
|
2671
2674
|
return /* @__PURE__ */ jsxs("div", { className: clsx50(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], HeroBanner_module_default[type], className), children: [
|
|
2672
2675
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
|
|
2673
2676
|
/* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
|
|
2674
|
-
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
|
|
2677
|
+
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: clsx50(HeroBanner_module_default.text, vMainHeroBanner && HeroBanner_module_default.fullWidth), children: [
|
|
2675
2678
|
isTitleLogo && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: HeroBanner_module_default.titleLogo }, logo)),
|
|
2676
2679
|
titleNode && /* @__PURE__ */ jsx(
|
|
2677
2680
|
Text,
|
|
@@ -4147,8 +4150,8 @@ var PracticePathCards = ({
|
|
|
4147
4150
|
const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
|
|
4148
4151
|
const footerNode = (_c = slots.footer) != null ? _c : footer;
|
|
4149
4152
|
return /* @__PURE__ */ jsx("div", { className: clsx50(PracticePathCards_module_default["practice-path-cards"], className), children: /* @__PURE__ */ jsxs(Container, { className: PracticePathCards_module_default.container, children: [
|
|
4150
|
-
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
4151
|
-
/* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
4153
|
+
(titleNode || subtitleNode || (cta == null ? void 0 : cta.url)) && /* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.wrapper, children: [
|
|
4154
|
+
(titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: PracticePathCards_module_default.content, children: [
|
|
4152
4155
|
titleNode && /* @__PURE__ */ jsx("h2", { children: titleNode }),
|
|
4153
4156
|
subtitleNode && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitleNode })
|
|
4154
4157
|
] }),
|
|
@@ -4163,7 +4166,7 @@ var PracticePathCards = ({
|
|
|
4163
4166
|
}
|
|
4164
4167
|
) })
|
|
4165
4168
|
] }),
|
|
4166
|
-
/* @__PURE__ */ jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
|
|
4169
|
+
(cards == null ? void 0 : cards.length) !== 0 && /* @__PURE__ */ jsx("div", { className: PracticePathCards_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(PracticeCard, __spreadValues({ className: PracticePathCards_module_default.card }, card), key)) }),
|
|
4167
4170
|
footerNode && /* @__PURE__ */ jsx("div", { className: "smallest", children: footerNode })
|
|
4168
4171
|
] }) });
|
|
4169
4172
|
};
|