jcicl 0.0.130 → 0.0.132

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,4 +1,4 @@
1
- import { AvatarProps } from '../../../../../../../../../src/components/base/Avatar';
1
+ import { IconProps } from '../../../../../../../../../src/components/base/Icon';
2
2
  import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
3
3
  export interface CustomLogoProps {
4
4
  logoSrc: string;
@@ -12,11 +12,14 @@ export interface AppHeaderProps {
12
12
  onLogout?: () => void;
13
13
  onUserMenuClick?: () => void;
14
14
  onHamburgerMenuClick?: () => void;
15
+ onSearch?: () => void;
15
16
  logoProps: CustomLogoProps;
16
17
  iconColor: string;
17
18
  isMobile?: boolean;
18
19
  themeProps: Pick<TemplateThemeProps, 'shadowSecondary' | 'iconPrimary' | 'borderPrimary' | 'shadowTertiary'>;
19
- avatarColors?: AvatarProps;
20
+ iconColors?: IconProps;
21
+ userName?: string;
22
+ userSettingsEnabled?: boolean;
20
23
  }
21
24
  declare const AppHeader: React.FC<AppHeaderProps>;
22
25
  export default AppHeader;
@@ -1,56 +1,56 @@
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";
1
+ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
+ import * as k from "react";
3
+ import G, { useState as $, useLayoutEffect as J } from "react";
4
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;
5
+ import { c as m } from "../.chunks/emotion-react.browser.esm.js";
6
+ import { Search as M } from "../Search/Search.js";
7
+ import { Button as E } from "../Button/Button.js";
8
+ import H from "../Icon/Icon.js";
9
+ import K from "../WithLabel/WithLabel.js";
10
+ import { c as j } from "../.chunks/createSvgIcon.js";
11
+ const N = G[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], Q = (e) => {
12
+ const n = k.useRef(e);
13
+ return k.useEffect(() => {
14
+ n.current = e;
15
+ }), n;
16
16
  };
17
- function J() {
17
+ function X() {
18
18
  }
19
- function K(e, t, l = {}) {
20
- const c = Q(l.polyfill), a = G(t);
21
- return D(() => {
19
+ function Y(e, n, l = {}) {
20
+ const c = ee(l.polyfill), u = Q(n);
21
+ return N(() => {
22
22
  let i = !1;
23
23
  const d = e && "current" in e ? e.current : e;
24
- if (!d) return J;
24
+ if (!d) return X;
25
25
  function r(o, s) {
26
- i || a.current(o, s);
26
+ i || u.current(o, s);
27
27
  }
28
28
  return c.subscribe(d, r), () => {
29
29
  i = !0, c.unsubscribe(d, r);
30
30
  };
31
- }, [e, c, a]), c.observer;
31
+ }, [e, c, u]), c.observer;
32
32
  }
33
- function N(e) {
34
- let t = !1, l = [];
35
- const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
33
+ function Z(e) {
34
+ let n = !1, l = [];
35
+ const c = /* @__PURE__ */ new Map(), u = new (e || window.ResizeObserver)((i, d) => {
36
36
  l = l.concat(i);
37
37
  function r() {
38
38
  const o = /* @__PURE__ */ new Set();
39
39
  for (let s = 0; s < l.length; s++) {
40
40
  if (o.has(l[s].target)) continue;
41
41
  o.add(l[s].target);
42
- const u = c.get(l[s].target);
43
- u == null || u.forEach((p) => p(l[s], d));
42
+ const a = c.get(l[s].target);
43
+ a == null || a.forEach((w) => w(l[s], d));
44
44
  }
45
- l = [], t = !1;
45
+ l = [], n = !1;
46
46
  }
47
- t || window.requestAnimationFrame(r), t = !0;
47
+ n || window.requestAnimationFrame(r), n = !0;
48
48
  });
49
49
  return {
50
- observer: a,
50
+ observer: u,
51
51
  subscribe(i, d) {
52
52
  var r;
53
- a.observe(i);
53
+ u.observe(i);
54
54
  const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
55
55
  o.push(d), c.set(i, o);
56
56
  },
@@ -58,7 +58,7 @@ function N(e) {
58
58
  var r;
59
59
  const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
60
60
  if (o.length === 1) {
61
- a.unobserve(i), c.delete(i);
61
+ u.unobserve(i), c.delete(i);
62
62
  return;
63
63
  }
64
64
  const s = o.indexOf(d);
@@ -66,12 +66,14 @@ function N(e) {
66
66
  }
67
67
  };
68
68
  }
69
- let C;
70
- const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
69
+ let y;
70
+ const ee = (e) => y || (y = Z(e)), te = j(/* @__PURE__ */ t("path", {
71
71
  d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
72
- }), "Menu"), M = h("div")(
73
- ({ mobile: e, shadowSecondary: t }) => ({
74
- ...b`
72
+ }), "Menu"), I = j(/* @__PURE__ */ t("path", {
73
+ d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
74
+ }), "PersonOutlineOutlined"), L = h("div")(
75
+ ({ mobile: e, shadowSecondary: n }) => ({
76
+ ...m`
75
77
  z-index: 1313;
76
78
  display: flex;
77
79
  flex-direction: row;
@@ -80,38 +82,38 @@ const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
80
82
  align-items: center;
81
83
  justify-content: space-between;
82
84
  gap: ${e ? "8px" : "1.5rem"};
83
- box-shadow: ${e && t};
85
+ box-shadow: ${e && n};
84
86
  `
85
87
  })
86
- ), O = h("img")(({ width: e }) => ({
88
+ ), R = h("img")(({ width: e }) => ({
87
89
  width: `${e}px`
88
- })), I = h("div")(({ height: e }) => ({
89
- ...b`
90
+ })), _ = h("div")(({ height: e }) => ({
91
+ ...m`
90
92
  display: flex;
91
93
  gap: 1rem;
92
94
  height: ${e}px;
93
95
  `
94
- })), Y = h("div")(({ width: e, loggedIn: t }) => ({
95
- ...b`
96
+ })), ne = h("div")(({ width: e, loggedIn: n }) => ({
97
+ ...m`
96
98
  width: ${e}px;
97
99
  display: flex;
98
100
  justify-content: center;
99
101
  align-items: flex-end;
100
- flex-direction: ${t ? "column" : "column-reverse"};
102
+ flex-direction: ${n ? "column" : "column-reverse"};
101
103
  flex-shrink: 0;
102
104
  * {
103
105
  white-space: nowrap;
104
106
  }
105
107
  `
106
- })), L = h("div")(({ visible: e }) => ({
107
- ...b`
108
+ })), P = h("div")(({ visible: e }) => ({
109
+ ...m`
108
110
  z-index: ${e ? 1 : 0};
109
111
  opacity: ${e ? 1 : 0};
110
112
  pointer-events: ${e ? "auto" : "none"};
111
113
  position: ${e ? "relative" : "absolute"};
112
114
  `
113
- })), R = h("div")(() => ({
114
- ...b`
115
+ })), A = h("div")(() => ({
116
+ ...m`
115
117
  display: flex;
116
118
  width: 1360px;
117
119
  max-width: 100%;
@@ -119,48 +121,66 @@ const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
119
121
  width: 100%;
120
122
  }
121
123
  `
122
- })), le = ({
124
+ })), fe = ({
123
125
  isMobile: e,
124
- loggedIn: t,
126
+ loggedIn: n,
125
127
  logoProps: l,
126
128
  iconColor: c,
127
- themeProps: a,
129
+ themeProps: u,
128
130
  hamburgerMenu: i,
129
- avatarColors: d,
130
- onHamburgerMenuClick: r,
131
- onUserMenuClick: o,
132
- onLogin: s
131
+ iconColors: d,
132
+ userName: r = "User",
133
+ userSettingsEnabled: o,
134
+ onHamburgerMenuClick: s,
135
+ onUserMenuClick: a,
136
+ onLogin: w,
137
+ onSearch: z = () => {
138
+ }
133
139
  }) => {
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);
140
+ const [b, C] = $(0), [f, V] = $(null), [v, F] = $(null), { logoSrc: O, logoWidth: S, logoHeight: g } = l, { shadowSecondary: U, shadowTertiary: B, iconPrimary: q, borderPrimary: T } = u, W = { shadowTertiary: B, borderColor: T, borderFocusColor: q };
141
+ J(() => {
142
+ f && f.clientWidth > b && C(f.clientWidth), v && v.clientWidth > b && C(v.clientWidth);
137
143
  }, [f, v]);
138
- const U = (m) => {
139
- m != null && m.clientWidth && m.clientWidth > u && p(m.clientWidth);
144
+ const D = (p) => {
145
+ p != null && p.clientWidth && p.clientWidth > b && C(p.clientWidth);
140
146
  };
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, {}) })
147
+ return Y(f, () => D(f)), e ? /* @__PURE__ */ x(L, { mobile: !0, shadowSecondary: U, children: [
148
+ /* @__PURE__ */ t(_, { height: g, children: /* @__PURE__ */ t(R, { src: O, height: `${g}px`, width: S }) }),
149
+ /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(M, { onSearch: z, ...W, placeholder: "Search..." }) }),
150
+ /* @__PURE__ */ t(
151
+ H,
152
+ {
153
+ icon: /* @__PURE__ */ t(I, {}),
154
+ ...d,
155
+ onClick: o ? a : void 0
156
+ }
157
+ )
158
+ ] }) : /* @__PURE__ */ x(L, { children: [
159
+ /* @__PURE__ */ x(_, { height: g, children: [
160
+ /* @__PURE__ */ t(R, { src: O, height: `${g}px`, width: S }),
161
+ i && /* @__PURE__ */ t(E, { variant: "icon", onClick: s, color: c, children: /* @__PURE__ */ t(te, {}) })
149
162
  ] }),
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,
163
+ /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(M, { onSearch: z, ...W, placeholder: "Search..." }) }),
164
+ /* @__PURE__ */ x(ne, { width: b, loggedIn: !!n, children: [
165
+ /* @__PURE__ */ t(P, { visible: !!n, ref: V, children: /* @__PURE__ */ t(
166
+ K,
154
167
  {
155
168
  id: "accountMenuContainer",
156
- component: /* @__PURE__ */ n(E, { ...d, onClick: o }),
157
- label: "Welcome, User"
169
+ component: /* @__PURE__ */ t(
170
+ H,
171
+ {
172
+ icon: /* @__PURE__ */ t(I, {}),
173
+ ...d,
174
+ onClick: o ? a : void 0
175
+ }
176
+ ),
177
+ label: `Hi, ${r}!`
158
178
  }
159
179
  ) }),
160
- /* @__PURE__ */ n(L, { visible: !t, ref: A, children: /* @__PURE__ */ n(k, { id: "loginButtonContainer", onClick: s, children: "Log In" }) })
180
+ /* @__PURE__ */ t(P, { visible: !n, ref: F, children: /* @__PURE__ */ t(E, { id: "loginButtonContainer", onClick: w, children: "Log In" }) })
161
181
  ] })
162
182
  ] });
163
183
  };
164
184
  export {
165
- le as default
185
+ fe as default
166
186
  };
package/Button/Button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as H, jsx as l } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
- import { g as _, a as A, s as c, r as q, c as d, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
3
+ import { g as _, a as A, s as d, r as q, c, f as J, u as K, b as O, P as t, d as Q, e as v } from "../.chunks/DefaultPropsProvider.js";
4
4
  import { m as X } from "../.chunks/memoTheme.js";
5
5
  import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as S } from "../.chunks/ButtonBase.js";
@@ -23,10 +23,10 @@ const to = (o) => {
23
23
  variant: s,
24
24
  classes: p
25
25
  } = o, y = {
26
- root: ["root", s, `${s}${d(a)}`, `size${d(i)}`, `${s}Size${d(i)}`, `color${d(a)}`, r && "disableElevation", e && "fullWidth"],
26
+ root: ["root", s, `${s}${c(a)}`, `size${c(i)}`, `${s}Size${c(i)}`, `color${c(a)}`, r && "disableElevation", e && "fullWidth"],
27
27
  label: ["label"],
28
- startIcon: ["icon", "startIcon", `iconSize${d(i)}`],
29
- endIcon: ["icon", "endIcon", `iconSize${d(i)}`]
28
+ startIcon: ["icon", "startIcon", `iconSize${c(i)}`],
29
+ endIcon: ["icon", "endIcon", `iconSize${c(i)}`]
30
30
  }, B = Q(y, oo, p);
31
31
  return {
32
32
  ...p,
@@ -60,7 +60,7 @@ const to = (o) => {
60
60
  fontSize: 22
61
61
  }
62
62
  }
63
- }], ro = c(S, {
63
+ }], ro = d(S, {
64
64
  shouldForwardProp: (o) => q(o) || o === "classes",
65
65
  name: "MuiButton",
66
66
  slot: "Root",
@@ -68,7 +68,7 @@ const to = (o) => {
68
68
  const {
69
69
  ownerState: r
70
70
  } = o;
71
- return [a.root, a[r.variant], a[`${r.variant}${d(r.color)}`], a[`size${d(r.size)}`], a[`${r.variant}Size${d(r.size)}`], r.color === "inherit" && a.colorInherit, r.disableElevation && a.disableElevation, r.fullWidth && a.fullWidth];
71
+ return [a.root, a[r.variant], a[`${r.variant}${c(r.color)}`], a[`size${c(r.size)}`], a[`${r.variant}Size${c(r.size)}`], r.color === "inherit" && a.colorInherit, r.disableElevation && a.disableElevation, r.fullWidth && a.fullWidth];
72
72
  }
73
73
  })(X(({
74
74
  theme: o
@@ -256,14 +256,14 @@ const to = (o) => {
256
256
  }
257
257
  }]
258
258
  };
259
- })), ao = c("span", {
259
+ })), ao = d("span", {
260
260
  name: "MuiButton",
261
261
  slot: "StartIcon",
262
262
  overridesResolver: (o, a) => {
263
263
  const {
264
264
  ownerState: r
265
265
  } = o;
266
- return [a.startIcon, a[`iconSize${d(r.size)}`]];
266
+ return [a.startIcon, a[`iconSize${c(r.size)}`]];
267
267
  }
268
268
  })({
269
269
  display: "inherit",
@@ -277,14 +277,14 @@ const to = (o) => {
277
277
  marginLeft: -2
278
278
  }
279
279
  }, ...N]
280
- }), no = c("span", {
280
+ }), no = d("span", {
281
281
  name: "MuiButton",
282
282
  slot: "EndIcon",
283
283
  overridesResolver: (o, a) => {
284
284
  const {
285
285
  ownerState: r
286
286
  } = o;
287
- return [a.endIcon, a[`iconSize${d(r.size)}`]];
287
+ return [a.endIcon, a[`iconSize${c(r.size)}`]];
288
288
  }
289
289
  })({
290
290
  display: "inherit",
@@ -307,9 +307,9 @@ const to = (o) => {
307
307
  color: B = "primary",
308
308
  component: w = "button",
309
309
  className: P,
310
- disabled: C = !1,
310
+ disabled: m = !1,
311
311
  disableElevation: W = !1,
312
- disableFocusRipple: m = !1,
312
+ disableFocusRipple: C = !1,
313
313
  endIcon: h,
314
314
  focusVisibleClassName: V,
315
315
  fullWidth: M = !1,
@@ -322,9 +322,9 @@ const to = (o) => {
322
322
  ...p,
323
323
  color: B,
324
324
  component: w,
325
- disabled: C,
325
+ disabled: m,
326
326
  disableElevation: W,
327
- disableFocusRipple: m,
327
+ disableFocusRipple: C,
328
328
  fullWidth: M,
329
329
  size: j,
330
330
  type: k,
@@ -342,8 +342,8 @@ const to = (o) => {
342
342
  ownerState: x,
343
343
  className: O(e.className, b.root, P, U),
344
344
  component: w,
345
- disabled: C,
346
- focusRipple: !m,
345
+ disabled: m,
346
+ focusRipple: !C,
347
347
  focusVisibleClassName: O(b.focusVisible, V),
348
348
  ref: r,
349
349
  type: k,
@@ -446,7 +446,7 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
446
446
  */
447
447
  variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
448
448
  });
449
- const $ = c(T)`
449
+ const $ = d(T)`
450
450
  text-transform: none;
451
451
  &:disabled {
452
452
  opacity: 0.5;
@@ -455,7 +455,7 @@ const $ = c(T)`
455
455
  justify-content: center;
456
456
  align-items: center;
457
457
  }
458
- `, eo = c($)`
458
+ `, eo = d($)`
459
459
  background-color: ${n.colors.green};
460
460
  border-radius: 0;
461
461
  height: 2.5rem;
@@ -475,11 +475,11 @@ const $ = c(T)`
475
475
  &:disabled {
476
476
  background-color: ${n.colors.darkGreen};
477
477
  }
478
- `, io = c($)`
478
+ `, io = d($)`
479
479
  color: ${n.colors.black};
480
480
  border: 3px solid ${n.colors.blue};
481
481
  padding: 0.5rem 2rem;
482
- `, z = c($)(({ width: o = "114px" }) => ({
482
+ `, z = d($)(({ width: o = "114px" }) => ({
483
483
  ...f`
484
484
  box-sizing: border-box;
485
485
  background-color: ${n.colors.bibiBlue};
@@ -497,7 +497,7 @@ const $ = c(T)`
497
497
  background-color: ${n.colors.bibiBlueHover};
498
498
  }
499
499
  `
500
- })), so = c(z)(({ active: o }) => ({
500
+ })), so = d(z)(({ active: o }) => ({
501
501
  ...f`
502
502
  background-color: ${o && n.colors.white};
503
503
  color: ${o && n.colors.bibiBlue};
@@ -507,7 +507,7 @@ const $ = c(T)`
507
507
  color: ${n.colors.bibiBlue};
508
508
  }
509
509
  `
510
- })), lo = c(z)(() => ({
510
+ })), lo = d(z)(() => ({
511
511
  ...f`
512
512
  background-color: ${n.colors.white};
513
513
  color: ${n.colors.bibiBlue};
@@ -518,9 +518,9 @@ const $ = c(T)`
518
518
  color: ${n.colors.white};
519
519
  }
520
520
  `
521
- })), co = c(S)`
521
+ })), co = d(S)`
522
522
  border-radius: 8px;
523
- `, po = c(S, {
523
+ `, po = d(S, {
524
524
  shouldForwardProp: (o) => typeof o == "string" && Z(o)
525
525
  })(({ size: o, color: a, highlightColor: r }) => ({
526
526
  ...f`
@@ -552,7 +552,7 @@ const $ = c(T)`
552
552
  highlightColor: e = n.colors.dandelion,
553
553
  children: i,
554
554
  ...s
555
- }) => o === "bibi" ? /* @__PURE__ */ l(z, { ...s, children: i }) : o === "bibiOutlined" ? /* @__PURE__ */ l(so, { ...s, children: i }) : o === "bibiInverse" ? /* @__PURE__ */ l(lo, { ...s, children: i }) : o === "unstyled" ? /* @__PURE__ */ l(co, { ...s, children: i }) : o === 2 ? /* @__PURE__ */ l(io, { ...s, children: /* @__PURE__ */ l("span", { children: i }) }) : o === "icon" ? /* @__PURE__ */ l(po, { ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
555
+ }) => o === "bibi" ? /* @__PURE__ */ l(z, { ...s, children: i }) : o === "bibiOutlined" ? /* @__PURE__ */ l(so, { ...s, children: i }) : o === "bibiInverse" ? /* @__PURE__ */ l(lo, { ...s, children: i }) : o === "unstyled" ? /* @__PURE__ */ l(co, { ...s, children: i }) : o === 2 ? /* @__PURE__ */ l(io, { ...s, children: /* @__PURE__ */ l("span", { children: i }) }) : o === "icon" ? /* @__PURE__ */ l(po, { className: "jcButton", ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
556
556
  export {
557
557
  So as Button,
558
558
  So as default
@@ -11,7 +11,7 @@ import L from "../Loading/Loading.js";
11
11
  import M from "../WithLoading/WithLoading.js";
12
12
  import { Flex as f } from "../Flex/Flex.js";
13
13
  import { Tooltip as x } from "../Tooltip/Tooltip.js";
14
- import { T as _ } from "../.chunks/Input.js";
14
+ import { T as _ } from "../.chunks/TextField.js";
15
15
  import { B as oo } from "../.chunks/ButtonBase.js";
16
16
  const eo = j(/* @__PURE__ */ o("path", {
17
17
  d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
package/Icon/Icon.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface IconProps {
4
4
  iconColor?: string;
5
5
  backgroundColor?: string;
6
6
  size?: number;
7
+ padding?: number;
7
8
  }
8
9
  declare const Icon: React.FC<IconProps & ButtonBaseProps>;
9
10
  export default Icon;
package/Icon/Icon.js CHANGED
@@ -1,26 +1,29 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { B as c } from "../.chunks/ButtonBase.js";
3
- import t from "../theme.js";
4
- import { n as l, i as p } from "../.chunks/emotion-styled.browser.esm.js";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { B as p } from "../.chunks/ButtonBase.js";
3
+ import i from "../theme.js";
4
+ import { n as l, i as m } from "../.chunks/emotion-styled.browser.esm.js";
5
5
  const a = l("div", {
6
- shouldForwardProp: (r) => p(r)
6
+ shouldForwardProp: (r) => m(r)
7
7
  })(
8
- ({ iconColor: r = t.colors.darkGreen, backgroundColor: n = t.colors.mint, size: e = 40 }) => ({
8
+ ({ iconColor: r = i.colors.darkGreen, backgroundColor: n = i.colors.mint, size: o = 40, padding: s = 8 }) => ({
9
9
  display: "flex",
10
10
  alignItems: "center",
11
11
  justifyContent: "center",
12
+ borderRadius: "50%",
13
+ boxShadow: `0 0 2px ${i.colors.midnight}`,
12
14
  svg: {
15
+ boxSizing: "border-box",
13
16
  border: `1px solid ${r}`,
14
17
  backgroundColor: n,
15
18
  borderRadius: "50%",
16
- padding: "8px",
19
+ padding: `${s}px`,
17
20
  fill: r,
18
- width: `${e - 18}px`,
19
- height: `${e - 18}px`,
21
+ width: `${o}px`,
22
+ height: `${o}px`,
20
23
  pointerEvents: "none"
21
24
  }
22
25
  })
23
- ), m = l(c)({
26
+ ), h = l(p)({
24
27
  backgroundColor: "transparent",
25
28
  borderRadius: "50%",
26
29
  span: {
@@ -28,19 +31,20 @@ const a = l("div", {
28
31
  },
29
32
  "&:hover, :focus-visible": {
30
33
  span: {
31
- backgroundColor: t.colors.grayO44
34
+ backgroundColor: i.colors.grayO44
32
35
  }
33
36
  }
34
- }), x = ({
37
+ }), b = ({
35
38
  icon: r,
36
39
  iconColor: n,
37
- backgroundColor: e,
38
- size: d,
39
- ...o
40
+ backgroundColor: o,
41
+ size: s,
42
+ padding: c,
43
+ ...e
40
44
  }) => {
41
- const s = { iconColor: n, backgroundColor: e, size: d };
42
- return o != null && o.onClick ? /* @__PURE__ */ i(m, { ...o, children: /* @__PURE__ */ i(a, { ...s, children: r }) }) : /* @__PURE__ */ i(a, { ...s, children: r });
45
+ const d = { iconColor: n, backgroundColor: o, size: s, padding: c };
46
+ return e != null && e.onClick ? /* @__PURE__ */ t(h, { ...e, children: /* @__PURE__ */ t(a, { ...d, children: r }) }) : /* @__PURE__ */ t(a, { ...d, children: r });
43
47
  };
44
48
  export {
45
- x as default
49
+ b as default
46
50
  };
package/Input/Input.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
2
2
  export type InputProps = Omit<MuiTextFieldProps, 'variant'> & {
3
- variant?: 'outlined' | 'simple';
4
- shadowTertiary?: string;
5
- borderColor?: string;
6
3
  borderFocusColor?: string;
7
4
  };
8
5
  export declare const Input: React.FC<InputProps>;
package/Input/Input.js CHANGED
@@ -1,8 +1,43 @@
1
- import "react/jsx-runtime";
2
- import "../.chunks/emotion-styled.browser.esm.js";
3
- import "../theme.js";
4
- import { I as a, I as i } from "../.chunks/Input.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
3
+ import r from "../theme.js";
4
+ import { T as d } from "../.chunks/TextField.js";
5
+ const s = t(d, {
6
+ shouldForwardProp: (o) => o != "borderFocusColor"
7
+ })(({ borderFocusColor: o }) => ({
8
+ backgroundColor: r.colors.white,
9
+ borderRadius: "0",
10
+ height: "18px",
11
+ input: {
12
+ transition: "313ms all ease-out",
13
+ height: "15px",
14
+ padding: "2px 0",
15
+ borderRadius: "0",
16
+ borderBottom: `1px solid ${r.colors.gray}`,
17
+ "&:focus-visible": {
18
+ boxShadow: `0 3px 2px -2px ${o}`
19
+ }
20
+ },
21
+ "&:hover, :focus-visible": {
22
+ input: {
23
+ boxShadow: `0 3px 2px -2px ${o}`
24
+ }
25
+ },
26
+ fieldset: {
27
+ borderRadius: "0",
28
+ border: "none"
29
+ },
30
+ "&.Mui-focused": {
31
+ fieldset: {
32
+ border: "none"
33
+ }
34
+ }
35
+ })), x = ({
36
+ borderFocusColor: o = r.colors.darkGreen,
37
+ // icon primary
38
+ ...e
39
+ }) => /* @__PURE__ */ i(s, { borderFocusColor: o, ...e });
5
40
  export {
6
- a as Input,
7
- i as default
41
+ x as Input,
42
+ x as default
8
43
  };
package/Input/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "../.chunks/Input.js";
1
+ import { Input as e } from "./Input.js";
2
2
  export {
3
- f as default
3
+ e as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { jsxs as e, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { n as p } from "../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as s } from "../.chunks/emotion-react.browser.esm.js";
4
- import { I as i } from "../.chunks/Input.js";
4
+ import { Input as i } from "../Input/Input.js";
5
5
  const n = p("div")(({ grid: t }) => ({
6
6
  ...s`
7
7
  display: flex;
@@ -23,12 +23,12 @@ const n = p("div")(({ grid: t }) => ({
23
23
  width: ${t && "calc(100% + 4px)"};
24
24
  }
25
25
  `
26
- })), c = ({ label: t, grid: a = !0, ...o }) => /* @__PURE__ */ e(n, { grid: a, children: [
26
+ })), c = ({ label: t, grid: o = !0, ...r }) => /* @__PURE__ */ e(n, { grid: o, children: [
27
27
  /* @__PURE__ */ e("span", { children: [
28
28
  t,
29
29
  ":"
30
30
  ] }),
31
- /* @__PURE__ */ r(i, { variant: "simple", ...o })
31
+ /* @__PURE__ */ a(i, { ...r })
32
32
  ] });
33
33
  export {
34
34
  c as LabeledInput,
@@ -5,7 +5,7 @@ export interface ListButtonProps extends ButtonBaseProps {
5
5
  active?: boolean;
6
6
  activeStyles?: CSSProperties;
7
7
  }
8
- declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "children" | "sx" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & {
8
+ declare const ListButton: import('@emotion/styled').StyledComponent<import('@mui/material').ButtonBaseOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & {
9
9
  theme?: import('@emotion/react').Theme;
10
10
  } & ListButtonProps, {}, {}>;
11
11
  export default ListButton;