@solostylist/ui-kit 1.0.27 → 1.0.29

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 (45) hide show
  1. package/dist/{Box-CafvePOg.js → Box-Cu0PvgiL.js} +5 -5
  2. package/dist/{Menu-DV6b-3vA.js → Menu-C2llDJyI.js} +7 -7
  3. package/dist/{Stack-CyNMyetl.js → Stack-uu0uVXox.js} +5 -5
  4. package/dist/{TransitionGroup-C2C7KNye.js → TransitionGroup-CqOrg-mA.js} +1 -1
  5. package/dist/{Typography-BXLku1B0.js → Typography-DlhXzj-D.js} +5 -5
  6. package/dist/{buttonBaseClasses-C7kEMnpC.js → buttonBaseClasses-Cs778eg3.js} +2 -2
  7. package/dist/{createSvgIcon-C9keHw6o.js → createSvgIcon-DK6yVt3w.js} +4 -4
  8. package/dist/{createTheme-DwCHEbMU.js → createTheme-DgQJeYRt.js} +158 -159
  9. package/dist/{extendSxProp-DOBfSUxL.js → extendSxProp-KlKrlfYx.js} +1 -1
  10. package/dist/{generateUtilityClasses-BHlV34bM.js → generateUtilityClasses-C-O1qWa9.js} +1 -1
  11. package/dist/{iconButtonClasses--mfwnDzQ.js → iconButtonClasses-BvY27R_O.js} +2 -2
  12. package/dist/{identifier-C1jBtHV2.js → identifier-CdaB--DW.js} +20 -20
  13. package/dist/{index-Bg8Tniaw.js → index-NeW0SZ-C.js} +5 -5
  14. package/dist/{DefaultPropsProvider-Doz-fKTH.js → memoTheme-1tTQAxpP.js} +20 -19
  15. package/dist/{menuItemClasses-BuWSZEU7.js → menuItemClasses-DtZ7DoOq.js} +2 -2
  16. package/dist/{outlinedInputClasses-BiB8MrLY.js → outlinedInputClasses-Dh9m5x_6.js} +2 -2
  17. package/dist/s-data-table/s-data-table.js +7 -7
  18. package/dist/s-dialog/s-dialog.js +1 -1
  19. package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
  20. package/dist/s-dialog-message/s-dialog-message.js +18 -18
  21. package/dist/s-file-dropzone/s-file-dropzone.js +51 -95
  22. package/dist/s-file-icon/s-file-icon.js +1 -1
  23. package/dist/s-form/s-form.js +8 -10
  24. package/dist/s-label/s-label.js +7 -9
  25. package/dist/s-multi-select/s-multi-select.js +8 -8
  26. package/dist/s-smart-text-field/s-text-field.js +489 -492
  27. package/dist/s-text-editor/s-text-editor-toolbar.js +1774 -2087
  28. package/dist/s-text-editor/s-text-editor.js +1 -1
  29. package/dist/s-tip/s-tip.js +12 -13
  30. package/dist/{selectClasses-gIFRMjMV.js → selectClasses-Dfh_2m_V.js} +2 -2
  31. package/dist/{svgIconClasses-B4eDa4bG.js → svgIconClasses-BqT1l2-6.js} +2 -2
  32. package/dist/theme/components/avatar.js +5 -42
  33. package/dist/theme/customizations/data-display.js +60 -97
  34. package/dist/theme/customizations/feedback.js +1 -1
  35. package/dist/theme/customizations/inputs.js +7 -7
  36. package/dist/theme/customizations/navigation.js +6 -6
  37. package/dist/theme/customizations/surfaces.js +1 -1
  38. package/dist/theme/theme-primitives.js +1 -1
  39. package/dist/{typographyClasses-BHvgKFVi.js → typographyClasses-CYLH9eLg.js} +2 -2
  40. package/dist/{useFormControl-D6-HePVL.js → useControlled-Bvu9pDu8.js} +8 -8
  41. package/dist/{useSlot-CUlGPdMt.js → useSlot-D9YvaBTd.js} +17 -17
  42. package/dist/{useTheme-Cfg4NSRM.js → useTheme-COYkWUCG.js} +1 -1
  43. package/package.json +5 -3
  44. package/dist/SSRBase-BSdFRe_j.js +0 -56
  45. package/dist/X-B8GTZwii.js +0 -47
@@ -1,19 +1,6 @@
1
1
  import a from "@emotion/styled";
2
2
  import { s as u } from "./emotion-serialize.esm-lgBmL_7o.js";
3
3
  import "@emotion/react";
