@uoguelph/react-components 1.3.7 → 1.3.8

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,14 +1,15 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { Link as u } from "./link.js";
3
- function k({
1
+ "use client";
2
+ import { jsx as u } from "react/jsx-runtime";
3
+ import { Link as i } from "./link.js";
4
+ function a({
4
5
  as: o,
5
6
  children: t,
6
7
  className: n,
7
- href: r,
8
- ...e
8
+ href: e,
9
+ ...r
9
10
  }) {
10
- return /* @__PURE__ */ m(u, { ...e, href: r, as: o ?? "a", className: `uofg-blockquote-author-link ${n}`, children: t });
11
+ return /* @__PURE__ */ u(i, { ...r, href: e, as: o ?? "a", className: `uofg-blockquote-author-link ${n}`, children: t });
11
12
  }
12
13
  export {
13
- k as BlockquoteAuthorLink
14
+ a as BlockquoteAuthorLink
14
15
  };
@@ -1,8 +1,9 @@
1
+ "use client";
1
2
  import { jsx as r } from "react/jsx-runtime";
2
3
  import { twMerge as u } from "tailwind-merge";
3
- function c({ children: o, className: t, ...e }) {
4
+ function m({ children: o, className: t, ...e }) {
4
5
  return /* @__PURE__ */ r("cite", { ...e, className: u("uofg-blockquote-author-name uog:not-italic uog:font-bold", t), children: o });
5
6
  }
6
7
  export {
7
- c as BlockquoteAuthorName
8
+ m as BlockquoteAuthorName
8
9
  };
@@ -1,8 +1,9 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
2
3
  import { twMerge as u } from "tailwind-merge";
3
- function a({ children: o, className: t, ...r }) {
4
- return /* @__PURE__ */ e("span", { ...r, className: u("uofg-blockquote-author-title uog:italic", t), children: o });
4
+ function c({ children: t, className: o, ...e }) {
5
+ return /* @__PURE__ */ r("span", { ...e, className: u("uofg-blockquote-author-title uog:italic", o), children: t });
5
6
  }
6
7
  export {
7
- a as BlockquoteAuthorTitle
8
+ c as BlockquoteAuthorTitle
8
9
  };
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import { jsx as l } from "react/jsx-runtime";
2
3
  import { useContext as u } from "react";
3
- import { twMerge as g } from "tailwind-merge";
4
- import { tv as s } from "tailwind-variants";
5
- import { BlockquoteContext as m } from "./blockquote-context.js";
4
+ import { twMerge as s } from "tailwind-merge";
5
+ import { tv as g } from "tailwind-variants";
6
+ import { BlockquoteContext as c } from "./blockquote-context.js";
6
7
  function p({ className: r, children: t }) {
7
- const o = u(m), e = s({
8
+ const o = u(c), e = g({
8
9
  base: "uofg-blockquote-author uog:border-l-4 uog:pl-4 uog:flex uog:flex-col uog:gap-1 uog:items-start uog:font-light",
9
10
  variants: {
10
11
  color: {
@@ -13,7 +14,7 @@ function p({ className: r, children: t }) {
13
14
  }
14
15
  }
15
16
  });
16
- return /* @__PURE__ */ l("div", { className: g(e({ color: (o == null ? void 0 : o.color) ?? "yellow" }), r), children: t });
17
+ return /* @__PURE__ */ l("div", { className: s(e({ color: (o == null ? void 0 : o.color) ?? "yellow" }), r), children: t });
17
18
  }
18
19
  export {
19
20
  p as BlockquoteAuthor
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as t, jsx as e, Fragment as n } from "react/jsx-runtime";
2
3
  import { f as a, a as m } from "./solid-D19hAF5t.js";
3
4
  import { FontAwesomeIcon as s } from "@fortawesome/react-fontawesome";
@@ -1,20 +1,21 @@
1
+ "use client";
1
2
  import { jsx as o } from "react/jsx-runtime";
2
3
  import { twMerge as u } from "tailwind-merge";
3
- import { BlockquoteContext as m } from "./blockquote-context.js";
4
- import { BlockquoteAuthor as q } from "./blockquote-author.js";
4
+ import { BlockquoteContext as c } from "./blockquote-context.js";
5
+ import { BlockquoteAuthor as n } from "./blockquote-author.js";
5
6
  import { BlockquoteAuthorLink as B } from "./blockquote-author-link.js";
6
7
  import { BlockquoteAuthorName as h } from "./blockquote-author-name.js";
7
- import { BlockquoteAuthorTitle as s } from "./blockquote-author-title.js";
8
+ import { BlockquoteAuthorTitle as d } from "./blockquote-author-title.js";
8
9
  import { BlockquoteContent as g } from "./blockquote-content.js";
9
- function c({ className: e, hideQuotationMarks: t, children: r, color: l = "yellow" }) {
10
- return /* @__PURE__ */ o(m.Provider, { value: { color: l, hideQuotationMarks: t }, children: /* @__PURE__ */ o("div", { className: `uofg-blockquote ${u("flex flex-col gap-2", e)}`, children: r }) });
10
+ function m({ className: e, hideQuotationMarks: t, children: r, color: l = "yellow" }) {
11
+ return /* @__PURE__ */ o(c.Provider, { value: { color: l, hideQuotationMarks: t }, children: /* @__PURE__ */ o("div", { className: `uofg-blockquote ${u("flex flex-col gap-2", e)}`, children: r }) });
11
12
  }
12
- c.displayName = "Blockquote";
13
+ m.displayName = "Blockquote";
13
14
  export {
14
- c as Blockquote,
15
- q as BlockquoteAuthor,
15
+ m as Blockquote,
16
+ n as BlockquoteAuthor,
16
17
  B as BlockquoteAuthorLink,
17
18
  h as BlockquoteAuthorName,
18
- s as BlockquoteAuthorTitle,
19
+ d as BlockquoteAuthorTitle,
19
20
  g as BlockquoteContent
20
21
  };
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import { jsx as i } from "react/jsx-runtime";
2
- import { useContext as g } from "react";
3
- import { twMerge as n } from "tailwind-merge";
3
+ import { useContext as n } from "react";
4
+ import { twMerge as g } from "tailwind-merge";
4
5
  import { tv as s } from "tailwind-variants";
5
6
  import { CardContext as u } from "./card-context.js";
6
7
  function a({ children: t, className: r }) {
7
- const o = g(u), e = s({
8
+ const o = n(u), e = s({
8
9
  base: "uog:flex uog:flex-col uog:flex-1 uog:gap-2 uog:bg-grey-light-bg uog:p-5 uog:text-grey-light-contrast",
9
10
  variants: {
10
11
  isLink: {
@@ -12,7 +13,7 @@ function a({ children: t, className: r }) {
12
13
  }
13
14
  }
14
15
  });
15
- return /* @__PURE__ */ i("div", { className: `uofg-card-content ${n(e({ isLink: (o == null ? void 0 : o.isLink) ?? !1 }), r)}`, children: t });
16
+ return /* @__PURE__ */ i("div", { className: `uofg-card-content ${g(e({ isLink: (o == null ? void 0 : o.isLink) ?? !1 }), r)}`, children: t });
16
17
  }
17
18
  a.displayName = "CardContent";
18
19
  export {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as a } from "react/jsx-runtime";
2
3
  import { useContext as g } from "react";
3
4
  import { twMerge as i } from "tailwind-merge";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as r } from "react/jsx-runtime";
2
3
  import { useContext as f } from "react";
3
4
  import { twMerge as p } from "tailwind-merge";
@@ -26,8 +27,8 @@ function h({
26
27
  }
27
28
  }
28
29
  }
29
- }), { container: d, wrapper: l, image: c } = u({ isLink: (o == null ? void 0 : o.isLink) ?? !1 });
30
- return /* @__PURE__ */ r("div", { className: `uofg-card-image-container ${d()}`, children: /* @__PURE__ */ r("div", { className: `uofg-card-image-wrapper ${l()}`, children: /* @__PURE__ */ r(
30
+ }), { container: l, wrapper: c, image: d } = u({ isLink: (o == null ? void 0 : o.isLink) ?? !1 });
31
+ return /* @__PURE__ */ r("div", { className: `uofg-card-image-container ${l()}`, children: /* @__PURE__ */ r("div", { className: `uofg-card-image-wrapper ${c()}`, children: /* @__PURE__ */ r(
31
32
  g,
32
33
  {
33
34
  ...s,
@@ -35,7 +36,7 @@ function h({
35
36
  alt: i,
36
37
  width: n,
37
38
  height: t,
38
- className: `uofg-card-image ${p(c(), m)}`
39
+ className: `uofg-card-image ${p(d(), m)}`
39
40
  }
40
41
  ) }) });
41
42
  }
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import { jsx as i } from "react/jsx-runtime";
2
- import { useContext as a } from "react";
3
- import { twMerge as m } from "tailwind-merge";
4
- import { tv as n } from "tailwind-variants";
3
+ import { useContext as n } from "react";
4
+ import { twMerge as a } from "tailwind-merge";
5
+ import { tv as m } from "tailwind-variants";
5
6
  import { CardContext as s } from "./card-context.js";
6
- function d({ children: t, className: r }) {
7
- const e = a(s), o = n({
7
+ function u({ children: t, className: r }) {
8
+ const e = n(s), o = m({
8
9
  base: "uog:flex uog:font-bold uog:text-lg",
9
10
  variants: {
10
11
  centered: {
@@ -12,9 +13,9 @@ function d({ children: t, className: r }) {
12
13
  }
13
14
  }
14
15
  });
15
- return /* @__PURE__ */ i("div", { className: `uofg-card-title ${m(o({ centered: (e == null ? void 0 : e.centered) ?? !1 }), r)}`, children: t });
16
+ return /* @__PURE__ */ i("div", { className: `uofg-card-title ${a(o({ centered: (e == null ? void 0 : e.centered) ?? !1 }), r)}`, children: t });
16
17
  }
17
- d.displayName = "CardTitle";
18
+ u.displayName = "CardTitle";
18
19
  export {
19
- d as CardTitle
20
+ u as CardTitle
20
21
  };
package/dist/card.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as t } from "react/jsx-runtime";
2
3
  import { Children as f } from "react";
3
4
  import { twMerge as l } from "tailwind-merge";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
3
  import { g as i } from "./solid-D19hAF5t.js";
3
4
  import { FontAwesomeIcon as s } from "@fortawesome/react-fontawesome";
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as c, Fragment as p, jsx as n } from "react/jsx-runtime";
2
3
  import { useState as w } from "react";
3
4
  import { twMerge as f } from "tailwind-merge";
@@ -44,48 +45,48 @@ function N(l) {
44
45
  return { type: e, id: t };
45
46
  }
46
47
  function m({ src: l, title: e, transcript: t, className: o }) {
47
- const { id: d, type: i } = N(l), r = g({
48
+ const { id: i, type: d } = N(l), u = g({
48
49
  slots: {
49
50
  base: f("uog:flex uog:flex-col", o),
50
51
  iframe: "uog:w-full uog:h-full uog:aspect-video",
51
52
  transcriptButton: "uog:p-3 uog:w-full"
52
53
  }
53
- }), { base: a, iframe: u, transcriptButton: s } = r();
54
- return /* @__PURE__ */ c("div", { className: a(), children: [
55
- i === "youtube" && d && /* @__PURE__ */ n(
54
+ }), { base: s, iframe: r, transcriptButton: a } = u();
55
+ return /* @__PURE__ */ c("div", { className: s(), children: [
56
+ d === "youtube" && i && /* @__PURE__ */ n(
56
57
  "iframe",
57
58
  {
58
- className: u(),
59
+ className: r(),
59
60
  allowFullScreen: !0,
60
- src: `https://www.youtube.com/embed/${d}`,
61
+ src: `https://www.youtube.com/embed/${i}`,
61
62
  title: e ?? "YouTube Embedded Video Player"
62
63
  }
63
64
  ),
64
- i === "vimeo" && d && /* @__PURE__ */ n(
65
+ d === "vimeo" && i && /* @__PURE__ */ n(
65
66
  "iframe",
66
67
  {
67
- className: u(),
68
+ className: r(),
68
69
  allowFullScreen: !0,
69
- src: `https://player.vimeo.com/video/${d}`,
70
+ src: `https://player.vimeo.com/video/${i}`,
70
71
  title: e ?? "Vimeo Embedded Video Player"
71
72
  }
72
73
  ),
73
- t && /* @__PURE__ */ n(h, { as: "a", color: "black", className: s(), href: t, download: !0, children: "Download Transcript" })
74
+ t && /* @__PURE__ */ n(h, { as: "a", color: "black", className: a(), href: t, download: !0, children: "Download Transcript" })
74
75
  ] });
75
76
  }
76
- function E({ src: l, title: e, transcript: t, className: o, children: d }) {
77
- const [i, r] = w(!1);
78
- if (d) {
79
- const a = g({
77
+ function E({ src: l, title: e, transcript: t, className: o, children: i }) {
78
+ const [d, u] = w(!1);
79
+ if (i) {
80
+ const s = g({
80
81
  slots: {
81
82
  container: "uog:bg-grey-dark-bg uog:flex uog:w-screen uog:max-w-6xl uog:lg:max-w-7xl uog:flex-col uog:gap-4 uog:p-4 uog:text-grey-dark-contrast",
82
83
  video: "uog:w-full",
83
84
  title: "uog:text-xl uog:font-bold"
84
85
  }
85
- }), { container: u, video: s, title: v } = a();
86
+ }), { container: r, video: a, title: v } = s();
86
87
  return /* @__PURE__ */ c(p, { children: [
87
- /* @__PURE__ */ n(y.Provider, { value: { modalOpen: i, setModalOpen: r }, children: d }),
88
- /* @__PURE__ */ n(x, { open: i, onClose: () => r(!1), children: /* @__PURE__ */ c("div", { className: `uofg-embedded-video-container ${u()}`, children: [
88
+ /* @__PURE__ */ n(y.Provider, { value: { modalOpen: d, setModalOpen: u }, children: i }),
89
+ /* @__PURE__ */ n(x, { open: d, onClose: () => u(!1), children: /* @__PURE__ */ c("div", { className: `uofg-embedded-video-container ${r()}`, children: [
89
90
  /* @__PURE__ */ n("span", { className: `uofg-embedded-video-title ${v()}`, children: e }),
90
91
  /* @__PURE__ */ n(
91
92
  m,
@@ -93,7 +94,7 @@ function E({ src: l, title: e, transcript: t, className: o, children: d }) {
93
94
  src: l,
94
95
  title: e,
95
96
  transcript: t,
96
- className: `uofg-embedded-video ${f(s(), o)}`
97
+ className: `uofg-embedded-video ${f(a(), o)}`
97
98
  }
98
99
  )
99
100
  ] }) })
@@ -1,6 +1,7 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- function r({ children: o, className: t }) {
3
- return /* @__PURE__ */ e("p", { className: `uofg-hero-caption uog:text-xl ${t}`, children: o });
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ function r({ children: o, className: e }) {
4
+ return /* @__PURE__ */ t("p", { className: `uofg-hero-caption uog:text-xl ${e}`, children: o });
4
5
  }
5
6
  r.displayName = "HeroCaption";
6
7
  export {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as t } from "react/jsx-runtime";
2
3
  import { useContext as n } from "react";
3
4
  import { tv as i } from "tailwind-variants";
package/dist/hero-link.js CHANGED
@@ -1,26 +1,27 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { twMerge as i } from "tailwind-merge";
1
+ "use client";
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { twMerge as m } from "tailwind-merge";
3
4
  import { Button as p } from "./button.js";
4
- function a({
5
+ function l({
5
6
  as: o,
6
- href: r,
7
- children: t,
8
- className: e,
7
+ href: e,
8
+ children: r,
9
+ className: t,
9
10
  ...n
10
11
  }) {
11
- return /* @__PURE__ */ m(
12
+ return /* @__PURE__ */ i(
12
13
  p,
13
14
  {
14
15
  ...n,
15
16
  as: o ?? "a",
16
17
  color: "yellow",
17
- href: r,
18
- className: `uofg-hero-link ${i("uog:p-3 uog:w-fit", e)}`,
19
- children: t
18
+ href: e,
19
+ className: `uofg-hero-link ${m("uog:p-3 uog:w-fit", t)}`,
20
+ children: r
20
21
  }
21
22
  );
22
23
  }
23
- a.displayName = "HeroLink";
24
+ l.displayName = "HeroLink";
24
25
  export {
25
- a as HeroLink
26
+ l as HeroLink
26
27
  };
@@ -1,7 +1,8 @@
1
+ "use client";
1
2
  import { jsx as l } from "react/jsx-runtime";
2
3
  import { useContext as m } from "react";
3
- import { twMerge as g } from "tailwind-merge";
4
- import { tv as u } from "tailwind-variants";
4
+ import { twMerge as u } from "tailwind-merge";
5
+ import { tv as g } from "tailwind-variants";
5
6
  import { HeroContext as f } from "./hero-context.js";
6
7
  function p({
7
8
  as: o,
@@ -9,7 +10,7 @@ function p({
9
10
  className: r,
10
11
  ...i
11
12
  }) {
12
- const t = m(f), s = o ?? "h1", n = u({
13
+ const t = m(f), s = o ?? "h1", n = g({
13
14
  base: "uog:font-serif uog:font-bold uog:text-3xl uog:w-fit",
14
15
  variants: {
15
16
  variant: {
@@ -17,7 +18,7 @@ function p({
17
18
  basic: "uog:bg-yellow uog:md:text-4xl uog:text-yellow-contrast uog:p-1"
18
19
  }
19
20
  }
20
- }), a = `uofg-hero-title ${g(n({ variant: t == null ? void 0 : t.variant }), r)}`;
21
+ }), a = `uofg-hero-title ${u(n({ variant: t == null ? void 0 : t.variant }), r)}`;
21
22
  return /* @__PURE__ */ l(s, { ...i, className: a, children: e });
22
23
  }
23
24
  p.displayName = "HeroTitle";
@@ -1,12 +1,13 @@
1
+ "use client";
1
2
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { g as p } from "./solid-D19hAF5t.js";
3
- import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
3
+ import { g as l } from "./solid-D19hAF5t.js";
4
+ import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
4
5
  import { useContext as u } from "react";
5
6
  import { tv as f } from "tailwind-variants";
6
7
  import { EmbeddedVideo as s } from "./embedded-video.js";
7
8
  import { HeroContext as g } from "./hero-context.js";
8
9
  import { EmbeddedVideoModalButton as m } from "./embedded-video-modal-button.js";
9
- function c({ src: r, title: t, transcript: a, children: n }) {
10
+ function c({ src: t, title: r, transcript: a, children: n }) {
10
11
  const o = u(g), i = `uofg-hero-video ${f({
11
12
  base: "",
12
13
  variants: {
@@ -16,10 +17,10 @@ function c({ src: r, title: t, transcript: a, children: n }) {
16
17
  }
17
18
  }
18
19
  })({ variant: o == null ? void 0 : o.variant })}`;
19
- return (o == null ? void 0 : o.variant) === "spotlight" ? /* @__PURE__ */ e(s, { src: r, title: t, transcript: a, children: /* @__PURE__ */ d(m, { type: "yellow", className: i, children: [
20
- /* @__PURE__ */ e(l, { icon: p }),
20
+ return (o == null ? void 0 : o.variant) === "spotlight" ? /* @__PURE__ */ e(s, { src: t, title: r, transcript: a, children: /* @__PURE__ */ d(m, { type: "yellow", className: i, children: [
21
+ /* @__PURE__ */ e(p, { icon: l }),
21
22
  /* @__PURE__ */ e("span", { children: n })
22
- ] }) }) : /* @__PURE__ */ e(s, { src: r, title: t, transcript: a, children: /* @__PURE__ */ e(m, { type: "play-button", className: i }) });
23
+ ] }) }) : /* @__PURE__ */ e(s, { src: t, title: r, transcript: a, children: /* @__PURE__ */ e(m, { type: "play-button", className: i }) });
23
24
  }
24
25
  c.displayName = "HeroVideo";
25
26
  export {
package/dist/hero.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
3
  import { tv as h } from "tailwind-variants";
3
4
  import { HeroCaption as k } from "./hero-caption.js";
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import { jsx as n } from "react/jsx-runtime";
2
3
  import { useContext as u } from "react";
3
4
  import { twMerge as s } from "tailwind-merge";
4
5
  import { tv as l } from "tailwind-variants";
5
- import { LinkCarouselContext as a } from "./link-carousel-context.js";
6
+ import { LinkCarouselContext as i } from "./link-carousel-context.js";
6
7
  function k({ children: t, className: e }) {
7
- const o = u(a), r = l({
8
+ const o = u(i), r = l({
8
9
  base: "uog:relative uog:h-full uog:hidden uog:md:block",
9
10
  variants: {
10
11
  stack: {
@@ -1,18 +1,19 @@
1
+ "use client";
1
2
  import { jsx as t, Fragment as a } from "react/jsx-runtime";
2
- import { useContext as g } from "react";
3
- import { twMerge as l } from "tailwind-merge";
3
+ import { useContext as l } from "react";
4
+ import { twMerge as g } from "tailwind-merge";
4
5
  import { tv as m } from "tailwind-variants";
5
6
  import { LinkCarouselContext as n } from "./link-carousel-context.js";
6
- function k({ id: e, children: i, className: r }) {
7
- const o = g(n), u = m({
7
+ function k({ id: e, children: i, className: u }) {
8
+ const o = l(n), r = m({
8
9
  base: "uog:w-full uog:hidden uog:bg-white",
9
10
  variants: {
10
11
  isActive: { true: "uog:block uog:relative uog:animate-fade-in uog:z-10" },
11
12
  wasActive: { true: "uog:block uog:absolute uog:z-0 uog:top-0 uog:left-0" }
12
13
  }
13
- }), s = l(
14
- u({ isActive: (o == null ? void 0 : o.activeId) === e, wasActive: (o == null ? void 0 : o.previousActiveId) === e }),
15
- r
14
+ }), s = g(
15
+ r({ isActive: (o == null ? void 0 : o.activeId) === e, wasActive: (o == null ? void 0 : o.previousActiveId) === e }),
16
+ u
16
17
  );
17
18
  return /* @__PURE__ */ t(a, { children: /* @__PURE__ */ t("div", { className: `uofg-link-carousel-item ${s}`, children: i }) });
18
19
  }
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as l, jsx as m } from "react/jsx-runtime";
2
3
  import { c } from "./solid-D19hAF5t.js";
3
4
  import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
@@ -9,8 +10,8 @@ const b = "a";
9
10
  function x({
10
11
  as: t,
11
12
  id: e,
12
- children: r,
13
- className: n,
13
+ children: n,
14
+ className: r,
14
15
  href: s,
15
16
  ...i
16
17
  }) {
@@ -27,12 +28,12 @@ function x({
27
28
  {
28
29
  ...i,
29
30
  href: s,
30
- className: `uofg-link-carousel-link ${k(a({ stack: o == null ? void 0 : o.stack }), n)}`,
31
+ className: `uofg-link-carousel-link ${k(a({ stack: o == null ? void 0 : o.stack }), r)}`,
31
32
  onMouseEnter: () => {
32
33
  o == null || o.setActiveId(e);
33
34
  },
34
35
  children: [
35
- r,
36
+ n,
36
37
  /* @__PURE__ */ m(f, { icon: c })
37
38
  ]
38
39
  }
@@ -1,10 +1,11 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { useContext as i } from "react";
1
+ "use client";
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { useContext as r } from "react";
3
4
  import { twMerge as e } from "tailwind-merge";
4
5
  import { tv as l } from "tailwind-variants";
5
- import { LinkCarouselContext as a } from "./link-carousel-context.js";
6
- function p({ children: r, className: s }) {
7
- const o = i(a), t = l({
6
+ import { LinkCarouselContext as n } from "./link-carousel-context.js";
7
+ function p({ children: s, className: t }) {
8
+ const o = r(n), u = l({
8
9
  base: "uog:flex uog:flex-col uog:gap-2 uog:w-full uog:top-0 uog:md:w-1/3 uog:md:z-20",
9
10
  variants: {
10
11
  stack: {
@@ -17,7 +18,7 @@ function p({ children: r, className: s }) {
17
18
  }
18
19
  }
19
20
  })({ stack: o == null ? void 0 : o.stack, direction: o == null ? void 0 : o.direction });
20
- return /* @__PURE__ */ u("div", { className: `uofg-link-carousel-links ${e(t, s)}`, children: r });
21
+ return /* @__PURE__ */ i("div", { className: `uofg-link-carousel-links ${e(u, t)}`, children: s });
21
22
  }
22
23
  export {
23
24
  p as LinkCarouselLinks
@@ -1,12 +1,13 @@
1
+ "use client";
1
2
  import { jsx as t } from "react/jsx-runtime";
2
3
  import { twMerge as r } from "tailwind-merge";
3
4
  const g = "img";
4
- function f({
5
+ function u({
5
6
  as: e,
6
7
  src: s,
7
8
  alt: m,
8
- width: a,
9
- height: i,
9
+ width: i,
10
+ height: a,
10
11
  className: o,
11
12
  ...c
12
13
  }) {
@@ -16,14 +17,14 @@ function f({
16
17
  {
17
18
  src: s,
18
19
  alt: m,
19
- width: a,
20
- height: i,
20
+ width: i,
21
+ height: a,
21
22
  className: `uofg-statistics-item-image ${l}`,
22
23
  ...c
23
24
  }
24
25
  ) });
25
26
  }
26
- f.displayName = "StatisticsItemImage";
27
+ u.displayName = "StatisticsItemImage";
27
28
  export {
28
- f as StatisticsItemImage
29
+ u as StatisticsItemImage
29
30
  };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as o } from "react/jsx-runtime";
2
3
  import { twMerge as r } from "tailwind-merge";
3
4
  function i({ children: t, className: e }) {
@@ -1,8 +1,9 @@
1
+ "use client";
1
2
  import { jsx as s } from "react/jsx-runtime";
2
3
  import { twMerge as a } from "tailwind-merge";
3
- function i({ children: t, className: o }) {
4
- const e = a("uog:break-auto uog:p-6 uog:pb-0 uog:text-3xl uog:leading-tight uog:font-bold", o);
5
- return /* @__PURE__ */ s("dt", { className: `uofg-statistics-item-value ${e}`, children: t });
4
+ function i({ children: t, className: e }) {
5
+ const o = a("uog:break-auto uog:p-6 uog:pb-0 uog:text-3xl uog:leading-tight uog:font-bold", e);
6
+ return /* @__PURE__ */ s("dt", { className: `uofg-statistics-item-value ${o}`, children: t });
6
7
  }
7
8
  i.displayName = "StatisticsItemValue";
8
9
  export {
@@ -1,14 +1,15 @@
1
+ "use client";
1
2
  import { jsx as l } from "react/jsx-runtime";
2
3
  import { useContext as g, useEffect as u } from "react";
3
4
  import { twMerge as s } from "tailwind-merge";
4
5
  import { tv as a } from "tailwind-variants";
5
6
  import { StatisticsContext as i } from "./statistics-context.js";
6
- function n({ children: t, className: r }) {
7
+ function n({ children: t, className: e }) {
7
8
  const o = g(i);
8
9
  u(() => {
9
10
  o == null || o.incrementCount();
10
11
  }, []);
11
- const e = a({
12
+ const r = a({
12
13
  base: "uog:relative uog:flex uog:flex-1 uog:flex-col uog:justify-around uog:gap-2",
13
14
  variants: {
14
15
  variant: {
@@ -53,7 +54,7 @@ function n({ children: t, className: r }) {
53
54
  }
54
55
  ]
55
56
  });
56
- return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${s(e({ variant: o == null ? void 0 : o.variant }), r)}`, children: t });
57
+ return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${s(r({ variant: o == null ? void 0 : o.variant }), e)}`, children: t });
57
58
  }
58
59
  n.displayName = "StatisticsItem";
59
60
  export {
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as e } from "react/jsx-runtime";
2
3
  import { useState as a } from "react";
3
4
  import { twMerge as m } from "tailwind-merge";
@@ -9,7 +10,7 @@ import { StatisticsItemImage as F } from "./statistics-item-image.js";
9
10
  import { StatisticsItemRepresents as N } from "./statistics-item-represents.js";
10
11
  import { StatisticsItemValue as j } from "./statistics-item-value.js";
11
12
  function v({ children: t, variant: o, className: r }) {
12
- const [s, l] = a(0), [u, i] = n(), g = f({
13
+ const [s, l] = a(0), [u, i] = n(), c = f({
13
14
  base: "uog:mx-auto uog:my-0 uog:flex uog:flex-col uog:flex-wrap uog:sm:flex-row",
14
15
  variants: {
15
16
  divisibleByTwo: {
@@ -46,8 +47,8 @@ function v({ children: t, variant: o, className: r }) {
46
47
  class: "uog:grid uog:grid-cols-1 uog:sm:grid-cols-3"
47
48
  }
48
49
  ]
49
- }), c = m(
50
- g({
50
+ }), g = m(
51
+ c({
51
52
  variant: o,
52
53
  divisibleByTwo: s % 2 === 0,
53
54
  divisibleByThree: s % 3 === 0,
@@ -65,7 +66,7 @@ function v({ children: t, variant: o, className: r }) {
65
66
  children: /* @__PURE__ */ e(
66
67
  "dl",
67
68
  {
68
- className: `uofg-statistics ${c}`,
69
+ className: `uofg-statistics ${g}`,
69
70
  style: (
70
71
  /* @ts-expect-error TypeScript doesn't like CSS Variables */
71
72
  o === "solid-colors-full" ? { "--statistic-bg-width": (i == null ? void 0 : i.contentRect.width) + "px" } : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -85,5 +85,5 @@
85
85
  "bugs": {
86
86
  "url": "https://github.com/ccswbs/uofg-components/issues"
87
87
  },
88
- "gitHead": "b1dbcaf5256a9b00946c016a1d9215790e12d6ef"
88
+ "gitHead": "5bcd9074d13e70ef452549bdf8945efca70aa895"
89
89
  }