jcicl 0.0.345 → 1.0.1
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/AppHeader.js +222 -0
- package/.chunks/ButtonBase.js +1 -1
- package/.chunks/Portal.js +1 -1
- package/.chunks/TransitionGroupContext.js +2 -2
- package/AppContainer/AppContainer.js +161 -154
- package/AppHeader/AppHeader.js +11 -219
- package/AppHeader/index.js +2 -2
- package/Button/Button.js +76 -67
- package/DefaultTemplate/DefaultTemplate.js +93 -98
- package/LabeledDropdown/LabeledDropdown.js +67 -67
- package/LabeledInput/LabeledInput.js +15 -13
- package/LabeledTextArea/LabeledTextArea.js +5 -5
- package/Nav/Nav.d.ts +5 -0
- package/Nav/Nav.js +390 -89
- package/README.md +106 -106
- package/Search/Search.js +29 -27
- package/Table/Table.js +311 -250
- package/ThemeContext.d.ts +3 -0
- package/ThemeContext.js +10 -0
- package/index.js +5 -5
- package/package.json +2 -1
- package/theme.d.ts +79 -1
- package/theme.js +52 -10
- package/themeUtils.d.ts +35 -0
- package/themeUtils.js +88 -0
package/AppHeader/AppHeader.js
CHANGED
|
@@ -1,221 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import L from "../theme.js";
|
|
12
|
-
const te = Z[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ne = (e) => {
|
|
13
|
-
const n = M.useRef(e);
|
|
14
|
-
return M.useEffect(() => {
|
|
15
|
-
n.current = e;
|
|
16
|
-
}), n;
|
|
17
|
-
};
|
|
18
|
-
function ie() {
|
|
19
|
-
}
|
|
20
|
-
function oe(e, n, l = {}) {
|
|
21
|
-
const c = ce(l.polyfill), d = ne(n);
|
|
22
|
-
return te(() => {
|
|
23
|
-
let i = !1;
|
|
24
|
-
const a = e && "current" in e ? e.current : e;
|
|
25
|
-
if (!a) return ie;
|
|
26
|
-
function r(o, s) {
|
|
27
|
-
i || d.current(o, s);
|
|
28
|
-
}
|
|
29
|
-
return c.subscribe(a, r), () => {
|
|
30
|
-
i = !0, c.unsubscribe(a, r);
|
|
31
|
-
};
|
|
32
|
-
}, [e, c, d]), c.observer;
|
|
33
|
-
}
|
|
34
|
-
function re(e) {
|
|
35
|
-
let n = !1, l = [];
|
|
36
|
-
const c = /* @__PURE__ */ new Map(), d = new (e || window.ResizeObserver)((i, a) => {
|
|
37
|
-
l = l.concat(i);
|
|
38
|
-
function r() {
|
|
39
|
-
const o = /* @__PURE__ */ new Set();
|
|
40
|
-
for (let s = 0; s < l.length; s++) {
|
|
41
|
-
if (o.has(l[s].target)) continue;
|
|
42
|
-
o.add(l[s].target);
|
|
43
|
-
const m = c.get(l[s].target);
|
|
44
|
-
m == null || m.forEach((v) => v(l[s], a));
|
|
45
|
-
}
|
|
46
|
-
l = [], n = !1;
|
|
47
|
-
}
|
|
48
|
-
n || window.requestAnimationFrame(r), n = !0;
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
observer: d,
|
|
52
|
-
subscribe(i, a) {
|
|
53
|
-
var r;
|
|
54
|
-
d.observe(i);
|
|
55
|
-
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
56
|
-
o.push(a), c.set(i, o);
|
|
57
|
-
},
|
|
58
|
-
unsubscribe(i, a) {
|
|
59
|
-
var r;
|
|
60
|
-
const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
|
|
61
|
-
if (o.length === 1) {
|
|
62
|
-
d.unobserve(i), c.delete(i);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const s = o.indexOf(a);
|
|
66
|
-
s !== -1 && o.splice(s, 1), c.set(i, o);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
let S;
|
|
71
|
-
const ce = (e) => S || (S = re(e)), se = F(/* @__PURE__ */ t("path", {
|
|
72
|
-
d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
|
|
73
|
-
}), "Menu"), R = F(/* @__PURE__ */ t("path", {
|
|
74
|
-
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"
|
|
75
|
-
}), "PersonOutlineOutlined"), _ = f("div")(
|
|
76
|
-
({ mobile: e, shadowSecondary: n }) => ({
|
|
77
|
-
...b`
|
|
78
|
-
z-index: 1313;
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: row;
|
|
81
|
-
padding: 4px 16px;
|
|
82
|
-
background-color: transparent;
|
|
83
|
-
align-items: center;
|
|
84
|
-
justify-content: space-between;
|
|
85
|
-
gap: ${e ? "8px" : "1.5rem"};
|
|
86
|
-
box-shadow: ${e && n};
|
|
87
|
-
`
|
|
88
|
-
})
|
|
89
|
-
), P = f("img")(({ width: e }) => ({
|
|
90
|
-
width: `${e}px`
|
|
91
|
-
})), j = f("div")(({ height: e }) => ({
|
|
92
|
-
...b`
|
|
93
|
-
display: flex;
|
|
94
|
-
gap: 1rem;
|
|
95
|
-
height: ${e}px;
|
|
96
|
-
`
|
|
97
|
-
})), le = f("div")(({ width: e, loggedIn: n }) => ({
|
|
98
|
-
...b`
|
|
99
|
-
width: ${e}px;
|
|
100
|
-
display: flex;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
align-items: flex-end;
|
|
103
|
-
flex-direction: ${n ? "column" : "column-reverse"};
|
|
104
|
-
flex-shrink: 0;
|
|
105
|
-
* {
|
|
106
|
-
white-space: nowrap;
|
|
107
|
-
}
|
|
108
|
-
`
|
|
109
|
-
})), A = f("div")(({ visible: e }) => ({
|
|
110
|
-
...b`
|
|
111
|
-
z-index: ${e ? 1 : 0};
|
|
112
|
-
opacity: ${e ? 1 : 0};
|
|
113
|
-
pointer-events: ${e ? "auto" : "none"};
|
|
114
|
-
position: ${e ? "relative" : "absolute"};
|
|
115
|
-
`
|
|
116
|
-
})), V = f("div")(() => ({
|
|
117
|
-
...b`
|
|
118
|
-
display: flex;
|
|
119
|
-
width: 1360px;
|
|
120
|
-
max-width: 100%;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
.MuiFormControl-root {
|
|
124
|
-
width: 100%;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
h1 {
|
|
128
|
-
font-size: 32px;
|
|
129
|
-
line-height: 1;
|
|
130
|
-
margin: 0;
|
|
131
|
-
margin-left: calc(${L.constants.navDefaultWidth}px * 2);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@media screen and (max-width: ${L.screenSizes.tablet}) {
|
|
135
|
-
h1 {
|
|
136
|
-
margin: 0;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
`
|
|
140
|
-
})), xe = ({
|
|
141
|
-
isMobile: e,
|
|
142
|
-
loggedIn: n,
|
|
143
|
-
logoProps: l,
|
|
144
|
-
iconColor: c,
|
|
145
|
-
themeProps: d,
|
|
146
|
-
hamburgerMenu: i,
|
|
147
|
-
iconColors: a,
|
|
148
|
-
userName: r = "User",
|
|
149
|
-
userSettingsEnabled: o,
|
|
150
|
-
searchFilters: s,
|
|
151
|
-
onHamburgerMenuClick: m,
|
|
152
|
-
onUserMenuClick: v,
|
|
153
|
-
onLogin: U,
|
|
154
|
-
onSearch: B = () => {
|
|
155
|
-
},
|
|
156
|
-
searchPlaceholder: q = "Search",
|
|
157
|
-
onInputChange: D,
|
|
158
|
-
headerType: g = "search",
|
|
159
|
-
appTitle: O
|
|
160
|
-
}) => {
|
|
161
|
-
const [x, C] = z(0), [u, G] = z(null), [w, J] = z(null), { logoSrc: W, logoWidth: k, logoHeight: $ } = l, { shadowSecondary: K, shadowTertiary: N, iconPrimary: Q, borderPrimary: X } = d, y = {
|
|
162
|
-
shadowTertiary: N,
|
|
163
|
-
borderColor: X,
|
|
164
|
-
borderFocusColor: Q,
|
|
165
|
-
filters: s,
|
|
166
|
-
onSearch: B,
|
|
167
|
-
placeholder: q,
|
|
168
|
-
onChange: D
|
|
169
|
-
};
|
|
170
|
-
T(() => {
|
|
171
|
-
u && u.clientWidth > x && C(u.clientWidth), w && w.clientWidth > x && C(w.clientWidth);
|
|
172
|
-
}, [u, w]);
|
|
173
|
-
const Y = (p) => {
|
|
174
|
-
p != null && p.clientWidth && p.clientWidth > x && C(p.clientWidth);
|
|
175
|
-
};
|
|
176
|
-
return oe(u, () => Y(u)), e ? /* @__PURE__ */ h(_, { mobile: !0, shadowSecondary: K, children: [
|
|
177
|
-
/* @__PURE__ */ t(j, { height: $, children: /* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }) }),
|
|
178
|
-
/* @__PURE__ */ h(V, { children: [
|
|
179
|
-
g === "search" && /* @__PURE__ */ t(E, { ...y }),
|
|
180
|
-
g === "title" && /* @__PURE__ */ t("h1", { children: O })
|
|
181
|
-
] }),
|
|
182
|
-
/* @__PURE__ */ t(
|
|
183
|
-
I,
|
|
184
|
-
{
|
|
185
|
-
icon: /* @__PURE__ */ t(R, {}),
|
|
186
|
-
...a,
|
|
187
|
-
onClick: o ? v : void 0
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] }) : /* @__PURE__ */ h(_, { children: [
|
|
191
|
-
/* @__PURE__ */ h(j, { height: $, children: [
|
|
192
|
-
/* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }),
|
|
193
|
-
i && /* @__PURE__ */ t(H, { variant: "icon", onClick: m, color: c, children: /* @__PURE__ */ t(se, {}) })
|
|
194
|
-
] }),
|
|
195
|
-
/* @__PURE__ */ h(V, { children: [
|
|
196
|
-
g === "search" && /* @__PURE__ */ t(E, { ...y }),
|
|
197
|
-
g === "title" && /* @__PURE__ */ t("h1", { children: O })
|
|
198
|
-
] }),
|
|
199
|
-
/* @__PURE__ */ h(le, { width: x, loggedIn: !!n, children: [
|
|
200
|
-
/* @__PURE__ */ t(A, { visible: !!n, ref: G, children: /* @__PURE__ */ t(
|
|
201
|
-
ee,
|
|
202
|
-
{
|
|
203
|
-
id: "accountMenuContainer",
|
|
204
|
-
component: /* @__PURE__ */ t(
|
|
205
|
-
I,
|
|
206
|
-
{
|
|
207
|
-
icon: /* @__PURE__ */ t(R, {}),
|
|
208
|
-
...a,
|
|
209
|
-
onClick: o ? v : void 0
|
|
210
|
-
}
|
|
211
|
-
),
|
|
212
|
-
label: `Hi, ${r}!`
|
|
213
|
-
}
|
|
214
|
-
) }),
|
|
215
|
-
/* @__PURE__ */ t(A, { visible: !n, ref: J, children: /* @__PURE__ */ t(H, { id: "loginButtonContainer", onClick: U, children: "Log In" }) })
|
|
216
|
-
] })
|
|
217
|
-
] });
|
|
218
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { A as s } from "../.chunks/AppHeader.js";
|
|
4
|
+
import "../.chunks/emotion-styled.browser.esm.js";
|
|
5
|
+
import "../.chunks/emotion-react.browser.esm.js";
|
|
6
|
+
import "../Search/Search.js";
|
|
7
|
+
import "../Button/Button.js";
|
|
8
|
+
import "../Icon/Icon.js";
|
|
9
|
+
import "../WithLabel/WithLabel.js";
|
|
10
|
+
import "../theme.js";
|
|
219
11
|
export {
|
|
220
|
-
|
|
12
|
+
s as default
|
|
221
13
|
};
|
package/AppHeader/index.js
CHANGED
package/Button/Button.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { g as
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
1
|
+
import { jsxs as _, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as S from "react";
|
|
3
|
+
import { g as A, a as q, s, r as J, c as p, m as K, u as Q, b as R, P as t, d as X, e as $ } from "../.chunks/DefaultPropsProvider.js";
|
|
4
|
+
import { m as Y } from "../.chunks/memoTheme.js";
|
|
5
|
+
import { c as Z } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
6
6
|
import { B as m } from "../.chunks/ButtonBase.js";
|
|
7
|
-
import { i as
|
|
8
|
-
import { c as
|
|
7
|
+
import { i as oo } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
+
import { c as g } from "../.chunks/emotion-react.browser.esm.js";
|
|
9
9
|
import r from "../theme.js";
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function ro(o) {
|
|
11
|
+
return A("MuiButton", o);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const v = q("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"]), E = /* @__PURE__ */ S.createContext({});
|
|
14
14
|
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
|
|
15
|
-
const T = /* @__PURE__ */
|
|
15
|
+
const T = /* @__PURE__ */ S.createContext(void 0);
|
|
16
16
|
process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
|
|
17
|
-
const
|
|
17
|
+
const to = (o) => {
|
|
18
18
|
const {
|
|
19
19
|
color: a,
|
|
20
20
|
disableElevation: n,
|
|
@@ -27,13 +27,13 @@ const ro = (o) => {
|
|
|
27
27
|
label: ["label"],
|
|
28
28
|
startIcon: ["icon", "startIcon", `iconSize${p(d)}`],
|
|
29
29
|
endIcon: ["icon", "endIcon", `iconSize${p(d)}`]
|
|
30
|
-
}, f =
|
|
30
|
+
}, f = X(x, ro, b);
|
|
31
31
|
return {
|
|
32
32
|
...b,
|
|
33
33
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
34
34
|
...f
|
|
35
35
|
};
|
|
36
|
-
},
|
|
36
|
+
}, P = [{
|
|
37
37
|
props: {
|
|
38
38
|
size: "small"
|
|
39
39
|
},
|
|
@@ -60,8 +60,8 @@ const ro = (o) => {
|
|
|
60
60
|
fontSize: 22
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}],
|
|
64
|
-
shouldForwardProp: (o) =>
|
|
63
|
+
}], ao = s(m, {
|
|
64
|
+
shouldForwardProp: (o) => J(o) || o === "classes",
|
|
65
65
|
name: "MuiButton",
|
|
66
66
|
slot: "Root",
|
|
67
67
|
overridesResolver: (o, a) => {
|
|
@@ -70,7 +70,7 @@ const ro = (o) => {
|
|
|
70
70
|
} = o;
|
|
71
71
|
return [a.root, a[n.variant], a[`${n.variant}${p(n.color)}`], a[`size${p(n.size)}`], a[`${n.variant}Size${p(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
|
|
72
72
|
}
|
|
73
|
-
})(
|
|
73
|
+
})(Y(({
|
|
74
74
|
theme: o
|
|
75
75
|
}) => {
|
|
76
76
|
const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
@@ -86,7 +86,7 @@ const ro = (o) => {
|
|
|
86
86
|
"&:hover": {
|
|
87
87
|
textDecoration: "none"
|
|
88
88
|
},
|
|
89
|
-
[`&.${
|
|
89
|
+
[`&.${v.disabled}`]: {
|
|
90
90
|
color: (o.vars || o).palette.action.disabled
|
|
91
91
|
},
|
|
92
92
|
variants: [{
|
|
@@ -107,10 +107,10 @@ const ro = (o) => {
|
|
|
107
107
|
"&:active": {
|
|
108
108
|
boxShadow: (o.vars || o).shadows[8]
|
|
109
109
|
},
|
|
110
|
-
[`&.${
|
|
110
|
+
[`&.${v.focusVisible}`]: {
|
|
111
111
|
boxShadow: (o.vars || o).shadows[6]
|
|
112
112
|
},
|
|
113
|
-
[`&.${
|
|
113
|
+
[`&.${v.disabled}`]: {
|
|
114
114
|
color: (o.vars || o).palette.action.disabled,
|
|
115
115
|
boxShadow: (o.vars || o).shadows[0],
|
|
116
116
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
@@ -126,7 +126,7 @@ const ro = (o) => {
|
|
|
126
126
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
127
127
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
128
128
|
color: "var(--variant-outlinedColor)",
|
|
129
|
-
[`&.${
|
|
129
|
+
[`&.${v.disabled}`]: {
|
|
130
130
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -139,7 +139,7 @@ const ro = (o) => {
|
|
|
139
139
|
color: "var(--variant-textColor)",
|
|
140
140
|
backgroundColor: "var(--variant-textBg)"
|
|
141
141
|
}
|
|
142
|
-
}, ...Object.entries(o.palette).filter(
|
|
142
|
+
}, ...Object.entries(o.palette).filter(Z()).map(([e]) => ({
|
|
143
143
|
props: {
|
|
144
144
|
color: e
|
|
145
145
|
},
|
|
@@ -237,13 +237,13 @@ const ro = (o) => {
|
|
|
237
237
|
"&:hover": {
|
|
238
238
|
boxShadow: "none"
|
|
239
239
|
},
|
|
240
|
-
[`&.${
|
|
240
|
+
[`&.${v.focusVisible}`]: {
|
|
241
241
|
boxShadow: "none"
|
|
242
242
|
},
|
|
243
243
|
"&:active": {
|
|
244
244
|
boxShadow: "none"
|
|
245
245
|
},
|
|
246
|
-
[`&.${
|
|
246
|
+
[`&.${v.disabled}`]: {
|
|
247
247
|
boxShadow: "none"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -256,7 +256,7 @@ const ro = (o) => {
|
|
|
256
256
|
}
|
|
257
257
|
}]
|
|
258
258
|
};
|
|
259
|
-
})),
|
|
259
|
+
})), no = s("span", {
|
|
260
260
|
name: "MuiButton",
|
|
261
261
|
slot: "StartIcon",
|
|
262
262
|
overridesResolver: (o, a) => {
|
|
@@ -276,8 +276,8 @@ const ro = (o) => {
|
|
|
276
276
|
style: {
|
|
277
277
|
marginLeft: -2
|
|
278
278
|
}
|
|
279
|
-
}, ...
|
|
280
|
-
}),
|
|
279
|
+
}, ...P]
|
|
280
|
+
}), eo = s("span", {
|
|
281
281
|
name: "MuiButton",
|
|
282
282
|
slot: "EndIcon",
|
|
283
283
|
overridesResolver: (o, a) => {
|
|
@@ -297,9 +297,9 @@ const ro = (o) => {
|
|
|
297
297
|
style: {
|
|
298
298
|
marginRight: -2
|
|
299
299
|
}
|
|
300
|
-
}, ...
|
|
301
|
-
}),
|
|
302
|
-
const e =
|
|
300
|
+
}, ...P]
|
|
301
|
+
}), W = /* @__PURE__ */ S.forwardRef(function(a, n) {
|
|
302
|
+
const e = S.useContext(E), d = S.useContext(T), u = K(e, a), b = Q({
|
|
303
303
|
props: u,
|
|
304
304
|
name: "MuiButton"
|
|
305
305
|
}), {
|
|
@@ -311,13 +311,13 @@ const ro = (o) => {
|
|
|
311
311
|
disableElevation: C = !1,
|
|
312
312
|
disableFocusRipple: k = !1,
|
|
313
313
|
endIcon: I,
|
|
314
|
-
focusVisibleClassName:
|
|
315
|
-
fullWidth:
|
|
316
|
-
size:
|
|
314
|
+
focusVisibleClassName: V,
|
|
315
|
+
fullWidth: M = !1,
|
|
316
|
+
size: F = "medium",
|
|
317
317
|
startIcon: O,
|
|
318
318
|
type: N,
|
|
319
319
|
variant: G = "text",
|
|
320
|
-
...
|
|
320
|
+
...L
|
|
321
321
|
} = b, w = {
|
|
322
322
|
...b,
|
|
323
323
|
color: f,
|
|
@@ -325,34 +325,34 @@ const ro = (o) => {
|
|
|
325
325
|
disabled: c,
|
|
326
326
|
disableElevation: C,
|
|
327
327
|
disableFocusRipple: k,
|
|
328
|
-
fullWidth:
|
|
329
|
-
size:
|
|
328
|
+
fullWidth: M,
|
|
329
|
+
size: F,
|
|
330
330
|
type: N,
|
|
331
331
|
variant: G
|
|
332
|
-
}, y =
|
|
332
|
+
}, y = to(w), H = O && /* @__PURE__ */ i(no, {
|
|
333
333
|
className: y.startIcon,
|
|
334
334
|
ownerState: w,
|
|
335
335
|
children: O
|
|
336
|
-
}), D = I && /* @__PURE__ */ i(
|
|
336
|
+
}), D = I && /* @__PURE__ */ i(eo, {
|
|
337
337
|
className: y.endIcon,
|
|
338
338
|
ownerState: w,
|
|
339
339
|
children: I
|
|
340
|
-
}),
|
|
341
|
-
return /* @__PURE__ */
|
|
340
|
+
}), U = d || "";
|
|
341
|
+
return /* @__PURE__ */ _(ao, {
|
|
342
342
|
ownerState: w,
|
|
343
|
-
className: R(e.className, y.root, h,
|
|
343
|
+
className: R(e.className, y.root, h, U),
|
|
344
344
|
component: l,
|
|
345
345
|
disabled: c,
|
|
346
346
|
focusRipple: !k,
|
|
347
|
-
focusVisibleClassName: R(y.focusVisible,
|
|
347
|
+
focusVisibleClassName: R(y.focusVisible, V),
|
|
348
348
|
ref: n,
|
|
349
349
|
type: N,
|
|
350
|
-
...
|
|
350
|
+
...L,
|
|
351
351
|
classes: y,
|
|
352
|
-
children: [
|
|
352
|
+
children: [H, x, D]
|
|
353
353
|
});
|
|
354
354
|
});
|
|
355
|
-
process.env.NODE_ENV !== "production" && (
|
|
355
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
356
356
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
357
357
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
358
358
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -446,7 +446,14 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
446
446
|
*/
|
|
447
447
|
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
448
448
|
});
|
|
449
|
-
const
|
|
449
|
+
const j = [
|
|
450
|
+
"active",
|
|
451
|
+
"customBackgroundColor",
|
|
452
|
+
"customHoverColor",
|
|
453
|
+
"customTextColor",
|
|
454
|
+
"customShadow1",
|
|
455
|
+
"customShadow2"
|
|
456
|
+
], B = s(W, { shouldForwardProp: (o) => !j.includes(o) })`
|
|
450
457
|
text-transform: none;
|
|
451
458
|
&:disabled {
|
|
452
459
|
opacity: 0.5;
|
|
@@ -455,7 +462,7 @@ const S = s(j)`
|
|
|
455
462
|
justify-content: center;
|
|
456
463
|
align-items: center;
|
|
457
464
|
}
|
|
458
|
-
`,
|
|
465
|
+
`, io = s(B)`
|
|
459
466
|
background-color: ${r.colors.green};
|
|
460
467
|
height: 2.5rem;
|
|
461
468
|
border: 2px solid transparent;
|
|
@@ -474,7 +481,9 @@ const S = s(j)`
|
|
|
474
481
|
&:disabled {
|
|
475
482
|
background-color: ${r.colors.darkGreen};
|
|
476
483
|
}
|
|
477
|
-
`,
|
|
484
|
+
`, so = s(B, {
|
|
485
|
+
shouldForwardProp: (o) => !j.includes(o)
|
|
486
|
+
})(
|
|
478
487
|
({
|
|
479
488
|
customBackgroundColor: o = r.colors.green,
|
|
480
489
|
customHoverColor: a = r.colors.darkGreen,
|
|
@@ -482,7 +491,7 @@ const S = s(j)`
|
|
|
482
491
|
customShadow1: e = r.boxShadows.gray63,
|
|
483
492
|
customShadow2: d = r.boxShadows.black63
|
|
484
493
|
}) => ({
|
|
485
|
-
...
|
|
494
|
+
...g`
|
|
486
495
|
background-color: ${o};
|
|
487
496
|
border-radius: 0;
|
|
488
497
|
height: 2.5rem;
|
|
@@ -504,7 +513,7 @@ const S = s(j)`
|
|
|
504
513
|
}
|
|
505
514
|
`
|
|
506
515
|
})
|
|
507
|
-
),
|
|
516
|
+
), lo = s(B)`
|
|
508
517
|
background-color: ${r.colors.gold};
|
|
509
518
|
height: 2.5rem;
|
|
510
519
|
border: 2px solid transparent;
|
|
@@ -523,8 +532,8 @@ const S = s(j)`
|
|
|
523
532
|
&:disabled {
|
|
524
533
|
background-color: ${r.colors.goldHover};
|
|
525
534
|
}
|
|
526
|
-
`, z = s(
|
|
527
|
-
...
|
|
535
|
+
`, z = s(B)(({ width: o = "114px" }) => ({
|
|
536
|
+
...g`
|
|
528
537
|
box-sizing: border-box;
|
|
529
538
|
background-color: ${r.colors.bibiBlue};
|
|
530
539
|
border-radius: 0;
|
|
@@ -541,8 +550,8 @@ const S = s(j)`
|
|
|
541
550
|
background-color: ${r.colors.bibiBlueHover};
|
|
542
551
|
}
|
|
543
552
|
`
|
|
544
|
-
})),
|
|
545
|
-
...
|
|
553
|
+
})), co = s(z)(({ active: o }) => ({
|
|
554
|
+
...g`
|
|
546
555
|
background-color: ${o && r.colors.white};
|
|
547
556
|
color: ${o && r.colors.bibiBlue};
|
|
548
557
|
&:hover,
|
|
@@ -551,8 +560,8 @@ const S = s(j)`
|
|
|
551
560
|
color: ${r.colors.bibiBlue};
|
|
552
561
|
}
|
|
553
562
|
`
|
|
554
|
-
})),
|
|
555
|
-
...
|
|
563
|
+
})), po = s(z)(() => ({
|
|
564
|
+
...g`
|
|
556
565
|
background-color: ${r.colors.white};
|
|
557
566
|
color: ${r.colors.bibiBlue};
|
|
558
567
|
&:hover,
|
|
@@ -562,13 +571,13 @@ const S = s(j)`
|
|
|
562
571
|
color: ${r.colors.white};
|
|
563
572
|
}
|
|
564
573
|
`
|
|
565
|
-
})),
|
|
574
|
+
})), uo = s(m)`
|
|
566
575
|
border-radius: 8px;
|
|
567
|
-
`,
|
|
568
|
-
shouldForwardProp: (o) => typeof o == "string" &&
|
|
576
|
+
`, bo = s(m, {
|
|
577
|
+
shouldForwardProp: (o) => typeof o == "string" && oo(o)
|
|
569
578
|
})(
|
|
570
579
|
({ size: o, color: a, highlightColor: n, hoverColor: e }) => ({
|
|
571
|
-
...
|
|
580
|
+
...g`
|
|
572
581
|
display: flex;
|
|
573
582
|
align-items: center;
|
|
574
583
|
justify-content: center;
|
|
@@ -592,8 +601,8 @@ const S = s(j)`
|
|
|
592
601
|
}
|
|
593
602
|
`
|
|
594
603
|
})
|
|
595
|
-
),
|
|
596
|
-
...
|
|
604
|
+
), vo = s(B)(({ active: o }) => ({
|
|
605
|
+
...g`
|
|
597
606
|
box-sizing: border-box;
|
|
598
607
|
background-color: ${o ? r.colors.black : r.colors.white};
|
|
599
608
|
height: 28px;
|
|
@@ -611,7 +620,7 @@ const S = s(j)`
|
|
|
611
620
|
background-color: ${o ? r.colors.charcoal : r.colors.gray2};
|
|
612
621
|
}
|
|
613
622
|
`
|
|
614
|
-
})),
|
|
623
|
+
})), ho = ({
|
|
615
624
|
variant: o = 1,
|
|
616
625
|
size: a = 50,
|
|
617
626
|
color: n = r.colors.darkGreen,
|
|
@@ -625,7 +634,7 @@ const S = s(j)`
|
|
|
625
634
|
active: h,
|
|
626
635
|
...c
|
|
627
636
|
}) => o === "custom" ? /* @__PURE__ */ i(
|
|
628
|
-
|
|
637
|
+
so,
|
|
629
638
|
{
|
|
630
639
|
customBackgroundColor: u,
|
|
631
640
|
customHoverColor: d,
|
|
@@ -636,8 +645,8 @@ const S = s(j)`
|
|
|
636
645
|
...c,
|
|
637
646
|
children: l
|
|
638
647
|
}
|
|
639
|
-
) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(
|
|
648
|
+
) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(uo, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(lo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(bo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(vo, { className: "jcFilterButton", active: h, ...c, children: l }) : /* @__PURE__ */ i(io, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
|
|
640
649
|
export {
|
|
641
|
-
|
|
642
|
-
|
|
650
|
+
ho as Button,
|
|
651
|
+
ho as default
|
|
643
652
|
};
|