@uoguelph/web-components 2.0.2 → 2.0.3-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/LICENSE.md +13 -0
- package/dist/uofg-web-components/{index-DRgQEdAt.js → index-BC4Hvd0S.js} +2116 -1963
- package/dist/uofg-web-components/{index-client-CgOvkiBi.js → index-client-BZkvD-WT.js} +1 -1
- package/dist/uofg-web-components/{index-O5kp37c8.js → index-v9RZCFpF.js} +852 -644
- package/dist/uofg-web-components/legacy-FlcPgMaE.js +101 -0
- package/dist/uofg-web-components/{slot-DcbTlwnX.js → slot-BUAAktv8.js} +1 -1
- package/dist/uofg-web-components/uofg-alert.esm.js +25 -21
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +23 -19
- package/dist/uofg-web-components/uofg-footer.esm.js +183 -179
- package/dist/uofg-web-components/uofg-header.esm.js +634 -619
- package/dist/uofg-web-components/uofg-modal.esm.js +17 -13
- package/dist/uofg-web-components/{window-CDUGRBpm.js → window-b9wVA2Rv.js} +4 -4
- package/package.json +3 -3
- package/dist/uofg-web-components/legacy-Djp4mfzG.js +0 -83
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as W } from "./slot-
|
|
1
|
+
import { w as z, x as j, y as R, z as U, S as K, l as L, c as M, p as N, a as o, A as E, f as V, B as y, e as k, F as Y, C as G, s as H, t as I, g as w, h as x, i as J, j as P, k as l, r as _, b as Q } from "./index-BC4Hvd0S.js";
|
|
2
|
+
import { a as W } from "./slot-BUAAktv8.js";
|
|
3
3
|
function B(n, t) {
|
|
4
4
|
return n === t || (n == null ? void 0 : n[K]) === t;
|
|
5
5
|
}
|
|
@@ -34,9 +34,9 @@ var te = (n, t) => t(!1), ne = V('<div><div part="content"><button aria-label="C
|
|
|
34
34
|
function se(n, t) {
|
|
35
35
|
N(t, !0);
|
|
36
36
|
let s = o(t, "isOpen", 15), u = o(t, "centered", 7), i = o(t, "autoOpen", 7), a = o(t, "label", 7), d = o(t, "alertDialog", 7), v = o(t, "staticBackdrop", 7), g = o(t, "dismissButton", 7), f = o(t, "container", 7), b = o(t, "el", 7), h = o(t, "inertElements", 7);
|
|
37
|
-
|
|
37
|
+
E(() => {
|
|
38
38
|
i() && s(!0);
|
|
39
|
-
}),
|
|
39
|
+
}), E(() => {
|
|
40
40
|
if (s()) {
|
|
41
41
|
window.requestAnimationFrame(() => {
|
|
42
42
|
window.requestAnimationFrame(() => {
|
|
@@ -106,7 +106,7 @@ function se(n, t) {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
]
|
|
109
|
-
}), { base: q, content:
|
|
109
|
+
}), { base: q, content: F, button: T } = S({
|
|
110
110
|
isOpen: s(),
|
|
111
111
|
centered: u()
|
|
112
112
|
});
|
|
@@ -120,17 +120,21 @@ function se(n, t) {
|
|
|
120
120
|
];
|
|
121
121
|
var O = k(r), p = k(O);
|
|
122
122
|
p.__click = [te, s];
|
|
123
|
-
var
|
|
124
|
-
Y(
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
var C = k(p);
|
|
124
|
+
Y(C, {
|
|
125
|
+
get icon() {
|
|
126
|
+
return G;
|
|
127
|
+
}
|
|
128
|
+
}), _(p), A(p, (e) => g(e), () => g());
|
|
129
|
+
var D = H(p, 2);
|
|
130
|
+
return W(D, t, "default", {}), _(O), _(r), A(r, (e) => f(e), () => f()), I(
|
|
127
131
|
(e, m, c) => {
|
|
128
|
-
|
|
132
|
+
x(r, 1, e), y(r, "role", d() ? "alertdialog" : "dialog"), y(r, "aria-modal", s() ? "true" : ""), y(r, "aria-label", a()), x(O, 1, m), x(p, 1, c);
|
|
129
133
|
},
|
|
130
134
|
[
|
|
131
|
-
() =>
|
|
132
|
-
() =>
|
|
133
|
-
() =>
|
|
135
|
+
() => w(q()),
|
|
136
|
+
() => w(F()),
|
|
137
|
+
() => w(T())
|
|
134
138
|
]
|
|
135
139
|
), J(n, r), P({
|
|
136
140
|
get isOpen() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a6 as n,
|
|
1
|
+
import { a6 as n, x as u, w as d, ao as f, ap as v } from "./index-BC4Hvd0S.js";
|
|
2
2
|
function m(a, e, c = e) {
|
|
3
|
-
var
|
|
4
|
-
r = !0, clearTimeout(t), t = setTimeout(l, 100), c(window[
|
|
3
|
+
var w = a === "x", s = () => n(() => {
|
|
4
|
+
r = !0, clearTimeout(t), t = setTimeout(l, 100), c(window[w ? "scrollX" : "scrollY"]);
|
|
5
5
|
});
|
|
6
6
|
addEventListener("scroll", s, {
|
|
7
7
|
passive: !0
|
|
@@ -9,7 +9,7 @@ function m(a, e, c = e) {
|
|
|
9
9
|
var r = !1, t, l = () => {
|
|
10
10
|
r = !1;
|
|
11
11
|
}, o = !0;
|
|
12
|
-
|
|
12
|
+
u(() => {
|
|
13
13
|
var i = e();
|
|
14
14
|
o ? o = !1 : !r && i != null && (r = !0, clearTimeout(t), scrollTo(window.scrollX, i), t = setTimeout(l, 100));
|
|
15
15
|
}), d(s), f(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/web-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-rc.0",
|
|
4
4
|
"description": "University of Guelph Web Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"svelte": "^5.0.0",
|
|
37
37
|
"svelte-check": "^4.0.0",
|
|
38
38
|
"tailwind-merge": "^3.0.1",
|
|
39
|
-
"tailwind-variants": "^0.
|
|
39
|
+
"tailwind-variants": "^1.0.0",
|
|
40
40
|
"tailwindcss": "^4.0.6",
|
|
41
41
|
"vite": "^6.0.0",
|
|
42
42
|
"vite-plugin-svgo": "^1.6.2"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "79252819d4c0d25e47e6bfcd9698129d3551e397"
|
|
54
54
|
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { aq as g, ar as y, as as k, at as u, au as T, av as b, E as _, G as h, aw as d, ax as w, ay as A, az as C, aA as F, a2 as N, a8 as z, aB as B, aC as D, B as p, z as G, aD as O, aE as v, m as E, aF as q, o as H, aG as I } from "./index-DRgQEdAt.js";
|
|
2
|
-
function S(t, s, n, f, r) {
|
|
3
|
-
var a = t, l = "", i;
|
|
4
|
-
g(() => {
|
|
5
|
-
if (l === (l = s() ?? "")) {
|
|
6
|
-
_ && h();
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
i !== void 0 && (b(i), i = void 0), l !== "" && (i = y(() => {
|
|
10
|
-
if (_) {
|
|
11
|
-
d.data;
|
|
12
|
-
for (var e = h(), o = e; e !== null && (e.nodeType !== 8 || /** @type {Comment} */
|
|
13
|
-
e.data !== ""); )
|
|
14
|
-
o = e, e = /** @type {TemplateNode} */
|
|
15
|
-
w(e);
|
|
16
|
-
if (e === null)
|
|
17
|
-
throw A(), C;
|
|
18
|
-
u(d, o), a = F(e);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
var R = l + "", c = k(R);
|
|
22
|
-
u(
|
|
23
|
-
/** @type {TemplateNode} */
|
|
24
|
-
T(c),
|
|
25
|
-
/** @type {TemplateNode} */
|
|
26
|
-
c.lastChild
|
|
27
|
-
), a.before(c);
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function Y(t, s, ...n) {
|
|
32
|
-
var f = t, r = z, a;
|
|
33
|
-
g(() => {
|
|
34
|
-
r !== (r = s()) && (a && (b(a), a = null), a = y(() => (
|
|
35
|
-
/** @type {SnippetFn} */
|
|
36
|
-
r(f, ...n)
|
|
37
|
-
)));
|
|
38
|
-
}, N), _ && (f = d);
|
|
39
|
-
}
|
|
40
|
-
function j(t = !1) {
|
|
41
|
-
const s = (
|
|
42
|
-
/** @type {ComponentContextLegacy} */
|
|
43
|
-
B
|
|
44
|
-
), n = s.l.u;
|
|
45
|
-
if (!n) return;
|
|
46
|
-
let f = () => q(s.s);
|
|
47
|
-
if (t) {
|
|
48
|
-
let r = 0, a = (
|
|
49
|
-
/** @type {Record<string, any>} */
|
|
50
|
-
{}
|
|
51
|
-
);
|
|
52
|
-
const l = H(() => {
|
|
53
|
-
let i = !1;
|
|
54
|
-
const e = s.s;
|
|
55
|
-
for (const o in e)
|
|
56
|
-
e[o] !== a[o] && (a[o] = e[o], i = !0);
|
|
57
|
-
return i && r++, r;
|
|
58
|
-
});
|
|
59
|
-
f = () => E(l);
|
|
60
|
-
}
|
|
61
|
-
n.b.length && D(() => {
|
|
62
|
-
m(s, f), v(n.b);
|
|
63
|
-
}), p(() => {
|
|
64
|
-
const r = G(() => n.m.map(O));
|
|
65
|
-
return () => {
|
|
66
|
-
for (const a of r)
|
|
67
|
-
typeof a == "function" && a();
|
|
68
|
-
};
|
|
69
|
-
}), n.a.length && p(() => {
|
|
70
|
-
m(s, f), v(n.a);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function m(t, s) {
|
|
74
|
-
if (t.l.s)
|
|
75
|
-
for (const n of t.l.s) E(n);
|
|
76
|
-
s();
|
|
77
|
-
}
|
|
78
|
-
I();
|
|
79
|
-
export {
|
|
80
|
-
S as h,
|
|
81
|
-
j as i,
|
|
82
|
-
Y as s
|
|
83
|
-
};
|