jcicl 0.0.114 → 0.0.118
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/Input.js +2 -2
- package/Accordion/Accordion.js +1 -1
- package/AppContainer/AppContainer.d.ts +4 -2
- package/AppContainer/AppContainer.js +754 -675
- package/AppHeader/AppHeader.d.ts +1 -0
- package/AppHeader/AppHeader.js +84 -76
- package/AppHeader/index.d.ts +1 -1
- package/Button/Button.d.ts +1 -0
- package/Button/Button.js +94 -93
- package/EditableInfoCard/EditableInfoCard.js +1 -1
- package/ImageWIthDetails/ImageWithDetails.d.ts +13 -0
- package/ImageWIthDetails/ImageWithDetails.js +49 -0
- package/ImageWIthDetails/index.d.ts +1 -0
- package/ImageWIthDetails/index.js +4 -0
- package/InfoCard/InfoCard.js +4 -4
- package/Nav/Nav.d.ts +1 -1
- package/Nav/Nav.js +43 -45
- package/Nav/index.d.ts +1 -1
- package/package.json +1 -1
- package/theme.d.ts +6 -1
- package/theme.js +6 -2
package/AppHeader/AppHeader.d.ts
CHANGED
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { jsx as u, jsxs as
|
|
1
|
+
import { jsx as u, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import
|
|
3
|
+
import E, { useState as v, useLayoutEffect as M } from "react";
|
|
4
4
|
import { n as f } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
-
import { c as
|
|
6
|
-
import { I as
|
|
5
|
+
import { c as m } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
|
+
import { I as y } from "../.chunks/Input.js";
|
|
7
7
|
import { Button as C } from "../Button/Button.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import O from "../Avatar/Avatar.js";
|
|
9
|
+
import I from "../WithLabel/WithLabel.js";
|
|
10
10
|
import { c as L } from "../.chunks/createSvgIcon.js";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const R = E[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], _ = (e) => {
|
|
12
|
+
const c = w.useRef(e);
|
|
13
13
|
return w.useEffect(() => {
|
|
14
|
-
|
|
15
|
-
}),
|
|
14
|
+
c.current = e;
|
|
15
|
+
}), c;
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function A() {
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const r =
|
|
21
|
-
return
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
if (!
|
|
25
|
-
function i
|
|
26
|
-
|
|
19
|
+
function H(e, c, s = {}) {
|
|
20
|
+
const r = U(s.polyfill), a = _(c);
|
|
21
|
+
return R(() => {
|
|
22
|
+
let o = !1;
|
|
23
|
+
const l = e && "current" in e ? e.current : e;
|
|
24
|
+
if (!l) return A;
|
|
25
|
+
function n(i, t) {
|
|
26
|
+
o || a.current(i, t);
|
|
27
27
|
}
|
|
28
|
-
return r.subscribe(
|
|
29
|
-
|
|
28
|
+
return r.subscribe(l, n), () => {
|
|
29
|
+
o = !0, r.unsubscribe(l, n);
|
|
30
30
|
};
|
|
31
31
|
}, [e, r, a]), r.observer;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
35
|
-
const r = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
for (let
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
33
|
+
function j(e) {
|
|
34
|
+
let c = !1, s = [];
|
|
35
|
+
const r = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((o, l) => {
|
|
36
|
+
s = s.concat(o);
|
|
37
|
+
function n() {
|
|
38
|
+
const i = /* @__PURE__ */ new Set();
|
|
39
|
+
for (let t = 0; t < s.length; t++) {
|
|
40
|
+
if (i.has(s[t].target)) continue;
|
|
41
|
+
i.add(s[t].target);
|
|
42
|
+
const h = r.get(s[t].target);
|
|
43
|
+
h == null || h.forEach((d) => d(s[t], l));
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
s = [], c = !1;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
c || window.requestAnimationFrame(n), c = !0;
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
50
|
observer: a,
|
|
51
|
-
subscribe(
|
|
52
|
-
var
|
|
53
|
-
a.observe(
|
|
54
|
-
const
|
|
55
|
-
|
|
51
|
+
subscribe(o, l) {
|
|
52
|
+
var n;
|
|
53
|
+
a.observe(o);
|
|
54
|
+
const i = (n = r.get(o)) !== null && n !== void 0 ? n : [];
|
|
55
|
+
i.push(l), r.set(o, i);
|
|
56
56
|
},
|
|
57
|
-
unsubscribe(
|
|
58
|
-
var
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
a.unobserve(
|
|
57
|
+
unsubscribe(o, l) {
|
|
58
|
+
var n;
|
|
59
|
+
const i = (n = r.get(o)) !== null && n !== void 0 ? n : [];
|
|
60
|
+
if (i.length === 1) {
|
|
61
|
+
a.unobserve(o), r.delete(o);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const t = i.indexOf(l);
|
|
65
|
+
t !== -1 && i.splice(t, 1), r.set(o, i);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
const
|
|
69
|
+
let g;
|
|
70
|
+
const U = (e) => g || (g = j(e)), V = L(/* @__PURE__ */ u("path", {
|
|
71
71
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
72
|
-
}), "Menu"),
|
|
73
|
-
...
|
|
72
|
+
}), "Menu"), B = f("div")(() => ({
|
|
73
|
+
...m`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex-direction: row;
|
|
76
76
|
padding: 4px 16px;
|
|
@@ -79,35 +79,35 @@ const j = (e) => v || (v = H(e)), U = L(/* @__PURE__ */ u("path", {
|
|
|
79
79
|
justify-content: space-between;
|
|
80
80
|
gap: 1.5rem;
|
|
81
81
|
`
|
|
82
|
-
})),
|
|
82
|
+
})), F = f("img")(({ width: e }) => ({
|
|
83
83
|
width: `${e}px`
|
|
84
|
-
})),
|
|
85
|
-
...
|
|
84
|
+
})), q = f("div")(({ height: e }) => ({
|
|
85
|
+
...m`
|
|
86
86
|
display: flex;
|
|
87
87
|
gap: 1rem;
|
|
88
88
|
height: ${e}px;
|
|
89
89
|
`
|
|
90
|
-
})),
|
|
91
|
-
...
|
|
90
|
+
})), P = f("div")(({ width: e, loggedIn: c }) => ({
|
|
91
|
+
...m`
|
|
92
92
|
width: ${e}px;
|
|
93
93
|
display: flex;
|
|
94
94
|
justify-content: center;
|
|
95
95
|
align-items: flex-end;
|
|
96
|
-
flex-direction: ${
|
|
96
|
+
flex-direction: ${c ? "column" : "column-reverse"};
|
|
97
97
|
flex-shrink: 0;
|
|
98
98
|
* {
|
|
99
99
|
white-space: nowrap;
|
|
100
100
|
}
|
|
101
101
|
`
|
|
102
102
|
})), W = f("div")(({ visible: e }) => ({
|
|
103
|
-
...
|
|
103
|
+
...m`
|
|
104
104
|
z-index: ${e ? 1 : 0};
|
|
105
105
|
opacity: ${e ? 1 : 0};
|
|
106
106
|
pointer-events: ${e ? "auto" : "none"};
|
|
107
107
|
position: ${e ? "relative" : "absolute"};
|
|
108
108
|
`
|
|
109
|
-
})),
|
|
110
|
-
...
|
|
109
|
+
})), D = f("div")(() => ({
|
|
110
|
+
...m`
|
|
111
111
|
display: flex;
|
|
112
112
|
width: 1360px;
|
|
113
113
|
max-width: 100%;
|
|
@@ -115,33 +115,41 @@ const j = (e) => v || (v = H(e)), U = L(/* @__PURE__ */ u("path", {
|
|
|
115
115
|
width: 100%;
|
|
116
116
|
}
|
|
117
117
|
`
|
|
118
|
-
})),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
})), ee = ({
|
|
119
|
+
loggedIn: e,
|
|
120
|
+
logoProps: c,
|
|
121
|
+
iconColor: s,
|
|
122
|
+
hamburgerMenu: r,
|
|
123
|
+
onHamburgerMenuClick: a,
|
|
124
|
+
onUserMenuClick: o,
|
|
125
|
+
onLogin: l
|
|
126
|
+
}) => {
|
|
127
|
+
const [n, i] = v(0), [t, h] = v(null), [d, z] = v(null), { logoSrc: $, logoWidth: k, logoHeight: x } = c;
|
|
128
|
+
M(() => {
|
|
129
|
+
t && t.clientWidth > n && i(t.clientWidth), d && d.clientWidth > n && i(d.clientWidth);
|
|
122
130
|
}, [t, d]);
|
|
123
|
-
const
|
|
124
|
-
|
|
131
|
+
const S = (p) => {
|
|
132
|
+
p != null && p.clientWidth && p.clientWidth > n && i(p.clientWidth);
|
|
125
133
|
};
|
|
126
|
-
return
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */ u(
|
|
129
|
-
|
|
134
|
+
return H(t, () => S(t)), /* @__PURE__ */ b(B, { children: [
|
|
135
|
+
/* @__PURE__ */ b(q, { height: x, children: [
|
|
136
|
+
/* @__PURE__ */ u(F, { src: $, height: `${x}px`, width: k }),
|
|
137
|
+
r && /* @__PURE__ */ u(C, { variant: "icon", onClick: a, color: s, children: /* @__PURE__ */ u(V, {}) })
|
|
130
138
|
] }),
|
|
131
|
-
/* @__PURE__ */ u(
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */ u(W, { visible:
|
|
134
|
-
|
|
139
|
+
/* @__PURE__ */ u(D, { children: /* @__PURE__ */ u(y, { placeholder: "Search..." }) }),
|
|
140
|
+
/* @__PURE__ */ b(P, { width: n, loggedIn: !!e, children: [
|
|
141
|
+
/* @__PURE__ */ u(W, { visible: !!e, ref: h, children: /* @__PURE__ */ u(
|
|
142
|
+
I,
|
|
135
143
|
{
|
|
136
144
|
id: "accountMenuContainer",
|
|
137
|
-
component: /* @__PURE__ */ u(
|
|
145
|
+
component: /* @__PURE__ */ u(O, { onClick: o }),
|
|
138
146
|
label: "Welcome, User"
|
|
139
147
|
}
|
|
140
148
|
) }),
|
|
141
|
-
/* @__PURE__ */ u(W, { visible: !
|
|
149
|
+
/* @__PURE__ */ u(W, { visible: !e, ref: z, children: /* @__PURE__ */ u(C, { id: "loginButtonContainer", onClick: l, children: "Log In" }) })
|
|
142
150
|
] })
|
|
143
151
|
] });
|
|
144
152
|
};
|
|
145
153
|
export {
|
|
146
|
-
|
|
154
|
+
ee as default
|
|
147
155
|
};
|
package/AppHeader/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, type AppHeaderProps } from './AppHeader';
|
|
1
|
+
export { default, type AppHeaderProps, type CustomLogoProps } from './AppHeader';
|
package/Button/Button.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface ButtonProps extends Omit<MuiButtonProps, 'variant' | 'size' | '
|
|
|
3
3
|
variant?: 1 | 2 | 'unstyled' | 'icon';
|
|
4
4
|
size?: number;
|
|
5
5
|
color?: string;
|
|
6
|
+
highlightColor?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const Button: React.FC<ButtonProps & {
|
|
8
9
|
children: React.ReactNode;
|
package/Button/Button.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as F, jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { g as U, a as _, s as
|
|
1
|
+
import { jsxs as F, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import { g as U, a as _, s as c, r as H, c as i, f as A, u as q, b as I, P as t, d as J, e as b } from "../.chunks/DefaultPropsProvider.js";
|
|
4
4
|
import { m as K } from "../.chunks/memoTheme.js";
|
|
5
5
|
import { c as Q } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
6
6
|
import { B as S } from "../.chunks/ButtonBase.js";
|
|
7
7
|
import { c as X } from "../.chunks/emotion-react.browser.esm.js";
|
|
8
|
-
import
|
|
8
|
+
import s from "../theme.js";
|
|
9
9
|
function Y(o) {
|
|
10
10
|
return U("MuiButton", o);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
process.env.NODE_ENV !== "production" && (
|
|
14
|
-
const O = /* @__PURE__ */
|
|
12
|
+
const u = _("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), h = /* @__PURE__ */ x.createContext({});
|
|
13
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
14
|
+
const O = /* @__PURE__ */ x.createContext(void 0);
|
|
15
15
|
process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
|
|
16
16
|
const Z = (o) => {
|
|
17
17
|
const {
|
|
18
|
-
color:
|
|
19
|
-
disableElevation:
|
|
20
|
-
fullWidth:
|
|
21
|
-
size:
|
|
22
|
-
variant:
|
|
23
|
-
classes:
|
|
18
|
+
color: n,
|
|
19
|
+
disableElevation: a,
|
|
20
|
+
fullWidth: r,
|
|
21
|
+
size: e,
|
|
22
|
+
variant: l,
|
|
23
|
+
classes: p
|
|
24
24
|
} = o, f = {
|
|
25
|
-
root: ["root",
|
|
25
|
+
root: ["root", l, `${l}${i(n)}`, `size${i(e)}`, `${l}Size${i(e)}`, `color${i(n)}`, a && "disableElevation", r && "fullWidth"],
|
|
26
26
|
label: ["label"],
|
|
27
|
-
startIcon: ["icon", "startIcon", `iconSize${
|
|
28
|
-
endIcon: ["icon", "endIcon", `iconSize${
|
|
29
|
-
}, y = J(f, Y,
|
|
27
|
+
startIcon: ["icon", "startIcon", `iconSize${i(e)}`],
|
|
28
|
+
endIcon: ["icon", "endIcon", `iconSize${i(e)}`]
|
|
29
|
+
}, y = J(f, Y, p);
|
|
30
30
|
return {
|
|
31
|
-
...
|
|
31
|
+
...p,
|
|
32
32
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
33
33
|
...y
|
|
34
34
|
};
|
|
@@ -59,20 +59,20 @@ const Z = (o) => {
|
|
|
59
59
|
fontSize: 22
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
}], oo =
|
|
62
|
+
}], oo = c(S, {
|
|
63
63
|
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
64
64
|
name: "MuiButton",
|
|
65
65
|
slot: "Root",
|
|
66
|
-
overridesResolver: (o,
|
|
66
|
+
overridesResolver: (o, n) => {
|
|
67
67
|
const {
|
|
68
|
-
ownerState:
|
|
68
|
+
ownerState: a
|
|
69
69
|
} = o;
|
|
70
|
-
return [
|
|
70
|
+
return [n.root, n[a.variant], n[`${a.variant}${i(a.color)}`], n[`size${i(a.size)}`], n[`${a.variant}Size${i(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
|
|
71
71
|
}
|
|
72
72
|
})(K(({
|
|
73
73
|
theme: o
|
|
74
74
|
}) => {
|
|
75
|
-
const
|
|
75
|
+
const n = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
76
76
|
return {
|
|
77
77
|
...o.typography.button,
|
|
78
78
|
minWidth: 64,
|
|
@@ -85,7 +85,7 @@ const Z = (o) => {
|
|
|
85
85
|
"&:hover": {
|
|
86
86
|
textDecoration: "none"
|
|
87
87
|
},
|
|
88
|
-
[`&.${
|
|
88
|
+
[`&.${u.disabled}`]: {
|
|
89
89
|
color: (o.vars || o).palette.action.disabled
|
|
90
90
|
},
|
|
91
91
|
variants: [{
|
|
@@ -106,10 +106,10 @@ const Z = (o) => {
|
|
|
106
106
|
"&:active": {
|
|
107
107
|
boxShadow: (o.vars || o).shadows[8]
|
|
108
108
|
},
|
|
109
|
-
[`&.${
|
|
109
|
+
[`&.${u.focusVisible}`]: {
|
|
110
110
|
boxShadow: (o.vars || o).shadows[6]
|
|
111
111
|
},
|
|
112
|
-
[`&.${
|
|
112
|
+
[`&.${u.disabled}`]: {
|
|
113
113
|
color: (o.vars || o).palette.action.disabled,
|
|
114
114
|
boxShadow: (o.vars || o).shadows[0],
|
|
115
115
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
@@ -125,7 +125,7 @@ const Z = (o) => {
|
|
|
125
125
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
126
126
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
127
127
|
color: "var(--variant-outlinedColor)",
|
|
128
|
-
[`&.${
|
|
128
|
+
[`&.${u.disabled}`]: {
|
|
129
129
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -138,22 +138,22 @@ const Z = (o) => {
|
|
|
138
138
|
color: "var(--variant-textColor)",
|
|
139
139
|
backgroundColor: "var(--variant-textBg)"
|
|
140
140
|
}
|
|
141
|
-
}, ...Object.entries(o.palette).filter(Q()).map(([
|
|
141
|
+
}, ...Object.entries(o.palette).filter(Q()).map(([r]) => ({
|
|
142
142
|
props: {
|
|
143
|
-
color:
|
|
143
|
+
color: r
|
|
144
144
|
},
|
|
145
145
|
style: {
|
|
146
|
-
"--variant-textColor": (o.vars || o).palette[
|
|
147
|
-
"--variant-outlinedColor": (o.vars || o).palette[
|
|
148
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[
|
|
149
|
-
"--variant-containedColor": (o.vars || o).palette[
|
|
150
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
146
|
+
"--variant-textColor": (o.vars || o).palette[r].main,
|
|
147
|
+
"--variant-outlinedColor": (o.vars || o).palette[r].main,
|
|
148
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : b(o.palette[r].main, 0.5),
|
|
149
|
+
"--variant-containedColor": (o.vars || o).palette[r].contrastText,
|
|
150
|
+
"--variant-containedBg": (o.vars || o).palette[r].main,
|
|
151
151
|
"@media (hover: hover)": {
|
|
152
152
|
"&:hover": {
|
|
153
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
154
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[
|
|
155
|
-
"--variant-outlinedBorder": (o.vars || o).palette[
|
|
156
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[
|
|
153
|
+
"--variant-containedBg": (o.vars || o).palette[r].dark,
|
|
154
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity),
|
|
155
|
+
"--variant-outlinedBorder": (o.vars || o).palette[r].main,
|
|
156
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity)
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -164,10 +164,10 @@ const Z = (o) => {
|
|
|
164
164
|
style: {
|
|
165
165
|
color: "inherit",
|
|
166
166
|
borderColor: "currentColor",
|
|
167
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg :
|
|
167
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
|
|
168
168
|
"@media (hover: hover)": {
|
|
169
169
|
"&:hover": {
|
|
170
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg :
|
|
170
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
|
|
171
171
|
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
172
172
|
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
173
173
|
}
|
|
@@ -236,13 +236,13 @@ const Z = (o) => {
|
|
|
236
236
|
"&:hover": {
|
|
237
237
|
boxShadow: "none"
|
|
238
238
|
},
|
|
239
|
-
[`&.${
|
|
239
|
+
[`&.${u.focusVisible}`]: {
|
|
240
240
|
boxShadow: "none"
|
|
241
241
|
},
|
|
242
242
|
"&:active": {
|
|
243
243
|
boxShadow: "none"
|
|
244
244
|
},
|
|
245
|
-
[`&.${
|
|
245
|
+
[`&.${u.disabled}`]: {
|
|
246
246
|
boxShadow: "none"
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -255,14 +255,14 @@ const Z = (o) => {
|
|
|
255
255
|
}
|
|
256
256
|
}]
|
|
257
257
|
};
|
|
258
|
-
})), to =
|
|
258
|
+
})), to = c("span", {
|
|
259
259
|
name: "MuiButton",
|
|
260
260
|
slot: "StartIcon",
|
|
261
|
-
overridesResolver: (o,
|
|
261
|
+
overridesResolver: (o, n) => {
|
|
262
262
|
const {
|
|
263
|
-
ownerState:
|
|
263
|
+
ownerState: a
|
|
264
264
|
} = o;
|
|
265
|
-
return [
|
|
265
|
+
return [n.startIcon, n[`iconSize${i(a.size)}`]];
|
|
266
266
|
}
|
|
267
267
|
})({
|
|
268
268
|
display: "inherit",
|
|
@@ -276,14 +276,14 @@ const Z = (o) => {
|
|
|
276
276
|
marginLeft: -2
|
|
277
277
|
}
|
|
278
278
|
}, ...R]
|
|
279
|
-
}), ao =
|
|
279
|
+
}), ao = c("span", {
|
|
280
280
|
name: "MuiButton",
|
|
281
281
|
slot: "EndIcon",
|
|
282
|
-
overridesResolver: (o,
|
|
282
|
+
overridesResolver: (o, n) => {
|
|
283
283
|
const {
|
|
284
|
-
ownerState:
|
|
284
|
+
ownerState: a
|
|
285
285
|
} = o;
|
|
286
|
-
return [
|
|
286
|
+
return [n.endIcon, n[`iconSize${i(a.size)}`]];
|
|
287
287
|
}
|
|
288
288
|
})({
|
|
289
289
|
display: "inherit",
|
|
@@ -297,9 +297,9 @@ const Z = (o) => {
|
|
|
297
297
|
marginRight: -2
|
|
298
298
|
}
|
|
299
299
|
}, ...R]
|
|
300
|
-
}), k = /* @__PURE__ */
|
|
301
|
-
const
|
|
302
|
-
props:
|
|
300
|
+
}), k = /* @__PURE__ */ x.forwardRef(function(n, a) {
|
|
301
|
+
const r = x.useContext(h), e = x.useContext(O), l = A(r, n), p = q({
|
|
302
|
+
props: l,
|
|
303
303
|
name: "MuiButton"
|
|
304
304
|
}), {
|
|
305
305
|
children: f,
|
|
@@ -316,9 +316,9 @@ const Z = (o) => {
|
|
|
316
316
|
startIcon: m,
|
|
317
317
|
type: w,
|
|
318
318
|
variant: V = "text",
|
|
319
|
-
...
|
|
320
|
-
} =
|
|
321
|
-
...
|
|
319
|
+
...j
|
|
320
|
+
} = p, g = {
|
|
321
|
+
...p,
|
|
322
322
|
color: y,
|
|
323
323
|
component: B,
|
|
324
324
|
disabled: z,
|
|
@@ -328,27 +328,27 @@ const Z = (o) => {
|
|
|
328
328
|
size: M,
|
|
329
329
|
type: w,
|
|
330
330
|
variant: V
|
|
331
|
-
}, v = Z(
|
|
331
|
+
}, v = Z(g), G = m && /* @__PURE__ */ d(to, {
|
|
332
332
|
className: v.startIcon,
|
|
333
|
-
ownerState:
|
|
333
|
+
ownerState: g,
|
|
334
334
|
children: m
|
|
335
|
-
}), L = C && /* @__PURE__ */
|
|
335
|
+
}), L = C && /* @__PURE__ */ d(ao, {
|
|
336
336
|
className: v.endIcon,
|
|
337
|
-
ownerState:
|
|
337
|
+
ownerState: g,
|
|
338
338
|
children: C
|
|
339
|
-
}), D =
|
|
339
|
+
}), D = e || "";
|
|
340
340
|
return /* @__PURE__ */ F(oo, {
|
|
341
|
-
ownerState:
|
|
342
|
-
className:
|
|
341
|
+
ownerState: g,
|
|
342
|
+
className: I(r.className, v.root, N, D),
|
|
343
343
|
component: B,
|
|
344
344
|
disabled: z,
|
|
345
345
|
focusRipple: !$,
|
|
346
|
-
focusVisibleClassName:
|
|
347
|
-
ref:
|
|
346
|
+
focusVisibleClassName: I(v.focusVisible, P),
|
|
347
|
+
ref: a,
|
|
348
348
|
type: w,
|
|
349
|
-
...
|
|
349
|
+
...j,
|
|
350
350
|
classes: v,
|
|
351
|
-
children: [
|
|
351
|
+
children: [G, f, L]
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
@@ -445,43 +445,43 @@ process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
|
445
445
|
*/
|
|
446
446
|
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
447
447
|
});
|
|
448
|
-
const E =
|
|
448
|
+
const E = c(k)`
|
|
449
449
|
text-transform: none;
|
|
450
450
|
&:disabled {
|
|
451
451
|
opacity: 0.5;
|
|
452
|
-
color: ${
|
|
452
|
+
color: ${s.colors.black};
|
|
453
453
|
display: flex;
|
|
454
454
|
justify-content: center;
|
|
455
455
|
align-items: center;
|
|
456
456
|
}
|
|
457
|
-
`, no =
|
|
458
|
-
background-color: ${
|
|
457
|
+
`, no = c(E)`
|
|
458
|
+
background-color: ${s.colors.green};
|
|
459
459
|
border-radius: 0;
|
|
460
460
|
height: 2.5rem;
|
|
461
461
|
border: 2px solid transparent;
|
|
462
|
-
color: ${
|
|
462
|
+
color: ${s.colors.white};
|
|
463
463
|
transition: 313ms all ease-in;
|
|
464
464
|
border-radius: 32px;
|
|
465
465
|
font-weight: 400;
|
|
466
466
|
padding: 0.75rem 2rem;
|
|
467
467
|
font-size: 1rem;
|
|
468
|
-
box-shadow: ${
|
|
468
|
+
box-shadow: ${s.boxShadows.gray63};
|
|
469
469
|
&:hover,
|
|
470
470
|
:focus-visible {
|
|
471
|
-
background-color: ${
|
|
472
|
-
box-shadow: ${
|
|
471
|
+
background-color: ${s.colors.darkGreen};
|
|
472
|
+
box-shadow: ${s.boxShadows.black63};
|
|
473
473
|
}
|
|
474
474
|
&:disabled {
|
|
475
|
-
background-color: ${
|
|
475
|
+
background-color: ${s.colors.darkGreen};
|
|
476
476
|
}
|
|
477
|
-
`, ro =
|
|
478
|
-
color: ${
|
|
479
|
-
border: 3px solid ${
|
|
477
|
+
`, ro = c(E)`
|
|
478
|
+
color: ${s.colors.black};
|
|
479
|
+
border: 3px solid ${s.colors.blue};
|
|
480
480
|
padding: 0.5rem 2rem;
|
|
481
|
-
`, eo =
|
|
481
|
+
`, eo = c(S)`
|
|
482
482
|
border-radius: 8px;
|
|
483
|
-
`, io =
|
|
484
|
-
({ size: o, color:
|
|
483
|
+
`, io = c(S)(
|
|
484
|
+
({ size: o, color: n, highlightColor: a }) => ({
|
|
485
485
|
...X`
|
|
486
486
|
display: flex;
|
|
487
487
|
align-items: center;
|
|
@@ -492,27 +492,28 @@ const E = d(k)`
|
|
|
492
492
|
&:hover,
|
|
493
493
|
:focus-visible {
|
|
494
494
|
svg {
|
|
495
|
-
filter: drop-shadow(0 0 6px ${
|
|
496
|
-
drop-shadow(0 0 6px ${
|
|
495
|
+
filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
|
|
496
|
+
drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
svg {
|
|
501
501
|
transition: 313ms all ease-in-out;
|
|
502
|
-
fill: ${
|
|
502
|
+
fill: ${n};
|
|
503
503
|
width: ${o}px;
|
|
504
504
|
height: ${o}px;
|
|
505
505
|
}
|
|
506
506
|
`
|
|
507
507
|
})
|
|
508
|
-
),
|
|
508
|
+
), xo = ({
|
|
509
509
|
variant: o = 1,
|
|
510
|
-
size:
|
|
511
|
-
color:
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
510
|
+
size: n = 50,
|
|
511
|
+
color: a = s.colors.darkGreen,
|
|
512
|
+
highlightColor: r = s.colors.dandelion,
|
|
513
|
+
children: e,
|
|
514
|
+
...l
|
|
515
|
+
}) => o === "unstyled" ? /* @__PURE__ */ d(eo, { ...l, children: e }) : o === 2 ? /* @__PURE__ */ d(ro, { ...l, children: /* @__PURE__ */ d("span", { children: e }) }) : o === "icon" ? /* @__PURE__ */ d(io, { ...{ size: n, color: a, highlightColor: r }, ...l, children: e }) : /* @__PURE__ */ d(no, { ...l, children: /* @__PURE__ */ d("span", { children: e }) });
|
|
515
516
|
export {
|
|
516
|
-
|
|
517
|
-
|
|
517
|
+
xo as Button,
|
|
518
|
+
xo as default
|
|
518
519
|
};
|
|
@@ -107,7 +107,7 @@ const eo = j(/* @__PURE__ */ o("path", {
|
|
|
107
107
|
title: a,
|
|
108
108
|
items: r = [],
|
|
109
109
|
padding: u = "1rem 2rem",
|
|
110
|
-
shadow: c = d.
|
|
110
|
+
shadow: c = d.boxShadows.darkGreen,
|
|
111
111
|
spacing: V = "2rem",
|
|
112
112
|
titleSpacing: w = "1rem",
|
|
113
113
|
canEditTitle: C = !0,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ImageWithDetailsProps {
|
|
2
|
+
title: React.ReactNode;
|
|
3
|
+
description?: React.ReactNode;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
imageAlt: string;
|
|
6
|
+
/** The total size of the component */
|
|
7
|
+
containerHeight?: string;
|
|
8
|
+
/** The size of the title header and details section */
|
|
9
|
+
detailsBarSize?: string;
|
|
10
|
+
detailsBarPadding?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ImageWithDetails: React.FC<ImageWithDetailsProps>;
|
|
13
|
+
export default ImageWithDetails;
|