jcicl 0.0.128 → 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.d.ts +1 -1
- package/Button/Button.js +177 -138
- 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 +12 -4
- package/theme.js +9 -2
- 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/Button/Button.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { g as
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
1
|
+
import { jsxs as H, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as g from "react";
|
|
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
|
+
import { m as X } from "../.chunks/memoTheme.js";
|
|
5
|
+
import { c as Y } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
6
6
|
import { B as S } from "../.chunks/ButtonBase.js";
|
|
7
|
-
import { i as
|
|
8
|
-
import { c as
|
|
9
|
-
import
|
|
10
|
-
function
|
|
11
|
-
return
|
|
7
|
+
import { i as Z } from "../.chunks/emotion-styled.browser.esm.js";
|
|
8
|
+
import { c as f } from "../.chunks/emotion-react.browser.esm.js";
|
|
9
|
+
import n from "../theme.js";
|
|
10
|
+
function oo(o) {
|
|
11
|
+
return _("MuiButton", o);
|
|
12
12
|
}
|
|
13
|
-
const u =
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
-
const
|
|
16
|
-
process.env.NODE_ENV !== "production" && (
|
|
17
|
-
const
|
|
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
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "ButtonGroupContext");
|
|
15
|
+
const E = /* @__PURE__ */ g.createContext(void 0);
|
|
16
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupButtonContext");
|
|
17
|
+
const to = (o) => {
|
|
18
18
|
const {
|
|
19
|
-
color:
|
|
20
|
-
disableElevation:
|
|
21
|
-
fullWidth:
|
|
22
|
-
size:
|
|
23
|
-
variant:
|
|
19
|
+
color: a,
|
|
20
|
+
disableElevation: r,
|
|
21
|
+
fullWidth: e,
|
|
22
|
+
size: i,
|
|
23
|
+
variant: s,
|
|
24
24
|
classes: p
|
|
25
|
-
} = o,
|
|
26
|
-
root: ["root",
|
|
25
|
+
} = o, y = {
|
|
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${i
|
|
29
|
-
endIcon: ["icon", "endIcon", `iconSize${i
|
|
30
|
-
},
|
|
28
|
+
startIcon: ["icon", "startIcon", `iconSize${c(i)}`],
|
|
29
|
+
endIcon: ["icon", "endIcon", `iconSize${c(i)}`]
|
|
30
|
+
}, B = Q(y, oo, p);
|
|
31
31
|
return {
|
|
32
32
|
...p,
|
|
33
33
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
34
|
-
...
|
|
34
|
+
...B
|
|
35
35
|
};
|
|
36
|
-
},
|
|
36
|
+
}, N = [{
|
|
37
37
|
props: {
|
|
38
38
|
size: "small"
|
|
39
39
|
},
|
|
@@ -60,20 +60,20 @@ const oo = (o) => {
|
|
|
60
60
|
fontSize: 22
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}],
|
|
64
|
-
shouldForwardProp: (o) =>
|
|
63
|
+
}], ro = d(S, {
|
|
64
|
+
shouldForwardProp: (o) => q(o) || o === "classes",
|
|
65
65
|
name: "MuiButton",
|
|
66
66
|
slot: "Root",
|
|
67
|
-
overridesResolver: (o,
|
|
67
|
+
overridesResolver: (o, a) => {
|
|
68
68
|
const {
|
|
69
|
-
ownerState:
|
|
69
|
+
ownerState: r
|
|
70
70
|
} = o;
|
|
71
|
-
return [
|
|
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
|
|
75
75
|
}) => {
|
|
76
|
-
const
|
|
76
|
+
const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], r = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
77
77
|
return {
|
|
78
78
|
...o.typography.button,
|
|
79
79
|
minWidth: 64,
|
|
@@ -139,22 +139,22 @@ const oo = (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(Y()).map(([e]) => ({
|
|
143
143
|
props: {
|
|
144
|
-
color:
|
|
144
|
+
color: e
|
|
145
145
|
},
|
|
146
146
|
style: {
|
|
147
|
-
"--variant-textColor": (o.vars || o).palette[
|
|
148
|
-
"--variant-outlinedColor": (o.vars || o).palette[
|
|
149
|
-
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[
|
|
150
|
-
"--variant-containedColor": (o.vars || o).palette[
|
|
151
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
147
|
+
"--variant-textColor": (o.vars || o).palette[e].main,
|
|
148
|
+
"--variant-outlinedColor": (o.vars || o).palette[e].main,
|
|
149
|
+
"--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[e].mainChannel} / 0.5)` : v(o.palette[e].main, 0.5),
|
|
150
|
+
"--variant-containedColor": (o.vars || o).palette[e].contrastText,
|
|
151
|
+
"--variant-containedBg": (o.vars || o).palette[e].main,
|
|
152
152
|
"@media (hover: hover)": {
|
|
153
153
|
"&:hover": {
|
|
154
|
-
"--variant-containedBg": (o.vars || o).palette[
|
|
155
|
-
"--variant-textBg": o.vars ? `rgba(${o.vars.palette[
|
|
156
|
-
"--variant-outlinedBorder": (o.vars || o).palette[
|
|
157
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[
|
|
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})` : v(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
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})` : v(o.palette[e].main, o.palette.action.hoverOpacity)
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -165,12 +165,12 @@ const oo = (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 : a,
|
|
169
169
|
"@media (hover: hover)": {
|
|
170
170
|
"&:hover": {
|
|
171
|
-
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg :
|
|
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})` :
|
|
171
|
+
"--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : r,
|
|
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
|
+
"--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
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
@@ -256,14 +256,14 @@ const oo = (o) => {
|
|
|
256
256
|
}
|
|
257
257
|
}]
|
|
258
258
|
};
|
|
259
|
-
})), ao =
|
|
259
|
+
})), ao = d("span", {
|
|
260
260
|
name: "MuiButton",
|
|
261
261
|
slot: "StartIcon",
|
|
262
|
-
overridesResolver: (o,
|
|
262
|
+
overridesResolver: (o, a) => {
|
|
263
263
|
const {
|
|
264
|
-
ownerState:
|
|
264
|
+
ownerState: r
|
|
265
265
|
} = o;
|
|
266
|
-
return [
|
|
266
|
+
return [a.startIcon, a[`iconSize${c(r.size)}`]];
|
|
267
267
|
}
|
|
268
268
|
})({
|
|
269
269
|
display: "inherit",
|
|
@@ -276,15 +276,15 @@ const oo = (o) => {
|
|
|
276
276
|
style: {
|
|
277
277
|
marginLeft: -2
|
|
278
278
|
}
|
|
279
|
-
}, ...
|
|
280
|
-
}), no =
|
|
279
|
+
}, ...N]
|
|
280
|
+
}), no = d("span", {
|
|
281
281
|
name: "MuiButton",
|
|
282
282
|
slot: "EndIcon",
|
|
283
|
-
overridesResolver: (o,
|
|
283
|
+
overridesResolver: (o, a) => {
|
|
284
284
|
const {
|
|
285
|
-
ownerState:
|
|
285
|
+
ownerState: r
|
|
286
286
|
} = o;
|
|
287
|
-
return [
|
|
287
|
+
return [a.endIcon, a[`iconSize${c(r.size)}`]];
|
|
288
288
|
}
|
|
289
289
|
})({
|
|
290
290
|
display: "inherit",
|
|
@@ -297,62 +297,62 @@ const oo = (o) => {
|
|
|
297
297
|
style: {
|
|
298
298
|
marginRight: -2
|
|
299
299
|
}
|
|
300
|
-
}, ...
|
|
301
|
-
}),
|
|
302
|
-
const
|
|
303
|
-
props:
|
|
300
|
+
}, ...N]
|
|
301
|
+
}), T = /* @__PURE__ */ g.forwardRef(function(a, r) {
|
|
302
|
+
const e = g.useContext(R), i = g.useContext(E), s = J(e, a), p = K({
|
|
303
|
+
props: s,
|
|
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:
|
|
316
|
-
size:
|
|
317
|
-
startIcon:
|
|
318
|
-
type:
|
|
319
|
-
variant:
|
|
320
|
-
...
|
|
321
|
-
} = p,
|
|
306
|
+
children: y,
|
|
307
|
+
color: B = "primary",
|
|
308
|
+
component: w = "button",
|
|
309
|
+
className: P,
|
|
310
|
+
disabled: m = !1,
|
|
311
|
+
disableElevation: W = !1,
|
|
312
|
+
disableFocusRipple: C = !1,
|
|
313
|
+
endIcon: h,
|
|
314
|
+
focusVisibleClassName: V,
|
|
315
|
+
fullWidth: M = !1,
|
|
316
|
+
size: j = "medium",
|
|
317
|
+
startIcon: I,
|
|
318
|
+
type: k,
|
|
319
|
+
variant: G = "text",
|
|
320
|
+
...L
|
|
321
|
+
} = p, x = {
|
|
322
322
|
...p,
|
|
323
|
-
color:
|
|
324
|
-
component:
|
|
325
|
-
disabled:
|
|
326
|
-
disableElevation:
|
|
327
|
-
disableFocusRipple:
|
|
328
|
-
fullWidth:
|
|
329
|
-
size:
|
|
330
|
-
type:
|
|
331
|
-
variant:
|
|
332
|
-
},
|
|
333
|
-
className:
|
|
334
|
-
ownerState:
|
|
335
|
-
children:
|
|
336
|
-
}),
|
|
337
|
-
className:
|
|
338
|
-
ownerState:
|
|
339
|
-
children:
|
|
340
|
-
}),
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
ownerState:
|
|
343
|
-
className:
|
|
344
|
-
component:
|
|
345
|
-
disabled:
|
|
346
|
-
focusRipple:
|
|
347
|
-
focusVisibleClassName:
|
|
348
|
-
ref:
|
|
349
|
-
type:
|
|
350
|
-
...
|
|
351
|
-
classes:
|
|
352
|
-
children: [
|
|
323
|
+
color: B,
|
|
324
|
+
component: w,
|
|
325
|
+
disabled: m,
|
|
326
|
+
disableElevation: W,
|
|
327
|
+
disableFocusRipple: C,
|
|
328
|
+
fullWidth: M,
|
|
329
|
+
size: j,
|
|
330
|
+
type: k,
|
|
331
|
+
variant: G
|
|
332
|
+
}, b = to(x), F = I && /* @__PURE__ */ l(ao, {
|
|
333
|
+
className: b.startIcon,
|
|
334
|
+
ownerState: x,
|
|
335
|
+
children: I
|
|
336
|
+
}), D = h && /* @__PURE__ */ l(no, {
|
|
337
|
+
className: b.endIcon,
|
|
338
|
+
ownerState: x,
|
|
339
|
+
children: h
|
|
340
|
+
}), U = i || "";
|
|
341
|
+
return /* @__PURE__ */ H(ro, {
|
|
342
|
+
ownerState: x,
|
|
343
|
+
className: O(e.className, b.root, P, U),
|
|
344
|
+
component: w,
|
|
345
|
+
disabled: m,
|
|
346
|
+
focusRipple: !C,
|
|
347
|
+
focusVisibleClassName: O(b.focusVisible, V),
|
|
348
|
+
ref: r,
|
|
349
|
+
type: k,
|
|
350
|
+
...L,
|
|
351
|
+
classes: b,
|
|
352
|
+
children: [F, y, D]
|
|
353
353
|
});
|
|
354
354
|
});
|
|
355
|
-
process.env.NODE_ENV !== "production" && (
|
|
355
|
+
process.env.NODE_ENV !== "production" && (T.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,45 +446,84 @@ process.env.NODE_ENV !== "production" && (k.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;
|
|
453
|
-
color: ${
|
|
453
|
+
color: ${n.colors.black};
|
|
454
454
|
display: flex;
|
|
455
455
|
justify-content: center;
|
|
456
456
|
align-items: center;
|
|
457
457
|
}
|
|
458
|
-
`,
|
|
459
|
-
background-color: ${
|
|
458
|
+
`, eo = d($)`
|
|
459
|
+
background-color: ${n.colors.green};
|
|
460
460
|
border-radius: 0;
|
|
461
461
|
height: 2.5rem;
|
|
462
462
|
border: 2px solid transparent;
|
|
463
|
-
color: ${
|
|
463
|
+
color: ${n.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: ${n.boxShadows.gray63};
|
|
470
470
|
&:hover,
|
|
471
471
|
:focus-visible {
|
|
472
|
-
background-color: ${
|
|
473
|
-
box-shadow: ${
|
|
472
|
+
background-color: ${n.colors.darkGreen};
|
|
473
|
+
box-shadow: ${n.boxShadows.black63};
|
|
474
474
|
}
|
|
475
475
|
&:disabled {
|
|
476
|
-
background-color: ${
|
|
476
|
+
background-color: ${n.colors.darkGreen};
|
|
477
477
|
}
|
|
478
|
-
`,
|
|
479
|
-
color: ${
|
|
480
|
-
border: 3px solid ${
|
|
478
|
+
`, io = d($)`
|
|
479
|
+
color: ${n.colors.black};
|
|
480
|
+
border: 3px solid ${n.colors.blue};
|
|
481
481
|
padding: 0.5rem 2rem;
|
|
482
|
-
`,
|
|
482
|
+
`, z = d($)(({ width: o = "114px" }) => ({
|
|
483
|
+
...f`
|
|
484
|
+
box-sizing: border-box;
|
|
485
|
+
background-color: ${n.colors.bibiBlue};
|
|
486
|
+
border-radius: 0;
|
|
487
|
+
height: 47px;
|
|
488
|
+
width: ${o};
|
|
489
|
+
border: 2px solid transparent;
|
|
490
|
+
color: ${n.colors.white};
|
|
491
|
+
transition: 108ms all ease-in;
|
|
492
|
+
font-weight: 500;
|
|
493
|
+
padding: 0;
|
|
494
|
+
font-size: 19px;
|
|
495
|
+
&:hover,
|
|
496
|
+
:focus-visible {
|
|
497
|
+
background-color: ${n.colors.bibiBlueHover};
|
|
498
|
+
}
|
|
499
|
+
`
|
|
500
|
+
})), so = d(z)(({ active: o }) => ({
|
|
501
|
+
...f`
|
|
502
|
+
background-color: ${o && n.colors.white};
|
|
503
|
+
color: ${o && n.colors.bibiBlue};
|
|
504
|
+
&:hover,
|
|
505
|
+
:focus-visible {
|
|
506
|
+
background-color: ${n.colors.white};
|
|
507
|
+
color: ${n.colors.bibiBlue};
|
|
508
|
+
}
|
|
509
|
+
`
|
|
510
|
+
})), lo = d(z)(() => ({
|
|
511
|
+
...f`
|
|
512
|
+
background-color: ${n.colors.white};
|
|
513
|
+
color: ${n.colors.bibiBlue};
|
|
514
|
+
&:hover,
|
|
515
|
+
:focus-visible {
|
|
516
|
+
background-color: ${n.colors.bibiBlue};
|
|
517
|
+
border: 2px solid ${n.colors.white};
|
|
518
|
+
color: ${n.colors.white};
|
|
519
|
+
}
|
|
520
|
+
`
|
|
521
|
+
})), co = d(S)`
|
|
483
522
|
border-radius: 8px;
|
|
484
|
-
`,
|
|
485
|
-
shouldForwardProp: (o) => typeof o == "string" &&
|
|
486
|
-
})(({ size: o, color:
|
|
487
|
-
...
|
|
523
|
+
`, po = d(S, {
|
|
524
|
+
shouldForwardProp: (o) => typeof o == "string" && Z(o)
|
|
525
|
+
})(({ size: o, color: a, highlightColor: r }) => ({
|
|
526
|
+
...f`
|
|
488
527
|
display: flex;
|
|
489
528
|
align-items: center;
|
|
490
529
|
justify-content: center;
|
|
@@ -494,27 +533,27 @@ const E = c(k)`
|
|
|
494
533
|
&:hover,
|
|
495
534
|
:focus-visible {
|
|
496
535
|
svg {
|
|
497
|
-
filter: drop-shadow(0 0 6px ${
|
|
498
|
-
drop-shadow(0 0 6px ${
|
|
536
|
+
filter: drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r})
|
|
537
|
+
drop-shadow(0 0 6px ${r}) drop-shadow(0 0 6px ${r});
|
|
499
538
|
}
|
|
500
539
|
}
|
|
501
540
|
|
|
502
541
|
svg {
|
|
503
542
|
transition: 313ms all ease-in-out;
|
|
504
|
-
fill: ${
|
|
543
|
+
fill: ${a};
|
|
505
544
|
width: ${o}px;
|
|
506
545
|
height: ${o}px;
|
|
507
546
|
}
|
|
508
547
|
`
|
|
509
|
-
})),
|
|
548
|
+
})), So = ({
|
|
510
549
|
variant: o = 1,
|
|
511
|
-
size:
|
|
512
|
-
color:
|
|
513
|
-
highlightColor:
|
|
514
|
-
children:
|
|
515
|
-
...
|
|
516
|
-
}) => o === "
|
|
550
|
+
size: a = 50,
|
|
551
|
+
color: r = n.colors.darkGreen,
|
|
552
|
+
highlightColor: e = n.colors.dandelion,
|
|
553
|
+
children: i,
|
|
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, { className: "jcButton", ...{ size: a, color: r, highlightColor: e }, ...s, children: i }) : /* @__PURE__ */ l(eo, { ...s, children: /* @__PURE__ */ l("span", { children: i }) });
|
|
517
556
|
export {
|
|
518
|
-
|
|
519
|
-
|
|
557
|
+
So as Button,
|
|
558
|
+
So as default
|
|
520
559
|
};
|
|
@@ -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;
|