@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.
- package/README.md +3 -0
- package/dist/accordion-button.d.ts +2 -16
- package/dist/accordion-button.js +20 -20
- package/dist/accordion-content.d.ts +2 -15
- package/dist/accordion-content.js +4 -4
- package/dist/accordion-context.d.ts +2 -9
- package/dist/accordion.d.ts +2 -42
- package/dist/accordion.js +5 -5
- package/dist/alert-footer.d.ts +2 -16
- package/dist/alert-footer.js +7 -7
- package/dist/alert-message.d.ts +2 -16
- package/dist/alert-message.js +9 -9
- package/dist/alert-subtitle.d.ts +2 -16
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.d.ts +2 -22
- package/dist/alert-title.js +21 -21
- package/dist/alert.d.ts +2 -70
- package/dist/alert.js +7 -7
- package/dist/blockquote-author.d.ts +2 -0
- package/dist/blockquote-author.js +30 -0
- package/dist/blockquote-content.d.ts +2 -0
- package/dist/blockquote-content.js +54 -0
- package/dist/blockquote-context.d.ts +2 -0
- package/dist/blockquote-context.js +5 -0
- package/dist/blockquote.d.ts +2 -22
- package/dist/blockquote.js +11 -40
- package/dist/breadcrumb-home.d.ts +2 -32
- package/dist/breadcrumb-home.js +7 -7
- package/dist/breadcrumb.d.ts +2 -32
- package/dist/breadcrumb.js +16 -16
- package/dist/breadcrumbs.d.ts +2 -54
- package/dist/breadcrumbs.js +11 -11
- package/dist/button.d.ts +2 -51
- package/dist/button.js +63 -63
- package/dist/card-content.d.ts +2 -15
- package/dist/card-content.js +10 -10
- package/dist/card-context.d.ts +2 -10
- package/dist/card-footer.d.ts +2 -16
- package/dist/card-footer.js +11 -11
- package/dist/card-image.d.ts +2 -40
- package/dist/card-image.js +15 -15
- package/dist/card-title.d.ts +2 -16
- package/dist/card-title.js +5 -5
- package/dist/card.d.ts +2 -105
- package/dist/card.js +20 -20
- package/dist/carousel.d.ts +2 -25
- package/dist/carousel.js +44 -44
- package/dist/checkbox.d.ts +2 -39
- package/dist/checkbox.js +52 -52
- package/dist/components/accordion/accordion-button.d.ts +10 -0
- package/dist/components/accordion/accordion-content.d.ts +9 -0
- package/dist/components/accordion/accordion-context.d.ts +4 -0
- package/dist/components/accordion/accordion.d.ts +15 -0
- package/dist/components/alert/alert-footer.d.ts +10 -0
- package/dist/components/alert/alert-message.d.ts +10 -0
- package/dist/components/alert/alert-subtitle.d.ts +10 -0
- package/dist/components/alert/alert-title.d.ts +16 -0
- package/dist/components/alert/alert.d.ts +15 -0
- package/dist/components/blockquote/blockquote-author.d.ts +7 -0
- package/dist/components/blockquote/blockquote-content.d.ts +10 -0
- package/dist/components/blockquote/blockquote-context.d.ts +5 -0
- package/dist/components/blockquote/blockquote.d.ts +18 -0
- package/dist/components/breadcrumbs/breadcrumb-home.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumb.d.ts +22 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +16 -0
- package/dist/components/button/button.d.ts +40 -0
- package/dist/components/card/card-content.d.ts +9 -0
- package/dist/components/card/card-context.d.ts +5 -0
- package/dist/components/card/card-footer.d.ts +10 -0
- package/dist/components/card/card-image.d.ts +32 -0
- package/dist/components/card/card-title.d.ts +10 -0
- package/dist/components/card/card.d.ts +30 -0
- package/dist/components/carousel/carousel.d.ts +20 -0
- package/dist/components/checkbox/checkbox.d.ts +32 -0
- package/dist/components/contact/contact-email.d.ts +11 -0
- package/dist/components/contact/contact-name.d.ts +10 -0
- package/dist/components/contact/contact-phone.d.ts +13 -0
- package/dist/components/contact/contact-title.d.ts +10 -0
- package/dist/components/contact/contact.d.ts +18 -0
- package/dist/components/container/container.d.ts +22 -0
- package/dist/components/divider/divider.d.ts +2 -0
- package/dist/components/embedded-video/embedded-video-context.d.ts +5 -0
- package/dist/components/embedded-video/embedded-video-modal-button.d.ts +13 -0
- package/dist/components/embedded-video/embedded-video.d.ts +25 -0
- package/dist/components/hero/hero-caption.d.ts +9 -0
- package/dist/components/hero/hero-content.d.ts +14 -0
- package/dist/components/hero/hero-context.d.ts +4 -0
- package/dist/components/hero/hero-link.d.ts +21 -0
- package/dist/components/hero/hero-title.d.ts +17 -0
- package/dist/components/hero/hero-video.d.ts +16 -0
- package/dist/components/hero/hero.d.ts +48 -0
- package/dist/components/image-overlay/image-overlay.d.ts +57 -0
- package/dist/components/info/info.d.ts +13 -0
- package/dist/components/link/link.d.ts +19 -0
- package/dist/components/link-carousel/link-carousel-content.d.ts +6 -0
- package/dist/components/link-carousel/link-carousel-context.d.ts +11 -0
- package/dist/components/link-carousel/link-carousel-item.d.ts +9 -0
- package/dist/components/link-carousel/link-carousel-link.d.ts +25 -0
- package/dist/components/link-carousel/link-carousel-links.d.ts +6 -0
- package/dist/components/link-carousel/link-carousel.d.ts +28 -0
- package/dist/components/list/list-context.d.ts +5 -0
- package/dist/components/list/list-item.d.ts +11 -0
- package/dist/components/list/list.d.ts +20 -0
- package/dist/components/loading-indicator/loading-indicator.d.ts +18 -0
- package/dist/components/media-caption/media-caption.d.ts +25 -0
- package/dist/components/modal/modal.d.ts +12 -0
- package/dist/components/navigation/navigation-link.d.ts +20 -0
- package/dist/components/navigation/navigation.d.ts +10 -0
- package/dist/components/radio-group/radio-context.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +14 -0
- package/dist/components/radio-group/radio.d.ts +8 -0
- package/dist/components/text-input/text-input.d.ts +12 -0
- package/dist/components/typography/typography.d.ts +21 -0
- package/dist/contact-email.d.ts +2 -17
- package/dist/contact-email.js +13 -13
- package/dist/contact-name.d.ts +2 -16
- package/dist/contact-name.js +3 -3
- package/dist/contact-phone.d.ts +2 -19
- package/dist/contact-phone.js +14 -14
- package/dist/contact-title.d.ts +2 -16
- package/dist/contact-title.js +1 -1
- package/dist/contact.d.ts +2 -73
- package/dist/contact.js +9 -9
- package/dist/container.d.ts +2 -32
- package/dist/container.js +9 -9
- package/dist/divider.d.ts +2 -6
- package/dist/divider.js +18 -18
- package/dist/embedded-video-context.d.ts +2 -10
- package/dist/embedded-video-modal-button.d.ts +2 -54
- package/dist/embedded-video-modal-button.js +14 -14
- package/dist/embedded-video.d.ts +2 -81
- package/dist/embedded-video.js +34 -34
- package/dist/hero-caption.d.ts +2 -15
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.d.ts +2 -20
- package/dist/hero-content.js +21 -21
- package/dist/hero-context.d.ts +2 -9
- package/dist/hero-link.d.ts +2 -29
- package/dist/hero-link.js +5 -5
- package/dist/hero-title.d.ts +2 -24
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.d.ts +2 -22
- package/dist/hero-video.js +14 -14
- package/dist/hero.d.ts +2 -141
- package/dist/hero.js +23 -23
- package/dist/image-overlay.d.ts +2 -66
- package/dist/image-overlay.js +47 -47
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -11
- package/dist/info.d.ts +2 -19
- package/dist/info.js +16 -16
- package/dist/link-carousel-content.d.ts +2 -11
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-context.d.ts +2 -30
- package/dist/link-carousel-item.d.ts +2 -15
- package/dist/link-carousel-item.js +14 -14
- package/dist/link-carousel-link.d.ts +2 -34
- package/dist/link-carousel-link.js +16 -16
- package/dist/link-carousel-links.d.ts +2 -11
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.d.ts +2 -83
- package/dist/link-carousel.js +23 -23
- package/dist/link.d.ts +2 -30
- package/dist/link.js +18 -18
- package/dist/list-context.d.ts +2 -0
- package/dist/list-context.js +8 -0
- package/dist/list-item.d.ts +2 -17
- package/dist/list-item.js +6 -6
- package/dist/list.d.ts +2 -39
- package/dist/list.js +63 -21
- package/dist/loading-indicator.d.ts +2 -23
- package/dist/loading-indicator.js +48 -36
- package/dist/media-caption.d.ts +2 -110
- package/dist/media-caption.js +44 -44
- package/dist/modal.d.ts +2 -18
- package/dist/modal.js +19 -19
- package/dist/navigation-link.d.ts +2 -29
- package/dist/navigation-link.js +20 -20
- package/dist/navigation.d.ts +2 -40
- package/dist/navigation.js +11 -11
- package/dist/radio-context.d.ts +2 -9
- package/dist/radio-group.d.ts +2 -28
- package/dist/radio-group.js +10 -10
- package/dist/radio.d.ts +2 -13
- package/dist/radio.js +22 -22
- package/dist/{regular-CYeGUuiO.js → regular-BRNZck7j.js} +22 -22
- package/dist/text-input.d.ts +2 -0
- package/dist/text-input.js +66 -0
- package/dist/typography.d.ts +2 -29
- package/dist/typography.js +22 -22
- package/dist/utils/math-utils.d.ts +4 -0
- package/dist/utils/string-utils.d.ts +1 -0
- 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
|
-
|
|
2
|
-
|
|
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 {}
|
package/dist/accordion-button.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { f as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
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
|
|
10
|
-
const
|
|
9
|
+
function x({ children: u, className: n }) {
|
|
10
|
+
const o = b(p), e = m({
|
|
11
11
|
slots: {
|
|
12
|
-
button: "
|
|
13
|
-
icon: "
|
|
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: "
|
|
19
|
-
icon: "
|
|
18
|
+
button: "uog:bg-blue uog:text-blue-contrast",
|
|
19
|
+
icon: "uog:text-blue-contrast"
|
|
20
20
|
},
|
|
21
21
|
false: {
|
|
22
|
-
icon: "
|
|
23
|
-
button: "
|
|
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:
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
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:
|
|
34
|
-
className: `uofg-accordion-button-icon ${
|
|
33
|
+
icon: o != null && o.isOpen ? g : c,
|
|
34
|
+
className: `uofg-accordion-button-icon ${s()}`
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
] });
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
x.displayName = "AccordionButton";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
x as AccordionButton
|
|
42
42
|
};
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
8
|
-
const o = c(s), n = a("
|
|
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
|
-
|
|
11
|
+
u.displayName = "AccordionContent";
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
u as AccordionContent
|
|
14
14
|
};
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
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 {}
|
package/dist/accordion.d.ts
CHANGED
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
6
|
+
import { AccordionContent as g } from "./accordion-content.js";
|
|
7
7
|
function d({ children: r, className: c }) {
|
|
8
|
-
const
|
|
9
|
-
return /* @__PURE__ */ o(
|
|
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
|
-
|
|
15
|
+
g as AccordionContent
|
|
16
16
|
};
|
package/dist/alert-footer.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {}
|
package/dist/alert-footer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const e =
|
|
5
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
7
|
+
l.displayName = "AlertFooter";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
l as AlertFooter
|
|
10
10
|
};
|
package/dist/alert-message.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {}
|
package/dist/alert-message.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const r =
|
|
5
|
-
"
|
|
6
|
-
|
|
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__ */
|
|
8
|
+
return /* @__PURE__ */ g("div", { className: `uofg-alert-message ${r}`, children: e });
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
t.displayName = "AlertMessage";
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
t as AlertMessage
|
|
13
13
|
};
|
package/dist/alert-subtitle.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {}
|
package/dist/alert-subtitle.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
7
|
+
u.displayName = "AlertSubtitle";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
u as AlertSubtitle
|
|
10
10
|
};
|
package/dist/alert-title.d.ts
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {}
|
package/dist/alert-title.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { b as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { twMerge as
|
|
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:
|
|
6
|
+
function x({ color: e = "red", className: o, children: r }) {
|
|
7
7
|
const n = m({
|
|
8
8
|
slots: {
|
|
9
|
-
container: "
|
|
10
|
-
icon: "
|
|
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: "
|
|
16
|
+
container: "uog:bg-red uog:text-red-contrast"
|
|
17
17
|
},
|
|
18
18
|
yellow: {
|
|
19
|
-
container: "
|
|
19
|
+
container: "uog:bg-yellow uog:text-yellow-contrast"
|
|
20
20
|
},
|
|
21
21
|
blue: {
|
|
22
|
-
container: "
|
|
22
|
+
container: "uog:bg-blue uog:text-blue-contrast"
|
|
23
23
|
},
|
|
24
24
|
green: {
|
|
25
|
-
container: "
|
|
25
|
+
container: "uog:bg-green uog:text-green-contrast"
|
|
26
26
|
},
|
|
27
|
-
"light
|
|
28
|
-
container: "
|
|
27
|
+
"grey-light": {
|
|
28
|
+
container: "uog:bg-grey-light uog:text-grey-light-contrast"
|
|
29
29
|
},
|
|
30
|
-
"dark
|
|
31
|
-
container: "
|
|
30
|
+
"grey-dark": {
|
|
31
|
+
container: "uog:bg-grey-dark uog:text-grey-dark-contrast"
|
|
32
32
|
},
|
|
33
33
|
black: {
|
|
34
|
-
container: "
|
|
34
|
+
container: "uog:bg-black uog:text-black-contrast"
|
|
35
35
|
},
|
|
36
36
|
white: {
|
|
37
|
-
container: "
|
|
37
|
+
container: "uog:bg-white uog:text-white-contrast"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}), { container:
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */ t(
|
|
44
|
-
/* @__PURE__ */ t("div", { className: `uofg-alert-title ${
|
|
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
|
-
|
|
2
|
-
|
|
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
|
|
5
|
-
import { AlertSubtitle as
|
|
6
|
-
import { AlertTitle as
|
|
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("
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
u as AlertMessage,
|
|
16
|
+
g as AlertSubtitle,
|
|
17
|
+
n as AlertTitle
|
|
18
18
|
};
|
|
@@ -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,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
|
+
};
|