jcicl 0.0.56 → 0.0.58
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/ButtonBase.js +202 -209
- package/.chunks/Input.js +6722 -0
- package/.chunks/Portal.js +824 -0
- package/.chunks/TransitionGroupContext.js +60 -78
- package/.chunks/elementTypeAcceptingRef.js +23 -0
- package/.chunks/isFocusVisible.js +12 -0
- package/animation/Spin/Spin.d.ts +5 -0
- package/animation/Spin/Spin.js +22 -0
- package/animation/Spin/index.d.ts +1 -0
- package/animation/Spin/index.js +4 -0
- package/animation/index.d.ts +1 -0
- package/animation/index.js +4 -2
- package/base/Button/Button.d.ts +1 -1
- package/base/Button/Button.js +66 -64
- package/base/Input/Input.d.ts +4 -1
- package/base/Input/Input.js +6 -7486
- package/base/Input/index.d.ts +1 -1
- package/base/Input/index.js +2 -2
- package/base/LabeledValue/LabeledValue.js +23 -12
- package/base/index.js +6 -6
- package/composite/Accordion/Accordion.d.ts +15 -0
- package/composite/Accordion/Accordion.js +65 -0
- package/composite/Accordion/index.d.ts +1 -0
- package/composite/Accordion/index.js +4 -0
- package/composite/InfoCard/InfoCard.d.ts +3 -0
- package/composite/InfoCard/InfoCard.js +13 -11
- package/composite/LabeledInput/LabeledInput.d.ts +9 -0
- package/composite/LabeledInput/LabeledInput.js +35 -0
- package/composite/LabeledInput/index.d.ts +1 -0
- package/composite/LabeledInput/index.js +4 -0
- package/composite/Tooltip/Tooltip.d.ts +7 -0
- package/composite/Tooltip/Tooltip.js +2092 -0
- package/composite/Tooltip/index.d.ts +1 -0
- package/composite/Tooltip/index.js +4 -0
- package/composite/index.d.ts +3 -0
- package/composite/index.js +16 -10
- package/index.d.ts +3 -3
- package/index.js +50 -40
- package/package.json +1 -1
- package/supercomposite/AppHeader/AppHeader.js +1 -1
- package/supercomposite/EditableInfoCard/EditableInfoCard.d.ts +29 -0
- package/supercomposite/EditableInfoCard/EditableInfoCard.js +223 -0
- package/supercomposite/EditableInfoCard/index.d.ts +1 -0
- package/supercomposite/EditableInfoCard/index.js +4 -0
- package/supercomposite/index.d.ts +1 -0
- package/supercomposite/index.js +6 -4
- package/theme.d.ts +8 -0
- package/theme.js +7 -0
|
@@ -1,58 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var u = (
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var l = (t, e, r) => e in t ? a(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var u = (t, e, r) => l(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { P as c } from "./DefaultPropsProvider.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
prototype: t = {}
|
|
11
|
-
} = e;
|
|
12
|
-
return !!t.isReactComponent;
|
|
5
|
+
import * as n from "react";
|
|
6
|
+
import p from "react";
|
|
7
|
+
const _ = c.oneOfType([c.func, c.object]);
|
|
8
|
+
function d(t, e) {
|
|
9
|
+
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
13
10
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
typeof window > "u")
|
|
21
|
-
return null;
|
|
22
|
-
let i;
|
|
23
|
-
return typeof s == "function" && !E(s) && (i = "Did you accidentally provide a plain function component instead?"), i !== void 0 ? new Error(`Invalid ${r} \`${d}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${i} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
-
}
|
|
25
|
-
const L = h(c.elementType, I), $ = c.oneOfType([c.func, c.object]);
|
|
26
|
-
function R(e, t) {
|
|
27
|
-
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
28
|
-
}
|
|
29
|
-
const P = typeof window < "u" ? o.useLayoutEffect : o.useEffect;
|
|
30
|
-
function g(e) {
|
|
31
|
-
const t = o.useRef(e);
|
|
32
|
-
return P(() => {
|
|
33
|
-
t.current = e;
|
|
34
|
-
}), o.useRef((...n) => (
|
|
11
|
+
const y = typeof window < "u" ? n.useLayoutEffect : n.useEffect;
|
|
12
|
+
function b(t) {
|
|
13
|
+
const e = n.useRef(t);
|
|
14
|
+
return y(() => {
|
|
15
|
+
e.current = t;
|
|
16
|
+
}), n.useRef((...r) => (
|
|
35
17
|
// @ts-expect-error hide `this`
|
|
36
|
-
(0,
|
|
18
|
+
(0, e.current)(...r)
|
|
37
19
|
)).current;
|
|
38
20
|
}
|
|
39
|
-
function
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
21
|
+
function P(...t) {
|
|
22
|
+
return n.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
23
|
+
t.forEach((r) => {
|
|
24
|
+
d(r, e);
|
|
43
25
|
});
|
|
44
|
-
},
|
|
26
|
+
}, t);
|
|
45
27
|
}
|
|
46
|
-
const
|
|
47
|
-
function
|
|
48
|
-
const
|
|
49
|
-
return
|
|
28
|
+
const i = {};
|
|
29
|
+
function h(t, e) {
|
|
30
|
+
const r = n.useRef(i);
|
|
31
|
+
return r.current === i && (r.current = t(e)), r;
|
|
50
32
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
|
|
33
|
+
const m = [];
|
|
34
|
+
function E(t) {
|
|
35
|
+
n.useEffect(t, m);
|
|
54
36
|
}
|
|
55
|
-
class
|
|
37
|
+
class f {
|
|
56
38
|
constructor() {
|
|
57
39
|
u(this, "currentId", null);
|
|
58
40
|
u(this, "clear", () => {
|
|
@@ -61,49 +43,49 @@ class a {
|
|
|
61
43
|
u(this, "disposeEffect", () => this.clear);
|
|
62
44
|
}
|
|
63
45
|
static create() {
|
|
64
|
-
return new
|
|
46
|
+
return new f();
|
|
65
47
|
}
|
|
66
48
|
/**
|
|
67
49
|
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
68
50
|
*/
|
|
69
|
-
start(
|
|
51
|
+
start(e, r) {
|
|
70
52
|
this.clear(), this.currentId = setTimeout(() => {
|
|
71
|
-
this.currentId = null,
|
|
72
|
-
},
|
|
53
|
+
this.currentId = null, r();
|
|
54
|
+
}, e);
|
|
73
55
|
}
|
|
74
56
|
}
|
|
75
|
-
function
|
|
76
|
-
const
|
|
77
|
-
return
|
|
57
|
+
function R() {
|
|
58
|
+
const t = h(f.create).current;
|
|
59
|
+
return E(t.disposeEffect), t;
|
|
78
60
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
var
|
|
82
|
-
for (var
|
|
83
|
-
if (
|
|
84
|
-
|
|
61
|
+
function j(t, e) {
|
|
62
|
+
if (t == null) return {};
|
|
63
|
+
var r = {};
|
|
64
|
+
for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
|
|
65
|
+
if (e.includes(o)) continue;
|
|
66
|
+
r[o] = t[o];
|
|
85
67
|
}
|
|
86
|
-
return
|
|
68
|
+
return r;
|
|
87
69
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
90
|
-
return
|
|
91
|
-
},
|
|
70
|
+
function s(t, e) {
|
|
71
|
+
return s = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) {
|
|
72
|
+
return r.__proto__ = o, r;
|
|
73
|
+
}, s(t, e);
|
|
92
74
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
75
|
+
function L(t, e) {
|
|
76
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, s(t, e);
|
|
95
77
|
}
|
|
96
|
-
const
|
|
78
|
+
const w = p.createContext(null);
|
|
97
79
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
80
|
+
w as T,
|
|
81
|
+
L as _,
|
|
82
|
+
j as a,
|
|
83
|
+
R as b,
|
|
84
|
+
P as c,
|
|
85
|
+
b as d,
|
|
86
|
+
y as e,
|
|
87
|
+
f,
|
|
88
|
+
_ as r,
|
|
89
|
+
d as s,
|
|
90
|
+
h as u
|
|
109
91
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { P as c } from "./DefaultPropsProvider.js";
|
|
2
|
+
import { c as l } from "./chainPropTypes.js";
|
|
3
|
+
function f(n) {
|
|
4
|
+
const {
|
|
5
|
+
prototype: e = {}
|
|
6
|
+
} = n;
|
|
7
|
+
return !!e.isReactComponent;
|
|
8
|
+
}
|
|
9
|
+
function s(n, e, i, r, p) {
|
|
10
|
+
const t = n[e], a = p || e;
|
|
11
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
12
|
+
// This is not an accurate check for SSR.
|
|
13
|
+
// This is only in place for emotion compat.
|
|
14
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
15
|
+
typeof window > "u")
|
|
16
|
+
return null;
|
|
17
|
+
let o;
|
|
18
|
+
return typeof t == "function" && !f(t) && (o = "Did you accidentally provide a plain function component instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
19
|
+
}
|
|
20
|
+
const d = l(c.elementType, s);
|
|
21
|
+
export {
|
|
22
|
+
d as e
|
|
23
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function s(o) {
|
|
2
|
+
try {
|
|
3
|
+
return o.matches(":focus-visible");
|
|
4
|
+
} catch {
|
|
5
|
+
process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
|
|
6
|
+
`));
|
|
7
|
+
}
|
|
8
|
+
return !1;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as i
|
|
12
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as e } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as r } from "../../.chunks/emotion-react.browser.esm.js";
|
|
3
|
+
const s = e("div")({
|
|
4
|
+
...r`
|
|
5
|
+
transform-style: preserve-3d;
|
|
6
|
+
@keyframes spin {
|
|
7
|
+
0% {
|
|
8
|
+
transform: rotateY(0deg);
|
|
9
|
+
}
|
|
10
|
+
100% {
|
|
11
|
+
transform: rotateY(-360deg);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
16
|
+
animation: spin infinite 4.7s linear;
|
|
17
|
+
}
|
|
18
|
+
`
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
s as default
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Spin';
|
package/animation/index.d.ts
CHANGED
package/animation/index.js
CHANGED
package/base/Button/Button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps as MuiButtonProps } from '@mui/material/Button/Button';
|
|
2
2
|
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
3
|
-
variant?: 1 | 2;
|
|
3
|
+
variant?: 1 | 2 | 'unstyled';
|
|
4
4
|
}
|
|
5
5
|
export declare const Button: React.FC<ButtonProps & {
|
|
6
6
|
children: React.ReactNode;
|
package/base/Button/Button.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as F, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { g as
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
6
|
-
import { B as
|
|
3
|
+
import { g as U, a as _, s as l, r as H, c as e, f as A, u as q, b as w, P as t, d as J, e as b } from "../../.chunks/DefaultPropsProvider.js";
|
|
4
|
+
import { m as K } from "../../.chunks/memoTheme.js";
|
|
5
|
+
import { c as Q } from "../../.chunks/createSimplePaletteValueFilter.js";
|
|
6
|
+
import { B as I } from "../../.chunks/ButtonBase.js";
|
|
7
7
|
import i from "../../theme.js";
|
|
8
8
|
function X(o) {
|
|
9
|
-
return
|
|
9
|
+
return U("MuiButton", o);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
-
const
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
11
|
+
const c = _("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"]), h = /* @__PURE__ */ g.createContext({});
|
|
12
|
+
process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupContext");
|
|
13
|
+
const O = /* @__PURE__ */ g.createContext(void 0);
|
|
14
|
+
process.env.NODE_ENV !== "production" && (O.displayName = "ButtonGroupButtonContext");
|
|
15
15
|
const Y = (o) => {
|
|
16
16
|
const {
|
|
17
17
|
color: a,
|
|
18
18
|
disableElevation: n,
|
|
19
19
|
fullWidth: r,
|
|
20
|
-
size:
|
|
20
|
+
size: d,
|
|
21
21
|
variant: p,
|
|
22
22
|
classes: u
|
|
23
|
-
} = o,
|
|
24
|
-
root: ["root", p, `${p}${e(a)}`, `size${e(
|
|
23
|
+
} = o, y = {
|
|
24
|
+
root: ["root", p, `${p}${e(a)}`, `size${e(d)}`, `${p}Size${e(d)}`, `color${e(a)}`, n && "disableElevation", r && "fullWidth"],
|
|
25
25
|
label: ["label"],
|
|
26
|
-
startIcon: ["icon", "startIcon", `iconSize${e(
|
|
27
|
-
endIcon: ["icon", "endIcon", `iconSize${e(
|
|
28
|
-
},
|
|
26
|
+
startIcon: ["icon", "startIcon", `iconSize${e(d)}`],
|
|
27
|
+
endIcon: ["icon", "endIcon", `iconSize${e(d)}`]
|
|
28
|
+
}, f = J(y, X, u);
|
|
29
29
|
return {
|
|
30
30
|
...u,
|
|
31
31
|
// forward the focused, disabled, etc. classes to the ButtonBase
|
|
32
|
-
...
|
|
32
|
+
...f
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, R = [{
|
|
35
35
|
props: {
|
|
36
36
|
size: "small"
|
|
37
37
|
},
|
|
@@ -58,8 +58,8 @@ const Y = (o) => {
|
|
|
58
58
|
fontSize: 22
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
}], Z =
|
|
62
|
-
shouldForwardProp: (o) =>
|
|
61
|
+
}], Z = l(I, {
|
|
62
|
+
shouldForwardProp: (o) => H(o) || o === "classes",
|
|
63
63
|
name: "MuiButton",
|
|
64
64
|
slot: "Root",
|
|
65
65
|
overridesResolver: (o, a) => {
|
|
@@ -68,7 +68,7 @@ const Y = (o) => {
|
|
|
68
68
|
} = o;
|
|
69
69
|
return [a.root, a[n.variant], a[`${n.variant}${e(n.color)}`], a[`size${e(n.size)}`], a[`${n.variant}Size${e(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
|
|
70
70
|
}
|
|
71
|
-
})(
|
|
71
|
+
})(K(({
|
|
72
72
|
theme: o
|
|
73
73
|
}) => {
|
|
74
74
|
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];
|
|
@@ -84,7 +84,7 @@ const Y = (o) => {
|
|
|
84
84
|
"&:hover": {
|
|
85
85
|
textDecoration: "none"
|
|
86
86
|
},
|
|
87
|
-
[`&.${
|
|
87
|
+
[`&.${c.disabled}`]: {
|
|
88
88
|
color: (o.vars || o).palette.action.disabled
|
|
89
89
|
},
|
|
90
90
|
variants: [{
|
|
@@ -105,10 +105,10 @@ const Y = (o) => {
|
|
|
105
105
|
"&:active": {
|
|
106
106
|
boxShadow: (o.vars || o).shadows[8]
|
|
107
107
|
},
|
|
108
|
-
[`&.${
|
|
108
|
+
[`&.${c.focusVisible}`]: {
|
|
109
109
|
boxShadow: (o.vars || o).shadows[6]
|
|
110
110
|
},
|
|
111
|
-
[`&.${
|
|
111
|
+
[`&.${c.disabled}`]: {
|
|
112
112
|
color: (o.vars || o).palette.action.disabled,
|
|
113
113
|
boxShadow: (o.vars || o).shadows[0],
|
|
114
114
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
@@ -124,7 +124,7 @@ const Y = (o) => {
|
|
|
124
124
|
borderColor: "var(--variant-outlinedBorder, currentColor)",
|
|
125
125
|
backgroundColor: "var(--variant-outlinedBg)",
|
|
126
126
|
color: "var(--variant-outlinedColor)",
|
|
127
|
-
[`&.${
|
|
127
|
+
[`&.${c.disabled}`]: {
|
|
128
128
|
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
129
129
|
}
|
|
130
130
|
}
|
|
@@ -137,7 +137,7 @@ const Y = (o) => {
|
|
|
137
137
|
color: "var(--variant-textColor)",
|
|
138
138
|
backgroundColor: "var(--variant-textBg)"
|
|
139
139
|
}
|
|
140
|
-
}, ...Object.entries(o.palette).filter(
|
|
140
|
+
}, ...Object.entries(o.palette).filter(Q()).map(([r]) => ({
|
|
141
141
|
props: {
|
|
142
142
|
color: r
|
|
143
143
|
},
|
|
@@ -235,13 +235,13 @@ const Y = (o) => {
|
|
|
235
235
|
"&:hover": {
|
|
236
236
|
boxShadow: "none"
|
|
237
237
|
},
|
|
238
|
-
[`&.${
|
|
238
|
+
[`&.${c.focusVisible}`]: {
|
|
239
239
|
boxShadow: "none"
|
|
240
240
|
},
|
|
241
241
|
"&:active": {
|
|
242
242
|
boxShadow: "none"
|
|
243
243
|
},
|
|
244
|
-
[`&.${
|
|
244
|
+
[`&.${c.disabled}`]: {
|
|
245
245
|
boxShadow: "none"
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -254,7 +254,7 @@ const Y = (o) => {
|
|
|
254
254
|
}
|
|
255
255
|
}]
|
|
256
256
|
};
|
|
257
|
-
})), oo =
|
|
257
|
+
})), oo = l("span", {
|
|
258
258
|
name: "MuiButton",
|
|
259
259
|
slot: "StartIcon",
|
|
260
260
|
overridesResolver: (o, a) => {
|
|
@@ -274,8 +274,8 @@ const Y = (o) => {
|
|
|
274
274
|
style: {
|
|
275
275
|
marginLeft: -2
|
|
276
276
|
}
|
|
277
|
-
}, ...
|
|
278
|
-
}), to =
|
|
277
|
+
}, ...R]
|
|
278
|
+
}), to = l("span", {
|
|
279
279
|
name: "MuiButton",
|
|
280
280
|
slot: "EndIcon",
|
|
281
281
|
overridesResolver: (o, a) => {
|
|
@@ -295,62 +295,62 @@ const Y = (o) => {
|
|
|
295
295
|
style: {
|
|
296
296
|
marginRight: -2
|
|
297
297
|
}
|
|
298
|
-
}, ...
|
|
299
|
-
}),
|
|
300
|
-
const r = g.useContext(
|
|
298
|
+
}, ...R]
|
|
299
|
+
}), E = /* @__PURE__ */ g.forwardRef(function(a, n) {
|
|
300
|
+
const r = g.useContext(h), d = g.useContext(O), p = A(r, a), u = q({
|
|
301
301
|
props: p,
|
|
302
302
|
name: "MuiButton"
|
|
303
303
|
}), {
|
|
304
|
-
children:
|
|
305
|
-
color:
|
|
304
|
+
children: y,
|
|
305
|
+
color: f = "primary",
|
|
306
306
|
component: S = "button",
|
|
307
|
-
className:
|
|
307
|
+
className: k,
|
|
308
308
|
disabled: z = !1,
|
|
309
|
-
disableElevation:
|
|
309
|
+
disableElevation: T = !1,
|
|
310
310
|
disableFocusRipple: B = !1,
|
|
311
311
|
endIcon: C,
|
|
312
|
-
focusVisibleClassName:
|
|
313
|
-
fullWidth:
|
|
314
|
-
size:
|
|
312
|
+
focusVisibleClassName: P,
|
|
313
|
+
fullWidth: W = !1,
|
|
314
|
+
size: M = "medium",
|
|
315
315
|
startIcon: $,
|
|
316
316
|
type: m,
|
|
317
|
-
variant:
|
|
318
|
-
...
|
|
317
|
+
variant: V = "text",
|
|
318
|
+
...L
|
|
319
319
|
} = u, x = {
|
|
320
320
|
...u,
|
|
321
|
-
color:
|
|
321
|
+
color: f,
|
|
322
322
|
component: S,
|
|
323
323
|
disabled: z,
|
|
324
|
-
disableElevation:
|
|
324
|
+
disableElevation: T,
|
|
325
325
|
disableFocusRipple: B,
|
|
326
|
-
fullWidth:
|
|
327
|
-
size:
|
|
326
|
+
fullWidth: W,
|
|
327
|
+
size: M,
|
|
328
328
|
type: m,
|
|
329
|
-
variant:
|
|
330
|
-
}, v = Y(x),
|
|
329
|
+
variant: V
|
|
330
|
+
}, v = Y(x), j = $ && /* @__PURE__ */ s(oo, {
|
|
331
331
|
className: v.startIcon,
|
|
332
332
|
ownerState: x,
|
|
333
333
|
children: $
|
|
334
|
-
}),
|
|
334
|
+
}), G = C && /* @__PURE__ */ s(to, {
|
|
335
335
|
className: v.endIcon,
|
|
336
336
|
ownerState: x,
|
|
337
337
|
children: C
|
|
338
|
-
}),
|
|
339
|
-
return /* @__PURE__ */
|
|
338
|
+
}), D = d || "";
|
|
339
|
+
return /* @__PURE__ */ F(Z, {
|
|
340
340
|
ownerState: x,
|
|
341
|
-
className: w(r.className, v.root,
|
|
341
|
+
className: w(r.className, v.root, k, D),
|
|
342
342
|
component: S,
|
|
343
343
|
disabled: z,
|
|
344
344
|
focusRipple: !B,
|
|
345
|
-
focusVisibleClassName: w(v.focusVisible,
|
|
345
|
+
focusVisibleClassName: w(v.focusVisible, P),
|
|
346
346
|
ref: n,
|
|
347
347
|
type: m,
|
|
348
|
-
...
|
|
348
|
+
...L,
|
|
349
349
|
classes: v,
|
|
350
|
-
children: [
|
|
350
|
+
children: [j, y, G]
|
|
351
351
|
});
|
|
352
352
|
});
|
|
353
|
-
process.env.NODE_ENV !== "production" && (
|
|
353
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
354
354
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
355
355
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
356
356
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -444,7 +444,7 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
|
444
444
|
*/
|
|
445
445
|
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
446
446
|
});
|
|
447
|
-
const
|
|
447
|
+
const N = l(E)`
|
|
448
448
|
text-transform: none;
|
|
449
449
|
&:disabled {
|
|
450
450
|
opacity: 0.5;
|
|
@@ -453,7 +453,7 @@ const E = c(R)`
|
|
|
453
453
|
justify-content: center;
|
|
454
454
|
align-items: center;
|
|
455
455
|
}
|
|
456
|
-
`, ao =
|
|
456
|
+
`, ao = l(N)`
|
|
457
457
|
background-color: ${i.colors.green};
|
|
458
458
|
border-radius: 0;
|
|
459
459
|
height: 2.5rem;
|
|
@@ -473,16 +473,18 @@ const E = c(R)`
|
|
|
473
473
|
&:disabled {
|
|
474
474
|
background-color: ${i.colors.darkGreen};
|
|
475
475
|
}
|
|
476
|
-
`, no =
|
|
476
|
+
`, no = l(N)`
|
|
477
477
|
color: ${i.colors.black};
|
|
478
478
|
border: 3px solid ${i.colors.blue};
|
|
479
479
|
padding: 0.5rem 2rem;
|
|
480
|
-
`,
|
|
480
|
+
`, ro = l(I)`
|
|
481
|
+
border-radius: 8px;
|
|
482
|
+
`, uo = ({
|
|
481
483
|
variant: o = 1,
|
|
482
484
|
children: a,
|
|
483
485
|
...n
|
|
484
|
-
}) => o === 2 ? /* @__PURE__ */
|
|
486
|
+
}) => o === "unstyled" ? /* @__PURE__ */ s(ro, { ...n, children: a }) : o === 2 ? /* @__PURE__ */ s(no, { ...n, children: /* @__PURE__ */ s("span", { children: a }) }) : /* @__PURE__ */ s(ao, { ...n, children: /* @__PURE__ */ s("span", { children: a }) });
|
|
485
487
|
export {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
+
uo as Button,
|
|
489
|
+
uo as default
|
|
488
490
|
};
|
package/base/Input/Input.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { TextFieldProps as MuiTextFieldProps } from '@mui/material/TextField';
|
|
2
|
-
export
|
|
2
|
+
export type InputProps = Omit<MuiTextFieldProps, 'variant'> & {
|
|
3
|
+
variant?: 'outlined' | 'simple';
|
|
4
|
+
};
|
|
5
|
+
export declare const Input: React.FC<InputProps>;
|
|
3
6
|
export default Input;
|