dq-cus-lib 1.0.13 → 1.1.1

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.
Files changed (87) hide show
  1. package/dist/index.css +181 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.ts +29 -6
  4. package/dist/index.js +365 -1
  5. package/dist/index.js.map +1 -0
  6. package/package.json +15 -40
  7. package/dist/Card-Bfg8P2ba.mjs +0 -70
  8. package/dist/Card-DZoz07x1.js +0 -1
  9. package/dist/CardContent-C3iE4rdC.js +0 -1
  10. package/dist/CardContent-CX83Iz5u.mjs +0 -73
  11. package/dist/Container-CHiQwwon.mjs +0 -3470
  12. package/dist/Container-DRUrQLPe.js +0 -34
  13. package/dist/Paper-B1BWzC32.js +0 -3
  14. package/dist/Paper-px0ZrIl-.mjs +0 -725
  15. package/dist/Typography-DjYh_lcA.js +0 -1
  16. package/dist/Typography-dhPvE-yk.mjs +0 -524
  17. package/dist/button-BTe1MJmo.mjs +0 -2052
  18. package/dist/button-XEz-DvWZ.js +0 -132
  19. package/dist/components/common/loading.d.ts +0 -2
  20. package/dist/components/common/login-image.d.ts +0 -6
  21. package/dist/components/error.page/error.d.ts +0 -2
  22. package/dist/components/landing.page/constants.d.ts +0 -5
  23. package/dist/components/landing.page/features.d.ts +0 -3
  24. package/dist/components/landing.page/footer.d.ts +0 -7
  25. package/dist/components/landing.page/header.d.ts +0 -7
  26. package/dist/components/landing.page/hero.d.ts +0 -7
  27. package/dist/components/layout.page/api-calls.d.ts +0 -2
  28. package/dist/components/layout.page/constants.d.ts +0 -9
  29. package/dist/components/layout.page/footer.d.ts +0 -2
  30. package/dist/components/layout.page/header.d.ts +0 -5
  31. package/dist/components/signin.page/api-calls.d.ts +0 -1
  32. package/dist/components/signin.page/business-rules.d.ts +0 -1
  33. package/dist/components/signin.page/footer-links.d.ts +0 -10
  34. package/dist/components/signin.page/sign-in.d.ts +0 -6
  35. package/dist/components/user.page/card.d.ts +0 -12
  36. package/dist/components/user.page/constants.d.ts +0 -16
  37. package/dist/components/user.page/navigator-icon.d.ts +0 -8
  38. package/dist/components/user.page/navigator-link.d.ts +0 -8
  39. package/dist/constants-CYWfA_it.js +0 -1
  40. package/dist/constants-bixGJi69.mjs +0 -10
  41. package/dist/dashboard.page.d.ts +0 -4
  42. package/dist/dashboard.page.js +0 -1
  43. package/dist/dashboard.page.mjs +0 -52
  44. package/dist/dq-cus-lib.css +0 -1
  45. package/dist/error-B0u1MssC.mjs +0 -17
  46. package/dist/error-C-Fm8lre.js +0 -1
  47. package/dist/error.page.d.ts +0 -4
  48. package/dist/error.page.js +0 -1
  49. package/dist/error.page.mjs +0 -10
  50. package/dist/favicon.ico +0 -0
  51. package/dist/header-BLuHRYED.js +0 -1
  52. package/dist/header-DZeF4MvE.mjs +0 -353
  53. package/dist/index-CCRuOAqd.js +0 -292
  54. package/dist/index-gUmyoYAp.mjs +0 -477
  55. package/dist/index.mjs +0 -16
  56. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  57. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  58. package/dist/landing.page.d.ts +0 -4
  59. package/dist/landing.page.js +0 -3
  60. package/dist/landing.page.mjs +0 -181
  61. package/dist/layout.page.d.ts +0 -4
  62. package/dist/layout.page.js +0 -1
  63. package/dist/layout.page.mjs +0 -24
  64. package/dist/library/index.d.ts +0 -6
  65. package/dist/link-button-BkYJm52P.mjs +0 -52
  66. package/dist/link-button-yZmEF1A6.js +0 -19
  67. package/dist/logout-error.page.d.ts +0 -4
  68. package/dist/logout-error.page.js +0 -1
  69. package/dist/logout-error.page.mjs +0 -31
  70. package/dist/manifest.json +0 -15
  71. package/dist/pages/dashboard.page.d.ts +0 -2
  72. package/dist/pages/error.page.d.ts +0 -2
  73. package/dist/pages/landing.page.d.ts +0 -7
  74. package/dist/pages/layout.page.d.ts +0 -8
  75. package/dist/pages/logout-error.page.d.ts +0 -6
  76. package/dist/pages/signin.page.d.ts +0 -6
  77. package/dist/pages/wrappers/auth.wrapper.d.ts +0 -8
  78. package/dist/pages/wrappers/common-page.wrapper.d.ts +0 -2
  79. package/dist/pages/wrappers/link.navigator.d.ts +0 -8
  80. package/dist/pages/wrappers/non-auth.wrapper.d.ts +0 -6
  81. package/dist/resources/constants.d.ts +0 -7
  82. package/dist/resources/images.d.ts +0 -6
  83. package/dist/resources/routes.d.ts +0 -9
  84. package/dist/resources/status.d.ts +0 -4
  85. package/dist/signin.page.d.ts +0 -4
  86. package/dist/signin.page.js +0 -17
  87. package/dist/signin.page.mjs +0 -9761
