@uoguelph/react-components 1.0.0-rc.0 → 1.0.0-rc.10

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 (193) hide show
  1. package/README.md +3 -0
  2. package/dist/accordion-button.d.ts +2 -16
  3. package/dist/accordion-button.js +20 -20
  4. package/dist/accordion-content.d.ts +2 -15
  5. package/dist/accordion-content.js +4 -4
  6. package/dist/accordion-context.d.ts +2 -9
  7. package/dist/accordion.d.ts +2 -42
  8. package/dist/accordion.js +5 -5
  9. package/dist/alert-footer.d.ts +2 -16
  10. package/dist/alert-footer.js +7 -7
  11. package/dist/alert-message.d.ts +2 -16
  12. package/dist/alert-message.js +9 -9
  13. package/dist/alert-subtitle.d.ts +2 -16
  14. package/dist/alert-subtitle.js +7 -7
  15. package/dist/alert-title.d.ts +2 -22
  16. package/dist/alert-title.js +21 -21
  17. package/dist/alert.d.ts +2 -70
  18. package/dist/alert.js +7 -7
  19. package/dist/blockquote-author.d.ts +2 -0
  20. package/dist/blockquote-author.js +30 -0
  21. package/dist/blockquote-content.d.ts +2 -0
  22. package/dist/blockquote-content.js +54 -0
  23. package/dist/blockquote-context.d.ts +2 -0
  24. package/dist/blockquote-context.js +5 -0
  25. package/dist/blockquote.d.ts +2 -22
  26. package/dist/blockquote.js +11 -40
  27. package/dist/breadcrumb-home.d.ts +2 -32
  28. package/dist/breadcrumb-home.js +7 -7
  29. package/dist/breadcrumb.d.ts +2 -32
  30. package/dist/breadcrumb.js +16 -16
  31. package/dist/breadcrumbs.d.ts +2 -54
  32. package/dist/breadcrumbs.js +11 -11
  33. package/dist/button.d.ts +2 -51
  34. package/dist/button.js +63 -63
  35. package/dist/card-content.d.ts +2 -15
  36. package/dist/card-content.js +10 -10
  37. package/dist/card-context.d.ts +2 -10
  38. package/dist/card-footer.d.ts +2 -16
  39. package/dist/card-footer.js +11 -11
  40. package/dist/card-image.d.ts +2 -40
  41. package/dist/card-image.js +15 -15
  42. package/dist/card-title.d.ts +2 -16
  43. package/dist/card-title.js +5 -5
  44. package/dist/card.d.ts +2 -105
  45. package/dist/card.js +20 -20
  46. package/dist/carousel.d.ts +2 -25
  47. package/dist/carousel.js +44 -44
  48. package/dist/checkbox.d.ts +2 -39
  49. package/dist/checkbox.js +52 -52
  50. package/dist/components/accordion/accordion-button.d.ts +10 -0
  51. package/dist/components/accordion/accordion-content.d.ts +9 -0
  52. package/dist/components/accordion/accordion-context.d.ts +4 -0
  53. package/dist/components/accordion/accordion.d.ts +15 -0
  54. package/dist/components/alert/alert-footer.d.ts +10 -0
  55. package/dist/components/alert/alert-message.d.ts +10 -0
  56. package/dist/components/alert/alert-subtitle.d.ts +10 -0
  57. package/dist/components/alert/alert-title.d.ts +16 -0
  58. package/dist/components/alert/alert.d.ts +15 -0
  59. package/dist/components/blockquote/blockquote-author.d.ts +7 -0
  60. package/dist/components/blockquote/blockquote-content.d.ts +10 -0
  61. package/dist/components/blockquote/blockquote-context.d.ts +5 -0
  62. package/dist/components/blockquote/blockquote.d.ts +18 -0
  63. package/dist/components/breadcrumbs/breadcrumb-home.d.ts +6 -0
  64. package/dist/components/breadcrumbs/breadcrumb.d.ts +22 -0
  65. package/dist/components/breadcrumbs/breadcrumbs.d.ts +16 -0
  66. package/dist/components/button/button.d.ts +40 -0
  67. package/dist/components/card/card-content.d.ts +9 -0
  68. package/dist/components/card/card-context.d.ts +5 -0
  69. package/dist/components/card/card-footer.d.ts +10 -0
  70. package/dist/components/card/card-image.d.ts +32 -0
  71. package/dist/components/card/card-title.d.ts +10 -0
  72. package/dist/components/card/card.d.ts +30 -0
  73. package/dist/components/carousel/carousel.d.ts +20 -0
  74. package/dist/components/checkbox/checkbox.d.ts +32 -0
  75. package/dist/components/contact/contact-email.d.ts +11 -0
  76. package/dist/components/contact/contact-name.d.ts +10 -0
  77. package/dist/components/contact/contact-phone.d.ts +13 -0
  78. package/dist/components/contact/contact-title.d.ts +10 -0
  79. package/dist/components/contact/contact.d.ts +18 -0
  80. package/dist/components/container/container.d.ts +22 -0
  81. package/dist/components/divider/divider.d.ts +2 -0
  82. package/dist/components/embedded-video/embedded-video-context.d.ts +5 -0
  83. package/dist/components/embedded-video/embedded-video-modal-button.d.ts +13 -0
  84. package/dist/components/embedded-video/embedded-video.d.ts +25 -0
  85. package/dist/components/hero/hero-caption.d.ts +9 -0
  86. package/dist/components/hero/hero-content.d.ts +14 -0
  87. package/dist/components/hero/hero-context.d.ts +4 -0
  88. package/dist/components/hero/hero-link.d.ts +21 -0
  89. package/dist/components/hero/hero-title.d.ts +17 -0
  90. package/dist/components/hero/hero-video.d.ts +16 -0
  91. package/dist/components/hero/hero.d.ts +48 -0
  92. package/dist/components/image-overlay/image-overlay.d.ts +57 -0
  93. package/dist/components/info/info.d.ts +13 -0
  94. package/dist/components/link/link.d.ts +19 -0
  95. package/dist/components/link-carousel/link-carousel-content.d.ts +6 -0
  96. package/dist/components/link-carousel/link-carousel-context.d.ts +11 -0
  97. package/dist/components/link-carousel/link-carousel-item.d.ts +9 -0
  98. package/dist/components/link-carousel/link-carousel-link.d.ts +25 -0
  99. package/dist/components/link-carousel/link-carousel-links.d.ts +6 -0
  100. package/dist/components/link-carousel/link-carousel.d.ts +28 -0
  101. package/dist/components/list/list-context.d.ts +5 -0
  102. package/dist/components/list/list-item.d.ts +11 -0
  103. package/dist/components/list/list.d.ts +20 -0
  104. package/dist/components/loading-indicator/loading-indicator.d.ts +18 -0
  105. package/dist/components/media-caption/media-caption.d.ts +25 -0
  106. package/dist/components/modal/modal.d.ts +12 -0
  107. package/dist/components/navigation/navigation-link.d.ts +20 -0
  108. package/dist/components/navigation/navigation.d.ts +10 -0
  109. package/dist/components/radio-group/radio-context.d.ts +4 -0
  110. package/dist/components/radio-group/radio-group.d.ts +14 -0
  111. package/dist/components/radio-group/radio.d.ts +8 -0
  112. package/dist/components/text-input/text-input.d.ts +12 -0
  113. package/dist/components/typography/typography.d.ts +21 -0
  114. package/dist/contact-email.d.ts +2 -17
  115. package/dist/contact-email.js +13 -13
  116. package/dist/contact-name.d.ts +2 -16
  117. package/dist/contact-name.js +3 -3
  118. package/dist/contact-phone.d.ts +2 -19
  119. package/dist/contact-phone.js +14 -14
  120. package/dist/contact-title.d.ts +2 -16
  121. package/dist/contact-title.js +1 -1
  122. package/dist/contact.d.ts +2 -73
  123. package/dist/contact.js +9 -9
  124. package/dist/container.d.ts +2 -32
  125. package/dist/container.js +9 -9
  126. package/dist/divider.d.ts +2 -6
  127. package/dist/divider.js +18 -18
  128. package/dist/embedded-video-context.d.ts +2 -10
  129. package/dist/embedded-video-modal-button.d.ts +2 -54
  130. package/dist/embedded-video-modal-button.js +14 -14
  131. package/dist/embedded-video.d.ts +2 -81
  132. package/dist/embedded-video.js +34 -34
  133. package/dist/hero-caption.d.ts +2 -15
  134. package/dist/hero-caption.js +1 -1
  135. package/dist/hero-content.d.ts +2 -20
  136. package/dist/hero-content.js +21 -21
  137. package/dist/hero-context.d.ts +2 -9
  138. package/dist/hero-link.d.ts +2 -29
  139. package/dist/hero-link.js +5 -5
  140. package/dist/hero-title.d.ts +2 -24
  141. package/dist/hero-title.js +11 -11
  142. package/dist/hero-video.d.ts +2 -22
  143. package/dist/hero-video.js +14 -14
  144. package/dist/hero.d.ts +2 -141
  145. package/dist/hero.js +23 -23
  146. package/dist/image-overlay.d.ts +2 -66
  147. package/dist/image-overlay.js +47 -47
  148. package/dist/index.css +1 -1
  149. package/dist/index.d.ts +3 -11
  150. package/dist/info.d.ts +2 -19
  151. package/dist/info.js +16 -16
  152. package/dist/link-carousel-content.d.ts +2 -11
  153. package/dist/link-carousel-content.js +11 -11
  154. package/dist/link-carousel-context.d.ts +2 -30
  155. package/dist/link-carousel-item.d.ts +2 -15
  156. package/dist/link-carousel-item.js +14 -14
  157. package/dist/link-carousel-link.d.ts +2 -34
  158. package/dist/link-carousel-link.js +16 -16
  159. package/dist/link-carousel-links.d.ts +2 -11
  160. package/dist/link-carousel-links.js +14 -14
  161. package/dist/link-carousel.d.ts +2 -83
  162. package/dist/link-carousel.js +23 -23
  163. package/dist/link.d.ts +2 -30
  164. package/dist/link.js +18 -18
  165. package/dist/list-context.d.ts +2 -0
  166. package/dist/list-context.js +8 -0
  167. package/dist/list-item.d.ts +2 -17
  168. package/dist/list-item.js +6 -6
  169. package/dist/list.d.ts +2 -39
  170. package/dist/list.js +63 -21
  171. package/dist/loading-indicator.d.ts +2 -23
  172. package/dist/loading-indicator.js +48 -36
  173. package/dist/media-caption.d.ts +2 -110
  174. package/dist/media-caption.js +44 -44
  175. package/dist/modal.d.ts +2 -18
  176. package/dist/modal.js +19 -19
  177. package/dist/navigation-link.d.ts +2 -29
  178. package/dist/navigation-link.js +20 -20
  179. package/dist/navigation.d.ts +2 -40
  180. package/dist/navigation.js +11 -11
  181. package/dist/radio-context.d.ts +2 -9
  182. package/dist/radio-group.d.ts +2 -28
  183. package/dist/radio-group.js +10 -10
  184. package/dist/radio.d.ts +2 -13
  185. package/dist/radio.js +22 -22
  186. package/dist/{regular-CYeGUuiO.js → regular-BRNZck7j.js} +22 -22
  187. package/dist/text-input.d.ts +2 -0
  188. package/dist/text-input.js +66 -0
  189. package/dist/typography.d.ts +2 -29
  190. package/dist/typography.js +22 -22
  191. package/dist/utils/math-utils.d.ts +4 -0
  192. package/dist/utils/string-utils.d.ts +1 -0
  193. package/package.json +3 -3
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
1
  # @uoguelph/react-components
