@uoguelph/react-components 1.3.7 → 1.3.9
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/blockquote-author-link.js +8 -7
- package/dist/blockquote-author-name.js +3 -2
- package/dist/blockquote-author-title.js +5 -4
- package/dist/blockquote-author.js +6 -5
- package/dist/blockquote-content.js +1 -0
- package/dist/blockquote.js +10 -9
- package/dist/card-content.js +5 -4
- package/dist/card-footer.js +1 -0
- package/dist/card-image.js +4 -3
- package/dist/card-title.js +9 -8
- package/dist/card.js +1 -0
- package/dist/embedded-video-modal-button.js +1 -0
- package/dist/embedded-video.js +19 -18
- package/dist/hero-caption.js +4 -3
- package/dist/hero-content.js +1 -0
- package/dist/hero-link.js +13 -12
- package/dist/hero-title.js +5 -4
- package/dist/hero-video.js +7 -6
- package/dist/hero.js +1 -0
- package/dist/link-carousel-content.js +3 -2
- package/dist/link-carousel-item.js +8 -7
- package/dist/link-carousel-link.js +5 -4
- package/dist/link-carousel-links.js +7 -6
- package/dist/statistics-item-image.js +8 -7
- package/dist/statistics-item-represents.js +1 -0
- package/dist/statistics-item-value.js +4 -3
- package/dist/statistics-item.js +4 -3
- package/dist/statistics.js +5 -4
- package/package.json +5 -5
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
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:
|
|
8
|
-
...
|
|
8
|
+
href: e,
|
|
9
|
+
...r
|
|
9
10
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
8
|
+
m as BlockquoteAuthorName
|
|
8
9
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
3
|
import { twMerge as u } from "tailwind-merge";
|
|
3
|
-
function
|
|
4
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
4
|
-
import { tv as
|
|
5
|
-
import { BlockquoteContext as
|
|
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(
|
|
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:
|
|
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
|
package/dist/blockquote.js
CHANGED
|
@@ -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
|
|
4
|
-
import { BlockquoteAuthor as
|
|
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
|
|
8
|
+
import { BlockquoteAuthorTitle as d } from "./blockquote-author-title.js";
|
|
8
9
|
import { BlockquoteContent as g } from "./blockquote-content.js";
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ o(
|
|
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
|
-
|
|
13
|
+
m.displayName = "Blockquote";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
m as Blockquote,
|
|
16
|
+
n as BlockquoteAuthor,
|
|
16
17
|
B as BlockquoteAuthorLink,
|
|
17
18
|
h as BlockquoteAuthorName,
|
|
18
|
-
|
|
19
|
+
d as BlockquoteAuthorTitle,
|
|
19
20
|
g as BlockquoteContent
|
|
20
21
|
};
|
package/dist/card-content.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { twMerge as
|
|
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 =
|
|
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 ${
|
|
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 {
|
package/dist/card-footer.js
CHANGED
package/dist/card-image.js
CHANGED
|
@@ -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:
|
|
30
|
-
return /* @__PURE__ */ r("div", { className: `uofg-card-image-container ${
|
|
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(
|
|
39
|
+
className: `uofg-card-image ${p(d(), m)}`
|
|
39
40
|
}
|
|
40
41
|
) }) });
|
|
41
42
|
}
|
package/dist/card-title.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { tv as
|
|
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
|
|
7
|
-
const e =
|
|
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 ${
|
|
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
|
-
|
|
18
|
+
u.displayName = "CardTitle";
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
u as CardTitle
|
|
20
21
|
};
|
package/dist/card.js
CHANGED
package/dist/embedded-video.js
CHANGED
|
@@ -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:
|
|
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:
|
|
54
|
-
return /* @__PURE__ */ c("div", { className:
|
|
55
|
-
|
|
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:
|
|
59
|
+
className: r(),
|
|
59
60
|
allowFullScreen: !0,
|
|
60
|
-
src: `https://www.youtube.com/embed/${
|
|
61
|
+
src: `https://www.youtube.com/embed/${i}`,
|
|
61
62
|
title: e ?? "YouTube Embedded Video Player"
|
|
62
63
|
}
|
|
63
64
|
),
|
|
64
|
-
|
|
65
|
+
d === "vimeo" && i && /* @__PURE__ */ n(
|
|
65
66
|
"iframe",
|
|
66
67
|
{
|
|
67
|
-
className:
|
|
68
|
+
className: r(),
|
|
68
69
|
allowFullScreen: !0,
|
|
69
|
-
src: `https://player.vimeo.com/video/${
|
|
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:
|
|
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:
|
|
77
|
-
const [
|
|
78
|
-
if (
|
|
79
|
-
const
|
|
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:
|
|
86
|
+
}), { container: r, video: a, title: v } = s();
|
|
86
87
|
return /* @__PURE__ */ c(p, { children: [
|
|
87
|
-
/* @__PURE__ */ n(y.Provider, { value: { modalOpen:
|
|
88
|
-
/* @__PURE__ */ n(x, { open:
|
|
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(
|
|
97
|
+
className: `uofg-embedded-video ${f(a(), o)}`
|
|
97
98
|
}
|
|
98
99
|
)
|
|
99
100
|
] }) })
|
package/dist/hero-caption.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
package/dist/hero-content.js
CHANGED
package/dist/hero-link.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
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
|
|
5
|
+
function l({
|
|
5
6
|
as: o,
|
|
6
|
-
href:
|
|
7
|
-
children:
|
|
8
|
-
className:
|
|
7
|
+
href: e,
|
|
8
|
+
children: r,
|
|
9
|
+
className: t,
|
|
9
10
|
...n
|
|
10
11
|
}) {
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ i(
|
|
12
13
|
p,
|
|
13
14
|
{
|
|
14
15
|
...n,
|
|
15
16
|
as: o ?? "a",
|
|
16
17
|
color: "yellow",
|
|
17
|
-
href:
|
|
18
|
-
className: `uofg-hero-link ${
|
|
19
|
-
children:
|
|
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
|
-
|
|
24
|
+
l.displayName = "HeroLink";
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
l as HeroLink
|
|
26
27
|
};
|
package/dist/hero-title.js
CHANGED
|
@@ -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
|
|
4
|
-
import { tv as
|
|
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 =
|
|
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 ${
|
|
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";
|
package/dist/hero-video.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
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:
|
|
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:
|
|
20
|
-
/* @__PURE__ */ e(
|
|
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:
|
|
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,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
|
|
6
|
+
import { LinkCarouselContext as i } from "./link-carousel-context.js";
|
|
6
7
|
function k({ children: t, className: e }) {
|
|
7
|
-
const o = u(
|
|
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
|
|
3
|
-
import { twMerge as
|
|
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:
|
|
7
|
-
const o =
|
|
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 =
|
|
14
|
-
|
|
15
|
-
|
|
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:
|
|
13
|
-
className:
|
|
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 }),
|
|
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
|
-
|
|
36
|
+
n,
|
|
36
37
|
/* @__PURE__ */ m(f, { icon: c })
|
|
37
38
|
]
|
|
38
39
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
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
|
|
6
|
-
function p({ children:
|
|
7
|
-
const o =
|
|
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__ */
|
|
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
|
|
5
|
+
function u({
|
|
5
6
|
as: e,
|
|
6
7
|
src: s,
|
|
7
8
|
alt: m,
|
|
8
|
-
width:
|
|
9
|
-
height:
|
|
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:
|
|
20
|
-
height:
|
|
20
|
+
width: i,
|
|
21
|
+
height: a,
|
|
21
22
|
className: `uofg-statistics-item-image ${l}`,
|
|
22
23
|
...c
|
|
23
24
|
}
|
|
24
25
|
) });
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
+
u.displayName = "StatisticsItemImage";
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
u as StatisticsItemImage
|
|
29
30
|
};
|
|
@@ -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:
|
|
4
|
-
const
|
|
5
|
-
return /* @__PURE__ */ s("dt", { className: `uofg-statistics-item-value ${
|
|
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 {
|
package/dist/statistics-item.js
CHANGED
|
@@ -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:
|
|
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
|
|
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(
|
|
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 {
|
package/dist/statistics.js
CHANGED
|
@@ -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(),
|
|
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
|
-
}),
|
|
50
|
-
|
|
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 ${
|
|
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.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "University of Guelph React Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
"globals": "^15.14.0",
|
|
65
65
|
"object-hash": "^3.0.0",
|
|
66
66
|
"postcss": "^8.5.2",
|
|
67
|
-
"react": "^19.
|
|
67
|
+
"react": "^19.1.0",
|
|
68
68
|
"react-animate-height": "^3.2.3",
|
|
69
69
|
"react-dom": "^19.0.0",
|
|
70
70
|
"rollup-preserve-directives": "^1.1.3",
|
|
71
71
|
"tailwind-merge": "^3.0.1",
|
|
72
72
|
"tailwind-variants": "^1.0.0",
|
|
73
|
-
"tailwindcss": "^4.
|
|
73
|
+
"tailwindcss": "^4.1.11",
|
|
74
74
|
"typescript": "~5.7.2",
|
|
75
|
-
"typescript-eslint": "^8.
|
|
75
|
+
"typescript-eslint": "^8.35.0",
|
|
76
76
|
"vite": "^6.1.0",
|
|
77
77
|
"vite-plugin-dts": "^4.5.0"
|
|
78
78
|
},
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"bugs": {
|
|
86
86
|
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "b664f0793a7ab6a38affd981e07e7423cef87e44"
|
|
89
89
|
}
|