@digital-b2c/coreui-kit 0.19.1 → 0.20.0
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 +82 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +211 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +82 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4554,7 +4554,8 @@ var TextEvent2 = Object.assign(TextEvent, {
|
|
|
4554
4554
|
var TextBody_module_default = {
|
|
4555
4555
|
textBody: "TextBody_module_textBody",
|
|
4556
4556
|
body: "TextBody_module_body",
|
|
4557
|
-
title: "TextBody_module_title"
|
|
4557
|
+
title: "TextBody_module_title",
|
|
4558
|
+
articleBigPadding: "TextBody_module_articleBigPadding"
|
|
4558
4559
|
};
|
|
4559
4560
|
var TextBodyTitle = ({ children }) => {
|
|
4560
4561
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
@@ -4572,17 +4573,24 @@ var TextBody = (props) => {
|
|
|
4572
4573
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
4573
4574
|
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
4574
4575
|
const isTableCenter = variant === "table-center";
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4576
|
+
const isArticleBigPadding = variant === "ArticleBigPadding";
|
|
4577
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4578
|
+
Container,
|
|
4579
|
+
{
|
|
4580
|
+
className: clsx50__default.default(TextBody_module_default.textBody, isArticleBigPadding && TextBody_module_default.articleBigPadding, className),
|
|
4581
|
+
children: [
|
|
4582
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4583
|
+
Text,
|
|
4584
|
+
{
|
|
4585
|
+
tag: isTableCenter ? "h4" : "h3",
|
|
4586
|
+
className: clsx50__default.default(TextBody_module_default.title, isTableCenter ? "text-center" : titleAlign),
|
|
4587
|
+
children: titleNode
|
|
4588
|
+
}
|
|
4589
|
+
),
|
|
4590
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
|
|
4591
|
+
]
|
|
4592
|
+
}
|
|
4593
|
+
);
|
|
4586
4594
|
};
|
|
4587
4595
|
|
|
4588
4596
|
// src/widgets/TextBody/index.ts
|
|
@@ -5869,6 +5877,67 @@ var BrandsTab = (props) => {
|
|
|
5869
5877
|
|
|
5870
5878
|
// src/widgets/BrandsTab/index.tsx
|
|
5871
5879
|
var BrandsTab2 = Object.assign(BrandsTab, {});
|
|
5880
|
+
|
|
5881
|
+
// src/widgets/TimelineCards/TimelineCards.module.scss
|
|
5882
|
+
var TimelineCards_module_default = {
|
|
5883
|
+
"timeline-cards": "TimelineCards_module_timeline-cards",
|
|
5884
|
+
"timeline-steps": "TimelineCards_module_timeline-steps",
|
|
5885
|
+
"step-container": "TimelineCards_module_step-container",
|
|
5886
|
+
"step-content": "TimelineCards_module_step-content",
|
|
5887
|
+
"timeline-cards-container": "TimelineCards_module_timeline-cards-container",
|
|
5888
|
+
"timeline-card-item": "TimelineCards_module_timeline-card-item",
|
|
5889
|
+
card: "TimelineCards_module_card",
|
|
5890
|
+
"card-text": "TimelineCards_module_card-text",
|
|
5891
|
+
"timeline-cards-text": "TimelineCards_module_timeline-cards-text",
|
|
5892
|
+
container: "TimelineCards_module_container",
|
|
5893
|
+
wrapper: "TimelineCards_module_wrapper",
|
|
5894
|
+
"card-logo": "TimelineCards_module_card-logo",
|
|
5895
|
+
"step-divider": "TimelineCards_module_step-divider"
|
|
5896
|
+
};
|
|
5897
|
+
var TimelineCard = ({ text, logo }) => {
|
|
5898
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx50__default.default(TimelineCards_module_default["card"]), children: [
|
|
5899
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: TimelineCards_module_default["card-logo"] }, logo)),
|
|
5900
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx50__default.default(TimelineCards_module_default["card-text"]), children: text })
|
|
5901
|
+
] });
|
|
5902
|
+
};
|
|
5903
|
+
var TimelineSteps = ({ length }) => {
|
|
5904
|
+
if (length === 0) return null;
|
|
5905
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ol", { className: clsx50__default.default(TimelineCards_module_default["timeline-steps"]), children: Array.from({ length }).map((_, index) => {
|
|
5906
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React72.Fragment, { children: [
|
|
5907
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { className: clsx50__default.default(TimelineCards_module_default["step-container"]), children: [
|
|
5908
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx50__default.default(TimelineCards_module_default["step-content"]), "aria-hidden": "true", children: index + 1 }),
|
|
5909
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sr-only", children: [
|
|
5910
|
+
"Step ",
|
|
5911
|
+
index + 1,
|
|
5912
|
+
" of ",
|
|
5913
|
+
length
|
|
5914
|
+
] })
|
|
5915
|
+
] }),
|
|
5916
|
+
index < length - 1 ? /* @__PURE__ */ jsxRuntime.jsx("li", { className: clsx50__default.default(TimelineCards_module_default["step-divider"]), role: "presentation" }) : null
|
|
5917
|
+
] }, index);
|
|
5918
|
+
}) });
|
|
5919
|
+
};
|
|
5920
|
+
var TimelineCards = ({ captionText, cards, className }) => {
|
|
5921
|
+
const slicedCards = cards == null ? void 0 : cards.slice(0, 3);
|
|
5922
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(TimelineCards_module_default["timeline-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx50__default.default(TimelineCards_module_default["container"]), children: [
|
|
5923
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx50__default.default(TimelineCards_module_default["wrapper"]), children: [
|
|
5924
|
+
/* @__PURE__ */ jsxRuntime.jsx(TimelineSteps, { length: (slicedCards == null ? void 0 : slicedCards.length) || 0 }),
|
|
5925
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid, { columns: 3, gap: 16, className: clsx50__default.default(TimelineCards_module_default["timeline-cards-container"]), children: slicedCards == null ? void 0 : slicedCards.map((card, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5926
|
+
GridItem,
|
|
5927
|
+
{
|
|
5928
|
+
colSpan: { md: 3 },
|
|
5929
|
+
className: clsx50__default.default(TimelineCards_module_default["timeline-card-item"]),
|
|
5930
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TimelineCard, __spreadValues({}, card))
|
|
5931
|
+
},
|
|
5932
|
+
index
|
|
5933
|
+
)) })
|
|
5934
|
+
] }),
|
|
5935
|
+
captionText && /* @__PURE__ */ jsxRuntime.jsx("p", { className: clsx50__default.default(TimelineCards_module_default["timeline-cards-text"]), children: captionText })
|
|
5936
|
+
] }) });
|
|
5937
|
+
};
|
|
5938
|
+
|
|
5939
|
+
// src/widgets/TimelineCards/index.tsx
|
|
5940
|
+
var TimelineCards2 = Object.assign(TimelineCards, {});
|
|
5872
5941
|
function useIntersectionObserver({
|
|
5873
5942
|
animateOnce = false,
|
|
5874
5943
|
options = {}
|
|
@@ -5950,6 +6019,7 @@ exports.TextBody = TextBody2;
|
|
|
5950
6019
|
exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
|
|
5951
6020
|
exports.TextCenterWithMedia = TextCenterWithMedia2;
|
|
5952
6021
|
exports.TextEvent = TextEvent2;
|
|
6022
|
+
exports.TimelineCards = TimelineCards2;
|
|
5953
6023
|
exports.TwoColTextMenu = TwoColTextMenu;
|
|
5954
6024
|
exports.UpcomingEventCard = UpcomingEventCard;
|
|
5955
6025
|
exports.UserMenu = UserMenu;
|