@digital-b2c/coreui-kit 0.7.1 → 0.7.2
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 +42 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +52 -105
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +42 -57
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1332,6 +1332,9 @@ var HeroBannerCarousel_module_default = {
|
|
|
1332
1332
|
inner: "HeroBannerCarousel_module_inner",
|
|
1333
1333
|
swiperContainer: "HeroBannerCarousel_module_swiperContainer",
|
|
1334
1334
|
card: "HeroBannerCarousel_module_card",
|
|
1335
|
+
cardCorner: "HeroBannerCarousel_module_cardCorner",
|
|
1336
|
+
cardCornerImage: "HeroBannerCarousel_module_cardCornerImage",
|
|
1337
|
+
cardCornerDot: "HeroBannerCarousel_module_cardCornerDot",
|
|
1335
1338
|
cardContent: "HeroBannerCarousel_module_cardContent",
|
|
1336
1339
|
cardTitle: "HeroBannerCarousel_module_cardTitle",
|
|
1337
1340
|
cardBottom: "HeroBannerCarousel_module_cardBottom",
|
|
@@ -1367,6 +1370,7 @@ var HeroBannerCarousel = ({
|
|
|
1367
1370
|
onSwiper: setSwiperInstance,
|
|
1368
1371
|
onSlideChange: (swiper) => setActiveIndex(swiper.activeIndex),
|
|
1369
1372
|
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(react$1.SwiperSlide, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.card, children: [
|
|
1373
|
+
item.cornerImage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBannerCarousel_module_default.cardCorner, children: isMobile ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: HeroBannerCarousel_module_default.cardCornerDot }) : /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.cornerImage, alt: "", className: HeroBannerCarousel_module_default.cardCornerImage }) }),
|
|
1370
1374
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.cardContent, children: [
|
|
1371
1375
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: HeroBannerCarousel_module_default.cardTitle, children: item.title }),
|
|
1372
1376
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBannerCarousel_module_default.cardBottom, children: [
|
|
@@ -1772,7 +1776,6 @@ var UpcomingEventCard_module_default = {
|
|
|
1772
1776
|
description: "UpcomingEventCard_module_description",
|
|
1773
1777
|
"event-card-footer": "UpcomingEventCard_module_event-card-footer",
|
|
1774
1778
|
horizontal: "UpcomingEventCard_module_horizontal",
|
|
1775
|
-
"event-card-show-image": "UpcomingEventCard_module_event-card-show-image",
|
|
1776
1779
|
"event-card-cta": "UpcomingEventCard_module_event-card-cta",
|
|
1777
1780
|
hidden: "UpcomingEventCard_module_hidden",
|
|
1778
1781
|
"cta-without-image": "UpcomingEventCard_module_cta-without-image",
|
|
@@ -1807,37 +1810,27 @@ var UpcomingEventCard = ({
|
|
|
1807
1810
|
children: [
|
|
1808
1811
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx20__default.default("card-content", UpcomingEventCard_module_default["event-card-content"]), children: [
|
|
1809
1812
|
showImage && image && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, image), { className: clsx20__default.default("card-image", UpcomingEventCard_module_default["event-card-image"]) })),
|
|
1810
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1811
|
-
"
|
|
1812
|
-
{
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
),
|
|
1832
|
-
fullWidth: isBelowMobile,
|
|
1833
|
-
href: cta.url,
|
|
1834
|
-
icon: cta.icon,
|
|
1835
|
-
children: cta.label
|
|
1836
|
-
}
|
|
1837
|
-
)
|
|
1838
|
-
]
|
|
1839
|
-
}
|
|
1840
|
-
)
|
|
1813
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx20__default.default("card-text-content", UpcomingEventCard_module_default["event-card-text-content"]), children: [
|
|
1814
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.date, children: date }),
|
|
1815
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: clsx20__default.default("card-text-title"), children: title }),
|
|
1816
|
+
location && /* @__PURE__ */ jsxRuntime.jsx("span", { className: UpcomingEventCard_module_default.location, children: location }),
|
|
1817
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx20__default.default("card-text-description", UpcomingEventCard_module_default.description), children: description }),
|
|
1818
|
+
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1819
|
+
Button,
|
|
1820
|
+
{
|
|
1821
|
+
variant: "secondary",
|
|
1822
|
+
className: clsx20__default.default(
|
|
1823
|
+
"card-cta",
|
|
1824
|
+
UpcomingEventCard_module_default["event-card-cta"],
|
|
1825
|
+
!hasCTAandImage && UpcomingEventCard_module_default.hidden
|
|
1826
|
+
),
|
|
1827
|
+
fullWidth: isBelowMobile,
|
|
1828
|
+
href: cta.url,
|
|
1829
|
+
icon: cta.icon,
|
|
1830
|
+
children: cta.label
|
|
1831
|
+
}
|
|
1832
|
+
)
|
|
1833
|
+
] })
|
|
1841
1834
|
] }),
|
|
1842
1835
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1843
1836
|
"div",
|
|
@@ -1893,13 +1886,11 @@ var Carousel = (_a) => {
|
|
|
1893
1886
|
var EventList_module_default = {
|
|
1894
1887
|
"event-list-module": "EventList_module_event-list-module",
|
|
1895
1888
|
"event-list-header-container": "EventList_module_event-list-header-container",
|
|
1896
|
-
"event-list-title": "EventList_module_event-list-title",
|
|
1897
1889
|
"event-list-wrapper": "EventList_module_event-list-wrapper",
|
|
1898
1890
|
vertical: "EventList_module_vertical",
|
|
1891
|
+
grey: "EventList_module_grey",
|
|
1899
1892
|
"card-list-item": "EventList_module_card-list-item",
|
|
1900
1893
|
"card-item": "EventList_module_card-item",
|
|
1901
|
-
internalEventList: "EventList_module_internalEventList",
|
|
1902
|
-
"events-page": "EventList_module_events-page",
|
|
1903
1894
|
horizontal: "EventList_module_horizontal",
|
|
1904
1895
|
"carousel-wrapper": "EventList_module_carousel-wrapper",
|
|
1905
1896
|
"carousel-list-item": "EventList_module_carousel-list-item",
|
|
@@ -1908,41 +1899,35 @@ var EventList_module_default = {
|
|
|
1908
1899
|
var EventListTitle = ({ children }) => {
|
|
1909
1900
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
1910
1901
|
};
|
|
1911
|
-
var EventList = ({
|
|
1912
|
-
className,
|
|
1913
|
-
title,
|
|
1914
|
-
items,
|
|
1915
|
-
cta,
|
|
1916
|
-
backgroundColor,
|
|
1917
|
-
variant,
|
|
1918
|
-
children
|
|
1919
|
-
}) => {
|
|
1902
|
+
var EventList = ({ className, title, items, cta, variant, children }) => {
|
|
1920
1903
|
var _a;
|
|
1921
1904
|
const { is } = useViewPort_default();
|
|
1922
1905
|
const slots = resolveCompoundSlots(children, {
|
|
1923
1906
|
title: EventListTitle
|
|
1924
1907
|
});
|
|
1925
1908
|
const titleNode = (_a = slots.title) != null ? _a : title;
|
|
1909
|
+
const isGrey = variant === "grey";
|
|
1926
1910
|
const isBelowTablet = is("tablet", "below");
|
|
1927
1911
|
const cardDirection = isBelowTablet ? "vertical" : "horizontal";
|
|
1928
|
-
const
|
|
1929
|
-
const listDirection = isInternalEventList ? "horizontal" : "vertical";
|
|
1912
|
+
const listDirection = isGrey ? "horizontal" : "vertical";
|
|
1930
1913
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1931
1914
|
"div",
|
|
1932
1915
|
{
|
|
1933
|
-
className: clsx20__default.default(
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1916
|
+
className: clsx20__default.default(
|
|
1917
|
+
"event-list-module",
|
|
1918
|
+
EventList_module_default["event-list-module"],
|
|
1919
|
+
isGrey && EventList_module_default[variant],
|
|
1920
|
+
className
|
|
1921
|
+
),
|
|
1937
1922
|
children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx20__default.default(EventList_module_default["event-list-container"]), children: [
|
|
1938
1923
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: EventList_module_default["event-list-header-container"], children: [
|
|
1939
|
-
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", {
|
|
1924
|
+
titleNode && /* @__PURE__ */ jsxRuntime.jsx("h2", { children: titleNode }),
|
|
1940
1925
|
cta && cta.url && /* @__PURE__ */ jsxRuntime.jsx(Button, { className: EventList_module_default.cta, variant: "nofillblack", href: cta.url, icon: cta.icon, children: cta.label })
|
|
1941
1926
|
] }),
|
|
1942
|
-
|
|
1927
|
+
isGrey && isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1943
1928
|
Carousel,
|
|
1944
1929
|
{
|
|
1945
|
-
wrapperClass: clsx20__default.default(EventList_module_default["carousel-wrapper"]
|
|
1930
|
+
wrapperClass: clsx20__default.default(EventList_module_default["carousel-wrapper"]),
|
|
1946
1931
|
slideClass: EventList_module_default["carousel-list-item"],
|
|
1947
1932
|
spaceBetween: 16,
|
|
1948
1933
|
slides: items.map((item) => {
|
|
@@ -1950,7 +1935,7 @@ var EventList = ({
|
|
|
1950
1935
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1951
1936
|
UpcomingEventCard,
|
|
1952
1937
|
__spreadValues({
|
|
1953
|
-
className:
|
|
1938
|
+
className: isGrey && EventList_module_default["event-card"],
|
|
1954
1939
|
direction: "vertical",
|
|
1955
1940
|
showImage: false
|
|
1956
1941
|
}, item),
|
|
@@ -1959,7 +1944,7 @@ var EventList = ({
|
|
|
1959
1944
|
})
|
|
1960
1945
|
}
|
|
1961
1946
|
),
|
|
1962
|
-
|
|
1947
|
+
isGrey && !isBelowTablet && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: clsx20__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default["horizontal"], EventList_module_default[variant]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1963
1948
|
var _a2, _b, _c;
|
|
1964
1949
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1965
1950
|
"li",
|
|
@@ -1968,7 +1953,7 @@ var EventList = ({
|
|
|
1968
1953
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1969
1954
|
UpcomingEventCard,
|
|
1970
1955
|
__spreadProps(__spreadValues({}, item), {
|
|
1971
|
-
className:
|
|
1956
|
+
className: isGrey && EventList_module_default["card-item"],
|
|
1972
1957
|
showImage: false,
|
|
1973
1958
|
direction: "vertical"
|
|
1974
1959
|
})
|
|
@@ -1977,7 +1962,7 @@ var EventList = ({
|
|
|
1977
1962
|
(_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index
|
|
1978
1963
|
);
|
|
1979
1964
|
}) }),
|
|
1980
|
-
!
|
|
1965
|
+
!isGrey && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: clsx20__default.default(EventList_module_default["event-list-wrapper"], EventList_module_default[listDirection]), children: items == null ? void 0 : items.map((item, index) => {
|
|
1981
1966
|
var _a2, _b, _c;
|
|
1982
1967
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(UpcomingEventCard, __spreadProps(__spreadValues({}, item), { direction: cardDirection })) }, (_c = (_b = (_a2 = item.title) != null ? _a2 : item.date) != null ? _b : item.location) != null ? _c : index);
|
|
1983
1968
|
}) })
|