@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.
Files changed (236) hide show
  1. package/README.md +1 -1
  2. package/dist/{Box-DyPisl7H.js → Box-BAmUWsQI.js} +4 -4
  3. package/dist/{Menu-CzI0zcbw.js → Menu-B8rPlcSd.js} +426 -420
  4. package/dist/{Stack-DIkbVcfm.js → Stack-DDbGEkxd.js} +17 -18
  5. package/dist/{Typography-jSFidXje.js → Typography-DiJzGJJd.js} +4 -4
  6. package/dist/{buttonBaseClasses-DxKwiRBX.js → buttonBaseClasses-DuDP2bLR.js} +2 -2
  7. package/dist/{createSvgIcon-B7_s-URK.js → createSvgIcon-Bpes8W5L.js} +20 -20
  8. package/dist/{createTheme-BZxWCiBm.js → createTheme-DDycScYN.js} +294 -263
  9. package/dist/{extendSxProp-SCsFy5tr.js → extendSxProp-De4gGzfV.js} +1 -1
  10. package/dist/{generateUtilityClasses-STjIp_B9.js → generateUtilityClasses-Z7VQRhBn.js} +1 -1
  11. package/dist/hooks/use-popover.d.ts +1 -1
  12. package/dist/{iconButtonClasses-CqYTUZq-.js → iconButtonClasses-8TuGhR-e.js} +2 -2
  13. package/dist/{index-DljiS4x1.js → index-CBHvlAxO.js} +4 -4
  14. package/dist/main.d.ts +0 -13
  15. package/dist/main.js +73 -99
  16. package/dist/{memoTheme-CaOW5YiB.js → memoTheme-DX35GGEJ.js} +30 -30
  17. package/dist/{menuItemClasses-BxqenSTj.js → menuItemClasses-DLFqc90k.js} +2 -2
  18. package/dist/outlinedInputClasses-CnRkAD7A.js +19 -0
  19. package/dist/s-button-link/s-button-link.d.ts +2 -3
  20. package/dist/s-button-link/s-button-link.js +11 -12
  21. package/dist/s-checkbox/s-checkbox.js +8 -9
  22. package/dist/s-chips/s-chips.js +6 -7
  23. package/dist/s-data-table/s-data-table.js +232 -233
  24. package/dist/s-dialog-confirm/s-dialog-confirm.js +26 -27
  25. package/dist/s-dialog-message/s-dialog-message.js +27 -28
  26. package/dist/s-file-dropzone/s-file-dropzone.js +27 -29
  27. package/dist/s-file-icon/s-file-icon.js +1 -1
  28. package/dist/s-multi-select/s-multi-select.js +318 -33
  29. package/dist/s-pagination/s-pagination.d.ts +2 -1
  30. package/dist/s-pagination/s-pagination.js +12 -15
  31. package/dist/s-select/s-select.js +10 -11
  32. package/dist/s-text-editor/s-text-editor-toolbar.js +506 -508
  33. package/dist/s-text-editor/s-text-editor.js +1 -1
  34. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  35. package/dist/s-tip/s-tip.js +3 -3
  36. package/dist/{selectClasses-BaagNb21.js → selectClasses-CDFwg8w_.js} +2 -2
  37. package/dist/{svgIconClasses-SzHbWjUv.js → svgIconClasses-XJq1Ciua.js} +2 -2
  38. package/dist/theme/{customizations/components → components}/avatar.js +2 -2
  39. package/dist/theme/components/components.d.ts +2 -1126
  40. package/dist/theme/components/components.js +4 -108
  41. package/dist/theme/customizations/data-display.js +98 -58
  42. package/dist/theme/customizations/feedback.js +1 -1
  43. package/dist/theme/customizations/inputs.js +5 -5
  44. package/dist/theme/customizations/navigation.js +24 -24
  45. package/dist/theme/customizations/surfaces.js +1 -1
  46. package/dist/theme/theme-primitives.js +1 -1
  47. package/dist/{typographyClasses-BrhUWCU3.js → typographyClasses-CyVhKkh8.js} +2 -2
  48. package/dist/useSlot-B682hoPx.js +1179 -0
  49. package/dist/{useTheme-DrS6mww6.js → useTheme-DPznNGA-.js} +1 -1
  50. package/package.json +1 -1
  51. package/dist/ButtonBase-BFsNsbc9.js +0 -999
  52. package/dist/CaretDown-CZu0drmJ.js +0 -41
  53. package/dist/MenuItem-Bl45WcKS.js +0 -258
  54. package/dist/backdropClasses-lc38rgzd.js +0 -10
  55. package/dist/generateUtilityClass-CRH_bFW6.js +0 -34
  56. package/dist/inputBaseClasses-BRd7g4Od.js +0 -10
  57. package/dist/listItemIconClasses-D-kc0Y9u.js +0 -5
  58. package/dist/outlinedInputClasses-BTtPbpE5.js +0 -14
  59. package/dist/paperClasses-D1WMlaxU.js +0 -10
  60. package/dist/s-avatar/index.d.ts +0 -1
  61. package/dist/s-avatar/index.js +0 -4
  62. package/dist/s-avatar/package.json +0 -5
  63. package/dist/s-avatar/s-avatar.d.ts +0 -6
  64. package/dist/s-avatar/s-avatar.js +0 -6
  65. package/dist/s-box/index.d.ts +0 -1
  66. package/dist/s-box/index.js +0 -4
  67. package/dist/s-box/package.json +0 -5
  68. package/dist/s-box/s-box.d.ts +0 -5
  69. package/dist/s-box/s-box.js +0 -6
  70. package/dist/s-breadcrumbs-separator/index.d.ts +0 -1
  71. package/dist/s-breadcrumbs-separator/index.js +0 -4
  72. package/dist/s-breadcrumbs-separator/package.json +0 -5
  73. package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.d.ts +0 -3
  74. package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.js +0 -6
  75. package/dist/s-button/index.d.ts +0 -1
  76. package/dist/s-button/index.js +0 -4
  77. package/dist/s-button/package.json +0 -5
  78. package/dist/s-button/s-button.d.ts +0 -6
  79. package/dist/s-button/s-button.js +0 -18
  80. package/dist/s-card/index.d.ts +0 -1
  81. package/dist/s-card/index.js +0 -4
  82. package/dist/s-card/package.json +0 -5
  83. package/dist/s-card/s-card.d.ts +0 -6
  84. package/dist/s-card/s-card.js +0 -6
  85. package/dist/s-card-actions/index.d.ts +0 -1
  86. package/dist/s-card-actions/index.js +0 -4
  87. package/dist/s-card-actions/package.json +0 -5
  88. package/dist/s-card-actions/s-card-actions.d.ts +0 -6
  89. package/dist/s-card-actions/s-card-actions.js +0 -6
  90. package/dist/s-card-content/index.d.ts +0 -1
  91. package/dist/s-card-content/index.js +0 -4
  92. package/dist/s-card-content/package.json +0 -5
  93. package/dist/s-card-content/s-card-content.d.ts +0 -6
  94. package/dist/s-card-content/s-card-content.js +0 -6
  95. package/dist/s-card-header/index.d.ts +0 -1
  96. package/dist/s-card-header/index.js +0 -4
  97. package/dist/s-card-header/package.json +0 -5
  98. package/dist/s-card-header/s-card-header.d.ts +0 -6
  99. package/dist/s-card-header/s-card-header.js +0 -6
  100. package/dist/s-chip/index.d.ts +0 -1
  101. package/dist/s-chip/index.js +0 -4
  102. package/dist/s-chip/package.json +0 -5
  103. package/dist/s-chip/s-chip.d.ts +0 -6
  104. package/dist/s-chip/s-chip.js +0 -6
  105. package/dist/s-link/index.d.ts +0 -1
  106. package/dist/s-link/index.js +0 -4
  107. package/dist/s-link/package.json +0 -5
  108. package/dist/s-link/s-link.d.ts +0 -6
  109. package/dist/s-link/s-link.js +0 -6
  110. package/dist/s-menu-item/index.d.ts +0 -1
  111. package/dist/s-menu-item/index.js +0 -4
  112. package/dist/s-menu-item/package.json +0 -5
  113. package/dist/s-menu-item/s-menu-item.d.ts +0 -9
  114. package/dist/s-menu-item/s-menu-item.js +0 -6
  115. package/dist/s-rating/index.d.ts +0 -1
  116. package/dist/s-rating/index.js +0 -4
  117. package/dist/s-rating/package.json +0 -5
  118. package/dist/s-rating/s-rating.d.ts +0 -7
  119. package/dist/s-rating/s-rating.js +0 -6
  120. package/dist/s-stack/index.d.ts +0 -1
  121. package/dist/s-stack/index.js +0 -4
  122. package/dist/s-stack/package.json +0 -5
  123. package/dist/s-stack/s-stack.d.ts +0 -5
  124. package/dist/s-stack/s-stack.js +0 -6
  125. package/dist/tabClasses-CDDkt7la.js +0 -5
  126. package/dist/tableCellClasses-CBw1aep0.js +0 -10
  127. package/dist/theme/components/accordion.d.ts +0 -8
  128. package/dist/theme/components/accordion.js +0 -11
  129. package/dist/theme/components/alert.d.ts +0 -7
  130. package/dist/theme/components/alert.js +0 -4
  131. package/dist/theme/components/autocomplete.d.ts +0 -124
  132. package/dist/theme/components/autocomplete.js +0 -51
  133. package/dist/theme/components/backdrop.d.ts +0 -9
  134. package/dist/theme/components/backdrop.js +0 -9
  135. package/dist/theme/components/button-base.d.ts +0 -5
  136. package/dist/theme/components/button-base.js +0 -4
  137. package/dist/theme/components/button-group.d.ts +0 -5
  138. package/dist/theme/components/button-group.js +0 -4
  139. package/dist/theme/components/button.d.ts +0 -156
  140. package/dist/theme/components/button.js +0 -109
  141. package/dist/theme/components/card-actions.d.ts +0 -7
  142. package/dist/theme/components/card-actions.js +0 -6
  143. package/dist/theme/components/card-content.d.ts +0 -10
  144. package/dist/theme/components/card-content.js +0 -7
  145. package/dist/theme/components/card-header.d.ts +0 -25
  146. package/dist/theme/components/card-header.js +0 -20
  147. package/dist/theme/components/card.d.ts +0 -17
  148. package/dist/theme/components/card.js +0 -17
  149. package/dist/theme/components/checkbox.d.ts +0 -18
  150. package/dist/theme/components/checkbox.js +0 -60
  151. package/dist/theme/components/chip.d.ts +0 -28
  152. package/dist/theme/components/chip.js +0 -62
  153. package/dist/theme/components/dialog-actions.d.ts +0 -7
  154. package/dist/theme/components/dialog-actions.js +0 -6
  155. package/dist/theme/components/dialog-content-text.d.ts +0 -8
  156. package/dist/theme/components/dialog-content-text.js +0 -6
  157. package/dist/theme/components/dialog-content.d.ts +0 -8
  158. package/dist/theme/components/dialog-content.js +0 -6
  159. package/dist/theme/components/dialog-title.d.ts +0 -7
  160. package/dist/theme/components/dialog-title.js +0 -6
  161. package/dist/theme/components/filled-input.d.ts +0 -31
  162. package/dist/theme/components/filled-input.js +0 -21
  163. package/dist/theme/components/form-control-label.d.ts +0 -15
  164. package/dist/theme/components/form-control-label.js +0 -7
  165. package/dist/theme/components/form-group.d.ts +0 -7
  166. package/dist/theme/components/form-group.js +0 -4
  167. package/dist/theme/components/form-helper-text.d.ts +0 -8
  168. package/dist/theme/components/form-helper-text.js +0 -8
  169. package/dist/theme/components/form-label.d.ts +0 -12
  170. package/dist/theme/components/form-label.js +0 -9
  171. package/dist/theme/components/icon-button.d.ts +0 -83
  172. package/dist/theme/components/icon-button.js +0 -49
  173. package/dist/theme/components/input-base.d.ts +0 -39
  174. package/dist/theme/components/input-base.js +0 -34
  175. package/dist/theme/components/input-label.d.ts +0 -10
  176. package/dist/theme/components/input-label.js +0 -6
  177. package/dist/theme/components/input.d.ts +0 -32
  178. package/dist/theme/components/input.js +0 -22
  179. package/dist/theme/components/linear-progress.d.ts +0 -8
  180. package/dist/theme/components/linear-progress.js +0 -6
  181. package/dist/theme/components/link.d.ts +0 -10
  182. package/dist/theme/components/link.js +0 -11
  183. package/dist/theme/components/list-item-avatar.d.ts +0 -7
  184. package/dist/theme/components/list-item-avatar.js +0 -6
  185. package/dist/theme/components/list-item-button.d.ts +0 -10
  186. package/dist/theme/components/list-item-button.js +0 -7
  187. package/dist/theme/components/list-item-icon.d.ts +0 -9
  188. package/dist/theme/components/list-item-icon.js +0 -6
  189. package/dist/theme/components/list-item-text.d.ts +0 -7
  190. package/dist/theme/components/list-item-text.js +0 -6
  191. package/dist/theme/components/list-item.d.ts +0 -7
  192. package/dist/theme/components/list-item.js +0 -6
  193. package/dist/theme/components/list.d.ts +0 -7
  194. package/dist/theme/components/list.js +0 -6
  195. package/dist/theme/components/menu-item.d.ts +0 -17
  196. package/dist/theme/components/menu-item.js +0 -17
  197. package/dist/theme/components/menu.d.ts +0 -13
  198. package/dist/theme/components/menu.js +0 -7
  199. package/dist/theme/components/outlined-input.d.ts +0 -127
  200. package/dist/theme/components/outlined-input.js +0 -47
  201. package/dist/theme/components/paper.d.ts +0 -7
  202. package/dist/theme/components/paper.js +0 -6
  203. package/dist/theme/components/popover.d.ts +0 -11
  204. package/dist/theme/components/popover.js +0 -7
  205. package/dist/theme/components/radio.d.ts +0 -13
  206. package/dist/theme/components/radio.js +0 -25
  207. package/dist/theme/components/select.d.ts +0 -21
  208. package/dist/theme/components/select.js +0 -18
  209. package/dist/theme/components/skeleton.d.ts +0 -5
  210. package/dist/theme/components/skeleton.js +0 -8
  211. package/dist/theme/components/stack.d.ts +0 -5
  212. package/dist/theme/components/stack.js +0 -4
  213. package/dist/theme/components/switch.d.ts +0 -19
  214. package/dist/theme/components/switch.js +0 -11
  215. package/dist/theme/components/tab.d.ts +0 -18
  216. package/dist/theme/components/tab.js +0 -15
  217. package/dist/theme/components/table-body.d.ts +0 -5
  218. package/dist/theme/components/table-body.js +0 -10
  219. package/dist/theme/components/table-cell.d.ts +0 -10
  220. package/dist/theme/components/table-cell.js +0 -11
  221. package/dist/theme/components/table-head.d.ts +0 -11
  222. package/dist/theme/components/table-head.js +0 -15
  223. package/dist/theme/components/table-pagination.d.ts +0 -28
  224. package/dist/theme/components/table-pagination.js +0 -93
  225. package/dist/theme/components/tabs.d.ts +0 -33
  226. package/dist/theme/components/tabs.js +0 -21
  227. package/dist/theme/components/toggle-button-group.d.ts +0 -23
  228. package/dist/theme/components/toggle-button-group.js +0 -17
  229. package/dist/theme/components/toggle-button.d.ts +0 -12
  230. package/dist/theme/components/toggle-button.js +0 -9
  231. package/dist/theme/components/tooltip.d.ts +0 -10
  232. package/dist/theme/components/tooltip.js +0 -7
  233. package/dist/theme/customizations/components/components.d.ts +0 -7
  234. package/dist/theme/customizations/components/components.js +0 -7
  235. package/dist/useSlot-CtsS_jy6.js +0 -184
  236. /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 S } from "../hooks/use-dialog.js";
