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.
@@ -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;
@@ -1,113 +1,117 @@
1
- import { jsx as u, jsxs as b } from "react/jsx-runtime";
2
- import * as w from "react";
3
- import E, { useState as v, useLayoutEffect as M } from "react";
4
- import { n as f } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { c as m } from "../.chunks/emotion-react.browser.esm.js";
6
- import { I as y } from "../.chunks/Input.js";
7
- import { Button as C } from "../Button/Button.js";
8
- import O from "../Avatar/Avatar.js";
9
- import I from "../WithLabel/WithLabel.js";
10
- import { c as L } from "../.chunks/createSvgIcon.js";
11
- const R = E[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], _ = (e) => {
12
- const c = w.useRef(e);
13
- return w.useEffect(() => {
14
- c.current = e;
15
- }), c;
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 A() {
17
+ function J() {
18
18
  }
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);
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 r.subscribe(l, n), () => {
29
- o = !0, r.unsubscribe(l, n);
28
+ return c.subscribe(d, r), () => {
29
+ i = !0, c.unsubscribe(d, r);
30
30
  };
31
- }, [e, r, a]), r.observer;
31
+ }, [e, c, a]), c.observer;
32
32
  }
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));
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
- s = [], c = !1;
45
+ l = [], t = !1;
46
46
  }
47
- c || window.requestAnimationFrame(n), c = !0;
47
+ t || window.requestAnimationFrame(r), t = !0;
48
48
  });
49
49
  return {
50
50
  observer: a,
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);
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(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);
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 t = i.indexOf(l);
65
- t !== -1 && i.splice(t, 1), r.set(o, i);
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 g;
70
- const U = (e) => g || (g = j(e)), V = L(/* @__PURE__ */ u("path", {
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"), B = f("div")(() => ({
73
- ...m`
74
- display: flex;
75
- flex-direction: row;
76
- padding: 4px 16px;
77
- background-color: transparent;
78
- align-items: center;
79
- justify-content: space-between;
80
- gap: 1.5rem;
81
- `
82
- })), F = f("img")(({ width: e }) => ({
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
- })), q = f("div")(({ height: e }) => ({
85
- ...m`
88
+ })), I = h("div")(({ height: e }) => ({
89
+ ...b`
86
90
  display: flex;
87
91
  gap: 1rem;
88
92
  height: ${e}px;
89
93
  `
90
- })), P = f("div")(({ width: e, loggedIn: c }) => ({
91
- ...m`
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: ${c ? "column" : "column-reverse"};
100
+ flex-direction: ${t ? "column" : "column-reverse"};
97
101
  flex-shrink: 0;
98
102
  * {
99
103
  white-space: nowrap;
100
104
  }
101
105
  `
102
- })), W = f("div")(({ visible: e }) => ({
103
- ...m`
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
- })), D = f("div")(() => ({
110
- ...m`
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
- })), ee = ({
119
- loggedIn: e,
120
- logoProps: c,
121
- iconColor: s,
122
- hamburgerMenu: r,
123
- onHamburgerMenuClick: a,
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: l
132
+ onLogin: s
126
133
  }) => {
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);
130
- }, [t, d]);
131
- const S = (p) => {
132
- p != null && p.clientWidth && p.clientWidth > n && i(p.clientWidth);
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 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, {}) })
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__ */ 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,
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__ */ u(O, { onClick: o }),
156
+ component: /* @__PURE__ */ n(E, { ...d, onClick: o }),
146
157
  label: "Welcome, User"
147
158
  }
148
159
  ) }),
149
- /* @__PURE__ */ u(W, { visible: !e, ref: z, children: /* @__PURE__ */ u(C, { id: "loginButtonContainer", onClick: l, children: "Log In" }) })
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
- ee as default
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 F, jsx as d } from "react/jsx-runtime";
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 { c as X } from "../.chunks/emotion-react.browser.esm.js";
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 Y(o) {
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 Z = (o) => {
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, Y, p);
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
- }], oo = c(S, {
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
- })), to = c("span", {
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
- }), ao = c("span", {
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: T = !1,
311
+ disableElevation: P = !1,
311
312
  disableFocusRipple: $ = !1,
312
- endIcon: C,
313
- focusVisibleClassName: P,
313
+ endIcon: m,
314
+ focusVisibleClassName: T,
314
315
  fullWidth: W = !1,
315
- size: M = "medium",
316
- startIcon: m,
316
+ size: V = "medium",
317
+ startIcon: C,
317
318
  type: w,
318
- variant: V = "text",
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: T,
326
+ disableElevation: P,
326
327
  disableFocusRipple: $,
327
328
  fullWidth: W,
328
- size: M,
329
+ size: V,
329
330
  type: w,
330
- variant: V
331
- }, v = Z(g), G = m && /* @__PURE__ */ d(to, {
331
+ variant: M
332
+ }, v = oo(g), G = C && /* @__PURE__ */ d(ao, {
332
333
  className: v.startIcon,
333
334
  ownerState: g,
334
- children: m
335
- }), L = C && /* @__PURE__ */ d(ao, {
335
+ children: C
336
+ }), L = m && /* @__PURE__ */ d(no, {
336
337
  className: v.endIcon,
337
338
  ownerState: g,
338
- children: C
339
- }), D = e || "";
340
- return /* @__PURE__ */ F(oo, {
339
+ children: m
340
+ }), F = e || "";
341
+ return /* @__PURE__ */ D(to, {
341
342
  ownerState: g,
342
- className: I(r.className, v.root, N, D),
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, P),
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
- `, no = c(E)`
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
- `, ro = c(E)`
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
- `, eo = c(S)`
482
+ `, io = c(S)`
482
483
  border-radius: 8px;
483
- `, io = c(S)(
484
- ({ size: o, color: n, highlightColor: a }) => ({
485
- ...X`
486
- display: flex;
487
- align-items: center;
488
- justify-content: center;
489
- background-color: transparent;
490
- transition: 313ms all ease-in-out;
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
- transition: 313ms all ease-in-out;
502
- fill: ${n};
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
- ), xo = ({
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(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 }) });
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
- xo as Button,
518
- xo as default
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
- export interface TemplateThemeProps {
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
- themeColors: Pick<TemplateThemeProps, 'highlightPrimary' | 'highlightTertiary' | 'iconPrimary'>;
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;