@uoguelph/web-components 1.4.0-rc.0 → 1.4.0-rc.1
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,5 +1,5 @@
|
|
|
1
|
-
import { c as _, S as h, i as w, a as v, s as y, r as T, F as $, v as k, e as x, d as j, h as g, j as V, m as q, w as m, t as
|
|
2
|
-
import { g as
|
|
1
|
+
import { c as _, S as h, i as w, a as v, s as y, r as T, F as $, v as k, e as x, d as j, h as g, j as V, m as q, w as m, t as z, o as C, p as F, q as O, x as S } from "./index-SbK7yJqm.js";
|
|
2
|
+
import { g as U } from "./globals-DnYjtinb.js";
|
|
3
3
|
function p() {
|
|
4
4
|
let e = 0, o, r, t = "";
|
|
5
5
|
for (; e < arguments.length; )
|
|
@@ -14,8 +14,8 @@ function b(e) {
|
|
|
14
14
|
e[t] && (o = b(e[t])) && (r && (r += " "), r += o);
|
|
15
15
|
return r;
|
|
16
16
|
}
|
|
17
|
-
const { window: f } =
|
|
18
|
-
function
|
|
17
|
+
const { window: f } = U;
|
|
18
|
+
function Y(e) {
|
|
19
19
|
let o = !1, r = () => {
|
|
20
20
|
o = !1;
|
|
21
21
|
}, t, n, l, a, i, c, d;
|
|
@@ -25,7 +25,7 @@ function E(e) {
|
|
|
25
25
|
), l = new $({ props: { icon: k } }), {
|
|
26
26
|
c() {
|
|
27
27
|
n = x("button"), j(l.$$.fragment), g(n, "class", a = p(
|
|
28
|
-
"flex justify-center items-center text-4xl rounded-full w-16 h-16 border border-white bg-black fixed bottom-2 right-2 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
|
|
28
|
+
"flex z-10 justify-center items-center text-4xl rounded-full w-16 h-16 border border-white bg-black fixed bottom-2 right-2 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
|
|
29
29
|
/*visible*/
|
|
30
30
|
e[1] ? "opacity-100" : "opacity-0"
|
|
31
31
|
));
|
|
@@ -51,23 +51,23 @@ function E(e) {
|
|
|
51
51
|
s[0]
|
|
52
52
|
), t = setTimeout(r, 100)), (!i || u & /*visible*/
|
|
53
53
|
2 && a !== (a = p(
|
|
54
|
-
"flex justify-center items-center text-4xl rounded-full w-16 h-16 border border-white bg-black fixed bottom-2 right-2 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
|
|
54
|
+
"flex z-10 justify-center items-center text-4xl rounded-full w-16 h-16 border border-white bg-black fixed bottom-2 right-2 text-white hover:bg-uofg-red focus:bg-uofg-red transition",
|
|
55
55
|
/*visible*/
|
|
56
56
|
s[1] ? "opacity-100" : "opacity-0"
|
|
57
57
|
))) && g(n, "class", a);
|
|
58
58
|
},
|
|
59
59
|
i(s) {
|
|
60
|
-
i || (
|
|
60
|
+
i || (z(l.$$.fragment, s), i = !0);
|
|
61
61
|
},
|
|
62
62
|
o(s) {
|
|
63
|
-
|
|
63
|
+
C(l.$$.fragment, s), i = !1;
|
|
64
64
|
},
|
|
65
65
|
d(s) {
|
|
66
|
-
s &&
|
|
66
|
+
s && F(n), O(l), c = !1, S(d);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function E(e, o, r) {
|
|
71
71
|
let t = !1, n = 0;
|
|
72
72
|
const l = () => {
|
|
73
73
|
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
|
@@ -80,16 +80,16 @@ function J(e, o, r) {
|
|
|
80
80
|
1 && r(1, t = n > 50);
|
|
81
81
|
}, [n, t, l, a];
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class J extends h {
|
|
84
84
|
constructor(o) {
|
|
85
|
-
super(), w(this, o,
|
|
85
|
+
super(), w(this, o, E, Y, y, {});
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
customElements.define("uofg-back-to-top", _(
|
|
88
|
+
customElements.define("uofg-back-to-top", _(J, {}, [], [], !0, (e) => class extends e {
|
|
89
89
|
constructor() {
|
|
90
90
|
super(), v(this.shadowRoot);
|
|
91
91
|
}
|
|
92
92
|
}));
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
J as default
|
|
95
95
|
};
|
package/package.json
CHANGED