@uoguelph/react-components 1.0.0-rc.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 (126) hide show
  1. package/README.md +3 -0
  2. package/dist/accordion-button.d.ts +16 -0
  3. package/dist/accordion-button.js +42 -0
  4. package/dist/accordion-content.d.ts +15 -0
  5. package/dist/accordion-content.js +14 -0
  6. package/dist/accordion-context.d.ts +9 -0
  7. package/dist/accordion-context.js +5 -0
  8. package/dist/accordion.d.ts +42 -0
  9. package/dist/accordion.js +16 -0
  10. package/dist/alert-footer.d.ts +16 -0
  11. package/dist/alert-footer.js +10 -0
  12. package/dist/alert-message.d.ts +16 -0
  13. package/dist/alert-message.js +13 -0
  14. package/dist/alert-subtitle.d.ts +16 -0
  15. package/dist/alert-subtitle.js +10 -0
  16. package/dist/alert-title.d.ts +22 -0
  17. package/dist/alert-title.js +50 -0
  18. package/dist/alert.d.ts +70 -0
  19. package/dist/alert.js +18 -0
  20. package/dist/blockquote.d.ts +22 -0
  21. package/dist/blockquote.js +43 -0
  22. package/dist/breadcrumb-home.d.ts +32 -0
  23. package/dist/breadcrumb-home.js +21 -0
  24. package/dist/breadcrumb.d.ts +32 -0
  25. package/dist/breadcrumb.js +30 -0
  26. package/dist/breadcrumbs.d.ts +54 -0
  27. package/dist/breadcrumbs.js +15 -0
  28. package/dist/button.d.ts +51 -0
  29. package/dist/button.js +218 -0
  30. package/dist/card-content.d.ts +15 -0
  31. package/dist/card-content.js +20 -0
  32. package/dist/card-context.d.ts +10 -0
  33. package/dist/card-context.js +5 -0
  34. package/dist/card-footer.d.ts +16 -0
  35. package/dist/card-footer.js +20 -0
  36. package/dist/card-image.d.ts +40 -0
  37. package/dist/card-image.js +45 -0
  38. package/dist/card-title.d.ts +16 -0
  39. package/dist/card-title.js +20 -0
  40. package/dist/card.d.ts +105 -0
  41. package/dist/card.js +45 -0
  42. package/dist/carousel.d.ts +25 -0
  43. package/dist/carousel.js +113 -0
  44. package/dist/checkbox.d.ts +39 -0
  45. package/dist/checkbox.js +99 -0
  46. package/dist/contact-email.d.ts +17 -0
  47. package/dist/contact-email.js +21 -0
  48. package/dist/contact-name.d.ts +16 -0
  49. package/dist/contact-name.js +10 -0
  50. package/dist/contact-phone.d.ts +19 -0
  51. package/dist/contact-phone.js +25 -0
  52. package/dist/contact-title.d.ts +16 -0
  53. package/dist/contact-title.js +10 -0
  54. package/dist/contact.d.ts +73 -0
  55. package/dist/contact.js +18 -0
  56. package/dist/container.d.ts +32 -0
  57. package/dist/container.js +25 -0
  58. package/dist/divider.d.ts +6 -0
  59. package/dist/divider.js +30 -0
  60. package/dist/embedded-video-context.d.ts +10 -0
  61. package/dist/embedded-video-context.js +5 -0
  62. package/dist/embedded-video-modal-button.d.ts +54 -0
  63. package/dist/embedded-video-modal-button.js +25 -0
  64. package/dist/embedded-video.d.ts +81 -0
  65. package/dist/embedded-video.js +108 -0
  66. package/dist/hero-caption.d.ts +15 -0
  67. package/dist/hero-caption.js +8 -0
  68. package/dist/hero-content.d.ts +20 -0
  69. package/dist/hero-content.js +47 -0
  70. package/dist/hero-context.d.ts +9 -0
  71. package/dist/hero-context.js +5 -0
  72. package/dist/hero-link.d.ts +29 -0
  73. package/dist/hero-link.js +26 -0
  74. package/dist/hero-title.d.ts +24 -0
  75. package/dist/hero-title.js +26 -0
  76. package/dist/hero-video.d.ts +22 -0
  77. package/dist/hero-video.js +27 -0
  78. package/dist/hero.d.ts +141 -0
  79. package/dist/hero.js +52 -0
  80. package/dist/image-overlay.d.ts +66 -0
  81. package/dist/image-overlay.js +144 -0
  82. package/dist/index.css +1 -0
  83. package/dist/index.d.ts +11 -0
  84. package/dist/index.js +33 -0
  85. package/dist/info.d.ts +19 -0
  86. package/dist/info.js +24 -0
  87. package/dist/link-carousel-content.d.ts +11 -0
  88. package/dist/link-carousel-content.js +20 -0
  89. package/dist/link-carousel-context.d.ts +30 -0
  90. package/dist/link-carousel-context.js +5 -0
  91. package/dist/link-carousel-item.d.ts +15 -0
  92. package/dist/link-carousel-item.js +21 -0
  93. package/dist/link-carousel-link.d.ts +34 -0
  94. package/dist/link-carousel-link.js +39 -0
  95. package/dist/link-carousel-links.d.ts +11 -0
  96. package/dist/link-carousel-links.js +24 -0
  97. package/dist/link-carousel.d.ts +83 -0
  98. package/dist/link-carousel.js +57 -0
  99. package/dist/link.d.ts +30 -0
  100. package/dist/link.js +28 -0
  101. package/dist/list-item.d.ts +17 -0
  102. package/dist/list-item.js +9 -0
  103. package/dist/list.d.ts +39 -0
  104. package/dist/list.js +31 -0
  105. package/dist/loading-indicator.d.ts +23 -0
  106. package/dist/loading-indicator.js +75 -0
  107. package/dist/math-utils-BwzyIQRL.js +50 -0
  108. package/dist/media-caption.d.ts +110 -0
  109. package/dist/media-caption.js +129 -0
  110. package/dist/modal.d.ts +18 -0
  111. package/dist/modal.js +39 -0
  112. package/dist/navigation-link.d.ts +29 -0
  113. package/dist/navigation-link.js +40 -0
  114. package/dist/navigation.d.ts +40 -0
  115. package/dist/navigation.js +15 -0
  116. package/dist/radio-context.d.ts +9 -0
  117. package/dist/radio-context.js +5 -0
  118. package/dist/radio-group.d.ts +28 -0
  119. package/dist/radio-group.js +37 -0
  120. package/dist/radio.d.ts +13 -0
  121. package/dist/radio.js +36 -0
  122. package/dist/regular-CYeGUuiO.js +91 -0
  123. package/dist/solid-DM6GVhkF.js +80 -0
  124. package/dist/typography.d.ts +29 -0
  125. package/dist/typography.js +31 -0
  126. package/package.json +76 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @uoguelph/react-components