2
2
 
3
3
  A collection of components for use in React projects following University of Guelph brand guidelines.
4
+
5
+ For more information,
6
+ please read the [Documentation](https://uofg-components.netlify.app/?path=/docs/react-components-getting-started--docs) here.
@@ -1,16 +1,2 @@
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 { }
1
+ export * from './components/accordion/accordion-button'
2
+ export {}
@@ -1,42 +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";
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { f as g, a as c } from "./regular-BRNZck7j.js";
3
+ import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
4
4
  import { DisclosureButton as a } from "@headlessui/react";
5
5
  import { useContext as b } from "react";
6
6
  import { twMerge as f } from "tailwind-merge";
7
7
  import { tv as m } from "tailwind-variants";
8
8
  import { AccordionContext as p } from "./accordion-context.js";
9
- function g({ children: n, className: e }) {
10
- const t = b(p), i = m({
9
+ function x({ children: u, className: n }) {
10
+ const o = b(p), e = m({
11
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"
12
+ button: "uog:group uog:mb-1 uog:inline-flex uog:w-full uog:cursor-pointer uog:items-center uog:justify-between uog:gap-2 uog:p-2.5 uog:px-5 uog:text-left uog:text-xl uog:transition-colors uog:focus:outline-none uog:focus-visible:ring-2 uog:focus-visible:ring-blue uog:focus-visible:ring-offset-2 uog:hocus-visible:bg-blue uog:hocus-visible:text-blue-contrast",
13
+ icon: "uog:h-[1em] uog:text-blue-on-light uog:group-hocus-visible:text-blue-contrast uog:transition"
14
14
  },
15
15
  variants: {
16
16
  open: {
17
17
  true: {
18
- button: "tw:bg-blue tw:text-blue-contrast",
19
- icon: "tw:text-blue-contrast"
18
+ button: "uog:bg-blue uog:text-blue-contrast",
19
+ icon: "uog:text-blue-contrast"
20
20
  },
21
21
  false: {
22
- icon: "tw:rotate-90",
23
- button: "tw:bg-light-grey-bg tw:text-blue-on-light"
22
+ icon: "uog:rotate-90",
23
+ button: "uog:bg-grey-light-bg uog:text-blue-on-light"
24
24
  }
25
25
  }
26
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,
27
+ }), { button: i, icon: s } = e({ open: o == null ? void 0 : o.isOpen });
28
+ return /* @__PURE__ */ r(a, { className: `uofg-accordion-button ${f(n, i())}`, children: [
29
+ /* @__PURE__ */ t("span", { className: "uofg-accordion-button-content", children: u }),
30
+ /* @__PURE__ */ t(
31
+ l,
32
32
  {
33
- icon: t != null && t.isOpen ? u : l,
34
- className: `uofg-accordion-button-icon ${r()}`
33
+ icon: o != null && o.isOpen ? g : c,
34
+ className: `uofg-accordion-button-icon ${s()}`
35
35
  }
36
36
  )
37
37
  ] });
38
38
  }
39
- g.displayName = "AccordionButton";
39
+ x.displayName = "AccordionButton";
40
40
  export {
41
- g as AccordionButton
41
+ x as AccordionButton
42
42
  };
@@ -1,15 +1,2 @@
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 { }
1
+ export * from './components/accordion/accordion-content'
2
+ export {}
@@ -4,11 +4,11 @@ import { useContext as c } from "react";
4
4
  import m from "react-animate-height";
5
5
  import { twMerge as a } from "tailwind-merge";
6
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);
7
+ function u({ children: r, className: e }) {
8
+ const o = c(s), n = a("uog:border-l-4 uog:border-yellow uog:py-3 uog:pl-5", e);
9
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
10
  }
11
- p.displayName = "AccordionContent";
11
+ u.displayName = "AccordionContent";
12
12
  export {
13
- p as AccordionContent
13
+ u as AccordionContent
14
14
  };
@@ -1,9 +1,2 @@
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 { }
1
+ export * from './components/accordion/accordion-context'
2
+ export {}
@@ -1,42 +1,2 @@
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 { }
1
+ export * from './components/accordion/accordion'
2
+ export {}
package/dist/accordion.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { Disclosure as n } from "@headlessui/react";
2
+ import { Disclosure as t } from "@headlessui/react";
3
3
  import { twMerge as e } from "tailwind-merge";
4
4
  import { AccordionContext as m } from "./accordion-context.js";
5
5
  import { AccordionButton as x } from "./accordion-button.js";
6
- import { AccordionContent as h } from "./accordion-content.js";
6
+ import { AccordionContent as g } from "./accordion-content.js";
7
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 }) }) });
8
+ const i = e("uog:my-2 uog:[&_p:last-child]:mb-0", c);
9
+ return /* @__PURE__ */ o(t, { children: ({ open: n }) => /* @__PURE__ */ o("div", { className: `uofg-accordion ${i}`, children: /* @__PURE__ */ o(m.Provider, { value: { isOpen: n }, children: r }) }) });
10
10
  }
