@uoguelph/react-components 1.4.4 → 1.4.5
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/link-carousel-link.js +16 -13
- package/package.json +2 -2
|
@@ -5,17 +5,17 @@ import { FontAwesomeIcon as k } from "@fortawesome/react-fontawesome";
|
|
|
5
5
|
import { useContext as f } from "react";
|
|
6
6
|
import { twMerge as p } from "tailwind-merge";
|
|
7
7
|
import { tv as b } from "tailwind-variants";
|
|
8
|
-
import { LinkCarouselContext as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
as:
|
|
12
|
-
id:
|
|
8
|
+
import { LinkCarouselContext as C } from "./link-carousel-context.js";
|
|
9
|
+
const g = "a";
|
|
10
|
+
function x({
|
|
11
|
+
as: e,
|
|
12
|
+
id: t,
|
|
13
13
|
children: s,
|
|
14
|
-
className:
|
|
15
|
-
href:
|
|
14
|
+
className: r,
|
|
15
|
+
href: n,
|
|
16
16
|
...i
|
|
17
17
|
}) {
|
|
18
|
-
const l =
|
|
18
|
+
const l = e ?? g, o = f(C), a = b({
|
|
19
19
|
base: "flex w-full flex-1 items-center justify-between bg-black p-6 text-2xl text-black-contrast transition-colors hocus:bg-yellow hocus:text-black",
|
|
20
20
|
variants: {
|
|
21
21
|
stack: {
|
|
@@ -27,10 +27,13 @@ function g({
|
|
|
27
27
|
l,
|
|
28
28
|
{
|
|
29
29
|
...i,
|
|
30
|
-
href:
|
|
31
|
-
className: `uofg-link-carousel-link ${p(a({ stack:
|
|
30
|
+
href: n,
|
|
31
|
+
className: `uofg-link-carousel-link ${p(a({ stack: o == null ? void 0 : o.stack }), r)}`,
|
|
32
32
|
onMouseEnter: () => {
|
|
33
|
-
|
|
33
|
+
o == null || o.setActiveId(t);
|
|
34
|
+
},
|
|
35
|
+
onFocus: () => {
|
|
36
|
+
o == null || o.setActiveId(t);
|
|
34
37
|
},
|
|
35
38
|
children: [
|
|
36
39
|
s,
|
|
@@ -39,7 +42,7 @@ function g({
|
|
|
39
42
|
}
|
|
40
43
|
);
|
|
41
44
|
}
|
|
42
|
-
|
|
45
|
+
x.displayName = "LinkCarouselLink";
|
|
43
46
|
export {
|
|
44
|
-
|
|
47
|
+
x as LinkCarouselLink
|
|
45
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "University of Guelph React Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"bugs": {
|
|
77
77
|
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "191a69fb49d26007ad358ea06f1d1ded0b519a6e"
|
|
80
80
|
}
|