@uoguelph/react-components 1.5.1 → 1.5.2

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.
@@ -1,22 +1,19 @@
1
1
  "use client";
2
- import { jsx as i, Fragment as l } from "react/jsx-runtime";
2
+ import { jsx as o, Fragment as c } from "react/jsx-runtime";
3
3
  import { useContext as m } from "react";
4
- import { twMerge as n } from "tailwind-merge";
5
- import { tv as c } from "tailwind-variants";
6
- import { LinkCarouselContext as u } from "./link-carousel-context.js";
7
- function b({ id: t, children: r, className: o }) {
8
- const e = m(u), s = c({
4
+ import { twMerge as u } from "tailwind-merge";
5
+ import { tv as v } from "tailwind-variants";
6
+ import { LinkCarouselContext as f } from "./link-carousel-context.js";
7
+ function A({ id: t, children: r, className: s }) {
8
+ const e = m(f), a = (e == null ? void 0 : e.activeId) === t, i = (e == null ? void 0 : e.previousActiveId) === t, n = v({
9
9
  base: "hidden w-full bg-white",
10
10
  variants: {
11
11
  isActive: { true: "relative z-10 block animate-fade-in" },
12
12
  wasActive: { true: "absolute top-0 left-0 z-0 block" }
13
13
  }
14
- }), a = n(
15
- s({ isActive: (e == null ? void 0 : e.activeId) === t, wasActive: (e == null ? void 0 : e.previousActiveId) === t }),
16
- o
17
- );
18
- return /* @__PURE__ */ i(l, { children: /* @__PURE__ */ i("div", { className: `uofg-link-carousel-item ${a}`, children: r }) });
14
+ }), l = u(n({ isActive: a, wasActive: i }), s);
15
+ return /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o("div", { className: `uofg-link-carousel-item ${l}`, inert: i, children: r }) });
19
16
  }
20
17
  export {
21
- b as LinkCarouselItem
18
+ A as LinkCarouselItem
22
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
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": "9a0a3dad89c88035407bb4bf8a8cb9d6a293dd88"
79
+ "gitHead": "264faf8e4bc1517c084c45b9e0d7f55fcb5db364"
80
80
  }