@uoguelph/web-components 1.9.1-rc.2 → 1.9.1-rc.4

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.
@@ -4,24 +4,24 @@ var Tt = (e) => {
4
4
  };
5
5
  var fe = (e, t, a) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
6
6
  var wt = (e, t, a) => fe(e, typeof t != "symbol" ? t + "" : t, a), Mt = (e, t, a) => t.has(e) || Tt("Cannot " + a);
7
- var O = (e, t, a) => (Mt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), it = (e, t, a) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), kt = (e, t, a, r) => (Mt(e, t, "write to private field"), r ? r.call(e, a) : t.set(e, a), a), Ft = (e, t, a) => (Mt(e, t, "access private method"), a);
8
- import { E as K, G as Pt, Y as Ct, Z as de, _ as Ot, $ as he, a0 as pe, a1 as ge, a2 as be, a3 as xe, a4 as me, a5 as Rt, a6 as Ut, a7 as Lt, a8 as _e, a9 as ye, aa as we, ab as zt, y as Vt, A as gt, ac as Me, ad as ke, ae as Ce, af as $e, ag as Se, ah as Le, B as Ne, ai as et, aj as Wt, ak as Bt, al as Ae, am as $t, an as Ee, ao as Ve, u as Zt, m as Ze, c as U, e as X, p as V, t as $, h as w, g as z, X as H, a as E, ap as je, b as x, d as Y, k as Z, r as y, aq as R, ar as P, s as I, j as rt, C as q, as as He, at as Te, H as B, o as l, J as st, V as at, i as ot, au as lt, I as F, F as G, av as bt, K as xt, aw as jt, ax as mt, ay as _t, az as Dt, q as ct, v as tt, w as Nt, aA as Fe, aB as Pe, l as Re } from "./bundle-mjs-D18igZXZ.js";
9
- import { a as Ue } from "./window-C_RSbmq3.js";
10
- import { s as qt, i as Ht } from "./legacy-lSRlPw5T.js";
7
+ var O = (e, t, a) => (Mt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), it = (e, t, a) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), Ct = (e, t, a, r) => (Mt(e, t, "write to private field"), r ? r.call(e, a) : t.set(e, a), a), Ft = (e, t, a) => (Mt(e, t, "access private method"), a);
8
+ import { E as K, G as Pt, $ as kt, a0 as de, a1 as Ot, a2 as he, a3 as pe, a4 as ge, a5 as be, a6 as xe, a7 as me, a8 as Rt, a9 as Ut, aa as Lt, ab as _e, ac as ye, ad as we, ae as zt, y as Vt, A as gt, af as Me, ag as Ce, ah as ke, ai as $e, aj as Se, ak as Le, B as Ne, al as et, am as Wt, an as Bt, ao as Ae, ap as $t, aq as Ee, ar as Ve, u as Zt, m as Ze, c as U, e as X, p as V, t as $, h as w, g as z, Z as H, a as E, as as je, b as x, d as Y, k as Z, r as y, Y as R, X as P, s as I, j as rt, C as q, at as He, au as Te, H as B, o as l, J as st, V as at, i as ot, av as lt, I as F, F as G, aw as bt, K as xt, ax as jt, ay as mt, az as _t, aA as Dt, q as ct, v as tt, w as Nt, aB as Fe, aC as Pe, l as Re } from "./bundle-mjs-D9l_ATWO.js";
9
+ import { a as Ue } from "./window-h3Y-5wZO.js";
10
+ import { s as qt, i as Ht } from "./legacy-D3RweNqh.js";
11
11
  function ze(e, t, a, r, h, o) {
12
12
  let f = K;
13
13
  K && Pt();
14
- var k, b, s = null;
15
- K && Ct.nodeType === 1 && (s = /** @type {Element} */
16
- Ct, Pt());
14
+ var C, b, s = null;
15
+ K && kt.nodeType === 1 && (s = /** @type {Element} */
16
+ kt, Pt());
17
17
  var v = (
18
18
  /** @type {TemplateNode} */
19
- K ? Ct : e
19
+ K ? kt : e
20
20
  ), i;
21
21
  de(() => {
22
22
  const u = t() || null;
23
23
  var c = u === "svg" ? pe : null;
24
- u !== k && (i && (u === null ? _e(i, () => {
24
+ u !== C && (i && (u === null ? _e(i, () => {
25
25
  i = null, b = null;
26
26
  }) : u === b ? ye(i) : (we(i), zt(!1))), u && u !== b && (i = he(() => {
27
27
  if (s = K ? (
@@ -36,7 +36,7 @@ function ze(e, t, a, r, h, o) {
36
36
  K && (d === null ? Rt(!1) : Ut(d)), r(s, d);
37
37
  }
38
38
  Lt.nodes_end = s, v.before(s);
39
- })), k = u, k && (b = k), zt(!0));
39
+ })), C = u, C && (b = C), zt(!0));
40
40
  }, Ot), f && (Rt(!0), Ut(v));
41
41
  }
42
42
  function We(e, t, a) {
@@ -104,7 +104,7 @@ function Gt(e) {
104
104
  }
105
105
  const Ie = (e) => e;
106
106
  function Oe(e, t, a, r) {
107
- var h = (e & $e) !== 0, o = "both", f, k = t.inert, b = t.style.overflow, s, v;
107
+ var h = (e & $e) !== 0, o = "both", f, C = t.inert, b = t.style.overflow, s, v;
108
108
  function i() {
109
109
  var m = Ae, n = Lt;
110
110
  Wt(null), Bt(null);
@@ -120,7 +120,7 @@ function Oe(e, t, a, r) {
120
120
  var u = {
121
121
  is_global: h,
122
122
  in() {
123
- t.inert = k, ft(t, "introstart"), s = At(t, i(), v, 1, () => {
123
+ t.inert = C, ft(t, "introstart"), s = At(t, i(), v, 1, () => {
124
124
  ft(t, "introend"), s == null || s.abort(), s = f = void 0, t.style.overflow = b;
125
125
  });
126
126
  },
@@ -143,9 +143,9 @@ function Oe(e, t, a, r) {
143
143
  /** @type {Effect | null} */
144
144
  c.parent
145
145
  ); p && (p.f & Ot) !== 0; )
146
- for (; (p = p.parent) && (p.f & ke) === 0; )
146
+ for (; (p = p.parent) && (p.f & Ce) === 0; )
147
147
  ;
148
- d = !p || (p.f & Ce) !== 0;
148
+ d = !p || (p.f & ke) !== 0;
149
149
  }
150
150
  d && Vt(() => {
151
151
  gt(() => u.in());
@@ -155,15 +155,15 @@ function Oe(e, t, a, r) {
155
155
  function At(e, t, a, r, h) {
156
156
  var o = r === 1;
157
157
  if (Le(t)) {
158
- var f, k = !1;
158
+ var f, C = !1;
159
159
  return Ne(() => {
160
- if (!k) {
160
+ if (!C) {
161
161
  var m = t({ direction: o ? "in" : "out" });
162
162
  f = At(e, m, a, r, h);
163
163
  }
164
164
  }), {
165
165
  abort: () => {
166
- k = !0, f == null || f.abort();
166
+ C = !0, f == null || f.abort();
167
167
  },
168
168
  deactivate: () => f.deactivate(),
169
169
  reset: () => f.reset(),
@@ -195,8 +195,8 @@ function At(e, t, a, r, h) {
195
195
  var M = !1;
196
196
  if (s)
197
197
  for (var L = Math.ceil(N / 16.666666666666668), S = 0; S <= L; S += 1) {
198
- var g = m + n * i(S / L), C = Gt(s(g, 1 - g));
199
- _.push(C), M || (M = C.overflow === "hidden");
198
+ var g = m + n * i(S / L), k = Gt(s(g, 1 - g));
199
+ _.push(k), M || (M = k.overflow === "hidden");
200
200
  }
201
201
  M && (e.style.overflow = "hidden"), d = () => {
202
202
  var A = (
@@ -238,7 +238,7 @@ const pt = class pt {
238
238
  it(this, nt);
239
239
  /** @type {ResizeObserverOptions} */
240
240
  it(this, ut);
241
- kt(this, ut, t);
241
+ Ct(this, ut, t);
242
242
  }
243
243
  /**
244
244
  * @param {Element} element
@@ -253,7 +253,7 @@ const pt = class pt {
253
253
  }
254
254
  };
255
255
  J = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), ht = new WeakSet(), Jt = function() {
256
- return O(this, nt) ?? kt(this, nt, new ResizeObserver(
256
+ return O(this, nt) ?? Ct(this, nt, new ResizeObserver(
257
257
  /** @param {any} entries */
258
258
  (t) => {
259
259
  for (var a of t) {
@@ -294,7 +294,7 @@ function Qe(e) {
294
294
  return t * t * t + 1;
295
295
  }
296
296
  function It(e, { delay: t = 0, duration: a = 400, easing: r = Qe, axis: h = "y" } = {}) {
297
- const o = getComputedStyle(e), f = +o.opacity, k = h === "y" ? "height" : "width", b = parseFloat(o[k]), s = h === "y" ? ["top", "bottom"] : ["left", "right"], v = s.map(
297
+ const o = getComputedStyle(e), f = +o.opacity, C = h === "y" ? "height" : "width", b = parseFloat(o[C]), s = h === "y" ? ["top", "bottom"] : ["left", "right"], v = s.map(
298
298
  (n) => (
299
299
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
300
300
  `${n[0].toUpperCase()}${n.slice(1)}`
@@ -308,7 +308,7 @@ function It(e, { delay: t = 0, duration: a = 400, easing: r = Qe, axis: h = "y"
308
308
  delay: t,
309
309
  duration: a,
310
310
  easing: r,
311
- css: (n) => `overflow: hidden;opacity: ${Math.min(n * 20, 1) * f};${k}: ${n * b}px;padding-${s[0]}: ${n * i}px;padding-${s[1]}: ${n * u}px;margin-${s[0]}: ${n * c}px;margin-${s[1]}: ${n * d}px;border-${s[0]}-width: ${n * p}px;border-${s[1]}-width: ${n * m}px;min-${k}: 0`
311
+ css: (n) => `overflow: hidden;opacity: ${Math.min(n * 20, 1) * f};${C}: ${n * b}px;padding-${s[0]}: ${n * i}px;padding-${s[1]}: ${n * u}px;margin-${s[0]}: ${n * c}px;margin-${s[1]}: ${n * d}px;border-${s[0]}-width: ${n * p}px;border-${s[1]}-width: ${n * m}px;min-${C}: 0`
312
312
  };
313
313
  }
314
314
  function Xe(e) {
@@ -331,7 +331,7 @@ var Ye = (e, t) => {
331
331
  }, ta = $('<div tabindex="-1"><button aria-haspopup="true"><!></button> <!></div>');
332
332
  function Q(e, t) {
333
333
  X(t, !0);
334
- let a = V(t, "class", 7), r = V(t, "buttonClass", 7, ""), h = V(t, "contentClass", 7, ""), o = V(t, "open", 15, !1), f = V(t, "as", 7, "div"), k = V(t, "transition", 7, It), b = V(t, "autoCollapse", 7, !0), s = V(t, "label", 7), v = V(t, "button", 7), i = V(t, "children", 7);
334
+ let a = V(t, "class", 7), r = V(t, "buttonClass", 7, ""), h = V(t, "contentClass", 7, ""), o = V(t, "open", 15, !1), f = V(t, "as", 7, "div"), C = V(t, "transition", 7, It), b = V(t, "autoCollapse", 7, !0), s = V(t, "label", 7), v = V(t, "button", 7), i = V(t, "children", 7);
335
335
  var u = ta(), c = w(u);
336
336
  c.__click = [Ye, o];
337
337
  var d = w(c);
@@ -341,7 +341,7 @@ function Q(e, t) {
341
341
  var m = (n) => {
342
342
  var N = R(), _ = P(N);
343
343
  ze(_, f, !1, (M, L) => {
344
- E(() => I(M, 0, rt(h()))), Oe(3, M, k, () => ({ duration: 200, easing: Xe }));
344
+ E(() => I(M, 0, rt(h()))), Oe(3, M, C, () => ({ duration: 200, easing: Xe }));
345
345
  var S = R(), g = P(S);
346
346
  qt(g, () => i() ?? et), x(L, S);
347
347
  }), x(n, N);
@@ -386,10 +386,10 @@ function Q(e, t) {
386
386
  f(n), Z();
387
387
  },
388
388
  get transition() {
389
- return k();
389
+ return C();
390
390
  },
391
391
  set transition(n = It) {
392
- k(n), Z();
392
+ C(n), Z();
393
393
  },
394
394
  get autoCollapse() {
395
395
  return b();
@@ -535,7 +535,7 @@ function Yt(e, t) {
535
535
  X(t, !1), Ht();
536
536
  var a = oa(), r = w(a);
537
537
  B(r, 5, () => Xt, (h) => h.text || h.title, (h, o) => {
538
- var f = la(), k = w(f);
538
+ var f = la(), C = w(f);
539
539
  {
540
540
  var b = (v) => {
541
541
  const i = at(() => ot("flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-grey-muted aria-expanded:bg-grey-muted hover:text-grey-muted-contrast aria-expanded:text-grey-muted-contrast", l(o).icon && "[&_svg]:aria-expanded:rotate-180)} aspect-square")), u = at(() => l(o).icon ? l(o).text : void 0);
@@ -563,8 +563,8 @@ function Yt(e, t) {
563
563
  }, _ = (M) => {
564
564
  var L = ea(), S = P(L), g = w(S, !0);
565
565
  y(S);
566
- var C = z(S, 2);
567
- G(C, { icon: bt }), E(() => F(g, l(o).text)), x(M, L);
566
+ var k = z(S, 2);
567
+ G(k, { icon: bt }), E(() => F(g, l(o).text)), x(M, L);
568
568
  };
569
569
  H(n, (M) => {
570
570
  l(o).icon ? M(N) : M(_, !1);
@@ -579,9 +579,9 @@ function Yt(e, t) {
579
579
  let S;
580
580
  var g = w(L, !0);
581
581
  y(L), y(M), E(
582
- (C) => {
582
+ (k) => {
583
583
  S = lt(L, S, {
584
- class: C,
584
+ class: k,
585
585
  href: l(_).href,
586
586
  ...l(_).attributes
587
587
  }), F(g, l(_).text);
@@ -607,7 +607,7 @@ function Yt(e, t) {
607
607
  at
608
608
  ), x(v, i);
609
609
  };
610
- H(k, (v) => {
610
+ H(C, (v) => {
611
611
  l(o).links ? v(b) : v(s, !1);
612
612
  });
613
613
  }
@@ -658,18 +658,18 @@ function re(e, t) {
658
658
  X(t, !1);
659
659
  const [a, r] = _t(), h = () => mt(o, "$headerState", a), o = jt("header-state");
660
660
  Ht();
661
- var f = va(), k = w(f);
661
+ var f = va(), C = w(f);
662
662
  {
663
663
  var b = (c) => {
664
664
  var d = ua(), p = w(d);
665
665
  te(p), y(d), x(c, d);
666
666
  };
667
- H(k, (c) => {
667
+ H(C, (c) => {
668
668
  var d;
669
669
  ((d = h()) == null ? void 0 : d.mode) === "desktop" && c(b);
670
670
  });
671
671
  }
672
- var s = z(k, 2), v = w(s);
672
+ var s = z(C, 2), v = w(s);
673
673
  {
674
674
  var i = (c) => {
675
675
  ae(c);
@@ -699,7 +699,7 @@ function se(e) {
699
699
  x(e, t);
700
700
  }
701
701
  U(se, {}, [], [], !0);
702
- var da = $('<a class="text-yellow-text flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pt-8 pb-6 transition-colors hover:border-yellow hover:text-white [&amp;>svg]:fill-current"><!></a>'), ha = $('<a class="hover:text-yellow-text flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pt-6 text-center transition-colors hover:border-yellow"> </a>'), pa = $("<li><!></li>"), ga = $('<ul class="ml-auto flex text-xl [&amp;>li]:contents"></ul>');
702
+ var da = $('<a class="text-yellow flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pt-8 pb-6 transition-colors hover:border-yellow hover:text-white [&amp;>svg]:fill-current"><!></a>'), ha = $('<a class="hover:text-yellow flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pt-6 text-center transition-colors hover:border-yellow"> </a>'), pa = $("<li><!></li>"), ga = $('<ul class="ml-auto flex text-xl [&amp;>li]:contents"></ul>');
703
703
  function le(e) {
704
704
  var t = ga();
705
705
  B(t, 5, () => Qt, st, (a, r) => {
@@ -714,24 +714,24 @@ function le(e) {
714
714
  }), y(s), E(() => {
715
715
  q(s, "href", l(r).href), q(s, "aria-label", l(r).text);
716
716
  }), x(b, s);
717
- }, k = (b) => {
717
+ }, C = (b) => {
718
718
  var s = ha(), v = w(s, !0);
719
719
  y(s), E(() => {
720
720
  q(s, "href", l(r).href), F(v, l(r).text);
721
721
  }), x(b, s);
722
722
  };
723
723
  H(o, (b) => {
724
- l(r).icon ? b(f) : b(k, !1);
724
+ l(r).icon ? b(f) : b(C, !1);
725
725
  });
726
726
  }
727
727
  y(h), x(a, h);
728
728
  }), y(t), x(e, t);
729
729
  }
730
730
  U(le, {}, [], [], !0);
731
- var ba = $('<li class="[&amp;>*]:first:mt-4 [&amp;>*]:last:mb-4"><a> </a></li>'), xa = $('<a class="flex aspect-square h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-white hover:text-black focus:bg-white focus:text-black aria-expanded:bg-white aria-expanded:text-black"><!></a>'), ma = $('<li data-testid="outer-link"><!></li>'), _a = $('<span><span class="mr-auto"> </span> <!></span>'), ya = $("<li><a> </a></li>"), wa = $("<a> </a>"), Ma = $('<li class="[&amp;>*]:first:mt-4 [&amp;>*]:last:mb-4"><!></li>'), ka = $('<ul class="flex h-full [&amp;>li]:contents"><!> <li><!></li></ul>');
731
+ var ba = $('<li class="[&amp;>*]:first:mt-4 [&amp;>*]:last:mb-4"><a> </a></li>'), xa = $('<a class="flex aspect-square h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-white hover:text-black focus:bg-white focus:text-black aria-expanded:bg-white aria-expanded:text-black"><!></a>'), ma = $('<li data-testid="outer-link"><!></li>'), _a = $('<span><span class="mr-auto"> </span> <!></span>'), ya = $("<li><a> </a></li>"), wa = $("<a> </a>"), Ma = $('<li class="[&amp;>*]:first:mt-4 [&amp;>*]:last:mb-4"><!></li>'), Ca = $('<ul class="flex h-full [&amp;>li]:contents"><!> <li><!></li></ul>');
732
732
  function oe(e) {
733
733
  const t = [...Qt, ...Xt], a = t.filter((b) => !(b != null && b.excludeFromMainMenu)), r = t.filter((b) => b == null ? void 0 : b.excludeFromMainMenu);
734
- var h = ka(), o = w(h);
734
+ var h = Ca(), o = w(h);
735
735
  B(o, 1, () => r, (b) => b.text || b.title, (b, s) => {
736
736
  var v = ma(), i = w(v);
737
737
  {
@@ -755,11 +755,11 @@ function oe(e) {
755
755
  children: (n, N) => {
756
756
  var _ = R(), M = P(_);
757
757
  B(M, 1, () => l(s).links, st, (L, S) => {
758
- var g = ba(), C = w(g);
758
+ var g = ba(), k = w(g);
759
759
  let A;
760
- var T = w(C, !0);
761
- y(C), y(g), E(() => {
762
- A = lt(C, A, {
760
+ var T = w(k, !0);
761
+ y(k), y(g), E(() => {
762
+ A = lt(k, A, {
763
763
  class: "border-grey/50 hover:bg-grey-muted border-0 border-b border-solid p-2 transition-colors",
764
764
  href: l(S).href,
765
765
  ...l(S).attributes
@@ -785,8 +785,8 @@ function oe(e) {
785
785
  }
786
786
  y(v), x(b, v);
787
787
  });
788
- var f = z(o, 2), k = w(f);
789
- Q(k, {
788
+ var f = z(o, 2), C = w(f);
789
+ Q(C, {
790
790
  class: "h-full w-fit",
791
791
  label: "Main Menu",
792
792
  buttonClass: "flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-white focus:bg-white aria-expanded:bg-white hover:text-black focus:text-black aria-expanded:text-black [&_svg]:aria-expanded:rotate-180",
@@ -810,16 +810,16 @@ function oe(e) {
810
810
  button: (L) => {
811
811
  var S = _a();
812
812
  let g;
813
- var C = w(S), A = w(C, !0);
814
- y(C);
815
- var T = z(C, 2);
813
+ var k = w(S), A = w(k, !0);
814
+ y(k);
815
+ var T = z(k, 2);
816
816
  G(T, { icon: bt }), y(S), E(() => {
817
817
  g = I(S, 1, "flex w-full items-center justify-between gap-2 [&>svg]:transition-transform", null, g, { "bg-yellow": l(d).highlight }), F(A, l(d).text);
818
818
  }), x(L, S);
819
819
  },
820
820
  children: (L, S) => {
821
- var g = R(), C = P(g);
822
- B(C, 1, () => l(d).links, st, (A, T) => {
821
+ var g = R(), k = P(g);
822
+ B(k, 1, () => l(d).links, st, (A, T) => {
823
823
  var W = ya(), j = w(W);
824
824
  let vt;
825
825
  var yt = w(j, !0);
@@ -853,17 +853,17 @@ function oe(e) {
853
853
  }), y(f), y(h), x(e, h);
854
854
  }
855
855
  U(oe, {}, [], [], !0);
856
- var Ca = $('<a href="https://www.guelphhumber.ca" class="ml-auto h-full w-auto p-4 transition-opacity hover:opacity-75 focus:opacity-75"><span class="sr-only">University of Guelph-Humber Homepage</span> <!></a>'), $a = $('<nav aria-label="Primary"><!> <!></nav>');
856
+ var ka = $('<a href="https://www.guelphhumber.ca" class="ml-auto h-full w-auto p-4 transition-opacity hover:opacity-75 focus:opacity-75"><span class="sr-only">University of Guelph-Humber Homepage</span> <!></a>'), $a = $('<nav aria-label="Primary"><!> <!></nav>');
857
857
  function ne(e, t) {
858
858
  X(t, !1);
859
859
  const [a, r] = _t(), h = () => mt(o, "$headerState", a), o = jt("header-state");
860
860
  Ht();
861
- var f = $a(), k = w(f);
862
- re(k, {});
863
- var b = z(k, 2);
861
+ var f = $a(), C = w(f);
862
+ re(C, {});
863
+ var b = z(C, 2);
864
864
  {
865
865
  var s = (i) => {
866
- var u = Ca(), c = z(w(u), 2);
866
+ var u = ka(), c = z(w(u), 2);
867
867
  se(c), y(u), x(i, u);
868
868
  }, v = (i) => {
869
869
  var u = R(), c = P(u);
@@ -907,7 +907,7 @@ function ie(e, t) {
907
907
  let a = V(t, "items", 7);
908
908
  var r = R(), h = P(r);
909
909
  return B(h, 17, a, (o) => o.text || o.title, (o, f) => {
910
- var k = R(), b = P(k);
910
+ var C = R(), b = P(C);
911
911
  {
912
912
  var s = (i) => {
913
913
  var u = Na(), c = w(u);
@@ -927,14 +927,14 @@ function ie(e, t) {
927
927
  B(N, 17, () => l(f).links, st, (_, M) => {
928
928
  var L = La(), S = w(L);
929
929
  let g;
930
- var C = w(S, !0);
930
+ var k = w(S, !0);
931
931
  y(S), y(L), E(() => {
932
932
  var A;
933
933
  g = lt(S, g, {
934
934
  ...l(M).attributes,
935
935
  class: `border-grey/50 border-0 border-b border-solid p-2 transition-colors hover:bg-yellow hover:text-yellow-contrast focus:bg-yellow focus:text-yellow-contrast ${((A = l(M).attributes) == null ? void 0 : A.class) ?? ""}`,
936
936
  href: l(M).href
937
- }), F(C, l(M).text);
937
+ }), F(k, l(M).text);
938
938
  }), x(_, L);
939
939
  }), x(p, n);
940
940
  },
@@ -957,7 +957,7 @@ function ie(e, t) {
957
957
  l(f).links ? i(s) : i(v, !1);
958
958
  });
959
959
  }
960
- x(o, k);
960
+ x(o, C);
961
961
  }), x(e, r), Y({
962
962
  get items() {
963
963
  return a();
@@ -982,7 +982,7 @@ function ce(e, t) {
982
982
  button: (f) => {
983
983
  G(f, { icon: Dt });
984
984
  },
985
- children: (f, k) => {
985
+ children: (f, C) => {
986
986
  var b = R(), s = P(b);
987
987
  B(s, 17, a, (v) => v.text || v.title, (v, i) => {
988
988
  var u = ja(), c = w(u);
@@ -1015,17 +1015,17 @@ function ce(e, t) {
1015
1015
  children: (N, _) => {
1016
1016
  var M = R(), L = P(M);
1017
1017
  B(L, 17, () => l(i).links, st, (S, g) => {
1018
- var C = Za(), A = w(C);
1018
+ var k = Za(), A = w(k);
1019
1019
  let T;
1020
1020
  var W = w(A, !0);
1021
- y(A), y(C), E(() => {
1021
+ y(A), y(k), E(() => {
1022
1022
  var j;
1023
1023
  T = lt(A, T, {
1024
1024
  ...l(g).attributes,
1025
1025
  class: `border-grey/50 hover:bg-grey-muted hover:text-grey-muted-contrast border-0 border-b border-solid p-2 transition-colors ${((j = l(g).attributes) == null ? void 0 : j.class) ?? ""}`,
1026
1026
  href: l(g).href
1027
1027
  }), F(W, l(g).text);
1028
- }), x(S, C);
1028
+ }), x(S, k);
1029
1029
  }), x(N, M);
1030
1030
  },
1031
1031
  $$slots: { button: !0, default: !0 }
@@ -1053,7 +1053,7 @@ var Ta = $('<a class="mr-auto flex h-full items-center justify-center px-3 font-
1053
1053
  function ue(e, t) {
1054
1054
  X(t, !0);
1055
1055
  const [a, r] = _t(), h = () => mt(o, "$headerState", a), o = jt("header-state");
1056
- let f = V(t, "items", 7), k = V(t, "title", 7), b = V(t, "url", 7), s = ct(void 0), v = ct(void 0), i = ct(void 0), u, c = ct(void 0);
1056
+ let f = V(t, "items", 7), C = V(t, "title", 7), b = V(t, "url", 7), s = ct(void 0), v = ct(void 0), i = ct(void 0), u, c = ct(void 0);
1057
1057
  Zt(() => {
1058
1058
  var g;
1059
1059
  clearTimeout(u), ((g = h()) == null ? void 0 : g.mode) === "desktop" && l(s) - l(v) < l(i) && (u = setTimeout(
@@ -1069,35 +1069,35 @@ function ue(e, t) {
1069
1069
  var d = Pa(), p = w(d), m = w(p);
1070
1070
  {
1071
1071
  var n = (g) => {
1072
- var C = Ta(), A = w(C, !0);
1073
- y(C), E(() => {
1074
- q(C, "href", b()), F(A, k());
1075
- }), dt(C, "clientWidth", (T) => tt(v, T)), x(g, C);
1072
+ var k = Ta(), A = w(k, !0);
1073
+ y(k), E(() => {
1074
+ q(k, "href", b()), F(A, C());
1075
+ }), dt(k, "clientWidth", (T) => tt(v, T)), x(g, k);
1076
1076
  }, N = (g) => {
1077
- var C = R(), A = P(C);
1077
+ var k = R(), A = P(k);
1078
1078
  {
1079
1079
  var T = (W) => {
1080
1080
  var j = Fa(), vt = w(j, !0);
1081
- y(j), E(() => F(vt, k())), dt(j, "clientWidth", (yt) => tt(v, yt)), x(W, j);
1081
+ y(j), E(() => F(vt, C())), dt(j, "clientWidth", (yt) => tt(v, yt)), x(W, j);
1082
1082
  };
1083
1083
  H(
1084
1084
  A,
1085
1085
  (W) => {
1086
- k() && W(T);
1086
+ C() && W(T);
1087
1087
  },
1088
1088
  !0
1089
1089
  );
1090
1090
  }
1091
- x(g, C);
1091
+ x(g, k);
1092
1092
  };
1093
1093
  H(m, (g) => {
1094
- k() && b() ? g(n) : g(N, !1);
1094
+ C() && b() ? g(n) : g(N, !1);
1095
1095
  });
1096
1096
  }
1097
1097
  var _ = z(m, 2), M = w(_);
1098
1098
  {
1099
1099
  var L = (g) => {
1100
- var C = R(), A = P(C);
1100
+ var k = R(), A = P(k);
1101
1101
  {
1102
1102
  var T = (j) => {
1103
1103
  ie(j, {
@@ -1116,11 +1116,11 @@ function ue(e, t) {
1116
1116
  h().mode === "desktop" && (isNaN(l(c)) || l(s) > l(c)) ? j(T) : j(W, !1);
1117
1117
  });
1118
1118
  }
1119
- x(g, C);
1119
+ x(g, k);
1120
1120
  };
1121
1121
  H(M, (g) => {
1122
- var C;
1123
- ((C = f()) == null ? void 0 : C.length) > 0 && g(L);
1122
+ var k;
1123
+ ((k = f()) == null ? void 0 : k.length) > 0 && g(L);
1124
1124
  });
1125
1125
  }
1126
1126
  y(_), y(p), y(d), E((g) => I(d, 1, rt(g)), [
@@ -1137,10 +1137,10 @@ function ue(e, t) {
1137
1137
  f(g), Z();
1138
1138
  },
1139
1139
  get title() {
1140
- return k();
1140
+ return C();
1141
1141
  },
1142
1142
  set title(g) {
1143
- k(g), Z();
1143
+ C(g), Z();
1144
1144
  },
1145
1145
  get url() {
1146
1146
  return b();
@@ -1157,7 +1157,7 @@ var Ua = $('<header class="font-condensed relative z-10 w-full text-black"><!> <
1157
1157
  function za(e, t) {
1158
1158
  X(t, !0);
1159
1159
  const [a, r] = _t(), h = () => mt(i, "$headerState", a);
1160
- let o = V(t, "subNavigation", 7), f = V(t, "pageTitle", 7), k = V(t, "pageURL", 7), b = V(t, "variant", 7), s = ct(void 0);
1160
+ let o = V(t, "subNavigation", 7), f = V(t, "pageTitle", 7), C = V(t, "pageURL", 7), b = V(t, "variant", 7), s = ct(void 0);
1161
1161
  const v = 1024, i = Fe({ mode: "mobile", variant: b() });
1162
1162
  Pe("header-state", i), Zt(() => {
1163
1163
  i.set({
@@ -1184,7 +1184,7 @@ function za(e, t) {
1184
1184
  return f();
1185
1185
  },
1186
1186
  get url() {
1187
- return k();
1187
+ return C();
1188
1188
  },
1189
1189
  get items() {
1190
1190
  return o();
@@ -1211,10 +1211,10 @@ function za(e, t) {
1211
1211
  f(_), Z();
1212
1212
  },
1213
1213
  get pageURL() {
1214
- return k();
1214
+ return C();
1215
1215
  },
1216
1216
  set pageURL(_) {
1217
- k(_), Z();
1217
+ C(_), Z();
1218
1218
  },
1219
1219
  get variant() {
1220
1220
  return b();
@@ -1,5 +1,5 @@
1
- import { y as q, z as D, A as F, B as T, S as z, m as j, c as R, e as U, p as l, u as E, t as J, C as y, h as w, F as K, D as L, g as M, a as N, i as Y, s as _, j as G, b as H, d as I, k as o, r as x, l as P } from "./bundle-mjs-D18igZXZ.js";
2
- import { a as Q } from "./slot-C0Z6dVQP.js";
1
+ import { y as q, z as D, A as F, B as T, S as z, m as j, c as R, e as U, p as l, u as E, t as J, C as y, h as w, F as K, D as L, g as M, a as N, i as Y, s as _, j as G, b as H, d as I, k as o, r as x, l as P } from "./bundle-mjs-D9l_ATWO.js";
2
+ import { a as Q } from "./slot-DIYGyizX.js";
3
3
  function B(a, e) {
4
4
  return a === e || (a == null ? void 0 : a[z]) === e;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { ag as n, z as w, y as d, aC as f, aD as v } from "./bundle-mjs-D18igZXZ.js";
1
+ import { aj as n, z as w, y as d, aD as f, aE as v } from "./bundle-mjs-D9l_ATWO.js";
2
2
  function m(a, e, c = e) {
3
3
  var u = a === "x", s = () => n(() => {
4
4
  r = !0, clearTimeout(t), t = setTimeout(l, 100), c(window[u ? "scrollX" : "scrollY"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/web-components",
3
- "version": "1.9.1-rc.2",
3
+ "version": "1.9.1-rc.4",
4
4
  "description": "University of Guelph Web Components Library",
5
5
  "type": "module",
6
6
  "files": [
@@ -36,6 +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.3.1",
39
40
  "tailwindcss": "^4.0.6",
40
41
  "vite": "^6.0.0"
41
42
  },
@@ -48,5 +49,5 @@
48
49
  "bugs": {
49
50
  "url": "https://github.com/ccswbs/uofg-components/issues"
50
51
  },
51
- "gitHead": "a5c0cbe9f6cf602372b966c5d409b3a763d01b50"
52
+ "gitHead": "7ed44af687e0e7b9c6023848735fb78d500d24ec"
52
53
  }