@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.
Files changed (84) hide show
  1. package/dist/accordion-button.js +22 -22
  2. package/dist/accordion-content.js +5 -5
  3. package/dist/accordion.js +3 -3
  4. package/dist/alert-footer.js +6 -6
  5. package/dist/alert-message.js +7 -10
  6. package/dist/alert-subtitle.js +7 -7
  7. package/dist/alert-title.js +23 -23
  8. package/dist/alert.js +7 -7
  9. package/dist/blockquote-author-name.js +1 -1
  10. package/dist/blockquote-author-title.js +2 -2
  11. package/dist/blockquote-author.js +11 -11
  12. package/dist/blockquote-content.js +16 -16
  13. package/dist/breadcrumb-home.js +2 -2
  14. package/dist/breadcrumb.js +15 -15
  15. package/dist/breadcrumbs.js +9 -9
  16. package/dist/button.js +44 -44
  17. package/dist/card-content.js +10 -10
  18. package/dist/card-footer.js +11 -11
  19. package/dist/card-image.js +15 -15
  20. package/dist/card-title.js +5 -5
  21. package/dist/card.js +11 -11
  22. package/dist/carousel.js +51 -51
  23. package/dist/checkbox.js +44 -44
  24. package/dist/contact-email.js +7 -7
  25. package/dist/contact-name.js +1 -1
  26. package/dist/contact-phone.js +11 -11
  27. package/dist/contact-title.js +1 -1
  28. package/dist/contact.js +11 -14
  29. package/dist/container.js +10 -10
  30. package/dist/dismissible-alert.js +2 -2
  31. package/dist/divider.js +18 -18
  32. package/dist/embedded-video-modal-button.js +16 -16
  33. package/dist/embedded-video.js +29 -29
  34. package/dist/hero-caption.js +1 -1
  35. package/dist/hero-content.js +23 -23
  36. package/dist/hero-link.js +1 -1
  37. package/dist/hero-title.js +11 -11
  38. package/dist/hero-video.js +9 -9
  39. package/dist/hero.js +19 -19
  40. package/dist/image-overlay.js +48 -48
  41. package/dist/index.css +1 -1
  42. package/dist/info.js +16 -16
  43. package/dist/layout-content.js +3 -3
  44. package/dist/layout.js +44 -44
  45. package/dist/link-carousel-content.js +11 -11
  46. package/dist/link-carousel-item.js +15 -15
  47. package/dist/link-carousel-link.js +22 -22
  48. package/dist/link-carousel-links.js +14 -14
  49. package/dist/link-carousel.js +21 -21
  50. package/dist/link.js +10 -10
  51. package/dist/list-item.js +6 -6
  52. package/dist/list.js +21 -21
  53. package/dist/loading-indicator.js +29 -29
  54. package/dist/media-caption.js +34 -34
  55. package/dist/modal.js +25 -25
  56. package/dist/navigation-link.js +25 -25
  57. package/dist/navigation.js +8 -11
  58. package/dist/number-input.js +46 -46
  59. package/dist/pagination.js +62 -62
  60. package/dist/radio-group.js +8 -8
  61. package/dist/radio.js +19 -19
  62. package/dist/select-button.js +32 -32
  63. package/dist/select-option.js +29 -29
  64. package/dist/select-options.js +27 -27
  65. package/dist/select.js +7 -7
  66. package/dist/statistics-item-image.js +9 -9
  67. package/dist/statistics-item-represents.js +7 -7
  68. package/dist/statistics-item-value.js +7 -7
  69. package/dist/statistics-item.js +35 -35
  70. package/dist/statistics.js +25 -25
  71. package/dist/story-background-image.js +12 -12
  72. package/dist/story-background.js +7 -7
  73. package/dist/story-body.js +5 -8
  74. package/dist/story-footer.js +12 -12
  75. package/dist/story-foreground-content.js +4 -4
  76. package/dist/story-foreground-image.js +15 -15
  77. package/dist/story-foreground.js +7 -10
  78. package/dist/story.js +5 -5
  79. package/dist/tab-list.js +3 -6
  80. package/dist/tab-panel.js +3 -3
  81. package/dist/tab.js +26 -26
  82. package/dist/text-input.js +32 -32
  83. package/dist/typography.js +22 -22
  84. package/package.json +2 -2
