jcicl 0.0.155 → 0.0.157

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.
Files changed (2) hide show
  1. package/Modal/Modal.js +10 -15
  2. package/package.json +1 -1
package/Modal/Modal.js CHANGED
@@ -1,31 +1,26 @@
1
- import { jsx as a } 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`
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { n } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as r } from "../.chunks/emotion-react.browser.esm.js";
4
+ import a from "../theme.js";
5
+ const s = n("div")(({ open: o }) => ({
6
+ ...r`
8
7
  opacity: ${o ? 1 : 0};
9
8
  pointer-events: ${o ? "all" : "none"};
10
9
  position: fixed;
11
10
  z-index: 7007;
12
11
  top: 0;
12
+ left: 0;
13
13
  width: 100vw;
14
14
  height: 100vh;
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  justify-content: center;
18
18
  align-items: center;
19
- background-color: ${c.colors.modalBackdrop};
19
+ background-color: ${a.colors.modalBackdrop};
20
20
  box-sizing: border-box;
21
21
  transition: opacity 313ms ease-in-out;
22
22
  `
23
- })), y = ({ open: o = !1, onAreaClick: e, children: t }) => {
24
- const [n, i] = r(o);
25
- return /* @__PURE__ */ a(d, { className: "jcModal", open: n, onClick: () => {
26
- e && e(), i(!1);
27
- }, children: t });
28
- };
23
+ })), f = ({ open: o = !1, onAreaClick: t, children: e }) => /* @__PURE__ */ i(s, { className: "jcModal", open: o, onClick: t, children: e });
29
24
  export {
30
- y as default
25
+ f as default
31
26
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.155",
4
+ "version": "0.0.157",
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",