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.
- package/.chunks/DefaultPropsProvider.js +439 -439
- package/.chunks/Portal.js +42 -42
- package/.chunks/{Input.js → TextField.js} +708 -794
- package/.chunks/TransitionGroupContext.js +6 -7
- package/AppContainer/AppContainer.d.ts +10 -3
- package/AppContainer/AppContainer.js +487 -480
- package/AppHeader/AppHeader.d.ts +5 -2
- package/AppHeader/AppHeader.js +95 -75
- package/Button/Button.js +25 -25
- package/EditableInfoCard/EditableInfoCard.js +1 -1
- package/Icon/Icon.d.ts +1 -0
- package/Icon/Icon.js +22 -18
- package/Input/Input.d.ts +0 -3
- package/Input/Input.js +41 -6
- package/Input/index.js +2 -2
- package/LabeledInput/LabeledInput.js +4 -4
- package/ListButton/ListButton.d.ts +1 -1
- package/README.md +106 -106
- package/Search/Search.d.ts +15 -0
- package/Search/Search.js +128 -0
- package/Search/index.d.ts +1 -0
- package/Search/index.js +4 -0
- package/animation/Pulse/Pulse.d.ts +11 -0
- package/animation/Pulse/Pulse.js +58 -0
- package/animation/Pulse/index.d.ts +1 -0
- package/animation/Pulse/index.js +4 -0
- package/index.d.ts +0 -1
- package/index.js +48 -50
- package/package.json +1 -1
- package/theme.d.ts +6 -0
- package/theme.js +5 -0
- package/Avatar/Avatar.d.ts +0 -8
- package/Avatar/Avatar.js +0 -38
- package/Avatar/index.d.ts +0 -1
- package/Avatar/index.js +0 -4
package/AppHeader/AppHeader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
20
|
+
iconColors?: IconProps;
|
|
21
|
+
userName?: string;
|
|
22
|
+
userSettingsEnabled?: boolean;
|
|
20
23
|
}
|
|
21
24
|
declare const AppHeader: React.FC<AppHeaderProps>;
|
|
22
25
|
export default AppHeader;
|
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
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
|
|
6
|
-
import {
|
|
7
|
-
import { Button as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { c as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
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
|
|
17
|
+
function X() {
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const c =
|
|
21
|
-
return
|
|
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
|
|
24
|
+
if (!d) return X;
|
|
25
25
|
function r(o, s) {
|
|
26
|
-
i ||
|
|
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,
|
|
31
|
+
}, [e, c, u]), c.observer;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
35
|
-
const c = /* @__PURE__ */ new Map(),
|
|
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
|
|
43
|
-
|
|
42
|
+
const a = c.get(l[s].target);
|
|
43
|
+
a == null || a.forEach((w) => w(l[s], d));
|
|
44
44
|
}
|
|
45
|
-
l = [],
|
|
45
|
+
l = [], n = !1;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
n || window.requestAnimationFrame(r), n = !0;
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
|
-
observer:
|
|
50
|
+
observer: u,
|
|
51
51
|
subscribe(i, d) {
|
|
52
52
|
var r;
|
|
53
|
-
|
|
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
|
-
|
|
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
|
|
70
|
-
const
|
|
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"),
|
|
73
|
-
|
|
74
|
-
|
|
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 &&
|
|
85
|
+
box-shadow: ${e && n};
|
|
84
86
|
`
|
|
85
87
|
})
|
|
86
|
-
),
|
|
88
|
+
), R = h("img")(({ width: e }) => ({
|
|
87
89
|
width: `${e}px`
|
|
88
|
-
})),
|
|
89
|
-
...
|
|
90
|
+
})), _ = h("div")(({ height: e }) => ({
|
|
91
|
+
...m`
|
|
90
92
|
display: flex;
|
|
91
93
|
gap: 1rem;
|
|
92
94
|
height: ${e}px;
|
|
93
95
|
`
|
|
94
|
-
})),
|
|
95
|
-
...
|
|
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: ${
|
|
102
|
+
flex-direction: ${n ? "column" : "column-reverse"};
|
|
101
103
|
flex-shrink: 0;
|
|
102
104
|
* {
|
|
103
105
|
white-space: nowrap;
|
|
104
106
|
}
|
|
105
107
|
`
|
|
106
|
-
})),
|
|
107
|
-
...
|
|
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
|
-
})),
|
|
114
|
-
...
|
|
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
|
-
})),
|
|
124
|
+
})), fe = ({
|
|
123
125
|
isMobile: e,
|
|
124
|
-
loggedIn:
|
|
126
|
+
loggedIn: n,
|
|
125
127
|
logoProps: l,
|
|
126
128
|
iconColor: c,
|
|
127
|
-
themeProps:
|
|
129
|
+
themeProps: u,
|
|
128
130
|
hamburgerMenu: i,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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 [
|
|
135
|
-
|
|
136
|
-
f && f.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
|
|
139
|
-
|
|
144
|
+
const D = (p) => {
|
|
145
|
+
p != null && p.clientWidth && p.clientWidth > b && C(p.clientWidth);
|
|
140
146
|
};
|
|
141
|
-
return
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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__ */
|
|
151
|
-
/* @__PURE__ */ x(
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
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__ */
|
|
157
|
-
|
|
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__ */
|
|
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
|
-
|
|
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
|
|
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}${
|
|
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${
|
|
29
|
-
endIcon: ["icon", "endIcon", `iconSize${
|
|
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 =
|
|
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}${
|
|
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 =
|
|
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${
|
|
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 =
|
|
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${
|
|
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:
|
|
310
|
+
disabled: m = !1,
|
|
311
311
|
disableElevation: W = !1,
|
|
312
|
-
disableFocusRipple:
|
|
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:
|
|
325
|
+
disabled: m,
|
|
326
326
|
disableElevation: W,
|
|
327
|
-
disableFocusRipple:
|
|
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:
|
|
346
|
-
focusRipple: !
|
|
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 $ =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
521
|
+
})), co = d(S)`
|
|
522
522
|
border-radius: 8px;
|
|
523
|
-
`, po =
|
|
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/
|
|
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
package/Icon/Icon.js
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import
|
|
4
|
-
import { n as l, i as
|
|
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) =>
|
|
6
|
+
shouldForwardProp: (r) => m(r)
|
|
7
7
|
})(
|
|
8
|
-
({ iconColor: r =
|
|
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:
|
|
19
|
+
padding: `${s}px`,
|
|
17
20
|
fill: r,
|
|
18
|
-
width: `${
|
|
19
|
-
height: `${
|
|
21
|
+
width: `${o}px`,
|
|
22
|
+
height: `${o}px`,
|
|
20
23
|
pointerEvents: "none"
|
|
21
24
|
}
|
|
22
25
|
})
|
|
23
|
-
),
|
|
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:
|
|
34
|
+
backgroundColor: i.colors.grayO44
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
|
-
}),
|
|
37
|
+
}), b = ({
|
|
35
38
|
icon: r,
|
|
36
39
|
iconColor: n,
|
|
37
|
-
backgroundColor:
|
|
38
|
-
size:
|
|
39
|
-
|
|
40
|
+
backgroundColor: o,
|
|
41
|
+
size: s,
|
|
42
|
+
padding: c,
|
|
43
|
+
...e
|
|
40
44
|
}) => {
|
|
41
|
-
const
|
|
42
|
-
return
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
7
|
-
|
|
41
|
+
x as Input,
|
|
42
|
+
x as default
|
|
8
43
|
};
|
package/Input/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as e, jsx as
|
|
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 {
|
|
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:
|
|
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__ */
|
|
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" | "
|
|
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;
|