@uoguelph/react-components 1.3.14 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-button.js +22 -22
- package/dist/accordion-content.js +5 -5
- package/dist/accordion.js +3 -3
- package/dist/alert-footer.js +6 -6
- package/dist/alert-message.js +7 -10
- package/dist/alert-subtitle.js +7 -7
- package/dist/alert-title.js +23 -23
- package/dist/alert.js +7 -7
- package/dist/blockquote-author-name.js +1 -1
- package/dist/blockquote-author-title.js +2 -2
- package/dist/blockquote-author.js +11 -11
- package/dist/blockquote-content.js +16 -16
- package/dist/breadcrumb-home.js +2 -2
- package/dist/breadcrumb.js +15 -15
- package/dist/breadcrumbs.js +9 -9
- package/dist/button.js +44 -44
- package/dist/card-content.js +10 -10
- package/dist/card-footer.js +11 -11
- package/dist/card-image.js +15 -15
- package/dist/card-title.js +5 -5
- package/dist/card.js +11 -11
- package/dist/carousel.js +51 -51
- package/dist/checkbox.js +44 -44
- package/dist/contact-email.js +7 -7
- package/dist/contact-name.js +1 -1
- package/dist/contact-phone.js +11 -11
- package/dist/contact-title.js +1 -1
- package/dist/contact.js +11 -14
- package/dist/container.js +10 -10
- package/dist/dismissible-alert.js +2 -2
- package/dist/divider.js +18 -18
- package/dist/embedded-video-modal-button.js +16 -16
- package/dist/embedded-video.js +29 -29
- package/dist/hero-caption.js +1 -1
- package/dist/hero-content.js +23 -23
- package/dist/hero-link.js +1 -1
- package/dist/hero-title.js +11 -11
- package/dist/hero-video.js +9 -9
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +48 -48
- package/dist/index.css +1 -1
- package/dist/info.js +16 -16
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +44 -44
- package/dist/link-carousel-content.js +11 -11
- package/dist/link-carousel-item.js +15 -15
- package/dist/link-carousel-link.js +22 -22
- package/dist/link-carousel-links.js +14 -14
- package/dist/link-carousel.js +21 -21
- package/dist/link.js +10 -10
- package/dist/list-item.js +6 -6
- package/dist/list.js +21 -21
- package/dist/loading-indicator.js +29 -29
- package/dist/media-caption.js +34 -34
- package/dist/modal.js +25 -25
- package/dist/navigation-link.js +25 -25
- package/dist/navigation.js +8 -11
- package/dist/number-input.js +46 -46
- package/dist/pagination.js +62 -62
- package/dist/radio-group.js +8 -8
- package/dist/radio.js +19 -19
- package/dist/select-button.js +32 -32
- package/dist/select-option.js +29 -29
- package/dist/select-options.js +27 -27
- package/dist/select.js +7 -7
- package/dist/statistics-item-image.js +9 -9
- package/dist/statistics-item-represents.js +7 -7
- package/dist/statistics-item-value.js +7 -7
- package/dist/statistics-item.js +35 -35
- package/dist/statistics.js +25 -25
- package/dist/story-background-image.js +12 -12
- package/dist/story-background.js +7 -7
- package/dist/story-body.js +5 -8
- package/dist/story-footer.js +12 -12
- package/dist/story-foreground-content.js +4 -4
- package/dist/story-foreground-image.js +15 -15
- package/dist/story-foreground.js +7 -10
- package/dist/story.js +5 -5
- package/dist/tab-list.js +3 -6
- package/dist/tab-panel.js +3 -3
- package/dist/tab.js +26 -26
- package/dist/text-input.js +32 -32
- package/dist/typography.js +22 -22
- package/package.json +2 -2
package/dist/accordion-button.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { f as
|
|
4
|
-
import { FontAwesomeIcon as
|
|
5
|
-
import { DisclosureButton as
|
|
6
|
-
import { useContext as
|
|
7
|
-
import { twMerge as
|
|
8
|
-
import { tv as
|
|
9
|
-
import { AccordionContext as
|
|
10
|
-
function x({ children:
|
|
11
|
-
const o =
|
|
2
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { f as u, a as l } from "./regular-DmWV6rTj.js";
|
|
4
|
+
import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import { DisclosureButton as b } from "@headlessui/react";
|
|
6
|
+
import { useContext as f } from "react";
|
|
7
|
+
import { twMerge as m } from "tailwind-merge";
|
|
8
|
+
import { tv as p } from "tailwind-variants";
|
|
9
|
+
import { AccordionContext as g } from "./accordion-context.js";
|
|
10
|
+
function x({ children: n, className: e }) {
|
|
11
|
+
const o = f(g), i = p({
|
|
12
12
|
slots: {
|
|
13
|
-
button: "
|
|
14
|
-
icon: "
|
|
13
|
+
button: "group mb-1 inline-flex w-full cursor-pointer items-center justify-between gap-2 p-2.5 px-5 text-left text-xl transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue focus-visible:ring-offset-2 hocus-visible:bg-blue hocus-visible:text-blue-contrast",
|
|
14
|
+
icon: "h-[1em] text-blue-on-light transition group-hocus-visible:text-blue-contrast"
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
open: {
|
|
18
18
|
true: {
|
|
19
|
-
button: "
|
|
20
|
-
icon: "
|
|
19
|
+
button: "bg-blue text-blue-contrast",
|
|
20
|
+
icon: "text-blue-contrast"
|
|
21
21
|
},
|
|
22
22
|
false: {
|
|
23
|
-
icon: "
|
|
24
|
-
button: "
|
|
23
|
+
icon: "rotate-90",
|
|
24
|
+
button: "bg-grey-light-bg text-blue-on-light"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
}), { button:
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ t("span", { className: "uofg-accordion-button-content", children:
|
|
28
|
+
}), { button: s, icon: r } = i({ open: o == null ? void 0 : o.isOpen });
|
|
29
|
+
return /* @__PURE__ */ c(b, { className: `uofg-accordion-button ${m(e, s())}`, children: [
|
|
30
|
+
/* @__PURE__ */ t("span", { className: "uofg-accordion-button-content", children: n }),
|
|
31
31
|
/* @__PURE__ */ t(
|
|
32
|
-
|
|
32
|
+
a,
|
|
33
33
|
{
|
|
34
|
-
icon: o != null && o.isOpen ?
|
|
35
|
-
className: `uofg-accordion-button-icon ${
|
|
34
|
+
icon: o != null && o.isOpen ? u : l,
|
|
35
|
+
className: `uofg-accordion-button-icon ${r()}`
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
] });
|
|
@@ -4,12 +4,12 @@ import { DisclosurePanel as i } from "@headlessui/react";
|
|
|
4
4
|
import { useContext as c } from "react";
|
|
5
5
|
import m from "react-animate-height";
|
|
6
6
|
import { twMerge as s } from "tailwind-merge";
|
|
7
|
-
import { AccordionContext as
|
|
8
|
-
function
|
|
9
|
-
const o = c(
|
|
7
|
+
import { AccordionContext as a } from "./accordion-context.js";
|
|
8
|
+
function p({ children: r, className: e }) {
|
|
9
|
+
const o = c(a), n = s("border-l-4 border-yellow py-3 pl-5", e);
|
|
10
10
|
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 }) });
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
p.displayName = "AccordionContent";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
p as AccordionContent
|
|
15
15
|
};
|
package/dist/accordion.js
CHANGED
|
@@ -4,14 +4,14 @@ import { Disclosure as t } from "@headlessui/react";
|
|
|
4
4
|
import { twMerge as e } from "tailwind-merge";
|
|
5
5
|
import { AccordionContext as m } from "./accordion-context.js";
|
|
6
6
|
import { AccordionButton as x } from "./accordion-button.js";
|
|
7
|
-
import { AccordionContent as
|
|
7
|
+
import { AccordionContent as h } from "./accordion-content.js";
|
|
8
8
|
function d({ children: r, className: c }) {
|
|
9
|
-
const i = e("
|
|
9
|
+
const i = e("my-2 [&_p:last-child]:mb-0", c);
|
|
10
10
|
return /* @__PURE__ */ o(t, { children: ({ open: n }) => /* @__PURE__ */ o("div", { className: `uofg-accordion ${i}`, children: /* @__PURE__ */ o(m.Provider, { value: { isOpen: n }, children: r }) }) });
|
|
11
11
|
}
|
|
12
12
|
d.displayName = "Accordion";
|
|
13
13
|
export {
|
|
14
14
|
d as Accordion,
|
|
15
15
|
x as AccordionButton,
|
|
16
|
-
|
|
16
|
+
h as AccordionContent
|
|
17
17
|
};
|
package/dist/alert-footer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
return /* @__PURE__ */ t("div", { className: `uofg-alert-footer ${
|
|
2
|
+
import { twMerge as l } from "tailwind-merge";
|
|
3
|
+
function a({ children: r, className: e }) {
|
|
4
|
+
const o = l("flex bg-grey-light px-4 py-2", e);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-alert-footer ${o}`, children: r });
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
a.displayName = "AlertFooter";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
a as AlertFooter
|
|
10
10
|
};
|
package/dist/alert-message.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
o
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ g("div", { className: `uofg-alert-message ${r}`, children: e });
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as o } from "tailwind-merge";
|
|
3
|
+
function a({ children: e, className: r }) {
|
|
4
|
+
const s = o("flex flex-col border-x border-b border-grey-light bg-white px-4 py-3", r);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-alert-message ${s}`, children: e });
|
|
9
6
|
}
|
|
10
|
-
|
|
7
|
+
a.displayName = "AlertMessage";
|
|
11
8
|
export {
|
|
12
|
-
|
|
9
|
+
a as AlertMessage
|
|
13
10
|
};
|
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 r } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as o } from "tailwind-merge";
|
|
3
|
+
function i({ children: t, className: e }) {
|
|
4
|
+
const l = o("mb-4 text-xl font-bold", e);
|
|
5
|
+
return /* @__PURE__ */ r("span", { className: `uofg-alert-subtitle ${l}`, children: t });
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
i.displayName = "AlertSubtitle";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
i as AlertSubtitle
|
|
10
10
|
};
|
package/dist/alert-title.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { e as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
function
|
|
7
|
-
const n =
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { e as s } from "./regular-DmWV6rTj.js";
|
|
3
|
+
import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { twMerge as m } from "tailwind-merge";
|
|
5
|
+
import { tv as x } from "tailwind-variants";
|
|
6
|
+
function b({ color: e = "red", className: r, children: o }) {
|
|
7
|
+
const n = x({
|
|
8
8
|
slots: {
|
|
9
|
-
container: "
|
|
10
|
-
icon: "
|
|
9
|
+
container: "flex items-center gap-2 p-4 text-xl",
|
|
10
|
+
icon: "h-[1.5em]",
|
|
11
11
|
text: ""
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
color: {
|
|
15
15
|
red: {
|
|
16
|
-
container: "
|
|
16
|
+
container: "bg-red text-red-contrast"
|
|
17
17
|
},
|
|
18
18
|
yellow: {
|
|
19
|
-
container: "
|
|
19
|
+
container: "bg-yellow text-yellow-contrast"
|
|
20
20
|
},
|
|
21
21
|
blue: {
|
|
22
|
-
container: "
|
|
22
|
+
container: "bg-blue text-blue-contrast"
|
|
23
23
|
},
|
|
24
24
|
green: {
|
|
25
|
-
container: "
|
|
25
|
+
container: "bg-green text-green-contrast"
|
|
26
26
|
},
|
|
27
27
|
"grey-light": {
|
|
28
|
-
container: "
|
|
28
|
+
container: "bg-grey-light text-grey-light-contrast"
|
|
29
29
|
},
|
|
30
30
|
"grey-dark": {
|
|
31
|
-
container: "
|
|
31
|
+
container: "bg-grey-dark text-grey-dark-contrast"
|
|
32
32
|
},
|
|
33
33
|
black: {
|
|
34
|
-
container: "
|
|
34
|
+
container: "bg-black text-black-contrast"
|
|
35
35
|
},
|
|
36
36
|
white: {
|
|
37
|
-
container: "
|
|
37
|
+
container: "bg-white 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: a, icon: i, text: c } = n({ color: e });
|
|
42
|
+
return /* @__PURE__ */ l("div", { className: `uofg-alert-title-container ${m(a(), r)}`, children: [
|
|
43
|
+
/* @__PURE__ */ t(g, { className: `uofg-alert-title-icon ${i()}`, icon: s }),
|
|
44
|
+
/* @__PURE__ */ t("div", { className: `uofg-alert-title ${c()}`, children: o })
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
b.displayName = "AlertTitle";
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
b as AlertTitle
|
|
50
50
|
};
|
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 A } from "./alert-message.js";
|
|
5
|
+
import { AlertSubtitle as n } from "./alert-subtitle.js";
|
|
6
|
+
import { AlertTitle as g } from "./alert-title.js";
|
|
7
7
|
function f({ children: e, className: r }) {
|
|
8
|
-
const t = l("
|
|
8
|
+
const t = l("flex 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
|
+
A as AlertMessage,
|
|
16
|
+
n as AlertSubtitle,
|
|
17
|
+
g as AlertTitle
|
|
18
18
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import { twMerge as u } from "tailwind-merge";
|
|
4
4
|
function m({ children: o, className: t, ...e }) {
|
|
5
|
-
return /* @__PURE__ */ r("cite", { ...e, className: u("uofg-blockquote-author-name
|
|
5
|
+
return /* @__PURE__ */ r("cite", { ...e, className: u("uofg-blockquote-author-name font-bold not-italic", t), children: o });
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
m as BlockquoteAuthorName
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { twMerge as
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
4
|
function c({ children: t, className: o, ...e }) {
|
|
5
|
-
return /* @__PURE__ */ r("span", { ...e, className:
|
|
5
|
+
return /* @__PURE__ */ r("span", { ...e, className: i("uofg-blockquote-author-title italic", o), children: t });
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
c as BlockquoteAuthorTitle
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { BlockquoteContext as
|
|
7
|
-
function
|
|
8
|
-
const o = u
|
|
9
|
-
base: "uofg-blockquote-author
|
|
3
|
+
import { useContext as s } from "react";
|
|
4
|
+
import { twMerge as c } from "tailwind-merge";
|
|
5
|
+
import { tv as m } from "tailwind-variants";
|
|
6
|
+
import { BlockquoteContext as u } from "./blockquote-context.js";
|
|
7
|
+
function b({ className: r, children: t }) {
|
|
8
|
+
const o = s(u), e = m({
|
|
9
|
+
base: "uofg-blockquote-author flex flex-col items-start gap-1 border-l-4 pl-4 font-light",
|
|
10
10
|
variants: {
|
|
11
11
|
color: {
|
|
12
|
-
yellow: "
|
|
13
|
-
blue: "
|
|
12
|
+
yellow: "border-yellow",
|
|
13
|
+
blue: "border-blue"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
return /* @__PURE__ */ l("div", { className:
|
|
17
|
+
return /* @__PURE__ */ l("div", { className: c(e({ color: (o == null ? void 0 : o.color) ?? "yellow" }), r), children: t });
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
b as BlockquoteAuthor
|
|
21
21
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
3
|
-
import { f as
|
|
3
|
+
import { f as u, a as m } from "./solid-D19hAF5t.js";
|
|
4
4
|
import { FontAwesomeIcon as s } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { useContext as f } from "react";
|
|
6
|
-
import { twMerge as
|
|
7
|
-
import { tv as
|
|
8
|
-
import { BlockquoteContext as
|
|
9
|
-
function
|
|
10
|
-
const o = f(
|
|
6
|
+
import { twMerge as k } from "tailwind-merge";
|
|
7
|
+
import { tv as b } from "tailwind-variants";
|
|
8
|
+
import { BlockquoteContext as p } from "./blockquote-context.js";
|
|
9
|
+
function q({ className: c, children: i }) {
|
|
10
|
+
const o = f(p), r = b({
|
|
11
11
|
slots: {
|
|
12
|
-
base: "
|
|
13
|
-
icons: "
|
|
12
|
+
base: "block w-full text-center text-3xl font-light italic",
|
|
13
|
+
icons: "inline-block h-[1em]"
|
|
14
14
|
},
|
|
15
15
|
variants: {
|
|
16
16
|
color: {
|
|
17
17
|
yellow: {
|
|
18
|
-
icons: "
|
|
18
|
+
icons: "text-yellow"
|
|
19
19
|
},
|
|
20
20
|
blue: {
|
|
21
|
-
icons: "
|
|
21
|
+
icons: "text-blue"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), { base:
|
|
26
|
-
return /* @__PURE__ */ t("blockquote", { className: `uofg-blockquote-content ${
|
|
25
|
+
}), { base: a, icons: l } = r({ color: (o == null ? void 0 : o.color) ?? "yellow" });
|
|
26
|
+
return /* @__PURE__ */ t("blockquote", { className: `uofg-blockquote-content ${k(a(), c)}`, children: [
|
|
27
27
|
!(o != null && o.hideQuotationMarks) && /* @__PURE__ */ t(n, { children: [
|
|
28
|
-
/* @__PURE__ */ e(s, { icon:
|
|
28
|
+
/* @__PURE__ */ e(s, { icon: u, className: `uofg-blockquote-content-left-quote ${l()}` }),
|
|
29
29
|
" "
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */ e("span", { className: "uofg-blockquote-content-text", children:
|
|
31
|
+
/* @__PURE__ */ e("span", { className: "uofg-blockquote-content-text", children: i }),
|
|
32
32
|
" ",
|
|
33
33
|
!(o != null && o.hideQuotationMarks) && /* @__PURE__ */ t(n, { children: [
|
|
34
34
|
" ",
|
|
@@ -36,7 +36,7 @@ function p({ className: u, children: c }) {
|
|
|
36
36
|
] })
|
|
37
37
|
] });
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
q.displayName = "BlockquoteContent";
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
q as BlockquoteContent
|
|
42
42
|
};
|
package/dist/breadcrumb-home.js
CHANGED
|
@@ -9,10 +9,10 @@ function n({
|
|
|
9
9
|
className: m,
|
|
10
10
|
...r
|
|
11
11
|
}) {
|
|
12
|
-
const a = l("
|
|
12
|
+
const a = l("h-[1em] fill-black");
|
|
13
13
|
return /* @__PURE__ */ o("li", { className: "uofg-breadcrumb-home-list-item", children: /* @__PURE__ */ c("a", { ...r, href: e, className: `uofg-breadcrumb-home ${m}`, children: [
|
|
14
14
|
/* @__PURE__ */ o(i, { icon: s, className: a }),
|
|
15
|
-
/* @__PURE__ */ o("span", { className: "
|
|
15
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "U of G Homepage" })
|
|
16
16
|
] }) });
|
|
17
17
|
}
|
|
18
18
|
n.displayName = "BreadcrumbHome";
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "./regular-DmWV6rTj.js";
|
|
3
|
+
import { FontAwesomeIcon as b } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { twMerge as p } from "tailwind-merge";
|
|
5
|
+
import { tv as f } from "tailwind-variants";
|
|
6
|
+
const g = "a";
|
|
7
7
|
function x({
|
|
8
8
|
as: n,
|
|
9
9
|
children: r,
|
|
@@ -11,20 +11,20 @@ function x({
|
|
|
11
11
|
href: e,
|
|
12
12
|
...a
|
|
13
13
|
}) {
|
|
14
|
-
const c = n ??
|
|
14
|
+
const c = n ?? g, i = f({
|
|
15
15
|
slots: {
|
|
16
|
-
container: "
|
|
17
|
-
icon: "
|
|
18
|
-
link: "
|
|
16
|
+
container: "flex items-center gap-2",
|
|
17
|
+
icon: "h-[.75em]",
|
|
18
|
+
link: "underline decoration-transparent decoration-1 transition-colors hocus-visible:decoration-black"
|
|
19
19
|
}
|
|
20
|
-
}), { container: m, icon: s, link:
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ o(
|
|
23
|
-
e ? /* @__PURE__ */ o(c, { ...a, className: `uofg-breadcrumb ${
|
|
20
|
+
}), { container: m, icon: s, link: l } = i();
|
|
21
|
+
return /* @__PURE__ */ u("li", { className: `uofg-breadcrumb-list-item ${m()}`, children: [
|
|
22
|
+
/* @__PURE__ */ o(b, { icon: d, className: s() }),
|
|
23
|
+
e ? /* @__PURE__ */ o(c, { ...a, className: `uofg-breadcrumb ${p(l(), t)}`, href: e, children: r }) : /* @__PURE__ */ o("span", { children: r })
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
26
26
|
x.displayName = "Breadcrumb";
|
|
27
27
|
export {
|
|
28
28
|
x as Breadcrumb,
|
|
29
|
-
|
|
29
|
+
g as defaultBreadcrumbElement
|
|
30
30
|
};
|
package/dist/breadcrumbs.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { twJoin as
|
|
3
|
-
import { Container as
|
|
2
|
+
import { twJoin as t, twMerge as a } from "tailwind-merge";
|
|
3
|
+
import { Container as c } from "./container.js";
|
|
4
4
|
import { Breadcrumb as b } from "./breadcrumb.js";
|
|
5
|
-
import { BreadcrumbHome as
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */ r(
|
|
5
|
+
import { BreadcrumbHome as l } from "./breadcrumb-home.js";
|
|
6
|
+
function f({ className: e, children: m }) {
|
|
7
|
+
const o = t("flex w-full flex-wrap items-center gap-2");
|
|
8
|
+
return /* @__PURE__ */ r(c, { children: /* @__PURE__ */ r("ol", { className: `uofg-breadcrumbs ${a(o, e)}`, children: m }) });
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
f.displayName = "Breadcrumbs";
|
|
11
11
|
export {
|
|
12
12
|
b as Breadcrumb,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
l as BreadcrumbHome,
|
|
14
|
+
f as Breadcrumbs
|
|
15
15
|
};
|