@uoguelph/react-components 1.6.3-rc.0 → 1.6.3-rc.2
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/accordion-button.js +6 -6
- package/dist/accordion-content.js +4 -4
- package/dist/blockquote-author.js +5 -5
- package/dist/blockquote-content.js +12 -12
- package/dist/card-content.js +5 -5
- package/dist/card-footer.js +5 -5
- package/dist/card-image.js +16 -16
- package/dist/card-title.js +7 -7
- package/dist/carousel.js +22 -23
- package/dist/checkbox.js +24 -24
- package/dist/dismissible-alert.js +1 -1
- package/dist/embedded-video-modal-button.js +20 -20
- package/dist/embedded-video.js +44 -47
- package/dist/grid.js +23 -23
- package/dist/hero-content.js +9 -9
- package/dist/hero-title.js +13 -13
- package/dist/hero-video.js +10 -10
- package/dist/index.css +1 -1
- package/dist/index.js +22 -23
- package/dist/link-carousel-content.js +4 -4
- package/dist/link-carousel-item.js +6 -6
- package/dist/link-carousel-link.js +21 -21
- package/dist/link-carousel-links.js +6 -6
- package/dist/number-input.js +53 -54
- package/dist/pagination.js +66 -60
- package/dist/radio-group.js +16 -16
- package/dist/radio.js +12 -12
- package/dist/statistics-item.js +7 -7
- package/dist/statistics.js +15 -15
- package/dist/text-input.js +39 -42
- package/dist/use-dismissible-fJ_gWdkv.js +26 -0
- package/package.json +24 -23
- package/dist/use-dismissible-CWEoUQGp.js +0 -26
package/dist/accordion-button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, jsx as
|
|
2
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { f as u, a as l } from "./regular-BKd_6_zc.js";
|
|
4
4
|
import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { DisclosureButton as b } from "@headlessui/react";
|
|
@@ -8,7 +8,7 @@ import { twMerge as m } from "tailwind-merge";
|
|
|
8
8
|
import { tv as p } from "tailwind-variants";
|
|
9
9
|
import { AccordionContext as g } from "./accordion-context.js";
|
|
10
10
|
function x({ children: n, className: e }) {
|
|
11
|
-
const
|
|
11
|
+
const t = f(g), i = p({
|
|
12
12
|
slots: {
|
|
13
13
|
button: "group mb-1 inline-flex w-full cursor-pointer items-center justify-between gap-2 p-2.5 px-5 text-left text-xl transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue focus-visible:ring-offset-2 hocus-visible:bg-blue hocus-visible:text-blue-contrast",
|
|
14
14
|
icon: "h-[1em] text-blue-on-light transition group-hocus-visible:text-blue-contrast"
|
|
@@ -25,13 +25,13 @@ function x({ children: n, className: e }) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
}), { button: s, icon: r } = i({ open:
|
|
28
|
+
}), { button: s, icon: r } = i({ open: t?.isOpen });
|
|
29
29
|
return /* @__PURE__ */ c(b, { className: `uofg-accordion-button ${m(e, s())}`, children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ o("span", { className: "uofg-accordion-button-content", children: n }),
|
|
31
|
+
/* @__PURE__ */ o(
|
|
32
32
|
a,
|
|
33
33
|
{
|
|
34
|
-
icon:
|
|
34
|
+
icon: t?.isOpen ? u : l,
|
|
35
35
|
className: `uofg-accordion-button-icon ${r()}`
|
|
36
36
|
}
|
|
37
37
|
)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { DisclosurePanel as i } from "@headlessui/react";
|
|
4
4
|
import { useContext as c } from "react";
|
|
5
5
|
import m from "react-animate-height";
|
|
6
6
|
import { twMerge as s } from "tailwind-merge";
|
|
7
7
|
import { AccordionContext as a } from "./accordion-context.js";
|
|
8
|
-
function p({ children:
|
|
9
|
-
const
|
|
10
|
-
return /* @__PURE__ */
|
|
8
|
+
function p({ children: t, className: e }) {
|
|
9
|
+
const n = c(a), r = s("border-l-4 border-yellow py-3 pl-5", e);
|
|
10
|
+
return /* @__PURE__ */ o(m, { height: n?.isOpen ? "auto" : 0, duration: 200, easing: "ease-in-out", children: /* @__PURE__ */ o(i, { static: !0, className: `uofg-accordion-content ${r}`, children: t }) });
|
|
11
11
|
}
|
|
12
12
|
p.displayName = "AccordionContent";
|
|
13
13
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
3
|
+
import { useContext as c } from "react";
|
|
4
|
+
import { twMerge as s } from "tailwind-merge";
|
|
5
5
|
import { tv as m } from "tailwind-variants";
|
|
6
6
|
import { BlockquoteContext as u } from "./blockquote-context.js";
|
|
7
|
-
function b({ className:
|
|
8
|
-
const
|
|
7
|
+
function b({ className: o, children: t }) {
|
|
8
|
+
const e = c(u), r = m({
|
|
9
9
|
base: "uofg-blockquote-author flex flex-col items-start gap-1 border-l-4 pl-4 font-light",
|
|
10
10
|
variants: {
|
|
11
11
|
color: {
|
|
@@ -14,7 +14,7 @@ function b({ className: r, children: t }) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
return /* @__PURE__ */ l("div", { className:
|
|
17
|
+
return /* @__PURE__ */ l("div", { className: s(r({ color: e?.color ?? "yellow" }), o), children: t });
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
20
|
b as BlockquoteAuthor
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as t, jsx as e, Fragment as
|
|
2
|
+
import { jsxs as t, jsx as e, Fragment as c } from "react/jsx-runtime";
|
|
3
3
|
import { b as u, c as m } from "./solid-CwgZbR1c.js";
|
|
4
|
-
import { FontAwesomeIcon as
|
|
4
|
+
import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { useContext as f } from "react";
|
|
6
6
|
import { twMerge as b } from "tailwind-merge";
|
|
7
7
|
import { tv as k } from "tailwind-variants";
|
|
8
|
-
import { BlockquoteContext as
|
|
9
|
-
function
|
|
10
|
-
const o = f(
|
|
8
|
+
import { BlockquoteContext as x } from "./blockquote-context.js";
|
|
9
|
+
function p({ className: s, children: i }) {
|
|
10
|
+
const o = f(x), r = k({
|
|
11
11
|
slots: {
|
|
12
12
|
base: "block w-full text-center text-3xl font-light italic",
|
|
13
13
|
icons: "inline-block h-[1em]"
|
|
@@ -22,21 +22,21 @@ function q({ className: s, children: i }) {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), { base: a, icons:
|
|
25
|
+
}), { base: a, icons: n } = r({ color: o?.color ?? "yellow" });
|
|
26
26
|
return /* @__PURE__ */ t("blockquote", { className: `uofg-blockquote-content ${b(a(), s)}`, children: [
|
|
27
|
-
!
|
|
28
|
-
/* @__PURE__ */ e(
|
|
27
|
+
!o?.hideQuotationMarks && /* @__PURE__ */ t(c, { children: [
|
|
28
|
+
/* @__PURE__ */ e(l, { icon: u, className: `uofg-blockquote-content-left-quote ${n()}` }),
|
|
29
29
|
" "
|
|
30
30
|
] }),
|
|
31
31
|
/* @__PURE__ */ e("span", { className: "uofg-blockquote-content-text", children: i }),
|
|
32
32
|
" ",
|
|
33
|
-
!
|
|
33
|
+
!o?.hideQuotationMarks && /* @__PURE__ */ t(c, { children: [
|
|
34
34
|
" ",
|
|
35
|
-
/* @__PURE__ */ e(
|
|
35
|
+
/* @__PURE__ */ e(l, { icon: m, className: `uofg-blockquote-content-right-quote ${n()}` })
|
|
36
36
|
] })
|
|
37
37
|
] });
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
p.displayName = "BlockquoteContent";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
p as BlockquoteContent
|
|
42
42
|
};
|
package/dist/card-content.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as i } from "react";
|
|
4
4
|
import { twMerge as s } from "tailwind-merge";
|
|
5
5
|
import { tv as a } from "tailwind-variants";
|
|
6
6
|
import { CardContext as l } from "./card-context.js";
|
|
7
|
-
function c({ children:
|
|
8
|
-
const
|
|
7
|
+
function c({ children: t, className: o }) {
|
|
8
|
+
const e = i(l), r = a({
|
|
9
9
|
base: "flex flex-1 flex-col gap-2 bg-grey-light-bg p-5 text-grey-light-contrast",
|
|
10
10
|
variants: {
|
|
11
11
|
isLink: {
|
|
@@ -13,7 +13,7 @@ function c({ children: o, className: r }) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ n("div", { className: `uofg-card-content ${s(r({ isLink: e?.isLink ?? !1 }), o)}`, children: t });
|
|
17
17
|
}
|
|
18
18
|
c.displayName = "CardContent";
|
|
19
19
|
export {
|
package/dist/card-footer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as a } from "react";
|
|
4
|
+
import { twMerge as i } from "tailwind-merge";
|
|
5
5
|
import { tv as s } from "tailwind-variants";
|
|
6
6
|
import { CardContext as c } from "./card-context.js";
|
|
7
7
|
function m({ children: t, className: e }) {
|
|
8
|
-
const r =
|
|
8
|
+
const r = a(c), o = s({
|
|
9
9
|
base: "flex gap-2 bg-grey-light px-5 py-2 text-grey-light-contrast transition-colors",
|
|
10
10
|
variants: {
|
|
11
11
|
centered: {
|
|
@@ -13,7 +13,7 @@ function m({ children: t, className: e }) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ n("div", { className: `uofg-card-footer ${i(o({ centered: r?.centered ?? !1 }), e)}`, children: t });
|
|
17
17
|
}
|
|
18
18
|
m.displayName = "CardFooter";
|
|
19
19
|
export {
|
package/dist/card-image.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as u } from "react";
|
|
4
4
|
import { twMerge as w } from "tailwind-merge";
|
|
5
5
|
import { tv as v } from "tailwind-variants";
|
|
6
6
|
import { CardContext as C } from "./card-context.js";
|
|
7
7
|
const h = "img";
|
|
8
|
-
function
|
|
9
|
-
as:
|
|
10
|
-
src:
|
|
11
|
-
alt:
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
8
|
+
function x({
|
|
9
|
+
as: a,
|
|
10
|
+
src: o,
|
|
11
|
+
alt: t,
|
|
12
|
+
width: i,
|
|
13
|
+
height: n,
|
|
14
14
|
className: m,
|
|
15
15
|
...s
|
|
16
16
|
}) {
|
|
17
|
-
const
|
|
17
|
+
const c = a ?? h, r = u(C), l = v({
|
|
18
18
|
slots: {
|
|
19
19
|
container: "w-full overflow-hidden",
|
|
20
20
|
wrapper: "w-full overflow-hidden",
|
|
@@ -27,20 +27,20 @@ function k({
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
}), { container:
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
30
|
+
}), { container: d, wrapper: f, image: p } = l({ isLink: r?.isLink ?? !1 }), g = r?.isLink ? "" : t;
|
|
31
|
+
return /* @__PURE__ */ e("div", { className: `uofg-card-image-container ${d()}`, children: /* @__PURE__ */ e("div", { className: `uofg-card-image-wrapper ${f()}`, children: /* @__PURE__ */ e(
|
|
32
|
+
c,
|
|
33
33
|
{
|
|
34
34
|
...s,
|
|
35
|
-
src:
|
|
35
|
+
src: o,
|
|
36
36
|
alt: g,
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
37
|
+
width: i,
|
|
38
|
+
height: n,
|
|
39
39
|
className: `uofg-card-image ${w(p(), m)}`
|
|
40
40
|
}
|
|
41
41
|
) }) });
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
x.displayName = "CardImage";
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
x as CardImage
|
|
46
46
|
};
|
package/dist/card-title.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as n } from "react";
|
|
4
4
|
import { twMerge as a } from "tailwind-merge";
|
|
5
|
-
import { tv as
|
|
6
|
-
import { CardContext as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
5
|
+
import { tv as c } from "tailwind-variants";
|
|
6
|
+
import { CardContext as m } from "./card-context.js";
|
|
7
|
+
function s({ children: t, className: e }) {
|
|
8
|
+
const r = n(m), o = c({
|
|
9
9
|
base: "flex text-lg font-bold",
|
|
10
10
|
variants: {
|
|
11
11
|
centered: {
|
|
@@ -13,9 +13,9 @@ function c({ children: t, className: r }) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
return /* @__PURE__ */ i("div", { className: `uofg-card-title ${a(o({ centered:
|
|
16
|
+
return /* @__PURE__ */ i("div", { className: `uofg-card-title ${a(o({ centered: r?.centered ?? !1 }), e)}`, children: t });
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
s.displayName = "CardTitle";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
s as CardTitle
|
|
21
21
|
};
|
package/dist/carousel.js
CHANGED
|
@@ -6,43 +6,42 @@ import { Children as A, useRef as b, useState as F, useEffect as L } from "react
|
|
|
6
6
|
import { tv as S } from "tailwind-variants";
|
|
7
7
|
import { l as q, b as M, m as C, c as R } from "./math-utils-CnAd98v6.js";
|
|
8
8
|
const z = (l, a, f) => {
|
|
9
|
-
const t = l.scrollLeft,
|
|
10
|
-
return new Promise((
|
|
11
|
-
const
|
|
12
|
-
const e = h -
|
|
13
|
-
l.scrollLeft = q(t, a, d), e < f ? requestAnimationFrame(
|
|
9
|
+
const t = l.scrollLeft, o = performance.now();
|
|
10
|
+
return new Promise((s) => {
|
|
11
|
+
const n = (h) => {
|
|
12
|
+
const e = h - o, d = M(Math.min(e / f, 1), 0.25, 0, 0.25, 1);
|
|
13
|
+
l.scrollLeft = q(t, a, d), e < f ? requestAnimationFrame(n) : s();
|
|
14
14
|
};
|
|
15
|
-
requestAnimationFrame(
|
|
15
|
+
requestAnimationFrame(n);
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
|
|
19
|
-
const
|
|
19
|
+
const o = A.count(a), s = Math.max(f, 1), n = b(null), h = b(0), [e, d] = F(0), u = o - s, x = b(!1);
|
|
20
20
|
L(() => {
|
|
21
|
-
|
|
22
|
-
if (!o.current)
|
|
21
|
+
if (!n.current)
|
|
23
22
|
return;
|
|
24
|
-
const
|
|
25
|
-
(t === "jump" || t === "none") && (x.current = !0, z(
|
|
23
|
+
const r = n.current?.offsetWidth / s;
|
|
24
|
+
(t === "jump" || t === "none") && (x.current = !0, z(n.current, r * e, 250).then(() => {
|
|
26
25
|
x.current = !1;
|
|
27
26
|
})), h.current = e;
|
|
28
|
-
}, [e, t, u,
|
|
29
|
-
const v = (
|
|
27
|
+
}, [e, t, u, s]);
|
|
28
|
+
const v = (r) => {
|
|
30
29
|
if (x.current) return;
|
|
31
|
-
let
|
|
30
|
+
let i;
|
|
32
31
|
switch (t) {
|
|
33
32
|
case "none":
|
|
34
|
-
|
|
33
|
+
i = R(e + r, 0, u);
|
|
35
34
|
break;
|
|
36
35
|
case "jump":
|
|
37
|
-
|
|
36
|
+
i = C(e + r, u + 1);
|
|
38
37
|
break;
|
|
39
38
|
case "continuous":
|
|
40
|
-
|
|
39
|
+
i = C(e + r, o);
|
|
41
40
|
break;
|
|
42
41
|
default:
|
|
43
|
-
|
|
42
|
+
i = 0;
|
|
44
43
|
}
|
|
45
|
-
d(
|
|
44
|
+
d(i);
|
|
46
45
|
}, y = S({
|
|
47
46
|
slots: {
|
|
48
47
|
base: "relative flex h-fit min-h-[7rem] w-full flex-col-reverse",
|
|
@@ -68,7 +67,7 @@ function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
|
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
|
-
}), p =
|
|
70
|
+
}), p = o > s, { base: N, contentContainer: j, controlContainer: k, control: g } = y({ showControls: p });
|
|
72
71
|
return /* @__PURE__ */ m("div", { id: l, className: `uofg-carousel ${N()}`, children: [
|
|
73
72
|
p && /* @__PURE__ */ m("div", { className: `uofg-carousel-control-container ${k()}`, children: [
|
|
74
73
|
/* @__PURE__ */ m(
|
|
@@ -98,11 +97,11 @@ function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
|
|
|
98
97
|
"div",
|
|
99
98
|
{
|
|
100
99
|
className: `uofg-carousel-content-container ${j()}`,
|
|
101
|
-
ref:
|
|
100
|
+
ref: n,
|
|
102
101
|
style: {
|
|
103
102
|
// Define CSS variables for the grid layout
|
|
104
|
-
"--items":
|
|
105
|
-
"--display":
|
|
103
|
+
"--items": o,
|
|
104
|
+
"--display": s
|
|
106
105
|
},
|
|
107
106
|
children: a
|
|
108
107
|
}
|
package/dist/checkbox.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { b as p } from "./regular-BKd_6_zc.js";
|
|
4
4
|
import { FontAwesomeIcon as y } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { Field as w, Checkbox as v, Label as
|
|
6
|
-
import { useState as
|
|
5
|
+
import { Field as w, Checkbox as v, Label as C, Description as N } from "@headlessui/react";
|
|
6
|
+
import { useState as $ } from "react";
|
|
7
7
|
import { tv as j } from "tailwind-variants";
|
|
8
8
|
function F({
|
|
9
|
-
checked:
|
|
10
|
-
label:
|
|
11
|
-
description:
|
|
12
|
-
color:
|
|
13
|
-
disabled:
|
|
14
|
-
onChange:
|
|
15
|
-
...
|
|
9
|
+
checked: l = !1,
|
|
10
|
+
label: c,
|
|
11
|
+
description: o,
|
|
12
|
+
color: r = "yellow",
|
|
13
|
+
disabled: i = !1,
|
|
14
|
+
onChange: n,
|
|
15
|
+
...a
|
|
16
16
|
}) {
|
|
17
|
-
const [
|
|
17
|
+
const [b, h] = $(l), u = j({
|
|
18
18
|
slots: {
|
|
19
19
|
base: "flex cursor-pointer flex-col gap-0.5",
|
|
20
20
|
container: "flex items-center gap-2",
|
|
@@ -58,28 +58,28 @@ function F({
|
|
|
58
58
|
base: x,
|
|
59
59
|
container: f,
|
|
60
60
|
box: k,
|
|
61
|
-
check:
|
|
62
|
-
label:
|
|
61
|
+
check: g,
|
|
62
|
+
label: d,
|
|
63
63
|
description: m
|
|
64
|
-
} =
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */
|
|
64
|
+
} = u({ color: r, disabled: i });
|
|
65
|
+
return /* @__PURE__ */ s(w, { className: `uofg-checkbox-field ${x()}`, children: [
|
|
66
|
+
/* @__PURE__ */ s("div", { className: `uofg-checkbox-container ${f()}`, children: [
|
|
67
67
|
/* @__PURE__ */ e(
|
|
68
68
|
v,
|
|
69
69
|
{
|
|
70
|
-
checked:
|
|
71
|
-
onChange: (
|
|
72
|
-
|
|
70
|
+
checked: b,
|
|
71
|
+
onChange: (t) => {
|
|
72
|
+
h(t), n?.(t);
|
|
73
73
|
},
|
|
74
|
-
disabled:
|
|
74
|
+
disabled: i,
|
|
75
75
|
className: `uofg-checkbox ${k()}`,
|
|
76
|
-
...
|
|
77
|
-
children: /* @__PURE__ */ e(y, { className: `uofg-checkbox-icon ${
|
|
76
|
+
...a,
|
|
77
|
+
children: /* @__PURE__ */ e(y, { className: `uofg-checkbox-icon ${g()}`, icon: p })
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
|
|
80
|
+
c && /* @__PURE__ */ e(C, { className: `uofg-checkbox-label ${d()}`, children: c })
|
|
81
81
|
] }),
|
|
82
|
-
|
|
82
|
+
o && /* @__PURE__ */ e(N, { className: `uofg-checkbox-description ${m()}`, children: o })
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
F.displayName = "Checkbox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as Z, jsxs as tr, Fragment as dr } from "react/jsx-runtime";
|
|
3
3
|
import { useState as hr, useMemo as pr } from "react";
|
|
4
|
-
import { u as gr } from "./use-dismissible-
|
|
4
|
+
import { u as gr } from "./use-dismissible-fJ_gWdkv.js";
|
|
5
5
|
import { Alert as yr } from "./alert.js";
|
|
6
6
|
import { Button as mr } from "./button.js";
|
|
7
7
|
import { Container as wr } from "./container.js";
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, jsx as
|
|
2
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { i as s } from "./solid-CwgZbR1c.js";
|
|
4
4
|
import { FontAwesomeIcon as u } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { useContext as m } from "react";
|
|
6
6
|
import { twMerge as l } from "tailwind-merge";
|
|
7
|
-
import { Button as
|
|
8
|
-
import { EmbeddedVideoContext as
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
const
|
|
7
|
+
import { Button as c } from "./button.js";
|
|
8
|
+
import { EmbeddedVideoContext as a } from "./embedded-video-context.js";
|
|
9
|
+
function f({ type: e, children: r, className: t }) {
|
|
10
|
+
const n = m(a);
|
|
11
|
+
if (e === "play-button") {
|
|
12
|
+
const d = l(
|
|
13
13
|
"flex aspect-square w-24 items-center justify-center rounded-full bg-red text-4xl text-white transition-colors hover:bg-red-focus focus:bg-red-focus",
|
|
14
|
-
|
|
14
|
+
t
|
|
15
15
|
);
|
|
16
16
|
return /* @__PURE__ */ i(
|
|
17
17
|
"button",
|
|
18
18
|
{
|
|
19
19
|
type: "button",
|
|
20
|
-
className: `uofg-embedded-video-play-button ${
|
|
21
|
-
onClick: () =>
|
|
20
|
+
className: `uofg-embedded-video-play-button ${d}`,
|
|
21
|
+
onClick: () => n?.setModalOpen(!0),
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ o(u, { icon: s }),
|
|
24
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Show Video" })
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
return /* @__PURE__ */ o(
|
|
30
|
+
c,
|
|
31
31
|
{
|
|
32
32
|
type: "button",
|
|
33
|
-
color:
|
|
34
|
-
className: `uofg-embedded-video-play-button ${
|
|
35
|
-
onClick: () =>
|
|
36
|
-
children:
|
|
33
|
+
color: e,
|
|
34
|
+
className: `uofg-embedded-video-play-button ${t}`,
|
|
35
|
+
onClick: () => n?.setModalOpen(!0),
|
|
36
|
+
children: r
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
f.displayName = "EmbeddedVideoModalButton";
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
f as EmbeddedVideoModalButton
|
|
43
43
|
};
|