@uoguelph/react-components 1.6.0-rc.4 → 1.6.0-rc.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/modal.js +6 -6
- package/package.json +2 -2
package/dist/modal.js
CHANGED
|
@@ -3,16 +3,16 @@ import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { h as b } from "./solid-CwgZbR1c.js";
|
|
4
4
|
import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { Dialog as x, DialogBackdrop as h, DialogPanel as w, CloseButton as y } from "@headlessui/react";
|
|
6
|
-
import { tv as
|
|
7
|
-
function
|
|
6
|
+
import { tv as v } from "tailwind-variants";
|
|
7
|
+
function N({ open: r, onClose: o = () => {
|
|
8
8
|
}, role: t = "dialog", labelledBy: l, centered: s, children: i }) {
|
|
9
|
-
const n =
|
|
9
|
+
const n = v({
|
|
10
10
|
slots: {
|
|
11
11
|
base: "relative z-50 transition duration-300 ease-out data-[closed]:opacity-0",
|
|
12
12
|
backdrop: "fixed inset-0 bg-black/40 transition duration-300 ease-out data-[closed]:opacity-0",
|
|
13
13
|
wrapper: "fixed inset-0 flex w-screen justify-center md:p-6",
|
|
14
14
|
panelWrapper: "relative flex w-full flex-col items-center",
|
|
15
|
-
panel: "",
|
|
15
|
+
panel: "relative",
|
|
16
16
|
closeButton: "-top-3.5 -right-3.5 flex h-9 w-full items-center justify-center gap-1 border-b border-white/40 bg-grey-dark-bg text-xl text-white transition-colors hover:bg-red md:absolute md:w-9 md:rounded-full"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
@@ -45,7 +45,7 @@ function k({ open: r, onClose: o = () => {
|
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
N.displayName = "Modal";
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
N as Modal
|
|
51
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/react-components",
|
|
3
|
-
"version": "1.6.0-rc.
|
|
3
|
+
"version": "1.6.0-rc.5",
|
|
4
4
|
"description": "University of Guelph React Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"bugs": {
|
|
79
79
|
"url": "https://github.com/ccswbs/uofg-components/issues"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "93fb2ee3acfb002ada9f58bcee0b74a0ac05874d"
|
|
82
82
|
}
|