@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.
- package/dist/uofg-web-components/bundle-mjs-BpzLJ4dA.js +17 -0
- package/dist/uofg-web-components/{index-C_Xohc3R.js → font-awesome-icon-DvfiKD3u.js} +432 -368
- package/dist/uofg-web-components/uofg-alert.esm.js +1 -1
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +24 -21
- package/dist/uofg-web-components/uofg-footer.esm.js +462 -314
- package/dist/uofg-web-components/uofg-header.esm.js +2175 -1623
- package/dist/uofg-web-components/uofg-modal.esm.js +6 -6
- package/package.json +1 -1
- package/dist/uofg-web-components/bundle-mjs-Dr23gGIz.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as T, S as j, i as R, y as m, a as U, s as K, F as N, z as G, b as H, e as B, d as I, g as J, h as r, A as _, j as L, k as E, m as M, w as k, u as P, l as Q, n as V, t as v, o as A, p as W, q as X, x as Y, B as C } from "./font-awesome-icon-DvfiKD3u.js";
|
|
2
2
|
const Z = (n) => Array.from(n.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [contenteditable], audio[controls], video[controls], details, summary, [tabindex]:not([tabindex="-1"])'));
|
|
3
3
|
function x(n) {
|
|
4
4
|
let e, i, c, b, u, p, g, w, l, y, h;
|
|
@@ -15,7 +15,7 @@ function x(n) {
|
|
|
15
15
|
);
|
|
16
16
|
return {
|
|
17
17
|
c() {
|
|
18
|
-
e =
|
|
18
|
+
e = B("div"), i = B("div"), c = B("button"), I(b.$$.fragment), u = J(), a && a.c(), r(c, "class", "absolute right-8 top-8 z-[2] flex h-12 w-12 items-center justify-center border-0 bg-transparent text-3xl p-2 text-[var(--uofg-modal-dismiss-color,white)]"), r(c, "part", "dismiss-button"), r(c, "aria-label", "Close modal"), r(i, "part", "content"), r(i, "class", p = `z-1 absolute left-1/2 h-fit max-h-full w-fit max-w-full -translate-x-1/2 overflow-auto p-8 transition-transform motion-reduce:transition-none ${/*isOpen*/
|
|
19
19
|
n[0] ? "visible opacity-100" : ""} ${/*isOpen*/
|
|
20
20
|
n[0] && /*centered*/
|
|
21
21
|
n[3] ? "translate-y-[calc(-50%_-_50px)]" : ""} ${!/*isOpen*/
|
|
@@ -44,7 +44,7 @@ function x(n) {
|
|
|
44
44
|
n[0]);
|
|
45
45
|
},
|
|
46
46
|
m(s, o) {
|
|
47
|
-
L(s, e, o),
|
|
47
|
+
L(s, e, o), E(e, i), E(i, c), M(b, c, null), n[15](c), E(i, u), a && a.m(i, null), n[17](e), l = !0, y || (h = [
|
|
48
48
|
k(
|
|
49
49
|
c,
|
|
50
50
|
"click",
|
|
@@ -158,7 +158,7 @@ function $(n, e, i) {
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
const F = () => i(0, u = !1);
|
|
161
|
-
function
|
|
161
|
+
function z(t) {
|
|
162
162
|
C[t ? "unshift" : "push"](() => {
|
|
163
163
|
f = t, i(1, f);
|
|
164
164
|
});
|
|
@@ -217,7 +217,7 @@ function $(n, e, i) {
|
|
|
217
217
|
c,
|
|
218
218
|
S,
|
|
219
219
|
F,
|
|
220
|
-
|
|
220
|
+
z
|
|
221
221
|
];
|
|
222
222
|
}
|
|
223
223
|
class ee extends j {
|
|
@@ -296,7 +296,7 @@ class ee extends j {
|
|
|
296
296
|
this.$$set({ inertElements: e }), m();
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
customElements.define("uofg-modal",
|
|
299
|
+
customElements.define("uofg-modal", T(ee, { isOpen: {}, centered: { reflect: !0, type: "Boolean", attribute: "centered" }, autoOpen: { reflect: !0, type: "Boolean", attribute: "auto-open" }, label: { reflect: !0, type: "String", attribute: "label" }, alertDialog: { reflect: !0, type: "String", attribute: "alert-dialog" }, staticBackdrop: { reflect: !0, type: "Boolean", attribute: "static-backdrop" }, dismissButton: {}, container: {}, el: {}, inertElements: {} }, ["default"], [], !0, (n) => class extends n {
|
|
300
300
|
constructor() {
|
|
301
301
|
super(), U(this.shadowRoot), this.el = this, this.inertElements = [];
|
|
302
302
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const r = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
2
|
-
// @ts-ignore Node typings have this
|
|
3
|
-
global
|
|
4
|
-
);
|
|
5
|
-
function i() {
|
|
6
|
-
let t = 0, n, l, e = "";
|
|
7
|
-
for (; t < arguments.length; )
|
|
8
|
-
(n = arguments[t++]) && (l = o(n)) && (e && (e += " "), e += l);
|
|
9
|
-
return e;
|
|
10
|
-
}
|
|
11
|
-
const o = (t) => {
|
|
12
|
-
if (typeof t == "string")
|
|
13
|
-
return t;
|
|
14
|
-
let n, l = "";
|
|
15
|
-
for (let e = 0; e < t.length; e++)
|
|
16
|
-
t[e] && (n = o(t[e])) && (l && (l += " "), l += n);
|
|
17
|
-
return l;
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
r as g,
|
|
21
|
-
i as t
|
|
22
|
-
};
|