@hai-dev/ui-kit 1.0.5 → 1.0.6

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 (39) hide show
  1. package/dist/Box-CiYPzbPd.js +56 -0
  2. package/dist/{Button-DDlVTM6i.js → Button-chJUX25I.js} +26 -24
  3. package/dist/ButtonBase-DZwhOh56.js +966 -0
  4. package/dist/{CircularProgress-CscJm1An.js → CircularProgress-BCrSQadM.js} +113 -105
  5. package/dist/{DialogTitle-KN1sayHD.js → DialogTitle-BUcXvkzd.js} +638 -884
  6. package/dist/Typography-BmYEfS8y.js +257 -0
  7. package/dist/assets/circular-progress-loader.css +1 -0
  8. package/dist/chainPropTypes-HYSaT0L0.js +387 -0
  9. package/dist/components/button/button.js +1 -1
  10. package/dist/components/circular-progress-loader/circular-progress-loader.d.ts +3 -0
  11. package/dist/components/circular-progress-loader/circular-progress-loader.js +44 -0
  12. package/dist/components/circular-progress-loader/circular-progress-loader.stories.d.ts +7 -0
  13. package/dist/components/circular-progress-loader/constants.d.ts +2 -0
  14. package/dist/components/circular-progress-loader/constants.js +5 -0
  15. package/dist/components/circular-progress-loader/index.d.ts +1 -0
  16. package/dist/components/circular-progress-loader/index.js +4 -0
  17. package/dist/components/circular-progress-loader/types.d.ts +6 -0
  18. package/dist/components/circular-progress-loader/types.js +1 -0
  19. package/dist/components/index.d.ts +1 -0
  20. package/dist/components/index.js +6 -4
  21. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +30 -29
  22. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +22 -73
  23. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
  24. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +13 -11
  25. package/dist/constants.d.ts +1 -0
  26. package/dist/constants.js +2 -1
  27. package/dist/{createTheme-DSHGFfg6.js → createTheme-BfVKUMHQ.js} +10 -10
  28. package/dist/decorators/centered-decorator.d.ts +3 -0
  29. package/dist/decorators/centered-decorator.js +16 -0
  30. package/dist/decorators/index.d.ts +1 -0
  31. package/dist/decorators/index.js +4 -0
  32. package/dist/decorators/types.d.ts +4 -0
  33. package/dist/decorators/types.js +1 -0
  34. package/dist/{extendSxProp-CzeED7BH.js → extendSxProp-bpz0eCso.js} +3 -3
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.js +16 -14
  37. package/dist/useId-CK6Kn3Tn.js +21 -0
  38. package/package.json +8 -8
  39. package/dist/ButtonBase-CXGZ-DBC.js +0 -1346
