@uoguelph/react-components 1.3.13 → 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/statistics-item.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
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 { StatisticsContext as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { useContext as s, useEffect as a } from "react";
|
|
4
|
+
import { twMerge as i } from "tailwind-merge";
|
|
5
|
+
import { tv as n } from "tailwind-variants";
|
|
6
|
+
import { StatisticsContext as f } from "./statistics-context.js";
|
|
7
|
+
function c({ children: e, className: r }) {
|
|
8
|
+
const t = s(f);
|
|
9
|
+
a(() => {
|
|
10
|
+
t == null || t.incrementCount();
|
|
11
11
|
}, []);
|
|
12
|
-
const
|
|
13
|
-
base: "
|
|
12
|
+
const o = n({
|
|
13
|
+
base: "relative flex flex-1 flex-col justify-around gap-2",
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
16
|
"solid-colors-full": [
|
|
17
|
-
'
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
'
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
17
|
+
'sm:before:content-[""]',
|
|
18
|
+
"before:absolute",
|
|
19
|
+
"before:top-0",
|
|
20
|
+
"before:right-full",
|
|
21
|
+
"before:w-[calc((100vw-var(--statistic-bg-width))/2)]",
|
|
22
|
+
"before:h-full",
|
|
23
|
+
"before:bg-inherit",
|
|
24
|
+
"before:z-[-1]",
|
|
25
|
+
"first:before:z-0",
|
|
26
|
+
'sm:after:content-[""]',
|
|
27
|
+
"after:absolute",
|
|
28
|
+
"after:top-0",
|
|
29
|
+
"after:left-full",
|
|
30
|
+
"after:w-[calc((100vw-var(--statistic-bg-width))/2)]",
|
|
31
|
+
"after:h-full",
|
|
32
|
+
"after:bg-inherit",
|
|
33
|
+
"after:z-[-1]",
|
|
34
|
+
"last:after:z-0"
|
|
35
35
|
],
|
|
36
36
|
"solid-colors-no-gap": "",
|
|
37
37
|
"solid-colors": "",
|
|
38
38
|
"light-grey": "",
|
|
39
|
-
"left-border": "
|
|
39
|
+
"left-border": "border-l-8 border-black nth-[2n]:border-red nth-[3n]:border-yellow nth-[4n]:border-blue"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
compoundVariants: [
|
|
43
43
|
{
|
|
44
44
|
variant: ["light-grey", "left-border"],
|
|
45
|
-
class: "
|
|
45
|
+
class: "bg-grey-light-bg text-black-on-light"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
variant: ["solid-colors-full", "solid-colors-no-gap", "solid-colors", "light-grey"],
|
|
49
|
-
class: "
|
|
49
|
+
class: "text-center"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
variant: ["solid-colors-full", "solid-colors-no-gap", "solid-colors"],
|
|
53
|
-
class: "
|
|
53
|
+
class: "border-b border-white bg-black text-black-contrast nth-[2n]:bg-red nth-[2n]:text-red-contrast nth-[3n]:bg-yellow nth-[3n]:text-yellow-contrast nth-[4n]:bg-blue nth-[4n]:text-blue-contrast"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
});
|
|
57
|
-
return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${
|
|
57
|
+
return /* @__PURE__ */ l("div", { className: `uofg-statistics-item ${i(o({ variant: t == null ? void 0 : t.variant }), r)}`, children: e });
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
c.displayName = "StatisticsItem";
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
c as StatisticsItem
|
|
62
62
|
};
|
package/dist/statistics.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { tv as
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useState as u } from "react";
|
|
4
|
+
import { twMerge as f } from "tailwind-merge";
|
|
5
|
+
import { tv as g } from "tailwind-variants";
|
|
6
6
|
import { u as n } from "./use-resize-observer-DmddO4OQ.js";
|
|
7
7
|
import { StatisticsContext as p } from "./statistics-context.js";
|
|
8
8
|
import { StatisticsItem as I } from "./statistics-item.js";
|
|
9
9
|
import { StatisticsItemImage as F } from "./statistics-item-image.js";
|
|
10
10
|
import { StatisticsItemRepresents as N } from "./statistics-item-represents.js";
|
|
11
11
|
import { StatisticsItemValue as j } from "./statistics-item-value.js";
|
|
12
|
-
function v({ children:
|
|
13
|
-
const [
|
|
14
|
-
base: "
|
|
12
|
+
function v({ children: o, variant: s, className: r }) {
|
|
13
|
+
const [i, l] = u(0), [c, e] = n(), d = g({
|
|
14
|
+
base: "mx-auto my-0 flex flex-col flex-wrap sm:flex-row",
|
|
15
15
|
variants: {
|
|
16
16
|
divisibleByTwo: {
|
|
17
17
|
true: ""
|
|
@@ -20,7 +20,7 @@ function v({ children: t, variant: o, className: r }) {
|
|
|
20
20
|
true: ""
|
|
21
21
|
},
|
|
22
22
|
divisibleByFour: {
|
|
23
|
-
true: "
|
|
23
|
+
true: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
24
24
|
},
|
|
25
25
|
variant: {
|
|
26
26
|
"solid-colors-full": "",
|
|
@@ -33,46 +33,46 @@ function v({ children: t, variant: o, className: r }) {
|
|
|
33
33
|
compoundVariants: [
|
|
34
34
|
{
|
|
35
35
|
variant: ["solid-colors", "light-grey", "left-border"],
|
|
36
|
-
class: "
|
|
36
|
+
class: "gap-4"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
divisibleByTwo: !0,
|
|
40
40
|
divisibleByThree: !1,
|
|
41
41
|
divisibleByFour: !1,
|
|
42
|
-
class: "
|
|
42
|
+
class: "grid grid-cols-1 sm:grid-cols-2"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
divisibleByThree: !0,
|
|
46
46
|
divisibleByFour: !1,
|
|
47
|
-
class: "
|
|
47
|
+
class: "grid grid-cols-1 sm:grid-cols-3"
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
variant:
|
|
53
|
-
divisibleByTwo:
|
|
54
|
-
divisibleByThree:
|
|
55
|
-
divisibleByFour:
|
|
50
|
+
}), a = f(
|
|
51
|
+
d({
|
|
52
|
+
variant: s,
|
|
53
|
+
divisibleByTwo: i % 2 === 0,
|
|
54
|
+
divisibleByThree: i % 3 === 0,
|
|
55
|
+
divisibleByFour: i % 4 === 0
|
|
56
56
|
}),
|
|
57
57
|
r
|
|
58
58
|
);
|
|
59
|
-
return /* @__PURE__ */
|
|
59
|
+
return /* @__PURE__ */ t(
|
|
60
60
|
p.Provider,
|
|
61
61
|
{
|
|
62
62
|
value: {
|
|
63
|
-
variant:
|
|
64
|
-
incrementCount: () => l((
|
|
63
|
+
variant: s,
|
|
64
|
+
incrementCount: () => l((m) => m + 1)
|
|
65
65
|
},
|
|
66
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ t(
|
|
67
67
|
"dl",
|
|
68
68
|
{
|
|
69
|
-
className: `uofg-statistics ${
|
|
69
|
+
className: `uofg-statistics ${a}`,
|
|
70
70
|
style: (
|
|
71
71
|
/* @ts-expect-error TypeScript doesn't like CSS Variables */
|
|
72
|
-
|
|
72
|
+
s === "solid-colors-full" ? { "--statistic-bg-width": (e == null ? void 0 : e.contentRect.width) + "px" } : void 0
|
|
73
73
|
),
|
|
74
|
-
ref:
|
|
75
|
-
children:
|
|
74
|
+
ref: c,
|
|
75
|
+
children: o
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as l } from "tailwind-merge";
|
|
3
|
+
const u = "img";
|
|
4
4
|
function f({
|
|
5
5
|
as: o,
|
|
6
6
|
src: t,
|
|
7
7
|
alt: e,
|
|
8
8
|
width: r,
|
|
9
|
-
height:
|
|
10
|
-
className:
|
|
11
|
-
...
|
|
9
|
+
height: n,
|
|
10
|
+
className: s,
|
|
11
|
+
...a
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
13
|
+
const m = o ?? u, g = l("h-full w-full brightness-50", s);
|
|
14
|
+
return /* @__PURE__ */ c(
|
|
15
|
+
m,
|
|
16
16
|
{
|
|
17
|
-
...
|
|
17
|
+
...a,
|
|
18
18
|
src: t,
|
|
19
19
|
alt: e,
|
|
20
20
|
width: r,
|
|
21
|
-
height:
|
|
22
|
-
className: `uofg-story-background-image ${
|
|
21
|
+
height: n,
|
|
22
|
+
className: `uofg-story-background-image ${g}`
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
package/dist/story-background.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 a } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as l } from "tailwind-merge";
|
|
3
|
+
function s({ children: o, className: r }) {
|
|
4
|
+
const t = l("absolute z-0 h-full max-h-full w-full", r);
|
|
5
|
+
return /* @__PURE__ */ a("div", { className: `uofg-story-background ${t}`, children: o });
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
s.displayName = "StoryBackground";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
s as StoryBackground
|
|
10
10
|
};
|
package/dist/story-body.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as s } from "tailwind-merge";
|
|
3
|
-
function
|
|
4
|
-
const r = s(
|
|
5
|
-
|
|
6
|
-
e
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: o });
|
|
3
|
+
function i({ children: e, className: o }) {
|
|
4
|
+
const r = s("relative flex w-full items-center justify-center overflow-hidden", o);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-body ${r}`, children: e });
|
|
9
6
|
}
|
|
10
|
-
|
|
7
|
+
i.displayName = "StoryBody";
|
|
11
8
|
export {
|
|
12
|
-
|
|
9
|
+
i as StoryBody
|
|
13
10
|
};
|
package/dist/story-footer.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
import { tv as
|
|
4
|
-
import { Container as
|
|
5
|
-
function
|
|
6
|
-
const r =
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as i } from "tailwind-merge";
|
|
3
|
+
import { tv as c } from "tailwind-variants";
|
|
4
|
+
import { Container as a } from "./container.js";
|
|
5
|
+
function f({ children: e, className: o }) {
|
|
6
|
+
const r = c({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "
|
|
9
|
-
container: "
|
|
8
|
+
base: "flex w-full items-center justify-center bg-black p-4 text-white",
|
|
9
|
+
container: "flex items-center justify-center p-2 text-xl"
|
|
10
10
|
}
|
|
11
|
-
}), { base: s, container:
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
}), { base: s, container: n } = r();
|
|
12
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-footer ${i(s(), o)}`, children: /* @__PURE__ */ t(a, { className: `uofg-story-footer-container ${n()}`, children: e }) });
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
f.displayName = "StoryFooter";
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
f as StoryFooter
|
|
17
17
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as n } from "tailwind-merge";
|
|
3
|
-
function
|
|
4
|
-
const t = n("
|
|
3
|
+
function s({ children: o, className: r }) {
|
|
4
|
+
const t = n("flex w-full justify-center px-8 lg:w-1/2 lg:p-0", r);
|
|
5
5
|
return /* @__PURE__ */ e("div", { className: `uofg-story-foreground-content ${t}`, children: o });
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
s.displayName = "StoryForegroundContent";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
s as StoryForegroundContent
|
|
10
10
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { twMerge as
|
|
2
|
+
import { twMerge as u } from "tailwind-merge";
|
|
3
3
|
import { tv as c } from "tailwind-variants";
|
|
4
4
|
const d = "img";
|
|
5
5
|
function p({
|
|
6
6
|
as: e,
|
|
7
7
|
src: r,
|
|
8
8
|
alt: t,
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
9
|
+
width: s,
|
|
10
|
+
height: m,
|
|
11
|
+
className: a,
|
|
12
|
+
...n
|
|
13
13
|
}) {
|
|
14
|
-
const
|
|
14
|
+
const l = e ?? d, g = c({
|
|
15
15
|
slots: {
|
|
16
|
-
base: "
|
|
17
|
-
image: "
|
|
16
|
+
base: "flex w-full justify-center lg:mt-auto lg:w-1/2",
|
|
17
|
+
image: "h-full w-full"
|
|
18
18
|
}
|
|
19
|
-
}), { base:
|
|
20
|
-
return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${
|
|
21
|
-
|
|
19
|
+
}), { base: f, image: i } = g();
|
|
20
|
+
return /* @__PURE__ */ o("div", { className: `uofg-story-foreground-image-container ${f()}`, children: /* @__PURE__ */ o(
|
|
21
|
+
l,
|
|
22
22
|
{
|
|
23
|
-
...
|
|
23
|
+
...n,
|
|
24
24
|
src: r,
|
|
25
25
|
alt: t,
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
28
|
-
className: `uofg-story-foreground-image ${i(
|
|
26
|
+
width: s,
|
|
27
|
+
height: m,
|
|
28
|
+
className: `uofg-story-foreground-image ${u(i(), a)}`
|
|
29
29
|
}
|
|
30
30
|
) });
|
|
31
31
|
}
|
package/dist/story-foreground.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { twMerge as
|
|
3
|
-
function
|
|
4
|
-
const e =
|
|
5
|
-
|
|
6
|
-
r
|
|
7
|
-
);
|
|
8
|
-
return /* @__PURE__ */ g("div", { className: `uofg-story-foreground ${e}`, children: o });
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { twMerge as l } from "tailwind-merge";
|
|
3
|
+
function s({ children: r, className: o }) {
|
|
4
|
+
const e = l("z-10 flex w-full max-w-[137rem] flex-col items-center gap-6 px-4 lg:flex-row", o);
|
|
5
|
+
return /* @__PURE__ */ t("div", { className: `uofg-story-foreground ${e}`, children: r });
|
|
9
6
|
}
|
|
10
|
-
|
|
7
|
+
s.displayName = "StoryForeground";
|
|
11
8
|
export {
|
|
12
|
-
|
|
9
|
+
s as StoryForeground
|
|
13
10
|
};
|
package/dist/story.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { twMerge as m } from "tailwind-merge";
|
|
3
|
-
import { StoryBackground as
|
|
4
|
-
import { StoryBackgroundImage as
|
|
3
|
+
import { StoryBackground as a } from "./story-background.js";
|
|
4
|
+
import { StoryBackgroundImage as s } from "./story-background-image.js";
|
|
5
5
|
import { StoryBody as S } from "./story-body.js";
|
|
6
6
|
import { StoryFooter as l } from "./story-footer.js";
|
|
7
7
|
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("
|
|
11
|
+
const t = m("flex w-full flex-col", r);
|
|
12
12
|
return /* @__PURE__ */ e("div", { className: `uofg-story ${t}`, children: o });
|
|
13
13
|
}
|
|
14
14
|
f.displayName = "Story";
|
|
15
15
|
export {
|
|
16
16
|
f as Story,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
a as StoryBackground,
|
|
18
|
+
s as StoryBackgroundImage,
|
|
19
19
|
S as StoryBody,
|
|
20
20
|
l as StoryFooter,
|
|
21
21
|
i as StoryForeground,
|
package/dist/tab-list.js
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { TabList as r } from "@headlessui/react";
|
|
4
4
|
import { twMerge as l } from "tailwind-merge";
|
|
5
|
-
function a({ children:
|
|
6
|
-
const s = l(
|
|
7
|
-
|
|
8
|
-
t
|
|
9
|
-
);
|
|
10
|
-
return /* @__PURE__ */ e(r, { className: `uofg-tab-list ${s}`, children: o });
|
|
5
|
+
function a({ children: t, className: o }) {
|
|
6
|
+
const s = l("uofg-tab-list flex w-full flex-col gap-1 border-b-4 border-yellow md:flex-row", o);
|
|
7
|
+
return /* @__PURE__ */ e(r, { className: `uofg-tab-list ${s}`, children: t });
|
|
11
8
|
}
|
|
12
9
|
a.displayName = "TabList";
|
|
13
10
|
export {
|
package/dist/tab-panel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { TabPanel as t } from "@headlessui/react";
|
|
4
4
|
import { twMerge as l } from "tailwind-merge";
|
|
5
5
|
function r({ children: a, className: e }) {
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
const n = l("uofg-tab-panel py-4", e);
|
|
7
|
+
return /* @__PURE__ */ o(t, { className: `uofg-tab-panel ${n}`, children: a });
|
|
8
8
|
}
|
|
9
9
|
r.displayName = "TabPanel";
|
|
10
10
|
export {
|
package/dist/tab.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Tab as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { Tab as r } from "@headlessui/react";
|
|
4
|
+
import { twMerge as s } from "tailwind-merge";
|
|
5
|
+
function b({ children: e, className: t }) {
|
|
6
|
+
const o = s(
|
|
7
7
|
"uofg-tab-list",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
8
|
+
"mb-1",
|
|
9
|
+
"rounded-t-sm",
|
|
10
|
+
"bg-grey-light-bg",
|
|
11
|
+
"px-4",
|
|
12
|
+
"py-3",
|
|
13
|
+
"text-lg",
|
|
14
|
+
"font-bold",
|
|
15
|
+
"text-black",
|
|
16
|
+
"transition-colors",
|
|
17
|
+
"hover:bg-grey-light",
|
|
18
|
+
"focus:bg-grey-light",
|
|
19
|
+
"focus:outline-none",
|
|
20
|
+
"ui-selected:mb-0",
|
|
21
|
+
"ui-selected:border-2",
|
|
22
|
+
"ui-selected:border-yellow",
|
|
23
|
+
"ui-selected:bg-yellow",
|
|
24
|
+
"flex-1",
|
|
25
|
+
t
|
|
26
26
|
);
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ l(r, { className: `uofg-tab ${o}`, children: e });
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
b.displayName = "Tab";
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
b as Tab
|
|
32
32
|
};
|
package/dist/text-input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, jsx as
|
|
2
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { h as y } from "./regular-DmWV6rTj.js";
|
|
4
4
|
import { FontAwesomeIcon as N } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { Field as B, Label as E, Input as $ } from "@headlessui/react";
|
|
@@ -7,69 +7,69 @@ import { useState as j, useRef as C, useEffect as I } from "react";
|
|
|
7
7
|
import { twMerge as k } from "tailwind-merge";
|
|
8
8
|
import { tv as F } from "tailwind-variants";
|
|
9
9
|
function P({
|
|
10
|
-
initialValue:
|
|
11
|
-
type:
|
|
12
|
-
placeholder:
|
|
13
|
-
onInput:
|
|
14
|
-
children:
|
|
15
|
-
className:
|
|
16
|
-
hideClear:
|
|
10
|
+
initialValue: p = "",
|
|
11
|
+
type: a = "text",
|
|
12
|
+
placeholder: f = "",
|
|
13
|
+
onInput: i,
|
|
14
|
+
children: u,
|
|
15
|
+
className: m,
|
|
16
|
+
hideClear: x,
|
|
17
17
|
value: l,
|
|
18
|
-
...
|
|
18
|
+
...b
|
|
19
19
|
}) {
|
|
20
|
-
const [
|
|
20
|
+
const [n, s] = j(p), e = C(null);
|
|
21
21
|
I(() => {
|
|
22
22
|
s(l ?? "");
|
|
23
23
|
}, [l]);
|
|
24
|
-
const
|
|
24
|
+
const d = F({
|
|
25
25
|
slots: {
|
|
26
|
-
base: "
|
|
27
|
-
wrapper: "
|
|
28
|
-
input: "
|
|
29
|
-
clearButton: "
|
|
26
|
+
base: "flex flex-col gap-0.5",
|
|
27
|
+
wrapper: "text-input flex rounded-md border border-grey-light bg-white px-4 py-2 transition-colors focus-within:border-blue focus:outline-none",
|
|
28
|
+
input: "flex-1 bg-white focus:outline-none",
|
|
29
|
+
clearButton: "rounded-full text-xl"
|
|
30
30
|
},
|
|
31
31
|
variants: {
|
|
32
32
|
empty: {
|
|
33
33
|
true: {
|
|
34
|
-
clearButton: "
|
|
34
|
+
clearButton: "pointer-events-none invisible"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
hide: {
|
|
38
38
|
true: {
|
|
39
|
-
clearButton: "
|
|
39
|
+
clearButton: "pointer-events-none invisible"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}), { base:
|
|
44
|
-
return /* @__PURE__ */ c(B, { className: `uofg-text-input-field ${k(
|
|
45
|
-
|
|
43
|
+
}), { base: g, wrapper: w, input: h, clearButton: v } = d({ empty: (n == null ? void 0 : n.length) === 0 });
|
|
44
|
+
return /* @__PURE__ */ c(B, { className: `uofg-text-input-field ${k(g(), m)}`, children: [
|
|
45
|
+
u && /* @__PURE__ */ o(E, { className: "uofg-text-input-label", children: u }),
|
|
46
46
|
/* @__PURE__ */ c("div", { className: `uofg-text-input-wrapper ${w()}`, children: [
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ o(
|
|
48
48
|
$,
|
|
49
49
|
{
|
|
50
|
-
...
|
|
50
|
+
...b,
|
|
51
51
|
ref: e,
|
|
52
|
-
value:
|
|
53
|
-
type:
|
|
54
|
-
placeholder:
|
|
52
|
+
value: n,
|
|
53
|
+
type: a,
|
|
54
|
+
placeholder: f,
|
|
55
55
|
onInput: (t) => {
|
|
56
|
-
var
|
|
57
|
-
s((
|
|
56
|
+
var r;
|
|
57
|
+
s((r = t == null ? void 0 : t.target) == null ? void 0 : r.value), i == null || i(t);
|
|
58
58
|
},
|
|
59
59
|
className: `uofg-text-input ${h()}`
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ o(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
65
|
-
className: `uofg-text-input-clear-button ${v({ hide:
|
|
65
|
+
className: `uofg-text-input-clear-button ${v({ hide: x })}`,
|
|
66
66
|
onClick: () => {
|
|
67
|
-
var
|
|
67
|
+
var r;
|
|
68
68
|
if (!e.current) return;
|
|
69
|
-
const t = (
|
|
69
|
+
const t = (r = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : r.set;
|
|
70
70
|
t == null || t.call(e.current, ""), e.current.dispatchEvent(new Event("input", { bubbles: !0 })), e.current.focus();
|
|
71
71
|
},
|
|
72
|
-
children: /* @__PURE__ */
|
|
72
|
+
children: /* @__PURE__ */ o(N, { icon: y })
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
75
|
] })
|