@solostylist/ui-kit 1.0.11 → 1.0.13
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/README.md +1 -1
- package/dist/{Box-DyPisl7H.js → Box-BAmUWsQI.js} +4 -4
- package/dist/{Menu-CzI0zcbw.js → Menu-B8rPlcSd.js} +426 -420
- package/dist/{Stack-DIkbVcfm.js → Stack-DDbGEkxd.js} +17 -18
- package/dist/{Typography-jSFidXje.js → Typography-DiJzGJJd.js} +4 -4
- package/dist/{buttonBaseClasses-DxKwiRBX.js → buttonBaseClasses-DuDP2bLR.js} +2 -2
- package/dist/{createSvgIcon-B7_s-URK.js → createSvgIcon-Bpes8W5L.js} +20 -20
- package/dist/{createTheme-BZxWCiBm.js → createTheme-DDycScYN.js} +294 -263
- package/dist/{extendSxProp-SCsFy5tr.js → extendSxProp-De4gGzfV.js} +1 -1
- package/dist/{generateUtilityClasses-STjIp_B9.js → generateUtilityClasses-Z7VQRhBn.js} +1 -1
- package/dist/hooks/use-popover.d.ts +1 -1
- package/dist/{iconButtonClasses-CqYTUZq-.js → iconButtonClasses-8TuGhR-e.js} +2 -2
- package/dist/{index-DljiS4x1.js → index-CBHvlAxO.js} +4 -4
- package/dist/main.d.ts +0 -13
- package/dist/main.js +73 -99
- package/dist/{memoTheme-CaOW5YiB.js → memoTheme-DX35GGEJ.js} +30 -30
- package/dist/{menuItemClasses-BxqenSTj.js → menuItemClasses-DLFqc90k.js} +2 -2
- package/dist/outlinedInputClasses-CnRkAD7A.js +19 -0
- package/dist/s-button-link/s-button-link.d.ts +2 -3
- package/dist/s-button-link/s-button-link.js +11 -12
- package/dist/s-checkbox/s-checkbox.js +8 -9
- package/dist/s-chips/s-chips.js +6 -7
- package/dist/s-data-table/s-data-table.js +232 -233
- package/dist/s-dialog-confirm/s-dialog-confirm.js +26 -27
- package/dist/s-dialog-message/s-dialog-message.js +27 -28
- package/dist/s-file-dropzone/s-file-dropzone.js +27 -29
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +318 -33
- package/dist/s-pagination/s-pagination.d.ts +2 -1
- package/dist/s-pagination/s-pagination.js +12 -15
- package/dist/s-select/s-select.js +10 -11
- package/dist/s-text-editor/s-text-editor-toolbar.js +506 -508
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{selectClasses-BaagNb21.js → selectClasses-CDFwg8w_.js} +2 -2
- package/dist/{svgIconClasses-SzHbWjUv.js → svgIconClasses-XJq1Ciua.js} +2 -2
- package/dist/theme/{customizations/components → components}/avatar.js +2 -2
- package/dist/theme/components/components.d.ts +2 -1126
- package/dist/theme/components/components.js +4 -108
- package/dist/theme/customizations/data-display.js +98 -58
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +24 -24
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-BrhUWCU3.js → typographyClasses-CyVhKkh8.js} +2 -2
- package/dist/useSlot-B682hoPx.js +1179 -0
- package/dist/{useTheme-DrS6mww6.js → useTheme-DPznNGA-.js} +1 -1
- package/package.json +1 -1
- package/dist/ButtonBase-BFsNsbc9.js +0 -999
- package/dist/CaretDown-CZu0drmJ.js +0 -41
- package/dist/MenuItem-Bl45WcKS.js +0 -258
- package/dist/backdropClasses-lc38rgzd.js +0 -10
- package/dist/generateUtilityClass-CRH_bFW6.js +0 -34
- package/dist/inputBaseClasses-BRd7g4Od.js +0 -10
- package/dist/listItemIconClasses-D-kc0Y9u.js +0 -5
- package/dist/outlinedInputClasses-BTtPbpE5.js +0 -14
- package/dist/paperClasses-D1WMlaxU.js +0 -10
- package/dist/s-avatar/index.d.ts +0 -1
- package/dist/s-avatar/index.js +0 -4
- package/dist/s-avatar/package.json +0 -5
- package/dist/s-avatar/s-avatar.d.ts +0 -6
- package/dist/s-avatar/s-avatar.js +0 -6
- package/dist/s-box/index.d.ts +0 -1
- package/dist/s-box/index.js +0 -4
- package/dist/s-box/package.json +0 -5
- package/dist/s-box/s-box.d.ts +0 -5
- package/dist/s-box/s-box.js +0 -6
- package/dist/s-breadcrumbs-separator/index.d.ts +0 -1
- package/dist/s-breadcrumbs-separator/index.js +0 -4
- package/dist/s-breadcrumbs-separator/package.json +0 -5
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.d.ts +0 -3
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.js +0 -6
- package/dist/s-button/index.d.ts +0 -1
- package/dist/s-button/index.js +0 -4
- package/dist/s-button/package.json +0 -5
- package/dist/s-button/s-button.d.ts +0 -6
- package/dist/s-button/s-button.js +0 -18
- package/dist/s-card/index.d.ts +0 -1
- package/dist/s-card/index.js +0 -4
- package/dist/s-card/package.json +0 -5
- package/dist/s-card/s-card.d.ts +0 -6
- package/dist/s-card/s-card.js +0 -6
- package/dist/s-card-actions/index.d.ts +0 -1
- package/dist/s-card-actions/index.js +0 -4
- package/dist/s-card-actions/package.json +0 -5
- package/dist/s-card-actions/s-card-actions.d.ts +0 -6
- package/dist/s-card-actions/s-card-actions.js +0 -6
- package/dist/s-card-content/index.d.ts +0 -1
- package/dist/s-card-content/index.js +0 -4
- package/dist/s-card-content/package.json +0 -5
- package/dist/s-card-content/s-card-content.d.ts +0 -6
- package/dist/s-card-content/s-card-content.js +0 -6
- package/dist/s-card-header/index.d.ts +0 -1
- package/dist/s-card-header/index.js +0 -4
- package/dist/s-card-header/package.json +0 -5
- package/dist/s-card-header/s-card-header.d.ts +0 -6
- package/dist/s-card-header/s-card-header.js +0 -6
- package/dist/s-chip/index.d.ts +0 -1
- package/dist/s-chip/index.js +0 -4
- package/dist/s-chip/package.json +0 -5
- package/dist/s-chip/s-chip.d.ts +0 -6
- package/dist/s-chip/s-chip.js +0 -6
- package/dist/s-link/index.d.ts +0 -1
- package/dist/s-link/index.js +0 -4
- package/dist/s-link/package.json +0 -5
- package/dist/s-link/s-link.d.ts +0 -6
- package/dist/s-link/s-link.js +0 -6
- package/dist/s-menu-item/index.d.ts +0 -1
- package/dist/s-menu-item/index.js +0 -4
- package/dist/s-menu-item/package.json +0 -5
- package/dist/s-menu-item/s-menu-item.d.ts +0 -9
- package/dist/s-menu-item/s-menu-item.js +0 -6
- package/dist/s-rating/index.d.ts +0 -1
- package/dist/s-rating/index.js +0 -4
- package/dist/s-rating/package.json +0 -5
- package/dist/s-rating/s-rating.d.ts +0 -7
- package/dist/s-rating/s-rating.js +0 -6
- package/dist/s-stack/index.d.ts +0 -1
- package/dist/s-stack/index.js +0 -4
- package/dist/s-stack/package.json +0 -5
- package/dist/s-stack/s-stack.d.ts +0 -5
- package/dist/s-stack/s-stack.js +0 -6
- package/dist/tabClasses-CDDkt7la.js +0 -5
- package/dist/tableCellClasses-CBw1aep0.js +0 -10
- package/dist/theme/components/accordion.d.ts +0 -8
- package/dist/theme/components/accordion.js +0 -11
- package/dist/theme/components/alert.d.ts +0 -7
- package/dist/theme/components/alert.js +0 -4
- package/dist/theme/components/autocomplete.d.ts +0 -124
- package/dist/theme/components/autocomplete.js +0 -51
- package/dist/theme/components/backdrop.d.ts +0 -9
- package/dist/theme/components/backdrop.js +0 -9
- package/dist/theme/components/button-base.d.ts +0 -5
- package/dist/theme/components/button-base.js +0 -4
- package/dist/theme/components/button-group.d.ts +0 -5
- package/dist/theme/components/button-group.js +0 -4
- package/dist/theme/components/button.d.ts +0 -156
- package/dist/theme/components/button.js +0 -109
- package/dist/theme/components/card-actions.d.ts +0 -7
- package/dist/theme/components/card-actions.js +0 -6
- package/dist/theme/components/card-content.d.ts +0 -10
- package/dist/theme/components/card-content.js +0 -7
- package/dist/theme/components/card-header.d.ts +0 -25
- package/dist/theme/components/card-header.js +0 -20
- package/dist/theme/components/card.d.ts +0 -17
- package/dist/theme/components/card.js +0 -17
- package/dist/theme/components/checkbox.d.ts +0 -18
- package/dist/theme/components/checkbox.js +0 -60
- package/dist/theme/components/chip.d.ts +0 -28
- package/dist/theme/components/chip.js +0 -62
- package/dist/theme/components/dialog-actions.d.ts +0 -7
- package/dist/theme/components/dialog-actions.js +0 -6
- package/dist/theme/components/dialog-content-text.d.ts +0 -8
- package/dist/theme/components/dialog-content-text.js +0 -6
- package/dist/theme/components/dialog-content.d.ts +0 -8
- package/dist/theme/components/dialog-content.js +0 -6
- package/dist/theme/components/dialog-title.d.ts +0 -7
- package/dist/theme/components/dialog-title.js +0 -6
- package/dist/theme/components/filled-input.d.ts +0 -31
- package/dist/theme/components/filled-input.js +0 -21
- package/dist/theme/components/form-control-label.d.ts +0 -15
- package/dist/theme/components/form-control-label.js +0 -7
- package/dist/theme/components/form-group.d.ts +0 -7
- package/dist/theme/components/form-group.js +0 -4
- package/dist/theme/components/form-helper-text.d.ts +0 -8
- package/dist/theme/components/form-helper-text.js +0 -8
- package/dist/theme/components/form-label.d.ts +0 -12
- package/dist/theme/components/form-label.js +0 -9
- package/dist/theme/components/icon-button.d.ts +0 -83
- package/dist/theme/components/icon-button.js +0 -49
- package/dist/theme/components/input-base.d.ts +0 -39
- package/dist/theme/components/input-base.js +0 -34
- package/dist/theme/components/input-label.d.ts +0 -10
- package/dist/theme/components/input-label.js +0 -6
- package/dist/theme/components/input.d.ts +0 -32
- package/dist/theme/components/input.js +0 -22
- package/dist/theme/components/linear-progress.d.ts +0 -8
- package/dist/theme/components/linear-progress.js +0 -6
- package/dist/theme/components/link.d.ts +0 -10
- package/dist/theme/components/link.js +0 -11
- package/dist/theme/components/list-item-avatar.d.ts +0 -7
- package/dist/theme/components/list-item-avatar.js +0 -6
- package/dist/theme/components/list-item-button.d.ts +0 -10
- package/dist/theme/components/list-item-button.js +0 -7
- package/dist/theme/components/list-item-icon.d.ts +0 -9
- package/dist/theme/components/list-item-icon.js +0 -6
- package/dist/theme/components/list-item-text.d.ts +0 -7
- package/dist/theme/components/list-item-text.js +0 -6
- package/dist/theme/components/list-item.d.ts +0 -7
- package/dist/theme/components/list-item.js +0 -6
- package/dist/theme/components/list.d.ts +0 -7
- package/dist/theme/components/list.js +0 -6
- package/dist/theme/components/menu-item.d.ts +0 -17
- package/dist/theme/components/menu-item.js +0 -17
- package/dist/theme/components/menu.d.ts +0 -13
- package/dist/theme/components/menu.js +0 -7
- package/dist/theme/components/outlined-input.d.ts +0 -127
- package/dist/theme/components/outlined-input.js +0 -47
- package/dist/theme/components/paper.d.ts +0 -7
- package/dist/theme/components/paper.js +0 -6
- package/dist/theme/components/popover.d.ts +0 -11
- package/dist/theme/components/popover.js +0 -7
- package/dist/theme/components/radio.d.ts +0 -13
- package/dist/theme/components/radio.js +0 -25
- package/dist/theme/components/select.d.ts +0 -21
- package/dist/theme/components/select.js +0 -18
- package/dist/theme/components/skeleton.d.ts +0 -5
- package/dist/theme/components/skeleton.js +0 -8
- package/dist/theme/components/stack.d.ts +0 -5
- package/dist/theme/components/stack.js +0 -4
- package/dist/theme/components/switch.d.ts +0 -19
- package/dist/theme/components/switch.js +0 -11
- package/dist/theme/components/tab.d.ts +0 -18
- package/dist/theme/components/tab.js +0 -15
- package/dist/theme/components/table-body.d.ts +0 -5
- package/dist/theme/components/table-body.js +0 -10
- package/dist/theme/components/table-cell.d.ts +0 -10
- package/dist/theme/components/table-cell.js +0 -11
- package/dist/theme/components/table-head.d.ts +0 -11
- package/dist/theme/components/table-head.js +0 -15
- package/dist/theme/components/table-pagination.d.ts +0 -28
- package/dist/theme/components/table-pagination.js +0 -93
- package/dist/theme/components/tabs.d.ts +0 -33
- package/dist/theme/components/tabs.js +0 -21
- package/dist/theme/components/toggle-button-group.d.ts +0 -23
- package/dist/theme/components/toggle-button-group.js +0 -17
- package/dist/theme/components/toggle-button.d.ts +0 -12
- package/dist/theme/components/toggle-button.js +0 -9
- package/dist/theme/components/tooltip.d.ts +0 -10
- package/dist/theme/components/tooltip.js +0 -7
- package/dist/theme/customizations/components/components.d.ts +0 -7
- package/dist/theme/customizations/components/components.js +0 -7
- package/dist/useSlot-CtsS_jy6.js +0 -184
- /package/dist/theme/{customizations/components → components}/avatar.d.ts +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { Dialog as p, DialogTitle as g, Stack as j, IconButton as D, DialogContent as v, DialogActions as y } from "@mui/material";
|
|
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
4
|
import { S as b } from "../X-B8GTZwii.js";
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
content: o,
|
|
5
|
+
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
+
import { T as m } from "../Typography-DiJzGJJd.js";
|
|
7
|
+
const w = ({
|
|
8
|
+
title: o,
|
|
9
|
+
content: e,
|
|
11
10
|
onConfirm: s = () => {
|
|
12
11
|
},
|
|
13
12
|
onClose: i = () => {
|
|
@@ -17,17 +16,17 @@ const k = ({
|
|
|
17
16
|
showClose: c = !0,
|
|
18
17
|
loading: l = !1
|
|
19
18
|
}) => /* @__PURE__ */ n.jsxs(p, { fullWidth: !0, maxWidth: a, onClose: i, open: t, children: [
|
|
20
|
-
|
|
21
|
-
typeof
|
|
19
|
+
o && /* @__PURE__ */ n.jsx(g, { children: /* @__PURE__ */ n.jsxs(j, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
20
|
+
typeof o == "string" ? /* @__PURE__ */ n.jsx(m, { variant: "h5", textTransform: "capitalize", children: o }) : /* @__PURE__ */ n.jsx("div", { children: o }),
|
|
22
21
|
c && /* @__PURE__ */ n.jsx(D, { onClick: i, children: /* @__PURE__ */ n.jsx(b, {}) })
|
|
23
22
|
] }) }),
|
|
24
|
-
|
|
23
|
+
e && /* @__PURE__ */ n.jsx(v, { children: typeof e == "string" ? /* @__PURE__ */ n.jsx(m, { color: "text.secondary", variant: "body2", children: e }) : e }),
|
|
25
24
|
/* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
26
25
|
/* @__PURE__ */ n.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
|
|
27
26
|
/* @__PURE__ */ n.jsx(d, { onClick: s, disabled: l, children: "Confirm" })
|
|
28
27
|
] }) })
|
|
29
|
-
] }), f = r.createContext(null),
|
|
30
|
-
const
|
|
28
|
+
] }), f = r.createContext(null), I = ({ children: o }) => {
|
|
29
|
+
const e = k(), [s, i] = r.useState(!1), [t, a] = r.useState({
|
|
31
30
|
title: "",
|
|
32
31
|
content: "",
|
|
33
32
|
onConfirm: () => {
|
|
@@ -36,12 +35,12 @@ const k = ({
|
|
|
36
35
|
handleOpen: r.useCallback(
|
|
37
36
|
(x) => {
|
|
38
37
|
const { title: h, content: u, onConfirm: C } = x;
|
|
39
|
-
a({ title: h, content: u, onConfirm: C }),
|
|
38
|
+
a({ title: h, content: u, onConfirm: C }), e.handleOpen();
|
|
40
39
|
},
|
|
41
|
-
[
|
|
40
|
+
[e]
|
|
42
41
|
),
|
|
43
|
-
handleClose:
|
|
44
|
-
open:
|
|
42
|
+
handleClose: e.handleClose,
|
|
43
|
+
open: e.open,
|
|
45
44
|
loading: s,
|
|
46
45
|
setLoading: i
|
|
47
46
|
}, l = () => {
|
|
@@ -49,26 +48,26 @@ const k = ({
|
|
|
49
48
|
};
|
|
50
49
|
return /* @__PURE__ */ n.jsxs(f.Provider, { value: c, children: [
|
|
51
50
|
/* @__PURE__ */ n.jsx(
|
|
52
|
-
|
|
51
|
+
w,
|
|
53
52
|
{
|
|
54
|
-
open:
|
|
53
|
+
open: e.open,
|
|
55
54
|
title: t == null ? void 0 : t.title,
|
|
56
55
|
content: t == null ? void 0 : t.content,
|
|
57
|
-
onClose:
|
|
56
|
+
onClose: e.handleClose,
|
|
58
57
|
onConfirm: l,
|
|
59
58
|
loading: s
|
|
60
59
|
}
|
|
61
60
|
),
|
|
62
|
-
|
|
61
|
+
o
|
|
63
62
|
] });
|
|
64
|
-
},
|
|
65
|
-
const
|
|
66
|
-
if (!
|
|
63
|
+
}, O = () => {
|
|
64
|
+
const o = r.useContext(f);
|
|
65
|
+
if (!o)
|
|
67
66
|
throw new Error("useDialogConfirm must be used within a DialogConfirmProvider");
|
|
68
|
-
return
|
|
67
|
+
return o;
|
|
69
68
|
};
|
|
70
69
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
I as DialogConfirmProvider,
|
|
71
|
+
w as default,
|
|
72
|
+
O as useDialogConfirm
|
|
74
73
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { Dialog as
|
|
4
|
-
import { S as
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import
|
|
7
|
-
import { T as c } from "../Typography-jSFidXje.js";
|
|
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";
|
|
5
|
+
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
+
import { T as c } from "../Typography-DiJzGJJd.js";
|
|
8
7
|
const v = ({
|
|
9
8
|
title: n,
|
|
10
|
-
content:
|
|
9
|
+
content: e,
|
|
11
10
|
onClose: t = () => {
|
|
12
11
|
},
|
|
13
12
|
onOk: r = () => {
|
|
@@ -15,50 +14,50 @@ const v = ({
|
|
|
15
14
|
open: i = !1,
|
|
16
15
|
maxWidth: l = "sm",
|
|
17
16
|
showClose: a = !0
|
|
18
|
-
}) => /* @__PURE__ */
|
|
19
|
-
n && /* @__PURE__ */
|
|
20
|
-
typeof n == "string" ? /* @__PURE__ */
|
|
21
|
-
a && /* @__PURE__ */
|
|
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, {}) })
|
|
22
21
|
] }) }),
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
] }), d = s.createContext(null),
|
|
26
|
-
const
|
|
22
|
+
e && /* @__PURE__ */ o.jsx(j, { children: typeof e == "string" ? /* @__PURE__ */ o.jsx(c, { color: "text.secondary", variant: "body2", children: e }) : e }),
|
|
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({
|
|
27
26
|
title: "",
|
|
28
27
|
content: "",
|
|
29
|
-
onOk:
|
|
28
|
+
onOk: e.handleClose
|
|
30
29
|
}), i = {
|
|
31
30
|
handleOpen: s.useCallback(
|
|
32
31
|
(l) => {
|
|
33
|
-
const { title: a, content: h, onOk: x =
|
|
34
|
-
r({ title: a, content: h, onOk: x }),
|
|
32
|
+
const { title: a, content: h, onOk: x = e.handleClose } = l;
|
|
33
|
+
r({ title: a, content: h, onOk: x }), e.handleOpen();
|
|
35
34
|
},
|
|
36
|
-
[
|
|
35
|
+
[e]
|
|
37
36
|
),
|
|
38
|
-
handleClose:
|
|
39
|
-
open:
|
|
37
|
+
handleClose: e.handleClose,
|
|
38
|
+
open: e.open
|
|
40
39
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ o.jsxs(d.Provider, { value: i, children: [
|
|
41
|
+
/* @__PURE__ */ o.jsx(
|
|
43
42
|
v,
|
|
44
43
|
{
|
|
45
|
-
open:
|
|
44
|
+
open: e.open,
|
|
46
45
|
title: t == null ? void 0 : t.title,
|
|
47
46
|
content: t == null ? void 0 : t.content,
|
|
48
|
-
onClose:
|
|
47
|
+
onClose: e.handleClose,
|
|
49
48
|
onOk: t == null ? void 0 : t.onOk
|
|
50
49
|
}
|
|
51
50
|
),
|
|
52
51
|
n
|
|
53
52
|
] });
|
|
54
|
-
},
|
|
53
|
+
}, M = () => {
|
|
55
54
|
const n = s.useContext(d);
|
|
56
55
|
if (!n)
|
|
57
56
|
throw new Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
58
57
|
return n;
|
|
59
58
|
};
|
|
60
59
|
export {
|
|
61
|
-
|
|
60
|
+
T as DialogMessageProvider,
|
|
62
61
|
v as default,
|
|
63
|
-
|
|
62
|
+
M as useDialogMessage
|
|
64
63
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Avatar as E, Tooltip as w, IconButton as M, Button as Z } from "@mui/material";
|
|
3
3
|
import t, { forwardRef as S } from "react";
|
|
4
|
-
import { E as
|
|
5
|
-
import { S as
|
|
6
|
-
import { useDropzone as
|
|
7
|
-
import z from "../s-avatar/s-avatar.js";
|
|
8
|
-
import F from "../s-button/s-button.js";
|
|
4
|
+
import { E as V } from "../SSRBase-BSdFRe_j.js";
|
|
5
|
+
import { S as z } from "../X-B8GTZwii.js";
|
|
6
|
+
import { useDropzone as F } from "react-dropzone";
|
|
9
7
|
import I from "../s-file-icon/s-file-icon.js";
|
|
10
8
|
import O from "../s-form/s-form.js";
|
|
11
9
|
import { bytesToSize as C } from "../utils/bytes-to-size.js";
|
|
12
|
-
import { S as n } from "../Stack-
|
|
13
|
-
import { B as u } from "../Box-
|
|
14
|
-
import { T as i } from "../Typography-
|
|
10
|
+
import { S as n } from "../Stack-DDbGEkxd.js";
|
|
11
|
+
import { B as u } from "../Box-BAmUWsQI.js";
|
|
12
|
+
import { T as i } from "../Typography-DiJzGJJd.js";
|
|
15
13
|
const H = /* @__PURE__ */ new Map([
|
|
16
14
|
[
|
|
17
15
|
"bold",
|
|
@@ -44,19 +42,19 @@ const H = /* @__PURE__ */ new Map([
|
|
|
44
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" }))
|
|
45
43
|
]
|
|
46
44
|
]);
|
|
47
|
-
var P = Object.defineProperty, k = Object.defineProperties, D = Object.getOwnPropertyDescriptors, x = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, h = (
|
|
48
|
-
for (var l in
|
|
49
|
-
B.call(
|
|
45
|
+
var P = Object.defineProperty, k = Object.defineProperties, D = Object.getOwnPropertyDescriptors, x = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, h = (r, a, l) => a in r ? P(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) && h(r, l, a[l]);
|
|
50
48
|
if (x)
|
|
51
|
-
for (var l of x(
|
|
52
|
-
L.call(
|
|
53
|
-
return
|
|
54
|
-
}, T = (
|
|
55
|
-
const f = S((
|
|
49
|
+
for (var l of x(a))
|
|
50
|
+
L.call(a, l) && h(r, l, a[l]);
|
|
51
|
+
return r;
|
|
52
|
+
}, T = (r, a) => k(r, D(a));
|
|
53
|
+
const f = S((r, a) => /* @__PURE__ */ t.createElement(V, T(R({ ref: a }, r), { weights: H })));
|
|
56
54
|
f.displayName = "CloudArrowUp";
|
|
57
|
-
const
|
|
58
|
-
caption:
|
|
59
|
-
label:
|
|
55
|
+
const a0 = ({
|
|
56
|
+
caption: r,
|
|
57
|
+
label: a = "",
|
|
60
58
|
error: l,
|
|
61
59
|
onRemoveAll: g,
|
|
62
60
|
onUpload: U,
|
|
@@ -67,8 +65,8 @@ const l0 = ({
|
|
|
67
65
|
...c
|
|
68
66
|
}) => {
|
|
69
67
|
var m, d;
|
|
70
|
-
const { getRootProps: A, getInputProps: b, isDragActive: p } =
|
|
71
|
-
return /* @__PURE__ */ e.jsxs(O, { error: l, label:
|
|
68
|
+
const { getRootProps: A, getInputProps: b, isDragActive: p } = F(c);
|
|
69
|
+
return /* @__PURE__ */ e.jsxs(O, { error: l, label: a, required: j, children: [
|
|
72
70
|
/* @__PURE__ */ e.jsx(n, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
|
|
73
71
|
u,
|
|
74
72
|
{
|
|
@@ -97,7 +95,7 @@ const l0 = ({
|
|
|
97
95
|
/* @__PURE__ */ e.jsx("input", { ...b() }),
|
|
98
96
|
/* @__PURE__ */ e.jsxs(n, { direction: "row", spacing: 2, sx: { alignItems: "center" }, children: [
|
|
99
97
|
/* @__PURE__ */ e.jsx(
|
|
100
|
-
|
|
98
|
+
E,
|
|
101
99
|
{
|
|
102
100
|
sx: {
|
|
103
101
|
"--Avatar-size": "64px",
|
|
@@ -115,7 +113,7 @@ const l0 = ({
|
|
|
115
113
|
" ",
|
|
116
114
|
"or drag and drop your files here"
|
|
117
115
|
] }),
|
|
118
|
-
|
|
116
|
+
r ? /* @__PURE__ */ e.jsx(i, { color: "text.secondary", variant: "body2", children: r }) : null
|
|
119
117
|
] })
|
|
120
118
|
] })
|
|
121
119
|
]
|
|
@@ -143,13 +141,13 @@ const l0 = ({
|
|
|
143
141
|
/* @__PURE__ */ e.jsx(i, { variant: "subtitle2", children: o.name }),
|
|
144
142
|
/* @__PURE__ */ e.jsx(i, { color: "text.secondary", variant: "body2", children: C(o.size) })
|
|
145
143
|
] }),
|
|
146
|
-
/* @__PURE__ */ e.jsx(
|
|
147
|
-
|
|
144
|
+
/* @__PURE__ */ e.jsx(w, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
145
|
+
M,
|
|
148
146
|
{
|
|
149
147
|
onClick: () => {
|
|
150
148
|
s == null || s(o);
|
|
151
149
|
},
|
|
152
|
-
children: /* @__PURE__ */ e.jsx(
|
|
150
|
+
children: /* @__PURE__ */ e.jsx(z, {})
|
|
153
151
|
}
|
|
154
152
|
) })
|
|
155
153
|
]
|
|
@@ -157,10 +155,10 @@ const l0 = ({
|
|
|
157
155
|
o.size
|
|
158
156
|
);
|
|
159
157
|
}) }),
|
|
160
|
-
/* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: v && /* @__PURE__ */ e.jsx(
|
|
158
|
+
/* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: v && /* @__PURE__ */ e.jsx(Z, { onClick: g, size: "small", type: "button", variant: "text", children: "Remove all" }) })
|
|
161
159
|
] }) : null
|
|
162
160
|
] });
|
|
163
161
|
};
|
|
164
162
|
export {
|
|
165
|
-
|
|
163
|
+
a0 as default
|
|
166
164
|
};
|