6
- import d from "../s-button/s-button.js";
7
- import { T as m } from "../Typography-jSFidXje.js";
8
- const k = ({
9
- title: e,
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
- e && /* @__PURE__ */ n.jsx(g, { children: /* @__PURE__ */ n.jsxs(j, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
21
- typeof e == "string" ? /* @__PURE__ */ n.jsx(m, { variant: "h5", textTransform: "capitalize", children: e }) : /* @__PURE__ */ n.jsx("div", { children: e }),
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
- o && /* @__PURE__ */ n.jsx(v, { children: typeof o == "string" ? /* @__PURE__ */ n.jsx(m, { color: "text.secondary", variant: "body2", children: o }) : o }),
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), O = ({ children: e }) => {
30
- const o = S(), [s, i] = r.useState(!1), [t, a] = r.useState({
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 }), o.handleOpen();
38
+ a({ title: h, content: u, onConfirm: C }), e.handleOpen();
40
39
  },
41
- [o]
40
+ [e]
42
41
  ),
43
- handleClose: o.handleClose,
44
- open: o.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
- k,
51
+ w,
53
52
  {
54
- open: o.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: o.handleClose,
56
+ onClose: e.handleClose,
58
57
  onConfirm: l,
59
58
  loading: s
60
59
  }
61
60
  ),
62
- e
61
+ o
63
62
  ] });
