@digital-b2c/coreui-kit 0.24.3 → 0.26.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 +122 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +246 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.mjs +121 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3066,7 +3066,8 @@ var Accordion_module_default = {
|
|
|
3066
3066
|
accordionHeaderLeft: "Accordion_module_accordionHeaderLeft",
|
|
3067
3067
|
accordionChevron: "Accordion_module_accordionChevron",
|
|
3068
3068
|
accordionContent: "Accordion_module_accordionContent",
|
|
3069
|
-
accordionContentInner: "Accordion_module_accordionContentInner"
|
|
3069
|
+
accordionContentInner: "Accordion_module_accordionContentInner",
|
|
3070
|
+
accordionContentDivider: "Accordion_module_accordionContentDivider"
|
|
3070
3071
|
};
|
|
3071
3072
|
var AccordionItem = ({
|
|
3072
3073
|
id,
|
|
@@ -3075,6 +3076,7 @@ var AccordionItem = ({
|
|
|
3075
3076
|
isOpen = false,
|
|
3076
3077
|
onToggle,
|
|
3077
3078
|
renderItemHeader,
|
|
3079
|
+
hasDivider,
|
|
3078
3080
|
className
|
|
3079
3081
|
}) => {
|
|
3080
3082
|
const contentRef = React72.useRef(null);
|
|
@@ -3118,6 +3120,7 @@ var AccordionItem = ({
|
|
|
3118
3120
|
"div",
|
|
3119
3121
|
{
|
|
3120
3122
|
className: clsx65__default.default(
|
|
3123
|
+
"accordionItem",
|
|
3121
3124
|
Accordion_module_default.accordionItem,
|
|
3122
3125
|
{
|
|
3123
3126
|
[Accordion_module_default.accordionItemOpen]: isOpen
|
|
@@ -3170,6 +3173,13 @@ var AccordionItem = ({
|
|
|
3170
3173
|
}
|
|
3171
3174
|
)
|
|
3172
3175
|
}
|
|
3176
|
+
),
|
|
3177
|
+
hasDivider && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3178
|
+
"div",
|
|
3179
|
+
{
|
|
3180
|
+
className: clsx65__default.default("accordionContentDivider", Accordion_module_default.accordionContentDivider),
|
|
3181
|
+
"aria-hidden": "true"
|
|
3182
|
+
}
|
|
3173
3183
|
)
|
|
3174
3184
|
]
|
|
3175
3185
|
}
|
|
@@ -3211,6 +3221,7 @@ var Accordion = ({
|
|
|
3211
3221
|
isOpen: openIds.includes(item.id),
|
|
3212
3222
|
onToggle: handleToggle,
|
|
3213
3223
|
renderItemHeader: item.renderItemHeader,
|
|
3224
|
+
hasDivider: item.hasDivider,
|
|
3214
3225
|
children: item.content
|
|
3215
3226
|
},
|
|
3216
3227
|
item.id
|
|
@@ -6312,6 +6323,114 @@ var PodcastGridCards = ({ title, items, className }) => {
|
|
|
6312
6323
|
|
|
6313
6324
|
// src/widgets/PodcastGridCards/index.tsx
|
|
6314
6325
|
var PodcastGridCards2 = Object.assign(PodcastGridCards, {});
|
|
6326
|
+
|
|
6327
|
+
// src/widgets/TextFootnote/TextFootnote.module.scss
|
|
6328
|
+
var TextFootnote_module_default = {
|
|
6329
|
+
textFootnote: "TextFootnote_module_textFootnote",
|
|
6330
|
+
title: "TextFootnote_module_title",
|
|
6331
|
+
body: "TextFootnote_module_body"
|
|
6332
|
+
};
|
|
6333
|
+
var TextFootnoteTitle = ({ children }) => {
|
|
6334
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
6335
|
+
};
|
|
6336
|
+
var TextFootnoteBody = ({ children }) => {
|
|
6337
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
6338
|
+
};
|
|
6339
|
+
var TextFootnote = (props) => {
|
|
6340
|
+
var _a, _b;
|
|
6341
|
+
const { className, body, title, titleAlign = "text-left", children } = props;
|
|
6342
|
+
const slots = resolveCompoundSlots(children, {
|
|
6343
|
+
title: TextFootnoteTitle,
|
|
6344
|
+
body: TextFootnoteBody
|
|
6345
|
+
});
|
|
6346
|
+
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
6347
|
+
const bodyNode = (_b = slots.body) != null ? _b : body;
|
|
6348
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx65__default.default(TextFootnote_module_default.textFootnote, className), children: [
|
|
6349
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h4", className: clsx65__default.default(TextFootnote_module_default.title, titleAlign), children: titleNode }),
|
|
6350
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx65__default.default(TextFootnote_module_default.body), children: bodyNode })
|
|
6351
|
+
] });
|
|
6352
|
+
};
|
|
6353
|
+
|
|
6354
|
+
// src/widgets/TextFootnote/index.ts
|
|
6355
|
+
var TextFootnote2 = Object.assign(TextFootnote, {
|
|
6356
|
+
Title: TextFootnoteTitle,
|
|
6357
|
+
Body: TextFootnoteBody
|
|
6358
|
+
});
|
|
6359
|
+
|
|
6360
|
+
// src/widgets/Faq/Faq.module.scss
|
|
6361
|
+
var Faq_module_default = {
|
|
6362
|
+
faq: "Faq_module_faq",
|
|
6363
|
+
accordion: "Faq_module_accordion",
|
|
6364
|
+
"accordion-header": "Faq_module_accordion-header",
|
|
6365
|
+
"accordion-content": "Faq_module_accordion-content",
|
|
6366
|
+
"accordion-title": "Faq_module_accordion-title",
|
|
6367
|
+
accordionChevron: "Faq_module_accordionChevron",
|
|
6368
|
+
collapsed: "Faq_module_collapsed"
|
|
6369
|
+
};
|
|
6370
|
+
var Faq = (props) => {
|
|
6371
|
+
const { items, className } = props;
|
|
6372
|
+
const accordionItems = React72.useMemo(() => {
|
|
6373
|
+
return (items == null ? void 0 : items.map((item, index) => ({
|
|
6374
|
+
id: index,
|
|
6375
|
+
title: item.title,
|
|
6376
|
+
content: /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx65__default.default(Faq_module_default["accordion-content"]), children: item.body }),
|
|
6377
|
+
hasDivider: true,
|
|
6378
|
+
renderItemHeader: ({ isOpen, toggle }) => {
|
|
6379
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6380
|
+
"button",
|
|
6381
|
+
{
|
|
6382
|
+
className: clsx65__default.default(Faq_module_default["accordion-header"], {
|
|
6383
|
+
[Faq_module_default["accordion-header-open"]]: isOpen
|
|
6384
|
+
}),
|
|
6385
|
+
onClick: toggle,
|
|
6386
|
+
"aria-expanded": isOpen,
|
|
6387
|
+
"aria-label": `Toggle accordion item #${index + 1}`,
|
|
6388
|
+
children: [
|
|
6389
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6390
|
+
"span",
|
|
6391
|
+
{
|
|
6392
|
+
className: clsx65__default.default(Faq_module_default["accordion-title"], {
|
|
6393
|
+
[Faq_module_default.accordionChevronOpen]: isOpen
|
|
6394
|
+
}),
|
|
6395
|
+
children: item.title
|
|
6396
|
+
}
|
|
6397
|
+
),
|
|
6398
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6399
|
+
"span",
|
|
6400
|
+
{
|
|
6401
|
+
className: clsx65__default.default(Faq_module_default.accordionChevron, {
|
|
6402
|
+
[Faq_module_default.accordionChevronOpen]: isOpen
|
|
6403
|
+
}),
|
|
6404
|
+
children: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", size: 40 }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6405
|
+
Icon,
|
|
6406
|
+
{
|
|
6407
|
+
type: "downChevronBlack",
|
|
6408
|
+
size: 40,
|
|
6409
|
+
stroke: "#949494",
|
|
6410
|
+
className: clsx65__default.default(Faq_module_default.collapsed)
|
|
6411
|
+
}
|
|
6412
|
+
)
|
|
6413
|
+
}
|
|
6414
|
+
)
|
|
6415
|
+
]
|
|
6416
|
+
}
|
|
6417
|
+
);
|
|
6418
|
+
}
|
|
6419
|
+
}))) || [];
|
|
6420
|
+
}, [items]);
|
|
6421
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container, { className: clsx65__default.default(Faq_module_default["faq"], className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6422
|
+
Accordion,
|
|
6423
|
+
{
|
|
6424
|
+
items: accordionItems,
|
|
6425
|
+
allowMultiple: true,
|
|
6426
|
+
defaultOpenIds: [],
|
|
6427
|
+
className: clsx65__default.default(Faq_module_default["accordion"])
|
|
6428
|
+
}
|
|
6429
|
+
) });
|
|
6430
|
+
};
|
|
6431
|
+
|
|
6432
|
+
// src/widgets/Faq/index.tsx
|
|
6433
|
+
var Faq2 = Object.assign(Faq, {});
|
|
6315
6434
|
function useIntersectionObserver({
|
|
6316
6435
|
animateOnce = false,
|
|
6317
6436
|
options = {}
|
|
@@ -6360,6 +6479,7 @@ exports.ContactModule = ContactModule2;
|
|
|
6360
6479
|
exports.Container = Container;
|
|
6361
6480
|
exports.CountingCard = CountingCard2;
|
|
6362
6481
|
exports.EventList = EventList2;
|
|
6482
|
+
exports.Faq = Faq2;
|
|
6363
6483
|
exports.FeaturedNewsHighlights = FeaturedNewsHighlights2;
|
|
6364
6484
|
exports.FilterBar = FilterBar;
|
|
6365
6485
|
exports.Footer = Footer;
|
|
@@ -6397,6 +6517,7 @@ exports.TextBody = TextBody2;
|
|
|
6397
6517
|
exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
|
|
6398
6518
|
exports.TextCenterWithMedia = TextCenterWithMedia2;
|
|
6399
6519
|
exports.TextEvent = TextEvent2;
|
|
6520
|
+
exports.TextFootnote = TextFootnote2;
|
|
6400
6521
|
exports.TimelineCards = TimelineCards2;
|
|
6401
6522
|
exports.TwoColTextMenu = TwoColTextMenu;
|
|
6402
6523
|
exports.UpcomingEventCard = UpcomingEventCard;
|