jcicl 0.0.118 → 0.0.122
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 +1 -1
- package/.chunks/DefaultPropsProvider.js +74 -76
- package/.chunks/Input.js +487 -472
- package/.chunks/Portal.js +15 -15
- package/.chunks/TransitionGroupContext.js +6 -6
- package/AppContainer/AppContainer.d.ts +9 -3
- package/AppContainer/AppContainer.js +674 -1284
- package/AppHeader/AppHeader.d.ts +5 -0
- package/AppHeader/AppHeader.js +109 -98
- package/Avatar/index.d.ts +1 -1
- package/Button/Button.js +55 -54
- package/Flex/Flex.d.ts +1 -1
- package/Input/Input.d.ts +3 -0
- package/Nav/Nav.d.ts +4 -12
- package/Nav/Nav.js +90 -48
- package/Nav/index.d.ts +1 -1
- package/ScrollContainer/ScrollContainer.d.ts +1 -0
- package/ScrollContainer/ScrollContainer.js +362 -359
- package/Tooltip/Tooltip.js +1 -1
- package/package.json +1 -1
- package/theme.d.ts +17 -0
- package/theme.js +14 -9
package/AppHeader/AppHeader.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AvatarProps } from '../../../../../../../../../src/components/base/Avatar';
|
|
2
|
+
import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
|
|
1
3
|
export interface CustomLogoProps {
|
|
2
4
|
logoSrc: string;
|
|
3
5
|
logoWidth: number;
|
|
@@ -12,6 +14,9 @@ export interface AppHeaderProps {
|
|
|
12
14
|
onHamburgerMenuClick?: () => void;
|
|
13
15
|
logoProps: CustomLogoProps;
|
|
14
16
|
iconColor: string;
|
|
17
|
+
isMobile?: boolean;
|
|
18
|
+
themeProps: Pick<TemplateThemeProps, 'shadowSecondary' | 'iconPrimary' | 'borderPrimary' | 'shadowTertiary'>;
|
|
19
|
+
avatarColors?: AvatarProps;
|
|
15
20
|
}
|
|
16
21
|
declare const AppHeader: React.FC<AppHeaderProps>;
|
|
17
22
|
export default AppHeader;
|
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,113 +1,117 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { n as
|
|
5
|
-
import { c as
|
|
6
|
-
import { I as
|
|
7
|
-
import { Button as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { c as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
1
|
+
import { jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import * as S from "react";
|
|
3
|
+
import V, { useState as w, useLayoutEffect as B } from "react";
|
|
4
|
+
import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
+
import { c as b } from "../.chunks/emotion-react.browser.esm.js";
|
|
6
|
+
import { I as W } from "../.chunks/Input.js";
|
|
7
|
+
import { Button as k } from "../Button/Button.js";
|
|
8
|
+
import E from "../Avatar/Avatar.js";
|
|
9
|
+
import q from "../WithLabel/WithLabel.js";
|
|
10
|
+
import { c as T } from "../.chunks/createSvgIcon.js";
|
|
11
|
+
const D = V[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], G = (e) => {
|
|
12
|
+
const t = S.useRef(e);
|
|
13
|
+
return S.useEffect(() => {
|
|
14
|
+
t.current = e;
|
|
15
|
+
}), t;
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function J() {
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
if (!
|
|
25
|
-
function
|
|
26
|
-
|
|
19
|
+
function K(e, t, l = {}) {
|
|
20
|
+
const c = Q(l.polyfill), a = G(t);
|
|
21
|
+
return D(() => {
|
|
22
|
+
let i = !1;
|
|
23
|
+
const d = e && "current" in e ? e.current : e;
|
|
24
|
+
if (!d) return J;
|
|
25
|
+
function r(o, s) {
|
|
26
|
+
i || a.current(o, s);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
28
|
+
return c.subscribe(d, r), () => {
|
|
29
|
+
i = !0, c.unsubscribe(d, r);
|
|
30
30
|
};
|
|
31
|
-
}, [e,
|
|
31
|
+
}, [e, c, a]), c.observer;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
for (let
|
|
40
|
-
if (
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
33
|
+
function N(e) {
|
|
34
|
+
let t = !1, l = [];
|
|
35
|
+
const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
|
|
36
|
+
l = l.concat(i);
|
|
37
|
+
function r() {
|
|
38
|
+
const o = /* @__PURE__ */ new Set();
|
|
39
|
+
for (let s = 0; s < l.length; s++) {
|
|
40
|
+
if (o.has(l[s].target)) continue;
|
|
41
|
+
o.add(l[s].target);
|
|
42
|
+
const u = c.get(l[s].target);
|
|
43
|
+
u == null || u.forEach((p) => p(l[s], d));
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
l = [], t = !1;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
t || window.requestAnimationFrame(r), t = !0;
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
50
|
observer: a,
|
|
51
|
-
subscribe(
|
|
52
|
-
var
|
|
53
|
-
a.observe(
|
|
54
|
-
const
|
|
55
|
-
|
|
51
|
+
subscribe(i, d) {
|
|
52
|
+
var r;
|
|
53
|
+
a.observe(i);
|
|
54
|
+
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
55
|
+
o.push(d), c.set(i, o);
|
|
56
56
|
},
|
|
57
|
-
unsubscribe(
|
|
58
|
-
var
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
a.unobserve(
|
|
57
|
+
unsubscribe(i, d) {
|
|
58
|
+
var r;
|
|
59
|
+
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
60
|
+
if (o.length === 1) {
|
|
61
|
+
a.unobserve(i), c.delete(i);
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const s = o.indexOf(d);
|
|
65
|
+
s !== -1 && o.splice(s, 1), c.set(i, o);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
const
|
|
69
|
+
let C;
|
|
70
|
+
const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
|
|
71
71
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
72
|
-
}), "Menu"),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
}), "Menu"), M = h("div")(
|
|
73
|
+
({ mobile: e, shadowSecondary: t }) => ({
|
|
74
|
+
...b`
|
|
75
|
+
z-index: 1313;
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
padding: 4px 16px;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
gap: ${e ? "8px" : "1.5rem"};
|
|
83
|
+
box-shadow: ${e && t};
|
|
84
|
+
`
|
|
85
|
+
})
|
|
86
|
+
), O = h("img")(({ width: e }) => ({
|
|
83
87
|
width: `${e}px`
|
|
84
|
-
})),
|
|
85
|
-
...
|
|
88
|
+
})), I = h("div")(({ height: e }) => ({
|
|
89
|
+
...b`
|
|
86
90
|
display: flex;
|
|
87
91
|
gap: 1rem;
|
|
88
92
|
height: ${e}px;
|
|
89
93
|
`
|
|
90
|
-
})),
|
|
91
|
-
...
|
|
94
|
+
})), Y = h("div")(({ width: e, loggedIn: t }) => ({
|
|
95
|
+
...b`
|
|
92
96
|
width: ${e}px;
|
|
93
97
|
display: flex;
|
|
94
98
|
justify-content: center;
|
|
95
99
|
align-items: flex-end;
|
|
96
|
-
flex-direction: ${
|
|
100
|
+
flex-direction: ${t ? "column" : "column-reverse"};
|
|
97
101
|
flex-shrink: 0;
|
|
98
102
|
* {
|
|
99
103
|
white-space: nowrap;
|
|
100
104
|
}
|
|
101
105
|
`
|
|
102
|
-
})),
|
|
103
|
-
...
|
|
106
|
+
})), L = h("div")(({ visible: e }) => ({
|
|
107
|
+
...b`
|
|
104
108
|
z-index: ${e ? 1 : 0};
|
|
105
109
|
opacity: ${e ? 1 : 0};
|
|
106
110
|
pointer-events: ${e ? "auto" : "none"};
|
|
107
111
|
position: ${e ? "relative" : "absolute"};
|
|
108
112
|
`
|
|
109
|
-
})),
|
|
110
|
-
...
|
|
113
|
+
})), R = h("div")(() => ({
|
|
114
|
+
...b`
|
|
111
115
|
display: flex;
|
|
112
116
|
width: 1360px;
|
|
113
117
|
max-width: 100%;
|
|
@@ -115,41 +119,48 @@ const U = (e) => g || (g = j(e)), V = L(/* @__PURE__ */ u("path", {
|
|
|
115
119
|
width: 100%;
|
|
116
120
|
}
|
|
117
121
|
`
|
|
118
|
-
})),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
})), le = ({
|
|
123
|
+
isMobile: e,
|
|
124
|
+
loggedIn: t,
|
|
125
|
+
logoProps: l,
|
|
126
|
+
iconColor: c,
|
|
127
|
+
themeProps: a,
|
|
128
|
+
hamburgerMenu: i,
|
|
129
|
+
avatarColors: d,
|
|
130
|
+
onHamburgerMenuClick: r,
|
|
124
131
|
onUserMenuClick: o,
|
|
125
|
-
onLogin:
|
|
132
|
+
onLogin: s
|
|
126
133
|
}) => {
|
|
127
|
-
const [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}, [
|
|
131
|
-
const
|
|
132
|
-
|
|
134
|
+
const [u, p] = w(0), [f, _] = w(null), [v, A] = w(null), { logoSrc: $, logoWidth: y, logoHeight: g } = l, { shadowSecondary: H, shadowTertiary: j, iconPrimary: P, borderPrimary: F } = a, z = { shadowTertiary: j, borderColor: F, borderFocusColor: P };
|
|
135
|
+
B(() => {
|
|
136
|
+
f && f.clientWidth > u && p(f.clientWidth), v && v.clientWidth > u && p(v.clientWidth);
|
|
137
|
+
}, [f, v]);
|
|
138
|
+
const U = (m) => {
|
|
139
|
+
m != null && m.clientWidth && m.clientWidth > u && p(m.clientWidth);
|
|
133
140
|
};
|
|
134
|
-
return
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
137
|
-
|
|
141
|
+
return K(f, () => U(f)), e ? /* @__PURE__ */ x(M, { mobile: !0, shadowSecondary: H, children: [
|
|
142
|
+
/* @__PURE__ */ n(I, { height: g, children: /* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }) }),
|
|
143
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
|
|
144
|
+
/* @__PURE__ */ n(E, { ...d, onClick: o })
|
|
145
|
+
] }) : /* @__PURE__ */ x(M, { children: [
|
|
146
|
+
/* @__PURE__ */ x(I, { height: g, children: [
|
|
147
|
+
/* @__PURE__ */ n(O, { src: $, height: `${g}px`, width: y }),
|
|
148
|
+
i && /* @__PURE__ */ n(k, { variant: "icon", onClick: r, color: c, children: /* @__PURE__ */ n(X, {}) })
|
|
138
149
|
] }),
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
|
|
150
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(W, { ...z, placeholder: "Search..." }) }),
|
|
151
|
+
/* @__PURE__ */ x(Y, { width: u, loggedIn: !!t, children: [
|
|
152
|
+
/* @__PURE__ */ n(L, { visible: !!t, ref: _, children: /* @__PURE__ */ n(
|
|
153
|
+
q,
|
|
143
154
|
{
|
|
144
155
|
id: "accountMenuContainer",
|
|
145
|
-
component: /* @__PURE__ */
|
|
156
|
+
component: /* @__PURE__ */ n(E, { ...d, onClick: o }),
|
|
146
157
|
label: "Welcome, User"
|
|
147
158
|
}
|
|
148
159
|
) }),
|
|
149
|
-
/* @__PURE__ */
|
|
160
|
+
/* @__PURE__ */ n(L, { visible: !t, ref: A, children: /* @__PURE__ */ n(k, { id: "loginButtonContainer", onClick: s, children: "Log In" }) })
|
|
150
161
|
] })
|
|
151
162
|
] });
|
|
152
163
|
};
|
|
153
164
|
export {
|
|
154
|
-
|
|
165
|
+
le as default
|
|
155
166
|
};
|
package/Avatar/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Avatar';
|
|
1
|
+
export { default, type AvatarProps } from './Avatar';
|
package/Button/Button.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as D, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
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
|
-
import {
|
|
7
|
+
import { i as X } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
+
import { c as Y } from "../.chunks/emotion-react.browser.esm.js";
|
|
8
9
|
import s from "../theme.js";
|
|
9
|
-
function
|
|
10
|
+
function Z(o) {
|
|
10
11
|
return U("MuiButton", o);
|
|
11
12
|
}
|
|
12
13
|
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
14
|
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
14
15
|
const O = /* @__PURE__ */ x.createContext(void 0);
|
|
15
16
|
process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
|
|
16
|
-
const
|
|
17
|
+
const oo = (o) => {
|
|
17
18
|
const {
|
|
18
19
|
color: n,
|
|
19
20
|
disableElevation: a,
|
|
@@ -26,7 +27,7 @@ const Z = (o) => {
|
|
|
26
27
|
label: ["label"],
|
|
27
28
|
startIcon: ["icon", "startIcon", `iconSize${i(e)}`],
|
|
28
29
|
endIcon: ["icon", "endIcon", `iconSize${i(e)}`]
|
|
29
|
-
}, y = J(f,
|
|
30
|
+
}, y = J(f, Z, p);
|
|
30
31
|
return {
|
|
31
32
|
...p,
|
|
32
33
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
@@ -59,7 +60,7 @@ const Z = (o) => {
|
|
|
59
60
|
fontSize: 22
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
|
-
}],
|
|
63
|
+
}], to = c(S, {
|
|
63
64
|
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
64
65
|
name: "MuiButton",
|
|
65
66
|
slot: "Root",
|
|
@@ -255,7 +256,7 @@ const Z = (o) => {
|
|
|
255
256
|
}
|
|
256
257
|
}]
|
|
257
258
|
};
|
|
258
|
-
})),
|
|
259
|
+
})), ao = c("span", {
|
|
259
260
|
name: "MuiButton",
|
|
260
261
|
slot: "StartIcon",
|
|
261
262
|
overridesResolver: (o, n) => {
|
|
@@ -276,7 +277,7 @@ const Z = (o) => {
|
|
|
276
277
|
marginLeft: -2
|
|
277
278
|
}
|
|
278
279
|
}, ...R]
|
|
279
|
-
}),
|
|
280
|
+
}), no = c("span", {
|
|
280
281
|
name: "MuiButton",
|
|
281
282
|
slot: "EndIcon",
|
|
282
283
|
overridesResolver: (o, n) => {
|
|
@@ -307,43 +308,43 @@ const Z = (o) => {
|
|
|
307
308
|
component: B = "button",
|
|
308
309
|
className: N,
|
|
309
310
|
disabled: z = !1,
|
|
310
|
-
disableElevation:
|
|
311
|
+
disableElevation: P = !1,
|
|
311
312
|
disableFocusRipple: $ = !1,
|
|
312
|
-
endIcon:
|
|
313
|
-
focusVisibleClassName:
|
|
313
|
+
endIcon: m,
|
|
314
|
+
focusVisibleClassName: T,
|
|
314
315
|
fullWidth: W = !1,
|
|
315
|
-
size:
|
|
316
|
-
startIcon:
|
|
316
|
+
size: V = "medium",
|
|
317
|
+
startIcon: C,
|
|
317
318
|
type: w,
|
|
318
|
-
variant:
|
|
319
|
+
variant: M = "text",
|
|
319
320
|
...j
|
|
320
321
|
} = p, g = {
|
|
321
322
|
...p,
|
|
322
323
|
color: y,
|
|
323
324
|
component: B,
|
|
324
325
|
disabled: z,
|
|
325
|
-
disableElevation:
|
|
326
|
+
disableElevation: P,
|
|
326
327
|
disableFocusRipple: $,
|
|
327
328
|
fullWidth: W,
|
|
328
|
-
size:
|
|
329
|
+
size: V,
|
|
329
330
|
type: w,
|
|
330
|
-
variant:
|
|
331
|
-
}, v =
|
|
331
|
+
variant: M
|
|
332
|
+
}, v = oo(g), G = C && /* @__PURE__ */ d(ao, {
|
|
332
333
|
className: v.startIcon,
|
|
333
334
|
ownerState: g,
|
|
334
|
-
children:
|
|
335
|
-
}), L =
|
|
335
|
+
children: C
|
|
336
|
+
}), L = m && /* @__PURE__ */ d(no, {
|
|
336
337
|
className: v.endIcon,
|
|
337
338
|
ownerState: g,
|
|
338
|
-
children:
|
|
339
|
-
}),
|
|
340
|
-
return /* @__PURE__ */
|
|
339
|
+
children: m
|
|
340
|
+
}), F = e || "";
|
|
341
|
+
return /* @__PURE__ */ D(to, {
|
|
341
342
|
ownerState: g,
|
|
342
|
-
className: I(r.className, v.root, N,
|
|
343
|
+
className: I(r.className, v.root, N, F),
|
|
343
344
|
component: B,
|
|
344
345
|
disabled: z,
|
|
345
346
|
focusRipple: !$,
|
|
346
|
-
focusVisibleClassName: I(v.focusVisible,
|
|
347
|
+
focusVisibleClassName: I(v.focusVisible, T),
|
|
347
348
|
ref: a,
|
|
348
349
|
type: w,
|
|
349
350
|
...j,
|
|
@@ -454,7 +455,7 @@ const E = c(k)`
|
|
|
454
455
|
justify-content: center;
|
|
455
456
|
align-items: center;
|
|
456
457
|
}
|
|
457
|
-
`,
|
|
458
|
+
`, ro = c(E)`
|
|
458
459
|
background-color: ${s.colors.green};
|
|
459
460
|
border-radius: 0;
|
|
460
461
|
height: 2.5rem;
|
|
@@ -474,46 +475,46 @@ const E = c(k)`
|
|
|
474
475
|
&:disabled {
|
|
475
476
|
background-color: ${s.colors.darkGreen};
|
|
476
477
|
}
|
|
477
|
-
`,
|
|
478
|
+
`, eo = c(E)`
|
|
478
479
|
color: ${s.colors.black};
|
|
479
480
|
border: 3px solid ${s.colors.blue};
|
|
480
481
|
padding: 0.5rem 2rem;
|
|
481
|
-
`,
|
|
482
|
+
`, io = c(S)`
|
|
482
483
|
border-radius: 8px;
|
|
483
|
-
`,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
&:hover,
|
|
493
|
-
:focus-visible {
|
|
494
|
-
svg {
|
|
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
|
-
}
|
|
498
|
-
}
|
|
484
|
+
`, so = c(S, {
|
|
485
|
+
shouldForwardProp: (o) => typeof o == "string" && X(o)
|
|
486
|
+
})(({ size: o, color: n, highlightColor: a }) => ({
|
|
487
|
+
...Y`
|
|
488
|
+
display: flex;
|
|
489
|
+
align-items: center;
|
|
490
|
+
justify-content: center;
|
|
491
|
+
background-color: transparent;
|
|
492
|
+
transition: 313ms all ease-in-out;
|
|
499
493
|
|
|
494
|
+
&:hover,
|
|
495
|
+
:focus-visible {
|
|
500
496
|
svg {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
width: ${o}px;
|
|
504
|
-
height: ${o}px;
|
|
497
|
+
filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
|
|
498
|
+
drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
|
|
505
499
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
svg {
|
|
503
|
+
transition: 313ms all ease-in-out;
|
|
504
|
+
fill: ${n};
|
|
505
|
+
width: ${o}px;
|
|
506
|
+
height: ${o}px;
|
|
507
|
+
}
|
|
508
|
+
`
|
|
509
|
+
})), fo = ({
|
|
509
510
|
variant: o = 1,
|
|
510
511
|
size: n = 50,
|
|
511
512
|
color: a = s.colors.darkGreen,
|
|
512
513
|
highlightColor: r = s.colors.dandelion,
|
|
513
514
|
children: e,
|
|
514
515
|
...l
|
|
515
|
-
}) => o === "unstyled" ? /* @__PURE__ */ d(
|
|
516
|
+
}) => o === "unstyled" ? /* @__PURE__ */ d(io, { ...l, children: e }) : o === 2 ? /* @__PURE__ */ d(eo, { ...l, children: /* @__PURE__ */ d("span", { children: e }) }) : o === "icon" ? /* @__PURE__ */ d(so, { ...{ size: n, color: a, highlightColor: r }, ...l, children: e }) : /* @__PURE__ */ d(ro, { ...l, children: /* @__PURE__ */ d("span", { children: e }) });
|
|
516
517
|
export {
|
|
517
|
-
|
|
518
|
-
|
|
518
|
+
fo as Button,
|
|
519
|
+
fo as default
|
|
519
520
|
};
|
package/Flex/Flex.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as React, CSSProperties } from 'react';
|
|
|
2
2
|
export interface FlexProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
alignItems?: 'flex-start' | 'center' | 'stretch' | 'flex-end';
|
|
5
|
-
justifyContent?: 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
5
|
+
justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
6
6
|
placeContent?: string;
|
|
7
7
|
column?: boolean;
|
|
8
8
|
width?: string;
|
package/Input/Input.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
|
|
2
2
|
export type InputProps = Omit<MuiTextFieldProps, 'variant'> & {
|
|
3
3
|
variant?: 'outlined' | 'simple';
|
|
4
|
+
shadowTertiary?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
borderFocusColor?: string;
|
|
4
7
|
};
|
|
5
8
|
export declare const Input: React.FC<InputProps>;
|
|
6
9
|
export default Input;
|
package/Nav/Nav.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
backgroundPrimary: string;
|
|
3
|
-
backgroundSecondary: string;
|
|
4
|
-
backgroundTertiary: string;
|
|
5
|
-
borderPrimary: string;
|
|
6
|
-
iconPrimary: string;
|
|
7
|
-
highlightPrimary: string;
|
|
8
|
-
highlightSecondary: string;
|
|
9
|
-
highlightTertiary: string;
|
|
10
|
-
shadowPrimary: string;
|
|
11
|
-
}
|
|
1
|
+
import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
|
|
12
2
|
export interface NavItemProps {
|
|
13
3
|
label?: string;
|
|
14
4
|
icon?: React.ReactNode;
|
|
15
5
|
onClick?: () => void;
|
|
16
6
|
active?: boolean;
|
|
7
|
+
/** This is defined only to enable type safe external management of the AppContainer actions panel */
|
|
17
8
|
actionsPanelContent?: React.ReactNode;
|
|
18
9
|
}
|
|
19
10
|
export interface NavProps {
|
|
@@ -21,7 +12,8 @@ export interface NavProps {
|
|
|
21
12
|
activeRoute?: string;
|
|
22
13
|
navWidth?: string;
|
|
23
14
|
isTablet?: boolean;
|
|
24
|
-
|
|
15
|
+
isMobile?: boolean;
|
|
16
|
+
themeColors: Pick<TemplateThemeProps, 'highlightPrimary' | 'highlightTertiary' | 'iconPrimary' | 'shadowSecondary' | 'scrollColor'>;
|
|
25
17
|
}
|
|
26
18
|
export declare const Nav: React.FC<NavProps>;
|
|
27
19
|
export default Nav;
|