jcicl 0.0.149 → 0.0.153
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/Modal/Modal.d.ts +6 -0
- package/Modal/Modal.js +30 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +4 -0
- package/package.json +1 -1
- package/theme.d.ts +1 -0
- package/theme.js +1 -0
package/Modal/Modal.d.ts
ADDED
package/Modal/Modal.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { n as s } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as l } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import c from "../theme.js";
|
|
6
|
+
const d = s("div")(({ open: o }) => ({
|
|
7
|
+
...l`
|
|
8
|
+
opacity: ${o ? 1 : 0};
|
|
9
|
+
pointer-events: ${o ? "all" : "none"};
|
|
10
|
+
z-index: 7007;
|
|
11
|
+
top: 0;
|
|
12
|
+
width: 100vw;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
background-color: ${c.colors.modalBackdrop};
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
transition: opacity 313ms ease-in-out;
|
|
21
|
+
`
|
|
22
|
+
})), y = ({ open: o = !1, onAreaClick: e, children: t }) => {
|
|
23
|
+
const [n, a] = r(o);
|
|
24
|
+
return /* @__PURE__ */ i(d, { className: "jcModal", open: n, onClick: () => {
|
|
25
|
+
e && e(), a(!1);
|
|
26
|
+
}, children: t });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
y as default
|
|
30
|
+
};
|
package/Modal/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type ModalProps } from './Modal';
|
package/Modal/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.153",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|
package/theme.d.ts
CHANGED