@uoguelph/web-components 1.9.0-rc.1 → 1.9.0-rc.11
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.
- package/dist/uofg-web-components/{font-awesome-icon-tL6xr2rJ.js → bundle-mjs-BDxvNl4x.js} +743 -733
- package/dist/uofg-web-components/legacy-CiXHZGcB.js +53 -0
- package/dist/uofg-web-components/{slot-dkmGAqBq.js → slot-DDCVqxeF.js} +1 -1
- package/dist/uofg-web-components/uofg-alert.esm.js +30 -30
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +10 -11
- package/dist/uofg-web-components/uofg-footer.esm.js +231 -151
- package/dist/uofg-web-components/uofg-header.esm.js +620 -635
- package/dist/uofg-web-components/uofg-modal.esm.js +38 -39
- package/dist/uofg-web-components/{window-BjFv1LQ0.js → window-B5VNuvDD.js} +1 -1
- package/package.json +1 -1
- package/dist/uofg-web-components/bundle-mjs-BpzLJ4dA.js +0 -17
- package/dist/uofg-web-components/legacy-DIGW2RSh.js +0 -43
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { _ as d, $ as g, a0 as b, ai as h, a8 as m, H as v, a4 as y, aG as k, u as c, C as E, aH as l, l as u, an as T, aI as x, aJ as A, m as C, aK as F } from "./bundle-mjs-BDxvNl4x.js";
|
|
2
|
+
function N(t, s, ...a) {
|
|
3
|
+
var r = t, n = h, e;
|
|
4
|
+
d(() => {
|
|
5
|
+
n !== (n = s()) && (e && (m(e), e = null), e = b(() => (
|
|
6
|
+
/** @type {SnippetFn} */
|
|
7
|
+
n(r, ...a)
|
|
8
|
+
)));
|
|
9
|
+
}, g), v && (r = y);
|
|
10
|
+
}
|
|
11
|
+
function R(t = !1) {
|
|
12
|
+
const s = (
|
|
13
|
+
/** @type {ComponentContextLegacy} */
|
|
14
|
+
T
|
|
15
|
+
), a = s.l.u;
|
|
16
|
+
if (!a) return;
|
|
17
|
+
let r = () => A(s.s);
|
|
18
|
+
if (t) {
|
|
19
|
+
let n = 0, e = (
|
|
20
|
+
/** @type {Record<string, any>} */
|
|
21
|
+
{}
|
|
22
|
+
);
|
|
23
|
+
const _ = C(() => {
|
|
24
|
+
let i = !1;
|
|
25
|
+
const o = s.s;
|
|
26
|
+
for (const f in o)
|
|
27
|
+
o[f] !== e[f] && (e[f] = o[f], i = !0);
|
|
28
|
+
return i && n++, n;
|
|
29
|
+
});
|
|
30
|
+
r = () => u(_);
|
|
31
|
+
}
|
|
32
|
+
a.b.length && k(() => {
|
|
33
|
+
p(s, r), l(a.b);
|
|
34
|
+
}), c(() => {
|
|
35
|
+
const n = E(() => a.m.map(x));
|
|
36
|
+
return () => {
|
|
37
|
+
for (const e of n)
|
|
38
|
+
typeof e == "function" && e();
|
|
39
|
+
};
|
|
40
|
+
}), a.a.length && c(() => {
|
|
41
|
+
p(s, r), l(a.a);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function p(t, s) {
|
|
45
|
+
if (t.l.s)
|
|
46
|
+
for (const a of t.l.s) u(a);
|
|
47
|
+
s();
|
|
48
|
+
}
|
|
49
|
+
F();
|
|
50
|
+
export {
|
|
51
|
+
R as i,
|
|
52
|
+
N as s
|
|
53
|
+
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { c as w, p as
|
|
2
|
-
import { s as
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
const e =
|
|
6
|
-
|
|
7
|
-
let
|
|
8
|
-
var g =
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
f
|
|
18
|
-
var
|
|
19
|
-
m
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}), k(c, g),
|
|
1
|
+
import { c as w, p as E, a as F, F as j, s as v, t as b, b as k, d as z, e as C, f as J, g as R, h as S, i as T, j as o, k as d, l as U, m as q, n as A, o as B, r } from "./bundle-mjs-BDxvNl4x.js";
|
|
2
|
+
import { s as D, a as i } from "./slot-DDCVqxeF.js";
|
|
3
|
+
var G = J('<div class="flex flex-col"><div><!> <!></div> <div><!> <span><!></span></div> <div class="flex bg-grey-light text-grey-light-contrast"><!></div></div>');
|
|
4
|
+
function H(c, t) {
|
|
5
|
+
const e = D(t);
|
|
6
|
+
E(t, !0);
|
|
7
|
+
let s = F(t, "color", 7, "red");
|
|
8
|
+
var g = G(), l = o(g);
|
|
9
|
+
const x = q(() => A(B("flex items-center p-4 text-lg [&>svg]:mr-4 [&>svg]:h-[1.5em] [&>svg]:fill-current", s() === "red" && "bg-red text-red-contrast", s() === "yellow" && "bg-yellow text-yellow-contrast", s() === "blue" && "bg-blue text-blue-contrast", s() === "green" && "bg-green text-green-contrast")));
|
|
10
|
+
var u = o(l);
|
|
11
|
+
j(u, { icon: R });
|
|
12
|
+
var _ = d(u, 2);
|
|
13
|
+
i(_, t, "title", {}), r(l);
|
|
14
|
+
var a = d(l, 2);
|
|
15
|
+
v(a, 'flex flex-col bg-white px-6 py-3 [&>slot[name="subtitle"]::slotted(*)]:mb-4 [&>slot[name="subtitle"]::slotted(*)]:text-xl [&>slot[name="subtitle"]::slotted(*)]:font-bold border-grey-muted border-t-0 border'), b(a, "border-b", !(e != null && e.footer));
|
|
16
|
+
var f = o(a);
|
|
17
|
+
i(f, t, "subtitle", {});
|
|
18
|
+
var m = d(f, 2);
|
|
19
|
+
v(m, '[&>slot[name="message"]::slotted(*)]:text-base [&>slot[name="message"]::slotted(a)]:text-blue-text [&>slot[name="message"]::slotted(a)]:px-1 [&>slot[name="message"]::slotted(a:hover)]:bg-blue [&>slot[name="message"]::slotted(a:hover)]:text-blue-contrast [&>slot[name="message"]::slotted(a:hover)]:transition-colors [&>slot[name="message"]::slotted(a:hover)]:decoration-transparent');
|
|
20
|
+
var h = o(m);
|
|
21
|
+
i(h, t, "message", {}), r(m), r(a);
|
|
22
|
+
var n = d(a, 2);
|
|
23
|
+
b(n, "px-4", e == null ? void 0 : e.footer), b(n, "py-2", e == null ? void 0 : e.footer);
|
|
24
|
+
var p = o(n);
|
|
25
|
+
return i(p, t, "footer", {}), r(n), r(g), k(() => v(l, U(x))), z(c, g), C({
|
|
26
26
|
get color() {
|
|
27
|
-
return
|
|
27
|
+
return s();
|
|
28
28
|
},
|
|
29
|
-
set color(
|
|
30
|
-
|
|
29
|
+
set color(y = "red") {
|
|
30
|
+
s(y), S();
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
customElements.define("uofg-alert", w(
|
|
35
|
-
|
|
35
|
+
H,
|
|
36
36
|
{
|
|
37
37
|
color: {
|
|
38
38
|
attribute: "color",
|
|
@@ -50,5 +50,5 @@ customElements.define("uofg-alert", w(
|
|
|
50
50
|
}
|
|
51
51
|
));
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
H as default
|
|
54
54
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as
|
|
3
|
-
import { t as C } from "./bundle-mjs-BpzLJ4dA.js";
|
|
1
|
+
import { q as b, c as m, p as _, u as h, F as v, b as x, d as w, e as g, f as k, v as c, l as e, w as y, x as T, i as j, y as n, j as l, s as z, m as F, n as U, o as q, r as i, z as B } from "./bundle-mjs-BDxvNl4x.js";
|
|
2
|
+
import { b as C } from "./window-B5VNuvDD.js";
|
|
4
3
|
const E = () => {
|
|
5
4
|
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
|
6
5
|
};
|
|
7
|
-
var J =
|
|
6
|
+
var J = k('<button><span aria-hidden="true"><!></span> <span class="sr-only">Back to top of page</span></button>');
|
|
8
7
|
function R(s, p) {
|
|
9
|
-
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
_(p, !0);
|
|
9
|
+
let o = n(!1), a = n(0);
|
|
10
|
+
h(() => {
|
|
11
|
+
c(o, e(a) > 50);
|
|
13
12
|
});
|
|
14
13
|
var t = J();
|
|
15
14
|
t.__click = [E];
|
|
16
|
-
const d =
|
|
17
|
-
var r =
|
|
18
|
-
|
|
15
|
+
const d = F(() => U(q("flex z-10 justify-center items-center text-lg w-10 h-10 border border-white bg-black text-black-contrast fixed bottom-8 right-8 hover:bg-red focus:bg-red hover:text-red-contrast focus:text-red-contrast transition", e(o) ? "opacity-100" : "opacity-0")));
|
|
16
|
+
var r = l(t), f = l(r);
|
|
17
|
+
v(f, { icon: y }), i(r), B(2), i(t), x(() => z(t, e(d))), C("y", () => e(a), (u) => c(a, T(u))), w(s, t), g();
|
|
19
18
|
}
|
|
20
19
|
b(["click"]);
|
|
21
20
|
customElements.define("uofg-back-to-top", m(R, {}, [], [], !0, (s) => class extends s {
|