jcicl 0.0.49 → 0.0.51
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/CircularProgress.js +250 -0
- package/base/LabeledValue/LabeledValue.js +12 -11
- package/base/Loading/Loading.d.ts +6 -0
- package/base/Loading/Loading.js +13 -0
- package/base/Loading/index.d.ts +1 -0
- package/base/Loading/index.js +4 -0
- package/base/index.d.ts +1 -0
- package/base/index.js +10 -8
- package/composite/InfoCard/InfoCard.js +20 -20
- package/composite/WithLoading/WithLoading.js +13 -257
- package/index.d.ts +1 -1
- package/index.js +26 -24
- package/package.json +1 -1
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import * as O from "react";
|
|
2
|
+
import { g as T, a as R, s as g, c, u as N, b as j, P as r, d as U } from "./DefaultPropsProvider.js";
|
|
3
|
+
import { m as P } from "./memoTheme.js";
|
|
4
|
+
import { c as E } from "./createSimplePaletteValueFilter.js";
|
|
5
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
6
|
+
import { k as x, c as w } from "./emotion-react.browser.esm.js";
|
|
7
|
+
import { c as I } from "./chainPropTypes.js";
|
|
8
|
+
function z(e) {
|
|
9
|
+
return T("MuiCircularProgress", e);
|
|
10
|
+
}
|
|
11
|
+
R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
12
|
+
const a = 44, y = x`
|
|
13
|
+
0% {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
transform: rotate(360deg);
|
|
19
|
+
}
|
|
20
|
+
`, v = x`
|
|
21
|
+
0% {
|
|
22
|
+
stroke-dasharray: 1px, 200px;
|
|
23
|
+
stroke-dashoffset: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
50% {
|
|
27
|
+
stroke-dasharray: 100px, 200px;
|
|
28
|
+
stroke-dashoffset: -15px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
100% {
|
|
32
|
+
stroke-dasharray: 100px, 200px;
|
|
33
|
+
stroke-dashoffset: -125px;
|
|
34
|
+
}
|
|
35
|
+
`, F = typeof y != "string" ? w`
|
|
36
|
+
animation: ${y} 1.4s linear infinite;
|
|
37
|
+
` : null, V = typeof v != "string" ? w`
|
|
38
|
+
animation: ${v} 1.4s ease-in-out infinite;
|
|
39
|
+
` : null, A = (e) => {
|
|
40
|
+
const {
|
|
41
|
+
classes: t,
|
|
42
|
+
variant: s,
|
|
43
|
+
color: o,
|
|
44
|
+
disableShrink: l
|
|
45
|
+
} = e, p = {
|
|
46
|
+
root: ["root", s, `color${c(o)}`],
|
|
47
|
+
svg: ["svg"],
|
|
48
|
+
circle: ["circle", `circle${c(s)}`, l && "circleDisableShrink"]
|
|
49
|
+
};
|
|
50
|
+
return U(p, z, t);
|
|
51
|
+
}, K = g("span", {
|
|
52
|
+
name: "MuiCircularProgress",
|
|
53
|
+
slot: "Root",
|
|
54
|
+
overridesResolver: (e, t) => {
|
|
55
|
+
const {
|
|
56
|
+
ownerState: s
|
|
57
|
+
} = e;
|
|
58
|
+
return [t.root, t[s.variant], t[`color${c(s.color)}`]];
|
|
59
|
+
}
|
|
60
|
+
})(P(({
|
|
61
|
+
theme: e
|
|
62
|
+
}) => ({
|
|
63
|
+
display: "inline-block",
|
|
64
|
+
variants: [{
|
|
65
|
+
props: {
|
|
66
|
+
variant: "determinate"
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
transition: e.transitions.create("transform")
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: {
|
|
73
|
+
variant: "indeterminate"
|
|
74
|
+
},
|
|
75
|
+
style: F || {
|
|
76
|
+
animation: `${y} 1.4s linear infinite`
|
|
77
|
+
}
|
|
78
|
+
}, ...Object.entries(e.palette).filter(E()).map(([t]) => ({
|
|
79
|
+
props: {
|
|
80
|
+
color: t
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
color: (e.vars || e).palette[t].main
|
|
84
|
+
}
|
|
85
|
+
}))]
|
|
86
|
+
}))), B = g("svg", {
|
|
87
|
+
name: "MuiCircularProgress",
|
|
88
|
+
slot: "Svg",
|
|
89
|
+
overridesResolver: (e, t) => t.svg
|
|
90
|
+
})({
|
|
91
|
+
display: "block"
|
|
92
|
+
// Keeps the progress centered
|
|
93
|
+
}), G = g("circle", {
|
|
94
|
+
name: "MuiCircularProgress",
|
|
95
|
+
slot: "Circle",
|
|
96
|
+
overridesResolver: (e, t) => {
|
|
97
|
+
const {
|
|
98
|
+
ownerState: s
|
|
99
|
+
} = e;
|
|
100
|
+
return [t.circle, t[`circle${c(s.variant)}`], s.disableShrink && t.circleDisableShrink];
|
|
101
|
+
}
|
|
102
|
+
})(P(({
|
|
103
|
+
theme: e
|
|
104
|
+
}) => ({
|
|
105
|
+
stroke: "currentColor",
|
|
106
|
+
variants: [{
|
|
107
|
+
props: {
|
|
108
|
+
variant: "determinate"
|
|
109
|
+
},
|
|
110
|
+
style: {
|
|
111
|
+
transition: e.transitions.create("stroke-dashoffset")
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
props: {
|
|
115
|
+
variant: "indeterminate"
|
|
116
|
+
},
|
|
117
|
+
style: {
|
|
118
|
+
// Some default value that looks fine waiting for the animation to kicks in.
|
|
119
|
+
strokeDasharray: "80px, 200px",
|
|
120
|
+
strokeDashoffset: 0
|
|
121
|
+
// Add the unit to fix a Edge 16 and below bug.
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
props: ({
|
|
125
|
+
ownerState: t
|
|
126
|
+
}) => t.variant === "indeterminate" && !t.disableShrink,
|
|
127
|
+
style: V || {
|
|
128
|
+
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
129
|
+
animation: `${v} 1.4s ease-in-out infinite`
|
|
130
|
+
}
|
|
131
|
+
}]
|
|
132
|
+
}))), W = /* @__PURE__ */ O.forwardRef(function(t, s) {
|
|
133
|
+
const o = N({
|
|
134
|
+
props: t,
|
|
135
|
+
name: "MuiCircularProgress"
|
|
136
|
+
}), {
|
|
137
|
+
className: l,
|
|
138
|
+
color: p = "primary",
|
|
139
|
+
disableShrink: $ = !1,
|
|
140
|
+
size: m = 40,
|
|
141
|
+
style: D,
|
|
142
|
+
thickness: i = 3.6,
|
|
143
|
+
value: f = 0,
|
|
144
|
+
variant: k = "indeterminate",
|
|
145
|
+
...M
|
|
146
|
+
} = o, n = {
|
|
147
|
+
...o,
|
|
148
|
+
color: p,
|
|
149
|
+
disableShrink: $,
|
|
150
|
+
size: m,
|
|
151
|
+
thickness: i,
|
|
152
|
+
value: f,
|
|
153
|
+
variant: k
|
|
154
|
+
}, d = A(n), u = {}, b = {}, S = {};
|
|
155
|
+
if (k === "determinate") {
|
|
156
|
+
const C = 2 * Math.PI * ((a - i) / 2);
|
|
157
|
+
u.strokeDasharray = C.toFixed(3), S["aria-valuenow"] = Math.round(f), u.strokeDashoffset = `${((100 - f) / 100 * C).toFixed(3)}px`, b.transform = "rotate(-90deg)";
|
|
158
|
+
}
|
|
159
|
+
return /* @__PURE__ */ h(K, {
|
|
160
|
+
className: j(d.root, l),
|
|
161
|
+
style: {
|
|
162
|
+
width: m,
|
|
163
|
+
height: m,
|
|
164
|
+
...b,
|
|
165
|
+
...D
|
|
166
|
+
},
|
|
167
|
+
ownerState: n,
|
|
168
|
+
ref: s,
|
|
169
|
+
role: "progressbar",
|
|
170
|
+
...S,
|
|
171
|
+
...M,
|
|
172
|
+
children: /* @__PURE__ */ h(B, {
|
|
173
|
+
className: d.svg,
|
|
174
|
+
ownerState: n,
|
|
175
|
+
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
176
|
+
children: /* @__PURE__ */ h(G, {
|
|
177
|
+
className: d.circle,
|
|
178
|
+
style: u,
|
|
179
|
+
ownerState: n,
|
|
180
|
+
cx: a,
|
|
181
|
+
cy: a,
|
|
182
|
+
r: (a - i) / 2,
|
|
183
|
+
fill: "none",
|
|
184
|
+
strokeWidth: i
|
|
185
|
+
})
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
190
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
191
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
192
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
193
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
194
|
+
/**
|
|
195
|
+
* Override or extend the styles applied to the component.
|
|
196
|
+
*/
|
|
197
|
+
classes: r.object,
|
|
198
|
+
/**
|
|
199
|
+
* @ignore
|
|
200
|
+
*/
|
|
201
|
+
className: r.string,
|
|
202
|
+
/**
|
|
203
|
+
* The color of the component.
|
|
204
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
205
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
206
|
+
* @default 'primary'
|
|
207
|
+
*/
|
|
208
|
+
color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
209
|
+
/**
|
|
210
|
+
* If `true`, the shrink animation is disabled.
|
|
211
|
+
* This only works if variant is `indeterminate`.
|
|
212
|
+
* @default false
|
|
213
|
+
*/
|
|
214
|
+
disableShrink: I(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
215
|
+
/**
|
|
216
|
+
* The size of the component.
|
|
217
|
+
* If using a number, the pixel unit is assumed.
|
|
218
|
+
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
219
|
+
* @default 40
|
|
220
|
+
*/
|
|
221
|
+
size: r.oneOfType([r.number, r.string]),
|
|
222
|
+
/**
|
|
223
|
+
* @ignore
|
|
224
|
+
*/
|
|
225
|
+
style: r.object,
|
|
226
|
+
/**
|
|
227
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
228
|
+
*/
|
|
229
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
|
|
230
|
+
/**
|
|
231
|
+
* The thickness of the circle.
|
|
232
|
+
* @default 3.6
|
|
233
|
+
*/
|
|
234
|
+
thickness: r.number,
|
|
235
|
+
/**
|
|
236
|
+
* The value of the progress indicator for the determinate variant.
|
|
237
|
+
* Value between 0 and 100.
|
|
238
|
+
* @default 0
|
|
239
|
+
*/
|
|
240
|
+
value: r.number,
|
|
241
|
+
/**
|
|
242
|
+
* The variant to use.
|
|
243
|
+
* Use indeterminate when there is no progress value.
|
|
244
|
+
* @default 'indeterminate'
|
|
245
|
+
*/
|
|
246
|
+
variant: r.oneOf(["determinate", "indeterminate"])
|
|
247
|
+
});
|
|
248
|
+
export {
|
|
249
|
+
W as C
|
|
250
|
+
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
const r =
|
|
5
|
-
...
|
|
1
|
+
import { jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { n as s } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as t } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
const r = s("span")({
|
|
5
|
+
...t`
|
|
6
6
|
font-family: 'Roboto', sans-serif;
|
|
7
7
|
span {
|
|
8
8
|
font-weight: bold;
|
|
9
|
+
text-transform: capitalize;
|
|
9
10
|
}
|
|
10
11
|
`
|
|
11
|
-
}),
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
}), p = ({ label: e, value: o }) => /* @__PURE__ */ a(r, { children: [
|
|
13
|
+
/* @__PURE__ */ a("span", { children: [
|
|
14
|
+
e,
|
|
14
15
|
":"
|
|
15
16
|
] }),
|
|
16
17
|
" ",
|
|
17
|
-
|
|
18
|
+
o
|
|
18
19
|
] });
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
p as LabeledValue,
|
|
22
|
+
p as default
|
|
22
23
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { n as s } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as t } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import e from "../../theme.js";
|
|
5
|
+
import { C as i } from "../../.chunks/CircularProgress.js";
|
|
6
|
+
const m = s(i)({
|
|
7
|
+
...t`
|
|
8
|
+
color: ${e.colors.green};
|
|
9
|
+
`
|
|
10
|
+
}), g = ({ loading: a, ...r }) => /* @__PURE__ */ o(m, { size: 47, ...r });
|
|
11
|
+
export {
|
|
12
|
+
g as default
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type LoadingProps } from './Loading';
|
package/base/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export { default as Icon } from './Icon';
|
|
|
8
8
|
export { default as Input } from './Input';
|
|
9
9
|
export { default as LabeledValue } from './LabeledValue';
|
|
10
10
|
export { default as ListButton } from './ListButton';
|
|
11
|
+
export { default as Loading } from './Loading';
|
|
11
12
|
export { default as ScrollContainer } from './ScrollContainer';
|
package/base/index.js
CHANGED
|
@@ -2,23 +2,25 @@ import { default as t } from "./Avatar/Avatar.js";
|
|
|
2
2
|
import { AvatarWithImage as a } from "./AvatarWithImage/AvatarWithImage.js";
|
|
3
3
|
import { Button as m } from "./Button/Button.js";
|
|
4
4
|
import { Divider as x } from "./Divider/Divider.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as d } from "./Flex/Flex.js";
|
|
6
6
|
import { Grid as i } from "./Grid/Grid.js";
|
|
7
7
|
import { default as s } from "./Icon/Icon.js";
|
|
8
8
|
import { Input as I } from "./Input/Input.js";
|
|
9
|
-
import { LabeledValue as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
9
|
+
import { LabeledValue as c } from "./LabeledValue/LabeledValue.js";
|
|
10
|
+
import { default as A } from "./ListButton/ListButton.js";
|
|
11
|
+
import { default as b } from "./Loading/Loading.js";
|
|
12
|
+
import { default as C } from "./ScrollContainer/ScrollContainer.js";
|
|
12
13
|
export {
|
|
13
14
|
t as Avatar,
|
|
14
15
|
a as AvatarWithImage,
|
|
15
16
|
m as Button,
|
|
16
17
|
x as Divider,
|
|
17
|
-
|
|
18
|
+
d as Flex,
|
|
18
19
|
i as Grid,
|
|
19
20
|
s as Icon,
|
|
20
21
|
I as Input,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
c as LabeledValue,
|
|
23
|
+
A as ListButton,
|
|
24
|
+
b as Loading,
|
|
25
|
+
C as ScrollContainer
|
|
24
26
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as i } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import l from "../../theme.js";
|
|
5
5
|
import { LabeledValue as f } from "../../base/LabeledValue/LabeledValue.js";
|
|
6
6
|
import h from "../../base/Flex/Flex.js";
|
|
7
|
-
const g =
|
|
8
|
-
...
|
|
7
|
+
const g = d("div")(({ padding: r, shadow: o }) => ({
|
|
8
|
+
...i`
|
|
9
9
|
h3 {
|
|
10
10
|
margin: 0;
|
|
11
11
|
width: 100%;
|
|
@@ -17,32 +17,32 @@ const g = i("div")(({ padding: r, shadow: o }) => ({
|
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
box-shadow: ${o};
|
|
19
19
|
border-radius: 5px;
|
|
20
|
-
background-color: ${
|
|
20
|
+
background-color: ${l.colors.white};
|
|
21
21
|
`
|
|
22
|
-
})), x =
|
|
23
|
-
...
|
|
22
|
+
})), x = d("div")(({ spacing: r, columns: o }) => ({
|
|
23
|
+
...i`
|
|
24
24
|
margin-top: calc(${r} * 0.75);
|
|
25
25
|
grid-row-gap: ${r};
|
|
26
26
|
grid-column-gap: calc(${r} * 1.5);
|
|
27
27
|
display: grid;
|
|
28
28
|
grid-template-columns: repeat(${o}, 1fr);
|
|
29
29
|
`
|
|
30
|
-
})),
|
|
30
|
+
})), P = ({
|
|
31
31
|
decorativeElement: r,
|
|
32
32
|
title: o,
|
|
33
33
|
items: e,
|
|
34
|
-
padding:
|
|
35
|
-
shadow:
|
|
36
|
-
spacing:
|
|
37
|
-
columns:
|
|
38
|
-
}) => /* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
34
|
+
padding: m = "1rem 2rem",
|
|
35
|
+
shadow: c = l.boxShadow.darkGreen,
|
|
36
|
+
spacing: s = "2rem",
|
|
37
|
+
columns: p = 3
|
|
38
|
+
}) => /* @__PURE__ */ t(g, { ...{ padding: m, shadow: c }, children: [
|
|
39
|
+
/* @__PURE__ */ t(h, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
40
40
|
r && r,
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ a("h3", { children: o })
|
|
42
42
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ a(x, { ...{ spacing: s, columns: p }, children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ a(f, { ...n }, n.label)) })
|
|
44
44
|
] });
|
|
45
45
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
P as InfoCard,
|
|
47
|
+
P as default
|
|
48
48
|
};
|
|
@@ -1,261 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { c as W } from "../../.chunks/chainPropTypes.js";
|
|
10
|
-
function A(r) {
|
|
11
|
-
return U("MuiCircularProgress", r);
|
|
12
|
-
}
|
|
13
|
-
z("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
14
|
-
const a = 44, y = x`
|
|
15
|
-
0% {
|
|
16
|
-
transform: rotate(0deg);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
100% {
|
|
20
|
-
transform: rotate(360deg);
|
|
21
|
-
}
|
|
22
|
-
`, g = x`
|
|
23
|
-
0% {
|
|
24
|
-
stroke-dasharray: 1px, 200px;
|
|
25
|
-
stroke-dashoffset: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
50% {
|
|
29
|
-
stroke-dasharray: 100px, 200px;
|
|
30
|
-
stroke-dashoffset: -15px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
100% {
|
|
34
|
-
stroke-dasharray: 100px, 200px;
|
|
35
|
-
stroke-dashoffset: -125px;
|
|
36
|
-
}
|
|
37
|
-
`, K = typeof y != "string" ? v`
|
|
38
|
-
animation: ${y} 1.4s linear infinite;
|
|
39
|
-
` : null, B = typeof g != "string" ? v`
|
|
40
|
-
animation: ${g} 1.4s ease-in-out infinite;
|
|
41
|
-
` : null, G = (r) => {
|
|
42
|
-
const {
|
|
43
|
-
classes: e,
|
|
44
|
-
variant: s,
|
|
45
|
-
color: i,
|
|
46
|
-
disableShrink: m
|
|
47
|
-
} = r, p = {
|
|
48
|
-
root: ["root", s, `color${l(i)}`],
|
|
49
|
-
svg: ["svg"],
|
|
50
|
-
circle: ["circle", `circle${l(s)}`, m && "circleDisableShrink"]
|
|
51
|
-
};
|
|
52
|
-
return I(p, A, e);
|
|
53
|
-
}, L = k("span", {
|
|
54
|
-
name: "MuiCircularProgress",
|
|
55
|
-
slot: "Root",
|
|
56
|
-
overridesResolver: (r, e) => {
|
|
57
|
-
const {
|
|
58
|
-
ownerState: s
|
|
59
|
-
} = r;
|
|
60
|
-
return [e.root, e[s.variant], e[`color${l(s.color)}`]];
|
|
61
|
-
}
|
|
62
|
-
})(w(({
|
|
63
|
-
theme: r
|
|
64
|
-
}) => ({
|
|
65
|
-
display: "inline-block",
|
|
66
|
-
variants: [{
|
|
67
|
-
props: {
|
|
68
|
-
variant: "determinate"
|
|
69
|
-
},
|
|
70
|
-
style: {
|
|
71
|
-
transition: r.transitions.create("transform")
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
props: {
|
|
75
|
-
variant: "indeterminate"
|
|
76
|
-
},
|
|
77
|
-
style: K || {
|
|
78
|
-
animation: `${y} 1.4s linear infinite`
|
|
79
|
-
}
|
|
80
|
-
}, ...Object.entries(r.palette).filter(V()).map(([e]) => ({
|
|
81
|
-
props: {
|
|
82
|
-
color: e
|
|
83
|
-
},
|
|
84
|
-
style: {
|
|
85
|
-
color: (r.vars || r).palette[e].main
|
|
86
|
-
}
|
|
87
|
-
}))]
|
|
88
|
-
}))), Y = k("svg", {
|
|
89
|
-
name: "MuiCircularProgress",
|
|
90
|
-
slot: "Svg",
|
|
91
|
-
overridesResolver: (r, e) => e.svg
|
|
92
|
-
})({
|
|
93
|
-
display: "block"
|
|
94
|
-
// Keeps the progress centered
|
|
95
|
-
}), Z = k("circle", {
|
|
96
|
-
name: "MuiCircularProgress",
|
|
97
|
-
slot: "Circle",
|
|
98
|
-
overridesResolver: (r, e) => {
|
|
99
|
-
const {
|
|
100
|
-
ownerState: s
|
|
101
|
-
} = r;
|
|
102
|
-
return [e.circle, e[`circle${l(s.variant)}`], s.disableShrink && e.circleDisableShrink];
|
|
103
|
-
}
|
|
104
|
-
})(w(({
|
|
105
|
-
theme: r
|
|
106
|
-
}) => ({
|
|
107
|
-
stroke: "currentColor",
|
|
108
|
-
variants: [{
|
|
109
|
-
props: {
|
|
110
|
-
variant: "determinate"
|
|
111
|
-
},
|
|
112
|
-
style: {
|
|
113
|
-
transition: r.transitions.create("stroke-dashoffset")
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
props: {
|
|
117
|
-
variant: "indeterminate"
|
|
118
|
-
},
|
|
119
|
-
style: {
|
|
120
|
-
// Some default value that looks fine waiting for the animation to kicks in.
|
|
121
|
-
strokeDasharray: "80px, 200px",
|
|
122
|
-
strokeDashoffset: 0
|
|
123
|
-
// Add the unit to fix a Edge 16 and below bug.
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
props: ({
|
|
127
|
-
ownerState: e
|
|
128
|
-
}) => e.variant === "indeterminate" && !e.disableShrink,
|
|
129
|
-
style: B || {
|
|
130
|
-
// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
|
|
131
|
-
animation: `${g} 1.4s ease-in-out infinite`
|
|
132
|
-
}
|
|
133
|
-
}]
|
|
134
|
-
}))), $ = /* @__PURE__ */ j.forwardRef(function(e, s) {
|
|
135
|
-
const i = E({
|
|
136
|
-
props: e,
|
|
137
|
-
name: "MuiCircularProgress"
|
|
138
|
-
}), {
|
|
139
|
-
className: m,
|
|
140
|
-
color: p = "primary",
|
|
141
|
-
disableShrink: D = !1,
|
|
142
|
-
size: f = 40,
|
|
143
|
-
style: M,
|
|
144
|
-
thickness: n = 3.6,
|
|
145
|
-
value: d = 0,
|
|
146
|
-
variant: b = "indeterminate",
|
|
147
|
-
...O
|
|
148
|
-
} = i, c = {
|
|
149
|
-
...i,
|
|
150
|
-
color: p,
|
|
151
|
-
disableShrink: D,
|
|
152
|
-
size: f,
|
|
153
|
-
thickness: n,
|
|
154
|
-
value: d,
|
|
155
|
-
variant: b
|
|
156
|
-
}, u = G(c), h = {}, S = {}, C = {};
|
|
157
|
-
if (b === "determinate") {
|
|
158
|
-
const P = 2 * Math.PI * ((a - n) / 2);
|
|
159
|
-
h.strokeDasharray = P.toFixed(3), C["aria-valuenow"] = Math.round(d), h.strokeDashoffset = `${((100 - d) / 100 * P).toFixed(3)}px`, S.transform = "rotate(-90deg)";
|
|
160
|
-
}
|
|
161
|
-
return /* @__PURE__ */ o(L, {
|
|
162
|
-
className: F(u.root, m),
|
|
163
|
-
style: {
|
|
164
|
-
width: f,
|
|
165
|
-
height: f,
|
|
166
|
-
...S,
|
|
167
|
-
...M
|
|
168
|
-
},
|
|
169
|
-
ownerState: c,
|
|
170
|
-
ref: s,
|
|
171
|
-
role: "progressbar",
|
|
172
|
-
...C,
|
|
173
|
-
...O,
|
|
174
|
-
children: /* @__PURE__ */ o(Y, {
|
|
175
|
-
className: u.svg,
|
|
176
|
-
ownerState: c,
|
|
177
|
-
viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
|
|
178
|
-
children: /* @__PURE__ */ o(Z, {
|
|
179
|
-
className: u.circle,
|
|
180
|
-
style: h,
|
|
181
|
-
ownerState: c,
|
|
182
|
-
cx: a,
|
|
183
|
-
cy: a,
|
|
184
|
-
r: (a - n) / 2,
|
|
185
|
-
fill: "none",
|
|
186
|
-
strokeWidth: n
|
|
187
|
-
})
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
192
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
193
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
194
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
195
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
196
|
-
/**
|
|
197
|
-
* Override or extend the styles applied to the component.
|
|
198
|
-
*/
|
|
199
|
-
classes: t.object,
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
className: t.string,
|
|
204
|
-
/**
|
|
205
|
-
* The color of the component.
|
|
206
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
207
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
208
|
-
* @default 'primary'
|
|
209
|
-
*/
|
|
210
|
-
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
211
|
-
/**
|
|
212
|
-
* If `true`, the shrink animation is disabled.
|
|
213
|
-
* This only works if variant is `indeterminate`.
|
|
214
|
-
* @default false
|
|
215
|
-
*/
|
|
216
|
-
disableShrink: W(t.bool, (r) => r.disableShrink && r.variant && r.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
217
|
-
/**
|
|
218
|
-
* The size of the component.
|
|
219
|
-
* If using a number, the pixel unit is assumed.
|
|
220
|
-
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
221
|
-
* @default 40
|
|
222
|
-
*/
|
|
223
|
-
size: t.oneOfType([t.number, t.string]),
|
|
224
|
-
/**
|
|
225
|
-
* @ignore
|
|
226
|
-
*/
|
|
227
|
-
style: t.object,
|
|
228
|
-
/**
|
|
229
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
230
|
-
*/
|
|
231
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
232
|
-
/**
|
|
233
|
-
* The thickness of the circle.
|
|
234
|
-
* @default 3.6
|
|
235
|
-
*/
|
|
236
|
-
thickness: t.number,
|
|
237
|
-
/**
|
|
238
|
-
* The value of the progress indicator for the determinate variant.
|
|
239
|
-
* Value between 0 and 100.
|
|
240
|
-
* @default 0
|
|
241
|
-
*/
|
|
242
|
-
value: t.number,
|
|
243
|
-
/**
|
|
244
|
-
* The variant to use.
|
|
245
|
-
* Use indeterminate when there is no progress value.
|
|
246
|
-
* @default 'indeterminate'
|
|
247
|
-
*/
|
|
248
|
-
variant: t.oneOf(["determinate", "indeterminate"])
|
|
249
|
-
});
|
|
250
|
-
const _ = R($)({
|
|
251
|
-
...v`
|
|
252
|
-
color: ${N.colors.green};
|
|
1
|
+
import { jsx as r, Fragment as e } from "react/jsx-runtime";
|
|
2
|
+
import { n as m } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as i } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import a from "../../theme.js";
|
|
5
|
+
import { C as c } from "../../.chunks/CircularProgress.js";
|
|
6
|
+
const n = m(c)({
|
|
7
|
+
...i`
|
|
8
|
+
color: ${a.colors.green};
|
|
253
9
|
`
|
|
254
|
-
}),
|
|
255
|
-
loading:
|
|
256
|
-
children:
|
|
10
|
+
}), d = ({
|
|
11
|
+
loading: o,
|
|
12
|
+
children: t,
|
|
257
13
|
...s
|
|
258
|
-
}) =>
|
|
14
|
+
}) => o ? /* @__PURE__ */ r(n, { size: 47, ...s }) : /* @__PURE__ */ r(e, { children: t });
|
|
259
15
|
export {
|
|
260
|
-
|
|
16
|
+
d as default
|
|
261
17
|
};
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ZoomEntrance } from './animation';
|
|
2
|
-
export { Avatar, AvatarWithImage, Button, Divider, Flex, Grid, Icon, Input, LabeledValue, ListButton, ScrollContainer, } from './base';
|
|
2
|
+
export { Avatar, AvatarWithImage, Button, Divider, Flex, Grid, Icon, Input, LabeledValue, ListButton, Loading, ScrollContainer, } from './base';
|
|
3
3
|
export { InfoCard, List, LogoLoop, WithLabel, WithLoading } from './composite';
|
|
4
4
|
export { AppHeader, Nav } from './supercomposite';
|
|
5
5
|
export { AppContainer } from './templates';
|
package/index.js
CHANGED
|
@@ -5,38 +5,40 @@ import { Button as x } from "./base/Button/Button.js";
|
|
|
5
5
|
import { Divider as l } from "./base/Divider/Divider.js";
|
|
6
6
|
import { default as s } from "./base/Flex/Flex.js";
|
|
7
7
|
import { Grid as i } from "./base/Grid/Grid.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { Input as
|
|
10
|
-
import { LabeledValue as
|
|
8
|
+
import { default as g } from "./base/Icon/Icon.js";
|
|
9
|
+
import { Input as A } from "./base/Input/Input.js";
|
|
10
|
+
import { LabeledValue as c } from "./base/LabeledValue/LabeledValue.js";
|
|
11
11
|
import { default as C } from "./base/ListButton/ListButton.js";
|
|
12
|
-
import { default as b } from "./base/
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { default as H } from "./composite/
|
|
16
|
-
import { default as S } from "./composite/
|
|
17
|
-
import { default as Z } from "./composite/
|
|
18
|
-
import { default as k } from "./
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
12
|
+
import { default as b } from "./base/Loading/Loading.js";
|
|
13
|
+
import { default as D } from "./base/ScrollContainer/ScrollContainer.js";
|
|
14
|
+
import { InfoCard as F } from "./composite/InfoCard/InfoCard.js";
|
|
15
|
+
import { default as H } from "./composite/List/List.js";
|
|
16
|
+
import { default as S } from "./composite/LogoLoop/LogoLoop.js";
|
|
17
|
+
import { default as Z } from "./composite/WithLabel/WithLabel.js";
|
|
18
|
+
import { default as k } from "./composite/WithLoading/WithLoading.js";
|
|
19
|
+
import { default as w } from "./supercomposite/AppHeader/AppHeader.js";
|
|
20
|
+
import { Nav as z } from "./supercomposite/Nav/Nav.js";
|
|
21
|
+
import { default as K } from "./templates/AppContainer/AppContainer.js";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
K as AppContainer,
|
|
24
|
+
w as AppHeader,
|
|
24
25
|
a as Avatar,
|
|
25
26
|
p as AvatarWithImage,
|
|
26
27
|
x as Button,
|
|
27
28
|
l as Divider,
|
|
28
29
|
s as Flex,
|
|
29
30
|
i as Grid,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
g as Icon,
|
|
32
|
+
F as InfoCard,
|
|
33
|
+
A as Input,
|
|
34
|
+
c as LabeledValue,
|
|
35
|
+
H as List,
|
|
35
36
|
C as ListButton,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Z as
|
|
37
|
+
b as Loading,
|
|
38
|
+
S as LogoLoop,
|
|
39
|
+
z as Nav,
|
|
40
|
+
D as ScrollContainer,
|
|
41
|
+
Z as WithLabel,
|
|
42
|
+
k as WithLoading,
|
|
41
43
|
t as ZoomEntrance
|
|
42
44
|
};
|
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.51",
|
|
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",
|