jcicl 0.0.130 → 0.0.133
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 +11 -4
- package/AppContainer/AppContainer.js +487 -480
- package/AppHeader/AppHeader.d.ts +7 -2
- package/AppHeader/AppHeader.js +98 -70
- package/Button/Button.d.ts +2 -1
- package/Button/Button.js +107 -89
- package/EditableInfoCard/EditableInfoCard.js +1 -1
- package/Flex/Flex.js +12 -11
- 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/Search/Search.d.ts +15 -0
- package/Search/Search.js +192 -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,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SearchFilterProps } from '../../../../../../../../../src/components/composite/Search';
|
|
2
|
+
import { IconProps } from '../../../../../../../../../src/components/base/Icon';
|
|
2
3
|
import { TemplateThemeProps } from '../../../../../../../../../src/components/theme';
|
|
3
4
|
export interface CustomLogoProps {
|
|
4
5
|
logoSrc: string;
|
|
@@ -12,11 +13,15 @@ export interface AppHeaderProps {
|
|
|
12
13
|
onLogout?: () => void;
|
|
13
14
|
onUserMenuClick?: () => void;
|
|
14
15
|
onHamburgerMenuClick?: () => void;
|
|
16
|
+
onSearch?: () => void;
|
|
15
17
|
logoProps: CustomLogoProps;
|
|
16
18
|
iconColor: string;
|
|
17
19
|
isMobile?: boolean;
|
|
18
20
|
themeProps: Pick<TemplateThemeProps, 'shadowSecondary' | 'iconPrimary' | 'borderPrimary' | 'shadowTertiary'>;
|
|
19
|
-
|
|
21
|
+
iconColors?: IconProps;
|
|
22
|
+
userName?: string;
|
|
23
|
+
userSettingsEnabled?: boolean;
|
|
24
|
+
searchFilters?: SearchFilterProps[];
|
|
20
25
|
}
|
|
21
26
|
declare const AppHeader: React.FC<AppHeaderProps>;
|
|
22
27
|
export default AppHeader;
|
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { n as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import { Button as
|
|
8
|
-
import E from "../
|
|
9
|
-
import
|
|
10
|
-
import { c as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
}),
|
|
1
|
+
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import * as W from "react";
|
|
3
|
+
import J, { useState as $, useLayoutEffect as K } 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 { Search as k } from "../Search/Search.js";
|
|
7
|
+
import { Button as M } from "../Button/Button.js";
|
|
8
|
+
import E from "../Icon/Icon.js";
|
|
9
|
+
import N from "../WithLabel/WithLabel.js";
|
|
10
|
+
import { c as A } from "../.chunks/createSvgIcon.js";
|
|
11
|
+
const Q = J[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], X = (e) => {
|
|
12
|
+
const n = W.useRef(e);
|
|
13
|
+
return W.useEffect(() => {
|
|
14
|
+
n.current = e;
|
|
15
|
+
}), n;
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function Y() {
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const c =
|
|
21
|
-
return
|
|
19
|
+
function Z(e, n, l = {}) {
|
|
20
|
+
const c = te(l.polyfill), a = X(n);
|
|
21
|
+
return Q(() => {
|
|
22
22
|
let i = !1;
|
|
23
23
|
const d = e && "current" in e ? e.current : e;
|
|
24
|
-
if (!d) return
|
|
24
|
+
if (!d) return Y;
|
|
25
25
|
function r(o, s) {
|
|
26
26
|
i || a.current(o, s);
|
|
27
27
|
}
|
|
@@ -30,8 +30,8 @@ function K(e, t, l = {}) {
|
|
|
30
30
|
};
|
|
31
31
|
}, [e, c, a]), c.observer;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
33
|
+
function ee(e) {
|
|
34
|
+
let n = !1, l = [];
|
|
35
35
|
const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
|
|
36
36
|
l = l.concat(i);
|
|
37
37
|
function r() {
|
|
@@ -39,12 +39,12 @@ function N(e) {
|
|
|
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 h = c.get(l[s].target);
|
|
43
|
+
h == null || h.forEach((b) => b(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
50
|
observer: a,
|
|
@@ -66,12 +66,14 @@ function N(e) {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
const
|
|
69
|
+
let y;
|
|
70
|
+
const te = (e) => y || (y = ee(e)), ne = A(/* @__PURE__ */ t("path", {
|
|
71
71
|
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
72
|
-
}), "Menu"),
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
}), "Menu"), H = A(/* @__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"), I = f("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
|
+
), L = f("img")(({ width: e }) => ({
|
|
87
89
|
width: `${e}px`
|
|
88
|
-
})),
|
|
89
|
-
...
|
|
90
|
+
})), R = f("div")(({ height: e }) => ({
|
|
91
|
+
...m`
|
|
90
92
|
display: flex;
|
|
91
93
|
gap: 1rem;
|
|
92
94
|
height: ${e}px;
|
|
93
95
|
`
|
|
94
|
-
})),
|
|
95
|
-
...
|
|
96
|
+
})), ie = f("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
|
+
})), _ = f("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
|
+
})), P = f("div")(() => ({
|
|
116
|
+
...m`
|
|
115
117
|
display: flex;
|
|
116
118
|
width: 1360px;
|
|
117
119
|
max-width: 100%;
|
|
@@ -119,48 +121,74 @@ const Q = (e) => C || (C = N(e)), X = T(/* @__PURE__ */ n("path", {
|
|
|
119
121
|
width: 100%;
|
|
120
122
|
}
|
|
121
123
|
`
|
|
122
|
-
})),
|
|
124
|
+
})), he = ({
|
|
123
125
|
isMobile: e,
|
|
124
|
-
loggedIn:
|
|
126
|
+
loggedIn: n,
|
|
125
127
|
logoProps: l,
|
|
126
128
|
iconColor: c,
|
|
127
129
|
themeProps: a,
|
|
128
130
|
hamburgerMenu: i,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
iconColors: d,
|
|
132
|
+
userName: r = "User",
|
|
133
|
+
userSettingsEnabled: o,
|
|
134
|
+
searchFilters: s,
|
|
135
|
+
onHamburgerMenuClick: h,
|
|
136
|
+
onUserMenuClick: b,
|
|
137
|
+
onLogin: j,
|
|
138
|
+
onSearch: V = () => {
|
|
139
|
+
}
|
|
133
140
|
}) => {
|
|
134
|
-
const [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
const [v, C] = $(0), [u, F] = $(null), [g, U] = $(null), { logoSrc: z, logoWidth: O, logoHeight: x } = l, { shadowSecondary: B, shadowTertiary: q, iconPrimary: T, borderPrimary: D } = a, S = {
|
|
142
|
+
shadowTertiary: q,
|
|
143
|
+
borderColor: D,
|
|
144
|
+
borderFocusColor: T,
|
|
145
|
+
filters: s,
|
|
146
|
+
onSearch: V,
|
|
147
|
+
placeholder: "Search..."
|
|
140
148
|
};
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
K(() => {
|
|
150
|
+
u && u.clientWidth > v && C(u.clientWidth), g && g.clientWidth > v && C(g.clientWidth);
|
|
151
|
+
}, [u, g]);
|
|
152
|
+
const G = (p) => {
|
|
153
|
+
p != null && p.clientWidth && p.clientWidth > v && C(p.clientWidth);
|
|
154
|
+
};
|
|
155
|
+
return Z(u, () => G(u)), e ? /* @__PURE__ */ w(I, { mobile: !0, shadowSecondary: B, children: [
|
|
156
|
+
/* @__PURE__ */ t(R, { height: x, children: /* @__PURE__ */ t(L, { src: z, height: `${x}px`, width: O }) }),
|
|
157
|
+
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { ...S }) }),
|
|
158
|
+
/* @__PURE__ */ t(
|
|
159
|
+
E,
|
|
160
|
+
{
|
|
161
|
+
icon: /* @__PURE__ */ t(H, {}),
|
|
162
|
+
...d,
|
|
163
|
+
onClick: o ? b : void 0
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
] }) : /* @__PURE__ */ w(I, { children: [
|
|
167
|
+
/* @__PURE__ */ w(R, { height: x, children: [
|
|
168
|
+
/* @__PURE__ */ t(L, { src: z, height: `${x}px`, width: O }),
|
|
169
|
+
i && /* @__PURE__ */ t(M, { variant: "icon", onClick: h, color: c, children: /* @__PURE__ */ t(ne, {}) })
|
|
149
170
|
] }),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
171
|
+
/* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(k, { ...S }) }),
|
|
172
|
+
/* @__PURE__ */ w(ie, { width: v, loggedIn: !!n, children: [
|
|
173
|
+
/* @__PURE__ */ t(_, { visible: !!n, ref: F, children: /* @__PURE__ */ t(
|
|
174
|
+
N,
|
|
154
175
|
{
|
|
155
176
|
id: "accountMenuContainer",
|
|
156
|
-
component: /* @__PURE__ */
|
|
157
|
-
|
|
177
|
+
component: /* @__PURE__ */ t(
|
|
178
|
+
E,
|
|
179
|
+
{
|
|
180
|
+
icon: /* @__PURE__ */ t(H, {}),
|
|
181
|
+
...d,
|
|
182
|
+
onClick: o ? b : void 0
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
label: `Hi, ${r}!`
|
|
158
186
|
}
|
|
159
187
|
) }),
|
|
160
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ t(_, { visible: !n, ref: U, children: /* @__PURE__ */ t(M, { id: "loginButtonContainer", onClick: j, children: "Log In" }) })
|
|
161
189
|
] })
|
|
162
190
|
] });
|
|
163
191
|
};
|
|
164
192
|
export {
|
|
165
|
-
|
|
193
|
+
he as default
|
|
166
194
|
};
|
package/Button/Button.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ButtonProps as MuiButtonProps } from '@mui/material/Button/Button';
|
|
2
2
|
export interface ButtonProps extends Omit<MuiButtonProps, 'variant' | 'size' | 'color'> {
|
|
3
|
-
variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse';
|
|
3
|
+
variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter';
|
|
4
4
|
size?: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
highlightColor?: string;
|
|
7
|
+
active?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const Button: React.FC<ButtonProps & {
|
|
9
10
|
children: React.ReactNode;
|
package/Button/Button.js
CHANGED
|
@@ -5,35 +5,35 @@ 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";
|
|
7
7
|
import { i as Z } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import
|
|
8
|
+
import { c as x } from "../.chunks/emotion-react.browser.esm.js";
|
|
9
|
+
import r from "../theme.js";
|
|
10
10
|
function oo(o) {
|
|
11
11
|
return _("MuiButton", o);
|
|
12
12
|
}
|
|
13
13
|
const u = A("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"]), R = /* @__PURE__ */ g.createContext({});
|
|
14
14
|
process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
|
|
15
|
-
const
|
|
16
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
+
const N = /* @__PURE__ */ g.createContext(void 0);
|
|
16
|
+
process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
|
|
17
17
|
const to = (o) => {
|
|
18
18
|
const {
|
|
19
|
-
color:
|
|
20
|
-
disableElevation:
|
|
19
|
+
color: n,
|
|
20
|
+
disableElevation: a,
|
|
21
21
|
fullWidth: e,
|
|
22
22
|
size: i,
|
|
23
|
-
variant:
|
|
24
|
-
classes:
|
|
25
|
-
} = o,
|
|
26
|
-
root: ["root",
|
|
23
|
+
variant: p,
|
|
24
|
+
classes: s
|
|
25
|
+
} = o, f = {
|
|
26
|
+
root: ["root", p, `${p}${d(n)}`, `size${d(i)}`, `${p}Size${d(i)}`, `color${d(n)}`, a && "disableElevation", e && "fullWidth"],
|
|
27
27
|
label: ["label"],
|
|
28
28
|
startIcon: ["icon", "startIcon", `iconSize${d(i)}`],
|
|
29
29
|
endIcon: ["icon", "endIcon", `iconSize${d(i)}`]
|
|
30
|
-
},
|
|
30
|
+
}, $ = Q(f, oo, s);
|
|
31
31
|
return {
|
|
32
|
-
...
|
|
32
|
+
...s,
|
|
33
33
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
34
|
-
|
|
34
|
+
...$
|
|
35
35
|
};
|
|
36
|
-
},
|
|
36
|
+
}, E = [{
|
|
37
37
|
props: {
|
|
38
38
|
size: "small"
|
|
39
39
|
},
|
|
@@ -64,16 +64,16 @@ const to = (o) => {
|
|
|
64
64
|
shouldForwardProp: (o) => q(o) || o === "classes",
|
|
65
65
|
name: "MuiButton",
|
|
66
66
|
slot: "Root",
|
|
67
|
-
overridesResolver: (o,
|
|
67
|
+
overridesResolver: (o, n) => {
|
|
68
68
|
const {
|
|
69
|
-
ownerState:
|
|
69
|
+
ownerState: a
|
|
70
70
|
} = o;
|
|
71
|
-
return [
|
|
71
|
+
return [n.root, n[a.variant], n[`${a.variant}${d(a.color)}`], n[`size${d(a.size)}`], n[`${a.variant}Size${d(a.size)}`], a.color === "inherit" && n.colorInherit, a.disableElevation && n.disableElevation, a.fullWidth && n.fullWidth];
|
|
72
72
|
}
|
|
73
73
|
})(X(({
|
|
74
74
|
theme: o
|
|
75
75
|
}) => {
|
|
76
|
-
const
|
|
76
|
+
const n = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], a = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
77
77
|
return {
|
|
78
78
|
...o.typography.button,
|
|
79
79
|
minWidth: 64,
|
|
@@ -165,10 +165,10 @@ const to = (o) => {
|
|
|
165
165
|
style: {
|
|
166
166
|
color: "inherit",
|
|
167
167
|
borderColor: "currentColor",
|
|
168
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg :
|
|
168
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
|
|
169
169
|
"@media (hover: hover)": {
|
|
170
170
|
"&:hover": {
|
|
171
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg :
|
|
171
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : a,
|
|
172
172
|
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
173
173
|
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
174
174
|
}
|
|
@@ -259,11 +259,11 @@ const to = (o) => {
|
|
|
259
259
|
})), ao = c("span", {
|
|
260
260
|
name: "MuiButton",
|
|
261
261
|
slot: "StartIcon",
|
|
262
|
-
overridesResolver: (o,
|
|
262
|
+
overridesResolver: (o, n) => {
|
|
263
263
|
const {
|
|
264
|
-
ownerState:
|
|
264
|
+
ownerState: a
|
|
265
265
|
} = o;
|
|
266
|
-
return [
|
|
266
|
+
return [n.startIcon, n[`iconSize${d(a.size)}`]];
|
|
267
267
|
}
|
|
268
268
|
})({
|
|
269
269
|
display: "inherit",
|
|
@@ -276,15 +276,15 @@ const to = (o) => {
|
|
|
276
276
|
style: {
|
|
277
277
|
marginLeft: -2
|
|
278
278
|
}
|
|
279
|
-
}, ...
|
|
279
|
+
}, ...E]
|
|
280
280
|
}), no = c("span", {
|
|
281
281
|
name: "MuiButton",
|
|
282
282
|
slot: "EndIcon",
|
|
283
|
-
overridesResolver: (o,
|
|
283
|
+
overridesResolver: (o, n) => {
|
|
284
284
|
const {
|
|
285
|
-
ownerState:
|
|
285
|
+
ownerState: a
|
|
286
286
|
} = o;
|
|
287
|
-
return [
|
|
287
|
+
return [n.endIcon, n[`iconSize${d(a.size)}`]];
|
|
288
288
|
}
|
|
289
289
|
})({
|
|
290
290
|
display: "inherit",
|
|
@@ -297,59 +297,59 @@ const to = (o) => {
|
|
|
297
297
|
style: {
|
|
298
298
|
marginRight: -2
|
|
299
299
|
}
|
|
300
|
-
}, ...
|
|
301
|
-
}), T = /* @__PURE__ */ g.forwardRef(function(
|
|
302
|
-
const e = g.useContext(R), i = g.useContext(
|
|
303
|
-
props:
|
|
300
|
+
}, ...E]
|
|
301
|
+
}), T = /* @__PURE__ */ g.forwardRef(function(n, a) {
|
|
302
|
+
const e = g.useContext(R), i = g.useContext(N), p = J(e, n), s = K({
|
|
303
|
+
props: p,
|
|
304
304
|
name: "MuiButton"
|
|
305
305
|
}), {
|
|
306
|
-
children:
|
|
307
|
-
color:
|
|
306
|
+
children: f,
|
|
307
|
+
color: $ = "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,
|
|
316
316
|
size: j = "medium",
|
|
317
317
|
startIcon: I,
|
|
318
318
|
type: k,
|
|
319
|
-
variant:
|
|
320
|
-
...
|
|
321
|
-
} =
|
|
322
|
-
...
|
|
323
|
-
color:
|
|
319
|
+
variant: F = "text",
|
|
320
|
+
...G
|
|
321
|
+
} = s, y = {
|
|
322
|
+
...s,
|
|
323
|
+
color: $,
|
|
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,
|
|
331
|
-
variant:
|
|
332
|
-
}, b = to(
|
|
331
|
+
variant: F
|
|
332
|
+
}, b = to(y), L = I && /* @__PURE__ */ l(ao, {
|
|
333
333
|
className: b.startIcon,
|
|
334
|
-
ownerState:
|
|
334
|
+
ownerState: y,
|
|
335
335
|
children: I
|
|
336
336
|
}), D = h && /* @__PURE__ */ l(no, {
|
|
337
337
|
className: b.endIcon,
|
|
338
|
-
ownerState:
|
|
338
|
+
ownerState: y,
|
|
339
339
|
children: h
|
|
340
340
|
}), U = i || "";
|
|
341
341
|
return /* @__PURE__ */ H(ro, {
|
|
342
|
-
ownerState:
|
|
342
|
+
ownerState: y,
|
|
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
|
-
ref:
|
|
348
|
+
ref: a,
|
|
349
349
|
type: k,
|
|
350
|
-
...
|
|
350
|
+
...G,
|
|
351
351
|
classes: b,
|
|
352
|
-
children: [
|
|
352
|
+
children: [L, f, D]
|
|
353
353
|
});
|
|
354
354
|
});
|
|
355
355
|
process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
@@ -446,84 +446,84 @@ 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 B = c(T)`
|
|
450
450
|
text-transform: none;
|
|
451
451
|
&:disabled {
|
|
452
452
|
opacity: 0.5;
|
|
453
|
-
color: ${
|
|
453
|
+
color: ${r.colors.black};
|
|
454
454
|
display: flex;
|
|
455
455
|
justify-content: center;
|
|
456
456
|
align-items: center;
|
|
457
457
|
}
|
|
458
|
-
`, eo = c(
|
|
459
|
-
background-color: ${
|
|
458
|
+
`, eo = c(B)`
|
|
459
|
+
background-color: ${r.colors.green};
|
|
460
460
|
border-radius: 0;
|
|
461
461
|
height: 2.5rem;
|
|
462
462
|
border: 2px solid transparent;
|
|
463
|
-
color: ${
|
|
463
|
+
color: ${r.colors.white};
|
|
464
464
|
transition: 313ms all ease-in;
|
|
465
465
|
border-radius: 32px;
|
|
466
466
|
font-weight: 400;
|
|
467
467
|
padding: 0.75rem 2rem;
|
|
468
468
|
font-size: 1rem;
|
|
469
|
-
box-shadow: ${
|
|
469
|
+
box-shadow: ${r.boxShadows.gray63};
|
|
470
470
|
&:hover,
|
|
471
471
|
:focus-visible {
|
|
472
|
-
background-color: ${
|
|
473
|
-
box-shadow: ${
|
|
472
|
+
background-color: ${r.colors.darkGreen};
|
|
473
|
+
box-shadow: ${r.boxShadows.black63};
|
|
474
474
|
}
|
|
475
475
|
&:disabled {
|
|
476
|
-
background-color: ${
|
|
476
|
+
background-color: ${r.colors.darkGreen};
|
|
477
477
|
}
|
|
478
|
-
`, io = c(
|
|
479
|
-
color: ${
|
|
480
|
-
border: 3px solid ${
|
|
478
|
+
`, io = c(B)`
|
|
479
|
+
color: ${r.colors.black};
|
|
480
|
+
border: 3px solid ${r.colors.blue};
|
|
481
481
|
padding: 0.5rem 2rem;
|
|
482
|
-
`, z = c(
|
|
483
|
-
...
|
|
482
|
+
`, z = c(B)(({ width: o = "114px" }) => ({
|
|
483
|
+
...x`
|
|
484
484
|
box-sizing: border-box;
|
|
485
|
-
background-color: ${
|
|
485
|
+
background-color: ${r.colors.bibiBlue};
|
|
486
486
|
border-radius: 0;
|
|
487
487
|
height: 47px;
|
|
488
488
|
width: ${o};
|
|
489
489
|
border: 2px solid transparent;
|
|
490
|
-
color: ${
|
|
490
|
+
color: ${r.colors.white};
|
|
491
491
|
transition: 108ms all ease-in;
|
|
492
492
|
font-weight: 500;
|
|
493
493
|
padding: 0;
|
|
494
494
|
font-size: 19px;
|
|
495
495
|
&:hover,
|
|
496
496
|
:focus-visible {
|
|
497
|
-
background-color: ${
|
|
497
|
+
background-color: ${r.colors.bibiBlueHover};
|
|
498
498
|
}
|
|
499
499
|
`
|
|
500
500
|
})), so = c(z)(({ active: o }) => ({
|
|
501
|
-
...
|
|
502
|
-
background-color: ${o &&
|
|
503
|
-
color: ${o &&
|
|
501
|
+
...x`
|
|
502
|
+
background-color: ${o && r.colors.white};
|
|
503
|
+
color: ${o && r.colors.bibiBlue};
|
|
504
504
|
&:hover,
|
|
505
505
|
:focus-visible {
|
|
506
|
-
background-color: ${
|
|
507
|
-
color: ${
|
|
506
|
+
background-color: ${r.colors.white};
|
|
507
|
+
color: ${r.colors.bibiBlue};
|
|
508
508
|
}
|
|
509
509
|
`
|
|
510
510
|
})), lo = c(z)(() => ({
|
|
511
|
-
...
|
|
512
|
-
background-color: ${
|
|
513
|
-
color: ${
|
|
511
|
+
...x`
|
|
512
|
+
background-color: ${r.colors.white};
|
|
513
|
+
color: ${r.colors.bibiBlue};
|
|
514
514
|
&:hover,
|
|
515
515
|
:focus-visible {
|
|
516
|
-
background-color: ${
|
|
517
|
-
border: 2px solid ${
|
|
518
|
-
color: ${
|
|
516
|
+
background-color: ${r.colors.bibiBlue};
|
|
517
|
+
border: 2px solid ${r.colors.white};
|
|
518
|
+
color: ${r.colors.white};
|
|
519
519
|
}
|
|
520
520
|
`
|
|
521
521
|
})), co = c(S)`
|
|
522
522
|
border-radius: 8px;
|
|
523
523
|
`, po = c(S, {
|
|
524
524
|
shouldForwardProp: (o) => typeof o == "string" && Z(o)
|
|
525
|
-
})(({ size: o, color:
|
|
526
|
-
...
|
|
525
|
+
})(({ size: o, color: n, highlightColor: a }) => ({
|
|
526
|
+
...x`
|
|
527
527
|
display: flex;
|
|
528
528
|
align-items: center;
|
|
529
529
|
justify-content: center;
|
|
@@ -533,26 +533,44 @@ const $ = c(T)`
|
|
|
533
533
|
&:hover,
|
|
534
534
|
:focus-visible {
|
|
535
535
|
svg {
|
|
536
|
-
filter: drop-shadow(0 0 6px ${
|
|
537
|
-
drop-shadow(0 0 6px ${
|
|
536
|
+
filter: drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a})
|
|
537
|
+
drop-shadow(0 0 6px ${a}) drop-shadow(0 0 6px ${a});
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
svg {
|
|
542
542
|
transition: 313ms all ease-in-out;
|
|
543
|
-
fill: ${
|
|
543
|
+
fill: ${n};
|
|
544
544
|
width: ${o}px;
|
|
545
545
|
height: ${o}px;
|
|
546
546
|
}
|
|
547
547
|
`
|
|
548
|
+
})), uo = c(B)(({ active: o }) => ({
|
|
549
|
+
...x`
|
|
550
|
+
box-sizing: border-box;
|
|
551
|
+
background-color: ${o ? r.colors.black : r.colors.white};
|
|
552
|
+
height: 28px;
|
|
553
|
+
border-radius: 18px;
|
|
554
|
+
padding: 0 29px;
|
|
555
|
+
border: 2px solid ${o ? "transparent" : r.colors.black};
|
|
556
|
+
color: ${o ? r.colors.white : r.colors.black};
|
|
557
|
+
transition: 108ms all ease-in;
|
|
558
|
+
font-weight: 500;
|
|
559
|
+
|
|
560
|
+
&:hover,
|
|
561
|
+
:focus-visible {
|
|
562
|
+
background-color: ${o ? r.colors.charcoal : r.colors.gray2};
|
|
563
|
+
}
|
|
564
|
+
`
|
|
548
565
|
})), So = ({
|
|
549
566
|
variant: o = 1,
|
|
550
|
-
size:
|
|
551
|
-
color:
|
|
552
|
-
highlightColor: e =
|
|
567
|
+
size: n = 50,
|
|
568
|
+
color: a = r.colors.darkGreen,
|
|
569
|
+
highlightColor: e = r.colors.dandelion,
|
|
553
570
|
children: i,
|
|
571
|
+
active: p,
|
|
554
572
|
...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:
|
|
573
|
+
}) => 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: "jcIconButton", ...{ size: n, color: a, highlightColor: e }, ...s, children: i }) : o === "filter" ? /* @__PURE__ */ l(uo, { className: "jcFilterButton", active: p, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
|
|
556
574
|
export {
|
|
557
575
|
So as Button,
|
|
558
576
|
So as default
|