@uoguelph/react-components 1.6.0-rc.7 → 1.6.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/carousel.js CHANGED
@@ -1,49 +1,49 @@
1
1
  "use client";
2
- import { jsxs as m, jsx as a } from "react/jsx-runtime";
3
- import { d as k, e as I } from "./solid-CwgZbR1c.js";
4
- import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
5
- import { Children as $, useRef as x, useState as A, useEffect as F } from "react";
6
- import { tv as L } from "tailwind-variants";
7
- import { l as S, b as q, m as w, c as M } from "./math-utils-CnAd98v6.js";
8
- const R = (c, h, t) => {
9
- const o = c.scrollLeft, n = performance.now();
10
- return new Promise((r) => {
11
- const f = (e) => {
12
- const u = e - n, i = q(Math.min(u / t, 1), 0.25, 0, 0.25, 1);
13
- c.scrollLeft = S(o, h, i), u < t ? requestAnimationFrame(f) : r();
2
+ import { jsxs as m, jsx as c } from "react/jsx-runtime";
3
+ import { d as I, e as $ } from "./solid-CwgZbR1c.js";
4
+ import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
5
+ import { Children as A, useRef as b, useState as F, useEffect as L } from "react";
6
+ import { tv as S } from "tailwind-variants";
7
+ import { l as q, b as M, m as C, c as R } from "./math-utils-CnAd98v6.js";
8
+ const z = (l, a, f) => {
9
+ const t = l.scrollLeft, r = performance.now();
10
+ return new Promise((n) => {
11
+ const o = (h) => {
12
+ const e = h - r, d = M(Math.min(e / f, 1), 0.25, 0, 0.25, 1);
13
+ l.scrollLeft = q(t, a, d), e < f ? requestAnimationFrame(o) : n();
14
14
  };
15
- requestAnimationFrame(f);
15
+ requestAnimationFrame(o);
16
16
  });
17
17
  };
18
- function G({ children: c, display: h = 1, loop: t = "none" }) {
19
- const o = $.count(c), n = Math.max(h, 1), r = x(null), f = x(0), [e, u] = A(0), i = o - n, d = x(!1);
20
- F(() => {
18
+ function H({ id: l, children: a, display: f = 1, loop: t = "none" }) {
19
+ const r = A.count(a), n = Math.max(f, 1), o = b(null), h = b(0), [e, d] = F(0), u = r - n, x = b(!1);
20
+ L(() => {
21
21
  var s;
22
- if (!r.current)
22
+ if (!o.current)
23
23
  return;
24
- const l = ((s = r.current) == null ? void 0 : s.offsetWidth) / n;
25
- (t === "jump" || t === "none") && (d.current = !0, R(r.current, l * e, 250).then(() => {
26
- d.current = !1;
27
- })), f.current = e;
28
- }, [e, t, i, n]);
29
- const b = (l) => {
30
- if (d.current) return;
24
+ const i = ((s = o.current) == null ? void 0 : s.offsetWidth) / n;
25
+ (t === "jump" || t === "none") && (x.current = !0, z(o.current, i * e, 250).then(() => {
26
+ x.current = !1;
27
+ })), h.current = e;
28
+ }, [e, t, u, n]);
29
+ const v = (i) => {
30
+ if (x.current) return;
31
31
  let s;
32
32
  switch (t) {
33
33
  case "none":
34
- s = M(e + l, 0, i);
34
+ s = R(e + i, 0, u);
35
35
  break;
36
36
  case "jump":
37
- s = w(e + l, i + 1);
37
+ s = C(e + i, u + 1);
38
38
  break;
39
39
  case "continuous":
40
- s = w(e + l, o);
40
+ s = C(e + i, r);
41
41
  break;
42
42
  default:
43
43
  s = 0;
44
44
  }
45
- u(s);
46
- }, C = L({
45
+ d(s);
46
+ }, y = S({
47
47
  slots: {
48
48
  base: "relative flex h-fit min-h-[7rem] w-full flex-col-reverse",
49
49
  contentContainer: "grid w-full flex-1 grid-cols-[repeat(var(--items),calc(100%/var(--display)))] overflow-x-hidden [&>*]:[grid-row:1]",
@@ -68,47 +68,47 @@ function G({ children: c, display: h = 1, loop: t = "none" }) {
68
68
  }
69
69
  }
70
70
  }
71
- }), v = o > n, { base: y, contentContainer: N, controlContainer: j, control: p } = C({ showControls: v });
72
- return /* @__PURE__ */ m("div", { className: `uofg-carousel ${y()}`, children: [
73
- v && /* @__PURE__ */ m("div", { className: `uofg-carousel-control-container ${j()}`, children: [
71
+ }), p = r > n, { base: N, contentContainer: j, controlContainer: k, control: g } = y({ showControls: p });
72
+ return /* @__PURE__ */ m("div", { id: l, className: `uofg-carousel ${N()}`, children: [
73
+ p && /* @__PURE__ */ m("div", { className: `uofg-carousel-control-container ${k()}`, children: [
74
74
  /* @__PURE__ */ m(
75
75
  "button",
76
76
  {
77
- onClick: () => b(-1),
78
- className: `uofg-carousel-shift-left ${p({ showControls: !(t === "none" && e === 0), direction: "left" })}`,
77
+ onClick: () => v(-1),
78
+ className: `uofg-carousel-shift-left ${g({ showControls: !(t === "none" && e === 0), direction: "left" })}`,
79
79
  children: [
80
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Shift left" }),
81
- /* @__PURE__ */ a(g, { icon: k })
80
+ /* @__PURE__ */ c("span", { className: "sr-only", children: "Shift left" }),
81
+ /* @__PURE__ */ c(w, { icon: I })
82
82
  ]
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ m(
86
86
  "button",
87
87
  {
88
- onClick: () => b(1),
89
- className: `uofg-carousel-shift-right ${p({ showControls: !(t === "none" && e === i), direction: "right" })}`,
88
+ onClick: () => v(1),
89
+ className: `uofg-carousel-shift-right ${g({ showControls: !(t === "none" && e === u), direction: "right" })}`,
90
90
  children: [
91
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Shift right" }),
92
- /* @__PURE__ */ a(g, { icon: I })
91
+ /* @__PURE__ */ c("span", { className: "sr-only", children: "Shift right" }),
92
+ /* @__PURE__ */ c(w, { icon: $ })
93
93
  ]
94
94
  }
95
95
  )
96
96
  ] }),
97
- /* @__PURE__ */ a(
97
+ /* @__PURE__ */ c(
98
98
  "div",
99
99
  {
100
- className: `uofg-carousel-content-container ${N()}`,
101
- ref: r,
100
+ className: `uofg-carousel-content-container ${j()}`,
101
+ ref: o,
102
102
  style: {
103
103
  // Define CSS variables for the grid layout
104
- "--items": o,
104
+ "--items": r,
105
105
  "--display": n
106
106
  },
107
- children: c
107
+ children: a
108
108
  }
109
109
  )
110
110
  ] });
111
111
  }
112
112
  export {
113
- G as Carousel
113
+ H as Carousel
114
114
  };
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type CarouselProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /**
4
5
  * The number of items to display at once
5
6
  *
@@ -17,4 +18,4 @@ export type CarouselProps = PropsWithChildren<{
17
18
  * The Carousel component is used to display a series of items in a horizontal row, allowing the user to scroll through
18
19
  * them.
19
20
  */
20
- export declare function Carousel({ children, display, loop }: CarouselProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function Carousel({ id, children, display, loop }: CarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ import { ContactName } from './contact-name';
4
4
  import { ContactPhone } from './contact-phone';
5
5
  import { ContactTitle } from './contact-title';
6
6
  export type ContactProps = PropsWithChildren<{
7
+ id?: string;
7
8
  /** Additional classes to apply to the contact */
8
9
  className?: string;
9
10
  }>;
@@ -11,7 +12,7 @@ export type ContactProps = PropsWithChildren<{
11
12
  * The Contact component is a container used to group contact information like name, title, phone number, and email
12
13
  * address in a styled, organized layout
13
14
  */
14
- export declare function Contact({ children, className }: ContactProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Contact({ id, children, className }: ContactProps): import("react/jsx-runtime").JSX.Element;
15
16
  export declare namespace Contact {
16
17
  var displayName: string;
17
18
  }
@@ -1,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  type Breakpoints = 'base' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
3
3
  export type GridProps = PropsWithChildren<{
4
+ id?: string;
4
5
  /** Extra CSS classes to add to the grid container (optional). */
5
6
  className?: string;
6
7
  /**
@@ -32,7 +33,7 @@ export type GridProps = PropsWithChildren<{
32
33
  y: number | string;
33
34
  };
34
35
  }>;
35
- export declare function Grid({ template, major, gap, alignment, children, className }: GridProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function Grid({ id, template, major, gap, alignment, children, className }: GridProps): import("react/jsx-runtime").JSX.Element;
36
37
  export declare namespace Grid {
37
38
  var displayName: string;
38
39
  }
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type InfoProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /**
4
5
  * The color of the left border in the info component.
5
6
  *
@@ -7,7 +8,7 @@ export type InfoProps = PropsWithChildren<{
7
8
  */
8
9
  color?: 'red' | 'yellow' | 'blue' | 'green' | 'grey-light' | 'grey-dark' | 'black' | 'white';
9
10
  }>;
10
- export declare function Info({ children, color }: InfoProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Info({ id, children, color }: InfoProps): import("react/jsx-runtime").JSX.Element;
11
12
  export declare namespace Info {
12
13
  var displayName: string;
13
14
  }
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type LinkCarouselProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** Additional classes to apply to the link carousel. */
4
5
  className?: string;
5
6
  /** Whether the carousel links should stack on top of the content, rather than beside it. */
@@ -18,7 +19,7 @@ export type LinkCarouselProps = PropsWithChildren<{
18
19
  * and is not focus friendly. If your content doesn't match this criteria, use the Carousel component instead, or find
19
20
  * another way to display your content.
20
21
  */
21
- export declare function LinkCarousel({ children, className, stack, direction }: LinkCarouselProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function LinkCarousel({ id, children, className, stack, direction }: LinkCarouselProps): import("react/jsx-runtime").JSX.Element;
22
23
  export declare namespace LinkCarousel {
23
24
  var displayName: string;
24
25
  }
@@ -1,9 +1,10 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type NavigationProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** Additional classes to add the navigation */
4
5
  className?: string;
5
6
  }>;
6
- export declare function Navigation({ className, children }: NavigationProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Navigation({ id, className, children }: NavigationProps): import("react/jsx-runtime").JSX.Element;
7
8
  export declare namespace Navigation {
8
9
  var displayName: string;
9
10
  }
@@ -1,12 +1,13 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type StatisticsProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** The variant of the statistics */
4
5
  variant: 'solid-colors-full' | 'solid-colors-no-gap' | 'solid-colors' | 'light-grey' | 'left-border';
5
6
  /** Additional classes to apply to the statistics */
6
7
  className?: string;
7
8
  }>;
8
9
  /** The Statistic component is used to display a list of statistics in a grid layout. */
9
- export declare function Statistics({ children, variant, className }: StatisticsProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function Statistics({ id, children, variant, className }: StatisticsProps): import("react/jsx-runtime").JSX.Element;
10
11
  export declare namespace Statistics {
11
12
  var displayName: string;
12
13
  }
@@ -1,9 +1,10 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type StoryProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** Additional classes to apply to the component. */
4
5
  className?: string;
5
6
  }>;
6
- export declare function Story({ children, className }: StoryProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Story({ id, children, className }: StoryProps): import("react/jsx-runtime").JSX.Element;
7
8
  export declare namespace Story {
8
9
  var displayName: string;
9
10
  }
@@ -1,9 +1,10 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type TabsProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** Additional classes to apply to the component. */
4
5
  className?: string;
5
6
  }>;
6
- export declare function Tabs({ children, className }: TabsProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Tabs({ id, children, className }: TabsProps): import("react/jsx-runtime").JSX.Element;
7
8
  export declare namespace Tabs {
8
9
  var displayName: string;
9
10
  }
package/dist/contact.js CHANGED
@@ -1,18 +1,18 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { twMerge as c } from "tailwind-merge";
3
- import { ContactEmail as i } from "./contact-email.js";
4
- import { ContactName as x } from "./contact-name.js";
5
- import { ContactPhone as C } from "./contact-phone.js";
6
- import { ContactTitle as b } from "./contact-title.js";
7
- function a({ children: t, className: o }) {
8
- const e = c("mb-2 flex flex-col bg-grey-light-bg p-4 text-body-copy-on-light", o);
9
- return /* @__PURE__ */ r("div", { className: `uofg-contact ${e}`, children: t });
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { twMerge as a } from "tailwind-merge";
3
+ import { ContactEmail as l } from "./contact-email.js";
4
+ import { ContactName as g } from "./contact-name.js";
5
+ import { ContactPhone as s } from "./contact-phone.js";
6
+ import { ContactTitle as y } from "./contact-title.js";
7
+ function n({ id: t, children: o, className: e }) {
8
+ const r = a("mb-2 flex flex-col bg-grey-light-bg p-4 text-body-copy-on-light", e);
9
+ return /* @__PURE__ */ c("div", { id: t, className: `uofg-contact ${r}`, children: o });
10
10
  }
11
- a.displayName = "Contact";
11
+ n.displayName = "Contact";
12
12
  export {
13
- a as Contact,
14
- i as ContactEmail,
15
- x as ContactName,
16
- C as ContactPhone,
17
- b as ContactTitle
13
+ n as Contact,
14
+ l as ContactEmail,
15
+ g as ContactName,
16
+ s as ContactPhone,
17
+ y as ContactTitle
18
18
  };
package/dist/grid.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { twMerge as g } from "tailwind-merge";
3
- import { tv as f } from "tailwind-variants";
4
- function h({ template: r, major: t = "column", gap: e, alignment: s, children: l, className: m }) {
5
- const a = f({
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { twMerge as f } from "tailwind-merge";
3
+ import { tv as h } from "tailwind-variants";
4
+ function n({ id: l, template: r, major: t = "column", gap: e, alignment: s, children: m, className: a }) {
5
+ const i = h({
6
6
  base: "grid gap-x-(--uofg-grid-gap-x) gap-y-(--uofg-grid-gap-y)",
7
7
  variants: {
8
8
  major: { row: "grid-flow-col", column: "" },
@@ -97,25 +97,26 @@ function h({ template: r, major: t = "column", gap: e, alignment: s, children: l
97
97
  has2XlTemplate: r["2xl"] !== void 0,
98
98
  alignmentX: (s == null ? void 0 : s.x) ?? "start",
99
99
  alignmentY: (s == null ? void 0 : s.y) ?? "start"
100
- }), i = Object.entries(r).reduce(
101
- (o, [u, d]) => (o[`--uofg-grid-${u}-template-${t}`] = d.join(" "), o),
100
+ }), u = Object.entries(r).reduce(
101
+ (o, [d, c]) => (o[`--uofg-grid-${d}-template-${t}`] = c.join(" "), o),
102
102
  {}
103
103
  );
104
- return /* @__PURE__ */ c(
104
+ return /* @__PURE__ */ g(
105
105
  "div",
106
106
  {
107
- className: `uofg-grid ${g(a, m)}`,
107
+ id: l,
108
+ className: `uofg-grid ${f(i, a)}`,
108
109
  style: {
109
- ...i,
110
+ ...u,
110
111
  // @ts-ignore
111
112
  "--uofg-grid-gap-x": typeof (e == null ? void 0 : e.x) == "string" ? e == null ? void 0 : e.x : `${e == null ? void 0 : e.x}px`,
112
113
  "--uofg-grid-gap-y": typeof (e == null ? void 0 : e.y) == "string" ? e == null ? void 0 : e.y : `${e == null ? void 0 : e.y}px`
113
114
  },
114
- children: l
115
+ children: m
115
116
  }
116
117
  );
117
118
  }
118
- h.displayName = "Grid";
119
+ n.displayName = "Grid";
119
120
  export {
120
- h as Grid
121
+ n as Grid
121
122
  };
package/dist/info.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { tv as d } from "tailwind-variants";
3
- function b({ children: r, color: e = "red" }) {
4
- const l = d({
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { tv as b } from "tailwind-variants";
3
+ function a({ id: r, children: e, color: l = "red" }) {
4
+ const o = b({
5
5
  base: "flex flex-col gap-1 border-l-4 pl-4",
6
6
  variants: {
7
7
  color: {
@@ -16,9 +16,9 @@ function b({ children: r, color: e = "red" }) {
16
16
  }
17
17
  }
18
18
  });
19
- return /* @__PURE__ */ o("div", { className: `uofg-info ${l({ color: e })}`, children: r });
19
+ return /* @__PURE__ */ d("div", { id: r, className: `uofg-info ${o({ color: l })}`, children: e });
20
20
  }
21
- b.displayName = "Info";
21
+ a.displayName = "Info";
22
22
  export {
23
- b as Info
23
+ a as Info
24
24
  };
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import { jsx as u } from "react/jsx-runtime";
3
- import { useMemo as p, useState as d, useRef as v, Children as k, isValidElement as C } from "react";
4
- import { twMerge as I } from "tailwind-merge";
5
- import { tv as L } from "tailwind-variants";
6
- import { LinkCarouselContext as x } from "./link-carousel-context.js";
7
- import { LinkCarouselLink as A } from "./link-carousel-link.js";
8
- import { LinkCarouselContent as F } from "./link-carousel-content.js";
9
- import { LinkCarouselItem as S } from "./link-carousel-item.js";
10
- import { LinkCarouselLinks as $ } from "./link-carousel-links.js";
11
- function w(r) {
12
- let t = null;
13
- function o(i) {
14
- k.forEach(i, (e) => {
15
- if (t) return;
16
- const n = C(e);
17
- n && e.type === A ? t = e.props.id : n && e.props.children && o(e.props.children);
3
+ import { useMemo as d, useState as v, useRef as k, Children as C, isValidElement as I } from "react";
4
+ import { twMerge as L } from "tailwind-merge";
5
+ import { tv as x } from "tailwind-variants";
6
+ import { LinkCarouselContext as A } from "./link-carousel-context.js";
7
+ import { LinkCarouselLink as w } from "./link-carousel-link.js";
8
+ import { LinkCarouselContent as R } from "./link-carousel-content.js";
9
+ import { LinkCarouselItem as V } from "./link-carousel-item.js";
10
+ import { LinkCarouselLinks as q } from "./link-carousel-links.js";
11
+ function h(i) {
12
+ let r = null;
13
+ function t(n) {
14
+ C.forEach(n, (e) => {
15
+ if (r) return;
16
+ const o = I(e);
17
+ o && e.type === w ? r = e.props.id : o && e.props.children && t(e.props.children);
18
18
  });
19
19
  }
20
- return o(r), t;
20
+ return t(i), r;
21
21
  }
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
- }, a = L({
22
+ function g({ id: i, children: r, className: t, stack: n = !1, direction: e = "left" }) {
23
+ const o = d(() => h(r), [r]), [l, f] = v(o), s = k(null), a = (m) => {
24
+ f((p) => (s.current = p, m));
25
+ }, c = x({
26
26
  base: "relative flex h-fit w-full overflow-hidden",
27
27
  variants: {
28
28
  direction: {
@@ -31,15 +31,15 @@ function h({ children: r, className: t, stack: o = !1, direction: i = "left" })
31
31
  }
32
32
  }
33
33
  });
34
- return /* @__PURE__ */ u("div", { className: `uofg-link-carousel ${I(a({ direction: i }), t)}`, children: /* @__PURE__ */ u(
35
- x.Provider,
34
+ return /* @__PURE__ */ u("div", { id: i, className: `uofg-link-carousel ${L(c({ direction: e }), t)}`, children: /* @__PURE__ */ u(
35
+ A.Provider,
36
36
  {
37
37
  value: {
38
38
  previousActiveId: s.current,
39
- activeId: n,
40
- setActiveId: f,
41
- stack: o ?? !1,
42
- direction: i,
39
+ activeId: l,
40
+ setActiveId: a,
41
+ stack: n ?? !1,
42
+ direction: e,
43
43
  clearPreviousActiveId: () => {
44
44
  s.current = null;
45
45
  }
@@ -48,11 +48,11 @@ function h({ children: r, className: t, stack: o = !1, direction: i = "left" })
48
48
  }
49
49
  ) });
50
50
  }
51
- h.displayName = "LinkCarousel";
51
+ g.displayName = "LinkCarousel";
52
52
  export {
53
- h as LinkCarousel,
54
- F as LinkCarouselContent,
55
- S as LinkCarouselItem,
56
- A as LinkCarouselLink,
57
- $ as LinkCarouselLinks
53
+ g as LinkCarousel,
54
+ R as LinkCarouselContent,
55
+ V as LinkCarouselItem,
56
+ w as LinkCarouselLink,
57
+ q as LinkCarouselLinks
58
58
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { twMerge as e } from "tailwind-merge";
3
- import { NavigationLink as g } from "./navigation-link.js";
4
- function n({ className: a, children: i }) {
5
- const t = e("flex w-full flex-col gap-1 border-b-4 border-yellow md:flex-row", a);
6
- return /* @__PURE__ */ o("nav", { className: "uofg-navigation contents", children: /* @__PURE__ */ o("ul", { className: `uofg-navigation-list ${t}`, children: i }) });
2
+ import { twMerge as n } from "tailwind-merge";
3
+ import { NavigationLink as m } from "./navigation-link.js";
4
+ function r({ id: a, className: i, children: t }) {
5
+ const e = n("flex w-full flex-col gap-1 border-b-4 border-yellow md:flex-row", i);
6
+ return /* @__PURE__ */ o("nav", { id: a, className: "uofg-navigation contents", children: /* @__PURE__ */ o("ul", { className: `uofg-navigation-list ${e}`, children: t }) });
7
7
  }
8
- n.displayName = "Navigation";
8
+ r.displayName = "Navigation";
9
9
  export {
10
- n as Navigation,
11
- g as NavigationLink
10
+ r as Navigation,
11
+ m as NavigationLink
12
12
  };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { useState as u } from "react";
4
- import { twMerge as f } from "tailwind-merge";
5
- import { tv as g } from "tailwind-variants";
6
- import { u as n } from "./use-resize-observer-DmddO4OQ.js";
7
- import { StatisticsContext as p } from "./statistics-context.js";
8
- import { StatisticsItem as I } from "./statistics-item.js";
9
- import { StatisticsItemImage as F } from "./statistics-item-image.js";
10
- import { StatisticsItemRepresents as N } from "./statistics-item-represents.js";
11
- import { StatisticsItemValue as j } from "./statistics-item-value.js";
12
- function v({ children: o, variant: s, className: r }) {
13
- const [i, l] = u(0), [c, e] = n(), d = g({
3
+ import { useState as f } from "react";
4
+ import { twMerge as g } from "tailwind-merge";
5
+ import { tv as n } from "tailwind-variants";
6
+ import { u as p } from "./use-resize-observer-DmddO4OQ.js";
7
+ import { StatisticsContext as v } from "./statistics-context.js";
8
+ import { StatisticsItem as C } from "./statistics-item.js";
9
+ import { StatisticsItemImage as R } from "./statistics-item-image.js";
10
+ import { StatisticsItemRepresents as V } from "./statistics-item-represents.js";
11
+ import { StatisticsItemValue as z } from "./statistics-item-value.js";
12
+ function b({ id: o, children: r, variant: s, className: l }) {
13
+ const [i, c] = f(0), [d, e] = p(), a = n({
14
14
  base: "mx-auto my-0 flex flex-col flex-wrap sm:flex-row",
15
15
  variants: {
16
16
  divisibleByTwo: {
@@ -47,42 +47,43 @@ function v({ children: o, variant: s, className: r }) {
47
47
  class: "grid grid-cols-1 sm:grid-cols-3"
48
48
  }
49
49
  ]
50
- }), a = f(
51
- d({
50
+ }), m = g(
51
+ a({
52
52
  variant: s,
53
53
  divisibleByTwo: i % 2 === 0,
54
54
  divisibleByThree: i % 3 === 0,
55
55
  divisibleByFour: i % 4 === 0
56
56
  }),
57
- r
57
+ l
58
58
  );
59
59
  return /* @__PURE__ */ t(
60
- p.Provider,
60
+ v.Provider,
61
61
  {
62
62
  value: {
63
63
  variant: s,
64
- incrementCount: () => l((m) => m + 1)
64
+ incrementCount: () => c((u) => u + 1)
65
65
  },
66
66
  children: /* @__PURE__ */ t(
67
67
  "dl",
68
68
  {
69
- className: `uofg-statistics ${a}`,
69
+ id: o,
70
+ className: `uofg-statistics ${m}`,
70
71
  style: (
71
72
  /* @ts-expect-error TypeScript doesn't like CSS Variables */
72
73
  s === "solid-colors-full" ? { "--statistic-bg-width": (e == null ? void 0 : e.contentRect.width) + "px" } : void 0
73
74
  ),
74
- ref: c,
75
- children: o
75
+ ref: d,
76
+ children: r
76
77
  }
77
78
  )
78
79
  }
79
80
  );
80
81
  }
81
- v.displayName = "Statistics";
82
+ b.displayName = "Statistics";
82
83
  export {
83
- v as Statistics,
84
- I as StatisticsItem,
85
- F as StatisticsItemImage,
86
- N as StatisticsItemRepresents,
87
- j as StatisticsItemValue
84
+ b as Statistics,
85
+ C as StatisticsItem,
86
+ R as StatisticsItemImage,
87
+ V as StatisticsItemRepresents,
88
+ z as StatisticsItemValue
88
89
  };
package/dist/story.js CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { twMerge as m } from "tailwind-merge";
3
- import { StoryBackground as a } from "./story-background.js";
4
- import { StoryBackgroundImage as s } from "./story-background-image.js";
5
- import { StoryBody as S } from "./story-body.js";
6
- import { StoryFooter as l } from "./story-footer.js";
7
- import { StoryForeground as i } from "./story-foreground.js";
8
- import { StoryForegroundContent as B } from "./story-foreground-content.js";
9
- import { StoryForegroundImage as w } from "./story-foreground-image.js";
10
- function f({ children: o, className: r }) {
11
- const t = m("flex w-full flex-col", r);
12
- return /* @__PURE__ */ e("div", { className: `uofg-story ${t}`, children: o });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { twMerge as f } from "tailwind-merge";
3
+ import { StoryBackground as g } from "./story-background.js";
4
+ import { StoryBackgroundImage as u } from "./story-background-image.js";
5
+ import { StoryBody as d } from "./story-body.js";
6
+ import { StoryFooter as c } from "./story-footer.js";
7
+ import { StoryForeground as F } from "./story-foreground.js";
8
+ import { StoryForegroundContent as k } from "./story-foreground-content.js";
9
+ import { StoryForegroundImage as I } from "./story-foreground-image.js";
10
+ function y({ id: o, children: r, className: t }) {
11
+ const e = f("flex w-full flex-col", t);
12
+ return /* @__PURE__ */ m("div", { id: o, className: `uofg-story ${e}`, children: r });
13
13
  }
14
- f.displayName = "Story";
14
+ y.displayName = "Story";
15
15
  export {
16
- f as Story,
17
- a as StoryBackground,
18
- s as StoryBackgroundImage,
19
- S as StoryBody,
20
- l as StoryFooter,
21
- i as StoryForeground,
22
- B as StoryForegroundContent,
23
- w as StoryForegroundImage
16
+ y as Story,
17
+ g as StoryBackground,
18
+ u as StoryBackgroundImage,
19
+ d as StoryBody,
20
+ c as StoryFooter,
21
+ F as StoryForeground,
22
+ k as StoryForegroundContent,
23
+ I as StoryForegroundImage
24
24
  };
package/dist/tabs.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { TabGroup as e } from "@headlessui/react";
4
- import { twMerge as s } from "tailwind-merge";
5
- import { Tab as T } from "./tab.js";
6
- import { TabList as u } from "./tab-list.js";
7
- import { TabPanel as c } from "./tab-panel.js";
8
- import { TabPanels as N } from "./tab-panels.js";
9
- function m({ children: o, className: r }) {
10
- const a = s("uofg-tabs", r);
11
- return /* @__PURE__ */ t(e, { className: `uofg-tabs ${a}`, children: o });
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { TabGroup as s } from "@headlessui/react";
4
+ import { twMerge as m } from "tailwind-merge";
5
+ import { Tab as l } from "./tab.js";
6
+ import { TabList as x } from "./tab-list.js";
7
+ import { TabPanel as g } from "./tab-panel.js";
8
+ import { TabPanels as P } from "./tab-panels.js";
9
+ function f({ id: o, children: r, className: a }) {
10
+ const t = m("uofg-tabs", a);
11
+ return /* @__PURE__ */ e(s, { id: o, className: `uofg-tabs ${t}`, children: r });
12
12
  }
13
- m.displayName = "Tabs";
13
+ f.displayName = "Tabs";
14
14
  export {
15
- T as Tab,
16
- u as TabList,
17
- c as TabPanel,
18
- N as TabPanels,
19
- m as Tabs
15
+ l as Tab,
16
+ x as TabList,
17
+ g as TabPanel,
18
+ P as TabPanels,
19
+ f as Tabs
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.6.0-rc.7",
3
+ "version": "1.6.0-rc.9",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -78,5 +78,5 @@
78
78
  "bugs": {
79
79
  "url": "https://github.com/ccswbs/uofg-components/issues"
80
80
  },
81
- "gitHead": "5175082e5ba9bc5268a85820e6b6c60a25ec79be"
81
+ "gitHead": "6c25126bfb94174d37db1f4aa32ceffec0081689"
82
82
  }