jcicl 0.0.313 → 0.0.317
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/Button/Button.d.ts +5 -1
- package/Button/Button.js +174 -112
- package/LabeledCheckbox/LabeledCheckbox.js +55 -61
- package/Table/Table.js +151 -150
- package/package.json +1 -1
- package/theme.d.ts +2 -0
- package/theme.js +2 -0
package/Button/Button.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
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' | 'filter';
|
|
3
|
+
variant?: 1 | 2 | 'unstyled' | 'icon' | 'bibi' | 'bibiOutlined' | 'bibiInverse' | 'filter' | 'custom';
|
|
4
4
|
size?: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
highlightColor?: string;
|
|
7
7
|
hoverColor?: string;
|
|
8
8
|
active?: boolean;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
customShadow1?: string;
|
|
12
|
+
customShadow2?: string;
|
|
9
13
|
}
|
|
10
14
|
export declare const Button: React.FC<ButtonProps & {
|
|
11
15
|
children: React.ReactNode;
|
package/Button/Button.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { g as _, a as A, s
|
|
1
|
+
import { jsxs as U, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as B from "react";
|
|
3
|
+
import { g as _, a as A, s, r as q, c as p, m as J, u as K, b as R, P as t, d as Q, e as $ } 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
|
-
import { B as
|
|
6
|
+
import { B as m } from "../.chunks/ButtonBase.js";
|
|
7
7
|
import { i as Z } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as v } from "../.chunks/emotion-react.browser.esm.js";
|
|
9
9
|
import r from "../theme.js";
|
|
10
10
|
function oo(o) {
|
|
11
11
|
return _("MuiButton", o);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
-
const
|
|
16
|
-
process.env.NODE_ENV !== "production" && (
|
|
17
|
-
const
|
|
13
|
+
const g = 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"]), E = /* @__PURE__ */ B.createContext({});
|
|
14
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
|
|
15
|
+
const T = /* @__PURE__ */ B.createContext(void 0);
|
|
16
|
+
process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
|
|
17
|
+
const ro = (o) => {
|
|
18
18
|
const {
|
|
19
19
|
color: a,
|
|
20
20
|
disableElevation: n,
|
|
21
21
|
fullWidth: e,
|
|
22
|
-
size:
|
|
23
|
-
variant:
|
|
24
|
-
classes:
|
|
25
|
-
} = o,
|
|
26
|
-
root: ["root",
|
|
22
|
+
size: d,
|
|
23
|
+
variant: u,
|
|
24
|
+
classes: b
|
|
25
|
+
} = o, x = {
|
|
26
|
+
root: ["root", u, `${u}${p(a)}`, `size${p(d)}`, `${u}Size${p(d)}`, `color${p(a)}`, n && "disableElevation", e && "fullWidth"],
|
|
27
27
|
label: ["label"],
|
|
28
|
-
startIcon: ["icon", "startIcon", `iconSize${d
|
|
29
|
-
endIcon: ["icon", "endIcon", `iconSize${d
|
|
30
|
-
},
|
|
28
|
+
startIcon: ["icon", "startIcon", `iconSize${p(d)}`],
|
|
29
|
+
endIcon: ["icon", "endIcon", `iconSize${p(d)}`]
|
|
30
|
+
}, f = Q(x, oo, 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
|
+
}, W = [{
|
|
37
37
|
props: {
|
|
38
38
|
size: "small"
|
|
39
39
|
},
|
|
@@ -60,7 +60,7 @@ const to = (o) => {
|
|
|
60
60
|
fontSize: 22
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}],
|
|
63
|
+
}], to = s(m, {
|
|
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: n
|
|
70
70
|
} = o;
|
|
71
|
-
return [a.root, a[n.variant], a[`${n.variant}${
|
|
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
|
})(X(({
|
|
74
74
|
theme: o
|
|
@@ -86,7 +86,7 @@ const to = (o) => {
|
|
|
86
86
|
"&:hover": {
|
|
87
87
|
textDecoration: "none"
|
|
88
88
|
},
|
|
89
|
-
[`&.${
|
|
89
|
+
[`&.${g.disabled}`]: {
|
|
90
90
|
color: (o.vars || o).palette.action.disabled
|
|
91
91
|
},
|
|
92
92
|
variants: [{
|
|
@@ -107,10 +107,10 @@ const to = (o) => {
|
|
|
107
107
|
"&:active": {
|
|
108
108
|
boxShadow: (o.vars || o).shadows[8]
|
|
109
109
|
},
|
|
110
|
-
[`&.${
|
|
110
|
+
[`&.${g.focusVisible}`]: {
|
|
111
111
|
boxShadow: (o.vars || o).shadows[6]
|
|
112
112
|
},
|
|
113
|
-
[`&.${
|
|
113
|
+
[`&.${g.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 to = (o) => {
|
|
|
126
126
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
127
127
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
128
128
|
color: "var(--variant-outlinedColor)",
|
|
129
|
-
[`&.${
|
|
129
|
+
[`&.${g.disabled}`]: {
|
|
130
130
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -146,15 +146,15 @@ const to = (o) => {
|
|
|
146
146
|
style: {
|
|
147
147
|
"--variant-textColor": (o.vars || o).palette[e].main,
|
|
148
148
|
"--variant-outlinedColor": (o.vars || o).palette[e].main,
|
|
149
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` :
|
|
149
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : $(o.palette[e].main, 0.5),
|
|
150
150
|
"--variant-containedColor": (o.vars || o).palette[e].contrastText,
|
|
151
151
|
"--variant-containedBg": (o.vars || o).palette[e].main,
|
|
152
152
|
"@media (hover: hover)": {
|
|
153
153
|
"&:hover": {
|
|
154
154
|
"--variant-containedBg": (o.vars || o).palette[e].dark,
|
|
155
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
155
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
156
156
|
"--variant-outlinedBorder": (o.vars || o).palette[e].main,
|
|
157
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
157
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[e].main, o.palette.action.hoverOpacity)
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -169,8 +169,8 @@ const to = (o) => {
|
|
|
169
169
|
"@media (hover: hover)": {
|
|
170
170
|
"&:hover": {
|
|
171
171
|
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
|
|
172
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
173
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
172
|
+
"--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
173
|
+
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.text.primary, o.palette.action.hoverOpacity)
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -237,13 +237,13 @@ const to = (o) => {
|
|
|
237
237
|
"&:hover": {
|
|
238
238
|
boxShadow: "none"
|
|
239
239
|
},
|
|
240
|
-
[`&.${
|
|
240
|
+
[`&.${g.focusVisible}`]: {
|
|
241
241
|
boxShadow: "none"
|
|
242
242
|
},
|
|
243
243
|
"&:active": {
|
|
244
244
|
boxShadow: "none"
|
|
245
245
|
},
|
|
246
|
-
[`&.${
|
|
246
|
+
[`&.${g.disabled}`]: {
|
|
247
247
|
boxShadow: "none"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -256,14 +256,14 @@ const to = (o) => {
|
|
|
256
256
|
}
|
|
257
257
|
}]
|
|
258
258
|
};
|
|
259
|
-
})), ao =
|
|
259
|
+
})), ao = s("span", {
|
|
260
260
|
name: "MuiButton",
|
|
261
261
|
slot: "StartIcon",
|
|
262
262
|
overridesResolver: (o, a) => {
|
|
263
263
|
const {
|
|
264
264
|
ownerState: n
|
|
265
265
|
} = o;
|
|
266
|
-
return [a.startIcon, a[`iconSize${
|
|
266
|
+
return [a.startIcon, a[`iconSize${p(n.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
|
-
}, ...
|
|
280
|
-
}), no =
|
|
279
|
+
}, ...W]
|
|
280
|
+
}), no = s("span", {
|
|
281
281
|
name: "MuiButton",
|
|
282
282
|
slot: "EndIcon",
|
|
283
283
|
overridesResolver: (o, a) => {
|
|
284
284
|
const {
|
|
285
285
|
ownerState: n
|
|
286
286
|
} = o;
|
|
287
|
-
return [a.endIcon, a[`iconSize${
|
|
287
|
+
return [a.endIcon, a[`iconSize${p(n.size)}`]];
|
|
288
288
|
}
|
|
289
289
|
})({
|
|
290
290
|
display: "inherit",
|
|
@@ -297,62 +297,62 @@ const to = (o) => {
|
|
|
297
297
|
style: {
|
|
298
298
|
marginRight: -2
|
|
299
299
|
}
|
|
300
|
-
}, ...
|
|
301
|
-
}),
|
|
302
|
-
const e =
|
|
303
|
-
props:
|
|
300
|
+
}, ...W]
|
|
301
|
+
}), j = /* @__PURE__ */ B.forwardRef(function(a, n) {
|
|
302
|
+
const e = B.useContext(E), d = B.useContext(T), u = J(e, a), b = K({
|
|
303
|
+
props: u,
|
|
304
304
|
name: "MuiButton"
|
|
305
305
|
}), {
|
|
306
|
-
children:
|
|
307
|
-
color:
|
|
308
|
-
component:
|
|
309
|
-
className:
|
|
310
|
-
disabled:
|
|
311
|
-
disableElevation:
|
|
312
|
-
disableFocusRipple:
|
|
313
|
-
endIcon:
|
|
314
|
-
focusVisibleClassName:
|
|
315
|
-
fullWidth:
|
|
306
|
+
children: x,
|
|
307
|
+
color: f = "primary",
|
|
308
|
+
component: l = "button",
|
|
309
|
+
className: h,
|
|
310
|
+
disabled: c = !1,
|
|
311
|
+
disableElevation: C = !1,
|
|
312
|
+
disableFocusRipple: k = !1,
|
|
313
|
+
endIcon: I,
|
|
314
|
+
focusVisibleClassName: P,
|
|
315
|
+
fullWidth: V = !1,
|
|
316
316
|
size: M = "medium",
|
|
317
|
-
startIcon:
|
|
318
|
-
type:
|
|
319
|
-
variant:
|
|
320
|
-
...
|
|
321
|
-
} =
|
|
322
|
-
...
|
|
323
|
-
color:
|
|
324
|
-
component:
|
|
325
|
-
disabled:
|
|
326
|
-
disableElevation:
|
|
327
|
-
disableFocusRipple:
|
|
328
|
-
fullWidth:
|
|
317
|
+
startIcon: O,
|
|
318
|
+
type: N,
|
|
319
|
+
variant: G = "text",
|
|
320
|
+
...F
|
|
321
|
+
} = b, w = {
|
|
322
|
+
...b,
|
|
323
|
+
color: f,
|
|
324
|
+
component: l,
|
|
325
|
+
disabled: c,
|
|
326
|
+
disableElevation: C,
|
|
327
|
+
disableFocusRipple: k,
|
|
328
|
+
fullWidth: V,
|
|
329
329
|
size: M,
|
|
330
|
-
type:
|
|
331
|
-
variant:
|
|
332
|
-
},
|
|
333
|
-
className:
|
|
334
|
-
ownerState:
|
|
330
|
+
type: N,
|
|
331
|
+
variant: G
|
|
332
|
+
}, y = ro(w), L = O && /* @__PURE__ */ i(ao, {
|
|
333
|
+
className: y.startIcon,
|
|
334
|
+
ownerState: w,
|
|
335
|
+
children: O
|
|
336
|
+
}), D = I && /* @__PURE__ */ i(no, {
|
|
337
|
+
className: y.endIcon,
|
|
338
|
+
ownerState: w,
|
|
335
339
|
children: I
|
|
336
|
-
}),
|
|
337
|
-
|
|
338
|
-
ownerState:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
component: w,
|
|
345
|
-
disabled: m,
|
|
346
|
-
focusRipple: !C,
|
|
347
|
-
focusVisibleClassName: O(v.focusVisible, V),
|
|
340
|
+
}), H = d || "";
|
|
341
|
+
return /* @__PURE__ */ U(to, {
|
|
342
|
+
ownerState: w,
|
|
343
|
+
className: R(e.className, y.root, h, H),
|
|
344
|
+
component: l,
|
|
345
|
+
disabled: c,
|
|
346
|
+
focusRipple: !k,
|
|
347
|
+
focusVisibleClassName: R(y.focusVisible, P),
|
|
348
348
|
ref: n,
|
|
349
|
-
type:
|
|
350
|
-
...
|
|
351
|
-
classes:
|
|
352
|
-
children: [L,
|
|
349
|
+
type: N,
|
|
350
|
+
...F,
|
|
351
|
+
classes: y,
|
|
352
|
+
children: [L, x, D]
|
|
353
353
|
});
|
|
354
354
|
});
|
|
355
|
-
process.env.NODE_ENV !== "production" && (
|
|
355
|
+
process.env.NODE_ENV !== "production" && (j.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,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 S = s(j)`
|
|
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 = s(S)`
|
|
459
459
|
background-color: ${r.colors.green};
|
|
460
460
|
border-radius: 0;
|
|
461
461
|
height: 2.5rem;
|
|
@@ -475,12 +475,58 @@ const $ = c(T)`
|
|
|
475
475
|
&:disabled {
|
|
476
476
|
background-color: ${r.colors.darkGreen};
|
|
477
477
|
}
|
|
478
|
-
`, io =
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
478
|
+
`, io = s(S)(
|
|
479
|
+
({
|
|
480
|
+
customBackgroundColor: o = r.colors.green,
|
|
481
|
+
customHoverColor: a = r.colors.darkGreen,
|
|
482
|
+
customTextColor: n = r.colors.white,
|
|
483
|
+
customShadow1: e = r.boxShadows.gray63,
|
|
484
|
+
customShadow2: d = r.boxShadows.black63
|
|
485
|
+
}) => ({
|
|
486
|
+
...v`
|
|
487
|
+
background-color: ${o};
|
|
488
|
+
border-radius: 0;
|
|
489
|
+
height: 2.5rem;
|
|
490
|
+
border: 2px solid transparent;
|
|
491
|
+
color: ${n};
|
|
492
|
+
transition: 313ms all ease-in;
|
|
493
|
+
border-radius: 32px;
|
|
494
|
+
font-weight: 400;
|
|
495
|
+
padding: 0.75rem 2rem;
|
|
496
|
+
font-size: 1rem;
|
|
497
|
+
box-shadow: ${e};
|
|
498
|
+
&:hover,
|
|
499
|
+
:focus-visible {
|
|
500
|
+
background-color: ${a};
|
|
501
|
+
box-shadow: ${d};
|
|
502
|
+
}
|
|
503
|
+
&:disabled {
|
|
504
|
+
background-color: ${a};
|
|
505
|
+
}
|
|
506
|
+
`
|
|
507
|
+
})
|
|
508
|
+
), so = s(S)`
|
|
509
|
+
background-color: ${r.colors.gold};
|
|
510
|
+
border-radius: 0;
|
|
511
|
+
height: 2.5rem;
|
|
512
|
+
border: 2px solid transparent;
|
|
513
|
+
color: ${r.colors.midnight};
|
|
514
|
+
transition: 313ms all ease-in;
|
|
515
|
+
border-radius: 32px;
|
|
516
|
+
font-weight: 400;
|
|
517
|
+
padding: 0.75rem 2rem;
|
|
518
|
+
font-size: 19px;
|
|
519
|
+
box-shadow: ${r.boxShadows.gray63};
|
|
520
|
+
&:hover,
|
|
521
|
+
:focus-visible {
|
|
522
|
+
background-color: ${r.colors.goldHover};
|
|
523
|
+
box-shadow: ${r.boxShadows.gray63};
|
|
524
|
+
}
|
|
525
|
+
&:disabled {
|
|
526
|
+
background-color: ${r.colors.goldHover};
|
|
527
|
+
}
|
|
528
|
+
`, z = s(S)(({ width: o = "114px" }) => ({
|
|
529
|
+
...v`
|
|
484
530
|
box-sizing: border-box;
|
|
485
531
|
background-color: ${r.colors.bibiBlue};
|
|
486
532
|
border-radius: 0;
|
|
@@ -497,8 +543,8 @@ const $ = c(T)`
|
|
|
497
543
|
background-color: ${r.colors.bibiBlueHover};
|
|
498
544
|
}
|
|
499
545
|
`
|
|
500
|
-
})),
|
|
501
|
-
...
|
|
546
|
+
})), lo = s(z)(({ active: o }) => ({
|
|
547
|
+
...v`
|
|
502
548
|
background-color: ${o && r.colors.white};
|
|
503
549
|
color: ${o && r.colors.bibiBlue};
|
|
504
550
|
&:hover,
|
|
@@ -507,8 +553,8 @@ const $ = c(T)`
|
|
|
507
553
|
color: ${r.colors.bibiBlue};
|
|
508
554
|
}
|
|
509
555
|
`
|
|
510
|
-
})),
|
|
511
|
-
...
|
|
556
|
+
})), co = s(z)(() => ({
|
|
557
|
+
...v`
|
|
512
558
|
background-color: ${r.colors.white};
|
|
513
559
|
color: ${r.colors.bibiBlue};
|
|
514
560
|
&:hover,
|
|
@@ -518,13 +564,13 @@ const $ = c(T)`
|
|
|
518
564
|
color: ${r.colors.white};
|
|
519
565
|
}
|
|
520
566
|
`
|
|
521
|
-
})),
|
|
567
|
+
})), po = s(m)`
|
|
522
568
|
border-radius: 8px;
|
|
523
|
-
`,
|
|
569
|
+
`, uo = s(m, {
|
|
524
570
|
shouldForwardProp: (o) => typeof o == "string" && Z(o)
|
|
525
571
|
})(
|
|
526
572
|
({ size: o, color: a, highlightColor: n, hoverColor: e }) => ({
|
|
527
|
-
...
|
|
573
|
+
...v`
|
|
528
574
|
display: flex;
|
|
529
575
|
align-items: center;
|
|
530
576
|
justify-content: center;
|
|
@@ -548,8 +594,8 @@ const $ = c(T)`
|
|
|
548
594
|
}
|
|
549
595
|
`
|
|
550
596
|
})
|
|
551
|
-
),
|
|
552
|
-
...
|
|
597
|
+
), bo = s(S)(({ active: o }) => ({
|
|
598
|
+
...v`
|
|
553
599
|
box-sizing: border-box;
|
|
554
600
|
background-color: ${o ? r.colors.black : r.colors.white};
|
|
555
601
|
height: 28px;
|
|
@@ -567,17 +613,33 @@ const $ = c(T)`
|
|
|
567
613
|
background-color: ${o ? r.colors.charcoal : r.colors.gray2};
|
|
568
614
|
}
|
|
569
615
|
`
|
|
570
|
-
})),
|
|
616
|
+
})), wo = ({
|
|
571
617
|
variant: o = 1,
|
|
572
618
|
size: a = 50,
|
|
573
619
|
color: n = r.colors.darkGreen,
|
|
574
620
|
highlightColor: e = r.colors.dandelion,
|
|
575
|
-
hoverColor:
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
621
|
+
hoverColor: d = r.colors.green,
|
|
622
|
+
backgroundColor: u = r.colors.darkGreen,
|
|
623
|
+
textColor: b = r.colors.white,
|
|
624
|
+
customShadow1: x = r.boxShadows.gray63,
|
|
625
|
+
customShadow2: f = r.boxShadows.black63,
|
|
626
|
+
children: l,
|
|
627
|
+
active: h,
|
|
628
|
+
...c
|
|
629
|
+
}) => o === "custom" ? /* @__PURE__ */ i(
|
|
630
|
+
io,
|
|
631
|
+
{
|
|
632
|
+
customBackgroundColor: u,
|
|
633
|
+
customHoverColor: d,
|
|
634
|
+
customTextColor: b,
|
|
635
|
+
customShadow1: x,
|
|
636
|
+
customShadow2: f,
|
|
637
|
+
className: "jcCustomButton",
|
|
638
|
+
...c,
|
|
639
|
+
children: l
|
|
640
|
+
}
|
|
641
|
+
) : o === "bibi" ? /* @__PURE__ */ i(z, { ...c, children: l }) : o === "bibiOutlined" ? /* @__PURE__ */ i(lo, { ...c, children: l }) : o === "bibiInverse" ? /* @__PURE__ */ i(co, { ...c, children: l }) : o === "unstyled" ? /* @__PURE__ */ i(po, { ...c, children: l }) : o === 2 ? /* @__PURE__ */ i(so, { ...c, children: /* @__PURE__ */ i("span", { children: l }) }) : o === "icon" ? /* @__PURE__ */ i(uo, { className: "jcIconButton", ...{ size: a, color: n, highlightColor: e, hoverColor: d }, ...c, children: l }) : o === "filter" ? /* @__PURE__ */ i(bo, { className: "jcFilterButton", active: h, ...c, children: l }) : /* @__PURE__ */ i(eo, { ...c, children: /* @__PURE__ */ i("span", { children: l }) });
|
|
580
642
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
643
|
+
wo as Button,
|
|
644
|
+
wo as default
|
|
583
645
|
};
|