2
+
3
+ A collection of components for use in React projects following University of Guelph brand guidelines.
@@ -0,0 +1,16 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The AccordionButton component is a button used to toggle the visibility of an accordion panel. */
5
+ export declare function AccordionButton({ children, className }: AccordionButtonProps): JSX.Element;
6
+
7
+ export declare namespace AccordionButton {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type AccordionButtonProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the accordion button */
13
+ className?: string;
14
+ }>;
15
+
16
+ export { }
@@ -0,0 +1,42 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { f as u, a as l } from "./regular-CYeGUuiO.js";
3
+ import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
4
+ import { DisclosureButton as a } from "@headlessui/react";
5
+ import { useContext as b } from "react";
6
+ import { twMerge as f } from "tailwind-merge";
7
+ import { tv as m } from "tailwind-variants";
8
+ import { AccordionContext as p } from "./accordion-context.js";
9
+ function g({ children: n, className: e }) {
10
+ const t = b(p), i = m({
11
+ slots: {
12
+ button: "tw:group tw:mb-1 tw:inline-flex tw:w-full tw:cursor-pointer tw:items-center tw:justify-between tw:gap-2 tw:p-2.5 tw:px-5 tw:text-left tw:text-xl tw:transition-colors tw:focus:outline-none tw:focus-visible:ring-2 tw:focus-visible:ring-blue tw:focus-visible:ring-offset-2 tw:hocus-visible:bg-blue tw:hocus-visible:text-blue-contrast",
13
+ icon: "tw:h-[1em] tw:text-blue-on-light tw:group-hocus-visible:text-blue-contrast tw:transition"
14
+ },
15
+ variants: {
16
+ open: {
17
+ true: {
18
+ button: "tw:bg-blue tw:text-blue-contrast",
19
+ icon: "tw:text-blue-contrast"
20
+ },
21
+ false: {
22
+ icon: "tw:rotate-90",
23
+ button: "tw:bg-light-grey-bg tw:text-blue-on-light"
24
+ }
25
+ }
26
+ }
27
+ }), { button: s, icon: r } = i({ open: t == null ? void 0 : t.isOpen });
28
+ return /* @__PURE__ */ c(a, { className: `uofg-accordion-button ${f(e, s())}`, children: [
29
+ /* @__PURE__ */ o("span", { className: "uofg-accordion-button-content", children: n }),
30
+ /* @__PURE__ */ o(
31
+ w,
32
+ {
33
+ icon: t != null && t.isOpen ? u : l,
34
+ className: `uofg-accordion-button-icon ${r()}`
35
+ }
36
+ )
37
+ ] });
38
+ }
39
+ g.displayName = "AccordionButton";
40
+ export {
41
+ g as AccordionButton
42
+ };
@@ -0,0 +1,15 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ export declare function AccordionContent({ children, className }: AccordionContentProps): JSX.Element;
5
+
6
+ export declare namespace AccordionContent {
7
+ var displayName: string;
8
+ }
9
+
10
+ export declare type AccordionContentProps = PropsWithChildren<{
11
+ /** Additional classes to apply to the accordion button */
12
+ className?: string;
13
+ }>;
14
+
15
+ export { }
@@ -0,0 +1,14 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { DisclosurePanel as i } from "@headlessui/react";
3
+ import { useContext as c } from "react";
4
+ import m from "react-animate-height";
5
+ import { twMerge as a } from "tailwind-merge";
6
+ import { AccordionContext as s } from "./accordion-context.js";
7
+ function p({ children: r, className: e }) {
8
+ const o = c(s), n = a("tw:border-l-4 tw:border-yellow tw:py-3 tw:pl-5", e);
9
+ return /* @__PURE__ */ t(m, { height: o != null && o.isOpen ? "auto" : 0, duration: 200, easing: "ease-in-out", children: /* @__PURE__ */ t(i, { static: !0, className: `uofg-accordion-content ${n}`, children: r }) });
10
+ }
11
+ p.displayName = "AccordionContent";
12
+ export {
13
+ p as AccordionContent
14
+ };
@@ -0,0 +1,9 @@
1
+ import { Context } from 'react';
2
+
3
+ export declare const AccordionContext: Context<AccordionContextValue | undefined>;
4
+
5
+ export declare type AccordionContextValue = {
6
+ isOpen: boolean;
7
+ };
8
+
9
+ export { }
@@ -0,0 +1,5 @@
1
+ import { createContext as o } from "react";
2
+ const e = o(void 0);
3
+ export {
4
+ e as AccordionContext
5
+ };
@@ -0,0 +1,42 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /**
5
+ * The Accordion component is used for organizing information into collapsible sections which respond to user
6
+ * interaction.
7
+ */
8
+ export declare function Accordion({ children, className }: AccordionProps): JSX.Element;
9
+
10
+ export declare namespace Accordion {
11
+ var displayName: string;
12
+ }
13
+
14
+ /** The AccordionButton component is a button used to toggle the visibility of an accordion panel. */
15
+ export declare function AccordionButton({ children, className }: AccordionButtonProps): JSX.Element;
16
+
17
+ export declare namespace AccordionButton {
18
+ var displayName: string;
19
+ }
20
+
21
+ declare type AccordionButtonProps = PropsWithChildren<{
22
+ /** Additional classes to apply to the accordion button */
23
+ className?: string;
24
+ }>;
25
+
26
+ export declare function AccordionContent({ children, className }: AccordionContentProps): JSX.Element;
27
+
28
+ export declare namespace AccordionContent {
29
+ var displayName: string;
30
+ }
31
+
32
+ declare type AccordionContentProps = PropsWithChildren<{
33
+ /** Additional classes to apply to the accordion button */
34
+ className?: string;
35
+ }>;
36
+
37
+ export declare type AccordionProps = PropsWithChildren<{
38
+ /** Additional classes to apply to the accordion. */
39
+ className?: string;
40
+ }>;
41
+
42
+ export { }
@@ -0,0 +1,16 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Disclosure as n } from "@headlessui/react";
3
+ import { twMerge as e } from "tailwind-merge";
4
+ import { AccordionContext as m } from "./accordion-context.js";
5
+ import { AccordionButton as x } from "./accordion-button.js";
6
+ import { AccordionContent as h } from "./accordion-content.js";
7
+ function d({ children: r, className: c }) {
8
+ const t = e("tw:my-2 tw:[&_p:last-child]:mb-0", c);
9
+ return /* @__PURE__ */ o(n, { children: ({ open: i }) => /* @__PURE__ */ o("div", { className: `uofg-accordion ${t}`, children: /* @__PURE__ */ o(m.Provider, { value: { isOpen: i }, children: r }) }) });
10
+ }
11
+ d.displayName = "Accordion";
12
+ export {
13
+ d as Accordion,
14
+ x as AccordionButton,
15
+ h as AccordionContent
16
+ };
@@ -0,0 +1,16 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The AlertFooter component is used to display additional information or actions at the bottom of an alert. */
5
+ export declare function AlertFooter({ children, className }: AlertFooterProps): JSX.Element;
6
+
7
+ export declare namespace AlertFooter {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type AlertFooterProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the alert footer */
13
+ className?: string;
14
+ }>;
15
+
16
+ export { }
@@ -0,0 +1,10 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { twMerge as l } from "tailwind-merge";
3
+ function a({ children: t, className: r }) {
4
+ const e = l("tw:flex tw:bg-light-grey tw:px-4 tw:py-2", r);
5
+ return /* @__PURE__ */ o("div", { className: `uofg-alert-footer ${e}`, children: t });
6
+ }
7
+ a.displayName = "AlertFooter";
8
+ export {
9
+ a as AlertFooter
10
+ };
@@ -0,0 +1,16 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The AlertMessage component is used to display the main content of an alert. */
5
+ export declare function AlertMessage({ children, className }: AlertMessageProps): JSX.Element;
6
+
7
+ export declare namespace AlertMessage {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type AlertMessageProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the alert message */
13
+ className?: string;
14
+ }>;
15
+
16
+ export { }
@@ -0,0 +1,13 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { twMerge as o } from "tailwind-merge";
3
+ function a({ children: e, className: t }) {
4
+ const r = o(
5
+ "tw:flex tw:flex-col tw:border-x tw:border-b tw:border-light-grey tw:bg-white tw:px-4 tw:py-3",
6
+ t
7
+ );
8
+ return /* @__PURE__ */ s("div", { className: `uofg-alert-message ${r}`, children: e });
9
+ }
10
+ a.displayName = "AlertMessage";
11
+ export {
12
+ a as AlertMessage
13
+ };
@@ -0,0 +1,16 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The AlertSubtitle component is used to display a subtitle for an alert. */
5
+ export declare function AlertSubtitle({ children, className }: AlertSubtitleProps): JSX.Element;
6
+
7
+ export declare namespace AlertSubtitle {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type AlertSubtitleProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the alert subtitle */
13
+ className?: string;
14
+ }>;
15
+
16
+ export { }
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { twMerge as o } from "tailwind-merge";
3
+ function i({ children: t, className: e }) {
4
+ const l = o("tw:font-bold tw:mb-4 tw:text-xl", e);
5
+ return /* @__PURE__ */ r("span", { className: `uofg-alert-subtitle ${l}`, children: t });
6
+ }
7
+ i.displayName = "AlertSubtitle";
8
+ export {
9
+ i as AlertSubtitle
10
+ };
@@ -0,0 +1,22 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The AlertTitle component is used to display the title of an alert. */
5
+ export declare function AlertTitle({ color, className, children }: AlertTitleProps): JSX.Element;
6
+
7
+ export declare namespace AlertTitle {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type AlertTitleProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the alert title */
13
+ className?: string;
14
+ /**
15
+ * The background color of the alert title
16
+ *
17
+ * @default 'red'
18
+ */
19
+ color?: 'red' | 'yellow' | 'blue' | 'green' | 'light-grey' | 'dark-grey' | 'black' | 'white';
20
+ }>;
21
+
22
+ export { }
@@ -0,0 +1,50 @@
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { b as w } from "./regular-CYeGUuiO.js";
3
+ import { FontAwesomeIcon as s } from "@fortawesome/react-fontawesome";
4
+ import { twMerge as g } from "tailwind-merge";
5
+ import { tv as m } from "tailwind-variants";
6
+ function x({ color: e = "red", className: r, children: o }) {
7
+ const n = m({
8
+ slots: {
9
+ container: "tw:flex tw:items-center tw:gap-2 tw:p-4 tw:text-xl",
10
+ icon: "tw:h-[1.5em]",
11
+ text: ""
12
+ },
13
+ variants: {
14
+ color: {
15
+ red: {
16
+ container: "tw:bg-red tw:text-red-contrast"
17
+ },
18
+ yellow: {
19
+ container: "tw:bg-yellow tw:text-yellow-contrast"
20
+ },
21
+ blue: {
22
+ container: "tw:bg-blue tw:text-blue-contrast"
23
+ },
24
+ green: {
25
+ container: "tw:bg-green tw:text-green-contrast"
26
+ },
27
+ "light-grey": {
28
+ container: "tw:bg-light-grey tw:text-light-grey-contrast"
29
+ },
30
+ "dark-grey": {
31
+ container: "tw:bg-dark-grey tw:text-dark-grey-contrast"
32
+ },
33
+ black: {
34
+ container: "tw:bg-black tw:text-black-contrast"
35
+ },
36
+ white: {
37
+ container: "tw:bg-white tw:text-white-contrast"
38
+ }
39
+ }
40
+ }
41
+ }), { container: a, icon: i, text: c } = n({ color: e });
42
+ return /* @__PURE__ */ l("div", { className: `uofg-alert-title-container ${g(a(), r)}`, children: [
43
+ /* @__PURE__ */ t(s, { className: `uofg-alert-title-icon ${i()}`, icon: w }),
44
+ /* @__PURE__ */ t("div", { className: `uofg-alert-title ${c()}`, children: o })
45
+ ] });
46
+ }
47
+ x.displayName = "AlertTitle";
48
+ export {
49
+ x as AlertTitle
50
+ };
@@ -0,0 +1,70 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The Alert component is used to display critical feedback, such as warnings, errors, or informational messages. */
5
+ export declare function Alert({ children, className }: AlertProps): JSX.Element;
6
+
7
+ export declare namespace Alert {
8
+ var displayName: string;
9
+ }
10
+
11
+ /** The AlertFooter component is used to display additional information or actions at the bottom of an alert. */
12
+ export declare function AlertFooter({ children, className }: AlertFooterProps): JSX.Element;
13
+
14
+ export declare namespace AlertFooter {
15
+ var displayName: string;
16
+ }
17
+
18
+ declare type AlertFooterProps = PropsWithChildren<{
19
+ /** Additional classes to apply to the alert footer */
20
+ className?: string;
21
+ }>;
22
+
23
+ /** The AlertMessage component is used to display the main content of an alert. */
24
+ export declare function AlertMessage({ children, className }: AlertMessageProps): JSX.Element;
25
+
26
+ export declare namespace AlertMessage {
27
+ var displayName: string;
28
+ }
29
+
30
+ declare type AlertMessageProps = PropsWithChildren<{
31
+ /** Additional classes to apply to the alert message */
32
+ className?: string;
33
+ }>;
34
+
35
+ export declare type AlertProps = PropsWithChildren<{
36
+ /** Additional classes to apply to the alert */
37
+ className?: string;
38
+ }>;
39
+
40
+ /** The AlertSubtitle component is used to display a subtitle for an alert. */
41
+ export declare function AlertSubtitle({ children, className }: AlertSubtitleProps): JSX.Element;
42
+
43
+ export declare namespace AlertSubtitle {
44
+ var displayName: string;
45
+ }
46
+
47
+ declare type AlertSubtitleProps = PropsWithChildren<{
48
+ /** Additional classes to apply to the alert subtitle */
49
+ className?: string;
50
+ }>;
51
+
52
+ /** The AlertTitle component is used to display the title of an alert. */
53
+ export declare function AlertTitle({ color, className, children }: AlertTitleProps): JSX.Element;
54
+
55
+ export declare namespace AlertTitle {
56
+ var displayName: string;
57
+ }
58
+
59
+ declare type AlertTitleProps = PropsWithChildren<{
60
+ /** Additional classes to apply to the alert title */
61
+ className?: string;
62
+ /**
63
+ * The background color of the alert title
64
+ *
65
+ * @default 'red'
66
+ */
67
+ color?: 'red' | 'yellow' | 'blue' | 'green' | 'light-grey' | 'dark-grey' | 'black' | 'white';
68
+ }>;
69
+
70
+ export { }
package/dist/alert.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { twMerge as l } from "tailwind-merge";
3
+ import { AlertFooter as i } from "./alert-footer.js";
4
+ import { AlertMessage as A } from "./alert-message.js";
5
+ import { AlertSubtitle as n } from "./alert-subtitle.js";
6
+ import { AlertTitle as g } from "./alert-title.js";
7
+ function f({ children: e, className: r }) {
8
+ const t = l("tw:flex tw:flex-col", r);
9
+ return /* @__PURE__ */ o("div", { className: `uofg-alert ${t}`, children: e });
10
+ }
11
+ f.displayName = "Alert";
12
+ export {
13
+ f as Alert,
14
+ i as AlertFooter,
15
+ A as AlertMessage,
16
+ n as AlertSubtitle,
17
+ g as AlertTitle
18
+ };
@@ -0,0 +1,22 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ /** The Blockquote component is used to highlight a quote or excerpt from another source. */
5
+ export declare function Blockquote({ className, children, color }: BlockquoteProps): JSX.Element;
6
+
7
+ export declare namespace Blockquote {
8
+ var displayName: string;
9
+ }
10
+
11
+ export declare type BlockquoteProps = PropsWithChildren<{
12
+ /** Additional classes to apply to the blockquote */
13
+ className?: string;
14
+ /**
15
+ * The color of the blockquote quotation marks
16
+ *
17
+ * @default 'yellow'
18
+ */
19
+ color?: 'yellow' | 'red' | 'blue';
20
+ }>;
21
+
22
+ export { }
@@ -0,0 +1,43 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { f as a, a as m } from "./solid-DM6GVhkF.js";
3
+ import { FontAwesomeIcon as e } from "@fortawesome/react-fontawesome";
4
+ import { twMerge as u } from "tailwind-merge";
5
+ import { tv as f } from "tailwind-variants";
6
+ function w({ className: l, children: c, color: i = "yellow" }) {
7
+ const s = f({
8
+ slots: {
9
+ base: u("tw:font-light tw:block tw:w-full tw:text-center tw:text-3xl tw:italic", l),
10
+ icons: "tw:inline-block tw:h-[1em]"
11
+ },
12
+ variants: {
13
+ color: {
14
+ red: {
15
+ icons: "tw:text-red"
16
+ },
17
+ yellow: {
18
+ icons: "tw:text-yellow"
19
+ },
20
+ blue: {
21
+ icons: "tw:text-blue"
22
+ }
23
+ },
24
+ direction: {
25
+ left: {
26
+ icons: "tw:mr-[0.3em]"
27
+ },
28
+ right: {
29
+ icons: "tw:ml-[0.25em]"
30
+ }
31
+ }
32
+ }
33
+ }), { base: n, icons: o } = s({ color: i });
34
+ return /* @__PURE__ */ r("blockquote", { className: `uofg-blockquote ${n()}`, children: [
35
+ /* @__PURE__ */ t(e, { icon: a, className: `uofg-blockquote-left-quote ${o({ direction: "left" })}` }),
36
+ /* @__PURE__ */ t("span", { className: "uofg-blockquote-content", children: c }),
37
+ /* @__PURE__ */ t(e, { icon: m, className: `uofg-blockquote-right-quote ${o({ direction: "right" })}` })
38
+ ] });
39
+ }
40
+ w.displayName = "Blockquote";
41
+ export {
42
+ w as Blockquote
43
+ };
@@ -0,0 +1,32 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ElementType } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { PropsWithChildren } from 'react';
5
+
6
+ declare type BreadcrumbElementType = ElementType<{
7
+ href?: string;
8
+ }, 'a'>;
9
+
10
+ export declare function BreadcrumbHome<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement>({ href, children, // eslint-disable-line @typescript-eslint/no-unused-vars
11
+ className, ...rest }: BreadcrumbProps<T>): JSX.Element;
12
+
13
+ export declare namespace BreadcrumbHome {
14
+ var displayName: string;
15
+ }
16
+
17
+ declare type BreadcrumbProps<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement> = PropsWithChildren<{
18
+ /**
19
+ * The element to render the breadcrumb as
20
+ *
21
+ * @default 'a'
22
+ */
23
+ as?: T;
24
+ /** The URL to link to */
25
+ href?: string;
26
+ /** Additional classes to apply to the breadcrumb */
27
+ className?: string;
28
+ } & ComponentPropsWithoutRef<T>>;
29
+
30
+ declare const defaultBreadcrumbElement = "a";
31
+
32
+ export { }
@@ -0,0 +1,21 @@
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import { c as n } from "./regular-CYeGUuiO.js";
3
+ import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
4
+ import { twJoin as s } from "tailwind-merge";
5
+ function t({
6
+ href: r = "/",
7
+ children: l,
8
+ // eslint-disable-line @typescript-eslint/no-unused-vars
9
+ className: e,
10
+ ...m
11
+ }) {
12
+ const c = s("tw:h-[1em] tw:fill-black");
13
+ return /* @__PURE__ */ o("li", { children: /* @__PURE__ */ i("a", { ...m, href: r, className: e, children: [
14
+ /* @__PURE__ */ o(a, { icon: n, className: c }),
15
+ /* @__PURE__ */ o("span", { className: "tw:sr-only", children: "U of G Homepage" })
16
+ ] }) });
17
+ }
18
+ t.displayName = "BreadcrumbHome";
19
+ export {
20
+ t as BreadcrumbHome
21
+ };
@@ -0,0 +1,32 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ElementType } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { PropsWithChildren } from 'react';
5
+
6
+ /** The Breadcrumb component is used to display a single breadcrumb in a Breadcrumbs component. */
7
+ export declare function Breadcrumb<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement>({ as, children, className, href, ...rest }: BreadcrumbProps<T>): JSX.Element;
8
+
9
+ export declare namespace Breadcrumb {
10
+ var displayName: string;
11
+ }
12
+
13
+ export declare type BreadcrumbElementType = ElementType<{
14
+ href?: string;
15
+ }, 'a'>;
16
+
17
+ export declare type BreadcrumbProps<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement> = PropsWithChildren<{
18
+ /**
19
+ * The element to render the breadcrumb as
20
+ *
21
+ * @default 'a'
22
+ */
23
+ as?: T;
24
+ /** The URL to link to */
25
+ href?: string;
26
+ /** Additional classes to apply to the breadcrumb */
27
+ className?: string;
28
+ } & ComponentPropsWithoutRef<T>>;
29
+
30
+ export declare const defaultBreadcrumbElement = "a";
31
+
32
+ export { }
@@ -0,0 +1,30 @@
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
+ import { d as p } from "./regular-CYeGUuiO.js";
3
+ import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
4
+ import { twMerge as u } from "tailwind-merge";
5
+ import { tv as f } from "tailwind-variants";
6
+ const b = "a";
7
+ function x({
8
+ as: r,
9
+ children: o,
10
+ className: e,
11
+ href: n,
12
+ ...a
13
+ }) {
14
+ const c = r ?? b, i = f({
15
+ slots: {
16
+ container: "tw:flex tw:items-center tw:gap-2",
17
+ icon: "tw:h-[.75em]",
18
+ link: "tw:underline tw:decoration-transparent tw:decoration-1 tw:transition-colors tw:hocus-visible:decoration-black"
19
+ }
20
+ }), { container: s, icon: m, link: l } = i();
21
+ return /* @__PURE__ */ d("li", { className: s(), children: [
22
+ /* @__PURE__ */ t(w, { icon: p, className: m() }),
23
+ n ? /* @__PURE__ */ t(c, { ...a, className: u(l(), e), href: n, children: o }) : /* @__PURE__ */ t("span", { children: o })
24
+ ] });
25
+ }
26
+ x.displayName = "Breadcrumb";
27
+ export {
28
+ x as Breadcrumb,
29
+ b as defaultBreadcrumbElement
30
+ };
@@ -0,0 +1,54 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ElementType } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { PropsWithChildren } from 'react';
5
+
6
+ /** The Breadcrumb component is used to display a single breadcrumb in a Breadcrumbs component. */
7
+ export declare function Breadcrumb<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement>({ as, children, className, href, ...rest }: BreadcrumbProps<T>): JSX.Element;
8
+
9
+ export declare namespace Breadcrumb {
10
+ var displayName: string;
11
+ }
12
+
13
+ declare type BreadcrumbElementType = ElementType<{
14
+ href?: string;
15
+ }, 'a'>;
16
+
17
+ export declare function BreadcrumbHome<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement>({ href, children, // eslint-disable-line @typescript-eslint/no-unused-vars
18
+ className, ...rest }: BreadcrumbProps<T>): JSX.Element;
19
+
20
+ export declare namespace BreadcrumbHome {
21
+ var displayName: string;
22
+ }
23
+
24
+ declare type BreadcrumbProps<T extends BreadcrumbElementType = typeof defaultBreadcrumbElement> = PropsWithChildren<{
25
+ /**
26
+ * The element to render the breadcrumb as
27
+ *
28
+ * @default 'a'
29
+ */
30
+ as?: T;
31
+ /** The URL to link to */
32
+ href?: string;
33
+ /** Additional classes to apply to the breadcrumb */
34
+ className?: string;
35
+ } & ComponentPropsWithoutRef<T>>;
36
+
37
+ /**
38
+ * The Breadcrumbs component is a navigational aid that displays a trail of links representing the user's path within a
39
+ * website or application.
40
+ */
41
+ export declare function Breadcrumbs({ className, children }: BreadcrumbsProps): JSX.Element;
42
+
43
+ export declare namespace Breadcrumbs {
44
+ var displayName: string;
45
+ }
46
+
47
+ export declare type BreadcrumbsProps = PropsWithChildren<{
48
+ /** Additional classes to apply to the breadcrumbs */
49
+ className?: string;
50
+ }>;
51
+
52
+ declare const defaultBreadcrumbElement = "a";
53
+
54
+ export { }