@uoguelph/web-components 1.6.0 → 1.7.0-rc.0

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,4 +1,4 @@
1
- import { c as A, S as B, i as D, a as G, s as H, F as I, f as J, b as $, e as v, d as K, g as h, h as w, j as L, k as m, m as M, u as x, l as q, n as y, t as p, o as d, p as N, q as O } from "./index-C_Xohc3R.js";
1
+ import { c as A, S as B, i as D, a as G, s as H, F as I, f as J, b as $, e as v, d as K, g as h, h as w, j as L, k as m, m as M, u as x, l as q, n as y, t as p, o as d, p as N, q as O } from "./font-awesome-icon-DvfiKD3u.js";
2
2
  const P = (e) => ({}), R = (e) => ({}), Q = (e) => ({}), T = (e) => ({}), V = (e) => ({}), U = (e) => ({}), W = (e) => ({}), z = (e) => ({});
3
3
  function X(e) {
4
4
  let s, f, r, c, g, u, j, k, b, o;
@@ -1,25 +1,28 @@
1
- import { c as k, S as y, i as T, a as $, s as v, r as j, F as C, v as q, e as d, d as z, g as F, h as p, j as O, k as g, m as S, w as h, t as U, o as Y, p as B, q as E, x as J } from "./index-C_Xohc3R.js";
2
- import { t as x, g as R } from "./bundle-mjs-Dr23gGIz.js";
3
- const { window: b } = R;
1
+ import { c as y, S as T, i as k, a as $, s as v, r as j, F as C, v as q, e as m, d as z, g as F, h as p, j as O, k as g, m as S, w as h, t as U, o as Y, p as B, q as E, x as J } from "./font-awesome-icon-DvfiKD3u.js";
2
+ import { t as x } from "./bundle-mjs-BpzLJ4dA.js";
3
+ const R = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
4
+ // @ts-ignore Node typings have this
5
+ global
6
+ ), { window: b } = R;
4
7
  function X(e) {
5
- let a = !1, l = () => {
6
- a = !1;
7
- }, n, t, r, s, _, c, u, i, m, w;
8
+ let n = !1, l = () => {
9
+ n = !1;
10
+ }, a, t, r, s, w, c, u, i, d, _;
8
11
  return j(
9
12
  /*onwindowscroll*/
10
13
  e[3]
11
14
  ), s = new C({ props: { icon: q } }), {
12
15
  c() {
13
- t = d("button"), r = d("span"), z(s.$$.fragment), _ = F(), c = d("span"), c.textContent = "Back to top of page", p(r, "aria-hidden", "true"), p(c, "class", "sr-only"), p(t, "class", u = x(
16
+ t = m("button"), r = m("span"), z(s.$$.fragment), w = F(), c = m("span"), c.textContent = "Back to top of page", p(r, "aria-hidden", "true"), p(c, "class", "sr-only"), p(t, "class", u = x(
14
17
  "flex z-10 justify-center items-center text-4xl w-16 h-16 border border-white bg-black fixed bottom-8 right-8 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
15
18
  /*visible*/
16
19
  e[1] ? "opacity-100" : "opacity-0"
17
20
  ));
18
21
  },
19
22
  m(o, f) {
20
- O(o, t, f), g(t, r), S(s, r, null), g(t, _), g(t, c), i = !0, m || (w = [
23
+ O(o, t, f), g(t, r), S(s, r, null), g(t, w), g(t, c), i = !0, d || (_ = [
21
24
  h(b, "scroll", () => {
22
- a = !0, clearTimeout(n), n = setTimeout(l, 100), e[3]();
25
+ n = !0, clearTimeout(a), a = setTimeout(l, 100), e[3]();
23
26
  }),
24
27
  h(
25
28
  t,
@@ -27,15 +30,15 @@ function X(e) {
27
30
  /*scrollToTop*/
28
31
  e[2]
29
32
  )
30
- ], m = !0);
33
+ ], d = !0);
31
34
  },
32
35
  p(o, [f]) {
33
36
  f & /*scrollY*/
34
- 1 && !a && (a = !0, clearTimeout(n), scrollTo(
37
+ 1 && !n && (n = !0, clearTimeout(a), scrollTo(
35
38
  b.pageXOffset,
36
39
  /*scrollY*/
37
40
  o[0]
38
- ), n = setTimeout(l, 100)), (!i || f & /*visible*/
41
+ ), a = setTimeout(l, 100)), (!i || f & /*visible*/
39
42
  2 && u !== (u = x(
40
43
  "flex z-10 justify-center items-center text-4xl w-16 h-16 border border-white bg-black fixed bottom-8 right-8 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
41
44
  /*visible*/
@@ -49,12 +52,12 @@ function X(e) {
49
52
  Y(s.$$.fragment, o), i = !1;
50
53
  },
51
54
  d(o) {
52
- o && B(t), E(s), m = !1, J(w);
55
+ o && B(t), E(s), d = !1, J(_);
53
56
  }
54
57
  };
55
58
  }
56
- function A(e, a, l) {
57
- let n = !1, t = 0;
59
+ function A(e, n, l) {
60
+ let a = !1, t = 0;
58
61
  const r = () => {
59
62
  window.scroll({ top: 0, left: 0, behavior: "smooth" });
60
63
  };
@@ -63,15 +66,15 @@ function A(e, a, l) {
63
66
  }
64
67
  return e.$$.update = () => {
65
68
  e.$$.dirty & /*scrollY*/
66
- 1 && l(1, n = t > 50);
67
- }, [t, n, r, s];
69
+ 1 && l(1, a = t > 50);
70
+ }, [t, a, r, s];
68
71
  }
69
- class D extends y {
70
- constructor(a) {
71
- super(), T(this, a, A, X, v, {});
72
+ class D extends T {
73
+ constructor(n) {
74
+ super(), k(this, n, A, X, v, {});
72
75
  }
73
76
  }
74
- customElements.define("uofg-back-to-top", k(D, {}, [], [], !0, (e) => class extends e {
77
+ customElements.define("uofg-back-to-top", y(D, {}, [], [], !0, (e) => class extends e {
75
78
  constructor() {
76
79
  super(), $(this.shadowRoot);
77
80
  }