@uoguelph/react-components 1.3.13 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-button.js +22 -22
- package/dist/accordion-content.js +5 -5
- package/dist/accordion.js +3 -3
- package/dist/alert-footer.js +6 -6
- package/dist/alert-message.js +7 -10
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.js +23 -23
- package/dist/alert.js +7 -7
- package/dist/blockquote-author-name.js +1 -1
- package/dist/blockquote-author-title.js +2 -2
- package/dist/blockquote-author.js +11 -11
- package/dist/blockquote-content.js +16 -16
- package/dist/breadcrumb-home.js +2 -2
- package/dist/breadcrumb.js +15 -15
- package/dist/breadcrumbs.js +9 -9
- package/dist/button.js +44 -44
- package/dist/card-content.js +10 -10
- package/dist/card-footer.js +11 -11
- package/dist/card-image.js +15 -15
- package/dist/card-title.js +5 -5
- package/dist/card.js +11 -11
- package/dist/carousel.js +51 -51
- package/dist/checkbox.js +44 -44
- package/dist/contact-email.js +7 -7
- package/dist/contact-name.js +1 -1
- package/dist/contact-phone.js +11 -11
- package/dist/contact-title.js +1 -1
- package/dist/contact.js +11 -14
- package/dist/container.js +10 -10
- package/dist/dismissible-alert.js +2 -2
- package/dist/divider.js +18 -18
- package/dist/embedded-video-modal-button.js +16 -16
- package/dist/embedded-video.js +29 -29
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.js +23 -23
- package/dist/hero-link.js +1 -1
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.js +9 -9
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +48 -48
- package/dist/index.css +1 -1
- package/dist/info.js +16 -16
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +44 -44
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-item.js +15 -15
- package/dist/link-carousel-link.js +22 -22
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.js +21 -21
- package/dist/link.js +10 -10
- package/dist/list-item.js +6 -6
- package/dist/list.js +21 -21
- package/dist/loading-indicator.js +29 -29
- package/dist/media-caption.js +34 -34
- package/dist/modal.js +25 -25
- package/dist/navigation-link.js +25 -25
- package/dist/navigation.js +8 -11
- package/dist/number-input.js +46 -46
- package/dist/pagination.js +62 -62
- package/dist/radio-group.js +8 -8
- package/dist/radio.js +19 -19
- package/dist/select-button.js +32 -32
- package/dist/select-option.js +29 -29
- package/dist/select-options.js +27 -27
- package/dist/select.js +7 -7
- package/dist/statistics-item-image.js +9 -9
- package/dist/statistics-item-represents.js +7 -7
- package/dist/statistics-item-value.js +7 -7
- package/dist/statistics-item.js +35 -35
- package/dist/statistics.js +25 -25
- package/dist/story-background-image.js +12 -12
- package/dist/story-background.js +7 -7
- package/dist/story-body.js +5 -8
- package/dist/story-footer.js +12 -12
- package/dist/story-foreground-content.js +4 -4
- package/dist/story-foreground-image.js +15 -15
- package/dist/story-foreground.js +7 -10
- package/dist/story.js +5 -5
- package/dist/tab-list.js +3 -6
- package/dist/tab-panel.js +3 -3
- package/dist/tab.js +26 -26
- package/dist/text-input.js +32 -32
- package/dist/typography.js +22 -22
- package/package.json +2 -2
package/dist/layout.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as
|
|
2
|
-
import { Transition as
|
|
3
|
-
import { tv as
|
|
4
|
-
import { LoadingIndicator as
|
|
5
|
-
import { LayoutContent as
|
|
6
|
-
function
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as t, Fragment as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Transition as s } from "@headlessui/react";
|
|
3
|
+
import { tv as a } from "tailwind-variants";
|
|
4
|
+
import { LoadingIndicator as f } from "./loading-indicator.js";
|
|
5
|
+
import { LayoutContent as g } from "./layout-content.js";
|
|
6
|
+
function p({ children: r, loading: e }) {
|
|
7
|
+
const i = a({
|
|
8
8
|
slots: {
|
|
9
9
|
placeholder: [
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
10
|
+
"text-uog-color-red",
|
|
11
|
+
"fixed",
|
|
12
|
+
"top-0",
|
|
13
|
+
"left-0",
|
|
14
|
+
"z-20",
|
|
15
|
+
"flex",
|
|
16
|
+
"h-screen",
|
|
17
|
+
"w-screen",
|
|
18
|
+
"flex-col",
|
|
19
|
+
"items-center",
|
|
20
|
+
"justify-center",
|
|
21
|
+
"gap-6",
|
|
22
|
+
"bg-white",
|
|
23
|
+
"transition-opacity",
|
|
24
|
+
"duration-300",
|
|
25
|
+
"data-[closed]:opacity-0"
|
|
26
26
|
],
|
|
27
27
|
skipLink: [
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
28
|
+
"bg-uog-color-yellow",
|
|
29
|
+
"sr-only",
|
|
30
|
+
"left-0",
|
|
31
|
+
"z-[1000]",
|
|
32
|
+
"fixed",
|
|
33
|
+
"top-0",
|
|
34
|
+
"w-fit",
|
|
35
|
+
"px-0",
|
|
36
|
+
"underline",
|
|
37
|
+
"transition-[padding]",
|
|
38
|
+
"focus:not-sr-only",
|
|
39
|
+
"focus:px-2"
|
|
40
40
|
]
|
|
41
41
|
}
|
|
42
|
-
}), { placeholder:
|
|
43
|
-
return /* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ o(
|
|
45
|
-
!e && /* @__PURE__ */ t(
|
|
46
|
-
/* @__PURE__ */ o("a", { className:
|
|
47
|
-
/* @__PURE__ */ o("div", { className: "uofg-layout flex flex-1 flex-col", children:
|
|
42
|
+
}), { placeholder: l, skipLink: c } = i();
|
|
43
|
+
return /* @__PURE__ */ t(n, { children: [
|
|
44
|
+
/* @__PURE__ */ o(s, { show: !!e, children: /* @__PURE__ */ o("div", { className: `uofg-layout-placeholder ${l()}`, children: /* @__PURE__ */ o(f, { children: typeof e != "boolean" && e }) }) }),
|
|
45
|
+
!e && /* @__PURE__ */ t(n, { children: [
|
|
46
|
+
/* @__PURE__ */ o("a", { className: c(), href: "#content", children: "Skip to main content" }),
|
|
47
|
+
/* @__PURE__ */ o("div", { className: "uofg-layout flex flex-1 flex-col", children: r })
|
|
48
48
|
] })
|
|
49
49
|
] });
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
p.displayName = "Layout";
|
|
52
52
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
p as Layout,
|
|
54
|
+
g as LayoutContent
|
|
55
55
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { LinkCarouselContext as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
base: "
|
|
3
|
+
import { useContext as s } from "react";
|
|
4
|
+
import { twMerge as l } from "tailwind-merge";
|
|
5
|
+
import { tv as i } from "tailwind-variants";
|
|
6
|
+
import { LinkCarouselContext as a } from "./link-carousel-context.js";
|
|
7
|
+
function C({ children: o, className: e }) {
|
|
8
|
+
const t = s(a), r = i({
|
|
9
|
+
base: "relative hidden h-full md:block",
|
|
10
10
|
variants: {
|
|
11
11
|
stack: {
|
|
12
|
-
true: "
|
|
13
|
-
false: "
|
|
12
|
+
true: "w-full",
|
|
13
|
+
false: "flex-1"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
return /* @__PURE__ */ n("div", { className: `uofg-link-carousel-content ${
|
|
17
|
+
return /* @__PURE__ */ n("div", { className: `uofg-link-carousel-content ${l(r({ stack: t == null ? void 0 : t.stack }), e)}`, children: o });
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
C as LinkCarouselContent
|
|
21
21
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { LinkCarouselContext as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
base: "
|
|
2
|
+
import { jsx as i, Fragment as l } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as m } from "react";
|
|
4
|
+
import { twMerge as n } from "tailwind-merge";
|
|
5
|
+
import { tv as c } from "tailwind-variants";
|
|
6
|
+
import { LinkCarouselContext as u } from "./link-carousel-context.js";
|
|
7
|
+
function b({ id: t, children: r, className: o }) {
|
|
8
|
+
const e = m(u), s = c({
|
|
9
|
+
base: "hidden w-full bg-white",
|
|
10
10
|
variants: {
|
|
11
|
-
isActive: { true: "
|
|
12
|
-
wasActive: { true: "
|
|
11
|
+
isActive: { true: "relative z-10 block animate-fade-in" },
|
|
12
|
+
wasActive: { true: "absolute top-0 left-0 z-0 block" }
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
}), a = n(
|
|
15
|
+
s({ isActive: (e == null ? void 0 : e.activeId) === t, wasActive: (e == null ? void 0 : e.previousActiveId) === t }),
|
|
16
|
+
o
|
|
17
17
|
);
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i("div", { className: `uofg-link-carousel-item ${a}`, children: r }) });
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
b as LinkCarouselItem
|
|
22
22
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
import { useContext as
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { tv as
|
|
8
|
-
import { LinkCarouselContext as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
as:
|
|
2
|
+
import { jsxs as c, jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { c as u } from "./solid-D19hAF5t.js";
|
|
4
|
+
import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { useContext as f } from "react";
|
|
6
|
+
import { twMerge as p } from "tailwind-merge";
|
|
7
|
+
import { tv as b } from "tailwind-variants";
|
|
8
|
+
import { LinkCarouselContext as x } from "./link-carousel-context.js";
|
|
9
|
+
const C = "a";
|
|
10
|
+
function g({
|
|
11
|
+
as: o,
|
|
12
12
|
id: e,
|
|
13
13
|
children: s,
|
|
14
14
|
className: n,
|
|
15
15
|
href: r,
|
|
16
|
-
...
|
|
16
|
+
...i
|
|
17
17
|
}) {
|
|
18
|
-
const
|
|
19
|
-
base: "
|
|
18
|
+
const l = o ?? C, t = f(x), a = b({
|
|
19
|
+
base: "flex w-full flex-1 items-center justify-between bg-black p-6 text-2xl text-black-contrast transition-colors hocus:bg-yellow hocus:text-black",
|
|
20
20
|
variants: {
|
|
21
21
|
stack: {
|
|
22
|
-
true: "
|
|
22
|
+
true: "md:bg-black/70"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
26
|
+
return /* @__PURE__ */ c(
|
|
27
|
+
l,
|
|
28
28
|
{
|
|
29
|
-
...
|
|
29
|
+
...i,
|
|
30
30
|
href: r,
|
|
31
|
-
className: `uofg-link-carousel-link ${
|
|
31
|
+
className: `uofg-link-carousel-link ${p(a({ stack: t == null ? void 0 : t.stack }), n)}`,
|
|
32
32
|
onMouseEnter: () => {
|
|
33
|
-
|
|
33
|
+
t == null || t.setActiveId(e);
|
|
34
34
|
},
|
|
35
35
|
children: [
|
|
36
36
|
s,
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ m(k, { icon: u })
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
g.displayName = "LinkCarouselLink";
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
g as LinkCarouselLink
|
|
45
45
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { LinkCarouselContext as
|
|
7
|
-
function
|
|
8
|
-
const o =
|
|
9
|
-
base: "
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as e } from "react";
|
|
4
|
+
import { twMerge as l } from "tailwind-merge";
|
|
5
|
+
import { tv as n } from "tailwind-variants";
|
|
6
|
+
import { LinkCarouselContext as a } from "./link-carousel-context.js";
|
|
7
|
+
function d({ children: s, className: t }) {
|
|
8
|
+
const o = e(a), i = n({
|
|
9
|
+
base: "top-0 flex w-full flex-col gap-2 md:z-20 md:w-1/3",
|
|
10
10
|
variants: {
|
|
11
11
|
stack: {
|
|
12
|
-
true: "
|
|
13
|
-
false: "
|
|
12
|
+
true: "h-full md:absolute",
|
|
13
|
+
false: "h-auto"
|
|
14
14
|
},
|
|
15
15
|
direction: {
|
|
16
|
-
left: "
|
|
17
|
-
right: "
|
|
16
|
+
left: "left-0",
|
|
17
|
+
right: "right-0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
})({ stack: o == null ? void 0 : o.stack, direction: o == null ? void 0 : o.direction });
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ r("div", { className: `uofg-link-carousel-links ${l(i, t)}`, children: s });
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
d as LinkCarouselLinks
|
|
25
25
|
};
|
package/dist/link-carousel.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as p, useState as d, useRef as v, Children as k, isValidElement as C } from "react";
|
|
4
4
|
import { twMerge as I } from "tailwind-merge";
|
|
5
5
|
import { tv as L } from "tailwind-variants";
|
|
6
|
-
import { LinkCarouselContext as
|
|
7
|
-
import { LinkCarouselLink as
|
|
6
|
+
import { LinkCarouselContext as x } from "./link-carousel-context.js";
|
|
7
|
+
import { LinkCarouselLink as A } from "./link-carousel-link.js";
|
|
8
8
|
import { LinkCarouselContent as F } from "./link-carousel-content.js";
|
|
9
9
|
import { LinkCarouselItem as S } from "./link-carousel-item.js";
|
|
10
10
|
import { LinkCarouselLinks as $ } from "./link-carousel-links.js";
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
function
|
|
11
|
+
function w(r) {
|
|
12
|
+
let t = null;
|
|
13
|
+
function o(i) {
|
|
14
14
|
k.forEach(i, (e) => {
|
|
15
|
-
if (
|
|
15
|
+
if (t) return;
|
|
16
16
|
const n = C(e);
|
|
17
|
-
n && e.type ===
|
|
17
|
+
n && e.type === A ? t = e.props.id : n && e.props.children && o(e.props.children);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return o(r), t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const e = p(() =>
|
|
24
|
-
|
|
22
|
+
function h({ children: r, className: t, stack: o = !1, direction: i = "left" }) {
|
|
23
|
+
const e = p(() => w(r), [r]), [n, l] = d(e), s = v(null), f = (c) => {
|
|
24
|
+
l((m) => (s.current = m, c));
|
|
25
25
|
}, a = L({
|
|
26
|
-
base: "
|
|
26
|
+
base: "relative flex h-fit w-full overflow-hidden",
|
|
27
27
|
variants: {
|
|
28
28
|
direction: {
|
|
29
|
-
left: "
|
|
30
|
-
right: "
|
|
29
|
+
left: "flex-row",
|
|
30
|
+
right: "flex-row-reverse"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
|
|
34
|
+
return /* @__PURE__ */ u("div", { className: `uofg-link-carousel ${I(a({ direction: i }), t)}`, children: /* @__PURE__ */ u(
|
|
35
|
+
x.Provider,
|
|
36
36
|
{
|
|
37
37
|
value: {
|
|
38
38
|
previousActiveId: s.current,
|
|
39
39
|
activeId: n,
|
|
40
40
|
setActiveId: f,
|
|
41
|
-
stack:
|
|
41
|
+
stack: o ?? !1,
|
|
42
42
|
direction: i,
|
|
43
43
|
clearPreviousActiveId: () => {
|
|
44
44
|
s.current = null;
|
|
@@ -48,11 +48,11 @@ function w({ children: r, className: o, stack: t = !1, direction: i = "left" })
|
|
|
48
48
|
}
|
|
49
49
|
) });
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
h.displayName = "LinkCarousel";
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
h as LinkCarousel,
|
|
54
54
|
F as LinkCarouselContent,
|
|
55
55
|
S as LinkCarouselItem,
|
|
56
|
-
|
|
56
|
+
A as LinkCarouselLink,
|
|
57
57
|
$ as LinkCarouselLinks
|
|
58
58
|
};
|
package/dist/link.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { tv as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as c } from "tailwind-merge";
|
|
3
|
+
import { tv as a } from "tailwind-variants";
|
|
4
|
+
const f = "a";
|
|
5
|
+
function d({
|
|
6
6
|
as: o,
|
|
7
7
|
href: i,
|
|
8
8
|
children: n,
|
|
9
9
|
className: t,
|
|
10
10
|
...e
|
|
11
11
|
}) {
|
|
12
|
-
const
|
|
13
|
-
base: "
|
|
12
|
+
const l = o ?? f, r = a({
|
|
13
|
+
base: "inline-flex gap-[1em] text-body-copy-link underline decoration-current transition-colors hover:decoration-transparent focus:ring-2 focus-visible:ring-body-copy-link focus-visible:ring-offset-2 focus-visible:outline-none dark:text-body-copy-link-on-dark dark:focus-visible:ring-body-copy-link-on-light light:text-body-copy-link-on-light light:focus-visible:ring-body-copy-link-on-light"
|
|
14
14
|
});
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ s(l, { ...e, href: i, className: `uofg-link ${c(r(), t)}`, children: n });
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
d.displayName = "Link";
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
d as Link
|
|
20
20
|
};
|
package/dist/list-item.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
import { twMerge as r } from "tailwind-merge";
|
|
4
|
+
function l({ className: t, children: e, ...i }) {
|
|
5
|
+
return /* @__PURE__ */ m("li", { ...i, className: `uofg-list-item ${r("relative h-fit w-full", t)}`, children: e });
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
l.displayName = "ListItem";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
l as ListItem
|
|
10
10
|
};
|
package/dist/list.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { ListContext as
|
|
2
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { useContext as c } from "react";
|
|
4
|
+
import { twMerge as m } from "tailwind-merge";
|
|
5
|
+
import { tv as u } from "tailwind-variants";
|
|
6
|
+
import { ListContext as o } from "./list-context.js";
|
|
7
7
|
import { ListItem as N } from "./list-item.js";
|
|
8
|
-
const
|
|
9
|
-
function
|
|
8
|
+
const v = "ul";
|
|
9
|
+
function p({
|
|
10
10
|
as: e,
|
|
11
11
|
children: i,
|
|
12
12
|
className: r,
|
|
13
|
-
...
|
|
13
|
+
...a
|
|
14
14
|
}) {
|
|
15
|
-
const t = e ??
|
|
16
|
-
base: "
|
|
15
|
+
const t = e ?? v, l = c(o), n = u({
|
|
16
|
+
base: "relative flex h-fit w-full list-inside flex-col gap-2",
|
|
17
17
|
variants: {
|
|
18
18
|
as: {
|
|
19
|
-
ol: "
|
|
20
|
-
ul: "
|
|
19
|
+
ol: "list-decimal",
|
|
20
|
+
ul: "list-disc"
|
|
21
21
|
},
|
|
22
22
|
nested: {
|
|
23
|
-
true: "
|
|
23
|
+
true: "ml-4"
|
|
24
24
|
},
|
|
25
25
|
level: {
|
|
26
26
|
0: "",
|
|
@@ -33,22 +33,22 @@ function v({
|
|
|
33
33
|
{
|
|
34
34
|
level: 1,
|
|
35
35
|
as: "ul",
|
|
36
|
-
class: "
|
|
36
|
+
class: "list-[square]"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
level: 1,
|
|
40
40
|
as: "ol",
|
|
41
|
-
class: "
|
|
41
|
+
class: "list-[lower-alpha]"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
level: 2,
|
|
45
45
|
as: "ul",
|
|
46
|
-
class: "
|
|
46
|
+
class: "list-[circle]"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
level: 2,
|
|
50
50
|
as: "ol",
|
|
51
|
-
class: "
|
|
51
|
+
class: "list-[lower-roman]"
|
|
52
52
|
}
|
|
53
53
|
]
|
|
54
54
|
})({
|
|
@@ -56,8 +56,8 @@ function v({
|
|
|
56
56
|
level: l.parent === e ? l.level % 3 : 0,
|
|
57
57
|
nested: l.level > 0
|
|
58
58
|
});
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
|
|
59
|
+
return /* @__PURE__ */ s(t, { ...a, className: `uofg-list ${m(n, r)}`, children: /* @__PURE__ */ s(
|
|
60
|
+
o.Provider,
|
|
61
61
|
{
|
|
62
62
|
value: {
|
|
63
63
|
parent: e ?? "ul",
|
|
@@ -67,8 +67,8 @@ function v({
|
|
|
67
67
|
}
|
|
68
68
|
) });
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
p.displayName = "List";
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
p as List,
|
|
73
73
|
N as ListItem
|
|
74
74
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { FontAwesomeIcon as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { tv as
|
|
5
|
-
var
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { FontAwesomeIcon as t } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { twMerge as h } from "tailwind-merge";
|
|
4
|
+
import { tv as d } from "tailwind-variants";
|
|
5
|
+
var p = {
|
|
6
6
|
prefix: "fal",
|
|
7
7
|
iconName: "spinner-third",
|
|
8
8
|
icon: [
|
|
@@ -12,7 +12,7 @@ var h = {
|
|
|
12
12
|
"f3f4",
|
|
13
13
|
"M463.9 376c7.6 4.4 17.5 1.8 21.4-6.1c17.1-34.3 26.7-73 26.7-113.9C512 120 405.9 8.8 272 .5c-8.8-.5-16 6.7-16 15.5s7.2 15.9 16 16.6C388.2 40.8 480 137.7 480 256c0 35.1-8.1 68.3-22.5 97.9c-3.9 8-1.3 17.7 6.4 22.1z"
|
|
14
14
|
]
|
|
15
|
-
},
|
|
15
|
+
}, g = {
|
|
16
16
|
prefix: "fak",
|
|
17
17
|
iconName: "gryphon-statue",
|
|
18
18
|
icon: [
|
|
@@ -23,52 +23,52 @@ var h = {
|
|
|
23
23
|
"M166.4 257.6c-25.6-19.2-43.2-38.4-43.2-38.4s0 33.6-43.2 33.6H46.4c-14.4 0-24 9.6-24 20.8v9.6c0 4.8 4.8 9.6 9.6 9.6h180.8s3.2-1.6 0-3.2c-9.6-8-30.4-22.4-46.4-32zm38.4-62.4c9.6 0 17.6 1.6 25.6 4.8 3.2-17.6 6.4-35.2 1.6-46.4L200 51.2l-19.2 72-38.4 12.8-57.6-48 32 102.4c3.2 11.2 16 24 30.4 36.8 12.8-19.2 33.6-33.6 57.6-32zm-9.6-44.8c4.8-1.6 11.2 1.6 12.8 6.4 1.6 4.8-1.6 11.2-6.4 12.8-4.8 1.6-11.2-1.6-12.8-6.4-1.6-4.8 1.6-11.2 6.4-12.8zm-48 14.4c4.8-1.6 11.2 1.6 12.8 6.4 1.6 4.8-1.6 11.2-6.4 12.8s-11.2-1.6-12.8-6.4 1.6-11.2 6.4-12.8zm81.6 46.4c-6.4-3.2-14.4-4.8-22.4-4.8-20.8 0-40 11.2-49.6 28.8C180.8 256 208 272 208 272s12.8-30.4 20.8-60.8zm1.6-112C256 70.4 224 48 232 17.6c9.6-35.2 86.4-9.6 99.2-3.2 73.6 35.2 112 89.6 112 89.6s27.2 33.6-1.6 25.6c-16-4.8-49.6-27.2-83.2-38.4-35.2-9.6-75.2 0-89.6 24-38.4 62.4 1.6 102.4 1.6 102.4s6.4 6.4 14.4 12.8c6.4 4.8 17.6 9.6 17.6 9.6h-72s16-44.8 16-81.6c0-12.8-20.8-54.4-16-59.2zm267.2 291.2h-11.2v-68.8h11.2c6.4 0 11.2-4.8 11.2-11.2 0-6.4-4.8-11.2-11.2-11.2h-14.4c-9.6 6.4-20.8 11.2-32 11.2H400c-19.2 0-35.2 14.4-35.2 30.4 0 22.4-9.6 44.8-27.2 60.8-6.4 4.8-12.8 9.6-19.2 12.8h180.8c6.4 0 11.2-4.8 11.2-11.2-1.6-6.4-6.4-12.8-12.8-12.8zm-264-86.4c-4.8 0-8-1.6-11.2-3.2l-3.2 3.2-1.6 1.6h-184c-4.8 0-9.6-1.6-14.4-4.8h-8C4.8 300.8 0 305.6 0 312c0 6.4 4.8 11.2 11.2 11.2h11.2V392H11.2C4.8 392 0 396.8 0 403.2c0 6.4 4.8 11.2 11.2 11.2h211.2c-28.8-14.4-48-41.6-48-73.6 0-16 12.8-28.8 28.8-28.8s28.8 12.8 28.8 28.8v1.6c0 16 16 28.8 35.2 28.8 19.2 0 35.2-14.4 35.2-30.4 0-12.8 3.2-25.6 9.6-36.8h-78.4zm216-94.4h-6.4C422.4 96 331.2 100.8 320 100.8c-41.6 8-57.6 38.4-54.4 76.8 3.2 48 59.2 65.6 92.8 65.6 3.2 0 6.4 3.2 6.4 6.4s-1.6 6.4-4.8 6.4H246.4c-11.2 0-20.8 9.6-20.8 20.8v9.6c0 4.8 4.8 9.6 9.6 9.6h89.6c17.6-22.4 44.8-36.8 76.8-36.8h49.6V256c0-4.8 0-9.6-1.6-14.4h3.2c4.8 0 9.6 6.4 9.6 14.4s-4.8 14.4-9.6 14.4H400c-46.4 0-81.6 33.6-81.6 73.6 0 24-20.8 41.6-48 41.6s-48-19.2-48-41.6c0-9.6-8-17.6-17.6-17.6-9.6 0-17.6 8-17.6 17.6 0 40 36.8 73.6 81.6 73.6s81.6-33.6 81.6-73.6c0-24 20.8-41.6 48-41.6h52.8c24 0 41.6-20.8 41.6-44.8 0-28.8-19.2-48-43.2-48z"
|
|
24
24
|
]
|
|
25
25
|
};
|
|
26
|
-
function w({ size:
|
|
27
|
-
const
|
|
26
|
+
function w({ size: n = "lg", color: i = "red", className: r, children: s }) {
|
|
27
|
+
const o = d({
|
|
28
28
|
slots: {
|
|
29
|
-
base: "
|
|
30
|
-
container: "
|
|
31
|
-
spinner: "
|
|
32
|
-
icon: "
|
|
33
|
-
text: "
|
|
29
|
+
base: "relative flex h-fit w-fit flex-col items-center justify-center gap-2",
|
|
30
|
+
container: "relative flex aspect-square w-[1em] flex-col items-center justify-center",
|
|
31
|
+
spinner: "z-0 animate-spin",
|
|
32
|
+
icon: "absolute w-[0.6em]!",
|
|
33
|
+
text: "text-center font-serif"
|
|
34
34
|
},
|
|
35
35
|
variants: {
|
|
36
36
|
size: {
|
|
37
37
|
sm: {
|
|
38
|
-
container: "
|
|
39
|
-
text: "
|
|
38
|
+
container: "text-[8rem]",
|
|
39
|
+
text: "sr-only"
|
|
40
40
|
},
|
|
41
41
|
md: {
|
|
42
|
-
container: "
|
|
43
|
-
text: "
|
|
42
|
+
container: "text-[12rem]",
|
|
43
|
+
text: "text-[1.5rem]"
|
|
44
44
|
},
|
|
45
45
|
lg: {
|
|
46
|
-
container: "
|
|
47
|
-
text: "
|
|
46
|
+
container: "text-[15rem]",
|
|
47
|
+
text: "text-lg"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
color: {
|
|
51
51
|
red: {
|
|
52
|
-
base: "
|
|
52
|
+
base: "text-red"
|
|
53
53
|
},
|
|
54
54
|
blue: {
|
|
55
|
-
base: "
|
|
55
|
+
base: "text-blue"
|
|
56
56
|
},
|
|
57
57
|
green: {
|
|
58
|
-
base: "
|
|
58
|
+
base: "text-green"
|
|
59
59
|
},
|
|
60
60
|
yellow: {
|
|
61
|
-
base: "
|
|
61
|
+
base: "text-yellow"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
}), { base: a, icon:
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
/* @__PURE__ */ e(
|
|
65
|
+
}), { base: a, icon: l, container: m, spinner: f, text: x } = o({ size: n, color: i });
|
|
66
|
+
return /* @__PURE__ */ c("div", { className: `uofg-loading-indicator ${h(a(), r)}`, children: [
|
|
67
|
+
/* @__PURE__ */ c("div", { className: m(), children: [
|
|
68
|
+
/* @__PURE__ */ e(t, { className: `uofg-loading-indicator-spinner ${f()}`, icon: p }),
|
|
69
|
+
/* @__PURE__ */ e(t, { className: `uofg-loading-indicator-icon ${l()}`, icon: g })
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */ e("span", { className:
|
|
71
|
+
/* @__PURE__ */ e("span", { className: x(), children: s })
|
|
72
72
|
] });
|
|
73
73
|
}
|
|
74
74
|
export {
|