11
11
  d.displayName = "Accordion";
12
12
  export {
13
13
  d as Accordion,
14
14
  x as AccordionButton,
15
- h as AccordionContent
15
+ g as AccordionContent
16
16
  };
@@ -1,16 +1,2 @@
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 { }
1
+ export * from './components/alert/alert-footer'
2
+ export {}
@@ -1,10 +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 });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { twMerge as g } from "tailwind-merge";
3
+ function l({ children: o, className: r }) {
4
+ const e = g("uog:flex uog:bg-grey-light uog:px-4 uog:py-2", r);
5
+ return /* @__PURE__ */ t("div", { className: `uofg-alert-footer ${e}`, children: o });
6
6
  }
7
- a.displayName = "AlertFooter";
7
+ l.displayName = "AlertFooter";
8
8
  export {
9
- a as AlertFooter
9
+ l as AlertFooter
10
10
  };
@@ -1,16 +1,2 @@
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 { }
1
+ export * from './components/alert/alert-message'
2
+ export {}
@@ -1,13 +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
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { twMerge as s } from "tailwind-merge";
3
+ function t({ children: e, className: o }) {
4
+ const r = s(
5
+ "uog:flex uog:flex-col uog:border-x uog:border-b uog:border-grey-light uog:bg-white uog:px-4 uog:py-3",
6
+ o
7
7
  );
8
- return /* @__PURE__ */ s("div", { className: `uofg-alert-message ${r}`, children: e });
8
+ return /* @__PURE__ */ g("div", { className: `uofg-alert-message ${r}`, children: e });
9
9
  }
