quirk-ui 0.0.186 → 0.0.188

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.
@@ -1,109 +1,109 @@
1
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as l } from "react/jsx-runtime";
2
2
  import { CallToAction as $ } from "../CallToAction/index.js";
3
3
  import { ButtonGroup as T } from "../ButtonGroup/index.js";
4
- import '../../assets/index35.css';const x = "_footer_1r04b_1", S = "_container_1r04b_8", A = "_utilityImage_1r04b_17", L = "_primaryNav_1r04b_21", k = "_secondaryNav_1r04b_30", j = "_details_1r04b_48", E = "_nav_1r04b_55", w = "_logo_1r04b_63", z = "_socialItems_1r04b_69", B = "_group_1r04b_76", C = "_groups_1r04b_84", F = "_groupTitle_1r04b_94", G = "_sublinks_1r04b_99", P = "_link_1r04b_103", W = "_bottom_1r04b_123", a = {
4
+ import '../../assets/index35.css';const x = "_footer_1r04b_1", I = "_container_1r04b_8", S = "_utilityImage_1r04b_17", A = "_primaryNav_1r04b_21", L = "_secondaryNav_1r04b_30", k = "_details_1r04b_48", j = "_nav_1r04b_55", E = "_logo_1r04b_63", w = "_socialItems_1r04b_69", z = "_group_1r04b_76", B = "_groups_1r04b_84", C = "_groupTitle_1r04b_94", F = "_sublinks_1r04b_99", G = "_link_1r04b_103", P = "_bottom_1r04b_123", a = {
5
5
  footer: x,
6
- container: S,
7
- utilityImage: A,
8
- primaryNav: L,
9
- secondaryNav: k,
10
- details: j,
11
- nav: E,
12
- logo: w,
13
- socialItems: z,
14
- group: B,
15
- groups: C,
16
- groupTitle: F,
17
- sublinks: G,
18
- link: P,
19
- bottom: W
6
+ container: I,
7
+ utilityImage: S,
8
+ primaryNav: A,
9
+ secondaryNav: L,
10
+ details: k,
11
+ nav: j,
12
+ logo: E,
13
+ socialItems: w,
14
+ group: z,
15
+ groups: B,
16
+ groupTitle: C,
17
+ sublinks: F,
18
+ link: G,
19
+ bottom: P
20
20
  };
21
- function I({
21
+ function H({
22
22
  // title,
23
- logo: t,
23
+ logo: c,
24
24
  items: g,
25
- primaryInfo: _,
26
- secondaryInfo: d,
27
- utilityItems: o,
25
+ primaryInfo: t,
26
+ secondaryInfo: _,
27
+ utilityItems: d,
28
28
  socialItems: b,
29
29
  // alignment = "right",
30
30
  copyright: m,
31
31
  className: h
32
32
  }) {
33
- const n = (s, c = "", N = !1) => s.map((r) => {
33
+ const o = (r, n = "", N = !1) => r.map((e) => {
34
34
  var v;
35
- const p = `${c}/${r.label}`, u = (v = r.sublinks) == null ? void 0 : v.length, i = !!r.href, f = i ? "a" : "div", y = i ? {
36
- href: r.href,
37
- target: r.isExternal ? "_blank" : "_self",
38
- rel: r.isExternal ? "noopener noreferrer" : void 0,
35
+ const u = `${n}/${e.label}`, p = (v = e.sublinks) == null ? void 0 : v.length, i = !!e.href, f = i ? "a" : "div", y = i ? {
36
+ href: e.href,
37
+ target: e.isExternal ? "_blank" : "_self",
38
+ rel: e.isExternal ? "noopener noreferrer" : void 0,
39
39
  role: "menuitem",
40
- "aria-label": r.label
40
+ "aria-label": e.label
41
41
  } : {
42
42
  role: "menuitem",
43
- "aria-label": r.label
43
+ "aria-label": e.label
44
44
  };
45
45
  return /* @__PURE__ */ l("div", { className: `${a.group}`, children: [
46
46
  /* @__PURE__ */ l(
47
47
  f,
48
48
  {
49
- className: `${i ? a.link : ""} ${u ? a.groupTitle : ""}`,
49
+ className: `${i ? a.link : ""} ${p ? a.groupTitle : ""}`,
50
50
  ...y,
51
51
  children: [
52
- !N && r.label,
53
- r.icon && r.icon
52
+ !N && e.label,
53
+ e.icon && e.icon
54
54
  ]
55
55
  }
56
56
  ),
57
- u && /* @__PURE__ */ e(
57
+ p && /* @__PURE__ */ s(
58
58
  "div",
59
59
  {
60
60
  className: `${a.sublinks}`,
61
61
  role: "menu",
62
- "aria-label": `${r.label} submenu`,
63
- children: n(r.sublinks, p)
62
+ "aria-label": `${e.label} submenu`,
63
+ children: o(e.sublinks, u)
64
64
  }
65
65
  )
66
- ] }, p);
66
+ ] }, u);
67
67
  });
68
- return /* @__PURE__ */ e("footer", { className: `${h ?? ""} ${a.footer}`, children: /* @__PURE__ */ l("div", { className: a.container, children: [
68
+ return /* @__PURE__ */ s("footer", { className: `${h ?? ""} ${a.footer}`, children: /* @__PURE__ */ l("div", { className: a.container, children: [
69
69
  /* @__PURE__ */ l("div", { className: a.primaryNav, children: [
70
70
  /* @__PURE__ */ l("div", { className: a.details, children: [
71
- t && /* @__PURE__ */ l("div", { className: a.logo, children: [
71
+ c && /* @__PURE__ */ l("div", { className: a.logo, children: [
72
72
  " ",
73
- t
73
+ c
74
74
  ] }),
75
- b && /* @__PURE__ */ e("div", { className: a.socialItems, children: n(b, "", !0) }),
76
- _ && /* @__PURE__ */ e("div", { className: a.primaryInfo, children: _ }),
77
- d && /* @__PURE__ */ e("div", { className: a.secondaryInfo, children: d })
75
+ b && /* @__PURE__ */ s("div", { className: a.socialItems, children: o(b, "", !0) }),
76
+ t && /* @__PURE__ */ s("div", { className: a.primaryInfo, children: t }),
77
+ _ && /* @__PURE__ */ s("div", { className: a.secondaryInfo, children: _ })
78
78
  ] }),
79
- /* @__PURE__ */ e("nav", { className: a.nav, id: "footer-menu", role: "menubar", children: /* @__PURE__ */ e("div", { className: a.groups, children: n(g, "", !1) }) })
79
+ /* @__PURE__ */ s("nav", { className: a.nav, id: "footer-menu", role: "menubar", children: /* @__PURE__ */ s("div", { className: a.groups, children: o(g, "", !1) }) })
80
80
  ] }),
81
81
  /* @__PURE__ */ l("div", { className: a.secondaryNav, children: [
82
- m && /* @__PURE__ */ e("div", { className: a.bottom, children: /* @__PURE__ */ e("span", { children: m }) }),
83
- o && /* @__PURE__ */ e("nav", { className: a.utility, children: /* @__PURE__ */ e(T, { orientation: "horizontal", children: o.map((s, c) => /* @__PURE__ */ e(
82
+ m && /* @__PURE__ */ s("div", { className: a.bottom, children: /* @__PURE__ */ s("span", { children: m }) }),
83
+ d && /* @__PURE__ */ s("nav", { className: a.utility, children: /* @__PURE__ */ s(T, { orientation: "horizontal", children: d.map((r, n) => /* @__PURE__ */ s(
84
84
  $,
85
85
  {
86
86
  as: "a",
87
- href: s.href ?? "/",
88
- variant: s.variant ?? "primary",
89
- displayType: s.displayType ?? "text",
90
- imageSrc: s.imageSrc,
91
- imageAlt: s.imageAlt,
92
- "aria-label": s.ariaLabel ?? s.label,
93
- children: o[1].imageSrc ? /* @__PURE__ */ e(
87
+ href: r.href ?? "/",
88
+ variant: r.variant ?? "primary",
89
+ displayType: r.displayType ?? "text",
90
+ imageSrc: r.imageSrc,
91
+ imageAlt: r.imageAlt,
92
+ "aria-label": r.ariaLabel ?? r.label,
93
+ children: r.imageSrc ? /* @__PURE__ */ s(
94
94
  "img",
95
95
  {
96
96
  className: a.utilityImage,
97
- src: o[1].imageSrc,
98
- "aria-label": o[1].imageAlt ?? o[1].ariaLabel ?? o[1].label
97
+ src: r.imageSrc,
98
+ "aria-label": r.imageAlt ?? r.ariaLabel ?? r.label
99
99
  }
100
- ) : o[1].label
100
+ ) : r.label
101
101
  },
102
- s._key || c
102
+ r._key || n
103
103
  )) }) })
104
104
  ] })
105
105
  ] }) });
106
106
  }
107
107
  export {
108
- I as Footer
108
+ H as Footer
109
109
  };
@@ -28,7 +28,7 @@ export type NavItem = {
28
28
  sublinks?: NavItem[];
29
29
  isExternal?: boolean;
30
30
  onClick?: () => void;
31
- icon?: React.ReactNode;
31
+ icon?: React.ElementType;
32
32
  };
33
33
  type NavbarProps = {
34
34
  title?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.186",
4
+ "version": "0.0.188",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {