@fangzsx/component-library 0.0.11 → 0.0.13
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/dist/Box-DPlM16yK.js +30 -0
- package/dist/ButtonBase-qMhxbNdC.js +878 -0
- package/dist/FormLabel-DKoCtSGZ.js +600 -0
- package/dist/{Paper-CAUsv8qs.js → Paper-DyRh03We.js} +54 -51
- package/dist/SwitchBase-DStPyUhD.js +311 -0
- package/dist/Typography-B0rSrz7H.js +253 -0
- package/dist/components/AppBarPublic/index.js +83 -105
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +103 -607
- package/dist/components/CheckboxGroup/index.d.ts +17 -0
- package/dist/components/CheckboxGroup/index.js +68 -0
- package/dist/components/Dropdown/index.d.ts +22 -0
- package/dist/components/Dropdown/index.js +120 -0
- package/dist/components/LinearProgress/index.d.ts +3 -0
- package/dist/components/LinearProgress/index.js +19 -0
- package/dist/components/MediaCardWithAction/index.js +157 -436
- package/dist/components/RadioButtonGroup/index.d.ts +17 -0
- package/dist/components/RadioButtonGroup/index.js +836 -0
- package/dist/components/TextFieldInput/index.d.ts +15 -0
- package/dist/components/TextFieldInput/index.js +6578 -0
- package/dist/{createSvgIcon-DAI5icic.js → createSvgIcon-Dj0SJuc1.js} +8 -7
- package/dist/generateUtilityClasses-BCID9NF1.js +2806 -0
- package/dist/{index-DGepNtNg.js → index-CoBGCD2e.js} +143 -158
- package/dist/index-o1i1vy-V.js +73 -0
- package/dist/main.d.ts +5 -1
- package/dist/main.js +21 -13
- package/dist/mergeSlotProps-C-n2ing7.js +62 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useSlot-S2pEBHE8.js +161 -0
- package/dist/useTimeout-BWi4JTOH.js +635 -0
- package/package.json +1 -1
- package/dist/ButtonBase-CAtBagnK.js +0 -4293
- package/dist/assets/index2.css +0 -1
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Input/index.js +0 -11
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { T as g, g as T, a as N, e as d, f, P as a } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
+
import { e as w, u as $, s as E, c as O, a as R, m as x, f as V } from "./useTimeout-BWi4JTOH.js";
|
|
3
4
|
import { useTheme as q } from "@mui/system";
|
|
4
5
|
import { jsx as I } from "react/jsx-runtime";
|
|
5
6
|
function M() {
|
|
6
|
-
const e = q(
|
|
7
|
-
return process.env.NODE_ENV !== "production" && m.useDebugValue(e), e[
|
|
7
|
+
const e = q(w);
|
|
8
|
+
return process.env.NODE_ENV !== "production" && m.useDebugValue(e), e[g] || e;
|
|
8
9
|
}
|
|
9
10
|
function j(e) {
|
|
10
11
|
const o = typeof e;
|
|
@@ -17,45 +18,45 @@ function j(e) {
|
|
|
17
18
|
return o;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
function y(e, o,
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
const s = j(
|
|
24
|
-
return new RangeError(`Invalid ${
|
|
21
|
+
function y(e, o, t, n) {
|
|
22
|
+
const r = e[o];
|
|
23
|
+
if (r == null || !Number.isInteger(r)) {
|
|
24
|
+
const s = j(r);
|
|
25
|
+
return new RangeError(`Invalid ${n} \`${o}\` of type \`${s}\` supplied to \`${t}\`, expected \`integer\`.`);
|
|
25
26
|
}
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
return e[o] === void 0 ? null : y(e, o,
|
|
29
|
+
function b(e, o, t, n) {
|
|
30
|
+
return e[o] === void 0 ? null : y(e, o, t, n);
|
|
30
31
|
}
|
|
31
32
|
function l() {
|
|
32
33
|
return null;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
+
b.isRequired = y;
|
|
35
36
|
l.isRequired = l;
|
|
36
|
-
const C = process.env.NODE_ENV === "production" ? l :
|
|
37
|
+
const C = process.env.NODE_ENV === "production" ? l : b;
|
|
37
38
|
function D(e) {
|
|
38
|
-
return
|
|
39
|
+
return T("MuiPaper", e);
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
N("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
41
42
|
const U = (e) => {
|
|
42
43
|
const {
|
|
43
44
|
square: o,
|
|
44
|
-
elevation:
|
|
45
|
-
variant:
|
|
46
|
-
classes:
|
|
45
|
+
elevation: t,
|
|
46
|
+
variant: n,
|
|
47
|
+
classes: r
|
|
47
48
|
} = e, s = {
|
|
48
|
-
root: ["root",
|
|
49
|
+
root: ["root", n, !o && "rounded", n === "elevation" && `elevation${t}`]
|
|
49
50
|
};
|
|
50
|
-
return R(s, D,
|
|
51
|
+
return R(s, D, r);
|
|
51
52
|
}, k = E("div", {
|
|
52
53
|
name: "MuiPaper",
|
|
53
54
|
slot: "Root",
|
|
54
55
|
overridesResolver: (e, o) => {
|
|
55
56
|
const {
|
|
56
|
-
ownerState:
|
|
57
|
+
ownerState: t
|
|
57
58
|
} = e;
|
|
58
|
-
return [o.root, o[
|
|
59
|
+
return [o.root, o[t.variant], !t.square && o.rounded, t.variant === "elevation" && o[`elevation${t.elevation}`]];
|
|
59
60
|
}
|
|
60
61
|
})(x(({
|
|
61
62
|
theme: e
|
|
@@ -86,42 +87,42 @@ const U = (e) => {
|
|
|
86
87
|
backgroundImage: "var(--Paper-overlay)"
|
|
87
88
|
}
|
|
88
89
|
}]
|
|
89
|
-
}))), _ = /* @__PURE__ */ m.forwardRef(function(o,
|
|
90
|
-
const
|
|
90
|
+
}))), _ = /* @__PURE__ */ m.forwardRef(function(o, t) {
|
|
91
|
+
const n = $({
|
|
91
92
|
props: o,
|
|
92
93
|
name: "MuiPaper"
|
|
93
|
-
}),
|
|
94
|
+
}), r = M(), {
|
|
94
95
|
className: s,
|
|
95
96
|
component: u = "div",
|
|
96
97
|
elevation: i = 1,
|
|
97
|
-
square:
|
|
98
|
-
variant:
|
|
99
|
-
...
|
|
100
|
-
} =
|
|
101
|
-
...
|
|
98
|
+
square: h = !1,
|
|
99
|
+
variant: p = "elevation",
|
|
100
|
+
...v
|
|
101
|
+
} = n, c = {
|
|
102
|
+
...n,
|
|
102
103
|
component: u,
|
|
103
104
|
elevation: i,
|
|
104
|
-
square:
|
|
105
|
-
variant:
|
|
105
|
+
square: h,
|
|
106
|
+
variant: p
|
|
106
107
|
}, P = U(c);
|
|
107
|
-
return process.env.NODE_ENV !== "production" &&
|
|
108
|
+
return process.env.NODE_ENV !== "production" && r.shadows[i] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
|
|
108
109
|
`)), /* @__PURE__ */ I(k, {
|
|
109
110
|
as: u,
|
|
110
111
|
ownerState: c,
|
|
111
112
|
className: O(P.root, s),
|
|
112
|
-
ref:
|
|
113
|
-
...
|
|
113
|
+
ref: t,
|
|
114
|
+
...v,
|
|
114
115
|
style: {
|
|
115
|
-
...
|
|
116
|
-
"--Paper-shadow": (
|
|
117
|
-
...
|
|
118
|
-
"--Paper-overlay":
|
|
116
|
+
...p === "elevation" && {
|
|
117
|
+
"--Paper-shadow": (r.vars || r).shadows[i],
|
|
118
|
+
...r.vars && {
|
|
119
|
+
"--Paper-overlay": r.vars.overlays?.[i]
|
|
119
120
|
},
|
|
120
|
-
...!
|
|
121
|
+
...!r.vars && r.palette.mode === "dark" && {
|
|
121
122
|
"--Paper-overlay": `linear-gradient(${d("#fff", f(i))}, ${d("#fff", f(i))})`
|
|
122
123
|
}
|
|
123
124
|
},
|
|
124
|
-
...
|
|
125
|
+
...v.style
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
128
|
});
|
|
@@ -133,20 +134,20 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
133
134
|
/**
|
|
134
135
|
* The content of the component.
|
|
135
136
|
*/
|
|
136
|
-
children:
|
|
137
|
+
children: a.node,
|
|
137
138
|
/**
|
|
138
139
|
* Override or extend the styles applied to the component.
|
|
139
140
|
*/
|
|
140
|
-
classes:
|
|
141
|
+
classes: a.object,
|
|
141
142
|
/**
|
|
142
143
|
* @ignore
|
|
143
144
|
*/
|
|
144
|
-
className:
|
|
145
|
+
className: a.string,
|
|
145
146
|
/**
|
|
146
147
|
* The component used for the root node.
|
|
147
148
|
* Either a string to use a HTML element or a component.
|
|
148
149
|
*/
|
|
149
|
-
component:
|
|
150
|
+
component: a.elementType,
|
|
150
151
|
/**
|
|
151
152
|
* Shadow depth, corresponds to `dp` in the spec.
|
|
152
153
|
* It accepts values between 0 and 24 inclusive.
|
|
@@ -155,29 +156,31 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
155
156
|
elevation: V(C, (e) => {
|
|
156
157
|
const {
|
|
157
158
|
elevation: o,
|
|
158
|
-
variant:
|
|
159
|
+
variant: t
|
|
159
160
|
} = e;
|
|
160
|
-
return o > 0 &&
|
|
161
|
+
return o > 0 && t === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
161
162
|
}),
|
|
162
163
|
/**
|
|
163
164
|
* If `true`, rounded corners are disabled.
|
|
164
165
|
* @default false
|
|
165
166
|
*/
|
|
166
|
-
square:
|
|
167
|
+
square: a.bool,
|
|
167
168
|
/**
|
|
168
169
|
* @ignore
|
|
169
170
|
*/
|
|
170
|
-
style:
|
|
171
|
+
style: a.object,
|
|
171
172
|
/**
|
|
172
173
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
173
174
|
*/
|
|
174
|
-
sx:
|
|
175
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
175
176
|
/**
|
|
176
177
|
* The variant to use.
|
|
177
178
|
* @default 'elevation'
|
|
178
179
|
*/
|
|
179
|
-
variant:
|
|
180
|
+
variant: a.oneOfType([a.oneOf(["elevation", "outlined"]), a.string])
|
|
180
181
|
});
|
|
181
182
|
export {
|
|
182
|
-
_ as P
|
|
183
|
+
_ as P,
|
|
184
|
+
C as i,
|
|
185
|
+
M as u
|
|
183
186
|
};
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import * as H from "react";
|
|
2
|
+
import { g as J, a as K, c as Q, P as e } from "./generateUtilityClasses-BCID9NF1.js";
|
|
3
|
+
import { s as k, a as W, r as X, d as Y } from "./useTimeout-BWi4JTOH.js";
|
|
4
|
+
import { u as Z, a as ee, b as F } from "./useSlot-S2pEBHE8.js";
|
|
5
|
+
import { jsxs as oe, jsx as te } from "react/jsx-runtime";
|
|
6
|
+
import { B as se } from "./ButtonBase-qMhxbNdC.js";
|
|
7
|
+
function ne(s) {
|
|
8
|
+
return J("PrivateSwitchBase", s);
|
|
9
|
+
}
|
|
10
|
+
K("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
11
|
+
const ae = (s) => {
|
|
12
|
+
const {
|
|
13
|
+
classes: n,
|
|
14
|
+
checked: c,
|
|
15
|
+
disabled: d,
|
|
16
|
+
edge: r
|
|
17
|
+
} = s, p = {
|
|
18
|
+
root: ["root", c && "checked", d && "disabled", r && `edge${Q(r)}`],
|
|
19
|
+
input: ["input"]
|
|
20
|
+
};
|
|
21
|
+
return W(p, ne, n);
|
|
22
|
+
}, re = k(se, {
|
|
23
|
+
name: "MuiSwitchBase"
|
|
24
|
+
})({
|
|
25
|
+
padding: 9,
|
|
26
|
+
borderRadius: "50%",
|
|
27
|
+
variants: [{
|
|
28
|
+
props: {
|
|
29
|
+
edge: "start",
|
|
30
|
+
size: "small"
|
|
31
|
+
},
|
|
32
|
+
style: {
|
|
33
|
+
marginLeft: -3
|
|
34
|
+
}
|
|
35
|
+
}, {
|
|
36
|
+
props: ({
|
|
37
|
+
edge: s,
|
|
38
|
+
ownerState: n
|
|
39
|
+
}) => s === "start" && n.size !== "small",
|
|
40
|
+
style: {
|
|
41
|
+
marginLeft: -12
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
props: {
|
|
45
|
+
edge: "end",
|
|
46
|
+
size: "small"
|
|
47
|
+
},
|
|
48
|
+
style: {
|
|
49
|
+
marginRight: -3
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
props: ({
|
|
53
|
+
edge: s,
|
|
54
|
+
ownerState: n
|
|
55
|
+
}) => s === "end" && n.size !== "small",
|
|
56
|
+
style: {
|
|
57
|
+
marginRight: -12
|
|
58
|
+
}
|
|
59
|
+
}]
|
|
60
|
+
}), ie = k("input", {
|
|
61
|
+
name: "MuiSwitchBase",
|
|
62
|
+
shouldForwardProp: X
|
|
63
|
+
})({
|
|
64
|
+
cursor: "inherit",
|
|
65
|
+
position: "absolute",
|
|
66
|
+
opacity: 0,
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100%",
|
|
69
|
+
top: 0,
|
|
70
|
+
left: 0,
|
|
71
|
+
margin: 0,
|
|
72
|
+
padding: 0,
|
|
73
|
+
zIndex: 1
|
|
74
|
+
}), le = /* @__PURE__ */ H.forwardRef(function(n, c) {
|
|
75
|
+
const {
|
|
76
|
+
autoFocus: d,
|
|
77
|
+
checked: r,
|
|
78
|
+
checkedIcon: p,
|
|
79
|
+
defaultChecked: f,
|
|
80
|
+
disabled: C,
|
|
81
|
+
disableFocusRipple: h = !1,
|
|
82
|
+
edge: R = !1,
|
|
83
|
+
icon: x,
|
|
84
|
+
id: T,
|
|
85
|
+
inputProps: I,
|
|
86
|
+
inputRef: j,
|
|
87
|
+
name: O,
|
|
88
|
+
onBlur: m,
|
|
89
|
+
onChange: g,
|
|
90
|
+
onFocus: b,
|
|
91
|
+
readOnly: y,
|
|
92
|
+
required: z = !1,
|
|
93
|
+
tabIndex: q,
|
|
94
|
+
type: l,
|
|
95
|
+
value: P,
|
|
96
|
+
slots: N = {},
|
|
97
|
+
slotProps: E = {},
|
|
98
|
+
...U
|
|
99
|
+
} = n, [S, v] = Z({
|
|
100
|
+
controlled: r,
|
|
101
|
+
default: !!f,
|
|
102
|
+
name: "SwitchBase",
|
|
103
|
+
state: "checked"
|
|
104
|
+
}), a = ee(), L = (o) => {
|
|
105
|
+
b && b(o), a && a.onFocus && a.onFocus(o);
|
|
106
|
+
}, M = (o) => {
|
|
107
|
+
m && m(o), a && a.onBlur && a.onBlur(o);
|
|
108
|
+
}, D = (o) => {
|
|
109
|
+
if (o.nativeEvent.defaultPrevented || y)
|
|
110
|
+
return;
|
|
111
|
+
const t = o.target.checked;
|
|
112
|
+
v(t), g && g(o, t);
|
|
113
|
+
};
|
|
114
|
+
let i = C;
|
|
115
|
+
a && typeof i > "u" && (i = a.disabled);
|
|
116
|
+
const V = l === "checkbox" || l === "radio", u = {
|
|
117
|
+
...n,
|
|
118
|
+
checked: S,
|
|
119
|
+
disabled: i,
|
|
120
|
+
disableFocusRipple: h,
|
|
121
|
+
edge: R
|
|
122
|
+
}, B = ae(u), w = {
|
|
123
|
+
slots: N,
|
|
124
|
+
slotProps: {
|
|
125
|
+
input: I,
|
|
126
|
+
...E
|
|
127
|
+
}
|
|
128
|
+
}, [_, $] = F("root", {
|
|
129
|
+
ref: c,
|
|
130
|
+
elementType: re,
|
|
131
|
+
className: B.root,
|
|
132
|
+
shouldForwardComponentProp: !0,
|
|
133
|
+
externalForwardedProps: {
|
|
134
|
+
...w,
|
|
135
|
+
component: "span",
|
|
136
|
+
...U
|
|
137
|
+
},
|
|
138
|
+
getSlotProps: (o) => ({
|
|
139
|
+
...o,
|
|
140
|
+
onFocus: (t) => {
|
|
141
|
+
o.onFocus?.(t), L(t);
|
|
142
|
+
},
|
|
143
|
+
onBlur: (t) => {
|
|
144
|
+
o.onBlur?.(t), M(t);
|
|
145
|
+
}
|
|
146
|
+
}),
|
|
147
|
+
ownerState: u,
|
|
148
|
+
additionalProps: {
|
|
149
|
+
centerRipple: !0,
|
|
150
|
+
focusRipple: !h,
|
|
151
|
+
disabled: i,
|
|
152
|
+
role: void 0,
|
|
153
|
+
tabIndex: null
|
|
154
|
+
}
|
|
155
|
+
}), [A, G] = F("input", {
|
|
156
|
+
ref: j,
|
|
157
|
+
elementType: ie,
|
|
158
|
+
className: B.input,
|
|
159
|
+
externalForwardedProps: w,
|
|
160
|
+
getSlotProps: (o) => ({
|
|
161
|
+
...o,
|
|
162
|
+
onChange: (t) => {
|
|
163
|
+
o.onChange?.(t), D(t);
|
|
164
|
+
}
|
|
165
|
+
}),
|
|
166
|
+
ownerState: u,
|
|
167
|
+
additionalProps: {
|
|
168
|
+
autoFocus: d,
|
|
169
|
+
checked: r,
|
|
170
|
+
defaultChecked: f,
|
|
171
|
+
disabled: i,
|
|
172
|
+
id: V ? T : void 0,
|
|
173
|
+
name: O,
|
|
174
|
+
readOnly: y,
|
|
175
|
+
required: z,
|
|
176
|
+
tabIndex: q,
|
|
177
|
+
type: l,
|
|
178
|
+
...l === "checkbox" && P === void 0 ? {} : {
|
|
179
|
+
value: P
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return /* @__PURE__ */ oe(_, {
|
|
184
|
+
...$,
|
|
185
|
+
children: [/* @__PURE__ */ te(A, {
|
|
186
|
+
...G
|
|
187
|
+
}), S ? p : x]
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
191
|
+
/**
|
|
192
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
193
|
+
*/
|
|
194
|
+
autoFocus: e.bool,
|
|
195
|
+
/**
|
|
196
|
+
* If `true`, the component is checked.
|
|
197
|
+
*/
|
|
198
|
+
checked: e.bool,
|
|
199
|
+
/**
|
|
200
|
+
* The icon to display when the component is checked.
|
|
201
|
+
*/
|
|
202
|
+
checkedIcon: e.node.isRequired,
|
|
203
|
+
/**
|
|
204
|
+
* Override or extend the styles applied to the component.
|
|
205
|
+
*/
|
|
206
|
+
classes: e.object,
|
|
207
|
+
/**
|
|
208
|
+
* @ignore
|
|
209
|
+
*/
|
|
210
|
+
className: e.string,
|
|
211
|
+
/**
|
|
212
|
+
* @ignore
|
|
213
|
+
*/
|
|
214
|
+
defaultChecked: e.bool,
|
|
215
|
+
/**
|
|
216
|
+
* If `true`, the component is disabled.
|
|
217
|
+
*/
|
|
218
|
+
disabled: e.bool,
|
|
219
|
+
/**
|
|
220
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
221
|
+
* @default false
|
|
222
|
+
*/
|
|
223
|
+
disableFocusRipple: e.bool,
|
|
224
|
+
/**
|
|
225
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
226
|
+
* side (this is often helpful for aligning the left or right
|
|
227
|
+
* side of the icon with content above or below, without ruining the border
|
|
228
|
+
* size and shape).
|
|
229
|
+
* @default false
|
|
230
|
+
*/
|
|
231
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
232
|
+
/**
|
|
233
|
+
* The icon to display when the component is unchecked.
|
|
234
|
+
*/
|
|
235
|
+
icon: e.node.isRequired,
|
|
236
|
+
/**
|
|
237
|
+
* The id of the `input` element.
|
|
238
|
+
*/
|
|
239
|
+
id: e.string,
|
|
240
|
+
/**
|
|
241
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
242
|
+
*/
|
|
243
|
+
inputProps: e.object,
|
|
244
|
+
/**
|
|
245
|
+
* Pass a ref to the `input` element.
|
|
246
|
+
*/
|
|
247
|
+
inputRef: Y,
|
|
248
|
+
/*
|
|
249
|
+
* @ignore
|
|
250
|
+
*/
|
|
251
|
+
name: e.string,
|
|
252
|
+
/**
|
|
253
|
+
* @ignore
|
|
254
|
+
*/
|
|
255
|
+
onBlur: e.func,
|
|
256
|
+
/**
|
|
257
|
+
* Callback fired when the state is changed.
|
|
258
|
+
*
|
|
259
|
+
* @param {object} event The event source of the callback.
|
|
260
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
261
|
+
*/
|
|
262
|
+
onChange: e.func,
|
|
263
|
+
/**
|
|
264
|
+
* @ignore
|
|
265
|
+
*/
|
|
266
|
+
onFocus: e.func,
|
|
267
|
+
/**
|
|
268
|
+
* It prevents the user from changing the value of the field
|
|
269
|
+
* (not from interacting with the field).
|
|
270
|
+
*/
|
|
271
|
+
readOnly: e.bool,
|
|
272
|
+
/**
|
|
273
|
+
* If `true`, the `input` element is required.
|
|
274
|
+
*/
|
|
275
|
+
required: e.bool,
|
|
276
|
+
/**
|
|
277
|
+
* The props used for each slot inside.
|
|
278
|
+
* @default {}
|
|
279
|
+
*/
|
|
280
|
+
slotProps: e.shape({
|
|
281
|
+
input: e.oneOfType([e.func, e.object]),
|
|
282
|
+
root: e.oneOfType([e.func, e.object])
|
|
283
|
+
}),
|
|
284
|
+
/**
|
|
285
|
+
* The components used for each slot inside.
|
|
286
|
+
* @default {}
|
|
287
|
+
*/
|
|
288
|
+
slots: e.shape({
|
|
289
|
+
input: e.elementType,
|
|
290
|
+
root: e.elementType
|
|
291
|
+
}),
|
|
292
|
+
/**
|
|
293
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
294
|
+
*/
|
|
295
|
+
sx: e.object,
|
|
296
|
+
/**
|
|
297
|
+
* @ignore
|
|
298
|
+
*/
|
|
299
|
+
tabIndex: e.oneOfType([e.number, e.string]),
|
|
300
|
+
/**
|
|
301
|
+
* The input component prop `type`.
|
|
302
|
+
*/
|
|
303
|
+
type: e.string.isRequired,
|
|
304
|
+
/**
|
|
305
|
+
* The value of the component.
|
|
306
|
+
*/
|
|
307
|
+
value: e.any
|
|
308
|
+
});
|
|
309
|
+
export {
|
|
310
|
+
le as S
|
|
311
|
+
};
|