@@ -1,725 +0,0 @@
1
- import { useTheme as ue, createBox as le, unstable_memoTheme as fe } from "@mui/system";
2
- import { k as R, l as pe, m as de, i as me, T as V, j as ye, g as j, n as ge, o as be, P as e, p as ve, c as _, u as z, s as q, q as C, t as k } from "./Container-CHiQwwon.mjs";
3
- import * as b from "react";
4
- import { j as B } from "./jsx-runtime-tc70JA_2.mjs";
5
- import { ThemeContext as he } from "@emotion/react";
6
- function Oe(n) {
7
- return Object.keys(n).length === 0;
8
- }
9
- function Te(n = null) {
10
- const r = b.useContext(he);
11
- return !r || Oe(r) ? n : r;
12
- }
13
- const we = R();
14
- function W(n = we) {
15
- return Te(n);
16
- }
17
- const Pe = (n) => {
18
- const r = {
19
- systemProps: {},
20
- otherProps: {}
21
- }, t = n?.theme?.unstable_sxConfig ?? de;
22
- return Object.keys(n).forEach((o) => {
23
- t[o] ? r.systemProps[o] = n[o] : r.otherProps[o] = n[o];
24
- }), r;
25
- };
26
- function $e(n) {
27
- const {
28
- sx: r,
29
- ...t
30
- } = n, {
31
- systemProps: o,
32
- otherProps: s
33
- } = Pe(t);
34
- let i;
35
- return Array.isArray(r) ? i = [o, ...r] : typeof r == "function" ? i = (...c) => {
36
- const a = r(...c);
37
- return pe(a) ? {
38
- ...o,
39
- ...a
40
- } : o;
41
- } : i = {
42
- ...o,
43
- ...r
44
- }, {
45
- ...s,
46
- sx: i
47
- };
48
- }
49
- function A() {
50
- const n = ue(me);
51
- return process.env.NODE_ENV !== "production" && b.useDebugValue(n), n[V] || n;
52
- }
53
- function Se(n) {
54
- const {
55
- theme: r,
56
- name: t,
57
- props: o
58
- } = n;
59
- return !r || !r.components || !r.components[t] || !r.components[t].defaultProps ? o : ye(r.components[t].defaultProps, o);
60
- }
61
- function xe({
62
- props: n,
63
- name: r,
64
- defaultTheme: t,
65
- themeId: o
66
- }) {
67
- let s = W(t);
68
- return o && (s = s[o] || s), Se({
69
- theme: s,
70
- name: r,
71
- props: n
72
- });
73
- }
74
- function I(n, r, t = "Mui") {
75
- const o = {};
76
- return r.forEach((s) => {
77
- o[s] = j(n, s, t);
78
- }), o;
79
- }
80
- const Ne = I("MuiBox", ["root"]), je = be(), Ee = le({
81
- themeId: V,
82
- defaultTheme: je,
83
- defaultClassName: Ne.root,
84
- generateClassName: ge.generate
85
- });
86
- process.env.NODE_ENV !== "production" && (Ee.propTypes = {
87
- // ┌────────────────────────────── Warning ──────────────────────────────┐
88
- // │ These PropTypes are generated from the TypeScript type definitions. │
89
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
90
- // └─────────────────────────────────────────────────────────────────────┘
91
- /**
92
- * @ignore
93
- */
94
- children: e.node,
95
- /**
96
- * The component used for the root node.
97
- * Either a string to use a HTML element or a component.
98
- */
99
- component: e.elementType,
100
- /**
101
- * The system prop that allows defining system overrides as well as additional CSS styles.
102
- */
103
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
104
- });
105
- function Ge(n, r) {
106
- return /* @__PURE__ */ b.isValidElement(n) && r.indexOf(
107
- // For server components `muiName` is available in element.type._payload.value.muiName
108
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
109
- // eslint-disable-next-line no-underscore-dangle
110
- n.type.muiName ?? n.type?._payload?.value?.muiName
111
- ) !== -1;
112
- }
113
- function U(n, r, t = void 0) {
114
- const o = {};
115
- for (const s in n) {
116
- const i = n[s];
117
- let c = "", a = !0;
118
- for (let p = 0; p < i.length; p += 1) {
119
- const u = i[p];
120
- u && (c += (a === !0 ? "" : " ") + r(u), a = !1, t && t[u] && (c += " " + t[u]));
121
- }
122
- o[s] = c;
123
- }
124
- return o;
125
- }
126
- const Ce = ve(), ke = (n, r) => n.filter((t) => r.includes(t)), O = (n, r, t) => {
127
- const o = n.keys[0];
128
- Array.isArray(r) ? r.forEach((s, i) => {
129
- t((c, a) => {
130
- i <= n.keys.length - 1 && (i === 0 ? Object.assign(c, a) : c[n.up(n.keys[i])] = a);
131
- }, s);
132
- }) : r && typeof r == "object" ? (Object.keys(r).length > n.keys.length ? n.keys : ke(n.keys, Object.keys(r))).forEach((i) => {
133
- if (n.keys.includes(i)) {
134
- const c = r[i];
135
- c !== void 0 && t((a, p) => {
136
- o === i ? Object.assign(a, p) : a[n.up(i)] = p;
137
- }, c);
138
- }
139
- }) : (typeof r == "number" || typeof r == "string") && t((s, i) => {
140
- Object.assign(s, i);
141
- }, r);
142
- };
143
- function T(n) {
144
- return `--Grid-${n}Spacing`;
145
- }
146
- function w(n) {
147
- return `--Grid-parent-${n}Spacing`;
148
- }
149
- const M = "--Grid-columns", h = "--Grid-parent-columns", Me = ({
150
- theme: n,
151
- ownerState: r
152
- }) => {
153
- const t = {};
154
- return O(n.breakpoints, r.size, (o, s) => {
155
- let i = {};
156
- s === "grow" && (i = {
157
- flexBasis: 0,
158
- flexGrow: 1,
159
- maxWidth: "100%"
160
- }), s === "auto" && (i = {
161
- flexBasis: "auto",
162
- flexGrow: 0,
163
- flexShrink: 0,
164
- maxWidth: "none",
165
- width: "auto"
166
- }), typeof s == "number" && (i = {
167
- flexGrow: 0,
168
- flexBasis: "auto",
169
- width: `calc(100% * ${s} / var(${h}) - (var(${h}) - ${s}) * (var(${w("column")}) / var(${h})))`
170
- }), o(t, i);
171
- }), t;
172
- }, De = ({
173
- theme: n,
174
- ownerState: r
175
- }) => {
176
- const t = {};
177
- return O(n.breakpoints, r.offset, (o, s) => {
178
- let i = {};
179
- s === "auto" && (i = {
180
- marginLeft: "auto"
181
- }), typeof s == "number" && (i = {
182
- marginLeft: s === 0 ? "0px" : `calc(100% * ${s} / var(${h}) + var(${w("column")}) * ${s} / var(${h}))`
183
- }), o(t, i);
184
- }), t;
185
- }, Re = ({
186
- theme: n,
187
- ownerState: r
188
- }) => {
189
- if (!r.container)
190
- return {};
191
- const t = {
192
- [M]: 12
193
- };
194
- return O(n.breakpoints, r.columns, (o, s) => {
195
- const i = s ?? 12;
196
- o(t, {
197
- [M]: i,
198
- "> *": {
199
- [h]: i
200
- }
201
- });
202
- }), t;
203
- }, Ve = ({
204
- theme: n,
205
- ownerState: r
206
- }) => {
207
- if (!r.container)
208
- return {};
209
- const t = {};
210
- return O(n.breakpoints, r.rowSpacing, (o, s) => {
211
- const i = typeof s == "string" ? s : n.spacing?.(s);
212
- o(t, {
213
- [T("row")]: i,
214
- "> *": {
215
- [w("row")]: i
216
- }
217
- });
218
- }), t;
219
- }, _e = ({
220
- theme: n,
221
- ownerState: r
222
- }) => {
223
- if (!r.container)
224
- return {};
225
- const t = {};
226
- return O(n.breakpoints, r.columnSpacing, (o, s) => {
227
- const i = typeof s == "string" ? s : n.spacing?.(s);
228
- o(t, {
229
- [T("column")]: i,
230
- "> *": {
231
- [w("column")]: i
232
- }
233
- });
234
- }), t;
235
- }, ze = ({
236
- theme: n,
237
- ownerState: r
238
- }) => {
239
- if (!r.container)
240
- return {};
241
- const t = {};
242
- return O(n.breakpoints, r.direction, (o, s) => {
243
- o(t, {
244
- flexDirection: s
245
- });
246
- }), t;
247
- }, qe = ({
248
- ownerState: n
249
- }) => ({
250
- minWidth: 0,
251
- boxSizing: "border-box",
252
- ...n.container && {
253
- display: "flex",
254
- flexWrap: "wrap",
255
- ...n.wrap && n.wrap !== "wrap" && {
256
- flexWrap: n.wrap
257
- },
258
- gap: `var(${T("row")}) var(${T("column")})`
259
- }
260
- }), Be = (n) => {
261
- const r = [];
262
- return Object.entries(n).forEach(([t, o]) => {
263
- o !== !1 && o !== void 0 && r.push(`grid-${t}-${String(o)}`);
264
- }), r;
265
- }, We = (n, r = "xs") => {
266
- function t(o) {
267
- return o === void 0 ? !1 : typeof o == "string" && !Number.isNaN(Number(o)) || typeof o == "number" && o > 0;
268
- }
269
- if (t(n))
270
- return [`spacing-${r}-${String(n)}`];
271
- if (typeof n == "object" && !Array.isArray(n)) {
272
- const o = [];
273
- return Object.entries(n).forEach(([s, i]) => {
274
- t(i) && o.push(`spacing-${s}-${String(i)}`);
275
- }), o;
276
- }
277
- return [];
278
- }, Ae = (n) => n === void 0 ? [] : typeof n == "object" ? Object.entries(n).map(([r, t]) => `direction-${r}-${t}`) : [`direction-xs-${String(n)}`], Ie = (n) => ["item", "zeroMinWidth"].includes(n) ? `The \`${n}\` prop has been removed and is no longer necessary. You can safely remove it.` : `The \`${n}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`, D = [];
279
- function Ue(n, r) {
280
- const t = [];
281
- n.item !== void 0 && (delete n.item, t.push("item")), n.zeroMinWidth !== void 0 && (delete n.zeroMinWidth, t.push("zeroMinWidth")), r.keys.forEach((o) => {
282
- n[o] !== void 0 && (t.push(o), delete n[o]);
283
- }), process.env.NODE_ENV !== "production" && t.forEach((o) => {
284
- D.includes(o) || (D.push(o), console.warn(`MUI Grid: ${Ie(o)}
285
- `));
286
- });
287
- }
288
- const Le = R(), Fe = Ce("div", {
289
- name: "MuiGrid",
290
- slot: "Root"
291
- });
292
- function He(n) {
293
- return xe({
294
- props: n,
295
- name: "MuiGrid",
296
- defaultTheme: Le
297
- });
298
- }
299
- function Ke(n = {}) {
300
- const {
301
- // This will allow adding custom styled fn (for example for custom sx style function)
302
- createStyledComponent: r = Fe,
303
- useThemeProps: t = He,
304
- useTheme: o = W,
305
- componentName: s = "MuiGrid"
306
- } = n, i = (u, l) => {
307
- const {
308
- container: m,
309
- direction: f,
310
- spacing: y,
311
- wrap: d,
312
- size: P
313
- } = u, $ = {
314
- root: ["root", m && "container", d !== "wrap" && `wrap-xs-${String(d)}`, ...Ae(f), ...Be(P), ...m ? We(y, l.breakpoints.keys[0]) : []]
315
- };
316
- return U($, (S) => j(s, S), {});
317
- };
318
- function c(u, l, m = () => !0) {
319
- const f = {};
320
- return u === null || (Array.isArray(u) ? u.forEach((y, d) => {
321
- y !== null && m(y) && l.keys[d] && (f[l.keys[d]] = y);
322
- }) : typeof u == "object" ? Object.keys(u).forEach((y) => {
323
- const d = u[y];
324
- d != null && m(d) && (f[y] = d);
325
- }) : f[l.keys[0]] = u), f;
326
- }
327
- const a = r(Re, _e, Ve, Me, ze, qe, De), p = /* @__PURE__ */ b.forwardRef(function(l, m) {
328
- const f = o(), y = t(l), d = $e(y);
329
- Ue(d, f.breakpoints);
330
- const {
331
- className: P,
332
- children: $,
333
- columns: S = 12,
334
- container: E = !1,
335
- component: K = "div",
336
- direction: Y = "row",
337
- wrap: J = "wrap",
338
- size: Q = {},
339
- offset: X = {},
340
- spacing: x = 0,
341
- rowSpacing: Z = x,
342
- columnSpacing: ee = x,
343
- unstable_level: v = 0,
344
- ...ne
345
- } = d, re = c(Q, f.breakpoints, (g) => g !== !1), te = c(X, f.breakpoints), oe = l.columns ?? (v ? void 0 : S), se = l.spacing ?? (v ? void 0 : x), ie = l.rowSpacing ?? l.spacing ?? (v ? void 0 : Z), ae = l.columnSpacing ?? l.spacing ?? (v ? void 0 : ee), G = {
346
- ...d,
347
- level: v,
348
- columns: oe,
349
- container: E,
350
- direction: Y,
351
- wrap: J,
352
- spacing: se,
353
- rowSpacing: ie,
354
- columnSpacing: ae,
355
- size: re,
356
- offset: te
357
- }, ce = i(G, f);
358
- return /* @__PURE__ */ B.jsx(a, {
359
- ref: m,
360
- as: K,
361
- ownerState: G,
362
- className: _(ce.root, P),
363
- ...ne,
364
- children: b.Children.map($, (g) => /* @__PURE__ */ b.isValidElement(g) && Ge(g, ["Grid"]) && E && g.props.container ? /* @__PURE__ */ b.cloneElement(g, {
365
- unstable_level: g.props?.unstable_level ?? v + 1
366
- }) : g)
367
- });
368
- });
369
- return process.env.NODE_ENV !== "production" && (p.propTypes = {
370
- children: e.node,
371
- className: e.string,
372
- columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
373
- columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
374
- component: e.elementType,
375
- container: e.bool,
376
- direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
377
- offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
378
- rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
379
- size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
380
- spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
381
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
382
- wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
383
- }), p.muiName = "Grid", p;
384
- }
385
- function Ye(n, r) {
386
- if (process.env.NODE_ENV === "production")
387
- return () => () => null;
388
- const t = r ? {
389
- ...r.propTypes
390
- } : null;
391
- return (s) => (i, c, a, p, u, ...l) => {
392
- const m = u || c, f = t?.[m];
393
- if (f) {
394
- const y = f(i, c, a, p, u, ...l);
395
- if (y)
396
- return y;
397
- }
398
- return typeof i[c] < "u" && !i[s] ? new Error(`The prop \`${m}\` of \`${n}\` can only be used together with the \`${s}\` prop.`) : null;
399
- };
400
- }
401
- const L = Ke({
402
- createStyledComponent: q("div", {
403
- name: "MuiGrid",
404
- slot: "Root",
405
- overridesResolver: (n, r) => {
406
- const {
407
- ownerState: t
408
- } = n;
409
- return [r.root, t.container && r.container];
410
- }
411
- }),
412
- componentName: "MuiGrid",
413
- useThemeProps: (n) => z({
414
- props: n,
415
- name: "MuiGrid"
416
- }),
417
- useTheme: A
418
- });
419
- process.env.NODE_ENV !== "production" && (L.propTypes = {
420
- // ┌────────────────────────────── Warning ──────────────────────────────┐
421
- // │ These PropTypes are generated from the TypeScript type definitions. │
422
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
423
- // └─────────────────────────────────────────────────────────────────────┘
424
- /**
425
- * The content of the component.
426
- */
427
- children: e.node,
428
- /**
429
- * The number of columns.
430
- * @default 12
431
- */
432
- columns: e.oneOfType([e.arrayOf(e.number), e.number, e.object]),
433
- /**
434
- * Defines the horizontal space between the type `item` components.
435
- * It overrides the value of the `spacing` prop.
436
- */
437
- columnSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
438
- /**
439
- * If `true`, the component will have the flex *container* behavior.
440
- * You should be wrapping *items* with a *container*.
441
- * @default false
442
- */
443
- container: e.bool,
444
- /**
445
- * Defines the `flex-direction` style property.
446
- * It is applied for all screen sizes.
447
- * @default 'row'
448
- */
449
- direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
450
- /**
451
- * Defines the offset value for the type `item` components.
452
- */
453
- offset: e.oneOfType([e.string, e.number, e.arrayOf(e.oneOfType([e.string, e.number])), e.object]),
454
- /**
455
- * Defines the vertical space between the type `item` components.
456
- * It overrides the value of the `spacing` prop.
457
- */
458
- rowSpacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
459
- /**
460
- * Defines the size of the the type `item` components.
461
- */
462
- size: e.oneOfType([e.string, e.bool, e.number, e.arrayOf(e.oneOfType([e.string, e.bool, e.number])), e.object]),
463
- /**
464
- * Defines the space between the type `item` components.
465
- * It can only be used on a type `container` component.
466
- * @default 0
467
- */
468
- spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
469
- /**
470
- * @ignore
471
- */
472
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
473
- /**
474
- * @internal
475
- * The level of the grid starts from `0` and increases when the grid nests
476
- * inside another grid. Nesting is defined as a container Grid being a direct
477
- * child of a container Grid.
478
- *
479
- * ```js
480
- * <Grid container> // level 0
481
- * <Grid container> // level 1
482
- * <Grid container> // level 2
483
- * ```
484
- *
485
- * Only consecutive grid is considered nesting. A grid container will start at
486
- * `0` if there are non-Grid container element above it.
487
- *
488
- * ```js
489
- * <Grid container> // level 0
490
- * <div>
491
- * <Grid container> // level 0
492
- * ```
493
- *
494
- * ```js
495
- * <Grid container> // level 0
496
- * <Grid>
497
- * <Grid container> // level 0
498
- * ```
499
- */
500
- unstable_level: e.number,
501
- /**
502
- * Defines the `flex-wrap` style property.
503
- * It's applied for all screen sizes.
504
- * @default 'wrap'
505
- */
506
- wrap: e.oneOf(["nowrap", "wrap-reverse", "wrap"])
507
- });
508
- if (process.env.NODE_ENV !== "production") {
509
- const n = L, r = Ye("Grid", n);
510
- n.propTypes = {
511
- // eslint-disable-next-line react/forbid-foreign-prop-types
512
- ...n.propTypes,
513
- direction: r("container"),
514
- spacing: r("container"),
515
- wrap: r("container")
516
- };
517
- }
518
- const Je = fe;
519
- function Qe(n) {
520
- return typeof n.main == "string";
521
- }
522
- function Xe(n, r = []) {
523
- if (!Qe(n))
524
- return !1;
525
- for (const t of r)
526
- if (!n.hasOwnProperty(t) || typeof n[t] != "string")
527
- return !1;
528
- return !0;
529
- }
530
- function fn(n = []) {
531
- return ([, r]) => r && Xe(r, n);
532
- }
533
- function Ze(n) {
534
- const r = typeof n;
535
- switch (r) {
536
- case "number":
537
- return Number.isNaN(n) ? "NaN" : Number.isFinite(n) ? n !== Math.floor(n) ? "float" : "number" : "Infinity";
538
- case "object":
539
- return n === null ? "null" : n.constructor.name;
540
- default:
541
- return r;
542
- }
543
- }
544
- function F(n, r, t, o) {
545
- const s = n[r];
546
- if (s == null || !Number.isInteger(s)) {
547
- const i = Ze(s);
548
- return new RangeError(`Invalid ${o} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`);
549
- }
550
- return null;
551
- }
552
- function H(n, r, t, o) {
553
- return n[r] === void 0 ? null : F(n, r, t, o);
554
- }
555
- function N() {
556
- return null;
557
- }
558
- H.isRequired = F;
559
- N.isRequired = N;
560
- const en = process.env.NODE_ENV === "production" ? N : H;
561
- function nn(n, r) {
562
- return process.env.NODE_ENV === "production" ? () => null : function(...o) {
563
- return n(...o) || r(...o);
564
- };
565
- }
566
- function rn(n) {
567
- return j("MuiPaper", n);
568
- }
569
- I("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"]);
570
- const tn = (n) => {
571
- const {
572
- square: r,
573
- elevation: t,
574
- variant: o,
575
- classes: s
576
- } = n, i = {
577
- root: ["root", o, !r && "rounded", o === "elevation" && `elevation${t}`]
578
- };
579
- return U(i, rn, s);
580
- }, on = q("div", {
581
- name: "MuiPaper",
582
- slot: "Root",
583
- overridesResolver: (n, r) => {
584
- const {
585
- ownerState: t
586
- } = n;
587
- return [r.root, r[t.variant], !t.square && r.rounded, t.variant === "elevation" && r[`elevation${t.elevation}`]];
588
- }
589
- })(Je(({
590
- theme: n
591
- }) => ({
592
- backgroundColor: (n.vars || n).palette.background.paper,
593
- color: (n.vars || n).palette.text.primary,
594
- transition: n.transitions.create("box-shadow"),
595
- variants: [{
596
- props: ({
597
- ownerState: r
598
- }) => !r.square,
599
- style: {
600
- borderRadius: n.shape.borderRadius
601
- }
602
- }, {
603
- props: {
604
- variant: "outlined"
605
- },
606
- style: {
607
- border: `1px solid ${(n.vars || n).palette.divider}`
608
- }
609
- }, {
610
- props: {
611
- variant: "elevation"
612
- },
613
- style: {
614
- boxShadow: "var(--Paper-shadow)",
615
- backgroundImage: "var(--Paper-overlay)"
616
- }
617
- }]
618
- }))), sn = /* @__PURE__ */ b.forwardRef(function(r, t) {
619
- const o = z({
620
- props: r,
621
- name: "MuiPaper"
622
- }), s = A(), {
623
- className: i,
624
- component: c = "div",
625
- elevation: a = 1,
626
- square: p = !1,
627
- variant: u = "elevation",
628
- ...l
629
- } = o, m = {
630
- ...o,
631
- component: c,
632
- elevation: a,
633
- square: p,
634
- variant: u
635
- }, f = tn(m);
636
- return process.env.NODE_ENV !== "production" && s.shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
637
- `)), /* @__PURE__ */ B.jsx(on, {
638
- as: c,
639
- ownerState: m,
640
- className: _(f.root, i),
641
- ref: t,
642
- ...l,
643
- style: {
644
- ...u === "elevation" && {
645
- "--Paper-shadow": (s.vars || s).shadows[a],
646
- ...s.vars && {
647
- "--Paper-overlay": s.vars.overlays?.[a]
648
- },
649
- ...!s.vars && s.palette.mode === "dark" && {
650
- "--Paper-overlay": `linear-gradient(${C("#fff", k(a))}, ${C("#fff", k(a))})`
651
- }
652
- },
653
- ...l.style
654
- }
655
- });
656
- });
657
- process.env.NODE_ENV !== "production" && (sn.propTypes = {
658
- // ┌────────────────────────────── Warning ──────────────────────────────┐
659
- // │ These PropTypes are generated from the TypeScript type definitions. │
660
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
661
- // └─────────────────────────────────────────────────────────────────────┘
662
- /**
663
- * The content of the component.
664
- */
665
- children: e.node,
666
- /**
667
- * Override or extend the styles applied to the component.
668
- */
669
- classes: e.object,
670
- /**
671
- * @ignore
672
- */
673
- className: e.string,
674
- /**
675
- * The component used for the root node.
676
- * Either a string to use a HTML element or a component.
677
- */
678
- component: e.elementType,
679
- /**
680
- * Shadow depth, corresponds to `dp` in the spec.
681
- * It accepts values between 0 and 24 inclusive.
682
- * @default 1
683
- */
684
- elevation: nn(en, (n) => {
685
- const {
686
- elevation: r,
687
- variant: t
688
- } = n;
689
- return r > 0 && t === "outlined" ? new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
690
- }),
691
- /**
692
- * If `true`, rounded corners are disabled.
693
- * @default false
694
- */
695
- square: e.bool,
696
- /**
697
- * @ignore
698
- */
699
- style: e.object,
700
- /**
701
- * The system prop that allows defining system overrides as well as additional CSS styles.
702
- */
703
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
704
- /**
705
- * The variant to use.
706
- * @default 'elevation'
707
- */
708
- variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
709
- });
710
- export {
711
- Ee as B,
712
- L as G,
713
- sn as P,
714
- A as a,
715
- I as b,
716
- U as c,
717
- fn as d,
718
- nn as e,
719
- en as f,
720
- Se as g,
721
- $e as h,
722
- Ge as i,
723
- Je as m,
724
- Te as u
725
- };