10
- a.displayName = "AlertMessage";
10
+ t.displayName = "AlertMessage";
11
11
  export {
12
- a as AlertMessage
12
+ t as AlertMessage
13
13
  };
@@ -1,16 +1,2 @@
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 { }
1
+ export * from './components/alert/alert-subtitle'
2
+ export {}
@@ -1,10 +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 });
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { twMerge as r } from "tailwind-merge";
3
+ function u({ children: t, className: e }) {
4
+ const o = r("uog:font-bold uog:mb-4 uog:text-xl", e);
5
+ return /* @__PURE__ */ l("span", { className: `uofg-alert-subtitle ${o}`, children: t });
6
6
  }
7
- i.displayName = "AlertSubtitle";
7
+ u.displayName = "AlertSubtitle";
8
8
  export {
9
- i as AlertSubtitle
9
+ u as AlertSubtitle
10
10
  };
@@ -1,22 +1,2 @@
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 { }
1
+ export * from './components/alert/alert-title'
2
+ export {}
@@ -1,47 +1,47 @@
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";
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { b as l } from "./regular-BRNZck7j.js";
3
+ import { FontAwesomeIcon as u } from "@fortawesome/react-fontawesome";
4
+ import { twMerge as s } from "tailwind-merge";
5
5
  import { tv as m } from "tailwind-variants";
