kdpa-components 0.0.35 → 0.0.36
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/Alert/index.js +5 -4
- package/dist/FormControl/index.js +6 -5
- package/dist/Grid/index.d.ts +3 -0
- package/dist/Grid/index.d.ts.map +1 -0
- package/dist/Grid/index.js +10 -0
- package/dist/Grid-f5acb891.js +482 -0
- package/dist/{KdpaAlertTitle-f3181fcf.js → KdpaAlertTitle-50ad6f1d.js} +1 -1
- package/dist/{KdpaDateTimePicker-a0779b5b.js → KdpaDateTimePicker-9c8ea9ba.js} +2845 -3317
- package/dist/{KdpaFormControlLabel-a1befcc6.js → KdpaFormControlLabel-2e6b6f2f.js} +1 -1
- package/dist/KdpaGrid-373ef20b.js +8 -0
- package/dist/Pickers/index.js +7 -5
- package/dist/Typography-62f05112.js +174 -0
- package/dist/extendSxProp-604badd6.js +29 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +67 -63
- package/package.json +1 -1
- package/dist/Typography-15bf9d04.js +0 -199
package/dist/Alert/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { K as g, a as h } from "../KdpaAlertTitle-50ad6f1d.js";
|
|
2
2
|
import "../identifier-cec96f71.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../useThemeProps-187cd881.js";
|
|
@@ -13,8 +13,9 @@ import "../emotion-react.browser.esm-6cde5d52.js";
|
|
|
13
13
|
import "../TransitionGroup-100323ec.js";
|
|
14
14
|
import "../refType-595f7c70.js";
|
|
15
15
|
import "../useIsFocusVisible-4693b580.js";
|
|
16
|
-
import "../Typography-
|
|
16
|
+
import "../Typography-62f05112.js";
|
|
17
|
+
import "../extendSxProp-604badd6.js";
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
g as KdpaAlert,
|
|
20
|
+
h as KdpaAlertTitle
|
|
20
21
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { K as
|
|
1
|
+
import { K as f } from "../KdpaFormControl-c96d6b4d.js";
|
|
2
|
+
import { K as s } from "../KdpaFormControlLabel-2e6b6f2f.js";
|
|
3
3
|
import "../identifier-cec96f71.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../FormControl-26c40dde.js";
|
|
6
6
|
import "../useThemeProps-187cd881.js";
|
|
7
7
|
import "../useFormControl-af690c26.js";
|
|
8
8
|
import "../formControlState-9148c46f.js";
|
|
9
|
-
import "../Typography-
|
|
9
|
+
import "../Typography-62f05112.js";
|
|
10
|
+
import "../extendSxProp-604badd6.js";
|
|
10
11
|
import "../refType-595f7c70.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
f as KdpaFormControl,
|
|
14
|
+
s as KdpaFormControlLabel
|
|
14
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { K } from "../KdpaGrid-373ef20b.js";
|
|
2
|
+
import "../identifier-cec96f71.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../Grid-f5acb891.js";
|
|
5
|
+
import "../useThemeProps-187cd881.js";
|
|
6
|
+
import "../useTheme-622cdcbc.js";
|
|
7
|
+
import "../extendSxProp-604badd6.js";
|
|
8
|
+
export {
|
|
9
|
+
K as KdpaGrid
|
|
10
|
+
};
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { _ as g, g as D, a as K, j, P as n, r as v, i as T } from "./identifier-cec96f71.js";
|
|
2
|
+
import * as S from "react";
|
|
3
|
+
import { g as I, s as L, u as U, c as q, a as F } from "./useThemeProps-187cd881.js";
|
|
4
|
+
import { u as Z } from "./useTheme-622cdcbc.js";
|
|
5
|
+
import { e as A } from "./extendSxProp-604badd6.js";
|
|
6
|
+
function H(e, r) {
|
|
7
|
+
if (process.env.NODE_ENV === "production")
|
|
8
|
+
return () => null;
|
|
9
|
+
const t = r ? g({}, r.propTypes) : null;
|
|
10
|
+
return (o) => (s, c, p, l, u, ...a) => {
|
|
11
|
+
const f = u || c, m = t == null ? void 0 : t[f];
|
|
12
|
+
if (m) {
|
|
13
|
+
const d = m(s, c, p, l, u, ...a);
|
|
14
|
+
if (d)
|
|
15
|
+
return d;
|
|
16
|
+
}
|
|
17
|
+
return typeof s[c] < "u" && !s[o] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const E = /* @__PURE__ */ S.createContext();
|
|
21
|
+
process.env.NODE_ENV !== "production" && (E.displayName = "GridContext");
|
|
22
|
+
const C = E;
|
|
23
|
+
function J(e) {
|
|
24
|
+
return D("MuiGrid", e);
|
|
25
|
+
}
|
|
26
|
+
const Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], X = ["column-reverse", "column", "row-reverse", "row"], Y = ["nowrap", "wrap-reverse", "wrap"], b = ["auto", !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], w = I("MuiGrid", [
|
|
27
|
+
"root",
|
|
28
|
+
"container",
|
|
29
|
+
"item",
|
|
30
|
+
"zeroMinWidth",
|
|
31
|
+
// spacings
|
|
32
|
+
...Q.map((e) => `spacing-xs-${e}`),
|
|
33
|
+
// direction values
|
|
34
|
+
...X.map((e) => `direction-xs-${e}`),
|
|
35
|
+
// wrap values
|
|
36
|
+
...Y.map((e) => `wrap-xs-${e}`),
|
|
37
|
+
// grid sizes for all breakpoints
|
|
38
|
+
...b.map((e) => `grid-xs-${e}`),
|
|
39
|
+
...b.map((e) => `grid-sm-${e}`),
|
|
40
|
+
...b.map((e) => `grid-md-${e}`),
|
|
41
|
+
...b.map((e) => `grid-lg-${e}`),
|
|
42
|
+
...b.map((e) => `grid-xl-${e}`)
|
|
43
|
+
]), ee = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
44
|
+
function x(e) {
|
|
45
|
+
const r = parseFloat(e);
|
|
46
|
+
return `${r}${String(e).replace(String(r), "") || "px"}`;
|
|
47
|
+
}
|
|
48
|
+
function ne({
|
|
49
|
+
theme: e,
|
|
50
|
+
ownerState: r
|
|
51
|
+
}) {
|
|
52
|
+
let t;
|
|
53
|
+
return e.breakpoints.keys.reduce((i, o) => {
|
|
54
|
+
let s = {};
|
|
55
|
+
if (r[o] && (t = r[o]), !t)
|
|
56
|
+
return i;
|
|
57
|
+
if (t === !0)
|
|
58
|
+
s = {
|
|
59
|
+
flexBasis: 0,
|
|
60
|
+
flexGrow: 1,
|
|
61
|
+
maxWidth: "100%"
|
|
62
|
+
};
|
|
63
|
+
else if (t === "auto")
|
|
64
|
+
s = {
|
|
65
|
+
flexBasis: "auto",
|
|
66
|
+
flexGrow: 0,
|
|
67
|
+
flexShrink: 0,
|
|
68
|
+
maxWidth: "none",
|
|
69
|
+
width: "auto"
|
|
70
|
+
};
|
|
71
|
+
else {
|
|
72
|
+
const c = v({
|
|
73
|
+
values: r.columns,
|
|
74
|
+
breakpoints: e.breakpoints.values
|
|
75
|
+
}), p = typeof c == "object" ? c[o] : c;
|
|
76
|
+
if (p == null)
|
|
77
|
+
return i;
|
|
78
|
+
const l = `${Math.round(t / p * 1e8) / 1e6}%`;
|
|
79
|
+
let u = {};
|
|
80
|
+
if (r.container && r.item && r.columnSpacing !== 0) {
|
|
81
|
+
const a = e.spacing(r.columnSpacing);
|
|
82
|
+
if (a !== "0px") {
|
|
83
|
+
const f = `calc(${l} + ${x(a)})`;
|
|
84
|
+
u = {
|
|
85
|
+
flexBasis: f,
|
|
86
|
+
maxWidth: f
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
s = g({
|
|
91
|
+
flexBasis: l,
|
|
92
|
+
flexGrow: 0,
|
|
93
|
+
maxWidth: l
|
|
94
|
+
}, u);
|
|
95
|
+
}
|
|
96
|
+
return e.breakpoints.values[o] === 0 ? Object.assign(i, s) : i[e.breakpoints.up(o)] = s, i;
|
|
97
|
+
}, {});
|
|
98
|
+
}
|
|
99
|
+
function re({
|
|
100
|
+
theme: e,
|
|
101
|
+
ownerState: r
|
|
102
|
+
}) {
|
|
103
|
+
const t = v({
|
|
104
|
+
values: r.direction,
|
|
105
|
+
breakpoints: e.breakpoints.values
|
|
106
|
+
});
|
|
107
|
+
return T({
|
|
108
|
+
theme: e
|
|
109
|
+
}, t, (i) => {
|
|
110
|
+
const o = {
|
|
111
|
+
flexDirection: i
|
|
112
|
+
};
|
|
113
|
+
return i.indexOf("column") === 0 && (o[`& > .${w.item}`] = {
|
|
114
|
+
maxWidth: "none"
|
|
115
|
+
}), o;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function z({
|
|
119
|
+
breakpoints: e,
|
|
120
|
+
values: r
|
|
121
|
+
}) {
|
|
122
|
+
let t = "";
|
|
123
|
+
Object.keys(r).forEach((o) => {
|
|
124
|
+
t === "" && r[o] !== 0 && (t = o);
|
|
125
|
+
});
|
|
126
|
+
const i = Object.keys(e).sort((o, s) => e[o] - e[s]);
|
|
127
|
+
return i.slice(0, i.indexOf(t));
|
|
128
|
+
}
|
|
129
|
+
function oe({
|
|
130
|
+
theme: e,
|
|
131
|
+
ownerState: r
|
|
132
|
+
}) {
|
|
133
|
+
const {
|
|
134
|
+
container: t,
|
|
135
|
+
rowSpacing: i
|
|
136
|
+
} = r;
|
|
137
|
+
let o = {};
|
|
138
|
+
if (t && i !== 0) {
|
|
139
|
+
const s = v({
|
|
140
|
+
values: i,
|
|
141
|
+
breakpoints: e.breakpoints.values
|
|
142
|
+
});
|
|
143
|
+
let c;
|
|
144
|
+
typeof s == "object" && (c = z({
|
|
145
|
+
breakpoints: e.breakpoints.values,
|
|
146
|
+
values: s
|
|
147
|
+
})), o = T({
|
|
148
|
+
theme: e
|
|
149
|
+
}, s, (p, l) => {
|
|
150
|
+
var u;
|
|
151
|
+
const a = e.spacing(p);
|
|
152
|
+
return a !== "0px" ? {
|
|
153
|
+
marginTop: `-${x(a)}`,
|
|
154
|
+
[`& > .${w.item}`]: {
|
|
155
|
+
paddingTop: x(a)
|
|
156
|
+
}
|
|
157
|
+
} : (u = c) != null && u.includes(l) ? {} : {
|
|
158
|
+
marginTop: 0,
|
|
159
|
+
[`& > .${w.item}`]: {
|
|
160
|
+
paddingTop: 0
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return o;
|
|
166
|
+
}
|
|
167
|
+
function te({
|
|
168
|
+
theme: e,
|
|
169
|
+
ownerState: r
|
|
170
|
+
}) {
|
|
171
|
+
const {
|
|
172
|
+
container: t,
|
|
173
|
+
columnSpacing: i
|
|
174
|
+
} = r;
|
|
175
|
+
let o = {};
|
|
176
|
+
if (t && i !== 0) {
|
|
177
|
+
const s = v({
|
|
178
|
+
values: i,
|
|
179
|
+
breakpoints: e.breakpoints.values
|
|
180
|
+
});
|
|
181
|
+
let c;
|
|
182
|
+
typeof s == "object" && (c = z({
|
|
183
|
+
breakpoints: e.breakpoints.values,
|
|
184
|
+
values: s
|
|
185
|
+
})), o = T({
|
|
186
|
+
theme: e
|
|
187
|
+
}, s, (p, l) => {
|
|
188
|
+
var u;
|
|
189
|
+
const a = e.spacing(p);
|
|
190
|
+
return a !== "0px" ? {
|
|
191
|
+
width: `calc(100% + ${x(a)})`,
|
|
192
|
+
marginLeft: `-${x(a)}`,
|
|
193
|
+
[`& > .${w.item}`]: {
|
|
194
|
+
paddingLeft: x(a)
|
|
195
|
+
}
|
|
196
|
+
} : (u = c) != null && u.includes(l) ? {} : {
|
|
197
|
+
width: "100%",
|
|
198
|
+
marginLeft: 0,
|
|
199
|
+
[`& > .${w.item}`]: {
|
|
200
|
+
paddingLeft: 0
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
return o;
|
|
206
|
+
}
|
|
207
|
+
function ie(e, r, t = {}) {
|
|
208
|
+
if (!e || e <= 0)
|
|
209
|
+
return [];
|
|
210
|
+
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
211
|
+
return [t[`spacing-xs-${String(e)}`]];
|
|
212
|
+
const i = [];
|
|
213
|
+
return r.forEach((o) => {
|
|
214
|
+
const s = e[o];
|
|
215
|
+
Number(s) > 0 && i.push(t[`spacing-${o}-${String(s)}`]);
|
|
216
|
+
}), i;
|
|
217
|
+
}
|
|
218
|
+
const se = L("div", {
|
|
219
|
+
name: "MuiGrid",
|
|
220
|
+
slot: "Root",
|
|
221
|
+
overridesResolver: (e, r) => {
|
|
222
|
+
const {
|
|
223
|
+
ownerState: t
|
|
224
|
+
} = e, {
|
|
225
|
+
container: i,
|
|
226
|
+
direction: o,
|
|
227
|
+
item: s,
|
|
228
|
+
spacing: c,
|
|
229
|
+
wrap: p,
|
|
230
|
+
zeroMinWidth: l,
|
|
231
|
+
breakpoints: u
|
|
232
|
+
} = t;
|
|
233
|
+
let a = [];
|
|
234
|
+
i && (a = ie(c, u, r));
|
|
235
|
+
const f = [];
|
|
236
|
+
return u.forEach((m) => {
|
|
237
|
+
const d = t[m];
|
|
238
|
+
d && f.push(r[`grid-${m}-${String(d)}`]);
|
|
239
|
+
}), [r.root, i && r.container, s && r.item, l && r.zeroMinWidth, ...a, o !== "row" && r[`direction-xs-${String(o)}`], p !== "wrap" && r[`wrap-xs-${String(p)}`], ...f];
|
|
240
|
+
}
|
|
241
|
+
})(({
|
|
242
|
+
ownerState: e
|
|
243
|
+
}) => g({
|
|
244
|
+
boxSizing: "border-box"
|
|
245
|
+
}, e.container && {
|
|
246
|
+
display: "flex",
|
|
247
|
+
flexWrap: "wrap",
|
|
248
|
+
width: "100%"
|
|
249
|
+
}, e.item && {
|
|
250
|
+
margin: 0
|
|
251
|
+
// For instance, it's useful when used with a `figure` element.
|
|
252
|
+
}, e.zeroMinWidth && {
|
|
253
|
+
minWidth: 0
|
|
254
|
+
}, e.wrap !== "wrap" && {
|
|
255
|
+
flexWrap: e.wrap
|
|
256
|
+
}), re, oe, te, ne);
|
|
257
|
+
function ae(e, r) {
|
|
258
|
+
if (!e || e <= 0)
|
|
259
|
+
return [];
|
|
260
|
+
if (typeof e == "string" && !Number.isNaN(Number(e)) || typeof e == "number")
|
|
261
|
+
return [`spacing-xs-${String(e)}`];
|
|
262
|
+
const t = [];
|
|
263
|
+
return r.forEach((i) => {
|
|
264
|
+
const o = e[i];
|
|
265
|
+
if (Number(o) > 0) {
|
|
266
|
+
const s = `spacing-${i}-${String(o)}`;
|
|
267
|
+
t.push(s);
|
|
268
|
+
}
|
|
269
|
+
}), t;
|
|
270
|
+
}
|
|
271
|
+
const ce = (e) => {
|
|
272
|
+
const {
|
|
273
|
+
classes: r,
|
|
274
|
+
container: t,
|
|
275
|
+
direction: i,
|
|
276
|
+
item: o,
|
|
277
|
+
spacing: s,
|
|
278
|
+
wrap: c,
|
|
279
|
+
zeroMinWidth: p,
|
|
280
|
+
breakpoints: l
|
|
281
|
+
} = e;
|
|
282
|
+
let u = [];
|
|
283
|
+
t && (u = ae(s, l));
|
|
284
|
+
const a = [];
|
|
285
|
+
l.forEach((m) => {
|
|
286
|
+
const d = e[m];
|
|
287
|
+
d && a.push(`grid-${m}-${String(d)}`);
|
|
288
|
+
});
|
|
289
|
+
const f = {
|
|
290
|
+
root: ["root", t && "container", o && "item", p && "zeroMinWidth", ...u, i !== "row" && `direction-xs-${String(i)}`, c !== "wrap" && `wrap-xs-${String(c)}`, ...a]
|
|
291
|
+
};
|
|
292
|
+
return F(f, J, r);
|
|
293
|
+
}, y = /* @__PURE__ */ S.forwardRef(function(r, t) {
|
|
294
|
+
const i = U({
|
|
295
|
+
props: r,
|
|
296
|
+
name: "MuiGrid"
|
|
297
|
+
}), {
|
|
298
|
+
breakpoints: o
|
|
299
|
+
} = Z(), s = A(i), {
|
|
300
|
+
className: c,
|
|
301
|
+
columns: p,
|
|
302
|
+
columnSpacing: l,
|
|
303
|
+
component: u = "div",
|
|
304
|
+
container: a = !1,
|
|
305
|
+
direction: f = "row",
|
|
306
|
+
item: m = !1,
|
|
307
|
+
rowSpacing: d,
|
|
308
|
+
spacing: O = 0,
|
|
309
|
+
wrap: P = "wrap",
|
|
310
|
+
zeroMinWidth: V = !1
|
|
311
|
+
} = s, $ = K(s, ee), M = d || O, B = l || O, R = S.useContext(C), k = a ? p || 12 : R, N = {}, G = g({}, $);
|
|
312
|
+
o.keys.forEach((h) => {
|
|
313
|
+
$[h] != null && (N[h] = $[h], delete G[h]);
|
|
314
|
+
});
|
|
315
|
+
const W = g({}, s, {
|
|
316
|
+
columns: k,
|
|
317
|
+
container: a,
|
|
318
|
+
direction: f,
|
|
319
|
+
item: m,
|
|
320
|
+
rowSpacing: M,
|
|
321
|
+
columnSpacing: B,
|
|
322
|
+
wrap: P,
|
|
323
|
+
zeroMinWidth: V,
|
|
324
|
+
spacing: O
|
|
325
|
+
}, N, {
|
|
326
|
+
breakpoints: o.keys
|
|
327
|
+
}), _ = ce(W);
|
|
328
|
+
return /* @__PURE__ */ j.jsx(C.Provider, {
|
|
329
|
+
value: k,
|
|
330
|
+
children: /* @__PURE__ */ j.jsx(se, g({
|
|
331
|
+
ownerState: W,
|
|
332
|
+
className: q(_.root, c),
|
|
333
|
+
as: u,
|
|
334
|
+
ref: t
|
|
335
|
+
}, G))
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
339
|
+
// ----------------------------- Warning --------------------------------
|
|
340
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
341
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
342
|
+
// ----------------------------------------------------------------------
|
|
343
|
+
/**
|
|
344
|
+
* The content of the component.
|
|
345
|
+
*/
|
|
346
|
+
children: n.node,
|
|
347
|
+
/**
|
|
348
|
+
* Override or extend the styles applied to the component.
|
|
349
|
+
*/
|
|
350
|
+
classes: n.object,
|
|
351
|
+
/**
|
|
352
|
+
* @ignore
|
|
353
|
+
*/
|
|
354
|
+
className: n.string,
|
|
355
|
+
/**
|
|
356
|
+
* The number of columns.
|
|
357
|
+
* @default 12
|
|
358
|
+
*/
|
|
359
|
+
columns: n.oneOfType([n.arrayOf(n.number), n.number, n.object]),
|
|
360
|
+
/**
|
|
361
|
+
* Defines the horizontal space between the type `item` components.
|
|
362
|
+
* It overrides the value of the `spacing` prop.
|
|
363
|
+
*/
|
|
364
|
+
columnSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
365
|
+
/**
|
|
366
|
+
* The component used for the root node.
|
|
367
|
+
* Either a string to use a HTML element or a component.
|
|
368
|
+
*/
|
|
369
|
+
component: n.elementType,
|
|
370
|
+
/**
|
|
371
|
+
* If `true`, the component will have the flex *container* behavior.
|
|
372
|
+
* You should be wrapping *items* with a *container*.
|
|
373
|
+
* @default false
|
|
374
|
+
*/
|
|
375
|
+
container: n.bool,
|
|
376
|
+
/**
|
|
377
|
+
* Defines the `flex-direction` style property.
|
|
378
|
+
* It is applied for all screen sizes.
|
|
379
|
+
* @default 'row'
|
|
380
|
+
*/
|
|
381
|
+
direction: n.oneOfType([n.oneOf(["column-reverse", "column", "row-reverse", "row"]), n.arrayOf(n.oneOf(["column-reverse", "column", "row-reverse", "row"])), n.object]),
|
|
382
|
+
/**
|
|
383
|
+
* If `true`, the component will have the flex *item* behavior.
|
|
384
|
+
* You should be wrapping *items* with a *container*.
|
|
385
|
+
* @default false
|
|
386
|
+
*/
|
|
387
|
+
item: n.bool,
|
|
388
|
+
/**
|
|
389
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
390
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
391
|
+
* If 'auto', the grid item's width matches its content.
|
|
392
|
+
* If false, the prop is ignored.
|
|
393
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
394
|
+
* The value is applied for the `lg` breakpoint and wider screens if not overridden.
|
|
395
|
+
* @default false
|
|
396
|
+
*/
|
|
397
|
+
lg: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
398
|
+
/**
|
|
399
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
400
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
401
|
+
* If 'auto', the grid item's width matches its content.
|
|
402
|
+
* If false, the prop is ignored.
|
|
403
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
404
|
+
* The value is applied for the `md` breakpoint and wider screens if not overridden.
|
|
405
|
+
* @default false
|
|
406
|
+
*/
|
|
407
|
+
md: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
408
|
+
/**
|
|
409
|
+
* Defines the vertical space between the type `item` components.
|
|
410
|
+
* It overrides the value of the `spacing` prop.
|
|
411
|
+
*/
|
|
412
|
+
rowSpacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
413
|
+
/**
|
|
414
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
415
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
416
|
+
* If 'auto', the grid item's width matches its content.
|
|
417
|
+
* If false, the prop is ignored.
|
|
418
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
419
|
+
* The value is applied for the `sm` breakpoint and wider screens if not overridden.
|
|
420
|
+
* @default false
|
|
421
|
+
*/
|
|
422
|
+
sm: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
423
|
+
/**
|
|
424
|
+
* Defines the space between the type `item` components.
|
|
425
|
+
* It can only be used on a type `container` component.
|
|
426
|
+
* @default 0
|
|
427
|
+
*/
|
|
428
|
+
spacing: n.oneOfType([n.arrayOf(n.oneOfType([n.number, n.string])), n.number, n.object, n.string]),
|
|
429
|
+
/**
|
|
430
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
431
|
+
*/
|
|
432
|
+
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
433
|
+
/**
|
|
434
|
+
* Defines the `flex-wrap` style property.
|
|
435
|
+
* It's applied for all screen sizes.
|
|
436
|
+
* @default 'wrap'
|
|
437
|
+
*/
|
|
438
|
+
wrap: n.oneOf(["nowrap", "wrap-reverse", "wrap"]),
|
|
439
|
+
/**
|
|
440
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
441
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
442
|
+
* If 'auto', the grid item's width matches its content.
|
|
443
|
+
* If false, the prop is ignored.
|
|
444
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
445
|
+
* The value is applied for the `xl` breakpoint and wider screens if not overridden.
|
|
446
|
+
* @default false
|
|
447
|
+
*/
|
|
448
|
+
xl: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
449
|
+
/**
|
|
450
|
+
* If a number, it sets the number of columns the grid item uses.
|
|
451
|
+
* It can't be greater than the total number of columns of the container (12 by default).
|
|
452
|
+
* If 'auto', the grid item's width matches its content.
|
|
453
|
+
* If false, the prop is ignored.
|
|
454
|
+
* If true, the grid item's width grows to use the space available in the grid container.
|
|
455
|
+
* The value is applied for all the screen sizes with the lowest priority.
|
|
456
|
+
* @default false
|
|
457
|
+
*/
|
|
458
|
+
xs: n.oneOfType([n.oneOf(["auto"]), n.number, n.bool]),
|
|
459
|
+
/**
|
|
460
|
+
* If `true`, it sets `min-width: 0` on the item.
|
|
461
|
+
* Refer to the limitations section of the documentation to better understand the use case.
|
|
462
|
+
* @default false
|
|
463
|
+
*/
|
|
464
|
+
zeroMinWidth: n.bool
|
|
465
|
+
});
|
|
466
|
+
if (process.env.NODE_ENV !== "production") {
|
|
467
|
+
const e = H("Grid", y);
|
|
468
|
+
y["propTypes"] = g({}, y.propTypes, {
|
|
469
|
+
direction: e("container"),
|
|
470
|
+
lg: e("item"),
|
|
471
|
+
md: e("item"),
|
|
472
|
+
sm: e("item"),
|
|
473
|
+
spacing: e("container"),
|
|
474
|
+
wrap: e("container"),
|
|
475
|
+
xs: e("item"),
|
|
476
|
+
zeroMinWidth: e("item")
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
const me = y;
|
|
480
|
+
export {
|
|
481
|
+
me as G
|
|
482
|
+
};
|
|
@@ -6,7 +6,7 @@ import { c as f } from "./createSvgIcon-3132bbd0.js";
|
|
|
6
6
|
import { C as Y } from "./Close-b32563d1.js";
|
|
7
7
|
import { M as oo } from "./Paper-3f81bc8f.js";
|
|
8
8
|
import { I as eo } from "./IconButton-f866a4c2.js";
|
|
9
|
-
import { T as to } from "./Typography-
|
|
9
|
+
import { T as to } from "./Typography-62f05112.js";
|
|
10
10
|
function so(o) {
|
|
11
11
|
return R("MuiAlert", o);
|
|
12
12
|
}
|