quirk-ui 0.0.265 → 0.0.266

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,12 +1,12 @@
1
1
  import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
- import '../../assets/index13.css';const p = "_callToAction_31fqz_1", q = "_blurred_31fqz_26", z = "_primary_31fqz_27", b = "_secondary_31fqz_28", h = "_primaryInverted_31fqz_29", k = "_secondaryInverted_31fqz_30", g = "_blurredInverted_31fqz_32", $ = "_link_31fqz_46", A = "_linkInverted_31fqz_47", x = "_underline_31fqz_48", T = "_underlineInverted_31fqz_49", R = "_content_31fqz_59", L = "_icon_31fqz_193", N = "_iconLeft_31fqz_209", C = "_iconRight_31fqz_213", n = {
2
+ import '../../assets/index13.css';const p = "_callToAction_31fqz_1", q = "_blurred_31fqz_26", z = "_primary_31fqz_27", h = "_secondary_31fqz_28", b = "_primaryInverted_31fqz_29", g = "_secondaryInverted_31fqz_30", k = "_blurredInverted_31fqz_32", $ = "_link_31fqz_46", A = "_linkInverted_31fqz_47", x = "_underline_31fqz_48", T = "_underlineInverted_31fqz_49", R = "_content_31fqz_59", L = "_icon_31fqz_193", N = "_iconLeft_31fqz_209", C = "_iconRight_31fqz_213", n = {
3
3
  callToAction: p,
4
4
  blurred: q,
5
5
  primary: z,
6
- secondary: b,
7
- primaryInverted: h,
8
- secondaryInverted: k,
9
- blurredInverted: g,
6
+ secondary: h,
7
+ primaryInverted: b,
8
+ secondaryInverted: g,
9
+ blurredInverted: k,
10
10
  link: $,
11
11
  linkInverted: A,
12
12
  underline: x,
@@ -33,19 +33,28 @@ import '../../assets/index13.css';const p = "_callToAction_31fqz_1", q = "_blurr
33
33
  function B({
34
34
  variant: t = "primary",
35
35
  displayType: a = "text",
36
- imageSrc: o,
36
+ imageSrc: i,
37
37
  imageAlt: _ = "",
38
- icon: c,
38
+ icon: o,
39
39
  iconAlignemnt: f = "right",
40
40
  useRouter: E = !1,
41
- className: i,
41
+ className: c,
42
42
  children: u,
43
43
  disabled: v = !1,
44
44
  ...r
45
45
  }) {
46
- const l = a === "image" && o ? /* @__PURE__ */ e("img", { src: o, alt: _, className: n.image }) : /* @__PURE__ */ m("span", { className: `${n.content} ${j[f]}`, children: [
46
+ const l = a === "image" && i ? /* @__PURE__ */ e(
47
+ "img",
48
+ {
49
+ width: "175",
50
+ height: "59",
51
+ src: i,
52
+ alt: _,
53
+ className: n.image
54
+ }
55
+ ) : /* @__PURE__ */ m("span", { className: `${n.content} ${j[f]}`, children: [
47
56
  /* @__PURE__ */ e("span", { children: u }),
48
- c && /* @__PURE__ */ e("span", { className: n.icon, children: c })
57
+ o && /* @__PURE__ */ e("span", { className: n.icon, children: o })
49
58
  ] });
50
59
  if (r.as == "a") {
51
60
  const { href: I, target: d, ...y } = r;
@@ -55,7 +64,7 @@ function B({
55
64
  href: I,
56
65
  target: d,
57
66
  rel: d === "_blank" ? "noopener noreferrer" : void 0,
58
- className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
67
+ className: `${c ?? ""} ${n.callToAction} ${s[t]}`,
59
68
  ...y,
60
69
  children: l
61
70
  }
@@ -64,7 +73,7 @@ function B({
64
73
  return /* @__PURE__ */ e(
65
74
  "button",
66
75
  {
67
- className: `${i ?? ""} ${n.callToAction} ${s[t]}`,
76
+ className: `${c ?? ""} ${n.callToAction} ${s[t]}`,
68
77
  disabled: v,
69
78
  ...r,
70
79
  children: l
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
- import { CallToAction as C } from "../CallToAction/index.js";
3
- import { ButtonGroup as E } from "../ButtonGroup/index.js";
2
+ import { CallToAction as I } from "../CallToAction/index.js";
3
+ import { ButtonGroup as S } from "../ButtonGroup/index.js";
4
4
  import d from "react";
5
5
  import { E as V } from "../../external-link-BOPobeQJ.js";
6
6
  import '../../assets/index45.css';var z = {
@@ -12,11 +12,11 @@ import '../../assets/index45.css';var z = {
12
12
  }, j = d.createContext && /* @__PURE__ */ d.createContext(z), $ = ["attr", "size", "title"];
13
13
  function F(e, t) {
14
14
  if (e == null) return {};
15
- var r = M(e, t), a, l;
15
+ var r = M(e, t), a, c;
16
16
  if (Object.getOwnPropertySymbols) {
17
17
  var u = Object.getOwnPropertySymbols(e);
18
- for (l = 0; l < u.length; l++)
19
- a = u[l], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
18
+ for (c = 0; c < u.length; c++)
19
+ a = u[c], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (r[a] = e[a]);
20
20
  }
21
21
  return r;
22
22
  }
@@ -30,22 +30,22 @@ function M(e, t) {
30
30
  }
31
31
  return r;
32
32
  }
33
- function v() {
34
- return v = Object.assign ? Object.assign.bind() : function(e) {
33
+ function h() {
34
+ return h = Object.assign ? Object.assign.bind() : function(e) {
35
35
  for (var t = 1; t < arguments.length; t++) {
36
36
  var r = arguments[t];
37
37
  for (var a in r)
38
38
  Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
39
39
  }
40
40
  return e;
41
- }, v.apply(this, arguments);
41
+ }, h.apply(this, arguments);
42
42
  }
43
43
  function P(e, t) {
44
44
  var r = Object.keys(e);
45
45
  if (Object.getOwnPropertySymbols) {
46
46
  var a = Object.getOwnPropertySymbols(e);
47
- t && (a = a.filter(function(l) {
48
- return Object.getOwnPropertyDescriptor(e, l).enumerable;
47
+ t && (a = a.filter(function(c) {
48
+ return Object.getOwnPropertyDescriptor(e, c).enumerable;
49
49
  })), r.push.apply(r, a);
50
50
  }
51
51
  return r;
@@ -65,10 +65,10 @@ function B(e, t, r) {
65
65
  return t = k(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
66
66
  }
67
67
  function k(e) {
68
- var t = L(e, "string");
68
+ var t = D(e, "string");
69
69
  return typeof t == "symbol" ? t : t + "";
70
70
  }
71
- function L(e, t) {
71
+ function D(e, t) {
72
72
  if (typeof e != "object" || !e) return e;
73
73
  var r = e[Symbol.toPrimitive];
74
74
  if (r !== void 0) {
@@ -78,24 +78,24 @@ function L(e, t) {
78
78
  }
79
79
  return (t === "string" ? String : Number)(e);
80
80
  }
81
- function I(e) {
81
+ function T(e) {
82
82
  return e && e.map((t, r) => /* @__PURE__ */ d.createElement(t.tag, b({
83
83
  key: r
84
- }, t.attr), I(t.child)));
84
+ }, t.attr), T(t.child)));
85
85
  }
86
86
  function f(e) {
87
- return (t) => /* @__PURE__ */ d.createElement(D, v({
87
+ return (t) => /* @__PURE__ */ d.createElement(H, h({
88
88
  attr: b({}, e.attr)
89
- }, t), I(e.child));
89
+ }, t), T(e.child));
90
90
  }
91
- function D(e) {
91
+ function H(e) {
92
92
  var t = (r) => {
93
93
  var {
94
94
  attr: a,
95
- size: l,
95
+ size: c,
96
96
  title: u
97
- } = e, p = F(e, $), h = l || r.size || "1em", s;
98
- return r.className && (s = r.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */ d.createElement("svg", v({
97
+ } = e, p = F(e, $), v = c || r.size || "1em", s;
98
+ return r.className && (s = r.className), e.className && (s = (s ? s + " " : "") + e.className), /* @__PURE__ */ d.createElement("svg", h({
99
99
  stroke: "currentColor",
100
100
  fill: "currentColor",
101
101
  strokeWidth: "0"
@@ -104,20 +104,20 @@ function D(e) {
104
104
  style: b(b({
105
105
  color: e.color || r.color
106
106
  }, r.style), e.style),
107
- height: h,
108
- width: h,
107
+ height: v,
108
+ width: v,
109
109
  xmlns: "http://www.w3.org/2000/svg"
110
110
  }), u && /* @__PURE__ */ d.createElement("title", null, u), e.children);
111
111
  };
112
112
  return j !== void 0 ? /* @__PURE__ */ d.createElement(j.Consumer, null, (r) => t(r)) : t(z);
113
113
  }
114
- function H(e) {
114
+ function L(e) {
115
115
  return f({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z" }, child: [] }] })(e);
116
116
  }
117
- function A(e) {
117
+ function W(e) {
118
118
  return f({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" }, child: [] }] })(e);
119
119
  }
120
- function W(e) {
120
+ function A(e) {
121
121
  return f({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" }, child: [] }] })(e);
122
122
  }
123
123
  function G(e) {
@@ -126,64 +126,63 @@ function G(e) {
126
126
  function Y(e) {
127
127
  return f({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" }, child: [] }] })(e);
128
128
  }
129
- const K = "_footer_m08xa_1", R = "_container_m08xa_8", q = "_utilityImage_m08xa_18", J = "_primaryNav_m08xa_22", Q = "_secondaryNav_m08xa_32", U = "_details_m08xa_69", X = "_nav_m08xa_82", Z = "_logo_m08xa_90", ee = "_socialItems_m08xa_96", te = "_group_m08xa_103", re = "_groups_m08xa_113", ae = "_groupTitle_m08xa_124", ne = "_sublinks_m08xa_133", ie = "_link_m08xa_141", oe = "_newTabIcon_m08xa_159", ce = "_bottom_m08xa_173", n = {
129
+ const K = "_footer_m08xa_1", R = "_container_m08xa_8", q = "_primaryNav_m08xa_22", J = "_secondaryNav_m08xa_32", Q = "_details_m08xa_69", U = "_nav_m08xa_82", X = "_logo_m08xa_90", Z = "_socialItems_m08xa_96", ee = "_group_m08xa_103", te = "_groups_m08xa_113", re = "_groupTitle_m08xa_124", ae = "_sublinks_m08xa_133", ne = "_link_m08xa_141", oe = "_newTabIcon_m08xa_159", ie = "_bottom_m08xa_173", n = {
130
130
  footer: K,
131
131
  container: R,
132
- utilityImage: q,
133
- primaryNav: J,
134
- secondaryNav: Q,
135
- details: U,
136
- nav: X,
137
- logo: Z,
138
- socialItems: ee,
139
- group: te,
140
- groups: re,
141
- groupTitle: ae,
142
- sublinks: ne,
143
- link: ie,
132
+ primaryNav: q,
133
+ secondaryNav: J,
134
+ details: Q,
135
+ nav: U,
136
+ logo: X,
137
+ socialItems: Z,
138
+ group: ee,
139
+ groups: te,
140
+ groupTitle: re,
141
+ sublinks: ae,
142
+ link: ne,
144
143
  newTabIcon: oe,
145
- bottom: ce
146
- }, le = {
147
- Facebook: H,
144
+ bottom: ie
145
+ }, ce = {
146
+ Facebook: L,
148
147
  Twitter: G,
149
- LinkedIn: W,
150
- Instagram: A,
148
+ LinkedIn: A,
149
+ Instagram: W,
151
150
  YouTube: Y
152
151
  };
153
- function pe({
152
+ function fe({
154
153
  // title,
155
154
  logo: e,
156
155
  items: t,
157
156
  primaryInfo: r,
158
157
  secondaryInfo: a,
159
- utilityItems: l,
158
+ utilityItems: c,
160
159
  socialItems: u,
161
160
  // alignment = "right",
162
161
  copyright: p,
163
- className: h
162
+ className: v
164
163
  }) {
165
- const s = (i, g = "", _ = !1) => i.map((c) => {
164
+ const s = (l, _ = "", g = !1) => l.map((i) => {
166
165
  var O;
167
- const N = `${g}/${c.label}`, w = (O = c.sublinks) == null ? void 0 : O.length, y = !!c.href, x = le[c.icon], S = y ? "a" : "div", T = y ? {
168
- href: c.href,
169
- target: c.isExternal ? "_blank" : "_self",
170
- rel: c.isExternal ? "noopener noreferrer" : void 0,
171
- role: _ ? "link" : "menuitem",
172
- "aria-label": c.label
166
+ const N = `${_}/${i.label}`, w = (O = i.sublinks) == null ? void 0 : O.length, y = !!i.href, x = ce[i.icon], C = y ? "a" : "div", E = y ? {
167
+ href: i.href,
168
+ target: i.isExternal ? "_blank" : "_self",
169
+ rel: i.isExternal ? "noopener noreferrer" : void 0,
170
+ role: g ? "link" : "menuitem",
171
+ "aria-label": i.label
173
172
  } : {
174
- role: _ ? "link" : "menuitem",
175
- "aria-label": c.label
173
+ role: g ? "link" : "menuitem",
174
+ "aria-label": i.label
176
175
  };
177
176
  return /* @__PURE__ */ m("div", { className: `${n.group}`, children: [
178
177
  /* @__PURE__ */ m(
179
- S,
178
+ C,
180
179
  {
181
180
  className: `${y ? n.link : ""} ${w ? n.groupTitle : ""}`,
182
- ...T,
181
+ ...E,
183
182
  children: [
184
- !_ && c.label,
183
+ !g && i.label,
185
184
  x && /* @__PURE__ */ o(x, {}),
186
- !x && c.isExternal && /* @__PURE__ */ o(V, { className: n.newTabIcon, size: 16 })
185
+ !x && i.isExternal && /* @__PURE__ */ o(V, { className: n.newTabIcon, size: 16 })
187
186
  ]
188
187
  }
189
188
  ),
@@ -192,13 +191,13 @@ function pe({
192
191
  {
193
192
  className: `${n.sublinks}`,
194
193
  role: "menu",
195
- "aria-label": `${c.label} submenu`,
196
- children: s(c.sublinks, N)
194
+ "aria-label": `${i.label} submenu`,
195
+ children: s(i.sublinks, N)
197
196
  }
198
197
  )
199
198
  ] }, N);
200
199
  });
201
- return /* @__PURE__ */ o("footer", { className: `${h ?? ""} ${n.footer}`, children: /* @__PURE__ */ m("div", { className: n.container, children: [
200
+ return /* @__PURE__ */ o("footer", { className: `${v ?? ""} ${n.footer}`, children: /* @__PURE__ */ m("div", { className: n.container, children: [
202
201
  /* @__PURE__ */ m("div", { className: n.primaryNav, children: [
203
202
  /* @__PURE__ */ m("div", { className: n.details, children: [
204
203
  e && /* @__PURE__ */ m("div", { className: n.logo, children: [
@@ -213,32 +212,23 @@ function pe({
213
212
  ] }),
214
213
  /* @__PURE__ */ m("div", { className: n.secondaryNav, children: [
215
214
  p && /* @__PURE__ */ o("div", { className: n.bottom, children: /* @__PURE__ */ o("span", { children: p }) }),
216
- l && /* @__PURE__ */ o("nav", { className: n.utility, children: /* @__PURE__ */ o(E, { orientation: "horizontal", children: l.map((i, g) => /* @__PURE__ */ o(
217
- C,
215
+ c && /* @__PURE__ */ o("nav", { className: n.utility, children: /* @__PURE__ */ o(S, { orientation: "horizontal", children: c.map((l, _) => /* @__PURE__ */ o(
216
+ I,
218
217
  {
219
218
  as: "a",
220
- href: i.href ?? "/",
221
- variant: i.variant ?? "primary",
222
- displayType: i.displayType ?? "text",
223
- imageSrc: i.imageSrc,
224
- imageAlt: i.imageAlt,
225
- "aria-label": i.ariaLabel ?? i.label,
226
- children: i.imageSrc ? /* @__PURE__ */ o(
227
- "img",
228
- {
229
- width: "175",
230
- height: "59",
231
- className: n.utilityImage,
232
- src: i.imageSrc,
233
- "aria-label": i.imageAlt ?? i.ariaLabel ?? i.label
234
- }
235
- ) : i.label
219
+ href: l.href ?? "/",
220
+ variant: l.variant ?? "primary",
221
+ displayType: l.displayType ?? "text",
222
+ imageSrc: l.imageSrc,
223
+ imageAlt: l.imageAlt,
224
+ "aria-label": l.ariaLabel ?? l.label,
225
+ children: l.label
236
226
  },
237
- i._key || g
227
+ l._key || _
238
228
  )) }) })
239
229
  ] })
240
230
  ] }) });
241
231
  }
242
232
  export {
243
- pe as Footer
233
+ fe as Footer
244
234
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.265",
4
+ "version": "0.0.266",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {