@hai-dev/ui-kit 1.1.10 → 1.1.12
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/assets/error-upload-dialog.css +1 -1
- package/dist/assets/upload-dialog-errors.css +1 -1
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +34 -32
- package/dist/components/photo-crop-uploader/components/error-upload-dialog/types.d.ts +2 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/types.d.ts +2 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +1 -1
- package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +70 -69
- package/dist/components/photo-crop-uploader/photo-crop-uploader.js +131 -128
- package/dist/components/photo-crop-uploader/types.d.ts +2 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +5 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -24
- package/dist/types.d.ts +2 -1
- package/dist/{upload-dialog-errors-Cyz6_7n4.js → upload-dialog-errors-DHl0bh1n.js} +59 -57
- package/package.json +5 -5
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "./index-YnD2EP-S.js";
|
|
3
3
|
import { localizedText as f } from "./components/photo-crop-uploader/locale.js";
|
|
4
|
-
import { EN_LOCALE as
|
|
4
|
+
import { EN_LOCALE as L, DASH_SYMBOL as S } from "./constants.js";
|
|
5
5
|
import { D as I, a as R, b as W } from "./DialogTitle-BtvmXSZP.js";
|
|
6
6
|
import * as O from "react";
|
|
7
|
-
import { g as V, a as
|
|
7
|
+
import { g as V, a as k, c as B, P as r } from "./createTheme-D8R2Cz2N.js";
|
|
8
8
|
import { m as C } from "./memoTheme-D5VCpQCz.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as $, c as z, s as w } from "./chainPropTypes-DiJb1lGa.js";
|
|
10
10
|
import { Button as y } from "./components/button/button.js";
|
|
11
|
-
import './assets/upload-dialog-errors.css';function
|
|
11
|
+
import './assets/upload-dialog-errors.css';function E(e) {
|
|
12
12
|
return V("MuiDivider", e);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
const
|
|
14
|
+
k("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
15
|
+
const M = (e) => {
|
|
16
16
|
const {
|
|
17
17
|
absolute: t,
|
|
18
18
|
children: o,
|
|
19
|
-
classes:
|
|
19
|
+
classes: d,
|
|
20
20
|
flexItem: h,
|
|
21
21
|
light: i,
|
|
22
22
|
orientation: n,
|
|
23
|
-
textAlign:
|
|
24
|
-
variant:
|
|
23
|
+
textAlign: l,
|
|
24
|
+
variant: a
|
|
25
25
|
} = e;
|
|
26
|
-
return
|
|
27
|
-
root: ["root", t && "absolute",
|
|
26
|
+
return z({
|
|
27
|
+
root: ["root", t && "absolute", a, i && "light", n === "vertical" && "vertical", h && "flexItem", o && "withChildren", o && n === "vertical" && "withChildrenVertical", l === "right" && n !== "vertical" && "textAlignRight", l === "left" && n !== "vertical" && "textAlignLeft"],
|
|
28
28
|
wrapper: ["wrapper", n === "vertical" && "wrapperVertical"]
|
|
29
|
-
},
|
|
30
|
-
},
|
|
29
|
+
}, E, d);
|
|
30
|
+
}, U = w("div", {
|
|
31
31
|
name: "MuiDivider",
|
|
32
32
|
slot: "Root",
|
|
33
33
|
overridesResolver: (e, t) => {
|
|
@@ -168,7 +168,7 @@ const U = (e) => {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}]
|
|
171
|
-
}))),
|
|
171
|
+
}))), j = w("span", {
|
|
172
172
|
name: "MuiDivider",
|
|
173
173
|
slot: "Wrapper",
|
|
174
174
|
overridesResolver: (e, t) => {
|
|
@@ -194,41 +194,41 @@ const U = (e) => {
|
|
|
194
194
|
}
|
|
195
195
|
}]
|
|
196
196
|
}))), v = /* @__PURE__ */ O.forwardRef(function(t, o) {
|
|
197
|
-
const
|
|
197
|
+
const d = $({
|
|
198
198
|
props: t,
|
|
199
199
|
name: "MuiDivider"
|
|
200
200
|
}), {
|
|
201
201
|
absolute: h = !1,
|
|
202
202
|
children: i,
|
|
203
203
|
className: n,
|
|
204
|
-
orientation:
|
|
205
|
-
component:
|
|
204
|
+
orientation: l = "horizontal",
|
|
205
|
+
component: a = i || l === "vertical" ? "div" : "hr",
|
|
206
206
|
flexItem: b = !1,
|
|
207
207
|
light: A = !1,
|
|
208
|
-
role: m =
|
|
208
|
+
role: m = a !== "hr" ? "separator" : void 0,
|
|
209
209
|
textAlign: D = "center",
|
|
210
210
|
variant: N = "fullWidth",
|
|
211
211
|
...T
|
|
212
|
-
} =
|
|
213
|
-
...
|
|
212
|
+
} = d, u = {
|
|
213
|
+
...d,
|
|
214
214
|
absolute: h,
|
|
215
|
-
component:
|
|
215
|
+
component: a,
|
|
216
216
|
flexItem: b,
|
|
217
217
|
light: A,
|
|
218
|
-
orientation:
|
|
218
|
+
orientation: l,
|
|
219
219
|
role: m,
|
|
220
220
|
textAlign: D,
|
|
221
221
|
variant: N
|
|
222
|
-
}, _ =
|
|
223
|
-
return /* @__PURE__ */ s(
|
|
224
|
-
as:
|
|
225
|
-
className:
|
|
222
|
+
}, _ = M(u);
|
|
223
|
+
return /* @__PURE__ */ s(U, {
|
|
224
|
+
as: a,
|
|
225
|
+
className: B(_.root, n),
|
|
226
226
|
role: m,
|
|
227
227
|
ref: o,
|
|
228
228
|
ownerState: u,
|
|
229
|
-
"aria-orientation": m === "separator" && (
|
|
229
|
+
"aria-orientation": m === "separator" && (a !== "hr" || l === "vertical") ? l : void 0,
|
|
230
230
|
...T,
|
|
231
|
-
children: i ? /* @__PURE__ */ s(
|
|
231
|
+
children: i ? /* @__PURE__ */ s(j, {
|
|
232
232
|
className: _.wrapper,
|
|
233
233
|
ownerState: u,
|
|
234
234
|
children: i
|
|
@@ -299,39 +299,41 @@ process.env.NODE_ENV !== "production" && (v.propTypes = {
|
|
|
299
299
|
*/
|
|
300
300
|
variant: r.oneOfType([r.oneOf(["fullWidth", "inset", "middle"]), r.string])
|
|
301
301
|
});
|
|
302
|
-
const H = "
|
|
302
|
+
const H = "_dialog_n5vpn_1", P = "_dark_n5vpn_1", F = "_errorContent_n5vpn_5", Y = "_errorItem_n5vpn_38", q = "_fileName_n5vpn_45", G = "_topActions_n5vpn_51", J = "_close_n5vpn_57", K = "_botActions_n5vpn_61", Q = "_button_n5vpn_66", X = "_title_n5vpn_70", Z = "_content_n5vpn_76", tt = "_many_n5vpn_84", et = "_photoList_n5vpn_87", ot = "_crop_n5vpn_91", rt = "_dialogText_n5vpn_100", p = {
|
|
303
303
|
dialog: H,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
304
|
+
dark: P,
|
|
305
|
+
errorContent: F,
|
|
306
|
+
errorItem: Y,
|
|
307
|
+
fileName: q,
|
|
308
|
+
topActions: G,
|
|
309
|
+
close: J,
|
|
310
|
+
botActions: K,
|
|
311
|
+
button: Q,
|
|
312
|
+
title: X,
|
|
313
|
+
content: Z,
|
|
314
|
+
many: tt,
|
|
315
|
+
photoList: et,
|
|
316
|
+
crop: ot,
|
|
317
|
+
dialogText: rt
|
|
318
|
+
}, gt = (e) => {
|
|
317
319
|
const {
|
|
318
320
|
photoSources: t,
|
|
319
321
|
errors: o = [],
|
|
320
|
-
onCloseDialogHandler:
|
|
322
|
+
onCloseDialogHandler: d,
|
|
321
323
|
onClearErrors: h,
|
|
322
|
-
locale: i =
|
|
324
|
+
locale: i = L
|
|
323
325
|
} = e;
|
|
324
326
|
return /* @__PURE__ */ g(x, { children: [
|
|
325
|
-
/* @__PURE__ */ s(I, { className: c(
|
|
326
|
-
/* @__PURE__ */ s(R, { className: c(
|
|
327
|
-
!!
|
|
328
|
-
/* @__PURE__ */ g("div", { className: c(
|
|
329
|
-
/* @__PURE__ */ s("span", { className: c(
|
|
327
|
+
/* @__PURE__ */ s(I, { className: c(p.title), children: t.length ? f[i]["some-not-uploaded"] : f[i]["not-uploaded"] }),
|
|
328
|
+
/* @__PURE__ */ s(R, { className: c(p.errorContent), children: o.map(({ photoName: n, errorMessage: l }, a) => /* @__PURE__ */ g(x, { children: [
|
|
329
|
+
!!a && /* @__PURE__ */ s(v, {}),
|
|
330
|
+
/* @__PURE__ */ g("div", { className: c(p.errorItem), children: [
|
|
331
|
+
/* @__PURE__ */ s("span", { className: c(p.fileName), children: n }),
|
|
330
332
|
" ",
|
|
331
|
-
` ${
|
|
333
|
+
` ${S} ${l}`
|
|
332
334
|
] })
|
|
333
|
-
] },
|
|
334
|
-
/* @__PURE__ */ g(W, { className: c(
|
|
335
|
+
] }, a)) }),
|
|
336
|
+
/* @__PURE__ */ g(W, { className: c(p.botActions), children: [
|
|
335
337
|
/* @__PURE__ */ s(
|
|
336
338
|
y,
|
|
337
339
|
{
|
|
@@ -339,8 +341,8 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
339
341
|
buttonColor: "blue",
|
|
340
342
|
buttonVariant: "outlined",
|
|
341
343
|
buttonWeight: 500,
|
|
342
|
-
onClick:
|
|
343
|
-
className: c(
|
|
344
|
+
onClick: d,
|
|
345
|
+
className: c(p.button),
|
|
344
346
|
children: f[i].close
|
|
345
347
|
}
|
|
346
348
|
),
|
|
@@ -352,7 +354,7 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
352
354
|
buttonVariant: "filled",
|
|
353
355
|
buttonWeight: 500,
|
|
354
356
|
onClick: h,
|
|
355
|
-
className: c(
|
|
357
|
+
className: c(p.button),
|
|
356
358
|
children: f[i].continue
|
|
357
359
|
}
|
|
358
360
|
)
|
|
@@ -360,6 +362,6 @@ const H = "_dialog_1h5av_1", P = "_errorContent_1h5av_7", F = "_errorItem_1h5av_
|
|
|
360
362
|
] });
|
|
361
363
|
};
|
|
362
364
|
export {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
+
gt as U,
|
|
366
|
+
p as s
|
|
365
367
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hai-dev/ui-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.12",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Vladislav Knitrunov",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react": "19.2.3",
|
|
33
33
|
"react-dom": "19.2.3",
|
|
34
34
|
"react-image-crop": "11.0.10",
|
|
35
|
-
"sass": "1.93.
|
|
35
|
+
"sass": "1.93.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@commitlint/cli": "20.0.0",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
54
54
|
"eslint-plugin-react-refresh": "0.4.20",
|
|
55
55
|
"eslint-plugin-storybook": "9.1.20",
|
|
56
|
-
"glob": "
|
|
56
|
+
"glob": "10.5.0",
|
|
57
57
|
"globals": "16.4.0",
|
|
58
58
|
"husky": "9.1.7",
|
|
59
59
|
"react": "19.2.3",
|
|
60
60
|
"react-dom": "19.2.3",
|
|
61
61
|
"react-image-crop": "11.0.10",
|
|
62
|
-
"sass": "1.93.
|
|
62
|
+
"sass": "1.93.2",
|
|
63
63
|
"storybook": "9.1.20",
|
|
64
64
|
"typescript": "5.9.3",
|
|
65
65
|
"typescript-eslint": "8.44.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"resolutions": {
|
|
71
71
|
"@xmldom/xmldom": "0.8.13",
|
|
72
72
|
"cross-spawn": "7.0.5",
|
|
73
|
-
"glob": "
|
|
73
|
+
"glob": "10.5.0",
|
|
74
74
|
"immutable": "5.1.5",
|
|
75
75
|
"@eslint/eslintrc/minimatch": "3.1.4",
|
|
76
76
|
"minimatch": "9.0.7",
|