@uoguelph/react-components 1.2.12 → 1.2.14
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 -8
- package/dist/breadcrumb-home.js +13 -13
- package/dist/breadcrumb.js +13 -13
- package/dist/breadcrumbs.js +5 -5
- package/dist/card-content.js +4 -4
- package/dist/card-footer.js +1 -1
- package/dist/card-image.js +16 -16
- package/dist/card-title.js +5 -5
- package/dist/card.js +1 -1
- package/dist/carousel.js +30 -30
- package/dist/checkbox.js +26 -26
- package/dist/components/select/select.d.ts +4 -3
- package/dist/contact-email.js +8 -8
- package/dist/contact-name.js +6 -6
- package/dist/contact-phone.js +9 -9
- package/dist/contact-title.js +4 -4
- package/dist/contact.js +12 -12
- package/dist/container.js +7 -7
- package/dist/divider.js +10 -10
- package/dist/embedded-video-modal-button.js +30 -13
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +19 -19
- package/dist/index.css +1 -1
- package/dist/info.js +2 -2
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +8 -8
- package/dist/link-carousel-link.js +6 -6
- package/dist/link.js +3 -3
- package/dist/list-item.js +5 -5
- package/dist/list.js +1 -1
- package/dist/modal.js +27 -16
- package/dist/radio-group.js +13 -13
- package/dist/radio.js +8 -8
- package/dist/select-button.js +32 -31
- package/dist/select-option.js +19 -16
- package/dist/select-options.js +1 -1
- package/dist/select.js +10 -4
- package/dist/statistics-item-image.js +12 -2
- package/dist/statistics-item-represents.js +2 -5
- package/dist/statistics-item-value.js +2 -5
- package/dist/statistics-item.js +2 -2
- package/dist/statistics.js +33 -33
- package/dist/story-background-image.js +12 -2
- package/dist/story-background.js +2 -2
- package/dist/story-body.js +2 -2
- package/dist/story-footer.js +3 -3
- package/dist/story-foreground-content.js +2 -5
- package/dist/story-foreground-image.js +13 -3
- package/dist/story-foreground.js +2 -2
- package/dist/story.js +2 -2
- package/dist/tab-list.js +7 -7
- package/dist/tab-panel.js +8 -8
- package/dist/tab-panels.js +4 -4
- package/dist/tab.js +1 -1
- package/dist/tabs.js +6 -6
- package/dist/text-input.js +18 -18
- package/package.json +2 -2
package/dist/modal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { e as f } from "./solid-D4xgBves.js";
|
|
3
3
|
import { FontAwesomeIcon as b } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import { Dialog as x, DialogBackdrop as
|
|
4
|
+
import { Dialog as x, DialogBackdrop as w, CloseButton as h, DialogPanel as y } from "@headlessui/react";
|
|
5
5
|
import { tv as N } from "tailwind-variants";
|
|
6
|
-
function
|
|
7
|
-
}, role:
|
|
6
|
+
function k({ open: u, onClose: a = () => {
|
|
7
|
+
}, role: r = "dialog", labelledBy: t, centered: l, children: g }) {
|
|
8
8
|
const s = N({
|
|
9
9
|
slots: {
|
|
10
10
|
base: "uog:ease-out uog:relative uog:z-50 uog:transition uog:duration-300 uog:data-[closed]:opacity-0",
|
|
@@ -21,19 +21,30 @@ function v({ open: t, onClose: a = () => {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
}), { base: i, backdrop: n, wrapper:
|
|
25
|
-
return /* @__PURE__ */ e(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
}), { base: i, backdrop: n, wrapper: d, panelWrapper: c, panel: p, closeButton: m } = s({ centered: l });
|
|
25
|
+
return /* @__PURE__ */ e(
|
|
26
|
+
x,
|
|
27
|
+
{
|
|
28
|
+
transition: !0,
|
|
29
|
+
open: u,
|
|
30
|
+
role: r,
|
|
31
|
+
onClose: a,
|
|
32
|
+
className: `uofg-modal ${i()}`,
|
|
33
|
+
"aria-labelledby": t,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ o(w, { transition: !0, className: `uofg-modal-backdrop ${n()}` }),
|
|
36
|
+
/* @__PURE__ */ o("div", { className: `uofg-modal-wrapper ${d()}`, children: /* @__PURE__ */ e("div", { className: `uofg-modal-panel-wrapper ${c()}`, children: [
|
|
37
|
+
/* @__PURE__ */ e(h, { onClick: a, className: `uofg-modal-close-button ${m()}`, children: [
|
|
38
|
+
/* @__PURE__ */ o(b, { icon: f }),
|
|
39
|
+
/* @__PURE__ */ o("span", { className: "uog:md:sr-only uog:text-base", children: "Close Modal" })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ o(y, { className: `uofg-modal-panel ${p()}`, children: g })
|
|
42
|
+
] }) })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
35
46
|
}
|
|
36
|
-
|
|
47
|
+
k.displayName = "Modal";
|
|
37
48
|
export {
|
|
38
|
-
|
|
49
|
+
k as Modal
|
|
39
50
|
};
|
package/dist/radio-group.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { RadioGroup as d } from "@headlessui/react";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as f, useMemo as c } from "react";
|
|
4
4
|
import { tv as n } from "tailwind-variants";
|
|
5
5
|
import { RadioContext as x } from "./radio-context.js";
|
|
6
|
-
import { Radio as
|
|
7
|
-
function R({ name:
|
|
8
|
-
const [l, e] =
|
|
6
|
+
import { Radio as j } from "./radio.js";
|
|
7
|
+
function R({ name: a, inline: s = !1, onChange: o, children: i }) {
|
|
8
|
+
const [l, e] = f(null), u = c(() => ({ setSelected: e }), [e]), m = n({
|
|
9
9
|
slots: {
|
|
10
10
|
base: "uog:flex uog:gap-2"
|
|
11
11
|
},
|
|
@@ -16,22 +16,22 @@ function R({ name: s, inline: a = !1, onChange: o, children: i }) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
}), { base: p } =
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
}), { base: p } = m({ inline: s });
|
|
20
|
+
return /* @__PURE__ */ t(
|
|
21
21
|
d,
|
|
22
22
|
{
|
|
23
|
-
name:
|
|
23
|
+
name: a,
|
|
24
24
|
value: l,
|
|
25
|
-
onChange: (
|
|
26
|
-
e(
|
|
25
|
+
onChange: (r) => {
|
|
26
|
+
e(r), o == null || o(r);
|
|
27
27
|
},
|
|
28
|
-
className: p()
|
|
29
|
-
children: /* @__PURE__ */
|
|
28
|
+
className: `uofg-radio-group ${p()}`,
|
|
29
|
+
children: /* @__PURE__ */ t(x.Provider, { value: u, children: i })
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
R.displayName = "RadioGroup";
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
j as Radio,
|
|
36
36
|
R as RadioGroup
|
|
37
37
|
};
|
package/dist/radio.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Field as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Field as d, Radio as f, Label as n } from "@headlessui/react";
|
|
3
3
|
import { useContext as m, useEffect as b, Fragment as p } from "react";
|
|
4
4
|
import { tv as h } from "tailwind-variants";
|
|
5
5
|
import { RadioContext as x } from "./radio-context.js";
|
|
6
|
-
function
|
|
6
|
+
function j({ selected: i, children: u, value: r }) {
|
|
7
7
|
const o = m(x);
|
|
8
8
|
b(() => {
|
|
9
9
|
i && (o == null || o.setSelected(r));
|
|
@@ -25,12 +25,12 @@ function k({ selected: i, children: u, value: r }) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
}), { field: l, radio: g, circle:
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ e(
|
|
31
|
-
/* @__PURE__ */ e(
|
|
28
|
+
}), { field: l, radio: g, circle: c } = a();
|
|
29
|
+
return /* @__PURE__ */ t(d, { className: `uofg-radio-field ${l()}`, children: [
|
|
30
|
+
/* @__PURE__ */ e(f, { value: r, as: p, children: ({ checked: s }) => /* @__PURE__ */ e("span", { className: `uofg-radio ${g({ checked: s })}`, children: /* @__PURE__ */ e("span", { className: `uofg-radio-circle ${c({ checked: s })}` }) }) }),
|
|
31
|
+
/* @__PURE__ */ e(n, { className: "uofg-radio-label", children: u })
|
|
32
32
|
] });
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
j as Radio
|
|
36
36
|
};
|
package/dist/select-button.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { h as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { ListboxButton as
|
|
5
|
-
import { twMerge as
|
|
6
|
-
import { tv as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { h as c } from "./solid-D4xgBves.js";
|
|
3
|
+
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { ListboxButton as a } from "@headlessui/react";
|
|
5
|
+
import { twMerge as f } from "tailwind-merge";
|
|
6
|
+
import { tv as l } from "tailwind-variants";
|
|
7
|
+
function b({ children: o, className: u, ...e }) {
|
|
8
|
+
const n = l({
|
|
9
9
|
slots: {
|
|
10
10
|
button: [
|
|
11
11
|
"uofg-select-button",
|
|
12
|
-
"ui-open:rounded-b-none",
|
|
13
|
-
"ui-open:border-blue",
|
|
14
|
-
"flex",
|
|
15
|
-
"w-full",
|
|
16
|
-
"items-center",
|
|
17
|
-
"justify-between",
|
|
18
|
-
"rounded-md",
|
|
19
|
-
"border",
|
|
20
|
-
"border-
|
|
21
|
-
"bg-white",
|
|
22
|
-
"px-4",
|
|
23
|
-
"py-2",
|
|
24
|
-
"shadow-sm",
|
|
25
|
-
"transition-colors",
|
|
26
|
-
"group-focus-within:border-blue",
|
|
27
|
-
"group-focus-within:outline-none"
|
|
12
|
+
"uog:ui-open:rounded-b-none",
|
|
13
|
+
"uog:ui-open:border-blue",
|
|
14
|
+
"uog:flex",
|
|
15
|
+
"uog:w-full",
|
|
16
|
+
"uog:items-center",
|
|
17
|
+
"uog:justify-between",
|
|
18
|
+
"uog:rounded-md",
|
|
19
|
+
"uog:border",
|
|
20
|
+
"uog:border-grey-light",
|
|
21
|
+
"uog:bg-white",
|
|
22
|
+
"uog:px-4",
|
|
23
|
+
"uog:py-2",
|
|
24
|
+
"uog:shadow-sm",
|
|
25
|
+
"uog:transition-colors",
|
|
26
|
+
"uog:group-focus-within:border-blue",
|
|
27
|
+
"uog:group-focus-within:outline-none",
|
|
28
|
+
"uog:gap-2"
|
|
28
29
|
],
|
|
29
|
-
icon: "ui-open:rotate-180 h-5 w-5 text-
|
|
30
|
+
icon: "uog:ui-open:rotate-180 uog:h-5 uog:w-5 uog:text-body-copy uog:transition-transform"
|
|
30
31
|
}
|
|
31
|
-
}), { button:
|
|
32
|
-
return /* @__PURE__ */ t(
|
|
33
|
-
typeof o == "function" ? o(
|
|
34
|
-
/* @__PURE__ */ t(
|
|
32
|
+
}), { button: r, icon: g } = n();
|
|
33
|
+
return /* @__PURE__ */ t(a, { ...e, className: f(r(), u), children: (s) => /* @__PURE__ */ i(m, { children: [
|
|
34
|
+
typeof o == "function" ? o(s) : /* @__PURE__ */ t("span", { children: o }),
|
|
35
|
+
/* @__PURE__ */ t(p, { className: g(), icon: c })
|
|
35
36
|
] }) });
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
b.displayName = "SelectButton";
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
b as SelectButton
|
|
40
41
|
};
|
package/dist/select-option.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { d as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { ListboxOption as
|
|
5
|
-
import { twMerge as
|
|
6
|
-
import { tv as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { d as m } from "./regular-DmWV6rTj.js";
|
|
3
|
+
import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { ListboxOption as b } from "@headlessui/react";
|
|
5
|
+
import { twMerge as x } from "tailwind-merge";
|
|
6
|
+
import { tv as v } from "tailwind-variants";
|
|
7
|
+
function y({ children: o, className: r, ...i }) {
|
|
8
|
+
const n = v({
|
|
9
9
|
slots: {
|
|
10
10
|
option: [
|
|
11
11
|
"uofg-select-option",
|
|
@@ -22,9 +22,12 @@ function x({ children: o, className: r, ...i }) {
|
|
|
22
22
|
"uog:hover:bg-gray-100",
|
|
23
23
|
"uog:focus:bg-gray-100",
|
|
24
24
|
"uog:focus:outline-none",
|
|
25
|
-
"uog:ui-active:bg-gray-100"
|
|
25
|
+
"uog:ui-active:bg-gray-100",
|
|
26
|
+
"uog:gap-2"
|
|
26
27
|
],
|
|
27
|
-
icon: "uog:h-5 uog:w-5 uog:text-blue-600"
|
|
28
|
+
icon: "uog:h-5 uog:w-5 uog:text-blue-600",
|
|
29
|
+
wrapper: "uog:flex uog:items-center",
|
|
30
|
+
content: "uog:flex-1"
|
|
28
31
|
},
|
|
29
32
|
variants: {
|
|
30
33
|
selected: {
|
|
@@ -36,13 +39,13 @@ function x({ children: o, className: r, ...i }) {
|
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
}), { option:
|
|
40
|
-
return /* @__PURE__ */ e(
|
|
41
|
-
/* @__PURE__ */ e("span", { className:
|
|
42
|
-
/* @__PURE__ */ e(
|
|
42
|
+
}), { option: s, icon: g, wrapper: u, content: a } = n();
|
|
43
|
+
return /* @__PURE__ */ e(b, { ...i, className: x(s(), r), children: ({ focus: c, selected: t, ...p }) => /* @__PURE__ */ l("div", { className: u(), children: [
|
|
44
|
+
/* @__PURE__ */ e("span", { className: a(), children: typeof o == "function" ? o({ focus: c, selected: t, ...p }) : o }),
|
|
45
|
+
/* @__PURE__ */ e(f, { icon: m, className: g({ selected: t }) })
|
|
43
46
|
] }) });
|
|
44
47
|
}
|
|
45
|
-
|
|
48
|
+
y.displayName = "SelectOptions";
|
|
46
49
|
export {
|
|
47
|
-
|
|
50
|
+
y as SelectOption
|
|
48
51
|
};
|
package/dist/select-options.js
CHANGED
package/dist/select.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Listbox as r } from "@headlessui/react";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { SelectButton as f } from "./select-button.js";
|
|
4
|
+
import { SelectOption as u } from "./select-option.js";
|
|
5
|
+
import { SelectOptions as n } from "./select-options.js";
|
|
6
|
+
function l({ children: e, ...t }) {
|
|
7
|
+
return /* @__PURE__ */ o(r, { className: "uofg-select uog:relative uog:w-full", ...t, as: "div", children: e });
|
|
5
8
|
}
|
|
6
|
-
|
|
9
|
+
l.displayName = "Select";
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
l as Select,
|
|
12
|
+
f as SelectButton,
|
|
13
|
+
u as SelectOption,
|
|
14
|
+
n as SelectOptions
|
|
9
15
|
};
|
|
@@ -10,8 +10,18 @@ function f({
|
|
|
10
10
|
className: o,
|
|
11
11
|
...c
|
|
12
12
|
}) {
|
|
13
|
-
const n = e ?? g, l = r("
|
|
14
|
-
return /* @__PURE__ */ t("dd", { className: "contents", children: /* @__PURE__ */ t(
|
|
13
|
+
const n = e ?? g, l = r("uog:w-full", o);
|
|
14
|
+
return /* @__PURE__ */ t("dd", { className: "contents", children: /* @__PURE__ */ t(
|
|
15
|
+
n,
|
|
16
|
+
{
|
|
17
|
+
src: s,
|
|
18
|
+
alt: m,
|
|
19
|
+
width: a,
|
|
20
|
+
height: i,
|
|
21
|
+
className: `uofg-statistics-item-image ${l}`,
|
|
22
|
+
...c
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
15
25
|
}
|
|
16
26
|
f.displayName = "StatisticsItemImage";
|
|
17
27
|
export {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as r } from "tailwind-merge";
|
|
3
3
|
function i({ children: t, className: e }) {
|
|
4
|
-
const s = r(
|
|
5
|
-
|
|
6
|
-
e
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ o("dd", { className: s, children: t });
|
|
4
|
+
const s = r("uog:text-normal uog:p-6 uog:pt-0 uog:text-lg uog:font-normal", e);
|
|
5
|
+
return /* @__PURE__ */ o("dd", { className: `uofg-statistics-item-represents ${s}`, children: t });
|
|
9
6
|
}
|
|
10
7
|
i.displayName = "StatisticsItemRepresents";
|
|
11
8
|
export {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as a } from "tailwind-merge";
|
|
3
3
|
function i({ children: t, className: o }) {
|
|
4
|
-
const e = a(
|
|
5
|
-
|
|
6
|
-
o
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ s("dt", { className: e, children: t });
|
|
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 });
|
|
9
6
|
}
|
|
10
7
|
i.displayName = "StatisticsItemValue";
|
|
11
8
|
export {
|
package/dist/statistics-item.js
CHANGED
|
@@ -9,7 +9,7 @@ function n({ children: t, className: r }) {
|
|
|
9
9
|
o == null || o.incrementCount();
|
|
10
10
|
}, []);
|
|
11
11
|
const e = a({
|
|
12
|
-
base: "
|
|
12
|
+
base: "uog:relative uog:flex uog:flex-1 uog:flex-col uog:justify-around uog:gap-2",
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
"solid-colors-full": [
|
|
@@ -53,7 +53,7 @@ function n({ children: t, className: r }) {
|
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
55
|
});
|
|
56
|
-
return /* @__PURE__ */ l("div", { className: s(e({ variant: o == null ? void 0 : o.variant }), r)
|
|
56
|
+
return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${s(e({ variant: o == null ? void 0 : o.variant }), r)}`, children: t });
|
|
57
57
|
}
|
|
58
58
|
n.displayName = "StatisticsItem";
|
|
59
59
|
export {
|
package/dist/statistics.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { tv as
|
|
5
|
-
import { u as
|
|
6
|
-
import { StatisticsContext as
|
|
7
|
-
import { StatisticsItem as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a } from "react";
|
|
3
|
+
import { twMerge as m } from "tailwind-merge";
|
|
4
|
+
import { tv as f } from "tailwind-variants";
|
|
5
|
+
import { u as n } from "./use-resize-observer-DmddO4OQ.js";
|
|
6
|
+
import { StatisticsContext as p } from "./statistics-context.js";
|
|
7
|
+
import { StatisticsItem as I } from "./statistics-item.js";
|
|
8
8
|
import { StatisticsItemImage as F } from "./statistics-item-image.js";
|
|
9
|
-
import { StatisticsItemRepresents as
|
|
10
|
-
import { StatisticsItemValue as
|
|
11
|
-
function
|
|
12
|
-
const [
|
|
13
|
-
base: "
|
|
9
|
+
import { StatisticsItemRepresents as N } from "./statistics-item-represents.js";
|
|
10
|
+
import { StatisticsItemValue as j } from "./statistics-item-value.js";
|
|
11
|
+
function v({ children: t, variant: o, className: r }) {
|
|
12
|
+
const [s, l] = a(0), [u, i] = n(), g = f({
|
|
13
|
+
base: "uog:mx-auto uog:my-0 uog:flex uog:flex-col uog:flex-wrap uog:sm:flex-row",
|
|
14
14
|
variants: {
|
|
15
15
|
divisibleByTwo: {
|
|
16
16
|
true: ""
|
|
@@ -46,42 +46,42 @@ function p({ children: e, variant: o, className: r }) {
|
|
|
46
46
|
class: "uog:grid uog:grid-cols-1 uog:sm:grid-cols-3"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
}), c = m(
|
|
50
|
+
g({
|
|
51
|
+
variant: o,
|
|
52
|
+
divisibleByTwo: s % 2 === 0,
|
|
53
|
+
divisibleByThree: s % 3 === 0,
|
|
54
|
+
divisibleByFour: s % 4 === 0
|
|
55
|
+
}),
|
|
56
|
+
r
|
|
57
|
+
);
|
|
58
|
+
return /* @__PURE__ */ e(
|
|
59
|
+
p.Provider,
|
|
52
60
|
{
|
|
53
61
|
value: {
|
|
54
62
|
variant: o,
|
|
55
|
-
incrementCount: () => l((
|
|
63
|
+
incrementCount: () => l((d) => d + 1)
|
|
56
64
|
},
|
|
57
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ e(
|
|
58
66
|
"dl",
|
|
59
67
|
{
|
|
60
|
-
className:
|
|
61
|
-
g({
|
|
62
|
-
variant: o,
|
|
63
|
-
divisibleByTwo: i % 2 === 0,
|
|
64
|
-
divisibleByThree: i % 3 === 0,
|
|
65
|
-
divisibleByFour: i % 4 === 0
|
|
66
|
-
}),
|
|
67
|
-
r
|
|
68
|
-
),
|
|
68
|
+
className: `uofg-statistics ${c}`,
|
|
69
69
|
style: (
|
|
70
70
|
/* @ts-expect-error TypeScript doesn't like CSS Variables */
|
|
71
|
-
o === "solid-colors-full" ? { "--statistic-bg-width": (
|
|
71
|
+
o === "solid-colors-full" ? { "--statistic-bg-width": (i == null ? void 0 : i.contentRect.width) + "px" } : void 0
|
|
72
72
|
),
|
|
73
73
|
ref: u,
|
|
74
|
-
children:
|
|
74
|
+
children: t
|
|
75
75
|
}
|
|
76
76
|
)
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
v.displayName = "Statistics";
|
|
81
81
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
v as Statistics,
|
|
83
|
+
I as StatisticsItem,
|
|
84
84
|
F as StatisticsItemImage,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
N as StatisticsItemRepresents,
|
|
86
|
+
j as StatisticsItemValue
|
|
87
87
|
};
|
|
@@ -10,8 +10,18 @@ function f({
|
|
|
10
10
|
className: n,
|
|
11
11
|
...s
|
|
12
12
|
}) {
|
|
13
|
-
const a = o ?? l, m = c("
|
|
14
|
-
return /* @__PURE__ */ u(
|
|
13
|
+
const a = o ?? l, m = c("uog:h-full uog:w-full uog:brightness-50", n);
|
|
14
|
+
return /* @__PURE__ */ u(
|
|
15
|
+
a,
|
|
16
|
+
{
|
|
17
|
+
...s,
|
|
18
|
+
src: t,
|
|
19
|
+
alt: e,
|
|
20
|
+
width: r,
|
|
21
|
+
height: g,
|
|
22
|
+
className: `uofg-story-background-image ${m}`
|
|
23
|
+
}
|
|
24
|
+
);
|
|
15
25
|
}
|
|
16
26
|
f.displayName = "StoryBackgroundImage";
|
|
17
27
|
export {
|
package/dist/story-background.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as a } from "tailwind-merge";
|
|
3
3
|
function g({ children: o, className: u }) {
|
|
4
|
-
const r = a("
|
|
5
|
-
return /* @__PURE__ */ t("div", { className: r
|
|
4
|
+
const r = a("uog:absolute uog:z-0 uog:h-full uog:max-h-full uog:w-full", u);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-background ${r}`, children: o });
|
|
6
6
|
}
|
|
7
7
|
g.displayName = "StoryBackground";
|
|
8
8
|
export {
|
package/dist/story-body.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { twMerge as s } from "tailwind-merge";
|
|
3
3
|
function u({ children: o, className: e }) {
|
|
4
4
|
const r = s(
|
|
5
|
-
"
|
|
5
|
+
"uog:relative uog:flex uog:w-full uog:items-center uog:justify-center uog:overflow-hidden",
|
|
6
6
|
e
|
|
7
7
|
);
|
|
8
|
-
return /* @__PURE__ */ t("div", { className: r
|
|
8
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: o });
|
|
9
9
|
}
|
|
10
10
|
u.displayName = "StoryBody";
|
|
11
11
|
export {
|
package/dist/story-footer.js
CHANGED
|
@@ -5,11 +5,11 @@ import { Container as g } from "./container.js";
|
|
|
5
5
|
function c({ children: t, className: e }) {
|
|
6
6
|
const r = i({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "
|
|
9
|
-
container: "
|
|
8
|
+
base: "uog:flex uog:w-full uog:items-center uog:justify-center uog:bg-black uog:p-4 uog:text-white",
|
|
9
|
+
container: "uog:flex uog:items-center uog:justify-center uog:p-2 uog:text-xl"
|
|
10
10
|
}
|
|
11
11
|
}), { base: s, container: u } = r();
|
|
12
|
-
return /* @__PURE__ */ o("div", { className: n(s(), e)
|
|
12
|
+
return /* @__PURE__ */ o("div", { className: `uofg-story-footer ${n(s(), e)}`, children: /* @__PURE__ */ o(g, { className: `uofg-story-footer-container ${u()}`, children: t }) });
|
|
13
13
|
}
|
|
14
14
|
c.displayName = "StoryFooter";
|
|
15
15
|
export {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as n } from "tailwind-merge";
|
|
3
3
|
function u({ children: o, className: r }) {
|
|
4
|
-
const t = n(
|
|
5
|
-
|
|
6
|
-
r
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ e("div", { className: t, children: o });
|
|
4
|
+
const t = n("uog:flex uog:w-full uog:justify-center uog:px-8 uog:lg:w-1/2 uog:lg:p-0", r);
|
|
5
|
+
return /* @__PURE__ */ e("div", { className: `uofg-story-foreground-content ${t}`, children: o });
|
|
9
6
|
}
|
|
10
7
|
u.displayName = "StoryForegroundContent";
|
|
11
8
|
export {
|
|
@@ -13,11 +13,21 @@ function p({
|
|
|
13
13
|
}) {
|
|
14
14
|
const a = e ?? d, n = c({
|
|
15
15
|
slots: {
|
|
16
|
-
base: "
|
|
17
|
-
image: "
|
|
16
|
+
base: "uog:flex uog:w-full uog:justify-center uog:lg:mt-auto uog:lg:w-1/2",
|
|
17
|
+
image: "uog:w-full uog:h-full"
|
|
18
18
|
}
|
|
19
19
|
}), { base: l, image: f } = n();
|
|
20
|
-
return /* @__PURE__ */ o("div", { className: l()
|
|
20
|
+
return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${l()}`, children: /* @__PURE__ */ o(
|
|
21
|
+
a,
|
|
22
|
+
{
|
|
23
|
+
...m,
|
|
24
|
+
src: r,
|
|
25
|
+
alt: t,
|
|
26
|
+
width: g,
|
|
27
|
+
height: u,
|
|
28
|
+
className: `uofg-story-foreground-image ${i(f(), s)}`
|
|
29
|
+
}
|
|
30
|
+
) });
|
|
21
31
|
}
|
|
22
32
|
p.displayName = "StoryForegroundImage";
|
|
23
33
|
export {
|
package/dist/story-foreground.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as g } from "react/jsx-runtime";
|
|
|
2
2
|
import { twMerge as u } from "tailwind-merge";
|
|
3
3
|
function t({ children: o, className: r }) {
|
|
4
4
|
const e = u(
|
|
5
|
-
"
|
|
5
|
+
"uog:max-w-[137rem] uog:z-10 uog:flex uog:w-full uog:flex-col uog:items-center uog:gap-6 uog:px-4 uog:lg:flex-row",
|
|
6
6
|
r
|
|
7
7
|
);
|
|
8
|
-
return /* @__PURE__ */ g("div", { className: e
|
|
8
|
+
return /* @__PURE__ */ g("div", { className: `uofg-story-foreground ${e}`, children: o });
|
|
9
9
|
}
|
|
10
10
|
t.displayName = "StoryForeground";
|
|
11
11
|
export {
|
package/dist/story.js
CHANGED
|
@@ -8,8 +8,8 @@ import { StoryForeground as i } from "./story-foreground.js";
|
|
|
8
8
|
import { StoryForegroundContent as B } from "./story-foreground-content.js";
|
|
9
9
|
import { StoryForegroundImage as w } from "./story-foreground-image.js";
|
|
10
10
|
function f({ children: o, className: r }) {
|
|
11
|
-
const t = m("
|
|
12
|
-
return /* @__PURE__ */ e("div", { className: t
|
|
11
|
+
const t = m("uog:flex uog:w-full uog:flex-col", r);
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: `uofg-story ${t}`, children: o });
|
|
13
13
|
}
|
|
14
14
|
f.displayName = "Story";
|
|
15
15
|
export {
|
package/dist/tab-list.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TabList as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function l({ children: o, className:
|
|
5
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { TabList as a } from "@headlessui/react";
|
|
3
|
+
import { twMerge as e } from "tailwind-merge";
|
|
4
|
+
function l({ children: o, className: t }) {
|
|
5
|
+
const r = e(
|
|
6
6
|
"uofg-tab-list uog:flex uog:gap-1 uog:border-b-4 uog:border-yellow uog:w-full uog:flex-col uog:md:flex-row",
|
|
7
|
-
|
|
7
|
+
t
|
|
8
8
|
);
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ s(a, { className: `uofg-tab-list ${r}`, children: o });
|
|
10
10
|
}
|
|
11
11
|
l.displayName = "TabList";
|
|
12
12
|
export {
|
package/dist/tab-panel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TabPanel as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
5
|
-
const o =
|
|
6
|
-
return /* @__PURE__ */ r
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { TabPanel as r } from "@headlessui/react";
|
|
3
|
+
import { twMerge as t } from "tailwind-merge";
|
|
4
|
+
function l({ children: a, className: e }) {
|
|
5
|
+
const o = t("uofg-tab-panel uog:py-4", e);
|
|
6
|
+
return /* @__PURE__ */ n(r, { className: `uofg-tab-panel ${o}`, children: a });
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
l.displayName = "TabPanel";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as TabPanel
|
|
11
11
|
};
|