jcicl 0.0.89 → 0.0.91
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/.chunks/ButtonBase.js +68 -68
- package/.chunks/DefaultPropsProvider.js +439 -439
- package/.chunks/Input.js +254 -255
- package/.chunks/Portal.js +57 -57
- package/.chunks/TransitionGroupContext.js +7 -6
- package/LogoLoop/LogoLoop.js +1 -1
- package/README.md +5 -4
- package/{Spin → animation/Spin}/Spin.js +2 -2
- package/{ZoomEntrance → animation/ZoomEntrance}/ZoomEntrance.js +2 -2
- package/animation/index.js +6 -0
- package/index.js +50 -4
- package/package.json +1 -1
- /package/{Spin → animation/Spin}/index.js +0 -0
- /package/{ZoomEntrance → animation/ZoomEntrance}/index.js +0 -0
package/.chunks/Portal.js
CHANGED
|
@@ -1,41 +1,13 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { P as r, b as W, h as de, T as pe, i as me } from "./DefaultPropsProvider.js";
|
|
4
4
|
import { c as q, _ as Ee, a as he, T as K, b as ge, e as P, s as X } from "./TransitionGroupContext.js";
|
|
5
5
|
import { jsx as H } from "react/jsx-runtime";
|
|
6
6
|
import { T as ve } from "./emotion-styled.browser.esm.js";
|
|
7
7
|
import { c as Q } from "./chainPropTypes.js";
|
|
8
8
|
import * as xe from "react-dom";
|
|
9
9
|
import M from "react-dom";
|
|
10
|
-
let z = 0;
|
|
11
10
|
function ye(e) {
|
|
12
|
-
const [s, o] = f.useState(e), i = e || s;
|
|
13
|
-
return f.useEffect(() => {
|
|
14
|
-
s == null && (z += 1, o(`mui-${z}`));
|
|
15
|
-
}, [s]), i;
|
|
16
|
-
}
|
|
17
|
-
const Te = {
|
|
18
|
-
...f
|
|
19
|
-
}, F = Te.useId;
|
|
20
|
-
function Je(e) {
|
|
21
|
-
if (F !== void 0) {
|
|
22
|
-
const s = F();
|
|
23
|
-
return e ?? s;
|
|
24
|
-
}
|
|
25
|
-
return ye(e);
|
|
26
|
-
}
|
|
27
|
-
function be(e) {
|
|
28
|
-
return Object.keys(e).length === 0;
|
|
29
|
-
}
|
|
30
|
-
function Ne(e = null) {
|
|
31
|
-
const s = f.useContext(ve);
|
|
32
|
-
return !s || be(s) ? e : s;
|
|
33
|
-
}
|
|
34
|
-
const Oe = de();
|
|
35
|
-
function Re(e = Oe) {
|
|
36
|
-
return Ne(e);
|
|
37
|
-
}
|
|
38
|
-
function De(e) {
|
|
39
11
|
const {
|
|
40
12
|
prototype: s = {}
|
|
41
13
|
} = e;
|
|
@@ -51,29 +23,46 @@ function Y(e, s, o, i, n) {
|
|
|
51
23
|
return null;
|
|
52
24
|
let u;
|
|
53
25
|
const c = t.type;
|
|
54
|
-
return typeof c == "function" && !
|
|
26
|
+
return typeof c == "function" && !ye(c) && (u = "Did you accidentally use a plain function component for an element instead?"), u !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
55
27
|
}
|
|
56
28
|
const ee = Q(r.element, Y);
|
|
57
29
|
ee.isRequired = Q(r.element.isRequired, Y);
|
|
58
|
-
const
|
|
59
|
-
function
|
|
30
|
+
const Te = "exact-prop: ";
|
|
31
|
+
function be(e) {
|
|
60
32
|
return process.env.NODE_ENV === "production" ? e : {
|
|
61
33
|
...e,
|
|
62
|
-
[
|
|
34
|
+
[Te]: (s) => {
|
|
63
35
|
const o = Object.keys(s).filter((i) => !e.hasOwnProperty(i));
|
|
64
36
|
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((i) => `\`${i}\``).join(", ")}. Please remove them.`) : null;
|
|
65
37
|
}
|
|
66
38
|
};
|
|
67
39
|
}
|
|
68
|
-
function
|
|
40
|
+
function Ne(e, s, o, i, n) {
|
|
69
41
|
if (process.env.NODE_ENV === "production")
|
|
70
42
|
return null;
|
|
71
43
|
const t = e[s], a = n || s;
|
|
72
44
|
return t == null ? null : t && t.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
73
45
|
}
|
|
74
|
-
function
|
|
46
|
+
function Je(e) {
|
|
75
47
|
return e && e.ownerDocument || document;
|
|
76
48
|
}
|
|
49
|
+
let z = 0;
|
|
50
|
+
function Oe(e) {
|
|
51
|
+
const [s, o] = f.useState(e), i = e || s;
|
|
52
|
+
return f.useEffect(() => {
|
|
53
|
+
s == null && (z += 1, o(`mui-${z}`));
|
|
54
|
+
}, [s]), i;
|
|
55
|
+
}
|
|
56
|
+
const Re = {
|
|
57
|
+
...f
|
|
58
|
+
}, F = Re.useId;
|
|
59
|
+
function Ke(e) {
|
|
60
|
+
if (F !== void 0) {
|
|
61
|
+
const s = F();
|
|
62
|
+
return e ?? s;
|
|
63
|
+
}
|
|
64
|
+
return Oe(e);
|
|
65
|
+
}
|
|
77
66
|
function Qe({
|
|
78
67
|
controlled: e,
|
|
79
68
|
default: s,
|
|
@@ -101,11 +90,11 @@ function Qe({
|
|
|
101
90
|
}, []);
|
|
102
91
|
return [u, c];
|
|
103
92
|
}
|
|
104
|
-
function
|
|
93
|
+
function De(e) {
|
|
105
94
|
return typeof e == "string";
|
|
106
95
|
}
|
|
107
|
-
function
|
|
108
|
-
return e === void 0 ||
|
|
96
|
+
function Ce(e, s, o) {
|
|
97
|
+
return e === void 0 || De(e) ? s : {
|
|
109
98
|
...s,
|
|
110
99
|
ownerState: {
|
|
111
100
|
...s.ownerState,
|
|
@@ -113,7 +102,7 @@ function $e(e, s, o) {
|
|
|
113
102
|
}
|
|
114
103
|
};
|
|
115
104
|
}
|
|
116
|
-
function
|
|
105
|
+
function Se(e, s = []) {
|
|
117
106
|
if (e === void 0)
|
|
118
107
|
return {};
|
|
119
108
|
const o = {};
|
|
@@ -129,7 +118,7 @@ function Z(e) {
|
|
|
129
118
|
s[o] = e[o];
|
|
130
119
|
}), s;
|
|
131
120
|
}
|
|
132
|
-
function
|
|
121
|
+
function Ie(e) {
|
|
133
122
|
const {
|
|
134
123
|
getSlotProps: s,
|
|
135
124
|
additionalProps: o,
|
|
@@ -152,7 +141,7 @@ function _e(e) {
|
|
|
152
141
|
internalRef: void 0
|
|
153
142
|
};
|
|
154
143
|
}
|
|
155
|
-
const a =
|
|
144
|
+
const a = Se({
|
|
156
145
|
...n,
|
|
157
146
|
...i
|
|
158
147
|
}), u = Z(i), c = Z(n), l = s(a), p = W(l == null ? void 0 : l.className, o == null ? void 0 : o.className, t, n == null ? void 0 : n.className, i == null ? void 0 : i.className), m = {
|
|
@@ -171,7 +160,7 @@ function _e(e) {
|
|
|
171
160
|
internalRef: l.ref
|
|
172
161
|
};
|
|
173
162
|
}
|
|
174
|
-
function
|
|
163
|
+
function ke(e, s, o) {
|
|
175
164
|
return typeof e == "function" ? e(s, o) : e;
|
|
176
165
|
}
|
|
177
166
|
function Ye(e) {
|
|
@@ -182,14 +171,14 @@ function Ye(e) {
|
|
|
182
171
|
ownerState: i,
|
|
183
172
|
skipResolvingSlotProps: n = !1,
|
|
184
173
|
...t
|
|
185
|
-
} = e, a = n ? {} :
|
|
174
|
+
} = e, a = n ? {} : ke(o, i), {
|
|
186
175
|
props: u,
|
|
187
176
|
internalRef: c
|
|
188
|
-
} =
|
|
177
|
+
} = Ie({
|
|
189
178
|
...t,
|
|
190
179
|
externalSlotProps: a
|
|
191
180
|
}), l = q(c, a == null ? void 0 : a.ref, (m = e.additionalProps) == null ? void 0 : m.ref);
|
|
192
|
-
return
|
|
181
|
+
return Ce(s, {
|
|
193
182
|
...u,
|
|
194
183
|
ref: l
|
|
195
184
|
}, i);
|
|
@@ -198,11 +187,22 @@ function te(e) {
|
|
|
198
187
|
var s;
|
|
199
188
|
return parseInt(f.version, 10) >= 19 ? ((s = e == null ? void 0 : e.props) == null ? void 0 : s.ref) || null : (e == null ? void 0 : e.ref) || null;
|
|
200
189
|
}
|
|
190
|
+
function $e(e) {
|
|
191
|
+
return Object.keys(e).length === 0;
|
|
192
|
+
}
|
|
193
|
+
function we(e = null) {
|
|
194
|
+
const s = f.useContext(ve);
|
|
195
|
+
return !s || $e(s) ? e : s;
|
|
196
|
+
}
|
|
197
|
+
const _e = de();
|
|
198
|
+
function Me(e = _e) {
|
|
199
|
+
return we(e);
|
|
200
|
+
}
|
|
201
201
|
const Ve = /* @__PURE__ */ f.createContext();
|
|
202
202
|
process.env.NODE_ENV !== "production" && (r.node, r.bool);
|
|
203
203
|
const et = () => f.useContext(Ve) ?? !1;
|
|
204
204
|
function Le() {
|
|
205
|
-
const e =
|
|
205
|
+
const e = Me(me);
|
|
206
206
|
return process.env.NODE_ENV !== "production" && f.useDebugValue(e), e[pe] || e;
|
|
207
207
|
}
|
|
208
208
|
const B = {
|
|
@@ -792,33 +792,33 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
792
792
|
* By default, it uses the body of the top-level document object,
|
|
793
793
|
* so it's simply `document.body` most of the time.
|
|
794
794
|
*/
|
|
795
|
-
container: r.oneOfType([
|
|
795
|
+
container: r.oneOfType([Ne, r.func]),
|
|
796
796
|
/**
|
|
797
797
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
798
798
|
* @default false
|
|
799
799
|
*/
|
|
800
800
|
disablePortal: r.bool
|
|
801
801
|
});
|
|
802
|
-
process.env.NODE_ENV !== "production" && (G.propTypes =
|
|
802
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = be(G.propTypes));
|
|
803
803
|
export {
|
|
804
804
|
U as G,
|
|
805
|
-
|
|
805
|
+
Ne as H,
|
|
806
806
|
G as P,
|
|
807
807
|
g as T,
|
|
808
808
|
et as a,
|
|
809
809
|
Le as b,
|
|
810
810
|
Qe as c,
|
|
811
|
-
|
|
812
|
-
|
|
811
|
+
Ke as d,
|
|
812
|
+
Ce as e,
|
|
813
813
|
ee as f,
|
|
814
814
|
te as g,
|
|
815
|
-
|
|
816
|
-
|
|
815
|
+
Me as h,
|
|
816
|
+
be as i,
|
|
817
817
|
je as j,
|
|
818
818
|
J as k,
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
819
|
+
Se as l,
|
|
820
|
+
Ie as m,
|
|
821
|
+
Je as o,
|
|
822
|
+
ke as r,
|
|
823
823
|
Ye as u
|
|
824
824
|
};
|
|
@@ -4,13 +4,14 @@ var u = (t, e, r) => l(t, typeof e != "symbol" ? e + "" : e, r);
|
|
|
4
4
|
import { P as c } from "./DefaultPropsProvider.js";
|
|
5
5
|
import * as n from "react";
|
|
6
6
|
import p from "react";
|
|
7
|
-
const _ = c.oneOfType([c.func, c.object])
|
|
8
|
-
function
|
|
7
|
+
const _ = c.oneOfType([c.func, c.object]);
|
|
8
|
+
function d(t, e) {
|
|
9
9
|
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
10
10
|
}
|
|
11
|
+
const y = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
|
|
11
12
|
function b(t) {
|
|
12
13
|
const e = n.useRef(t);
|
|
13
|
-
return
|
|
14
|
+
return y(() => {
|
|
14
15
|
e.current = t;
|
|
15
16
|
}), n.useRef((...r) => (
|
|
16
17
|
// @ts-expect-error hide `this`
|
|
@@ -20,7 +21,7 @@ function b(t) {
|
|
|
20
21
|
function P(...t) {
|
|
21
22
|
return n.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
22
23
|
t.forEach((r) => {
|
|
23
|
-
|
|
24
|
+
d(r, e);
|
|
24
25
|
});
|
|
25
26
|
}, t);
|
|
26
27
|
}
|
|
@@ -82,9 +83,9 @@ export {
|
|
|
82
83
|
R as b,
|
|
83
84
|
P as c,
|
|
84
85
|
b as d,
|
|
85
|
-
|
|
86
|
+
y as e,
|
|
86
87
|
f,
|
|
87
88
|
_ as r,
|
|
88
|
-
|
|
89
|
+
d as s,
|
|
89
90
|
h as u
|
|
90
91
|
};
|
package/LogoLoop/LogoLoop.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as a } from "../.chunks/emotion-styled.browser.esm.js";
|
|
|
3
3
|
import { c as r } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import e from "../theme.js";
|
|
5
5
|
import { l as t } from "../.chunks/jocologo.js";
|
|
6
|
-
import i from "../ZoomEntrance/ZoomEntrance.js";
|
|
6
|
+
import i from "../animation/ZoomEntrance/ZoomEntrance.js";
|
|
7
7
|
const n = r`
|
|
8
8
|
height: 6em;
|
|
9
9
|
padding: 1.5em;
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
`npm install jcicl@latest`
|
|
14
14
|
|
|
15
15
|
```js
|
|
16
|
-
import Button, { ButtonProps } from 'jcicl/
|
|
17
|
-
import Nav, { NavProps } from 'jcicl/
|
|
16
|
+
import Button, { ButtonProps } from 'jcicl/Button';
|
|
17
|
+
import Nav, { NavProps } from 'jcicl/Nav';
|
|
18
18
|
|
|
19
19
|
const Component: React.FC<ButtonProps> = ({ ...buttonProps }) => <Button {...buttonProps}>Johnson County Button</Button>;
|
|
20
20
|
```
|
|
@@ -83,8 +83,9 @@ Templates are intended to render the HTML for predefined page layouts comprised
|
|
|
83
83
|
### Process
|
|
84
84
|
|
|
85
85
|
1. Add or update any components you wish. For new components, please create the associated `[NewComponent].stories.tsx` file to allow for documentation. In `.storybook/main.ts`, we are using the default string matching pattern to automatically index `*.stories.*` files 😊
|
|
86
|
-
2. Export any newly created components in the relevant index files: `(base/(super)composite/templates)/[NewComponent]/index.ts
|
|
87
|
-
3.
|
|
86
|
+
2. Export any newly created components in the relevant index files: `(base/(super)composite/templates)/[NewComponent]/index.ts` and `components/index.ts`.
|
|
87
|
+
3. Export any newly created types for the component from `(base/(super)composite/templates)/[NewComponent]/index.ts`
|
|
88
|
+
4. Publish the library and update relevant project dependencies
|
|
88
89
|
|
|
89
90
|
### Publishing the library
|
|
90
91
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "
|
|
2
|
-
import { c as r } from "
|
|
1
|
+
import { n as e } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as r } from "../../.chunks/emotion-react.browser.esm.js";
|
|
3
3
|
const s = e("div")({
|
|
4
4
|
...r`
|
|
5
5
|
transform-style: preserve-3d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "
|
|
2
|
-
import { c as r } from "
|
|
1
|
+
import { n as e } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as r } from "../../.chunks/emotion-react.browser.esm.js";
|
|
3
3
|
const s = e("div")({
|
|
4
4
|
...r`
|
|
5
5
|
@keyframes open {
|
package/index.js
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
1
|
+
import { default as t } from "./Avatar/Avatar.js";
|
|
2
|
+
import { AvatarWithImage as a } from "./AvatarWithImage/AvatarWithImage.js";
|
|
3
|
+
import { Button as p } from "./Button/Button.js";
|
|
4
|
+
import { Divider as x } from "./Divider/Divider.js";
|
|
5
|
+
import { Flex as l } from "./Flex/Flex.js";
|
|
6
|
+
import { Grid as i } from "./Grid/Grid.js";
|
|
7
|
+
import { default as s } from "./Icon/Icon.js";
|
|
8
|
+
import { I } from "./.chunks/Input.js";
|
|
9
|
+
import { LabeledValue as b } from "./LabeledValue/LabeledValue.js";
|
|
10
|
+
import { default as g } from "./ListButton/ListButton.js";
|
|
11
|
+
import { default as C } from "./Loading/Loading.js";
|
|
12
|
+
import { default as B } from "./ScrollContainer/ScrollContainer.js";
|
|
13
|
+
import { Accordion as E } from "./Accordion/Accordion.js";
|
|
14
|
+
import { default as D } from "./ErrorBoundary/ErrorBoundary.js";
|
|
15
|
+
import { InfoCard as G } from "./InfoCard/InfoCard.js";
|
|
16
|
+
import { LabeledInput as N } from "./LabeledInput/LabeledInput.js";
|
|
17
|
+
import { default as T } from "./List/List.js";
|
|
18
|
+
import { default as j } from "./LogoLoop/LogoLoop.js";
|
|
19
|
+
import { Tooltip as q } from "./Tooltip/Tooltip.js";
|
|
20
|
+
import { default as z } from "./WithLabel/WithLabel.js";
|
|
21
|
+
import { default as K } from "./WithLoading/WithLoading.js";
|
|
22
|
+
import { default as O } from "./AppHeader/AppHeader.js";
|
|
23
|
+
import { EditableInfoCard as Q } from "./EditableInfoCard/EditableInfoCard.js";
|
|
24
|
+
import { Nav as U } from "./Nav/Nav.js";
|
|
25
|
+
import { default as Y } from "./AppContainer/AppContainer.js";
|
|
3
26
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
27
|
+
E as Accordion,
|
|
28
|
+
Y as AppContainer,
|
|
29
|
+
O as AppHeader,
|
|
30
|
+
t as Avatar,
|
|
31
|
+
a as AvatarWithImage,
|
|
32
|
+
p as Button,
|
|
33
|
+
x as Divider,
|
|
34
|
+
Q as EditableInfoCard,
|
|
35
|
+
D as ErrorBoundary,
|
|
36
|
+
l as Flex,
|
|
37
|
+
i as Grid,
|
|
38
|
+
s as Icon,
|
|
39
|
+
G as InfoCard,
|
|
40
|
+
I as Input,
|
|
41
|
+
N as LabeledInput,
|
|
42
|
+
b as LabeledValue,
|
|
43
|
+
T as List,
|
|
44
|
+
g as ListButton,
|
|
45
|
+
C as Loading,
|
|
46
|
+
j as LogoLoop,
|
|
47
|
+
U as Nav,
|
|
48
|
+
B as ScrollContainer,
|
|
49
|
+
q as Tooltip,
|
|
50
|
+
z as WithLabel,
|
|
51
|
+
K as WithLoading
|
|
6
52
|
};
|
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.91",
|
|
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",
|
|
File without changes
|
|
File without changes
|