6
- function x({ color: e = "red", className: r, children: o }) {
6
+ function x({ color: e = "red", className: o, children: r }) {
7
7
  const n = m({
8
8
  slots: {
9
- container: "tw:flex tw:items-center tw:gap-2 tw:p-4 tw:text-xl",
10
- icon: "tw:h-[1.5em]",
9
+ container: "uog:flex uog:items-center uog:gap-2 uog:p-4 uog:text-xl",
10
+ icon: "uog:h-[1.5em]",
11
11
  text: ""
12
12
  },
13
13
  variants: {
14
14
  color: {
15
15
  red: {
16
- container: "tw:bg-red tw:text-red-contrast"
16
+ container: "uog:bg-red uog:text-red-contrast"
17
17
  },
18
18
  yellow: {
19
- container: "tw:bg-yellow tw:text-yellow-contrast"
19
+ container: "uog:bg-yellow uog:text-yellow-contrast"
20
20
  },
21
21
  blue: {
22
- container: "tw:bg-blue tw:text-blue-contrast"
22
+ container: "uog:bg-blue uog:text-blue-contrast"
23
23
  },
24
24
  green: {
25
- container: "tw:bg-green tw:text-green-contrast"
25
+ container: "uog:bg-green uog:text-green-contrast"
26
26
  },
27
- "light-grey": {
28
- container: "tw:bg-light-grey tw:text-light-grey-contrast"
27
+ "grey-light": {
28
+ container: "uog:bg-grey-light uog:text-grey-light-contrast"
29
29
  },
30
- "dark-grey": {
31
- container: "tw:bg-dark-grey tw:text-dark-grey-contrast"
30
+ "grey-dark": {
31
+ container: "uog:bg-grey-dark uog:text-grey-dark-contrast"
32
32
  },
33
33
  black: {
34
- container: "tw:bg-black tw:text-black-contrast"
34
+ container: "uog:bg-black uog:text-black-contrast"
35
35
  },
36
36
  white: {
37
- container: "tw:bg-white tw:text-white-contrast"
37
+ container: "uog:bg-white uog:text-white-contrast"
38
38
  }
39
39
  }
40
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 })
41
+ }), { container: g, icon: a, text: i } = n({ color: e });
42
+ return /* @__PURE__ */ c("div", { className: `uofg-alert-title-container ${s(g(), o)}`, children: [
43
+ /* @__PURE__ */ t(u, { className: `uofg-alert-title-icon ${a()}`, icon: l }),
44
+ /* @__PURE__ */ t("div", { className: `uofg-alert-title ${i()}`, children: r })
45
45
  ] });
46
46
  }
47
47
  x.displayName = "AlertTitle";
package/dist/alert.d.ts CHANGED
@@ -1,70 +1,2 @@
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 { }
1
+ export * from './components/alert/alert'
2
+ export {}
package/dist/alert.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { twMerge as l } from "tailwind-merge";
3
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";
4
+ import { AlertMessage as u } from "./alert-message.js";
5
+ import { AlertSubtitle as g } from "./alert-subtitle.js";
6
+ import { AlertTitle as n } from "./alert-title.js";
7
7
  function f({ children: e, className: r }) {
8
- const t = l("tw:flex tw:flex-col", r);
8
+ const t = l("uog:flex uog:flex-col", r);
9
9
  return /* @__PURE__ */ o("div", { className: `uofg-alert ${t}`, children: e });
10
10
  }
11
11
  f.displayName = "Alert";
12
12
  export {
13
13
  f as Alert,
14
14
  i as AlertFooter,
15
- A as AlertMessage,
16
- n as AlertSubtitle,
17
- g as AlertTitle
15
+ u as AlertMessage,
16
+ g as AlertSubtitle,
17
+ n as AlertTitle
18
18
  };
@@ -0,0 +1,2 @@
1
+ export * from './components/blockquote/blockquote-author'
2
+ export {}
@@ -0,0 +1,30 @@
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { useContext as i } from "react";
3
+ import { tv as g } from "tailwind-variants";
4
+ import { BlockquoteContext as n } from "./blockquote-context.js";
5
+ function h({ name: l, title: e }) {
6
+ const o = i(n), s = g({
7
+ slots: {
8
+ base: "uog:border-l-3 uog:pl-4 uog:flex uog:flex-col uog:gap-1 uog:items-start uog:font-light",
9
+ name: "uog:text-base uog:not-italic uog:font-bold",
10
+ title: "uog:text-base uog:italic"
11
+ },
12
+ variants: {
13
+ color: {
14
+ yellow: {
15
+ base: "uog:border-yellow"
16
+ },
17
+ blue: {
18
+ base: "uog:border-blue"
19
+ }
20
+ }
21
+ }
22
+ }), { base: u, name: a, title: r } = s({ color: (o == null ? void 0 : o.color) ?? "yellow" });
23
+ return /* @__PURE__ */ c("div", { className: `uofg-blockquote-author ${u()}`, children: [
24
+ /* @__PURE__ */ t("cite", { className: `uofg-blockquote-author-name ${a()}`, children: l }),
25
+ e && /* @__PURE__ */ t("span", { className: `uofg-blockquote-author-title ${r()}`, children: e })
26
+ ] });
27
+ }
28
+ export {
29
+ h as BlockquoteAuthor
30
+ };
@@ -0,0 +1,2 @@
1
+ export * from './components/blockquote/blockquote-content'
2
+ export {}
@@ -0,0 +1,54 @@
1
+ import { jsxs as u, jsx as t } from "react/jsx-runtime";
2
+ import { f as r, a as m } from "./solid-DM6GVhkF.js";
3
+ import { FontAwesomeIcon as c } from "@fortawesome/react-fontawesome";
4
+ import { useContext as a } from "react";
5
+ import { twMerge as g } from "tailwind-merge";
6
+ import { tv as f } from "tailwind-variants";
7
+ import { BlockquoteContext as b } from "./blockquote-context.js";
8
+ function k({ className: l, children: n }) {
9
+ const o = a(b), i = f({
10
+ slots: {
11
+ base: "uog:font-light uog:block uog:w-full uog:text-center uog:text-3xl uog:italic",
12
+ icons: "uog:inline-block uog:h-[1em]"
13
+ },
14
+ variants: {
15
+ color: {
16
+ yellow: {
17
+ icons: "uog:text-yellow"
18
+ },
19
+ blue: {
20
+ icons: "uog:text-blue"
21
+ }
22
+ },
23
+ direction: {
24
+ left: {
25
+ icons: "uog:mr-[0.3em]"
26
+ },
27
+ right: {
28
+ icons: "uog:ml-[0.25em]"
29
+ }
30
+ }
31
+ }
32
+ }), { base: s, icons: e } = i({ color: (o == null ? void 0 : o.color) ?? "yellow" });
33
+ return /* @__PURE__ */ u("blockquote", { className: `uofg-blockquote-content ${g(s(), l)}`, children: [
34
+ /* @__PURE__ */ t(
35
+ c,
36
+ {
37
+ icon: r,
38
+ className: `uofg-blockquote-content-left-quote ${e({ direction: "left" })}`
39
+ }
40
+ ),
41
+ /* @__PURE__ */ t("span", { className: "uofg-blockquote-content-text", children: n }),
42
+ /* @__PURE__ */ t(
43
+ c,
44
+ {
45
+ icon: m,
46
+ className: `uofg-blockquote-content-right-quote ${e({ direction: "right" })}`
47
+ }
48
+ )
49
+ ] });
50
+ }
51
+ k.displayName = "BlockquoteContent";
52
+ export {
53
+ k as BlockquoteContent
54
+ };
@@ -0,0 +1,2 @@
1
+ export * from './components/blockquote/blockquote-context'
2
+ export {}
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t(null);
3
+ export {
4
+ e as BlockquoteContext
5
+ };