quirk-ui 0.0.296 → 0.0.297
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/components/Footer/index.js +21 -21
- package/package.json +1 -1
|
@@ -27,38 +27,38 @@ import '../../assets/index33.css';const L = "_footer_1gk1u_1", S = "_container_1
|
|
|
27
27
|
};
|
|
28
28
|
function V({
|
|
29
29
|
// title,
|
|
30
|
-
logo:
|
|
30
|
+
logo: _,
|
|
31
31
|
items: k,
|
|
32
|
-
primaryInfo:
|
|
33
|
-
secondaryInfo:
|
|
34
|
-
utilityItems:
|
|
35
|
-
socialItems:
|
|
32
|
+
primaryInfo: d,
|
|
33
|
+
secondaryInfo: m,
|
|
34
|
+
utilityItems: g,
|
|
35
|
+
socialItems: s,
|
|
36
36
|
// alignment = "right",
|
|
37
37
|
copyright: p,
|
|
38
38
|
className: N
|
|
39
39
|
}) {
|
|
40
|
-
const
|
|
40
|
+
const l = (n, c = "", i = !1) => n.map((o) => {
|
|
41
41
|
var h;
|
|
42
|
-
const b = `${
|
|
42
|
+
const b = `${c}/${o.label}`, v = (h = o.sublinks) == null ? void 0 : h.length, t = !!o.href, u = K[o.icon], f = t ? "a" : "div", y = t ? {
|
|
43
43
|
href: o.href,
|
|
44
44
|
target: o.isExternal ? "_blank" : "_self",
|
|
45
45
|
rel: o.isExternal ? "noopener noreferrer" : void 0,
|
|
46
|
-
role:
|
|
46
|
+
role: i ? "link" : "menuitem",
|
|
47
47
|
"aria-label": o.label
|
|
48
48
|
} : {
|
|
49
|
-
role:
|
|
49
|
+
role: i ? "link" : "menuitem",
|
|
50
50
|
"aria-label": o.label
|
|
51
51
|
};
|
|
52
52
|
return /* @__PURE__ */ r("div", { className: `${a.group}`, children: [
|
|
53
53
|
/* @__PURE__ */ r(
|
|
54
54
|
f,
|
|
55
55
|
{
|
|
56
|
-
className: `${
|
|
56
|
+
className: `${t ? a.link : ""} ${v ? a.groupTitle : ""}`,
|
|
57
57
|
...y,
|
|
58
58
|
children: [
|
|
59
|
-
!
|
|
60
|
-
|
|
61
|
-
!
|
|
59
|
+
!i && o.label,
|
|
60
|
+
u && /* @__PURE__ */ e(u, {}),
|
|
61
|
+
!u && o.isExternal && /* @__PURE__ */ e(E, { className: a.newTabIcon, size: 16 })
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
),
|
|
@@ -68,7 +68,7 @@ function V({
|
|
|
68
68
|
className: `${a.sublinks}`,
|
|
69
69
|
role: "menu",
|
|
70
70
|
"aria-label": `${o.label} submenu`,
|
|
71
|
-
children:
|
|
71
|
+
children: l(o.sublinks, b)
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
] }, b);
|
|
@@ -76,16 +76,16 @@ function V({
|
|
|
76
76
|
return /* @__PURE__ */ e("footer", { className: `${N ?? ""} ${a.footer}`, children: /* @__PURE__ */ r("div", { className: a.container, children: [
|
|
77
77
|
/* @__PURE__ */ r("div", { className: a.primaryNav, children: [
|
|
78
78
|
/* @__PURE__ */ r("div", { className: a.details, children: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
_ && /* @__PURE__ */ e("div", { className: a.logo, children: _ }),
|
|
80
|
+
s && s.length > 0 && /* @__PURE__ */ e("div", { className: a.socialItems, children: l(s, "", !0) }),
|
|
81
|
+
d && /* @__PURE__ */ e("div", { className: a.primaryInfo, children: d }),
|
|
82
|
+
m && /* @__PURE__ */ e("div", { className: a.secondaryInfo, children: m })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ e("nav", { className: a.nav, id: "footer-menu", role: "menubar", children: /* @__PURE__ */ e("div", { className: a.groups, children:
|
|
84
|
+
/* @__PURE__ */ e("nav", { className: a.nav, id: "footer-menu", role: "menubar", children: /* @__PURE__ */ e("div", { className: a.groups, children: l(k, "", !1) }) })
|
|
85
85
|
] }),
|
|
86
86
|
/* @__PURE__ */ r("div", { className: a.secondaryNav, children: [
|
|
87
87
|
p && /* @__PURE__ */ e("div", { className: a.bottom, children: /* @__PURE__ */ e("span", { children: p }) }),
|
|
88
|
-
|
|
88
|
+
g && /* @__PURE__ */ e("nav", { className: a.utility, children: /* @__PURE__ */ e(A, { orientation: "horizontal", children: g.map((n, c) => /* @__PURE__ */ e(
|
|
89
89
|
T,
|
|
90
90
|
{
|
|
91
91
|
as: "a",
|
|
@@ -99,7 +99,7 @@ function V({
|
|
|
99
99
|
iconAlignment: n.iconAlignment,
|
|
100
100
|
children: n.label
|
|
101
101
|
},
|
|
102
|
-
n._key ||
|
|
102
|
+
n._key || c
|
|
103
103
|
)) }) })
|
|
104
104
|
] })
|
|
105
105
|
] }) });
|