@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.
@@ -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 S, DASH_SYMBOL as L } from "./constants.js";
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 B, c as $, P as r } from "./createTheme-D8R2Cz2N.js";
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 z, c as E, s as w } from "./chainPropTypes-DiJb1lGa.js";
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 M(e) {
11
+ import './assets/upload-dialog-errors.css';function E(e) {
12
12
  return V("MuiDivider", e);
13
13
  }
14
- B("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
15
- const U = (e) => {
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: p,
19
+ classes: d,
20
20
  flexItem: h,
21
21
  light: i,
22
22
  orientation: n,
23
- textAlign: a,
24
- variant: l
23
+ textAlign: l,
24
+ variant: a
25
25
  } = e;
26
- return E({
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"],
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
- }, M, p);
30
- }, j = w("div", {
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
- }))), k = w("span", {
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 p = z({
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: a = "horizontal",
205
- component: l = i || a === "vertical" ? "div" : "hr",
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 = l !== "hr" ? "separator" : void 0,
208
+ role: m = a !== "hr" ? "separator" : void 0,
209
209
  textAlign: D = "center",
210
210
  variant: N = "fullWidth",
211
211
  ...T
212
- } = p, u = {
213
- ...p,
212
+ } = d, u = {
213
+ ...d,
214
214
  absolute: h,
215
- component: l,
215
+ component: a,
216
216
  flexItem: b,
217
217
  light: A,
218
- orientation: a,
218
+ orientation: l,
219
219
  role: m,
220
220
  textAlign: D,
221
221
  variant: N
222
- }, _ = U(u);
223
- return /* @__PURE__ */ s(j, {
224
- as: l,
225
- className: $(_.root, n),
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" && (l !== "hr" || a === "vertical") ? a : void 0,
229
+ "aria-orientation": m === "separator" && (a !== "hr" || l === "vertical") ? l : void 0,
230
230
  ...T,
231
- children: i ? /* @__PURE__ */ s(k, {
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 = "_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 = {
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
- errorContent: P,
305
- errorItem: F,
306
- fileName: Y,
307
- topActions: q,
308
- close: G,
309
- botActions: J,
310
- button: K,
311
- title: Q,
312
- content: X,
313
- many: Z,
314
- crop: tt,
315
- dialogText: et
316
- }, pt = (e) => {
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: p,
322
+ onCloseDialogHandler: d,
321
323
  onClearErrors: h,
322
- locale: i = S
324
+ locale: i = L
323
325
  } = e;
324
326
  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
- /* @__PURE__ */ s("span", { className: c(d.fileName), children: n }),
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
- ` ${L} ${a}`
333
+ ` ${S} ${l}`
332
334
  ] })
333
- ] }, l)) }),
334
- /* @__PURE__ */ g(W, { className: c(d.botActions), children: [
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: p,
343
- className: c(d.button),
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(d.button),
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
- pt as U,
364
- d as s
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.10",
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.1"
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": "11.1.0",
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.1",
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": "11.1.0",
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",