jcicl 0.0.245 → 0.0.249
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/AppContainer.js +2 -2
- package/AppHeader/AppHeader.js +50 -44
- package/DefaultTemplate/DefaultTemplate.js +47 -43
- package/Overlays/Overlays.d.ts +7 -3
- package/Overlays/Overlays.js +36 -22
- package/Overlays/index.d.ts +1 -1
- package/Overlays/index.js +3 -2
- package/Stepper/Stepper.js +73 -68
- package/package.json +1 -1
package/.chunks/AppContainer.js
CHANGED
|
@@ -680,7 +680,7 @@ const xe = se(/* @__PURE__ */ a("path", {
|
|
|
680
680
|
height: calc(100vh - ${i.constants.appHeaderHeight}px);
|
|
681
681
|
background-color: ${o};
|
|
682
682
|
box-shadow: 0 3px 6px 3px ${e};
|
|
683
|
-
padding:
|
|
683
|
+
padding: 13px;
|
|
684
684
|
overflow: visible;
|
|
685
685
|
}
|
|
686
686
|
|
|
@@ -727,7 +727,7 @@ const xe = se(/* @__PURE__ */ a("path", {
|
|
|
727
727
|
width: "100%",
|
|
728
728
|
height: "calc(100% + 2px)",
|
|
729
729
|
boxSizing: "border-box",
|
|
730
|
-
padding: "
|
|
730
|
+
padding: "0 9px",
|
|
731
731
|
h1: {
|
|
732
732
|
margin: 0
|
|
733
733
|
},
|
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as M from "react";
|
|
3
|
-
import
|
|
3
|
+
import Z, { useState as z, useLayoutEffect as T } from "react";
|
|
4
4
|
import { n as f } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
5
|
import { c as b } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
6
|
import { Search as E } from "../Search/Search.js";
|
|
7
7
|
import { Button as H } from "../Button/Button.js";
|
|
8
8
|
import I from "../Icon/Icon.js";
|
|
9
|
-
import
|
|
10
|
-
import { c as
|
|
11
|
-
import
|
|
12
|
-
const te =
|
|
9
|
+
import ee from "../WithLabel/WithLabel.js";
|
|
10
|
+
import { c as F } from "../.chunks/createSvgIcon.js";
|
|
11
|
+
import L from "../theme.js";
|
|
12
|
+
const te = Z[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ne = (e) => {
|
|
13
13
|
const n = M.useRef(e);
|
|
14
14
|
return M.useEffect(() => {
|
|
15
15
|
n.current = e;
|
|
@@ -67,12 +67,12 @@ function re(e) {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
const ce = (e) =>
|
|
70
|
+
let S;
|
|
71
|
+
const ce = (e) => S || (S = re(e)), se = F(/* @__PURE__ */ t("path", {
|
|
72
72
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
73
|
-
}), "Menu"),
|
|
73
|
+
}), "Menu"), R = F(/* @__PURE__ */ t("path", {
|
|
74
74
|
d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
|
|
75
|
-
}), "PersonOutlineOutlined"),
|
|
75
|
+
}), "PersonOutlineOutlined"), _ = f("div")(
|
|
76
76
|
({ mobile: e, shadowSecondary: n }) => ({
|
|
77
77
|
...b`
|
|
78
78
|
z-index: 1313;
|
|
@@ -86,9 +86,9 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
|
|
|
86
86
|
box-shadow: ${e && n};
|
|
87
87
|
`
|
|
88
88
|
})
|
|
89
|
-
),
|
|
89
|
+
), P = f("img")(({ width: e }) => ({
|
|
90
90
|
width: `${e}px`
|
|
91
|
-
})),
|
|
91
|
+
})), j = f("div")(({ height: e }) => ({
|
|
92
92
|
...b`
|
|
93
93
|
display: flex;
|
|
94
94
|
gap: 1rem;
|
|
@@ -106,14 +106,14 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
|
|
|
106
106
|
white-space: nowrap;
|
|
107
107
|
}
|
|
108
108
|
`
|
|
109
|
-
})),
|
|
109
|
+
})), A = f("div")(({ visible: e }) => ({
|
|
110
110
|
...b`
|
|
111
111
|
z-index: ${e ? 1 : 0};
|
|
112
112
|
opacity: ${e ? 1 : 0};
|
|
113
113
|
pointer-events: ${e ? "auto" : "none"};
|
|
114
114
|
position: ${e ? "relative" : "absolute"};
|
|
115
115
|
`
|
|
116
|
-
})),
|
|
116
|
+
})), V = f("div")(() => ({
|
|
117
117
|
...b`
|
|
118
118
|
display: flex;
|
|
119
119
|
width: 1360px;
|
|
@@ -128,7 +128,13 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
|
|
|
128
128
|
font-size: 32px;
|
|
129
129
|
line-height: 1;
|
|
130
130
|
margin: 0;
|
|
131
|
-
margin-left: calc(${
|
|
131
|
+
margin-left: calc(${L.constants.navDefaultWidth}px * 2);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media screen and (max-width: ${L.screenSizes.tablet}) {
|
|
135
|
+
h1 {
|
|
136
|
+
margin: 0;
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
`
|
|
134
140
|
})), xe = ({
|
|
@@ -144,61 +150,61 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
|
|
|
144
150
|
searchFilters: s,
|
|
145
151
|
onHamburgerMenuClick: m,
|
|
146
152
|
onUserMenuClick: v,
|
|
147
|
-
onLogin:
|
|
148
|
-
onSearch:
|
|
153
|
+
onLogin: U,
|
|
154
|
+
onSearch: B = () => {
|
|
149
155
|
},
|
|
150
|
-
searchPlaceholder:
|
|
151
|
-
onInputChange:
|
|
156
|
+
searchPlaceholder: q = "Search",
|
|
157
|
+
onInputChange: D,
|
|
152
158
|
headerType: g = "search",
|
|
153
|
-
appTitle:
|
|
159
|
+
appTitle: O
|
|
154
160
|
}) => {
|
|
155
|
-
const [x,
|
|
156
|
-
shadowTertiary:
|
|
157
|
-
borderColor:
|
|
158
|
-
borderFocusColor:
|
|
161
|
+
const [x, C] = z(0), [u, G] = z(null), [w, J] = z(null), { logoSrc: W, logoWidth: k, logoHeight: $ } = l, { shadowSecondary: K, shadowTertiary: N, iconPrimary: Q, borderPrimary: X } = d, y = {
|
|
162
|
+
shadowTertiary: N,
|
|
163
|
+
borderColor: X,
|
|
164
|
+
borderFocusColor: Q,
|
|
159
165
|
filters: s,
|
|
160
|
-
onSearch:
|
|
161
|
-
placeholder:
|
|
162
|
-
onChange:
|
|
166
|
+
onSearch: B,
|
|
167
|
+
placeholder: q,
|
|
168
|
+
onChange: D
|
|
163
169
|
};
|
|
164
|
-
|
|
165
|
-
u && u.clientWidth > x &&
|
|
170
|
+
T(() => {
|
|
171
|
+
u && u.clientWidth > x && C(u.clientWidth), w && w.clientWidth > x && C(w.clientWidth);
|
|
166
172
|
}, [u, w]);
|
|
167
|
-
const
|
|
168
|
-
p != null && p.clientWidth && p.clientWidth > x &&
|
|
173
|
+
const Y = (p) => {
|
|
174
|
+
p != null && p.clientWidth && p.clientWidth > x && C(p.clientWidth);
|
|
169
175
|
};
|
|
170
|
-
return oe(u, () =>
|
|
171
|
-
/* @__PURE__ */ t(
|
|
172
|
-
/* @__PURE__ */ h(
|
|
176
|
+
return oe(u, () => Y(u)), e ? /* @__PURE__ */ h(_, { mobile: !0, shadowSecondary: K, children: [
|
|
177
|
+
/* @__PURE__ */ t(j, { height: $, children: /* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }) }),
|
|
178
|
+
/* @__PURE__ */ h(V, { children: [
|
|
173
179
|
g === "search" && /* @__PURE__ */ t(E, { ...y }),
|
|
174
|
-
g === "title" && /* @__PURE__ */ t("h1", { children:
|
|
180
|
+
g === "title" && /* @__PURE__ */ t("h1", { children: O })
|
|
175
181
|
] }),
|
|
176
182
|
/* @__PURE__ */ t(
|
|
177
183
|
I,
|
|
178
184
|
{
|
|
179
|
-
icon: /* @__PURE__ */ t(
|
|
185
|
+
icon: /* @__PURE__ */ t(R, {}),
|
|
180
186
|
...a,
|
|
181
187
|
onClick: o ? v : void 0
|
|
182
188
|
}
|
|
183
189
|
)
|
|
184
|
-
] }) : /* @__PURE__ */ h(
|
|
185
|
-
/* @__PURE__ */ h(
|
|
186
|
-
/* @__PURE__ */ t(
|
|
190
|
+
] }) : /* @__PURE__ */ h(_, { children: [
|
|
191
|
+
/* @__PURE__ */ h(j, { height: $, children: [
|
|
192
|
+
/* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }),
|
|
187
193
|
i && /* @__PURE__ */ t(H, { variant: "icon", onClick: m, color: c, children: /* @__PURE__ */ t(se, {}) })
|
|
188
194
|
] }),
|
|
189
|
-
/* @__PURE__ */ h(
|
|
195
|
+
/* @__PURE__ */ h(V, { children: [
|
|
190
196
|
g === "search" && /* @__PURE__ */ t(E, { ...y }),
|
|
191
|
-
g === "title" && /* @__PURE__ */ t("h1", { children:
|
|
197
|
+
g === "title" && /* @__PURE__ */ t("h1", { children: O })
|
|
192
198
|
] }),
|
|
193
199
|
/* @__PURE__ */ h(le, { width: x, loggedIn: !!n, children: [
|
|
194
|
-
/* @__PURE__ */ t(
|
|
195
|
-
|
|
200
|
+
/* @__PURE__ */ t(A, { visible: !!n, ref: G, children: /* @__PURE__ */ t(
|
|
201
|
+
ee,
|
|
196
202
|
{
|
|
197
203
|
id: "accountMenuContainer",
|
|
198
204
|
component: /* @__PURE__ */ t(
|
|
199
205
|
I,
|
|
200
206
|
{
|
|
201
|
-
icon: /* @__PURE__ */ t(
|
|
207
|
+
icon: /* @__PURE__ */ t(R, {}),
|
|
202
208
|
...a,
|
|
203
209
|
onClick: o ? v : void 0
|
|
204
210
|
}
|
|
@@ -206,7 +212,7 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
|
|
|
206
212
|
label: `Hi, ${r}!`
|
|
207
213
|
}
|
|
208
214
|
) }),
|
|
209
|
-
/* @__PURE__ */ t(
|
|
215
|
+
/* @__PURE__ */ t(A, { visible: !n, ref: J, children: /* @__PURE__ */ t(H, { id: "loginButtonContainer", onClick: U, children: "Log In" }) })
|
|
210
216
|
] })
|
|
211
217
|
] });
|
|
212
218
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
-
import { c as
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { useState as C } from "react";
|
|
3
|
+
import { n as m } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as h } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import o from "../theme.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
10
|
-
...
|
|
6
|
+
import { u as f, A as p } from "../.chunks/AppContainer.js";
|
|
7
|
+
import w from "../WithLoading/WithLoading.js";
|
|
8
|
+
import { TopFade as T, BottomFade as S } from "../Overlays/Overlays.js";
|
|
9
|
+
const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldForwardProp: (r) => !P.includes(r) })(({ loading: r, hasPagination: l, hasFade: c, loadingColor: s = o.colors.green }) => ({
|
|
10
|
+
...h`
|
|
11
|
+
position: relative;
|
|
11
12
|
color: ${o.colors.midnight};
|
|
12
13
|
height: ${r ? "100%" : "auto"};
|
|
13
14
|
padding: 19px;
|
|
@@ -18,7 +19,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
18
19
|
width: 100%;
|
|
19
20
|
height: 100%;
|
|
20
21
|
box-sizing: border-box;
|
|
21
|
-
padding-bottom: ${
|
|
22
|
+
padding-bottom: ${c ? l ? "114px" : "72px" : "19px"};
|
|
22
23
|
> * div {
|
|
23
24
|
box-sizing: border-box;
|
|
24
25
|
}
|
|
@@ -27,8 +28,8 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
27
28
|
color: ${s};
|
|
28
29
|
}
|
|
29
30
|
`
|
|
30
|
-
})),
|
|
31
|
-
...
|
|
31
|
+
})), $ = m("div")(() => ({
|
|
32
|
+
...h`
|
|
32
33
|
border-radius: 8px;
|
|
33
34
|
padding: 0;
|
|
34
35
|
display: flex;
|
|
@@ -36,18 +37,18 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
36
37
|
gap: 27px;
|
|
37
38
|
max-width: 1300px;
|
|
38
39
|
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
+
min-height: 100%;
|
|
40
41
|
box-sizing: border-box;
|
|
41
42
|
`
|
|
42
|
-
})),
|
|
43
|
+
})), v = {
|
|
43
44
|
green: o.colors.green,
|
|
44
45
|
blue: o.colors.darkBlue,
|
|
45
46
|
red: o.colors.darkRed
|
|
46
|
-
},
|
|
47
|
+
}, d = {
|
|
47
48
|
green: o.colors.whiteGreen,
|
|
48
49
|
blue: o.colors.sky,
|
|
49
50
|
red: o.colors.lighterRed
|
|
50
|
-
},
|
|
51
|
+
}, M = {
|
|
51
52
|
backgroundPrimary: o.colors.sky,
|
|
52
53
|
backgroundSecondary: o.colors.lovemist,
|
|
53
54
|
backgroundTertiary: o.colors.cornflower,
|
|
@@ -62,7 +63,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
62
63
|
iconColor: o.colors.cobalt,
|
|
63
64
|
backgroundColor: o.colors.sky
|
|
64
65
|
}
|
|
65
|
-
},
|
|
66
|
+
}, I = {
|
|
66
67
|
backgroundPrimary: o.colors.lighterRed,
|
|
67
68
|
backgroundSecondary: o.colors.lightRed,
|
|
68
69
|
backgroundTertiary: o.colors.cherryBlossom,
|
|
@@ -77,19 +78,19 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
77
78
|
iconColor: o.colors.maroon,
|
|
78
79
|
backgroundColor: o.colors.lighterRed
|
|
79
80
|
}
|
|
80
|
-
},
|
|
81
|
-
blue:
|
|
82
|
-
red:
|
|
81
|
+
}, z = {
|
|
82
|
+
blue: M,
|
|
83
|
+
red: I,
|
|
83
84
|
green: void 0
|
|
84
|
-
},
|
|
85
|
+
}, L = ({
|
|
85
86
|
children: r,
|
|
86
|
-
loading:
|
|
87
|
-
hasPagination:
|
|
87
|
+
loading: l = !1,
|
|
88
|
+
hasPagination: c = !1,
|
|
88
89
|
fade: s = !0,
|
|
89
|
-
userProfileMenuItems:
|
|
90
|
-
...
|
|
90
|
+
userProfileMenuItems: g,
|
|
91
|
+
...t
|
|
91
92
|
}) => {
|
|
92
|
-
const
|
|
93
|
+
const u = localStorage.getItem("theme") || "green", [a, i] = C(u), b = f(`(max-width: ${o.screenSizes.mobile})`), y = z[a], x = [
|
|
93
94
|
{
|
|
94
95
|
label: "Green Theme",
|
|
95
96
|
onClick: () => {
|
|
@@ -108,25 +109,28 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
108
109
|
localStorage.setItem("theme", "red"), i("red");
|
|
109
110
|
}
|
|
110
111
|
},
|
|
111
|
-
...
|
|
112
|
+
...g || []
|
|
112
113
|
];
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
|
|
114
|
+
return /* @__PURE__ */ e(
|
|
115
|
+
p,
|
|
115
116
|
{
|
|
116
|
-
...
|
|
117
|
-
userProfileMenuItems:
|
|
118
|
-
themeColors:
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
|
|
117
|
+
...t,
|
|
118
|
+
userProfileMenuItems: x,
|
|
119
|
+
themeColors: y ?? (t == null ? void 0 : t.themeColors),
|
|
120
|
+
children: /* @__PURE__ */ e(
|
|
121
|
+
R,
|
|
121
122
|
{
|
|
122
123
|
className: "jcPageWrapper",
|
|
123
|
-
loading:
|
|
124
|
-
loadingColor:
|
|
125
|
-
hasPagination:
|
|
124
|
+
loading: l,
|
|
125
|
+
loadingColor: v[a],
|
|
126
|
+
hasPagination: c,
|
|
126
127
|
hasFade: s,
|
|
127
|
-
children: /* @__PURE__ */
|
|
128
|
-
s && /* @__PURE__ */
|
|
129
|
-
|
|
128
|
+
children: /* @__PURE__ */ n(w, { loading: l, size: b ? 114 : 201, children: [
|
|
129
|
+
s && /* @__PURE__ */ n(k, { children: [
|
|
130
|
+
/* @__PURE__ */ e(T, { color: d[a] }),
|
|
131
|
+
/* @__PURE__ */ e(S, { color: d[a] })
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ e($, { children: r })
|
|
130
134
|
] })
|
|
131
135
|
}
|
|
132
136
|
)
|
|
@@ -134,7 +138,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
|
|
|
134
138
|
);
|
|
135
139
|
};
|
|
136
140
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
$ as MainContentContainer,
|
|
142
|
+
R as PageWrapper,
|
|
143
|
+
L as default
|
|
140
144
|
};
|
package/Overlays/Overlays.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const BottomFade: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
theme?: import('@emotion/react').Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
} & {
|
|
5
|
+
color?: string;
|
|
6
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const TopFade: import('@emotion/styled').StyledComponent<{
|
|
2
8
|
theme?: import('@emotion/react').Theme;
|
|
3
9
|
as?: React.ElementType;
|
|
4
10
|
} & {
|
|
5
|
-
isMobile: boolean;
|
|
6
|
-
hasPagination: boolean;
|
|
7
11
|
color?: string;
|
|
8
12
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/Overlays/Overlays.js
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
1
|
+
import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as o } from "../.chunks/emotion-react.browser.esm.js";
|
|
3
|
+
import i from "../theme.js";
|
|
4
|
+
const s = t("div")(({ color: e = i.colors.whiteGreen }) => ({
|
|
5
|
+
...o`
|
|
6
|
+
width: calc(100% - 72px);
|
|
7
|
+
max-width: 1300px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
background-image: linear-gradient(to top, ${e}, ${e}00);
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
height: 92px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
z-index: 92;
|
|
18
|
+
`
|
|
19
|
+
})), d = t("div")(({ color: e = i.colors.whiteGreen }) => ({
|
|
20
|
+
...o`
|
|
21
|
+
width: calc(100% - 72px);
|
|
22
|
+
max-width: 1300px;
|
|
23
|
+
position: absolute;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
background-image: linear-gradient(to top, ${e}, ${e}00);
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
height: 29px;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
z-index: 92;
|
|
33
|
+
`
|
|
34
|
+
}));
|
|
22
35
|
export {
|
|
23
|
-
|
|
36
|
+
s as BottomFade,
|
|
37
|
+
d as TopFade
|
|
24
38
|
};
|
package/Overlays/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { TopFade, BottomFade } from './Overlays';
|
package/Overlays/index.js
CHANGED
package/Stepper/Stepper.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as C, jsx as n, Fragment as
|
|
1
|
+
import { jsxs as C, jsx as n, Fragment as T } from "react/jsx-runtime";
|
|
2
2
|
import * as O from "react";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as q, Children as h } from "react";
|
|
4
4
|
import { flushSync as k } from "react-dom";
|
|
5
|
-
import { n as
|
|
6
|
-
import { k as
|
|
7
|
-
import { Button as
|
|
5
|
+
import { n as R } from "../.chunks/emotion-styled.browser.esm.js";
|
|
6
|
+
import { k as I, c as P } from "../.chunks/emotion-react.browser.esm.js";
|
|
7
|
+
import { Button as z } from "../Button/Button.js";
|
|
8
8
|
import N from "../theme.js";
|
|
9
|
-
import { SlideOut as H, SlideIn as J, SlideInReverse as
|
|
10
|
-
import { g as V, a as K, s as y, c as
|
|
11
|
-
import { m as
|
|
9
|
+
import { SlideOut as H, SlideIn as J, SlideInReverse as U, SlideOutReverse as Q } from "../animation/Slide/Slide.js";
|
|
10
|
+
import { g as V, a as K, s as y, c as m, u as F, b as $, P as o, d as X, l as W, j as Z, k as rr } from "../.chunks/DefaultPropsProvider.js";
|
|
11
|
+
import { m as w } from "../.chunks/memoTheme.js";
|
|
12
12
|
import { P as er } from "../.chunks/Paper.js";
|
|
13
13
|
import { u as tr } from "../.chunks/index.js";
|
|
14
|
-
import { c as
|
|
15
|
-
import { i as
|
|
14
|
+
import { c as M } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
15
|
+
import { i as E } from "../.chunks/integerPropType.js";
|
|
16
16
|
function or(e) {
|
|
17
17
|
return V("MuiLinearProgress", e);
|
|
18
18
|
}
|
|
19
19
|
K("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
|
|
20
|
-
const j = 4, A =
|
|
20
|
+
const j = 4, A = I`
|
|
21
21
|
0% {
|
|
22
22
|
left: -35%;
|
|
23
23
|
right: 100%;
|
|
@@ -32,9 +32,9 @@ const j = 4, A = R`
|
|
|
32
32
|
left: 100%;
|
|
33
33
|
right: -90%;
|
|
34
34
|
}
|
|
35
|
-
`, ar = typeof A != "string" ?
|
|
35
|
+
`, ar = typeof A != "string" ? P`
|
|
36
36
|
animation: ${A} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
37
|
-
` : null, B =
|
|
37
|
+
` : null, B = I`
|
|
38
38
|
0% {
|
|
39
39
|
left: -200%;
|
|
40
40
|
right: 100%;
|
|
@@ -49,9 +49,9 @@ const j = 4, A = R`
|
|
|
49
49
|
left: 107%;
|
|
50
50
|
right: -8%;
|
|
51
51
|
}
|
|
52
|
-
`, nr = typeof B != "string" ?
|
|
52
|
+
`, nr = typeof B != "string" ? P`
|
|
53
53
|
animation: ${B} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
54
|
-
` : null, L =
|
|
54
|
+
` : null, L = I`
|
|
55
55
|
0% {
|
|
56
56
|
opacity: 1;
|
|
57
57
|
background-position: 0 -23px;
|
|
@@ -66,7 +66,7 @@ const j = 4, A = R`
|
|
|
66
66
|
opacity: 1;
|
|
67
67
|
background-position: -200px -23px;
|
|
68
68
|
}
|
|
69
|
-
`, ir = typeof L != "string" ?
|
|
69
|
+
`, ir = typeof L != "string" ? P`
|
|
70
70
|
animation: ${L} 3s infinite linear;
|
|
71
71
|
` : null, sr = (e) => {
|
|
72
72
|
const {
|
|
@@ -74,22 +74,22 @@ const j = 4, A = R`
|
|
|
74
74
|
variant: t,
|
|
75
75
|
color: a
|
|
76
76
|
} = e, f = {
|
|
77
|
-
root: ["root", `color${
|
|
78
|
-
dashed: ["dashed", `dashedColor${
|
|
79
|
-
bar1: ["bar", `barColor${
|
|
80
|
-
bar2: ["bar", t !== "buffer" && `barColor${
|
|
77
|
+
root: ["root", `color${m(a)}`, t],
|
|
78
|
+
dashed: ["dashed", `dashedColor${m(a)}`],
|
|
79
|
+
bar1: ["bar", `barColor${m(a)}`, (t === "indeterminate" || t === "query") && "bar1Indeterminate", t === "determinate" && "bar1Determinate", t === "buffer" && "bar1Buffer"],
|
|
80
|
+
bar2: ["bar", t !== "buffer" && `barColor${m(a)}`, t === "buffer" && `color${m(a)}`, (t === "indeterminate" || t === "query") && "bar2Indeterminate", t === "buffer" && "bar2Buffer"]
|
|
81
81
|
};
|
|
82
82
|
return X(f, or, r);
|
|
83
|
-
},
|
|
83
|
+
}, D = (e, r) => e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? W(e.palette[r].main, 0.62) : Z(e.palette[r].main, 0.5), lr = y("span", {
|
|
84
84
|
name: "MuiLinearProgress",
|
|
85
85
|
slot: "Root",
|
|
86
86
|
overridesResolver: (e, r) => {
|
|
87
87
|
const {
|
|
88
88
|
ownerState: t
|
|
89
89
|
} = e;
|
|
90
|
-
return [r.root, r[`color${
|
|
90
|
+
return [r.root, r[`color${m(t.color)}`], r[t.variant]];
|
|
91
91
|
}
|
|
92
|
-
})(
|
|
92
|
+
})(w(({
|
|
93
93
|
theme: e
|
|
94
94
|
}) => ({
|
|
95
95
|
position: "relative",
|
|
@@ -101,12 +101,12 @@ const j = 4, A = R`
|
|
|
101
101
|
"@media print": {
|
|
102
102
|
colorAdjust: "exact"
|
|
103
103
|
},
|
|
104
|
-
variants: [...Object.entries(e.palette).filter(
|
|
104
|
+
variants: [...Object.entries(e.palette).filter(M()).map(([r]) => ({
|
|
105
105
|
props: {
|
|
106
106
|
color: r
|
|
107
107
|
},
|
|
108
108
|
style: {
|
|
109
|
-
backgroundColor:
|
|
109
|
+
backgroundColor: D(e, r)
|
|
110
110
|
}
|
|
111
111
|
})), {
|
|
112
112
|
props: ({
|
|
@@ -146,9 +146,9 @@ const j = 4, A = R`
|
|
|
146
146
|
const {
|
|
147
147
|
ownerState: t
|
|
148
148
|
} = e;
|
|
149
|
-
return [r.dashed, r[`dashedColor${
|
|
149
|
+
return [r.dashed, r[`dashedColor${m(t.color)}`]];
|
|
150
150
|
}
|
|
151
|
-
})(
|
|
151
|
+
})(w(({
|
|
152
152
|
theme: e
|
|
153
153
|
}) => ({
|
|
154
154
|
position: "absolute",
|
|
@@ -165,8 +165,8 @@ const j = 4, A = R`
|
|
|
165
165
|
opacity: 0.3,
|
|
166
166
|
backgroundImage: "radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"
|
|
167
167
|
}
|
|
168
|
-
}, ...Object.entries(e.palette).filter(
|
|
169
|
-
const t =
|
|
168
|
+
}, ...Object.entries(e.palette).filter(M()).map(([r]) => {
|
|
169
|
+
const t = D(e, r);
|
|
170
170
|
return {
|
|
171
171
|
props: {
|
|
172
172
|
color: r
|
|
@@ -186,9 +186,9 @@ const j = 4, A = R`
|
|
|
186
186
|
const {
|
|
187
187
|
ownerState: t
|
|
188
188
|
} = e;
|
|
189
|
-
return [r.bar, r[`barColor${
|
|
189
|
+
return [r.bar, r[`barColor${m(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar1Indeterminate, t.variant === "determinate" && r.bar1Determinate, t.variant === "buffer" && r.bar1Buffer];
|
|
190
190
|
}
|
|
191
|
-
})(
|
|
191
|
+
})(w(({
|
|
192
192
|
theme: e
|
|
193
193
|
}) => ({
|
|
194
194
|
width: "100%",
|
|
@@ -205,7 +205,7 @@ const j = 4, A = R`
|
|
|
205
205
|
style: {
|
|
206
206
|
backgroundColor: "currentColor"
|
|
207
207
|
}
|
|
208
|
-
}, ...Object.entries(e.palette).filter(
|
|
208
|
+
}, ...Object.entries(e.palette).filter(M()).map(([r]) => ({
|
|
209
209
|
props: {
|
|
210
210
|
color: r
|
|
211
211
|
},
|
|
@@ -249,9 +249,9 @@ const j = 4, A = R`
|
|
|
249
249
|
const {
|
|
250
250
|
ownerState: t
|
|
251
251
|
} = e;
|
|
252
|
-
return [r.bar, r[`barColor${
|
|
252
|
+
return [r.bar, r[`barColor${m(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
|
|
253
253
|
}
|
|
254
|
-
})(
|
|
254
|
+
})(w(({
|
|
255
255
|
theme: e
|
|
256
256
|
}) => ({
|
|
257
257
|
width: "100%",
|
|
@@ -261,7 +261,7 @@ const j = 4, A = R`
|
|
|
261
261
|
top: 0,
|
|
262
262
|
transition: "transform 0.2s linear",
|
|
263
263
|
transformOrigin: "left",
|
|
264
|
-
variants: [...Object.entries(e.palette).filter(
|
|
264
|
+
variants: [...Object.entries(e.palette).filter(M()).map(([r]) => ({
|
|
265
265
|
props: {
|
|
266
266
|
color: r
|
|
267
267
|
},
|
|
@@ -289,13 +289,13 @@ const j = 4, A = R`
|
|
|
289
289
|
style: {
|
|
290
290
|
opacity: 0.3
|
|
291
291
|
}
|
|
292
|
-
}, ...Object.entries(e.palette).filter(
|
|
292
|
+
}, ...Object.entries(e.palette).filter(M()).map(([r]) => ({
|
|
293
293
|
props: {
|
|
294
294
|
color: r,
|
|
295
295
|
variant: "buffer"
|
|
296
296
|
},
|
|
297
297
|
style: {
|
|
298
|
-
backgroundColor:
|
|
298
|
+
backgroundColor: D(e, r),
|
|
299
299
|
transition: `transform .${j}s linear`
|
|
300
300
|
}
|
|
301
301
|
})), {
|
|
@@ -321,7 +321,7 @@ const j = 4, A = R`
|
|
|
321
321
|
className: f,
|
|
322
322
|
color: i = "primary",
|
|
323
323
|
value: g,
|
|
324
|
-
valueBuffer:
|
|
324
|
+
valueBuffer: b,
|
|
325
325
|
variant: s = "indeterminate",
|
|
326
326
|
...v
|
|
327
327
|
} = a, p = {
|
|
@@ -339,8 +339,8 @@ const j = 4, A = R`
|
|
|
339
339
|
S && (l = -l), u.bar1.transform = `translateX(${l}%)`;
|
|
340
340
|
} else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");
|
|
341
341
|
if (s === "buffer")
|
|
342
|
-
if (
|
|
343
|
-
let l = (
|
|
342
|
+
if (b !== void 0) {
|
|
343
|
+
let l = (b || 0) - 100;
|
|
344
344
|
S && (l = -l), u.bar2.transform = `translateX(${l}%)`;
|
|
345
345
|
} else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");
|
|
346
346
|
return /* @__PURE__ */ C(lr, {
|
|
@@ -414,23 +414,23 @@ const fr = (e) => {
|
|
|
414
414
|
classes: r,
|
|
415
415
|
position: t
|
|
416
416
|
} = e, a = {
|
|
417
|
-
root: ["root", `position${
|
|
417
|
+
root: ["root", `position${m(t)}`],
|
|
418
418
|
dots: ["dots"],
|
|
419
419
|
dot: ["dot"],
|
|
420
420
|
dotActive: ["dotActive"],
|
|
421
421
|
progress: ["progress"]
|
|
422
422
|
};
|
|
423
423
|
return X(a, ur, r);
|
|
424
|
-
},
|
|
424
|
+
}, mr = y(er, {
|
|
425
425
|
name: "MuiMobileStepper",
|
|
426
426
|
slot: "Root",
|
|
427
427
|
overridesResolver: (e, r) => {
|
|
428
428
|
const {
|
|
429
429
|
ownerState: t
|
|
430
430
|
} = e;
|
|
431
|
-
return [r.root, r[`position${
|
|
431
|
+
return [r.root, r[`position${m(t.position)}`]];
|
|
432
432
|
}
|
|
433
|
-
})(
|
|
433
|
+
})(w(({
|
|
434
434
|
theme: e
|
|
435
435
|
}) => ({
|
|
436
436
|
display: "flex",
|
|
@@ -464,7 +464,7 @@ const fr = (e) => {
|
|
|
464
464
|
bottom: 0
|
|
465
465
|
}
|
|
466
466
|
}]
|
|
467
|
-
}))),
|
|
467
|
+
}))), br = y("div", {
|
|
468
468
|
name: "MuiMobileStepper",
|
|
469
469
|
slot: "Dots",
|
|
470
470
|
overridesResolver: (e, r) => r.dots
|
|
@@ -488,7 +488,7 @@ const fr = (e) => {
|
|
|
488
488
|
} = e;
|
|
489
489
|
return [r.dot, t && r.dotActive];
|
|
490
490
|
}
|
|
491
|
-
})(
|
|
491
|
+
})(w(({
|
|
492
492
|
theme: e
|
|
493
493
|
}) => ({
|
|
494
494
|
variants: [{
|
|
@@ -535,7 +535,7 @@ const fr = (e) => {
|
|
|
535
535
|
activeStep: f = 0,
|
|
536
536
|
backButton: i,
|
|
537
537
|
className: g,
|
|
538
|
-
LinearProgressProps:
|
|
538
|
+
LinearProgressProps: b,
|
|
539
539
|
nextButton: s,
|
|
540
540
|
position: v = "bottom",
|
|
541
541
|
steps: p,
|
|
@@ -550,7 +550,7 @@ const fr = (e) => {
|
|
|
550
550
|
let u;
|
|
551
551
|
c === "progress" && (p === 1 ? u = 100 : u = Math.ceil(f / (p - 1) * 100));
|
|
552
552
|
const l = fr(d);
|
|
553
|
-
return /* @__PURE__ */ C(
|
|
553
|
+
return /* @__PURE__ */ C(mr, {
|
|
554
554
|
square: !0,
|
|
555
555
|
elevation: 0,
|
|
556
556
|
className: $(l.root, g),
|
|
@@ -559,10 +559,10 @@ const fr = (e) => {
|
|
|
559
559
|
...S,
|
|
560
560
|
children: [i, c === "text" && /* @__PURE__ */ C(O.Fragment, {
|
|
561
561
|
children: [f + 1, " / ", p]
|
|
562
|
-
}), c === "dots" && /* @__PURE__ */ n(
|
|
562
|
+
}), c === "dots" && /* @__PURE__ */ n(br, {
|
|
563
563
|
ownerState: d,
|
|
564
564
|
className: l.dots,
|
|
565
|
-
children: [...new Array(p)].map((
|
|
565
|
+
children: [...new Array(p)].map((Sr, x) => /* @__PURE__ */ n(vr, {
|
|
566
566
|
className: $(l.dot, x === f && l.dotActive),
|
|
567
567
|
ownerState: d,
|
|
568
568
|
dotActive: x === f
|
|
@@ -572,7 +572,7 @@ const fr = (e) => {
|
|
|
572
572
|
className: l.progress,
|
|
573
573
|
variant: "determinate",
|
|
574
574
|
value: u,
|
|
575
|
-
...
|
|
575
|
+
...b
|
|
576
576
|
}), s]
|
|
577
577
|
});
|
|
578
578
|
});
|
|
@@ -586,7 +586,7 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
586
586
|
* Defines which dot is highlighted when the variant is 'dots'.
|
|
587
587
|
* @default 0
|
|
588
588
|
*/
|
|
589
|
-
activeStep:
|
|
589
|
+
activeStep: E,
|
|
590
590
|
/**
|
|
591
591
|
* A back button element. For instance, it can be a `Button` or an `IconButton`.
|
|
592
592
|
*/
|
|
@@ -615,7 +615,7 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
615
615
|
/**
|
|
616
616
|
* The total steps.
|
|
617
617
|
*/
|
|
618
|
-
steps:
|
|
618
|
+
steps: E.isRequired,
|
|
619
619
|
/**
|
|
620
620
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
621
621
|
*/
|
|
@@ -626,8 +626,8 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
626
626
|
*/
|
|
627
627
|
variant: o.oneOf(["dots", "progress", "text"])
|
|
628
628
|
});
|
|
629
|
-
const yr =
|
|
630
|
-
...
|
|
629
|
+
const yr = R("div")(() => ({
|
|
630
|
+
...P`
|
|
631
631
|
position: relative;
|
|
632
632
|
display: flex;
|
|
633
633
|
flex-direction: column;
|
|
@@ -658,35 +658,40 @@ const yr = _("div")(() => ({
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
`
|
|
661
|
-
})),
|
|
662
|
-
...
|
|
661
|
+
})), _ = R("div")(() => ({
|
|
662
|
+
...P`
|
|
663
663
|
position: absolute;
|
|
664
664
|
top: 0;
|
|
665
665
|
width: 100%;
|
|
666
666
|
height: 100%;
|
|
667
667
|
`
|
|
668
|
-
})),
|
|
668
|
+
})), hr = R("div")(() => ({
|
|
669
|
+
...P`
|
|
670
|
+
width: 100%;
|
|
671
|
+
height: 100%;
|
|
672
|
+
`
|
|
673
|
+
})), Ir = ({
|
|
669
674
|
onNext: e,
|
|
670
675
|
onBack: r,
|
|
671
676
|
onFinish: t,
|
|
672
677
|
children: a,
|
|
673
678
|
...f
|
|
674
679
|
}) => {
|
|
675
|
-
const [i, g] =
|
|
680
|
+
const [i, g] = q(0), [b, s] = q("forward"), v = h.toArray(a).length, p = () => {
|
|
676
681
|
i === v - 1 ? t == null || t() : (k(() => s("none")), k(() => s("forward")), g((u) => u + 1), e == null || e());
|
|
677
682
|
}, c = () => {
|
|
678
683
|
k(() => s("none")), k(() => s("reverse")), g((u) => u - 1), r == null || r();
|
|
679
|
-
}, S = () => /* @__PURE__ */ n(
|
|
684
|
+
}, S = () => /* @__PURE__ */ n(z, { onClick: p, children: i === v - 1 ? "Finish" : "Next" }), d = () => /* @__PURE__ */ n(z, { onClick: c, children: "Back" });
|
|
680
685
|
return /* @__PURE__ */ C(yr, { className: "jcStepContainer", children: [
|
|
681
|
-
i === 0 &&
|
|
682
|
-
i !== 0 &&
|
|
683
|
-
/* @__PURE__ */ n(
|
|
686
|
+
i === 0 && b === "forward" && /* @__PURE__ */ n(hr, { className: "jcSlideContainer", children: h.toArray(a)[i] ?? null }),
|
|
687
|
+
i !== 0 && b === "forward" && /* @__PURE__ */ C(T, { children: [
|
|
688
|
+
/* @__PURE__ */ n(_, { className: "jcSlideOutContainer", children: /* @__PURE__ */ n(H, { className: "jcSlideContainer", children: h.toArray(a)[i - 1] ?? null }) }),
|
|
684
689
|
/* @__PURE__ */ n(J, { className: "jcSlideContainer", children: h.toArray(a)[i] ?? null })
|
|
685
690
|
] }),
|
|
686
|
-
i === v - 1 &&
|
|
687
|
-
i !== v - 1 &&
|
|
688
|
-
/* @__PURE__ */ n(
|
|
689
|
-
/* @__PURE__ */ n(
|
|
691
|
+
i === v - 1 && b === "reverse" && /* @__PURE__ */ n(U, { className: "jcSlideContainer", children: h.toArray(a)[i] ?? null }),
|
|
692
|
+
i !== v - 1 && b === "reverse" && /* @__PURE__ */ C(T, { children: [
|
|
693
|
+
/* @__PURE__ */ n(_, { className: "jcSlideOutContainer", children: /* @__PURE__ */ n(Q, { className: "jcSlideContainer", children: h.toArray(a)[i + 1] ?? null }) }),
|
|
694
|
+
/* @__PURE__ */ n(U, { className: "jcSlideContainer", children: h.toArray(a)[i] ?? null })
|
|
690
695
|
] }),
|
|
691
696
|
/* @__PURE__ */ n(
|
|
692
697
|
G,
|
|
@@ -703,5 +708,5 @@ const yr = _("div")(() => ({
|
|
|
703
708
|
] });
|
|
704
709
|
};
|
|
705
710
|
export {
|
|
706
|
-
|
|
711
|
+
Ir as default
|
|
707
712
|
};
|
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.249",
|
|
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",
|