@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.
- package/dist/{Box-CafvePOg.js → Box-Cu0PvgiL.js} +5 -5
- package/dist/{Menu-DV6b-3vA.js → Menu-C2llDJyI.js} +7 -7
- package/dist/{Stack-CyNMyetl.js → Stack-uu0uVXox.js} +5 -5
- package/dist/{TransitionGroup-C2C7KNye.js → TransitionGroup-CqOrg-mA.js} +1 -1
- package/dist/{Typography-BXLku1B0.js → Typography-DlhXzj-D.js} +5 -5
- package/dist/{buttonBaseClasses-C7kEMnpC.js → buttonBaseClasses-Cs778eg3.js} +2 -2
- package/dist/{createSvgIcon-C9keHw6o.js → createSvgIcon-DK6yVt3w.js} +4 -4
- package/dist/{createTheme-DwCHEbMU.js → createTheme-DgQJeYRt.js} +158 -159
- package/dist/{extendSxProp-DOBfSUxL.js → extendSxProp-KlKrlfYx.js} +1 -1
- package/dist/{generateUtilityClasses-BHlV34bM.js → generateUtilityClasses-C-O1qWa9.js} +1 -1
- package/dist/{iconButtonClasses--mfwnDzQ.js → iconButtonClasses-BvY27R_O.js} +2 -2
- package/dist/{identifier-C1jBtHV2.js → identifier-CdaB--DW.js} +20 -20
- package/dist/{index-Bg8Tniaw.js → index-NeW0SZ-C.js} +5 -5
- package/dist/{DefaultPropsProvider-Doz-fKTH.js → memoTheme-1tTQAxpP.js} +20 -19
- package/dist/{menuItemClasses-BuWSZEU7.js → menuItemClasses-DtZ7DoOq.js} +2 -2
- package/dist/{outlinedInputClasses-BiB8MrLY.js → outlinedInputClasses-Dh9m5x_6.js} +2 -2
- package/dist/s-data-table/s-data-table.js +7 -7
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.js +18 -18
- package/dist/s-file-dropzone/s-file-dropzone.js +51 -95
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-form/s-form.js +8 -10
- package/dist/s-label/s-label.js +7 -9
- package/dist/s-multi-select/s-multi-select.js +8 -8
- package/dist/s-smart-text-field/s-text-field.js +489 -492
- package/dist/s-text-editor/s-text-editor-toolbar.js +1774 -2087
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-tip/s-tip.js +12 -13
- package/dist/{selectClasses-gIFRMjMV.js → selectClasses-Dfh_2m_V.js} +2 -2
- package/dist/{svgIconClasses-B4eDa4bG.js → svgIconClasses-BqT1l2-6.js} +2 -2
- package/dist/theme/components/avatar.js +5 -42
- package/dist/theme/customizations/data-display.js +60 -97
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +7 -7
- package/dist/theme/customizations/navigation.js +6 -6
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-BHvgKFVi.js → typographyClasses-CYLH9eLg.js} +2 -2
- package/dist/{useFormControl-D6-HePVL.js → useControlled-Bvu9pDu8.js} +8 -8
- package/dist/{useSlot-CUlGPdMt.js → useSlot-D9YvaBTd.js} +17 -17
- package/dist/{useTheme-Cfg4NSRM.js → useTheme-COYkWUCG.js} +1 -1
- package/package.json +5 -3
- package/dist/SSRBase-BSdFRe_j.js +0 -56
- 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
|
|
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
|
|
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
|
|
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
|
-
|
|
43
|
-
c,
|
|
44
|
-
|
|
45
|
-
|
|
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-
|
|
4
|
-
import { P as e } from "./createTheme-
|
|
5
|
-
import { d as a } from "./
|
|
6
|
-
import { T as c } from "./identifier-
|
|
7
|
-
import { u as m } from "./useTheme-
|
|
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-
|
|
2
|
-
import { i as j, a as Z, s as ee, T as te } from "./identifier-
|
|
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
|
-
})
|
|
275
|
+
});
|
|
276
276
|
process.env.NODE_ENV !== "production" && (O.node, O.object.isRequired);
|
|
277
|
-
function
|
|
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
|
-
|
|
287
|
+
xe as m,
|
|
287
288
|
Se as r,
|
|
288
289
|
Te as s,
|
|
289
|
-
|
|
290
|
+
Oe as u
|
|
290
291
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as e } from "./generateUtilityClasses-
|
|
2
|
-
import { g as i } from "./createTheme-
|
|
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-
|
|
2
|
-
import { g as e } from "./createTheme-
|
|
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-
|
|
5
|
-
import { c as I } from "../identifier-
|
|
6
|
-
import { s as S, c as $, r as se, u as E, m as W } from "../
|
|
7
|
-
import { g as B } from "../generateUtilityClasses-
|
|
8
|
-
import { u as je, a as Re } from "../
|
|
9
|
-
import { a as A, B as Oe, r as we, m as Pe } from "../useSlot-
|
|
10
|
-
import { c as J } from "../createSvgIcon-
|
|
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 {
|
|
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 {
|
|
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-
|
|
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),
|
|
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
|
-
|
|
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 {
|
|
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-
|
|
6
|
+
import { T as c } from "../Typography-DlhXzj-D.js";
|
|
7
7
|
const v = ({
|
|
8
|
-
title:
|
|
8
|
+
title: t,
|
|
9
9
|
content: e,
|
|
10
|
-
onClose:
|
|
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:
|
|
18
|
-
|
|
19
|
-
typeof
|
|
20
|
-
a && /* @__PURE__ */ o.jsx(m, { onClick:
|
|
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),
|
|
25
|
-
const e = k(), [
|
|
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:
|
|
46
|
-
content:
|
|
45
|
+
title: n == null ? void 0 : n.title,
|
|
46
|
+
content: n == null ? void 0 : n.content,
|
|
47
47
|
onClose: e.handleClose,
|
|
48
|
-
onOk:
|
|
48
|
+
onOk: n == null ? void 0 : n.onOk
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
|
|
51
|
+
t
|
|
52
52
|
] });
|
|
53
53
|
}, M = () => {
|
|
54
|
-
const
|
|
55
|
-
if (!
|
|
54
|
+
const t = s.useContext(d);
|
|
55
|
+
if (!t)
|
|
56
56
|
throw new Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
57
|
-
return
|
|
57
|
+
return t;
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
68
|
-
const { getRootProps:
|
|
69
|
-
return /* @__PURE__ */ e.jsxs(
|
|
70
|
-
/* @__PURE__ */ e.jsx(
|
|
71
|
-
|
|
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
|
-
...
|
|
39
|
+
...a && {
|
|
84
40
|
bgcolor: "var(--s-palette-action-selected)",
|
|
85
41
|
opacity: 0.5
|
|
86
42
|
},
|
|
87
43
|
"&:hover": {
|
|
88
|
-
...!
|
|
44
|
+
...!a && {
|
|
89
45
|
bgcolor: "var(--s-palette-action-hover)"
|
|
90
46
|
}
|
|
91
47
|
}
|
|
92
48
|
},
|
|
93
|
-
...
|
|
49
|
+
...u(),
|
|
94
50
|
children: [
|
|
95
|
-
/* @__PURE__ */ e.jsx("input", { ...
|
|
96
|
-
/* @__PURE__ */ e.jsxs(
|
|
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
|
-
|
|
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(
|
|
61
|
+
children: /* @__PURE__ */ e.jsx(S, {})
|
|
106
62
|
}
|
|
107
63
|
),
|
|
108
|
-
/* @__PURE__ */ e.jsxs(
|
|
109
|
-
/* @__PURE__ */ e.jsxs(
|
|
110
|
-
/* @__PURE__ */ e.jsx(
|
|
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
|
-
|
|
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
|
-
(
|
|
121
|
-
/* @__PURE__ */ e.jsx(
|
|
122
|
-
const
|
|
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
|
-
|
|
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(
|
|
138
|
-
/* @__PURE__ */ e.jsxs(
|
|
139
|
-
/* @__PURE__ */ e.jsx(
|
|
140
|
-
/* @__PURE__ */ e.jsx(
|
|
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(
|
|
143
|
-
|
|
98
|
+
/* @__PURE__ */ e.jsx(b, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
99
|
+
y,
|
|
144
100
|
{
|
|
145
101
|
onClick: () => {
|
|
146
|
-
|
|
102
|
+
s == null || s(t);
|
|
147
103
|
},
|
|
148
|
-
children: /* @__PURE__ */ e.jsx(
|
|
104
|
+
children: /* @__PURE__ */ e.jsx(w, {})
|
|
149
105
|
}
|
|
150
106
|
) })
|
|
151
107
|
]
|
|
152
108
|
},
|
|
153
|
-
|
|
109
|
+
t.size
|
|
154
110
|
);
|
|
155
111
|
}) }),
|
|
156
|
-
/* @__PURE__ */ e.jsx(
|
|
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
|
-
|
|
117
|
+
H as default
|
|
162
118
|
};
|
package/dist/s-form/s-form.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { FormControl as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
l ? /* @__PURE__ */ e.jsx(
|
|
10
|
+
s,
|
|
11
|
+
l ? /* @__PURE__ */ e.jsx(x, { children: l }) : null
|
|
14
12
|
] });
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
f as default
|
|
17
15
|
};
|
package/dist/s-label/s-label.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { Stack as i, Tooltip as
|
|
3
|
-
import { c } from "
|
|
4
|
-
const
|
|
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:
|
|
9
|
-
t ? /* @__PURE__ */ e.jsx(
|
|
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:
|
|
18
|
+
children: o
|
|
21
19
|
}
|
|
22
20
|
),
|
|
23
|
-
|
|
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-
|
|
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-
|
|
9
|
-
import { a as f, P as s } from "../createTheme-
|
|
10
|
-
import { c as M } from "../identifier-
|
|
11
|
-
import { u as D, s as G, c as H, r as _, m as A } from "../
|
|
12
|
-
import { g as W, d as k, m as u } from "../menuItemClasses-
|
|
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-
|
|
15
|
-
import { g as R } from "../generateUtilityClasses-
|
|
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) => {
|