64
- }, R = () => {
65
- const e = r.useContext(f);
66
- if (!e)
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 e;
67
+ return o;
69
68
  };
70
69
  export {
71
- O as DialogConfirmProvider,
72
- k as default,
73
- R as useDialogConfirm
70
+ I as DialogConfirmProvider,
71
+ w as default,
72
+ O as useDialogConfirm
74
73
  };
@@ -1,13 +1,12 @@
1
- import { j as e } from "../jsx-runtime-C5mzlN2N.js";
1
+ import { j as o } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as s from "react";
3
- import { Dialog as p, DialogTitle as u, Stack as m, IconButton as g, DialogContent as j, DialogActions as f } from "@mui/material";
4
- import { S as C } from "../X-B8GTZwii.js";
5
- import { useDialog as D } from "../hooks/use-dialog.js";
6
- import k from "../s-button/s-button.js";
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: o,
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__ */ e.jsxs(p, { fullWidth: !0, maxWidth: l, onClose: t, open: i, children: [
19
- n && /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
20
- typeof n == "string" ? /* @__PURE__ */ e.jsx(c, { variant: "h5", textTransform: "capitalize", children: n }) : /* @__PURE__ */ e.jsx("div", { children: n }),
21
- a && /* @__PURE__ */ e.jsx(g, { onClick: t, children: /* @__PURE__ */ e.jsx(C, {}) })
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
- o && /* @__PURE__ */ e.jsx(j, { children: typeof o == "string" ? /* @__PURE__ */ e.jsx(c, { color: "text.secondary", variant: "body2", children: o }) : o }),
24
- /* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(k, { onClick: r, children: "Ok" }) }) })
25
- ] }), d = s.createContext(null), M = ({ children: n }) => {
26
- const o = D(), [t, r] = s.useState({
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: o.handleClose
28
+ onOk: e.handleClose
30
29
  }), i = {
31
30
  handleOpen: s.useCallback(
32
31
  (l) => {
33
- const { title: a, content: h, onOk: x = o.handleClose } = l;
34
- r({ title: a, content: h, onOk: x }), o.handleOpen();
32
+ const { title: a, content: h, onOk: x = e.handleClose } = l;
33
+ r({ title: a, content: h, onOk: x }), e.handleOpen();
35
34
  },
36
- [o]
35
+ [e]
37
36
  ),
38
- handleClose: o.handleClose,
39
- open: o.open
37
+ handleClose: e.handleClose,
38
+ open: e.open
40
39
  };
41
- return /* @__PURE__ */ e.jsxs(d.Provider, { value: i, children: [
42
- /* @__PURE__ */ e.jsx(
40
+ return /* @__PURE__ */ o.jsxs(d.Provider, { value: i, children: [
41
+ /* @__PURE__ */ o.jsx(
43
42
  v,
44
43
  {
45
- open: o.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: o.handleClose,
47
+ onClose: e.handleClose,
49
48
  onOk: t == null ? void 0 : t.onOk
50
49
  }
51
50
  ),
52
51
  n
53
52
  ] });
54
- }, P = () => {
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
- M as DialogMessageProvider,
60
+ T as DialogMessageProvider,
62
61
  v as default,
63
- P as useDialogMessage
62
+ M as useDialogMessage
64
63
  };
@@ -1,17 +1,15 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { Tooltip as E, IconButton as w } from "@mui/material";
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 M } from "../SSRBase-BSdFRe_j.js";
5
- import { S as Z } from "../X-B8GTZwii.js";
6
- import { useDropzone as V } from "react-dropzone";
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-DIkbVcfm.js";
13
- import { B as u } from "../Box-DyPisl7H.js";
14
- import { T as i } from "../Typography-jSFidXje.js";
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 = (a, r, l) => r in a ? P(a, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[r] = l, R = (a, r) => {
48
- for (var l in r || (r = {}))
49
- B.call(r, l) && h(a, l, r[l]);
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(r))
52
- L.call(r, l) && h(a, l, r[l]);
53
- return a;
54
- }, T = (a, r) => k(a, D(r));
55
- const f = S((a, r) => /* @__PURE__ */ t.createElement(M, T(R({ ref: r }, a), { weights: H })));
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 l0 = ({
58
- caption: a,
59
- label: r = "",
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 } = V(c);
71
- return /* @__PURE__ */ e.jsxs(O, { error: l, label: r, required: j, children: [
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
- z,
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
- a ? /* @__PURE__ */ e.jsx(i, { color: "text.secondary", variant: "body2", children: a }) : null
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(E, { title: "Remove", children: /* @__PURE__ */ e.jsx(
147
- w,
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(Z, {})
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(F, { onClick: g, size: "small", type: "button", variant: "text", children: "Remove all" }) })
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
- l0 as default
163
+ a0 as default
166
164
  };
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
- import { B as i } from "../Box-DyPisl7H.js";
2
+ import { B as i } from "../Box-BAmUWsQI.js";
3
3
  const o = {
4
4
  jpeg: "/assets/icon-jpg.svg",
5
5
  jpg: "/assets/icon-jpg.svg",