@@ -0,0 +1,387 @@
1
+ import { r as U, k as Z, l as k, E as z, m as ee, n as q, o as O, h as te, p as re, s as ne, a as J, i as se, e as oe, c as ie, P as F, b as ae, T as ue } from "./createTheme-BfVKUMHQ.js";
2
+ import * as D from "react";
3
+ import "react/jsx-runtime";
4
+ var V, X;
5
+ function ce() {
6
+ if (X) return V;
7
+ X = 1;
8
+ var e = U(), t = {
9
+ childContextTypes: !0,
10
+ contextType: !0,
11
+ contextTypes: !0,
12
+ defaultProps: !0,
13
+ displayName: !0,
14
+ getDefaultProps: !0,
15
+ getDerivedStateFromError: !0,
16
+ getDerivedStateFromProps: !0,
17
+ mixins: !0,
18
+ propTypes: !0,
19
+ type: !0
20
+ }, r = {
21
+ name: !0,
22
+ length: !0,
23
+ prototype: !0,
24
+ caller: !0,
25
+ callee: !0,
26
+ arguments: !0,
27
+ arity: !0
28
+ }, n = {
29
+ $$typeof: !0,
30
+ render: !0,
31
+ defaultProps: !0,
32
+ displayName: !0,
33
+ propTypes: !0
34
+ }, o = {
35
+ $$typeof: !0,
36
+ compare: !0,
37
+ defaultProps: !0,
38
+ displayName: !0,
39
+ propTypes: !0,
40
+ type: !0
41
+ }, s = {};
42
+ s[e.ForwardRef] = n, s[e.Memo] = o;
43
+ function i(p) {
44
+ return e.isMemo(p) ? o : s[p.$$typeof] || t;
45
+ }
46
+ var a = Object.defineProperty, d = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, b = Object.getPrototypeOf, _ = Object.prototype;
47
+ function E(p, m, N) {
48
+ if (typeof m != "string") {
49
+ if (_) {
50
+ var R = b(m);
51
+ R && R !== _ && E(p, R, N);
52
+ }
53
+ var v = d(m);
54
+ u && (v = v.concat(u(m)));
55
+ for (var g = i(p), x = i(m), T = 0; T < v.length; ++T) {
56
+ var c = v[T];
57
+ if (!r[c] && !(N && N[c]) && !(x && x[c]) && !(g && g[c])) {
58
+ var l = f(m, c);
59
+ try {
60
+ a(p, c, l);
61
+ } catch {
62
+ }
63
+ }
64
+ }
65
+ }
66
+ return p;
67
+ }
68
+ return V = E, V;
69
+ }
70
+ ce();
71
+ var C = function(t, r) {
72
+ var n = arguments;
73
+ if (r == null || !k.call(r, "css"))
74
+ return D.createElement.apply(void 0, n);
75
+ var o = n.length, s = new Array(o);
76
+ s[0] = z, s[1] = ee(t, r);
77
+ for (var i = 2; i < o; i++)
78
+ s[i] = n[i];
79
+ return D.createElement.apply(null, s);
80
+ };
81
+ (function(e) {
82
+ var t;
83
+ t || (t = e.JSX || (e.JSX = {}));
84
+ })(C || (C = {}));
85
+ function le() {
86
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
87
+ t[r] = arguments[r];
88
+ return Z(t);
89
+ }
90
+ function xe() {
91
+ var e = le.apply(void 0, arguments), t = "animation-" + e.name;
92
+ return {
93
+ name: t,
94
+ styles: "@keyframes " + t + "{" + e.styles + "}",
95
+ anim: 1,
96
+ toString: function() {
97
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
98
+ }
99
+ };
100
+ }
101
+ function B(e, t = "") {
102
+ return e.displayName || e.name || t;
103
+ }
104
+ function K(e, t, r) {
105
+ const n = B(t);
106
+ return e.displayName || (n !== "" ? `${r}(${n})` : r);
107
+ }
108
+ function fe(e) {
109
+ if (e != null) {
110
+ if (typeof e == "string")
111
+ return e;
112
+ if (typeof e == "function")
113
+ return B(e, "Component");
114
+ if (typeof e == "object")
115
+ switch (e.$$typeof) {
116
+ case q.ForwardRef:
117
+ return K(e, e.render, "ForwardRef");
118
+ case q.Memo:
119
+ return K(e, e.type, "memo");
120
+ default:
121
+ return;
122
+ }
123
+ }
124
+ }
125
+ function ye(e) {
126
+ const {
127
+ variants: t,
128
+ ...r
129
+ } = e, n = {
130
+ variants: t,
131
+ style: O(r),
132
+ isProcessed: !0
133
+ };
134
+ return n.style === r || t && t.forEach((o) => {
135
+ typeof o.style != "function" && (o.style = O(o.style));
136
+ }), n;
137
+ }
138
+ const de = te();
139
+ function L(e) {
140
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
141
+ }
142
+ function w(e, t) {
143
+ return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
144
+ }
145
+ function me(e) {
146
+ return e ? (t, r) => r[e] : null;
147
+ }
148
+ function he(e, t, r) {
149
+ e.theme = Pe(e.theme) ? r : e.theme[t] || e.theme;
150
+ }
151
+ function j(e, t, r) {
152
+ const n = typeof t == "function" ? t(e) : t;
153
+ if (Array.isArray(n))
154
+ return n.flatMap((o) => j(e, o, r));
155
+ if (Array.isArray(n?.variants)) {
156
+ let o;
157
+ if (n.isProcessed)
158
+ o = r ? w(n.style, r) : n.style;
159
+ else {
160
+ const {
161
+ variants: s,
162
+ ...i
163
+ } = n;
164
+ o = r ? w(O(i), r) : i;
165
+ }
166
+ return Y(e, n.variants, [o], r);
167
+ }
168
+ return n?.isProcessed ? r ? w(O(n.style), r) : n.style : r ? w(O(n), r) : n;
169
+ }
170
+ function Y(e, t, r = [], n = void 0) {
171
+ let o;
172
+ e: for (let s = 0; s < t.length; s += 1) {
173
+ const i = t[s];
174
+ if (typeof i.props == "function") {
175
+ if (o ??= {
176
+ ...e,
177
+ ...e.ownerState,
178
+ ownerState: e.ownerState
179
+ }, !i.props(o))
180
+ continue;
181
+ } else
182
+ for (const a in i.props)
183
+ if (e[a] !== i.props[a] && e.ownerState?.[a] !== i.props[a])
184
+ continue e;
185
+ typeof i.style == "function" ? (o ??= {
186
+ ...e,
187
+ ...e.ownerState,
188
+ ownerState: e.ownerState
189
+ }, r.push(n ? w(O(i.style(o)), n) : i.style(o))) : r.push(n ? w(O(i.style), n) : i.style);
190
+ }
191
+ return r;
192
+ }
193
+ function pe(e = {}) {
194
+ const {
195
+ themeId: t,
196
+ defaultTheme: r = de,
197
+ rootShouldForwardProp: n = L,
198
+ slotShouldForwardProp: o = L
199
+ } = e;
200
+ function s(a) {
201
+ he(a, t, r);
202
+ }
203
+ return (a, d = {}) => {
204
+ re(a, (c) => c.filter((l) => l !== J));
205
+ const {
206
+ name: u,
207
+ slot: f,
208
+ skipVariantsResolver: b,
209
+ skipSx: _,
210
+ // TODO v6: remove `lowercaseFirstLetter()` in the next major release
211
+ // For more details: https://github.com/mui/material-ui/pull/37908
212
+ overridesResolver: E = me(G(f)),
213
+ ...p
214
+ } = d, m = u && u.startsWith("Mui") || f ? "components" : "custom", N = b !== void 0 ? b : (
215
+ // TODO v6: remove `Root` in the next major release
216
+ // For more details: https://github.com/mui/material-ui/pull/37908
217
+ f && f !== "Root" && f !== "root" || !1
218
+ ), R = _ || !1;
219
+ let v = L;
220
+ f === "Root" || f === "root" ? v = n : f ? v = o : we(a) && (v = void 0);
221
+ const g = ne(a, {
222
+ shouldForwardProp: v,
223
+ label: Se(u, f),
224
+ ...p
225
+ }), x = (c) => {
226
+ if (c.__emotion_real === c)
227
+ return c;
228
+ if (typeof c == "function")
229
+ return function(P) {
230
+ return j(P, c, P.theme.modularCssLayers ? m : void 0);
231
+ };
232
+ if (se(c)) {
233
+ const l = ye(c);
234
+ return function(S) {
235
+ return l.variants ? j(S, l, S.theme.modularCssLayers ? m : void 0) : S.theme.modularCssLayers ? w(l.style, m) : l.style;
236
+ };
237
+ }
238
+ return c;
239
+ }, T = (...c) => {
240
+ const l = [], P = c.map(x), S = [];
241
+ if (l.push(s), u && E && S.push(function(y) {
242
+ const h = y.theme.components?.[u]?.styleOverrides;
243
+ if (!h)
244
+ return null;
245
+ const H = {};
246
+ for (const W in h)
247
+ H[W] = j(y, h[W], y.theme.modularCssLayers ? "theme" : void 0);
248
+ return E(y, H);
249
+ }), u && !N && S.push(function(y) {
250
+ const h = y.theme?.components?.[u]?.variants;
251
+ return h ? Y(y, h, [], y.theme.modularCssLayers ? "theme" : void 0) : null;
252
+ }), R || S.push(J), Array.isArray(P[0])) {
253
+ const A = P.shift(), y = new Array(l.length).fill(""), $ = new Array(S.length).fill("");
254
+ let h;
255
+ h = [...y, ...A, ...$], h.raw = [...y, ...A.raw, ...$], l.unshift(h);
256
+ }
257
+ const Q = [...l, ...P, ...S], I = g(...Q);
258
+ return a.muiName && (I.muiName = a.muiName), process.env.NODE_ENV !== "production" && (I.displayName = ve(u, f, a)), I;
259
+ };
260
+ return g.withConfig && (T.withConfig = g.withConfig), T;
261
+ };
262
+ }
263
+ function ve(e, t, r) {
264
+ return e ? `${e}${oe(t || "")}` : `Styled(${fe(r)})`;
265
+ }
266
+ function Se(e, t) {
267
+ let r;
268
+ return process.env.NODE_ENV !== "production" && e && (r = `${e}-${G(t || "Root")}`), r;
269
+ }
270
+ function Pe(e) {
271
+ for (const t in e)
272
+ return !1;
273
+ return !0;
274
+ }
275
+ function we(e) {
276
+ return typeof e == "string" && // 96 is one less than the char code
277
+ // for "a" so this is checking that
278
+ // it's a lowercase character
279
+ e.charCodeAt(0) > 96;
280
+ }
281
+ function G(e) {
282
+ return e && e.charAt(0).toLowerCase() + e.slice(1);
283
+ }
284
+ function M(e, t, r = !1) {
285
+ const n = {
286
+ ...t
287
+ };
288
+ for (const o in e)
289
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
290
+ const s = o;
291
+ if (s === "components" || s === "slots")
292
+ n[s] = {
293
+ ...e[s],
294
+ ...n[s]
295
+ };
296
+ else if (s === "componentsProps" || s === "slotProps") {
297
+ const i = e[s], a = t[s];
298
+ if (!a)
299
+ n[s] = i || {};
300
+ else if (!i)
301
+ n[s] = a;
302
+ else {
303
+ n[s] = {
304
+ ...a
305
+ };
306
+ for (const d in i)
307
+ if (Object.prototype.hasOwnProperty.call(i, d)) {
308
+ const u = d;
309
+ n[s][u] = M(i[u], a[u], r);
310
+ }
311
+ }
312
+ } else s === "className" && r && t.className ? n.className = ie(e?.className, t?.className) : s === "style" && r && t.style ? n.style = {
313
+ ...e?.style,
314
+ ...t?.style
315
+ } : n[s] === void 0 && (n[s] = e[s]);
316
+ }
317
+ return n;
318
+ }
319
+ const Oe = /* @__PURE__ */ D.createContext(void 0);
320
+ process.env.NODE_ENV !== "production" && (F.node, F.object);
321
+ function ge(e) {
322
+ const {
323
+ theme: t,
324
+ name: r,
325
+ props: n
326
+ } = e;
327
+ if (!t || !t.components || !t.components[r])
328
+ return n;
329
+ const o = t.components[r];
330
+ return o.defaultProps ? M(o.defaultProps, n, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? M(o, n, t.components.mergeClassNameAndStyle) : n;
331
+ }
332
+ function Te({
333
+ props: e,
334
+ name: t
335
+ }) {
336
+ const r = D.useContext(Oe);
337
+ return ge({
338
+ props: e,
339
+ name: t,
340
+ theme: {
341
+ components: r
342
+ }
343
+ });
344
+ }
345
+ function Ae(e, t, r = void 0) {
346
+ const n = {};
347
+ for (const o in e) {
348
+ const s = e[o];
349
+ let i = "", a = !0;
350
+ for (let d = 0; d < s.length; d += 1) {
351
+ const u = s[d];
352
+ u && (i += (a === !0 ? "" : " ") + t(u), a = !1, r && r[u] && (i += " " + r[u]));
353
+ }
354
+ n[o] = i;
355
+ }
356
+ return n;
357
+ }
358
+ const Ee = ae();
359
+ function Ne(e) {
360
+ return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
361
+ }
362
+ const Re = (e) => Ne(e) && e !== "classes", $e = pe({
363
+ themeId: ue,
364
+ defaultTheme: Ee,
365
+ rootShouldForwardProp: Re
366
+ });
367
+ process.env.NODE_ENV !== "production" && (F.node, F.object.isRequired);
368
+ function je(e) {
369
+ return Te(e);
370
+ }
371
+ function Fe(e, t) {
372
+ return process.env.NODE_ENV === "production" ? () => null : function(...n) {
373
+ return e(...n) || t(...n);
374
+ };
375
+ }
376
+ export {
377
+ M as a,
378
+ le as b,
379
+ Ae as c,
380
+ Fe as d,
381
+ Ee as e,
382
+ xe as k,
383
+ ye as p,
384
+ Re as r,
385
+ $e as s,
386
+ je as u
387
+ };
@@ -3,7 +3,7 @@ import { c as U } from "../../index-B2JRaoNz.js";
3
3
  import { ButtonContent as a } from "./button-content.js";
4
4
  import { BUTTON_COLOR_GRAY as h, BUTTON_SIZE_DEFAULT as I, BUTTON_VARIANT_OUTLINED as x, MIN_WIDTH_DEFAULT as C, BUTTON_WEIGHT_MEDIUM as E } from "./constants.js";
5
5
  import { s as A } from "../../button.module-BZPPmSAS.js";
6
- import { B as D } from "../../ButtonBase-CXGZ-DBC.js";
6
+ import { B as D } from "../../ButtonBase-DZwhOh56.js";
7
7
  import { getButtonClassnames as L } from "./utils/get-button-classnames.js";
8
8
  const F = (m) => {
9
9
  const {
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { CircularProgressLoaderProps } from './types';
3
+ export declare const CircularProgressLoader: FC<CircularProgressLoaderProps>;
@@ -0,0 +1,44 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { c as n } from "../../index-B2JRaoNz.js";
3
+ import { PRECENT_SYMBOL as m } from "../../constants.js";
4
+ import { CIRCULAR_PROGRESS_DEFAULT_VALUE as _, CIRCULAR_PROGRESS_SIZE as p } from "./constants.js";
5
+ import { B as a } from "../../Box-CiYPzbPd.js";
6
+ import { C } from "../../CircularProgress-BCrSQadM.js";
7
+ import { T as d } from "../../Typography-BmYEfS8y.js";
8
+ import '../../assets/circular-progress-loader.css';const g = "_circularProgressLoader_ric36_1", b = "_progress_ric36_7", u = "_labelContainer_ric36_10", x = "_labelText_ric36_20", r = {
9
+ circularProgressLoader: g,
10
+ progress: b,
11
+ labelContainer: u,
12
+ labelText: x
13
+ }, h = (s) => {
14
+ const {
15
+ value: o = _,
16
+ className: t,
17
+ ...l
18
+ } = s, c = `${Math.round(o)}${m}`;
19
+ return /* @__PURE__ */ i(a, { className: r.circularProgressLoader, children: [
20
+ /* @__PURE__ */ e(
21
+ C,
22
+ {
23
+ className: n(r.progress, t),
24
+ size: p,
25
+ enableTrackSlot: !0,
26
+ variant: "determinate",
27
+ value: o,
28
+ ...l
29
+ }
30
+ ),
31
+ /* @__PURE__ */ e(a, { className: r.labelContainer, children: /* @__PURE__ */ e(
32
+ d,
33
+ {
34
+ className: r.labelText,
35
+ variant: "caption",
36
+ component: "div",
37
+ children: c
38
+ }
39
+ ) })
40
+ ] });
41
+ };
42
+ export {
43
+ h as CircularProgressLoader
44
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { CircularProgressLoader } from './';
3
+ type CircularProgressLoaderMeta = Meta<typeof CircularProgressLoader>;
4
+ type CircularProgressLoaderStory = StoryObj<typeof CircularProgressLoader>;
5
+ declare const meta: CircularProgressLoaderMeta;
6
+ export default meta;
7
+ export declare const Base: CircularProgressLoaderStory;
@@ -0,0 +1,2 @@
1
+ export declare const CIRCULAR_PROGRESS_SIZE = 100;
2
+ export declare const CIRCULAR_PROGRESS_DEFAULT_VALUE = 0;
@@ -0,0 +1,5 @@
1
+ const R = 100, E = 0;
2
+ export {
3
+ E as CIRCULAR_PROGRESS_DEFAULT_VALUE,
4
+ R as CIRCULAR_PROGRESS_SIZE
5
+ };
@@ -0,0 +1 @@
1
+ export { CircularProgressLoader } from './circular-progress-loader';
@@ -0,0 +1,4 @@
1
+ import { CircularProgressLoader as e } from "./circular-progress-loader.js";
2
+ export {
3
+ e as CircularProgressLoader
4
+ };
@@ -0,0 +1,6 @@
1
+ import { CircularProgressProps } from '@mui/material';
2
+ type CircularProgressLoaderCustomProps = {
3
+ value?: number;
4
+ };
5
+ export type CircularProgressLoaderProps = CircularProgressLoaderCustomProps & CircularProgressProps;
6
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { PhotoCropUploader } from './photo-crop-uploader';
2
2
  export { Button } from './button';
3
+ export { CircularProgressLoader } from './circular-progress-loader';
@@ -1,6 +1,8 @@
1
- import { PhotoCropUploader as t } from "./photo-crop-uploader/photo-crop-uploader.js";
2
- import { Button as e } from "./button/button.js";
1
+ import { PhotoCropUploader as e } from "./photo-crop-uploader/photo-crop-uploader.js";
2
+ import { Button as p } from "./button/button.js";
3
+ import { CircularProgressLoader as f } from "./circular-progress-loader/circular-progress-loader.js";
3
4
  export {
4
- e as Button,
5
- t as PhotoCropUploader
5
+ p as Button,
6
+ f as CircularProgressLoader,
7
+ e as PhotoCropUploader
6
8
  };
@@ -2,51 +2,52 @@ import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
2
  import { c as p } from "../../../../index-B2JRaoNz.js";
3
3
  import { localizedText as d } from "../../locale.js";
4
4
  import { EN_LOCALE as f } from "../../../../constants.js";
5
- import { T as x, D as T, a as C, b as y, c as D } from "../../../../DialogTitle-KN1sayHD.js";
6
- import * as h from "react";
7
- import { g as E, a as N, b, P as o } from "../../../../createTheme-DSHGFfg6.js";
8
- import { u as _, s as P, c as j, r as v } from "../../../../ButtonBase-CXGZ-DBC.js";
9
- import { B as w } from "../../../../Button-DDlVTM6i.js";
10
- import '../../../../assets/error-upload-dialog.css';function O(s) {
11
- return E("MuiDialogContentText", s);
5
+ import { D as x, a as T, b as C, c as y } from "../../../../DialogTitle-BUcXvkzd.js";
6
+ import * as D from "react";
7
+ import { d as h, g as E, c as N, P as o } from "../../../../createTheme-BfVKUMHQ.js";
8
+ import { u as _, s as b, c as P, r as j } from "../../../../chainPropTypes-HYSaT0L0.js";
9
+ import { T as v } from "../../../../Typography-BmYEfS8y.js";
10
+ import { B as w } from "../../../../Button-chJUX25I.js";
11
+ import '../../../../assets/error-upload-dialog.css';function O(t) {
12
+ return h("MuiDialogContentText", t);
12
13
  }
13
- N("MuiDialogContentText", ["root"]);
14
- const U = (s) => {
14
+ E("MuiDialogContentText", ["root"]);
15
+ const U = (t) => {
15
16
  const {
16
17
  classes: e
17
- } = s, t = j({
18
+ } = t, s = P({
18
19
  root: ["root"]
19
20
  }, O, e);
20
21
  return {
21
22
  ...e,
22
23
  // forward classes to the Typography
23
- ...t
24
+ ...s
24
25
  };
25
- }, M = P(x, {
26
- shouldForwardProp: (s) => v(s) || s === "classes",
26
+ }, M = b(v, {
27
+ shouldForwardProp: (t) => j(t) || t === "classes",
27
28
  name: "MuiDialogContentText",
28
29
  slot: "Root"
29
- })({}), m = /* @__PURE__ */ h.forwardRef(function(e, a) {
30
- const t = _({
30
+ })({}), g = /* @__PURE__ */ D.forwardRef(function(e, a) {
31
+ const s = _({
31
32
  props: e,
32
33
  name: "MuiDialogContentText"
33
34
  }), {
34
35
  children: n,
35
36
  className: l,
36
37
  ...i
37
- } = t, c = U(i);
38
+ } = s, c = U(i);
38
39
  return /* @__PURE__ */ r(M, {
39
40
  component: "p",
40
41
  variant: "body1",
41
42
  color: "textSecondary",
42
43
  ref: a,
43
44
  ownerState: i,
44
- className: b(c.root, l),
45
- ...t,
45
+ className: N(c.root, l),
46
+ ...s,
46
47
  classes: c
47
48
  });
48
49
  });
49
- process.env.NODE_ENV !== "production" && (m.propTypes = {
50
+ process.env.NODE_ENV !== "production" && (g.propTypes = {
50
51
  // ┌────────────────────────────── Warning ──────────────────────────────┐
51
52
  // │ These PropTypes are generated from the TypeScript type definitions. │
52
53
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -68,31 +69,31 @@ process.env.NODE_ENV !== "production" && (m.propTypes = {
68
69
  */
69
70
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
70
71
  });
71
- const R = "_dialog_lyvu5_1", S = "_dialogErrorText_lyvu5_1", g = {
72
+ const R = "_dialog_lyvu5_1", S = "_dialogErrorText_lyvu5_1", m = {
72
73
  dialog: R,
73
74
  dialogErrorText: S
74
- }, G = (s) => {
75
+ }, H = (t) => {
75
76
  const {
76
77
  photoError: e,
77
78
  onCloseErrorDialog: a,
78
- locale: t = f,
79
+ locale: s = f,
79
80
  className: n,
80
81
  ...l
81
- } = s;
82
+ } = t;
82
83
  return /* @__PURE__ */ u(
83
- T,
84
+ x,
84
85
  {
85
- className: p(g.dialog, n),
86
+ className: p(m.dialog, n),
86
87
  onClose: a,
87
88
  ...l,
88
89
  children: [
89
- /* @__PURE__ */ r(C, { children: d[t].error }),
90
- /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(m, { className: p(g.dialogErrorText), children: e }) }),
91
- /* @__PURE__ */ r(D, { children: /* @__PURE__ */ r(w, { onClick: a, children: d[t].back }) })
90
+ /* @__PURE__ */ r(T, { children: d[s].error }),
91
+ /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(g, { className: p(m.dialogErrorText), children: e }) }),
92
+ /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(w, { onClick: a, children: d[s].back }) })
92
93
  ]
93
94
  }
94
95
  );
95
96
  };
96
97
  export {
97
- G as ErrorUploadDialog
98
+ H as ErrorUploadDialog
98
99
  };