@uoguelph/react-components 1.2.12 → 1.2.13
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/blockquote-author-link.js +8 -8
- package/dist/breadcrumb-home.js +13 -13
- package/dist/breadcrumb.js +13 -13
- package/dist/breadcrumbs.js +5 -5
- package/dist/card-content.js +4 -4
- package/dist/card-footer.js +1 -1
- package/dist/card-image.js +16 -16
- package/dist/card-title.js +5 -5
- package/dist/card.js +1 -1
- package/dist/carousel.js +30 -30
- package/dist/checkbox.js +26 -26
- package/dist/contact-email.js +8 -8
- package/dist/contact-name.js +6 -6
- package/dist/contact-phone.js +9 -9
- package/dist/contact-title.js +4 -4
- package/dist/contact.js +12 -12
- package/dist/container.js +7 -7
- package/dist/divider.js +10 -10
- package/dist/embedded-video-modal-button.js +30 -13
- package/dist/hero.js +19 -19
- package/dist/image-overlay.js +19 -19
- package/dist/info.js +2 -2
- package/dist/layout-content.js +3 -3
- package/dist/layout.js +8 -8
- package/dist/link-carousel-link.js +6 -6
- package/dist/link.js +3 -3
- package/dist/list-item.js +5 -5
- package/dist/list.js +1 -1
- package/dist/modal.js +27 -16
- package/dist/radio-group.js +13 -13
- package/dist/radio.js +8 -8
- package/dist/statistics-item-image.js +12 -2
- package/dist/statistics-item-represents.js +2 -5
- package/dist/statistics-item-value.js +2 -5
- package/dist/statistics-item.js +2 -2
- package/dist/statistics.js +33 -33
- package/dist/story-background-image.js +12 -2
- package/dist/story-background.js +2 -2
- package/dist/story-body.js +2 -2
- package/dist/story-footer.js +3 -3
- package/dist/story-foreground-content.js +2 -5
- package/dist/story-foreground-image.js +13 -3
- package/dist/story-foreground.js +2 -2
- package/dist/story.js +2 -2
- package/dist/tab-list.js +7 -7
- package/dist/tab-panel.js +8 -8
- package/dist/tab-panels.js +4 -4
- package/dist/tab.js +1 -1
- package/dist/tabs.js +6 -6
- package/dist/text-input.js +18 -18
- package/package.json +2 -2
|
@@ -10,8 +10,18 @@ function f({
|
|
|
10
10
|
className: n,
|
|
11
11
|
...s
|
|
12
12
|
}) {
|
|
13
|
-
const a = o ?? l, m = c("
|
|
14
|
-
return /* @__PURE__ */ u(
|
|
13
|
+
const a = o ?? l, m = c("uog:h-full uog:w-full uog:brightness-50", n);
|
|
14
|
+
return /* @__PURE__ */ u(
|
|
15
|
+
a,
|
|
16
|
+
{
|
|
17
|
+
...s,
|
|
18
|
+
src: t,
|
|
19
|
+
alt: e,
|
|
20
|
+
width: r,
|
|
21
|
+
height: g,
|
|
22
|
+
className: `uofg-story-background-image ${m}`
|
|
23
|
+
}
|
|
24
|
+
);
|
|
15
25
|
}
|
|
16
26
|
f.displayName = "StoryBackgroundImage";
|
|
17
27
|
export {
|
package/dist/story-background.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as a } from "tailwind-merge";
|
|
3
3
|
function g({ children: o, className: u }) {
|
|
4
|
-
const r = a("
|
|
5
|
-
return /* @__PURE__ */ t("div", { className: r
|
|
4
|
+
const r = a("uog:absolute uog:z-0 uog:h-full uog:max-h-full uog:w-full", u);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-background ${r}`, children: o });
|
|
6
6
|
}
|
|
7
7
|
g.displayName = "StoryBackground";
|
|
8
8
|
export {
|
package/dist/story-body.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { twMerge as s } from "tailwind-merge";
|
|
3
3
|
function u({ children: o, className: e }) {
|
|
4
4
|
const r = s(
|
|
5
|
-
"
|
|
5
|
+
"uog:relative uog:flex uog:w-full uog:items-center uog:justify-center uog:overflow-hidden",
|
|
6
6
|
e
|
|
7
7
|
);
|
|
8
|
-
return /* @__PURE__ */ t("div", { className: r
|
|
8
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: o });
|
|
9
9
|
}
|
|
10
10
|
u.displayName = "StoryBody";
|
|
11
11
|
export {
|
package/dist/story-footer.js
CHANGED
|
@@ -5,11 +5,11 @@ import { Container as g } from "./container.js";
|
|
|
5
5
|
function c({ children: t, className: e }) {
|
|
6
6
|
const r = i({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "
|
|
9
|
-
container: "
|
|
8
|
+
base: "uog:flex uog:w-full uog:items-center uog:justify-center uog:bg-black uog:p-4 uog:text-white",
|
|
9
|
+
container: "uog:flex uog:items-center uog:justify-center uog:p-2 uog:text-xl"
|
|
10
10
|
}
|
|
11
11
|
}), { base: s, container: u } = r();
|
|
12
|
-
return /* @__PURE__ */ o("div", { className: n(s(), e)
|
|
12
|
+
return /* @__PURE__ */ o("div", { className: `uofg-story-footer ${n(s(), e)}`, children: /* @__PURE__ */ o(g, { className: `uofg-story-footer-container ${u()}`, children: t }) });
|
|
13
13
|
}
|
|
14
14
|
c.displayName = "StoryFooter";
|
|
15
15
|
export {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as n } from "tailwind-merge";
|
|
3
3
|
function u({ children: o, className: r }) {
|
|
4
|
-
const t = n(
|
|
5
|
-
|
|
6
|
-
r
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ e("div", { className: t, children: o });
|
|
4
|
+
const t = n("uog:flex uog:w-full uog:justify-center uog:px-8 uog:lg:w-1/2 uog:lg:p-0", r);
|
|
5
|
+
return /* @__PURE__ */ e("div", { className: `uofg-story-foreground-content ${t}`, children: o });
|
|
9
6
|
}
|
|
10
7
|
u.displayName = "StoryForegroundContent";
|
|
11
8
|
export {
|
|
@@ -13,11 +13,21 @@ function p({
|
|
|
13
13
|
}) {
|
|
14
14
|
const a = e ?? d, n = c({
|
|
15
15
|
slots: {
|
|
16
|
-
base: "
|
|
17
|
-
image: "
|
|
16
|
+
base: "uog:flex uog:w-full uog:justify-center uog:lg:mt-auto uog:lg:w-1/2",
|
|
17
|
+
image: "uog:w-full uog:h-full"
|
|
18
18
|
}
|
|
19
19
|
}), { base: l, image: f } = n();
|
|
20
|
-
return /* @__PURE__ */ o("div", { className: l()
|
|
20
|
+
return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${l()}`, children: /* @__PURE__ */ o(
|
|
21
|
+
a,
|
|
22
|
+
{
|
|
23
|
+
...m,
|
|
24
|
+
src: r,
|
|
25
|
+
alt: t,
|
|
26
|
+
width: g,
|
|
27
|
+
height: u,
|
|
28
|
+
className: `uofg-story-foreground-image ${i(f(), s)}`
|
|
29
|
+
}
|
|
30
|
+
) });
|
|
21
31
|
}
|
|
22
32
|
p.displayName = "StoryForegroundImage";
|
|
23
33
|
export {
|
package/dist/story-foreground.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as g } from "react/jsx-runtime";
|
|
|
2
2
|
import { twMerge as u } from "tailwind-merge";
|
|
3
3
|
function t({ children: o, className: r }) {
|
|
4
4
|
const e = u(
|
|
5
|
-
"
|
|
5
|
+
"uog:max-w-[137rem] uog:z-10 uog:flex uog:w-full uog:flex-col uog:items-center uog:gap-6 uog:px-4 uog:lg:flex-row",
|
|
6
6
|
r
|
|
7
7
|
);
|
|
8
|
-
return /* @__PURE__ */ g("div", { className: e
|
|
8
|
+
return /* @__PURE__ */ g("div", { className: `uofg-story-foreground ${e}`, children: o });
|
|
9
9
|
}
|
|
10
10
|
t.displayName = "StoryForeground";
|
|
11
11
|
export {
|
package/dist/story.js
CHANGED
|
@@ -8,8 +8,8 @@ import { StoryForeground as i } from "./story-foreground.js";
|
|
|
8
8
|
import { StoryForegroundContent as B } from "./story-foreground-content.js";
|
|
9
9
|
import { StoryForegroundImage as w } from "./story-foreground-image.js";
|
|
10
10
|
function f({ children: o, className: r }) {
|
|
11
|
-
const t = m("
|
|
12
|
-
return /* @__PURE__ */ e("div", { className: t
|
|
11
|
+
const t = m("uog:flex uog:w-full uog:flex-col", r);
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: `uofg-story ${t}`, children: o });
|
|
13
13
|
}
|
|
14
14
|
f.displayName = "Story";
|
|
15
15
|
export {
|
package/dist/tab-list.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TabList as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function l({ children: o, className:
|
|
5
|
-
const
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { TabList as a } from "@headlessui/react";
|
|
3
|
+
import { twMerge as e } from "tailwind-merge";
|
|
4
|
+
function l({ children: o, className: t }) {
|
|
5
|
+
const r = e(
|
|
6
6
|
"uofg-tab-list uog:flex uog:gap-1 uog:border-b-4 uog:border-yellow uog:w-full uog:flex-col uog:md:flex-row",
|
|
7
|
-
|
|
7
|
+
t
|
|
8
8
|
);
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ s(a, { className: `uofg-tab-list ${r}`, children: o });
|
|
10
10
|
}
|
|
11
11
|
l.displayName = "TabList";
|
|
12
12
|
export {
|
package/dist/tab-panel.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TabPanel as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
5
|
-
const o =
|
|
6
|
-
return /* @__PURE__ */ r
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { TabPanel as r } from "@headlessui/react";
|
|
3
|
+
import { twMerge as t } from "tailwind-merge";
|
|
4
|
+
function l({ children: a, className: e }) {
|
|
5
|
+
const o = t("uofg-tab-panel uog:py-4", e);
|
|
6
|
+
return /* @__PURE__ */ n(r, { className: `uofg-tab-panel ${o}`, children: a });
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
l.displayName = "TabPanel";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as TabPanel
|
|
11
11
|
};
|
package/dist/tab-panels.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { TabPanels as
|
|
3
|
-
import { twMerge as
|
|
2
|
+
import { TabPanels as n } from "@headlessui/react";
|
|
3
|
+
import { twMerge as r } from "tailwind-merge";
|
|
4
4
|
function t({ children: a, className: s }) {
|
|
5
|
-
const e =
|
|
6
|
-
return /* @__PURE__ */ o(
|
|
5
|
+
const e = r("uofg-tab-panels", s);
|
|
6
|
+
return /* @__PURE__ */ o(n, { className: `uofg-tab-panels ${e}`, children: a });
|
|
7
7
|
}
|
|
8
8
|
t.displayName = "TabPanels";
|
|
9
9
|
export {
|
package/dist/tab.js
CHANGED
package/dist/tabs.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
import { twMerge as
|
|
2
|
+
import { TabGroup as s } from "@headlessui/react";
|
|
3
|
+
import { twMerge as e } from "tailwind-merge";
|
|
4
4
|
import { Tab as n } from "./tab.js";
|
|
5
5
|
import { TabList as l } from "./tab-list.js";
|
|
6
|
-
import { TabPanel as
|
|
6
|
+
import { TabPanel as c } from "./tab-panel.js";
|
|
7
7
|
import { TabPanels as N } from "./tab-panels.js";
|
|
8
8
|
function m({ children: o, className: r }) {
|
|
9
|
-
const a =
|
|
10
|
-
return /* @__PURE__ */ t(
|
|
9
|
+
const a = e("uofg-tabs", r);
|
|
10
|
+
return /* @__PURE__ */ t(s, { className: `uofg-tabs ${a}`, children: o });
|
|
11
11
|
}
|
|
12
12
|
m.displayName = "Tabs";
|
|
13
13
|
export {
|
|
14
14
|
n as Tab,
|
|
15
15
|
l as TabList,
|
|
16
|
-
|
|
16
|
+
c as TabPanel,
|
|
17
17
|
N as TabPanels,
|
|
18
18
|
m as Tabs
|
|
19
19
|
};
|
package/dist/text-input.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { h as w } from "./regular-DmWV6rTj.js";
|
|
3
3
|
import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { Field as v, Label as y, Input as N } from "@headlessui/react";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { tv as
|
|
7
|
-
function
|
|
8
|
-
initialValue:
|
|
5
|
+
import { useState as $, useRef as j } from "react";
|
|
6
|
+
import { tv as B } from "tailwind-variants";
|
|
7
|
+
function O({
|
|
8
|
+
initialValue: s = "",
|
|
9
9
|
type: c = "text",
|
|
10
10
|
placeholder: a = "",
|
|
11
11
|
onInput: n,
|
|
12
|
-
children:
|
|
12
|
+
children: i,
|
|
13
13
|
...g
|
|
14
14
|
}) {
|
|
15
|
-
const [
|
|
15
|
+
const [u, p] = $(s), e = j(null), f = B({
|
|
16
16
|
slots: {
|
|
17
17
|
base: "uog:flex uog:flex-col uog:gap-0.5",
|
|
18
18
|
wrapper: "uog:text-input uog:border-grey-light uog:flex uog:rounded-md uog:border uog:px-4 uog:py-2 uog:transition-colors uog:focus-within:border-blue uog:focus:outline-none uog:bg-white",
|
|
@@ -26,41 +26,41 @@ function T({
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
}), { base:
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
29
|
+
}), { base: m, wrapper: x, input: b, clearButton: d } = f({ empty: (u == null ? void 0 : u.length) === 0 });
|
|
30
|
+
return /* @__PURE__ */ l(v, { className: `uofg-text-input-field ${m()}`, children: [
|
|
31
|
+
i && /* @__PURE__ */ r(y, { className: "uofg-text-input-label", children: i }),
|
|
32
|
+
/* @__PURE__ */ l("div", { className: `uofg-text-input-wrapper ${x()}`, children: [
|
|
33
|
+
/* @__PURE__ */ r(
|
|
34
34
|
N,
|
|
35
35
|
{
|
|
36
36
|
...g,
|
|
37
37
|
ref: e,
|
|
38
|
-
value:
|
|
38
|
+
value: u,
|
|
39
39
|
type: c,
|
|
40
40
|
placeholder: a,
|
|
41
41
|
onInput: (t) => {
|
|
42
42
|
var o;
|
|
43
43
|
p((o = t == null ? void 0 : t.target) == null ? void 0 : o.value), n == null || n(t);
|
|
44
44
|
},
|
|
45
|
-
className:
|
|
45
|
+
className: `uofg-text-input ${b()}`
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ r(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
|
-
className:
|
|
51
|
+
className: `uofg-text-input-clear-button ${d()}`,
|
|
52
52
|
onClick: () => {
|
|
53
53
|
var o;
|
|
54
54
|
if (!e.current) return;
|
|
55
55
|
const t = (o = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : o.set;
|
|
56
56
|
t == null || t.call(e.current, ""), e.current.dispatchEvent(new Event("input", { bubbles: !0 })), e.current.focus();
|
|
57
57
|
},
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ r(h, { icon: w })
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
] })
|
|
62
62
|
] });
|
|
63
63
|
}
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
O as TextInput
|
|
66
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "University of Guelph React Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"bugs": {
|
|
85
85
|
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "d6c612240262aa418ea533d8abf435ab8b172036"
|
|
88
88
|
}
|