@digital-b2c/coreui-kit 0.11.2 → 0.11.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 +27 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +94 -39
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.mjs +27 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1942,6 +1942,13 @@ var FooterDisclaimer = ({ children }) => {
|
|
|
1942
1942
|
var Footer_module_default = {
|
|
1943
1943
|
footer: "Footer_module_footer",
|
|
1944
1944
|
container: "Footer_module_container",
|
|
1945
|
+
"support-section": "Footer_module_support-section",
|
|
1946
|
+
"support-heading": "Footer_module_support-heading",
|
|
1947
|
+
support: "Footer_module_support",
|
|
1948
|
+
"support-column": "Footer_module_support-column",
|
|
1949
|
+
"support-title": "Footer_module_support-title",
|
|
1950
|
+
"support-subtitle": "Footer_module_support-subtitle",
|
|
1951
|
+
"support-group": "Footer_module_support-group",
|
|
1945
1952
|
bottom: "Footer_module_bottom",
|
|
1946
1953
|
"bottom-left": "Footer_module_bottom-left",
|
|
1947
1954
|
"bottom-right": "Footer_module_bottom-right",
|
|
@@ -1960,18 +1967,32 @@ var Footer = ({
|
|
|
1960
1967
|
navigationLinks = [],
|
|
1961
1968
|
disclaimer,
|
|
1962
1969
|
copyright,
|
|
1963
|
-
children
|
|
1970
|
+
children,
|
|
1971
|
+
supportContacts = []
|
|
1964
1972
|
}) => {
|
|
1965
1973
|
var _a;
|
|
1966
|
-
const
|
|
1967
|
-
for (let i = 0; i <
|
|
1968
|
-
|
|
1974
|
+
const supportColumns = [];
|
|
1975
|
+
for (let i = 0; i < supportContacts.length; i += 2) {
|
|
1976
|
+
supportColumns.push(supportContacts.slice(i, i + 2));
|
|
1969
1977
|
}
|
|
1970
1978
|
const slots = resolveCompoundSlots(children, {
|
|
1971
1979
|
disclaimer: FooterDisclaimer
|
|
1972
1980
|
});
|
|
1973
1981
|
const titleNode = (_a = slots.disclaimer) != null ? _a : disclaimer;
|
|
1974
1982
|
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: clsx15__default.default(Footer_module_default.footer, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: Footer_module_default.container, children: [
|
|
1983
|
+
supportContacts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["support-section"], children: [
|
|
1984
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default["support-heading"], children: "SUPPORT" }),
|
|
1985
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.support, children: supportColumns.map((column, colIdx) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["support-column"], children: column.map((group, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["support-group"], children: [
|
|
1986
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default["support-title"], children: group.title }),
|
|
1987
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1988
|
+
"div",
|
|
1989
|
+
{
|
|
1990
|
+
className: Footer_module_default["support-subtitle"],
|
|
1991
|
+
dangerouslySetInnerHTML: { __html: group.subtitle }
|
|
1992
|
+
}
|
|
1993
|
+
)
|
|
1994
|
+
] }, i)) }, colIdx)) })
|
|
1995
|
+
] }),
|
|
1975
1996
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default.bottom, children: [
|
|
1976
1997
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: Footer_module_default["bottom-left"], children: [
|
|
1977
1998
|
supporters.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default.supporters, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Footer_module_default["supporters-logos"], children: supporters.map(
|
|
@@ -1990,7 +2011,7 @@ var Footer = ({
|
|
|
1990
2011
|
titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx15__default.default(Footer_module_default.disclaimer, "p"), children: titleNode }),
|
|
1991
2012
|
copyright && /* @__PURE__ */ jsxRuntime.jsx("p", { className: Footer_module_default.copyright, children: copyright })
|
|
1992
2013
|
] }),
|
|
1993
|
-
|
|
2014
|
+
navigationLinks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { className: Footer_module_default["bottom-right"], children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Footer_module_default["nav-list"], children: navigationLinks.map((link) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1994
2015
|
"a",
|
|
1995
2016
|
__spreadProps(__spreadValues({
|
|
1996
2017
|
href: link.href,
|
|
@@ -1998,7 +2019,7 @@ var Footer = ({
|
|
|
1998
2019
|
}, link.isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {}), {
|
|
1999
2020
|
children: link.label
|
|
2000
2021
|
})
|
|
2001
|
-
) }, link.label)) }
|
|
2022
|
+
) }, link.label)) }) })
|
|
2002
2023
|
] }),
|
|
2003
2024
|
children
|
|
2004
2025
|
] }) });
|