4
- function i(e) {
5
- var t, o, r = "";
6
- if (typeof e == "string" || typeof e == "number") r += e;
7
- else if (typeof e == "object") if (Array.isArray(e)) {
8
- var s = e.length;
9
- for (t = 0; t < s; t++) e[t] && (o = i(e[t])) && (r && (r += " "), r += o);
10
- } else for (o in e) e[o] && (r && (r += " "), r += o);
11
- return r;
12
- }
13
- function c() {
14
- for (var e, t, o = 0, r = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = i(e)) && (r && (r += " "), r += t);
15
- return r;
16
- }
17
4
  /**
18
5
  * @mui/styled-engine v7.0.2
19
6
  *
@@ -21,7 +8,7 @@ function c() {
21
8
  * This source code is licensed under the MIT license found in the
22
9
  * LICENSE file in the root directory of this source tree.
23
10
  */
24
- function p(e, t) {
11
+ function c(e, t) {
25
12
  const o = a(e, t);
26
13
  return process.env.NODE_ENV !== "production" ? (...r) => {
27
14
  const s = typeof e == "string" ? `"${e}"` : "component";
@@ -29,18 +16,31 @@ function p(e, t) {
29
16
  `)) : r.some((l) => l === void 0) && console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`), o(...r);
30
17
  } : o;
31
18
  }
32
- function d(e, t) {
19
+ function p(e, t) {
33
20
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
34
21
  }
35
22
  const n = [];
36
- function _(e) {
23
+ function d(e) {
37
24
  return n[0] = e, u(n);
38
25
  }
26
+ function i(e) {
27
+ var t, o, r = "";
28
+ if (typeof e == "string" || typeof e == "number") r += e;
29
+ else if (typeof e == "object") if (Array.isArray(e)) {
30
+ var s = e.length;
31
+ for (t = 0; t < s; t++) e[t] && (o = i(e[t])) && (r && (r += " "), r += o);
32
+ } else for (o in e) e[o] && (r && (r += " "), r += o);
33
+ return r;
34
+ }
35
+ function _() {
36
+ for (var e, t, o = 0, r = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = i(e)) && (r && (r += " "), r += t);
37
+ return r;
38
+ }
39
39
  const g = "$$material";
40
40
  export {
41
41
  g as T,
42
- d as a,
43
- c,
44
- _ as i,
45
- p as s
42
+ p as a,
43
+ _ as c,
44
+ d as i,
45
+ c as s
46
46
  };
@@ -1,10 +1,10 @@
1
1
  import "react";
2
2
  import { j as p } from "./jsx-runtime-C5mzlN2N.js";
3
- import { e as f } from "./extendSxProp-DOBfSUxL.js";
4
- import { P as e } from "./createTheme-DwCHEbMU.js";
5
- import { d as a } from "./DefaultPropsProvider-Doz-fKTH.js";
6
- import { T as c } from "./identifier-C1jBtHV2.js";
7
- import { u as m } from "./useTheme-Cfg4NSRM.js";
3
+ import { e as f } from "./extendSxProp-KlKrlfYx.js";
4
+ import { P as e } from "./createTheme-DgQJeYRt.js";
5
+ import { d as a } from "./memoTheme-1tTQAxpP.js";
6
+ import { T as c } from "./identifier-CdaB--DW.js";
7
+ import { u as m } from "./useTheme-COYkWUCG.js";
8
8
  import { Global as y } from "@emotion/react";
9
9
  function d(o) {
10
10
  return o == null || Object.keys(o).length === 0;
@@ -1,20 +1,7 @@
1
- import { l as V, e as Q, s as D, i as U, c as X, P as O, b as Y } from "./createTheme-DwCHEbMU.js";
2
- import { i as j, a as Z, s as ee, T as te } from "./identifier-C1jBtHV2.js";
1
+ import { l as V, e as Q, s as D, i as U, c as X, P as O, b as Y } from "./createTheme-DgQJeYRt.js";
2
+ import { i as j, a as Z, s as ee, T as te } from "./identifier-CdaB--DW.js";
3
3
  import * as I from "react";
4
4
  import "./jsx-runtime-C5mzlN2N.js";
5
- function Ne(e, n, t = void 0) {
6
- const o = {};
7
- for (const r in e) {
8
- const s = e[r];
9
- let u = "", i = !0;
10
- for (let d = 0; d < s.length; d += 1) {
11
- const a = s[d];
12
- a && (u += (i === !0 ? "" : " ") + n(a), i = !1, t && t[a] && (u += " " + t[a]));
13
- }
14
- o[r] = u;
15
- }
16
- return o;
17
- }
18
5
  function M(e, n = "") {
19
6
  return e.displayName || e.name || n;
20
7
  }
@@ -264,6 +251,19 @@ function he(e) {
264
251
  return (s === void 0 || r.theme !== t) && (z.theme = r.theme, s = H(e(z)), n = s, t = r.theme), s;
265
252
  };
266
253
  }
254
+ function Ne(e, n, t = void 0) {
255
+ const o = {};
256
+ for (const r in e) {
257
+ const s = e[r];
258
+ let u = "", i = !0;
259
+ for (let d = 0; d < s.length; d += 1) {
260
+ const a = s[d];
261
+ a && (u += (i === !0 ? "" : " ") + n(a), i = !1, t && t[a] && (u += " " + t[a]));
262
+ }
263
+ o[r] = u;
264
+ }
265
+ return o;
266
+ }
267
267
  const ye = Y();
268
268
  function pe(e) {
269
269
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
@@ -272,19 +272,20 @@ const Se = (e) => pe(e) && e !== "classes", Te = ie({
272
272
  themeId: te,
273
273
  defaultTheme: ye,
274
274
  rootShouldForwardProp: Se
275
- }), Oe = he;
275
+ });
276
276
  process.env.NODE_ENV !== "production" && (O.node, O.object.isRequired);
277
- function xe(e) {
277
+ function Oe(e) {
278
278
  return me(e);
279
279
  }
280
+ const xe = he;
280
281
  export {
281
282
  ie as a,
282
283
  g as b,
283
284
  Ne as c,
284
285
  ye as d,
285
286
  pe as e,
286
- Oe as m,
287
+ xe as m,
287
288
  Se as r,
288
289
  Te as s,
289
- xe as u
290
+ Oe as u
290
291
  };
@@ -1,5 +1,5 @@
1
- import { g as e } from "./generateUtilityClasses-BHlV34bM.js";
2
- import { g as i } from "./createTheme-DwCHEbMU.js";
1
+ import { g as e } from "./generateUtilityClasses-C-O1qWa9.js";
2
+ import { g as i } from "./createTheme-DgQJeYRt.js";
3
3
  const r = e("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
4
4
  function a(t) {
5
5
  return i("MuiMenuItem", t);
@@ -1,5 +1,5 @@
1
- import { g as n } from "./generateUtilityClasses-BHlV34bM.js";
2
- import { g as e } from "./createTheme-DwCHEbMU.js";
1
+ import { g as n } from "./generateUtilityClasses-C-O1qWa9.js";
2
+ import { g as e } from "./createTheme-DgQJeYRt.js";
3
3
  function l(t) {
4
4
  return e("MuiInputBase", t);
5
5
  }
@@ -1,13 +1,13 @@
1
1
  import { j as r } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as y from "react";
3
3
  import Ce from "../s-empty/s-empty.js";
4
- import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-DwCHEbMU.js";
5
- import { c as I } from "../identifier-C1jBtHV2.js";
6
- import { s as S, c as $, r as se, u as E, m as W } from "../DefaultPropsProvider-Doz-fKTH.js";
7
- import { g as B } from "../generateUtilityClasses-BHlV34bM.js";
8
- import { u as je, a as Re } from "../useFormControl-D6-HePVL.js";
9
- import { a as A, B as Oe, r as we, m as Pe } from "../useSlot-CUlGPdMt.js";
10
- import { c as J } from "../createSvgIcon-C9keHw6o.js";
4
+ import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-DgQJeYRt.js";
5
+ import { c as I } from "../identifier-CdaB--DW.js";
6
+ import { s as S, c as $, r as se, u as E, m as W } from "../memoTheme-1tTQAxpP.js";
7
+ import { g as B } from "../generateUtilityClasses-C-O1qWa9.js";
8
+ import { u as je, a as Re } from "../useControlled-Bvu9pDu8.js";
9
+ import { a as A, B as Oe, r as we, m as Pe } from "../useSlot-D9YvaBTd.js";
10
+ import { c as J } from "../createSvgIcon-DK6yVt3w.js";
11
11
  import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
12
12
  function Se(o) {
13
13
  return N("PrivateSwitchBase", o);
@@ -1,6 +1,6 @@
1
1
  import { j as r } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import { Dialog as j, DialogTitle as h, Stack as p, Typography as t, IconButton as f, DialogContent as m, DialogActions as g } from "@mui/material";
3
- import { S as u } from "../X-B8GTZwii.js";
3
+ import { IconX as u } from "@tabler/icons-react";
4
4
  const w = ({
5
5
  title: i,
6
6
  content: s,
@@ -1,9 +1,9 @@
1
1
  import { j as n } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as r from "react";
3
3
  import { Dialog as p, DialogTitle as g, Stack as j, IconButton as D, DialogContent as v, DialogActions as y, Button as d } from "@mui/material";
4
- import { S as b } from "../X-B8GTZwii.js";
4
+ import { IconX as b } from "@tabler/icons-react";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as m } from "../Typography-BXLku1B0.js";
6
+ import { T as m } from "../Typography-DlhXzj-D.js";
7
7
  const w = ({
8
8
  title: o,
9
9
  content: e,
@@ -25,7 +25,7 @@ const w = ({
25
25
  /* @__PURE__ */ n.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
26
26
  /* @__PURE__ */ n.jsx(d, { onClick: s, disabled: l, children: "Confirm" })
27
27
  ] }) })
28
- ] }), f = r.createContext(null), I = ({ children: o }) => {
28
+ ] }), f = r.createContext(null), E = ({ children: o }) => {
29
29
  const e = k(), [s, i] = r.useState(!1), [t, a] = r.useState({
30
30
  title: "",
31
31
  content: "",
@@ -67,7 +67,7 @@ const w = ({
67
67
  return o;
68
68
  };
69
69
  export {
70
- I as DialogConfirmProvider,
70
+ E as DialogConfirmProvider,
71
71
  w as default,
72
72
  O as useDialogConfirm
73
73
  };
@@ -1,28 +1,28 @@
1
1
  import { j as o } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as s from "react";
3
3
  import { Dialog as u, DialogTitle as p, Stack as g, IconButton as m, DialogContent as j, DialogActions as f, Button as C } from "@mui/material";
4
- import { S as D } from "../X-B8GTZwii.js";
4
+ import { IconX as D } from "@tabler/icons-react";
5
5
  import { useDialog as k } from "../hooks/use-dialog.js";
6
- import { T as c } from "../Typography-BXLku1B0.js";
6
+ import { T as c } from "../Typography-DlhXzj-D.js";
7
7
  const v = ({
8
- title: n,
8
+ title: t,
9
9
  content: e,
10
- onClose: t = () => {
10
+ onClose: n = () => {
11
11
  },
12
12
  onOk: r = () => {
13
13
  },
14
14
  open: i = !1,
15
15
  maxWidth: l = "sm",
16
16
  showClose: a = !0
17
- }) => /* @__PURE__ */ o.jsxs(u, { fullWidth: !0, maxWidth: l, onClose: t, open: i, children: [
18
- n && /* @__PURE__ */ o.jsx(p, { children: /* @__PURE__ */ o.jsxs(g, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
19
- typeof n == "string" ? /* @__PURE__ */ o.jsx(c, { variant: "h5", textTransform: "capitalize", children: n }) : /* @__PURE__ */ o.jsx("div", { children: n }),
20
- a && /* @__PURE__ */ o.jsx(m, { onClick: t, children: /* @__PURE__ */ o.jsx(D, {}) })
17
+ }) => /* @__PURE__ */ o.jsxs(u, { fullWidth: !0, maxWidth: l, onClose: n, open: i, children: [
18
+ t && /* @__PURE__ */ o.jsx(p, { children: /* @__PURE__ */ o.jsxs(g, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
19
+ typeof t == "string" ? /* @__PURE__ */ o.jsx(c, { variant: "h5", textTransform: "capitalize", children: t }) : /* @__PURE__ */ o.jsx("div", { children: t }),
20
+ a && /* @__PURE__ */ o.jsx(m, { onClick: n, children: /* @__PURE__ */ o.jsx(D, {}) })
21
21
  ] }) }),
22
22
  e && /* @__PURE__ */ o.jsx(j, { children: typeof e == "string" ? /* @__PURE__ */ o.jsx(c, { color: "text.secondary", variant: "body2", children: e }) : e }),
23
23
  /* @__PURE__ */ o.jsx(f, { children: /* @__PURE__ */ o.jsx(C, { onClick: r, children: "Ok" }) })
24
- ] }), d = s.createContext(null), T = ({ children: n }) => {
25
- const e = k(), [t, r] = s.useState({
24
+ ] }), d = s.createContext(null), I = ({ children: t }) => {
25
+ const e = k(), [n, r] = s.useState({
26
26
  title: "",
27
27
  content: "",
28
28
  onOk: e.handleClose
@@ -42,22 +42,22 @@ const v = ({
42
42
  v,
43
43
  {
44
44
  open: e.open,
45
- title: t == null ? void 0 : t.title,
46
- content: t == null ? void 0 : t.content,
45
+ title: n == null ? void 0 : n.title,
46
+ content: n == null ? void 0 : n.content,
47
47
  onClose: e.handleClose,
48
- onOk: t == null ? void 0 : t.onOk
48
+ onOk: n == null ? void 0 : n.onOk
49
49
  }
50
50
  ),
51
- n
51
+ t
52
52
  ] });
53
53
  }, M = () => {
54
- const n = s.useContext(d);
55
- if (!n)
54
+ const t = s.useContext(d);
55
+ if (!t)
56
56
  throw new Error("useDialogMessage must be used within a DialogMessageProvider");
57
- return n;
57
+ return t;
58
58
  };
59
59
  export {
60
- T as DialogMessageProvider,
60
+ I as DialogMessageProvider,
61
61
  v as default,
62
62
  M as useDialogMessage
63
63
  };
@@ -1,74 +1,30 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { Avatar as E, Tooltip as w, IconButton as M, Button as Z } from "@mui/material";
3
- import t, { forwardRef as V } from "react";
4
- import { E as S } from "../SSRBase-BSdFRe_j.js";
5
- import { S as F } from "../X-B8GTZwii.js";
6
- import { useDropzone as O } from "react-dropzone";
7
- import I from "../s-file-icon/s-file-icon.js";
8
- import C from "../s-form/s-form.js";
9
- import { bytesToSize as H } from "../utils/bytes-to-size.js";
10
- import { S as n } from "../Stack-CyNMyetl.js";
11
- import { B as x } from "../Box-CafvePOg.js";
12
- import { T as s } from "../Typography-BXLku1B0.js";
13
- const P = /* @__PURE__ */ new Map([
14
- [
15
- "bold",
16
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M196.49,151.51a12,12,0,0,1-17,17L168,157v51a12,12,0,0,1-24,0V157l-11.51,11.52a12,12,0,1,1-17-17l32-32a12,12,0,0,1,17,0ZM160,36A92.08,92.08,0,0,0,79,84.37,68,68,0,1,0,72,220h28a12,12,0,0,0,0-24H72a44,44,0,0,1-1.81-87.95A91.7,91.7,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,132.6,21.29,12,12,0,1,0,22.8,7.51A92.06,92.06,0,0,0,160,36Z" }))
17
- ],
18
- [
19
- "duotone",
20
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
21
- "path",
22
- {
23
- d: "M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",
24
- opacity: "0.2"
25
- }
26
- ), /* @__PURE__ */ t.createElement("path", { d: "M178.34,165.66,160,147.31V208a8,8,0,0,1-16,0V147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32ZM160,40A88.08,88.08,0,0,0,81.29,88.68,64,64,0,1,0,72,216h40a8,8,0,0,0,0-16H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.12A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,100.8,66,8,8,0,0,0,3.2,15.34,7.9,7.9,0,0,0,3.2-.68A88,88,0,0,0,160,40Z" }))
27
- ],
28
- [
29
- "fill",
30
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M247.93,124.52C246.11,77.54,207.07,40,160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160A88.09,88.09,0,0,0,247.93,124.52Zm-50.27,9.14a8,8,0,0,1-11.32,0L168,115.31V176a8,8,0,0,1-16,0V115.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,197.66,133.66Z" }))
31
- ],
32
- [
33
- "light",
34
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M188.24,164.24a6,6,0,0,1-8.48,0L158,142.49V208a6,6,0,0,1-12,0V142.49l-21.76,21.75a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0l32,32A6,6,0,0,1,188.24,164.24ZM160,42A86.1,86.1,0,0,0,82.43,90.88,62,62,0,1,0,72,214h40a6,6,0,0,0,0-12H72a50,50,0,0,1,0-100,50.68,50.68,0,0,1,5.91.36A85.54,85.54,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,103.6,67.85,6,6,0,0,0,4.8,11A86,86,0,0,0,160,42Z" }))
35
- ],
36
- [
37
- "regular",
38
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.34,165.66,160,147.31V208a8,8,0,0,1-16,0V147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32ZM160,40A88.08,88.08,0,0,0,81.29,88.68,64,64,0,1,0,72,216h40a8,8,0,0,0,0-16H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.12A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,100.8,66,8,8,0,0,0,3.2,15.34,7.9,7.9,0,0,0,3.2-.68A88,88,0,0,0,160,40Z" }))
39
- ],
40
- [
41
- "thin",
42
- /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M186.83,162.83a4,4,0,0,1-5.66,0L156,137.66V208a4,4,0,0,1-8,0V137.66l-25.17,25.17a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0l32,32A4,4,0,0,1,186.83,162.83ZM160,44A84.09,84.09,0,0,0,83.61,93.13,60,60,0,1,0,72,212h40a4,4,0,0,0,0-8H72a52,52,0,1,1,8.57-103.27A83.45,83.45,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,106.4,69.68,4,4,0,0,0,1.6,7.66,3.92,3.92,0,0,0,1.6-.33A84,84,0,0,0,160,44Z" }))
43
- ]
44
- ]);
45
- var z = Object.defineProperty, k = Object.defineProperties, D = Object.getOwnPropertyDescriptors, h = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, u = (r, a, l) => a in r ? z(r, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[a] = l, R = (r, a) => {
46
- for (var l in a || (a = {}))
47
- B.call(a, l) && u(r, l, a[l]);
48
- if (h)
49
- for (var l of h(a))
50
- L.call(a, l) && u(r, l, a[l]);
51
- return r;
52
- }, T = (r, a) => k(r, D(a));
53
- const f = V((r, a) => /* @__PURE__ */ t.createElement(S, T(R({ ref: a }, r), { weights: P })));
54
- f.displayName = "CloudArrowUp";
55
- const a0 = ({
56
- caption: r,
57
- label: a = "",
58
- error: l,
59
- onRemoveAll: g,
60
- onUpload: U,
61
- onRemove: i,
62
- required: j = !1,
63
- disabledUpload: _ = !1,
64
- isShowBtnRemoveAll: b = !1,
65
- ...c
2
+ import { Avatar as v, Tooltip as b, IconButton as y, Button as I } from "@mui/material";
3
+ import { IconCloudUp as S, IconX as w } from "@tabler/icons-react";
4
+ import { useDropzone as z } from "react-dropzone";
5
+ import C from "../s-file-icon/s-file-icon.js";
6
+ import k from "../s-form/s-form.js";
7
+ import { bytesToSize as B } from "../utils/bytes-to-size.js";
8
+ import { S as r } from "../Stack-uu0uVXox.js";
9
+ import { B as d } from "../Box-Cu0PvgiL.js";
10
+ import { T as o } from "../Typography-DlhXzj-D.js";
11
+ const H = ({
12
+ caption: i,
13
+ label: p = "",
14
+ error: x,
15
+ onRemoveAll: m,
16
+ onUpload: D,
17
+ onRemove: s,
18
+ required: h = !1,
19
+ disabledUpload: T = !1,
20
+ isShowBtnRemoveAll: j = !1,
21
+ ...n
66
22
  }) => {
67
- var d, m;
68
- const { getRootProps: A, getInputProps: v, isDragActive: p } = O(c);
69
- return /* @__PURE__ */ e.jsxs(C, { error: l, label: a, required: j, children: [
70
- /* @__PURE__ */ e.jsx(n, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
71
- x,
23
+ var l, c;
24
+ const { getRootProps: u, getInputProps: g, isDragActive: a } = z(n);
25
+ return /* @__PURE__ */ e.jsxs(k, { error: x, label: p, required: h, children: [
26
+ /* @__PURE__ */ e.jsx(r, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
27
+ d,
72
28
  {
73
29
  sx: {
74
30
  alignItems: "center",
@@ -80,48 +36,48 @@ const a0 = ({
80
36
  justifyContent: "center",
81
37
  outline: "none",
82
38
  p: 6,
83
- ...p && {
39
+ ...a && {
84
40
  bgcolor: "var(--s-palette-action-selected)",
85
41
  opacity: 0.5
86
42
  },
87
43
  "&:hover": {
88
- ...!p && {
44
+ ...!a && {
89
45
  bgcolor: "var(--s-palette-action-hover)"
90
46
  }
91
47
  }
92
48
  },
93
- ...A(),
49
+ ...u(),
94
50
  children: [
95
- /* @__PURE__ */ e.jsx("input", { ...v() }),
96
- /* @__PURE__ */ e.jsxs(n, { direction: "row", spacing: 2, sx: { alignItems: "center" }, children: [
51
+ /* @__PURE__ */ e.jsx("input", { ...g() }),
52
+ /* @__PURE__ */ e.jsxs(r, { direction: "row", spacing: 2, sx: { alignItems: "center" }, children: [
97
53
  /* @__PURE__ */ e.jsx(
98
- E,
54
+ v,
99
55
  {
100
56
  sx: {
101
57
  bgcolor: "var(--s-palette-background-paper)",
102
58
  boxShadow: "var(--s-shadows-8)",
103
59
  color: "var(--s-palette-text-primary)"
104
60
  },
105
- children: /* @__PURE__ */ e.jsx(f, {})
61
+ children: /* @__PURE__ */ e.jsx(S, {})
106
62
  }
107
63
  ),
108
- /* @__PURE__ */ e.jsxs(n, { spacing: 1, children: [
109
- /* @__PURE__ */ e.jsxs(s, { variant: "h6", children: [
110
- /* @__PURE__ */ e.jsx(s, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
64
+ /* @__PURE__ */ e.jsxs(r, { spacing: 1, children: [
65
+ /* @__PURE__ */ e.jsxs(o, { variant: "h6", children: [
66
+ /* @__PURE__ */ e.jsx(o, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
111
67
  " ",
112
68
  "or drag and drop your files here"
113
69
  ] }),
114
- r ? /* @__PURE__ */ e.jsx(s, { color: "text.secondary", variant: "body2", children: r }) : null
70
+ i ? /* @__PURE__ */ e.jsx(o, { color: "text.secondary", variant: "body2", children: i }) : null
115
71
  ] })
116
72
  ] })
117
73
  ]
118
74
  }
119
75
  ) }),
120
- (d = c.files) != null && d.length ? /* @__PURE__ */ e.jsxs(n, { mt: 2, spacing: 2, children: [
121
- /* @__PURE__ */ e.jsx(n, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (m = c.files) == null ? void 0 : m.map((o) => {
122
- const y = o.name.split(".").pop();
76
+ (l = n.files) != null && l.length ? /* @__PURE__ */ e.jsxs(r, { mt: 2, spacing: 2, children: [
77
+ /* @__PURE__ */ e.jsx(r, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (c = n.files) == null ? void 0 : c.map((t) => {
78
+ const f = t.name.split(".").pop();
123
79
  return /* @__PURE__ */ e.jsxs(
124
- n,
80
+ r,
125
81
  {
126
82
  component: "li",
127
83
  direction: "row",
@@ -134,29 +90,29 @@ const a0 = ({
134
90
  p: 1
135
91
  },
136
92
  children: [
137
- /* @__PURE__ */ e.jsx(I, { extension: y }),
138
- /* @__PURE__ */ e.jsxs(x, { sx: { flex: "1 1 auto" }, children: [
139
- /* @__PURE__ */ e.jsx(s, { variant: "subtitle2", children: o.name }),
140
- /* @__PURE__ */ e.jsx(s, { color: "text.secondary", variant: "body2", children: H(o.size) })
93
+ /* @__PURE__ */ e.jsx(C, { extension: f }),
94
+ /* @__PURE__ */ e.jsxs(d, { sx: { flex: "1 1 auto" }, children: [
95
+ /* @__PURE__ */ e.jsx(o, { variant: "subtitle2", children: t.name }),
96
+ /* @__PURE__ */ e.jsx(o, { color: "text.secondary", variant: "body2", children: B(t.size) })
141
97
  ] }),
142
- /* @__PURE__ */ e.jsx(w, { title: "Remove", children: /* @__PURE__ */ e.jsx(
143
- M,
98
+ /* @__PURE__ */ e.jsx(b, { title: "Remove", children: /* @__PURE__ */ e.jsx(
99
+ y,
144
100
  {
145
101
  onClick: () => {
146
- i == null || i(o);
102
+ s == null || s(t);
147
103
  },
148
- children: /* @__PURE__ */ e.jsx(F, {})
104
+ children: /* @__PURE__ */ e.jsx(w, {})
149
105
  }
150
106
  ) })
151
107
  ]
152
108
  },
153
- o.size
109
+ t.size
154
110
  );
155
111
  }) }),
156
- /* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: b && /* @__PURE__ */ e.jsx(Z, { onClick: g, size: "small", type: "button", variant: "text", children: "Remove all" }) })
112
+ /* @__PURE__ */ e.jsx(r, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: j && /* @__PURE__ */ e.jsx(I, { onClick: m, size: "small", type: "button", variant: "text", children: "Remove all" }) })
157
113
  ] }) : null
158
114
  ] });
159
115
  };
160
116
  export {
161
- a0 as default
117
+ H as default
162
118
  };
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { B as i } from "../Box-CafvePOg.js";
2
+ import { B as i } from "../Box-Cu0PvgiL.js";
3
3
  const o = {
4
4
  jpeg: "/assets/icon-jpg.svg",
5
5
  jpg: "/assets/icon-jpg.svg",
@@ -1,17 +1,15 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { FormControl as m, FormLabel as c, Tooltip as i, FormHelperText as p } from "@mui/material";
3
- import { c as x } from "../createSvgIcon-C9keHw6o.js";
4
- const a = x(/* @__PURE__ */ e.jsx("path", {
5
- d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"
6
- }), "Help"), u = ({ label: t, hint: s, error: l, required: o, children: r, htmlFor: n }) => /* @__PURE__ */ e.jsxs(m, { error: !!l, fullWidth: !0, children: [
7
- t ? /* @__PURE__ */ e.jsxs(c, { htmlFor: n, required: o, sx: { display: "flex", alignItems: "center" }, children: [
2
+ import { FormControl as i, FormLabel as m, Tooltip as p, FormHelperText as x } from "@mui/material";
3
+ import { IconHelp as a } from "@tabler/icons-react";
4
+ const f = ({ label: t, hint: o, error: l, required: r, children: s, htmlFor: n }) => /* @__PURE__ */ e.jsxs(i, { error: !!l, fullWidth: !0, children: [
5
+ t ? /* @__PURE__ */ e.jsxs(m, { htmlFor: n, required: r, sx: { display: "flex", alignItems: "center" }, children: [
8
6
  t,
9
7
  " ",
10
- s ? /* @__PURE__ */ e.jsx(i, { title: s, placement: "top", sx: { marginLeft: 0.5 }, children: /* @__PURE__ */ e.jsx(a, { style: { width: 16 } }) }) : null
8
+ o ? /* @__PURE__ */ e.jsx(p, { title: o, placement: "top", children: /* @__PURE__ */ e.jsx(a, { size: 16, style: { marginLeft: "4px" } }) }) : null
11
9
  ] }) : null,
12
- r,
13
- l ? /* @__PURE__ */ e.jsx(p, { children: l }) : null
10
+ s,
11
+ l ? /* @__PURE__ */ e.jsx(x, { children: l }) : null
14
12
  ] });
15
13
  export {
16
- u as default
14
+ f as default
17
15
  };
@@ -1,12 +1,10 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { Stack as i, Tooltip as r } from "@mui/material";
3
- import { c } from "../createSvgIcon-C9keHw6o.js";
4
- const a = c(/* @__PURE__ */ e.jsx("path", {
5
- d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
6
- }), "HelpOutline"), d = ({ label: l, content: s, children: n, hint: t, sx: o }) => /* @__PURE__ */ e.jsxs(i, { width: "100%", sx: o, children: [
2
+ import { Stack as i, Tooltip as s } from "@mui/material";
3
+ import { IconHelp as c } from "@tabler/icons-react";
4
+ const d = ({ label: r, content: o, children: l, hint: t, sx: n }) => /* @__PURE__ */ e.jsxs(i, { width: "100%", sx: n, children: [
7
5
  /* @__PURE__ */ e.jsxs(i, { direction: "row", gap: 1, alignItems: "center", children: [
8
- /* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: l }),
9
- t ? /* @__PURE__ */ e.jsx(r, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(a, { fontSize: "small" }) }) : null
6
+ /* @__PURE__ */ e.jsx("div", { style: { fontSize: "1rem", fontWeight: 500, lineHeight: 1.57 }, children: r }),
7
+ t ? /* @__PURE__ */ e.jsx(s, { title: t, placement: "top", children: /* @__PURE__ */ e.jsx(c, { size: 16, style: { marginLeft: "4px" } }) }) : null
10
8
  ] }),
11
9
  /* @__PURE__ */ e.jsx(
12
10
  "div",
@@ -17,10 +15,10 @@ const a = c(/* @__PURE__ */ e.jsx("path", {
17
15
  lineHeight: 1.57,
18
16
  color: "var(--s-palette-text-secondary)"
19
17
  },
20
- children: s
18
+ children: o
21
19
  }
22
20
  ),
23
- n
21
+ l
24
22
  ] });
25
23
  export {
26
24
  d as default
@@ -1,18 +1,18 @@
1
1
  import { j as l } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as m from "react";
3
- import { c as V } from "../createSvgIcon-C9keHw6o.js";
3
+ import { c as V } from "../createSvgIcon-DK6yVt3w.js";
4
4
  import { Stack as P, OutlinedInput as B, selectClasses as E } from "@mui/material";
5
5
  import { usePopover as U } from "../hooks/use-popover.js";
6
6
  import F from "../s-chips/s-chips.js";
7
7
  import { gray as x } from "../theme/theme-primitives.js";
8
- import { L as O, M as z } from "../Menu-DV6b-3vA.js";
9
- import { a as f, P as s } from "../createTheme-DwCHEbMU.js";
10
- import { c as M } from "../identifier-C1jBtHV2.js";
11
- import { u as D, s as G, c as H, r as _, m as A } from "../DefaultPropsProvider-Doz-fKTH.js";
12
- import { g as W, d as k, m as u } from "../menuItemClasses-BuWSZEU7.js";
8
+ import { L as O, M as z } from "../Menu-C2llDJyI.js";
9
+ import { a as f, P as s } from "../createTheme-DgQJeYRt.js";
10
+ import { c as M } from "../identifier-CdaB--DW.js";
11
+ import { u as D, s as G, c as H, r as _, m as A } from "../memoTheme-1tTQAxpP.js";
12
+ import { g as W, d as k, m as u } from "../menuItemClasses-DtZ7DoOq.js";
13
13
  import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
14
- import { u as J, B as K } from "../useSlot-CUlGPdMt.js";
15
- import { g as R } from "../generateUtilityClasses-BHlV34bM.js";
14
+ import { u as J, B as K } from "../useSlot-D9YvaBTd.js";
15
+ import { g as R } from "../generateUtilityClasses-C-O1qWa9.js";
16
16
  const Q = V(/* @__PURE__ */ l.jsx("path", {
17
17
  d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
18
18
  }), "UnfoldMore"), S = R("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = R("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), X = (e, o) => {