package/dist/layout.js CHANGED
@@ -1,55 +1,55 @@
1
- import { jsxs as t, Fragment as u, jsx as o } from "react/jsx-runtime";
2
- import { Transition as g } from "@headlessui/react";
3
- import { tv as c } from "tailwind-variants";
4
- import { LoadingIndicator as s } from "./loading-indicator.js";
5
- import { LayoutContent as y } from "./layout-content.js";
6
- function a({ children: n, loading: e }) {
7
- const r = c({
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
- "uog:text-uog-color-red",
11
- "uog:fixed",
12
- "uog:top-0",
13
- "uog:left-0",
14
- "uog:z-20",
15
- "uog:flex",
16
- "uog:h-screen",
17
- "uog:w-screen",
18
- "uog:flex-col",
19
- "uog:items-center",
20
- "uog:justify-center",
21
- "uog:gap-6",
22
- "uog:bg-white",
23
- "uog:transition-opacity",
24
- "uog:duration-300",
25
- "uog:data-[closed]:opacity-0"
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
- "uog:bg-uog-color-yellow",
29
- "uog:sr-only",
30
- "uog:left-0",
31
- "uog:z-[1000]",
32
- "uog:fixed",
33
- "uog:top-0",
34
- "uog:w-fit",
35
- "uog:px-0",
36
- "uog:underline",
37
- "uog:transition-[padding]",
38
- "uog:focus:not-sr-only",
39
- "uog:focus:px-2"
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: i, skipLink: l } = r();
43
- return /* @__PURE__ */ t(u, { children: [
44
- /* @__PURE__ */ o(g, { show: !!e, children: /* @__PURE__ */ o("div", { className: `uofg-layout-placeholder ${i()}`, children: /* @__PURE__ */ o(s, { children: typeof e != "boolean" && e }) }) }),
45
- !e && /* @__PURE__ */ t(u, { children: [
46
- /* @__PURE__ */ o("a", { className: l(), href: "#content", children: "Skip to main content" }),
47
- /* @__PURE__ */ o("div", { className: "uofg-layout flex flex-1 flex-col", children: n })
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
- a.displayName = "Layout";
51
+ p.displayName = "Layout";
52
52
  export {
53
- a as Layout,
54
- y as LayoutContent
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 u } from "react";
4
- import { twMerge as s } from "tailwind-merge";
5
- import { tv as l } from "tailwind-variants";
6
- import { LinkCarouselContext as i } from "./link-carousel-context.js";
7
- function k({ children: t, className: e }) {
8
- const o = u(i), r = l({
9
- base: "uog:relative uog:h-full uog:hidden uog:md:block",
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: "uog:w-full",
13
- false: "uog:flex-1"
12
+ true: "w-full",
13
+ false: "flex-1"
14
14
  }
15
15
  }
16
16
  });
17
- return /* @__PURE__ */ n("div", { className: `uofg-link-carousel-content ${s(r({ stack: o == null ? void 0 : o.stack }), e)}`, children: t });
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
- k as LinkCarouselContent
20
+ C as LinkCarouselContent
21
21
  };
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { jsx as t, Fragment as a } from "react/jsx-runtime";
3
- import { useContext as l } from "react";
4
- import { twMerge as g } from "tailwind-merge";
5
- import { tv as m } from "tailwind-variants";
6
- import { LinkCarouselContext as n } from "./link-carousel-context.js";
7
- function k({ id: e, children: i, className: u }) {
8
- const o = l(n), r = m({
9
- base: "uog:w-full uog:hidden uog:bg-white",
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: "uog:block uog:relative uog:animate-fade-in uog:z-10" },
12
- wasActive: { true: "uog:block uog:absolute uog:z-0 uog:top-0 uog:left-0" }
11
+ isActive: { true: "relative z-10 block animate-fade-in" },
12
+ wasActive: { true: "absolute top-0 left-0 z-0 block" }
13
13
  }
14
- }), s = g(
15
- r({ isActive: (o == null ? void 0 : o.activeId) === e, wasActive: (o == null ? void 0 : o.previousActiveId) === e }),
16
- u
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__ */ t(a, { children: /* @__PURE__ */ t("div", { className: `uofg-link-carousel-item ${s}`, children: i }) });
18
+ return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i("div", { className: `uofg-link-carousel-item ${a}`, children: r }) });
19
19
  }
20
20
  export {
21
- k as LinkCarouselItem
21
+ b as LinkCarouselItem
22
22
  };
@@ -1,45 +1,45 @@
1
1
  "use client";
2
- import { jsxs as a, jsx as c } from "react/jsx-runtime";
3
- import { c as m } from "./solid-D19hAF5t.js";
4
- import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
5
- import { useContext as k } from "react";
6
- import { twMerge as f } from "tailwind-merge";
7
- import { tv as p } from "tailwind-variants";
8
- import { LinkCarouselContext as b } from "./link-carousel-context.js";
9
- const x = "a";
10
- function C({
11
- as: t,
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
- ...u
16
+ ...i
17
17
  }) {
18
- const i = t ?? x, o = k(b), l = p({
19
- base: "uog:w-full uog:flex-1 uog:text-2xl uog:bg-black uog:flex uog:items-center uog:justify-between uog:text-black-contrast uog:p-6 uog:hocus:text-black uog:hocus:bg-yellow uog:transition-colors",
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: "uog:md:bg-black/70"
22
+ true: "md:bg-black/70"
23
23
  }
24
24
  }
25
25
  });
26
- return /* @__PURE__ */ a(
27
- i,
26
+ return /* @__PURE__ */ c(
27
+ l,
28
28
  {
29
- ...u,
29
+ ...i,
30
30
  href: r,
31
- className: `uofg-link-carousel-link ${f(l({ stack: o == null ? void 0 : o.stack }), n)}`,
31
+ className: `uofg-link-carousel-link ${p(a({ stack: t == null ? void 0 : t.stack }), n)}`,
32
32
  onMouseEnter: () => {
33
- o == null || o.setActiveId(e);
33
+ t == null || t.setActiveId(e);
34
34
  },
35
35
  children: [
36
36
  s,
37
- /* @__PURE__ */ c(g, { icon: m })
37
+ /* @__PURE__ */ m(k, { icon: u })
38
38
  ]
39
39
  }
40
40
  );
41
41
  }
42
- C.displayName = "LinkCarouselLink";
42
+ g.displayName = "LinkCarouselLink";
43
43
  export {
44
- C as LinkCarouselLink
44
+ g as LinkCarouselLink
45
45
  };
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { useContext as r } from "react";
4
- import { twMerge as e } from "tailwind-merge";
5
- import { tv as l } from "tailwind-variants";
6
- import { LinkCarouselContext as n } from "./link-carousel-context.js";
7
- function p({ children: s, className: t }) {
8
- const o = r(n), u = l({
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",
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: "uog:md:absolute uog:h-full",
13
- false: "uog:h-auto"
12
+ true: "h-full md:absolute",
13
+ false: "h-auto"
14
14
  },
15
15
  direction: {
16
- left: "uog:left-0",
17
- right: "uog:right-0"
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__ */ i("div", { className: `uofg-link-carousel-links ${e(u, t)}`, children: s });
21
+ return /* @__PURE__ */ r("div", { className: `uofg-link-carousel-links ${l(i, t)}`, children: s });
22
22
  }
23
23
  export {
24
- p as LinkCarouselLinks
24
+ d as LinkCarouselLinks
25
25
  };
@@ -1,44 +1,44 @@
1
1
  "use client";
2
- import { jsx as l } from "react/jsx-runtime";
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 g } from "./link-carousel-context.js";
7
- import { LinkCarouselLink as x } from "./link-carousel-link.js";
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 A(r) {
12
- let o = null;
13
- function t(i) {
11
+ function w(r) {
12
+ let t = null;
13
+ function o(i) {
14
14
  k.forEach(i, (e) => {
15
- if (o) return;
15
+ if (t) return;
16
16
  const n = C(e);
17
- n && e.type === x ? o = e.props.id : n && e.props.children && t(e.props.children);
17
+ n && e.type === A ? t = e.props.id : n && e.props.children && o(e.props.children);
18
18
  });
19
19
  }
20
- return t(r), o;
20
+ return o(r), t;
21
21
  }
22
- function w({ children: r, className: o, stack: t = !1, direction: i = "left" }) {
23
- const e = p(() => A(r), [r]), [n, u] = d(e), s = v(null), f = (c) => {
24
- u((m) => (s.current = m, c));
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: "uog:flex uog:w-full uog:relative uog:h-fit uog:overflow-hidden",
26
+ base: "relative flex h-fit w-full overflow-hidden",
27
27
  variants: {
28
28
  direction: {
29
- left: "uog:flex-row",
30
- right: "uog:flex-row-reverse"
29
+ left: "flex-row",
30
+ right: "flex-row-reverse"
31
31
  }
32
32
  }
33
33
  });
34
- return /* @__PURE__ */ l("div", { className: `uofg-link-carousel ${I(a({ direction: i }), o)}`, children: /* @__PURE__ */ l(
35
- g.Provider,
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: t ?? !1,
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
- w.displayName = "LinkCarousel";
51
+ h.displayName = "LinkCarousel";
52
52
  export {
53
- w as LinkCarousel,
53
+ h as LinkCarousel,
54
54
  F as LinkCarouselContent,
55
55
  S as LinkCarouselItem,
56
- x as LinkCarouselLink,
56
+ A as LinkCarouselLink,
57
57
  $ as LinkCarouselLinks
58
58
  };
package/dist/link.js CHANGED
@@ -1,20 +1,20 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { twMerge as u } from "tailwind-merge";
3
- import { tv as s } from "tailwind-variants";
4
- const c = "a";
5
- function a({
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 g = o ?? c, l = s({
13
- base: "uog:inline-flex uog:gap-[1em] uog:underline uog:decoration-current uog:transition-colors uog:hover:decoration-transparent uog:focus:ring-2 uog:focus-visible:ring-offset-2 uog:focus-visible:outline-none uog:text-body-copy-link uog:focus-visible:ring-body-copy-link uog:light:text-body-copy-link-on-light uog:light:focus-visible:ring-body-copy-link-on-light uog:dark:text-body-copy-link-on-dark uog:dark:focus-visible:ring-body-copy-link-on-light"
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__ */ r(g, { ...e, href: i, className: `uofg-link ${u(l(), t)}`, children: n });
15
+ return /* @__PURE__ */ s(l, { ...e, href: i, className: `uofg-link ${c(r(), t)}`, children: n });
16
16
  }
17
- a.displayName = "Link";
17
+ d.displayName = "Link";
18
18
  export {
19
- a as Link
19
+ d as Link
20
20
  };
package/dist/list-item.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { twMerge as m } from "tailwind-merge";
4
- function r({ className: t, children: e, ...i }) {
5
- return /* @__PURE__ */ o("li", { ...i, className: `uofg-list-item ${m("uog:relative uog:h-fit uog:w-full", t)}`, children: e });
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
- r.displayName = "ListItem";
7
+ l.displayName = "ListItem";
8
8
  export {
9
- r as ListItem
9
+ l as ListItem
10
10
  };
package/dist/list.js CHANGED
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { useContext as n } from "react";
4
- import { twMerge as c } from "tailwind-merge";
5
- import { tv as m } from "tailwind-variants";
6
- import { ListContext as s } from "./list-context.js";
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 g = "ul";
9
- function v({
8
+ const v = "ul";
9
+ function p({
10
10
  as: e,
11
11
  children: i,
12
12
  className: r,
13
- ...u
13
+ ...a
14
14
  }) {
15
- const t = e ?? g, l = n(s), a = m({
16
- base: "uog:flex uog:flex-col uog:relative uog:h-fit uog:w-full uog:list-inside uog:gap-2",
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: "uog:list-decimal",
20
- ul: "uog:list-disc"
19
+ ol: "list-decimal",
20
+ ul: "list-disc"
21
21
  },
22
22
  nested: {
23
- true: "uog:ml-4"
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: "uog:list-[square]"
36
+ class: "list-[square]"
37
37
  },
38
38
  {
39
39
  level: 1,
40
40
  as: "ol",
41
- class: "uog:list-[lower-alpha]"
41
+ class: "list-[lower-alpha]"
42
42
  },
43
43
  {
44
44
  level: 2,
45
45
  as: "ul",
46
- class: "uog:list-[circle]"
46
+ class: "list-[circle]"
47
47
  },
48
48
  {
49
49
  level: 2,
50
50
  as: "ol",
51
- class: "uog:list-[lower-roman]"
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__ */ o(t, { ...u, className: `uofg-list ${c(a, r)}`, children: /* @__PURE__ */ o(
60
- s.Provider,
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
- v.displayName = "List";
70
+ p.displayName = "List";
71
71
  export {
72
- v as List,
72
+ p as List,
73
73
  N as ListItem
74
74
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { FontAwesomeIcon as c } from "@fortawesome/react-fontawesome";
3
- import { twMerge as f } from "tailwind-merge";
4
- import { tv as x } from "tailwind-variants";
5
- var h = {
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
- }, d = {
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: t = "lg", color: n = "red", className: i, children: r }) {
27
- const s = x({
26
+ function w({ size: n = "lg", color: i = "red", className: r, children: s }) {
27
+ const o = d({
28
28
  slots: {
29
- base: "uog:flex uog:flex-col uog:items-center uog:justify-center uog:relative uog:w-fit uog:h-fit uog:gap-2",
30
- container: "uog:relative uog:aspect-square uog:flex uog:flex-col uog:items-center uog:justify-center uog:w-[1em]",
31
- spinner: "uog:animate-spin uog:z-0",
32
- icon: "uog:absolute uog:w-[0.6em]!",
33
- text: "uog:font-serif uog:text-center"
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: "uog:text-[8rem]",
39
- text: "uog:sr-only"
38
+ container: "text-[8rem]",
39
+ text: "sr-only"
40
40
  },
41
41
  md: {
42
- container: "uog:text-[12rem]",
43
- text: "uog:text-[1.5rem]"
42
+ container: "text-[12rem]",
43
+ text: "text-[1.5rem]"
44
44
  },
45
45
  lg: {
46
- container: "uog:text-[15rem]",
47
- text: "uog:text-lg"
46
+ container: "text-[15rem]",
47
+ text: "text-lg"
48
48
  }
49
49
  },
50
50
  color: {
51
51
  red: {
52
- base: "uog:text-red"
52
+ base: "text-red"
53
53
  },
54
54
  blue: {
55
- base: "uog:text-blue"
55
+ base: "text-blue"
56
56
  },
57
57
  green: {
58
- base: "uog:text-green"
58
+ base: "text-green"
59
59
  },
60
60
  yellow: {
61
- base: "uog:text-yellow"
61
+ base: "text-yellow"
62
62
  }
63
63
  }
64
64
  }
65
- }), { base: a, icon: g, container: u, spinner: l, text: m } = s({ size: t, color: n });
66
- return /* @__PURE__ */ o("div", { className: `uofg-loading-indicator ${f(a(), i)}`, children: [
67
- /* @__PURE__ */ o("div", { className: u(), children: [
68
- /* @__PURE__ */ e(c, { className: `uofg-loading-indicator-spinner ${l()}`, icon: h }),
69
- /* @__PURE__ */ e(c, { className: `uofg-loading-indicator-icon ${g()}`, icon: d })
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: m(), children: r })
71
+ /* @__PURE__ */ e("span", { className: x(), children: s })
72
72
  ] });
73
73
  }
74
74
  export {