@hai-dev/ui-kit 1.0.12 → 1.1.0
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-D8oKffw9.js → Box-CykjCaXY.js} +21 -22
- package/dist/{Button-BBF8hp7e.js → Button-CcvrOEKV.js} +6 -5
- package/dist/{ButtonBase-T2KH9jsD.js → ButtonBase-DPLf5-lz.js} +226 -279
- package/dist/{CircularProgress-BQQkuSse.js → CircularProgress-CrHaMZDC.js} +4 -3
- package/dist/{Dialog-B97c7WYP.js → Dialog-DqFOpJyx.js} +118 -125
- package/dist/{DialogTitle-Du4tqTs0.js → DialogTitle-CeM_Z851.js} +4 -4
- package/dist/{Typography-r_TXEM1e.js → Typography-DDVoglvI.js} +38 -40
- package/dist/assets/centered-decorator.css +1 -0
- package/dist/assets/code-input.css +1 -0
- package/dist/assets/dark-decorator.css +1 -0
- package/dist/assets/upload-dialog-errors.css +1 -1
- package/dist/chainPropTypes-C04Ex8aP.js +413 -0
- package/dist/components/button/button.js +1 -1
- package/dist/components/circular-progress-loader/circular-progress-loader.js +3 -3
- package/dist/components/code-input/code-input.d.ts +3 -0
- package/dist/components/code-input/code-input.js +934 -0
- package/dist/components/code-input/code-input.stories.d.ts +7 -0
- package/dist/components/code-input/constants.d.ts +8 -0
- package/dist/components/code-input/constants.js +11 -0
- package/dist/components/code-input/index.d.ts +1 -0
- package/dist/components/code-input/index.js +4 -0
- package/dist/components/code-input/types.d.ts +11 -0
- package/dist/components/code-input/utils/get-code-input-label.d.ts +2 -0
- package/dist/components/code-input/utils/get-code-input-label.js +5 -0
- package/dist/components/code-input/utils/index.d.ts +2 -0
- package/dist/components/code-input/utils/index.js +6 -0
- package/dist/components/code-input/utils/slide-down-animate.d.ts +1 -0
- package/dist/components/code-input/utils/slide-down-animate.js +10 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +4 -2
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +6 -6
- package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +2 -2
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +12 -10
- package/dist/components/photo-crop-uploader/photo-crop-uploader.d.ts +2 -2
- package/dist/components/photo-crop-uploader/photo-crop-uploader.js +183 -168
- package/dist/components/photo-crop-uploader/types.d.ts +8 -7
- package/dist/components/photo-crop-uploader/utils/draw-cropped-image.js +28 -29
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.d.ts +4 -2
- package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +34 -32
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createTheme-RvzX1VSA.js → createTheme-RRQUOQoF.js} +182 -178
- package/dist/decorators/centered-decorator/centered-decorator.js +7 -0
- package/dist/decorators/centered-decorator/index.d.ts +2 -0
- package/dist/decorators/centered-decorator/index.js +4 -0
- package/dist/decorators/centered-decorator/types.js +1 -0
- package/dist/decorators/dark-decorator/dark-decorator.d.ts +3 -0
- package/dist/decorators/dark-decorator/dark-decorator.js +7 -0
- package/dist/decorators/dark-decorator/index.d.ts +2 -0
- package/dist/decorators/dark-decorator/index.js +4 -0
- package/dist/decorators/dark-decorator/types.d.ts +4 -0
- package/dist/decorators/dark-decorator/types.js +1 -0
- package/dist/decorators/index.d.ts +2 -1
- package/dist/decorators/index.js +4 -2
- package/dist/extendSxProp-VC2-7DJw.js +49 -0
- package/dist/index-BMkXyDFs.js +91 -0
- package/dist/isHostComponent-Dm_U9uOy.js +14 -0
- package/dist/memoTheme-5A7c_y33.js +15 -0
- package/dist/refType-CCKoQjVR.js +61 -0
- package/dist/{upload-dialog-errors-ku54UrUb.js → upload-dialog-errors-Bxun25O-.js} +41 -41
- package/package.json +1 -1
- package/dist/chainPropTypes-KIxDwPzf.js +0 -387
- package/dist/createSimplePaletteValueFilter-nb0wSOzC.js +0 -30
- package/dist/decorators/centered-decorator.js +0 -16
- package/dist/extendSxProp-BW9e6LtL.js +0 -36
- package/dist/useTheme-CsjkCBFJ.js +0 -16
- /package/dist/{decorators → components/code-input}/types.js +0 -0
- /package/dist/decorators/{centered-decorator.d.ts → centered-decorator/centered-decorator.d.ts} +0 -0
- /package/dist/decorators/{types.d.ts → centered-decorator/types.d.ts} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/centered-decorator.css';const t = "_centeredDecorator_jzrux_1", o = {
|
|
3
|
+
centeredDecorator: t
|
|
4
|
+
}, n = ({ children: e }) => /* @__PURE__ */ r("div", { className: o.centeredDecorator, children: e });
|
|
5
|
+
export {
|
|
6
|
+
n as CenteredDecorator
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/dark-decorator.css';const t = "_darkDecorator_t4qed_1", a = {
|
|
3
|
+
darkDecorator: t
|
|
4
|
+
}, c = ({ children: r }) => /* @__PURE__ */ o("div", { className: a.darkDecorator, children: r });
|
|
5
|
+
export {
|
|
6
|
+
c as DarkDecorator
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { CenteredDecorator } from './centered-decorator';
|
|
1
|
+
export { CenteredDecorator, type CenteredDecoratorProps, } from './centered-decorator';
|
|
2
|
+
export { DarkDecorator, type DarkDecoratorProps } from './dark-decorator';
|
package/dist/decorators/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { CenteredDecorator as
|
|
1
|
+
import { CenteredDecorator as e } from "./centered-decorator/centered-decorator.js";
|
|
2
|
+
import { DarkDecorator as a } from "./dark-decorator/dark-decorator.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
e as CenteredDecorator,
|
|
5
|
+
a as DarkDecorator
|
|
4
6
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { f as u, h as f, i as a, j as m } from "./createTheme-RRQUOQoF.js";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
function h(t) {
|
|
4
|
+
return Object.keys(t).length === 0;
|
|
5
|
+
}
|
|
6
|
+
function x(t = null) {
|
|
7
|
+
const e = l.useContext(u);
|
|
8
|
+
return !e || h(e) ? t : e;
|
|
9
|
+
}
|
|
10
|
+
const y = f();
|
|
11
|
+
function b(t = y) {
|
|
12
|
+
return x(t);
|
|
13
|
+
}
|
|
14
|
+
const P = (t) => {
|
|
15
|
+
const e = {
|
|
16
|
+
systemProps: {},
|
|
17
|
+
otherProps: {}
|
|
18
|
+
}, r = t?.theme?.unstable_sxConfig ?? m;
|
|
19
|
+
return Object.keys(t).forEach((s) => {
|
|
20
|
+
r[s] ? e.systemProps[s] = t[s] : e.otherProps[s] = t[s];
|
|
21
|
+
}), e;
|
|
22
|
+
};
|
|
23
|
+
function j(t) {
|
|
24
|
+
const {
|
|
25
|
+
sx: e,
|
|
26
|
+
...r
|
|
27
|
+
} = t, {
|
|
28
|
+
systemProps: s,
|
|
29
|
+
otherProps: c
|
|
30
|
+
} = P(r);
|
|
31
|
+
let n;
|
|
32
|
+
return Array.isArray(e) ? n = [s, ...e] : typeof e == "function" ? n = (...i) => {
|
|
33
|
+
const o = e(...i);
|
|
34
|
+
return a(o) ? {
|
|
35
|
+
...s,
|
|
36
|
+
...o
|
|
37
|
+
} : s;
|
|
38
|
+
} : n = {
|
|
39
|
+
...s,
|
|
40
|
+
...e
|
|
41
|
+
}, {
|
|
42
|
+
...c,
|
|
43
|
+
sx: n
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
j as e,
|
|
48
|
+
b as u
|
|
49
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { u as y, e as m } from "./extendSxProp-VC2-7DJw.js";
|
|
4
|
+
import { P as e, k as b, T as d } from "./createTheme-RRQUOQoF.js";
|
|
5
|
+
import { G as T, e as h } from "./chainPropTypes-C04Ex8aP.js";
|
|
6
|
+
function E(t) {
|
|
7
|
+
return t == null || Object.keys(t).length === 0;
|
|
8
|
+
}
|
|
9
|
+
function p(t) {
|
|
10
|
+
const {
|
|
11
|
+
styles: r,
|
|
12
|
+
defaultTheme: l = {}
|
|
13
|
+
} = t;
|
|
14
|
+
return /* @__PURE__ */ a(T, {
|
|
15
|
+
styles: typeof r == "function" ? (n) => r(E(n) ? l : n) : r
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
process.env.NODE_ENV !== "production" && (p.propTypes = {
|
|
19
|
+
defaultTheme: e.object,
|
|
20
|
+
styles: e.oneOfType([e.array, e.string, e.object, e.func])
|
|
21
|
+
});
|
|
22
|
+
function u(t) {
|
|
23
|
+
const r = b(t);
|
|
24
|
+
return t !== r && r.styles ? (r.styles.match(/^@layer\s+[^{]*$/) || (r.styles = `@layer global{${r.styles}}`), r) : t;
|
|
25
|
+
}
|
|
26
|
+
function f({
|
|
27
|
+
styles: t,
|
|
28
|
+
themeId: r,
|
|
29
|
+
defaultTheme: l = {}
|
|
30
|
+
}) {
|
|
31
|
+
const o = y(l), n = r && o[r] || o;
|
|
32
|
+
let s = typeof t == "function" ? t(n) : t;
|
|
33
|
+
return n.modularCssLayers && (Array.isArray(s) ? s = s.map((i) => u(typeof i == "function" ? i(n) : i)) : s = u(s)), /* @__PURE__ */ a(p, {
|
|
34
|
+
styles: s
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
process.env.NODE_ENV !== "production" && (f.propTypes = {
|
|
38
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
39
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
40
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
41
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
defaultTheme: e.object,
|
|
46
|
+
/**
|
|
47
|
+
* @ignore
|
|
48
|
+
*/
|
|
49
|
+
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
|
|
50
|
+
/**
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
themeId: e.string
|
|
54
|
+
});
|
|
55
|
+
function c(t) {
|
|
56
|
+
return /* @__PURE__ */ a(f, {
|
|
57
|
+
...t,
|
|
58
|
+
defaultTheme: h,
|
|
59
|
+
themeId: d
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
process.env.NODE_ENV !== "production" && (c.propTypes = {
|
|
63
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
64
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
65
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
66
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
67
|
+
/**
|
|
68
|
+
* The styles you want to apply globally.
|
|
69
|
+
*/
|
|
70
|
+
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
|
|
71
|
+
});
|
|
72
|
+
function x(t) {
|
|
73
|
+
return function(l) {
|
|
74
|
+
return (
|
|
75
|
+
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
76
|
+
/* @__PURE__ */ a(c, {
|
|
77
|
+
styles: typeof t == "function" ? (o) => t({
|
|
78
|
+
theme: o,
|
|
79
|
+
...l
|
|
80
|
+
}) : t
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function N() {
|
|
86
|
+
return m;
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
x as g,
|
|
90
|
+
N as i
|
|
91
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { p as s } from "./chainPropTypes-C04Ex8aP.js";
|
|
2
|
+
const l = {
|
|
3
|
+
theme: void 0
|
|
4
|
+
};
|
|
5
|
+
function u(o) {
|
|
6
|
+
let m, n;
|
|
7
|
+
return function(t) {
|
|
8
|
+
let e = m;
|
|
9
|
+
return (e === void 0 || t.theme !== n) && (l.theme = t.theme, e = s(o(l)), m = e, n = t.theme), e;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const r = u;
|
|
13
|
+
export {
|
|
14
|
+
r as m
|
|
15
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { P as i } from "./createTheme-RRQUOQoF.js";
|
|
3
|
+
import { b as a } from "./chainPropTypes-C04Ex8aP.js";
|
|
4
|
+
const s = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
|
|
5
|
+
function E(n) {
|
|
6
|
+
const e = u.useRef(n);
|
|
7
|
+
return s(() => {
|
|
8
|
+
e.current = n;
|
|
9
|
+
}), u.useRef((...c) => (
|
|
10
|
+
// @ts-expect-error hide `this`
|
|
11
|
+
(0, e.current)(...c)
|
|
12
|
+
)).current;
|
|
13
|
+
}
|
|
14
|
+
function R(...n) {
|
|
15
|
+
const e = u.useRef(void 0), c = u.useCallback((r) => {
|
|
16
|
+
const l = n.map((t) => {
|
|
17
|
+
if (t == null)
|
|
18
|
+
return null;
|
|
19
|
+
if (typeof t == "function") {
|
|
20
|
+
const f = t, o = f(r);
|
|
21
|
+
return typeof o == "function" ? o : () => {
|
|
22
|
+
f(null);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return t.current = r, () => {
|
|
26
|
+
t.current = null;
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
l.forEach((t) => t?.());
|
|
31
|
+
};
|
|
32
|
+
}, n);
|
|
33
|
+
return u.useMemo(() => n.every((r) => r == null) ? null : (r) => {
|
|
34
|
+
e.current && (e.current(), e.current = void 0), r != null && (e.current = c(r));
|
|
35
|
+
}, n);
|
|
36
|
+
}
|
|
37
|
+
function p(n) {
|
|
38
|
+
const {
|
|
39
|
+
prototype: e = {}
|
|
40
|
+
} = n;
|
|
41
|
+
return !!e.isReactComponent;
|
|
42
|
+
}
|
|
43
|
+
function d(n, e, c, r, l) {
|
|
44
|
+
const t = n[e], f = l || e;
|
|
45
|
+
if (t == null || // When server-side rendering React doesn't warn either.
|
|
46
|
+
// This is not an accurate check for SSR.
|
|
47
|
+
// This is only in place for emotion compat.
|
|
48
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
49
|
+
typeof window > "u")
|
|
50
|
+
return null;
|
|
51
|
+
let o;
|
|
52
|
+
return typeof t == "function" && !p(t) && (o = "Did you accidentally provide a plain function component instead?"), o !== void 0 ? new Error(`Invalid ${r} \`${f}\` supplied to \`${c}\`. Expected an element type that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
53
|
+
}
|
|
54
|
+
const h = a(i.elementType, d), w = i.oneOfType([i.func, i.object]);
|
|
55
|
+
export {
|
|
56
|
+
E as a,
|
|
57
|
+
s as b,
|
|
58
|
+
h as e,
|
|
59
|
+
w as r,
|
|
60
|
+
R as u
|
|
61
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as g, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "./index-B2JRaoNz.js";
|
|
3
|
-
import { localizedText as
|
|
3
|
+
import { localizedText as f } from "./components/photo-crop-uploader/locale.js";
|
|
4
4
|
import { EN_LOCALE as S, DASH_SYMBOL as L } from "./constants.js";
|
|
5
|
-
import { D as I, a as R, b as W } from "./DialogTitle-
|
|
5
|
+
import { D as I, a as R, b as W } from "./DialogTitle-CeM_Z851.js";
|
|
6
6
|
import * as O from "react";
|
|
7
|
-
import { g as V, a as B, c as $, P as r } from "./createTheme-
|
|
8
|
-
import { m as C } from "./
|
|
9
|
-
import { u as z, s as w, c as E } from "./chainPropTypes-
|
|
7
|
+
import { g as V, a as B, c as $, P as r } from "./createTheme-RRQUOQoF.js";
|
|
8
|
+
import { m as C } from "./memoTheme-5A7c_y33.js";
|
|
9
|
+
import { u as z, s as w, c as E } from "./chainPropTypes-C04Ex8aP.js";
|
|
10
10
|
import { Button as y } from "./components/button/button.js";
|
|
11
11
|
import './assets/upload-dialog-errors.css';function M(e) {
|
|
12
12
|
return V("MuiDivider", e);
|
|
@@ -17,14 +17,14 @@ const U = (e) => {
|
|
|
17
17
|
absolute: t,
|
|
18
18
|
children: o,
|
|
19
19
|
classes: p,
|
|
20
|
-
flexItem:
|
|
20
|
+
flexItem: h,
|
|
21
21
|
light: i,
|
|
22
22
|
orientation: n,
|
|
23
|
-
textAlign:
|
|
24
|
-
variant:
|
|
23
|
+
textAlign: a,
|
|
24
|
+
variant: l
|
|
25
25
|
} = e;
|
|
26
26
|
return E({
|
|
27
|
-
root: ["root", t && "absolute",
|
|
27
|
+
root: ["root", t && "absolute", l, i && "light", n === "vertical" && "vertical", h && "flexItem", o && "withChildren", o && n === "vertical" && "withChildrenVertical", a === "right" && n !== "vertical" && "textAlignRight", a === "left" && n !== "vertical" && "textAlignLeft"],
|
|
28
28
|
wrapper: ["wrapper", n === "vertical" && "wrapperVertical"]
|
|
29
29
|
}, M, p);
|
|
30
30
|
}, j = w("div", {
|
|
@@ -193,50 +193,50 @@ const U = (e) => {
|
|
|
193
193
|
paddingBottom: `calc(${e.spacing(1)} * 1.2)`
|
|
194
194
|
}
|
|
195
195
|
}]
|
|
196
|
-
}))),
|
|
196
|
+
}))), v = /* @__PURE__ */ O.forwardRef(function(t, o) {
|
|
197
197
|
const p = z({
|
|
198
198
|
props: t,
|
|
199
199
|
name: "MuiDivider"
|
|
200
200
|
}), {
|
|
201
|
-
absolute:
|
|
201
|
+
absolute: h = !1,
|
|
202
202
|
children: i,
|
|
203
203
|
className: n,
|
|
204
|
-
orientation:
|
|
205
|
-
component:
|
|
204
|
+
orientation: a = "horizontal",
|
|
205
|
+
component: l = i || a === "vertical" ? "div" : "hr",
|
|
206
206
|
flexItem: b = !1,
|
|
207
207
|
light: A = !1,
|
|
208
|
-
role:
|
|
208
|
+
role: m = l !== "hr" ? "separator" : void 0,
|
|
209
209
|
textAlign: D = "center",
|
|
210
210
|
variant: N = "fullWidth",
|
|
211
211
|
...T
|
|
212
|
-
} = p,
|
|
212
|
+
} = p, u = {
|
|
213
213
|
...p,
|
|
214
|
-
absolute:
|
|
215
|
-
component:
|
|
214
|
+
absolute: h,
|
|
215
|
+
component: l,
|
|
216
216
|
flexItem: b,
|
|
217
217
|
light: A,
|
|
218
|
-
orientation:
|
|
219
|
-
role:
|
|
218
|
+
orientation: a,
|
|
219
|
+
role: m,
|
|
220
220
|
textAlign: D,
|
|
221
221
|
variant: N
|
|
222
|
-
}, _ = U(
|
|
222
|
+
}, _ = U(u);
|
|
223
223
|
return /* @__PURE__ */ s(j, {
|
|
224
|
-
as:
|
|
224
|
+
as: l,
|
|
225
225
|
className: $(_.root, n),
|
|
226
|
-
role:
|
|
226
|
+
role: m,
|
|
227
227
|
ref: o,
|
|
228
|
-
ownerState:
|
|
229
|
-
"aria-orientation":
|
|
228
|
+
ownerState: u,
|
|
229
|
+
"aria-orientation": m === "separator" && (l !== "hr" || a === "vertical") ? a : void 0,
|
|
230
230
|
...T,
|
|
231
231
|
children: i ? /* @__PURE__ */ s(k, {
|
|
232
232
|
className: _.wrapper,
|
|
233
|
-
ownerState:
|
|
233
|
+
ownerState: u,
|
|
234
234
|
children: i
|
|
235
235
|
}) : null
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
|
-
|
|
239
|
-
process.env.NODE_ENV !== "production" && (
|
|
238
|
+
v && (v.muiSkipListHighlight = !0);
|
|
239
|
+
process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
240
240
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
241
241
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
242
242
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -299,7 +299,7 @@ process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
|
299
299
|
*/
|
|
300
300
|
variant: r.oneOfType([r.oneOf(["fullWidth", "inset", "middle"]), r.string])
|
|
301
301
|
});
|
|
302
|
-
const H = "
|
|
302
|
+
const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_22", Y = "_fileName_1h5av_29", q = "_topActions_1h5av_35", G = "_close_1h5av_41", J = "_botActions_1h5av_45", K = "_button_1h5av_50", Q = "_title_1h5av_54", X = "_content_1h5av_60", Z = "_many_1h5av_68", tt = "_crop_1h5av_75", et = "_dialogText_1h5av_84", d = {
|
|
303
303
|
dialog: H,
|
|
304
304
|
errorContent: P,
|
|
305
305
|
errorItem: F,
|
|
@@ -318,20 +318,20 @@ const H = "_dialog_1mcfu_1", P = "_errorContent_1mcfu_7", F = "_errorItem_1mcfu_
|
|
|
318
318
|
photoSources: t,
|
|
319
319
|
errors: o = [],
|
|
320
320
|
onCloseDialogHandler: p,
|
|
321
|
-
onClearErrors:
|
|
321
|
+
onClearErrors: h,
|
|
322
322
|
locale: i = S
|
|
323
323
|
} = e;
|
|
324
|
-
return /* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */ s(I, { className: c(d.title), children: t.length ?
|
|
326
|
-
/* @__PURE__ */ s(R, { className: c(d.errorContent), children: o.map(({ photoName: n, errorMessage:
|
|
327
|
-
!!
|
|
328
|
-
/* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ g(x, { children: [
|
|
325
|
+
/* @__PURE__ */ s(I, { className: c(d.title), children: t.length ? f[i]["some-not-uploaded"] : f[i]["not-uploaded"] }),
|
|
326
|
+
/* @__PURE__ */ s(R, { className: c(d.errorContent), children: o.map(({ photoName: n, errorMessage: a }, l) => /* @__PURE__ */ g(x, { children: [
|
|
327
|
+
!!l && /* @__PURE__ */ s(v, {}),
|
|
328
|
+
/* @__PURE__ */ g("div", { className: c(d.errorItem), children: [
|
|
329
329
|
/* @__PURE__ */ s("span", { className: c(d.fileName), children: n }),
|
|
330
330
|
" ",
|
|
331
|
-
` ${L} ${
|
|
331
|
+
` ${L} ${a}`
|
|
332
332
|
] })
|
|
333
|
-
] },
|
|
334
|
-
/* @__PURE__ */
|
|
333
|
+
] }, l)) }),
|
|
334
|
+
/* @__PURE__ */ g(W, { className: c(d.botActions), children: [
|
|
335
335
|
/* @__PURE__ */ s(
|
|
336
336
|
y,
|
|
337
337
|
{
|
|
@@ -341,7 +341,7 @@ const H = "_dialog_1mcfu_1", P = "_errorContent_1mcfu_7", F = "_errorItem_1mcfu_
|
|
|
341
341
|
buttonWeight: 500,
|
|
342
342
|
onClick: p,
|
|
343
343
|
className: c(d.button),
|
|
344
|
-
children:
|
|
344
|
+
children: f[i].close
|
|
345
345
|
}
|
|
346
346
|
),
|
|
347
347
|
!!t.length && /* @__PURE__ */ s(
|
|
@@ -351,9 +351,9 @@ const H = "_dialog_1mcfu_1", P = "_errorContent_1mcfu_7", F = "_errorItem_1mcfu_
|
|
|
351
351
|
buttonColor: "blue",
|
|
352
352
|
buttonVariant: "filled",
|
|
353
353
|
buttonWeight: 500,
|
|
354
|
-
onClick:
|
|
354
|
+
onClick: h,
|
|
355
355
|
className: c(d.button),
|
|
356
|
-
children:
|
|
356
|
+
children: f[i].continue
|
|
357
357
|
}
|
|
358
358
|
)
|
|
359
359
|
] })
|