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.
@@ -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: u,
30
+ logo: _,
31
31
  items: k,
32
- primaryInfo: _,
33
- secondaryInfo: d,
34
- utilityItems: m,
35
- socialItems: g,
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 s = (n, l = "", c = !1) => n.map((o) => {
40
+ const l = (n, c = "", i = !1) => n.map((o) => {
41
41
  var h;
42
- const b = `${l}/${o.label}`, v = (h = o.sublinks) == null ? void 0 : h.length, i = !!o.href, t = K[o.icon], f = i ? "a" : "div", y = i ? {
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: c ? "link" : "menuitem",
46
+ role: i ? "link" : "menuitem",
47
47
  "aria-label": o.label
48
48
  } : {
49
- role: c ? "link" : "menuitem",
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: `${i ? a.link : ""} ${v ? a.groupTitle : ""}`,
56
+ className: `${t ? a.link : ""} ${v ? a.groupTitle : ""}`,
57
57
  ...y,
58
58
  children: [
59
- !c && o.label,
60
- t && /* @__PURE__ */ e(t, {}),
61
- !t && o.isExternal && /* @__PURE__ */ e(E, { className: a.newTabIcon, size: 16 })
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: s(o.sublinks, b)
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
- u && /* @__PURE__ */ e("div", { className: a.logo, children: u }),
80
- g && /* @__PURE__ */ e("div", { className: a.socialItems, children: s(g, "", !0) }),
81
- _ && /* @__PURE__ */ e("div", { className: a.primaryInfo, children: _ }),
82
- d && /* @__PURE__ */ e("div", { className: a.secondaryInfo, children: d })
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: s(k, "", !1) }) })
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
- m && /* @__PURE__ */ e("nav", { className: a.utility, children: /* @__PURE__ */ e(A, { orientation: "horizontal", children: m.map((n, l) => /* @__PURE__ */ e(
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 || l
102
+ n._key || c
103
103
  )) }) })
104
104
  ] })
105
105
  ] }) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.296",
4
+ "version": "0.0.297",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {